/*! For license information please see main.6d506eed.js.LICENSE.txt */ !function(){var e={9799:function(e,t,n){"use strict";var r={};n.r(r),n.d(r,{attentionMarkers:function(){return Ah},contentInitial:function(){return xh},disable:function(){return _h},document:function(){return bh},flow:function(){return wh},flowInitial:function(){return Th},insideSpan:function(){return Eh},string:function(){return Sh},text:function(){return Ch}});var i={};n.r(i),n.d(i,{safe:function(){return ey},spec:function(){return KO}});var o={};n.r(o),n.d(o,{getTrace:function(){return Rk},isKeyword:function(){return Mk},isProperty:function(){return Nk},isType:function(){return Dk}});var a={};n.r(a),n.d(a,{generate:function(){return Ob},name:function(){return mb},parse:function(){return vb},structure:function(){return gb}});var s={};n.r(s),n.d(s,{generate:function(){return Sb},name:function(){return bb},parse:function(){return wb},structure:function(){return Tb},walkContext:function(){return xb}});var u={};n.r(u),n.d(u,{generate:function(){return Qb},name:function(){return Cb},parse:function(){return _b},structure:function(){return Ab},walkContext:function(){return Eb}});var l={};n.r(l),n.d(l,{generate:function(){return Ib},name:function(){return Db},parse:function(){return Mb},structure:function(){return Nb}});var c={};n.r(c),n.d(c,{generate:function(){return Wb},name:function(){return jb},parse:function(){return Hb},structure:function(){return zb},walkContext:function(){return Bb}});var h={};n.r(h),n.d(h,{generate:function(){return Gb},name:function(){return Ub},parse:function(){return Xb},structure:function(){return qb}});var f={};n.r(f),n.d(f,{generate:function(){return Kb},name:function(){return Jb},parse:function(){return Yb},structure:function(){return Vb}});var d={};n.r(d),n.d(d,{generate:function(){return rx},name:function(){return ex},parse:function(){return nx},structure:function(){return tx}});var p={};n.r(p),n.d(p,{generate:function(){return sx},name:function(){return ix},parse:function(){return ax},structure:function(){return ox}});var m={};n.r(m),n.d(m,{generate:function(){return hx},name:function(){return ux},parse:function(){return cx},structure:function(){return lx}});var g={};n.r(g),n.d(g,{generate:function(){return mx},name:function(){return fx},parse:function(){return px},structure:function(){return dx}});var v={};n.r(v),n.d(v,{generate:function(){return Tx},name:function(){return yx},parse:function(){return xx},structure:function(){return bx},walkContext:function(){return kx}});var O={};n.r(O),n.d(O,{generate:function(){return Qx},name:function(){return Ex},parse:function(){return _x},structure:function(){return Ax}});var y={};n.r(y),n.d(y,{generate:function(){return Nx},name:function(){return Px},parse:function(){return Dx},structure:function(){return Rx}});var k={};n.r(k),n.d(k,{generate:function(){return Zx},name:function(){return Mx},parse:function(){return Fx},structure:function(){return Lx},walkContext:function(){return Ix}});var b={};n.r(b),n.d(b,{generate:function(){return Hx},name:function(){return jx},parse:function(){return zx},structure:function(){return Bx},xxx:function(){return $x}});var x={};n.r(x),n.d(x,{generate:function(){return Xx},name:function(){return Wx},parse:function(){return qx},structure:function(){return Ux}});var T={};n.r(T),n.d(T,{generate:function(){return Yx},name:function(){return Gx},parse:function(){return Vx},structure:function(){return Jx}});var w={};n.r(w),n.d(w,{generate:function(){return nT},name:function(){return Kx},parse:function(){return tT},structure:function(){return eT}});var S={};n.r(S),n.d(S,{generate:function(){return aT},name:function(){return rT},parse:function(){return oT},structure:function(){return iT}});var C={};n.r(C),n.d(C,{generate:function(){return cT},name:function(){return sT},parse:function(){return lT},structure:function(){return uT}});var E={};n.r(E),n.d(E,{generate:function(){return pT},name:function(){return hT},parse:function(){return dT},structure:function(){return fT}});var A={};n.r(A),n.d(A,{generate:function(){return OT},name:function(){return mT},parse:function(){return vT},structure:function(){return gT}});var _={};n.r(_),n.d(_,{generate:function(){return xT},name:function(){return yT},parse:function(){return bT},structure:function(){return kT}});var Q={};n.r(Q),n.d(Q,{generate:function(){return CT},name:function(){return TT},parse:function(){return ST},structure:function(){return wT}});var P={};n.r(P),n.d(P,{generate:function(){return QT},name:function(){return ET},parse:function(){return _T},structure:function(){return AT}});var R={};n.r(R),n.d(R,{generate:function(){return MT},name:function(){return PT},parse:function(){return NT},structure:function(){return DT},walkContext:function(){return RT}});var D={};n.r(D),n.d(D,{generate:function(){return $T},name:function(){return IT},parse:function(){return ZT},structure:function(){return FT},walkContext:function(){return LT}});var N={};n.r(N),n.d(N,{generate:function(){return WT},name:function(){return BT},parse:function(){return HT},structure:function(){return zT}});var M={};n.r(M),n.d(M,{generate:function(){return JT},name:function(){return qT},parse:function(){return GT},structure:function(){return XT}});var I={};n.r(I),n.d(I,{generate:function(){return rw},name:function(){return KT},parse:function(){return nw},structure:function(){return tw},walkContext:function(){return ew}});var L={};n.r(L),n.d(L,{generate:function(){return sw},name:function(){return iw},parse:function(){return aw},structure:function(){return ow}});var F={};n.r(F),n.d(F,{generate:function(){return fw},name:function(){return uw},parse:function(){return hw},structure:function(){return cw},walkContext:function(){return lw}});var Z={};n.r(Z),n.d(Z,{generate:function(){return vw},name:function(){return pw},parse:function(){return gw},structure:function(){return mw}});var $={};n.r($),n.d($,{generate:function(){return Tw},name:function(){return yw},parse:function(){return xw},structure:function(){return bw},walkContext:function(){return kw}});var j={};n.r(j),n.d(j,{generate:function(){return Aw},name:function(){return Sw},parse:function(){return Ew},structure:function(){return Cw}});var B={};n.r(B),n.d(B,{generate:function(){return Iw},name:function(){return Dw},parse:function(){return Mw},structure:function(){return Nw}});var z={};n.r(z),n.d(z,{generate:function(){return $w},name:function(){return Lw},parse:function(){return Zw},structure:function(){return Fw}});var H={};n.r(H),n.d(H,{generate:function(){return Hw},name:function(){return jw},parse:function(){return zw},structure:function(){return Bw}});var W={};n.r(W),n.d(W,{generate:function(){return Gw},name:function(){return Uw},parse:function(){return Xw},structure:function(){return qw}});var U={};n.r(U),n.d(U,{AnPlusB:function(){return a},Atrule:function(){return s},AtrulePrelude:function(){return u},AttributeSelector:function(){return l},Block:function(){return c},Brackets:function(){return h},CDC:function(){return f},CDO:function(){return d},ClassSelector:function(){return p},Combinator:function(){return m},Comment:function(){return g},Declaration:function(){return v},DeclarationList:function(){return O},Dimension:function(){return y},Function:function(){return k},Hash:function(){return b},IdSelector:function(){return T},Identifier:function(){return x},MediaFeature:function(){return w},MediaQuery:function(){return S},MediaQueryList:function(){return C},Nth:function(){return E},Number:function(){return A},Operator:function(){return _},Parentheses:function(){return Q},Percentage:function(){return P},PseudoClassSelector:function(){return R},PseudoElementSelector:function(){return D},Ratio:function(){return N},Raw:function(){return M},Rule:function(){return I},Selector:function(){return L},SelectorList:function(){return F},String:function(){return Z},StyleSheet:function(){return $},TypeSelector:function(){return j},UnicodeRange:function(){return B},Url:function(){return z},Value:function(){return H},WhiteSpace:function(){return W}});var q={};n.r(q),n.d(q,{AtrulePrelude:function(){return Yw},Selector:function(){return Kw},Value:function(){return tS}});var X={};function G(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}n.r(X),n.d(X,{AnPlusB:function(){return vb},Atrule:function(){return wb},AtrulePrelude:function(){return _b},AttributeSelector:function(){return Mb},Block:function(){return Hb},Brackets:function(){return Xb},CDC:function(){return Yb},CDO:function(){return nx},ClassSelector:function(){return ax},Combinator:function(){return cx},Comment:function(){return px},Declaration:function(){return xx},DeclarationList:function(){return _x},Dimension:function(){return Dx},Function:function(){return Fx},Hash:function(){return zx},IdSelector:function(){return Vx},Identifier:function(){return qx},MediaFeature:function(){return tT},MediaQuery:function(){return oT},MediaQueryList:function(){return lT},Nth:function(){return dT},Number:function(){return vT},Operator:function(){return bT},Parentheses:function(){return ST},Percentage:function(){return _T},PseudoClassSelector:function(){return NT},PseudoElementSelector:function(){return ZT},Ratio:function(){return HT},Raw:function(){return GT},Rule:function(){return nw},Selector:function(){return aw},SelectorList:function(){return hw},String:function(){return gw},StyleSheet:function(){return xw},TypeSelector:function(){return Ew},UnicodeRange:function(){return Mw},Url:function(){return Zw},Value:function(){return zw},WhiteSpace:function(){return Xw}});var J,V=n(8133),Y=n(805),K=n(726),ee=n(1026);function te(){return te=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0&&(t.hash=e.substr(n),e=e.substr(0,n));var r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}var he=(0,V.createContext)(null);var fe=(0,V.createContext)(null);var de=(0,V.createContext)({outlet:null,matches:[]});function pe(e,t){if(!e)throw new Error(t)}function me(e,t,n){void 0===n&&(n="/");var r=Te(("string"===typeof t?ce(t):t).pathname||"/",n);if(null==r)return null;var i=ge(e);!function(e){e.sort((function(e,t){return e.score!==t.score?t.score-e.score:function(e,t){var n=e.length===t.length&&e.slice(0,-1).every((function(e,n){return e===t[n]}));return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((function(e){return e.childrenIndex})),t.routesMeta.map((function(e){return e.childrenIndex})))}))}(i);for(var o=null,a=0;null==o&&a0&&(!0===e.index&&pe(!1),ge(e.children,t,s,a)),(null!=e.path||e.index)&&t.push({path:a,score:ye(a,e.index),routesMeta:s})})),t}var ve=/^:\w+$/,Oe=function(e){return"*"===e};function ye(e,t){var n=e.split("/"),r=n.length;return n.some(Oe)&&(r+=-2),t&&(r+=2),n.filter((function(e){return!Oe(e)})).reduce((function(e,t){return e+(ve.test(t)?3:""===t?1:10)}),r)}function ke(e,t){for(var n=e.routesMeta,r={},i="/",o=[],a=0;a=0?t[a]:"/"}var u=function(e,t){void 0===t&&(t="/");var n="string"===typeof e?ce(e):e,r=n.pathname,i=n.search,o=void 0===i?"":i,a=n.hash,s=void 0===a?"":a,u=r?r.startsWith("/")?r:function(e,t){var n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((function(e){".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}(r,t):t;return{pathname:u,search:Ce(o),hash:Ee(s)}}(i,r);return o&&"/"!==o&&o.endsWith("/")&&!u.pathname.endsWith("/")&&(u.pathname+="/"),u}function Te(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;var n=e.charAt(t.length);return n&&"/"!==n?null:e.slice(t.length)||"/"}var we=function(e){return e.join("/").replace(/\/\/+/g,"/")},Se=function(e){return e.replace(/\/+$/,"").replace(/^\/*/,"/")},Ce=function(e){return e&&"?"!==e?e.startsWith("?")?e:"?"+e:""},Ee=function(e){return e&&"#"!==e?e.startsWith("#")?e:"#"+e:""};function Ae(e){_e()||pe(!1);var t=(0,V.useContext)(he),n=t.basename,r=t.navigator,i=De(e),o=i.hash,a=i.pathname,s=i.search,u=a;if("/"!==n){var l=function(e){return""===e||""===e.pathname?"/":"string"===typeof e?ce(e).pathname:e.pathname}(e),c=null!=l&&l.endsWith("/");u="/"===a?n+(c?"/":""):we([n,a])}return r.createHref({pathname:u,search:s,hash:o})}function _e(){return null!=(0,V.useContext)(fe)}function Qe(){return _e()||pe(!1),(0,V.useContext)(fe).location}function Pe(){_e()||pe(!1);var e=(0,V.useContext)(he),t=e.basename,n=e.navigator,r=(0,V.useContext)(de).matches,i=Qe().pathname,o=JSON.stringify(r.map((function(e){return e.pathnameBase}))),a=(0,V.useRef)(!1);(0,V.useEffect)((function(){a.current=!0}));var s=(0,V.useCallback)((function(e,r){if(void 0===r&&(r={}),a.current)if("number"!==typeof e){var s=xe(e,JSON.parse(o),i);"/"!==t&&(s.pathname=we([t,s.pathname])),(r.replace?n.replace:n.push)(s,r.state)}else n.go(e)}),[t,n,o,i]);return s}var Re=(0,V.createContext)(null);function De(e){var t=(0,V.useContext)(de).matches,n=Qe().pathname,r=JSON.stringify(t.map((function(e){return e.pathnameBase})));return(0,V.useMemo)((function(){return xe(e,JSON.parse(r),n)}),[e,r,n])}function Ne(e,t){return void 0===t&&(t=[]),null==e?null:e.reduceRight((function(n,r,i){return(0,V.createElement)(de.Provider,{children:void 0!==r.route.element?r.route.element:n,value:{outlet:n,matches:t.concat(e.slice(0,i+1))}})}),null)}function Me(e){return function(e){var t=(0,V.useContext)(de).outlet;return t?(0,V.createElement)(Re.Provider,{value:e},t):t}(e.context)}function Ie(e){pe(!1)}function Le(e){var t=e.basename,n=void 0===t?"/":t,r=e.children,i=void 0===r?null:r,o=e.location,a=e.navigationType,s=void 0===a?J.Pop:a,u=e.navigator,l=e.static,c=void 0!==l&&l;_e()&&pe(!1);var h=Se(n),f=(0,V.useMemo)((function(){return{basename:h,navigator:u,static:c}}),[h,u,c]);"string"===typeof o&&(o=ce(o));var d=o,p=d.pathname,m=void 0===p?"/":p,g=d.search,v=void 0===g?"":g,O=d.hash,y=void 0===O?"":O,k=d.state,b=void 0===k?null:k,x=d.key,T=void 0===x?"default":x,w=(0,V.useMemo)((function(){var e=Te(m,h);return null==e?null:{pathname:e,search:v,hash:y,state:b,key:T}}),[h,m,v,y,b,T]);return null==w?null:(0,V.createElement)(he.Provider,{value:f},(0,V.createElement)(fe.Provider,{children:i,value:{location:w,navigationType:s}}))}function Fe(e){var t=e.children,n=e.location;return function(e,t){_e()||pe(!1);var n,r=(0,V.useContext)(de).matches,i=r[r.length-1],o=i?i.params:{},a=(i&&i.pathname,i?i.pathnameBase:"/"),s=(i&&i.route,Qe());if(t){var u,l="string"===typeof t?ce(t):t;"/"===a||(null==(u=l.pathname)?void 0:u.startsWith(a))||pe(!1),n=l}else n=s;var c=n.pathname||"/",h=me(e,{pathname:"/"===a?c:c.slice(a.length)||"/"});return Ne(h&&h.map((function(e){return Object.assign({},e,{params:Object.assign({},o,e.params),pathname:we([a,e.pathname]),pathnameBase:"/"===e.pathnameBase?a:we([a,e.pathnameBase])})})),r)}(Ze(t),n)}function Ze(e){var t=[];return V.Children.forEach(e,(function(e){if((0,V.isValidElement)(e))if(e.type!==V.Fragment){e.type!==Ie&&pe(!1);var n={caseSensitive:e.props.caseSensitive,element:e.props.element,index:e.props.index,path:e.props.path};e.props.children&&(n.children=Ze(e.props.children)),t.push(n)}else t.push.apply(t,Ze(e.props.children))})),t}function $e(){return $e=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}var Be=["onClick","reloadDocument","replace","state","target","to"],ze=["aria-current","caseSensitive","className","end","style","to","children"];function He(e){var t=e.basename,n=e.children,r=e.window,i=(0,V.useRef)();null==i.current&&(i.current=oe({window:r}));var o=i.current,a=(0,V.useState)({action:o.action,location:o.location}),s=(0,ee.Z)(a,2),u=s[0],l=s[1];return(0,V.useLayoutEffect)((function(){return o.listen(l)}),[o]),(0,V.createElement)(Le,{basename:t,children:n,location:u.location,navigationType:u.action,navigator:o})}var We=(0,V.forwardRef)((function(e,t){var n=e.onClick,r=e.reloadDocument,i=e.replace,o=void 0!==i&&i,a=e.state,s=e.target,u=e.to,l=je(e,Be),c=Ae(u),h=function(e,t){var n=void 0===t?{}:t,r=n.target,i=n.replace,o=n.state,a=Pe(),s=Qe(),u=De(e);return(0,V.useCallback)((function(t){if(0===t.button&&(!r||"_self"===r)&&!function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(t)){t.preventDefault();var n=!!i||le(s)===le(u);a(e,{replace:n,state:o})}}),[s,a,u,i,o,r,e])}(u,{replace:o,state:a,target:s});return(0,V.createElement)("a",$e({},l,{href:c,onClick:function(e){n&&n(e),e.defaultPrevented||r||h(e)},ref:t,target:s}))}));var Ue=(0,V.forwardRef)((function(e,t){var n=e["aria-current"],r=void 0===n?"page":n,i=e.caseSensitive,o=void 0!==i&&i,a=e.className,s=void 0===a?"":a,u=e.end,l=void 0!==u&&u,c=e.style,h=e.to,f=e.children,d=je(e,ze),p=Qe(),m=De(h),g=p.pathname,v=m.pathname;o||(g=g.toLowerCase(),v=v.toLowerCase());var O,y=g===v||!l&&g.startsWith(v)&&"/"===g.charAt(v.length),k=y?r:void 0;O="function"===typeof s?s({isActive:y}):[s,y?"active":null].filter(Boolean).join(" ");var b="function"===typeof c?c({isActive:y}):c;return(0,V.createElement)(We,$e({},d,{"aria-current":k,className:O,ref:t,style:b,to:h}),"function"===typeof f?f({isActive:y}):f)}));function qe(e){return void 0===e&&(e=""),new URLSearchParams("string"===typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((function(t,n){var r=e[n];return t.concat(Array.isArray(r)?r.map((function(e){return[n,e]})):[[n,r]])}),[]))}function Xe(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}var Ge=n(9265),Je=["className","prefixCls","element","top","size","strokeWidth","smooth","hideProgress","children"],Ve={position:"sticky",bottom:15,right:15,visibility:"visible",opacity:0,transition:"visibility 0.3s linear 0s, opacity 0.3s linear 0s",cursor:"pointer",userSelect:"none"},Ye={display:"block",transform:"rotate(-90deg)"},Ke={transition:"stroke-dashoffset 0.3s linear 0s"},et={position:"absolute",top:0,display:"flex",height:"100%",width:"100%",alignItems:"center",justifyContent:"center",color:"#fff",fontSize:12},tt=document.documentElement;function nt(e){void 0===e&&(e={});var t=e,n=t.className,r=t.prefixCls,i=void 0===r?"w-back-to-up":r,o=t.element,a=void 0===o?tt:o,s=t.top,u=void 0===s?120:s,l=t.size,c=void 0===l?35:l,h=t.strokeWidth,f=void 0===h?3:h,d=t.smooth,p=void 0===d||d,m=t.hideProgress,g=void 0!==m&&m,v=t.children,O=Xe(e,Je),y=(0,V.useRef)(null),k=[n,i].filter(Boolean).join(" "),b=Object.assign({},Ve,{position:a===tt?"fixed":"sticky"},O.style,{width:c,height:c,opacity:0===u?1:0}),x=(0,V.useMemo)((function(){return c/2}),[c]),T=(0,V.useMemo)((function(){return c/2-f/2}),[c,f]),w=(0,V.useMemo)((function(){return Math.PI*T*2}),[T]),S=(0,V.useState)(w||0),C=(0,ee.Z)(S,2),E=C[0],A=C[1],_=function(e){var t=a||tt,n=t.clientHeight,r=t.scrollHeight,i=t.scrollTop;A(w-w*(i/(r-n))),y.current&&u>0&&(y.current.style.opacity=i>u?"1":"0")};(0,V.useEffect)((function(){var e=a===tt?document:a;return e&&e.addEventListener("scroll",_,{passive:!0}),function(){e&&e.removeEventListener("scroll",_)}}),[a]);return(0,Ge.jsxs)("div",te({className:k,ref:y},O,{onClick:function(e){a.scrollTo({top:0,behavior:p?"smooth":"auto"})},style:b,children:[!g&&(0,Ge.jsxs)("svg",{viewBox:"0 0 "+c+" "+c,width:c,height:c,focusable:"false",style:Ye,children:[(0,Ge.jsx)("circle",{fill:"rgb(0 0 0 / 75%)",stroke:"rgb(200 200 200 / 85%)",strokeWidth:f,r:T,cx:x,cy:x}),(0,Ge.jsx)("circle",{fill:"none",stroke:"rgb(0 0 0 / 50%)",strokeWidth:f,r:T,cx:x,cy:x,strokeDasharray:w,strokeDashoffset:E,style:Ke})]}),v&&(0,Ge.jsx)("div",{style:et,children:v})]}))}var rt=n(649),it=n(189),ot=n(4649),at={data:""},st=function(e){return"object"==typeof window?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||at},ut=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,lt=/\/\*[^]*?\*\/| +/g,ct=/\n+/g,ht=function e(t,n){var r="",i="",o="",a=function(a){var u=t[a];"@"==a[0]?"i"==a[1]?r=a+" "+u+";":i+="f"==a[1]?e(u,a):a+"{"+e(u,"k"==a[1]?"":n)+"}":"object"==typeof u?i+=e(u,n?n.replace(/([^,])+/g,(function(e){return a.replace(/(^:.*)|([^,])+/g,(function(t){return/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t}))})):a):null!=u&&(a=/^--/.test(a)?a:a.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=e.p?e.p(a,u):a+":"+u+";"),s=a};for(var s in t)a(s);return r+(n&&o?n+"{"+o+"}":o)+i},ft={},dt=function e(t){if("object"==typeof t){var n="";for(var r in t)n+=r+e(t[r]);return n}return t},pt=function(e,t,n,r,i){var o=dt(e),a=ft[o]||(ft[o]=function(e){for(var t=0,n=11;t>>0;return"go"+n}(o));if(!ft[a]){var s=o!==e?e:function(e){for(var t,n,r=[{}];t=ut.exec(e.replace(lt,""));)t[4]?r.shift():t[3]?(n=t[3].replace(ct," ").trim(),r.unshift(r[0][n]=r[0][n]||{})):r[0][t[1]]=t[2].replace(ct," ").trim();return r[0]}(e);ft[a]=ht(i?(0,ot.Z)({},"@keyframes "+a,s):s,n?"":"."+a)}var u=n&&ft.g?ft.g:null;return n&&(ft.g=ft[a]),function(e,t,n,r){r?t.data=t.data.replace(r,e):-1===t.data.indexOf(e)&&(t.data=n?e+t.data:t.data+e)}(ft[a],t,r,u),a},mt=function(e,t,n){return e.reduce((function(e,r,i){var o=t[i];if(o&&o.call){var a=o(n),s=a&&a.props&&a.props.className||/^go/.test(a)&&a;o=s?"."+s:a&&"object"==typeof a?a.props?"":ht(a,""):!1===a?"":a}return e+r+(null==o?"":o)}),"")};function gt(e){var t=this||{},n=e.call?e(t.p):e;return pt(n.unshift?n.raw?mt(n,[].slice.call(arguments,1),t.p):n.reduce((function(e,n){return Object.assign(e,n&&n.call?n(t.p):n)}),{}):n,st(t.target),t.g,t.o,t.k)}gt.bind({g:1});var vt,Ot,yt,kt,bt,xt,Tt,wt,St,Ct,Et,At,_t,Qt,Pt,Rt,Dt,Nt,Mt,It=gt.bind({k:1});function Lt(e,t){var n=this||{};return function(){var r=arguments;function i(o,a){var s=Object.assign({},o),u=s.className||i.className;n.p=Object.assign({theme:Ot&&Ot()},s),n.o=/ *go\d+/.test(u),s.className=gt.apply(n,r)+(u?" "+u:""),t&&(s.ref=a);var l=e;return e[0]&&(l=s.as||e,delete s.as),yt&&l[0]&&yt(s),vt(l,s)}return t?t(i):i}}var Ft=function(e,t){return function(e){return"function"==typeof e}(e)?e(t):e},Zt=function(){var e=0;return function(){return(++e).toString()}}(),$t=function(){var e;return function(){if(void 0===e&&typeof window<"u"){var t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}}(),jt=new Map,Bt=function(e){if(!jt.has(e)){var t=setTimeout((function(){jt.delete(e),Ut({type:4,toastId:e})}),1e3);jt.set(e,t)}},zt=function e(t,n){switch(n.type){case 0:return(0,it.Z)((0,it.Z)({},t),{},{toasts:[n.toast].concat((0,rt.Z)(t.toasts)).slice(0,20)});case 1:return n.toast.id&&function(e){var t=jt.get(e);t&&clearTimeout(t)}(n.toast.id),(0,it.Z)((0,it.Z)({},t),{},{toasts:t.toasts.map((function(e){return e.id===n.toast.id?(0,it.Z)((0,it.Z)({},e),n.toast):e}))});case 2:var r=n.toast;return t.toasts.find((function(e){return e.id===r.id}))?e(t,{type:1,toast:r}):e(t,{type:0,toast:r});case 3:var i=n.toastId;return i?Bt(i):t.toasts.forEach((function(e){Bt(e.id)})),(0,it.Z)((0,it.Z)({},t),{},{toasts:t.toasts.map((function(e){return e.id===i||void 0===i?(0,it.Z)((0,it.Z)({},e),{},{visible:!1}):e}))});case 4:return void 0===n.toastId?(0,it.Z)((0,it.Z)({},t),{},{toasts:[]}):(0,it.Z)((0,it.Z)({},t),{},{toasts:t.toasts.filter((function(e){return e.id!==n.toastId}))});case 5:return(0,it.Z)((0,it.Z)({},t),{},{pausedAt:n.time});case 6:var o=n.time-(t.pausedAt||0);return(0,it.Z)((0,it.Z)({},t),{},{pausedAt:void 0,toasts:t.toasts.map((function(e){return(0,it.Z)((0,it.Z)({},e),{},{pauseDuration:e.pauseDuration+o})}))})}},Ht=[],Wt={toasts:[],pausedAt:void 0},Ut=function(e){Wt=zt(Wt,e),Ht.forEach((function(e){e(Wt)}))},qt={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},Xt=function(e){return function(t,n){var r=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"blank",n=arguments.length>2?arguments[2]:void 0;return(0,it.Z)((0,it.Z)({createdAt:Date.now(),visible:!0,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0},n),{},{id:(null==n?void 0:n.id)||Zt()})}(t,e,n);return Ut({type:2,toast:r}),r.id}},Gt=function(e,t){return Xt("blank")(e,t)};Gt.error=Xt("error"),Gt.success=Xt("success"),Gt.loading=Xt("loading"),Gt.custom=Xt("custom"),Gt.dismiss=function(e){Ut({type:3,toastId:e})},Gt.remove=function(e){return Ut({type:4,toastId:e})},Gt.promise=function(e,t,n){var r=Gt.loading(t.loading,(0,it.Z)((0,it.Z)({},n),null==n?void 0:n.loading));return e.then((function(e){return Gt.success(Ft(t.success,e),(0,it.Z)((0,it.Z)({id:r},n),null==n?void 0:n.success)),e})).catch((function(e){Gt.error(Ft(t.error,e),(0,it.Z)((0,it.Z)({id:r},n),null==n?void 0:n.error))})),e};var Jt=function(e){var t=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,V.useState)(Wt),n=(0,ee.Z)(t,2),r=n[0],i=n[1];(0,V.useEffect)((function(){return Ht.push(i),function(){var e=Ht.indexOf(i);e>-1&&Ht.splice(e,1)}}),[r]);var o=r.toasts.map((function(t){var n,r;return(0,it.Z)((0,it.Z)((0,it.Z)((0,it.Z)({},e),e[t.type]),t),{},{duration:t.duration||(null==(n=e[t.type])?void 0:n.duration)||(null==e?void 0:e.duration)||qt[t.type],style:(0,it.Z)((0,it.Z)((0,it.Z)({},e.style),null==(r=e[t.type])?void 0:r.style),t.style)})}));return(0,it.Z)((0,it.Z)({},r),{},{toasts:o})}(e),n=t.toasts,r=t.pausedAt;(0,V.useEffect)((function(){if(!r){var e=Date.now(),t=n.map((function(t){if(t.duration!==1/0){var n=(t.duration||0)+t.pauseDuration-(e-t.createdAt);if(!(n<0))return setTimeout((function(){return Gt.dismiss(t.id)}),n);t.visible&&Gt.dismiss(t.id)}}));return function(){t.forEach((function(e){return e&&clearTimeout(e)}))}}}),[n,r]);var i=(0,V.useMemo)((function(){return{startPause:function(){Ut({type:5,time:Date.now()})},endPause:function(){r&&Ut({type:6,time:Date.now()})},updateHeight:function(e,t){return Ut({type:1,toast:{id:e,height:t}})},calculateOffset:function(e,t){var r,i=t||{},o=i.reverseOrder,a=void 0!==o&&o,s=i.gutter,u=void 0===s?8:s,l=i.defaultPosition,c=n.filter((function(t){return(t.position||l)===(e.position||l)&&t.height})),h=c.findIndex((function(t){return t.id===e.id})),f=c.filter((function(e,t){return t * {\n pointer-events: auto;\n }\n"]))),On=function(e){var t=e.reverseOrder,n=e.position,r=void 0===n?"top-center":n,i=e.toastOptions,o=e.gutter,a=e.children,s=e.containerStyle,u=e.containerClassName,l=Jt(i),c=l.toasts,h=l.handlers;return V.createElement("div",{style:(0,it.Z)({position:"fixed",zIndex:9999,top:16,left:16,right:16,bottom:16,pointerEvents:"none"},s),className:u,onMouseEnter:h.startPause,onMouseLeave:h.endPause},c.map((function(e){var n=e.position||r,i=function(e,t){var n=e.includes("top"),r=n?{top:0}:{bottom:0},i=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return(0,it.Z)((0,it.Z)({left:0,right:0,display:"flex",position:"absolute",transition:$t()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:"translateY(".concat(t*(n?1:-1),"px)")},r),i)}(n,h.calculateOffset(e,{reverseOrder:t,gutter:o,defaultPosition:r})),s=e.height?void 0:function(e){return function(t){t&&setTimeout((function(){var n=t.getBoundingClientRect();e(n)}))}}((function(t){h.updateHeight(e.id,t.height)}));return V.createElement("div",{ref:s,className:e.visible?vn:"",key:e.id,style:i},"custom"===e.type?Ft(e.message,e):a?a(e):V.createElement(gn,{toast:e,position:n}))})))},yn=Gt,kn=n(2471),bn=n(7361),xn=n.n(bn);var Tn=function(e){function t(e,r,u,l,f){for(var d,p,m,g,k,x=0,T=0,w=0,S=0,C=0,R=0,N=m=d=0,I=0,L=0,F=0,Z=0,$=u.length,j=$-1,B="",z="",H="",W="";I<$;){if(p=u.charCodeAt(I),I===j&&0!==T+S+w+x&&(0!==T&&(p=47===T?10:47),S=w=x=0,$++,j++),0===T+S+w+x){if(I===j&&(0d)&&(Z=(B=B.replace(" ",":")).length),0r&&(r=(t=t.trim()).charCodeAt(0)),r){case 38:return t.replace(g,"$1"+e.trim());case 58:return e.trim()+t.replace(g,"$1"+e.trim());default:if(0<1*n&&0u.charCodeAt(8))break;case 115:a=a.replace(u,"-webkit-"+u)+";"+a;break;case 207:case 102:a=a.replace(u,"-webkit-"+(102r.charCodeAt(0)&&(r=r.trim()),r=[r],01?t-1:0),r=1;r0?" Args: "+n.join(", "):""))}var Bn=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}var t=e.prototype;return t.indexOfGroup=function(e){for(var t=0,n=0;n=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,i=r;e>=i;)(i<<=1)<0&&jn(16,""+e);this.groupSizes=new Uint32Array(i),this.groupSizes.set(n),this.length=i;for(var o=r;o=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),i=r+n,o=r;o=Wn&&(Wn=t+1),zn.set(e,t),Hn.set(t,e)},Gn="style["+Ln+'][data-styled-version="5.3.5"]',Jn=new RegExp("^"+Ln+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),Vn=function(e,t,n){for(var r,i=n.split(","),o=0,a=i.length;o=0;n--){var r=t[n];if(r&&1===r.nodeType&&r.hasAttribute(Ln))return r}}(n),o=void 0!==i?i.nextSibling:null;r.setAttribute(Ln,"active"),r.setAttribute("data-styled-version","5.3.5");var a=Kn();return a&&r.setAttribute("nonce",a),n.insertBefore(r,o),r},tr=function(){function e(e){var t=this.element=er(e);t.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n=0){var n=document.createTextNode(t),r=this.nodes[e];return this.element.insertBefore(n,r||null),this.length++,!0}return!1},t.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},t.getRule=function(e){return e0&&(l+=e+",")})),r+=""+s+u+'{content:"'+l+'"}/*!sc*/\n'}}}return r}(this)},e}(),sr=/(a)(d)/gi,ur=function(e){return String.fromCharCode(e+(e>25?39:97))};function lr(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=ur(t%52)+n;return(ur(t%52)+n).replace(sr,"$1-$2")}var cr=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},hr=function(e){return cr(5381,e)};function fr(e){for(var t=0;t>>0);if(!t.hasNameForId(r,a)){var s=n(o,"."+a,void 0,r);t.insertRules(r,a,s)}i.push(a),this.staticRulesId=a}else{for(var u=this.rules.length,l=cr(this.baseHash,n.hash),c="",h=0;h>>0);if(!t.hasNameForId(r,m)){var g=n(c,"."+m,void 0,r);t.insertRules(r,m,g)}i.push(m)}}return i.join(" ")},e}(),mr=/^\s*\/\/.*$/gm,gr=[":","[",".","#"];function vr(e){var t,n,r,i,o=void 0===e?Dn:e,a=o.options,s=void 0===a?Dn:a,u=o.plugins,l=void 0===u?Rn:u,c=new Tn(s),h=[],f=function(e){function t(t){if(t)try{e(t+"}")}catch(e){}}return function(n,r,i,o,a,s,u,l,c,h){switch(n){case 1:if(0===c&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===l)return r+"/*|*/";break;case 3:switch(l){case 102:case 112:return e(i[0]+r),"";default:return r+(0===h?"/*|*/":"")}case-2:r.split("/*|*/}").forEach(t)}}}((function(e){h.push(e)})),d=function(e,r,o){return 0===r&&-1!==gr.indexOf(o[n.length])||o.match(i)?e:"."+t};function p(e,o,a,s){void 0===s&&(s="&");var u=e.replace(mr,""),l=o&&a?a+" "+o+" { "+u+" }":u;return t=s,n=o,r=new RegExp("\\"+n+"\\b","g"),i=new RegExp("(\\"+n+"\\b){2,}"),c(a||!o?"":o,l)}return c.use([].concat(l,[function(e,t,i){2===e&&i.length&&i[0].lastIndexOf(n)>0&&(i[0]=i[0].replace(r,d))},f,function(e){if(-2===e){var t=h;return h=[],t}}])),p.hash=l.length?l.reduce((function(e,t){return t.name||jn(15),cr(e,t.name)}),5381).toString():"",p}var Or=V.createContext(),yr=(Or.Consumer,V.createContext()),kr=(yr.Consumer,new ar),br=vr();function xr(){return(0,V.useContext)(Or)||kr}function Tr(){return(0,V.useContext)(yr)||br}function wr(e){var t=(0,V.useState)(e.stylisPlugins),n=t[0],r=t[1],i=xr(),o=(0,V.useMemo)((function(){var t=i;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target]),a=(0,V.useMemo)((function(){return vr({options:{prefix:!e.disableVendorPrefixes},plugins:n})}),[e.disableVendorPrefixes,n]);return(0,V.useEffect)((function(){xn()(n,e.stylisPlugins)||r(e.stylisPlugins)}),[e.stylisPlugins]),V.createElement(Or.Provider,{value:o},V.createElement(yr.Provider,{value:a},e.children))}var Sr=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=br);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.toString=function(){return jn(12,String(n.name))},this.name=e,this.id="sc-keyframes-"+e,this.rules=t}return e.prototype.getName=function(e){return void 0===e&&(e=br),this.name+e.hash},e}(),Cr=/([A-Z])/,Er=/([A-Z])/g,Ar=/^ms-/,_r=function(e){return"-"+e.toLowerCase()};function Qr(e){return Cr.test(e)?e.replace(Er,_r).replace(Ar,"-ms-"):e}var Pr=function(e){return null==e||!1===e||""===e};function Rr(e,t,n,r){if(Array.isArray(e)){for(var i,o=[],a=0,s=e.length;a1?t-1:0),r=1;r?@[\\\]^`{|}~-]+/g,Lr=/(^-|-$)/g;function Fr(e){return e.replace(Ir,"-").replace(Lr,"")}var Zr=function(e){return lr(hr(e)>>>0)};function $r(e){return"string"==typeof e&&!0}var jr=function(e){return"function"==typeof e||"object"==typeof e&&null!==e&&!Array.isArray(e)},Br=function(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e};function zr(e,t,n){var r=e[n];jr(t)&&jr(r)?Hr(r,t):e[n]=t}function Hr(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r=0||(i[n]=e[n]);return i}(t,["componentId"]),o=r&&r+"-"+($r(e)?e:Fr(Mn(e)));return qr(e,_n({},i,{attrs:f,componentId:o}),n)},Object.defineProperty(p,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=r?Hr({},e.defaultProps,t):t}}),p.toString=function(){return"."+p.styledComponentId},i&&An()(p,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),p}var Xr=function(e){return function e(t,n,r){if(void 0===r&&(r=Dn),!(0,kn.isValidElementType)(n))return jn(1,String(n));var i=function(){return t(n,r,Nr.apply(void 0,arguments))};return i.withConfig=function(i){return e(t,n,_n({},r,{},i))},i.attrs=function(i){return e(t,n,_n({},r,{attrs:Array.prototype.concat(r.attrs,i).filter(Boolean)}))},i}(qr,e)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(e){Xr[e]=Xr(e)}));var Gr=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=fr(e),ar.registerId(this.componentId+1)}var t=e.prototype;return t.createStyles=function(e,t,n,r){var i=r(Rr(this.rules,t,n,r).join(""),""),o=this.componentId+e;n.insertRules(o,o,i)},t.removeStyles=function(e,t){t.clearRules(this.componentId+e)},t.renderStyles=function(e,t,n,r){e>2&&ar.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)},e}();!function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return"";var n=Kn();return""},this.getStyleTags=function(){return e.sealed?jn(2):e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)return jn(2);var n=((t={})[Ln]="",t["data-styled-version"]="5.3.5",t.dangerouslySetInnerHTML={__html:e.instance.toString()},t),r=Kn();return r&&(n.nonce=r),[V.createElement("style",_n({},n,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new ar({isServer:!0}),this.sealed=!1}var t=e.prototype;t.collectStyles=function(e){return this.sealed?jn(2):V.createElement(wr,{sheet:this.instance},e)},t.interleaveWithNodeStream=function(e){return jn(3)}}();var Jr=Xr,Vr=n(2951),Yr=n(1976),Kr="undefined"===typeof window;function ei(){}function ti(e){return"number"===typeof e&&e>=0&&e!==1/0}function ni(e,t){return Math.max(e+(t||0)-Date.now(),0)}function ri(e,t,n){return gi(e)?"function"===typeof t?(0,it.Z)((0,it.Z)({},n),{},{queryKey:e,queryFn:t}):(0,it.Z)((0,it.Z)({},t),{},{queryKey:e}):e}function ii(e,t,n){return gi(e)?[(0,it.Z)((0,it.Z)({},t),{},{queryKey:e}),n]:[e||{},t]}function oi(e,t){var n=e.type,r=void 0===n?"all":n,i=e.exact,o=e.fetchStatus,a=e.predicate,s=e.queryKey,u=e.stale;if(gi(s))if(i){if(t.queryHash!==si(s,t.options))return!1}else if(!li(t.queryKey,s))return!1;if("all"!==r){var l=t.isActive();if("active"===r&&!l)return!1;if("inactive"===r&&l)return!1}return("boolean"!==typeof u||t.isStale()===u)&&(("undefined"===typeof o||o===t.state.fetchStatus)&&!(a&&!a(t)))}function ai(e,t){var n=e.exact,r=e.fetching,i=e.predicate,o=e.mutationKey;if(gi(o)){if(!t.options.mutationKey)return!1;if(n){if(ui(t.options.mutationKey)!==ui(o))return!1}else if(!li(t.options.mutationKey,o))return!1}return("boolean"!==typeof r||"loading"===t.state.status===r)&&!(i&&!i(t))}function si(e,t){return((null==t?void 0:t.queryKeyHashFn)||ui)(e)}function ui(e){return JSON.stringify(e,(function(e,t){return pi(t)?Object.keys(t).sort().reduce((function(e,n){return e[n]=t[n],e}),{}):t}))}function li(e,t){return ci(e,t)}function ci(e,t){return e===t||typeof e===typeof t&&(!(!e||!t||"object"!==typeof e||"object"!==typeof t)&&!Object.keys(t).some((function(n){return!ci(e[n],t[n])})))}function hi(e,t){if(e===t)return e;var n=di(e)&&di(t);if(n||pi(e)&&pi(t)){for(var r=n?e.length:Object.keys(e).length,i=n?t:Object.keys(t),o=i.length,a=n?[]:{},s=0,u=0;u0}},{key:"onSubscribe",value:function(){}},{key:"onUnsubscribe",value:function(){}}]),e}(),Ei=new(function(e){(0,ki.Z)(n,e);var t=(0,bi.Z)(n);function n(){var e;return(0,Vr.Z)(this,n),(e=t.call(this)).setup=function(e){if(!Kr&&window.addEventListener){var t=function(){return e()};return window.addEventListener("visibilitychange",t,!1),window.addEventListener("focus",t,!1),function(){window.removeEventListener("visibilitychange",t),window.removeEventListener("focus",t)}}},e}return(0,Yr.Z)(n,[{key:"onSubscribe",value:function(){this.cleanup||this.setEventListener(this.setup)}},{key:"onUnsubscribe",value:function(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)}},{key:"setEventListener",value:function(e){var t,n=this;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e((function(e){"boolean"===typeof e?n.setFocused(e):n.onFocus()}))}},{key:"setFocused",value:function(e){this.focused=e,e&&this.onFocus()}},{key:"onFocus",value:function(){this.listeners.forEach((function(e){e()}))}},{key:"isFocused",value:function(){return"boolean"===typeof this.focused?this.focused:"undefined"===typeof document||[void 0,"visible","prerender"].includes(document.visibilityState)}}]),n}(Ci)),Ai=new(function(e){(0,ki.Z)(n,e);var t=(0,bi.Z)(n);function n(){var e;return(0,Vr.Z)(this,n),(e=t.call(this)).setup=function(e){if(!Kr&&window.addEventListener){var t=function(){return e()};return window.addEventListener("online",t,!1),window.addEventListener("offline",t,!1),function(){window.removeEventListener("online",t),window.removeEventListener("offline",t)}}},e}return(0,Yr.Z)(n,[{key:"onSubscribe",value:function(){this.cleanup||this.setEventListener(this.setup)}},{key:"onUnsubscribe",value:function(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)}},{key:"setEventListener",value:function(e){var t,n=this;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e((function(e){"boolean"===typeof e?n.setOnline(e):n.onOnline()}))}},{key:"setOnline",value:function(e){this.online=e,e&&this.onOnline()}},{key:"onOnline",value:function(){this.listeners.forEach((function(e){e()}))}},{key:"isOnline",value:function(){return"boolean"===typeof this.online?this.online:"undefined"===typeof navigator||"undefined"===typeof navigator.onLine||navigator.onLine}}]),n}(Ci));function _i(e){return Math.min(1e3*Math.pow(2,e),3e4)}function Qi(e){return"online"!==(null!=e?e:"online")||Ai.isOnline()}var Pi=(0,Yr.Z)((function e(t){(0,Vr.Z)(this,e),this.revert=null==t?void 0:t.revert,this.silent=null==t?void 0:t.silent}));function Ri(e){return e instanceof Pi}function Di(e){var t,n,r,i=!1,o=0,a=!1,s=new Promise((function(e,t){n=e,r=t})),u=function(){return!Ei.isFocused()||"always"!==e.networkMode&&!Ai.isOnline()},l=function(r){a||(a=!0,null==e.onSuccess||e.onSuccess(r),null==t||t(),n(r))},c=function(n){a||(a=!0,null==e.onError||e.onError(n),null==t||t(),r(n))},h=function(){return new Promise((function(n){t=function(e){if(a||!u())return n(e)},null==e.onPause||e.onPause()})).then((function(){t=void 0,a||null==e.onContinue||e.onContinue()}))},f=function t(){if(!a){var n;try{n=e.fn()}catch(r){n=Promise.reject(r)}Promise.resolve(n).then(l).catch((function(n){var r,s;if(!a){var l=null!=(r=e.retry)?r:3,f=null!=(s=e.retryDelay)?s:_i,d="function"===typeof f?f(o,n):f,p=!0===l||"number"===typeof l&&o0&&!this.isActive()}},{key:"isStale",value:function(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some((function(e){return e.getCurrentResult().isStale}))}},{key:"isStaleByTime",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.state.isInvalidated||!this.state.dataUpdatedAt||!ni(this.state.dataUpdatedAt,e)}},{key:"onFocus",value:function(){var e,t=this.observers.find((function(e){return e.shouldFetchOnWindowFocus()}));t&&t.refetch({cancelRefetch:!1}),null==(e=this.retryer)||e.continue()}},{key:"onOnline",value:function(){var e,t=this.observers.find((function(e){return e.shouldFetchOnReconnect()}));t&&t.refetch({cancelRefetch:!1}),null==(e=this.retryer)||e.continue()}},{key:"addObserver",value:function(e){-1===this.observers.indexOf(e)&&(this.observers.push(e),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:e}))}},{key:"removeObserver",value:function(e){-1!==this.observers.indexOf(e)&&(this.observers=this.observers.filter((function(t){return t!==e})),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:e}))}},{key:"getObserversCount",value:function(){return this.observers.length}},{key:"invalidate",value:function(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}},{key:"fetch",value:function(e,t){var n,r,i=this;if("idle"!==this.state.fetchStatus)if(this.state.dataUpdatedAt&&null!=t&&t.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var o;return null==(o=this.retryer)||o.continueRetry(),this.promise}if(e&&this.setOptions(e),!this.options.queryFn){var a=this.observers.find((function(e){return e.options.queryFn}));a&&this.setOptions(a.options)}Array.isArray(this.options.queryKey);var s=function(){if("function"===typeof AbortController)return new AbortController}(),u={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},l=function(e){Object.defineProperty(e,"signal",{enumerable:!0,get:function(){if(s)return i.abortSignalConsumed=!0,s.signal}})};l(u);var c,h={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:function(){return i.options.queryFn?(i.abortSignalConsumed=!1,i.options.queryFn(u)):Promise.reject("Missing queryFn")},meta:this.meta};(l(h),null==(n=this.options.behavior)||n.onFetch(h),this.revertState=this.state,"idle"===this.state.fetchStatus||this.state.fetchMeta!==(null==(r=h.fetchOptions)?void 0:r.meta))&&this.dispatch({type:"fetch",meta:null==(c=h.fetchOptions)?void 0:c.meta});var f=function(e){var t,n;(Ri(e)&&e.silent||i.dispatch({type:"error",error:e}),Ri(e))||(null==(t=(n=i.cache.config).onError)||t.call(n,e,i));i.isFetchingOptimistic||i.scheduleGc(),i.isFetchingOptimistic=!1};return this.retryer=Di({fn:h.fetchFn,abort:null==s?void 0:s.abort.bind(s),onSuccess:function(e){var t,n;"undefined"!==typeof e?(i.setData(e),null==(t=(n=i.cache.config).onSuccess)||t.call(n,e,i),i.isFetchingOptimistic||i.scheduleGc(),i.isFetchingOptimistic=!1):f(new Error("Query data cannot be undefined"))},onError:f,onFail:function(){i.dispatch({type:"failed"})},onPause:function(){i.dispatch({type:"pause"})},onContinue:function(){i.dispatch({type:"continue"})},retry:h.options.retry,retryDelay:h.options.retryDelay,networkMode:h.options.networkMode}),this.promise=this.retryer.promise,this.promise}},{key:"dispatch",value:function(e){var t=this;this.state=function(n){var r,i;switch(e.type){case"failed":return(0,it.Z)((0,it.Z)({},n),{},{fetchFailureCount:n.fetchFailureCount+1});case"pause":return(0,it.Z)((0,it.Z)({},n),{},{fetchStatus:"paused"});case"continue":return(0,it.Z)((0,it.Z)({},n),{},{fetchStatus:"fetching"});case"fetch":return(0,it.Z)((0,it.Z)({},n),{},{fetchFailureCount:0,fetchMeta:null!=(r=e.meta)?r:null,fetchStatus:Qi(t.options.networkMode)?"fetching":"paused"},!n.dataUpdatedAt&&{error:null,status:"loading"});case"success":return(0,it.Z)((0,it.Z)({},n),{},{data:e.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:null!=(i=e.dataUpdatedAt)?i:Date.now(),error:null,isInvalidated:!1,status:"success"},!e.manual&&{fetchStatus:"idle",fetchFailureCount:0});case"error":var o=e.error;return Ri(o)&&o.revert&&t.revertState?(0,it.Z)({},t.revertState):(0,it.Z)((0,it.Z)({},n),{},{error:o,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchStatus:"idle",status:"error"});case"invalidate":return(0,it.Z)((0,it.Z)({},n),{},{isInvalidated:!0});case"setState":return(0,it.Z)((0,it.Z)({},n),e.state)}}(this.state),Si.batch((function(){t.observers.forEach((function(t){t.onQueryUpdate(e)})),t.cache.notify({query:t,type:"updated",action:e})}))}}]),n}(Ni);var Ii=function(e){(0,ki.Z)(n,e);var t=(0,bi.Z)(n);function n(e){var r;return(0,Vr.Z)(this,n),(r=t.call(this)).config=e||{},r.queries=[],r.queriesMap={},r}return(0,Yr.Z)(n,[{key:"build",value:function(e,t,n){var r,i=t.queryKey,o=null!=(r=t.queryHash)?r:si(i,t),a=this.get(o);return a||(a=new Mi({cache:this,logger:e.getLogger(),queryKey:i,queryHash:o,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(i),meta:t.meta}),this.add(a)),a}},{key:"add",value:function(e){this.queriesMap[e.queryHash]||(this.queriesMap[e.queryHash]=e,this.queries.push(e),this.notify({type:"added",query:e}))}},{key:"remove",value:function(e){var t=this.queriesMap[e.queryHash];t&&(e.destroy(),this.queries=this.queries.filter((function(t){return t!==e})),t===e&&delete this.queriesMap[e.queryHash],this.notify({type:"removed",query:e}))}},{key:"clear",value:function(){var e=this;Si.batch((function(){e.queries.forEach((function(t){e.remove(t)}))}))}},{key:"get",value:function(e){return this.queriesMap[e]}},{key:"getAll",value:function(){return this.queries}},{key:"find",value:function(e,t){var n=ii(e,t),r=(0,ee.Z)(n,1)[0];return"undefined"===typeof r.exact&&(r.exact=!0),this.queries.find((function(e){return oi(r,e)}))}},{key:"findAll",value:function(e,t){var n=ii(e,t),r=(0,ee.Z)(n,1)[0];return Object.keys(r).length>0?this.queries.filter((function(e){return oi(r,e)})):this.queries}},{key:"notify",value:function(e){var t=this;Si.batch((function(){t.listeners.forEach((function(t){t(e)}))}))}},{key:"onFocus",value:function(){var e=this;Si.batch((function(){e.queries.forEach((function(e){e.onFocus()}))}))}},{key:"onOnline",value:function(){var e=this;Si.batch((function(){e.queries.forEach((function(e){e.onOnline()}))}))}}]),n}(Ci),Li=n(3940);function Fi(){Fi=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",o=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(C){s=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var i=t&&t.prototype instanceof h?t:h,o=Object.create(i.prototype),a=new T(r||[]);return o._invoke=function(e,t,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return S()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=k(a,n);if(s){if(s===c)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=l(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===c)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}(e,n,a),o}function l(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(C){return{type:"throw",arg:C}}}e.wrap=u;var c={};function h(){}function f(){}function d(){}var p={};s(p,i,(function(){return this}));var m=Object.getPrototypeOf,g=m&&m(m(w([])));g&&g!==t&&n.call(g,i)&&(p=g);var v=d.prototype=h.prototype=Object.create(p);function O(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function y(e,t){function r(i,o,a,s){var u=l(e[i],e,o);if("throw"!==u.type){var c=u.arg,h=c.value;return h&&"object"==(0,Li.Z)(h)&&n.call(h,"__await")?t.resolve(h.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(h).then((function(e){c.value=e,a(c)}),(function(e){return r("throw",e,a,s)}))}s(u.arg)}var i;this._invoke=function(e,n){function o(){return new t((function(t,i){r(e,n,t,i)}))}return i=i?i.then(o,o):o()}}function k(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,k(e,t),"throw"===t.method))return c;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return c}var r=l(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,c;var i=r.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,c):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,c)}function b(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function x(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(b,this),this.reset(!0)}function w(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),u=n.call(o,"finallyLoc");if(s&&u){if(this.prev=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),x(n),c}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;x(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:w(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),c}},e}function Zi(e,t,n,r,i,o,a){try{var s=e[o](a),u=s.value}catch(l){return void n(l)}s.done?t(u):Promise.resolve(u).then(r,i)}var $i=function(e){(0,ki.Z)(n,e);var t=(0,bi.Z)(n);function n(e){var r;return(0,Vr.Z)(this,n),(r=t.call(this)).options=(0,it.Z)((0,it.Z)({},e.defaultOptions),e.options),r.mutationId=e.mutationId,r.mutationCache=e.mutationCache,r.logger=e.logger||wi,r.observers=[],r.state=e.state||{context:void 0,data:void 0,error:null,failureCount:0,isPaused:!1,status:"idle",variables:void 0},r.meta=e.meta,r.updateCacheTime(r.options.cacheTime),r.scheduleGc(),r}return(0,Yr.Z)(n,[{key:"setState",value:function(e){this.dispatch({type:"setState",state:e})}},{key:"addObserver",value:function(e){-1===this.observers.indexOf(e)&&(this.observers.push(e),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:e}))}},{key:"removeObserver",value:function(e){this.observers=this.observers.filter((function(t){return t!==e})),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:e})}},{key:"optionalRemove",value:function(){this.observers.length||("loading"===this.state.status?this.scheduleGc():this.mutationCache.remove(this))}},{key:"continue",value:function(){return this.retryer?(this.retryer.continue(),this.retryer.promise):this.execute()}},{key:"execute",value:function(){var e,t=(e=Fi().mark((function e(){var t,n,r,i,o,a,s,u,l,c,h,f,d,p,m,g,v,O,y,k,b=this;return Fi().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=function(){var e;return b.retryer=Di({fn:function(){return b.options.mutationFn?b.options.mutationFn(b.state.variables):Promise.reject("No mutationFn found")},onFail:function(){b.dispatch({type:"failed"})},onPause:function(){b.dispatch({type:"pause"})},onContinue:function(){b.dispatch({type:"continue"})},retry:null!=(e=b.options.retry)?e:0,retryDelay:b.options.retryDelay,networkMode:b.options.networkMode}),b.retryer.promise},n="loading"===this.state.status,e.prev=2,n){e.next=10;break}return this.dispatch({type:"loading",variables:this.options.variables}),null==(l=(c=this.mutationCache.config).onMutate)||l.call(c,this.state.variables,this),e.next=8,null==(h=(f=this.options).onMutate)?void 0:h.call(f,this.state.variables);case 8:(d=e.sent)!==this.state.context&&this.dispatch({type:"loading",context:d,variables:this.state.variables});case 10:return e.next=12,t();case 12:return p=e.sent,null==(r=(i=this.mutationCache.config).onSuccess)||r.call(i,p,this.state.variables,this.state.context,this),e.next=16,null==(o=(a=this.options).onSuccess)?void 0:o.call(a,p,this.state.variables,this.state.context);case 16:return e.next=18,null==(s=(u=this.options).onSettled)?void 0:s.call(u,p,null,this.state.variables,this.state.context);case 18:return this.dispatch({type:"success",data:p}),e.abrupt("return",p);case 22:return e.prev=22,e.t0=e.catch(2),e.prev=24,null==(m=(g=this.mutationCache.config).onError)||m.call(g,e.t0,this.state.variables,this.state.context,this),e.next=29,null==(v=(O=this.options).onError)?void 0:v.call(O,e.t0,this.state.variables,this.state.context);case 29:return e.next=31,null==(y=(k=this.options).onSettled)?void 0:y.call(k,void 0,e.t0,this.state.variables,this.state.context);case 31:throw e.t0;case 32:return e.prev=32,this.dispatch({type:"error",error:e.t0}),e.finish(32);case 35:case"end":return e.stop()}}),e,this,[[2,22],[24,,32,35]])})),function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){Zi(o,r,i,a,s,"next",e)}function s(e){Zi(o,r,i,a,s,"throw",e)}a(void 0)}))});return function(){return t.apply(this,arguments)}}()},{key:"dispatch",value:function(e){var t=this;this.state=function(n){switch(e.type){case"failed":return(0,it.Z)((0,it.Z)({},n),{},{failureCount:n.failureCount+1});case"pause":return(0,it.Z)((0,it.Z)({},n),{},{isPaused:!0});case"continue":return(0,it.Z)((0,it.Z)({},n),{},{isPaused:!1});case"loading":return(0,it.Z)((0,it.Z)({},n),{},{context:e.context,data:void 0,error:null,isPaused:!Qi(t.options.networkMode),status:"loading",variables:e.variables});case"success":return(0,it.Z)((0,it.Z)({},n),{},{data:e.data,error:null,status:"success",isPaused:!1});case"error":return(0,it.Z)((0,it.Z)({},n),{},{data:void 0,error:e.error,failureCount:n.failureCount+1,isPaused:!1,status:"error"});case"setState":return(0,it.Z)((0,it.Z)({},n),e.state)}}(this.state),Si.batch((function(){t.observers.forEach((function(t){t.onMutationUpdate(e)})),t.mutationCache.notify({mutation:t,type:"updated",action:e})}))}}]),n}(Ni);var ji=function(e){(0,ki.Z)(n,e);var t=(0,bi.Z)(n);function n(e){var r;return(0,Vr.Z)(this,n),(r=t.call(this)).config=e||{},r.mutations=[],r.mutationId=0,r}return(0,Yr.Z)(n,[{key:"build",value:function(e,t,n){var r=new $i({mutationCache:this,logger:e.getLogger(),mutationId:++this.mutationId,options:e.defaultMutationOptions(t),state:n,defaultOptions:t.mutationKey?e.getMutationDefaults(t.mutationKey):void 0,meta:t.meta});return this.add(r),r}},{key:"add",value:function(e){this.mutations.push(e),this.notify({type:"added",mutation:e})}},{key:"remove",value:function(e){this.mutations=this.mutations.filter((function(t){return t!==e})),this.notify({type:"removed",mutation:e})}},{key:"clear",value:function(){var e=this;Si.batch((function(){e.mutations.forEach((function(t){e.remove(t)}))}))}},{key:"getAll",value:function(){return this.mutations}},{key:"find",value:function(e){return"undefined"===typeof e.exact&&(e.exact=!0),this.mutations.find((function(t){return ai(e,t)}))}},{key:"findAll",value:function(e){return this.mutations.filter((function(t){return ai(e,t)}))}},{key:"notify",value:function(e){var t=this;Si.batch((function(){t.listeners.forEach((function(t){t(e)}))}))}},{key:"resumePausedMutations",value:function(){var e=this.mutations.filter((function(e){return e.state.isPaused}));return Si.batch((function(){return e.reduce((function(e,t){return e.then((function(){return t.continue().catch(ei)}))}),Promise.resolve())}))}}]),n}(Ci);function Bi(){return{onFetch:function(e){e.fetchFn=function(){var t,n,r,i,o,a,s,u=null==(t=e.fetchOptions)||null==(n=t.meta)?void 0:n.refetchPage,l=null==(r=e.fetchOptions)||null==(i=r.meta)?void 0:i.fetchMore,c=null==l?void 0:l.pageParam,h="forward"===(null==l?void 0:l.direction),f="backward"===(null==l?void 0:l.direction),d=(null==(o=e.state.data)?void 0:o.pages)||[],p=(null==(a=e.state.data)?void 0:a.pageParams)||[],m=p,g=!1,v=e.options.queryFn||function(){return Promise.reject("Missing queryFn")},O=function(e,t,n,r){return m=r?[t].concat((0,rt.Z)(m)):[].concat((0,rt.Z)(m),[t]),r?[n].concat((0,rt.Z)(e)):[].concat((0,rt.Z)(e),[n])},y=function(t,n,r,i){if(g)return Promise.reject("Cancelled");if("undefined"===typeof r&&!n&&t.length)return Promise.resolve(t);var o,a={queryKey:e.queryKey,pageParam:r,meta:e.meta};o=a,Object.defineProperty(o,"signal",{enumerable:!0,get:function(){var t,n;return null!=(t=e.signal)&&t.aborted?g=!0:null==(n=e.signal)||n.addEventListener("abort",(function(){g=!0})),e.signal}});var s=v(a),u=Promise.resolve(s).then((function(e){return O(t,r,e,i)}));return u};if(d.length)if(h){var k="undefined"!==typeof c,b=k?c:zi(e.options,d);s=y(d,k,b)}else if(f){var x="undefined"!==typeof c,T=x?c:Hi(e.options,d);s=y(d,x,T,!0)}else!function(){m=[];var t="undefined"===typeof e.options.getNextPageParam,n=!u||!d[0]||u(d[0],0,d);s=n?y([],t,p[0]):Promise.resolve(O([],p[0],d[0]));for(var r=function(n){s=s.then((function(r){if(!u||!d[n]||u(d[n],n,d)){var i=t?p[n]:zi(e.options,r);return y(r,t,i)}return Promise.resolve(O(r,p[n],d[n]))}))},i=1;i0&&void 0!==arguments[0]?arguments[0]:{};(0,Vr.Z)(this,e),this.queryCache=t.queryCache||new Ii,this.mutationCache=t.mutationCache||new ji,this.logger=t.logger||wi,this.defaultOptions=t.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[]}return(0,Yr.Z)(e,[{key:"mount",value:function(){var e=this;this.unsubscribeFocus=Ei.subscribe((function(){Ei.isFocused()&&(e.resumePausedMutations(),e.queryCache.onFocus())})),this.unsubscribeOnline=Ai.subscribe((function(){Ai.isOnline()&&(e.resumePausedMutations(),e.queryCache.onOnline())}))}},{key:"unmount",value:function(){var e,t;null==(e=this.unsubscribeFocus)||e.call(this),null==(t=this.unsubscribeOnline)||t.call(this)}},{key:"isFetching",value:function(e,t){var n=ii(e,t),r=(0,ee.Z)(n,1)[0];return r.fetchStatus="fetching",this.queryCache.findAll(r).length}},{key:"isMutating",value:function(e){return this.mutationCache.findAll((0,it.Z)((0,it.Z)({},e),{},{fetching:!0})).length}},{key:"getQueryData",value:function(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state.data}},{key:"getQueriesData",value:function(e){return this.getQueryCache().findAll(e).map((function(e){return[e.queryKey,e.state.data]}))}},{key:"setQueryData",value:function(e,t,n){var r=this.queryCache.find(e),i=function(e,t){return"function"===typeof e?e(t):e}(t,null==r?void 0:r.state.data);if("undefined"!==typeof i){var o=ri(e),a=this.defaultQueryOptions(o);return this.queryCache.build(this,a).setData(i,(0,it.Z)((0,it.Z)({},n),{},{manual:!0}))}}},{key:"setQueriesData",value:function(e,t,n){var r=this;return Si.batch((function(){return r.getQueryCache().findAll(e).map((function(e){var i=e.queryKey;return[i,r.setQueryData(i,t,n)]}))}))}},{key:"getQueryState",value:function(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state}},{key:"removeQueries",value:function(e,t){var n=ii(e,t),r=(0,ee.Z)(n,1)[0],i=this.queryCache;Si.batch((function(){i.findAll(r).forEach((function(e){i.remove(e)}))}))}},{key:"resetQueries",value:function(e,t,n){var r=this,i=ii(e,t,n),o=(0,ee.Z)(i,2),a=o[0],s=o[1],u=this.queryCache,l=(0,it.Z)({type:"active"},a);return Si.batch((function(){return u.findAll(a).forEach((function(e){e.reset()})),r.refetchQueries(l,s)}))}},{key:"cancelQueries",value:function(e,t,n){var r=this,i=ii(e,t,n),o=(0,ee.Z)(i,2),a=o[0],s=o[1],u=void 0===s?{}:s;"undefined"===typeof u.revert&&(u.revert=!0);var l=Si.batch((function(){return r.queryCache.findAll(a).map((function(e){return e.cancel(u)}))}));return Promise.all(l).then(ei).catch(ei)}},{key:"invalidateQueries",value:function(e,t,n){var r=this,i=ii(e,t,n),o=(0,ee.Z)(i,2),a=o[0],s=o[1];return Si.batch((function(){var e,t;if(r.queryCache.findAll(a).forEach((function(e){e.invalidate()})),"none"===a.refetchType)return Promise.resolve();var n=(0,it.Z)((0,it.Z)({},a),{},{type:null!=(e=null!=(t=a.refetchType)?t:a.type)?e:"active"});return r.refetchQueries(n,s)}))}},{key:"refetchQueries",value:function(e,t,n){var r=this,i=ii(e,t,n),o=(0,ee.Z)(i,2),a=o[0],s=o[1],u=Si.batch((function(){return r.queryCache.findAll(a).filter((function(e){return!e.isDisabled()})).map((function(e){var t;return e.fetch(void 0,(0,it.Z)((0,it.Z)({},s),{},{cancelRefetch:null==(t=null==s?void 0:s.cancelRefetch)||t,meta:{refetchPage:a.refetchPage}}))}))})),l=Promise.all(u).then(ei);return null!=s&&s.throwOnError||(l=l.catch(ei)),l}},{key:"fetchQuery",value:function(e,t,n){var r=ri(e,t,n),i=this.defaultQueryOptions(r);"undefined"===typeof i.retry&&(i.retry=!1);var o=this.queryCache.build(this,i);return o.isStaleByTime(i.staleTime)?o.fetch(i):Promise.resolve(o.state.data)}},{key:"prefetchQuery",value:function(e,t,n){return this.fetchQuery(e,t,n).then(ei).catch(ei)}},{key:"fetchInfiniteQuery",value:function(e,t,n){var r=ri(e,t,n);return r.behavior=Bi(),this.fetchQuery(r)}},{key:"prefetchInfiniteQuery",value:function(e,t,n){return this.fetchInfiniteQuery(e,t,n).then(ei).catch(ei)}},{key:"resumePausedMutations",value:function(){return this.mutationCache.resumePausedMutations()}},{key:"getQueryCache",value:function(){return this.queryCache}},{key:"getMutationCache",value:function(){return this.mutationCache}},{key:"getLogger",value:function(){return this.logger}},{key:"getDefaultOptions",value:function(){return this.defaultOptions}},{key:"setDefaultOptions",value:function(e){this.defaultOptions=e}},{key:"setQueryDefaults",value:function(e,t){var n=this.queryDefaults.find((function(t){return ui(e)===ui(t.queryKey)}));n?n.defaultOptions=t:this.queryDefaults.push({queryKey:e,defaultOptions:t})}},{key:"getQueryDefaults",value:function(e){if(e){var t=this.queryDefaults.find((function(t){return li(e,t.queryKey)}));return null==t?void 0:t.defaultOptions}}},{key:"setMutationDefaults",value:function(e,t){var n=this.mutationDefaults.find((function(t){return ui(e)===ui(t.mutationKey)}));n?n.defaultOptions=t:this.mutationDefaults.push({mutationKey:e,defaultOptions:t})}},{key:"getMutationDefaults",value:function(e){if(e){var t=this.mutationDefaults.find((function(t){return li(e,t.mutationKey)}));return null==t?void 0:t.defaultOptions}}},{key:"defaultQueryOptions",value:function(e){if(null!=e&&e._defaulted)return e;var t=(0,it.Z)((0,it.Z)((0,it.Z)((0,it.Z)({},this.defaultOptions.queries),this.getQueryDefaults(null==e?void 0:e.queryKey)),e),{},{_defaulted:!0});return!t.queryHash&&t.queryKey&&(t.queryHash=si(t.queryKey,t)),"undefined"===typeof t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),"undefined"===typeof t.useErrorBoundary&&(t.useErrorBoundary=!!t.suspense),t}},{key:"defaultMutationOptions",value:function(e){return null!=e&&e._defaulted?e:(0,it.Z)((0,it.Z)((0,it.Z)((0,it.Z)({},this.defaultOptions.mutations),this.getMutationDefaults(null==e?void 0:e.mutationKey)),e),{},{_defaulted:!0})}},{key:"clear",value:function(){this.queryCache.clear(),this.mutationCache.clear()}}]),e}(),Ui=V.createContext(void 0),qi=V.createContext(!1);function Xi(e,t){return e||(t&&"undefined"!==typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=Ui),window.ReactQueryClientContext):Ui)}var Gi,Ji=function(e){var t=e.client,n=e.children,r=e.context,i=e.contextSharing,o=void 0!==i&&i;V.useEffect((function(){return t.mount(),function(){t.unmount()}}),[t]);var a=Xi(r,o);return V.createElement(qi.Provider,{value:!r&&o},V.createElement(a.Provider,{value:t},n))},Vi=(n(390),["title","titleId"]);function Yi(){return Yi=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function eo(e,t){var n=e.title,r=e.titleId,i=Ki(e,Vi);return V.createElement("svg",Yi({xmlns:"http://www.w3.org/2000/svg",fill:"#1aad1a",viewBox:"0 0 1024 1024",height:"1em",width:"1em",ref:t,"aria-labelledby":r},i),n?V.createElement("title",{id:r},n):null,Gi||(Gi=V.createElement("path",{d:"M690.1 377.4c5.9 0 11.8.2 17.6.5-24.4-128.7-158.3-227.1-319.9-227.1C209 150.8 64 271.4 64 420.2c0 81.1 43.6 154.2 111.9 203.6a21.5 21.5 0 0 1 9.1 17.6c0 2.4-.5 4.6-1.1 6.9-5.5 20.3-14.2 52.8-14.6 54.3-.7 2.6-1.7 5.2-1.7 7.9 0 5.9 4.8 10.8 10.8 10.8 2.3 0 4.2-.9 6.2-2l70.9-40.9c5.3-3.1 11-5 17.2-5 3.2 0 6.4.5 9.5 1.4 33.1 9.5 68.8 14.8 105.7 14.8 6 0 11.9-.1 17.8-.4-7.1-21-10.9-43.1-10.9-66 0-135.8 132.2-245.8 295.3-245.8zm-194.3-86.5c23.8 0 43.2 19.3 43.2 43.1s-19.3 43.1-43.2 43.1c-23.8 0-43.2-19.3-43.2-43.1s19.4-43.1 43.2-43.1zm-215.9 86.2c-23.8 0-43.2-19.3-43.2-43.1s19.3-43.1 43.2-43.1 43.2 19.3 43.2 43.1-19.4 43.1-43.2 43.1zm586.8 415.6c56.9-41.2 93.2-102 93.2-169.7 0-124-120.8-224.5-269.9-224.5-149 0-269.9 100.5-269.9 224.5S540.9 847.5 690 847.5c30.8 0 60.6-4.4 88.1-12.3 2.6-.8 5.2-1.2 7.9-1.2 5.2 0 9.9 1.6 14.3 4.1l59.1 34c1.7 1 3.3 1.7 5.2 1.7a9 9 0 0 0 6.4-2.6 9 9 0 0 0 2.6-6.4c0-2.2-.9-4.4-1.4-6.6-.3-1.2-7.6-28.3-12.2-45.3-.5-1.9-.9-3.8-.9-5.7.1-5.9 3.1-11.2 7.6-14.5zM600.2 587.2c-19.9 0-36-16.1-36-35.9 0-19.8 16.1-35.9 36-35.9s36 16.1 36 35.9c0 19.8-16.2 35.9-36 35.9zm179.9 0c-19.9 0-36-16.1-36-35.9 0-19.8 16.1-35.9 36-35.9s36 16.1 36 35.9a36.08 36.08 0 0 1-36 35.9z"})))}var to,no=V.forwardRef(eo),ro=(n.p,["title","titleId"]);function io(){return io=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function ao(e,t){var n=e.title,r=e.titleId,i=oo(e,ro);return V.createElement("svg",io({xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 1024 1024",height:"1em",width:"1em",ref:t,"aria-labelledby":r},i),n?V.createElement("title",{id:r},n):null,to||(to=V.createElement("path",{d:"M511.6 76.3C264.3 76.2 64 276.4 64 523.5 64 718.9 189.3 885 363.8 946c23.5 5.9 19.9-10.8 19.9-22.2v-77.5c-135.7 15.9-141.2-73.9-150.3-88.9C215 726 171.5 718 184.5 703c30.9-15.9 62.4 4 98.9 57.9 26.4 39.1 77.9 32.5 104 26 5.7-23.5 17.9-44.5 34.7-60.8-140.6-25.2-199.2-111-199.2-213 0-49.5 16.3-95 48.3-131.7-20.4-60.5 1.9-112.3 4.9-120 58.1-5.2 118.5 41.6 123.2 45.3 33-8.9 70.7-13.6 112.9-13.6 42.4 0 80.2 4.9 113.5 13.9 11.3-8.6 67.3-48.8 121.3-43.9 2.9 7.7 24.7 58.3 5.5 118 32.4 36.8 48.9 82.7 48.9 132.3 0 102.2-59 188.1-200 212.9a127.5 127.5 0 0 1 38.1 91v112.5c.8 9 0 17.9 15 17.9 177.1-59.7 304.6-227 304.6-424.1 0-247.2-200.4-447.3-447.5-447.3z"})))}var so,uo,lo,co,ho,fo,po,mo,go,vo=V.forwardRef(ao),Oo=(n.p,["title","titleId"]);function yo(){return yo=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function bo(e,t){var n=e.title,r=e.titleId,i=ko(e,Oo);return V.createElement("svg",yo({xmlns:"http://www.w3.org/2000/svg",width:13,height:13,viewBox:"0 0 105 105",fill:"currentColor",ref:t,"aria-labelledby":r},i),n?V.createElement("title",{id:r},n):null,so||(so=V.createElement("circle",{cx:12.5,cy:12.5,r:12.5},V.createElement("animate",{attributeName:"fill-opacity",begin:"0s",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"}))),uo||(uo=V.createElement("circle",{cx:12.5,cy:52.5,r:12.5,fillOpacity:.5},V.createElement("animate",{attributeName:"fill-opacity",begin:"100ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"}))),lo||(lo=V.createElement("circle",{cx:52.5,cy:12.5,r:12.5},V.createElement("animate",{attributeName:"fill-opacity",begin:"300ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"}))),co||(co=V.createElement("circle",{cx:52.5,cy:52.5,r:12.5},V.createElement("animate",{attributeName:"fill-opacity",begin:"600ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"}))),ho||(ho=V.createElement("circle",{cx:92.5,cy:12.5,r:12.5},V.createElement("animate",{attributeName:"fill-opacity",begin:"800ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"}))),fo||(fo=V.createElement("circle",{cx:92.5,cy:52.5,r:12.5},V.createElement("animate",{attributeName:"fill-opacity",begin:"400ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"}))),po||(po=V.createElement("circle",{cx:12.5,cy:92.5,r:12.5},V.createElement("animate",{attributeName:"fill-opacity",begin:"700ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"}))),mo||(mo=V.createElement("circle",{cx:52.5,cy:92.5,r:12.5},V.createElement("animate",{attributeName:"fill-opacity",begin:"500ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"}))),go||(go=V.createElement("circle",{cx:92.5,cy:92.5,r:12.5},V.createElement("animate",{attributeName:"fill-opacity",begin:"200ms",dur:"1s",values:"1;.2;1",calcMode:"linear",repeatCount:"indefinite"}))))}var xo=V.forwardRef(bo),To=(n.p,n(5506)),wo=n(9973);function So(e){return new wo.ri(wo.il.define(e))}function Co(e){return n.e(4522).then(n.bind(n,4522)).then((function(t){return t.sql({dialect:t[e]})}))}var Eo=[wo.c6.of({name:"C",extensions:["c","h","ino"],load:function(){return n.e(2106).then(n.bind(n,2106)).then((function(e){return e.cpp()}))}}),wo.c6.of({name:"C++",alias:["cpp"],extensions:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],load:function(){return n.e(2106).then(n.bind(n,2106)).then((function(e){return e.cpp()}))}}),wo.c6.of({name:"CQL",alias:["cassandra"],extensions:["cql"],load:function(){return Co("Cassandra")}}),wo.c6.of({name:"CSS",extensions:["css"],load:function(){return Promise.resolve().then(n.bind(n,4933)).then((function(e){return e.css()}))}}),wo.c6.of({name:"HTML",alias:["xhtml"],extensions:["html","htm","handlebars","hbs"],load:function(){return Promise.resolve().then(n.bind(n,3330)).then((function(e){return e.html()}))}}),wo.c6.of({name:"Java",extensions:["java"],load:function(){return n.e(5815).then(n.bind(n,5815)).then((function(e){return e.java()}))}}),wo.c6.of({name:"JavaScript",alias:["ecmascript","js","node"],extensions:["js","mjs","cjs"],load:function(){return Promise.resolve().then(n.bind(n,4381)).then((function(e){return e.javascript()}))}}),wo.c6.of({name:"JSON",alias:["json5"],extensions:["json","map"],load:function(){return n.e(7537).then(n.bind(n,7537)).then((function(e){return e.json()}))}}),wo.c6.of({name:"JSX",extensions:["jsx"],load:function(){return Promise.resolve().then(n.bind(n,4381)).then((function(e){return e.javascript({jsx:!0})}))}}),wo.c6.of({name:"MariaDB SQL",load:function(){return Co("MariaSQL")}}),wo.c6.of({name:"Markdown",extensions:["md","markdown","mkd"],load:function(){return Promise.resolve().then(n.bind(n,5506)).then((function(e){return e.markdown()}))}}),wo.c6.of({name:"MS SQL",load:function(){return Co("MSSQL")}}),wo.c6.of({name:"MySQL",load:function(){return Co("MySQL")}}),wo.c6.of({name:"PHP",extensions:["php","php3","php4","php5","php7","phtml"],load:function(){return n.e(4064).then(n.bind(n,4064)).then((function(e){return e.php()}))}}),wo.c6.of({name:"PLSQL",extensions:["pls"],load:function(){return Co("PLSQL")}}),wo.c6.of({name:"PostgreSQL",load:function(){return Co("PostgreSQL")}}),wo.c6.of({name:"Python",extensions:["BUILD","bzl","py","pyw"],filename:/^(BUCK|BUILD)$/,load:function(){return n.e(377).then(n.bind(n,377)).then((function(e){return e.python()}))}}),wo.c6.of({name:"Rust",extensions:["rs"],load:function(){return n.e(1950).then(n.bind(n,1950)).then((function(e){return e.rust()}))}}),wo.c6.of({name:"SQL",extensions:["sql"],load:function(){return Co("StandardSQL")}}),wo.c6.of({name:"SQLite",load:function(){return Co("SQLite")}}),wo.c6.of({name:"TSX",extensions:["tsx"],load:function(){return Promise.resolve().then(n.bind(n,4381)).then((function(e){return e.javascript({jsx:!0,typescript:!0})}))}}),wo.c6.of({name:"TypeScript",alias:["ts"],extensions:["ts"],load:function(){return Promise.resolve().then(n.bind(n,4381)).then((function(e){return e.javascript({typescript:!0})}))}}),wo.c6.of({name:"WebAssembly",extensions:["wat","wast"],load:function(){return n.e(3235).then(n.bind(n,3235)).then((function(e){return e.wast()}))}}),wo.c6.of({name:"XML",alias:["rss","wsdl","xsd"],extensions:["xml","xsl","xsd","svg"],load:function(){return n.e(7859).then(n.bind(n,7859)).then((function(e){return e.xml()}))}}),wo.c6.of({name:"APL",extensions:["dyalog","apl"],load:function(){return n.e(5758).then(n.bind(n,5758)).then((function(e){return So(e.apl)}))}}),wo.c6.of({name:"PGP",alias:["asciiarmor"],extensions:["asc","pgp","sig"],load:function(){return n.e(7025).then(n.bind(n,7025)).then((function(e){return So(e.asciiArmor)}))}}),wo.c6.of({name:"ASN.1",extensions:["asn","asn1"],load:function(){return n.e(6968).then(n.bind(n,6968)).then((function(e){return So(e.asn1({}))}))}}),wo.c6.of({name:"Asterisk",filename:/^extensions\.conf$/i,load:function(){return n.e(7826).then(n.bind(n,7826)).then((function(e){return So(e.asterisk)}))}}),wo.c6.of({name:"Brainfuck",extensions:["b","bf"],load:function(){return n.e(7136).then(n.bind(n,7136)).then((function(e){return So(e.brainfuck)}))}}),wo.c6.of({name:"Cobol",extensions:["cob","cpy"],load:function(){return n.e(285).then(n.bind(n,285)).then((function(e){return So(e.cobol)}))}}),wo.c6.of({name:"C#",alias:["csharp","cs"],extensions:["cs"],load:function(){return n.e(7279).then(n.bind(n,7279)).then((function(e){return So(e.csharp)}))}}),wo.c6.of({name:"Clojure",extensions:["clj","cljc","cljx"],load:function(){return n.e(8158).then(n.bind(n,8158)).then((function(e){return So(e.clojure)}))}}),wo.c6.of({name:"ClojureScript",extensions:["cljs"],load:function(){return n.e(8158).then(n.bind(n,8158)).then((function(e){return So(e.clojure)}))}}),wo.c6.of({name:"Closure Stylesheets (GSS)",extensions:["gss"],load:function(){return n.e(8785).then(n.bind(n,8785)).then((function(e){return So(e.gss)}))}}),wo.c6.of({name:"CMake",extensions:["cmake","cmake.in"],filename:/^CMakeLists\.txt$/,load:function(){return n.e(617).then(n.bind(n,617)).then((function(e){return So(e.cmake)}))}}),wo.c6.of({name:"CoffeeScript",alias:["coffee","coffee-script"],extensions:["coffee"],load:function(){return n.e(3378).then(n.bind(n,3378)).then((function(e){return So(e.coffeeScript)}))}}),wo.c6.of({name:"Common Lisp",alias:["lisp"],extensions:["cl","lisp","el"],load:function(){return n.e(2369).then(n.bind(n,2369)).then((function(e){return So(e.commonLisp)}))}}),wo.c6.of({name:"Cypher",extensions:["cyp","cypher"],load:function(){return n.e(7782).then(n.bind(n,7782)).then((function(e){return So(e.cypher)}))}}),wo.c6.of({name:"Cython",extensions:["pyx","pxd","pxi"],load:function(){return n.e(8110).then(n.bind(n,8110)).then((function(e){return So(e.cython)}))}}),wo.c6.of({name:"Crystal",extensions:["cr"],load:function(){return n.e(9707).then(n.bind(n,9707)).then((function(e){return So(e.crystal)}))}}),wo.c6.of({name:"D",extensions:["d"],load:function(){return n.e(6145).then(n.bind(n,6145)).then((function(e){return So(e.d)}))}}),wo.c6.of({name:"Dart",extensions:["dart"],load:function(){return n.e(7279).then(n.bind(n,7279)).then((function(e){return So(e.dart)}))}}),wo.c6.of({name:"diff",extensions:["diff","patch"],load:function(){return n.e(546).then(n.bind(n,546)).then((function(e){return So(e.diff)}))}}),wo.c6.of({name:"Dockerfile",filename:/^Dockerfile$/,load:function(){return n.e(6601).then(n.bind(n,6601)).then((function(e){return So(e.dockerFile)}))}}),wo.c6.of({name:"DTD",extensions:["dtd"],load:function(){return n.e(9428).then(n.bind(n,9428)).then((function(e){return So(e.dtd)}))}}),wo.c6.of({name:"Dylan",extensions:["dylan","dyl","intr"],load:function(){return n.e(8556).then(n.bind(n,8556)).then((function(e){return So(e.dylan)}))}}),wo.c6.of({name:"EBNF",load:function(){return n.e(7791).then(n.bind(n,7791)).then((function(e){return So(e.ebnf)}))}}),wo.c6.of({name:"ECL",extensions:["ecl"],load:function(){return n.e(8879).then(n.bind(n,8879)).then((function(e){return So(e.ecl)}))}}),wo.c6.of({name:"edn",extensions:["edn"],load:function(){return n.e(8158).then(n.bind(n,8158)).then((function(e){return So(e.clojure)}))}}),wo.c6.of({name:"Eiffel",extensions:["e"],load:function(){return n.e(2307).then(n.bind(n,2307)).then((function(e){return So(e.eiffel)}))}}),wo.c6.of({name:"Elm",extensions:["elm"],load:function(){return n.e(8662).then(n.bind(n,8662)).then((function(e){return So(e.elm)}))}}),wo.c6.of({name:"Erlang",extensions:["erl"],load:function(){return n.e(70).then(n.bind(n,70)).then((function(e){return So(e.erlang)}))}}),wo.c6.of({name:"Esper",load:function(){return n.e(3455).then(n.bind(n,3455)).then((function(e){return So(e.esper)}))}}),wo.c6.of({name:"Factor",extensions:["factor"],load:function(){return n.e(4586).then(n.bind(n,4586)).then((function(e){return So(e.factor)}))}}),wo.c6.of({name:"FCL",load:function(){return n.e(4964).then(n.bind(n,4964)).then((function(e){return So(e.fcl)}))}}),wo.c6.of({name:"Forth",extensions:["forth","fth","4th"],load:function(){return n.e(5194).then(n.bind(n,5194)).then((function(e){return So(e.forth)}))}}),wo.c6.of({name:"Fortran",extensions:["f","for","f77","f90","f95"],load:function(){return n.e(8935).then(n.bind(n,8935)).then((function(e){return So(e.fortran)}))}}),wo.c6.of({name:"F#",alias:["fsharp"],extensions:["fs"],load:function(){return n.e(6078).then(n.bind(n,6078)).then((function(e){return So(e.fSharp)}))}}),wo.c6.of({name:"Gas",extensions:["s"],load:function(){return n.e(5374).then(n.bind(n,5374)).then((function(e){return So(e.gas)}))}}),wo.c6.of({name:"Gherkin",extensions:["feature"],load:function(){return n.e(6900).then(n.bind(n,6900)).then((function(e){return So(e.gherkin)}))}}),wo.c6.of({name:"Go",extensions:["go"],load:function(){return n.e(8846).then(n.bind(n,8846)).then((function(e){return So(e.go)}))}}),wo.c6.of({name:"Groovy",extensions:["groovy","gradle"],filename:/^Jenkinsfile$/,load:function(){return n.e(5905).then(n.bind(n,5905)).then((function(e){return So(e.groovy)}))}}),wo.c6.of({name:"Haskell",extensions:["hs"],load:function(){return n.e(624).then(n.bind(n,624)).then((function(e){return So(e.haskell)}))}}),wo.c6.of({name:"Haxe",extensions:["hx"],load:function(){return n.e(5740).then(n.bind(n,5740)).then((function(e){return So(e.haxe)}))}}),wo.c6.of({name:"HXML",extensions:["hxml"],load:function(){return n.e(5740).then(n.bind(n,5740)).then((function(e){return So(e.hxml)}))}}),wo.c6.of({name:"HTTP",load:function(){return n.e(4604).then(n.bind(n,4604)).then((function(e){return So(e.http)}))}}),wo.c6.of({name:"IDL",extensions:["pro"],load:function(){return n.e(8610).then(n.bind(n,8610)).then((function(e){return So(e.idl)}))}}),wo.c6.of({name:"JSON-LD",alias:["jsonld"],extensions:["jsonld"],load:function(){return n.e(88).then(n.bind(n,88)).then((function(e){return So(e.jsonld)}))}}),wo.c6.of({name:"Jinja2",extensions:["j2","jinja","jinja2"],load:function(){return n.e(5382).then(n.bind(n,5382)).then((function(e){return So(e.jinja2)}))}}),wo.c6.of({name:"Julia",extensions:["jl"],load:function(){return n.e(4684).then(n.bind(n,4684)).then((function(e){return So(e.julia)}))}}),wo.c6.of({name:"Kotlin",extensions:["kt"],load:function(){return n.e(7279).then(n.bind(n,7279)).then((function(e){return So(e.kotlin)}))}}),wo.c6.of({name:"LESS",extensions:["less"],load:function(){return n.e(8785).then(n.bind(n,8785)).then((function(e){return So(e.less)}))}}),wo.c6.of({name:"LiveScript",alias:["ls"],extensions:["ls"],load:function(){return n.e(3582).then(n.bind(n,3582)).then((function(e){return So(e.liveScript)}))}}),wo.c6.of({name:"Lua",extensions:["lua"],load:function(){return n.e(7256).then(n.bind(n,7256)).then((function(e){return So(e.lua)}))}}),wo.c6.of({name:"mIRC",extensions:["mrc"],load:function(){return n.e(8140).then(n.bind(n,8140)).then((function(e){return So(e.mirc)}))}}),wo.c6.of({name:"Mathematica",extensions:["m","nb","wl","wls"],load:function(){return n.e(58).then(n.bind(n,58)).then((function(e){return So(e.mathematica)}))}}),wo.c6.of({name:"Modelica",extensions:["mo"],load:function(){return n.e(5541).then(n.bind(n,5541)).then((function(e){return So(e.modelica)}))}}),wo.c6.of({name:"MUMPS",extensions:["mps"],load:function(){return n.e(3510).then(n.bind(n,3510)).then((function(e){return So(e.mumps)}))}}),wo.c6.of({name:"Mbox",extensions:["mbox"],load:function(){return n.e(9235).then(n.bind(n,9235)).then((function(e){return So(e.mbox)}))}}),wo.c6.of({name:"Nginx",filename:/nginx.*\.conf$/i,load:function(){return n.e(2321).then(n.bind(n,2321)).then((function(e){return So(e.nginx)}))}}),wo.c6.of({name:"NSIS",extensions:["nsh","nsi"],load:function(){return n.e(6105).then(n.bind(n,6105)).then((function(e){return So(e.nsis)}))}}),wo.c6.of({name:"NTriples",extensions:["nt","nq"],load:function(){return n.e(2399).then(n.bind(n,2399)).then((function(e){return So(e.ntriples)}))}}),wo.c6.of({name:"Objective-C",alias:["objective-c","objc"],extensions:["m"],load:function(){return n.e(7279).then(n.bind(n,7279)).then((function(e){return So(e.objectiveC)}))}}),wo.c6.of({name:"Objective-C++",alias:["objective-c++","objc++"],extensions:["mm"],load:function(){return n.e(7279).then(n.bind(n,7279)).then((function(e){return So(e.objectiveCpp)}))}}),wo.c6.of({name:"OCaml",extensions:["ml","mli","mll","mly"],load:function(){return n.e(6078).then(n.bind(n,6078)).then((function(e){return So(e.oCaml)}))}}),wo.c6.of({name:"Octave",extensions:["m"],load:function(){return n.e(8641).then(n.bind(n,8641)).then((function(e){return So(e.octave)}))}}),wo.c6.of({name:"Oz",extensions:["oz"],load:function(){return n.e(1527).then(n.bind(n,1527)).then((function(e){return So(e.oz)}))}}),wo.c6.of({name:"Pascal",extensions:["p","pas"],load:function(){return n.e(7483).then(n.bind(n,7483)).then((function(e){return So(e.pascal)}))}}),wo.c6.of({name:"Perl",extensions:["pl","pm"],load:function(){return n.e(7902).then(n.bind(n,7902)).then((function(e){return So(e.perl)}))}}),wo.c6.of({name:"Pig",extensions:["pig"],load:function(){return n.e(3030).then(n.bind(n,3030)).then((function(e){return So(e.pig)}))}}),wo.c6.of({name:"PowerShell",extensions:["ps1","psd1","psm1"],load:function(){return n.e(2281).then(n.bind(n,2281)).then((function(e){return So(e.powerShell)}))}}),wo.c6.of({name:"Properties files",alias:["ini","properties"],extensions:["properties","ini","in"],load:function(){return n.e(9158).then(n.bind(n,9158)).then((function(e){return So(e.properties)}))}}),wo.c6.of({name:"ProtoBuf",extensions:["proto"],load:function(){return n.e(9529).then(n.bind(n,9529)).then((function(e){return So(e.protobuf)}))}}),wo.c6.of({name:"Puppet",extensions:["pp"],load:function(){return n.e(8802).then(n.bind(n,8802)).then((function(e){return So(e.puppet)}))}}),wo.c6.of({name:"Q",extensions:["q"],load:function(){return n.e(732).then(n.bind(n,732)).then((function(e){return So(e.q)}))}}),wo.c6.of({name:"R",alias:["rscript"],extensions:["r","R"],load:function(){return n.e(5651).then(n.bind(n,5651)).then((function(e){return So(e.r)}))}}),wo.c6.of({name:"RPM Changes",load:function(){return n.e(5799).then(n.bind(n,5799)).then((function(e){return So(e.rpmChanges)}))}}),wo.c6.of({name:"RPM Spec",extensions:["spec"],load:function(){return n.e(5799).then(n.bind(n,5799)).then((function(e){return So(e.rpmSpec)}))}}),wo.c6.of({name:"Ruby",alias:["jruby","macruby","rake","rb","rbx"],extensions:["rb"],load:function(){return n.e(3467).then(n.bind(n,3467)).then((function(e){return So(e.ruby)}))}}),wo.c6.of({name:"SAS",extensions:["sas"],load:function(){return n.e(3850).then(n.bind(n,3850)).then((function(e){return So(e.sas)}))}}),wo.c6.of({name:"Sass",extensions:["sass"],load:function(){return n.e(4017).then(n.bind(n,4017)).then((function(e){return So(e.sass)}))}}),wo.c6.of({name:"Scala",extensions:["scala"],load:function(){return n.e(7279).then(n.bind(n,7279)).then((function(e){return So(e.scala)}))}}),wo.c6.of({name:"Scheme",extensions:["scm","ss"],load:function(){return n.e(4911).then(n.bind(n,4911)).then((function(e){return So(e.scheme)}))}}),wo.c6.of({name:"SCSS",extensions:["scss"],load:function(){return n.e(8785).then(n.bind(n,8785)).then((function(e){return So(e.sCSS)}))}}),wo.c6.of({name:"Shell",alias:["bash","sh","zsh"],extensions:["sh","ksh","bash"],filename:/^PKGBUILD$/,load:function(){return n.e(7627).then(n.bind(n,7627)).then((function(e){return So(e.shell)}))}}),wo.c6.of({name:"Sieve",extensions:["siv","sieve"],load:function(){return n.e(7234).then(n.bind(n,7234)).then((function(e){return So(e.sieve)}))}}),wo.c6.of({name:"Smalltalk",extensions:["st"],load:function(){return n.e(2340).then(n.bind(n,2340)).then((function(e){return So(e.smalltalk)}))}}),wo.c6.of({name:"Solr",load:function(){return n.e(2534).then(n.bind(n,2534)).then((function(e){return So(e.solr)}))}}),wo.c6.of({name:"SML",extensions:["sml","sig","fun","smackspec"],load:function(){return n.e(6078).then(n.bind(n,6078)).then((function(e){return So(e.sml)}))}}),wo.c6.of({name:"SPARQL",alias:["sparul"],extensions:["rq","sparql"],load:function(){return n.e(2473).then(n.bind(n,2473)).then((function(e){return So(e.sparql)}))}}),wo.c6.of({name:"Spreadsheet",alias:["excel","formula"],load:function(){return n.e(294).then(n.bind(n,294)).then((function(e){return So(e.spreadsheet)}))}}),wo.c6.of({name:"Squirrel",extensions:["nut"],load:function(){return n.e(7279).then(n.bind(n,7279)).then((function(e){return So(e.squirrel)}))}}),wo.c6.of({name:"Stylus",extensions:["styl"],load:function(){return n.e(1620).then(n.bind(n,1620)).then((function(e){return So(e.stylus)}))}}),wo.c6.of({name:"Swift",extensions:["swift"],load:function(){return n.e(9007).then(n.bind(n,9007)).then((function(e){return So(e.swift)}))}}),wo.c6.of({name:"sTeX",load:function(){return n.e(9084).then(n.bind(n,9084)).then((function(e){return So(e.stex)}))}}),wo.c6.of({name:"LaTeX",alias:["tex"],extensions:["text","ltx","tex"],load:function(){return n.e(9084).then(n.bind(n,9084)).then((function(e){return So(e.stex)}))}}),wo.c6.of({name:"SystemVerilog",extensions:["v","sv","svh"],load:function(){return n.e(8066).then(n.bind(n,8066)).then((function(e){return So(e.verilog)}))}}),wo.c6.of({name:"Tcl",extensions:["tcl"],load:function(){return n.e(2410).then(n.bind(n,2410)).then((function(e){return So(e.tcl)}))}}),wo.c6.of({name:"Textile",extensions:["textile"],load:function(){return n.e(5537).then(n.bind(n,5537)).then((function(e){return So(e.textile)}))}}),wo.c6.of({name:"TiddlyWiki",load:function(){return n.e(1973).then(n.bind(n,1973)).then((function(e){return So(e.tiddlyWiki)}))}}),wo.c6.of({name:"Tiki wiki",load:function(){return n.e(468).then(n.bind(n,468)).then((function(e){return So(e.tiki)}))}}),wo.c6.of({name:"TOML",extensions:["toml"],load:function(){return n.e(9021).then(n.bind(n,9021)).then((function(e){return So(e.toml)}))}}),wo.c6.of({name:"Troff",extensions:["1","2","3","4","5","6","7","8","9"],load:function(){return n.e(7792).then(n.bind(n,7792)).then((function(e){return So(e.troff)}))}}),wo.c6.of({name:"TTCN",extensions:["ttcn","ttcn3","ttcnpp"],load:function(){return n.e(4071).then(n.bind(n,4071)).then((function(e){return So(e.ttcn)}))}}),wo.c6.of({name:"TTCN_CFG",extensions:["cfg"],load:function(){return n.e(903).then(n.bind(n,4494)).then((function(e){return So(e.ttcnCfg)}))}}),wo.c6.of({name:"Turtle",extensions:["ttl"],load:function(){return n.e(2804).then(n.bind(n,2804)).then((function(e){return So(e.turtle)}))}}),wo.c6.of({name:"Web IDL",extensions:["webidl"],load:function(){return n.e(606).then(n.bind(n,606)).then((function(e){return So(e.webIDL)}))}}),wo.c6.of({name:"VB.NET",extensions:["vb"],load:function(){return n.e(5798).then(n.bind(n,5798)).then((function(e){return So(e.vb)}))}}),wo.c6.of({name:"VBScript",extensions:["vbs"],load:function(){return n.e(3083).then(n.bind(n,3083)).then((function(e){return So(e.vbScript)}))}}),wo.c6.of({name:"Velocity",extensions:["vtl"],load:function(){return n.e(2489).then(n.bind(n,2489)).then((function(e){return So(e.velocity)}))}}),wo.c6.of({name:"Verilog",extensions:["v"],load:function(){return n.e(8066).then(n.bind(n,8066)).then((function(e){return So(e.verilog)}))}}),wo.c6.of({name:"VHDL",extensions:["vhd","vhdl"],load:function(){return n.e(1875).then(n.bind(n,1875)).then((function(e){return So(e.vhdl)}))}}),wo.c6.of({name:"XQuery",extensions:["xy","xquery"],load:function(){return n.e(9949).then(n.bind(n,9949)).then((function(e){return So(e.xQuery)}))}}),wo.c6.of({name:"Yacas",extensions:["ys"],load:function(){return n.e(2172).then(n.bind(n,2172)).then((function(e){return So(e.yacas)}))}}),wo.c6.of({name:"YAML",alias:["yml"],extensions:["yaml","yml"],load:function(){return n.e(2082).then(n.bind(n,2082)).then((function(e){return So(e.yaml)}))}}),wo.c6.of({name:"Z80",extensions:["z80"],load:function(){return n.e(2275).then(n.bind(n,2275)).then((function(e){return So(e.z80)}))}}),wo.c6.of({name:"MscGen",extensions:["mscgen","mscin","msc"],load:function(){return n.e(8831).then(n.bind(n,8831)).then((function(e){return So(e.mscgen)}))}}),wo.c6.of({name:"X\xf9",extensions:["xu"],load:function(){return n.e(8831).then(n.bind(n,8831)).then((function(e){return So(e.xu)}))}}),wo.c6.of({name:"MsGenny",extensions:["msgenny"],load:function(){return n.e(8831).then(n.bind(n,8831)).then((function(e){return So(e.msgenny)}))}})],Ao=n(1701),_o=n(7989),Qo=n(1514);function Po(e,t){return function(n){var r=n.state,i=n.dispatch;if(r.readOnly)return!1;var o=e(t,r);return!!o&&(i(r.update(o)),!0)}}var Ro=Po(Fo,0),Do=Po(Lo,0),No=Po((function(e,t){return Lo(e,t,function(e){var t,n=[],r=(0,K.Z)(e.selection.ranges);try{for(r.s();!(t=r.n()).done;){var i=t.value,o=e.doc.lineAt(i.from),a=i.to<=o.to?o:e.doc.lineAt(i.to),s=n.length-1;s>=0&&n[s].to>o.from?n[s].to=a.to:n.push({from:o.from,to:a.to})}}catch(u){r.e(u)}finally{r.f()}return n}(t))}),0);function Mo(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.selection.main.head,n=e.languageDataAt("commentTokens",t);return n.length?n[0]:{}}function Io(e,t,n,r){var i,o,a=t.open,s=t.close,u=e.sliceDoc(n-50,n),l=e.sliceDoc(r,r+50),c=/\s*$/.exec(u)[0].length,h=/^\s*/.exec(l)[0].length,f=u.length-c;if(u.slice(f-a.length,f)==a&&l.slice(h,h+s.length)==s)return{open:{pos:n-c,margin:c&&1},close:{pos:r+h,margin:h&&1}};r-n<=100?i=o=e.sliceDoc(n,r):(i=e.sliceDoc(n,n+50),o=e.sliceDoc(r-50,r));var d=/^\s*/.exec(i)[0].length,p=/\s*$/.exec(o)[0].length,m=o.length-p-s.length;return i.slice(d,d+a.length)==a&&o.slice(m,m+s.length)==s?{open:{pos:n+d+a.length,margin:/\s/.test(i.charAt(d+a.length))?1:0},close:{pos:r-p-s.length,margin:/\s/.test(o.charAt(m-1))?1:0}}:null}function Lo(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.selection.ranges,r=n.map((function(e){return Mo(t,e.from).block}));if(!r.every((function(e){return e})))return null;var i=n.map((function(e,n){return Io(t,r[n],e.from,e.to)}));if(2!=e&&!i.every((function(e){return e})))return{changes:t.changes(n.map((function(e,t){return i[t]?[]:[{from:e.from,insert:r[t].open+" "},{from:e.to,insert:" "+r[t].close}]})))};if(1!=e&&i.some((function(e){return e}))){for(var o,a=[],s=0;s2&&void 0!==arguments[2]?arguments[2]:t.selection.ranges,i=[],o=-1,a=(0,K.Z)(r);try{for(a.s();!(n=a.n()).done;){for(var s=n.value,u=s.from,l=s.to,c=i.length,h=1e9,f=u;f<=l;){var d=t.doc.lineAt(f);if(d.from>o&&(u==l||l>d.from)){o=d.from;var p=Mo(t,f).line;if(!p)continue;var m=/^\s*/.exec(d.text)[0].length,g=m==d.length,v=d.text.slice(m,m+p.length)==p?m:-1;m=0}))){var _,Q=[],P=(0,K.Z)(i);try{for(P.s();!(_=P.n()).done;){var R=_.value,D=R.line,N=R.comment,M=R.token;if(N>=0){var I=D.from+N,L=I+M.length;" "==D.text[L-D.from]&&L++,Q.push({from:I,to:L})}}}catch(F){P.e(F)}finally{P.f()}return{changes:Q}}return null}var Zo=_o.q6.define(),$o=_o.q6.define(),jo=_o.r$.define(),Bo=_o.r$.define({combine:function(e){return(0,_o.BO)(e,{minDepth:100,newGroupDelay:500},{minDepth:Math.max,newGroupDelay:Math.min})}});var zo=_o.QQ.define({create:function(){return ia.empty},update:function(e,t){var n=t.state.facet(Bo),r=t.annotation(Zo);if(r){var i=t.docChanged?_o.jT.single(function(e){var t=0;return e.iterChangedRanges((function(e,n){return t=n})),t}(t.changes)):void 0,o=Go.fromTransaction(t,i),a=r.side,s=0==a?e.undone:e.done;return s=o?Jo(s,s.length,n.minDepth,o):Ko(s,t.startState.selection),new ia(0==a?r.rest:s,0==a?s:r.rest)}var u=t.annotation($o);if("full"!=u&&"before"!=u||(e=e.isolate()),!1===t.annotation(_o.YW.addToHistory))return t.changes.empty?e:e.addMapping(t.changes.desc);var l=Go.fromTransaction(t),c=t.annotation(_o.YW.time),h=t.annotation(_o.YW.userEvent);return l?e=e.addChanges(l,c,h,n.newGroupDelay,n.minDepth):t.selection&&(e=e.addSelection(t.startState.selection,c,h,n.newGroupDelay)),"full"!=u&&"after"!=u||(e=e.isolate()),e},toJSON:function(e){return{done:e.done.map((function(e){return e.toJSON()})),undone:e.undone.map((function(e){return e.toJSON()}))}},fromJSON:function(e){return new ia(e.done.map(Go.fromJSON),e.undone.map(Go.fromJSON))}});function Ho(e,t){return function(n){var r=n.state,i=n.dispatch;if(!t&&r.readOnly)return!1;var o=r.field(zo,!1);if(!o)return!1;var a=o.pop(e,r,t);return!!a&&(i(a),!0)}}var Wo=Ho(0,!1),Uo=Ho(1,!1),qo=Ho(0,!0),Xo=Ho(1,!0);var Go=function(){function e(t,n,r,i,o){(0,Vr.Z)(this,e),this.changes=t,this.effects=n,this.mapped=r,this.startSelection=i,this.selectionsAfter=o}return(0,Yr.Z)(e,[{key:"setSelAfter",value:function(t){return new e(this.changes,this.effects,this.mapped,this.startSelection,t)}},{key:"toJSON",value:function(){var e,t,n;return{changes:null===(e=this.changes)||void 0===e?void 0:e.toJSON(),mapped:null===(t=this.mapped)||void 0===t?void 0:t.toJSON(),startSelection:null===(n=this.startSelection)||void 0===n?void 0:n.toJSON(),selectionsAfter:this.selectionsAfter.map((function(e){return e.toJSON()}))}}}],[{key:"fromJSON",value:function(t){return new e(t.changes&&_o.as.fromJSON(t.changes),[],t.mapped&&_o.n0.fromJSON(t.mapped),t.startSelection&&_o.jT.fromJSON(t.startSelection),t.selectionsAfter.map(_o.jT.fromJSON))}},{key:"fromTransaction",value:function(t,n){var r,i=Yo,o=(0,K.Z)(t.startState.facet(jo));try{for(o.s();!(r=o.n()).done;){var a=(0,r.value)(t);a.length&&(i=i.concat(a))}}catch(s){o.e(s)}finally{o.f()}return!i.length&&t.changes.empty?null:new e(t.changes.invert(t.startState.doc),i,void 0,n||t.startState.selection,Yo)}},{key:"selection",value:function(t){return new e(void 0,Yo,void 0,void 0,t)}}]),e}();function Jo(e,t,n,r){var i=t+1>n+20?t-n-1:0,o=e.slice(i,t);return o.push(r),o}function Vo(e,t){return e.length?t.length?e.concat(t):e:t}var Yo=[];function Ko(e,t){if(e.length){var n=e[e.length-1],r=n.selectionsAfter.slice(Math.max(0,n.selectionsAfter.length-200));return r.length&&r[r.length-1].eq(t)?e:(r.push(t),Jo(e,e.length-1,1e9,n.setSelAfter(r)))}return[Go.selection([t])]}function ea(e){var t=e[e.length-1],n=e.slice();return n[e.length-1]=t.setSelAfter(t.selectionsAfter.slice(0,t.selectionsAfter.length-1)),n}function ta(e,t){if(!e.length)return e;for(var n=e.length,r=Yo;n;){var i=na(e[n-1],t,r);if(i.changes&&!i.changes.empty||i.effects.length){var o=e.slice(0,n);return o[n-1]=i,o}t=i.mapped,n--,r=i.selectionsAfter}return r.length?[Go.selection(r)]:Yo}function na(e,t,n){var r=Vo(e.selectionsAfter.length?e.selectionsAfter.map((function(e){return e.map(t)})):Yo,n);if(!e.changes)return Go.selection(r);var i=e.changes.map(t),o=t.mapDesc(e.changes,!0),a=e.mapped?e.mapped.composeDesc(o):o;return new Go(i,_o.Py.mapEffects(e.effects,t),a,e.startSelection.map(o),r)}var ra=/^(input\.type|delete)($|\.)/,ia=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0;(0,Vr.Z)(this,e),this.done=t,this.undone=n,this.prevTime=r,this.prevUserEvent=i}return(0,Yr.Z)(e,[{key:"isolate",value:function(){return this.prevTime?new e(this.done,this.undone):this}},{key:"addChanges",value:function(t,n,r,i,o){var a=this.done,s=a[a.length-1];return a=s&&s.changes&&!s.changes.empty&&t.changes&&(!r||ra.test(r))&&(!s.selectionsAfter.length&&n-this.prevTime=s&&i<=u&&(r=!0)}})),r}(s.changes,t.changes)||"input.type.compose"==r)?Jo(a,a.length-1,o,new Go(t.changes.compose(s.changes),Vo(t.effects,s.effects),s.mapped,s.startSelection,Yo)):Jo(a,a.length,o,t),new e(a,Yo,n,r)}},{key:"addSelection",value:function(t,n,r,i){var o=this.done.length?this.done[this.done.length-1].selectionsAfter:Yo;return o.length>0&&n-this.prevTime2||/[^\s,.;:]/.test(e.sliceDoc(t.from,t.to)))||t.firstChild}function ga(e,t,n){for(var r=(0,wo.qz)(e).resolveInner(t.head),i=n?Qo.md.closedBy:Qo.md.openedBy,o=t.head;;){var a=n?r.childAfter(o):r.childBefore(o);if(!a)break;ma(e,a,i)?r=a:o=n?a.to:a.from}var s,u;return u=r.type.prop(i)&&(s=n?(0,wo.Um)(e,r.from,1):(0,wo.Um)(e,r.to,-1))&&s.matched?n?s.end.to:s.end.from:n?r.to:r.from,_o.jT.cursor(u,n?-1:1)}function va(e,t){return ua(e,(function(n){if(!n.empty)return la(n,t);var r=e.moveVertically(n,t);return r.head!=n.head?r:e.moveToLineBoundary(n,t)}))}var Oa=function(e){return va(e,!1)},ya=function(e){return va(e,!0)};function ka(e){return Math.max(e.defaultLineHeight,Math.min(e.dom.clientHeight,innerHeight)-5)}function ba(e,t){var n=e.state,r=aa(n.selection,(function(n){return n.empty?e.moveVertically(n,t,ka(e)):la(n,t)}));if(r.eq(n.selection))return!1;var i,o=e.coordsAtPos(n.selection.main.head),a=e.scrollDOM.getBoundingClientRect();return o&&o.top>a.top&&o.bottom0&&(0,wo.Um)(e,t.head-1,1)||t.headn&&(i="delete.forward"),n=Math.min(n,o),r=Math.max(r,o)}return n==r?{range:e}:{changes:{from:n,to:r},range:_o.jT.cursor(n)}}));return!o.changes.empty&&(r(n.update(o,{scrollIntoView:!0,userEvent:i,effects:"delete.selection"==i?Ao.tk.announce.of(n.phrase("Selection deleted")):void 0})),!0)}function Ba(e,t,n){if(e instanceof Ao.tk){var r,i=(0,K.Z)(e.state.facet(Ao.tk.atomicRanges).map((function(t){return t(e)})));try{for(i.s();!(r=i.n()).done;){r.value.between(t,t,(function(e,r){et&&(t=n?r:e)}))}}catch(o){i.e(o)}finally{i.f()}}return t}var za=function(e,t){return ja(e,(function(n){var r,i,o=e.state,a=o.doc.lineAt(n);if(!t&&n>a.from&&n=a.number){var u=n[n.length-1];u.to=s.to,u.ranges.push(o)}else n.push({from:a.from,to:s.to,ranges:[o]});r=s.number+1}}catch(l){i.e(l)}finally{i.f()}return n}function Ja(e,t,n){if(e.readOnly)return!1;var r,i=[],o=[],a=(0,K.Z)(Ga(e));try{for(a.s();!(r=a.n()).done;){var s=r.value;if(n?s.to!=e.doc.length:0!=s.from){var u=e.doc.lineAt(n?s.to+1:s.from-1),l=u.length+1;if(n){i.push({from:s.to,to:u.to},{from:s.from,insert:u.text+e.lineBreak});var c,h=(0,K.Z)(s.ranges);try{for(h.s();!(c=h.n()).done;){var f=c.value;o.push(_o.jT.range(Math.min(e.doc.length,f.anchor+l),Math.min(e.doc.length,f.head+l)))}}catch(g){h.e(g)}finally{h.f()}}else{i.push({from:u.from,to:s.from},{from:s.to,insert:e.lineBreak+u.text});var d,p=(0,K.Z)(s.ranges);try{for(p.s();!(d=p.n()).done;){var m=d.value;o.push(_o.jT.range(m.anchor-l,m.head-l))}}catch(g){p.e(g)}finally{p.f()}}}}}catch(g){a.e(g)}finally{a.f()}return!!i.length&&(t(e.update({changes:i,scrollIntoView:!0,selection:_o.jT.create(o,e.selection.mainIndex),userEvent:"move.line"})),!0)}function Va(e,t,n){if(e.readOnly)return!1;var r,i=[],o=(0,K.Z)(Ga(e));try{for(o.s();!(r=o.n()).done;){var a=r.value;n?i.push({from:a.from,insert:e.doc.slice(a.from,a.to)+e.lineBreak}):i.push({from:a.to,insert:e.lineBreak+e.doc.slice(a.from,a.to)})}}catch(s){o.e(s)}finally{o.f()}return t(e.update({changes:i,scrollIntoView:!0,userEvent:"input.copyline"})),!0}var Ya=es(!1),Ka=es(!0);function es(e){return function(t){var n=t.state,r=t.dispatch;if(n.readOnly)return!1;var i=n.changeByRange((function(t){var r=t.from,i=t.to,o=n.doc.lineAt(r),a=!e&&r==i&&function(e,t){if(/\(\)|\[\]|\{\}/.test(e.sliceDoc(t-1,t+1)))return{from:t,to:t};var n,r=(0,wo.qz)(e).resolveInner(t),i=r.childBefore(t),o=r.childAfter(t);return i&&o&&i.to<=t&&o.from>=t&&(n=i.type.prop(Qo.md.closedBy))&&n.indexOf(o.name)>-1&&e.doc.lineAt(i.to).from==e.doc.lineAt(o.from).from?{from:i.to,to:o.from}:null}(n,r);e&&(r=i=(i<=o.to?o:n.doc.lineAt(i)).to);var s=new wo.Gn(n,{simulateBreak:r,simulateDoubleBreak:!!a}),u=(0,wo.K0)(s,r);for(null==u&&(u=/^\s*/.exec(n.doc.lineAt(r).text)[0].length);io.from&&rn&&(r.empty||r.to>a.from)&&(t(a,i,r),n=a.number),o=a.to+1}var s=e.changes(i);return{changes:i,range:_o.jT.range(s.mapPos(r.anchor,1),s.mapPos(r.head,1))}}))}var ns=function(e){var t=e.state,n=e.dispatch;return!t.readOnly&&(n(t.update(ts(t,(function(e,n){n.push({from:e.from,insert:t.facet(wo.c)})})),{userEvent:"input.indent"})),!0)},rs=function(e){var t=e.state,n=e.dispatch;return!t.readOnly&&(n(t.update(ts(t,(function(e,n){var r=/^\s*/.exec(e.text)[0];if(r){for(var i=(0,_o.IS)(r,t.tabSize),o=0,a=(0,wo.SS)(t,Math.max(0,i-(0,wo.y1)(t)));on?n:Math.max(0,t-1),!1)}))}},{mac:"Mod-Delete",run:Xa}].concat([{key:"Ctrl-b",run:fa,shift:Aa,preventDefault:!0},{key:"Ctrl-f",run:da,shift:_a},{key:"Ctrl-p",run:Oa,shift:Ra},{key:"Ctrl-n",run:ya,shift:Da},{key:"Ctrl-a",run:function(e){return ua(e,(function(t){return _o.jT.cursor(e.lineBlockAt(t.head).from,1)}))},shift:function(e){return Ca(e,(function(t){return _o.jT.cursor(e.lineBlockAt(t.head).from)}))}},{key:"Ctrl-e",run:function(e){return ua(e,(function(t){return _o.jT.cursor(e.lineBlockAt(t.head).to,-1)}))},shift:function(e){return Ca(e,(function(t){return _o.jT.cursor(e.lineBlockAt(t.head).to)}))}},{key:"Ctrl-d",run:Wa},{key:"Ctrl-h",run:Ha},{key:"Ctrl-k",run:Xa},{key:"Ctrl-Alt-h",run:qa},{key:"Ctrl-o",run:function(e){var t=e.state,n=e.dispatch;if(t.readOnly)return!1;var r=t.changeByRange((function(e){return{changes:{from:e.from,to:e.to,insert:_o.xv.of(["",""])},range:_o.jT.cursor(e.from)}}));return n(t.update(r,{scrollIntoView:!0,userEvent:"input"})),!0}},{key:"Ctrl-t",run:function(e){var t=e.state,n=e.dispatch;if(t.readOnly)return!1;var r=t.changeByRange((function(e){if(!e.empty||0==e.from||e.from==t.doc.length)return{range:e};var n=e.from,r=t.doc.lineAt(n),i=n==r.from?n-1:(0,_o.cp)(r.text,n-r.from,!1)+r.from,o=n==r.to?n+1:(0,_o.cp)(r.text,n-r.from,!0)+r.from;return{changes:{from:i,to:o,insert:t.doc.slice(n,o).append(t.doc.slice(i,n))},range:_o.jT.cursor(o)}}));return!r.changes.empty&&(n(t.update(r,{scrollIntoView:!0,userEvent:"move.character"})),!0)}},{key:"Ctrl-v",run:Ta}].map((function(e){return{mac:e.key,run:e.run,shift:e.shift}}))),os=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:function(e){return ua(e,(function(t){return ga(e.state,t,!ha(e))}))},shift:function(e){return Ca(e,(function(t){return ga(e.state,t,!ha(e))}))}},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:function(e){return ua(e,(function(t){return ga(e.state,t,ha(e))}))},shift:function(e){return Ca(e,(function(t){return ga(e.state,t,ha(e))}))}},{key:"Alt-ArrowUp",run:function(e){return Ja(e.state,e.dispatch,!1)}},{key:"Shift-Alt-ArrowUp",run:function(e){return Va(e.state,e.dispatch,!1)}},{key:"Alt-ArrowDown",run:function(e){return Ja(e.state,e.dispatch,!0)}},{key:"Shift-Alt-ArrowDown",run:function(e){return Va(e.state,e.dispatch,!0)}},{key:"Escape",run:function(e){var t=e.state,n=e.dispatch,r=t.selection,i=null;return r.ranges.length>1?i=_o.jT.create([r.main]):r.main.empty||(i=_o.jT.create([_o.jT.cursor(r.main.head)])),!!i&&(n(sa(t,i)),!0)}},{key:"Mod-Enter",run:Ka},{key:"Alt-l",mac:"Ctrl-l",run:function(e){var t=e.state,n=e.dispatch,r=Ga(t).map((function(e){var n=e.from,r=e.to;return _o.jT.range(n,Math.min(r+1,t.doc.length))}));return n(t.update({selection:_o.jT.create(r),userEvent:"select"})),!0}},{key:"Mod-i",run:function(e){var t=e.state,n=e.dispatch,r=aa(t.selection,(function(e){for(var n,r=(0,wo.qz)(t).resolveInner(e.head,1);!(r.from=e.to||r.to>e.to&&r.from<=e.from)&&(null===(n=r.parent)||void 0===n?void 0:n.parent);)r=r.parent;return _o.jT.range(r.to,r.from)}));return n(sa(t,r)),!0},preventDefault:!0},{key:"Mod-[",run:rs},{key:"Mod-]",run:ns},{key:"Mod-Alt-\\",run:function(e){var t=e.state,n=e.dispatch;if(t.readOnly)return!1;var r=Object.create(null),i=new wo.Gn(t,{overrideIndentation:function(e){var t=r[e];return null==t?-1:t}}),o=ts(t,(function(e,n,o){var a=(0,wo.K0)(i,e.from);if(null!=a){/\S/.test(e.text)||(a=0);var s=/^\s*/.exec(e.text)[0],u=(0,wo.SS)(t,a);(s!=u||o.from0?n--:r2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t.length,o=arguments.length>4?arguments[4]:void 0,a=arguments.length>5?arguments[5]:void 0;(0,Vr.Z)(this,e),this.test=a,this.value={from:0,to:0},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=t.iterRange(r,i),this.bufferStart=r,this.normalize=o?function(e){return o(ls(e))}:ls,this.query=this.normalize(n)}return(0,Yr.Z)(e,[{key:"peek",value:function(){if(this.bufferPos==this.buffer.length){if(this.bufferStart+=this.buffer.length,this.iter.next(),this.iter.done)return-1;this.bufferPos=0,this.buffer=this.iter.value}return(0,_o.gm)(this.buffer,this.bufferPos)}},{key:"next",value:function(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}},{key:"nextOverlapping",value:function(){for(;;){var e=this.peek();if(e<0)return this.done=!0,this;var t=(0,_o.bg)(e),n=this.bufferStart+this.bufferPos;this.bufferPos+=(0,_o.nZ)(e);for(var r=this.normalize(t),i=0,o=n;;i++){var a=r.charCodeAt(i),s=this.match(a,o);if(s)return this.value=s,this;if(i==r.length-1)break;o==n&&i3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:t.length;if((0,Vr.Z)(this,e),this.text=t,this.to=o,this.curLine="",this.done=!1,this.value=hs,/\\[sWDnr]|\n|\r|\[\^/.test(n))return new gs(t,n,r,i,o);this.re=new RegExp(n,fs+((null===r||void 0===r?void 0:r.ignoreCase)?"i":"")),this.test=null===r||void 0===r?void 0:r.test,this.iter=t.iter();var a=t.lineAt(i);this.curLineStart=a.from,this.matchPos=vs(t,i),this.getLine(this.curLineStart)}return(0,Yr.Z)(e,[{key:"getLine",value:function(e){this.iter.next(e),this.iter.lineBreak?this.curLine="":(this.curLine=this.iter.value,this.curLineStart+this.curLine.length>this.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}},{key:"nextLine",value:function(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine="":this.getLine(0)}},{key:"next",value:function(){for(var e=this.matchPos-this.curLineStart;;){this.re.lastIndex=e;var t=this.matchPos<=this.to&&this.re.exec(this.curLine);if(t){var n=this.curLineStart+t.index,r=n+t[0].length;if(this.matchPos=vs(this.text,r+(n==r?1:0)),n==this.curLine.length&&this.nextLine(),(nthis.value.to)&&(!this.test||this.test(n,r,t)))return this.value={from:n,to:r,match:t},this;e=this.matchPos-this.curLineStart}else{if(!(this.curLineStart+this.curLine.length=r||i.to<=n){var o=new e(n,t.sliceString(n,r));return ps.set(t,o),o}if(i.from==n&&i.to==r)return i;var a=i.text,s=i.from;return s>n&&(a=t.sliceString(n,s)+a,s=n),i.to=this.to?this.to:this.text.lineAt(e).to}},{key:"next",value:function(){for(;;){var e=this.re.lastIndex=this.matchPos-this.flat.from,t=this.re.exec(this.flat.text);if(t&&!t[0]&&t.index==e&&(this.re.lastIndex=e+1,t=this.re.exec(this.flat.text)),t){var n=this.flat.from+t.index,r=n+t[0].length;if((this.flat.to>=this.to||t.index+t[0].length<=this.flat.text.length-10)&&(!this.test||this.test(n,r,t)))return this.value={from:n,to:r,match:t},this.matchPos=vs(this.text,r+(n==r?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=ms.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+2*this.flat.text.length))}}}]),e}();function vs(e,t){if(t>=e.length)return t;for(var n,r=e.lineAt(t);t=56320&&n<57344;)t++;return t}function Os(e){var t=ss("input",{class:"cm-textfield",name:"line"});function n(){var n=/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(t.value);if(n){var r=e.state,i=r.doc.lineAt(r.selection.main.head),o=(0,ee.Z)(n,5),a=o[1],s=o[2],u=o[3],l=o[4],c=u?+u.slice(1):0,h=s?+s:i.number;if(s&&l){var f=h/100;a&&(f=f*("-"==a?-1:1)+i.number/r.doc.lines),h=Math.round(r.doc.lines*f)}else s&&a&&(h=h*("-"==a?-1:1)+i.number);var d=r.doc.line(Math.max(1,Math.min(r.doc.lines,h)));e.dispatch({effects:ys.of(!1),selection:_o.jT.cursor(d.from+Math.max(0,Math.min(c,d.length))),scrollIntoView:!0}),e.focus()}}return{dom:ss("form",{class:"cm-gotoLine",onkeydown:function(t){27==t.keyCode?(t.preventDefault(),e.dispatch({effects:ys.of(!1)}),e.focus()):13==t.keyCode&&(t.preventDefault(),n())},onsubmit:function(e){e.preventDefault(),n()}},ss("label",e.state.phrase("Go to line"),": ",t)," ",ss("button",{class:"cm-button",type:"submit"},e.state.phrase("go")))}}"undefined"!=typeof Symbol&&(ds.prototype[Symbol.iterator]=gs.prototype[Symbol.iterator]=function(){return this});var ys=_o.Py.define(),ks=_o.QQ.define({create:function(){return!0},update:function(e,t){var n,r=(0,K.Z)(t.effects);try{for(r.s();!(n=r.n()).done;){var i=n.value;i.is(ys)&&(e=i.value)}}catch(o){r.e(o)}finally{r.f()}return e},provide:function(e){return Ao.mH.from(e,(function(e){return e?Os:null}))}}),bs=Ao.tk.baseTheme({".cm-panel.cm-gotoLine":{padding:"2px 6px 4px","& label":{fontSize:"80%"}}}),xs={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},Ts=_o.r$.define({combine:function(e){return(0,_o.BO)(e,xs,{highlightWordAroundCursor:function(e,t){return e||t},minSelectionLength:Math.min,maxMatches:Math.min})}});var ws=Ao.p.mark({class:"cm-selectionMatch"}),Ss=Ao.p.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function Cs(e,t,n,r){return(0==n||e(t.sliceDoc(n-1,n))!=_o.D0.Word)&&(r==t.doc.length||e(t.sliceDoc(r,r+1))!=_o.D0.Word)}var Es=Ao.lg.fromClass(function(){function e(t){(0,Vr.Z)(this,e),this.decorations=this.getDeco(t)}return(0,Yr.Z)(e,[{key:"update",value:function(e){(e.selectionSet||e.docChanged||e.viewportChanged)&&(this.decorations=this.getDeco(e.view))}},{key:"getDeco",value:function(e){var t=e.state.facet(Ts),n=e.state,r=n.selection;if(r.ranges.length>1)return Ao.p.none;var i,o=r.main,a=null;if(o.empty){if(!t.highlightWordAroundCursor)return Ao.p.none;var s=n.wordAt(o.head);if(!s)return Ao.p.none;a=n.charCategorizer(o.head),i=n.sliceDoc(s.from,s.to)}else{var u=o.to-o.from;if(u200)return Ao.p.none;if(t.wholeWords){if(i=n.sliceDoc(o.from,o.to),!Cs(a=n.charCategorizer(o.head),n,o.from,o.to)||!function(e,t,n,r){return e(t.sliceDoc(n,n+1))==_o.D0.Word&&e(t.sliceDoc(r-1,r))==_o.D0.Word}(a,n,o.from,o.to))return Ao.p.none}else if(!(i=n.sliceDoc(o.from,o.to).trim()))return Ao.p.none}var l,c=[],h=(0,K.Z)(e.visibleRanges);try{for(h.s();!(l=h.n()).done;)for(var f=l.value,d=new cs(n.doc,i,f.from,f.to);!d.next().done;){var p=d.value,m=p.from,g=p.to;if((!a||Cs(a,n,m,g))&&(o.empty&&m<=o.from&&g>=o.to?c.push(Ss.range(m,g)):(m>=o.to||g<=o.from)&&c.push(ws.range(m,g)),c.length>t.maxMatches))return Ao.p.none}}catch(v){h.e(v)}finally{h.f()}return Ao.p.set(c)}}]),e}(),{decorations:function(e){return e.decorations}}),As=Ao.tk.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}});var _s=_o.r$.define({combine:function(e){return(0,_o.BO)(e,{top:!1,caseSensitive:!1,literal:!1,wholeWord:!1,createPanel:function(e){return new nu(e)}})}});var Qs=function(){function e(t){(0,Vr.Z)(this,e),this.search=t.search,this.caseSensitive=!!t.caseSensitive,this.literal=!!t.literal,this.regexp=!!t.regexp,this.replace=t.replace||"",this.valid=!!this.search&&(!this.regexp||function(e){try{return new RegExp(e,fs),!0}catch(t){return!1}}(this.search)),this.unquoted=this.literal?this.search:this.search.replace(/\\([nrt\\])/g,(function(e,t){return"n"==t?"\n":"r"==t?"\r":"t"==t?"\t":"\\"})),this.wholeWord=!!t.wholeWord}return(0,Yr.Z)(e,[{key:"eq",value:function(e){return this.search==e.search&&this.replace==e.replace&&this.caseSensitive==e.caseSensitive&&this.regexp==e.regexp&&this.wholeWord==e.wholeWord}},{key:"create",value:function(){return this.regexp?new Ls(this):new Ds(this)}},{key:"getCursor",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0,r=e.doc?e:_o.yy.create({doc:e});return null==n&&(n=r.doc.length),this.regexp?Ns(this,r,t,n):Rs(this,r,t,n)}}]),e}(),Ps=(0,Yr.Z)((function e(t){(0,Vr.Z)(this,e),this.spec=t}));function Rs(e,t,n,r){return new cs(t.doc,e.unquoted,n,r,e.caseSensitive?void 0:function(e){return e.toLowerCase()},e.wholeWord?(i=t.doc,o=t.charCategorizer(t.selection.main.head),function(e,t,n,r){return(r>e||r+n.length=t)return null;r.push(n.value)}return r}},{key:"highlight",value:function(e,t,n,r){for(var i=Rs(this.spec,e,Math.max(0,t-this.spec.unquoted.length),Math.min(n+this.spec.unquoted.length,e.doc.length));!i.next().done;)r(i.value.from,i.value.to)}}]),n}(Ps);function Ns(e,t,n,r){return new ds(t.doc,e.search,{ignoreCase:!e.caseSensitive,test:e.wholeWord?(i=t.charCategorizer(t.selection.main.head),function(e,t,n){return!n[0].length||i(Is(n.input,n.index))!=_o.D0.Word||i(Ms(n.input,n.index+n[0].length))!=_o.D0.Word||i(Ms(n.input,n.index))!=_o.D0.Word&&i(Is(n.input,n.index+n[0].length))!=_o.D0.Word}):void 0},n,r);var i}function Ms(e,t){return e.slice((0,_o.cp)(e,t,!1),t)}function Is(e,t){return e.slice(t,(0,_o.cp)(e,t))}var Ls=function(e){(0,ki.Z)(n,e);var t=(0,bi.Z)(n);function n(){return(0,Vr.Z)(this,n),t.apply(this,arguments)}return(0,Yr.Z)(n,[{key:"nextMatch",value:function(e,t,n){var r=Ns(this.spec,e,n,e.doc.length).next();return r.done&&(r=Ns(this.spec,e,0,t).next()),r.done?null:r.value}},{key:"prevMatchInRange",value:function(e,t,n){for(var r=1;;r++){for(var i=Math.max(t,n-1e4*r),o=Ns(this.spec,e,i,n),a=null;!o.next().done;)a=o.value;if(a&&(i==t||a.from>i+10))return a;if(i==t)return null}}},{key:"prevMatch",value:function(e,t,n){return this.prevMatchInRange(e,0,t)||this.prevMatchInRange(e,n,e.doc.length)}},{key:"getReplacement",value:function(e){return this.spec.replace.replace(/\$([$&\d+])/g,(function(t,n){return"$"==n?"$":"&"==n?e.match[0]:"0"!=n&&+n=t)return null;r.push(n.value)}return r}},{key:"highlight",value:function(e,t,n,r){for(var i=Ns(this.spec,e,Math.max(0,t-250),Math.min(n+250,e.doc.length));!i.next().done;)r(i.value.from,i.value.to)}}]),n}(Ps),Fs=_o.Py.define(),Zs=_o.Py.define(),$s=_o.QQ.define({create:function(e){return new js(Ys(e).create(),null)},update:function(e,t){var n,r=(0,K.Z)(t.effects);try{for(r.s();!(n=r.n()).done;){var i=n.value;i.is(Fs)?e=new js(i.value.create(),e.panel):i.is(Zs)&&(e=new js(e.query,i.value?Vs:null))}}catch(o){r.e(o)}finally{r.f()}return e},provide:function(e){return Ao.mH.from(e,(function(e){return e.panel}))}});var js=(0,Yr.Z)((function e(t,n){(0,Vr.Z)(this,e),this.query=t,this.panel=n})),Bs=Ao.p.mark({class:"cm-searchMatch"}),zs=Ao.p.mark({class:"cm-searchMatch cm-searchMatch-selected"}),Hs=Ao.lg.fromClass(function(){function e(t){(0,Vr.Z)(this,e),this.view=t,this.decorations=this.highlight(t.state.field($s))}return(0,Yr.Z)(e,[{key:"update",value:function(e){var t=e.state.field($s);(t!=e.startState.field($s)||e.docChanged||e.selectionSet||e.viewportChanged)&&(this.decorations=this.highlight(t))}},{key:"highlight",value:function(e){var t=e.query;if(!e.panel||!t.spec.valid)return Ao.p.none;for(var n=this.view,r=new _o.f_,i=0,o=n.visibleRanges,a=o.length;io[i+1].from-500;)l=o[++i].to;t.highlight(n.state,u,l,(function(e,t){var i=n.state.selection.ranges.some((function(n){return n.from==e&&n.to==t}));r.add(e,t,i?zs:Bs)}))}return r.finish()}}]),e}(),{decorations:function(e){return e.decorations}});function Ws(e){return function(t){var n=t.state.field($s,!1);return n&&n.query.spec.valid?e(t,n):Ks(t)}}var Us=Ws((function(e,t){var n=t.query,r=e.state.selection.main.to,i=n.nextMatch(e.state,r,r);return!!i&&(e.dispatch({selection:{anchor:i.from,head:i.to},scrollIntoView:!0,effects:ou(e,i),userEvent:"select.search"}),!0)})),qs=Ws((function(e,t){var n=t.query,r=e.state,i=r.selection.main.from,o=n.prevMatch(r,i,i);return!!o&&(e.dispatch({selection:{anchor:o.from,head:o.to},scrollIntoView:!0,effects:ou(e,o),userEvent:"select.search"}),!0)})),Xs=Ws((function(e,t){var n=t.query.matchAll(e.state,1e3);return!(!n||!n.length)&&(e.dispatch({selection:_o.jT.create(n.map((function(e){return _o.jT.range(e.from,e.to)}))),userEvent:"select.search.matches"}),!0)})),Gs=Ws((function(e,t){var n=t.query,r=e.state,i=r.selection.main,o=i.from,a=i.to;if(r.readOnly)return!1;var s=n.nextMatch(r,o,o);if(!s)return!1;var u,l,c=[],h=[];if(s.from==o&&s.to==a&&(l=r.toText(n.getReplacement(s)),c.push({from:s.from,to:s.to,insert:l}),s=n.nextMatch(r,s.from,s.to),h.push(Ao.tk.announce.of(r.phrase("replaced match on line $",r.doc.lineAt(o).number)+"."))),s){var f=0==c.length||c[0].from>=s.to?0:s.to-s.from-l.length;u={anchor:s.from-f,head:s.to-f},h.push(ou(e,s))}return e.dispatch({changes:c,selection:u,scrollIntoView:!!u,effects:h,userEvent:"input.replace"}),!0})),Js=Ws((function(e,t){var n=t.query;if(e.state.readOnly)return!1;var r=n.matchAll(e.state,1e9).map((function(e){return{from:e.from,to:e.to,insert:n.getReplacement(e)}}));if(!r.length)return!1;var i=e.state.phrase("replaced $ matches",r.length)+".";return e.dispatch({changes:r,effects:Ao.tk.announce.of(i),userEvent:"input.replace.all"}),!0}));function Vs(e){return e.state.facet(_s).createPanel(e)}function Ys(e,t){var n,r,i,o,a=e.selection.main,s=a.empty||a.to>a.from+100?"":e.sliceDoc(a.from,a.to);if(t&&!s)return t;var u=e.facet(_s);return new Qs({search:(null!==(n=null===t||void 0===t?void 0:t.literal)&&void 0!==n?n:u.literal)?s:s.replace(/\n/g,"\\n"),caseSensitive:null!==(r=null===t||void 0===t?void 0:t.caseSensitive)&&void 0!==r?r:u.caseSensitive,literal:null!==(i=null===t||void 0===t?void 0:t.literal)&&void 0!==i?i:u.literal,wholeWord:null!==(o=null===t||void 0===t?void 0:t.wholeWord)&&void 0!==o?o:u.wholeWord})}var Ks=function(e){var t=e.state.field($s,!1);if(t&&t.panel){var n=(0,Ao.Sd)(e,Vs);if(!n)return!1;var r=n.dom.querySelector("[main-field]");if(r&&r!=e.root.activeElement){var i=Ys(e.state,t.query.spec);i.valid&&e.dispatch({effects:Fs.of(i)}),r.focus(),r.select()}}else e.dispatch({effects:[Zs.of(!0),t?Fs.of(Ys(e.state,t.query.spec)):_o.Py.appendConfig.of(su)]});return!0},eu=function(e){var t=e.state.field($s,!1);if(!t||!t.panel)return!1;var n=(0,Ao.Sd)(e,Vs);return n&&n.dom.contains(e.root.activeElement)&&e.focus(),e.dispatch({effects:Zs.of(!1)}),!0},tu=[{key:"Mod-f",run:Ks,scope:"editor search-panel"},{key:"F3",run:Us,shift:qs,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:Us,shift:qs,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:eu,scope:"editor search-panel"},{key:"Mod-Shift-l",run:function(e){var t=e.state,n=e.dispatch,r=t.selection;if(r.ranges.length>1||r.main.empty)return!1;for(var i=r.main,o=i.from,a=i.to,s=[],u=0,l=new cs(t.doc,t.sliceDoc(o,a));!l.next().done;){if(s.length>1e3)return!1;l.value.from==o&&(u=s.length),s.push(_o.jT.range(l.value.from,l.value.to))}return n(t.update({selection:_o.jT.create(s,u),userEvent:"select.search.matches"})),!0}},{key:"Alt-g",run:function(e){var t=(0,Ao.Sd)(e,Os);if(!t){var n=[ys.of(!0)];null==e.state.field(ks,!1)&&n.push(_o.Py.appendConfig.of([ks,bs])),e.dispatch({effects:n}),t=(0,Ao.Sd)(e,Os)}return t&&t.dom.querySelector("input").focus(),!0}},{key:"Mod-d",run:function(e){var t=e.state,n=e.dispatch,r=t.selection.ranges;if(r.some((function(e){return e.from===e.to})))return function(e){var t=e.state,n=e.dispatch,r=t.selection,i=_o.jT.create(r.ranges.map((function(e){return t.wordAt(e.head)||_o.jT.cursor(e.head)})),r.mainIndex);return!i.eq(r)&&(n(t.update({selection:i})),!0)}({state:t,dispatch:n});var i=t.sliceDoc(r[0].from,r[0].to);if(t.selection.ranges.some((function(e){return t.sliceDoc(e.from,e.to)!=i})))return!1;var o=function(e,t){for(var n=e.selection,r=n.main,i=n.ranges,o=e.wordAt(r.head),a=o&&o.from==r.from&&o.to==r.to,s=function(n,r){if(r.next(),!r.done){if(n&&i.some((function(e){return e.from==r.value.from})))return l=r,u=n,"continue";if(a){var o=e.wordAt(r.value.from);if(!o||o.from!=r.value.from||o.to!=r.value.to)return l=r,u=n,"continue"}return u=n,l=r,{v:r.value}}if(n)return l=r,u=n,{v:null};r=new cs(e.doc,t,0,Math.max(0,i[i.length-1].from-1)),u=n=!0,l=r},u=!1,l=new cs(e.doc,t,i[i.length-1].to);;){var c=s(u,l);if("continue"!==c&&"object"===typeof c)return c.v}}(t,i);return!!o&&(n(t.update({selection:t.selection.addRange(_o.jT.range(o.from,o.to),!1),effects:Ao.tk.scrollIntoView(o.to)})),!0)},preventDefault:!0}],nu=function(){function e(t){var n=this;(0,Vr.Z)(this,e),this.view=t;var r=this.query=t.state.field($s).query.spec;function i(e,t,n){return ss("button",{class:"cm-button",name:e,onclick:t,type:"button"},n)}this.commit=this.commit.bind(this),this.searchField=ss("input",{value:r.search,placeholder:ru(t,"Find"),"aria-label":ru(t,"Find"),class:"cm-textfield",name:"search","main-field":"true",onchange:this.commit,onkeyup:this.commit}),this.replaceField=ss("input",{value:r.replace,placeholder:ru(t,"Replace"),"aria-label":ru(t,"Replace"),class:"cm-textfield",name:"replace",onchange:this.commit,onkeyup:this.commit}),this.caseField=ss("input",{type:"checkbox",name:"case",checked:r.caseSensitive,onchange:this.commit}),this.reField=ss("input",{type:"checkbox",name:"re",checked:r.regexp,onchange:this.commit}),this.wordField=ss("input",{type:"checkbox",name:"word",checked:r.wholeWord,onchange:this.commit}),this.dom=ss("div",{onkeydown:function(e){return n.keydown(e)},class:"cm-search"},[this.searchField,i("next",(function(){return Us(t)}),[ru(t,"next")]),i("prev",(function(){return qs(t)}),[ru(t,"previous")]),i("select",(function(){return Xs(t)}),[ru(t,"all")]),ss("label",null,[this.caseField,ru(t,"match case")]),ss("label",null,[this.reField,ru(t,"regexp")]),ss("label",null,[this.wordField,ru(t,"by word")])].concat((0,rt.Z)(t.state.readOnly?[]:[ss("br"),this.replaceField,i("replace",(function(){return Gs(t)}),[ru(t,"replace")]),i("replaceAll",(function(){return Js(t)}),[ru(t,"replace all")]),ss("button",{name:"close",onclick:function(){return eu(t)},"aria-label":ru(t,"close"),type:"button"},["\xd7"])])))}return(0,Yr.Z)(e,[{key:"commit",value:function(){var e=new Qs({search:this.searchField.value,caseSensitive:this.caseField.checked,regexp:this.reField.checked,wholeWord:this.wordField.checked,replace:this.replaceField.value});e.eq(this.query)||(this.query=e,this.view.dispatch({effects:Fs.of(e)}))}},{key:"keydown",value:function(e){(0,Ao.$1)(this.view,e,"search-panel")?e.preventDefault():13==e.keyCode&&e.target==this.searchField?(e.preventDefault(),(e.shiftKey?qs:Us)(this.view)):13==e.keyCode&&e.target==this.replaceField&&(e.preventDefault(),Gs(this.view))}},{key:"update",value:function(e){var t,n=(0,K.Z)(e.transactions);try{for(n.s();!(t=n.n()).done;){var r,i=t.value,o=(0,K.Z)(i.effects);try{for(o.s();!(r=o.n()).done;){var a=r.value;a.is(Fs)&&!a.value.eq(this.query)&&this.setQuery(a.value)}}catch(s){o.e(s)}finally{o.f()}}}catch(s){n.e(s)}finally{n.f()}}},{key:"setQuery",value:function(e){this.query=e,this.searchField.value=e.search,this.replaceField.value=e.replace,this.caseField.checked=e.caseSensitive,this.reField.checked=e.regexp,this.wordField.checked=e.wholeWord}},{key:"mount",value:function(){this.searchField.select()}},{key:"pos",get:function(){return 80}},{key:"top",get:function(){return this.view.state.facet(_s).top}}]),e}();function ru(e,t){return e.state.phrase(t)}var iu=/[\s\.,:;?!]/;function ou(e,t){var n=t.from,r=t.to,i=e.state.doc.lineAt(n),o=e.state.doc.lineAt(r).to,a=Math.max(i.from,n-30),s=Math.min(o,r+30),u=e.state.sliceDoc(a,s);if(a!=i.from)for(var l=0;l<30;l++)if(!iu.test(u[l+1])&&iu.test(u[l])){u=u.slice(l);break}if(s!=o)for(var c=u.length-1;c>u.length-30;c--)if(!iu.test(u[c-1])&&iu.test(u[c])){u=u.slice(0,c);break}return Ao.tk.announce.of("".concat(e.state.phrase("current match"),". ").concat(u," ").concat(e.state.phrase("on line")," ").concat(i.number,"."))}var au=Ao.tk.baseTheme({".cm-panel.cm-search":{padding:"2px 6px 4px",position:"relative","& [name=close]":{position:"absolute",top:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:0,margin:0},"& input, & button, & label":{margin:".2em .6em .2em 0"},"& input[type=checkbox]":{marginRight:".2em"},"& label":{fontSize:"80%",whiteSpace:"pre"}},"&light .cm-searchMatch":{backgroundColor:"#ffff0054"},"&dark .cm-searchMatch":{backgroundColor:"#00ffff8a"},"&light .cm-searchMatch-selected":{backgroundColor:"#ff6a0054"},"&dark .cm-searchMatch-selected":{backgroundColor:"#ff00ff8a"}}),su=[$s,_o.Wl.lowest(Hs),au],uu=n(2027),lu=(0,Yr.Z)((function e(t,n,r){(0,Vr.Z)(this,e),this.from=t,this.to=n,this.diagnostic=r})),cu=function(){function e(t,n,r){(0,Vr.Z)(this,e),this.diagnostics=t,this.panel=n,this.selected=r}return(0,Yr.Z)(e,null,[{key:"init",value:function(t,n,r){var i=t,o=r.facet(wu).markerFilter;o&&(i=o(i));var a=Ao.p.set(i.map((function(e){return e.from==e.to||e.from==e.to-1&&r.doc.lineAt(e.from).to==e.from?Ao.p.widget({widget:new Eu(e),diagnostic:e}).range(e.from):Ao.p.mark({attributes:{class:"cm-lintRange cm-lintRange-"+e.severity},diagnostic:e}).range(e.from,e.to)})),!0);return new e(a,n,hu(a))}}]),e}();function hu(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=null;return e.between(n,1e9,(function(e,n,i){var o=i.spec;if(!t||o.diagnostic==t)return r=new lu(e,n,o.diagnostic),!1})),r}function fu(e,t){return!(!e.effects.some((function(e){return e.is(pu)}))&&!e.changes.touchesRange(t.pos))}function du(e,t){return e.field(vu,!1)?t:t.concat(_o.Py.appendConfig.of([vu,Ao.tk.decorations.compute([vu],(function(e){var t=e.field(vu),n=t.selected,r=t.panel;return n&&r&&n.from!=n.to?Ao.p.set([Ou.range(n.from,n.to)]):Ao.p.none})),(0,Ao.bF)(yu,{hideOn:fu}),Ru]))}var pu=_o.Py.define(),mu=_o.Py.define(),gu=_o.Py.define(),vu=_o.QQ.define({create:function(){return new cu(Ao.p.none,null,null)},update:function(e,t){if(t.docChanged){var n=e.diagnostics.map(t.changes),r=null;if(e.selected){var i=t.changes.mapPos(e.selected.from,1);r=hu(n,e.selected.diagnostic,i)||hu(n,null,i)}e=new cu(n,e.panel,r)}var o,a=(0,K.Z)(t.effects);try{for(a.s();!(o=a.n()).done;){var s=o.value;s.is(pu)?e=cu.init(s.value,e.panel,t.state):s.is(mu)?e=new cu(e.diagnostics,s.value?_u.open:null,e.selected):s.is(gu)&&(e=new cu(e.diagnostics,e.panel,s.value))}}catch(u){a.e(u)}finally{a.f()}return e},provide:function(e){return[Ao.mH.from(e,(function(e){return e.panel})),Ao.tk.decorations.from(e,(function(e){return e.diagnostics}))]}});var Ou=Ao.p.mark({class:"cm-lintRange cm-lintRange-active"});function yu(e,t,n){var r=e.state.field(vu).diagnostics,i=[],o=2e8,a=0;r.between(t-(n<0?1:0),t+(n>0?1:0),(function(e,r,s){var u=s.spec;t>=e&&t<=r&&(e==r||(t>e||n>0)&&(t=65&&e.keyCode<=90&&n.selectedIndex>=0))return;for(var r=n.items[n.selectedIndex].diagnostic,i=Su(r.actions),o=0;oi&&(e.items.splice(i,c-i),o=!0)),r&&u.diagnostic==r.diagnostic?u.dom.hasAttribute("aria-selected")||(u.dom.setAttribute("aria-selected","true"),a=u):u.dom.hasAttribute("aria-selected")&&u.dom.removeAttribute("aria-selected"),i++}));ir.bottom&&(e.list.scrollTop+=n.bottom-r.bottom)}})):this.selectedIndex<0&&this.list.removeAttribute("aria-activedescendant"),o&&this.sync()}},{key:"sync",value:function(){var e=this.list.firstChild;function t(){var t=e;e=t.nextSibling,t.remove()}var n,r=(0,K.Z)(this.items);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(i.dom.parentNode==this.list){for(;e!=i.dom;)t();e=i.dom.nextSibling}else this.list.insertBefore(i.dom,e)}}catch(o){r.e(o)}finally{r.f()}for(;e;)t()}},{key:"moveSelection",value:function(e){if(!(this.selectedIndex<0)){var t=hu(this.view.state.field(vu).diagnostics,this.items[e].diagnostic);t&&this.view.dispatch({selection:{anchor:t.from,head:t.to},scrollIntoView:!0,effects:gu.of(t)})}}}],[{key:"open",value:function(t){return new e(t)}}]),e}();function Qu(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:'viewBox="0 0 40 40"';return'url(\'data:image/svg+xml,").concat(encodeURIComponent(e),"')")}function Pu(e){return Qu(''),'width="6" height="3"')}var Ru=Ao.tk.baseTheme({".cm-diagnostic":{padding:"3px 6px 3px 8px",marginLeft:"-1px",display:"block",whiteSpace:"pre-wrap"},".cm-diagnostic-error":{borderLeft:"5px solid #d11"},".cm-diagnostic-warning":{borderLeft:"5px solid orange"},".cm-diagnostic-info":{borderLeft:"5px solid #999"},".cm-diagnosticAction":{font:"inherit",border:"none",padding:"2px 4px",backgroundColor:"#444",color:"white",borderRadius:"3px",marginLeft:"8px"},".cm-diagnosticSource":{fontSize:"70%",opacity:.7},".cm-lintRange":{backgroundPosition:"left bottom",backgroundRepeat:"repeat-x",paddingBottom:"0.7px"},".cm-lintRange-error":{backgroundImage:Pu("#d11")},".cm-lintRange-warning":{backgroundImage:Pu("orange")},".cm-lintRange-info":{backgroundImage:Pu("#999")},".cm-lintRange-active":{backgroundColor:"#ffdd9980"},".cm-tooltip-lint":{padding:0,margin:0},".cm-lintPoint":{position:"relative","&:after":{content:'""',position:"absolute",bottom:0,left:"-2px",borderLeft:"3px solid transparent",borderRight:"3px solid transparent",borderBottom:"4px solid #d11"}},".cm-lintPoint-warning":{"&:after":{borderBottomColor:"orange"}},".cm-lintPoint-info":{"&:after":{borderBottomColor:"#999"}},".cm-panel.cm-panel-lint":{position:"relative","& ul":{maxHeight:"100px",overflowY:"auto","& [aria-selected]":{backgroundColor:"#ddd","& u":{textDecoration:"underline"}},"&:focus [aria-selected]":{background_fallback:"#bdf",backgroundColor:"Highlight",color_fallback:"white",color:"HighlightText"},"& u":{textDecoration:"none"},padding:0,margin:0},"& [name=close]":{position:"absolute",top:"0",right:"2px",background:"inherit",border:"none",font:"inherit",padding:0,margin:0}}});Ao.SJ;var Du=_o.Py.define(),Nu=_o.QQ.define({create:function(){return null},update:function(e,t){return e&&t.docChanged&&(e=fu(t,e)?null:Object.assign(Object.assign({},e),{pos:t.changes.mapPos(e.pos)})),t.effects.reduce((function(e,t){return t.is(Du)?t.value:e}),e)},provide:function(e){return Ao.hJ.from(e)}}),Mu=_o.r$.define({combine:function(e){return(0,_o.BO)(e,{hoverTime:300,markerFilter:null,tooltipFilter:null})}});var Iu=function(e){void 0===e&&(e={});var t=[];!1!==e.closeBracketsKeymap&&(t=t.concat(uu.GA)),!1!==e.defaultKeymap&&(t=t.concat(os)),!1!==e.searchKeymap&&(t=t.concat(tu)),!1!==e.historyKeymap&&(t=t.concat(oa)),!1!==e.foldKeymap&&(t=t.concat(wo.e7)),!1!==e.completionKeymap&&(t=t.concat(uu.B1)),!1!==e.lintKeymap&&(t=t.concat(xu));var n=[];return!1!==e.lineNumbers&&n.push((0,Ao.Eu)()),!1!==e.highlightActiveLineGutter&&n.push((0,Ao.HQ)()),!1!==e.highlightSpecialChars&&n.push((0,Ao.AE)()),!1!==e.history&&n.push(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return[zo,Bo.of(e),Ao.tk.domEventHandlers({beforeinput:function(e,t){var n="historyUndo"==e.inputType?Wo:"historyRedo"==e.inputType?Uo:null;return!!n&&(e.preventDefault(),n(t))}})]}()),!1!==e.foldGutter&&n.push((0,wo.mi)()),!1!==e.drawSelection&&n.push((0,Ao.Uw)()),!1!==e.dropCursor&&n.push((0,Ao.qr)()),!1!==e.allowMultipleSelections&&n.push(_o.yy.allowMultipleSelections.of(!0)),!1!==e.indentOnInput&&n.push((0,wo.nY)()),!1!==e.syntaxHighlighting&&n.push((0,wo.nF)(wo.R_,{fallback:!0})),!1!==e.bracketMatching&&n.push((0,wo.n$)()),!1!==e.closeBrackets&&n.push((0,uu.vQ)()),!1!==e.autocompletion&&n.push((0,uu.ys)()),!1!==e.rectangularSelection&&n.push((0,Ao.Zs)()),!1!==e.crosshairCursor&&n.push((0,Ao.S2)()),!1!==e.highlightActiveLine&&n.push((0,Ao.ZO)()),!1!==e.highlightSelectionMatches&&n.push(function(e){var t=[As,Es];return e&&t.push(Ts.of(e)),t}()),n.concat([Ao.$f.of(t.flat())]).filter(Boolean)},Lu=n(2029),Fu="#e5c07b",Zu="#e06c75",$u="#56b6c2",ju="#ffffff",Bu="#abb2bf",zu="#7d8799",Hu="#61afef",Wu="#98c379",Uu="#d19a66",qu="#c678dd",Xu="#21252b",Gu="#2c313a",Ju="#282c34",Vu="#353a42",Yu="#3E4451",Ku="#528bff",el=Ao.tk.theme({"&":{color:Bu,backgroundColor:Ju},".cm-content":{caretColor:Ku},".cm-cursor, .cm-dropCursor":{borderLeftColor:Ku},"&.cm-focused .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:Yu},".cm-panels":{backgroundColor:Xu,color:Bu},".cm-panels.cm-panels-top":{borderBottom:"2px solid black"},".cm-panels.cm-panels-bottom":{borderTop:"2px solid black"},".cm-searchMatch":{backgroundColor:"#72a1ff59",outline:"1px solid #457dff"},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:"#6199ff2f"},".cm-activeLine":{backgroundColor:"#6699ff0b"},".cm-selectionMatch":{backgroundColor:"#aafe661a"},"&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bad0f847",outline:"1px solid #515a6b"},".cm-gutters":{backgroundColor:Ju,color:zu,border:"none"},".cm-activeLineGutter":{backgroundColor:Gu},".cm-foldPlaceholder":{backgroundColor:"transparent",border:"none",color:"#ddd"},".cm-tooltip":{border:"none",backgroundColor:Vu},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:"transparent",borderBottomColor:"transparent"},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:Vu,borderBottomColor:Vu},".cm-tooltip-autocomplete":{"& > ul > li[aria-selected]":{backgroundColor:Gu,color:Bu}}},{dark:!0}),tl=wo.Qf.define([{tag:Lu.pJ.keyword,color:qu},{tag:[Lu.pJ.name,Lu.pJ.deleted,Lu.pJ.character,Lu.pJ.propertyName,Lu.pJ.macroName],color:Zu},{tag:[Lu.pJ.function(Lu.pJ.variableName),Lu.pJ.labelName],color:Hu},{tag:[Lu.pJ.color,Lu.pJ.constant(Lu.pJ.name),Lu.pJ.standard(Lu.pJ.name)],color:Uu},{tag:[Lu.pJ.definition(Lu.pJ.name),Lu.pJ.separator],color:Bu},{tag:[Lu.pJ.typeName,Lu.pJ.className,Lu.pJ.number,Lu.pJ.changed,Lu.pJ.annotation,Lu.pJ.modifier,Lu.pJ.self,Lu.pJ.namespace],color:Fu},{tag:[Lu.pJ.operator,Lu.pJ.operatorKeyword,Lu.pJ.url,Lu.pJ.escape,Lu.pJ.regexp,Lu.pJ.link,Lu.pJ.special(Lu.pJ.string)],color:$u},{tag:[Lu.pJ.meta,Lu.pJ.comment],color:zu},{tag:Lu.pJ.strong,fontWeight:"bold"},{tag:Lu.pJ.emphasis,fontStyle:"italic"},{tag:Lu.pJ.strikethrough,textDecoration:"line-through"},{tag:Lu.pJ.link,color:zu,textDecoration:"underline"},{tag:Lu.pJ.heading,fontWeight:"bold",color:Zu},{tag:[Lu.pJ.atom,Lu.pJ.bool,Lu.pJ.special(Lu.pJ.variableName)],color:Uu},{tag:[Lu.pJ.processingInstruction,Lu.pJ.string,Lu.pJ.inserted],color:Wu},{tag:Lu.pJ.invalid,color:ju}]),nl=[el,(0,wo.nF)(tl)];function rl(e){var t=e.value,n=e.selection,r=e.onChange,i=e.onStatistics,o=e.onCreateEditor,a=e.onUpdate,s=e.extensions,u=void 0===s?[]:s,l=e.autoFocus,c=e.theme,h=void 0===c?"light":c,f=e.height,d=void 0===f?"":f,p=e.minHeight,m=void 0===p?"":p,g=e.maxHeight,v=void 0===g?"":g,O=e.placeholder,y=void 0===O?"":O,k=e.width,b=void 0===k?"":k,x=e.minWidth,T=void 0===x?"":x,w=e.maxWidth,S=void 0===w?"":w,C=e.editable,E=void 0===C||C,A=e.readOnly,_=void 0!==A&&A,Q=e.indentWithTab,P=void 0===Q||Q,R=e.basicSetup,D=void 0===R||R,N=e.root,M=e.initialState,I=(0,V.useState)(),L=(0,ee.Z)(I,2),F=L[0],Z=L[1],$=(0,V.useState)(),j=(0,ee.Z)($,2),B=j[0],z=j[1],H=(0,V.useState)(),W=(0,ee.Z)(H,2),U=W[0],q=W[1],X=Ao.tk.theme({"&":{backgroundColor:"#fff"}},{dark:!1}),G=Ao.tk.theme({"&":{height:d,minHeight:m,maxHeight:v,width:b,minWidth:T,maxWidth:S}}),J=Ao.tk.updateListener.of((function(e){if(e.docChanged&&"function"===typeof r){var t=e.state.doc.toString();r(t,e)}i&&i(function(e){return{line:e.state.doc.lineAt(e.state.selection.main.from),lineCount:e.state.doc.lines,lineBreak:e.state.lineBreak,length:e.state.doc.length,readOnly:e.state.readOnly,tabSize:e.state.tabSize,selection:e.state.selection,selectionAsSingle:e.state.selection.asSingle().main,ranges:e.state.selection.ranges,selectionCode:e.state.sliceDoc(e.state.selection.main.from,e.state.selection.main.to),selections:e.state.selection.ranges.map((function(t){return e.state.sliceDoc(t.from,t.to)})),selectedText:e.state.selection.ranges.some((function(e){return!e.empty}))}}(e))})),Y=[J,G];switch(P&&Y.unshift(Ao.$f.of([as])),D&&("boolean"===typeof D?Y.unshift(Iu()):Y.unshift(Iu(D))),y&&Y.unshift((0,Ao.W$)(y)),h){case"light":Y.push(X);break;case"dark":Y.push(nl);break;default:Y.push(h)}return!1===E&&Y.push(Ao.tk.editable.of(!1)),_&&Y.push(_o.yy.readOnly.of(!0)),a&&"function"===typeof a&&Y.push(Ao.tk.updateListener.of(a)),Y=Y.concat(u),(0,V.useEffect)((function(){if(F&&!U){var e={doc:t,selection:n,extensions:Y},r=M?_o.yy.fromJSON(M.json,e,M.fields):_o.yy.create(e);if(q(r),!B){var i=new Ao.tk({state:r,parent:F,root:N});z(i),o&&o(i,r)}}return function(){B&&(q(void 0),z(void 0))}}),[F,U]),(0,V.useEffect)((function(){return Z(e.container)}),[e.container]),(0,V.useEffect)((function(){return function(){B&&(B.destroy(),z(void 0))}}),[B]),(0,V.useEffect)((function(){l&&B&&B.focus()}),[l,B]),(0,V.useEffect)((function(){B&&B.dispatch({effects:_o.Py.reconfigure.of(Y)})}),[h,u,d,m,v,b,T,S,y,E,_,P,D,r,a]),(0,V.useEffect)((function(){var e=B?B.state.doc.toString():"";B&&t!==e&&B.dispatch({changes:{from:0,to:e.length,insert:t||""}})}),[t,B]),{state:U,setState:q,view:B,setView:z,container:F,setContainer:Z}}var il=["className","value","selection","extensions","onChange","onStatistics","onCreateEditor","onUpdate","autoFocus","theme","height","minHeight","maxHeight","width","minWidth","maxWidth","basicSetup","placeholder","indentWithTab","editable","readOnly","root","initialState"],ol=(0,V.forwardRef)((function(e,t){var n=e.className,r=e.value,i=void 0===r?"":r,o=e.selection,a=e.extensions,s=void 0===a?[]:a,u=e.onChange,l=e.onStatistics,c=e.onCreateEditor,h=e.onUpdate,f=e.autoFocus,d=e.theme,p=void 0===d?"light":d,m=e.height,g=e.minHeight,v=e.maxHeight,O=e.width,y=e.minWidth,k=e.maxWidth,b=e.basicSetup,x=e.placeholder,T=e.indentWithTab,w=e.editable,S=e.readOnly,C=e.root,E=e.initialState,A=Xe(e,il),_=(0,V.useRef)(null),Q=rl({container:_.current,root:C,value:i,autoFocus:f,theme:p,height:m,minHeight:g,maxHeight:v,width:O,minWidth:y,maxWidth:k,basicSetup:b,placeholder:x,indentWithTab:T,editable:w,readOnly:S,selection:o,onChange:u,onStatistics:l,onCreateEditor:c,onUpdate:h,extensions:s,initialState:E}),P=Q.state,R=Q.view,D=Q.container;Q.setContainer;if((0,V.useImperativeHandle)(t,(function(){return{editor:_.current,state:P,view:R}}),[_,D,P,R]),"string"!==typeof i)throw new Error("value must be typeof string but got "+typeof i);var N="string"===typeof p?"cm-theme-"+p:"cm-theme";return(0,Ge.jsx)("div",te({ref:_,className:N+(n?" "+n:"")},A))}));ol.displayName="CodeMirror";var al=ol,sl=n(6419),ul=n(6983);var ll=n(8119);function cl(e,t,n){return cl=(0,ll.Z)()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&(0,ul.Z)(i,n.prototype),i},cl.apply(null,arguments)}function hl(e){var t="function"===typeof Map?new Map:void 0;return hl=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return cl(e,arguments,(0,Ti.Z)(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),(0,ul.Z)(r,e)},hl(e)}function fl(e){return e&&"object"===typeof e?"position"in e||"type"in e?pl(e.position):"start"in e||"end"in e?pl(e):"line"in e||"column"in e?dl(e):"":""}function dl(e){return ml(e&&e.line)+":"+ml(e&&e.column)}function pl(e){return dl(e&&e.start)+"-"+dl(e&&e.end)}function ml(e){return e&&"number"===typeof e?e:1}var gl=function(e){(0,ki.Z)(n,e);var t=(0,bi.Z)(n);function n(e,r,i){var o;(0,Vr.Z)(this,n);var a=[null,null],s={start:{line:null,column:null},end:{line:null,column:null}};if(o=t.call(this),"string"===typeof r&&(i=r,r=void 0),"string"===typeof i){var u=i.indexOf(":");-1===u?a[1]=i:(a[0]=i.slice(0,u),a[1]=i.slice(u+1))}return r&&("type"in r||"position"in r?r.position&&(s=r.position):"start"in r||"end"in r?s=r:("line"in r||"column"in r)&&(s.start=r)),o.name=fl(r)||"1:1",o.message="object"===typeof e?e.message:e,o.stack="object"===typeof e?e.stack:"",o.reason=o.message,o.fatal,o.line=s.start.line,o.column=s.start.column,o.source=a[0],o.ruleId=a[1],o.position=s,o.actual,o.expected,o.file,o.url,o.note,o}return(0,Yr.Z)(n)}(hl(Error));gl.prototype.file="",gl.prototype.name="",gl.prototype.reason="",gl.prototype.message="",gl.prototype.stack="",gl.prototype.fatal=null,gl.prototype.column=null,gl.prototype.line=null,gl.prototype.source=null,gl.prototype.ruleId=null,gl.prototype.position=null;var vl={basename:function(e,t){if(void 0!==t&&"string"!==typeof t)throw new TypeError('"ext" argument must be a string');yl(e);var n,r=0,i=-1,o=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;o--;)if(47===e.charCodeAt(o)){if(n){r=o+1;break}}else i<0&&(n=!0,i=o+1);return i<0?"":e.slice(r,i)}if(t===e)return"";var a=-1,s=t.length-1;for(;o--;)if(47===e.charCodeAt(o)){if(n){r=o+1;break}}else a<0&&(n=!0,a=o+1),s>-1&&(e.charCodeAt(o)===t.charCodeAt(s--)?s<0&&(i=o):(s=-1,i=a));r===i?i=a:i<0&&(i=e.length);return e.slice(r,i)},dirname:function(e){if(yl(e),0===e.length)return".";var t,n=-1,r=e.length;for(;--r;)if(47===e.charCodeAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.charCodeAt(0)?"/":".":1===n&&47===e.charCodeAt(0)?"//":e.slice(0,n)},extname:function(e){yl(e);var t,n=e.length,r=-1,i=0,o=-1,a=0;for(;n--;){var s=e.charCodeAt(n);if(47!==s)r<0&&(t=!0,r=n+1),46===s?o<0?o=n:1!==a&&(a=1):o>-1&&(a=-1);else if(t){i=n+1;break}}if(o<0||r<0||0===a||1===a&&o===r-1&&o===i+1)return"";return e.slice(o,r)},join:function(){for(var e,t=-1,n=arguments.length,r=new Array(n),i=0;i2){if((r=i.lastIndexOf("/"))!==i.length-1){r<0?(i="",o=0):o=(i=i.slice(0,r)).length-1-i.lastIndexOf("/"),a=u,s=0;continue}}else if(i.length>0){i="",o=0,a=u,s=0;continue}t&&(i=i.length>0?i+"/..":"..",o=2)}else i.length>0?i+="/"+e.slice(a+1,u):i=e.slice(a+1,u),o=u-a-1;a=u,s=0}else 46===n&&s>-1?s++:s=-1}return i}(e,!t);return 0!==n.length||t||(n="."),n.length>0&&47===e.charCodeAt(e.length-1)&&(n+="/"),t?"/"+n:n}function yl(e){if("string"!==typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}var kl={cwd:function(){return"/"}};function bl(e){return null!==e&&"object"===typeof e&&e.href&&e.origin}function xl(e){if("string"===typeof e)e=new URL(e);else if(!bl(e)){var t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){var n=new TypeError("The URL must be of scheme file");throw n.code="ERR_INVALID_URL_SCHEME",n}return function(e){if(""!==e.hostname){var t=new TypeError('File URL host must be "localhost" or empty on darwin');throw t.code="ERR_INVALID_FILE_URL_HOST",t}var n=e.pathname,r=-1;for(;++ro.length;u&&o.push(r);try{s=e.apply(this,o)}catch(c){var l=c;if(u&&n)throw l;return r(l)}u||(s instanceof Promise?s.then(i,r):s instanceof Error?r(s):i(s))};function r(e){if(!n){n=!0;for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o1?u-1:0),c=1;c1?n-1:0),s=1;so?0:o+t:t>o?o:t,n=n>0?n:0,r.length<1e4)(i=Array.from(r)).unshift(t,n),[].splice.apply(e,i);else for(n&&[].splice.apply(e,[t,n]);a0?(Gl(e,e.length,0,t),e):t}var Vl={}.hasOwnProperty;function Yl(e){for(var t={},n=-1;++nr))return;for(var l,c,h=i.events.length,f=h;f--;)if("exit"===i.events[f][0]&&"chunkFlow"===i.events[f][1].type){if(l){c=i.events[f][1].end;break}l=!0}for(v(a),u=h;ut;){var r=o[n];i.containerState=r[1],r[0].exit.call(i,e)}o.length=t}function O(){t.write([null]),n=void 0,t=void 0,i.containerState._closeFlow=void 0}}},vc={tokenize:function(e,t,n){return pc(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};var Oc={tokenize:function(e,t,n){return pc(e,(function(e){return null===e||lc(e)?t(e):n(e)}),"linePrefix")},partial:!0};function yc(e){for(var t,n,r,i,o,a,s,u={},l=-1;++l=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}},partial:!0};var Tc={tokenize:function(e){var t=this,n=e.attempt(Oc,(function(r){if(null===r)return void e.consume(r);return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}),e.attempt(this.parser.constructs.flowInitial,r,pc(e,e.attempt(this.parser.constructs.flow,r,e.attempt(bc,r)),"linePrefix")));return n;function r(r){if(null!==r)return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n;e.consume(r)}}};var wc={resolveAll:Ac()},Sc=Ec("string"),Cc=Ec("text");function Ec(e){return{tokenize:function(t){var n=this,r=this.parser.constructs[e],i=t.attempt(r,o,a);return o;function o(e){return u(e)?i(e):a(e)}function a(e){if(null!==e)return t.enter("data"),t.consume(e),s;t.consume(e)}function s(e){return u(e)?(t.exit("data"),i(e)):(t.consume(e),s)}function u(e){if(null===e)return!0;var t=r[e],i=-1;if(t)for(;++i-1&&(n[0]=n[0].slice(i)),a>0&&n.push(e[o].slice(0,a)));return n}(a,e)}function f(){return Object.assign({},r)}function d(){for(var e;r._indexl?n(i):(e.consume(i),p):41===i?c--?(e.consume(i),p):(e.exit("chunkString"),e.exit(s),e.exit(a),e.exit(r),t(i)):null===i||uc(i)?c?n(i):(e.exit("chunkString"),e.exit(s),e.exit(a),e.exit(r),t(i)):sc(i)?n(i):(e.consume(i),92===i?m:p)}function m(t){return 40===t||41===t||92===t?(e.consume(t),p):p(t)}}function Fc(e,t,n,r,i,o){var a,s=this,u=0;return function(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),e.enter(o),l};function l(h){return null===h||91===h||93===h&&!a||94===h&&!u&&"_hiddenFootnoteSupport"in s.parser.constructs||u>999?n(h):93===h?(e.exit(o),e.enter(i),e.consume(h),e.exit(i),e.exit(r),t):lc(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),l):(e.enter("chunkString",{contentType:"string"}),c(h))}function c(t){return null===t||91===t||93===t||lc(t)||u++>999?(e.exit("chunkString"),l(t)):(e.consume(t),a=a||!cc(t),92===t?h:c)}function h(t){return 91===t||92===t||93===t?(e.consume(t),u++,c):c(t)}}function Zc(e,t,n,r,i,o){var a;return function(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),a=40===t?41:t,s};function s(n){return n===a?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(o),u(n))}function u(t){return t===a?(e.exit(o),s(a)):null===t?n(t):lc(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),pc(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),l(t))}function l(t){return t===a||null===t||lc(t)?(e.exit("chunkString"),u(t)):(e.consume(t),92===t?c:l)}function c(t){return t===a||92===t?(e.consume(t),l):l(t)}}function $c(e,t){var n;return function r(i){if(lc(i))return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r;if(cc(i))return pc(e,r,n?"linePrefix":"lineSuffix")(i);return t(i)}}function jc(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}var Bc={name:"definition",tokenize:function(e,t,n){var r,i=this;return function(t){return e.enter("definition"),Fc.call(i,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)};function o(t){return r=jc(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),$c(e,Lc(e,e.attempt(zc,pc(e,a,"whitespace"),pc(e,a,"whitespace")),n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString"))):n(t)}function a(o){return null===o||lc(o)?(e.exit("definition"),i.parser.defined.includes(r)||i.parser.defined.push(r),t(o)):n(o)}}},zc={tokenize:function(e,t,n){return function(t){return uc(t)?$c(e,r)(t):n(t)};function r(t){return 34===t||39===t||40===t?Zc(e,pc(e,i,"whitespace"),n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t):n(t)}function i(e){return null===e||lc(e)?t(e):n(e)}},partial:!0};var Hc={name:"codeIndented",tokenize:function(e,t,n){var r=this;return function(t){return e.enter("codeIndented"),pc(e,i,"linePrefix",5)(t)};function i(e){var t=r.events[r.events.length-1];return t&&"linePrefix"===t[1].type&&t[2].sliceSerialize(t[1],!0).length>=4?o(e):n(e)}function o(t){return null===t?s(t):lc(t)?e.attempt(Wc,o,s)(t):(e.enter("codeFlowValue"),a(t))}function a(t){return null===t||lc(t)?(e.exit("codeFlowValue"),o(t)):(e.consume(t),a)}function s(n){return e.exit("codeIndented"),t(n)}}},Wc={tokenize:function(e,t,n){var r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):lc(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):pc(e,o,"linePrefix",5)(t)}function o(e){var o=r.events[r.events.length-1];return o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(e):lc(e)?i(e):n(e)}},partial:!0};var Uc={name:"headingAtx",tokenize:function(e,t,n){var r=this,i=0;return function(t){return e.enter("atxHeading"),e.enter("atxHeadingSequence"),o(t)};function o(s){return 35===s&&i++<6?(e.consume(s),o):null===s||uc(s)?(e.exit("atxHeadingSequence"),r.interrupt?t(s):a(s)):n(s)}function a(n){return 35===n?(e.enter("atxHeadingSequence"),s(n)):null===n||lc(n)?(e.exit("atxHeading"),t(n)):cc(n)?pc(e,a,"whitespace")(n):(e.enter("atxHeadingText"),u(n))}function s(t){return 35===t?(e.consume(t),s):(e.exit("atxHeadingSequence"),a(t))}function u(t){return null===t||35===t||uc(t)?(e.exit("atxHeadingText"),a(t)):(e.consume(t),u)}},resolve:function(e,t){var n,r,i=e.length-2,o=3;"whitespace"===e[o][1].type&&(o+=2);i-2>o&&"whitespace"===e[i][1].type&&(i-=2);"atxHeadingSequence"===e[i][1].type&&(o===i-1||i-4>o&&"whitespace"===e[i-2][1].type)&&(i-=o+1===i?2:4);i>o&&(n={type:"atxHeadingText",start:e[o][1].start,end:e[i][1].end},r={type:"chunkText",start:e[o][1].start,end:e[i][1].end,contentType:"text"},Gl(e,o,i-o+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]]));return e}};var qc={name:"setextUnderline",tokenize:function(e,t,n){var r,i,o=this,a=o.events.length;for(;a--;)if("lineEnding"!==o.events[a][1].type&&"linePrefix"!==o.events[a][1].type&&"content"!==o.events[a][1].type){i="paragraph"===o.events[a][1].type;break}return function(t){if(!o.parser.lazy[o.now().line]&&(o.interrupt||i))return e.enter("setextHeadingLine"),e.enter("setextHeadingLineSequence"),r=t,s(t);return n(t)};function s(t){return t===r?(e.consume(t),s):(e.exit("setextHeadingLineSequence"),pc(e,u,"lineSuffix")(t))}function u(r){return null===r||lc(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}},resolveTo:function(e,t){var n,r,i,o=e.length;for(;o--;)if("enter"===e[o][0]){if("content"===e[o][1].type){n=o;break}"paragraph"===e[o][1].type&&(r=o)}else"content"===e[o][1].type&&e.splice(o,1),i||"definition"!==e[o][1].type||(i=o);var a={type:"setextHeading",start:Object.assign({},e[r][1].start),end:Object.assign({},e[e.length-1][1].end)};e[r][1].type="setextHeadingText",i?(e.splice(r,0,["enter",a,t]),e.splice(i+1,0,["exit",e[n][1],t]),e[n][1].end=Object.assign({},e[i][1].end)):e[n][1]=a;return e.push(["exit",a,t]),e}};var Xc=["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","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Gc=["pre","script","style","textarea"],Jc={name:"htmlFlow",tokenize:function(e,t,n){var r,i,o,a,s,u=this;return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),l};function l(a){return 33===a?(e.consume(a),c):47===a?(e.consume(a),d):63===a?(e.consume(a),r=3,u.interrupt?t:N):tc(a)?(e.consume(a),o=String.fromCharCode(a),i=!0,p):n(a)}function c(i){return 45===i?(e.consume(i),r=2,h):91===i?(e.consume(i),r=5,o="CDATA[",a=0,f):tc(i)?(e.consume(i),r=4,u.interrupt?t:N):n(i)}function h(r){return 45===r?(e.consume(r),u.interrupt?t:N):n(r)}function f(r){return r===o.charCodeAt(a++)?(e.consume(r),a===o.length?u.interrupt?t:C:f):n(r)}function d(t){return tc(t)?(e.consume(t),o=String.fromCharCode(t),p):n(t)}function p(a){return null===a||47===a||62===a||uc(a)?47!==a&&i&&Gc.includes(o.toLowerCase())?(r=1,u.interrupt?t(a):C(a)):Xc.includes(o.toLowerCase())?(r=6,47===a?(e.consume(a),m):u.interrupt?t(a):C(a)):(r=7,u.interrupt&&!u.parser.lazy[u.now().line]?n(a):i?v(a):g(a)):45===a||ic(a)?(e.consume(a),o+=String.fromCharCode(a),p):n(a)}function m(r){return 62===r?(e.consume(r),u.interrupt?t:C):n(r)}function g(t){return cc(t)?(e.consume(t),g):w(t)}function v(t){return 47===t?(e.consume(t),w):58===t||95===t||tc(t)?(e.consume(t),O):cc(t)?(e.consume(t),v):w(t)}function O(t){return 45===t||46===t||58===t||95===t||ic(t)?(e.consume(t),O):y(t)}function y(t){return 61===t?(e.consume(t),k):cc(t)?(e.consume(t),y):v(t)}function k(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),s=t,b):cc(t)?(e.consume(t),k):(s=null,x(t))}function b(t){return null===t||lc(t)?n(t):t===s?(e.consume(t),T):(e.consume(t),b)}function x(t){return null===t||34===t||39===t||60===t||61===t||62===t||96===t||uc(t)?y(t):(e.consume(t),x)}function T(e){return 47===e||62===e||cc(e)?v(e):n(e)}function w(t){return 62===t?(e.consume(t),S):n(t)}function S(t){return cc(t)?(e.consume(t),S):null===t||lc(t)?C(t):n(t)}function C(t){return 45===t&&2===r?(e.consume(t),Q):60===t&&1===r?(e.consume(t),P):62===t&&4===r?(e.consume(t),M):63===t&&3===r?(e.consume(t),N):93===t&&5===r?(e.consume(t),D):!lc(t)||6!==r&&7!==r?null===t||lc(t)?E(t):(e.consume(t),C):e.check(Vc,M,E)(t)}function E(t){return e.exit("htmlFlowData"),A(t)}function A(t){return null===t?I(t):lc(t)?e.attempt({tokenize:_,partial:!0},A,I)(t):(e.enter("htmlFlowData"),C(t))}function _(e,t,n){return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),r};function r(e){return u.parser.lazy[u.now().line]?n(e):t(e)}}function Q(t){return 45===t?(e.consume(t),N):C(t)}function P(t){return 47===t?(e.consume(t),o="",R):C(t)}function R(t){return 62===t&&Gc.includes(o.toLowerCase())?(e.consume(t),M):tc(t)&&o.length<8?(e.consume(t),o+=String.fromCharCode(t),R):C(t)}function D(t){return 93===t?(e.consume(t),N):C(t)}function N(t){return 62===t?(e.consume(t),M):45===t&&2===r?(e.consume(t),N):C(t)}function M(t){return null===t||lc(t)?(e.exit("htmlFlowData"),I(t)):(e.consume(t),M)}function I(n){return e.exit("htmlFlow"),t(n)}},resolveTo:function(e){var t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2));return e},concrete:!0},Vc={tokenize:function(e,t,n){return function(r){return e.exit("htmlFlowData"),e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),e.attempt(Oc,t,n)}},partial:!0};var Yc={name:"codeFenced",tokenize:function(e,t,n){var r,i=this,o={tokenize:function(e,t,n){var i=0;return pc(e,o,"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function o(t){return e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),a(t)}function a(t){return t===r?(e.consume(t),i++,a):i1&&e[c][1].end.offset-e[c][1].start.offset>1?2:1;var h=Object.assign({},e[n][1].end),f=Object.assign({},e[c][1].start);ch(h,-s),ch(f,s),o={type:s>1?"strongSequence":"emphasisSequence",start:h,end:Object.assign({},e[n][1].end)},a={type:s>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[c][1].start),end:f},i={type:s>1?"strongText":"emphasisText",start:Object.assign({},e[n][1].end),end:Object.assign({},e[c][1].start)},r={type:s>1?"strong":"emphasis",start:Object.assign({},o.start),end:Object.assign({},a.end)},e[n][1].end=Object.assign({},o.start),e[c][1].start=Object.assign({},a.end),u=[],e[n][1].end.offset-e[n][1].start.offset&&(u=Jl(u,[["enter",e[n][1],t],["exit",e[n][1],t]])),u=Jl(u,[["enter",r,t],["enter",o,t],["exit",o,t],["enter",i,t]]),u=Jl(u,Qc(t.parser.constructs.insideSpan.null,e.slice(n+1,c),t)),u=Jl(u,[["exit",i,t],["enter",a,t],["exit",a,t],["exit",r,t]]),e[c][1].end.offset-e[c][1].start.offset?(l=2,u=Jl(u,[["enter",e[c][1],t],["exit",e[c][1],t]])):l=0,Gl(e,n-1,c-n+3,u),c=n+u.length-l-2;break}c=-1;for(;++c13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||65535===(65535&n)||65534===(65535&n)||n>1114111?"\ufffd":String.fromCharCode(n)}var Rh=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Dh(e){return e.replace(Rh,Nh)}function Nh(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){var r=n.charCodeAt(1),i=120===r||88===r;return Ph(n.slice(i?2:1),i?16:10)}return(0,Kc.T)(n)||e}var Mh={}.hasOwnProperty,Ih=function(e,t,n){return"string"!==typeof t&&(n=t,t=void 0),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Lh({transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:u(re),autolinkProtocol:A,autolinkEmail:A,atxHeading:u(K),blockQuote:u(X),characterEscape:A,characterReference:A,codeFenced:u(G),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:u(G,l),codeText:u(J,l),codeTextData:A,data:A,codeFlowValue:A,definition:u(V),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:u(Y),hardBreakEscape:u(ee),hardBreakTrailing:u(ee),htmlFlow:u(te,l),htmlFlowData:A,htmlText:u(te,l),htmlTextData:A,image:u(ne),label:l,link:u(re),listItem:u(oe),listItemValue:m,listOrdered:u(ie,p),listUnordered:u(ie),paragraph:u(ae),reference:B,referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:u(K),strong:u(se),thematicBreak:u(le)},exit:{atxHeading:h(),atxHeadingSequence:w,autolink:h(),autolinkEmail:q,autolinkProtocol:U,blockQuote:h(),characterEscapeValue:_,characterReferenceMarkerHexadecimal:H,characterReferenceMarkerNumeric:H,characterReferenceValue:W,codeFenced:h(y),codeFencedFence:O,codeFencedFenceInfo:g,codeFencedFenceMeta:v,codeFlowValue:_,codeIndented:h(k),codeText:h(N),codeTextData:_,data:_,definition:h(),definitionDestinationString:T,definitionLabelString:b,definitionTitleString:x,emphasis:h(),hardBreakEscape:h(P),hardBreakTrailing:h(P),htmlFlow:h(R),htmlFlowData:_,htmlText:h(D),htmlTextData:_,image:h(I),label:F,labelText:L,lineEnding:Q,link:h(M),listItem:h(),listOrdered:h(),listUnordered:h(),paragraph:h(),referenceString:z,resourceDestinationString:Z,resourceTitleString:$,resource:j,setextHeading:h(E),setextHeadingLineSequence:C,setextHeadingText:S,strong:h(),thematicBreak:h()}},e.mdastExtensions||[]),n={};return r;function r(e){for(var n={type:"root",children:[]},r=[],u=[],h={stack:[n],tokenStack:r,config:t,enter:c,exit:f,buffer:l,resume:d,setData:o,getData:a},p=-1;++p0){var g=r[r.length-1];(g[1]||Zh).call(h,void 0,g[0])}for(n.position={start:s(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:s(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},p=-1;++p0&&void 0!==arguments[0]?arguments[0]:{}).extensions||[])),content:t(mc),document:t(gc),flow:t(Tc),string:t(Sc),text:t(Cc)};return e;function t(t){return function(n){return Pc(e,t,n)}}}(n).document().write(function(){var e,t=1,n="",r=!0;return function(i,o,a){var s,u,l,c,h,f=[];for(i=n+i.toString(o),l=0,n="",r&&(65279===i.charCodeAt(0)&&l++,r=void 0);l":"")+")"}));return h;function h(){var l,c,h,f=[];if((!t||i(a,s,u[u.length-1]||null))&&(f=function(e){if(Array.isArray(e))return e;if("number"===typeof e)return[true,e];return[e]}(n(a,u)),f[0]===qh))return f;if(a.children&&f[0]!==Uh)for(c=(r?a.children.length:-1)+o,h=u.concat(a);c>-1&&c-1?n.offset:null}}}var Kh={}.hasOwnProperty;function ef(e){return String(e||"").toUpperCase()}var tf={}.hasOwnProperty;function nf(e,t){var n=t.data||{};return"value"in t&&!(tf.call(n,"hName")||tf.call(n,"hProperties")||tf.call(n,"hChildren"))?e.augment(t,jh("text",t.value)):e(t,"div",af(e,t))}function rf(e,t,n){var r,i=t&&t.type;if(!i)throw new Error("Expected node, got `"+t+"`");return("function"===typeof(r=tf.call(e.handlers,i)?e.handlers[i]:e.passThrough&&e.passThrough.includes(i)?of:e.unknownHandler)?r:nf)(e,t,n)}function of(e,t){return"children"in t?(0,it.Z)((0,it.Z)({},t),{},{children:af(e,t)}):t}function af(e,t){var n=[];if("children"in t)for(var r=t.children,i=-1;++i":"gt"};function uf(e,t){var n=function(e){return e.replace(/["&<>]/g,(function(e){return"&"+sf[e]+";"}))}(function(e){var t=[],n=-1,r=0,i=0;for(;++n55295&&o<57344){var s=e.charCodeAt(n+1);o<56320&&s>56319&&s<57344?(a=String.fromCharCode(o,s),i=1):a="\ufffd"}else a=String.fromCharCode(o);a&&(t.push(e.slice(r,n),encodeURIComponent(a)),r=n+i+1,a=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}(e||""));if(!t)return n;var r=n.indexOf(":"),i=n.indexOf("?"),o=n.indexOf("#"),a=n.indexOf("/");return r<0||a>-1&&r>a||i>-1&&r>i||o>-1&&r>o||t.test(n.slice(0,r))?n:""}function lf(e,t){var n=[],r=-1;for(t&&n.push(jh("text","\n"));++r0&&n.push(jh("text","\n")),n}function cf(e,t){var n,r=String(t.identifier),i=uf(r.toLowerCase()),o=e.footnoteOrder.indexOf(r);-1===o?(e.footnoteOrder.push(r),e.footnoteCounts[r]=1,n=e.footnoteOrder.length):(e.footnoteCounts[r]++,n=o+1);var a=e.footnoteCounts[r];return e(t,"sup",[e(t.position,"a",{href:"#"+e.clobberPrefix+"fn-"+i,id:e.clobberPrefix+"fnref-"+i+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:"footnote-label"},[jh("text",String(n))])])}var hf=n(9582);function ff(e,t){var n=t.referenceType,r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return jh("text","!["+t.alt+r);var i=af(e,t),o=i[0];o&&"text"===o.type?o.value="["+o.value:i.unshift(jh("text","["));var a=i[i.length-1];return a&&"text"===a.type?a.value+=r:i.push(jh("text",r)),i}function df(e){var t=e.spread;return void 0===t||null===t?e.children.length>1:t}function pf(e,t,n){var r=0,i=e.length;if(t)for(var o=e.codePointAt(r);9===o||32===o;)r++,o=e.codePointAt(r);if(n)for(var a=e.codePointAt(i-1);9===a||32===a;)i--,a=e.codePointAt(i-1);return i>r?e.slice(r,i):""}var mf={blockquote:function(e,t){return e(t,"blockquote",lf(af(e,t),!0))},break:function(e,t){return[e(t,"br"),jh("text","\n")]},code:function(e,t){var n=t.value?t.value+"\n":"",r=t.lang&&t.lang.match(/^[^ \t]+(?=[ \t]|$)/),i={};r&&(i.className=["language-"+r]);var o=e(t,"code",i,[jh("text",n)]);return t.meta&&(o.data={meta:t.meta}),e(t.position,"pre",[o])},delete:function(e,t){return e(t,"del",af(e,t))},emphasis:function(e,t){return e(t,"em",af(e,t))},footnoteReference:cf,footnote:function(e,t){for(var n=e.footnoteById,r=1;r in n;)r++;var i=String(r);return n[i]={type:"footnoteDefinition",identifier:i,children:[{type:"paragraph",children:t.children}],position:t.position},cf(e,{type:"footnoteReference",identifier:i,position:t.position})},heading:function(e,t){return e(t,"h"+t.depth,af(e,t))},html:function(e,t){return e.dangerous?e.augment(t,jh("raw",t.value)):null},imageReference:function(e,t){var n=e.definition(t.identifier);if(!n)return ff(e,t);var r={src:hf(n.url||""),alt:t.alt};return null!==n.title&&void 0!==n.title&&(r.title=n.title),e(t,"img",r)},image:function(e,t){var n={src:hf(t.url),alt:t.alt};return null!==t.title&&void 0!==t.title&&(n.title=t.title),e(t,"img",n)},inlineCode:function(e,t){return e(t,"code",[jh("text",t.value.replace(/\r?\n|\r/g," "))])},linkReference:function(e,t){var n=e.definition(t.identifier);if(!n)return ff(e,t);var r={href:hf(n.url||"")};return null!==n.title&&void 0!==n.title&&(r.title=n.title),e(t,"a",r,af(e,t))},link:function(e,t){var n={href:hf(t.url)};return null!==t.title&&void 0!==t.title&&(n.title=t.title),e(t,"a",n,af(e,t))},listItem:function(e,t,n){var r,i=af(e,t),o=n?function(e){var t=e.spread,n=e.children,r=-1;for(;!t&&++r0&&r.children.unshift(jh("text"," ")),r.children.unshift(e(null,"input",{type:"checkbox",checked:t.checked,disabled:!0})),a.className=["task-list-item"]);for(var u=-1;++u0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return o.push(pf(t.slice(i),i>0,!1)),o.join("")}(String(t.value))))},thematicBreak:function(e,t){return e(t,"hr")},toml:gf,yaml:gf,definition:gf,footnoteDefinition:gf};function gf(){return null}var vf={}.hasOwnProperty;function Of(e,t){var n=t||{},r=n.allowDangerousHtml||!1,i={};return a.dangerous=r,a.clobberPrefix=void 0===n.clobberPrefix||null===n.clobberPrefix?"user-content-":n.clobberPrefix,a.footnoteLabel=n.footnoteLabel||"Footnotes",a.footnoteLabelTagName=n.footnoteLabelTagName||"h2",a.footnoteLabelProperties=n.footnoteLabelProperties||{className:["sr-only"]},a.footnoteBackLabel=n.footnoteBackLabel||"Back to content",a.definition=function(e){var t=Object.create(null);if(!e||!e.type)throw new Error("mdast-util-definitions expected node");return Gh(e,"definition",(function(e){var n=ef(e.identifier);n&&!Kh.call(t,n)&&(t[n]=e)})),function(e){var n=ef(e);return n&&Kh.call(t,n)?t[n]:null}}(e),a.footnoteById=i,a.footnoteOrder=[],a.footnoteCounts={},a.augment=o,a.handlers=(0,it.Z)((0,it.Z)({},mf),n.handlers),a.unknownHandler=n.unknownHandler,a.passThrough=n.passThrough,Gh(e,"footnoteDefinition",(function(e){var t=String(e.identifier).toUpperCase();vf.call(i,t)||(i[t]=e)})),a;function o(e,t){if(e&&"data"in e&&e.data){var n=e.data;n.hName&&("element"!==t.type&&(t={type:"element",tagName:"",properties:{},children:[]}),t.tagName=n.hName),"element"===t.type&&n.hProperties&&(t.properties=(0,it.Z)((0,it.Z)({},t.properties),n.hProperties)),"children"in t&&t.children&&n.hChildren&&(t.children=n.hChildren)}if(e){var r="type"in e?e:{position:e};(i=r)&&i.position&&i.position.start&&i.position.start.line&&i.position.start.column&&i.position.end&&i.position.end.line&&i.position.end.column&&(t.position={start:Jh(r),end:Vh(r)})}var i;return t}function a(e,t,n,r){return Array.isArray(n)&&(r=n,n={}),o(e,{type:"element",tagName:t,properties:n||{},children:r||[]})}}function yf(e,t){var n=Of(e,t),r=rf(n,e,null),i=function(e){for(var t=-1,n=[];++t1?"-"+s:""),dataFootnoteBackref:!0,className:["data-footnote-backref"],ariaLabel:e.footnoteBackLabel},children:[{type:"text",value:"\u21a9"}]};s>1&&l.children.push({type:"element",tagName:"sup",children:[{type:"text",value:String(s)}]}),u.length>0&&u.push({type:"text",value:" "}),u.push(l)}var c=i[i.length-1];if(c&&"element"===c.type&&"p"===c.tagName){var h,f=c.children[c.children.length-1];f&&"text"===f.type?f.value+=" ":c.children.push({type:"text",value:" "}),(h=c.children).push.apply(h,u)}else i.push.apply(i,u);var d={type:"element",tagName:"li",properties:{id:e.clobberPrefix+"fn-"+a},children:lf(i,!0)};r.position&&(d.position=r.position),n.push(d)}}return 0===n.length?null:{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:e.footnoteLabelTagName,properties:(0,it.Z)((0,it.Z)({},JSON.parse(JSON.stringify(e.footnoteLabelProperties))),{},{id:"footnote-label"}),children:[jh("text",e.footnoteLabel)]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:lf(n,!0)},{type:"text",value:"\n"}]}}(n);return i&&r.children.push(jh("text","\n"),i),Array.isArray(r)?{type:"root",children:r}:r}var kf=function(e,t){return e&&"run"in e?function(e,t){return function(n,r,i){e.run(yf(n,t),r,(function(e){i(e)}))}}(e,t):function(e){return function(t){return yf(t,e)}}(e||t)};var bf=n(1512),xf=n(1165);function Tf(e){if(e.allowedElements&&e.disallowedElements)throw new TypeError("Only one of `allowedElements` and `disallowedElements` should be defined");if(e.allowedElements||e.disallowedElements||e.allowElement)return function(t){Gh(t,"element",(function(t,n,r){var i,o=r;if(e.allowedElements?i=!e.allowedElements.includes(t.tagName):e.disallowedElements&&(i=e.disallowedElements.includes(t.tagName)),!i&&e.allowElement&&"number"===typeof n&&(i=!e.allowElement(t,n,o)),i&&"number"===typeof n){var a;if(e.unwrapDisallowed&&t.children)(a=o.children).splice.apply(a,[n,1].concat((0,rt.Z)(t.children)));else o.children.splice(n,1);return n}}))}}var wf=["http","https","mailto","tel"];var Sf=n(2268);function Cf(e){var t=e&&"object"===typeof e&&"text"===e.type?e.value||"":e;return"string"===typeof t&&""===t.replace(/[ \t\n\f\r]/g,"")}var Ef=n(8231),Af={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"},_f=n(1361),Qf=n(194),Pf=n(5011),Rf={}.hasOwnProperty,Df=new Set(["table","thead","tbody","tfoot","tr"]);function Nf(e,t){for(var n,r=[],i=-1;++i0?V.createElement(d,u,c):V.createElement(d,u)}function If(e,t){for(var n=-1,r=0;++n for more info)")),delete $f[t]}var r=Ll().use($h).use(e.remarkPlugins||[]).use(kf,(0,it.Z)((0,it.Z)({},e.remarkRehypeOptions),{},{allowDangerousHtml:!0})).use(e.rehypePlugins||[]).use(Tf,e),i=new wl;"string"===typeof e.children?i.value=e.children:void 0!==e.children&&null!==e.children&&console.warn("[react-markdown] Warning: please pass a string as `children` (not: `".concat(e.children,"`)"));var o=r.runSync(r.parse(i),i);if("root"!==o.type)throw new TypeError("Expected a `root` node");var a=V.createElement(V.Fragment,{},Nf({options:e,schema:xf.dy,listDepth:0},o));return e.className&&(a=V.createElement("div",{className:e.className},a)),a}jf.defaultProps={transformLinkUri:function(e){var t=(e||"").trim(),n=t.charAt(0);if("#"===n||"/"===n)return t;var r=t.indexOf(":");if(-1===r)return t;for(var i=-1;++ii||-1!==(i=t.indexOf("#"))&&r>i?t:"javascript:void(0)"}},jf.propTypes={children:bf.string,className:bf.string,allowElement:bf.func,allowedElements:bf.arrayOf(bf.string),disallowedElements:bf.arrayOf(bf.string),unwrapDisallowed:bf.bool,remarkPlugins:bf.arrayOf(bf.oneOfType([bf.object,bf.func,bf.arrayOf(bf.oneOfType([bf.bool,bf.string,bf.object,bf.func,bf.arrayOf(bf.any)]))])),rehypePlugins:bf.arrayOf(bf.oneOfType([bf.object,bf.func,bf.arrayOf(bf.oneOfType([bf.bool,bf.string,bf.object,bf.func,bf.arrayOf(bf.any)]))])),sourcePos:bf.bool,rawSourcePos:bf.bool,skipHtml:bf.bool,includeElementIndex:bf.bool,transformLinkUri:bf.oneOfType([bf.func,bf.bool]),linkTarget:bf.oneOfType([bf.func,bf.string]),transformImageUri:bf.func,components:bf.object};for(var Bf={tokenize:function(e,t,n){return function(t){return e.consume(t),r};function r(t){return 87===t||119===t?(e.consume(t),i):n(t)}function i(t){return 87===t||119===t?(e.consume(t),o):n(t)}function o(t){return 46===t?(e.consume(t),a):n(t)}function a(e){return null===e||lc(e)?n(e):t(e)}},partial:!0},zf={tokenize:function(e,t,n){var r,i;return o;function o(t){return 38===t?e.check(Uf,s,a)(t):46===t||95===t?e.check(Wf,s,a)(t):null===t||sc(t)||hc(t)||45!==t&&fc(t)?s(t):(e.consume(t),o)}function a(t){return 46===t?(i=r,r=void 0,e.consume(t),o):(95===t&&(r=!0),e.consume(t),o)}function s(e){return i||r?n(e):t(e)}},partial:!0},Hf={tokenize:function(e,t){var n=0;return r;function r(a){return 38===a?e.check(Uf,t,i)(a):(40===a&&n++,41===a?e.check(Wf,o,i)(a):ed(a)?t(a):Kf(a)?e.check(Wf,t,i)(a):(e.consume(a),r))}function i(t){return e.consume(t),r}function o(e){return--n<0?t(e):i(e)}},partial:!0},Wf={tokenize:function(e,t,n){return function(t){return e.consume(t),r};function r(i){return Kf(i)?(e.consume(i),r):ed(i)?t(i):n(i)}},partial:!0},Uf={tokenize:function(e,t,n){return function(t){return e.consume(t),r};function r(t){return tc(t)?(e.consume(t),r):59===t?(e.consume(t),i):n(t)}function i(e){return ed(e)?t(e):n(e)}},partial:!0},qf={tokenize:function(e,t,n){var r=this;return function(t){if(87!==t&&119!==t||!nd(r.previous)||od(r.events))return n(t);return e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(Bf,e.attempt(zf,e.attempt(Hf,i),n),n)(t)};function i(n){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(n)}},previous:nd},Xf={tokenize:function(e,t,n){var r=this;return function(t){if(72!==t&&104!==t||!rd(r.previous)||od(r.events))return n(t);return e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),e.consume(t),i};function i(t){return 84===t||116===t?(e.consume(t),o):n(t)}function o(t){return 84===t||116===t?(e.consume(t),a):n(t)}function a(t){return 80===t||112===t?(e.consume(t),s):n(t)}function s(t){return 83===t||115===t?(e.consume(t),u):u(t)}function u(t){return 58===t?(e.consume(t),l):n(t)}function l(t){return 47===t?(e.consume(t),c):n(t)}function c(t){return 47===t?(e.consume(t),h):n(t)}function h(t){return null===t||sc(t)||hc(t)||fc(t)?n(t):e.attempt(zf,e.attempt(Hf,f),n)(t)}function f(n){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(n)}},previous:rd},Gf={tokenize:function(e,t,n){var r,i,o=this;return function(t){if(!td(t)||!id(o.previous)||od(o.events))return n(t);return e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),a(t)};function a(t){return td(t)?(e.consume(t),a):64===t?(e.consume(t),s):n(t)}function s(t){return 46===t?e.check(Wf,h,u)(t):45===t||95===t?e.check(Wf,n,l)(t):ic(t)?(!i&&nc(t)&&(i=!0),e.consume(t),s):h(t)}function u(t){return e.consume(t),r=!0,i=void 0,s}function l(t){return e.consume(t),c}function c(t){return 46===t?e.check(Wf,n,u)(t):s(t)}function h(o){return r&&!i?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(o)):n(o)}},previous:id},Jf={},Vf={text:Jf},Yf=48;Yf<123;)Jf[Yf]=Gf,58===++Yf?Yf=65:91===Yf&&(Yf=97);function Kf(e){return 33===e||34===e||39===e||41===e||42===e||44===e||46===e||58===e||59===e||60===e||63===e||95===e||126===e}function ed(e){return null===e||60===e||uc(e)}function td(e){return 43===e||45===e||46===e||95===e||ic(e)}function nd(e){return null===e||40===e||42===e||95===e||126===e||uc(e)}function rd(e){return null===e||!tc(e)}function id(e){return 47!==e&&rd(e)}function od(e){for(var t=e.length,n=!1;t--;){var r=e[t][1];if(("labelLink"===r.type||"labelImage"===r.type)&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}Jf[43]=Gf,Jf[45]=Gf,Jf[46]=Gf,Jf[95]=Gf,Jf[72]=[Gf,Xf],Jf[104]=[Gf,Xf],Jf[87]=[Gf,qf],Jf[119]=[Gf,qf];var ad={tokenize:function(e,t,n){var r=this;return pc(e,(function(e){var i=r.events[r.events.length-1];return i&&"gfmFootnoteDefinitionIndent"===i[1].type&&4===i[2].sliceSerialize(i[1],!0).length?t(e):n(e)}),"gfmFootnoteDefinitionIndent",5)},partial:!0};function sd(){var e;return{document:(0,ot.Z)({},91,{tokenize:hd,continuation:{tokenize:fd},exit:dd}),text:(e={},(0,ot.Z)(e,91,{tokenize:cd}),(0,ot.Z)(e,93,{add:"after",tokenize:ud,resolveTo:ld}),e)}}function ud(e,t,n){for(var r,i=this,o=i.events.length,a=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);o--;){var s=i.events[o][1];if("labelImage"===s.type){r=s;break}if("gfmFootnoteCall"===s.type||"labelLink"===s.type||"label"===s.type||"image"===s.type||"link"===s.type)break}return function(o){if(!r||!r._balanced)return n(o);var s=jc(i.sliceSerialize({start:r.end,end:i.now()}));if(94!==s.charCodeAt(0)||!a.includes(s.slice(1)))return n(o);return e.enter("gfmFootnoteCallLabelMarker"),e.consume(o),e.exit("gfmFootnoteCallLabelMarker"),t(o)}}function ld(e,t){for(var n=e.length;n--;)if("labelImage"===e[n][1].type&&"enter"===e[n][0]){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";var r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;var o={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},a={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},s=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",o,t],["enter",a,t],["exit",a,t],["exit",o,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice.apply(e,[n,e.length-n+1].concat(s)),e}function cd(e,t,n){var r,i=this,o=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]),a=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),s};function s(t){return 94!==t?n(t):(e.enter("gfmFootnoteCallMarker"),e.consume(t),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(s){var c;return null===s||91===s||a++>999?n(s):93===s?r?(e.exit("chunkString"),c=e.exit("gfmFootnoteCallString"),o.includes(jc(i.sliceSerialize(c)))?function(n){return e.enter("gfmFootnoteCallLabelMarker"),e.consume(n),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t}(s):n(s)):n(s):(e.consume(s),uc(s)||(r=!0),92===s?l:u)}function l(t){return 91===t||92===t||93===t?(e.consume(t),a++,u):u(t)}}function hd(e,t,n){var r,i,o=this,a=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]),s=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),u};function u(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),l):n(t)}function l(t){var a;return null===t||91===t||s>999?n(t):93===t?i?(a=e.exit("gfmFootnoteDefinitionLabelString"),r=jc(o.sliceSerialize(a)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),f):n(t):lc(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),s++,l):(e.enter("chunkString").contentType="string",c(t))}function c(t){return null===t||lc(t)||91===t||93===t||s>999?(e.exit("chunkString"),l(t)):(uc(t)||(i=!0),s++,e.consume(t),92===t?h:c)}function h(t){return 91===t||92===t||93===t?(e.consume(t),s++,c):c(t)}function f(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),pc(e,d,"gfmFootnoteDefinitionWhitespace")):n(t)}function d(e){return a.includes(r)||a.push(r),t(e)}}function fd(e,t,n){return e.check(Oc,t,e.attempt(ad,t,n))}function dd(e){e.exit("gfmFootnoteDefinition")}function pd(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.singleTilde,n={tokenize:i,resolveAll:r};return null!==t&&void 0!==t||(t=!0),{text:(0,ot.Z)({},126,n),insideSpan:{null:[n]},attentionMarkers:{null:[126]}};function r(e,t){for(var n=-1;++n1?r(o):(e.consume(o),a++,s);if(a<2&&!t)return r(o);var l=e.exit("strikethroughSequenceTemporary"),c=uh(o);return l._open=!c||2===c&&Boolean(u),l._close=!u||2===u&&Boolean(c),n(o)}}}var md={flow:{null:{tokenize:function(e,t,n){var r,i,o=this,a=[],s=0;return function(t){if(e.enter("table")._align=a,e.enter("tableHead"),e.enter("tableRow"),124===t)return u(t);return s++,e.enter("temporaryTableCellContent"),h(t)};function u(t){return e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),r=!0,l}function l(t){return null===t||lc(t)?function(t){if(null===t)return n(t);e.exit("tableRow"),e.exit("tableHead");var r=o.interrupt;return o.interrupt=!0,e.attempt({tokenize:A,partial:!0},(function(t){return o.interrupt=r,e.enter("tableDelimiterRow"),d(t)}),(function(e){return o.interrupt=r,n(e)}))(t)}(t):cc(t)?(e.enter("whitespace"),e.consume(t),c):(r&&(r=void 0,s++),124===t?u(t):(e.enter("temporaryTableCellContent"),h(t)))}function c(t){return cc(t)?(e.consume(t),c):(e.exit("whitespace"),l(t))}function h(t){return null===t||124===t||uc(t)?(e.exit("temporaryTableCellContent"),l(t)):(e.consume(t),92===t?f:h)}function f(t){return 92===t||124===t?(e.consume(t),h):h(t)}function d(t){return null===t||lc(t)?O(t):cc(t)?(e.enter("whitespace"),e.consume(t),p):45===t?(e.enter("tableDelimiterFiller"),e.consume(t),i=!0,a.push("none"),m):58===t?(e.enter("tableDelimiterAlignment"),e.consume(t),e.exit("tableDelimiterAlignment"),a.push("left"),g):124===t?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),d):n(t)}function p(t){return cc(t)?(e.consume(t),p):(e.exit("whitespace"),d(t))}function m(t){return 45===t?(e.consume(t),m):(e.exit("tableDelimiterFiller"),58===t?(e.enter("tableDelimiterAlignment"),e.consume(t),e.exit("tableDelimiterAlignment"),a[a.length-1]="left"===a[a.length-1]?"center":"right",v):d(t))}function g(t){return 45===t?(e.enter("tableDelimiterFiller"),e.consume(t),i=!0,m):n(t)}function v(t){return null===t||lc(t)?O(t):cc(t)?(e.enter("whitespace"),e.consume(t),p):124===t?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),d):n(t)}function O(t){return e.exit("tableDelimiterRow"),i&&s===a.length?null===t?y(t):e.check(gd,y,e.attempt({tokenize:A,partial:!0},pc(e,k,"linePrefix",4),y))(t):n(t)}function y(n){return e.exit("table"),t(n)}function k(t){return e.enter("tableBody"),b(t)}function b(t){return e.enter("tableRow"),124===t?x(t):(e.enter("temporaryTableCellContent"),S(t))}function x(t){return e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),T}function T(t){return null===t||lc(t)?function(t){if(e.exit("tableRow"),null===t)return E(t);return e.check(gd,E,e.attempt({tokenize:A,partial:!0},pc(e,b,"linePrefix",4),E))(t)}(t):cc(t)?(e.enter("whitespace"),e.consume(t),w):124===t?x(t):(e.enter("temporaryTableCellContent"),S(t))}function w(t){return cc(t)?(e.consume(t),w):(e.exit("whitespace"),T(t))}function S(t){return null===t||124===t||uc(t)?(e.exit("temporaryTableCellContent"),T(t)):(e.consume(t),92===t?C:S)}function C(t){return 92===t||124===t?(e.consume(t),S):S(t)}function E(t){return e.exit("tableBody"),y(t)}function A(e,t,n){return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),pc(e,r,"linePrefix")};function r(r){if(o.parser.lazy[o.now().line]||null===r||lc(r))return n(r);var i=o.events[o.events.length-1];return!o.parser.constructs.disable.null.includes("codeIndented")&&i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?n(r):(o._gfmTableDynamicInterruptHack=!0,e.check(o.parser.constructs.flow,(function(e){return o._gfmTableDynamicInterruptHack=!1,n(e)}),(function(e){return o._gfmTableDynamicInterruptHack=!1,t(e)}))(r))}}},resolve:function(e,t){var n,r,i,o,a,s,u,l=-1;for(;++l0?{type:"text",value:p}:void 0),!1!==p){var m;if(a!==n&&h.push({type:"text",value:e.value.slice(a,n)}),Array.isArray(p))(m=h).push.apply(m,(0,rt.Z)(p));else p&&h.push(p);a=n+f[0].length,c=!0}if(!i.global)break;f=i.exec(e.value)}if(c){var g;a?\]}]+$/.exec(e);if(o)for(e=e.slice(0,o.index),t=(i=o[0]).indexOf(")"),n=bd(e,"("),r=bd(e,")");-1!==t&&n>r;)e+=i.slice(0,t+1),t=(i=i.slice(t+1)).indexOf(")"),r++;return[e,i]}(n+r);if(!a[0])return!1;var s={type:"link",title:null,url:o+t+a[0],children:[{type:"text",value:t+a[0]}]};return a[1]?[s,{type:"text",value:a[1]}]:s}function Rd(e,t,n,r){return!(!Dd(r,!0)||/[_-\d]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function Dd(e,t){var n=e.input.charCodeAt(e.index-1);return(0===e.index||hc(n)||fc(n))&&(!t||47!==n)}function Nd(e){return e.label||!e.identifier?e.label||"":Dh(e.identifier)}function Md(e){var t=e||{},n=t.now||{},r=t.lineShift||0,i=n.line||1,o=n.column||1;return{move:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e.split(/\r?\n|\r/g),n=t[t.length-1];return i+=t.length-1,o=1===t.length?o+n.length:1+n.length+r,e},current:function(){return{now:{line:i,column:o},lineShift:r}},shift:function(e){r+=e}}}function Id(e,t,n){var r=t.indexStack,i=e.children||[],o=Md(n),a=[],s=-1;for(r.push(-1);++s=m||(g+10?" ":"")),i.shift(4),o+=i.move(Fd(Id(e,n,i.current()),(function(e,t,n){if(t)return(n?"":" ")+e;return e}))),a(),o},footnoteReference:e}};function e(e,t,n,r){var i=Md(r),o=i.move("[^"),a=n.enter("footnoteReference"),s=n.enter("reference");return o+=i.move(Bd(n,Nd(e),(0,it.Z)((0,it.Z)({},i.current()),{},{before:o,after:"]"}))),s(),a(),o+=i.move("]")}}function Ud(e,t,n){var r=t.indexStack,i=e.children||[],o=[],a=-1,s=n.before;r.push(-1);for(var u=Md(n);++a0&&("\r"===s||"\n"===s)&&"html"===l.type&&(o[o.length-1]=o[o.length-1].replace(/(\r?\n|\r)$/," "),s=" ",(u=Md(n)).move(o.join(""))),o.push(u.move(t.handle(l,e,t,(0,it.Z)((0,it.Z)({},u.current()),{},{before:s,after:c})))),s=o[o.length-1].slice(-1)}return r.pop(),o.join("")}var qd={canContainEols:["delete"],enter:{strikethrough:function(e){this.enter({type:"delete",children:[]},e)}},exit:{strikethrough:function(e){this.exit(e)}}},Xd={unsafe:[{character:"~",inConstruct:"phrasing"}],handlers:{delete:Gd}};function Gd(e,t,n,r){var i=Md(r),o=n.enter("emphasis"),a=i.move("~~");return a+=Ud(e,n,(0,it.Z)((0,it.Z)({},i.current()),{},{before:a,after:"~"})),a+=i.move("~~"),o(),a}function Jd(e,t,n){for(var r=e.value||"",i="`",o=-1;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++o1&&void 0!==arguments[1]?arguments[1]:{},n=(t.align||[]).concat(),r=t.stringLength||Yd,i=[],o=[],a=[],s=[],u=0,l=-1;++lu&&(u=e[l].length);++fs[f])&&(s[f]=p)}c.push(d)}o[l]=c,a[l]=h}var m=-1;if("object"===typeof n&&"length"in n)for(;++ms[m]&&(s[m]=x),O[m]=x),v[m]=T}o.splice(1,0,v),a.splice(1,0,O),l=-1;for(var w=[];++l-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+o);var a=o.length+1;("tab"===i||"mixed"===i&&(t&&"list"===t.type&&t.spread||e.spread))&&(a=4*Math.ceil(a/4));var s=Md(r);s.move(o+" ".repeat(a-o.length)),s.shift(a);var u=n.enter("listItem"),l=Fd(Id(e,n,s.current()),(function(e,t,n){if(t)return(n?"":" ".repeat(a))+e;return(n?o:o+" ".repeat(a-o.length))+e}));return u(),l}var ap={exit:{taskListCheckValueChecked:up,taskListCheckValueUnchecked:up,paragraph:function(e){var t,n=this.stack[this.stack.length-2],r=this.stack[this.stack.length-1],i=n.children,o=r.children[0],a=-1;if(n&&"listItem"===n.type&&"boolean"===typeof n.checked&&o&&"text"===o.type){for(;++a0&&void 0!==arguments[0]?arguments[0]:{},t=this.data();function n(e,n){(t[e]?t[e]:t[e]=[]).push(n)}n("micromarkExtensions",kd(e)),n("fromMarkdownExtensions",lp()),n("toMarkdownExtensions",cp(e))}var fp=n(7959),dp={}.hasOwnProperty;function pp(e,t){var n=t&&e&&"object"===typeof e&&"element"===e.type&&e.properties&&dp.call(e.properties,t)&&e.properties[t];return null!==n&&void 0!==n&&!1!==n}function mp(e){var t=e&&"element"===e.type&&e.tagName.toLowerCase()||"",n=2===t.length&&104===t.charCodeAt(0)?t.charCodeAt(1):0;return n>48&&n<55?n-48:null}function gp(e){return"children"in e?Op(e):"value"in e?e.value:""}function vp(e){return"text"===e.type?e.value:"children"in e?Op(e):""}function Op(e){for(var t=-1,n=[];++t1?n-1:0),i=1;i0&&void 0!==arguments[0]?arguments[0]:{},n=t.properties,r=t.behaviour||t.behavior||"prepend",i=t.content||Cp,o=t.group,a=xp(t.test);return"wrap"===r?e=l:"before"===r||"after"===r?e=u:(n||(n={ariaHidden:"true",tabIndex:-1}),e=s),function(t){Gh(t,"element",(function(t,n,r){if(mp(t)&&pp(t,"id")&&a(t,n,r))return e(t,n,r)}))};function s(e){return e.children["prepend"===r?"unshift":"push"](f(e,Nl(!0,{},n),c(i,e))),[Uh]}function u(e,t,a){var s;if("number"===typeof t&&a){var u=f(e,Nl(!0,{},n),c(i,e)),l="before"===r?[u,e]:[e,u];if(o){var d=h(o,e);d&&!Array.isArray(d)&&"element"===d.type&&(d.children=l,l=[d])}return(s=a.children).splice.apply(s,[t,1].concat((0,rt.Z)(l))),[Uh,t+l.length]}}function l(e){return e.children=[f(e,Nl(!0,{},n),e.children)],[Uh]}function c(e,t){var n=h(e,t);return Array.isArray(n)?n:[n]}function h(e,t){return"function"===typeof e?e(t):Nl(!0,Array.isArray(e)?[]:{},e)}function f(e,t,n){return{type:"element",tagName:"a",properties:Object.assign({},t,{href:"#"+(e.properties||{}).id}),children:n}}}var Ap=n(810),_p=(0,n(1762).v)(xf.YP,"g",["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"]),Qp=n(7611);var Pp={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},Rp={}.hasOwnProperty,Dp={"#document":Mp,"#document-fragment":Mp,"#text":function(e,t){return{type:"text",value:t.value}},"#comment":function(e,t){return{type:"comment",value:t.data}},"#documentType":function(){return{type:"doctype"}}};function Np(e,t){var n,r=e.schema,i=Rp.call(Dp,t.nodeName)?Dp[t.nodeName]:Ip;"tagName"in t&&(e.schema=t.namespaceURI===Pp.svg?xf.YP:xf.dy),"childNodes"in t&&(n=function(e,t){var n=-1,r=[];for(;++n-1&&ee)return{line:t+1,column:e-(n[t-1]||0)+1,offset:e};return{line:void 0,column:void 0,offset:void 0}},toOffset:function(e){var t,r=e&&e.line,i=e&&e.column;return"number"!==typeof r||"number"!==typeof i||Number.isNaN(r)||Number.isNaN(i)||!(r-1 in n)||(t=(n[r-2]||0)+i-1||0),t>-1&&t0?e.call(t,a,s,u):e.call(t,a,s)}function Xp(e,t,n,r,i){var o,a=(0,Ef.s)(r.schema,t);void 0===n||null===n||"number"===typeof n&&Number.isNaN(n)||!1===n&&(r.vue||r.vdom||r.hyperscript)||!n&&a.boolean&&(r.vue||r.vdom||r.hyperscript)||(Array.isArray(n)&&(n=a.commaSeparated?(0,Qf.P)(n):(0,_f.P)(n)),a.boolean&&r.hyperscript&&(n=""),"style"===a.property&&"string"===typeof n&&(r.react||r.vue||r.vdom)&&(n=function(e,t){var n={};try{Pf(e,(function(e,t){"-ms-"===e.slice(0,4)&&(e="ms-"+e.slice(4)),n[e.replace(/-([a-z])/g,(function(e,t){return t.toUpperCase()}))]=t}))}catch(r){throw r.message=t+"[style]"+r.message.slice("undefined".length),r}return n}(n,i)),r.vue?"style"!==a.property&&(o="attrs"):a.mustUseProperty||(r.vdom?"style"!==a.property&&(o="attributes"):r.hyperscript&&(o="attrs")),o?e[o]=Object.assign(e[o]||{},(0,ot.Z)({},a.attribute,n)):a.space&&r.react?e[jp[a.property]||a.property]=n:e[a.attribute]=n)}function Gp(e){return"context"in e&&"cleanup"in e}var Jp={}.hasOwnProperty;function Vp(e,t){var n=t||{};function r(t){var n=r.invalid,i=r.handlers;if(t&&Jp.call(t,e)&&(n=Jp.call(i,t[e])?i[t[e]]:r.unknown),n)return n.apply(this,arguments)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}var Yp={}.hasOwnProperty,Kp=Vp("type",{handlers:{root:function(e,t){var n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=em(e.children,n,t),tm(e,n)},element:function(e,t){var n=t.space;return Up((function(n,r){var i,o,a,s,u,l=[];for(a in r)Yp.call(r,a)&&!1!==r[a]&&((i=(0,Ef.s)(t,a)).boolean&&!r[a]||(o={name:a,value:!0===r[a]?"":String(r[a])},i.space&&"html"!==i.space&&"svg"!==i.space&&((s=a.indexOf(":"))<0?o.prefix="":(o.name=a.slice(s+1),o.prefix=a.slice(0,s)),o.namespace=Pp[i.space]),l.push(o)));"html"===t.space&&"svg"===e.tagName&&(t=xf.YP);(u=tm(e,{nodeName:n,tagName:n,attrs:l,namespaceURI:Pp[t.space],childNodes:[],parentNode:void 0})).childNodes=em(e.children,u,t),"template"===n&&(u.content=function(e,t){var n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=em(e.children,n,t),tm(e,n)}(e.content,t));return u}),Object.assign({},e,{children:[]}),{space:n})},text:function(e){return tm(e,{nodeName:"#text",value:e.value,parentNode:void 0})},comment:function(e){return tm(e,{nodeName:"#comment",data:e.value,parentNode:void 0})},doctype:function(e){return tm(e,{nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:void 0})}}});function em(e,t,n){var r,i=-1,o=[];if(e)for(;++i1&&void 0!==arguments[1]?arguments[1]:{};return Zp(r)?(n=r,t={}):(n=r.file,t=r),Np({schema:"svg"===t.space?xf.YP:xf.dy,file:n,verbose:t.verbose,location:!1},e)}(function(e){var t="root"===e.type?e.children[0]:e;return Boolean(t&&("doctype"===t.type||"element"===t.type&&"html"===t.tagName))}(t)?function(){var e=c.treeAdapter.createDocument();if(c._bootstrap(e,void 0),!(o=c.tokenizer))throw new Error("Expected `tokenizer`");return a=o.preprocessor,u=o.__mixins[0],s=u.posTracker,h(t),g(),e}():function(){var e={nodeName:"template",tagName:"template",attrs:[],namespaceURI:Pp.html,childNodes:[]},n={nodeName:"documentmock",tagName:"documentmock",attrs:[],namespaceURI:Pp.html,childNodes:[]},r={nodeName:"#document-fragment",childNodes:[]};if(c._bootstrap(n,e),c._pushTmplInsertionMode("IN_TEMPLATE_MODE"),c._initTokenizerForFragmentParsing(),c._insertFakeRootElement(),c._resetInsertionMode(),c._findFormInFragmentContext(),!(o=c.tokenizer))throw new Error("Expected `tokenizer`");return a=o.preprocessor,u=o.__mixins[0],s=u.posTracker,h(t),g(),c._adoptNodes(n.childNodes[0],r),r}(),n);return i&&Gh(f,"comment",(function(e,t,n){var r=e;if(r.value.stitch&&null!==n&&null!==t)return n.children[t]=r.value.stitch,t})),"root"!==t.type&&"root"===f.type&&1===f.children.length?f.children[0]:f;function d(e){var t=-1;if(e)for(;++t0&&void 0!==arguments[0]?arguments[0]:{};return function(t,n){return om(t,n,e)}}var hm=function e(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0,i=n;i1){var i=e.children[0];if(i&&"code"===i.tagName&&"number"===typeof n){var o=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;t>-1;){if(!e[--t])return;if(e[t]&&e[t].value&&""!==e[t].value.replace(/(\n|\s)/g,"")||"text"!==e[t].type){if(!/^rehype:/.test(e[t].value)||"comment"!==e[t].type)return;return e[t]}}}(r.children,n);if(o){var a=fm(o);Object.keys(a).length>0&&(e.properties=(0,it.Z)((0,it.Z)({},e.properties),{"data-type":"rehyp"}),i.properties=dm(i.properties,a,t.properties))}}}if(/^(em|strong|b|a|i|p|pre|kbd|blockquote|h(1|2|3|4|5|6)|code|table|img|del|ul|ol)$/.test(e.tagName)&&r&&Array.isArray(r.children)&&"number"===typeof n){var s=hm(r.children,n);if(s){var u=fm(s);Object.keys(u).length>0&&(e.properties=dm(e.properties,u,t.properties))}}}))}},gm=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.openDelimiter,n=void 0===t?"rehype:ignore:start":t,r=e.closeDelimiter,i=void 0===r?"rehype:ignore:end":r;return function(e){Gh(e,(function(e,t,r){if("element"===e.type||"root"===e.type){var o=!1;e.children=e.children.filter((function(e){return"comment"===e.type&&e.value.trim()===n?(o=!0,!1):"comment"===e.type&&e.value.trim()===i?(o=!1,!1):!o}))}}))}},vm={}.hasOwnProperty,Om=n(7278),ym=n(4571),km=n(1060);function bm(){bm=function(e,t){return new n(e,void 0,t)};var e=RegExp.prototype,t=new WeakMap;function n(e,r,i){var o=new RegExp(e,r);return t.set(o,i||t.get(e)),Tm(o,n.prototype)}function r(e,n){var r=t.get(n);return Object.keys(r).reduce((function(t,n){return t[n]=e[r[n]],t}),Object.create(null))}return xm(n,RegExp),n.prototype.exec=function(t){var n=e.exec.call(this,t);return n&&(n.groups=r(n,this)),n},n.prototype[Symbol.replace]=function(n,i){if("string"==typeof i){var o=t.get(this);return e[Symbol.replace].call(this,n,i.replace(/\$<([^>]+)>/g,(function(e,t){return"$"+o[t]})))}if("function"==typeof i){var a=this;return e[Symbol.replace].call(this,n,(function(){var e=arguments;return"object"!=typeof e[e.length-1]&&(e=[].slice.call(e)).push(r(e,a)),i.apply(this,e)}))}return e[Symbol.replace].call(this,n,i)},bm.apply(this,arguments)}function xm(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Tm(e,t)}function Tm(e,t){return Tm=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Tm(e,t)}function wm(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var Cm=function(e){return function(t){return void 0===t&&(t={}),function(e){Gh(e,"element",n)};function n(n,r,i){if(i&&"pre"===i.tagName&&"code"===n.tagName){var o=n.data&&n.data.meta?n.data.meta:"";n.properties.className?"boolean"==typeof n.properties.className?n.properties.className=[]:Array.isArray(n.properties.className)||(n.properties.className=[n.properties.className]):n.properties.className=[],n.properties.className.push("code-highlight");var a,s,u=function(e){for(var t,n=Sm(e.properties.className);!(t=n()).done;){var r=t.value;if("language-"===r.slice(0,9))return r.slice(9).toLowerCase()}return null}(n);if(u)try{var l;l=null!=u&&u.includes("diff-")?u.split("-")[1]:u,a=e.highlight(gp(n),l),i.properties.className=(i.properties.className||[]).concat("language-"+l)}catch(v){if(!t.ignoreMissing||!/Unknown language/.test(v.message))throw v;a=n}else a=n;a.children=(s=1,function e(t){return t.reduce((function(t,n){if("text"===n.type){var r=n.value,i=(r.match(/\n/g)||"").length;if(0===i)n.position={start:{line:s,column:1},end:{line:s,column:1}},t.push(n);else for(var o,a=r.split("\n"),u=Sm(a.entries());!(o=u()).done;){var l=o.value,c=l[0],h=l[1];t.push({type:"text",value:c===a.length-1?h:h+"\n",position:{start:{line:s+c,column:1},end:{line:s+c,column:1}}})}return s+=i,t}if(Object.prototype.hasOwnProperty.call(n,"children")){var f=s;return n.children=e(n.children),t.push(n),n.position={start:{line:f,column:1},end:{line:s,column:1}},t}return t.push(n),t}),[])})(a.children),a.position=a.children.length>0?{start:{line:a.children[0].position.start.line,column:0},end:{line:a.children[a.children.length-1].position.end.line,column:0}}:{start:{line:0,column:0},end:{line:0,column:0}};for(var c,h=function(e){var t=/{([\d,-]+)}/,n=e.split(",").map((function(e){return e.trim()})).join();if(t.test(n)){var r=t.exec(n)[1],i=Om(r);return function(e){return i.includes(e+1)}}return function(){return!1}}(o),f=function(e){var t=bm(/showLineNumbers=([0-9]+)/i,{lines:1});if(t.test(e)){var n=t.exec(e);return Number(n.groups.lines)}return 1}(o),d=function(e){for(var t=new Array(e),n=0;n0&&0===l.length)return null}var c={};for(u in t)vm.call(t,u)&&(c[u]="children"===u?l:t[u]);return c}(e)}(a,(function(e){return e.position.start.line<=n+1&&e.position.end.line>=n+1}));r.children=i.children,!o.toLowerCase().includes("showLineNumbers".toLowerCase())&&!t.showLineNumbers||p.some((function(e){return o.toLowerCase().includes(e)}))||(r.properties.line=[(n+f).toString()],r.properties.className.push("line-number")),h(n)&&r.properties.className.push("highlight-line"),("diff"===u||null!=u&&u.includes("diff-"))&&"-"===gp(r).substring(0,1)?r.properties.className.push("deleted"):("diff"===u||null!=u&&u.includes("diff-"))&&"+"===gp(r).substring(0,1)&&r.properties.className.push("inserted")},g=Sm(d.entries());!(c=g()).done;)m();d.length>0&&""===gp(d[d.length-1]).trim()&&d.pop(),n.children=d}}}},Em=(Cm(ym.$),Cm(km.$)),Am="A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u02b8\u0300-\u0590\u0800-\u1fff\u200e\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff",_m=new RegExp("^[^"+Am+"]*["+"\u0591-\u07ff\ufb1d-\ufdfd\ufe70-\ufefc]"),Qm=new RegExp("^[^\u0591-\u07ff\ufb1d-\ufdfd\ufe70-\ufefc]*["+Am+"]");var Pm=xp();function Rm(e,t){var n,r,i=e.schema,o=e.language,a=e.direction,s=e.editableOrEditingHost;if(Pm(t)&&t.properties){var u=t.properties.xmlLang||t.properties.lang,l=t.properties.type||"text",c=Nm(t);void 0!==u&&null!==u&&(e.language=String(u),r=!0),i&&"html"===i.space?("true"===t.properties.contentEditable&&(e.editableOrEditingHost=!0,r=!0),bp(t,"svg")&&(e.schema=xf.YP,r=!0),"rtl"===c?n=c:"ltr"===c||"auto"!==c&&bp(t,"html")||"auto"!==c&&bp(t,"input")&&"tel"===l?n="ltr":("auto"===c||bp(t,"bdi"))&&(bp(t,"textarea")?n=Dm(gp(t)):!bp(t,"input")||"email"!==l&&"search"!==l&&"tel"!==l&&"text"!==l?Gh(t,(function(e){if("text"===e.type)return(n=Dm(e.value))?qh:null;if(e!==t&&(bp(e,["bdi","script","style","textare"])||Nm(e)))return Uh})):n=t.properties.value?Dm(t.properties.value):"ltr"),n&&(e.direction=n,r=!0)):e.editableOrEditingHost&&(e.editableOrEditingHost=!1,r=!0)}return r?function(){e.schema=i,e.language=o,e.direction=a,e.editableOrEditingHost=s}:Mm}function Dm(e){var t=function(e){var t=String(e||"");return _m.test(t)?"rtl":Qm.test(t)?"ltr":"neutral"}(e);return"neutral"===t?void 0:t}function Nm(e){var t=Pm(e)&&e.properties&&"string"===typeof e.properties.dir?e.properties.dir.toLowerCase():void 0;return"auto"===t||"ltr"===t||"rtl"===t?t:void 0}function Mm(){}var Im={}.hasOwnProperty,Lm=Vp("nestingOperator",{unknown:function(e){throw new Error("Unexpected nesting `"+e.nestingOperator+"`")},invalid:function(e,t,n,r,i){if(r||null===n)throw new Error("topScan is supposed to be called from the root node");if(!i.iterator)throw new Error("Expected `iterator`");i.iterator(e,t,n,r,i),i.shallow||Zm(e,t,n,r,i)},handlers:{null:Zm,">":$m,"+":function(e,t,n,r,i){if(!r||null===n)return;jm(e,r,i,n+1,!0)},"~":function(e,t,n,r,i){if(!r||null===n)return;jm(e,r,i,n+1)}}});function Fm(e,t,n,r,i){Lm(e,t,n,r,i)}function Zm(e,t,n,r,i){var o=i.iterator;i.iterator=function e(t,n,r,i,a){if(!o)throw new Error("Expected `iterator`");if(a.iterator=o,o(t,n,r,i,a),a.iterator=e,a.one&&a.found)return;$m(t,n,r,i,a)},$m(e,t,n,r,i)}function $m(e,t,n,r,i){(function(e){return Array.isArray(e.children)})(t)&&0!==t.children.length&&jm(e,t,i)}function jm(e,t,n,r,i){var o=n.index?function(e,t){var r=s,i=Im.call(l,e.tagName)?l[e.tagName]:0;p(e.tagName),c.push((function(){n.elementIndex=r,n.typeIndex=i,n.elementCount=s,n.typeCount=l[e.tagName],d(e,t)}))}:d,a=t.children,s=0,u=-1,l={},c=[];if(void 0!==r&&null!==r||(r=0),!(r>=a.length)){if(n.index)for(;++u0;return i.shallow=o,i.one=a,i.scopeElements=s,l},lang:function(e,t,n,r,i){return""!==i.language&&void 0!==i.language&&null!==i.language&&zm(i.language,(0,Qf.Q)(e.value)).length>0},"last-child":function(e,t,n,r,i){return Ym(i,e),Boolean(i.elementCount&&i.elementIndex===i.elementCount-1)},"last-of-type":function(e,t,n,r,i){return Ym(i,e),"number"===typeof i.typeIndex&&"number"===typeof i.typeCount&&i.typeIndex===i.typeCount-1},matches:qm,not:function(e,t,n,r,i){return!qm(e,t,n,r,i)},"nth-child":function(e,t,n,r,i){return Ym(i,e),"number"===typeof i.elementIndex&&e.value(i.elementIndex)},"nth-last-child":function(e,t,n,r,i){return Ym(i,e),Boolean("number"===typeof i.elementCount&&"number"===typeof i.elementIndex&&e.value(i.elementCount-i.elementIndex-1))},"nth-of-type":function(e,t,n,r,i){return Ym(i,e),"number"===typeof i.typeIndex&&e.value(i.typeIndex)},"nth-last-of-type":function(e,t,n,r,i){return Ym(i,e),"number"===typeof i.typeCount&&"number"===typeof i.typeIndex&&e.value(i.typeCount-1-i.typeIndex)},"only-child":function(e,t,n,r,i){return Ym(i,e),1===i.elementCount},"only-of-type":function(e,t,n,r,i){return Ym(i,e),1===i.typeCount},optional:function(e,t){return!Gm(e,t)},"read-only":function(e,t,n,r,i){return!Jm(e,t,n,r,i)},"read-write":Jm,required:Gm,root:function(e,t,n,r,i){return Boolean((!r||"root"===r.type)&&i.schema&&("html"===i.schema.space||"svg"===i.schema.space)&&bp(t,["html","svg"]))},scope:function(e,t,n,r,i){return Boolean(bp(t)&&i.scopeElements&&i.scopeElements.includes(t))}}});function Um(e,t,n,r,i){for(var o=e.pseudos,a=-1;++a=n};var r=Math.abs(t),i=(n%r+r)%r;return t>1?function(e){return e>=n&&e%r===i}:function(e){return e<=n&&e%r===i}}(function(e){if("even"===(e=e.trim().toLowerCase()))return[2,0];if("odd"===e)return[2,1];var t=0,n=0,r=o(),i=a();if(t=lg&&e.charCodeAt(t)<=cg;)r=10*r+(e.charCodeAt(t)-lg),t++;return t===n?null:r}function s(){for(;t","+","~");var yg=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return t.forEach((function(t){"text"===t.type?n+=t.value:"element"===t.type&&t.children&&Array.isArray(t.children)&&(n+=e(t.children))})),n},kg=function(e){var t=e||{},n=t.selector,r=t.rewrite;return function(e){if(r&&"function"===typeof r)if(n&&"string"===typeof n){var t=Og(n,e);t&&t.length>0&&Gh(e,t,(function(e,t,n){r(e,t,n)}))}else Gh(e,(function(e,t,n){r(e,t,n)}))}},bg={type:"element",tagName:"svg",properties:{className:"octicon octicon-link",viewBox:"0 0 16 16",version:"1.1",width:"16",height:"16",ariaHidden:"true"},children:[{type:"element",tagName:"path",children:[],properties:{fillRule:"evenodd",d:"M7.775 3.275a.75.75 0 001.06 1.06l1.25-1.25a2 2 0 112.83 2.83l-2.5 2.5a2 2 0 01-2.83 0 .75.75 0 00-1.06 1.06 3.5 3.5 0 004.95 0l2.5-2.5a3.5 3.5 0 00-4.95-4.95l-1.25 1.25zm-4.69 9.64a2 2 0 010-2.83l2.5-2.5a2 2 0 012.83 0 .75.75 0 001.06-1.06 3.5 3.5 0 00-4.95 0l-2.5 2.5a3.5 3.5 0 004.95 4.95l1.25-1.25a.75.75 0 00-1.06-1.06l-1.25 1.25a2 2 0 01-2.83 0z"}}]},xg=n(8497),Tg=n.n(xg);var wg=function(e){return void 0===e&&(e={}),function(e){Gh(e,(function(e){"element"===e.type&&"code"===e.tagName&&e.data&&e.data.meta&&(e.properties=te({},e.properties,{"data-meta":String(e.data.meta)}))}))}},Sg=["prefixCls","className","source","style","disableCopy","onScroll","onMouseOver","pluginsFilter","rehypeRewrite","warpperElement"],Cg=V.forwardRef((function(e,t){var n=e.prefixCls,r=void 0===n?"wmde-markdown wmde-markdown-color":n,i=e.className,o=e.source,a=e.style,s=e.disableCopy,u=void 0!==s&&s,l=e.onScroll,c=e.onMouseOver,h=e.pluginsFilter,f=e.rehypeRewrite,d=e.warpperElement,p=void 0===d?{}:d,m=Xe(e,Sg),g=V.createRef();(0,V.useImperativeHandle)(t,(function(){return te({},e,{mdp:g})}),[g,e]);var v=(r||"")+" "+(i||""),O=[wg,[Em,{ignoreMissing:!0}],cm,kp,Ep,gm,[kg,{rewrite:function(e,t,n){if("element"===e.type&&n&&"root"===n.type&&/h(1|2|3|4|5|6)/.test(e.tagName)){var r=e.children&&e.children[0];r&&r.properties&&"true"===r.properties.ariaHidden&&(r.properties=te({class:"anchor"},r.properties),r.children=[bg])}if("element"===e.type&&"pre"===e.tagName&&!u){var i=yg(e.children);e.children.push((void 0===(o=i)&&(o=""),{type:"element",tagName:"div",properties:{onClick:function(e){var t=e.currentTarget||e.target;t.classList.add("active"),Tg()(t.dataset.code,(function(){setTimeout((function(){t.classList.remove("active")}),2e3)}))},"data-code":o,class:"copied"},children:[{type:"element",tagName:"svg",properties:{className:"octicon-copy",ariaHidden:"true",viewBox:"0 0 16 16",fill:"currentColor",height:12,width:12},children:[{type:"element",tagName:"path",properties:{fillRule:"evenodd",d:"M0 6.75C0 5.784.784 5 1.75 5h1.5a.75.75 0 010 1.5h-1.5a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-1.5a.75.75 0 011.5 0v1.5A1.75 1.75 0 019.25 16h-7.5A1.75 1.75 0 010 14.25v-7.5z"},children:[]},{type:"element",tagName:"path",properties:{fillRule:"evenodd",d:"M5 1.75C5 .784 5.784 0 6.75 0h7.5C15.216 0 16 .784 16 1.75v7.5A1.75 1.75 0 0114.25 11h-7.5A1.75 1.75 0 015 9.25v-7.5zm1.75-.25a.25.25 0 00-.25.25v7.5c0 .138.112.25.25.25h7.5a.25.25 0 00.25-.25v-7.5a.25.25 0 00-.25-.25h-7.5z"},children:[]}]},{type:"element",tagName:"svg",properties:{className:"octicon-check",ariaHidden:"true",viewBox:"0 0 16 16",fill:"currentColor",height:12,width:12},children:[{type:"element",tagName:"path",properties:{fillRule:"evenodd",d:"M13.78 4.22a.75.75 0 010 1.06l-7.25 7.25a.75.75 0 01-1.06 0L2.22 9.28a.75.75 0 011.06-1.06L6 10.94l6.72-6.72a.75.75 0 011.06 0z"},children:[]}]}]}))}var o;f&&f(e,t,n)}}],[mm,{properties:"attr"}]].concat((0,rt.Z)(m.rehypePlugins||[])),y={allowElement:function(e,t,n){return m.allowElement?m.allowElement(e,t,n):/^[A-Za-z0-9]+$/.test(e.tagName)}},k=[].concat((0,rt.Z)(m.remarkPlugins||[]),[hp]);return(0,Ge.jsx)("div",te({ref:g,onScroll:l,onMouseOver:c},p,{className:v,style:a,children:(0,Ge.jsx)(jf,te({},m,y,{rehypePlugins:h?h("rehype",O):O,remarkPlugins:h?h("remark",k):k,children:o||""}))}))})),Eg={name:"bold",keyCommand:"bold",button:{"aria-label":"Add bold text"},icon:(0,Ge.jsx)("svg",{width:"13",height:"13",viewBox:"0 0 384 512",children:(0,Ge.jsx)("path",{fill:"currentColor",d:"M304.793 243.891c33.639-18.537 53.657-54.16 53.657-95.693 0-48.236-26.25-87.626-68.626-104.179C265.138 34.01 240.849 32 209.661 32H24c-8.837 0-16 7.163-16 16v33.049c0 8.837 7.163 16 16 16h33.113v318.53H24c-8.837 0-16 7.163-16 16V464c0 8.837 7.163 16 16 16h195.69c24.203 0 44.834-1.289 66.866-7.584C337.52 457.193 376 410.647 376 350.014c0-52.168-26.573-91.684-71.207-106.123zM142.217 100.809h67.444c16.294 0 27.536 2.019 37.525 6.717 15.828 8.479 24.906 26.502 24.906 49.446 0 35.029-20.32 56.79-53.029 56.79h-76.846V100.809zm112.642 305.475c-10.14 4.056-22.677 4.907-31.409 4.907h-81.233V281.943h84.367c39.645 0 63.057 25.38 63.057 63.057.001 28.425-13.66 52.483-34.782 61.284z"})}),execute:function(e){var t=e.state,n=e.view;t&&n&&n.dispatch(n.state.changeByRange((function(e){return{changes:[{from:e.from,insert:"**"},{from:e.to,insert:"**"}],range:_o.jT.range(e.from+2,e.to+2)}})))}},Ag={name:"italic",keyCommand:"italic",button:{"aria-label":"Add italic text"},icon:(0,Ge.jsx)("svg",{width:"13",height:"13",viewBox:"0 0 320 512",children:(0,Ge.jsx)("path",{fill:"currentColor",d:"M204.758 416h-33.849l62.092-320h40.725a16 16 0 0 0 15.704-12.937l6.242-32C297.599 41.184 290.034 32 279.968 32H120.235a16 16 0 0 0-15.704 12.937l-6.242 32C96.362 86.816 103.927 96 113.993 96h33.846l-62.09 320H46.278a16 16 0 0 0-15.704 12.935l-6.245 32C22.402 470.815 29.967 480 40.034 480h158.479a16 16 0 0 0 15.704-12.935l6.245-32c1.927-9.88-5.638-19.065-15.704-19.065z"})}),execute:function(e){var t=e.state,n=e.view;t&&n&&n.dispatch(n.state.changeByRange((function(e){return{changes:[{from:e.from,insert:"*"},{from:e.to,insert:"*"}],range:_o.jT.range(e.from+1,e.to+1)}})))}},_g={name:"header",keyCommand:"header",button:{"aria-label":"Add header text"},icon:(0,Ge.jsx)("svg",{fill:"currentColor",viewBox:"0 0 448 512",height:"13",width:"13",children:(0,Ge.jsx)("path",{d:"M448 448c0 17.69-14.33 32-32 32h-96c-17.67 0-32-14.31-32-32s14.33-32 32-32h16V272H112v144h16c17.67 0 32 14.31 32 32s-14.33 32-32 32H32c-17.67 0-32-14.31-32-32s14.33-32 32-32h16V96H32C14.33 96 0 81.69 0 64s14.33-32 32-32h96c17.67 0 32 14.31 32 32s-14.33 32-32 32h-16v112h224V96h-16c-17.67 0-32-14.31-32-32s14.33-32 32-32h96c17.67 0 32 14.31 32 32s-14.33 32-32 32h-16v320h16c17.7 0 32 14.3 32 32z"})}),execute:function(e){var t=e.state,n=e.view;if(t&&n){var r=n.state.doc.lineAt(n.state.selection.main.from),i="#",o=r.text.match(/^#+/);if(o&&o[0]){var a=o[0];a.length<6&&(i=a+"#")}i.length>6&&(i="#");var s=r.text.replace(/^#+/,"");n.dispatch({changes:{from:r.from,to:r.to,insert:i+" "+s},selection:{anchor:r.from+i.length+1}})}}},Qg={name:"strike",keyCommand:"strike",button:{"aria-label":"Add strike text"},icon:(0,Ge.jsx)("svg",{fill:"currentColor",viewBox:"0 0 512 512",height:"14",width:"14",children:(0,Ge.jsx)("path",{d:"M332.2 319.9c17.22 12.17 22.33 26.51 18.61 48.21-3.031 17.59-10.88 29.34-24.72 36.99-35.44 19.75-108.5 11.96-186-19.68-16.34-6.686-35.03 1.156-41.72 17.53s1.188 35.05 17.53 41.71c31.75 12.93 95.69 35.37 157.6 35.37 29.62 0 58.81-5.156 83.72-18.96 30.81-17.09 50.44-45.46 56.72-82.11 3.998-23.27 2.168-42.58-3.488-59.05H332.2zm155.8-80-176.5-.03c-15.85-5.614-31.83-10.34-46.7-14.62-85.47-24.62-110.9-39.05-103.7-81.33 2.5-14.53 10.16-25.96 22.72-34.03 20.47-13.15 64.06-23.84 155.4.343 17.09 4.53 34.59-5.654 39.13-22.74 4.531-17.09-5.656-34.59-22.75-39.12-91.31-24.18-160.7-21.62-206.3 7.654C121.8 73.72 103.6 101.1 98.09 133.1c-8.83 51.4 9.81 84.2 39.11 106.8H24c-13.25 0-24 10.75-24 23.1 0 13.25 10.75 23.1 24 23.1h464c13.25 0 24-10.75 24-23.1 0-12.3-10.7-23.1-24-23.1z"})}),execute:function(e){var t=e.state,n=e.view;t&&n&&n.dispatch(n.state.changeByRange((function(e){return{changes:[{from:e.from,insert:"~~"},{from:e.to,insert:"~~"}],range:_o.jT.range(e.from+2,e.to+2)}})))}},Pg={name:"underline",keyCommand:"underline",button:{"aria-label":"Add underline text"},icon:(0,Ge.jsx)("svg",{fill:"currentColor",viewBox:"0 0 448 512",height:"13",width:"13",children:(0,Ge.jsx)("path",{d:"M416 448H32c-17.69 0-32 14.31-32 32s14.31 32 32 32h384c17.69 0 32-14.31 32-32s-14.3-32-32-32zM48 64.01h16v160c0 88.22 71.78 159.1 160 159.1s160-71.78 160-159.1v-160h16c17.69 0 32-14.32 32-32S417.69.91 400 .91l-96-.005c-17.69 0-32 14.32-32 32s14.31 32 32 32h16v160c0 52.94-43.06 95.1-96 95.1S128 276.1 128 224V64h16c17.69 0 32-14.31 32-32S161.69 0 144 0L48 .005c-17.69 0-32 14.31-32 31.1S30.31 64.01 48 64.01z"})}),execute:function(e){var t=e.state,n=e.view;t&&n&&n.dispatch(n.state.changeByRange((function(e){return{changes:[{from:e.from,insert:""},{from:e.to,insert:""}],range:_o.jT.range(e.from+3,e.to+3)}})))}},Rg={name:"olist",keyCommand:"olist",button:{"aria-label":"Add olist text"},icon:(0,Ge.jsx)("svg",{viewBox:"0 0 576 512",height:"14",width:"14",children:(0,Ge.jsx)("path",{fill:"currentColor",d:"M55.1 56.04c0-13.26 11.64-24 24-24h32c14.2 0 24 10.74 24 24V176h16c14.2 0 24 10.8 24 24 0 13.3-9.8 24-24 24h-80c-12.36 0-24-10.7-24-24 0-13.2 11.64-24 24-24h16V80.04h-8c-12.36 0-24-10.75-24-24zm63.6 285.16c-6.6-7.4-18.3-6.9-24.05 1.2l-11.12 15.5c-7.7 10.8-22.69 13.3-33.48 5.6-10.79-7.7-13.28-22.7-5.58-33.4l11.12-15.6c23.74-33.3 72.31-35.7 99.21-4.9 21.3 23.5 20.8 60.9-1.1 84.7L118.8 432H152c13.3 0 24 10.7 24 24s-10.7 24-24 24H64c-9.53 0-18.16-5.6-21.98-14.4-3.83-8.7-2.12-18.9 4.34-25.9l72.04-78c5.3-5.8 5.4-14.6.3-20.5zM512 64c17.7 0 32 14.33 32 32 0 17.7-14.3 32-32 32H256c-17.7 0-32-14.3-32-32 0-17.67 14.3-32 32-32h256zm0 160c17.7 0 32 14.3 32 32s-14.3 32-32 32H256c-17.7 0-32-14.3-32-32s14.3-32 32-32h256zm0 160c17.7 0 32 14.3 32 32s-14.3 32-32 32H256c-17.7 0-32-14.3-32-32s14.3-32 32-32h256z"})}),execute:function(e){var t=e.state,n=e.view;if(t&&n){var r=n.state.doc.lineAt(n.state.selection.main.from),i="- ",o=r.text.match(/^-/);o&&o[0]&&(i=""),n.dispatch({changes:{from:r.from,to:r.to,insert:""+i+r.text},selection:{anchor:n.state.selection.main.from+i.length}})}}},Dg={name:"ulist",keyCommand:"ulist",button:{"aria-label":"Add ulist text"},icon:(0,Ge.jsx)("svg",{viewBox:"0 0 512 512",height:"14",width:"14",children:(0,Ge.jsx)("path",{fill:"currentColor",d:"M88 48c13.3 0 24 10.75 24 24v48c0 13.3-10.7 24-24 24H40c-13.25 0-24-10.7-24-24V72c0-13.25 10.75-24 24-24h48zm392 16c17.7 0 32 14.33 32 32 0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32 0-17.67 14.3-32 32-32h288zm0 160c17.7 0 32 14.3 32 32s-14.3 32-32 32H192c-17.7 0-32-14.3-32-32s14.3-32 32-32h288zm0 160c17.7 0 32 14.3 32 32s-14.3 32-32 32H192c-17.7 0-32-14.3-32-32s14.3-32 32-32h288zM16 232c0-13.3 10.75-24 24-24h48c13.3 0 24 10.7 24 24v48c0 13.3-10.7 24-24 24H40c-13.25 0-24-10.7-24-24v-48zm72 136c13.3 0 24 10.7 24 24v48c0 13.3-10.7 24-24 24H40c-13.25 0-24-10.7-24-24v-48c0-13.3 10.75-24 24-24h48z"})}),execute:function(e){var t=e.state,n=e.view;if(t&&n){var r=n.state.doc.lineAt(n.state.selection.main.from),i="1. ",o=r.text.match(/^\1\./);o&&o[0]&&(i=""),n.dispatch({changes:{from:r.from,to:r.to,insert:""+i+r.text},selection:{anchor:n.state.selection.main.from+i.length}})}}},Ng={name:"quote",keyCommand:"quote",button:{"aria-label":"Add quote text"},icon:(0,Ge.jsx)("svg",{fill:"currentColor",viewBox:"0 0 448 512",height:"15",width:"15",children:(0,Ge.jsx)("path",{d:"M96 96c-53.02 0-96 42.1-96 96s42.98 96 96 96c11.28 0 21.95-2.305 32-5.879V288c0 35.3-28.7 64-64 64-17.67 0-32 14.33-32 32s14.33 32 32 32c70.58 0 128-57.42 128-128v-96c0-53.9-43-96-96-96zm352 96c0-53.02-42.98-96-96-96s-96 42.98-96 96 42.98 96 96 96c11.28 0 21.95-2.305 32-5.879V288c0 35.3-28.7 64-64 64-17.67 0-32 14.33-32 32s14.33 32 32 32c70.58 0 128-57.42 128-128v-96z"})}),execute:function(e){var t=e.state,n=e.view;if(t&&n){var r=n.state.doc.lineAt(n.state.selection.main.from),i="> ",o=r.text.match(/^>\s/);o&&o[0]&&(i=""),n.dispatch({changes:{from:r.from,to:r.to,insert:""+i+r.text},selection:{anchor:n.state.selection.main.from+i.length}})}}},Mg={name:"link",keyCommand:"link",button:{"aria-label":"Add link text"},icon:(0,Ge.jsx)("svg",{fill:"currentColor",viewBox:"0 0 640 512",height:"16",width:"16",children:(0,Ge.jsx)("path",{d:"M172.5 131.1c55.6-55.59 148-55.59 203.6 0 50 50 57.4 129.7 16.3 187.2l-1.1 1.6c-10.3 14.3-30.3 17.7-44.6 7.4-14.4-10.3-17.8-30.3-7.5-44.6l1.1-1.6c22.9-32.1 19.3-76-8.6-103.9-31.4-31.4-82.5-31.4-114 0L105.5 289.5c-31.51 30.6-31.51 82.5 0 114 27.8 27.9 71.8 31.5 103.8 8.6l1.6-2c14.4-9.4 34.4-6.1 44.6 8.3 10.3 14.4 7 34.4-7.4 44.7l-1.6 1.1c-58.4 41.1-136.3 34.5-186.29-15.4-56.469-56.5-56.469-148.1 0-204.5L172.5 131.1zm295 248.9c-56.5 56.5-148 56.5-204.5 0-50-50-56.5-128.8-15.4-186.3l1.1-1.6c9.4-14.3 29.4-17.7 44.6-7.4 14.4 9.4 17.8 29.4 7.5 44.6l-1.1 1.6c-22.9 31.2-19.3 76 8.6 103.9 31.4 31.4 82.5 31.4 114 0l112.2-112.3c31.5-31.5 31.5-83.4 0-114-27.8-27.87-71.8-31.51-103.8-8.6l-1.6 1.1c-14.4 10.3-34.4 6.1-44.6-7.42-10.3-14.38-7-34.37 7.4-44.64l1.6-1.12C451 6.731 529.8 13.25 579.8 63.24c56.5 56.46 56.5 148.06 0 204.46L467.5 380z"})}),execute:function(e){var t=e.state,n=e.view;if(t&&n&&t&&n){var r=n.state.selection.main,i=n.state.sliceDoc(n.state.selection.main.from,n.state.selection.main.to);n.dispatch({changes:{from:r.from,to:r.to,insert:"["+i+"]()"},selection:_o.jT.range(r.from+3+i.length,r.to+3)})}}},Ig={name:"todo",keyCommand:"todo",button:{"aria-label":"Add todo List"},icon:(0,Ge.jsx)("svg",{fill:"currentColor",viewBox:"0 0 512 512",height:"14",width:"14",children:(0,Ge.jsx)("path",{d:"M152.1 38.16c9.8 8.87 10.6 24.04 1.7 33.9L81.84 152.1c-4.41 4.8-10.63 7.7-17.21 7-6.58 1.1-12.94-1.5-17.6-7l-40.001-40c-9.372-8.5-9.372-23.7 0-33.07 9.371-9.37 24.571-9.37 33.941 0l22.11 22.07 55.12-61.16c8.8-9.85 24-10.65 33.9-1.78zm0 160.04c9.8 8.8 10.6 24 1.7 33.9l-71.96 80c-4.41 4.8-10.63 7.7-17.21 7-6.58 1.1-12.94-1.5-17.6-7l-40.001-40c-9.372-8.5-9.372-23.7 0-33.1 9.371-9.3 24.571-9.3 33.941 0l22.11 22.1 55.12-61.2c8.8-9.8 24-10.6 33.9-1.7zM224 96c0-17.67 14.3-32 32-32h224c17.7 0 32 14.33 32 32 0 17.7-14.3 32-32 32H256c-17.7 0-32-14.3-32-32zm0 160c0-17.7 14.3-32 32-32h224c17.7 0 32 14.3 32 32s-14.3 32-32 32H256c-17.7 0-32-14.3-32-32zm-64 160c0-17.7 14.3-32 32-32h288c17.7 0 32 14.3 32 32s-14.3 32-32 32H192c-17.7 0-32-14.3-32-32zM0 416c0-26.5 21.49-48 48-48s48 21.5 48 48-21.49 48-48 48-48-21.5-48-48z"})}),execute:function(e){var t=e.state,n=e.view;if(t&&n){var r=n.state.doc.lineAt(n.state.selection.main.from),i="- [ ] ",o=r.text.match(/^-\s\[\s\]\s/);o&&o[0]&&(i=""),n.dispatch({changes:{from:r.from,to:r.to,insert:""+i+r.text},selection:{anchor:n.state.selection.main.from+i.length}})}}},Lg={name:"image",keyCommand:"image",button:{"aria-label":"Add image text"},icon:(0,Ge.jsx)("svg",{fill:"currentColor",viewBox:"0 0 16 16",height:"14",width:"14",children:(0,Ge.jsx)("path",{fillRule:"evenodd",d:"M1.75 2.5a.25.25 0 0 0-.25.25v10.5c0 .138.112.25.25.25h.94a.76.76 0 0 1 .03-.03l6.077-6.078a1.75 1.75 0 0 1 2.412-.06L14.5 10.31V2.75a.25.25 0 0 0-.25-.25H1.75zm12.5 11H4.81l5.048-5.047a.25.25 0 0 1 .344-.009l4.298 3.889v.917a.25.25 0 0 1-.25.25zm1.75-.25V2.75A1.75 1.75 0 0 0 14.25 1H1.75A1.75 1.75 0 0 0 0 2.75v10.5C0 14.216.784 15 1.75 15h12.5A1.75 1.75 0 0 0 16 13.25zM5.5 6a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0zM7 6a2 2 0 1 1-4 0 2 2 0 0 1 4 0z"})}),execute:function(e){var t=e.state,n=e.view;if(t&&n){var r=n.state.selection.main,i=n.state.sliceDoc(n.state.selection.main.from,n.state.selection.main.to);n.dispatch({changes:{from:r.from,to:r.to,insert:"![]("+i+")"},selection:_o.jT.range(r.from+4,r.to+4)})}}},Fg={name:"redo",keyCommand:"redo",button:{"aria-label":"redo text"},icon:(0,Ge.jsx)("svg",{viewBox:"0 0 512 512",height:"14",width:"14",children:(0,Ge.jsx)("path",{fill:"currentColor",d:"M58.79,439.13A16,16,0,0,1,48,424c0-73.1,14.68-131.56,43.65-173.77,35-51,90.21-78.46,164.35-81.87V88a16,16,0,0,1,27.05-11.57l176,168a16,16,0,0,1,0,23.14l-176,168A16,16,0,0,1,256,424V344.23c-45,1.36-79,8.65-106.07,22.64-29.25,15.12-50.46,37.71-73.32,67a16,16,0,0,1-17.82,5.28Z"})}),execute:function(e){var t=e.state,n=e.view;t&&n&&Uo(n)}},Zg={name:"undo",keyCommand:"undo",button:{"aria-label":"undo text"},icon:(0,Ge.jsx)("svg",{viewBox:"0 0 512 512",height:"14",width:"14",children:(0,Ge.jsx)("path",{fill:"currentColor",d:"M448,440a16,16,0,0,1-12.61-6.15c-22.86-29.27-44.07-51.86-73.32-67C335,352.88,301,345.59,256,344.23V424A16,16,0,0,1,229,435.57l-176-168a16,16,0,0,1,0-23.14l176-168A16,16,0,0,1,256,88v80.36c74.14,3.41,129.38,30.91,164.35,81.87C449.32,292.44,464,350.9,464,424a16,16,0,0,1-16,16Z"})}),execute:function(e){var t=e.state,n=e.view;t&&n&&Wo(n)}},$g=function(e){var t=e.editorProps,n=(0,V.useRef)(0),r=(0,V.useState)(!1),i=(0,ee.Z)(r,2),o=i[0],a=i[1];return(0,V.useEffect)((function(){if(t.containerEditor&&t.containerEditor.current&&t.containerEditor.current.parentElement){var e=t.containerEditor.current.parentElement;new ResizeObserver((function(e){var r,i=(0,K.Z)(e);try{for(i.s();!(r=i.n()).done;){var a,s,u,l=r.value;n.current||(n.current=l.target.clientHeight),null!=(a=t.editor)&&null!=(s=a.current)&&null!=(u=s.view)&&u.dom&&(o?t.editor.current.view.dom.style.height=l.target.clientHeight+"px":t.editor.current.view.dom.removeAttribute("style"))}}catch(c){i.e(c)}finally{i.f()}})).observe(e)}}),[t.containerEditor,t.editor,o]),(0,V.useEffect)((function(){if(document&&t&&t.container&&t.container.current&&t.editor){var e=t.container.current;document.body.style.overflow=o?"hidden":"initial",e&&o?(e.style.zIndex="999",e.style.position="fixed",e.style.top="0px",e.style.bottom="0px",e.style.left="0px",e.style.right="0px"):e&&(e.style.position="initial",e.style.top="initial",e.style.bottom="initial",e.style.left="initial",e.style.right="initial")}}),[o,t]),(0,Ge.jsx)("button",{onClick:function(){return a(!o)},type:"button",className:o?"active":"",children:e.command.icon})},jg={name:"fullscreen",keyCommand:"fullscreen",button:function(e,t,n){return(0,Ge.jsx)($g,{command:e,editorProps:te({},t,n)})},icon:(0,Ge.jsx)("svg",{fill:"currentColor",viewBox:"0 0 448 512",height:"15",width:"15",children:(0,Ge.jsx)("path",{d:"M128 32H32C14.31 32 0 46.31 0 64v96c0 17.69 14.31 32 32 32s32-14.31 32-32V96h64c17.69 0 32-14.31 32-32s-14.3-32-32-32zm288 0h-96c-17.69 0-32 14.31-32 32s14.31 32 32 32h64v64c0 17.69 14.31 32 32 32s32-14.31 32-32V64c0-17.69-14.3-32-32-32zM128 416H64v-64c0-17.69-14.31-32-32-32S0 334.31 0 352v96c0 17.69 14.31 32 32 32h96c17.69 0 32-14.31 32-32s-14.3-32-32-32zm288-96c-17.69 0-32 14.31-32 32v64h-64c-17.69 0-32 14.31-32 32s14.31 32 32 32h96c17.69 0 32-14.31 32-32v-96c0-17.7-14.3-32-32-32z"})})},Bg=function(e){var t=e.editorProps,n=t.containerEditor,r=t.preview,i=t.previewWidth,o=void 0===i?"50%":i,a=(0,V.useState)(e.editorProps.visible),s=(0,ee.Z)(a,2),u=s[0],l=s[1];return(0,V.useEffect)((function(){return l(e.editorProps.visible)}),[e.editorProps.visible]),(0,V.useEffect)((function(){if(r.current){var e=r.current;r&&(e.style.borderBottomRightRadius="3px"),e&&u?(e.style.width=o,e.style.overflow="auto","100%"!==o&&(e.style.borderLeft="1px solid var(--color-border-muted)"),e.style.padding="20px",n.current&&(n.current.style.width="calc(100% - "+o+")")):e&&(e.style.width="0%",e.style.overflow="hidden",e.style.borderLeft="0px",e.style.padding="0",n.current&&(n.current.style.width="100%"))}}),[u,n,r,o]),(0,Ge.jsx)("button",{onClick:function(){return l(!u)},type:"button",className:u?"active":"",children:e.command.icon})},zg={name:"preview",keyCommand:"preview",button:function(e,t,n){return(0,Ge.jsx)(Bg,{command:e,editorProps:te({},t,n)})},icon:(0,Ge.jsx)("svg",{fill:"currentColor",viewBox:"0 0 576 512",height:"16",width:"16",children:(0,Ge.jsx)("path",{d:"M279.6 160.4c2.8-.3 5.6-.4 8.4-.4 53 0 96 42.1 96 96 0 53-43 96-96 96-53.9 0-96-43-96-96 0-2.8.1-5.6.4-8.4 9.3 4.5 20.1 8.4 31.6 8.4 35.3 0 64-28.7 64-64 0-11.5-3.9-22.3-8.4-31.6zm201-47.8c46.8 43.4 78.1 94.5 92.9 131.1 3.3 7.9 3.3 16.7 0 24.6-14.8 35.7-46.1 86.8-92.9 131.1C433.5 443.2 368.8 480 288 480s-145.5-36.8-192.58-80.6C48.62 355.1 17.34 304 2.461 268.3a31.967 31.967 0 0 1 0-24.6C17.34 207.1 48.62 156 95.42 112.6 142.5 68.84 207.2 32 288 32c80.8 0 145.5 36.84 192.6 80.6zM288 112c-79.5 0-144 64.5-144 144s64.5 144 144 144 144-64.5 144-144-64.5-144-144-144z"})})},Hg={undo:Zg,redo:Fg,bold:Eg,italic:Ag,header:_g,strike:Qg,underline:Pg,quote:Ng,olist:Rg,ulist:Dg,todo:Ig,link:Mg,image:Lg,fullscreen:jg,preview:zg},Wg=function(){return Object.keys(Hg).filter((function(e){return!/^(fullscreen|preview)/.test(e)})).map((function(e){return Hg[e]}))},Ug=function(){return[zg,jg]},qg=["prefixCls","className","onClick","toolbars","editor","mode","preview","container","containerEditor","editorProps"];function Xg(e){var t=e.prefixCls,n=void 0===t?"md-editor":t,r=e.className,i=e.toolbars,o=void 0===i?[]:i,a=e.editor,s=e.mode,u=e.preview,l=e.container,c=e.containerEditor,h=e.editorProps,f=void 0===h?{}:h,d=Xe(e,qg);if(!o||0===o.length)return null;return(0,Ge.jsx)("div",te({className:n+"-toolbar "+(r||"")+" "+(s?n+"-toolbar-mode":"")},d,{children:(0,rt.Z)(o).map((function(e,t){var n={type:"button"},r="string"===typeof e?Hg[e]:e;if(!r)return null;if(n.children=r.icon,n.onClick=function(){var e;(e=r.execute)&&a&&a&&e(a.current)},r.button&&"object"===typeof r.button){var i=r.button;Object.keys(i).forEach((function(e){n[e]=i[e]}))}else if("function"===typeof r.button)return V.cloneElement(r.button(r,f,{preview:u,container:l,containerEditor:c,editor:a,editorProps:f}),{key:t});return(0,V.createElement)("button",te({},n,{key:t}))}))}))}var Gg=function(e){var t=e.theme,n=e.settings,r=e.styles,i={"&":{backgroundColor:n.background,color:n.foreground},".cm-gutters":{}};n.gutterBackground&&(i[".cm-gutters"].backgroundColor=n.gutterBackground),n.gutterForeground&&(i[".cm-gutters"].color=n.gutterForeground),n.gutterBorder&&(i[".cm-gutters"].borderRightColor=n.gutterBorder),n.caret&&(i[".cm-content"]={caretColor:n.caret},i[".cm-cursor, .cm-dropCursor"]={borderLeftColor:n.caret}),n.lineHighlight&&(i[".cm-activeLine"]={backgroundColor:n.lineHighlight},i[".cm-activeLineGutter"]={backgroundColor:n.lineHighlight}),n.selection&&(i["&.cm-focused .cm-selectionBackground .cm-selectionBackground, & .cm-selectionLayer .cm-selectionBackground, ::selection"]={backgroundColor:n.selection}),n.selectionMatch&&(i["& .cm-selectionMatch"]={backgroundColor:n.selectionMatch});var o=Ao.tk.theme(i,{dark:"dark"===t}),a=wo.Qf.define(r);return[o,(0,wo.nF)(a)]},Jg=Gg({theme:"light",settings:{background:"var(--color-canvas-subtle)",foreground:"var(--color-fg-default)",caret:"var(--color-fg-default)",selection:"var(--color-border-default)",selectionMatch:"var(--color-border-muted)",lineHighlight:"var(--color-neutral-muted)",gutterBackground:"var(--color-canvas-subtle)",gutterForeground:"var(--color-fg-muted)",gutterBorder:"var(--color-border-muted)"},styles:[{tag:Lu.pJ.comment,color:"var(--color-prettylights-syntax-comment)"},{tag:Lu.pJ.variableName,color:"var(--color-prettylights-syntax-variable)"},{tag:[Lu.pJ.string,Lu.pJ.special(Lu.pJ.brace)],color:"var(--color-prettylights-syntax-entity)"},{tag:Lu.pJ.number,color:"var(--color-prettylights-syntax-variable)"},{tag:[Lu.pJ.bool,Lu.pJ.null],color:"var(--color-prettylights-syntax-entity)"},{tag:Lu.pJ.keyword,color:"var(--color-prettylights-syntax-keyword)",fontWeight:"bold"},{tag:Lu.pJ.string,color:"var(--color-prettylights-syntax-string)"},{tag:Lu.pJ.operator,color:"var(--color-accent-emphasis)"},{tag:Lu.pJ.deleted,color:"var(--color-prettylights-syntax-markup-deleted-bg)"},{tag:Lu.pJ.deleted,color:"red"},{tag:Lu.pJ.className,color:"var(--color-prettylights-syntax-variable)"},{tag:Lu.pJ.definition(Lu.pJ.typeName),color:"var(--color-prettylights-syntax-entity)"},{tag:Lu.pJ.typeName,color:"var(--color-prettylights-syntax-entity)"},{tag:Lu.pJ.list,color:"var(--color-prettylights-syntax-markup-list)"},{tag:Lu.pJ.heading,color:"var(--color-prettylights-syntax-markup-heading)",fontWeight:"bold"},{tag:Lu.pJ.regexp,color:"var(--color-prettylights-syntax-string-regexp)"},{tag:Lu.pJ.literal,color:"var(--color-prettylights-syntax-markup-italic)"},{tag:Lu.pJ.link,color:"var(--color-prettylights-syntax-constant-other-reference-link)",textDecoration:"underline"},{tag:Lu.pJ.angleBracket,color:"var(--color-fg-default)"},{tag:Lu.pJ.tagName,color:"var(--color-prettylights-syntax-entity-tag)"},{tag:Lu.pJ.attributeName,color:"var(--color-prettylights-syntax-constant)"}]}),Vg=["prefixCls","className","onChange","toolbars","toolbarsMode","visible","renderPreview","visibleEditor","hideToolbar","previewProps","extensions","previewWidth","reExtensions"],Yg=Ao.tk.theme({"&.cm-editor, & .cm-scroller":{borderBottomRightRadius:"3px",borderBottomLeftRadius:"3px"}}),Kg=V.forwardRef(tv);Kg.Markdown=Cg;var ev=Kg;function tv(e,t){var n=e.prefixCls,r=void 0===n?"md-editor":n,i=e.className,o=e.onChange,a=e.toolbars,s=void 0===a?Wg():a,u=e.toolbarsMode,l=void 0===u?Ug():u,c=e.visible,h=void 0===c||c,f=e.renderPreview,d=e.visibleEditor,p=void 0===d||d,m=e.hideToolbar,g=void 0===m||m,v=e.previewProps,O=void 0===v?{}:v,y=e.extensions,k=void 0===y?[]:y,b=e.previewWidth,x=void 0===b?"50%":b,T=e.reExtensions,w=Xe(e,Vg),S=(0,V.useState)(e.value||""),C=(0,ee.Z)(S,2),E=C[0],A=C[1],_=(0,V.useRef)(null),Q=(0,V.useRef)(null),P=(0,V.useRef)(null),R=(0,V.useRef)(null);(0,V.useImperativeHandle)(t,(function(){return{editor:_,preview:R}}),[_]);var D={preview:R,editor:_,container:Q,containerEditor:P,editorProps:te({},e,{previewWidth:x})},N="number"===typeof w.height?w.height+"px":w.height,M=T||[(0,To.markdown)({base:To.markdownLanguage,codeLanguages:Eo}),Yg].concat((0,rt.Z)(k)),I=r+"-preview",L=[r,"wmde-markdown-var",i].filter(Boolean).join(" ");O.source=E;return(0,Ge.jsxs)("div",{className:L,ref:Q,children:[g&&(0,Ge.jsxs)("div",{className:r+"-toolbar-warp",children:[(0,Ge.jsx)(Xg,te({},D,{toolbars:s})),(0,Ge.jsx)(Xg,te({},D,{toolbars:l,mode:!0}))]}),(0,Ge.jsxs)("div",{className:r+"-content",style:{height:w.height},children:[(0,Ge.jsx)("div",{className:r+"-content-editor",ref:P,children:p&&(0,Ge.jsx)(al,te({theme:Jg},w,{extensions:M,height:N,ref:_,onChange:function(e,t){A(e),o&&o(e,t)}}))}),(0,Ge.jsx)("div",{className:I,ref:R,children:f?f(O,!!h):(0,Ge.jsx)(Cg,te({},O,{"data-visible":!!h}))})]})]})}var nv,rv,iv,ov,av,sv,uv,lv=Gg({theme:"dark",settings:{background:"#0f0f0f",foreground:"#defdef",caret:"#00FF00",selection:"#515151",selectionMatch:"#515151",gutterBackground:"#555",gutterForeground:"#FFFFFF",lineHighlight:"#314151"},styles:[{tag:Lu.pJ.keyword,color:"darkgoldenrod",fontWeight:"bold"},{tag:Lu.pJ.atom,color:"#77F"},{tag:Lu.pJ.comment,color:"#7a7b7c",fontStyle:"italic"},{tag:Lu.pJ.number,color:"violet"},{tag:Lu.pJ.definition(Lu.pJ.variableName),color:"#fffabc"},{tag:Lu.pJ.variableName,color:"#abcdef"},{tag:Lu.pJ.function(Lu.pJ.variableName),color:"#fffabc"},{tag:Lu.pJ.typeName,color:"#FFDD44"},{tag:Lu.pJ.tagName,color:"#def"},{tag:Lu.pJ.string,color:"#2b4"},{tag:Lu.pJ.meta,color:"#C9F"},{tag:Lu.pJ.bracket,color:"#8a8a8a"},{tag:Lu.pJ.attributeName,color:"#DDFF00"},{tag:Lu.pJ.heading,color:"aquamarine",fontWeight:"bold"},{tag:Lu.pJ.link,color:"blueviolet",fontWeight:"bold"}]}),cv=Gg({theme:"dark",settings:{background:"#282b2e",foreground:"#a9b7c6",caret:"#00FF00",selection:"#343739",selectionMatch:"#343739",lineHighlight:"#343739"},styles:[{tag:[Lu.pJ.keyword,Lu.pJ.deleted,Lu.pJ.className],color:"#cc7832"},{tag:[Lu.pJ.number,Lu.pJ.literal,Lu.pJ.derefOperator],color:"#6897bb"},{tag:[Lu.pJ.link,Lu.pJ.variableName],color:"#629755"},{tag:[Lu.pJ.comment,Lu.pJ.quote],color:"grey"},{tag:[Lu.pJ.meta,Lu.pJ.documentMeta],color:"#bbb529"},{tag:[Lu.pJ.string,Lu.pJ.propertyName,Lu.pJ.attributeValue],color:"#6a8759"},{tag:[Lu.pJ.heading,Lu.pJ.typeName],color:"#ffc66d"},{tag:[Lu.pJ.attributeName],color:"#a9b7c6"},{tag:[Lu.pJ.emphasis],fontStyle:"italic"}]}),hv=Gg({theme:"dark",settings:{background:"#272C35",foreground:"#9d9b97",caret:"#797977",selection:"#ffffff30",selectionMatch:"#2B323D",gutterBackground:"#272C35",gutterForeground:"#465063",lineHighlight:"#2B323D"},styles:[{tag:[Lu.pJ.function(Lu.pJ.variableName),Lu.pJ.function(Lu.pJ.propertyName),Lu.pJ.url,Lu.pJ.processingInstruction],color:"hsl(207, 82%, 66%)"},{tag:[Lu.pJ.tagName,Lu.pJ.heading],color:"#e06c75"},{tag:Lu.pJ.comment,color:"#54636D"},{tag:[Lu.pJ.propertyName],color:"hsl(220, 14%, 71%)"},{tag:[Lu.pJ.attributeName,Lu.pJ.number],color:"hsl( 29, 54%, 61%)"},{tag:Lu.pJ.className,color:"hsl( 39, 67%, 69%)"},{tag:Lu.pJ.keyword,color:"hsl(286, 60%, 67%)"},{tag:[Lu.pJ.string,Lu.pJ.regexp,Lu.pJ.special(Lu.pJ.propertyName)],color:"#98c379"}]}),fv=Gg({theme:"light",settings:{background:"#FFFFFF",foreground:"#000000",caret:"#FBAC52",selection:"#FFD420",selectionMatch:"#FFD420",gutterBackground:"#f5f5f5",gutterForeground:"#4D4D4C",lineHighlight:"#00000012"},styles:[{tag:[Lu.pJ.meta,Lu.pJ.comment],color:"#804000"},{tag:[Lu.pJ.keyword,Lu.pJ.strong],color:"#0000FF"},{tag:[Lu.pJ.number],color:"#FF0080"},{tag:[Lu.pJ.string],color:"#FF0080"},{tag:[Lu.pJ.variableName],color:"#006600"},{tag:[Lu.pJ.escape],color:"#33CC33"},{tag:[Lu.pJ.tagName],color:"#1C02FF"},{tag:[Lu.pJ.heading],color:"#0C07FF"},{tag:[Lu.pJ.quote],color:"#000000"},{tag:[Lu.pJ.list],color:"#B90690"},{tag:[Lu.pJ.documentMeta],color:"#888888"},{tag:[Lu.pJ.function(Lu.pJ.variableName)],color:"#0000A2"},{tag:[Lu.pJ.definition(Lu.pJ.typeName),Lu.pJ.typeName],color:"#6D79DE"}]}),dv=Gg({theme:"dark",settings:{background:"#28211c",foreground:"#9d9b97",caret:"#797977",selection:"#36312e",selectionMatch:"#4f382b",gutterBackground:"#28211c",gutterForeground:"#666666",lineHighlight:"rgba(255, 255, 255, 0.1)"},styles:[{tag:[Lu.pJ.atom,Lu.pJ.number,Lu.pJ.link,Lu.pJ.bool],color:"#9b859d"},{tag:Lu.pJ.comment,color:"#937121"},{tag:[Lu.pJ.keyword,Lu.pJ.tagName],color:"#cf6a4c"},{tag:Lu.pJ.string,color:"#f9ee98"},{tag:Lu.pJ.bracket,color:"#9d9b97"},{tag:[Lu.pJ.variableName],color:"#5ea6ea"},{tag:Lu.pJ.definition(Lu.pJ.variableName),color:"#cf7d34"},{tag:[Lu.pJ.function(Lu.pJ.variableName),Lu.pJ.className],color:"#cf7d34"},{tag:[Lu.pJ.propertyName,Lu.pJ.attributeName],color:"#54be0d"}]}),pv=Gg({theme:"dark",settings:{background:"#2B2B2B",foreground:"#f8f8f2",caret:"#FFFFFF",selection:"rgba(255, 255, 255, 0.1)",selectionMatch:"rgba(255, 255, 255, 0.2)",gutterBackground:"rgba(255, 255, 255, 0.1)",gutterForeground:"#999",lineHighlight:"rgba(255, 255, 255, 0.1)"},styles:[{tag:[Lu.pJ.atom,Lu.pJ.number],color:"#bd93f9"},{tag:[Lu.pJ.comment],color:"#61A151"},{tag:[Lu.pJ.string],color:"#6A8759"},{tag:[Lu.pJ.variableName,Lu.pJ.operator],color:"#A9B7C6"},{tag:[Lu.pJ.meta,Lu.pJ.className],color:"#A9B7C6"},{tag:[Lu.pJ.propertyName],color:"#FFC66D"},{tag:[Lu.pJ.keyword],color:"#CC7832"},{tag:[Lu.pJ.tagName],color:"#ff79c6"},{tag:[Lu.pJ.typeName],color:"#ffb86c"}]}),mv=Gg({theme:"dark",settings:{background:"#282a36",foreground:"#f8f8f2",caret:"#f8f8f0",selection:"rgba(255, 255, 255, 0.1)",selectionMatch:"rgba(255, 255, 255, 0.2)",gutterBackground:"#282a36",gutterForeground:"#6D8A88",lineHighlight:"rgba(255, 255, 255, 0.1)"},styles:[{tag:Lu.pJ.comment,color:"#6272a4"},{tag:Lu.pJ.string,color:"#f1fa8c"},{tag:Lu.pJ.atom,color:"#bd93f9"},{tag:Lu.pJ.meta,color:"#f8f8f2"},{tag:[Lu.pJ.keyword,Lu.pJ.operator,Lu.pJ.tagName],color:"#ff79c6"},{tag:[Lu.pJ.function(Lu.pJ.propertyName),Lu.pJ.propertyName],color:"#66d9ef"},{tag:[Lu.pJ.definition(Lu.pJ.variableName),Lu.pJ.function(Lu.pJ.variableName),Lu.pJ.className,Lu.pJ.attributeName],color:"#50fa7b"},{tag:Lu.pJ.atom,color:"#bd93f9"}]}),gv=Gg({theme:"light",settings:{background:"#faf8f5",foreground:"#b29762",caret:"#93abdc",selection:"#e3dcce",selectionMatch:"#e3dcce",gutterBackground:"#faf8f5",gutterForeground:"#cdc4b1",lineHighlight:"#EFEFEF"},styles:[{tag:[Lu.pJ.comment,Lu.pJ.bracket],color:"#b6ad9a"},{tag:[Lu.pJ.atom,Lu.pJ.number,Lu.pJ.keyword,Lu.pJ.link,Lu.pJ.attributeName,Lu.pJ.quote],color:"#063289"},{tag:[Lu.pJ.emphasis,Lu.pJ.heading,Lu.pJ.tagName,Lu.pJ.propertyName,Lu.pJ.variableName],color:"#2d2006"},{tag:[Lu.pJ.typeName,Lu.pJ.url,Lu.pJ.string],color:"#896724"},{tag:[Lu.pJ.operator,Lu.pJ.string],color:"#1659df"},{tag:[Lu.pJ.propertyName],color:"#b29762"},{tag:[Lu.pJ.unit,Lu.pJ.punctuation],color:"#063289"}]}),vv=Gg({theme:"dark",settings:{background:"#2a2734",foreground:"#6c6783",caret:"#ffad5c",selection:"rgba(255, 255, 255, 0.1)",gutterBackground:"#2a2734",gutterForeground:"#545167",lineHighlight:"#36334280"},styles:[{tag:[Lu.pJ.comment,Lu.pJ.bracket],color:"#6c6783"},{tag:[Lu.pJ.atom,Lu.pJ.number,Lu.pJ.keyword,Lu.pJ.link,Lu.pJ.attributeName,Lu.pJ.quote],color:"#ffcc99"},{tag:[Lu.pJ.emphasis,Lu.pJ.heading,Lu.pJ.tagName,Lu.pJ.propertyName,Lu.pJ.className,Lu.pJ.variableName],color:"#eeebff"},{tag:[Lu.pJ.typeName,Lu.pJ.url],color:"#7a63ee"},{tag:Lu.pJ.operator,color:"#ffad5c"},{tag:Lu.pJ.string,color:"#ffb870"},{tag:[Lu.pJ.propertyName],color:"#9a86fd"},{tag:[Lu.pJ.unit,Lu.pJ.punctuation],color:"#e09142"}]}),Ov=Gg({theme:"light",settings:{background:"#fff",foreground:"#000",caret:"#FFFFFF",selection:"#d7d4f0",selectionMatch:"#d7d4f0",gutterBackground:"#f7f7f7",gutterForeground:"#999",lineHighlight:"#e8f2ff"},styles:[{tag:[Lu.pJ.comment],color:"#3F7F5F"},{tag:[Lu.pJ.documentMeta],color:"#FF1717"},{tag:Lu.pJ.keyword,color:"#7F0055",fontWeight:"bold"},{tag:Lu.pJ.atom,color:"#00f"},{tag:Lu.pJ.number,color:"#164"},{tag:Lu.pJ.propertyName,color:"#164"},{tag:[Lu.pJ.variableName,Lu.pJ.definition(Lu.pJ.variableName)],color:"#0000C0"},{tag:Lu.pJ.function(Lu.pJ.variableName),color:"#0000C0"},{tag:Lu.pJ.string,color:"#2A00FF"},{tag:Lu.pJ.operator,color:"black"},{tag:Lu.pJ.tagName,color:"#170"},{tag:Lu.pJ.attributeName,color:"#00c"},{tag:Lu.pJ.link,color:"#219"}]}),yv=Gg({theme:"light",settings:{background:"#fff",foreground:"#24292e",selection:"#BBDFFF",selectionMatch:"#BBDFFF",gutterBackground:"#fff",gutterForeground:"#6e7781"},styles:[{tag:[Lu.pJ.comment,Lu.pJ.bracket],color:"#6a737d"},{tag:[Lu.pJ.className,Lu.pJ.propertyName],color:"#6f42c1"},{tag:[Lu.pJ.variableName,Lu.pJ.attributeName,Lu.pJ.number,Lu.pJ.operator],color:"#005cc5"},{tag:[Lu.pJ.keyword,Lu.pJ.typeName,Lu.pJ.typeOperator,Lu.pJ.typeName],color:"#d73a49"},{tag:[Lu.pJ.string,Lu.pJ.meta,Lu.pJ.regexp],color:"#032f62"},{tag:[Lu.pJ.name,Lu.pJ.quote],color:"#22863a"},{tag:[Lu.pJ.heading],color:"#24292e",fontWeight:"bold"},{tag:[Lu.pJ.emphasis],color:"#24292e",fontStyle:"italic"},{tag:[Lu.pJ.deleted],color:"#b31d28",backgroundColor:"ffeef0"}]}),kv=Gg({theme:"dark",settings:{background:"#0d1117",foreground:"#c9d1d9",caret:"#c9d1d9",selection:"#003d73",selectionMatch:"#003d73",lineHighlight:"#36334280"},styles:[{tag:[Lu.pJ.comment,Lu.pJ.bracket],color:"#8b949e"},{tag:[Lu.pJ.className,Lu.pJ.propertyName],color:"#d2a8ff"},{tag:[Lu.pJ.variableName,Lu.pJ.attributeName,Lu.pJ.number,Lu.pJ.operator],color:"#79c0ff"},{tag:[Lu.pJ.keyword,Lu.pJ.typeName,Lu.pJ.typeOperator,Lu.pJ.typeName],color:"#ff7b72"},{tag:[Lu.pJ.string,Lu.pJ.meta,Lu.pJ.regexp],color:"#a5d6ff"},{tag:[Lu.pJ.name,Lu.pJ.quote],color:"#7ee787"},{tag:[Lu.pJ.heading],color:"#d2a8ff",fontWeight:"bold"},{tag:[Lu.pJ.emphasis],color:"#d2a8ff",fontStyle:"italic"},{tag:[Lu.pJ.deleted],color:"#ffdcd7",backgroundColor:"ffeef0"}]}),bv=Gg({theme:"dark",settings:{background:"#272822",foreground:"#FFFFFF",caret:"#FFFFFF",selection:"#49483E",selectionMatch:"#49483E",gutterBackground:"#272822",gutterForeground:"#FFFFFF70",lineHighlight:"#00000059"},styles:[{tag:[Lu.pJ.comment,Lu.pJ.documentMeta],color:"#8292a2"},{tag:[Lu.pJ.number,Lu.pJ.bool,Lu.pJ.null,Lu.pJ.atom],color:"#ae81ff"},{tag:[Lu.pJ.attributeValue,Lu.pJ.className,Lu.pJ.name],color:"#e6db74"},{tag:[Lu.pJ.propertyName,Lu.pJ.attributeName],color:"#a6e22e"},{tag:[Lu.pJ.variableName],color:"#9effff"},{tag:[Lu.pJ.squareBracket],color:"#bababa"},{tag:[Lu.pJ.string,Lu.pJ.special(Lu.pJ.brace)],color:"#e6db74"},{tag:[Lu.pJ.regexp,Lu.pJ.className,Lu.pJ.typeName,Lu.pJ.definition(Lu.pJ.typeName)],color:"#66d9ef"},{tag:[Lu.pJ.definition(Lu.pJ.variableName),Lu.pJ.definition(Lu.pJ.propertyName),Lu.pJ.function(Lu.pJ.variableName)],color:"#fd971f"},{tag:[Lu.pJ.keyword,Lu.pJ.definitionKeyword,Lu.pJ.modifier,Lu.pJ.tagName,Lu.pJ.angleBracket],color:"#f92672"}]}),xv=Gg({theme:"dark",settings:{background:"#303841",foreground:"#FFFFFF",caret:"#FBAC52",selection:"#4C5964",selectionMatch:"#3A546E",gutterBackground:"#303841",gutterForeground:"#FFFFFF70",lineHighlight:"#00000059"},styles:[{tag:[Lu.pJ.meta,Lu.pJ.comment],color:"#A2A9B5"},{tag:[Lu.pJ.attributeName,Lu.pJ.keyword],color:"#B78FBA"},{tag:Lu.pJ.function(Lu.pJ.variableName),color:"#5AB0B0"},{tag:[Lu.pJ.string,Lu.pJ.regexp,Lu.pJ.attributeValue],color:"#99C592"},{tag:Lu.pJ.operator,color:"#f47954"},{tag:[Lu.pJ.propertyName,Lu.pJ.typeName],color:"#629ccd"},{tag:[Lu.pJ.tagName,Lu.pJ.modifier],color:"#E35F63"},{tag:[Lu.pJ.number,Lu.pJ.definition(Lu.pJ.tagName),Lu.pJ.className,Lu.pJ.definition(Lu.pJ.variableName)],color:"#fbac52"},{tag:[Lu.pJ.atom,Lu.pJ.bool,Lu.pJ.special(Lu.pJ.variableName)],color:"#E35F63"}]}),Tv=Gg({theme:"light",settings:{background:"#fff",foreground:"#3D3D3D",selection:"#BBDFFF",selectionMatch:"#BBDFFF",gutterBackground:"#fff",gutterForeground:"#AFAFAF",lineHighlight:"#EDF4FF"},styles:[{tag:[Lu.pJ.comment,Lu.pJ.quote],color:"#707F8D"},{tag:[Lu.pJ.typeName,Lu.pJ.typeOperator],color:"#aa0d91"},{tag:[Lu.pJ.keyword],color:"#aa0d91",fontWeight:"bold"},{tag:[Lu.pJ.string,Lu.pJ.meta],color:"#D23423"},{tag:[Lu.pJ.name],color:"#032f62"},{tag:[Lu.pJ.typeName],color:"#522BB2"},{tag:[Lu.pJ.variableName],color:"#23575C"},{tag:[Lu.pJ.definition(Lu.pJ.variableName)],color:"#327A9E"},{tag:[Lu.pJ.regexp,Lu.pJ.link],color:"#0e0eff"}]}),wv=Gg({theme:"dark",settings:{background:"#292A30",foreground:"#CECFD0",caret:"#fff",selection:"#727377",selectionMatch:"#727377",lineHighlight:"#2F3239"},styles:[{tag:[Lu.pJ.comment,Lu.pJ.quote],color:"#7F8C98"},{tag:[Lu.pJ.keyword],color:"#FF7AB2",fontWeight:"bold"},{tag:[Lu.pJ.string,Lu.pJ.meta],color:"#FF8170"},{tag:[Lu.pJ.typeName],color:"#DABAFF"},{tag:[Lu.pJ.definition(Lu.pJ.variableName)],color:"#6BDFFF"},{tag:[Lu.pJ.name],color:"#6BAA9F"},{tag:[Lu.pJ.variableName],color:"#ACF2E4"},{tag:[Lu.pJ.regexp,Lu.pJ.link],color:"#FF8170"}]}),Sv='
\n

\u5fae\u4fe1\u516c\u4f17\u53f7 Markdown \u7f16\u8f91\u5668

\n
\n\n[![\u5fae\u4fe1\u516c\u4f17\u53f7 Markdown \u7f16\u8f91\u5668](https://user-images.githubusercontent.com/1680273/188264183-a6b8cb6a-92e1-4a73-afc5-4f0234b26ed3.png)](https://jaywcjlove.github.io/wxmp)\n\n\u5fae\u4fe1\u516c\u4f17\u53f7\u6587\u7ae0 Markdown \u5728\u7ebf\u7f16\u8f91\u5668\uff0c\u4f7f\u7528 markdown \u8bed\u6cd5\u521b\u5efa\u4e00\u7bc7\u7b80\u4ecb\u7f8e\u89c2\u5927\u65b9\u7684\u5fae\u4fe1\u516c\u4f17\u53f7\u56fe\u6587\u3002\u7531\u4e8e\u53d1\u7248\u672c\u9ebb\u70e6\uff0c\u548c\u4e00\u4e9b\u529f\u80fd\u65e0\u6cd5\u6269\u5c55\u505c\u6ede\u5f00\u53d1\u4e86\uff0c\u672a\u6765\u4e0d\u518d\u5f00\u53d1 Chrome \u7684\u63d2\u4ef6(\u6682\u5b58\u5728 chrome \u5206\u652f)\uff0c\u901a\u8fc7 web \u7248\u672c\u5b9a\u5236\u66f4\u4e30\u5bcc\u7684\u529f\u80fd\u3002\n\n[![Markdown \u7f16\u8f91\u5668\u684c\u9762\u5e94\u7528](https://user-images.githubusercontent.com/1680273/188407235-ead43d61-2ef8-416a-926f-396d8b824b33.png)](https://github.com/jaywcjlove/wxmp/releases)\n\n## \u529f\u80fd\u7279\u6027\n\n\u5f00\u53d1\u8ba1\u5212\u548c\u4e00\u4e9b\u529f\u80fd\u4ecb\u7ecd\uff0c\u6709\u9700\u6c42\u53ef\u4ee5\u5728 issue \u4e2d\u63d0\uff0c\u4f7f\u5f97\u5de5\u5177\u53d8\u5f97\u66f4\u52a0\u5b8c\u5584\u3002\u4e0b\u9762\u793a\u4f8b\u7528\u4e8e web \u5e94\u7528\u4e2d\u6548\u679c\u5c55\u793a\u3002\n\n- [x] \u652f\u6301 Markdown \u6240\u6709\u57fa\u7840\u8bed\u6cd5\n- [x] \u652f\u6301\u81ea\u5b9a\u4e49 CSS \u6837\u5f0f\n- [x] \u652f\u6301\u4e3b\u9898\u9009\u62e9 & \u7f16\u8f91\u9884\u89c8\u3002\n- [x] \u652f\u6301\u660e\u6697\u4e24\u79cd\u4e3b\u9898\u9884\u89c8\u3002\n- [ ] \u652f\u6301\u4ee3\u7801\u5757\u4e3b\u9898\u6837\u5f0f\u9009\u62e9\u3002\n- [x] \u652f\u6301\u8272\u76d8\u53d6\u8272\uff0c\u5feb\u901f\u66ff\u6362\u6587\u7ae0\u6574\u4f53\u8272\u8c03\n- [x] \u652f\u6301 URL \u53c2\u6570\u52a0\u8f7d Markdown \u5185\u5bb9\u3002\n- [x] \u652f\u6301 URL \u53c2\u6570\u9009\u62e9\u9884\u89c8\u4e3b\u9898\u3002\n- [x] CI \u81ea\u52a8\u751f\u6210 Electron \u684c\u9762\u5e94\u7528\u3002\n- [ ] ~~\u652f\u6301\u5168\u5c40\u5b57\u53f7\u5927\u5c0f\u9009\u62e9\u3002~~\n\n### \u652f\u6301\u4ee3\u7801\u5757\u6837\u5f0f\n\n\u4e0b\u9762\u662f `jsx` \u4ee3\u7801\u5757\u5c55\u793a\u793a\u4f8b\uff0c\u5e76\u9ad8\u4eae\u4ee3\u7801\uff0c\u7528\u4e8e web \u5e94\u7528\u4e2d\u6548\u679c\u5c55\u793a\u3002\n\n```jsx\nfunction Demo() {\n return
Hello World!
\n}\n```\n\n\u4e0b\u9762\u662f `css` \u4ee3\u7801\u5757\u5c55\u793a\u793a\u4f8b\uff0c\u5e76\u9ad8\u4eae\u4ee3\u7801\uff0c\u7528\u4e8e web \u5e94\u7528\u4e2d\u6548\u679c\u5c55\u793a\u3002\n\n```css\nli {\n font-size: 16px;\n margin: 0;\n line-height: 26px;\n color: rgb(30 41 59);\n font-family:-apple-system-font,BlinkMacSystemFont, Helvetica Neue, PingFang SC, Hiragino Sans GB , Microsoft YaHei UI , Microsoft YaHei ,Arial,sans-serif;\n}\n```\n\n### \u652f\u6301\u5185\u8054\u4ee3\u7801\n\n> \u7528\u4e8e web \u5e94\u7528\u4e2d\u6548\u679c\u5c55\u793a\u3002\n\nInline Code `{code: 0}`\n\n### \u652f\u6301\u8868\u683c\n\n\u8868\u683c\u65e0\u6cd5\u4f7f\u7528\u81ea\u5b9a\u4e49\u6837\u5f0f\uff0c\u6682\u65f6\u6ca1\u627e\u5230\u89e3\u51b3\u9014\u5f84\n\n| Header 1 | Header 2 |\n| --- | --- |\n| Key 1 | Value 1 |\n| Key 2 | Value 2 |\n| Key 3 | Value 3 |\n\n### \u652f\u6301 GFM \u811a\u6ce8\n\n\u8fd9\u662f\u4e00\u4e2a\u7b80\u5355\u7684 Markdown[^1] \u8bed\u6cd5\u7684\u811a\u6ce8[^2]\u3002 \u9875\u9762\u6700\u540e\u6709\u4e00\u4e9b\u989d\u5916\u7684\u6587\u5b57\u63cf\u8ff0\u3002\u6ce8\u610f\u8fd9\u4e0d\u662f\u5b8c\u6574\u7684\u6ce8\u811a[^3]\u7279\u6027\u3002\n\n[^1]: GitHub \u98ce\u683c\u7684 Markdown \u89c4\u8303 https://github.github.com/gfm/\n[^2]: \u811a\u6ce8 https://github.blog/changelog/2021-09-30-footnotes-now-supported-in-markdown-fields/\n[^3]: \u5fae\u4fe1\u6587\u7ae0\u4e0d\u652f\u6301\u951a\u70b9\u8df3\u8f6c\u548c\u6253\u5f00\u7b2c\u4e09\u65b9 URL \u8d85\u94fe\u63a5\uff0c\u6240\u4ee5\u4e0d\u652f\u6301\u5b8c\u6574\u7684\u6ce8\u811a\u7279\u6027\u3002\n\n### \u652f\u6301\u6ce8\u91ca\n\n```html\n\n \u6c49 Han\n\n```\n\n\u6c49\u5b57\u6ce8\u97f3\u6548\u679c\uff1a\n\n \u6c49 Han\n \u5b57 zi\n \u62fc pin\n \u97f3 yin\n \u6ce8 zhu\n \u97f3 yin\n\n\n### \u652f\u6301\u81ea\u5b9a\u4e49\u6837\u5f0f\n\x3c!--rehype:style=color: red;--\x3e\n\n\u5728 Markdown \u4e2d HTML \u6ce8\u91ca\u4e5f\u53ef\u4ee5\u7528\u5728 markdown \u4e2d\uff0c\u5229\u7528\u8fd9\u4e00\u7279\u70b9\uff0c\u4e3a\u4e00\u4e9b\u5185\u5bb9\u81ea\u5b9a\u4e00\u6837\u5f0f\u3002\u4f7f\u7528 HTML \u6ce8\u91ca `\x3c!--rehype:xxx--\x3e`\x3c!--rehype:style=color: red;background: #ff000033;--\x3e \u8ba9 Markdown \u652f\u6301\u6837\u5f0f\u81ea\u5b9a\u4e49\u3002\n\n```markdown\n## \u5b9a\u4e49\u6807\u9898\u6837\u5f0f\n\x3c!--rehype:style=display: flex; height: 230px; align-items: center; justify-content: center; font-size: 38px;--\x3e\n\n\u652f\u6301\u5bf9\u67d0\u4e9b\u6587\u5b57\u53d8\u66f4\u6837\u5f0f\uff0c\u5982_\u6587\u5b57\u989c\u8272_\x3c!--rehype:style=color: red;--\x3e\uff0c\u6587\u5b57\u989c\u8272\u5c06\u88ab\u8bbe\u7f6e\u4e3a\u7ea2\u8272(red)\u3002\n```\n\n\u26a0\ufe0f \u6ce8\u610f\uff1a\u8fd9\u4e00\u7279\u6027\u53ef\u80fd\u9002\u7528\u4e8e\u6709\u4e00\u5b9a css \u524d\u7aef\u57fa\u7840\u77e5\u8bc6\u7684\u7528\u6237\uff0c\u4e0d\u8fc7\u5b83\u4e5f\u975e\u5e38\u7b80\u5355\uff0c\u4f7f\u7528 `\x3c!--rehype:style=` \u5f00\u59cb\uff0c`--\x3e` \u7ed3\u675f\uff0c\u4e2d\u95f4\u5305\u88f9 css \u6837\u5f0f\uff0c\u5982 `color: red;` \u8bbe\u7f6e\u6587\u5b57\u7ea2\u8272\u3002\n\n\n### \u6807\u8bb0\u5ffd\u7565\u5185\u5bb9\n\n\u6b64\u7279\u6027\u5229\u7528 HTML \u6ce8\u91ca\u5728 markdown \u4e2d\u88ab\u5ffd\u7565\u7684\u7279\u6027\uff0c\u6807\u8bb0\u9700\u8981\u5ffd\u7565\u7684\u5185\u5bb9\uff0c\u6807\u8bb0\u5f00\u59cb `\x3c!--rehype:ignore:start--\x3e`\uff0c\u6807\u8bb0\u7ed3\u675f `\x3c!--rehype:ignore:end--\x3e`\uff0c\u88ab\u6807\u8bb0\u7684\u5185\u5bb9\u5728\u5fae\u4fe1 Markdown \u7f16\u8f91\u5668\u9884\u89c8\u4e2d\u4e0d\u663e\u793a\u3002\u5728\u5176\u5b83\u9884\u89c8\u5de5\u5177\u4e2d\u5c55\u793a\u5185\u5bb9\uff0c\u6bd4\u5982 GitHub \u4e2d\u80fd\u5c55\u793a\u3002\n\n```markdown\n# \u6ce8\u91ca\u5ffd\u7565\n\n\x3c!--rehype:ignore:start--\x3e\u5185\u5bb9\u5728\u5fae\u4fe1 Markdown \u7f16\u8f91\u5668\u9884\u89c8\u4e2d\u4e0d\u663e\u793a\u3002\u5728\u5176\u5b83\u9884\u89c8\u5de5\u5177\u4e2d\u5c55\u793a\u5185\u5bb9\u3002\x3c!--rehype:ignore:end--\x3e\n```\n\n### \u652f\u6301 URL \u53c2\u6570\u52a0\u8f7d Markdown \u5185\u5bb9\n\n```\nhttps://?md=\n```\n\n\u52a0\u8f7d Markdown \u5185\u5bb9\u7684\u793a\u4f8b URL\uff1a\n\n```\nhttps://jaywcjlove.github.io/wxmp/#/?theme=underscore&md=https://raw.githubusercontent.com/jaywcjlove/c-tutorial/master/README.md\n\nMarkdown URL \u5730\u5740: https://raw.githubusercontent.com/jaywcjlove/c-tutorial/master/README.md\n```\n\n## \u4e3b\u9898\u5b9a\u5236\n\n\u5728\u76ee\u5f55 `website/src/themes` \u4e2d\u5b58\u653e\u9ed8\u8ba4\u4e3b\u9898\uff0c\u5728 `website/src/store/context.tsx` \u4e2d\u914d\u7f6e\u4e3b\u9898\uff0c\u4e3b\u9898\u4f7f\u7528 `css` \u5b9a\u4e49\u6837\u5f0f\uff0c\u4e0d\u652f\u6301\u590d\u6742\u7684\u9009\u62e9\u5668\u3002\u63d0\u4f9b\u5728\u7ebf\u4e3b\u9898\u7f16\u8f91\u5668\uff0c\u6b22\u8fce\u4fee\u6539\u5e76 `PR` \u8fdb\u4ed3\u5e93\u4f9b\u5927\u5bb6\u4f7f\u7528\u3002\n\n```css\n/* 1~6 \u6807\u9898\u6837\u5f0f\u5b9a\u4e49 */\nh1 {} h2 {} h3 {} h4 {} h5 {} h6 {}\na { color: red; } /* \u8d85\u94fe\u63a5\u6837\u5f0f\u5b9a\u4e49 */\nstrong {} /* \u52a0\u7c97\u6837\u5f0f\u5b9a\u4e49 */\ndel {} /* \u5220\u9664\u7ebf\u6837\u5f0f\u5b9a\u4e49 */\nem {} /* \u4e0b\u5212\u7ebf\u6837\u5f0f\u5b9a\u4e49 */\nu {} /* \u4e0b\u5212\u7ebf\u6837\u5f0f\u5b9a\u4e49 */\np {} /* \u6bb5\u843d\u6837\u5f0f\u5b9a\u4e49 */\nul {} /* \u65e0\u5e8f\u5217\u8868\u6837\u5f0f\u5b9a\u4e49 */\nol {} /* \u6709\u5e8f\u5217\u8868\u6837\u5f0f\u5b9a\u4e49 */\nli {} /* \u5217\u8868\u6761\u76ee\u6837\u5f0f\u5b9a\u4e49 */\nblockquote {} /* \u5757\u7ea7\u5f15\u7528\u6837\u5f0f\u5b9a\u4e49 */\ntable {}\ntd {}\nth {}\npre {} /* \u6837\u5f0f\u5b9a\u4e49 */\n.code-highlight {} /* \u4ee3\u7801\u5757\u6837\u5f0f\u5b9a\u4e49 */\n.code-line {} /* \u4ee3\u7801\u5757\u884c\u6837\u5f0f\u5b9a\u4e49 */\n.code-spans {} /* \u4ee3\u7801\u5757\u884c\u6837\u5f0f\u5b9a\u4e49 */\n\nsup {} /* GFM \u811a\u6ce8\u6837\u5f0f\u5b9a\u4e49 */\n.footnotes-title {} /* GFM \u811a\u6ce8\uff0c\u53c2\u8003\u6807\u9898\u6837\u5f0f\u5b9a\u4e49 */\n.footnotes-list {} /* GFM \u811a\u6ce8\uff0c\u53c2\u8003\u5217\u8868\u6837\u5f0f\u5b9a\u4e49 */\n\n.image-warpper {} /* \u56fe\u7247\u7236\u8282\u70b9\u6837\u5f0f\u5b9a\u4e49 */\n.image {} /* \u56fe\u7247\u6837\u5f0f\u5b9a\u4e49 */\n\n/* \u90e8\u5206\u4ee3\u7801\u9ad8\u4eae\u6837\u5f0f */\n.comment {}\n.property {}\n.function {}\n.keyword {}\n.punctuation {}\n.unit {}\n.tag {}\n.color {}\n.selector {}\n.quote {}\n.number {}\n.attr-name {}\n.attr-value {}\n```\n\n## \u90e8\u7f72\n\n[![Docker Image Version (latest by date)](https://img.shields.io/docker/v/wcjiang/wxmp?logo=docker)](https://hub.docker.com/r/wcjiang/wxmp) [![Docker Image Size (latest by date)](https://img.shields.io/docker/image-size/wcjiang/wxmp?logo=docker)](https://hub.docker.com/r/wcjiang/wxmp) [![Docker Pulls](https://img.shields.io/docker/pulls/wcjiang/wxmp?logo=docker)](https://hub.docker.com/r/wcjiang/wxmp)\n\n\u8f7b\u677e\u901a\u8fc7 docker \u90e8\u7f72\u300a\u5fae\u4fe1\u516c\u4f17\u53f7 Markdown \u7f16\u8f91\u5668\u300b\u7f51\u7ad9\u5e94\u7528\u3002\n\n```bash\ndocker pull wcjiang/wxmp\n# Or\ndocker pull ghcr.io/jaywcjlove/wxmp:latest\n```\n\n```bash\ndocker run --name wxmp --rm -d -p 8113:3000 wcjiang/wxmp:latest\n# Or\ndocker run --name wxmp -itd -p 8113:3000 wcjiang/wxmp:latest\n# Or\ndocker run --name wxmp -itd -p 8113:3000 ghcr.io/jaywcjlove/wxmp:latest\n```\n\n\u5728\u6d4f\u89c8\u5668\u4e2d\u8bbf\u95ee\u4ee5\u4e0b URL\n\n```\nhttp://localhost:96611/\n```\n\n## \u8d21\u732e\u8005\n\n\u4e00\u5982\u65e2\u5f80\uff0c\u611f\u8c22\u6211\u4eec\u51fa\u8272\u7684\u8d21\u732e\u8005\uff01\n\n\n \n\n\n\u4e0a\u56fe\u8d21\u732e\u8005\u5217\u8868\uff0c\u7531 [action-contributors](https://github.com/jaywcjlove/github-action-contributors)[^4] \u81ea\u52a8\u751f\u6210\u8d21\u732e\u8005\u56fe\u7247\u3002\n\n\n[^4]: Action Contributors https://github.com/jaywcjlove/github-action-contributors\n\n## License\n\n\u6839\u636e MIT \u8bb8\u53ef\u8bc1\u83b7\u5f97\u8bb8\u53ef\u3002\n',Cv=Sv,Ev={default:{label:"\u9ed8\u8ba4\u4e3b\u9898",value:Jg},abcdef:{label:"Abcdef Theme",value:lv},androidstudio:{label:"Android Studio Theme",value:cv},atomone:{label:"Atomone Theme",value:hv},bbedit:{label:"Bbedit Theme",value:fv},bespin:{label:"Bespin Theme",value:dv},darcula:{label:"Darcula Theme",value:pv},dracula:{label:"Dracula Theme",value:mv},duotoneLight:{label:"Duotone Light Theme",value:gv},duotoneDark:{label:"Duotone Dark Theme",value:vv},eclipse:{label:"Eclipse Theme",value:Ov},githubLight:{label:"Github Light Theme",value:yv},githubDark:{label:"Github Dark Theme",value:kv},okaidia:{label:"Okaidia Theme",value:bv},sublime:{label:"Sublime Theme",value:xv},xcodeLight:{label:"Xcode Light Theme",value:Tv},xcodeDark:{label:"Xcode Dark Theme",value:wv}},Av={default:{label:"\u7fe1\u7fe0\u7eff",value:"a {\n color: #009874;\n text-decoration: none;\n font-size: 14px;\n}\n\nh1 {\n display: table;\n text-align: center;\n color: #3f3f3f;\n line-height: 1.75;\n font-family: -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB',\n 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif;\n font-size: 16px;\n font-weight: bold;\n margin: 2em auto 1em;\n padding: 0 1em;\n border-bottom: 3px solid #009874;\n margin-top: 0;\n}\n\nh2 {\n display: table;\n text-align: center;\n color: #fff;\n line-height: 1.75;\n font-family: -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB',\n 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif;\n font-size: 16px;\n font-weight: bold;\n margin: 4em auto 2em;\n padding: 0 0.3em;\n border-radius: 0.3em;\n background: #009874;\n}\n\nh3 {\n text-align: left;\n color: #3f3f3f;\n line-height: 1.2;\n font-family: -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB',\n 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif;\n font-size: 14px;\n font-weight: bold;\n margin: 2em 8px 0.75em 0;\n padding-left: 8px;\n border-left: 5px solid #009874;\n}\n\nul {\n padding-left: 1.2em;\n}\n\nol {\n padding-left: 1.2em;\n}\n\nli {\n margin: 0;\n line-height: 1.5em;\n font-size: 14px;\n line-height: 1.5em;\n}\n\np {\n font-size: 14px;\n line-height: 1.5em;\n padding: 0.5em 0 !important;\n margin-bottom: 0 !important;\n margin-top: 0 !important;\n}\n\nblockquote {\n text-align: left;\n font-family: -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB',\n 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif;\n font-size: 14px;\n font-style: normal;\n border-left: none;\n padding: 0.5em 1em;\n border-radius: 4px;\n background: rgba(27, 31, 35, 0.05);\n margin: 1em 0;\n}\n\npre {\n display: block;\n overflow-x: auto;\n padding: 1em;\n color: rgb(51, 51, 51);\n background: rgb(248, 248, 248);\n font-style: normal;\n font-variant-ligatures: normal;\n font-variant-caps: normal;\n font-weight: 400;\n letter-spacing: normal;\n orphans: 2;\n text-indent: 0px;\n text-transform: none;\n widows: 2;\n word-spacing: 0px;\n text-decoration-style: initial;\n text-decoration-color: initial;\n text-align: left;\n line-height: 1.5;\n font-family: -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB',\n 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif;\n border-radius: 0.3em;\n margin: 0.9rem 0;\n white-space: pre;\n}\n\ntable {\n width: 100% !important;\n border-collapse: collapse;\n line-height: 1.35;\n font-size: 14px;\n}\n\ntd {\n border: 1px solid #ddd;\n padding: 0.25em 0.5em;\n}\n\nth {\n background: rgb(0 0 0 / 5%);\n border: 1px solid #ddd;\n padding: 0.25em 0.5em;\n}\n\n.code-highlight {\n text-align: left;\n line-height: 1.75;\n font-family: Menlo, 'Operator Mono', Consolas, Monaco, monospace;\n font-size: 14px;\n margin: 0px;\n white-space: nowrap;\n}\n\n.code-line {\n display: block;\n line-height: 1.3;\n}\n\n.code-spans {\n text-align: left;\n line-height: 1;\n white-space: initial;\n color: #333;\n background: rgba(27, 31, 35, 0.05);\n padding: 0.1em 0.3em;\n border-radius: 0.3em;\n font-weight: bold;\n font-size: 1em;\n top: -0.1em;\n position: relative;\n}\n\n.footnotes-title {\n display: table;\n font-family: -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB',\n 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif;\n font-size: 14px;\n font-weight: bold;\n margin: 3em 0 0.6em 0;\n padding-left: 0.2em;\n}\n\n.footnotes-list {\n font-size: 10px;\n font-style: italic;\n line-height: 1.2;\n margin: 0.4rem 0;\n}\n\nfigure {\n margin: 0;\n}\n\n.image-warpper {\n text-align: center;\n margin-bottom: 0rem;\n visibility: visible;\n}\n\n.image {\n display: initial;\n max-width: 100%;\n}\n\n.comment {\n color: #6a737d;\n}\n.property {\n color: #6f42c1;\n}\n.function {\n color: #6f42c1;\n}\n.keyword {\n color: #d73a49;\n}\n.punctuation {\n color: #0550ae;\n}\n.unit {\n color: #0550ae;\n}\n.tag {\n color: #22863a;\n}\n.selector {\n color: #22863a;\n}\n.quote {\n color: #22863a;\n}\n.number {\n color: #005cc5;\n}\n.attr-name {\n color: #005cc5;\n}\n.attr-value {\n color: #005cc5;\n}\n",color:"#009874"},simple:{label:"\u7b80\u6d01\u84dd",value:"a {\n color: #0f4c81;\n text-decoration: none;\n font-size: 14px;\n}\n\nh1 {\n display: table;\n text-align: center;\n color: #3f3f3f;\n line-height: 1.75;\n font-family: -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB',\n 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif;\n font-size: 16px;\n font-weight: bold;\n margin: 2em auto 1em;\n padding: 0 1em;\n border-bottom: 3px solid #0f4c81;\n margin-top: 0;\n}\n\nh2 {\n display: table;\n text-align: center;\n color: #fff;\n line-height: 1.75;\n font-family: -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB',\n 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif;\n font-size: 16px;\n font-weight: bold;\n margin: 4em auto 2em;\n padding: 0 0.3em;\n border-radius: 0.3rem;\n background: #0f4c81;\n}\n\nh3 {\n text-align: left;\n color: #3f3f3f;\n line-height: 1.2;\n font-family: -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB',\n 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif;\n font-size: 14px;\n font-weight: bold;\n margin: 2em 8px 0.75em 0;\n padding-left: 8px;\n border-left: 5px solid #0f4c81;\n}\n\nul {\n padding-left: 1.2em;\n}\n\nol {\n padding-left: 1.2em;\n}\n\nli {\n margin: 0;\n line-height: 1.5em;\n font-size: 14px;\n line-height: 1.5em;\n}\n\np {\n font-size: 14px;\n line-height: 1.5em;\n padding: 0.5em 0 !important;\n margin-bottom: 0 !important;\n margin-top: 0 !important;\n}\n\nblockquote {\n text-align: left;\n font-family: -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB',\n 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif;\n font-size: 14px;\n font-style: normal;\n border-left: none;\n padding: 0.5em 1em;\n border-radius: 4px;\n background: rgba(27, 31, 35, 0.05);\n margin: 1em 0;\n}\n\npre {\n display: block;\n overflow-x: auto;\n padding: 1em;\n color: rgb(51, 51, 51);\n background: rgb(248, 248, 248);\n font-style: normal;\n font-variant-ligatures: normal;\n font-variant-caps: normal;\n font-weight: 400;\n letter-spacing: normal;\n orphans: 2;\n text-indent: 0px;\n text-transform: none;\n widows: 2;\n word-spacing: 0px;\n text-decoration-style: initial;\n text-decoration-color: initial;\n text-align: left;\n line-height: 1.5;\n font-family: -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB',\n 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif;\n border-radius: 0.3em;\n margin: 0.9rem 0;\n white-space: pre;\n}\n\ntable {\n width: 100% !important;\n border-collapse: collapse;\n line-height: 1.35;\n font-size: 14px;\n}\n\ntd {\n border: 1px solid #ddd;\n padding: 0.25em 0.5em;\n}\n\nth {\n background: rgb(0 0 0 / 5%);\n border: 1px solid #ddd;\n padding: 0.25em 0.5em;\n}\n\n.code-highlight {\n text-align: left;\n line-height: 1.75;\n font-family: Menlo, 'Operator Mono', Consolas, Monaco, monospace;\n font-size: 14px;\n margin: 0px;\n white-space: nowrap;\n}\n\n.code-line {\n display: block;\n line-height: 1.3;\n}\n\n.code-spans {\n text-align: left;\n line-height: 1;\n white-space: initial;\n color: #0f4c81;\n background: rgba(27, 31, 35, 0.05);\n padding: 0.1em 0.3em;\n border-radius: 0.3em;\n font-weight: bold;\n font-size: 14px;\n top: -0.1em;\n position: relative;\n}\n\n.footnotes-title {\n display: table;\n font-family: -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB',\n 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif;\n font-size: 14px;\n font-weight: bold;\n margin: 3em 0 0.6em 0;\n padding-left: 0.2em;\n}\n\n.footnotes-list {\n font-size: 10px;\n font-style: italic;\n line-height: 1.2;\n margin: 0.4rem 0;\n}\n\nfigure {\n margin: 0;\n}\n\n.image-warpper {\n text-align: center;\n margin-bottom: 0rem;\n visibility: visible;\n}\n\n.image {\n display: initial;\n max-width: 100%;\n}\n\n.comment {\n color: #6a737d;\n}\n.property {\n color: #6f42c1;\n}\n.function {\n color: #6f42c1;\n}\n.keyword {\n color: #d73a49;\n}\n.punctuation {\n color: #0550ae;\n}\n.unit {\n color: #0550ae;\n}\n.tag {\n color: #22863a;\n}\n.selector {\n color: #22863a;\n}\n.quote {\n color: #22863a;\n}\n.number {\n color: #005cc5;\n}\n.attr-name {\n color: #005cc5;\n}\n.attr-value {\n color: #005cc5;\n}\n",color:"#0f4c81"},underscore:{label:"\u4e0b\u5212\u7ebf\u9ec4",value:"a {\n color: #ffb11b;\n text-decoration: none;\n font-size: 14px;\n}\n\nh1 {\n display: table;\n text-align: center;\n color: #3f3f3f;\n line-height: 1.15;\n font-family: -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB',\n 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif;\n font-size: 16px;\n font-weight: bold;\n margin: 2em auto 1em;\n padding: 0 1em 0.3em 1em;\n margin-top: 0;\n box-shadow: inset 0 -0.9rem 0 0 #ffb11b;\n}\n\nh2 {\n display: table;\n line-height: 1.35;\n font-family: -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB',\n 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif;\n font-size: 16px;\n font-weight: bold;\n padding: 0 0.3em;\n margin: 2em 0 1em 0;\n box-shadow: inset 0 -0.7rem 0 0 #ffb11b;\n}\n\nh3 {\n text-align: left;\n color: #3f3f3f;\n line-height: 1.2;\n font-family: -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB',\n 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif;\n font-size: 1.1em;\n font-weight: bold;\n margin: 2em 8px 0.75em 0;\n padding-left: 8px;\n border-left: 5px solid #ffb11b;\n}\n\nul {\n padding-left: 1.2em;\n}\n\nol {\n padding-left: 1.2em;\n}\n\nli {\n margin: 0;\n line-height: 1.5em;\n font-size: 14px;\n}\n\np {\n font-size: 14px;\n line-height: 1.5em;\n padding: 0.5em 0 !important;\n margin-bottom: 0 !important;\n margin-top: 0 !important;\n}\n\nblockquote {\n text-align: left;\n line-height: 1.5em;\n font-family: -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB',\n 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif;\n font-size: 14px;\n font-style: normal;\n border-left: none;\n padding: 0.5em 1em;\n border-radius: 4px;\n background: rgba(27, 31, 35, 0.05);\n margin: 1em 0;\n}\n\npre {\n display: block;\n overflow-x: auto;\n padding: 1em;\n color: rgb(51, 51, 51);\n background: rgb(248, 248, 248);\n font-style: normal;\n font-variant-ligatures: normal;\n font-variant-caps: normal;\n font-weight: 400;\n letter-spacing: normal;\n orphans: 2;\n text-indent: 0px;\n text-transform: none;\n widows: 2;\n word-spacing: 0px;\n text-decoration-style: initial;\n text-decoration-color: initial;\n text-align: left;\n line-height: 1.5;\n font-family: -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB',\n 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif;\n border-radius: 0.3em;\n margin: 0.9rem 0;\n white-space: pre;\n}\n\ntable {\n width: 100% !important;\n border-collapse: collapse;\n line-height: 1.35;\n font-size: 14px;\n}\n\ntd {\n border: 1px solid #ddd;\n padding: 0.25em 0.5em;\n}\n\nth {\n background: rgb(0 0 0 / 5%);\n border: 1px solid #ddd;\n padding: 0.25em 0.5em;\n}\n\n.code-highlight {\n text-align: left;\n line-height: 1.75;\n font-family: Menlo, 'Operator Mono', Consolas, Monaco, monospace;\n font-size: 14px;\n margin: 0px;\n white-space: nowrap;\n}\n\n.code-line {\n display: block;\n line-height: 1.3;\n}\n\n.code-spans {\n text-align: left;\n line-height: 1;\n white-space: initial;\n color: #333;\n background: rgba(27, 31, 35, 0.05);\n padding: 0.1em 0.3em;\n border-radius: 0.3em;\n font-weight: bold;\n font-size: 14px;\n top: -0.1em;\n position: relative;\n}\n\n.footnotes-title {\n display: table;\n font-family: -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB',\n 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif;\n font-size: 14px;\n font-weight: bold;\n margin: 3em 0 0.6em 0;\n padding-left: 0.2em;\n}\n\n.footnotes-list {\n font-size: 10px;\n font-style: italic;\n line-height: 1.2;\n margin: 0.4rem 0;\n}\n\nfigure {\n margin: 0;\n}\n\n.image-warpper {\n text-align: center;\n margin-bottom: 0rem;\n visibility: visible;\n}\n\n.image {\n display: initial;\n max-width: 100%;\n}\n\n.comment {\n color: #6a737d;\n}\n.property {\n color: #6f42c1;\n}\n.function {\n color: #6f42c1;\n}\n.keyword {\n color: #d73a49;\n}\n.punctuation {\n color: #0550ae;\n}\n.unit {\n color: #0550ae;\n}\n.tag {\n color: #22863a;\n}\n.selector {\n color: #22863a;\n}\n.quote {\n color: #22863a;\n}\n.number {\n color: #005cc5;\n}\n.attr-name {\n color: #005cc5;\n}\n.attr-value {\n color: #005cc5;\n}\n",color:"#ffb11b"},base:{label:"\u7b80\u6d01",value:"a {\n color: inherit;\n text-decoration: none;\n}\n\nh1 {\n color: inherit;\n font-size: 16px;\n font-weight: bold;\n}\n\nh2 {\n color: inherit;\n margin: 2.5rem 0 1rem 0;\n font-size: 16px;\n font-weight: bold;\n}\n\nh3 {\n color: inherit;\n margin: 1em 0 1em 0;\n font-weight: bold;\n font-size: 14px;\n}\n\nh4 {\n color: inherit;\n margin: 0.6em 0 0.6em 0;\n font-weight: bold;\n font-size: 12px;\n}\n\np {\n color: initial;\n font-size: 14px;\n line-height: 1.5em;\n}\n\nul {\n padding-left: 1.2em;\n}\n\nol {\n padding-left: 1.2em;\n}\n\nli {\n margin: 0;\n font-size: 14px;\n line-height: 1.5em;\n}\n\nblockquote {\n font-style: normal;\n border-left: none;\n margin: 1em 0;\n line-height: 1.5em;\n}\n\npre {\n display: block;\n overflow-x: auto;\n padding: 1em;\n color: rgb(51, 51, 51);\n background: rgb(248, 248, 248);\n font-size: 14px;\n font-weight: 400;\n letter-spacing: normal;\n word-spacing: 0px;\n border-radius: 5px;\n margin: 0.9rem 0;\n white-space: pre;\n}\n\ntable {\n width: 100% !important;\n border-collapse: collapse;\n line-height: 1.35;\n font-size: 14px;\n}\n\ntd {\n border: 1px solid #ddd;\n padding: 0.25em 0.5em;\n}\n\nth {\n background: rgb(0 0 0 / 5%);\n border: 1px solid #ddd;\n padding: 0.25em 0.5em;\n}\n\n.code-highlight {\n text-align: left;\n font-family: Menlo, 'Operator Mono', Consolas, Monaco, monospace;\n font-size: 14px;\n margin: 0px;\n white-space: nowrap;\n}\n\n.code-line {\n display: block;\n line-height: 1.3;\n}\n\n.code-spans {\n text-align: left;\n line-height: 1;\n white-space: initial;\n background: rgba(27, 31, 35, 0.05);\n padding: 0.1em 0.3em;\n border-radius: 0.3em;\n font-weight: bold;\n font-size: 1em;\n top: -0.1em;\n position: relative;\n}\n\n.footnotes-title {\n display: table;\n font-family: -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB',\n 'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif;\n font-size: 14px;\n font-weight: bold;\n margin: 3rem 0 0.6rem 0;\n padding-left: 0.2rem;\n}\n\n.footnotes-list {\n font-size: 10px;\n font-style: italic;\n line-height: 1.2;\n margin: 0.4rem 0;\n}\n\nfigure {\n margin: 0;\n}\n\n.image-warpper {\n text-align: center;\n margin-bottom: 0rem;\n visibility: visible;\n}\n\n.image {\n display: initial;\n max-width: 100%;\n}\n\n.comment {\n color: #6a737d;\n}\n.property {\n color: #6f42c1;\n}\n.function {\n color: #6f42c1;\n}\n.keyword {\n color: #d73a49;\n}\n.punctuation {\n color: #0550ae;\n}\n.unit {\n color: #0550ae;\n}\n.tag {\n color: #22863a;\n}\n.selector {\n color: #22863a;\n}\n.quote {\n color: #22863a;\n}\n.number {\n color: #005cc5;\n}\n.attr-name {\n color: #005cc5;\n}\n.attr-value {\n color: #005cc5;\n}\n",color:""}},_v={underscore:[{select:"a",name:"color",value:"{{color}}"},{select:"h1",name:"box-shadow",value:"inset 0 -0.9rem 0 0 {{color}}"},{select:"h2",name:"box-shadow",value:"inset 0 -0.7rem 0 0 {{color}}"},{select:"h3",name:"border-left",value:"5px solid {{color}}"}],default:[{select:"a",name:"color",value:"{{color}}"},{select:"h1",name:"border-bottom",value:"3px solid {{color}}"},{select:"h2",name:"background",value:"{{color}}"},{select:"h3",name:"border-left",value:"5px solid {{color}}"}],simple:[{select:"a",name:"color",value:"{{color}}"},{select:"h1",name:"border-bottom",value:"3px solid {{color}}"},{select:"h2",name:"background",value:"{{color}}"},{select:"h3",name:"border-left",value:"5px solid {{color}}"},{select:".code-spans",name:"color",value:"{{color}}"}],base:[]},Qv=(Object.keys(Av).map((function(e){return Av[e].color})),V.createContext({preColor:"",setPreColor:function(){},isLoading:!0,setIsLoading:function(){},markdown:Sv,setMarkdown:function(){},css:Av.underscore.value,setCss:function(){},previewTheme:"underscore",setPreviewTheme:function(){},theme:"default",setTheme:function(){}})),Pv=Jr.div(nv||(nv=G([""]))),Rv=Jr.div(rv||(rv=G(["\n position: relative;\n height: 2.8rem;\n"]))),Dv=Jr.header(iv||(iv=G(["\n -webkit-app-region: drag;\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n background: var(--color-canvas-default);\n border-bottom: 1px solid var(--color-border-muted);\n padding: 0.5rem 0.6rem 0.5rem 0.8rem;\n position: fixed;\n width: 100%;\n z-index: 9;\n"]))),Nv=Jr.article(ov||(ov=G(["\n display: flex;\n flex-direction: row;\n align-items: center;\n gap: 0.6rem;\n"]))),Mv=Jr(no)(av||(av=G(["\n max-width: 3.6rem;\n"]))),Iv=Jr.h1(sv||(sv=G(["\n font-size: 1rem;\n margin: 0;\n display: flex;\n align-items: center;\n user-select: none;\n sup {\n color: var(--color-fg-subtle);\n margin-left: 0.4rem;\n background-color: var(--color-border-muted);\n border-radius: 0.1rem;\n padding: 0 0.2rem 0 0.1rem;\n font-weight: normal;\n font-size: 0.7rem;\n letter-spacing: -0.1rem;\n }\n"]))),Lv=Jr.section(uv||(uv=G(["\n display: flex;\n align-items: center;\n gap: 0.5rem;\n dark-mode {\n font-size: 1.05rem;\n display: block;\n line-height: 12px;\n margin-left: 0.6rem;\n }\n a svg {\n display: block;\n }\n a {\n text-decoration: none;\n color: var(--color-theme-text);\n padding: 0.1rem 0.3rem;\n transition: all 0.3s;\n font-size: 0.9rem;\n border-radius: 0.2rem;\n &.active {\n background-color: var(--color-accent-fg);\n box-shadow: inset 0 -0.3rem 0 var(--color-accent-fg);\n color: #fff;\n }\n &:hover:not(.active):not(:last-child) {\n background-color: var(--color-accent-fg);\n color: #fff;\n border-radius: 0.2rem;\n }\n }\n"])));function Fv(){var e=(0,V.useContext)(Qv).isLoading;return(0,Ge.jsxs)(Pv,{className:"wmde-markdown-color",children:[(0,Ge.jsx)(Rv,{children:(0,Ge.jsxs)(Dv,{className:"header",children:[(0,Ge.jsxs)(Nv,{className:"logo",children:[(0,Ge.jsx)(Mv,{width:28,height:28}),(0,Ge.jsxs)(Iv,{children:["\u5fae\u4fe1\u516c\u4f17\u53f7\u6392\u7248\u7f16\u8f91\u5668",(0,Ge.jsxs)("sup",{children:[" v","2.3.2"," "]})]}),e&&(0,Ge.jsx)(xo,{})]}),(0,Ge.jsxs)(Lv,{children:[(0,Ge.jsx)(Ue,{to:"/",children:"\u9996\u9875"}),(0,Ge.jsx)(Ue,{to:"/editor/theme",children:"\u7f16\u8f91\u4e3b\u9898"}),(0,Ge.jsx)(Ue,{to:"/doc",children:"\u6587\u6863"}),(0,Ge.jsx)("dark-mode",{permanent:!0,dark:"Dark",light:"Light"}),(0,Ge.jsx)("a",{href:"https://github.com/jaywcjlove/wxmp",target:"__blank",children:(0,Ge.jsx)(vo,{width:23,height:23})})]})]})}),(0,Ge.jsx)(Me,{})]})}var Zv=10,$v=11,jv=12,Bv=13,zv=15,Hv=16,Wv=17,Uv=18,qv=19,Xv=20,Gv=21,Jv=22,Vv=23,Yv=24,Kv=25;function eO(e){return e>=48&&e<=57}function tO(e){return eO(e)||e>=65&&e<=70||e>=97&&e<=102}function nO(e){return e>=65&&e<=90}function rO(e){return function(e){return nO(e)||function(e){return e>=97&&e<=122}(e)}(e)||function(e){return e>=128}(e)||95===e}function iO(e){return rO(e)||eO(e)||45===e}function oO(e){return e>=0&&e<=8||11===e||e>=14&&e<=31||127===e}function aO(e){return 10===e||13===e||12===e}function sO(e){return aO(e)||32===e||9===e}function uO(e,t){return 92===e&&(!aO(t)&&0!==t)}function lO(e,t,n){return 45===e?rO(t)||45===t||uO(t,n):!!rO(e)||92===e&&uO(e,t)}function cO(e,t,n){return 43===e||45===e?eO(t)?2:46===t&&eO(n)?3:0:46===e?eO(t)?2:0:eO(e)?1:0}function hO(e){return 65279===e||65534===e?1:0}for(var fO=new Array(128),dO=130,pO=0;pOe.length)return!1;for(var i=t;i=55296&&t<=57343||t>1114111)&&(t=65533),String.fromCodePoint(t)}var EO=["EOF-token","ident-token","function-token","at-keyword-token","hash-token","string-token","bad-string-token","url-token","bad-url-token","delim-token","number-token","percentage-token","dimension-token","whitespace-token","CDO-token","CDC-token","colon-token","semicolon-token","comma-token","[-token","]-token","(-token",")-token","{-token","}-token"];function AO(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;return null===e||e.length0?hO(t.charCodeAt(0)):0,i=AO(e.lines,n),o=AO(e.columns,n),a=e.startLine,s=e.startColumn,u=r;u1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;this.source=e,this.startOffset=t,this.startLine=n,this.startColumn=r,this.computed=!1}},{key:"getLocation",value:function(e,t){return this.computed||_O(this),{source:t,offset:this.startOffset+e,line:this.lines[e],column:this.columns[e]}}},{key:"getLocationRange",value:function(e,t,n){return this.computed||_O(this),{source:n,start:{offset:this.startOffset+e,line:this.lines[e],column:this.columns[e]},end:{offset:this.startOffset+t,line:this.lines[t],column:this.columns[t]}}}}]),e}(),PO=16777215,RO=24,DO=new Map([[2,Jv],[Gv,Jv],[qv,Xv],[Vv,Yv]]),NO=function(){function e(t,n){(0,Vr.Z)(this,e),this.setSource(t,n)}return(0,Yr.Z)(e,[{key:"reset",value:function(){this.eof=!1,this.tokenIndex=-1,this.tokenType=0,this.tokenStart=this.firstCharOffset,this.tokenEnd=this.firstCharOffset}},{key:"setSource",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},n=(e=String(e||"")).length,r=AO(this.offsetAndType,e.length+1),i=AO(this.balance,e.length+1),o=0,a=0,s=0,u=-1;for(this.offsetAndType=null,this.balance=null,t(e,(function(e,t,l){switch(e){default:i[o]=n;break;case a:var c=s&PO;for(s=i[c],a=s>>RO,i[o]=c,i[c++]=o;c>RO:0}},{key:"lookupOffset",value:function(e){return(e+=this.tokenIndex)0?e>RO,this.tokenEnd=t&PO):(this.tokenIndex=this.tokenCount,this.next())}},{key:"next",value:function(){var e=this.tokenIndex+1;e>RO,this.tokenEnd=e&PO):(this.eof=!0,this.tokenIndex=this.tokenCount,this.tokenType=0,this.tokenStart=this.tokenEnd=this.source.length)}},{key:"skipSC",value:function(){for(;this.tokenType===Bv||this.tokenType===Kv;)this.next()}},{key:"skipUntilBalanced",value:function(e,t){var n,r,i=e;e:for(;i0?this.offsetAndType[i-1]&PO:this.firstCharOffset,t(this.source.charCodeAt(r))){case 1:break e;case 2:i++;break e;default:this.balance[n]===i&&(i=n)}this.skip(i-this.tokenIndex)}},{key:"forEachToken",value:function(e){for(var t=0,n=this.firstCharOffset;t>RO,r,o,t)}}},{key:"dump",value:function(){var e=this,t=new Array(this.tokenCount);return this.forEachToken((function(n,r,i,o){t[o]={idx:o,type:EO[n],chunk:e.source.substring(r,i),balance:e.balance[o]}})),t}}]),e}();function MO(e,t){function n(t){return t=e.length?void(l1&&void 0!==arguments[1]?arguments[1]:this,n=this.allocateCursor(null,this.head);null!==n.next;){var r=n.next;n.next=r.next,e.call(t,r.data,r,this)}this.releaseCursor()}},{key:"forEachRight",value:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this,n=this.allocateCursor(this.tail,null);null!==n.prev;){var r=n.prev;n.prev=r.prev,e.call(t,r.data,r,this)}this.releaseCursor()}},{key:"reduce",value:function(e,t){for(var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this,i=this.allocateCursor(null,this.head),o=t;null!==i.next;)n=i.next,i.next=n.next,o=e.call(r,o,n.data,n,this);return this.releaseCursor(),o}},{key:"reduceRight",value:function(e,t){for(var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this,i=this.allocateCursor(this.tail,null),o=t;null!==i.prev;)n=i.prev,i.prev=n.prev,o=e.call(r,o,n.data,n,this);return this.releaseCursor(),o}},{key:"some",value:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this,n=this.head;null!==n;n=n.next)if(e.call(t,n.data,n,this))return!0;return!1}},{key:"map",value:function(e){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this,r=new t,i=this.head;null!==i;i=i.next)r.appendData(e.call(n,i.data,i,this));return r}},{key:"filter",value:function(e){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this,r=new t,i=this.head;null!==i;i=i.next)e.call(n,i.data,i,this)&&r.appendData(i.data);return r}},{key:"nextUntil",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this;if(null!==e){for(var r=this.allocateCursor(null,e);null!==r.next;){var i=r.next;if(r.next=i.next,t.call(n,i.data,i,this))break}this.releaseCursor()}}},{key:"prevUntil",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this;if(null!==e){for(var r=this.allocateCursor(e,null);null!==r.prev;){var i=r.prev;if(r.prev=i.prev,t.call(n,i.data,i,this))break}this.releaseCursor()}}},{key:"clear",value:function(){this.head=null,this.tail=null}},{key:"copy",value:function(){var e,n=new t,r=(0,K.Z)(this);try{for(r.s();!(e=r.n()).done;){var i=e.value;n.appendData(i)}}catch(o){r.e(o)}finally{r.f()}return n}},{key:"prepend",value:function(e){return this.updateCursors(null,e,this.head,e),null!==this.head?(this.head.prev=e,e.next=this.head):this.tail=e,this.head=e,this}},{key:"prependData",value:function(e){return this.prepend(t.createItem(e))}},{key:"append",value:function(e){return this.insert(e)}},{key:"appendData",value:function(e){return this.insert(t.createItem(e))}},{key:"insert",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(null!==t)if(this.updateCursors(t.prev,e,t,e),null===t.prev){if(this.head!==t)throw new Error("before doesn't belong to list");this.head=e,t.prev=e,e.next=t,this.updateCursors(null,e)}else t.prev.next=e,e.prev=t.prev,t.prev=e,e.next=t;else this.updateCursors(this.tail,e,null,e),null!==this.tail?(this.tail.next=e,e.prev=this.tail):this.head=e,this.tail=e;return this}},{key:"insertData",value:function(e,n){return this.insert(t.createItem(e),n)}},{key:"remove",value:function(e){if(this.updateCursors(e,e.prev,e,e.next),null!==e.prev)e.prev.next=e.next;else{if(this.head!==e)throw new Error("item doesn't belong to list");this.head=e.next}if(null!==e.next)e.next.prev=e.prev;else{if(this.tail!==e)throw new Error("item doesn't belong to list");this.tail=e.prev}return e.prev=null,e.next=null,e}},{key:"push",value:function(e){this.insert(t.createItem(e))}},{key:"pop",value:function(){return null!==this.tail?this.remove(this.tail):null}},{key:"unshift",value:function(e){this.prepend(t.createItem(e))}},{key:"shift",value:function(){return null!==this.head?this.remove(this.head):null}},{key:"prependList",value:function(e){return this.insertList(e,this.head)}},{key:"appendList",value:function(e){return this.insertList(e)}},{key:"insertList",value:function(e,t){return null===e.head||(void 0!==t&&null!==t?(this.updateCursors(t.prev,e.tail,t,e.head),null!==t.prev?(t.prev.next=e.head,e.head.prev=t.prev):this.head=e.head,t.prev=e.tail,e.tail.next=t):(this.updateCursors(this.tail,e.tail,null,e.head),null!==this.tail?(this.tail.next=e.head,e.head.prev=this.tail):this.head=e.head,this.tail=e.tail),e.head=null,e.tail=null),this}},{key:"replace",value:function(e,t){"head"in t?this.insertList(t,e):this.insert(t,e),this.remove(e)}}],[{key:"createItem",value:function(e){return{prev:null,next:null,data:e}}}]),t}(Symbol.iterator);function FO(e,t){var n=Object.create(SyntaxError.prototype),r=new Error;return Object.assign(n,{name:e,message:t,get stack(){return(r.stack||"").replace(/^(.+\n){1,3}/,"".concat(e,": ").concat(t,"\n"))}})}var ZO=" ";function $O(e,t){var n=e.source,r=e.line,i=e.column;function o(e,t){return a.slice(e,t).map((function(t,n){return String(e+n+1).padStart(l)+" |"+t})).join("\n")}var a=n.split(/\r\n?|\n|\f/),s=Math.max(1,r-t)-1,u=Math.min(r+t,a.length+1),l=Math.max(4,String(u).length)+1,c=0;(i+=(ZO.length-1)*(a[r-1].substr(0,i-1).match(/\t/g)||[]).length)>100&&(c=i-60+3,i=58);for(var h=s;h<=u;h++)h>=0&&h0&&a[h].length>c?"\u2026":"")+a[h].substr(c,98)+(a[h].length>c+100-1?"\u2026":""));return[o(s,r),new Array(i+l+2).join("-")+"^",o(r,u)].filter(Boolean).join("\n")}function jO(e,t,n,r,i){return Object.assign(FO("SyntaxError",e),{source:t,offset:n,line:r,column:i,sourceFragment:function(e){return $O({source:t,line:r,column:i},isNaN(e)?0:e)},get formattedMessage(){return"Parse error: ".concat(e,"\n")+$O({source:t,line:r,column:i},2)}})}function BO(e){for(var t=this.createList(),n=!1,r={recognizer:e};!this.eof;){switch(this.tokenType){case Kv:this.next();continue;case Bv:n=!0,this.next();continue}var i=e.getNode.call(this,r);if(void 0===i)break;n&&(e.onWhiteSpace&&e.onWhiteSpace.call(this,i,t,r),n=!1),t.push(i)}return n&&e.onWhiteSpace&&e.onWhiteSpace.call(this,null,t,r),t}var zO=function(){};function HO(e){return function(){return this[e]()}}function WO(e){var t=Object.create(null);for(var n in e){var r=e[n],i=r.parse||r;i&&(t[n]=i)}return t}function UO(e){var t="",n="",r=!1,i=zO,o=!1,a=new QO,s=Object.assign(new NO,function(e){var t={context:Object.create(null),scope:Object.assign(Object.create(null),e.scope),atrule:WO(e.atrule),pseudo:WO(e.pseudo),node:WO(e.node)};for(var n in e.parseContext)switch(typeof e.parseContext[n]){case"function":t.context[n]=e.parseContext[n];break;case"string":t.context[n]=HO(e.parseContext[n])}return(0,it.Z)((0,it.Z)({config:t},t),t.node)}(e||{}),{parseAtrulePrelude:!0,parseRulePrelude:!0,parseValue:!0,parseCustomProperty:!1,readSequence:BO,consumeUntilBalanceEnd:function(){return 0},consumeUntilLeftCurlyBracket:function(e){return 123===e?1:0},consumeUntilLeftCurlyBracketOrSemicolon:function(e){return 123===e||59===e?1:0},consumeUntilExclamationMarkOrSemicolon:function(e){return 33===e||59===e?1:0},consumeUntilSemicolonIncluded:function(e){return 59===e?2:0},createList:function(){return new LO},createSingleNodeList:function(e){return(new LO).appendData(e)},getFirstListNode:function(e){return e&&e.first},getLastListNode:function(e){return e&&e.last},parseWithFallback:function(e,t){var n=this.tokenIndex;try{return e.call(this)}catch(at){if(o)throw at;var r=t.call(this,n);return o=!0,i(at,r),o=!1,r}},lookupNonWSType:function(e){var t;do{if((t=this.lookupType(e++))!==Bv)return t}while(0!==t);return 0},charCodeAt:function(e){return e>=0&&e=0&&sO(e.charCodeAt(t));t--);return t+1}(t,t.length-1)):a.getLocation(this.tokenStart);throw new jO(e||"Unexpected input",t,r.offset,r.line,r.column)}});return Object.assign((function(e,u){t=e,u=u||{},s.setSource(t,MO),a.setSource(t,u.offset,u.line,u.column),n=u.filename||"",r=Boolean(u.positions),i="function"===typeof u.onParseError?u.onParseError:zO,o=!1,s.parseAtrulePrelude=!("parseAtrulePrelude"in u)||Boolean(u.parseAtrulePrelude),s.parseRulePrelude=!("parseRulePrelude"in u)||Boolean(u.parseRulePrelude),s.parseValue=!("parseValue"in u)||Boolean(u.parseValue),s.parseCustomProperty="parseCustomProperty"in u&&Boolean(u.parseCustomProperty);var l=u,c=l.context,h=void 0===c?"default":c,f=l.onComment;if(h in s.context===!1)throw new Error("Unknown context `"+h+"`");"function"===typeof f&&s.forEachToken((function(e,n,r){if(e===Kv){var i=s.getLocation(n,r),o=yO(t,r-2,r,"*/")?t.slice(n+2,r-2):t.slice(n+2,r);f(o,i)}}));var d=s.context[h].call(s,u);return s.eof||s.error(),d}),{SyntaxError:jO,config:s.config})}var qO=n(865),XO=new Set(["Atrule","Selector","Declaration"]);var GO=function(e,t){if(9===e&&(e=t),"string"===typeof e){var n=e.charCodeAt(0);return n>127?32768:n<<8}return e},JO=[[1,1],[1,2],[1,7],[1,8],[1,"-"],[1,Zv],[1,$v],[1,jv],[1,zv],[1,Gv],[3,1],[3,2],[3,7],[3,8],[3,"-"],[3,Zv],[3,$v],[3,jv],[3,zv],[4,1],[4,2],[4,7],[4,8],[4,"-"],[4,Zv],[4,$v],[4,jv],[4,zv],[jv,1],[jv,2],[jv,7],[jv,8],[jv,"-"],[jv,Zv],[jv,$v],[jv,jv],[jv,zv],["#",1],["#",2],["#",7],["#",8],["#","-"],["#",Zv],["#",$v],["#",jv],["#",zv],["-",1],["-",2],["-",7],["-",8],["-","-"],["-",Zv],["-",$v],["-",jv],["-",zv],[Zv,1],[Zv,2],[Zv,7],[Zv,8],[Zv,Zv],[Zv,$v],[Zv,jv],[Zv,"%"],[Zv,zv],["@",1],["@",2],["@",7],["@",8],["@","-"],["@",zv],[".",Zv],[".",$v],[".",jv],["+",Zv],["+",$v],["+",jv],["/","*"]],VO=JO.concat([[1,4],[jv,4],[4,4],[3,Gv],[3,5],[3,Hv],[$v,$v],[$v,jv],[$v,2],[$v,"-"],[Jv,1],[Jv,2],[Jv,$v],[Jv,jv],[Jv,4],[Jv,"-"]]);function YO(e){var t=new Set(e.map((function(e){var t=(0,ee.Z)(e,2),n=t[0],r=t[1];return GO(n)<<16|GO(r)})));return function(e,n,r){var i=GO(n,r),o=r.charCodeAt(0);return(45===o&&1!==n&&2!==n&&n!==zv||43===o?t.has(e<<16|o<<8):t.has(e<<16|i))&&this.emit(" ",Bv,!0),i}}var KO=YO(JO),ey=YO(VO);function ty(e,t){var n=this;if("function"!==typeof t)e.children.forEach(this.node,this);else{var r=null;e.children.forEach((function(e){null!==r&&t.call(n,r),n.node(e),r=e}))}}function ny(e){var t=this;MO(e,(function(n,r,i){t.token(n,e.slice(r,i))}))}function ry(e){var t=new Map;for(var n in e.node){var r=e.node[n];"function"===typeof(r.generate||r)&&t.set(n,r.generate||r)}return function(e,n){var r="",o=0,a={node:function(e){if(!t.has(e.type))throw new Error("Unknown node type: "+e.type);t.get(e.type).call(s,e)},tokenBefore:ey,token:function(e,t){o=this.tokenBefore(o,e,t),this.emit(t,e,!1),9===e&&92===t.charCodeAt(0)&&this.emit("\n",Bv,!0)},emit:function(e){r+=e},result:function(){return r}};n&&("function"===typeof n.decorator&&(a=n.decorator(a)),n.sourceMap&&(a=function(e){var t=new qO.h,n={line:1,column:0},r={line:0,column:0},i={line:1,column:0},o={generated:i},a=1,s=0,u=!1,l=e.node;e.node=function(e){if(e.loc&&e.loc.start&&XO.has(e.type)){var c=e.loc.start.line,h=e.loc.start.column-1;r.line===c&&r.column===h||(r.line=c,r.column=h,n.line=a,n.column=s,u&&(u=!1,n.line===i.line&&n.column===i.column||t.addMapping(o)),u=!0,t.addMapping({source:e.loc.source,original:r,generated:n}))}l.call(this,e),u&&XO.has(e.type)&&(i.line=a,i.column=s)};var c=e.emit;e.emit=function(e,t,n){for(var r=0;r";break;case"Property":i="<'"+e.name+"'>";break;case"Keyword":i=e.name;break;case"AtKeyword":i="@"+e.name;break;case"Function":i=e.name+"(";break;case"String":case"Token":i=e.value;break;case"Comma":i=",";break;default:throw new Error("Unknown node type `"+e.type+"`")}return t(i,e)}function py(e,t){var n=fy,r=!1,i=!1;return"function"===typeof t?n=t:t&&(r=Boolean(t.forceBraces),i=Boolean(t.compact),"function"===typeof t.decorate&&(n=t.decorate)),dy(e,n,r,i)}var my={offset:0,line:1,column:1};function gy(e,t){var n=e&&e.loc&&e.loc[t];return n?"line"in n?vy(n):n:null}function vy(e,t){var n={offset:e.offset,line:e.line,column:e.column};if(t){var r=t.split(/\n|\r\n?|\f/);n.offset+=t.length,n.line+=r.length-1,n.column=1===r.length?n.column+t.length:r.pop().length+1}return n}var Oy=function(e,t){var n=FO("SyntaxReferenceError",e+(t?" `"+t+"`":""));return n.reference=t,n},yy=function(e,t,n,r){var i=FO("SyntaxMatchError",e),o=function(e,t){for(var n,r,i=e.tokens,o=e.longestMatch,a=o1?(n=gy(s||t,"end")||vy(my,h),r=vy(n)):(n=gy(s,"start")||vy(gy(t,"start")||my,h.slice(0,u)),r=gy(s,"end")||vy(n,h.substr(u,l))),{css:h,mismatchOffset:u,mismatchLength:l,start:n,end:r}}(r,n),a=o.css,s=o.mismatchOffset,u=o.mismatchLength,l=o.start,c=o.end;return i.rawMessage=e,i.syntax=t?py(t):"",i.css=a,i.mismatchOffset=s,i.mismatchLength=u,i.message=e+"\n syntax: "+i.syntax+"\n value: "+(a||"")+"\n --------"+new Array(i.mismatchOffset+1).join("-")+"^",Object.assign(i,l),i.loc={source:n&&n.loc&&n.loc.source||"",start:l,end:c},i},ky=new Map,by=new Map,xy=function(e){if(ky.has(e))return ky.get(e);var t=e.toLowerCase(),n=ky.get(t);if(void 0===n){var r=wy(t,0),i=r?"":Sy(t,0);n=Object.freeze({basename:t.substr(i.length),name:t,prefix:i,vendor:i,custom:r})}return ky.set(e,n),n},Ty=function(e){if(by.has(e))return by.get(e);var t=e,n=e[0];"/"===n?n="/"===e[1]?"//":"/":"_"!==n&&"*"!==n&&"$"!==n&&"#"!==n&&"+"!==n&&"&"!==n&&(n="");var r=wy(t,n.length);if(!r&&(t=t.toLowerCase(),by.has(t))){var i=by.get(t);return by.set(e,i),i}var o=r?"":Sy(t,n.length),a=t.substr(0,n.length+o.length),s=Object.freeze({basename:t.substr(a.length),name:t.substr(n.length),hack:n,vendor:o,prefix:a,custom:r});return by.set(e,s),s};function wy(e,t){return t=t||0,e.length-t>=2&&45===e.charCodeAt(t)&&45===e.charCodeAt(t+1)}function Sy(e,t){if(t=t||0,e.length-t>=3&&45===e.charCodeAt(t)&&45!==e.charCodeAt(t+1)){var n=e.indexOf("-",t+2);if(-1!==n)return e.substring(t,n+1)}return""}var Cy=["initial","inherit","unset","revert","revert-layer"],Ey=45,Ay=!0;function _y(e,t){return null!==e&&9===e.type&&e.value.charCodeAt(0)===t}function Qy(e,t,n){for(;null!==e&&(e.type===Bv||e.type===Kv);)e=n(++t);return t}function Py(e,t,n,r){if(!e)return 0;var i=e.value.charCodeAt(t);if(43===i||i===Ey){if(n)return 0;t++}for(;t6)return 0}return r}function My(e,t,n){if(!e)return 0;for(;Dy(n(t),63);){if(++e>6)return 0;t++}return t}var Iy=["calc(","-moz-calc(","-webkit-calc("],Ly=new Map([[2,Jv],[Gv,Jv],[qv,Xv],[Vv,Yv]]);function Fy(e,t){return te.max&&"string"!==typeof e.max)return!0}return!1}function zy(e){return function(t,n,r){return null===t?0:2===t.type&&$y(t.value,Iy)?function(e,t){var n=0,r=[],i=0;e:do{switch(e.type){case Yv:case Jv:case Xv:if(e.type!==n)break e;if(n=r.pop(),0===r.length){i++;break e}break;case 2:case Gv:case qv:case Vv:r.push(n),n=Ly.get(e.type)}i++}while(e=t(i));return i}(t,n):e(t,n,r)}}function Hy(e){return function(t){return null===t||t.type!==e?0:1}}function Wy(e){return e&&(e=new Set(e)),function(t,n,r){if(null===t||t.type!==jv)return 0;var i=wO(t.value,0);if(null!==e){var o=t.value.indexOf("\\",i),a=-1!==o&&jy(t.value,o)?t.value.substring(i,o):t.value.substr(i);if(!1===e.has(a.toLowerCase()))return 0}return By(r,t.value,i)?0:1}}function Uy(e){return"function"!==typeof e&&(e=function(){return 0}),function(t,n,r){return null!==t&&t.type===Zv&&0===Number(t.value)?1:e(t,n,r)}}var qy={"ident-token":Hy(1),"function-token":Hy(2),"at-keyword-token":Hy(3),"hash-token":Hy(4),"string-token":Hy(5),"bad-string-token":Hy(6),"url-token":Hy(7),"bad-url-token":Hy(8),"delim-token":Hy(9),"number-token":Hy(Zv),"percentage-token":Hy($v),"dimension-token":Hy(jv),"whitespace-token":Hy(Bv),"CDO-token":Hy(14),"CDC-token":Hy(zv),"colon-token":Hy(Hv),"semicolon-token":Hy(Wv),"comma-token":Hy(Uv),"[-token":Hy(qv),"]-token":Hy(Xv),"(-token":Hy(Gv),")-token":Hy(Jv),"{-token":Hy(Vv),"}-token":Hy(Yv),string:Hy(5),ident:Hy(1),"custom-ident":function(e){if(null===e||1!==e.type)return 0;var t=e.value.toLowerCase();return $y(t,Cy)||Zy(t,"default")?0:1},"custom-property-name":function(e){return null===e||1!==e.type||45!==Fy(e.value,0)||45!==Fy(e.value,1)?0:1},"hex-color":function(e){if(null===e||4!==e.type)return 0;var t=e.value.length;if(4!==t&&5!==t&&7!==t&&9!==t)return 0;for(var n=1;n=128||0===Vy[n])break}return e.pos===t&&e.error("Expect a keyword"),e.substringToPos(t)}function tk(e){for(var t=e.pos;t57)break}return e.pos===t&&e.error("Expect a number"),e.substringToPos(t)}function nk(e){var t=e.str.indexOf("'",e.pos+1);return-1===t&&(e.pos=e.str.length,e.error("Expect an apostrophe")),e.substringToPos(t+1)}function rk(e){var t,n=null;return e.eat(Jy),t=tk(e),44===e.charCode()?(e.pos++,125!==e.charCode()&&(n=tk(e))):n=t,e.eat(125),{min:Number(t),max:n?Number(n):0}}function ik(e,t){var n=function(e){var t=null,n=!1;switch(e.charCode()){case 42:e.pos++,t={min:0,max:0};break;case 43:e.pos++,t={min:1,max:0};break;case 63:e.pos++,t={min:0,max:1};break;case 35:e.pos++,n=!0,e.charCode()===Jy?t=rk(e):63===e.charCode()?(e.pos++,t={min:0,max:0}):t={min:1,max:0};break;case Jy:t=rk(e);break;default:return null}return{type:"Multiplier",comma:n,min:t.min,max:t.max,term:null}}(e);return null!==n?(n.term=t,35===e.charCode()&&43===e.charCodeAt(e.pos-1)?ik(e,n):n):t}function ok(e){var t=e.peek();return""===t?null:{type:"Token",value:t}}function ak(e){var t,n=null;return e.eat(60),t=ek(e),40===e.charCode()&&41===e.nextCharCode()&&(e.pos+=2,t+="()"),91===e.charCodeAt(e.findWsEnd(e.pos))&&(Ky(e),n=function(e){var t=null,n=null,r=1;return e.eat(91),45===e.charCode()&&(e.peek(),r=-1),-1==r&&8734===e.charCode()?e.peek():(t=r*Number(tk(e)),0!==Vy[e.charCode()]&&(t+=ek(e))),Ky(e),e.eat(44),Ky(e),8734===e.charCode()?e.peek():(r=1,45===e.charCode()&&(e.peek(),r=-1),n=r*Number(tk(e)),0!==Vy[e.charCode()]&&(n+=ek(e))),e.eat(93),{type:"Range",min:t,max:n}}(e)),e.eat(62),ik(e,{type:"Type",name:t,opts:n})}function sk(e,t){function n(e,t){return{type:"Group",terms:e,combinator:t,disallowEmpty:!1,explicit:!1}}var r;for(t=Object.keys(t).sort((function(e,t){return Yy[e]-Yy[t]}));t.length>0;){r=t.shift();for(var i=0,o=0;i1&&(e.splice(o,i-o,n(e.slice(o,i),r)),i=o+1),o=-1))}-1!==o&&t.length&&e.splice(o,i-o,n(e.slice(o,i),r))}return r}function uk(e){for(var t,n=[],r={},i=null,o=e.pos;t=lk(e);)"Spaces"!==t.type&&("Combinator"===t.type?(null!==i&&"Combinator"!==i.type||(e.pos=o,e.error("Unexpected combinator")),r[t.value]=!0):null!==i&&"Combinator"!==i.type&&(r[" "]=!0,n.push({type:"Combinator",value:" "})),n.push(t),i=t,o=e.pos);return null!==i&&"Combinator"===i.type&&(e.pos-=o,e.error("Unexpected combinator")),{type:"Group",terms:n,combinator:sk(n,r)||" ",disallowEmpty:!1,explicit:!1}}function lk(e){var t=e.charCode();if(t<128&&1===Vy[t])return function(e){var t=ek(e);return 40===e.charCode()?(e.pos++,{type:"Function",name:t}):ik(e,{type:"Keyword",name:t})}(e);switch(t){case 93:break;case 91:return ik(e,function(e){var t;return e.eat(91),t=uk(e),e.eat(93),t.explicit=!0,33===e.charCode()&&(e.pos++,t.disallowEmpty=!0),t}(e));case 60:return 39===e.nextCharCode()?function(e){var t;return e.eat(60),e.eat(39),t=ek(e),e.eat(39),e.eat(62),ik(e,{type:"Property",name:t})}(e):ak(e);case 124:return{type:"Combinator",value:e.substringToPos(e.pos+(124===e.nextCharCode()?2:1))};case 38:return e.pos++,e.eat(38),{type:"Combinator",value:"&&"};case 44:return e.pos++,{type:"Comma"};case 39:return ik(e,{type:"String",value:nk(e)});case 32:case 9:case 10:case 13:case 12:return{type:"Spaces",value:Ky(e)};case 64:return(t=e.nextCharCode())<128&&1===Vy[t]?(e.pos++,{type:"AtKeyword",name:ek(e)}):ok(e);case 42:case 43:case 63:case 35:case 33:break;case Jy:if((t=e.nextCharCode())<48||t>57)return ok(e);break;default:return ok(e)}}function ck(e){var t=new Gy(e),n=uk(t);return t.pos!==e.length&&t.error("Unexpected input"),1===n.terms.length&&"Group"===n.terms[0].type?n.terms[0]:n}var hk=function(){};function fk(e){return"function"===typeof e?e:hk}var dk={decorator:function(e){var t=[],n=null;return(0,it.Z)((0,it.Z)({},e),{},{node:function(t){var r=n;n=t,e.node.call(this,t),n=r},emit:function(e,r,i){t.push({type:r,value:e,node:i?null:n})},result:function(){return t}})}};function pk(e,t){return"string"===typeof e?function(e){var t=[];return MO(e,(function(n,r,i){return t.push({type:n,value:e.slice(r,i),node:null})})),t}(e):t.generate(e,dk)}var mk={type:"Match"},gk={type:"Mismatch"},vk={type:"DisallowEmpty"};function Ok(e,t,n){return t===mk&&n===gk||e===mk&&t===mk&&n===mk?e:("If"===e.type&&e.else===gk&&t===mk&&(t=e.then,e=e.match),{type:"If",match:e,then:t,else:n})}function yk(e){return e.length>2&&40===e.charCodeAt(e.length-2)&&41===e.charCodeAt(e.length-1)}function kk(e){return"Keyword"===e.type||"AtKeyword"===e.type||"Function"===e.type||"Type"===e.type&&yk(e.name)}function bk(e,t,n){switch(e){case" ":for(var r=mk,i=t.length-1;i>=0;i--){r=Ok(t[i],r,gk)}return r;case"|":for(var o=gk,a=null,s=t.length-1;s>=0;s--){var u=t[s];if(kk(u)&&(null===a&&s>0&&kk(t[s-1])&&(o=Ok({type:"Enum",map:a=Object.create(null)},mk,o)),null!==a)){var l=(yk(u.name)?u.name.slice(0,-1):u.name).toLowerCase();if(l in a===!1){a[l]=u;continue}}a=null,o=Ok(u,mk,o)}return o;case"&&":if(t.length>5)return{type:"MatchOnce",terms:t,all:!0};for(var c=gk,h=function(n){var r=t[n],i=void 0;i=t.length>1?bk(e,t.filter((function(e){return e!==r})),!1):mk,c=Ok(r,i,c)},f=t.length-1;f>=0;f--)h(f);return c;case"||":if(t.length>5)return{type:"MatchOnce",terms:t,all:!1};for(var d=n?mk:gk,p=function(n){var r=t[n],i=void 0;i=t.length>1?bk(e,t.filter((function(e){return e!==r})),!0):mk,d=Ok(r,i,d)},m=t.length-1;m>=0;m--)p(m);return d}}function xk(e){if("function"===typeof e)return{type:"Generic",fn:e};switch(e.type){case"Group":var t=bk(e.combinator,e.terms.map(xk),!1);return e.disallowEmpty&&(t=Ok(t,vk,gk)),t;case"Multiplier":return function(e){var t=mk,n=xk(e.term);if(0===e.max)n=Ok(n,vk,gk),(t=Ok(n,null,gk)).then=Ok(mk,mk,t),e.comma&&(t.then.else=Ok({type:"Comma",syntax:e},t,gk));else for(var r=e.min||1;r<=e.max;r++)e.comma&&t!==mk&&(t=Ok({type:"Comma",syntax:e},t,gk)),t=Ok(n,Ok(mk,mk,t),gk);if(0===e.min)t=Ok(mk,mk,t);else for(var i=0;i=65&&i<=90&&(i|=32),i!==r)return!1}return!0}function Ak(e){return null===e||(e.type===Uv||2===e.type||e.type===Gv||e.type===qv||e.type===Vv||function(e){return 9===e.type&&"?"!==e.value}(e))}function _k(e){return null===e||(e.type===Jv||e.type===Xv||e.type===Yv||9===e.type&&"/"===e.value)}function Qk(e,t,n){function r(){do{v++,g=vO&&(O=v)}function l(){y=2===y.type?y.prev:{type:3,syntax:c.syntax,token:y.token,prev:y},c=c.prev}var c=null,h=null,f=null,d=null,p=0,m=null,g=null,v=-1,O=0,y={type:0,syntax:null,token:null,prev:null};for(r();null===m&&++p<15e3;)switch(t.type){case"Match":if(null===h){if(null!==g&&(v!==e.length-1||"\\0"!==g.value&&"\\9"!==g.value)){t=gk;break}m=Sk;break}if((t=h.nextState)===vk){if(h.matchStack===y){t=gk;break}t=mk}for(;h.syntaxStack!==c;)l();h=h.prev;break;case"Mismatch":if(null!==d&&!1!==d)(null===f||v>f.tokenIndex)&&(f=d,d=!1);else if(null===f){m="Mismatch";break}t=f.nextState,h=f.thenStack,c=f.syntaxStack,y=f.matchStack,v=f.tokenIndex,g=vv){for(;v":"<'"+t.name+"'>"));if(!1!==d&&null!==g&&"Type"===t.type)if("custom-ident"===t.name&&1===g.type||"length"===t.name&&"0"===g.value){null===d&&(d=o(t,f)),t=gk;break}c={syntax:t.syntax,opts:t.syntax.opts||null!==c&&c.opts||null,prev:c},y={type:2,syntax:t.syntax,token:y.token,prev:y},t=C.match;break;case"Keyword":var E=t.name;if(null!==g){var A=g.value;if(-1!==A.indexOf("\\")&&(A=A.replace(/\\[09].*$/,"")),Ek(A,E)){u(),t=mk;break}}t=gk;break;case"AtKeyword":case"Function":if(null!==g&&Ek(g.value,t.name)){u(),t=mk;break}t=gk;break;case"Token":if(null!==g&&g.value===t.value){u(),t=mk;break}t=gk;break;case"Comma":null!==g&&g.type===Uv?Ak(y.token)?t=gk:(u(),t=_k(g)?gk:mk):t=Ak(y.token)||_k(g)?mk:gk;break;case"String":for(var _="",Q=v;Q=0}function Bk(e){return Boolean(e)&&jk(e.offset)&&jk(e.line)&&jk(e.column)}function zk(e,t){return function(n,r){if(!n||n.constructor!==Object)return r(n,"Type of node should be an Object");for(var i in n){var o=!0;if(!1!==$k.call(n,i)){if("type"===i)n.type!==e&&r(n,"Wrong node type `"+n.type+"`, expected `"+e+"`");else if("loc"===i){if(null===n.loc)continue;if(n.loc&&n.loc.constructor===Object)if("string"!==typeof n.loc.source)i+=".source";else if(Bk(n.loc.start)){if(Bk(n.loc.end))continue;i+=".end"}else i+=".start";o=!1}else if(t.hasOwnProperty(i)){o=!1;for(var a=0;!o&&a");else{if(!Array.isArray(l))throw new Error("Wrong value `"+l+"` in `"+e+"."+o+"` structure definition");a.push("List")}}i[o]=a.join(" | ")}return{docs:i,check:zk(e,r)}}var Wk=Tk(Cy.join(" | "));function Uk(e,t,n){var r={};for(var i in e)e[i].syntax&&(r[i]=n?e[i].syntax:py(e[i].syntax,{compact:t}));return r}function qk(e,t,n){for(var r={},i=0,o=Object.entries(e);i3&&void 0!==arguments[3]?arguments[3]:null,i={type:t,name:n},o={type:t,name:n,parent:r,serializable:"string"===typeof e||e&&"string"===typeof e.type,syntax:null,match:null};return"function"===typeof e?o.match=Tk(e,i):("string"===typeof e?Object.defineProperty(o,"syntax",{get:function(){return Object.defineProperty(o,"syntax",{value:ck(e)}),o.syntax}}):o.syntax=e,Object.defineProperty(o,"match",{get:function(){return Object.defineProperty(o,"match",{value:Tk(o.syntax,i)}),o.match}})),o}},{key:"addAtrule_",value:function(e,t){var n=this;t&&(this.atrules[e]={type:"Atrule",name:e,prelude:t.prelude?this.createDescriptor(t.prelude,"AtrulePrelude",e):null,descriptors:t.descriptors?Object.keys(t.descriptors).reduce((function(r,i){return r[i]=n.createDescriptor(t.descriptors[i],"AtruleDescriptor",i,e),r}),Object.create(null)):null})}},{key:"addProperty_",value:function(e,t){t&&(this.properties[e]=this.createDescriptor(t,"Property",e))}},{key:"addType_",value:function(e,t){t&&(this.types[e]=this.createDescriptor(t,"Type",e))}},{key:"checkAtruleName",value:function(e){if(!this.getAtrule(e))return new Oy("Unknown at-rule","@"+e)}},{key:"checkAtrulePrelude",value:function(e,t){var n=this.checkAtruleName(e);if(n)return n;var r=this.getAtrule(e);return!r.prelude&&t?new SyntaxError("At-rule `@"+e+"` should not contain a prelude"):!r.prelude||t||Gk(this,r.prelude,"",!1).matched?void 0:new SyntaxError("At-rule `@"+e+"` should contain a prelude")}},{key:"checkAtruleDescriptorName",value:function(e,t){var n=this.checkAtruleName(e);if(n)return n;var r=this.getAtrule(e),i=xy(t);return r.descriptors?r.descriptors[i.name]||r.descriptors[i.basename]?void 0:new Oy("Unknown at-rule descriptor",t):new SyntaxError("At-rule `@"+e+"` has no known descriptors")}},{key:"checkPropertyName",value:function(e){if(!this.getProperty(e))return new Oy("Unknown property",e)}},{key:"matchAtrulePrelude",value:function(e,t){var n=this.checkAtrulePrelude(e,t);if(n)return Xk(null,n);var r=this.getAtrule(e);return r.prelude?Gk(this,r.prelude,t||"",!1):Xk(null,null)}},{key:"matchAtruleDescriptor",value:function(e,t,n){var r=this.checkAtruleDescriptorName(e,t);if(r)return Xk(null,r);var i=this.getAtrule(e),o=xy(t);return Gk(this,i.descriptors[o.name]||i.descriptors[o.basename],n,!1)}},{key:"matchDeclaration",value:function(e){return"Declaration"!==e.type?Xk(null,new Error("Not a Declaration node")):this.matchProperty(e.property,e.value)}},{key:"matchProperty",value:function(e,t){if(Ty(e).custom)return Xk(null,new Error("Lexer matching doesn't applicable for custom properties"));var n=this.checkPropertyName(e);return n?Xk(null,n):Gk(this,this.getProperty(e),t,!0)}},{key:"matchType",value:function(e,t){var n=this.getType(e);return n?Gk(this,n,t,!1):Xk(null,new Oy("Unknown type",e))}},{key:"match",value:function(e,t){return"string"===typeof e||e&&e.type?("string"!==typeof e&&e.match||(e=this.createDescriptor(e,"Type","anonymous")),Gk(this,e,t,!1)):Xk(null,new Oy("Bad syntax"))}},{key:"findValueFragments",value:function(e,t,n,r){return Zk(this,t,this.matchProperty(e,t),n,r)}},{key:"findDeclarationValueFragments",value:function(e,t,n){return Zk(this,e.value,this.matchDeclaration(e),t,n)}},{key:"findAllFragments",value:function(e,t,n){var r=this,i=[];return this.syntax.walk(e,{visit:"Declaration",enter:function(e){i.push.apply(i,r.findDeclarationValueFragments(e,t,n))}}),i}},{key:"getAtrule",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=xy(e),r=n.vendor&&t?this.atrules[n.name]||this.atrules[n.basename]:this.atrules[n.name];return r||null}},{key:"getAtrulePrelude",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this.getAtrule(e,t);return n&&n.prelude||null}},{key:"getAtruleDescriptor",value:function(e,t){return this.atrules.hasOwnProperty(e)&&this.atrules.declarators&&this.atrules[e].declarators[t]||null}},{key:"getProperty",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=Ty(e),r=n.vendor&&t?this.properties[n.name]||this.properties[n.basename]:this.properties[n.name];return r||null}},{key:"getType",value:function(e){return hasOwnProperty.call(this.types,e)?this.types[e]:null}},{key:"validate",value:function(){function e(r,i,o,a){if(o.has(i))return o.get(i);o.set(i,!1),null!==a.syntax&&function(e,t,n){var r=hk,i=hk;if("function"===typeof t?r=t:t&&(r=fk(t.enter),i=fk(t.leave)),r===hk&&i===hk)throw new Error("Neither `enter` nor `leave` walker handler is set or both aren't a function");!function e(t){switch(r.call(n,t),t.type){case"Group":t.terms.forEach(e);break;case"Multiplier":e(t.term);break;case"Type":case"Property":case"Keyword":case"AtKeyword":case"Function":case"String":case"Token":case"Comma":break;default:throw new Error("Unknown type: "+t.type)}i.call(n,t)}(e)}(a.syntax,(function(a){if("Type"===a.type||"Property"===a.type){var s="Type"===a.type?r.types:r.properties,u="Type"===a.type?t:n;hasOwnProperty.call(s,a.name)&&!e(r,a.name,u,s[a.name])||o.set(i,!0)}}),this)}var t=new Map,n=new Map;for(var r in this.types)e(this,r,t,this.types[r]);for(var i in this.properties)e(this,i,n,this.properties[i]);return t=(0,rt.Z)(t.keys()).filter((function(e){return t.get(e)})),n=(0,rt.Z)(n.keys()).filter((function(e){return n.get(e)})),t.length||n.length?{types:t,properties:n}:null}},{key:"dump",value:function(e,t){return{generic:this.generic,types:Uk(this.types,!t,e),properties:Uk(this.properties,!t,e),atrules:qk(this.atrules,!t,e)}}},{key:"toString",value:function(){return JSON.stringify(this.dump())}}]),e}(),Vk=Object.prototype.hasOwnProperty,Yk={generic:!0,types:nb,atrules:{prelude:rb,descriptors:rb},properties:nb,parseContext:function(e,t){return Object.assign(e,t)},scope:function e(t,n){for(var r in n)Vk.call(n,r)&&(Kk(t[r])?e(t[r],n[r]):t[r]=eb(n[r]));return t},atrule:["parse"],pseudo:["parse"],node:["name","structure","parse","generate","walkContext"]};function Kk(e){return e&&e.constructor===Object}function eb(e){return Kk(e)?(0,it.Z)({},e):e}function tb(e,t){return"string"===typeof t&&/^\s*\|/.test(t)?"string"===typeof e?e+t:t.replace(/^\s*\|\s*/,""):t||null}function nb(e,t){if("string"===typeof t)return tb(e,t);var n=(0,it.Z)({},e);for(var r in t)Vk.call(t,r)&&(n[r]=tb(Vk.call(e,r)?e[r]:void 0,t[r]));return n}function rb(e,t){var n=nb(e,t);return!Kk(n)||Object.keys(n).length?n:null}function ib(e,t,n){for(var r in n)if(!1!==Vk.call(n,r))if(!0===n[r])Vk.call(t,r)&&(e[r]=eb(t[r]));else if(n[r])if("function"===typeof n[r]){var i=n[r];e[r]=i({},e[r]),e[r]=i(e[r]||{},t[r])}else if(Kk(n[r])){var o={};for(var a in e[r])o[a]=ib({},e[r][a],n[r]);for(var s in t[r])o[s]=ib(o[s]||{},t[r][s],n[r]);e[r]=o}else if(Array.isArray(n[r])){for(var u={},l=n[r].reduce((function(e,t){return e[t]=!0,e}),{}),c=0,h=Object.entries(e[r]||{});c0&&this.skip(e),0===t&&(n=this.charCodeAt(this.tokenStart))!==sb&&n!==ub&&this.error("Number sign is expected"),fb.call(this,0!==t),t===ub?"-"+this.consume(Zv):this.consume(Zv)}var mb="AnPlusB",gb={a:[String,null],b:[String,null]};function vb(){var e=this.tokenStart,t=null,n=null;if(this.tokenType===Zv)fb.call(this,false),n=this.consume(Zv);else if(1===this.tokenType&&this.cmpChar(this.tokenStart,ub))switch(t="-1",db.call(this,1,lb),this.tokenEnd-this.tokenStart){case 2:this.next(),n=pb.call(this);break;case 3:db.call(this,2,ub),this.next(),this.skipSC(),fb.call(this,cb),n="-"+this.consume(Zv);break;default:db.call(this,2,ub),hb.call(this,3,cb),this.next(),n=this.substrToCursor(e+2)}else if(1===this.tokenType||this.isDelim(sb)&&1===this.lookupType(1)){var r=0;switch(t="1",this.isDelim(sb)&&(r=1,this.next()),db.call(this,0,lb),this.tokenEnd-this.tokenStart){case 1:this.next(),n=pb.call(this);break;case 2:db.call(this,1,ub),this.next(),this.skipSC(),fb.call(this,cb),n="-"+this.consume(Zv);break;default:db.call(this,1,ub),hb.call(this,2,cb),this.next(),n=this.substrToCursor(e+r+1)}}else if(this.tokenType===jv){for(var i=this.charCodeAt(this.tokenStart),o=i===sb||i===ub,a=this.tokenStart+o;a=2&&42===this.charCodeAt(t-2)&&47===this.charCodeAt(t-1)&&(t-=2),{type:"Comment",loc:this.getLocation(e,this.tokenStart),value:this.substring(e+2,t)}}function mx(e){this.token(Kv,"/*"+e.value+"*/")}function gx(e){return this.Raw(e,this.consumeUntilExclamationMarkOrSemicolon,!0)}function vx(e){return this.Raw(e,this.consumeUntilExclamationMarkOrSemicolon,!1)}function Ox(){var e=this.tokenIndex,t=this.Value();return"Raw"!==t.type&&!1===this.eof&&this.tokenType!==Wv&&!1===this.isDelim(33)&&!1===this.isBalanceEdge(e)&&this.error(),t}var yx="Declaration",kx="declaration",bx={important:[Boolean,String],property:String,value:["Value","Raw"]};function xx(){var e,t=this.tokenStart,n=this.tokenIndex,r=wx.call(this),i=wy(r),o=i?this.parseCustomProperty:this.parseValue,a=i?vx:gx,s=!1;this.skipSC(),this.eat(Hv);var u=this.tokenIndex;if(i||this.skipSC(),e=o?this.parseWithFallback(Ox,a):a.call(this,this.tokenIndex),i&&"Value"===e.type&&e.children.isEmpty)for(var l=u-this.tokenIndex;l<=0;l++)if(this.lookupType(l)===Bv){e.children.appendData({type:"WhiteSpace",loc:null,value:" "});break}return this.isDelim(33)&&(s=Sx.call(this),this.skipSC()),!1===this.eof&&this.tokenType!==Wv&&!1===this.isBalanceEdge(n)&&this.error(),{type:"Declaration",loc:this.getLocation(t,this.tokenStart),important:s,property:r,value:e}}function Tx(e){this.token(1,e.property),this.token(Hv,":"),this.node(e.value),e.important&&(this.token(9,"!"),this.token(1,!0===e.important?"important":e.important))}function wx(){var e=this.tokenStart;if(9===this.tokenType)switch(this.charCodeAt(this.tokenStart)){case 42:case 36:case 43:case 35:case 38:this.next();break;case 47:this.next(),this.isDelim(47)&&this.next()}return 4===this.tokenType?this.eat(4):this.eat(1),this.substrToCursor(e)}function Sx(){this.eat(9),this.skipSC();var e=this.consume(1);return"important"===e||e}function Cx(e){return this.Raw(e,this.consumeUntilSemicolonIncluded,!0)}var Ex="DeclarationList",Ax={children:[["Declaration"]]};function _x(){for(var e=this.createList();!this.eof;)switch(this.tokenType){case Bv:case Kv:case Wv:this.next();break;default:e.push(this.parseWithFallback(this.Declaration,Cx))}return{type:"DeclarationList",loc:this.getLocationFromList(e),children:e}}function Qx(e){var t=this;this.children(e,(function(e){"Declaration"===e.type&&t.token(Wv,";")}))}var Px="Dimension",Rx={value:String,unit:String};function Dx(){var e=this.tokenStart,t=this.consumeNumber(jv);return{type:"Dimension",loc:this.getLocation(e,this.tokenStart),value:t,unit:this.substring(e+t.length,this.tokenStart)}}function Nx(e){this.token(jv,e.value+e.unit)}var Mx="Function",Ix="function",Lx={name:String,children:[[]]};function Fx(e,t){var n,r=this.tokenStart,i=this.consumeFunctionName(),o=i.toLowerCase();return n=t.hasOwnProperty(o)?t[o].call(this,t):e.call(this,t),this.eof||this.eat(Jv),{type:"Function",loc:this.getLocation(r,this.tokenStart),name:i,children:n}}function Zx(e){this.token(2,e.name+"("),this.children(e),this.token(Jv,")")}var $x="XXX",jx="Hash",Bx={value:String};function zx(){var e=this.tokenStart;return this.eat(4),{type:"Hash",loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e+1)}}function Hx(e){this.token(4,"#"+e.value)}var Wx="Identifier",Ux={name:String};function qx(){return{type:"Identifier",loc:this.getLocation(this.tokenStart,this.tokenEnd),name:this.consume(1)}}function Xx(e){this.token(1,e.name)}var Gx="IdSelector",Jx={name:String};function Vx(){var e=this.tokenStart;return this.eat(4),{type:"IdSelector",loc:this.getLocation(e,this.tokenStart),name:this.substrToCursor(e+1)}}function Yx(e){this.token(9,"#"+e.name)}var Kx="MediaFeature",eT={name:String,value:["Identifier","Number","Dimension","Ratio",null]};function tT(){var e,t=this.tokenStart,n=null;if(this.eat(Gv),this.skipSC(),e=this.consume(1),this.skipSC(),this.tokenType!==Jv){switch(this.eat(Hv),this.skipSC(),this.tokenType){case Zv:n=9===this.lookupNonWSType(1)?this.Ratio():this.Number();break;case jv:n=this.Dimension();break;case 1:n=this.Identifier();break;default:this.error("Number, dimension, ratio or identifier is expected")}this.skipSC()}return this.eat(Jv),{type:"MediaFeature",loc:this.getLocation(t,this.tokenStart),name:e,value:n}}function nT(e){this.token(Gv,"("),this.token(1,e.name),null!==e.value&&(this.token(Hv,":"),this.node(e.value)),this.token(Jv,")")}var rT="MediaQuery",iT={children:[["Identifier","MediaFeature","WhiteSpace"]]};function oT(){var e=this.createList(),t=null;this.skipSC();e:for(;!this.eof;){switch(this.tokenType){case Kv:case Bv:this.next();continue;case 1:t=this.Identifier();break;case Gv:t=this.MediaFeature();break;default:break e}e.push(t)}return null===t&&this.error("Identifier or parenthesis is expected"),{type:"MediaQuery",loc:this.getLocationFromList(e),children:e}}function aT(e){this.children(e)}var sT="MediaQueryList",uT={children:[["MediaQuery"]]};function lT(){var e=this.createList();for(this.skipSC();!this.eof&&(e.push(this.MediaQuery()),this.tokenType===Uv);)this.next();return{type:"MediaQueryList",loc:this.getLocationFromList(e),children:e}}function cT(e){var t=this;this.children(e,(function(){return t.token(Uv,",")}))}var hT="Nth",fT={nth:["AnPlusB","Identifier"],selector:["SelectorList",null]};function dT(){this.skipSC();var e,t=this.tokenStart,n=t,r=null;return e=this.lookupValue(0,"odd")||this.lookupValue(0,"even")?this.Identifier():this.AnPlusB(),n=this.tokenStart,this.skipSC(),this.lookupValue(0,"of")&&(this.next(),r=this.SelectorList(),n=this.tokenStart),{type:"Nth",loc:this.getLocation(t,n),nth:e,selector:r}}function pT(e){this.node(e.nth),null!==e.selector&&(this.token(1,"of"),this.node(e.selector))}var mT="Number",gT={value:String};function vT(){return{type:"Number",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:this.consume(Zv)}}function OT(e){this.token(Zv,e.value)}var yT="Operator",kT={value:String};function bT(){var e=this.tokenStart;return this.next(),{type:"Operator",loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e)}}function xT(e){this.tokenize(e.value)}var TT="Parentheses",wT={children:[[]]};function ST(e,t){var n,r=this.tokenStart;return this.eat(Gv),n=e.call(this,t),this.eof||this.eat(Jv),{type:"Parentheses",loc:this.getLocation(r,this.tokenStart),children:n}}function CT(e){this.token(Gv,"("),this.children(e),this.token(Jv,")")}var ET="Percentage",AT={value:String};function _T(){return{type:"Percentage",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:this.consumeNumber($v)}}function QT(e){this.token($v,e.value+"%")}var PT="PseudoClassSelector",RT="function",DT={name:String,children:[["Raw"],null]};function NT(){var e,t,n=this.tokenStart,r=null;return this.eat(Hv),2===this.tokenType?(t=(e=this.consumeFunctionName()).toLowerCase(),hasOwnProperty.call(this.pseudo,t)?(this.skipSC(),r=this.pseudo[t].call(this),this.skipSC()):(r=this.createList()).push(this.Raw(this.tokenIndex,null,!1)),this.eat(Jv)):e=this.consume(1),{type:"PseudoClassSelector",loc:this.getLocation(n,this.tokenStart),name:e,children:r}}function MT(e){this.token(Hv,":"),null===e.children?this.token(1,e.name):(this.token(2,e.name+"("),this.children(e),this.token(Jv,")"))}var IT="PseudoElementSelector",LT="function",FT={name:String,children:[["Raw"],null]};function ZT(){var e,t,n=this.tokenStart,r=null;return this.eat(Hv),this.eat(Hv),2===this.tokenType?(t=(e=this.consumeFunctionName()).toLowerCase(),hasOwnProperty.call(this.pseudo,t)?(this.skipSC(),r=this.pseudo[t].call(this),this.skipSC()):(r=this.createList()).push(this.Raw(this.tokenIndex,null,!1)),this.eat(Jv)):e=this.consume(1),{type:"PseudoElementSelector",loc:this.getLocation(n,this.tokenStart),name:e,children:r}}function $T(e){this.token(Hv,":"),this.token(Hv,":"),null===e.children?this.token(1,e.name):(this.token(2,e.name+"("),this.children(e),this.token(Jv,")"))}function jT(){this.skipSC();for(var e=this.consume(Zv),t=0;t0&&this.lookupType(-1)===Bv?this.tokenIndex>1?this.getTokenStart(this.tokenIndex-1):this.firstCharOffset:this.tokenStart}var qT="Raw",XT={value:String};function GT(e,t,n){var r,i=this.getTokenStart(e);return this.skipUntilBalanced(e,t||this.consumeUntilBalanceEnd),r=n&&this.tokenStart>i?UT.call(this):this.tokenStart,{type:"Raw",loc:this.getLocation(i,r),value:this.substring(i,r)}}function JT(e){this.tokenize(e.value)}function VT(e){return this.Raw(e,this.consumeUntilLeftCurlyBracket,!0)}function YT(){var e=this.SelectorList();return"Raw"!==e.type&&!1===this.eof&&this.tokenType!==Vv&&this.error(),e}var KT="Rule",ew="rule",tw={prelude:["SelectorList","Raw"],block:["Block"]};function nw(){var e,t,n=this.tokenIndex,r=this.tokenStart;return e=this.parseRulePrelude?this.parseWithFallback(YT,VT):VT.call(this,n),t=this.Block(!0),{type:"Rule",loc:this.getLocation(r,this.tokenStart),prelude:e,block:t}}function rw(e){this.node(e.prelude),this.node(e.block)}var iw="Selector",ow={children:[["TypeSelector","IdSelector","ClassSelector","AttributeSelector","PseudoClassSelector","PseudoElementSelector","Combinator","WhiteSpace"]]};function aw(){var e=this.readSequence(this.scope.Selector);return null===this.getFirstListNode(e)&&this.error("Selector is expected"),{type:"Selector",loc:this.getLocationFromList(e),children:e}}function sw(e){this.children(e)}var uw="SelectorList",lw="selector",cw={children:[["Selector","Raw"]]};function hw(){for(var e=this.createList();!this.eof&&(e.push(this.Selector()),this.tokenType===Uv);)this.next();return{type:"SelectorList",loc:this.getLocationFromList(e),children:e}}function fw(e){var t=this;this.children(e,(function(){return t.token(Uv,",")}))}function dw(e){for(var t=e.length,n=e.charCodeAt(0),r=34===n||39===n?1:0,i=1===r&&t>1&&e.charCodeAt(t-1)===n?t-2:t-1,o="",a=r;a<=i;a++){var s=e.charCodeAt(a);if(92===s){if(a===i){a!==t-1&&(o=e.substr(a+1));break}if(uO(92,s=e.charCodeAt(++a))){var u=a-1,l=xO(e,u);a=l-1,o+=CO(e.substring(u+1,l))}else 13===s&&10===e.charCodeAt(a+1)&&a++}else o+=e[a]}return o}var pw="String",mw={value:String};function gw(){return{type:"String",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:dw(this.consume(5))}}function vw(e){this.token(5,function(e,t){for(var n=t?"'":'"',r=t?39:34,i="",o=!1,a=0;a6&&this.error("Too many hex digits",r)}return this.next(),n}function Qw(e){for(var t=0;this.isDelim(63);)++t>e&&this.error("Too many question marks"),this.next()}function Pw(e){this.charCodeAt(this.tokenStart)!==e&&this.error((43===e?"Plus sign":"Hyphen minus")+" is expected")}function Rw(){var e=0;switch(this.tokenType){case Zv:if(e=_w.call(this,1,!0),this.isDelim(63)){Qw.call(this,6-e);break}if(this.tokenType===jv||this.tokenType===Zv){Pw.call(this,45),_w.call(this,1,!1);break}break;case jv:(e=_w.call(this,1,!0))>0&&Qw.call(this,6-e);break;default:if(this.eatDelim(43),1===this.tokenType){(e=_w.call(this,0,!0))>0&&Qw.call(this,6-e);break}if(this.isDelim(63)){this.next(),Qw.call(this,5);break}this.error("Hex digit or question mark is expected")}}var Dw="UnicodeRange",Nw={value:String};function Mw(){var e=this.tokenStart;return this.eatIdent("u"),Rw.call(this),{type:"UnicodeRange",loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e)}}function Iw(e){this.tokenize(e.value)}var Lw="Url",Fw={value:String};function Zw(){var e,t=this.tokenStart;switch(this.tokenType){case 7:e=function(e){for(var t=e.length,n=4,r=41===e.charCodeAt(t-1)?t-2:t-1,i="";n|","angle-percentage":"|","angular-color-hint":"","angular-color-stop":"&&?","angular-color-stop-list":"[ [, ]?]# , ","animateable-feature":"scroll-position|contents|",attachment:"scroll|fixed|local","attr()":"attr( ? [, ]? )","attr-matcher":"['~'|'|'|'^'|'$'|'*']? '='","attr-modifier":"i|s","attribute-selector":"'[' ']'|'[' [|] ? ']'","auto-repeat":"repeat( [auto-fill|auto-fit] , [? ]+ ? )","auto-track-list":"[? [|]]* ? [? [|]]* ?","baseline-position":"[first|last]? baseline","basic-shape":"||||","bg-image":"none|","bg-layer":"|| [/ ]?||||||||","bg-position":"[[left|center|right|top|bottom|]|[left|center|right|] [top|center|bottom|]|[center|[left|right] ?]&&[center|[top|bottom] ?]]","bg-size":"[|auto]{1,2}|cover|contain","blur()":"blur( )","blend-mode":"normal|multiply|screen|overlay|darken|lighten|color-dodge|color-burn|hard-light|soft-light|difference|exclusion|hue|saturation|color|luminosity",box:"border-box|padding-box|content-box","brightness()":"brightness( )","calc()":"calc( )","calc-sum":" [['+'|'-'] ]*","calc-product":" ['*' |'/' ]*","calc-value":"|||( )","cf-final-image":"|","cf-mixing-image":"?&&","circle()":"circle( []? [at ]? )","clamp()":"clamp( #{3} )","class-selector":"'.' ","clip-source":"",color:"|||||||||currentcolor|","color-stop":"|","color-stop-angle":"{1,2}","color-stop-length":"{1,2}","color-stop-list":"[ [, ]?]# , ",combinator:"'>'|'+'|'~'|['||']","common-lig-values":"[common-ligatures|no-common-ligatures]","compat-auto":"searchfield|textarea|push-button|slider-horizontal|checkbox|radio|square-button|menulist|listbox|meter|progress-bar|button","composite-style":"clear|copy|source-over|source-in|source-out|source-atop|destination-over|destination-in|destination-out|destination-atop|xor","compositing-operator":"add|subtract|intersect|exclude","compound-selector":"[? * [ *]*]!","compound-selector-list":"#","complex-selector":" [? ]*","complex-selector-list":"#","conic-gradient()":"conic-gradient( [from ]? [at ]? , )","contextual-alt-values":"[contextual|no-contextual]","content-distribution":"space-between|space-around|space-evenly|stretch","content-list":"[|contents||||||]+","content-position":"center|start|end|flex-start|flex-end","content-replacement":"","contrast()":"contrast( [] )",counter:"|","counter()":"counter( , ? )","counter-name":"","counter-style":"|symbols( )","counter-style-name":"","counters()":"counters( , , ? )","cross-fade()":"cross-fade( , ? )","cubic-bezier-timing-function":"ease|ease-in|ease-out|ease-in-out|cubic-bezier( , , , )","deprecated-system-color":"ActiveBorder|ActiveCaption|AppWorkspace|Background|ButtonFace|ButtonHighlight|ButtonShadow|ButtonText|CaptionText|GrayText|Highlight|HighlightText|InactiveBorder|InactiveCaption|InactiveCaptionText|InfoBackground|InfoText|Menu|MenuText|Scrollbar|ThreeDDarkShadow|ThreeDFace|ThreeDHighlight|ThreeDLightShadow|ThreeDShadow|Window|WindowFrame|WindowText","discretionary-lig-values":"[discretionary-ligatures|no-discretionary-ligatures]","display-box":"contents|none","display-inside":"flow|flow-root|table|flex|grid|ruby","display-internal":"table-row-group|table-header-group|table-footer-group|table-row|table-cell|table-column-group|table-column|table-caption|ruby-base|ruby-text|ruby-base-container|ruby-text-container","display-legacy":"inline-block|inline-list-item|inline-table|inline-flex|inline-grid","display-listitem":"?&&[flow|flow-root]?&&list-item","display-outside":"block|inline|run-in","drop-shadow()":"drop-shadow( {2,3} ? )","east-asian-variant-values":"[jis78|jis83|jis90|jis04|simplified|traditional]","east-asian-width-values":"[full-width|proportional-width]","element()":"element( , [first|start|last|first-except]? )|element( )","ellipse()":"ellipse( [{2}]? [at ]? )","ending-shape":"circle|ellipse","env()":"env( , ? )","explicit-track-list":"[? ]+ ?","family-name":"|+","feature-tag-value":" [|on|off]?","feature-type":"@stylistic|@historical-forms|@styleset|@character-variant|@swash|@ornaments|@annotation","feature-value-block":" '{' '}'","feature-value-block-list":"+","feature-value-declaration":" : + ;","feature-value-declaration-list":"","feature-value-name":"","fill-rule":"nonzero|evenodd","filter-function":"|||||||||","filter-function-list":"[|]+","final-bg-layer":"<'background-color'>|||| [/ ]?||||||||","fit-content()":"fit-content( [|] )","fixed-breadth":"","fixed-repeat":"repeat( [] , [? ]+ ? )","fixed-size":"|minmax( , )|minmax( , )","font-stretch-absolute":"normal|ultra-condensed|extra-condensed|condensed|semi-condensed|semi-expanded|expanded|extra-expanded|ultra-expanded|","font-variant-css21":"[normal|small-caps]","font-weight-absolute":"normal|bold|","frequency-percentage":"|","general-enclosed":"[ )]|( )","generic-family":"serif|sans-serif|cursive|fantasy|monospace|-apple-system","generic-name":"serif|sans-serif|cursive|fantasy|monospace","geometry-box":"|fill-box|stroke-box|view-box",gradient:"||||||<-legacy-gradient>","grayscale()":"grayscale( )","grid-line":"auto||[&&?]|[span&&[||]]","historical-lig-values":"[historical-ligatures|no-historical-ligatures]","hsl()":"hsl( [/ ]? )|hsl( , , , ? )","hsla()":"hsla( [/ ]? )|hsla( , , , ? )",hue:"|","hue-rotate()":"hue-rotate( )","hwb()":"hwb( [|none] [|none] [|none] [/ [|none]]? )",image:"||||||","image()":"image( ? [? , ?]! )","image-set()":"image-set( # )","image-set-option":"[|] [||type( )]","image-src":"|","image-tags":"ltr|rtl","inflexible-breadth":"||min-content|max-content|auto","inset()":"inset( {1,4} [round <'border-radius'>]? )","invert()":"invert( )","keyframes-name":"|","keyframe-block":"# { }","keyframe-block-list":"+","keyframe-selector":"from|to|","layer()":"layer( )","layer-name":" ['.' ]*","leader()":"leader( )","leader-type":"dotted|solid|space|","length-percentage":"|","line-names":"'[' * ']'","line-name-list":"[|]+","line-style":"none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset","line-width":"|thin|medium|thick","linear-color-hint":"","linear-color-stop":" ?","linear-gradient()":"linear-gradient( [|to ]? , )","mask-layer":"|| [/ ]?||||||[|no-clip]||||","mask-position":"[|left|center|right] [|top|center|bottom]?","mask-reference":"none||","mask-source":"","masking-mode":"alpha|luminance|match-source","matrix()":"matrix( #{6} )","matrix3d()":"matrix3d( #{16} )","max()":"max( # )","media-and":" [and ]+","media-condition":"|||","media-condition-without-or":"||","media-feature":"( [||] )","media-in-parens":"( )||","media-not":"not ","media-or":" [or ]+","media-query":"|[not|only]? [and ]?","media-query-list":"#","media-type":"","mf-boolean":"","mf-name":"","mf-plain":" : ","mf-range":" ['<'|'>']? '='? | ['<'|'>']? '='? | '<' '='? '<' '='? | '>' '='? '>' '='? ","mf-value":"|||","min()":"min( # )","minmax()":"minmax( [||min-content|max-content|auto] , [|||min-content|max-content|auto] )","name-repeat":"repeat( [|auto-fill] , + )","named-color":"transparent|aliceblue|antiquewhite|aqua|aquamarine|azure|beige|bisque|black|blanchedalmond|blue|blueviolet|brown|burlywood|cadetblue|chartreuse|chocolate|coral|cornflowerblue|cornsilk|crimson|cyan|darkblue|darkcyan|darkgoldenrod|darkgray|darkgreen|darkgrey|darkkhaki|darkmagenta|darkolivegreen|darkorange|darkorchid|darkred|darksalmon|darkseagreen|darkslateblue|darkslategray|darkslategrey|darkturquoise|darkviolet|deeppink|deepskyblue|dimgray|dimgrey|dodgerblue|firebrick|floralwhite|forestgreen|fuchsia|gainsboro|ghostwhite|gold|goldenrod|gray|green|greenyellow|grey|honeydew|hotpink|indianred|indigo|ivory|khaki|lavender|lavenderblush|lawngreen|lemonchiffon|lightblue|lightcoral|lightcyan|lightgoldenrodyellow|lightgray|lightgreen|lightgrey|lightpink|lightsalmon|lightseagreen|lightskyblue|lightslategray|lightslategrey|lightsteelblue|lightyellow|lime|limegreen|linen|magenta|maroon|mediumaquamarine|mediumblue|mediumorchid|mediumpurple|mediumseagreen|mediumslateblue|mediumspringgreen|mediumturquoise|mediumvioletred|midnightblue|mintcream|mistyrose|moccasin|navajowhite|navy|oldlace|olive|olivedrab|orange|orangered|orchid|palegoldenrod|palegreen|paleturquoise|palevioletred|papayawhip|peachpuff|peru|pink|plum|powderblue|purple|rebeccapurple|red|rosybrown|royalblue|saddlebrown|salmon|sandybrown|seagreen|seashell|sienna|silver|skyblue|slateblue|slategray|slategrey|snow|springgreen|steelblue|tan|teal|thistle|tomato|turquoise|violet|wheat|white|whitesmoke|yellow|yellowgreen|<-non-standard-color>","namespace-prefix":"","ns-prefix":"[|'*']? '|'","number-percentage":"|","numeric-figure-values":"[lining-nums|oldstyle-nums]","numeric-fraction-values":"[diagonal-fractions|stacked-fractions]","numeric-spacing-values":"[proportional-nums|tabular-nums]",nth:"|even|odd","opacity()":"opacity( [] )","overflow-position":"unsafe|safe","outline-radius":"|","page-body":"? [; ]?| ","page-margin-box":" '{' '}'","page-margin-box-type":"@top-left-corner|@top-left|@top-center|@top-right|@top-right-corner|@bottom-left-corner|@bottom-left|@bottom-center|@bottom-right|@bottom-right-corner|@left-top|@left-middle|@left-bottom|@right-top|@right-middle|@right-bottom","page-selector-list":"[#]?","page-selector":"+| *","page-size":"A5|A4|A3|B5|B4|JIS-B5|JIS-B4|letter|legal|ledger","path()":"path( [ ,]? )","paint()":"paint( , ? )","perspective()":"perspective( )","polygon()":"polygon( ? , [ ]# )",position:"[[left|center|right]||[top|center|bottom]|[left|center|right|] [top|center|bottom|]?|[[left|right] ]&&[[top|bottom] ]]","pseudo-class-selector":"':' |':' ')'","pseudo-element-selector":"':' ","pseudo-page":": [left|right|first|blank]",quote:"open-quote|close-quote|no-open-quote|no-close-quote","radial-gradient()":"radial-gradient( [||]? [at ]? , )","relative-selector":"? ","relative-selector-list":"#","relative-size":"larger|smaller","repeat-style":"repeat-x|repeat-y|[repeat|space|round|no-repeat]{1,2}","repeating-conic-gradient()":"repeating-conic-gradient( [from ]? [at ]? , )","repeating-linear-gradient()":"repeating-linear-gradient( [|to ]? , )","repeating-radial-gradient()":"repeating-radial-gradient( [||]? [at ]? , )","rgb()":"rgb( {3} [/ ]? )|rgb( {3} [/ ]? )|rgb( #{3} , ? )|rgb( #{3} , ? )","rgba()":"rgba( {3} [/ ]? )|rgba( {3} [/ ]? )|rgba( #{3} , ? )|rgba( #{3} , ? )","rotate()":"rotate( [|] )","rotate3d()":"rotate3d( , , , [|] )","rotateX()":"rotateX( [|] )","rotateY()":"rotateY( [|] )","rotateZ()":"rotateZ( [|] )","saturate()":"saturate( )","scale()":"scale( , ? )","scale3d()":"scale3d( , , )","scaleX()":"scaleX( )","scaleY()":"scaleY( )","scaleZ()":"scaleZ( )","self-position":"center|start|end|self-start|self-end|flex-start|flex-end","shape-radius":"|closest-side|farthest-side","skew()":"skew( [|] , [|]? )","skewX()":"skewX( [|] )","skewY()":"skewY( [|] )","sepia()":"sepia( )",shadow:"inset?&&{2,4}&&?","shadow-t":"[{2,3}&&?]",shape:"rect( , , , )|rect( )","shape-box":"|margin-box","side-or-corner":"[left|right]||[top|bottom]","single-animation":"