0&&t.length>0?[].concat((0,ne.Z)(e),(0,ne.Z)(t)):e&&e.length>0?e:t&&t.length>0?t:hO}function gO(e,t,n){var r=e[t];r?r.push(n):e[t]=[n]}function vO(e,t){if("element"===t.type){var n=t.tagName.toUpperCase(),r=(e.types.get(n)||0)+1;e.count++,e.types.set(n,r)}}var OO=new(n(6428).N);function yO(e){if("string"!==typeof e)throw new TypeError("Expected `string` as selector, not `"+e+"`");return OO.parse(e)}function bO(e,t,n){return{rootQuery:fO(yO(e)),results:[],scopeElements:t?"root"===t.type?t.children:[t]:[],one:!1,shallow:!1,found:!1,schema:"svg"===n?Np.YP:Np.dy,language:void 0,direction:"ltr",editableOrEditingHost:!1,typeIndex:void 0,elementIndex:void 0,typeCount:void 0,elementCount:void 0}}OO.registerAttrEqualityMods("~","|","^","$","*"),OO.registerSelectorPseudos("any","matches","not","has"),OO.registerNestingOperators(">","+","~");var kO=function e(){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach((function(n){"text"===n.type?t+=n.value:"element"===n.type&&n.children&&Array.isArray(n.children)&&(t+=e(n.children))})),t},SO=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=function(e,t,n){var r=bO(e,t,n);return dO(r,t||void 0),r.results}(n,e);t&&t.length>0&&lp(e,t,(function(e,t,n){r(e,t,n)}))}else lp(e,(function(e,t,n){r(e,t,n)}))}},xO={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"}}]};var wO=n(7298),TO=n.n(wO);function CO(e){if(!e)return null;var t=e;return t.dataset.code&&t.classList.contains("copied")?t:t.parentElement?CO(t.parentElement):null}function EO(e){var t=function(e){var t=CO(e.target);t&&(t.classList.add("active"),TO()(t.dataset.code,(function(){setTimeout((function(){t.classList.remove("active")}),2e3)})))};(0,J.useEffect)((function(){var n,r;return null==(n=e.current)||n.removeEventListener("click",t,!1),null==(r=e.current)||r.addEventListener("click",t,!1),function(){var n;null==(n=e.current)||n.removeEventListener("click",t,!1)}}),[e])}var AO=function(e){return void 0===e&&(e={}),function(e){lp(e,(function(e){"element"===e.type&&"code"===e.tagName&&e.data&&e.data.meta&&(e.properties=Ht({},e.properties,{"data-meta":String(e.data.meta)}))}))}},PO=["prefixCls","className","source","style","disableCopy","skipHtml","onScroll","onMouseOver","pluginsFilter","rehypeRewrite","wrapperElement","warpperElement"],_O=J.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,l=void 0!==s&&s,u=e.skipHtml,c=void 0===u||u,h=e.onScroll,f=e.onMouseOver,d=e.pluginsFilter,p=e.rehypeRewrite,m=e.wrapperElement,g=void 0===m?{}:m,v=e.warpperElement,O=void 0===v?{}:v,y=Wt(e,PO),b=J.useRef(null);(0,J.useImperativeHandle)(t,(function(){return Ht({},e,{mdp:b})}),[b,e]);var k=(r||"")+" "+(i||"");EO(b);var S=[AO,[$v,{ignoreMissing:!0}],mv,kv,Cv,[SO,{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=Ht({class:"anchor"},r.properties),r.children=[xO])}if("element"===e.type&&"pre"===e.tagName&&!l){var i=kO(e.children);e.children.push((void 0===(o=i)&&(o=""),{type:"element",tagName:"div",properties:{class:"copied","data-code":o},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;p&&p(e,t,n)}}],[Tv,{properties:"attr"}]].concat((0,ne.Z)(y.rehypePlugins||[])),x={allowElement:function(e,t,n){return y.allowElement?y.allowElement(e,t,n):/^[A-Za-z0-9]+$/.test(e.tagName)}};c&&S.push(iv);var w=[].concat((0,ne.Z)(y.remarkPlugins||[]),[Dg]),T=Ht({},O,g);return(0,qt.jsx)("div",Ht({ref:b,onScroll:h,onMouseOver:f},T,{className:k,style:a,children:(0,qt.jsx)(Kp,Ht({},x,y,{skipHtml:c,rehypePlugins:d?d("rehype",S):S,remarkPlugins:d?d("remark",w):w,children:o||""}))}))})),DO={name:"bold",keyCommand:"bold",button:{"aria-label":"Add bold text"},icon:(0,qt.jsx)("svg",{width:"13",height:"13",viewBox:"0 0 384 512",children:(0,qt.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:Ls.jT.range(e.from+2,e.to+2)}})))}},ZO={name:"code",keyCommand:"code",button:{"aria-label":"Insert code"},icon:(0,qt.jsxs)("svg",{viewBox:"0 0 48 48",fill:"none",height:"15",width:"15",children:[(0,qt.jsx)("path",{d:"M16 13 4 25.432 16 37m16-24 12 12.432L32 37",stroke:"currentColor",strokeWidth:"5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,qt.jsx)("path",{d:"m28 4-7 40",stroke:"currentColor",strokeWidth:"5",strokeLinecap:"round"})]}),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:Ls.jT.range(e.from+1,e.to+1)}})))}},NO={name:"codeBlock",keyCommand:"codeBlock",button:{"aria-label":"Insert Code Block"},icon:(0,qt.jsxs)("svg",{viewBox:"0 0 48 48",fill:"none",height:"15",width:"15",children:[(0,qt.jsx)("path",{d:"M21 6H9a3 3 0 0 0-3 3v22a3 3 0 0 0 3 3h30a3 3 0 0 0 3-3V21M24 34v8",stroke:"currentColor",strokeWidth:"5",strokeLinecap:"round",strokeLinejoin:"round"}),(0,qt.jsx)("path",{d:"m32 6-4 4 4 4m6-8 4 4-4 4M14 42h20",stroke:"currentColor",strokeWidth:"5",strokeLinecap:"round",strokeLinejoin:"round"})]}),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:"```js\n"+i+"\n```"},selection:Ls.jT.range(r.from+3,r.from+5)})}}},QO={name:"italic",keyCommand:"italic",button:{"aria-label":"Add italic text"},icon:(0,qt.jsx)("svg",{width:"13",height:"13",viewBox:"0 0 320 512",children:(0,qt.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:Ls.jT.range(e.from+1,e.to+1)}})))}},RO={name:"header",keyCommand:"header",button:{"aria-label":"Add header text"},icon:(0,qt.jsx)("svg",{fill:"currentColor",viewBox:"0 0 448 512",height:"13",width:"13",children:(0,qt.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}})}}},MO={name:"strike",keyCommand:"strike",button:{"aria-label":"Add strike text"},icon:(0,qt.jsx)("svg",{fill:"currentColor",viewBox:"0 0 512 512",height:"14",width:"14",children:(0,qt.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:Ls.jT.range(e.from+2,e.to+2)}})))}},$O={name:"underline",keyCommand:"underline",button:{"aria-label":"Add underline text"},icon:(0,qt.jsx)("svg",{fill:"currentColor",viewBox:"0 0 448 512",height:"13",width:"13",children:(0,qt.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:Ls.jT.range(e.from+3,e.to+3)}})))}},IO={name:"olist",keyCommand:"olist",button:{"aria-label":"Add olist text"},icon:(0,qt.jsx)("svg",{viewBox:"0 0 576 512",height:"14",width:"14",children:(0,qt.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="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}})}}},LO={name:"ulist",keyCommand:"ulist",button:{"aria-label":"Add ulist text"},icon:(0,qt.jsx)("svg",{viewBox:"0 0 512 512",height:"14",width:"14",children:(0,qt.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="- ",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}})}}},FO={name:"quote",keyCommand:"quote",button:{"aria-label":"Add quote text"},icon:(0,qt.jsx)("svg",{fill:"currentColor",viewBox:"0 0 448 512",height:"15",width:"15",children:(0,qt.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}})}}},BO={name:"link",keyCommand:"link",button:{"aria-label":"Add link text"},icon:(0,qt.jsx)("svg",{fill:"currentColor",viewBox:"0 0 640 512",height:"16",width:"16",children:(0,qt.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:Ls.jT.range(r.from+3+i.length,r.to+3)})}}},jO={name:"todo",keyCommand:"todo",button:{"aria-label":"Add todo List"},icon:(0,qt.jsx)("svg",{viewBox:"0 0 48 48",fill:"none",height:"15",width:"15",children:(0,qt.jsx)("path",{d:"m5 10 3 3 6-6M5 24l3 3 6-6M5 38l3 3 6-6m7-11h22M21 38h22M21 10h22",stroke:"currentColor",strokeWidth:"5",strokeLinecap:"round",strokeLinejoin:"round"})}),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}})}}},zO={name:"image",keyCommand:"image",button:{"aria-label":"Add image text"},icon:(0,qt.jsx)("svg",{fill:"currentColor",viewBox:"0 0 16 16",height:"14",width:"14",children:(0,qt.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:""},selection:Ls.jT.range(r.from+4,r.to+4)})}}},UO={name:"redo",keyCommand:"redo",button:{"aria-label":"redo text"},icon:(0,qt.jsx)("svg",{viewBox:"0 0 512 512",height:"14",width:"14",children:(0,qt.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&&nl(n)}},YO={name:"undo",keyCommand:"undo",button:{"aria-label":"undo text"},icon:(0,qt.jsx)("svg",{viewBox:"0 0 512 512",height:"14",width:"14",children:(0,qt.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&&tl(n)}},XO=function(e){var t=e.editorProps,n=(0,J.useRef)(0),r=(0,J.useState)(!1),i=(0,te.Z)(r,2),o=i[0],a=i[1],s=(0,J.useRef)();return(0,J.useEffect)((function(){s.current=new ResizeObserver((function(e){var r,i=(0,Oe.Z)(e);try{for(i.s();!(r=i.n()).done;){var a,s=r.value;n.current||(n.current=s.target.clientHeight),null!=(a=t.editor)&&null!=(a=a.current)&&null!=(a=a.view)&&a.dom&&(o?t.editor.current.view.dom.style.height=s.target.clientHeight+"px":t.editor.current.view.dom.removeAttribute("style"))}}catch(l){i.e(l)}finally{i.f()}}))}),[]),(0,J.useEffect)((function(){if(t.containerEditor&&t.containerEditor.current&&t.containerEditor.current.parentElement&&s.current){var e=t.containerEditor.current.parentElement;s.current.observe(e)}}),[t.containerEditor,t.editor,o,s]),(0,J.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,qt.jsx)("button",{onClick:function(){return a(!o)},type:"button",className:o?"active":"",children:e.command.icon})},HO={name:"fullscreen",keyCommand:"fullscreen",button:function(e,t,n){return(0,qt.jsx)(XO,{command:e,editorProps:Ht({},t,n)})},icon:(0,qt.jsx)("svg",{fill:"currentColor",viewBox:"0 0 448 512",height:"15",width:"15",children:(0,qt.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"})})},WO=function(e){var t=e.editorProps,n=t.containerEditor,r=t.preview,i=t.previewWidth,o=void 0===i?"50%":i,a=(0,J.useState)(e.editorProps.visible),s=(0,te.Z)(a,2),l=s[0],u=s[1];return(0,J.useEffect)((function(){return u(e.editorProps.visible)}),[e.editorProps.visible]),(0,J.useEffect)((function(){if(r.current){var e=r.current;r&&(e.style.borderBottomRightRadius="3px"),e&&l?(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%"))}}),[l,n,r,o]),(0,qt.jsx)("button",{onClick:function(){return u(!l)},type:"button",className:l?"active":"",children:e.command.icon})},qO={name:"preview",keyCommand:"preview",button:function(e,t,n){return(0,qt.jsx)(WO,{command:e,editorProps:Ht({},t,n)})},icon:(0,qt.jsx)("svg",{fill:"currentColor",viewBox:"0 0 576 512",height:"16",width:"16",children:(0,qt.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"})})},GO={undo:YO,redo:UO,bold:DO,italic:QO,header:RO,strike:MO,underline:$O,quote:FO,olist:IO,ulist:LO,todo:jO,link:BO,image:zO,code:ZO,codeBlock:NO,fullscreen:HO,preview:qO},VO=function(){return Object.keys(GO).filter((function(e){return!/^(fullscreen|preview)/.test(e)})).map((function(e){return GO[e]}))},JO=function(){return[qO,HO]},KO=["prefixCls","className","onClick","toolbars","editor","mode","preview","container","containerEditor","editorProps"];function ey(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,l=e.preview,u=e.container,c=e.containerEditor,h=e.editorProps,f=void 0===h?{}:h,d=Wt(e,KO);if(!o||0===o.length)return null;return(0,qt.jsx)("div",Ht({className:n+"-toolbar "+(r||"")+" "+(s?n+"-toolbar-mode":"")},d,{children:(0,ne.Z)(o).map((function(e,t){var n={type:"button"},r="string"===typeof e?GO[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 J.cloneElement(r.button(r,f,{preview:l,container:u,containerEditor:c,editor:a,editorProps:f}),{key:t});return(0,J.createElement)("button",Ht({},n,{key:t}))}))}))}var ty=function(e){var t=e.theme,n=e.settings,r=void 0===n?{}:n,i=e.styles,o=void 0===i?[]:i,a={".cm-gutters":{}},s={};r.background&&(s.backgroundColor=r.background),r.foreground&&(s.color=r.foreground),(r.background||r.foreground)&&(a["&"]=s),r.fontFamily&&(a["&.cm-editor .cm-scroller"]={fontFamily:r.fontFamily}),r.gutterBackground&&(a[".cm-gutters"].backgroundColor=r.gutterBackground),r.gutterForeground&&(a[".cm-gutters"].color=r.gutterForeground),r.gutterBorder&&(a[".cm-gutters"].borderRightColor=r.gutterBorder),r.caret&&(a[".cm-content"]={caretColor:r.caret},a[".cm-cursor, .cm-dropCursor"]={borderLeftColor:r.caret});var l={};r.gutterActiveForeground&&(l.color=r.gutterActiveForeground),r.lineHighlight&&(a[".cm-activeLine"]={backgroundColor:r.lineHighlight},l.backgroundColor=r.lineHighlight),a[".cm-activeLineGutter"]=l,r.selection&&(a["&.cm-focused .cm-selectionBackground, &.cm-focused .cm-line::selection, & .cm-selectionLayer .cm-selectionBackground, .cm-content ::selection"]={backgroundColor:r.selection+" !important"}),r.selectionMatch&&(a["& .cm-selectionMatch"]={backgroundColor:r.selectionMatch});var u=$s.tk.theme(a,{dark:"dark"===t}),c=Ns.Qf.define(o);return[u,(0,Ns.nF)(c)]},ny=ty({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:Kc.pJ.comment,color:"var(--color-prettylights-syntax-comment)"},{tag:Kc.pJ.variableName,color:"var(--color-prettylights-syntax-variable)"},{tag:[Kc.pJ.string,Kc.pJ.special(Kc.pJ.brace)],color:"var(--color-prettylights-syntax-entity)"},{tag:Kc.pJ.number,color:"var(--color-prettylights-syntax-variable)"},{tag:[Kc.pJ.bool,Kc.pJ.null],color:"var(--color-prettylights-syntax-entity)"},{tag:Kc.pJ.keyword,color:"var(--color-prettylights-syntax-keyword)",fontWeight:"bold"},{tag:Kc.pJ.string,color:"var(--color-prettylights-syntax-string)"},{tag:Kc.pJ.operator,color:"var(--color-accent-emphasis)"},{tag:Kc.pJ.deleted,color:"var(--color-prettylights-syntax-markup-deleted-bg)"},{tag:Kc.pJ.deleted,color:"red"},{tag:Kc.pJ.className,color:"var(--color-prettylights-syntax-variable)"},{tag:Kc.pJ.definition(Kc.pJ.typeName),color:"var(--color-prettylights-syntax-entity)"},{tag:Kc.pJ.typeName,color:"var(--color-prettylights-syntax-entity)"},{tag:Kc.pJ.list,color:"var(--color-prettylights-syntax-markup-list)"},{tag:Kc.pJ.heading,color:"var(--color-prettylights-syntax-markup-heading)",fontWeight:"bold"},{tag:Kc.pJ.regexp,color:"var(--color-prettylights-syntax-string-regexp)"},{tag:Kc.pJ.literal,color:"var(--color-prettylights-syntax-markup-italic)"},{tag:Kc.pJ.link,color:"var(--color-prettylights-syntax-constant-other-reference-link)",textDecoration:"underline"},{tag:Kc.pJ.angleBracket,color:"var(--color-fg-default)"},{tag:Kc.pJ.tagName,color:"var(--color-prettylights-syntax-entity-tag)"},{tag:Kc.pJ.attributeName,color:"var(--color-prettylights-syntax-constant)"}]}),ry=["prefixCls","className","onChange","toolbars","toolbarsMode","toolbarsFilter","visible","renderPreview","visibleEditor","hideToolbar","toolbarBottom","enableScroll","previewProps","extensions","previewWidth","reExtensions"],iy=$s.tk.theme({"&.cm-editor, & .cm-scroller":{borderBottomRightRadius:"3px",borderBottomLeftRadius:"3px"}}),oy=J.forwardRef(sy);oy.Markdown=_O;var ay=oy;function sy(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?VO():a,l=e.toolbarsMode,u=void 0===l?JO():l,c=e.toolbarsFilter,h=e.visible,f=void 0===h||h,d=e.renderPreview,p=e.visibleEditor,m=void 0===p||p,g=e.hideToolbar,v=void 0===g||g,O=e.toolbarBottom,y=void 0!==O&&O,b=e.enableScroll,k=void 0===b||b,S=e.previewProps,x=void 0===S?{}:S,w=e.extensions,T=void 0===w?[]:w,C=e.previewWidth,E=void 0===C?"50%":C,A=e.reExtensions,P=Wt(e,ry),_=(0,J.useState)(e.value||""),D=(0,te.Z)(_,2),Z=D[0],N=D[1],Q=(0,J.useRef)(null),R=(0,J.useRef)(null),M=(0,J.useRef)(null),$=(0,J.useRef)(null),I=(0,J.useRef)("editor");(0,J.useImperativeHandle)(t,(function(){return{editor:Q,preview:$}}),[Q]);var L={preview:$,editor:Q,container:R,containerEditor:M,editorProps:Ht({},e,{previewWidth:E})},F="number"===typeof P.height?P.height+"px":P.height,B=(0,J.useCallback)((function(e){if(k){var t=e.target,n=t.scrollTop/t.scrollHeight;if("editor"===I.current&&$.current){var r,i=(null==(r=$.current)?void 0:r.scrollHeight)||0;$.current.scrollTop=i*n}else if(Q.current&&Q.current.view){var o=Q.current.view.scrollDOM,a=Q.current.view.scrollDOM.scrollHeight||0;o.scrollTop=a*n}}}),[k]),j=function(){return I.current="preview"},z=function(){return I.current="editor"};(0,J.useEffect)((function(){var e=$.current;return e&&k&&(e.addEventListener("mouseover",j,!1),e.addEventListener("mouseleave",z,!1),e.addEventListener("scroll",B,!1)),function(){e&&k&&(e.removeEventListener("mouseover",j),e.removeEventListener("mouseleave",j),e.addEventListener("mouseleave",B,!1))}}),[$,k,B]);var U=Is({type:"scroll",events:{scroll:B}}),Y=A||[(0,Zs.markdown)({base:Zs.markdownLanguage,codeLanguages:Ms}),iy].concat((0,ne.Z)(T));k&&Y.push(U);var X=r+"-preview",H=[r,"wmde-markdown-var",i].filter(Boolean).join(" ");x.source=Z;var W=(0,qt.jsxs)("div",{className:r+"-content",style:{height:P.height},children:[(0,qt.jsx)("div",{className:r+"-content-editor",ref:M,children:m&&(0,qt.jsx)(Th,Ht({theme:ny},P,{extensions:Y,height:F,ref:Q,onChange:function(e,t){N(e),o&&o(e,t)}}))}),(0,qt.jsx)("div",{className:X,ref:$,children:d?d(x,!!f):(0,qt.jsx)(_O,Ht({},x,{"data-visible":!!f}))})]}),q=[r&&r+"-toolbar-warp",r&&y&&r+"-toolbar-bottom"].filter(Boolean).join(" "),G=c?s.filter(c):s,V=c?u.filter(c):u,K=v&&(0,qt.jsxs)("div",{className:q,children:[(0,qt.jsx)(ey,Ht({},L,{toolbars:G})),(0,qt.jsx)(ey,Ht({},L,{toolbars:V,mode:!0}))]}),ee=y?(0,qt.jsxs)(J.Fragment,{children:[W,K]}):(0,qt.jsxs)(J.Fragment,{children:[K,W]});return(0,qt.jsx)("div",{className:H,ref:R,children:ee})}var ly={background:"#0f0f0f",foreground:"#defdef",caret:"#00FF00",selection:"#515151",selectionMatch:"#515151",gutterBackground:"#555",gutterForeground:"#FFFFFF",lineHighlight:"#314151"},uy=function(e){var t=e||{},n=t.theme,r=void 0===n?"dark":n,i=t.settings,o=void 0===i?{}:i,a=t.styles,s=void 0===a?[]:a;return ty({theme:r,settings:Ht({},ly,o),styles:[{tag:Kc.pJ.keyword,color:"darkgoldenrod",fontWeight:"bold"},{tag:Kc.pJ.atom,color:"#77F"},{tag:Kc.pJ.comment,color:"#7a7b7c",fontStyle:"italic"},{tag:Kc.pJ.number,color:"violet"},{tag:Kc.pJ.definition(Kc.pJ.variableName),color:"#fffabc"},{tag:Kc.pJ.variableName,color:"#abcdef"},{tag:Kc.pJ.function(Kc.pJ.variableName),color:"#fffabc"},{tag:Kc.pJ.typeName,color:"#FFDD44"},{tag:Kc.pJ.tagName,color:"#def"},{tag:Kc.pJ.string,color:"#2b4"},{tag:Kc.pJ.meta,color:"#C9F"},{tag:Kc.pJ.bracket,color:"#8a8a8a"},{tag:Kc.pJ.attributeName,color:"#DDFF00"},{tag:Kc.pJ.heading,color:"aquamarine",fontWeight:"bold"},{tag:Kc.pJ.link,color:"blueviolet",fontWeight:"bold"}].concat((0,ne.Z)(s))})}(),cy={background:"#282b2e",foreground:"#a9b7c6",caret:"#00FF00",selection:"#343739",selectionMatch:"#343739",lineHighlight:"#343739"},hy=function(e){var t=e||{},n=t.theme,r=void 0===n?"dark":n,i=t.settings,o=void 0===i?{}:i,a=t.styles,s=void 0===a?[]:a;return ty({theme:r,settings:Ht({},cy,o),styles:[{tag:[Kc.pJ.keyword,Kc.pJ.deleted,Kc.pJ.className],color:"#cc7832"},{tag:[Kc.pJ.number,Kc.pJ.literal,Kc.pJ.derefOperator],color:"#6897bb"},{tag:[Kc.pJ.link,Kc.pJ.variableName],color:"#629755"},{tag:[Kc.pJ.comment,Kc.pJ.quote],color:"grey"},{tag:[Kc.pJ.meta,Kc.pJ.documentMeta],color:"#bbb529"},{tag:[Kc.pJ.string,Kc.pJ.propertyName,Kc.pJ.attributeValue],color:"#6a8759"},{tag:[Kc.pJ.heading,Kc.pJ.typeName],color:"#ffc66d"},{tag:[Kc.pJ.attributeName],color:"#a9b7c6"},{tag:[Kc.pJ.emphasis],fontStyle:"italic"}].concat((0,ne.Z)(s))})}(),fy={background:"#272C35",foreground:"#9d9b97",caret:"#797977",selection:"#ffffff30",selectionMatch:"#2B323D",gutterBackground:"#272C35",gutterForeground:"#465063",gutterBorder:"transparent",lineHighlight:"#2B323D"},dy=function(e){var t=e||{},n=t.theme,r=void 0===n?"dark":n,i=t.settings,o=void 0===i?{}:i,a=t.styles,s=void 0===a?[]:a;return ty({theme:r,settings:Ht({},fy,o),styles:[{tag:[Kc.pJ.function(Kc.pJ.variableName),Kc.pJ.function(Kc.pJ.propertyName),Kc.pJ.url,Kc.pJ.processingInstruction],color:"hsl(207, 82%, 66%)"},{tag:[Kc.pJ.tagName,Kc.pJ.heading],color:"#e06c75"},{tag:Kc.pJ.comment,color:"#54636D"},{tag:[Kc.pJ.propertyName],color:"hsl(220, 14%, 71%)"},{tag:[Kc.pJ.attributeName,Kc.pJ.number],color:"hsl( 29, 54%, 61%)"},{tag:Kc.pJ.className,color:"hsl( 39, 67%, 69%)"},{tag:Kc.pJ.keyword,color:"hsl(286, 60%, 67%)"},{tag:[Kc.pJ.string,Kc.pJ.regexp,Kc.pJ.special(Kc.pJ.propertyName)],color:"#98c379"}].concat((0,ne.Z)(s))})}(),py={background:"#FFFFFF",foreground:"#000000",caret:"#FBAC52",selection:"#FFD420",selectionMatch:"#FFD420",gutterBackground:"#f5f5f5",gutterForeground:"#4D4D4C",gutterBorder:"transparent",lineHighlight:"#00000012"},my=function(e){var t=e||{},n=t.theme,r=void 0===n?"light":n,i=t.settings,o=void 0===i?{}:i,a=t.styles,s=void 0===a?[]:a;return ty({theme:r,settings:Ht({},py,o),styles:[{tag:[Kc.pJ.meta,Kc.pJ.comment],color:"#804000"},{tag:[Kc.pJ.keyword,Kc.pJ.strong],color:"#0000FF"},{tag:[Kc.pJ.number],color:"#FF0080"},{tag:[Kc.pJ.string],color:"#FF0080"},{tag:[Kc.pJ.variableName],color:"#006600"},{tag:[Kc.pJ.escape],color:"#33CC33"},{tag:[Kc.pJ.tagName],color:"#1C02FF"},{tag:[Kc.pJ.heading],color:"#0C07FF"},{tag:[Kc.pJ.quote],color:"#000000"},{tag:[Kc.pJ.list],color:"#B90690"},{tag:[Kc.pJ.documentMeta],color:"#888888"},{tag:[Kc.pJ.function(Kc.pJ.variableName)],color:"#0000A2"},{tag:[Kc.pJ.definition(Kc.pJ.typeName),Kc.pJ.typeName],color:"#6D79DE"}].concat((0,ne.Z)(s))})}(),gy={background:"#28211c",foreground:"#9d9b97",caret:"#797977",selection:"#36312e",selectionMatch:"#4f382b",gutterBackground:"#28211c",gutterForeground:"#666666",lineHighlight:"rgba(255, 255, 255, 0.1)"},vy=function(e){var t=e||{},n=t.theme,r=void 0===n?"dark":n,i=t.settings,o=void 0===i?{}:i,a=t.styles,s=void 0===a?[]:a;return ty({theme:r,settings:Ht({},gy,o),styles:[{tag:[Kc.pJ.atom,Kc.pJ.number,Kc.pJ.link,Kc.pJ.bool],color:"#9b859d"},{tag:Kc.pJ.comment,color:"#937121"},{tag:[Kc.pJ.keyword,Kc.pJ.tagName],color:"#cf6a4c"},{tag:Kc.pJ.string,color:"#f9ee98"},{tag:Kc.pJ.bracket,color:"#9d9b97"},{tag:[Kc.pJ.variableName],color:"#5ea6ea"},{tag:Kc.pJ.definition(Kc.pJ.variableName),color:"#cf7d34"},{tag:[Kc.pJ.function(Kc.pJ.variableName),Kc.pJ.className],color:"#cf7d34"},{tag:[Kc.pJ.propertyName,Kc.pJ.attributeName],color:"#54be0d"}].concat((0,ne.Z)(s))})}(),Oy={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",gutterBorder:"transparent",lineHighlight:"rgba(255, 255, 255, 0.1)"},yy=function(e){var t=e||{},n=t.theme,r=void 0===n?"dark":n,i=t.settings,o=void 0===i?{}:i,a=t.styles,s=void 0===a?[]:a;return ty({theme:r,settings:Ht({},Oy,o),styles:[{tag:[Kc.pJ.atom,Kc.pJ.number],color:"#bd93f9"},{tag:[Kc.pJ.comment],color:"#61A151"},{tag:[Kc.pJ.string],color:"#6A8759"},{tag:[Kc.pJ.variableName,Kc.pJ.operator],color:"#A9B7C6"},{tag:[Kc.pJ.meta,Kc.pJ.className],color:"#A9B7C6"},{tag:[Kc.pJ.propertyName],color:"#FFC66D"},{tag:[Kc.pJ.keyword],color:"#CC7832"},{tag:[Kc.pJ.tagName],color:"#ff79c6"},{tag:[Kc.pJ.typeName],color:"#ffb86c"}].concat((0,ne.Z)(s))})}(),by={background:"#282a36",foreground:"#f8f8f2",caret:"#f8f8f0",selection:"rgba(255, 255, 255, 0.1)",selectionMatch:"rgba(255, 255, 255, 0.2)",gutterBackground:"#282a36",gutterForeground:"#6D8A88",gutterBorder:"transparent",lineHighlight:"rgba(255, 255, 255, 0.1)"},ky=function(e){var t=e||{},n=t.theme,r=void 0===n?"dark":n,i=t.settings,o=void 0===i?{}:i,a=t.styles,s=void 0===a?[]:a;return ty({theme:r,settings:Ht({},by,o),styles:[{tag:Kc.pJ.comment,color:"#6272a4"},{tag:Kc.pJ.string,color:"#f1fa8c"},{tag:Kc.pJ.atom,color:"#bd93f9"},{tag:Kc.pJ.meta,color:"#f8f8f2"},{tag:[Kc.pJ.keyword,Kc.pJ.operator,Kc.pJ.tagName],color:"#ff79c6"},{tag:[Kc.pJ.function(Kc.pJ.propertyName),Kc.pJ.propertyName],color:"#66d9ef"},{tag:[Kc.pJ.definition(Kc.pJ.variableName),Kc.pJ.function(Kc.pJ.variableName),Kc.pJ.className,Kc.pJ.attributeName],color:"#50fa7b"},{tag:Kc.pJ.atom,color:"#bd93f9"}].concat((0,ne.Z)(s))})}(),Sy={background:"#faf8f5",foreground:"#b29762",caret:"#93abdc",selection:"#e3dcce",selectionMatch:"#e3dcce",gutterBackground:"#faf8f5",gutterForeground:"#cdc4b1",gutterBorder:"transparent",lineHighlight:"#EFEFEF"},xy=function(e){var t=e||{},n=t.theme,r=void 0===n?"light":n,i=t.settings,o=void 0===i?{}:i,a=t.styles,s=void 0===a?[]:a;return ty({theme:r,settings:Ht({},Sy,o),styles:[{tag:[Kc.pJ.comment,Kc.pJ.bracket],color:"#b6ad9a"},{tag:[Kc.pJ.atom,Kc.pJ.number,Kc.pJ.keyword,Kc.pJ.link,Kc.pJ.attributeName,Kc.pJ.quote],color:"#063289"},{tag:[Kc.pJ.emphasis,Kc.pJ.heading,Kc.pJ.tagName,Kc.pJ.propertyName,Kc.pJ.variableName],color:"#2d2006"},{tag:[Kc.pJ.typeName,Kc.pJ.url,Kc.pJ.string],color:"#896724"},{tag:[Kc.pJ.operator,Kc.pJ.string],color:"#1659df"},{tag:[Kc.pJ.propertyName],color:"#b29762"},{tag:[Kc.pJ.unit,Kc.pJ.punctuation],color:"#063289"}].concat((0,ne.Z)(s))})}(),wy={background:"#2a2734",foreground:"#6c6783",caret:"#ffad5c",selection:"rgba(255, 255, 255, 0.1)",gutterBackground:"#2a2734",gutterForeground:"#545167",lineHighlight:"#36334280"},Ty=function(e){var t=e||{},n=t.theme,r=void 0===n?"dark":n,i=t.settings,o=void 0===i?{}:i,a=t.styles,s=void 0===a?[]:a;return ty({theme:r,settings:Ht({},wy,o),styles:[{tag:[Kc.pJ.comment,Kc.pJ.bracket],color:"#6c6783"},{tag:[Kc.pJ.atom,Kc.pJ.number,Kc.pJ.keyword,Kc.pJ.link,Kc.pJ.attributeName,Kc.pJ.quote],color:"#ffcc99"},{tag:[Kc.pJ.emphasis,Kc.pJ.heading,Kc.pJ.tagName,Kc.pJ.propertyName,Kc.pJ.className,Kc.pJ.variableName],color:"#eeebff"},{tag:[Kc.pJ.typeName,Kc.pJ.url],color:"#7a63ee"},{tag:Kc.pJ.operator,color:"#ffad5c"},{tag:Kc.pJ.string,color:"#ffb870"},{tag:[Kc.pJ.propertyName],color:"#9a86fd"},{tag:[Kc.pJ.unit,Kc.pJ.punctuation],color:"#e09142"}].concat((0,ne.Z)(s))})}(),Cy={background:"#fff",foreground:"#000",caret:"#FFFFFF",selection:"#d7d4f0",selectionMatch:"#d7d4f0",gutterBackground:"#f7f7f7",gutterForeground:"#999",lineHighlight:"#e8f2ff",gutterBorder:"transparent"},Ey=function(e){var t=e||{},n=t.theme,r=void 0===n?"light":n,i=t.settings,o=void 0===i?{}:i,a=t.styles,s=void 0===a?[]:a;return ty({theme:r,settings:Ht({},Cy,o),styles:[{tag:[Kc.pJ.comment],color:"#3F7F5F"},{tag:[Kc.pJ.documentMeta],color:"#FF1717"},{tag:Kc.pJ.keyword,color:"#7F0055",fontWeight:"bold"},{tag:Kc.pJ.atom,color:"#00f"},{tag:Kc.pJ.number,color:"#164"},{tag:Kc.pJ.propertyName,color:"#164"},{tag:[Kc.pJ.variableName,Kc.pJ.definition(Kc.pJ.variableName)],color:"#0000C0"},{tag:Kc.pJ.function(Kc.pJ.variableName),color:"#0000C0"},{tag:Kc.pJ.string,color:"#2A00FF"},{tag:Kc.pJ.operator,color:"black"},{tag:Kc.pJ.tagName,color:"#170"},{tag:Kc.pJ.attributeName,color:"#00c"},{tag:Kc.pJ.link,color:"#219"}].concat((0,ne.Z)(s))})}(),Ay={background:"#fff",foreground:"#24292e",selection:"#BBDFFF",selectionMatch:"#BBDFFF",gutterBackground:"#fff",gutterForeground:"#6e7781"},Py=function(e){var t=e||{},n=t.theme,r=void 0===n?"light":n,i=t.settings,o=void 0===i?{}:i,a=t.styles,s=void 0===a?[]:a;return ty({theme:r,settings:Ht({},Ay,o),styles:[{tag:[Kc.pJ.standard(Kc.pJ.tagName),Kc.pJ.tagName],color:"#116329"},{tag:[Kc.pJ.comment,Kc.pJ.bracket],color:"#6a737d"},{tag:[Kc.pJ.className,Kc.pJ.propertyName],color:"#6f42c1"},{tag:[Kc.pJ.variableName,Kc.pJ.attributeName,Kc.pJ.number,Kc.pJ.operator],color:"#005cc5"},{tag:[Kc.pJ.keyword,Kc.pJ.typeName,Kc.pJ.typeOperator,Kc.pJ.typeName],color:"#d73a49"},{tag:[Kc.pJ.string,Kc.pJ.meta,Kc.pJ.regexp],color:"#032f62"},{tag:[Kc.pJ.name,Kc.pJ.quote],color:"#22863a"},{tag:[Kc.pJ.heading],color:"#24292e",fontWeight:"bold"},{tag:[Kc.pJ.emphasis],color:"#24292e",fontStyle:"italic"},{tag:[Kc.pJ.deleted],color:"#b31d28",backgroundColor:"ffeef0"},{tag:[Kc.pJ.atom,Kc.pJ.bool,Kc.pJ.special(Kc.pJ.variableName)],color:"#e36209"},{tag:[Kc.pJ.url,Kc.pJ.escape,Kc.pJ.regexp,Kc.pJ.link],color:"#032f62"},{tag:Kc.pJ.link,textDecoration:"underline"},{tag:Kc.pJ.strikethrough,textDecoration:"line-through"},{tag:Kc.pJ.invalid,color:"#cb2431"}].concat((0,ne.Z)(s))})}(),_y={background:"#0d1117",foreground:"#c9d1d9",caret:"#c9d1d9",selection:"#003d73",selectionMatch:"#003d73",lineHighlight:"#36334280"},Dy=function(e){var t=e||{},n=t.theme,r=void 0===n?"dark":n,i=t.settings,o=void 0===i?{}:i,a=t.styles,s=void 0===a?[]:a;return ty({theme:r,settings:Ht({},_y,o),styles:[{tag:[Kc.pJ.standard(Kc.pJ.tagName),Kc.pJ.tagName],color:"#7ee787"},{tag:[Kc.pJ.comment,Kc.pJ.bracket],color:"#8b949e"},{tag:[Kc.pJ.className,Kc.pJ.propertyName],color:"#d2a8ff"},{tag:[Kc.pJ.variableName,Kc.pJ.attributeName,Kc.pJ.number,Kc.pJ.operator],color:"#79c0ff"},{tag:[Kc.pJ.keyword,Kc.pJ.typeName,Kc.pJ.typeOperator,Kc.pJ.typeName],color:"#ff7b72"},{tag:[Kc.pJ.string,Kc.pJ.meta,Kc.pJ.regexp],color:"#a5d6ff"},{tag:[Kc.pJ.name,Kc.pJ.quote],color:"#7ee787"},{tag:[Kc.pJ.heading],color:"#d2a8ff",fontWeight:"bold"},{tag:[Kc.pJ.emphasis],color:"#d2a8ff",fontStyle:"italic"},{tag:[Kc.pJ.deleted],color:"#ffdcd7",backgroundColor:"ffeef0"},{tag:[Kc.pJ.atom,Kc.pJ.bool,Kc.pJ.special(Kc.pJ.variableName)],color:"#ffab70"},{tag:Kc.pJ.link,textDecoration:"underline"},{tag:Kc.pJ.strikethrough,textDecoration:"line-through"},{tag:Kc.pJ.invalid,color:"#f97583"}].concat((0,ne.Z)(s))})}(),Zy={background:"#272822",foreground:"#FFFFFF",caret:"#FFFFFF",selection:"#49483E",selectionMatch:"#49483E",gutterBackground:"#272822",gutterForeground:"#FFFFFF70",lineHighlight:"#00000059"},Ny=function(e){var t=e||{},n=t.theme,r=void 0===n?"dark":n,i=t.settings,o=void 0===i?{}:i,a=t.styles,s=void 0===a?[]:a;return ty({theme:r,settings:Ht({},Zy,o),styles:[{tag:[Kc.pJ.comment,Kc.pJ.documentMeta],color:"#8292a2"},{tag:[Kc.pJ.number,Kc.pJ.bool,Kc.pJ.null,Kc.pJ.atom],color:"#ae81ff"},{tag:[Kc.pJ.attributeValue,Kc.pJ.className,Kc.pJ.name],color:"#e6db74"},{tag:[Kc.pJ.propertyName,Kc.pJ.attributeName],color:"#a6e22e"},{tag:[Kc.pJ.variableName],color:"#9effff"},{tag:[Kc.pJ.squareBracket],color:"#bababa"},{tag:[Kc.pJ.string,Kc.pJ.special(Kc.pJ.brace)],color:"#e6db74"},{tag:[Kc.pJ.regexp,Kc.pJ.className,Kc.pJ.typeName,Kc.pJ.definition(Kc.pJ.typeName)],color:"#66d9ef"},{tag:[Kc.pJ.definition(Kc.pJ.variableName),Kc.pJ.definition(Kc.pJ.propertyName),Kc.pJ.function(Kc.pJ.variableName)],color:"#fd971f"},{tag:[Kc.pJ.keyword,Kc.pJ.definitionKeyword,Kc.pJ.modifier,Kc.pJ.tagName,Kc.pJ.angleBracket],color:"#f92672"}].concat((0,ne.Z)(s))})}(),Qy={background:"#303841",foreground:"#FFFFFF",caret:"#FBAC52",selection:"#4C5964",selectionMatch:"#3A546E",gutterBackground:"#303841",gutterForeground:"#FFFFFF70",lineHighlight:"#00000059"};var Ry=function(e){var t=e||{},n=t.theme,r=void 0===n?"dark":n,i=t.settings,o=void 0===i?{}:i,a=t.styles,s=void 0===a?[]:a;return ty({theme:r,settings:Ht({},Qy,o),styles:[{tag:[Kc.pJ.meta,Kc.pJ.comment],color:"#A2A9B5"},{tag:[Kc.pJ.attributeName,Kc.pJ.keyword],color:"#B78FBA"},{tag:Kc.pJ.function(Kc.pJ.variableName),color:"#5AB0B0"},{tag:[Kc.pJ.string,Kc.pJ.regexp,Kc.pJ.attributeValue],color:"#99C592"},{tag:Kc.pJ.operator,color:"#f47954"},{tag:[Kc.pJ.tagName,Kc.pJ.modifier],color:"#E35F63"},{tag:[Kc.pJ.number,Kc.pJ.definition(Kc.pJ.tagName),Kc.pJ.className,Kc.pJ.definition(Kc.pJ.variableName)],color:"#fbac52"},{tag:[Kc.pJ.atom,Kc.pJ.bool,Kc.pJ.special(Kc.pJ.variableName)],color:"#E35F63"},{tag:Kc.pJ.variableName,color:"#539ac4"},{tag:[Kc.pJ.propertyName,Kc.pJ.typeName],color:"#629ccd"},{tag:Kc.pJ.propertyName,color:"#36b7b5"}].concat((0,ne.Z)(s))})}(),My={background:"#fff",foreground:"#3D3D3D",selection:"#BBDFFF",selectionMatch:"#BBDFFF",gutterBackground:"#fff",gutterForeground:"#AFAFAF",lineHighlight:"#EDF4FF"};var $y,Iy,Ly,Fy,By,jy,zy,Uy=function(e){var t=e||{},n=t.theme,r=void 0===n?"light":n,i=t.settings,o=void 0===i?{}:i,a=t.styles,s=void 0===a?[]:a;return ty({theme:r,settings:Ht({},My,o),styles:[{tag:[Kc.pJ.comment,Kc.pJ.quote],color:"#707F8D"},{tag:[Kc.pJ.typeName,Kc.pJ.typeOperator],color:"#aa0d91"},{tag:[Kc.pJ.keyword],color:"#aa0d91",fontWeight:"bold"},{tag:[Kc.pJ.string,Kc.pJ.meta],color:"#D23423"},{tag:[Kc.pJ.name],color:"#032f62"},{tag:[Kc.pJ.typeName],color:"#522BB2"},{tag:[Kc.pJ.variableName],color:"#23575C"},{tag:[Kc.pJ.definition(Kc.pJ.variableName)],color:"#327A9E"},{tag:[Kc.pJ.regexp,Kc.pJ.link],color:"#0e0eff"}].concat((0,ne.Z)(s))})}(),Yy={background:"#292A30",foreground:"#CECFD0",caret:"#fff",selection:"#727377",selectionMatch:"#727377",lineHighlight:"#2F3239"},Xy=function(e){var t=e||{},n=t.theme,r=void 0===n?"dark":n,i=t.settings,o=void 0===i?{}:i,a=t.styles,s=void 0===a?[]:a;return ty({theme:r,settings:Ht({},Yy,o),styles:[{tag:[Kc.pJ.comment,Kc.pJ.quote],color:"#7F8C98"},{tag:[Kc.pJ.keyword],color:"#FF7AB2",fontWeight:"bold"},{tag:[Kc.pJ.string,Kc.pJ.meta],color:"#FF8170"},{tag:[Kc.pJ.typeName],color:"#DABAFF"},{tag:[Kc.pJ.definition(Kc.pJ.variableName)],color:"#6BDFFF"},{tag:[Kc.pJ.name],color:"#6BAA9F"},{tag:[Kc.pJ.variableName],color:"#ACF2E4"},{tag:[Kc.pJ.regexp,Kc.pJ.link],color:"#FF8170"}].concat((0,ne.Z)(s))})}(),Hy='\n
\u5fae\u4fe1\u516c\u4f17\u53f7 Markdown \u7f16\u8f91\u5668
\n\n\n[](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[](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 \n\n```\n\n\u6c49\u5b57\u6ce8\u97f3\u6548\u679c\uff1a\n\n \u6c49 \n \u5b57 \n \u62fc \n \u97f3 \n \u6ce8 \n \u97f3 \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[](https://hub.docker.com/r/wcjiang/wxmp) [](https://hub.docker.com/r/wcjiang/wxmp) [](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',Wy=Hy,qy={default:{label:"\u9ed8\u8ba4\u4e3b\u9898",value:ny},abcdef:{label:"Abcdef Theme",value:uy},androidstudio:{label:"Android Studio Theme",value:hy},atomone:{label:"Atomone Theme",value:dy},bbedit:{label:"Bbedit Theme",value:my},bespin:{label:"Bespin Theme",value:vy},darcula:{label:"Darcula Theme",value:yy},dracula:{label:"Dracula Theme",value:ky},duotoneLight:{label:"Duotone Light Theme",value:xy},duotoneDark:{label:"Duotone Dark Theme",value:Ty},eclipse:{label:"Eclipse Theme",value:Ey},githubLight:{label:"Github Light Theme",value:Py},githubDark:{label:"Github Dark Theme",value:Dy},okaidia:{label:"Okaidia Theme",value:Ny},sublime:{label:"Sublime Theme",value:Ry},xcodeLight:{label:"Xcode Light Theme",value:Uy},xcodeDark:{label:"Xcode Dark Theme",value:Xy}},Gy={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: 14px;\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:""}},Vy={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:[]},Jy=(Object.keys(Gy).map((function(e){return Gy[e].color})),J.createContext({preColor:"",setPreColor:function(){},isLoading:!0,setIsLoading:function(){},markdown:Hy,setMarkdown:function(){},css:Gy.underscore.value,setCss:function(){},previewTheme:"underscore",setPreviewTheme:function(){},theme:"default",setTheme:function(){}})),Ky=la.div($y||($y=V([""]))),eb=la.div(Iy||(Iy=V(["\n position: relative;\n height: 2.8rem;\n"]))),tb=la.header(Ly||(Ly=V(["\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"]))),nb=la.article(Fy||(Fy=V(["\n display: flex;\n flex-direction: row;\n align-items: center;\n gap: 0.6rem;\n"]))),rb=la(fs)(By||(By=V(["\n max-width: 3.6rem;\n"]))),ib=la.h1(jy||(jy=V(["\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"]))),ob=la.section(zy||(zy=V(["\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 ab(){var e=(0,J.useContext)(Jy).isLoading;return(0,qt.jsxs)(Ky,{className:"wmde-markdown-color",children:[(0,qt.jsx)(eb,{children:(0,qt.jsxs)(tb,{className:"header",children:[(0,qt.jsxs)(nb,{className:"logo",children:[(0,qt.jsx)(rb,{width:28,height:28}),(0,qt.jsxs)(ib,{children:["\u5fae\u4fe1\u516c\u4f17\u53f7\u6392\u7248\u7f16\u8f91\u5668",(0,qt.jsxs)("sup",{children:[" v","2.3.3"," "]})]}),e&&(0,qt.jsx)(Ds,{})]}),(0,qt.jsxs)(ob,{children:[(0,qt.jsx)(zt,{to:"/",children:"\u9996\u9875"}),(0,qt.jsx)(zt,{to:"/editor/theme",children:"\u7f16\u8f91\u4e3b\u9898"}),(0,qt.jsx)(zt,{to:"/doc",children:"\u6587\u6863"}),(0,qt.jsx)("dark-mode",{permanent:!0,dark:"Dark",light:"Light"}),(0,qt.jsx)("a",{href:"https://github.com/jaywcjlove/wxmp",target:"__blank",children:(0,qt.jsx)(Cs,{width:23,height:23})})]})]})}),(0,qt.jsx)(Ct,{})]})}var sb=1,lb=2,ub=3,cb=4,hb=5,fb=6,db=7,pb=8,mb=9,gb=10,vb=11,Ob=12,yb=13,bb=14,kb=15,Sb=16,xb=17,wb=18,Tb=19,Cb=20,Eb=21,Ab=22,Pb=23,_b=24,Db=25,Zb=0;function Nb(e){return e>=48&&e<=57}function Qb(e){return Nb(e)||e>=65&&e<=70||e>=97&&e<=102}function Rb(e){return e>=65&&e<=90}function Mb(e){return function(e){return Rb(e)||function(e){return e>=97&&e<=122}(e)}(e)||function(e){return e>=128}(e)||95===e}function $b(e){return Mb(e)||Nb(e)||45===e}function Ib(e){return e>=0&&e<=8||11===e||e>=14&&e<=31||127===e}function Lb(e){return 10===e||13===e||12===e}function Fb(e){return Lb(e)||32===e||9===e}function Bb(e,t){return 92===e&&(!Lb(t)&&t!==Zb)}function jb(e,t,n){return 45===e?Mb(t)||45===t||Bb(t,n):!!Mb(e)||92===e&&Bb(e,t)}function zb(e,t,n){return 43===e||45===e?Nb(t)?2:46===t&&Nb(n)?3:0:46===e?Nb(t)?2:0:Nb(e)?1:0}function Ub(e){return 65279===e||65534===e?1:0}for(var Yb=new Array(128),Xb=130,Hb=131,Wb=132,qb=133,Gb=0;Gbe.length)return!1;for(var i=t;i=55296&&t<=57343||t>1114111)&&(t=65533),String.fromCodePoint(t)}var uk=["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"],ck=16384;function hk(){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?Ub(t.charCodeAt(0)):0,i=hk(e.lines,n),o=hk(e.columns,n),a=e.startLine,s=e.startColumn,l=r;l1&&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||fk(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||fk(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}(),pk=16777215,mk=24,gk=new Map([[lb,Ab],[Eb,Ab],[Tb,Cb],[Pb,_b]]),vk=function(){function e(t,n){(0,re.Z)(this,e),this.setSource(t,n)}return(0,ie.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=hk(this.offsetAndType,e.length+1),i=hk(this.balance,e.length+1),o=0,a=0,s=0,l=-1;for(this.offsetAndType=null,this.balance=null,t(e,(function(e,t,u){switch(e){default:i[o]=n;break;case a:var c=s&pk;for(s=i[c],a=s>>mk,i[o]=c,i[c++]=o;c>mk:0}},{key:"lookupOffset",value:function(e){return(e+=this.tokenIndex)0?e>mk,this.tokenEnd=t&pk):(this.tokenIndex=this.tokenCount,this.next())}},{key:"next",value:function(){var e=this.tokenIndex+1;e>mk,this.tokenEnd=e&pk):(this.eof=!0,this.tokenIndex=this.tokenCount,this.tokenType=0,this.tokenStart=this.tokenEnd=this.source.length)}},{key:"skipSC",value:function(){for(;this.tokenType===yb||this.tokenType===Db;)this.next()}},{key:"skipUntilBalanced",value:function(e,t){var n,r,i=e;e:for(;i0?this.offsetAndType[i-1]&pk: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>mk,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:uk[n],chunk:e.source.substring(r,i),balance:e.balance[o]}})),t}}]),e}();function Ok(e,t){function n(t){return t=e.length?void(u1&&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,Oe.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 kk(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 Sk=100,xk=60,wk=" ";function Tk(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(u)+" |"+t})).join("\n")}var a=n.split(/\r\n?|\n|\f/),s=Math.max(1,r-t)-1,l=Math.min(r+t,a.length+1),u=Math.max(4,String(l).length)+1,c=0;(i+=(wk.length-1)*(a[r-1].substr(0,i-1).match(/\t/g)||[]).length)>Sk&&(c=i-xk+3,i=xk-2);for(var h=s;h<=l;h++)h>=0&&h0&&a[h].length>c?"\u2026":"")+a[h].substr(c,Sk-2)+(a[h].length>c+Sk-1?"\u2026":""));return[o(s,r),new Array(i+u+2).join("-")+"^",o(r,l)].filter(Boolean).join("\n")}function Ck(e,t,n,r,i){return Object.assign(kk("SyntaxError",e),{source:t,offset:n,line:r,column:i,sourceFragment:function(e){return Tk({source:t,line:r,column:i},isNaN(e)?0:e)},get formattedMessage(){return"Parse error: ".concat(e,"\n")+Tk({source:t,line:r,column:i},2)}})}function Ek(e){for(var t=this.createList(),n=!1,r={recognizer:e};!this.eof;){switch(this.tokenType){case Db:this.next();continue;case yb: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 Ak=function(){},Pk=33,_k=35,Dk=59,Zk=123,Nk=0;function Qk(e){return function(){return this[e]()}}function Rk(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 Mk(e){var t="",n="",r=!1,i=Ak,o=!1,a=new dk,s=Object.assign(new vk,function(e){var t={context:Object.create(null),scope:Object.assign(Object.create(null),e.scope),atrule:Rk(e.atrule),pseudo:Rk(e.pseudo),node:Rk(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]=Qk(e.parseContext[n])}return(0,rn.Z)((0,rn.Z)({config:t},t),t.node)}(e||{}),{parseAtrulePrelude:!0,parseRulePrelude:!0,parseValue:!0,parseCustomProperty:!1,readSequence:Ek,consumeUntilBalanceEnd:function(){return 0},consumeUntilLeftCurlyBracket:function(e){return e===Zk?1:0},consumeUntilLeftCurlyBracketOrSemicolon:function(e){return e===Zk||e===Dk?1:0},consumeUntilExclamationMarkOrSemicolon:function(e){return e===Pk||e===Dk?1:0},consumeUntilSemicolonIncluded:function(e){return e===Dk?2:0},createList:function(){return new bk},createSingleNodeList:function(e){return(new bk).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(a){if(o)throw a;var r=t.call(this,n);return o=!0,i(a,r),o=!1,r}},lookupNonWSType:function(e){var t;do{if((t=this.lookupType(e++))!==yb)return t}while(t!==Nk);return Nk},charCodeAt:function(e){return e>=0&&e=0&&Fb(e.charCodeAt(t));t--);return t+1}(t,t.length-1)):a.getLocation(this.tokenStart);throw new Ck(e||"Unexpected input",t,r.offset,r.line,r.column)}});return Object.assign((function(e,l){t=e,l=l||{},s.setSource(t,Ok),a.setSource(t,l.offset,l.line,l.column),n=l.filename||"",r=Boolean(l.positions),i="function"===typeof l.onParseError?l.onParseError:Ak,o=!1,s.parseAtrulePrelude=!("parseAtrulePrelude"in l)||Boolean(l.parseAtrulePrelude),s.parseRulePrelude=!("parseRulePrelude"in l)||Boolean(l.parseRulePrelude),s.parseValue=!("parseValue"in l)||Boolean(l.parseValue),s.parseCustomProperty="parseCustomProperty"in l&&Boolean(l.parseCustomProperty);var u=l,c=u.context,h=void 0===c?"default":c,f=u.onComment;if(h in s.context===!1)throw new Error("Unknown context `"+h+"`");"function"===typeof f&&s.forEachToken((function(e,n,r){if(e===Db){var i=s.getLocation(n,r),o=tk(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,l);return s.eof||s.error(),d}),{SyntaxError:Ck,config:s.config})}var $k=n(8676),Ik=new Set(["Atrule","Selector","Declaration"]);var Lk=function(e,t){if(e===mb&&(e=t),"string"===typeof e){var n=e.charCodeAt(0);return n>127?32768:n<<8}return e},Fk=[[sb,sb],[sb,lb],[sb,db],[sb,pb],[sb,"-"],[sb,gb],[sb,vb],[sb,Ob],[sb,kb],[sb,Eb],[ub,sb],[ub,lb],[ub,db],[ub,pb],[ub,"-"],[ub,gb],[ub,vb],[ub,Ob],[ub,kb],[cb,sb],[cb,lb],[cb,db],[cb,pb],[cb,"-"],[cb,gb],[cb,vb],[cb,Ob],[cb,kb],[Ob,sb],[Ob,lb],[Ob,db],[Ob,pb],[Ob,"-"],[Ob,gb],[Ob,vb],[Ob,Ob],[Ob,kb],["#",sb],["#",lb],["#",db],["#",pb],["#","-"],["#",gb],["#",vb],["#",Ob],["#",kb],["-",sb],["-",lb],["-",db],["-",pb],["-","-"],["-",gb],["-",vb],["-",Ob],["-",kb],[gb,sb],[gb,lb],[gb,db],[gb,pb],[gb,gb],[gb,vb],[gb,Ob],[gb,"%"],[gb,kb],["@",sb],["@",lb],["@",db],["@",pb],["@","-"],["@",kb],[".",gb],[".",vb],[".",Ob],["+",gb],["+",vb],["+",Ob],["/","*"]],Bk=Fk.concat([[sb,cb],[Ob,cb],[cb,cb],[ub,Eb],[ub,hb],[ub,Sb],[vb,vb],[vb,Ob],[vb,lb],[vb,"-"],[Ab,sb],[Ab,lb],[Ab,vb],[Ab,Ob],[Ab,cb],[Ab,"-"]]);function jk(e){var t=new Set(e.map((function(e){var t=(0,te.Z)(e,2),n=t[0],r=t[1];return Lk(n)<<16|Lk(r)})));return function(e,n,r){var i=Lk(n,r),o=r.charCodeAt(0);return(45===o&&n!==sb&&n!==lb&&n!==kb||43===o?t.has(e<<16|o<<8):t.has(e<<16|i))&&this.emit(" ",yb,!0),i}}var zk=jk(Fk),Uk=jk(Bk),Yk=92;function Xk(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 Hk(e){var t=this;Ok(e,(function(n,r,i){t.token(n,e.slice(r,i))}))}function Wk(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:Uk,token:function(e,t){o=this.tokenBefore(o,e,t),this.emit(t,e,!1),e===mb&&t.charCodeAt(0)===Yk&&this.emit("\n",yb,!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 $k.h,n={line:1,column:0},r={line:0,column:0},i={line:1,column:0},o={generated:i},a=1,s=0,l=!1,u=e.node;e.node=function(e){if(e.loc&&e.loc.start&&Ik.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,l&&(l=!1,n.line===i.line&&n.column===i.column||t.addMapping(o)),l=!0,t.addMapping({source:e.loc.source,original:r,generated:n}))}u.call(this,e),l&&Ik.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 oS(e,t){var n=rS,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)),iS(e,n,r,i)}var aS={offset:0,line:1,column:1};function sS(e,t){var n=e&&e.loc&&e.loc[t];return n?"line"in n?lS(n):n:null}function lS(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 uS=function(e,t){var n=kk("SyntaxReferenceError",e+(t?" `"+t+"`":""));return n.reference=t,n},cS=function(e,t,n,r){var i=kk("SyntaxMatchError",e),o=function(e,t){for(var n,r,i=e.tokens,o=e.longestMatch,a=o1?(n=sS(s||t,"end")||lS(aS,h),r=lS(n)):(n=sS(s,"start")||lS(sS(t,"start")||aS,h.slice(0,l)),r=sS(s,"end")||lS(n,h.substr(l,u))),{css:h,mismatchOffset:l,mismatchLength:u,start:n,end:r}}(r,n),a=o.css,s=o.mismatchOffset,l=o.mismatchLength,u=o.start,c=o.end;return i.rawMessage=e,i.syntax=t?oS(t):"",i.css=a,i.mismatchOffset=s,i.mismatchLength=l,i.message=e+"\n syntax: "+i.syntax+"\n value: "+(a||"")+"\n --------"+new Array(i.mismatchOffset+1).join("-")+"^",Object.assign(i,u),i.loc={source:n&&n.loc&&n.loc.source||"",start:u,end:c},i},hS=new Map,fS=new Map,dS=45,pS=function(e){if(hS.has(e))return hS.get(e);var t=e.toLowerCase(),n=hS.get(t);if(void 0===n){var r=gS(t,0),i=r?"":vS(t,0);n=Object.freeze({basename:t.substr(i.length),name:t,prefix:i,vendor:i,custom:r})}return hS.set(e,n),n},mS=function(e){if(fS.has(e))return fS.get(e);var t=e,n=e[0];"/"===n?n="/"===e[1]?"//":"/":"_"!==n&&"*"!==n&&"$"!==n&&"#"!==n&&"+"!==n&&"&"!==n&&(n="");var r=gS(t,n.length);if(!r&&(t=t.toLowerCase(),fS.has(t))){var i=fS.get(t);return fS.set(e,i),i}var o=r?"":vS(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 fS.set(e,s),s};function gS(e,t){return t=t||0,e.length-t>=2&&e.charCodeAt(t)===dS&&e.charCodeAt(t+1)===dS}function vS(e,t){if(t=t||0,e.length-t>=3&&e.charCodeAt(t)===dS&&e.charCodeAt(t+1)!==dS){var n=e.indexOf("-",t+2);if(-1!==n)return e.substring(t,n+1)}return""}var OS=["initial","inherit","unset","revert","revert-layer"],yS=43,bS=45,kS=!0;function SS(e,t){return null!==e&&e.type===mb&&e.value.charCodeAt(0)===t}function xS(e,t,n){for(;null!==e&&(e.type===yb||e.type===Db);)e=n(++t);return t}function wS(e,t,n,r){if(!e)return 0;var i=e.value.charCodeAt(t);if(i===yS||i===bS){if(n)return 0;t++}for(;t6)return 0}return r}function _S(e,t,n){if(!e)return 0;for(;AS(n(t),ES);){if(++e>6)return 0;t++}return t}var DS=["calc(","-moz-calc(","-webkit-calc("],ZS=new Map([[lb,Ab],[Eb,Ab],[Tb,Cb],[Pb,_b]]);function NS(e,t){return te.max&&"string"!==typeof e.max)return!0}return!1}function IS(e){return function(t,n,r){return null===t?0:t.type===lb&&RS(t.value,DS)?function(e,t){var n=0,r=[],i=0;e:do{switch(e.type){case _b:case Ab:case Cb:if(e.type!==n)break e;if(n=r.pop(),0===r.length){i++;break e}break;case lb:case Eb:case Tb:case Pb:r.push(n),n=ZS.get(e.type)}i++}while(e=t(i));return i}(t,n):e(t,n,r)}}function LS(e){return function(t){return null===t||t.type!==e?0:1}}function FS(e){return e&&(e=new Set(e)),function(t,n,r){if(null===t||t.type!==Ob)return 0;var i=ak(t.value,0);if(null!==e){var o=t.value.indexOf("\\",i),a=-1!==o&&MS(t.value,o)?t.value.substring(i,o):t.value.substr(i);if(!1===e.has(a.toLowerCase()))return 0}return $S(r,t.value,i)?0:1}}function BS(e){return"function"!==typeof e&&(e=function(){return 0}),function(t,n,r){return null!==t&&t.type===gb&&0===Number(t.value)?1:e(t,n,r)}}var jS={"ident-token":LS(sb),"function-token":LS(lb),"at-keyword-token":LS(ub),"hash-token":LS(cb),"string-token":LS(hb),"bad-string-token":LS(fb),"url-token":LS(db),"bad-url-token":LS(pb),"delim-token":LS(mb),"number-token":LS(gb),"percentage-token":LS(vb),"dimension-token":LS(Ob),"whitespace-token":LS(yb),"CDO-token":LS(bb),"CDC-token":LS(kb),"colon-token":LS(Sb),"semicolon-token":LS(xb),"comma-token":LS(wb),"[-token":LS(Tb),"]-token":LS(Cb),"(-token":LS(Eb),")-token":LS(Ab),"{-token":LS(Pb),"}-token":LS(_b)},zS={string:LS(hb),ident:LS(sb),percentage:IS((function(e,t,n){return null===e||e.type!==vb||$S(n,e.value,e.value.length-1)?0:1})),zero:BS(),number:IS((function(e,t,n){if(null===e)return 0;var r=ak(e.value,0);return r===e.value.length||MS(e.value,r)?$S(n,e.value,r)?0:1:0})),integer:IS((function(e,t,n){if(null===e||e.type!==gb)return 0;for(var r=43===NS(e.value,0)||45===NS(e.value,0)?1:0;r=128||0===Cx[n])break}return e.pos===t&&e.error("Expect a keyword"),e.substringToPos(t)}function _x(e){for(var t=e.pos;t57)break}return e.pos===t&&e.error("Expect a number"),e.substringToPos(t)}function Dx(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 Zx(e){var t,n=null;return e.eat(Sx),t=_x(e),e.charCode()===px?(e.pos++,e.charCode()!==wx&&(n=_x(e))):n=t,e.eat(wx),{min:Number(t),max:n?Number(n):0}}function Nx(e,t){var n=function(e){var t=null,n=!1;switch(e.charCode()){case fx:e.pos++,t={min:0,max:0};break;case dx:e.pos++,t={min:1,max:0};break;case Ox:e.pos++,t={min:0,max:1};break;case sx:e.pos++,n=!0,e.charCode()===Sx?t=Zx(e):e.charCode()===Ox?(e.pos++,t={min:0,max:0}):t={min:1,max:0};break;case Sx:t=Zx(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,e.charCode()===sx&&e.charCodeAt(e.pos-1)===dx?Nx(e,n):n):t}function Qx(e){var t=e.peek();return""===t?null:{type:"Token",value:t}}function Rx(e){var t,n=null;return e.eat(gx),t=Px(e),e.charCode()===cx&&e.nextCharCode()===hx&&(e.pos+=2,t+="()"),e.charCodeAt(e.findWsEnd(e.pos))===bx&&(Ax(e),n=function(e){var t=null,n=null,r=1;return e.eat(bx),e.charCode()===mx&&(e.peek(),r=-1),-1==r&&e.charCode()===Tx?e.peek():(t=r*Number(_x(e)),0!==Cx[e.charCode()]&&(t+=Px(e))),Ax(e),e.eat(px),Ax(e),e.charCode()===Tx?e.peek():(r=1,e.charCode()===mx&&(e.peek(),r=-1),n=r*Number(_x(e)),0!==Cx[e.charCode()]&&(n+=Px(e))),e.eat(kx),{type:"Range",min:t,max:n}}(e)),e.eat(vx),Nx(e,{type:"Type",name:t,opts:n})}function Mx(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 Ex[e]-Ex[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 $x(e){for(var t,n=[],r={},i=null,o=e.pos;t=Ix(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:Mx(n,r)||" ",disallowEmpty:!1,explicit:!1}}function Ix(e){var t=e.charCode();if(t<128&&1===Cx[t])return function(e){var t=Px(e);return e.charCode()===cx?(e.pos++,{type:"Function",name:t}):Nx(e,{type:"Keyword",name:t})}(e);switch(t){case kx:break;case bx:return Nx(e,function(e){var t;return e.eat(bx),t=$x(e),e.eat(kx),t.explicit=!0,e.charCode()===ax&&(e.pos++,t.disallowEmpty=!0),t}(e));case gx:return e.nextCharCode()===ux?function(e){var t;return e.eat(gx),e.eat(ux),t=Px(e),e.eat(ux),e.eat(vx),Nx(e,{type:"Property",name:t})}(e):Rx(e);case xx:return{type:"Combinator",value:e.substringToPos(e.pos+(e.nextCharCode()===xx?2:1))};case lx:return e.pos++,e.eat(lx),{type:"Combinator",value:"&&"};case px:return e.pos++,{type:"Comma"};case ux:return Nx(e,{type:"String",value:Dx(e)});case ox:case tx:case nx:case ix:case rx:return{type:"Spaces",value:Ax(e)};case yx:return(t=e.nextCharCode())<128&&1===Cx[t]?(e.pos++,{type:"AtKeyword",name:Px(e)}):Qx(e);case fx:case dx:case Ox:case sx:case ax:break;case Sx:if((t=e.nextCharCode())<48||t>57)return Qx(e);break;default:return Qx(e)}}function Lx(e){var t=new ex(e),n=$x(t);return t.pos!==e.length&&t.error("Unexpected input"),1===n.terms.length&&"Group"===n.terms[0].type?n.terms[0]:n}var Fx=function(){};function Bx(e){return"function"===typeof e?e:Fx}var jx={decorator:function(e){var t=[],n=null;return(0,rn.Z)((0,rn.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 zx(e,t){return"string"===typeof e?function(e){var t=[];return Ok(e,(function(n,r,i){return t.push({type:n,value:e.slice(r,i),node:null})})),t}(e):t.generate(e,jx)}var Ux={type:"Match"},Yx={type:"Mismatch"},Xx={type:"DisallowEmpty"},Hx=40,Wx=41;function qx(e,t,n){return t===Ux&&n===Yx||e===Ux&&t===Ux&&n===Ux?e:("If"===e.type&&e.else===Yx&&t===Ux&&(t=e.then,e=e.match),{type:"If",match:e,then:t,else:n})}function Gx(e){return e.length>2&&e.charCodeAt(e.length-2)===Hx&&e.charCodeAt(e.length-1)===Wx}function Vx(e){return"Keyword"===e.type||"AtKeyword"===e.type||"Function"===e.type||"Type"===e.type&&Gx(e.name)}function Jx(e,t,n){switch(e){case" ":for(var r=Ux,i=t.length-1;i>=0;i--){r=qx(t[i],r,Yx)}return r;case"|":for(var o=Yx,a=null,s=t.length-1;s>=0;s--){var l=t[s];if(Vx(l)&&(null===a&&s>0&&Vx(t[s-1])&&(o=qx({type:"Enum",map:a=Object.create(null)},Ux,o)),null!==a)){var u=(Gx(l.name)?l.name.slice(0,-1):l.name).toLowerCase();if(u in a===!1){a[u]=l;continue}}a=null,o=qx(l,Ux,o)}return o;case"&&":if(t.length>5)return{type:"MatchOnce",terms:t,all:!0};for(var c=Yx,h=function(){var n,r=t[f];n=t.length>1?Jx(e,t.filter((function(e){return e!==r})),!1):Ux,c=qx(r,n,c)},f=t.length-1;f>=0;f--)h();return c;case"||":if(t.length>5)return{type:"MatchOnce",terms:t,all:!1};for(var d=n?Ux:Yx,p=function(){var n,r=t[m];n=t.length>1?Jx(e,t.filter((function(e){return e!==r})),!0):Ux,d=qx(r,n,d)},m=t.length-1;m>=0;m--)p();return d}}function Kx(e){if("function"===typeof e)return{type:"Generic",fn:e};switch(e.type){case"Group":var t=Jx(e.combinator,e.terms.map(Kx),!1);return e.disallowEmpty&&(t=qx(t,Xx,Yx)),t;case"Multiplier":return function(e){var t=Ux,n=Kx(e.term);if(0===e.max)n=qx(n,Xx,Yx),(t=qx(n,null,Yx)).then=qx(Ux,Ux,t),e.comma&&(t.then.else=qx({type:"Comma",syntax:e},t,Yx));else for(var r=e.min||1;r<=e.max;r++)e.comma&&t!==Ux&&(t=qx({type:"Comma",syntax:e},t,Yx)),t=qx(n,qx(Ux,Ux,t),Yx);if(0===e.min)t=qx(Ux,Ux,t);else for(var i=0;i=65&&i<=90&&(i|=32),i!==r)return!1}return!0}function fw(e){return null===e||(e.type===wb||e.type===lb||e.type===Eb||e.type===Tb||e.type===Pb||function(e){return e.type===mb&&"?"!==e.value}(e))}function dw(e){return null===e||(e.type===Ab||e.type===Cb||e.type===_b||e.type===mb&&"/"===e.value)}function pw(e,t,n){function r(){do{v++,g=vO&&(O=v)}function u(){y=y.type===iw?y.prev:{type:ow,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:nw,syntax:null,token:null,prev:null};for(r();null===m&&++pf.tokenIndex)&&(f=d,d=!1);else if(null===f){m=sw;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&&g.type===sb||"length"===t.name&&"0"===g.value){null===d&&(d=o(t,f)),t=Yx;break}c={syntax:t.syntax,opts:t.syntax.opts||null!==c&&c.opts||null,prev:c},y={type:iw,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].*$/,"")),hw(A,E)){l(),t=Ux;break}}t=Yx;break;case"AtKeyword":case"Function":if(null!==g&&hw(g.value,t.name)){l(),t=Ux;break}t=Yx;break;case"Token":if(null!==g&&g.value===t.value){l(),t=Ux;break}t=Yx;break;case"Comma":null!==g&&g.type===wb?fw(y.token)?t=Yx:(l(),t=dw(g)?Yx:Ux):t=fw(y.token)||dw(g)?Ux:Yx;break;case"String":for(var P="",_=v;_=0}function Cw(e){return Boolean(e)&&Tw(e.offset)&&Tw(e.line)&&Tw(e.column)}function Ew(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!==ww.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(Cw(n.loc.start)){if(Cw(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(u))throw new Error("Wrong value `"+u+"` in `"+e+"."+o+"` structure definition");a.push("List")}}i[o]=a.join(" | ")}return{docs:i,check:Ew(e,r)}}var Pw=ew(OS.join(" | "));function _w(e,t,n){var r={};for(var i in e)e[i].syntax&&(r[i]=n?e[i].syntax:oS(e[i].syntax,{compact:t}));return r}function Dw(e,t,n){for(var r={},i=0,o=Object.entries(e);i3&&void 0!==arguments[3]?arguments[3]:null,serializable:"string"===typeof e||e&&"string"===typeof e.type,syntax:null,match:null};return"function"===typeof e?i.match=ew(e,r):("string"===typeof e?Object.defineProperty(i,"syntax",{get:function(){return Object.defineProperty(i,"syntax",{value:Lx(e)}),i.syntax}}):i.syntax=e,Object.defineProperty(i,"match",{get:function(){return Object.defineProperty(i,"match",{value:ew(i.syntax,r)}),i.match}})),i}},{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 uS("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||Nw(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=pS(t);return r.descriptors?r.descriptors[i.name]||r.descriptors[i.basename]?void 0:new uS("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 uS("Unknown property",e)}},{key:"matchAtrulePrelude",value:function(e,t){var n=this.checkAtrulePrelude(e,t);if(n)return Zw(null,n);var r=this.getAtrule(e);return r.prelude?Nw(this,r.prelude,t||"",!1):Zw(null,null)}},{key:"matchAtruleDescriptor",value:function(e,t,n){var r=this.checkAtruleDescriptorName(e,t);if(r)return Zw(null,r);var i=this.getAtrule(e),o=pS(t);return Nw(this,i.descriptors[o.name]||i.descriptors[o.basename],n,!1)}},{key:"matchDeclaration",value:function(e){return"Declaration"!==e.type?Zw(null,new Error("Not a Declaration node")):this.matchProperty(e.property,e.value)}},{key:"matchProperty",value:function(e,t){if(mS(e).custom)return Zw(null,new Error("Lexer matching doesn't applicable for custom properties"));var n=this.checkPropertyName(e);return n?Zw(null,n):Nw(this,this.getProperty(e),t,!0)}},{key:"matchType",value:function(e,t){var n=this.getType(e);return n?Nw(this,n,t,!1):Zw(null,new uS("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")),Nw(this,e,t,!1)):Zw(null,new uS("Bad syntax"))}},{key:"findValueFragments",value:function(e,t,n,r){return xw(this,t,this.matchProperty(e,t),n,r)}},{key:"findDeclarationValueFragments",value:function(e,t,n){return xw(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=pS(e);return(n.vendor&&t?this.atrules[n.name]||this.atrules[n.basename]:this.atrules[n.name])||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=mS(e);return(n.vendor&&t?this.properties[n.name]||this.properties[n.basename]:this.properties[n.name])||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=Fx,i=Fx;if("function"===typeof t?r=t:t&&(r=Bx(t.enter),i=Bx(t.leave)),r===Fx&&i===Fx)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,l="Type"===a.type?t:n;hasOwnProperty.call(s,a.name)&&!e(r,a.name,l,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,ne.Z)(t.keys()).filter((function(e){return t.get(e)})),n=(0,ne.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,units:this.units,types:_w(this.types,!t,e),properties:_w(this.properties,!t,e),atrules:Dw(this.atrules,!t,e)}}},{key:"toString",value:function(){return JSON.stringify(this.dump())}}]),e}();function Rw(e,t){return"string"===typeof t&&/^\s*\|/.test(t)?"string"===typeof e?e+t:t.replace(/^\s*\|\s*/,""):t||null}function Mw(e,t){for(var n=Object.create(null),r=0,i=Object.entries(e);r0&&this.skip(e),0===t&&(n=this.charCodeAt(this.tokenStart))!==Lw&&n!==Fw&&this.error("Number sign is expected"),Yw.call(this,0!==t),t===Fw?"-"+this.consume(gb):this.consume(gb)}var Ww="AnPlusB",qw={a:[String,null],b:[String,null]};function Gw(){var e=this.tokenStart,t=null,n=null;if(this.tokenType===gb)Yw.call(this,zw),n=this.consume(gb);else if(this.tokenType===sb&&this.cmpChar(this.tokenStart,Fw))switch(t="-1",Xw.call(this,1,Bw),this.tokenEnd-this.tokenStart){case 2:this.next(),n=Hw.call(this);break;case 3:Xw.call(this,2,Fw),this.next(),this.skipSC(),Yw.call(this,jw),n="-"+this.consume(gb);break;default:Xw.call(this,2,Fw),Uw.call(this,3,jw),this.next(),n=this.substrToCursor(e+2)}else if(this.tokenType===sb||this.isDelim(Lw)&&this.lookupType(1)===sb){var r=0;switch(t="1",this.isDelim(Lw)&&(r=1,this.next()),Xw.call(this,0,Bw),this.tokenEnd-this.tokenStart){case 1:this.next(),n=Hw.call(this);break;case 2:Xw.call(this,1,Fw),this.next(),this.skipSC(),Yw.call(this,jw),n="-"+this.consume(gb);break;default:Xw.call(this,1,Fw),Uw.call(this,2,jw),this.next(),n=this.substrToCursor(e+r+1)}}else if(this.tokenType===Ob){for(var i=this.charCodeAt(this.tokenStart),o=i===Lw||i===Fw,a=this.tokenStart+o;a0&&void 0!==arguments[0]&&arguments[0],r=this.tokenStart,i=null,o=null;switch(this.eat(ub),t=(e=this.substrToCursor(r+1)).toLowerCase(),this.skipSC(),!1===this.eof&&this.tokenType!==Pb&&this.tokenType!==xb&&(i=this.parseAtrulePrelude?this.parseWithFallback(this.AtrulePrelude.bind(this,e,n),Jw):Jw.call(this,this.tokenIndex),this.skipSC()),this.tokenType){case xb:this.next();break;case Pb:o=hasOwnProperty.call(this.atrule,t)&&"function"===typeof this.atrule[t].block?this.atrule[t].block.call(this,n):this.Block(Kw.call(this))}return{type:"Atrule",loc:this.getLocation(r,this.tokenStart),name:e,prelude:i,block:o}}function iT(e){this.token(ub,"@"+e.name),null!==e.prelude&&this.node(e.prelude),e.block?this.node(e.block):this.token(xb,";")}var oT="AtrulePrelude",aT="atrulePrelude",sT={children:[[]]};function lT(e){var t=null;return null!==e&&(e=e.toLowerCase()),this.skipSC(),t=hasOwnProperty.call(this.atrule,e)&&"function"===typeof this.atrule[e].prelude?this.atrule[e].prelude.call(this):this.readSequence(this.scope.AtrulePrelude),this.skipSC(),!0!==this.eof&&this.tokenType!==Pb&&this.tokenType!==xb&&this.error("Semicolon or block is expected"),{type:"AtrulePrelude",loc:this.getLocationFromList(t),children:t}}function uT(e){this.children(e)}var cT=36,hT=42,fT=61,dT=94,pT=124,mT=126;function gT(){this.eof&&this.error("Unexpected end of input");var e=this.tokenStart,t=!1;return this.isDelim(hT)?(t=!0,this.next()):this.isDelim(pT)||this.eat(sb),this.isDelim(pT)?this.charCodeAt(this.tokenStart+1)!==fT?(this.next(),this.eat(sb)):t&&this.error("Identifier is expected",this.tokenEnd):t&&this.error("Vertical line is expected"),{type:"Identifier",loc:this.getLocation(e,this.tokenStart),name:this.substrToCursor(e)}}function vT(){var e=this.tokenStart,t=this.charCodeAt(e);return t!==fT&&t!==mT&&t!==dT&&t!==cT&&t!==hT&&t!==pT&&this.error("Attribute selector (=, ~=, ^=, $=, *=, |=) is expected"),this.next(),t!==fT&&(this.isDelim(fT)||this.error("Equal sign is expected"),this.next()),this.substrToCursor(e)}var OT="AttributeSelector",yT={name:"Identifier",matcher:[String,null],value:["String","Identifier",null],flags:[String,null]};function bT(){var e,t=this.tokenStart,n=null,r=null,i=null;return this.eat(Tb),this.skipSC(),e=gT.call(this),this.skipSC(),this.tokenType!==Cb&&(this.tokenType!==sb&&(n=vT.call(this),this.skipSC(),r=this.tokenType===hb?this.String():this.Identifier(),this.skipSC()),this.tokenType===sb&&(i=this.consume(sb),this.skipSC())),this.eat(Cb),{type:"AttributeSelector",loc:this.getLocation(t,this.tokenStart),name:e,matcher:n,value:r,flags:i}}function kT(e){this.token(mb,"["),this.node(e.name),null!==e.matcher&&(this.tokenize(e.matcher),this.node(e.value)),null!==e.flags&&this.token(sb,e.flags),this.token(mb,"]")}var ST=38;function xT(e){return this.Raw(e,null,!0)}function wT(){return this.parseWithFallback(this.Rule,xT)}function TT(e){return this.Raw(e,this.consumeUntilSemicolonIncluded,!0)}function CT(){if(this.tokenType===xb)return TT.call(this,this.tokenIndex);var e=this.parseWithFallback(this.Declaration,TT);return this.tokenType===xb&&this.next(),e}var ET="Block",AT="block",PT={children:[["Atrule","Rule","Declaration"]]};function _T(e){var t=e?CT:wT,n=this.tokenStart,r=this.createList();this.eat(Pb);e:for(;!this.eof;)switch(this.tokenType){case _b:break e;case yb:case Db:this.next();break;case ub:r.push(this.parseWithFallback(this.Atrule.bind(this,e),xT));break;default:e&&this.isDelim(ST)?r.push(wT.call(this)):r.push(t.call(this))}return this.eof||this.eat(_b),{type:"Block",loc:this.getLocation(n,this.tokenStart),children:r}}function DT(e){var t=this;this.token(Pb,"{"),this.children(e,(function(e){"Declaration"===e.type&&t.token(xb,";")})),this.token(_b,"}")}var ZT="Brackets",NT={children:[[]]};function QT(e,t){var n,r=this.tokenStart;return this.eat(Tb),n=e.call(this,t),this.eof||this.eat(Cb),{type:"Brackets",loc:this.getLocation(r,this.tokenStart),children:n}}function RT(e){this.token(mb,"["),this.children(e),this.token(mb,"]")}var MT="CDC",$T=[];function IT(){var e=this.tokenStart;return this.eat(kb),{type:"CDC",loc:this.getLocation(e,this.tokenStart)}}function LT(){this.token(kb,"--\x3e")}var FT="CDO",BT=[];function jT(){var e=this.tokenStart;return this.eat(bb),{type:"CDO",loc:this.getLocation(e,this.tokenStart)}}function zT(){this.token(bb,"\x3c!--")}var UT=46,YT="ClassSelector",XT={name:String};function HT(){return this.eatDelim(UT),{type:"ClassSelector",loc:this.getLocation(this.tokenStart-1,this.tokenEnd),name:this.consume(sb)}}function WT(e){this.token(mb,"."),this.token(sb,e.name)}var qT=43,GT=47,VT=62,JT=126,KT="Combinator",eC={name:String};function tC(){var e,t=this.tokenStart;switch(this.tokenType){case yb:e=" ";break;case mb:switch(this.charCodeAt(this.tokenStart)){case VT:case qT:case JT:this.next();break;case GT:this.next(),this.eatIdent("deep"),this.eatDelim(GT);break;default:this.error("Combinator is expected")}e=this.substrToCursor(t)}return{type:"Combinator",loc:this.getLocation(t,this.tokenStart),name:e}}function nC(e){this.tokenize(e.name)}var rC=42,iC=47,oC="Comment",aC={value:String};function sC(){var e=this.tokenStart,t=this.tokenEnd;return this.eat(Db),t-e+2>=2&&this.charCodeAt(t-2)===rC&&this.charCodeAt(t-1)===iC&&(t-=2),{type:"Comment",loc:this.getLocation(e,this.tokenStart),value:this.substring(e+2,t)}}function lC(e){this.token(Db,"/*"+e.value+"*/")}var uC=33,cC=35,hC=36,fC=38,dC=42,pC=43,mC=47;function gC(e){return this.Raw(e,this.consumeUntilExclamationMarkOrSemicolon,!0)}function vC(e){return this.Raw(e,this.consumeUntilExclamationMarkOrSemicolon,!1)}function OC(){var e=this.tokenIndex,t=this.Value();return"Raw"!==t.type&&!1===this.eof&&this.tokenType!==xb&&!1===this.isDelim(uC)&&!1===this.isBalanceEdge(e)&&this.error(),t}var yC="Declaration",bC="declaration",kC={important:[Boolean,String],property:String,value:["Value","Raw"]};function SC(){var e,t=this.tokenStart,n=this.tokenIndex,r=wC.call(this),i=gS(r),o=i?this.parseCustomProperty:this.parseValue,a=i?vC:gC,s=!1;this.skipSC(),this.eat(Sb);var l=this.tokenIndex;if(i||this.skipSC(),e=o?this.parseWithFallback(OC,a):a.call(this,this.tokenIndex),i&&"Value"===e.type&&e.children.isEmpty)for(var u=l-this.tokenIndex;u<=0;u++)if(this.lookupType(u)===yb){e.children.appendData({type:"WhiteSpace",loc:null,value:" "});break}return this.isDelim(uC)&&(s=TC.call(this),this.skipSC()),!1===this.eof&&this.tokenType!==xb&&!1===this.isBalanceEdge(n)&&this.error(),{type:"Declaration",loc:this.getLocation(t,this.tokenStart),important:s,property:r,value:e}}function xC(e){this.token(sb,e.property),this.token(Sb,":"),this.node(e.value),e.important&&(this.token(mb,"!"),this.token(sb,!0===e.important?"important":e.important))}function wC(){var e=this.tokenStart;if(this.tokenType===mb)switch(this.charCodeAt(this.tokenStart)){case dC:case hC:case pC:case cC:case fC:this.next();break;case mC:this.next(),this.isDelim(mC)&&this.next()}return this.tokenType===cb?this.eat(cb):this.eat(sb),this.substrToCursor(e)}function TC(){this.eat(mb),this.skipSC();var e=this.consume(sb);return"important"===e||e}var CC=38;function EC(e){return this.Raw(e,this.consumeUntilSemicolonIncluded,!0)}var AC="DeclarationList",PC={children:[["Declaration","Atrule","Rule"]]};function _C(){for(var e=this.createList();!this.eof;)switch(this.tokenType){case yb:case Db:case xb:this.next();break;case ub:e.push(this.parseWithFallback(this.Atrule.bind(this,!0),EC));break;default:this.isDelim(CC)?e.push(this.parseWithFallback(this.Rule,EC)):e.push(this.parseWithFallback(this.Declaration,EC))}return{type:"DeclarationList",loc:this.getLocationFromList(e),children:e}}function DC(e){var t=this;this.children(e,(function(e){"Declaration"===e.type&&t.token(xb,";")}))}var ZC="Dimension",NC={value:String,unit:String};function QC(){var e=this.tokenStart,t=this.consumeNumber(Ob);return{type:"Dimension",loc:this.getLocation(e,this.tokenStart),value:t,unit:this.substring(e+t.length,this.tokenStart)}}function RC(e){this.token(Ob,e.value+e.unit)}var MC="Function",$C="function",IC={name:String,children:[[]]};function LC(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(Ab),{type:"Function",loc:this.getLocation(r,this.tokenStart),name:i,children:n}}function FC(e){this.token(lb,e.name+"("),this.children(e),this.token(Ab,")")}var BC="XXX",jC="Hash",zC={value:String};function UC(){var e=this.tokenStart;return this.eat(cb),{type:"Hash",loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e+1)}}function YC(e){this.token(cb,"#"+e.value)}var XC="Identifier",HC={name:String};function WC(){return{type:"Identifier",loc:this.getLocation(this.tokenStart,this.tokenEnd),name:this.consume(sb)}}function qC(e){this.token(sb,e.name)}var GC="IdSelector",VC={name:String};function JC(){var e=this.tokenStart;return this.eat(cb),{type:"IdSelector",loc:this.getLocation(e,this.tokenStart),name:this.substrToCursor(e+1)}}function KC(e){this.token(mb,"#"+e.name)}var eE="MediaFeature",tE={name:String,value:["Identifier","Number","Dimension","Ratio",null]};function nE(){var e,t=this.tokenStart,n=null;if(this.eat(Eb),this.skipSC(),e=this.consume(sb),this.skipSC(),this.tokenType!==Ab){switch(this.eat(Sb),this.skipSC(),this.tokenType){case gb:n=this.lookupNonWSType(1)===mb?this.Ratio():this.Number();break;case Ob:n=this.Dimension();break;case sb:n=this.Identifier();break;default:this.error("Number, dimension, ratio or identifier is expected")}this.skipSC()}return this.eat(Ab),{type:"MediaFeature",loc:this.getLocation(t,this.tokenStart),name:e,value:n}}function rE(e){this.token(Eb,"("),this.token(sb,e.name),null!==e.value&&(this.token(Sb,":"),this.node(e.value)),this.token(Ab,")")}var iE="MediaQuery",oE={children:[["Identifier","MediaFeature","WhiteSpace"]]};function aE(){var e=this.createList(),t=null;this.skipSC();e:for(;!this.eof;){switch(this.tokenType){case Db:case yb:this.next();continue;case sb:t=this.Identifier();break;case Eb: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 sE(e){this.children(e)}var lE="MediaQueryList",uE={children:[["MediaQuery"]]};function cE(){var e=this.createList();for(this.skipSC();!this.eof&&(e.push(this.MediaQuery()),this.tokenType===wb);)this.next();return{type:"MediaQueryList",loc:this.getLocationFromList(e),children:e}}function hE(e){var t=this;this.children(e,(function(){return t.token(wb,",")}))}var fE=38,dE="NestingSelector",pE={};function mE(){var e=this.tokenStart;return this.eatDelim(fE),{type:"NestingSelector",loc:this.getLocation(e,this.tokenStart)}}function gE(){this.token(mb,"&")}var vE="Nth",OE={nth:["AnPlusB","Identifier"],selector:["SelectorList",null]};function yE(){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 bE(e){this.node(e.nth),null!==e.selector&&(this.token(sb,"of"),this.node(e.selector))}var kE="Number",SE={value:String};function xE(){return{type:"Number",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:this.consume(gb)}}function wE(e){this.token(gb,e.value)}var TE="Operator",CE={value:String};function EE(){var e=this.tokenStart;return this.next(),{type:"Operator",loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e)}}function AE(e){this.tokenize(e.value)}var PE="Parentheses",_E={children:[[]]};function DE(e,t){var n,r=this.tokenStart;return this.eat(Eb),n=e.call(this,t),this.eof||this.eat(Ab),{type:"Parentheses",loc:this.getLocation(r,this.tokenStart),children:n}}function ZE(e){this.token(Eb,"("),this.children(e),this.token(Ab,")")}var NE="Percentage",QE={value:String};function RE(){return{type:"Percentage",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:this.consumeNumber(vb)}}function ME(e){this.token(vb,e.value+"%")}var $E="PseudoClassSelector",IE="function",LE={name:String,children:[["Raw"],null]};function FE(){var e,t,n=this.tokenStart,r=null;return this.eat(Sb),this.tokenType===lb?(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(Ab)):e=this.consume(sb),{type:"PseudoClassSelector",loc:this.getLocation(n,this.tokenStart),name:e,children:r}}function BE(e){this.token(Sb,":"),null===e.children?this.token(sb,e.name):(this.token(lb,e.name+"("),this.children(e),this.token(Ab,")"))}var jE="PseudoElementSelector",zE="function",UE={name:String,children:[["Raw"],null]};function YE(){var e,t,n=this.tokenStart,r=null;return this.eat(Sb),this.eat(Sb),this.tokenType===lb?(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(Ab)):e=this.consume(sb),{type:"PseudoElementSelector",loc:this.getLocation(n,this.tokenStart),name:e,children:r}}function XE(e){this.token(Sb,":"),this.token(Sb,":"),null===e.children?this.token(sb,e.name):(this.token(lb,e.name+"("),this.children(e),this.token(Ab,")"))}var HE=47,WE=46;function qE(){this.skipSC();for(var e=this.consume(gb),t=0;t0&&this.lookupType(-1)===yb?this.tokenIndex>1?this.getTokenStart(this.tokenIndex-1):this.firstCharOffset:this.tokenStart}var tA="Raw",nA={value:String};function rA(e,t,n){var r,i=this.getTokenStart(e);return this.skipUntilBalanced(e,t||this.consumeUntilBalanceEnd),r=n&&this.tokenStart>i?eA.call(this):this.tokenStart,{type:"Raw",loc:this.getLocation(i,r),value:this.substring(i,r)}}function iA(e){this.tokenize(e.value)}function oA(e){return this.Raw(e,this.consumeUntilLeftCurlyBracket,!0)}function aA(){var e=this.SelectorList();return"Raw"!==e.type&&!1===this.eof&&this.tokenType!==Pb&&this.error(),e}var sA="Rule",lA="rule",uA={prelude:["SelectorList","Raw"],block:["Block"]};function cA(){var e,t,n=this.tokenIndex,r=this.tokenStart;return e=this.parseRulePrelude?this.parseWithFallback(aA,oA):oA.call(this,n),t=this.Block(!0),{type:"Rule",loc:this.getLocation(r,this.tokenStart),prelude:e,block:t}}function hA(e){this.node(e.prelude),this.node(e.block)}var fA="Selector",dA={children:[["TypeSelector","IdSelector","ClassSelector","AttributeSelector","PseudoClassSelector","PseudoElementSelector","Combinator","WhiteSpace"]]};function pA(){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 mA(e){this.children(e)}var gA="SelectorList",vA="selector",OA={children:[["Selector","Raw"]]};function yA(){for(var e=this.createList();!this.eof&&(e.push(this.Selector()),this.tokenType===wb);)this.next();return{type:"SelectorList",loc:this.getLocationFromList(e),children:e}}function bA(e){var t=this;this.children(e,(function(){return t.token(wb,",")}))}var kA=92,SA=34,xA=39;function wA(e){for(var t=e.length,n=e.charCodeAt(0),r=n===SA||n===xA?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(s===kA){if(a===i){a!==t-1&&(o=e.substr(a+1));break}if(s=e.charCodeAt(++a),Bb(kA,s)){var l=a-1,u=ik(e,l);a=u-1,o+=lk(e.substring(l+1,u))}else 13===s&&10===e.charCodeAt(a+1)&&a++}else o+=e[a]}return o}var TA="String",CA={value:String};function EA(){return{type:"String",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:wA(this.consume(hb))}}function AA(e){this.token(hb,function(e,t){for(var n=t?"'":'"',r=t?xA:SA,i="",o=!1,a=0;a6&&this.error("Too many hex digits",r)}return this.next(),n}function HA(e){for(var t=0;this.isDelim(YA);)++t>e&&this.error("Too many question marks"),this.next()}function WA(e){this.charCodeAt(this.tokenStart)!==e&&this.error((e===zA?"Plus sign":"Hyphen minus")+" is expected")}function qA(){var e=0;switch(this.tokenType){case gb:if(e=XA.call(this,1,!0),this.isDelim(YA)){HA.call(this,6-e);break}if(this.tokenType===Ob||this.tokenType===gb){WA.call(this,UA),XA.call(this,1,!1);break}break;case Ob:(e=XA.call(this,1,!0))>0&&HA.call(this,6-e);break;default:if(this.eatDelim(zA),this.tokenType===sb){(e=XA.call(this,0,!0))>0&&HA.call(this,6-e);break}if(this.isDelim(YA)){this.next(),HA.call(this,5);break}this.error("Hex digit or question mark is expected")}}var GA="UnicodeRange",VA={value:String};function JA(){var e=this.tokenStart;return this.eatIdent("u"),qA.call(this),{type:"UnicodeRange",loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e)}}function KA(e){this.tokenize(e.value)}var eP=32,tP=92,nP=34,rP=39,iP=40,oP=41;var aP="Url",sP={value:String};function lP(){var e,t=this.tokenStart;switch(this.tokenType){case db:e=function(e){for(var t=e.length,n=4,r=e.charCodeAt(t-1)===oP?t-2:t-1,i="";n )","absolute-size":"xx-small|x-small|small|medium|large|x-large|xx-large|xxx-large","acos()":"acos( )","alpha-value":"|","angle-percentage":"|","angular-color-hint":"","angular-color-stop":"&&?","angular-color-stop-list":"[ [, ]?]# , ","animateable-feature":"scroll-position|contents|","asin()":"asin( )","atan()":"atan( )","atan2()":"atan2( , )",attachment:"scroll|fixed|local","attr()":"attr( ? [, ]? )","attr-matcher":"['~'|'|'|'^'|'$'|'*']? '='","attr-modifier":"i|s","attribute-selector":"'[' ']'|'[' [|] ? ']'","auto-repeat":"repeat( [auto-fill|auto-fit] , [? ]+ ? )","auto-track-list":"[? [|]]* ? [? [|]]* ?",axis:"block|inline|vertical|horizontal","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":"||||( )","calc-constant":"e|pi|infinity|-infinity|NaN","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":"[