bkit-chatbot-client-test
Version:
A starter vanilla-ts (extended) template that began with Vite 3.x, prepared for writing node utility libraries in typescript. This starter is meant to provide rapid node package development and publishing onto npm.
39 lines (33 loc) • 194 kB
JavaScript
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var Oa=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Jt(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var Nr={exports:{}},x={};/**
* @license React
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var jt;function Ma(){if(jt)return x;jt=1;var a=Symbol.for("react.element"),e=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),p=Symbol.for("react.provider"),y=Symbol.for("react.context"),T=Symbol.for("react.forward_ref"),A=Symbol.for("react.suspense"),z=Symbol.for("react.memo"),N=Symbol.for("react.lazy"),I=Symbol.iterator;function F(g){return g===null||typeof g!="object"?null:(g=I&&g[I]||g["@@iterator"],typeof g=="function"?g:null)}var ee={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},J=Object.assign,G={};function X(g,v,j){this.props=g,this.context=v,this.refs=G,this.updater=j||ee}X.prototype.isReactComponent={},X.prototype.setState=function(g,v){if(typeof g!="object"&&typeof g!="function"&&g!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,g,v,"setState")},X.prototype.forceUpdate=function(g){this.updater.enqueueForceUpdate(this,g,"forceUpdate")};function ae(){}ae.prototype=X.prototype;function Z(g,v,j){this.props=g,this.context=v,this.refs=G,this.updater=j||ee}var ne=Z.prototype=new ae;ne.constructor=Z,J(ne,X.prototype),ne.isPureReactComponent=!0;var n=Array.isArray,s=Object.prototype.hasOwnProperty,u={current:null},d={key:!0,ref:!0,__self:!0,__source:!0};function h(g,v,j){var $,D={},H=null,Y=null;if(v!=null)for($ in v.ref!==void 0&&(Y=v.ref),v.key!==void 0&&(H=""+v.key),v)s.call(v,$)&&!d.hasOwnProperty($)&&(D[$]=v[$]);var V=arguments.length-2;if(V===1)D.children=j;else if(1<V){for(var U=Array(V),fe=0;fe<V;fe++)U[fe]=arguments[fe+2];D.children=U}if(g&&g.defaultProps)for($ in V=g.defaultProps,V)D[$]===void 0&&(D[$]=V[$]);return{$$typeof:a,type:g,key:H,ref:Y,props:D,_owner:u.current}}function m(g,v){return{$$typeof:a,type:g.type,key:v,ref:g.ref,props:g.props,_owner:g._owner}}function l(g){return typeof g=="object"&&g!==null&&g.$$typeof===a}function b(g){var v={"=":"=0",":":"=2"};return"$"+g.replace(/[=:]/g,function(j){return v[j]})}var E=/\/+/g;function S(g,v){return typeof g=="object"&&g!==null&&g.key!=null?b(""+g.key):v.toString(36)}function C(g,v,j,$,D){var H=typeof g;(H==="undefined"||H==="boolean")&&(g=null);var Y=!1;if(g===null)Y=!0;else switch(H){case"string":case"number":Y=!0;break;case"object":switch(g.$$typeof){case a:case e:Y=!0}}if(Y)return Y=g,D=D(Y),g=$===""?"."+S(Y,0):$,n(D)?(j="",g!=null&&(j=g.replace(E,"$&/")+"/"),C(D,v,j,"",function(fe){return fe})):D!=null&&(l(D)&&(D=m(D,j+(!D.key||Y&&Y.key===D.key?"":(""+D.key).replace(E,"$&/")+"/")+g)),v.push(D)),1;if(Y=0,$=$===""?".":$+":",n(g))for(var V=0;V<g.length;V++){H=g[V];var U=$+S(H,V);Y+=C(H,v,j,U,D)}else if(U=F(g),typeof U=="function")for(g=U.call(g),V=0;!(H=g.next()).done;)H=H.value,U=$+S(H,V++),Y+=C(H,v,j,U,D);else if(H==="object")throw v=String(g),Error("Objects are not valid as a React child (found: "+(v==="[object Object]"?"object with keys {"+Object.keys(g).join(", ")+"}":v)+"). If you meant to render a collection of children, use an array instead.");return Y}function P(g,v,j){if(g==null)return g;var $=[],D=0;return C(g,$,"","",function(H){return v.call(j,H,D++)}),$}function c(g){if(g._status===-1){var v=g._result;v=v(),v.then(function(j){(g._status===0||g._status===-1)&&(g._status=1,g._result=j)},function(j){(g._status===0||g._status===-1)&&(g._status=2,g._result=j)}),g._status===-1&&(g._status=0,g._result=v)}if(g._status===1)return g._result.default;throw g._result}var _={current:null},O={transition:null},M={ReactCurrentDispatcher:_,ReactCurrentBatchConfig:O,ReactCurrentOwner:u};return x.Children={map:P,forEach:function(g,v,j){P(g,function(){v.apply(this,arguments)},j)},count:function(g){var v=0;return P(g,function(){v++}),v},toArray:function(g){return P(g,function(v){return v})||[]},only:function(g){if(!l(g))throw Error("React.Children.only expected to receive a single React element child.");return g}},x.Component=X,x.Fragment=t,x.Profiler=i,x.PureComponent=Z,x.StrictMode=r,x.Suspense=A,x.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=M,x.cloneElement=function(g,v,j){if(g==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+g+".");var $=J({},g.props),D=g.key,H=g.ref,Y=g._owner;if(v!=null){if(v.ref!==void 0&&(H=v.ref,Y=u.current),v.key!==void 0&&(D=""+v.key),g.type&&g.type.defaultProps)var V=g.type.defaultProps;for(U in v)s.call(v,U)&&!d.hasOwnProperty(U)&&($[U]=v[U]===void 0&&V!==void 0?V[U]:v[U])}var U=arguments.length-2;if(U===1)$.children=j;else if(1<U){V=Array(U);for(var fe=0;fe<U;fe++)V[fe]=arguments[fe+2];$.children=V}return{$$typeof:a,type:g.type,key:D,ref:H,props:$,_owner:Y}},x.createContext=function(g){return g={$$typeof:y,_currentValue:g,_currentValue2:g,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},g.Provider={$$typeof:p,_context:g},g.Consumer=g},x.createElement=h,x.createFactory=function(g){var v=h.bind(null,g);return v.type=g,v},x.createRef=function(){return{current:null}},x.forwardRef=function(g){return{$$typeof:T,render:g}},x.isValidElement=l,x.lazy=function(g){return{$$typeof:N,_payload:{_status:-1,_result:g},_init:c}},x.memo=function(g,v){return{$$typeof:z,type:g,compare:v===void 0?null:v}},x.startTransition=function(g){var v=O.transition;O.transition={};try{g()}finally{O.transition=v}},x.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},x.useCallback=function(g,v){return _.current.useCallback(g,v)},x.useContext=function(g){return _.current.useContext(g)},x.useDebugValue=function(){},x.useDeferredValue=function(g){return _.current.useDeferredValue(g)},x.useEffect=function(g,v){return _.current.useEffect(g,v)},x.useId=function(){return _.current.useId()},x.useImperativeHandle=function(g,v,j){return _.current.useImperativeHandle(g,v,j)},x.useInsertionEffect=function(g,v){return _.current.useInsertionEffect(g,v)},x.useLayoutEffect=function(g,v){return _.current.useLayoutEffect(g,v)},x.useMemo=function(g,v){return _.current.useMemo(g,v)},x.useReducer=function(g,v,j){return _.current.useReducer(g,v,j)},x.useRef=function(g){return _.current.useRef(g)},x.useState=function(g){return _.current.useState(g)},x.useSyncExternalStore=function(g,v,j){return _.current.useSyncExternalStore(g,v,j)},x.useTransition=function(){return _.current.useTransition()},x.version="18.2.0",x}var Ke={exports:{}};/**
* @license React
* react.development.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/Ke.exports;var Lt;function ja(){return Lt||(Lt=1,function(a,e){process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var t="18.2.0",r=Symbol.for("react.element"),i=Symbol.for("react.portal"),p=Symbol.for("react.fragment"),y=Symbol.for("react.strict_mode"),T=Symbol.for("react.profiler"),A=Symbol.for("react.provider"),z=Symbol.for("react.context"),N=Symbol.for("react.forward_ref"),I=Symbol.for("react.suspense"),F=Symbol.for("react.suspense_list"),ee=Symbol.for("react.memo"),J=Symbol.for("react.lazy"),G=Symbol.for("react.offscreen"),X=Symbol.iterator,ae="@@iterator";function Z(o){if(o===null||typeof o!="object")return null;var f=X&&o[X]||o[ae];return typeof f=="function"?f:null}var ne={current:null},n={transition:null},s={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},u={current:null},d={},h=null;function m(o){h=o}d.setExtraStackFrame=function(o){h=o},d.getCurrentStack=null,d.getStackAddendum=function(){var o="";h&&(o+=h);var f=d.getCurrentStack;return f&&(o+=f()||""),o};var l=!1,b=!1,E=!1,S=!1,C=!1,P={ReactCurrentDispatcher:ne,ReactCurrentBatchConfig:n,ReactCurrentOwner:u};P.ReactDebugCurrentFrame=d,P.ReactCurrentActQueue=s;function c(o){{for(var f=arguments.length,w=new Array(f>1?f-1:0),k=1;k<f;k++)w[k-1]=arguments[k];O("warn",o,w)}}function _(o){{for(var f=arguments.length,w=new Array(f>1?f-1:0),k=1;k<f;k++)w[k-1]=arguments[k];O("error",o,w)}}function O(o,f,w){{var k=P.ReactDebugCurrentFrame,R=k.getStackAddendum();R!==""&&(f+="%s",w=w.concat([R]));var B=w.map(function(L){return String(L)});B.unshift("Warning: "+f),Function.prototype.apply.call(console[o],console,B)}}var M={};function g(o,f){{var w=o.constructor,k=w&&(w.displayName||w.name)||"ReactClass",R=k+"."+f;if(M[R])return;_("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",f,k),M[R]=!0}}var v={isMounted:function(o){return!1},enqueueForceUpdate:function(o,f,w){g(o,"forceUpdate")},enqueueReplaceState:function(o,f,w,k){g(o,"replaceState")},enqueueSetState:function(o,f,w,k){g(o,"setState")}},j=Object.assign,$={};Object.freeze($);function D(o,f,w){this.props=o,this.context=f,this.refs=$,this.updater=w||v}D.prototype.isReactComponent={},D.prototype.setState=function(o,f){if(typeof o!="object"&&typeof o!="function"&&o!=null)throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,o,f,"setState")},D.prototype.forceUpdate=function(o){this.updater.enqueueForceUpdate(this,o,"forceUpdate")};{var H={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},Y=function(o,f){Object.defineProperty(D.prototype,o,{get:function(){c("%s(...) is deprecated in plain JavaScript React classes. %s",f[0],f[1])}})};for(var V in H)H.hasOwnProperty(V)&&Y(V,H[V])}function U(){}U.prototype=D.prototype;function fe(o,f,w){this.props=o,this.context=f,this.refs=$,this.updater=w||v}var Se=fe.prototype=new U;Se.constructor=fe,j(Se,D.prototype),Se.isPureReactComponent=!0;function Je(){var o={current:null};return Object.seal(o),o}var Fe=Array.isArray;function Te(o){return Fe(o)}function Pn(o){{var f=typeof Symbol=="function"&&Symbol.toStringTag,w=f&&o[Symbol.toStringTag]||o.constructor.name||"Object";return w}}function Sn(o){try{return Xr(o),!1}catch{return!0}}function Xr(o){return""+o}function Ze(o){if(Sn(o))return _("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Pn(o)),Xr(o)}function Tn(o,f,w){var k=o.displayName;if(k)return k;var R=f.displayName||f.name||"";return R!==""?w+"("+R+")":w}function Qr(o){return o.displayName||"Context"}function ve(o){if(o==null)return null;if(typeof o.tag=="number"&&_("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof o=="function")return o.displayName||o.name||null;if(typeof o=="string")return o;switch(o){case p:return"Fragment";case i:return"Portal";case T:return"Profiler";case y:return"StrictMode";case I:return"Suspense";case F:return"SuspenseList"}if(typeof o=="object")switch(o.$$typeof){case z:var f=o;return Qr(f)+".Consumer";case A:var w=o;return Qr(w._context)+".Provider";case N:return Tn(o,o.render,"ForwardRef");case ee:var k=o.displayName||null;return k!==null?k:ve(o.type)||"Memo";case J:{var R=o,B=R._payload,L=R._init;try{return ve(L(B))}catch{return null}}}return null}var $e=Object.prototype.hasOwnProperty,Jr={key:!0,ref:!0,__self:!0,__source:!0},Zr,et,yr;yr={};function rt(o){if($e.call(o,"ref")){var f=Object.getOwnPropertyDescriptor(o,"ref").get;if(f&&f.isReactWarning)return!1}return o.ref!==void 0}function tt(o){if($e.call(o,"key")){var f=Object.getOwnPropertyDescriptor(o,"key").get;if(f&&f.isReactWarning)return!1}return o.key!==void 0}function Rn(o,f){var w=function(){Zr||(Zr=!0,_("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",f))};w.isReactWarning=!0,Object.defineProperty(o,"key",{get:w,configurable:!0})}function An(o,f){var w=function(){et||(et=!0,_("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",f))};w.isReactWarning=!0,Object.defineProperty(o,"ref",{get:w,configurable:!0})}function On(o){if(typeof o.ref=="string"&&u.current&&o.__self&&u.current.stateNode!==o.__self){var f=ve(u.current.type);yr[f]||(_('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',f,o.ref),yr[f]=!0)}}var vr=function(o,f,w,k,R,B,L){var W={$$typeof:r,type:o,key:f,ref:w,props:L,_owner:B};return W._store={},Object.defineProperty(W._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(W,"_self",{configurable:!1,enumerable:!1,writable:!1,value:k}),Object.defineProperty(W,"_source",{configurable:!1,enumerable:!1,writable:!1,value:R}),Object.freeze&&(Object.freeze(W.props),Object.freeze(W)),W};function Mn(o,f,w){var k,R={},B=null,L=null,W=null,Q=null;if(f!=null){rt(f)&&(L=f.ref,On(f)),tt(f)&&(Ze(f.key),B=""+f.key),W=f.__self===void 0?null:f.__self,Q=f.__source===void 0?null:f.__source;for(k in f)$e.call(f,k)&&!Jr.hasOwnProperty(k)&&(R[k]=f[k])}var te=arguments.length-2;if(te===1)R.children=w;else if(te>1){for(var se=Array(te),oe=0;oe<te;oe++)se[oe]=arguments[oe+2];Object.freeze&&Object.freeze(se),R.children=se}if(o&&o.defaultProps){var ie=o.defaultProps;for(k in ie)R[k]===void 0&&(R[k]=ie[k])}if(B||L){var de=typeof o=="function"?o.displayName||o.name||"Unknown":o;B&&Rn(R,de),L&&An(R,de)}return vr(o,B,L,W,Q,u.current,R)}function jn(o,f){var w=vr(o.type,f,o.ref,o._self,o._source,o._owner,o.props);return w}function Ln(o,f,w){if(o==null)throw new Error("React.cloneElement(...): The argument must be a React element, but you passed "+o+".");var k,R=j({},o.props),B=o.key,L=o.ref,W=o._self,Q=o._source,te=o._owner;if(f!=null){rt(f)&&(L=f.ref,te=u.current),tt(f)&&(Ze(f.key),B=""+f.key);var se;o.type&&o.type.defaultProps&&(se=o.type.defaultProps);for(k in f)$e.call(f,k)&&!Jr.hasOwnProperty(k)&&(f[k]===void 0&&se!==void 0?R[k]=se[k]:R[k]=f[k])}var oe=arguments.length-2;if(oe===1)R.children=w;else if(oe>1){for(var ie=Array(oe),de=0;de<oe;de++)ie[de]=arguments[de+2];R.children=ie}return vr(o.type,B,L,W,Q,te,R)}function je(o){return typeof o=="object"&&o!==null&&o.$$typeof===r}var nt=".",zn=":";function Nn(o){var f=/[=:]/g,w={"=":"=0",":":"=2"},k=o.replace(f,function(R){return w[R]});return"$"+k}var at=!1,Bn=/\/+/g;function ut(o){return o.replace(Bn,"$&/")}function kr(o,f){return typeof o=="object"&&o!==null&&o.key!=null?(Ze(o.key),Nn(""+o.key)):f.toString(36)}function er(o,f,w,k,R){var B=typeof o;(B==="undefined"||B==="boolean")&&(o=null);var L=!1;if(o===null)L=!0;else switch(B){case"string":case"number":L=!0;break;case"object":switch(o.$$typeof){case r:case i:L=!0}}if(L){var W=o,Q=R(W),te=k===""?nt+kr(W,0):k;if(Te(Q)){var se="";te!=null&&(se=ut(te)+"/"),er(Q,f,se,"",function(Aa){return Aa})}else Q!=null&&(je(Q)&&(Q.key&&(!W||W.key!==Q.key)&&Ze(Q.key),Q=jn(Q,w+(Q.key&&(!W||W.key!==Q.key)?ut(""+Q.key)+"/":"")+te)),f.push(Q));return 1}var oe,ie,de=0,he=k===""?nt:k+zn;if(Te(o))for(var ir=0;ir<o.length;ir++)oe=o[ir],ie=he+kr(oe,ir),de+=er(oe,f,w,ie,R);else{var Mr=Z(o);if(typeof Mr=="function"){var At=o;Mr===At.entries&&(at||c("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),at=!0);for(var Ta=Mr.call(At),Ot,Ra=0;!(Ot=Ta.next()).done;)oe=Ot.value,ie=he+kr(oe,Ra++),de+=er(oe,f,w,ie,R)}else if(B==="object"){var Mt=String(o);throw new Error("Objects are not valid as a React child (found: "+(Mt==="[object Object]"?"object with keys {"+Object.keys(o).join(", ")+"}":Mt)+"). If you meant to render a collection of children, use an array instead.")}}return de}function rr(o,f,w){if(o==null)return o;var k=[],R=0;return er(o,k,"","",function(B){return f.call(w,B,R++)}),k}function Dn(o){var f=0;return rr(o,function(){f++}),f}function In(o,f,w){rr(o,function(){f.apply(this,arguments)},w)}function Fn(o){return rr(o,function(f){return f})||[]}function $n(o){if(!je(o))throw new Error("React.Children.only expected to receive a single React element child.");return o}function Wn(o){var f={$$typeof:z,_currentValue:o,_currentValue2:o,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};f.Provider={$$typeof:A,_context:f};var w=!1,k=!1,R=!1;{var B={$$typeof:z,_context:f};Object.defineProperties(B,{Provider:{get:function(){return k||(k=!0,_("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),f.Provider},set:function(L){f.Provider=L}},_currentValue:{get:function(){return f._currentValue},set:function(L){f._currentValue=L}},_currentValue2:{get:function(){return f._currentValue2},set:function(L){f._currentValue2=L}},_threadCount:{get:function(){return f._threadCount},set:function(L){f._threadCount=L}},Consumer:{get:function(){return w||(w=!0,_("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),f.Consumer}},displayName:{get:function(){return f.displayName},set:function(L){R||(c("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",L),R=!0)}}}),f.Consumer=B}return f._currentRenderer=null,f._currentRenderer2=null,f}var We=-1,Er=0,st=1,Hn=2;function qn(o){if(o._status===We){var f=o._result,w=f();if(w.then(function(B){if(o._status===Er||o._status===We){var L=o;L._status=st,L._result=B}},function(B){if(o._status===Er||o._status===We){var L=o;L._status=Hn,L._result=B}}),o._status===We){var k=o;k._status=Er,k._result=w}}if(o._status===st){var R=o._result;return R===void 0&&_(`lazy: Expected the result of a dynamic import() call. Instead received: %s
Your code should look like:
const MyComponent = lazy(() => import('./MyComponent'))
Did you accidentally put curly braces around the import?`,R),"default"in R||_(`lazy: Expected the result of a dynamic import() call. Instead received: %s
Your code should look like:
const MyComponent = lazy(() => import('./MyComponent'))`,R),R.default}else throw o._result}function Vn(o){var f={_status:We,_result:o},w={$$typeof:J,_payload:f,_init:qn};{var k,R;Object.defineProperties(w,{defaultProps:{configurable:!0,get:function(){return k},set:function(B){_("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),k=B,Object.defineProperty(w,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return R},set:function(B){_("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),R=B,Object.defineProperty(w,"propTypes",{enumerable:!0})}}})}return w}function Un(o){o!=null&&o.$$typeof===ee?_("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof o!="function"?_("forwardRef requires a render function but was given %s.",o===null?"null":typeof o):o.length!==0&&o.length!==2&&_("forwardRef render functions accept exactly two parameters: props and ref. %s",o.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),o!=null&&(o.defaultProps!=null||o.propTypes!=null)&&_("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");var f={$$typeof:N,render:o};{var w;Object.defineProperty(f,"displayName",{enumerable:!1,configurable:!0,get:function(){return w},set:function(k){w=k,!o.name&&!o.displayName&&(o.displayName=k)}})}return f}var ot;ot=Symbol.for("react.module.reference");function it(o){return!!(typeof o=="string"||typeof o=="function"||o===p||o===T||C||o===y||o===I||o===F||S||o===G||l||b||E||typeof o=="object"&&o!==null&&(o.$$typeof===J||o.$$typeof===ee||o.$$typeof===A||o.$$typeof===z||o.$$typeof===N||o.$$typeof===ot||o.getModuleId!==void 0))}function Yn(o,f){it(o)||_("memo: The first argument must be a component. Instead received: %s",o===null?"null":typeof o);var w={$$typeof:ee,type:o,compare:f===void 0?null:f};{var k;Object.defineProperty(w,"displayName",{enumerable:!1,configurable:!0,get:function(){return k},set:function(R){k=R,!o.name&&!o.displayName&&(o.displayName=R)}})}return w}function pe(){var o=ne.current;return o===null&&_(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
1. You might have mismatching versions of React and the renderer (such as React DOM)
2. You might be breaking the Rules of Hooks
3. You might have more than one copy of React in the same app
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`),o}function xn(o){var f=pe();if(o._context!==void 0){var w=o._context;w.Consumer===o?_("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):w.Provider===o&&_("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return f.useContext(o)}function Gn(o){var f=pe();return f.useState(o)}function Kn(o,f,w){var k=pe();return k.useReducer(o,f,w)}function Xn(o){var f=pe();return f.useRef(o)}function Qn(o,f){var w=pe();return w.useEffect(o,f)}function Jn(o,f){var w=pe();return w.useInsertionEffect(o,f)}function Zn(o,f){var w=pe();return w.useLayoutEffect(o,f)}function ea(o,f){var w=pe();return w.useCallback(o,f)}function ra(o,f){var w=pe();return w.useMemo(o,f)}function ta(o,f,w){var k=pe();return k.useImperativeHandle(o,f,w)}function na(o,f){{var w=pe();return w.useDebugValue(o,f)}}function aa(){var o=pe();return o.useTransition()}function ua(o){var f=pe();return f.useDeferredValue(o)}function sa(){var o=pe();return o.useId()}function oa(o,f,w){var k=pe();return k.useSyncExternalStore(o,f,w)}var He=0,dt,ct,ft,lt,ht,pt,mt;function gt(){}gt.__reactDisabledLog=!0;function ia(){{if(He===0){dt=console.log,ct=console.info,ft=console.warn,lt=console.error,ht=console.group,pt=console.groupCollapsed,mt=console.groupEnd;var o={configurable:!0,enumerable:!0,value:gt,writable:!0};Object.defineProperties(console,{info:o,log:o,warn:o,error:o,group:o,groupCollapsed:o,groupEnd:o})}He++}}function da(){{if(He--,He===0){var o={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:j({},o,{value:dt}),info:j({},o,{value:ct}),warn:j({},o,{value:ft}),error:j({},o,{value:lt}),group:j({},o,{value:ht}),groupCollapsed:j({},o,{value:pt}),groupEnd:j({},o,{value:mt})})}He<0&&_("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Cr=P.ReactCurrentDispatcher,Pr;function tr(o,f,w){{if(Pr===void 0)try{throw Error()}catch(R){var k=R.stack.trim().match(/\n( *(at )?)/);Pr=k&&k[1]||""}return`
`+Pr+o}}var Sr=!1,nr;{var ca=typeof WeakMap=="function"?WeakMap:Map;nr=new ca}function bt(o,f){if(!o||Sr)return"";{var w=nr.get(o);if(w!==void 0)return w}var k;Sr=!0;var R=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var B;B=Cr.current,Cr.current=null,ia();try{if(f){var L=function(){throw Error()};if(Object.defineProperty(L.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(L,[])}catch(he){k=he}Reflect.construct(o,[],L)}else{try{L.call()}catch(he){k=he}o.call(L.prototype)}}else{try{throw Error()}catch(he){k=he}o()}}catch(he){if(he&&k&&typeof he.stack=="string"){for(var W=he.stack.split(`
`),Q=k.stack.split(`
`),te=W.length-1,se=Q.length-1;te>=1&&se>=0&&W[te]!==Q[se];)se--;for(;te>=1&&se>=0;te--,se--)if(W[te]!==Q[se]){if(te!==1||se!==1)do if(te--,se--,se<0||W[te]!==Q[se]){var oe=`
`+W[te].replace(" at new "," at ");return o.displayName&&oe.includes("<anonymous>")&&(oe=oe.replace("<anonymous>",o.displayName)),typeof o=="function"&&nr.set(o,oe),oe}while(te>=1&&se>=0);break}}}finally{Sr=!1,Cr.current=B,da(),Error.prepareStackTrace=R}var ie=o?o.displayName||o.name:"",de=ie?tr(ie):"";return typeof o=="function"&&nr.set(o,de),de}function fa(o,f,w){return bt(o,!1)}function la(o){var f=o.prototype;return!!(f&&f.isReactComponent)}function ar(o,f,w){if(o==null)return"";if(typeof o=="function")return bt(o,la(o));if(typeof o=="string")return tr(o);switch(o){case I:return tr("Suspense");case F:return tr("SuspenseList")}if(typeof o=="object")switch(o.$$typeof){case N:return fa(o.render);case ee:return ar(o.type,f,w);case J:{var k=o,R=k._payload,B=k._init;try{return ar(B(R),f,w)}catch{}}}return""}var _t={},wt=P.ReactDebugCurrentFrame;function ur(o){if(o){var f=o._owner,w=ar(o.type,o._source,f?f.type:null);wt.setExtraStackFrame(w)}else wt.setExtraStackFrame(null)}function ha(o,f,w,k,R){{var B=Function.call.bind($e);for(var L in o)if(B(o,L)){var W=void 0;try{if(typeof o[L]!="function"){var Q=Error((k||"React class")+": "+w+" type `"+L+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof o[L]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Q.name="Invariant Violation",Q}W=o[L](f,L,k,w,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(te){W=te}W&&!(W instanceof Error)&&(ur(R),_("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",k||"React class",w,L,typeof W),ur(null)),W instanceof Error&&!(W.message in _t)&&(_t[W.message]=!0,ur(R),_("Failed %s type: %s",w,W.message),ur(null))}}}function Le(o){if(o){var f=o._owner,w=ar(o.type,o._source,f?f.type:null);m(w)}else m(null)}var Tr;Tr=!1;function yt(){if(u.current){var o=ve(u.current.type);if(o)return`
Check the render method of \``+o+"`."}return""}function pa(o){if(o!==void 0){var f=o.fileName.replace(/^.*[\\\/]/,""),w=o.lineNumber;return`
Check your code at `+f+":"+w+"."}return""}function ma(o){return o!=null?pa(o.__source):""}var vt={};function ga(o){var f=yt();if(!f){var w=typeof o=="string"?o:o.displayName||o.name;w&&(f=`
Check the top-level render call using <`+w+">.")}return f}function kt(o,f){if(!(!o._store||o._store.validated||o.key!=null)){o._store.validated=!0;var w=ga(f);if(!vt[w]){vt[w]=!0;var k="";o&&o._owner&&o._owner!==u.current&&(k=" It was passed a child from "+ve(o._owner.type)+"."),Le(o),_('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',w,k),Le(null)}}}function Et(o,f){if(typeof o=="object"){if(Te(o))for(var w=0;w<o.length;w++){var k=o[w];je(k)&&kt(k,f)}else if(je(o))o._store&&(o._store.validated=!0);else if(o){var R=Z(o);if(typeof R=="function"&&R!==o.entries)for(var B=R.call(o),L;!(L=B.next()).done;)je(L.value)&&kt(L.value,f)}}}function Ct(o){{var f=o.type;if(f==null||typeof f=="string")return;var w;if(typeof f=="function")w=f.propTypes;else if(typeof f=="object"&&(f.$$typeof===N||f.$$typeof===ee))w=f.propTypes;else return;if(w){var k=ve(f);ha(w,o.props,"prop",k,o)}else if(f.PropTypes!==void 0&&!Tr){Tr=!0;var R=ve(f);_("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",R||"Unknown")}typeof f.getDefaultProps=="function"&&!f.getDefaultProps.isReactClassApproved&&_("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ba(o){{for(var f=Object.keys(o.props),w=0;w<f.length;w++){var k=f[w];if(k!=="children"&&k!=="key"){Le(o),_("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",k),Le(null);break}}o.ref!==null&&(Le(o),_("Invalid attribute `ref` supplied to `React.Fragment`."),Le(null))}}function Pt(o,f,w){var k=it(o);if(!k){var R="";(o===void 0||typeof o=="object"&&o!==null&&Object.keys(o).length===0)&&(R+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var B=ma(f);B?R+=B:R+=yt();var L;o===null?L="null":Te(o)?L="array":o!==void 0&&o.$$typeof===r?(L="<"+(ve(o.type)||"Unknown")+" />",R=" Did you accidentally export a JSX literal instead of a component?"):L=typeof o,_("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",L,R)}var W=Mn.apply(this,arguments);if(W==null)return W;if(k)for(var Q=2;Q<arguments.length;Q++)Et(arguments[Q],o);return o===p?ba(W):Ct(W),W}var St=!1;function _a(o){var f=Pt.bind(null,o);return f.type=o,St||(St=!0,c("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(f,"type",{enumerable:!1,get:function(){return c("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:o}),o}}),f}function wa(o,f,w){for(var k=Ln.apply(this,arguments),R=2;R<arguments.length;R++)Et(arguments[R],k.type);return Ct(k),k}function ya(o,f){var w=n.transition;n.transition={};var k=n.transition;n.transition._updatedFibers=new Set;try{o()}finally{if(n.transition=w,w===null&&k._updatedFibers){var R=k._updatedFibers.size;R>10&&c("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."),k._updatedFibers.clear()}}}var Tt=!1,sr=null;function va(o){if(sr===null)try{var f=("require"+Math.random()).slice(0,7),w=a&&a[f];sr=w.call(a,"timers").setImmediate}catch{sr=function(R){Tt===!1&&(Tt=!0,typeof MessageChannel>"u"&&_("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var B=new MessageChannel;B.port1.onmessage=R,B.port2.postMessage(void 0)}}return sr(o)}var ze=0,Rt=!1;function ka(o){{var f=ze;ze++,s.current===null&&(s.current=[]);var w=s.isBatchingLegacy,k;try{if(s.isBatchingLegacy=!0,k=o(),!w&&s.didScheduleLegacyUpdate){var R=s.current;R!==null&&(s.didScheduleLegacyUpdate=!1,Or(R))}}catch(ie){throw or(f),ie}finally{s.isBatchingLegacy=w}if(k!==null&&typeof k=="object"&&typeof k.then=="function"){var B=k,L=!1,W={then:function(ie,de){L=!0,B.then(function(he){or(f),ze===0?Rr(he,ie,de):ie(he)},function(he){or(f),de(he)})}};return!Rt&&typeof Promise<"u"&&Promise.resolve().then(function(){}).then(function(){L||(Rt=!0,_("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),W}else{var Q=k;if(or(f),ze===0){var te=s.current;te!==null&&(Or(te),s.current=null);var se={then:function(ie,de){s.current===null?(s.current=[],Rr(Q,ie,de)):ie(Q)}};return se}else{var oe={then:function(ie,de){ie(Q)}};return oe}}}}function or(o){o!==ze-1&&_("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),ze=o}function Rr(o,f,w){{var k=s.current;if(k!==null)try{Or(k),va(function(){k.length===0?(s.current=null,f(o)):Rr(o,f,w)})}catch(R){w(R)}else f(o)}}var Ar=!1;function Or(o){if(!Ar){Ar=!0;var f=0;try{for(;f<o.length;f++){var w=o[f];do w=w(!0);while(w!==null)}o.length=0}catch(k){throw o=o.slice(f+1),k}finally{Ar=!1}}}var Ea=Pt,Ca=wa,Pa=_a,Sa={map:rr,forEach:In,count:Dn,toArray:Fn,only:$n};e.Children=Sa,e.Component=D,e.Fragment=p,e.Profiler=T,e.PureComponent=fe,e.StrictMode=y,e.Suspense=I,e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=P,e.cloneElement=Ca,e.createContext=Wn,e.createElement=Ea,e.createFactory=Pa,e.createRef=Je,e.forwardRef=Un,e.isValidElement=je,e.lazy=Vn,e.memo=Yn,e.startTransition=ya,e.unstable_act=ka,e.useCallback=ea,e.useContext=xn,e.useDebugValue=na,e.useDeferredValue=ua,e.useEffect=Qn,e.useId=sa,e.useImperativeHandle=ta,e.useInsertionEffect=Jn,e.useLayoutEffect=Zn,e.useMemo=ra,e.useReducer=Kn,e.useRef=Xn,e.useState=Gn,e.useSyncExternalStore=oa,e.useTransition=aa,e.version=t,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()}(Ke,Ke.exports)),Ke.exports}process.env.NODE_ENV==="production"?Nr.exports=Ma():Nr.exports=ja();var Pe=Nr.exports;const le=Jt(Pe);var Zt={exports:{}};(function(a){(function(){function e(n){var s={omitExtraWLInCodeBlocks:{defaultValue:!1,describe:"Omit the default extra whiteline added to code blocks",type:"boolean"},noHeaderId:{defaultValue:!1,describe:"Turn on/off generated header id",type:"boolean"},prefixHeaderId:{defaultValue:!1,describe:"Add a prefix to the generated header ids. Passing a string will prefix that string to the header id. Setting to true will add a generic 'section-' prefix",type:"string"},rawPrefixHeaderId:{defaultValue:!1,describe:'Setting this option to true will prevent showdown from modifying the prefix. This might result in malformed IDs (if, for instance, the " char is used in the prefix)',type:"boolean"},ghCompatibleHeaderId:{defaultValue:!1,describe:"Generate header ids compatible with github style (spaces are replaced with dashes, a bunch of non alphanumeric chars are removed)",type:"boolean"},rawHeaderId:{defaultValue:!1,describe:`Remove only spaces, ' and " from generated header ids (including prefixes), replacing them with dashes (-). WARNING: This might result in malformed ids`,type:"boolean"},headerLevelStart:{defaultValue:!1,describe:"The header blocks level start",type:"integer"},parseImgDimensions:{defaultValue:!1,describe:"Turn on/off image dimension parsing",type:"boolean"},simplifiedAutoLink:{defaultValue:!1,describe:"Turn on/off GFM autolink style",type:"boolean"},excludeTrailingPunctuationFromURLs:{defaultValue:!1,describe:"Excludes trailing punctuation from links generated with autoLinking",type:"boolean"},literalMidWordUnderscores:{defaultValue:!1,describe:"Parse midword underscores as literal underscores",type:"boolean"},literalMidWordAsterisks:{defaultValue:!1,describe:"Parse midword asterisks as literal asterisks",type:"boolean"},strikethrough:{defaultValue:!1,describe:"Turn on/off strikethrough support",type:"boolean"},tables:{defaultValue:!1,describe:"Turn on/off tables support",type:"boolean"},tablesHeaderId:{defaultValue:!1,describe:"Add an id to table headers",type:"boolean"},ghCodeBlocks:{defaultValue:!0,describe:"Turn on/off GFM fenced code blocks support",type:"boolean"},tasklists:{defaultValue:!1,describe:"Turn on/off GFM tasklist support",type:"boolean"},smoothLivePreview:{defaultValue:!1,describe:"Prevents weird effects in live previews due to incomplete input",type:"boolean"},smartIndentationFix:{defaultValue:!1,describe:"Tries to smartly fix indentation in es6 strings",type:"boolean"},disableForced4SpacesIndentedSublists:{defaultValue:!1,describe:"Disables the requirement of indenting nested sublists by 4 spaces",type:"boolean"},simpleLineBreaks:{defaultValue:!1,describe:"Parses simple line breaks as <br> (GFM Style)",type:"boolean"},requireSpaceBeforeHeadingText:{defaultValue:!1,describe:"Makes adding a space between `#` and the header text mandatory (GFM Style)",type:"boolean"},ghMentions:{defaultValue:!1,describe:"Enables github @mentions",type:"boolean"},ghMentionsLink:{defaultValue:"https://github.com/{u}",describe:"Changes the link generated by @mentions. Only applies if ghMentions option is enabled.",type:"string"},encodeEmails:{defaultValue:!0,describe:"Encode e-mail addresses through the use of Character Entities, transforming ASCII e-mail addresses into its equivalent decimal entities",type:"boolean"},openLinksInNewWindow:{defaultValue:!1,describe:"Open all links in new windows",type:"boolean"},backslashEscapesHTMLTags:{defaultValue:!1,describe:"Support for HTML Tag escaping. ex: <div>foo</div>",type:"boolean"},emoji:{defaultValue:!1,describe:"Enable emoji support. Ex: `this is a :smile: emoji`",type:"boolean"},underline:{defaultValue:!1,describe:"Enable support for underline. Syntax is double or triple underscores: `__underline word__`. With this option enabled, underscores no longer parses into `<em>` and `<strong>`",type:"boolean"},ellipsis:{defaultValue:!0,describe:"Replaces three dots with the ellipsis unicode character",type:"boolean"},completeHTMLDocument:{defaultValue:!1,describe:"Outputs a complete html document, including `<html>`, `<head>` and `<body>` tags",type:"boolean"},metadata:{defaultValue:!1,describe:"Enable support for document metadata (defined at the top of the document between `«««` and `»»»` or between `---` and `---`).",type:"boolean"},splitAdjacentBlockquotes:{defaultValue:!1,describe:"Split adjacent blockquote blocks",type:"boolean"}};if(n===!1)return JSON.parse(JSON.stringify(s));var u={};for(var d in s)s.hasOwnProperty(d)&&(u[d]=s[d].defaultValue);return u}function t(){var n=e(!0),s={};for(var u in n)n.hasOwnProperty(u)&&(s[u]=!0);return s}var r={},i={},p={},y=e(!0),T="vanilla",A={github:{omitExtraWLInCodeBlocks:!0,simplifiedAutoLink:!0,excludeTrailingPunctuationFromURLs:!0,literalMidWordUnderscores:!0,strikethrough:!0,tables:!0,tablesHeaderId:!0,ghCodeBlocks:!0,tasklists:!0,disableForced4SpacesIndentedSublists:!0,simpleLineBreaks:!0,requireSpaceBeforeHeadingText:!0,ghCompatibleHeaderId:!0,ghMentions:!0,backslashEscapesHTMLTags:!0,emoji:!0,splitAdjacentBlockquotes:!0},original:{noHeaderId:!0,ghCodeBlocks:!1},ghost:{omitExtraWLInCodeBlocks:!0,parseImgDimensions:!0,simplifiedAutoLink:!0,excludeTrailingPunctuationFromURLs:!0,literalMidWordUnderscores:!0,strikethrough:!0,tables:!0,tablesHeaderId:!0,ghCodeBlocks:!0,tasklists:!0,smoothLivePreview:!0,simpleLineBreaks:!0,requireSpaceBeforeHeadingText:!0,ghMentions:!1,encodeEmails:!0},vanilla:e(!0),allOn:t()};r.helper={},r.extensions={},r.setOption=function(n,s){return y[n]=s,this},r.getOption=function(n){return y[n]},r.getOptions=function(){return y},r.resetOptions=function(){y=e(!0)},r.setFlavor=function(n){if(!A.hasOwnProperty(n))throw Error(n+" flavor was not found");r.resetOptions();var s=A[n];T=n;for(var u in s)s.hasOwnProperty(u)&&(y[u]=s[u])},r.getFlavor=function(){return T},r.getFlavorOptions=function(n){if(A.hasOwnProperty(n))return A[n]},r.getDefaultOptions=function(n){return e(n)},r.subParser=function(n,s){if(r.helper.isString(n))if(typeof s<"u")i[n]=s;else{if(i.hasOwnProperty(n))return i[n];throw Error("SubParser named "+n+" not registered!")}},r.extension=function(n,s){if(!r.helper.isString(n))throw Error("Extension 'name' must be a string");if(n=r.helper.stdExtName(n),r.helper.isUndefined(s)){if(!p.hasOwnProperty(n))throw Error("Extension named "+n+" is not registered!");return p[n]}else{typeof s=="function"&&(s=s()),r.helper.isArray(s)||(s=[s]);var u=z(s,n);if(u.valid)p[n]=s;else throw Error(u.error)}},r.getAllExtensions=function(){return p},r.removeExtension=function(n){delete p[n]},r.resetExtensions=function(){p={}};function z(n,s){var u=s?"Error in "+s+" extension->":"Error in unnamed extension",d={valid:!0,error:""};r.helper.isArray(n)||(n=[n]);for(var h=0;h<n.length;++h){var m=u+" sub-extension "+h+": ",l=n[h];if(typeof l!="object")return d.valid=!1,d.error=m+"must be an object, but "+typeof l+" given",d;if(!r.helper.isString(l.type))return d.valid=!1,d.error=m+'property "type" must be a string, but '+typeof l.type+" given",d;var b=l.type=l.type.toLowerCase();if(b==="language"&&(b=l.type="lang"),b==="html"&&(b=l.type="output"),b!=="lang"&&b!=="output"&&b!=="listener")return d.valid=!1,d.error=m+"type "+b+' is not recognized. Valid values: "lang/language", "output/html" or "listener"',d;if(b==="listener"){if(r.helper.isUndefined(l.listeners))return d.valid=!1,d.error=m+'. Extensions of type "listener" must have a property called "listeners"',d}else if(r.helper.isUndefined(l.filter)&&r.helper.isUndefined(l.regex))return d.valid=!1,d.error=m+b+' extensions must define either a "regex" property or a "filter" method',d;if(l.listeners){if(typeof l.listeners!="object")return d.valid=!1,d.error=m+'"listeners" property must be an object but '+typeof l.listeners+" given",d;for(var E in l.listeners)if(l.listeners.hasOwnProperty(E)&&typeof l.listeners[E]!="function")return d.valid=!1,d.error=m+'"listeners" property must be an hash of [event name]: [callback]. listeners.'+E+" must be a function but "+typeof l.listeners[E]+" given",d}if(l.filter){if(typeof l.filter!="function")return d.valid=!1,d.error=m+'"filter" must be a function, but '+typeof l.filter+" given",d}else if(l.regex){if(r.helper.isString(l.regex)&&(l.regex=new RegExp(l.regex,"g")),!(l.regex instanceof RegExp))return d.valid=!1,d.error=m+'"regex" property must either be a string or a RegExp object, but '+typeof l.regex+" given",d;if(r.helper.isUndefined(l.replace))return d.valid=!1,d.error=m+'"regex" extensions must implement a replace string or function',d}}return d}r.validateExtension=function(n){var s=z(n,null);return s.valid?!0:(console.warn(s.error),!1)},r.hasOwnProperty("helper")||(r.helper={}),r.helper.isString=function(n){return typeof n=="string"||n instanceof String},r.helper.isFunction=function(n){var s={};return n&&s.toString.call(n)==="[object Function]"},r.helper.isArray=function(n){return Array.isArray(n)},r.helper.isUndefined=function(n){return typeof n>"u"},r.helper.forEach=function(n,s){if(r.helper.isUndefined(n))throw new Error("obj param is required");if(r.helper.isUndefined(s))throw new Error("callback param is required");if(!r.helper.isFunction(s))throw new Error("callback param must be a function/closure");if(typeof n.forEach=="function")n.forEach(s);else if(r.helper.isArray(n))for(var u=0;u<n.length;u++)s(n[u],u,n);else if(typeof n=="object")for(var d in n)n.hasOwnProperty(d)&&s(n[d],d,n);else throw new Error("obj does not seem to be an array or an iterable object")},r.helper.stdExtName=function(n){return n.replace(/[_?*+\/\\.^-]/g,"").replace(/\s/g,"").toLowerCase()};function N(n,s){var u=s.charCodeAt(0);return"¨E"+u+"E"}r.helper.escapeCharactersCallback=N,r.helper.escapeCharacters=function(n,s,u){var d="(["+s.replace(/([\[\]\\])/g,"\\$1")+"])";u&&(d="\\\\"+d);var h=new RegExp(d,"g");return n=n.replace(h,N),n},r.helper.unescapeHTMLEntities=function(n){return n.replace(/"/g,'"').replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&")};var I=function(n,s,u,d){var h=d||"",m=h.indexOf("g")>-1,l=new RegExp(s+"|"+u,"g"+h.replace(/g/g,"")),b=new RegExp(s,h.replace(/g/g,"")),E=[],S,C,P,c,_;do for(S=0;P=l.exec(n);)if(b.test(P[0]))S++||(C=l.lastIndex,c=C-P[0].length);else if(S&&!--S){_=P.index+P[0].length;var O={left:{start:c,end:C},match:{start:C,end:P.index},right:{start:P.index,end:_},wholeMatch:{start:c,end:_}};if(E.push(O),!m)return E}while(S&&(l.lastIndex=C));return E};r.helper.matchRecursiveRegExp=function(n,s,u,d){for(var h=I(n,s,u,d),m=[],l=0;l<h.length;++l)m.push([n.slice(h[l].wholeMatch.start,h[l].wholeMatch.end),n.slice(h[l].match.start,h[l].match.end),n.slice(h[l].left.start,h[l].left.end),n.slice(h[l].right.start,h[l].right.end)]);return m},r.helper.replaceRecursiveRegExp=function(n,s,u,d,h){if(!r.helper.isFunction(s)){var m=s;s=function(){return m}}var l=I(n,u,d,h),b=n,E=l.length;if(E>0){var S=[];l[0].wholeMatch.start!==0&&S.push(n.slice(0,l[0].wholeMatch.start));for(var C=0;C<E;++C)S.push(s(n.slice(l[C].wholeMatch.start,l[C].wholeMatch.end),n.slice(l[C].match.start,l[C].match.end),n.slice(l[C].left.start,l[C].left.end),n.slice(l[C].right.start,l[C].right.end))),C<E-1&&S.push(n.slice(l[C].wholeMatch.end,l[C+1].wholeMatch.start));l[E-1].wholeMatch.end<n.length&&S.push(n.slice(l[E-1].wholeMatch.end)),b=S.join("")}return b},r.helper.regexIndexOf=function(n,s,u){if(!r.helper.isString(n))throw"InvalidArgumentError: first parameter of showdown.helper.regexIndexOf function must be a string";if(!(s instanceof RegExp))throw"InvalidArgumentError: second parameter of showdown.helper.regexIndexOf function must be an instance of RegExp";var d=n.substring(u||0).search(s);return d>=0?d+(u||0):d},r.helper.splitAtIndex=function(n,s){if(!r.helper.isString(n))throw"InvalidArgumentError: first parameter of showdown.helper.regexIndexOf function must be a string";return[n.substring(0,s),n.substring(s)]},r.helper.encodeEmailAddress=function(n){var s=[function(u){return"&#"+u.charCodeAt(0)+";"},function(u){return"&#x"+u.charCodeAt(0).toString(16)+";"},function(u){return u}];return n=n.replace(/./g,function(u){if(u==="@")u=s[Math.floor(Math.random()*2)](u);else{var d=Math.random();u=d>.9?s[2](u):d>.45?s[1](u):s[0](u)}return u}),n},r.helper.padEnd=function(s,u,d){return u=u>>0,d=String(d||" "),s.length>u?String(s):(u=u-s.length,u>d.length&&(d+=d.repeat(u/d.length)),String(s)+d.slice(0,u))},typeof console>"u"&&(console={warn:function(n){alert(n)},log:function(n){alert(n)},error:function(n){throw n}}),r.helper.regexes={asteriskDashAndColon:/([*_:~])/g},r.helper.emojis={"+1":"👍","-1":"👎",100:"💯",1234:"🔢","1st_place_medal":"🥇","2nd_place_medal":"🥈","3rd_place_medal":"🥉","8ball":"🎱",a:"🅰️",ab:"🆎",abc:"🔤",abcd:"🔡",accept:"🉑",aerial_tramway:"🚡",airplane:"✈️",alarm_clock:"⏰",alembic:"⚗️",alien:"👽",ambulance:"🚑",amphora:"🏺",anchor:"⚓️",angel:"👼",anger:"💢",angry:"😠",anguished:"😧",ant:"🐜",apple:"🍎",aquarius:"♒️",aries:"♈️",arrow_backward:"◀️",arrow_double_down:"⏬",arrow_double_up:"⏫",arrow_down:"⬇️",arrow_down_small:"🔽",arrow_forward:"▶️",arrow_heading_down:"⤵️",arrow_heading_up:"⤴️",arrow_left:"⬅️",arrow_lower_left:"↙️",arrow_lower_right:"↘️",arrow_right:"➡️",arrow_right_hook:"↪️",arrow_up:"⬆️",arrow_up_down:"↕️",arrow_up_small:"🔼",arrow_upper_left:"↖️",arrow_upper_right:"↗️",arrows_clockwise:"🔃",arrows_counterclockwise:"🔄",art:"🎨",articulated_lorry:"🚛",artificial_satellite:"🛰",astonished:"😲",athletic_shoe:"👟",atm:"🏧",atom_symbol:"⚛️",avocado:"🥑",b:"🅱️",baby:"👶",baby_bottle:"🍼",baby_chick:"🐤",baby_symbol:"🚼",back:"🔙",bacon:"🥓",badminton:"🏸",baggage_claim:"🛄",baguette_bread:"🥖",balance_scale:"⚖️",balloon:"🎈",ballot_box:"🗳",ballot_box_with_check:"☑️",bamboo:"🎍",banana:"🍌",bangbang:"‼️",bank:"🏦",bar_chart:"📊",barber:"💈",baseball:"⚾️",basketball:"🏀",basketball_man:"⛹️",basketball_woman:"⛹️‍♀️",bat:"🦇",bath:"🛀",bathtub:"🛁",battery:"🔋",beach_umbrella:"🏖",bear:"🐻",bed:"🛏",bee:"🐝",beer:"🍺",beers:"🍻",beetle:"🐞",beginner:"🔰",bell:"🔔",bellhop_bell:"🛎",bento:"🍱",biking_man:"🚴",bike:"🚲",biking_woman:"🚴‍♀️",bikini:"👙",biohazard:"☣️",bird:"🐦",birthday:"🎂",black_circle:"⚫️",black_flag:"🏴",black_heart:"🖤",black_joker:"🃏",black_large_square:"⬛️",black_medium_small_square:"◾️",black_medium_square:"◼️",black_nib:"✒️",black_small_square:"▪️",black_square_button:"🔲",blonde_man:"👱",blonde_woman:"👱‍♀️",blossom:"🌼",blowfish:"🐡",blue_book:"📘",blue_car:"🚙",blue_heart:"💙",blush:"😊",boar:"🐗",boat:"⛵️",bomb:"💣",book:"📖",bookmark:"🔖",bookmark_tabs:"📑",books:"📚",boom:"💥",boot:"👢",bouquet:"💐",bowing_man:"🙇",bow_and_arrow:"🏹",bowing_woman:"🙇‍♀️",bowling:"🎳",boxing_glove:"🥊",boy:"👦",bread:"🍞",bride_with_veil:"👰",bridge_at_night:"🌉",briefcase:"💼",broken_heart:"💔",bug:"🐛",building_construction:"🏗",bulb:"💡",bullettrain_front:"🚅",bullettrain_side:"🚄",burrito:"🌯",bus:"🚌",business_suit_levitating:"🕴",busstop:"🚏",bust_in_silhouette:"👤",busts_in_silhouette:"👥",butterfly:"🦋",cactus:"🌵",cake:"🍰",calendar:"📆",call_me_hand:"🤙",calling:"📲",camel:"🐫",camera:"📷",camera_flash:"📸",camping:"🏕",cancer:"♋️",candle:"🕯",candy:"🍬",canoe:"🛶",capital_abcd:"🔠",capricorn:"♑️",car:"🚗",card_file_box:"🗃",card_index:"📇",card_index_dividers:"🗂",carousel_horse:"🎠",carrot:"🥕",cat:"🐱",cat2:"🐈",cd:"💿",chains:"⛓",champagne:"🍾",chart:"💹",chart_with_downwards_trend:"📉",chart_with_upwards_trend:"📈",checkered_flag:"🏁",cheese:"🧀",cherries:"🍒",cherry_blossom:"🌸",chestnut:"🌰",chicken:"🐔",children_crossing:"🚸",chipmunk:"🐿",chocolate_bar:"🍫",christmas_tree:"🎄",church:"⛪️",cinema:"🎦",circus_tent:"🎪",city_sunrise:"🌇",city_sunset:"🌆",cityscape:"🏙",cl:"🆑",clamp:"🗜",clap:"👏",clapper:"🎬",classical_building:"🏛",clinking_glasses:"🥂",clipboard:"📋",clock1:"🕐",clock10