=0;--i){var b=this.tryEntries[i];if(b.finallyLoc===t)return this.complete(b.completion,b.afterLoc),resetTryEntry(b),I}},catch:function(t){for(var i=this.tryEntries.length-1;i>=0;--i){var b=this.tryEntries[i];if(b.tryLoc===t){var _=b.completion;if("throw"===_.type){var C=_.arg;resetTryEntry(b)}return C}}throw new Error("illegal catch attempt")},delegateYield:function(t,b,_){return this.delegate={iterator:values(t),resultName:b,nextLoc:_},"next"===this.method&&(this.arg=i),I}},t}(t.exports);try{regeneratorRuntime=i}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=i:Function("r","regeneratorRuntime = r")(i)}}(C);var w=C.exports,x=function SvgPath(t){var i=t.paths,b=t.id,C=t.strokeWidth,w=t.strokeColor,x=t.command,E=void 0===x?O:x;if(1===i.length){var k=i[0],P=k.x,S=k.y,I=C/2;return _.createElement("circle",{key:b,id:b,cx:P,cy:S,r:I,stroke:w,fill:w})}var T=i.reduce((function(t,i,b,_){return 0===b?"M "+i.x+","+i.y:t+" "+E(i,b,_)}),"");return _.createElement("path",{key:b,id:b,d:T,fill:"none",strokeLinecap:"round",stroke:w,strokeWidth:C})},E=function controlPoint(t){var i=t.current,b=t.next,_=t.previous,C=t.reverse,w=function line(t,i){var b=i.x-t.x,_=i.y-t.y;return{length:Math.sqrt(Math.pow(b,2)+Math.pow(_,2)),angle:Math.atan2(_,b)}}(_||i,b||i),x=w.angle+(C?Math.PI:0),E=.2*w.length;return[i.x+Math.cos(x)*E,i.y+Math.sin(x)*E]},O=function bezierCommand(t,i,b){var _=null,C=null;switch(i){case 0:var w=E({current:t});_=w[0],C=w[1];break;case 1:var x=E({current:b[i-1],next:t});_=x[0],C=x[1];break;default:var O=E({current:b[i-1],previous:b[i-2],next:t});_=O[0],C=O[1]}var k=E({current:t,previous:b[i-1],next:b[i+1],reverse:!0});return"C "+_+","+C+" "+k[0]+","+k[1]+" "+t.x+", "+t.y},k=function Paths(t){var i=t.id,b=t.paths;return _.createElement(_.Fragment,null,b.map((function(t,b){return _.createElement(x,{key:i+"__"+b,paths:t.paths,id:i+"__"+b,strokeWidth:t.strokeWidth,strokeColor:t.strokeColor,command:O})})))},P=function loadImage(t){return new Promise((function(i,b){var _=new Image;_.addEventListener("load",(function(){_.width>0&&i(_),b("Image not found")})),_.addEventListener("error",(function(t){return b(t)})),_.src=t,_.setAttribute("crossorigin","anonymous")}))};function getCanvasWithViewBox(t){var i,b=null==(i=t.firstChild)?void 0:i.cloneNode(!0),_=t.offsetWidth,C=t.offsetHeight;return b.setAttribute("viewBox","0 0 "+_+" "+C),b.setAttribute("width",_.toString()),b.setAttribute("height",C.toString()),{svgCanvas:b,width:_,height:C}}var S=_.forwardRef((function(t,i){var b=t.paths,C=t.isDrawing,E=t.onPointerDown,O=t.onPointerMove,S=t.onPointerUp,I=t.id,T=void 0===I?"react-sketch-canvas":I,j=t.width,M=void 0===j?"100%":j,A=t.height,R=void 0===A?"100%":A,D=t.className,L=void 0===D?"react-sketch-canvas":D,B=t.canvasColor,N=void 0===B?"red":B,W=t.backgroundImage,H=void 0===W?"":W,q=t.exportWithBackgroundImage,z=void 0!==q&&q,V=t.preserveBackgroundImageAspectRatio,G=void 0===V?"none":V,U=t.allowOnlyPointerType,Y=void 0===U?"all":U,Z=t.style,K=void 0===Z?{border:"0.0625rem solid #9c9c9c",borderRadius:"0.25rem"}:Z,X=t.svgStyle,$=void 0===X?{}:X,Q=_.useRef(null),J=function getCoordinates(t){var i,b,_,C=null==(i=Q.current)?void 0:i.getBoundingClientRect(),w=null!=(b=window.scrollX)?b:0,x=null!=(_=window.scrollY)?_:0;return C?{x:t.pageX-C.left-w,y:t.pageY-C.top-x}:{x:0,y:0}},ee=function handlePointerUp(t){"mouse"===t.pointerType&&0!==t.button||"all"!==Y&&t.pointerType!==Y||S()};_.useImperativeHandle(i,(function(){return{exportImage:function exportImage(t){return new Promise(function(){var i=function _asyncToGenerator(t){return function(){var i=this,b=arguments;return new Promise((function(_,C){var w=t.apply(i,b);function _next(t){asyncGeneratorStep(w,_,C,_next,_throw,"next",t)}function _throw(t){asyncGeneratorStep(w,_,C,_next,_throw,"throw",t)}_next(void 0)}))}}(w.mark((function _callee(i,b){var _,C,x,E,O,k,S,I;return w.wrap((function _callee$(w){for(;;)switch(w.prev=w.next){case 0:if(w.prev=0,_=Q.current){w.next=4;break}throw Error("Canvas not rendered yet");case 4:return C=getCanvasWithViewBox(_),x=C.svgCanvas,E=C.width,O=C.height,k="data:image/svg+xml;base64,"+btoa(x.outerHTML),w.next=8,P(k);case 8:if(w.t0=w.sent,S=[w.t0],!z){w.next=21;break}return w.prev=11,w.next=14,P(H);case 14:I=w.sent,S.push(I),w.next=21;break;case 18:w.prev=18,w.t1=w.catch(11),console.warn("exportWithBackgroundImage props is set without a valid background image URL. This option is ignored");case 21:Promise.all(S).then((function(b){var _=document.createElement("canvas");_.setAttribute("width",E.toString()),_.setAttribute("height",O.toString());var C=_.getContext("2d");if(!C)throw Error("Canvas not rendered yet");b.reverse().forEach((function(t){C.drawImage(t,0,0)})),i(_.toDataURL("image/"+t))})).catch((function(t){throw t})),w.next=27;break;case 24:w.prev=24,w.t2=w.catch(0),b(w.t2);case 27:case"end":return w.stop()}}),_callee,null,[[0,24],[11,18]])})));return function(t,b){return i.apply(this,arguments)}}())},exportSvg:function exportSvg(){return new Promise((function(t,i){try{var b,_=null!=(b=Q.current)?b:null;if(null!==_){var C,w,x=getCanvasWithViewBox(_).svgCanvas;if(z)return void t(x.outerHTML);null==(C=x.querySelector("#"+T+"__background"))||C.remove(),null==(w=x.querySelector("#"+T+"__canvas-background"))||w.setAttribute("fill",N),t(x.outerHTML)}i(new Error("Canvas not loaded"))}catch(t){i(t)}}))}}})),_.useEffect((function(){return document.addEventListener("pointerup",ee),function(){document.removeEventListener("pointerup",ee)}}),[ee]);var te=b.filter((function(t){return!t.drawMode})),ne=0,re=b.reduce((function(t,i){return i.drawMode?(void 0===t[ne]&&(t[ne]=[]),t[ne].push(i),t):(ne+=1,t)}),[[]]);return _.createElement("div",{role:"presentation",ref:Q,className:L,style:_extends({touchAction:"none",width:M,height:R},K),"touch-action":"none",onPointerDown:function handlePointerDown(t){if(!("all"!==Y&&t.pointerType!==Y||"mouse"===t.pointerType&&0!==t.button)){var i=J(t);E(i)}},onPointerMove:function handlePointerMove(t){if(C&&("all"===Y||t.pointerType===Y)){var i=J(t);O(i)}},onPointerUp:ee},_.createElement("svg",{version:"1.1",baseProfile:"full",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",style:_extends({width:"100%",height:"100%"},$),id:T},_.createElement("g",{id:T+"__eraser-stroke-group",display:"none"},_.createElement("rect",{id:T+"__mask-background",x:"0",y:"0",width:"100%",height:"100%",fill:"white"}),te.map((function(t,i){return _.createElement(x,{key:T+"__eraser-"+i,id:T+"__eraser-"+i,paths:t.paths,strokeColor:"#000000",strokeWidth:t.strokeWidth})}))),_.createElement("defs",null,H&&_.createElement("pattern",{id:T+"__background",x:"0",y:"0",width:"100%",height:"100%",patternUnits:"userSpaceOnUse"},_.createElement("image",{x:"0",y:"0",width:"100%",height:"100%",xlinkHref:H,preserveAspectRatio:G})),te.map((function(t,i){return _.createElement("mask",{id:T+"__eraser-mask-"+i,key:T+"__eraser-mask-"+i,maskUnits:"userSpaceOnUse"},_.createElement("use",{href:"#"+T+"__mask-background"}),Array.from({length:te.length-i},(function(t,b){return b+i})).map((function(t){return _.createElement("use",{key:t.toString(),href:"#"+T+"__eraser-"+t.toString()})})))}))),_.createElement("g",{id:T+"__canvas-background-group"},_.createElement("rect",{id:T+"__canvas-background",x:"0",y:"0",width:"100%",height:"100%",fill:H?"url(#"+T+"__background)":N})),re.map((function(t,i){return _.createElement("g",{id:T+"__stroke-group-"+i,key:T+"__stroke-group-"+i,mask:"url(#"+T+"__eraser-mask-"+i+")"},_.createElement(k,{id:T,paths:t}))}))))})),I=_.forwardRef((function(t,i){var b=t.id,C=void 0===b?"react-sketch-canvas":b,w=t.width,x=void 0===w?"100%":w,E=t.height,O=void 0===E?"100%":E,k=t.className,P=void 0===k?"":k,I=t.canvasColor,T=void 0===I?"white":I,j=t.strokeColor,M=void 0===j?"red":j,A=t.backgroundImage,R=void 0===A?"":A,D=t.exportWithBackgroundImage,L=void 0!==D&&D,B=t.preserveBackgroundImageAspectRatio,N=void 0===B?"none":B,W=t.strokeWidth,H=void 0===W?4:W,q=t.eraserWidth,z=void 0===q?8:q,V=t.allowOnlyPointerType,G=void 0===V?"all":V,U=t.style,Y=void 0===U?{border:"0.0625rem solid #9c9c9c",borderRadius:"0.25rem"}:U,Z=t.svgStyle,K=void 0===Z?{}:Z,X=t.onChange,$=void 0===X?function(t){}:X,Q=t.onStroke,J=void 0===Q?function(t,i){}:Q,ee=t.withTimestamp,te=void 0!==ee&&ee,ne=_.createRef(),re=_.useState(!0),oe=re[0],ae=re[1],ie=_.useState(!1),le=ie[0],ue=ie[1],ce=_.useState([]),se=ce[0],de=ce[1],fe=_.useState([]),pe=fe[0],me=fe[1],he=_.useState([]),ge=he[0],ye=he[1],ve=_.useCallback((function(){var t,i,b=null!=(t=null==(i=ge.slice(-1))?void 0:i[0])?t:null;null!==b?J(b,!b.drawMode):console.warn("No stroke found!")}),[le]);_.useEffect((function(){ve()}),[le]),_.useEffect((function(){$(ge)}),[ge]),_.useImperativeHandle(i,(function(){return{eraseMode:function eraseMode(t){ae(!t)},clearCanvas:function clearCanvas(){de([].concat(ge)),ye([])},undo:function undo(){if(0!==se.length)return ye([].concat(se)),void de([]);me((function(t){return[].concat(t,ge.slice(-1))})),ye((function(t){return t.slice(0,-1)}))},redo:function redo(){0!==pe.length&&(ye((function(t){return[].concat(t,pe.slice(-1))})),me((function(t){return t.slice(0,-1)})))},exportImage:function exportImage(t){var i,exportImage=null==(i=ne.current)?void 0:i.exportImage;if(exportImage)return exportImage(t);throw Error("Export function called before canvas loaded")},exportSvg:function exportSvg(){return new Promise((function(t,i){var b,_=null==(b=ne.current)?void 0:b.exportSvg;_?_().then((function(i){t(i)})).catch((function(t){i(t)})):i(Error("Export function called before canvas loaded"))}))},exportPaths:function exportPaths(){return new Promise((function(t,i){try{t(ge)}catch(t){i(t)}}))},loadPaths:function loadPaths(t){ye((function(i){return[].concat(i,t)}))},getSketchingTime:function getSketchingTime(){return new Promise((function(t,i){te||i(new Error("Set 'withTimestamp' prop to get sketching time"));try{t(ge.reduce((function(t,i){var b,_,C=null!=(b=i.startTimestamp)?b:0;return t+((null!=(_=i.endTimestamp)?_:0)-C)}),0))}catch(t){i(t)}}))},resetCanvas:function resetCanvas(){de([]),me([]),ye([])}}}));return _.createElement(S,{ref:ne,id:C,width:x,height:O,className:P,canvasColor:T,backgroundImage:R,exportWithBackgroundImage:L,preserveBackgroundImageAspectRatio:N,allowOnlyPointerType:G,style:Y,svgStyle:K,paths:ge,isDrawing:le,onPointerDown:function handlePointerDown(t){ue(!0),me([]);var i={drawMode:oe,strokeColor:oe?M:"#000000",strokeWidth:oe?H:z,paths:[t]};te&&(i=_extends({},i,{startTimestamp:Date.now(),endTimestamp:0})),ye((function(t){return[].concat(t,[i])}))},onPointerMove:function handlePointerMove(t){if(le){var i=ge.slice(-1)[0],b=_extends({},i,{paths:[].concat(i.paths,[t])});ye((function(t){return[].concat(t.slice(0,-1),[b])}))}},onPointerUp:function handlePointerUp(){var t,i;if(le&&(ue(!1),te)){var b=null!=(t=null==(i=ge.slice(-1))?void 0:i[0])?t:null;if(null!==b){var _=_extends({},b,{endTimestamp:Date.now()});ye((function(t){return[].concat(t.slice(0,-1),[_])}))}}}})}))},55862:(t,i,b)=>{var _=b(3812);function StyleToObject(t,i){var b,C=null;if(!t||"string"!=typeof t)return C;for(var w,x,E=_(t),O="function"==typeof i,k=0,P=E.length;k{"use strict";t.exports=React},61533:t=>{"use strict";t.exports=ReactDOM},34029:t=>{"use strict";t.exports=elementorV2.icons},36626:t=>{"use strict";t.exports=elementorV2.ui},38003:t=>{"use strict";t.exports=wp.i18n},98106:t=>{t.exports=function _arrayLikeToArray(t,i){(null==i||i>t.length)&&(i=t.length);for(var b=0,_=new Array(i);b{t.exports=function _arrayWithHoles(t){if(Array.isArray(t))return t},t.exports.__esModule=!0,t.exports.default=t.exports},34102:(t,i,b)=>{var _=b(98106);t.exports=function _arrayWithoutHoles(t){if(Array.isArray(t))return _(t)},t.exports.__esModule=!0,t.exports.default=t.exports},77266:t=>{t.exports=function _assertThisInitialized(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t},t.exports.__esModule=!0,t.exports.default=t.exports},10029:t=>{function asyncGeneratorStep(t,i,b,_,C,w,x){try{var E=t[w](x),O=E.value}catch(t){return void b(t)}E.done?i(O):Promise.resolve(O).then(_,C)}t.exports=function _asyncToGenerator(t){return function(){var i=this,b=arguments;return new Promise((function(_,C){var w=t.apply(i,b);function _next(t){asyncGeneratorStep(w,_,C,_next,_throw,"next",t)}function _throw(t){asyncGeneratorStep(w,_,C,_next,_throw,"throw",t)}_next(void 0)}))}},t.exports.__esModule=!0,t.exports.default=t.exports},78983:t=>{t.exports=function _classCallCheck(t,i){if(!(t instanceof i))throw new TypeError("Cannot call a class as a function")},t.exports.__esModule=!0,t.exports.default=t.exports},42081:(t,i,b)=>{var _=b(74040);function _defineProperties(t,i){for(var b=0;b{var _=b(74040);t.exports=function _defineProperty(t,i,b){return(i=_(i))in t?Object.defineProperty(t,i,{value:b,enumerable:!0,configurable:!0,writable:!0}):t[i]=b,t},t.exports.__esModule=!0,t.exports.default=t.exports},73119:t=>{function _extends(){return t.exports=_extends=Object.assign?Object.assign.bind():function(t){for(var i=1;i{function _getPrototypeOf(i){return t.exports=_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function _getPrototypeOf(t){return t.__proto__||Object.getPrototypeOf(t)},t.exports.__esModule=!0,t.exports.default=t.exports,_getPrototypeOf(i)}t.exports=_getPrototypeOf,t.exports.__esModule=!0,t.exports.default=t.exports},58724:(t,i,b)=>{var _=b(96196);t.exports=function _inherits(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(i&&i.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),i&&_(t,i)},t.exports.__esModule=!0,t.exports.default=t.exports},73203:t=>{t.exports=function _interopRequireDefault(t){return t&&t.__esModule?t:{default:t}},t.exports.__esModule=!0,t.exports.default=t.exports},68:t=>{t.exports=function _iterableToArray(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)},t.exports.__esModule=!0,t.exports.default=t.exports},40608:t=>{t.exports=function _iterableToArrayLimit(t,i){var b=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=b){var _,C,w,x,E=[],O=!0,k=!1;try{if(w=(b=b.call(t)).next,0===i){if(Object(b)!==b)return;O=!1}else for(;!(O=(_=w.call(b)).done)&&(E.push(_.value),E.length!==i);O=!0);}catch(t){k=!0,C=t}finally{try{if(!O&&null!=b.return&&(x=b.return(),Object(x)!==x))return}finally{if(k)throw C}}return E}},t.exports.__esModule=!0,t.exports.default=t.exports},56894:t=>{t.exports=function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.__esModule=!0,t.exports.default=t.exports},91282:t=>{t.exports=function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},t.exports.__esModule=!0,t.exports.default=t.exports},70966:(t,i,b)=>{var _=b(22412);t.exports=function _objectWithoutProperties(t,i){if(null==t)return{};var b,C,w=_(t,i);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(t);for(C=0;C=0||Object.prototype.propertyIsEnumerable.call(t,b)&&(w[b]=t[b])}return w},t.exports.__esModule=!0,t.exports.default=t.exports},22412:t=>{t.exports=function _objectWithoutPropertiesLoose(t,i){if(null==t)return{};var b,_,C={},w=Object.keys(t);for(_=0;_=0||(C[b]=t[b]);return C},t.exports.__esModule=!0,t.exports.default=t.exports},71173:(t,i,b)=>{var _=b(7501).default,C=b(77266);t.exports=function _possibleConstructorReturn(t,i){if(i&&("object"===_(i)||"function"==typeof i))return i;if(void 0!==i)throw new TypeError("Derived constructors may only return object or undefined");return C(t)},t.exports.__esModule=!0,t.exports.default=t.exports},21337:(t,i,b)=>{var _=b(7501).default;function _regeneratorRuntime(){"use strict";t.exports=_regeneratorRuntime=function _regeneratorRuntime(){return b},t.exports.__esModule=!0,t.exports.default=t.exports;var i,b={},C=Object.prototype,w=C.hasOwnProperty,x=Object.defineProperty||function(t,i,b){t[i]=b.value},E="function"==typeof Symbol?Symbol:{},O=E.iterator||"@@iterator",k=E.asyncIterator||"@@asyncIterator",P=E.toStringTag||"@@toStringTag";function define(t,i,b){return Object.defineProperty(t,i,{value:b,enumerable:!0,configurable:!0,writable:!0}),t[i]}try{define({},"")}catch(i){define=function define(t,i,b){return t[i]=b}}function wrap(t,i,b,_){var C=i&&i.prototype instanceof Generator?i:Generator,w=Object.create(C.prototype),E=new Context(_||[]);return x(w,"_invoke",{value:makeInvokeMethod(t,b,E)}),w}function tryCatch(t,i,b){try{return{type:"normal",arg:t.call(i,b)}}catch(t){return{type:"throw",arg:t}}}b.wrap=wrap;var S="suspendedStart",I="suspendedYield",T="executing",j="completed",M={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var A={};define(A,O,(function(){return this}));var R=Object.getPrototypeOf,D=R&&R(R(values([])));D&&D!==C&&w.call(D,O)&&(A=D);var L=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(A);function defineIteratorMethods(t){["next","throw","return"].forEach((function(i){define(t,i,(function(t){return this._invoke(i,t)}))}))}function AsyncIterator(t,i){function invoke(b,C,x,E){var O=tryCatch(t[b],t,C);if("throw"!==O.type){var k=O.arg,P=k.value;return P&&"object"==_(P)&&w.call(P,"__await")?i.resolve(P.__await).then((function(t){invoke("next",t,x,E)}),(function(t){invoke("throw",t,x,E)})):i.resolve(P).then((function(t){k.value=t,x(k)}),(function(t){return invoke("throw",t,x,E)}))}E(O.arg)}var b;x(this,"_invoke",{value:function value(t,_){function callInvokeWithMethodAndArg(){return new i((function(i,b){invoke(t,_,i,b)}))}return b=b?b.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg()}})}function makeInvokeMethod(t,b,_){var C=S;return function(w,x){if(C===T)throw new Error("Generator is already running");if(C===j){if("throw"===w)throw x;return{value:i,done:!0}}for(_.method=w,_.arg=x;;){var E=_.delegate;if(E){var O=maybeInvokeDelegate(E,_);if(O){if(O===M)continue;return O}}if("next"===_.method)_.sent=_._sent=_.arg;else if("throw"===_.method){if(C===S)throw C=j,_.arg;_.dispatchException(_.arg)}else"return"===_.method&&_.abrupt("return",_.arg);C=T;var k=tryCatch(t,b,_);if("normal"===k.type){if(C=_.done?j:I,k.arg===M)continue;return{value:k.arg,done:_.done}}"throw"===k.type&&(C=j,_.method="throw",_.arg=k.arg)}}}function maybeInvokeDelegate(t,b){var _=b.method,C=t.iterator[_];if(C===i)return b.delegate=null,"throw"===_&&t.iterator.return&&(b.method="return",b.arg=i,maybeInvokeDelegate(t,b),"throw"===b.method)||"return"!==_&&(b.method="throw",b.arg=new TypeError("The iterator does not provide a '"+_+"' method")),M;var w=tryCatch(C,t.iterator,b.arg);if("throw"===w.type)return b.method="throw",b.arg=w.arg,b.delegate=null,M;var x=w.arg;return x?x.done?(b[t.resultName]=x.value,b.next=t.nextLoc,"return"!==b.method&&(b.method="next",b.arg=i),b.delegate=null,M):x:(b.method="throw",b.arg=new TypeError("iterator result is not an object"),b.delegate=null,M)}function pushTryEntry(t){var i={tryLoc:t[0]};1 in t&&(i.catchLoc=t[1]),2 in t&&(i.finallyLoc=t[2],i.afterLoc=t[3]),this.tryEntries.push(i)}function resetTryEntry(t){var i=t.completion||{};i.type="normal",delete i.arg,t.completion=i}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0)}function values(t){if(t||""===t){var b=t[O];if(b)return b.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var C=-1,x=function next(){for(;++C=0;--_){var C=this.tryEntries[_],x=C.completion;if("root"===C.tryLoc)return handle("end");if(C.tryLoc<=this.prev){var E=w.call(C,"catchLoc"),O=w.call(C,"finallyLoc");if(E&&O){if(this.prev=0;--b){var _=this.tryEntries[b];if(_.tryLoc<=this.prev&&w.call(_,"finallyLoc")&&this.prev<_.finallyLoc){var C=_;break}}C&&("break"===t||"continue"===t)&&C.tryLoc<=i&&i<=C.finallyLoc&&(C=null);var x=C?C.completion:{};return x.type=t,x.arg=i,C?(this.method="next",this.next=C.finallyLoc,M):this.complete(x)},complete:function complete(t,i){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&i&&(this.next=i),M},finish:function finish(t){for(var i=this.tryEntries.length-1;i>=0;--i){var b=this.tryEntries[i];if(b.finallyLoc===t)return this.complete(b.completion,b.afterLoc),resetTryEntry(b),M}},catch:function _catch(t){for(var i=this.tryEntries.length-1;i>=0;--i){var b=this.tryEntries[i];if(b.tryLoc===t){var _=b.completion;if("throw"===_.type){var C=_.arg;resetTryEntry(b)}return C}}throw new Error("illegal catch attempt")},delegateYield:function delegateYield(t,b,_){return this.delegate={iterator:values(t),resultName:b,nextLoc:_},"next"===this.method&&(this.arg=i),M}},b}t.exports=_regeneratorRuntime,t.exports.__esModule=!0,t.exports.default=t.exports},96196:t=>{function _setPrototypeOf(i,b){return t.exports=_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(t,i){return t.__proto__=i,t},t.exports.__esModule=!0,t.exports.default=t.exports,_setPrototypeOf(i,b)}t.exports=_setPrototypeOf,t.exports.__esModule=!0,t.exports.default=t.exports},40131:(t,i,b)=>{var _=b(17358),C=b(40608),w=b(35068),x=b(56894);t.exports=function _slicedToArray(t,i){return _(t)||C(t,i)||w(t,i)||x()},t.exports.__esModule=!0,t.exports.default=t.exports},79769:t=>{t.exports=function _taggedTemplateLiteral(t,i){return i||(i=t.slice(0)),Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(i)}}))},t.exports.__esModule=!0,t.exports.default=t.exports},9833:(t,i,b)=>{var _=b(34102),C=b(68),w=b(35068),x=b(91282);t.exports=function _toConsumableArray(t){return _(t)||C(t)||w(t)||x()},t.exports.__esModule=!0,t.exports.default=t.exports},56027:(t,i,b)=>{var _=b(7501).default;t.exports=function _toPrimitive(t,i){if("object"!==_(t)||null===t)return t;var b=t[Symbol.toPrimitive];if(void 0!==b){var C=b.call(t,i||"default");if("object"!==_(C))return C;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===i?String:Number)(t)},t.exports.__esModule=!0,t.exports.default=t.exports},74040:(t,i,b)=>{var _=b(7501).default,C=b(56027);t.exports=function _toPropertyKey(t){var i=C(t,"string");return"symbol"===_(i)?i:String(i)},t.exports.__esModule=!0,t.exports.default=t.exports},7501:t=>{function _typeof(i){return t.exports=_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,_typeof(i)}t.exports=_typeof,t.exports.__esModule=!0,t.exports.default=t.exports},35068:(t,i,b)=>{var _=b(98106);t.exports=function _unsupportedIterableToArray(t,i){if(t){if("string"==typeof t)return _(t,i);var b=Object.prototype.toString.call(t).slice(8,-1);return"Object"===b&&t.constructor&&(b=t.constructor.name),"Map"===b||"Set"===b?Array.from(t):"Arguments"===b||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(b)?_(t,i):void 0}},t.exports.__esModule=!0,t.exports.default=t.exports},50824:(t,i,b)=>{var _=b(21337)();t.exports=_;try{regeneratorRuntime=_}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=_:Function("r","regeneratorRuntime = r")(_)}},51068:(t,i,b)=>{"use strict";b.r(i),b.d(i,{default:()=>ReactMarkdown,uriTransformer:()=>uriTransformer});var _={};b.r(_),b.d(_,{attentionMarkers:()=>Fe,contentInitial:()=>Me,disable:()=>Ne,document:()=>je,flow:()=>Re,flowInitial:()=>Ae,insideSpan:()=>Be,string:()=>De,text:()=>Le});var C={};b.r(C),b.d(C,{boolean:()=>Qe,booleanish:()=>Je,commaOrSpaceSeparated:()=>ot,commaSeparated:()=>rt,number:()=>tt,overloadedBoolean:()=>et,spaceSeparated:()=>nt});const w=["http","https","mailto","tel"];function uriTransformer(t){const i=(t||"").trim(),b=i.charAt(0);if("#"===b||"/"===b)return i;const _=i.indexOf(":");if(-1===_)return i;let C=-1;for(;++CC?i:(C=i.indexOf("#"),-1!==C&&_>C?i:"javascript:void(0)")}var x=b(87363),E=b(48809);function stringifyPosition(t){return t&&"object"==typeof t?"position"in t||"type"in t?position(t.position):"start"in t||"end"in t?position(t):"line"in t||"column"in t?point(t):"":""}function point(t){return index(t&&t.line)+":"+index(t&&t.column)}function position(t){return point(t&&t.start)+"-"+point(t&&t.end)}function index(t){return t&&"number"==typeof t?t:1}class VFileMessage extends Error{constructor(t,i,b){const _=[null,null];let C={start:{line:null,column:null},end:{line:null,column:null}};if(super(),"string"==typeof i&&(b=i,i=void 0),"string"==typeof b){const t=b.indexOf(":");-1===t?_[1]=b:(_[0]=b.slice(0,t),_[1]=b.slice(t+1))}i&&("type"in i||"position"in i?i.position&&(C=i.position):"start"in i||"end"in i?C=i:("line"in i||"column"in i)&&(C.start=i)),this.name=stringifyPosition(i)||"1:1",this.message="object"==typeof t?t.message:t,this.stack="","object"==typeof t&&t.stack&&(this.stack=t.stack),this.reason=this.message,this.fatal,this.line=C.start.line,this.column=C.start.column,this.position=C,this.source=_[0],this.ruleId=_[1],this.file,this.actual,this.expected,this.url,this.note}}VFileMessage.prototype.file="",VFileMessage.prototype.name="",VFileMessage.prototype.reason="",VFileMessage.prototype.message="",VFileMessage.prototype.stack="",VFileMessage.prototype.fatal=null,VFileMessage.prototype.column=null,VFileMessage.prototype.line=null,VFileMessage.prototype.source=null,VFileMessage.prototype.ruleId=null,VFileMessage.prototype.position=null;const O={basename:function basename(t,i){if(void 0!==i&&"string"!=typeof i)throw new TypeError('"ext" argument must be a string');assertPath(t);let b,_=0,C=-1,w=t.length;if(void 0===i||0===i.length||i.length>t.length){for(;w--;)if(47===t.charCodeAt(w)){if(b){_=w+1;break}}else C<0&&(b=!0,C=w+1);return C<0?"":t.slice(_,C)}if(i===t)return"";let x=-1,E=i.length-1;for(;w--;)if(47===t.charCodeAt(w)){if(b){_=w+1;break}}else x<0&&(b=!0,x=w+1),E>-1&&(t.charCodeAt(w)===i.charCodeAt(E--)?E<0&&(C=w):(E=-1,C=x));_===C?C=x:C<0&&(C=t.length);return t.slice(_,C)},dirname:function dirname(t){if(assertPath(t),0===t.length)return".";let i,b=-1,_=t.length;for(;--_;)if(47===t.charCodeAt(_)){if(i){b=_;break}}else i||(i=!0);return b<0?47===t.charCodeAt(0)?"/":".":1===b&&47===t.charCodeAt(0)?"//":t.slice(0,b)},extname:function extname(t){assertPath(t);let i,b=t.length,_=-1,C=0,w=-1,x=0;for(;b--;){const E=t.charCodeAt(b);if(47!==E)_<0&&(i=!0,_=b+1),46===E?w<0?w=b:1!==x&&(x=1):w>-1&&(x=-1);else if(i){C=b+1;break}}if(w<0||_<0||0===x||1===x&&w===_-1&&w===C+1)return"";return t.slice(w,_)},join:function join(...t){let i,b=-1;for(;++b2){if(_=C.lastIndexOf("/"),_!==C.length-1){_<0?(C="",w=0):(C=C.slice(0,_),w=C.length-1-C.lastIndexOf("/")),x=O,E=0;continue}}else if(C.length>0){C="",w=0,x=O,E=0;continue}i&&(C=C.length>0?C+"/..":"..",w=2)}else C.length>0?C+="/"+t.slice(x+1,O):C=t.slice(x+1,O),w=O-x-1;x=O,E=0}else 46===b&&E>-1?E++:E=-1}return C}(t,!i);0!==b.length||i||(b=".");b.length>0&&47===t.charCodeAt(t.length-1)&&(b+="/");return i?"/"+b:b}(i)},sep:"/"};function assertPath(t){if("string"!=typeof t)throw new TypeError("Path must be a string. Received "+JSON.stringify(t))}const k={cwd:function cwd(){return"/"}};function isUrl(t){return null!==t&&"object"==typeof t&&t.href&&t.origin}function urlToPath(t){if("string"==typeof t)t=new URL(t);else if(!isUrl(t)){const i=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+t+"`");throw i.code="ERR_INVALID_ARG_TYPE",i}if("file:"!==t.protocol){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return function getPathFromURLPosix(t){if(""!==t.hostname){const t=new TypeError('File URL host must be "localhost" or empty on darwin');throw t.code="ERR_INVALID_FILE_URL_HOST",t}const i=t.pathname;let b=-1;for(;++bi.length;let C;_&&i.push(done);try{C=t.apply(this,i)}catch(t){if(_&&b)throw t;return done(t)}_||(C instanceof Promise?C.then(then,done):C instanceof Error?done(C):then(C))}function done(t,..._){b||(b=!0,i(t,..._))}function then(t){done(null,t)}}(x,next)(...w):_(null,...w)}}(null,...i)},use:function use(b){if("function"!=typeof b)throw new TypeError("Expected `middelware` to be a function, not "+b);return t.push(b),i}};return i}const I=function base(){const t=trough(),i=[];let b,_={},C=-1;return processor.data=function data(t,i){if("string"==typeof t)return 2===arguments.length?(assertUnfrozen("data",b),_[t]=i,processor):T.call(_,t)&&_[t]||null;if(t)return assertUnfrozen("data",b),_=t,processor;return _},processor.Parser=void 0,processor.Compiler=void 0,processor.freeze=function freeze(){if(b)return processor;for(;++C{if(!t&&i&&b){const _=processor.stringify(i,b);null==_||(!function looksLikeAVFileValue(t){return"string"==typeof t||E(t)}(_)?b.result=_:b.value=_),done(t,b)}else done(t)}))}executor(null,i)},processor.processSync=function processSync(t){let i;processor.freeze(),assertParser("processSync",processor.Parser),assertCompiler("processSync",processor.Compiler);const b=vfile(t);return processor.process(b,done),assertDone("processSync","process",i),b;function done(t){i=!0,bail(t)}},processor;function processor(){const t=base();let b=-1;for(;++bC?0:C+i:i>C?C:i,b=b>0?b:0,_.length<1e4)w=Array.from(_),w.unshift(i,b),t.splice(...w);else for(b&&t.splice(i,b);x<_.length;)w=_.slice(x,x+1e4),w.unshift(i,0),t.splice(...w),x+=1e4,i+=1e4}function push(t,i){return t.length>0?(splice(t,t.length,0,i),t):i}const M={}.hasOwnProperty;function syntaxExtension(t,i){let b;for(b in i){const _=(M.call(t,b)?t[b]:void 0)||(t[b]={}),C=i[b];let w;if(C)for(w in C){M.call(_,w)||(_[w]=[]);const t=C[w];constructs(_[w],Array.isArray(t)?t:t?[t]:[])}}}function constructs(t,i){let b=-1;const _=[];for(;++bw))return;const b=i.events.length;let C,E,O=b;for(;O--;)if("exit"===i.events[O][0]&&"chunkFlow"===i.events[O][1].type){if(C){E=i.events[O][1].end;break}C=!0}for(exitContainers(x),t=b;t_;){const _=b[C];i.containerState=_[1],_[0].exit.call(i,t)}b.length=_}function closeFlow(){_.write([null]),C=void 0,_=void 0,i.containerState._closeFlow=void 0}}},V={tokenize:function tokenizeContainer(t,i,b){return factorySpace(t,t.attempt(this.parser.constructs.document,i,b),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};const G={tokenize:function tokenizeBlankLine(t,i,b){return function start(i){return markdownSpace(i)?factorySpace(t,after,"linePrefix")(i):after(i)};function after(t){return null===t||markdownLineEnding(t)?i(t):b(t)}},partial:!0};function subtokenize(t){const i={};let b,_,C,w,x,E,O,k=-1;for(;++k=4?i(C):t.interrupt(_.parser.constructs.flow,b,i)(C)}},partial:!0};const Z={tokenize:function initializeFlow(t){const i=this,b=t.attempt(G,(function atBlankEnding(_){if(null===_)return void t.consume(_);return t.enter("lineEndingBlank"),t.consume(_),t.exit("lineEndingBlank"),i.currentConstruct=void 0,b}),t.attempt(this.parser.constructs.flowInitial,afterConstruct,factorySpace(t,t.attempt(this.parser.constructs.flow,afterConstruct,t.attempt(U,afterConstruct)),"linePrefix")));return b;function afterConstruct(_){if(null!==_)return t.enter("lineEnding"),t.consume(_),t.exit("lineEnding"),i.currentConstruct=void 0,b;t.consume(_)}}};const K={resolveAll:createResolver()},X=initializeFactory("string"),$=initializeFactory("text");function initializeFactory(t){return{tokenize:function initializeText(i){const b=this,_=this.parser.constructs[t],C=i.attempt(_,start,notText);return start;function start(t){return atBreak(t)?C(t):notText(t)}function notText(t){if(null!==t)return i.enter("data"),i.consume(t),data;i.consume(t)}function data(t){return atBreak(t)?(i.exit("data"),C(t)):(i.consume(t),data)}function atBreak(t){if(null===t)return!0;const i=_[t];let C=-1;if(i)for(;++C-1){const t=x[0];"string"==typeof t?x[0]=t.slice(_):x.shift()}w>0&&x.push(t[C].slice(0,w))}return x}(x,t)}function now(){const{line:t,column:i,offset:b,_index:C,_bufferIndex:w}=_;return{line:t,column:i,offset:b,_index:C,_bufferIndex:w}}function main(){let t;for(;_._index=3&&(null===w||markdownLineEnding(w))?(t.exit("thematicBreak"),i(w)):b(w)}function sequence(i){return i===_?(t.consume(i),C++,sequence):(t.exit("thematicBreakSequence"),markdownSpace(i)?factorySpace(t,atBreak,"whitespace")(i):atBreak(i))}}};const J={name:"list",tokenize:function tokenizeListStart(t,i,b){const _=this,C=_.events[_.events.length-1];let w=C&&"linePrefix"===C[1].type?C[2].sliceSerialize(C[1],!0).length:0,x=0;return function start(i){const C=_.containerState.type||(42===i||43===i||45===i?"listUnordered":"listOrdered");if("listUnordered"===C?!_.containerState.marker||i===_.containerState.marker:L(i)){if(_.containerState.type||(_.containerState.type=C,t.enter(C,{_container:!0})),"listUnordered"===C)return t.enter("listItemPrefix"),42===i||45===i?t.check(Q,b,atMarker)(i):atMarker(i);if(!_.interrupt||49===i)return t.enter("listItemPrefix"),t.enter("listItemValue"),inside(i)}return b(i)};function inside(i){return L(i)&&++x<10?(t.consume(i),inside):(!_.interrupt||x<2)&&(_.containerState.marker?i===_.containerState.marker:41===i||46===i)?(t.exit("listItemValue"),atMarker(i)):b(i)}function atMarker(i){return t.enter("listItemMarker"),t.consume(i),t.exit("listItemMarker"),_.containerState.marker=_.containerState.marker||i,t.check(G,_.interrupt?b:onBlank,t.attempt(ee,endOfPrefix,otherPrefix))}function onBlank(t){return _.containerState.initialBlankLine=!0,w++,endOfPrefix(t)}function otherPrefix(i){return markdownSpace(i)?(t.enter("listItemPrefixWhitespace"),t.consume(i),t.exit("listItemPrefixWhitespace"),endOfPrefix):b(i)}function endOfPrefix(b){return _.containerState.size=w+_.sliceSerialize(t.exit("listItemPrefix"),!0).length,i(b)}},continuation:{tokenize:function tokenizeListContinuation(t,i,b){const _=this;return _.containerState._closeFlow=void 0,t.check(G,onBlank,notBlank);function onBlank(b){return _.containerState.furtherBlankLines=_.containerState.furtherBlankLines||_.containerState.initialBlankLine,factorySpace(t,i,"listItemIndent",_.containerState.size+1)(b)}function notBlank(b){return _.containerState.furtherBlankLines||!markdownSpace(b)?(_.containerState.furtherBlankLines=void 0,_.containerState.initialBlankLine=void 0,notInCurrentItem(b)):(_.containerState.furtherBlankLines=void 0,_.containerState.initialBlankLine=void 0,t.attempt(te,i,notInCurrentItem)(b))}function notInCurrentItem(C){return _.containerState._closeFlow=!0,_.interrupt=void 0,factorySpace(t,t.attempt(J,i,b),"linePrefix",_.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(C)}}},exit:function tokenizeListEnd(t){t.exit(this.containerState.type)}},ee={tokenize:function tokenizeListItemPrefixWhitespace(t,i,b){const _=this;return factorySpace(t,(function afterPrefix(t){const C=_.events[_.events.length-1];return!markdownSpace(t)&&C&&"listItemPrefixWhitespace"===C[1].type?i(t):b(t)}),"listItemPrefixWhitespace",_.parser.constructs.disable.null.includes("codeIndented")?void 0:5)},partial:!0},te={tokenize:function tokenizeIndent(t,i,b){const _=this;return factorySpace(t,(function afterPrefix(t){const C=_.events[_.events.length-1];return C&&"listItemIndent"===C[1].type&&C[2].sliceSerialize(C[1],!0).length===_.containerState.size?i(t):b(t)}),"listItemIndent",_.containerState.size+1)},partial:!0};const ne={name:"blockQuote",tokenize:function tokenizeBlockQuoteStart(t,i,b){const _=this;return function start(i){if(62===i){const b=_.containerState;return b.open||(t.enter("blockQuote",{_container:!0}),b.open=!0),t.enter("blockQuotePrefix"),t.enter("blockQuoteMarker"),t.consume(i),t.exit("blockQuoteMarker"),after}return b(i)};function after(b){return markdownSpace(b)?(t.enter("blockQuotePrefixWhitespace"),t.consume(b),t.exit("blockQuotePrefixWhitespace"),t.exit("blockQuotePrefix"),i):(t.exit("blockQuotePrefix"),i(b))}},continuation:{tokenize:function tokenizeBlockQuoteContinuation(t,i,b){const _=this;return function contStart(i){if(markdownSpace(i))return factorySpace(t,contBefore,"linePrefix",_.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i);return contBefore(i)};function contBefore(_){return t.attempt(ne,i,b)(_)}}},exit:function exit(t){t.exit("blockQuote")}};function factoryDestination(t,i,b,_,C,w,x,E,O){const k=O||Number.POSITIVE_INFINITY;let P=0;return function start(i){if(60===i)return t.enter(_),t.enter(C),t.enter(w),t.consume(i),t.exit(w),enclosedBefore;if(null===i||32===i||41===i||asciiControl(i))return b(i);return t.enter(_),t.enter(x),t.enter(E),t.enter("chunkString",{contentType:"string"}),raw(i)};function enclosedBefore(b){return 62===b?(t.enter(w),t.consume(b),t.exit(w),t.exit(C),t.exit(_),i):(t.enter(E),t.enter("chunkString",{contentType:"string"}),enclosed(b))}function enclosed(i){return 62===i?(t.exit("chunkString"),t.exit(E),enclosedBefore(i)):null===i||60===i||markdownLineEnding(i)?b(i):(t.consume(i),92===i?enclosedEscape:enclosed)}function enclosedEscape(i){return 60===i||62===i||92===i?(t.consume(i),enclosed):enclosed(i)}function raw(C){return P||null!==C&&41!==C&&!markdownLineEndingOrSpace(C)?P999||null===k||91===k||93===k&&!E||94===k&&!O&&"_hiddenFootnoteSupport"in x.parser.constructs?b(k):93===k?(t.exit(w),t.enter(C),t.consume(k),t.exit(C),t.exit(_),i):markdownLineEnding(k)?(t.enter("lineEnding"),t.consume(k),t.exit("lineEnding"),atBreak):(t.enter("chunkString",{contentType:"string"}),labelInside(k))}function labelInside(i){return null===i||91===i||93===i||markdownLineEnding(i)||O++>999?(t.exit("chunkString"),atBreak(i)):(t.consume(i),E||(E=!markdownSpace(i)),92===i?labelEscape:labelInside)}function labelEscape(i){return 91===i||92===i||93===i?(t.consume(i),O++,labelInside):labelInside(i)}}function factoryTitle(t,i,b,_,C,w){let x;return function start(i){if(34===i||39===i||40===i)return t.enter(_),t.enter(C),t.consume(i),t.exit(C),x=40===i?41:i,begin;return b(i)};function begin(b){return b===x?(t.enter(C),t.consume(b),t.exit(C),t.exit(_),i):(t.enter(w),atBreak(b))}function atBreak(i){return i===x?(t.exit(w),begin(x)):null===i?b(i):markdownLineEnding(i)?(t.enter("lineEnding"),t.consume(i),t.exit("lineEnding"),factorySpace(t,atBreak,"linePrefix")):(t.enter("chunkString",{contentType:"string"}),inside(i))}function inside(i){return i===x||null===i||markdownLineEnding(i)?(t.exit("chunkString"),atBreak(i)):(t.consume(i),92===i?escape:inside)}function escape(i){return i===x||92===i?(t.consume(i),inside):inside(i)}}function factoryWhitespace(t,i){let b;return function start(_){if(markdownLineEnding(_))return t.enter("lineEnding"),t.consume(_),t.exit("lineEnding"),b=!0,start;if(markdownSpace(_))return factorySpace(t,start,b?"linePrefix":"lineSuffix")(_);return i(_)}}function normalizeIdentifier(t){return t.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const re={name:"definition",tokenize:function tokenizeDefinition(t,i,b){const _=this;let C;return function start(i){return t.enter("definition"),function before(i){return factoryLabel.call(_,t,labelAfter,b,"definitionLabel","definitionLabelMarker","definitionLabelString")(i)}(i)};function labelAfter(i){return C=normalizeIdentifier(_.sliceSerialize(_.events[_.events.length-1][1]).slice(1,-1)),58===i?(t.enter("definitionMarker"),t.consume(i),t.exit("definitionMarker"),markerAfter):b(i)}function markerAfter(i){return markdownLineEndingOrSpace(i)?factoryWhitespace(t,destinationBefore)(i):destinationBefore(i)}function destinationBefore(i){return factoryDestination(t,destinationAfter,b,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(i)}function destinationAfter(i){return t.attempt(oe,after,after)(i)}function after(i){return markdownSpace(i)?factorySpace(t,afterWhitespace,"whitespace")(i):afterWhitespace(i)}function afterWhitespace(w){return null===w||markdownLineEnding(w)?(t.exit("definition"),_.parser.defined.push(C),i(w)):b(w)}}},oe={tokenize:function tokenizeTitleBefore(t,i,b){return function titleBefore(i){return markdownLineEndingOrSpace(i)?factoryWhitespace(t,beforeMarker)(i):b(i)};function beforeMarker(i){return factoryTitle(t,titleAfter,b,"definitionTitle","definitionTitleMarker","definitionTitleString")(i)}function titleAfter(i){return markdownSpace(i)?factorySpace(t,titleAfterOptionalWhitespace,"whitespace")(i):titleAfterOptionalWhitespace(i)}function titleAfterOptionalWhitespace(t){return null===t||markdownLineEnding(t)?i(t):b(t)}},partial:!0};const ae={name:"codeIndented",tokenize:function tokenizeCodeIndented(t,i,b){const _=this;return function start(i){return t.enter("codeIndented"),factorySpace(t,afterPrefix,"linePrefix",5)(i)};function afterPrefix(t){const i=_.events[_.events.length-1];return i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?atBreak(t):b(t)}function atBreak(i){return null===i?after(i):markdownLineEnding(i)?t.attempt(ie,atBreak,after)(i):(t.enter("codeFlowValue"),inside(i))}function inside(i){return null===i||markdownLineEnding(i)?(t.exit("codeFlowValue"),atBreak(i)):(t.consume(i),inside)}function after(b){return t.exit("codeIndented"),i(b)}}},ie={tokenize:function tokenizeFurtherStart(t,i,b){const _=this;return furtherStart;function furtherStart(i){return _.parser.lazy[_.now().line]?b(i):markdownLineEnding(i)?(t.enter("lineEnding"),t.consume(i),t.exit("lineEnding"),furtherStart):factorySpace(t,afterPrefix,"linePrefix",5)(i)}function afterPrefix(t){const C=_.events[_.events.length-1];return C&&"linePrefix"===C[1].type&&C[2].sliceSerialize(C[1],!0).length>=4?i(t):markdownLineEnding(t)?furtherStart(t):b(t)}},partial:!0};const le={name:"headingAtx",tokenize:function tokenizeHeadingAtx(t,i,b){let _=0;return function start(i){return t.enter("atxHeading"),function before(i){return t.enter("atxHeadingSequence"),sequenceOpen(i)}(i)};function sequenceOpen(i){return 35===i&&_++<6?(t.consume(i),sequenceOpen):null===i||markdownLineEndingOrSpace(i)?(t.exit("atxHeadingSequence"),atBreak(i)):b(i)}function atBreak(b){return 35===b?(t.enter("atxHeadingSequence"),sequenceFurther(b)):null===b||markdownLineEnding(b)?(t.exit("atxHeading"),i(b)):markdownSpace(b)?factorySpace(t,atBreak,"whitespace")(b):(t.enter("atxHeadingText"),data(b))}function sequenceFurther(i){return 35===i?(t.consume(i),sequenceFurther):(t.exit("atxHeadingSequence"),atBreak(i))}function data(i){return null===i||35===i||markdownLineEndingOrSpace(i)?(t.exit("atxHeadingText"),atBreak(i)):(t.consume(i),data)}},resolve:function resolveHeadingAtx(t,i){let b,_,C=t.length-2,w=3;"whitespace"===t[w][1].type&&(w+=2);C-2>w&&"whitespace"===t[C][1].type&&(C-=2);"atxHeadingSequence"===t[C][1].type&&(w===C-1||C-4>w&&"whitespace"===t[C-2][1].type)&&(C-=w+1===C?2:4);C>w&&(b={type:"atxHeadingText",start:t[w][1].start,end:t[C][1].end},_={type:"chunkText",start:t[w][1].start,end:t[C][1].end,contentType:"text"},splice(t,w,C-w+1,[["enter",b,i],["enter",_,i],["exit",_,i],["exit",b,i]]));return t}};const ue={name:"setextUnderline",tokenize:function tokenizeSetextUnderline(t,i,b){const _=this;let C;return function start(i){let w,x=_.events.length;for(;x--;)if("lineEnding"!==_.events[x][1].type&&"linePrefix"!==_.events[x][1].type&&"content"!==_.events[x][1].type){w="paragraph"===_.events[x][1].type;break}if(!_.parser.lazy[_.now().line]&&(_.interrupt||w))return t.enter("setextHeadingLine"),C=i,function before(i){return t.enter("setextHeadingLineSequence"),inside(i)}(i);return b(i)};function inside(i){return i===C?(t.consume(i),inside):(t.exit("setextHeadingLineSequence"),markdownSpace(i)?factorySpace(t,after,"lineSuffix")(i):after(i))}function after(_){return null===_||markdownLineEnding(_)?(t.exit("setextHeadingLine"),i(_)):b(_)}},resolveTo:function resolveToSetextUnderline(t,i){let b,_,C,w=t.length;for(;w--;)if("enter"===t[w][0]){if("content"===t[w][1].type){b=w;break}"paragraph"===t[w][1].type&&(_=w)}else"content"===t[w][1].type&&t.splice(w,1),C||"definition"!==t[w][1].type||(C=w);const x={type:"setextHeading",start:Object.assign({},t[_][1].start),end:Object.assign({},t[t.length-1][1].end)};t[_][1].type="setextHeadingText",C?(t.splice(_,0,["enter",x,i]),t.splice(C+1,0,["exit",t[b][1],i]),t[b][1].end=Object.assign({},t[C][1].end)):t[b][1]=x;return t.push(["exit",x,i]),t}};const ce=["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","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],se=["pre","script","style","textarea"],de={name:"htmlFlow",tokenize:function tokenizeHtmlFlow(t,i,b){const _=this;let C,w,x,E,O;return function start(i){return function before(i){return t.enter("htmlFlow"),t.enter("htmlFlowData"),t.consume(i),open}(i)};function open(E){return 33===E?(t.consume(E),declarationOpen):47===E?(t.consume(E),w=!0,tagCloseStart):63===E?(t.consume(E),C=3,_.interrupt?i:continuationDeclarationInside):A(E)?(t.consume(E),x=String.fromCharCode(E),tagName):b(E)}function declarationOpen(w){return 45===w?(t.consume(w),C=2,commentOpenInside):91===w?(t.consume(w),C=5,E=0,cdataOpenInside):A(w)?(t.consume(w),C=4,_.interrupt?i:continuationDeclarationInside):b(w)}function commentOpenInside(C){return 45===C?(t.consume(C),_.interrupt?i:continuationDeclarationInside):b(C)}function cdataOpenInside(C){const w="CDATA[";return C===w.charCodeAt(E++)?(t.consume(C),6===E?_.interrupt?i:continuation:cdataOpenInside):b(C)}function tagCloseStart(i){return A(i)?(t.consume(i),x=String.fromCharCode(i),tagName):b(i)}function tagName(E){if(null===E||47===E||62===E||markdownLineEndingOrSpace(E)){const O=47===E,k=x.toLowerCase();return O||w||!se.includes(k)?ce.includes(x.toLowerCase())?(C=6,O?(t.consume(E),basicSelfClosing):_.interrupt?i(E):continuation(E)):(C=7,_.interrupt&&!_.parser.lazy[_.now().line]?b(E):w?completeClosingTagAfter(E):completeAttributeNameBefore(E)):(C=1,_.interrupt?i(E):continuation(E))}return 45===E||R(E)?(t.consume(E),x+=String.fromCharCode(E),tagName):b(E)}function basicSelfClosing(C){return 62===C?(t.consume(C),_.interrupt?i:continuation):b(C)}function completeClosingTagAfter(i){return markdownSpace(i)?(t.consume(i),completeClosingTagAfter):completeEnd(i)}function completeAttributeNameBefore(i){return 47===i?(t.consume(i),completeEnd):58===i||95===i||A(i)?(t.consume(i),completeAttributeName):markdownSpace(i)?(t.consume(i),completeAttributeNameBefore):completeEnd(i)}function completeAttributeName(i){return 45===i||46===i||58===i||95===i||R(i)?(t.consume(i),completeAttributeName):completeAttributeNameAfter(i)}function completeAttributeNameAfter(i){return 61===i?(t.consume(i),completeAttributeValueBefore):markdownSpace(i)?(t.consume(i),completeAttributeNameAfter):completeAttributeNameBefore(i)}function completeAttributeValueBefore(i){return null===i||60===i||61===i||62===i||96===i?b(i):34===i||39===i?(t.consume(i),O=i,completeAttributeValueQuoted):markdownSpace(i)?(t.consume(i),completeAttributeValueBefore):completeAttributeValueUnquoted(i)}function completeAttributeValueQuoted(i){return i===O?(t.consume(i),O=null,completeAttributeValueQuotedAfter):null===i||markdownLineEnding(i)?b(i):(t.consume(i),completeAttributeValueQuoted)}function completeAttributeValueUnquoted(i){return null===i||34===i||39===i||47===i||60===i||61===i||62===i||96===i||markdownLineEndingOrSpace(i)?completeAttributeNameAfter(i):(t.consume(i),completeAttributeValueUnquoted)}function completeAttributeValueQuotedAfter(t){return 47===t||62===t||markdownSpace(t)?completeAttributeNameBefore(t):b(t)}function completeEnd(i){return 62===i?(t.consume(i),completeAfter):b(i)}function completeAfter(i){return null===i||markdownLineEnding(i)?continuation(i):markdownSpace(i)?(t.consume(i),completeAfter):b(i)}function continuation(i){return 45===i&&2===C?(t.consume(i),continuationCommentInside):60===i&&1===C?(t.consume(i),continuationRawTagOpen):62===i&&4===C?(t.consume(i),continuationClose):63===i&&3===C?(t.consume(i),continuationDeclarationInside):93===i&&5===C?(t.consume(i),continuationCdataInside):!markdownLineEnding(i)||6!==C&&7!==C?null===i||markdownLineEnding(i)?(t.exit("htmlFlowData"),continuationStart(i)):(t.consume(i),continuation):(t.exit("htmlFlowData"),t.check(fe,continuationAfter,continuationStart)(i))}function continuationStart(i){return t.check(pe,continuationStartNonLazy,continuationAfter)(i)}function continuationStartNonLazy(i){return t.enter("lineEnding"),t.consume(i),t.exit("lineEnding"),continuationBefore}function continuationBefore(i){return null===i||markdownLineEnding(i)?continuationStart(i):(t.enter("htmlFlowData"),continuation(i))}function continuationCommentInside(i){return 45===i?(t.consume(i),continuationDeclarationInside):continuation(i)}function continuationRawTagOpen(i){return 47===i?(t.consume(i),x="",continuationRawEndTag):continuation(i)}function continuationRawEndTag(i){if(62===i){const b=x.toLowerCase();return se.includes(b)?(t.consume(i),continuationClose):continuation(i)}return A(i)&&x.length<8?(t.consume(i),x+=String.fromCharCode(i),continuationRawEndTag):continuation(i)}function continuationCdataInside(i){return 93===i?(t.consume(i),continuationDeclarationInside):continuation(i)}function continuationDeclarationInside(i){return 62===i?(t.consume(i),continuationClose):45===i&&2===C?(t.consume(i),continuationDeclarationInside):continuation(i)}function continuationClose(i){return null===i||markdownLineEnding(i)?(t.exit("htmlFlowData"),continuationAfter(i)):(t.consume(i),continuationClose)}function continuationAfter(b){return t.exit("htmlFlow"),i(b)}},resolveTo:function resolveToHtmlFlow(t){let i=t.length;for(;i--&&("enter"!==t[i][0]||"htmlFlow"!==t[i][1].type););i>1&&"linePrefix"===t[i-2][1].type&&(t[i][1].start=t[i-2][1].start,t[i+1][1].start=t[i-2][1].start,t.splice(i-2,2));return t},concrete:!0},fe={tokenize:function tokenizeBlankLineBefore(t,i,b){return function start(_){return t.enter("lineEnding"),t.consume(_),t.exit("lineEnding"),t.attempt(G,i,b)}},partial:!0},pe={tokenize:function tokenizeNonLazyContinuationStart(t,i,b){const _=this;return function start(i){if(markdownLineEnding(i))return t.enter("lineEnding"),t.consume(i),t.exit("lineEnding"),after;return b(i)};function after(t){return _.parser.lazy[_.now().line]?b(t):i(t)}},partial:!0};const me={tokenize:function tokenizeNonLazyContinuation(t,i,b){const _=this;return function start(i){if(null===i)return b(i);return t.enter("lineEnding"),t.consume(i),t.exit("lineEnding"),lineStart};function lineStart(t){return _.parser.lazy[_.now().line]?b(t):i(t)}},partial:!0},he={name:"codeFenced",tokenize:function tokenizeCodeFenced(t,i,b){const _=this,C={tokenize:function tokenizeCloseStart(t,i,b){let C=0;return startBefore;function startBefore(i){return t.enter("lineEnding"),t.consume(i),t.exit("lineEnding"),start}function start(i){return t.enter("codeFencedFence"),markdownSpace(i)?factorySpace(t,beforeSequenceClose,"linePrefix",_.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i):beforeSequenceClose(i)}function beforeSequenceClose(i){return i===w?(t.enter("codeFencedFenceSequence"),sequenceClose(i)):b(i)}function sequenceClose(i){return i===w?(C++,t.consume(i),sequenceClose):C>=E?(t.exit("codeFencedFenceSequence"),markdownSpace(i)?factorySpace(t,sequenceCloseAfter,"whitespace")(i):sequenceCloseAfter(i)):b(i)}function sequenceCloseAfter(_){return null===_||markdownLineEnding(_)?(t.exit("codeFencedFence"),i(_)):b(_)}},partial:!0};let w,x=0,E=0;return function start(i){return function beforeSequenceOpen(i){const b=_.events[_.events.length-1];return x=b&&"linePrefix"===b[1].type?b[2].sliceSerialize(b[1],!0).length:0,w=i,t.enter("codeFenced"),t.enter("codeFencedFence"),t.enter("codeFencedFenceSequence"),sequenceOpen(i)}(i)};function sequenceOpen(i){return i===w?(E++,t.consume(i),sequenceOpen):E<3?b(i):(t.exit("codeFencedFenceSequence"),markdownSpace(i)?factorySpace(t,infoBefore,"whitespace")(i):infoBefore(i))}function infoBefore(b){return null===b||markdownLineEnding(b)?(t.exit("codeFencedFence"),_.interrupt?i(b):t.check(me,atNonLazyBreak,after)(b)):(t.enter("codeFencedFenceInfo"),t.enter("chunkString",{contentType:"string"}),info(b))}function info(i){return null===i||markdownLineEnding(i)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),infoBefore(i)):markdownSpace(i)?(t.exit("chunkString"),t.exit("codeFencedFenceInfo"),factorySpace(t,metaBefore,"whitespace")(i)):96===i&&i===w?b(i):(t.consume(i),info)}function metaBefore(i){return null===i||markdownLineEnding(i)?infoBefore(i):(t.enter("codeFencedFenceMeta"),t.enter("chunkString",{contentType:"string"}),meta(i))}function meta(i){return null===i||markdownLineEnding(i)?(t.exit("chunkString"),t.exit("codeFencedFenceMeta"),infoBefore(i)):96===i&&i===w?b(i):(t.consume(i),meta)}function atNonLazyBreak(i){return t.attempt(C,after,contentBefore)(i)}function contentBefore(i){return t.enter("lineEnding"),t.consume(i),t.exit("lineEnding"),contentStart}function contentStart(i){return x>0&&markdownSpace(i)?factorySpace(t,beforeContentChunk,"linePrefix",x+1)(i):beforeContentChunk(i)}function beforeContentChunk(i){return null===i||markdownLineEnding(i)?t.check(me,atNonLazyBreak,after)(i):(t.enter("codeFlowValue"),contentChunk(i))}function contentChunk(i){return null===i||markdownLineEnding(i)?(t.exit("codeFlowValue"),beforeContentChunk(i)):(t.consume(i),contentChunk)}function after(b){return t.exit("codeFenced"),i(b)}},concrete:!0};const ge=document.createElement("i");function decodeNamedCharacterReference(t){const i="&"+t+";";ge.innerHTML=i;const b=ge.textContent;return(59!==b.charCodeAt(b.length-1)||"semi"===t)&&(b!==i&&b)}const ye={name:"characterReference",tokenize:function tokenizeCharacterReference(t,i,b){const _=this;let C,w,x=0;return function start(i){return t.enter("characterReference"),t.enter("characterReferenceMarker"),t.consume(i),t.exit("characterReferenceMarker"),open};function open(i){return 35===i?(t.enter("characterReferenceMarkerNumeric"),t.consume(i),t.exit("characterReferenceMarkerNumeric"),numeric):(t.enter("characterReferenceValue"),C=31,w=R,value(i))}function numeric(i){return 88===i||120===i?(t.enter("characterReferenceMarkerHexadecimal"),t.consume(i),t.exit("characterReferenceMarkerHexadecimal"),t.enter("characterReferenceValue"),C=6,w=B,value):(t.enter("characterReferenceValue"),C=7,w=L,value(i))}function value(E){if(59===E&&x){const C=t.exit("characterReferenceValue");return w!==R||decodeNamedCharacterReference(_.sliceSerialize(C))?(t.enter("characterReferenceMarker"),t.consume(E),t.exit("characterReferenceMarker"),t.exit("characterReference"),i):b(E)}return w(E)&&x++1&&t[P][1].end.offset-t[P][1].start.offset>1?2:1;const S=Object.assign({},t[b][1].end),I=Object.assign({},t[P][1].start);movePoint(S,-E),movePoint(I,E),w={type:E>1?"strongSequence":"emphasisSequence",start:S,end:Object.assign({},t[b][1].end)},x={type:E>1?"strongSequence":"emphasisSequence",start:Object.assign({},t[P][1].start),end:I},C={type:E>1?"strongText":"emphasisText",start:Object.assign({},t[b][1].end),end:Object.assign({},t[P][1].start)},_={type:E>1?"strong":"emphasis",start:Object.assign({},w.start),end:Object.assign({},x.end)},t[b][1].end=Object.assign({},w.start),t[P][1].start=Object.assign({},x.end),O=[],t[b][1].end.offset-t[b][1].start.offset&&(O=push(O,[["enter",t[b][1],i],["exit",t[b][1],i]])),O=push(O,[["enter",_,i],["enter",w,i],["exit",w,i],["enter",C,i]]),O=push(O,resolveAll(i.parser.constructs.insideSpan.null,t.slice(b+1,P),i)),O=push(O,[["exit",C,i],["enter",x,i],["exit",x,i],["exit",_,i]]),t[P][1].end.offset-t[P][1].start.offset?(k=2,O=push(O,[["enter",t[P][1],i],["exit",t[P][1],i]])):k=0,splice(t,b-1,P-b+3,O),P=b+O.length-k-2;break}P=-1;for(;++P13&&b<32||b>126&&b<160||b>55295&&b<57344||b>64975&&b<65008||65535==(65535&b)||65534==(65535&b)||b>1114111?"":String.fromCharCode(b)}const He=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function decode(t,i,b){if(i)return i;if(35===b.charCodeAt(0)){const t=b.charCodeAt(1),i=120===t||88===t;return decodeNumericCharacterReference(b.slice(i?2:1),i?16:10)}return decodeNamedCharacterReference(b)||t}const qe={}.hasOwnProperty,fromMarkdown=function(t,i,b){return"string"!=typeof i&&(b=i,i=void 0),function compiler(t){const i={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:opener(link),autolinkProtocol:onenterdata,autolinkEmail:onenterdata,atxHeading:opener(heading),blockQuote:opener(blockQuote),characterEscape:onenterdata,characterReference:onenterdata,codeFenced:opener(codeFlow),codeFencedFenceInfo:buffer,codeFencedFenceMeta:buffer,codeIndented:opener(codeFlow,buffer),codeText:opener(codeText,buffer),codeTextData:onenterdata,data:onenterdata,codeFlowValue:onenterdata,definition:opener(definition),definitionDestinationString:buffer,definitionLabelString:buffer,definitionTitleString:buffer,emphasis:opener(emphasis),hardBreakEscape:opener(hardBreak),hardBreakTrailing:opener(hardBreak),htmlFlow:opener(html,buffer),htmlFlowData:onenterdata,htmlText:opener(html,buffer),htmlTextData:onenterdata,image:opener(image),label:buffer,link:opener(link),listItem:opener(listItem),listItemValue:onenterlistitemvalue,listOrdered:opener(list,onenterlistordered),listUnordered:opener(list),paragraph:opener(paragraph),reference:onenterreference,referenceString:buffer,resourceDestinationString:buffer,resourceTitleString:buffer,setextHeading:opener(heading),strong:opener(strong),thematicBreak:opener(thematicBreak)},exit:{atxHeading:closer(),atxHeadingSequence:onexitatxheadingsequence,autolink:closer(),autolinkEmail:onexitautolinkemail,autolinkProtocol:onexitautolinkprotocol,blockQuote:closer(),characterEscapeValue:onexitdata,characterReferenceMarkerHexadecimal:onexitcharacterreferencemarker,characterReferenceMarkerNumeric:onexitcharacterreferencemarker,characterReferenceValue:onexitcharacterreferencevalue,codeFenced:closer(onexitcodefenced),codeFencedFence:onexitcodefencedfence,codeFencedFenceInfo:onexitcodefencedfenceinfo,codeFencedFenceMeta:onexitcodefencedfencemeta,codeFlowValue:onexitdata,codeIndented:closer(onexitcodeindented),codeText:closer(onexitcodetext),codeTextData:onexitdata,data:onexitdata,definition:closer(),definitionDestinationString:onexitdefinitiondestinationstring,definitionLabelString:onexitdefinitionlabelstring,definitionTitleString:onexitdefinitiontitlestring,emphasis:closer(),hardBreakEscape:closer(onexithardbreak),hardBreakTrailing:closer(onexithardbreak),htmlFlow:closer(onexithtmlflow),htmlFlowData:onexitdata,htmlText:closer(onexithtmltext),htmlTextData:onexitdata,image:closer(onexitimage),label:onexitlabel,labelText:onexitlabeltext,lineEnding:onexitlineending,link:closer(onexitlink),listItem:closer(),listOrdered:closer(),listUnordered:closer(),paragraph:closer(),referenceString:onexitreferencestring,resourceDestinationString:onexitresourcedestinationstring,resourceTitleString:onexitresourcetitlestring,resource:onexitresource,setextHeading:closer(onexitsetextheading),setextHeadingLineSequence:onexitsetextheadinglinesequence,setextHeadingText:onexitsetextheadingtext,strong:closer(),thematicBreak:closer()}};configure(i,(t||{}).mdastExtensions||[]);const b={};return compile;function compile(t){let b={type:"root",children:[]};const _={stack:[b],tokenStack:[],config:i,enter,exit,buffer,resume,setData,getData},C=[];let w=-1;for(;++w0){const t=_.tokenStack[_.tokenStack.length-1];(t[1]||defaultOnError).call(_,void 0,t[0])}for(b.position={start:lib_point(t.length>0?t[0][1].start:{line:1,column:1,offset:0}),end:lib_point(t.length>0?t[t.length-2][1].end:{line:1,column:1,offset:0})},w=-1;++w{const b=this.data("settings");return fromMarkdown(i,Object.assign({},b,t,{extensions:this.data("micromarkExtensions")||[],mdastExtensions:this.data("fromMarkdownExtensions")||[]}))}})}function normalizeUri(t){const i=[];let b=-1,_=0,C=0;for(;++b55295&&w<57344){const i=t.charCodeAt(b+1);w<56320&&i>56319&&i<57344?(x=String.fromCharCode(w,i),C=1):x=""}else x=String.fromCharCode(w);x&&(i.push(t.slice(_,b),encodeURIComponent(x)),_=b+C+1,x=""),C&&(b+=C,C=0)}return i.join("")+t.slice(_)}const convert=function(t){if(null==t)return ok;if("string"==typeof t)return function typeFactory(t){return castFactory(type);function type(i){return i&&i.type===t}}(t);if("object"==typeof t)return Array.isArray(t)?function anyFactory(t){const i=[];let b=-1;for(;++b":"")+")"})}return visit;function visit(){let O,k,P,S=[];if((!i||C(t,x,E[E.length-1]||null))&&(S=function toResult(t){if(Array.isArray(t))return t;if("number"==typeof t)return[true,t];return[t]}(b(t,E)),false===S[0]))return S;if(t.children&&"skip"!==S[0])for(k=(_?t.children.length:-1)+w,P=E.concat(t);k>-1&&k-1?b.offset:null}}}const Ge={}.hasOwnProperty;function clean(t){return String(t||"").toUpperCase()}function footnoteReference(t,i){const b=String(i.identifier).toUpperCase(),_=normalizeUri(b.toLowerCase()),C=t.footnoteOrder.indexOf(b);let w;-1===C?(t.footnoteOrder.push(b),t.footnoteCounts[b]=1,w=t.footnoteOrder.length):(t.footnoteCounts[b]++,w=C+1);const x=t.footnoteCounts[b],E={type:"element",tagName:"a",properties:{href:"#"+t.clobberPrefix+"fn-"+_,id:t.clobberPrefix+"fnref-"+_+(x>1?"-"+x:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(w)}]};t.patch(i,E);const O={type:"element",tagName:"sup",properties:{},children:[E]};return t.patch(i,O),t.applyData(i,O)}function revert(t,i){const b=i.referenceType;let _="]";if("collapsed"===b?_+="[]":"full"===b&&(_+="["+(i.label||i.identifier)+"]"),"imageReference"===i.type)return{type:"text",value:"!["+i.alt+_};const C=t.all(i),w=C[0];w&&"text"===w.type?w.value="["+w.value:C.unshift({type:"text",value:"["});const x=C[C.length-1];return x&&"text"===x.type?x.value+=_:C.push({type:"text",value:_}),C}function listItemLoose(t){const i=t.spread;return null==i?t.children.length>1:i}const Ue=9,Ye=32;function trimLines(t){const i=String(t),b=/\r?\n|\r/g;let _=b.exec(i),C=0;const w=[];for(;_;)w.push(trimLine(i.slice(C,_.index),C>0,!0),_[0]),C=_.index+_[0].length,_=b.exec(i);return w.push(trimLine(i.slice(C),C>0,!1)),w.join("")}function trimLine(t,i,b){let _=0,C=t.length;if(i){let i=t.codePointAt(_);for(;i===Ue||i===Ye;)_++,i=t.codePointAt(_)}if(b){let i=t.codePointAt(C-1);for(;i===Ue||i===Ye;)C--,i=t.codePointAt(C-1)}return C>_?t.slice(_,C):""}const Ze={blockquote:function blockquote(t,i){const b={type:"element",tagName:"blockquote",properties:{},children:t.wrap(t.all(i),!0)};return t.patch(i,b),t.applyData(i,b)},break:function hardBreak(t,i){const b={type:"element",tagName:"br",properties:{},children:[]};return t.patch(i,b),[t.applyData(i,b),{type:"text",value:"\n"}]},code:function code(t,i){const b=i.value?i.value+"\n":"",_=i.lang?i.lang.match(/^[^ \t]+(?=[ \t]|$)/):null,C={};_&&(C.className=["language-"+_]);let w={type:"element",tagName:"code",properties:C,children:[{type:"text",value:b}]};return i.meta&&(w.data={meta:i.meta}),t.patch(i,w),w=t.applyData(i,w),w={type:"element",tagName:"pre",properties:{},children:[w]},t.patch(i,w),w},delete:function strikethrough(t,i){const b={type:"element",tagName:"del",properties:{},children:t.all(i)};return t.patch(i,b),t.applyData(i,b)},emphasis:function emphasis(t,i){const b={type:"element",tagName:"em",properties:{},children:t.all(i)};return t.patch(i,b),t.applyData(i,b)},footnoteReference,footnote:function footnote(t,i){const b=t.footnoteById;let _=1;for(;_ in b;)_++;const C=String(_);return b[C]={type:"footnoteDefinition",identifier:C,children:[{type:"paragraph",children:i.children}],position:i.position},footnoteReference(t,{type:"footnoteReference",identifier:C,position:i.position})},heading:function heading(t,i){const b={type:"element",tagName:"h"+i.depth,properties:{},children:t.all(i)};return t.patch(i,b),t.applyData(i,b)},html:function html(t,i){if(t.dangerous){const b={type:"raw",value:i.value};return t.patch(i,b),t.applyData(i,b)}return null},imageReference:function imageReference(t,i){const b=t.definition(i.identifier);if(!b)return revert(t,i);const _={src:normalizeUri(b.url||""),alt:i.alt};null!==b.title&&void 0!==b.title&&(_.title=b.title);const C={type:"element",tagName:"img",properties:_,children:[]};return t.patch(i,C),t.applyData(i,C)},image:function image_image(t,i){const b={src:normalizeUri(i.url)};null!==i.alt&&void 0!==i.alt&&(b.alt=i.alt),null!==i.title&&void 0!==i.title&&(b.title=i.title);const _={type:"element",tagName:"img",properties:b,children:[]};return t.patch(i,_),t.applyData(i,_)},inlineCode:function inlineCode(t,i){const b={type:"text",value:i.value.replace(/\r?\n|\r/g," ")};t.patch(i,b);const _={type:"element",tagName:"code",properties:{},children:[b]};return t.patch(i,_),t.applyData(i,_)},linkReference:function linkReference(t,i){const b=t.definition(i.identifier);if(!b)return revert(t,i);const _={href:normalizeUri(b.url||"")};null!==b.title&&void 0!==b.title&&(_.title=b.title);const C={type:"element",tagName:"a",properties:_,children:t.all(i)};return t.patch(i,C),t.applyData(i,C)},link:function link_link(t,i){const b={href:normalizeUri(i.url)};null!==i.title&&void 0!==i.title&&(b.title=i.title);const _={type:"element",tagName:"a",properties:b,children:t.all(i)};return t.patch(i,_),t.applyData(i,_)},listItem:function listItem(t,i,b){const _=t.all(i),C=b?function listLoose(t){let i=!1;if("list"===t.type){i=t.spread||!1;const b=t.children;let _=-1;for(;!i&&++_0&&b.children.unshift({type:"text",value:" "}),b.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:i.checked,disabled:!0},children:[]}),w.className=["task-list-item"]}let E=-1;for(;++E<_.length;){const t=_[E];(C||0!==E||"element"!==t.type||"p"!==t.tagName)&&x.push({type:"text",value:"\n"}),"element"!==t.type||"p"!==t.tagName||C?x.push(t):x.push(...t.children)}const O=_[_.length-1];O&&(C||"element"!==O.type||"p"!==O.tagName)&&x.push({type:"text",value:"\n"});const k={type:"element",tagName:"li",properties:w,children:x};return t.patch(i,k),t.applyData(i,k)},list:function list_list(t,i){const b={},_=t.all(i);let C=-1;for("number"==typeof i.start&&1!==i.start&&(b.start=i.start);++C<_.length;){const t=_[C];if("element"===t.type&&"li"===t.tagName&&t.properties&&Array.isArray(t.properties.className)&&t.properties.className.includes("task-list-item")){b.className=["contains-task-list"];break}}const w={type:"element",tagName:i.ordered?"ol":"ul",properties:b,children:t.wrap(_,!0)};return t.patch(i,w),t.applyData(i,w)},paragraph:function paragraph(t,i){const b={type:"element",tagName:"p",properties:{},children:t.all(i)};return t.patch(i,b),t.applyData(i,b)},root:function root(t,i){const b={type:"root",children:t.wrap(t.all(i))};return t.patch(i,b),t.applyData(i,b)},strong:function strong(t,i){const b={type:"element",tagName:"strong",properties:{},children:t.all(i)};return t.patch(i,b),t.applyData(i,b)},table:function table(t,i){const b=t.all(i),_=b.shift(),C=[];if(_){const b={type:"element",tagName:"thead",properties:{},children:t.wrap([_],!0)};t.patch(i.children[0],b),C.push(b)}if(b.length>0){const _={type:"element",tagName:"tbody",properties:{},children:t.wrap(b,!0)},w=ze(i.children[1]),x=Ve(i.children[i.children.length-1]);w.line&&x.line&&(_.position={start:w,end:x}),C.push(_)}const w={type:"element",tagName:"table",properties:{},children:t.wrap(C,!0)};return t.patch(i,w),t.applyData(i,w)},tableCell:function tableCell(t,i){const b={type:"element",tagName:"td",properties:{},children:t.all(i)};return t.patch(i,b),t.applyData(i,b)},tableRow:function tableRow(t,i,b){const _=b?b.children:void 0,C=0===(_?_.indexOf(i):1)?"th":"td",w=b&&"table"===b.type?b.align:void 0,x=w?w.length:i.children.length;let E=-1;const O=[];for(;++E{const b=clean(t.identifier);b&&!Ge.call(i,b)&&(i[b]=t)})),function definition(t){const b=clean(t);return b&&Ge.call(i,b)?i[b]:null}}(t),state.footnoteById=C,state.footnoteOrder=[],state.footnoteCounts={},state.patch=patch,state.applyData=applyData,state.one=function oneBound(t,i){return state_one(state,t,i)},state.all=function allBound(t){return state_all(state,t)},state.wrap=state_wrap,state.augment=augment,visit(t,"footnoteDefinition",(t=>{const i=String(t.identifier).toUpperCase();Ke.call(C,i)||(C[i]=t)})),state;function augment(t,i){if(t&&"data"in t&&t.data){const b=t.data;b.hName&&("element"!==i.type&&(i={type:"element",tagName:"",properties:{},children:[]}),i.tagName=b.hName),"element"===i.type&&b.hProperties&&(i.properties={...i.properties,...b.hProperties}),"children"in i&&i.children&&b.hChildren&&(i.children=b.hChildren)}if(t){const b="type"in t?t:{position:t};(function generated(t){return!(t&&t.position&&t.position.start&&t.position.start.line&&t.position.start.column&&t.position.end&&t.position.end.line&&t.position.end.column)})(b)||(i.position={start:ze(b),end:Ve(b)})}return i}function state(t,i,b,_){return Array.isArray(b)&&(_=b,b={}),augment(t,{type:"element",tagName:i,properties:b||{},children:_||[]})}}function patch(t,i){t.position&&(i.position=function lib_position(t){return{start:ze(t),end:Ve(t)}}(t))}function applyData(t,i){let b=i;if(t&&t.data){const i=t.data.hName,_=t.data.hChildren,C=t.data.hProperties;"string"==typeof i&&("element"===b.type?b.tagName=i:b={type:"element",tagName:i,properties:{},children:[]}),"element"===b.type&&C&&(b.properties={...b.properties,...C}),"children"in b&&b.children&&null!=_&&(b.children=_)}return b}function state_one(t,i,b){const _=i&&i.type;if(!_)throw new Error("Expected node, got `"+i+"`");return Ke.call(t.handlers,_)?t.handlers[_](t,i,b):t.passThrough&&t.passThrough.includes(_)?"children"in i?{...i,children:state_all(t,i)}:i:t.unknownHandler?t.unknownHandler(t,i,b):function defaultUnknownHandler(t,i){const b=i.data||{},_=!("value"in i)||Ke.call(b,"hProperties")||Ke.call(b,"hChildren")?{type:"element",tagName:"div",properties:{},children:state_all(t,i)}:{type:"text",value:i.value};return t.patch(i,_),t.applyData(i,_)}(t,i)}function state_all(t,i){const b=[];if("children"in i){const _=i.children;let C=-1;for(;++C<_.length;){const w=state_one(t,_[C],i);if(w){if(C&&"break"===_[C-1].type&&(Array.isArray(w)||"text"!==w.type||(w.value=w.value.replace(/^\s+/,"")),!Array.isArray(w)&&"element"===w.type)){const t=w.children[0];t&&"text"===t.type&&(t.value=t.value.replace(/^\s+/,""))}Array.isArray(w)?b.push(...w):b.push(w)}}}return b}function state_wrap(t,i){const b=[];let _=-1;for(i&&b.push({type:"text",value:"\n"});++_0&&b.push({type:"text",value:"\n"}),b}function toHast(t,i){const b=createState(t,i),_=b.one(t,null),C=function footer(t){const i=[];let b=-1;for(;++b1?"-"+E:""),dataFootnoteBackref:!0,className:["data-footnote-backref"],ariaLabel:t.footnoteBackLabel},children:[{type:"text",value:"↩"}]};E>1&&i.children.push({type:"element",tagName:"sup",children:[{type:"text",value:String(E)}]}),O.length>0&&O.push({type:"text",value:" "}),O.push(i)}const k=C[C.length-1];if(k&&"element"===k.type&&"p"===k.tagName){const t=k.children[k.children.length-1];t&&"text"===t.type?t.value+=" ":k.children.push({type:"text",value:" "}),k.children.push(...O)}else C.push(...O);const P={type:"element",tagName:"li",properties:{id:t.clobberPrefix+"fn-"+x},children:t.wrap(C,!0)};t.patch(_,P),i.push(P)}if(0!==i.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:t.footnoteLabelTagName,properties:{...JSON.parse(JSON.stringify(t.footnoteLabelProperties)),id:"footnote-label"},children:[{type:"text",value:t.footnoteLabel}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:t.wrap(i,!0)},{type:"text",value:"\n"}]}}(b);return C&&_.children.push({type:"text",value:"\n"},C),Array.isArray(_)?{type:"root",children:_}:_}const lib=function(t,i){return t&&"run"in t?function bridge(t,i){return(b,_,C)=>{t.run(toHast(b,i),_,(t=>{C(t)}))}}(t,i):function mutate(t){return i=>toHast(i,t)}(t||i)};var Xe=b(23615);class Schema{constructor(t,i,b){this.property=t,this.normal=i,b&&(this.space=b)}}function merge(t,i){const b={},_={};let C=-1;for(;++C"xlink:"+i.slice(5).toLowerCase(),properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),ut=create({space:"xml",transform:(t,i)=>"xml:"+i.slice(3).toLowerCase(),properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function caseSensitiveTransform(t,i){return i in t?t[i]:i}function caseInsensitiveTransform(t,i){return caseSensitiveTransform(t,i.toLowerCase())}const ct=create({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:caseInsensitiveTransform,properties:{xmlns:null,xmlnsXLink:null}}),st=create({transform:(t,i)=>"role"===i?i:"aria-"+i.slice(4).toLowerCase(),properties:{ariaActiveDescendant:null,ariaAtomic:Je,ariaAutoComplete:null,ariaBusy:Je,ariaChecked:Je,ariaColCount:tt,ariaColIndex:tt,ariaColSpan:tt,ariaControls:nt,ariaCurrent:null,ariaDescribedBy:nt,ariaDetails:null,ariaDisabled:Je,ariaDropEffect:nt,ariaErrorMessage:null,ariaExpanded:Je,ariaFlowTo:nt,ariaGrabbed:Je,ariaHasPopup:null,ariaHidden:Je,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:nt,ariaLevel:tt,ariaLive:null,ariaModal:Je,ariaMultiLine:Je,ariaMultiSelectable:Je,ariaOrientation:null,ariaOwns:nt,ariaPlaceholder:null,ariaPosInSet:tt,ariaPressed:Je,ariaReadOnly:Je,ariaRelevant:null,ariaRequired:Je,ariaRoleDescription:nt,ariaRowCount:tt,ariaRowIndex:tt,ariaRowSpan:tt,ariaSelected:Je,ariaSetSize:tt,ariaSort:null,ariaValueMax:tt,ariaValueMin:tt,ariaValueNow:tt,ariaValueText:null,role:null}}),dt=create({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:caseInsensitiveTransform,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:rt,acceptCharset:nt,accessKey:nt,action:null,allow:null,allowFullScreen:Qe,allowPaymentRequest:Qe,allowUserMedia:Qe,alt:null,as:null,async:Qe,autoCapitalize:null,autoComplete:nt,autoFocus:Qe,autoPlay:Qe,capture:Qe,charSet:null,checked:Qe,cite:null,className:nt,cols:tt,colSpan:null,content:null,contentEditable:Je,controls:Qe,controlsList:nt,coords:tt|rt,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Qe,defer:Qe,dir:null,dirName:null,disabled:Qe,download:et,draggable:Je,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Qe,formTarget:null,headers:nt,height:tt,hidden:Qe,high:tt,href:null,hrefLang:null,htmlFor:nt,httpEquiv:nt,id:null,imageSizes:null,imageSrcSet:null,inputMode:null,integrity:null,is:null,isMap:Qe,itemId:null,itemProp:nt,itemRef:nt,itemScope:Qe,itemType:nt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Qe,low:tt,manifest:null,max:null,maxLength:tt,media:null,method:null,min:null,minLength:tt,multiple:Qe,muted:Qe,name:null,nonce:null,noModule:Qe,noValidate:Qe,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Qe,optimum:tt,pattern:null,ping:nt,placeholder:null,playsInline:Qe,poster:null,preload:null,readOnly:Qe,referrerPolicy:null,rel:nt,required:Qe,reversed:Qe,rows:tt,rowSpan:tt,sandbox:nt,scope:null,scoped:Qe,seamless:Qe,selected:Qe,shape:null,size:tt,sizes:null,slot:null,span:tt,spellCheck:Je,src:null,srcDoc:null,srcLang:null,srcSet:null,start:tt,step:null,style:null,tabIndex:tt,target:null,title:null,translate:null,type:null,typeMustMatch:Qe,useMap:null,value:Je,width:tt,wrap:null,align:null,aLink:null,archive:nt,axis:null,background:null,bgColor:null,border:tt,borderColor:null,bottomMargin:tt,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Qe,declare:Qe,event:null,face:null,frame:null,frameBorder:null,hSpace:tt,leftMargin:tt,link:null,longDesc:null,lowSrc:null,marginHeight:tt,marginWidth:tt,noResize:Qe,noHref:Qe,noShade:Qe,noWrap:Qe,object:null,profile:null,prompt:null,rev:null,rightMargin:tt,rules:null,scheme:null,scrolling:Je,standby:null,summary:null,text:null,topMargin:tt,valueType:null,version:null,vAlign:null,vLink:null,vSpace:tt,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Qe,disableRemotePlayback:Qe,prefix:null,property:null,results:tt,security:null,unselectable:null}}),ft=create({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:caseSensitiveTransform,properties:{about:ot,accentHeight:tt,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:tt,amplitude:tt,arabicForm:null,ascent:tt,attributeName:null,attributeType:null,azimuth:tt,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:tt,by:null,calcMode:null,capHeight:tt,className:nt,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:tt,diffuseConstant:tt,direction:null,display:null,dur:null,divisor:tt,dominantBaseline:null,download:Qe,dx:null,dy:null,edgeMode:null,editable:null,elevation:tt,enableBackground:null,end:null,event:null,exponent:tt,externalResourcesRequired:null,fill:null,fillOpacity:tt,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:rt,g2:rt,glyphName:rt,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:tt,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:tt,horizOriginX:tt,horizOriginY:tt,id:null,ideographic:tt,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:tt,k:tt,k1:tt,k2:tt,k3:tt,k4:tt,kernelMatrix:ot,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:tt,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:tt,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:tt,overlineThickness:tt,paintOrder:null,panose1:null,path:null,pathLength:tt,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:nt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:tt,pointsAtY:tt,pointsAtZ:tt,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:ot,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:ot,rev:ot,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:ot,requiredFeatures:ot,requiredFonts:ot,requiredFormats:ot,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:tt,specularExponent:tt,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:tt,strikethroughThickness:tt,string:null,stroke:null,strokeDashArray:ot,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:tt,strokeOpacity:tt,strokeWidth:null,style:null,surfaceScale:tt,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:ot,tabIndex:tt,tableValues:null,target:null,targetX:tt,targetY:tt,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:ot,to:null,transform:null,u1:null,u2:null,underlinePosition:tt,underlineThickness:tt,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:tt,values:null,vAlphabetic:tt,vMathematical:tt,vectorEffect:null,vHanging:tt,vIdeographic:tt,version:null,vertAdvY:tt,vertOriginX:tt,vertOriginY:tt,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:tt,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),pt=merge([ut,lt,ct,st,dt],"html"),mt=merge([ut,lt,ct,st,ft],"svg");function rehypeFilter(t){if(t.allowedElements&&t.disallowedElements)throw new TypeError("Only one of `allowedElements` and `disallowedElements` should be defined");if(t.allowedElements||t.disallowedElements||t.allowElement)return i=>{visit(i,"element",((i,b,_)=>{const C=_;let w;if(t.allowedElements?w=!t.allowedElements.includes(i.tagName):t.disallowedElements&&(w=t.disallowedElements.includes(i.tagName)),!w&&t.allowElement&&"number"==typeof b&&(w=!t.allowElement(i,b,C)),w&&"number"==typeof b)return t.unwrapDisallowed&&i.children?C.children.splice(b,1,...i.children):C.children.splice(b,1),b}))}}var ht=b(19185);function whitespace(t){const i=t&&"object"==typeof t&&"text"===t.type?t.value||"":t;return"string"==typeof i&&""===i.replace(/[ \t\n\f\r]/g,"")}const gt=/^data[-\w.:]+$/i,yt=/-[a-z]/g,vt=/[A-Z]/g;function kebab(t){return"-"+t.toLowerCase()}function camelcase(t){return t.charAt(1).toUpperCase()}const bt={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};const _t=b(55862),Ct={}.hasOwnProperty,wt=new Set(["table","thead","tbody","tfoot","tr"]);function childrenToReact(t,i){const b=[];let _,C=-1;for(;++C0?x.createElement(j,k,I):x.createElement(j,k)}function getElementsBeforeCount(t,i){let b=-1,_=0;for(;++b4&&"data"===b.slice(0,4)&>.test(i)){if("-"===i.charAt(4)){const t=i.slice(5).replace(yt,camelcase);_="data"+t.charAt(0).toUpperCase()+t.slice(1)}else{const t=i.slice(4);if(!yt.test(t)){let b=t.replace(vt,kebab);"-"!==b.charAt(0)&&(b="-"+b),i="data"+b}}C=DefinedInfo}return new C(_,i)}(_.schema,i);let w=b;null!=w&&w==w&&(Array.isArray(w)&&(w=C.commaSeparated?function comma_separated_tokens_stringify(t,i){const b=i||{};return(""===t[t.length-1]?[...t,""]:t).join((b.padRight?" ":"")+","+(!1===b.padLeft?"":" ")).trim()}(w):function stringify(t){return t.join(" ").trim()}(w)),"style"===C.property&&"string"==typeof w&&(w=function parseStyle(t){const i={};try{_t(t,iterator)}catch{}return i;function iterator(t,b){const _="-ms-"===t.slice(0,4)?`ms-${t.slice(4)}`:t;i[_.replace(/-([a-z])/g,styleReplacer)]=b}}(w)),C.space&&C.property?t[Ct.call(bt,C.property)?bt[C.property]:C.property]=w:C.attribute&&(t[C.attribute]=w))}function styleReplacer(t,i){return i.toUpperCase()}const xt={}.hasOwnProperty,Et="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Ot={plugins:{to:"remarkPlugins",id:"change-plugins-to-remarkplugins"},renderers:{to:"components",id:"change-renderers-to-components"},astPlugins:{id:"remove-buggy-html-in-markdown-parser"},allowDangerousHtml:{id:"remove-buggy-html-in-markdown-parser"},escapeHtml:{id:"remove-buggy-html-in-markdown-parser"},source:{to:"children",id:"change-source-to-children"},allowNode:{to:"allowElement",id:"replace-allownode-allowedtypes-and-disallowedtypes"},allowedTypes:{to:"allowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},disallowedTypes:{to:"disallowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},includeNodeIndex:{to:"includeElementIndex",id:"change-includenodeindex-to-includeelementindex"}};function ReactMarkdown(t){for(const i in Ot)if(xt.call(Ot,i)&&xt.call(t,i)){const t=Ot[i];console.warn(`[react-markdown] Warning: please ${t.to?`use \`${t.to}\` instead of`:"remove"} \`${i}\` (see <${Et}#${t.id}> for more info)`),delete Ot[i]}const i=I().use(remarkParse).use(t.remarkPlugins||[]).use(lib,{...t.remarkRehypeOptions,allowDangerousHtml:!0}).use(t.rehypePlugins||[]).use(rehypeFilter,t),b=new VFile;"string"==typeof t.children?b.value=t.children:void 0!==t.children&&null!==t.children&&console.warn(`[react-markdown] Warning: please pass a string as \`children\` (not: \`${t.children}\`)`);const _=i.runSync(i.parse(b),b);if("root"!==_.type)throw new TypeError("Expected a `root` node");let C=x.createElement(x.Fragment,{},childrenToReact({options:t,schema:pt,listDepth:0},_));return t.className&&(C=x.createElement("div",{className:t.className},C)),C}ReactMarkdown.propTypes={children:Xe.string,className:Xe.string,allowElement:Xe.func,allowedElements:Xe.arrayOf(Xe.string),disallowedElements:Xe.arrayOf(Xe.string),unwrapDisallowed:Xe.bool,remarkPlugins:Xe.arrayOf(Xe.oneOfType([Xe.object,Xe.func,Xe.arrayOf(Xe.oneOfType([Xe.bool,Xe.string,Xe.object,Xe.func,Xe.arrayOf(Xe.any)]))])),rehypePlugins:Xe.arrayOf(Xe.oneOfType([Xe.object,Xe.func,Xe.arrayOf(Xe.oneOfType([Xe.bool,Xe.string,Xe.object,Xe.func,Xe.arrayOf(Xe.any)]))])),sourcePos:Xe.bool,rawSourcePos:Xe.bool,skipHtml:Xe.bool,includeElementIndex:Xe.bool,transformLinkUri:Xe.oneOfType([Xe.func,Xe.bool]),linkTarget:Xe.oneOfType([Xe.func,Xe.string]),transformImageUri:Xe.func,components:Xe.object}}},i={};function __webpack_require__(b){var _=i[b];if(void 0!==_)return _.exports;var C=i[b]={exports:{}};return t[b].call(C.exports,C,C.exports,__webpack_require__),C.exports}__webpack_require__.n=t=>{var i=t&&t.__esModule?()=>t.default:()=>t;return __webpack_require__.d(i,{a:i}),i},__webpack_require__.d=(t,i)=>{for(var b in i)__webpack_require__.o(i,b)&&!__webpack_require__.o(t,b)&&Object.defineProperty(t,b,{enumerable:!0,get:i[b]})},__webpack_require__.o=(t,i)=>Object.prototype.hasOwnProperty.call(t,i),__webpack_require__.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},(()=>{"use strict";new(__webpack_require__(73203)(__webpack_require__(94066)).default)})()})();