diff --git a/asset-manifest.json b/asset-manifest.json index 3ef5aff..e6f51cb 100644 --- a/asset-manifest.json +++ b/asset-manifest.json @@ -1,7 +1,7 @@ { "files": { "main.css": "/static/css/main.6f7e5bbe.css", - "main.js": "/static/js/main.da2e3b68.js", + "main.js": "/static/js/main.3dcb095c.js", "static/js/8694.1e334300.chunk.js": "/static/js/8694.1e334300.chunk.js", "static/js/2266.9557b7a6.chunk.js": "/static/js/2266.9557b7a6.chunk.js", "static/js/6769.90981532.chunk.js": "/static/js/6769.90981532.chunk.js", @@ -14,7 +14,7 @@ "static/js/4089.0426fd68.chunk.js": "/static/js/4089.0426fd68.chunk.js", "static/js/3450.70dfb1fb.chunk.js": "/static/js/3450.70dfb1fb.chunk.js", "static/js/7873.683f2ea9.chunk.js": "/static/js/7873.683f2ea9.chunk.js", - "static/js/1994.6426e479.chunk.js": "/static/js/1994.6426e479.chunk.js", + "static/js/1994.3c3ea84e.chunk.js": "/static/js/1994.3c3ea84e.chunk.js", "static/js/6576.0da4d938.chunk.js": "/static/js/6576.0da4d938.chunk.js", "static/js/6175.d79f0f83.chunk.js": "/static/js/6175.d79f0f83.chunk.js", "static/js/9468.c1d4d10b.chunk.js": "/static/js/9468.c1d4d10b.chunk.js", @@ -121,7 +121,7 @@ "static/media/github.svg": "/static/media/github.6988a55f42f5097e5bd19ed9ae72ccde.svg", "static/media/color.svg": "/static/media/color.3cdb61387d75158307fc6d9ed1ab3e74.svg", "main.6f7e5bbe.css.map": "/static/css/main.6f7e5bbe.css.map", - "main.da2e3b68.js.map": "/static/js/main.da2e3b68.js.map", + "main.3dcb095c.js.map": "/static/js/main.3dcb095c.js.map", "8694.1e334300.chunk.js.map": "/static/js/8694.1e334300.chunk.js.map", "2266.9557b7a6.chunk.js.map": "/static/js/2266.9557b7a6.chunk.js.map", "6769.90981532.chunk.js.map": "/static/js/6769.90981532.chunk.js.map", @@ -134,7 +134,7 @@ "4089.0426fd68.chunk.js.map": "/static/js/4089.0426fd68.chunk.js.map", "3450.70dfb1fb.chunk.js.map": "/static/js/3450.70dfb1fb.chunk.js.map", "7873.683f2ea9.chunk.js.map": "/static/js/7873.683f2ea9.chunk.js.map", - "1994.6426e479.chunk.js.map": "/static/js/1994.6426e479.chunk.js.map", + "1994.3c3ea84e.chunk.js.map": "/static/js/1994.3c3ea84e.chunk.js.map", "6576.0da4d938.chunk.js.map": "/static/js/6576.0da4d938.chunk.js.map", "6175.d79f0f83.chunk.js.map": "/static/js/6175.d79f0f83.chunk.js.map", "9468.c1d4d10b.chunk.js.map": "/static/js/9468.c1d4d10b.chunk.js.map", @@ -240,6 +240,6 @@ "static/js/refractor-prismjs-vendor.ca56070e.js", "static/js/react-vendor.d0d44318.js", "static/css/main.6f7e5bbe.css", - "static/js/main.da2e3b68.js" + "static/js/main.3dcb095c.js" ] } \ No newline at end of file diff --git a/index.html b/index.html index 5299d44..57c9689 100644 --- a/index.html +++ b/index.html @@ -1 +1 @@ -微信公众号 Markdown 编辑器
\ No newline at end of file +微信公众号 Markdown 编辑器
\ No newline at end of file diff --git a/static/js/1994.6426e479.chunk.js b/static/js/1994.3c3ea84e.chunk.js similarity index 61% rename from static/js/1994.6426e479.chunk.js rename to static/js/1994.3c3ea84e.chunk.js index 6d6ca74..2a2b2a3 100644 --- a/static/js/1994.6426e479.chunk.js +++ b/static/js/1994.3c3ea84e.chunk.js @@ -1,2 +1,2 @@ -"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[1994],{1994:(e,t,O)=>{O.r(t),O.d(t,{autoCloseTags:()=>A,completeFromSchema:()=>w,xml:()=>Q,xmlLanguage:()=>x});var n=O(4179),a=O(1345);function r(e){return 45==e||46==e||58==e||e>=65&&e<=90||95==e||e>=97&&e<=122||e>=161}let l=null,o=null,s=0;function i(e,t){let O=e.pos+t;if(o==e&&s==O)return l;for(;9==(n=e.peek(t))||10==n||13==n||32==n;)t++;var n;let a="";for(;;){let O=e.peek(t);if(!r(O))break;a+=String.fromCharCode(O),t++}return o=e,s=O,l=a||null}function y(e,t){this.name=e,this.parent=t,this.hash=t?t.hash:0;for(let O=0;O1==t?new y(i(n,1)||"",e):e,reduce:(e,t)=>11==t&&e?e.parent:e,reuse(e,t,O,n){let a=t.type.id;return 1==a||13==a?new y(i(n,1)||"",e):e},hash:e=>e?e.hash:0,strict:!1}),$=new n.Lu(((e,t)=>{if(60==e.next)if(e.advance(),47==e.next){e.advance();let O=i(e,0);if(!O)return e.acceptToken(5);if(t.context&&O==t.context.name)return e.acceptToken(2);for(let n=t.context;n;n=n.parent)if(n.name==O)return e.acceptToken(3,-2);e.acceptToken(4)}else if(33!=e.next&&63!=e.next)return e.acceptToken(1)}),{contextual:!0});function g(e,t){return new n.Lu((O=>{let n=0,a=t.charCodeAt(0);e:for(;!(O.next<0);O.advance(),n++)if(O.next==a){for(let e=1;e"),m=g(37,"]]>"),S=(0,a.pn)({Text:a._A.content,"StartTag StartCloseTag EndTag SelfCloseEndTag":a._A.angleBracket,TagName:a._A.tagName,"MismatchedCloseTag/TagName":[a._A.tagName,a._A.invalid],AttributeName:a._A.attributeName,AttributeValue:a._A.attributeValue,Is:a._A.definitionOperator,"EntityReference CharacterReference":a._A.character,Comment:a._A.blockComment,ProcessingInst:a._A.processingInstruction,DoctypeDecl:a._A.documentMeta,Cdata:a._A.special(a._A.string)}),d=n.U1.deserialize({version:14,states:",SOQOaOOOrOxO'#CfOzOpO'#CiO!tOaO'#CgOOOP'#Cg'#CgO!{OrO'#CrO#TOtO'#CsO#]OpO'#CtOOOP'#DS'#DSOOOP'#Cv'#CvQQOaOOOOOW'#Cw'#CwO#eOxO,59QOOOP,59Q,59QOOOO'#Cx'#CxO#mOpO,59TO#uO!bO,59TOOOP'#C{'#C{O$TOaO,59RO$[OpO'#CoOOOP,59R,59ROOOQ'#C|'#C|O$dOrO,59^OOOP,59^,59^OOOS'#C}'#C}O$lOtO,59_OOOP,59_,59_O$tOpO,59`O$|OpO,59`OOOP-E6t-E6tOOOW-E6u-E6uOOOP1G.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<%lO$n_FhW[UVP{WOr$nrs%_sv$nw!^$n!^!_%y!_;'S$n;'S;=`&e<%lO$nZGXYVP{WOr$nrs%_sv$nw!^$n!^!_%y!_!`$n!`!aGw!a;'S$n;'S;=`&e<%lO$nZHQW!OQVP{WOr$nrs%_sv$nw!^$n!^!_%y!_;'S$n;'S;=`&e<%lO$nZHqYVP{WOr$nrs%_sv$nw!^$n!^!_%y!_#P$n#P#QIa#Q;'S$n;'S;=`&e<%lO$nZIhYVP{WOr$nrs%_sv$nw!^$n!^!_%y!_!`$n!`!aJW!a;'S$n;'S;=`&e<%lO$nZJaWwQVP{WOr$nrs%_sv$nw!^$n!^!_%y!_;'S$n;'S;=`&e<%lO$n",tokenizers:[$,p,u,m,0,1,2,3],topRules:{Document:[0,6]},tokenPrec:0});var f=O(4859),h=O(8070),v=O(4563);function _(e,t){let O=t&&t.getChild("TagName");return O?e.sliceString(O.from,O.to):""}function T(e,t){let O=t&&t.firstChild;return O&&"OpenTag"==O.name?_(e,O):""}function V(e){for(let t=e&&e.parent;t;t=t.parent)if("Element"==t.name)return t;return null}class P{constructor(e,t,O){this.attrs=t,this.attrValues=O,this.children=[],this.name=e.name,this.completion=Object.assign(Object.assign({type:"type"},e.completion||{}),{label:this.name}),this.openCompletion=Object.assign(Object.assign({},this.completion),{label:"<"+this.name}),this.closeCompletion=Object.assign(Object.assign({},this.completion),{label:"",boost:2}),this.closeNameCompletion=Object.assign(Object.assign({},this.completion),{label:this.name+">"}),this.text=e.textContent?e.textContent.map((e=>({label:e,type:"text"}))):[]}}const b=/^[:\-\.\w\u00b7-\uffff]*$/;function W(e){return Object.assign(Object.assign({type:"property"},e.completion||{}),{label:e.name})}function C(e){return"string"==typeof e?{label:'"'.concat(e,'"'),type:"constant"}:/^"/.test(e.label)?e:Object.assign(Object.assign({},e),{label:'"'.concat(e.label,'"')})}function w(e,t){let O=[],n=[],a=Object.create(null);for(let s of t){let e=W(s);O.push(e),s.global&&n.push(e),s.values&&(a[s.name]=s.values.map(C))}let r=[],l=[],o=Object.create(null);for(let s of e){let e=n,t=a;s.attributes&&(e=e.concat(s.attributes.map((e=>"string"==typeof e?O.find((t=>t.label==e))||{label:e,type:"property"}:(e.values&&(t==a&&(t=Object.create(t)),t[e.name]=e.values.map(C)),W(e))))));let i=new P(s,e,t);o[i.name]=i,r.push(i),s.top&&l.push(i)}l.length||(l=r);for(let s=0;s{var t;let{doc:O}=e.state,s=function(e,t){var O;let n=(0,f.mv)(e).resolveInner(t,-1),a=null;for(let r=n;!a&&r.parent;r=r.parent)"OpenTag"!=r.name&&"CloseTag"!=r.name&&"SelfClosingTag"!=r.name&&"MismatchedCloseTag"!=r.name||(a=r);if(a&&(a.to>t||a.lastChild.type.isError)){let e=a.parent;if("TagName"==n.name)return"CloseTag"==a.name||"MismatchedCloseTag"==a.name?{type:"closeTag",from:n.from,context:e}:{type:"openTag",from:n.from,context:V(e)};if("AttributeName"==n.name)return{type:"attrName",from:n.from,context:a};if("AttributeValue"==n.name)return{type:"attrValue",from:n.from,context:a};let O=n==a||"Attribute"==n.name?n.childBefore(t):n;return"StartTag"==(null===O||void 0===O?void 0:O.name)?{type:"openTag",from:t,context:V(e)}:"StartCloseTag"==(null===O||void 0===O?void 0:O.name)&&O.to<=t?{type:"closeTag",from:t,context:e}:"Is"==(null===O||void 0===O?void 0:O.name)?{type:"attrValue",from:t,context:a}:O?{type:"attrName",from:t,context:a}:null}if("StartCloseTag"==n.name)return{type:"closeTag",from:t,context:n.parent};for(;n.parent&&n.to==t&&!(null===(O=n.lastChild)||void 0===O?void 0:O.type.isError);)n=n.parent;return"Element"==n.name||"Text"==n.name||"Document"==n.name?{type:"tag",from:t,context:"Element"==n.name?n:V(n)}:null}(e.state,e.pos);if(!s||"tag"==s.type&&!e.explicit)return null;let{type:i,from:y,context:c}=s;if("openTag"==i){let e=l,t=T(O,c);if(t){let O=o[t];e=(null===O||void 0===O?void 0:O.children)||r}return{from:y,options:e.map((e=>e.completion)),validFor:b}}if("closeTag"==i){let n=T(O,c);return n?{from:y,to:e.pos+(">"==O.sliceString(e.pos,e.pos+1)?1:0),options:[(null===(t=o[n])||void 0===t?void 0:t.closeNameCompletion)||{label:n+">",type:"type"}],validFor:b}:null}if("attrName"==i){let e=o[_(O,c)];return{from:y,options:(null===e||void 0===e?void 0:e.attrs)||n,validFor:b}}if("attrValue"==i){let t=function(e,t,O){let n=t&&t.getChildren("Attribute").find((e=>e.from<=O&&e.to>=O)),a=n&&n.getChild("AttributeName");return a?e.sliceString(a.from,a.to):""}(O,c,y);if(!t)return null;let n=o[_(O,c)],r=((null===n||void 0===n?void 0:n.attrValues)||a)[t];return r&&r.length?{from:y,to:e.pos+('"'==O.sliceString(e.pos,e.pos+1)?1:0),options:r,validFor:/^"[^"]*"?$/}:null}if("tag"==i){let t=T(O,c),n=o[t],a=[],s=c&&c.lastChild;!t||s&&"CloseTag"==s.name&&_(O,s)==t||a.push(n?n.closeCompletion:{label:"",type:"type",boost:2});let i=a.concat(((null===n||void 0===n?void 0:n.children)||(c?r:l)).map((e=>e.openCompletion)));if(c&&(null===n||void 0===n?void 0:n.text.length)){let t=c.firstChild;t.to>e.pos-20&&!/\S/.test(e.state.sliceDoc(t.to,e.pos))&&(i=i.concat(n.text))}return{from:y,options:i,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}return null}}const x=f.bj.define({name:"xml",parser:d.configure({props:[f.Oh.add({Element(e){let t=/^\s*<\//.test(e.textAfter);return e.lineIndent(e.node.from)+(t?0:e.unit)},"OpenTag CloseTag SelfClosingTag":e=>e.column(e.node.from)+e.unit}),f.b_.add({Element(e){let t=e.firstChild,O=e.lastChild;return t&&"OpenTag"==t.name?{from:t.to,to:"CloseTag"==O.name?O.from:e.to}:null}}),f.Q_.add({"OpenTag CloseTag":e=>e.getChild("TagName")})]}),languageData:{commentTokens:{block:{open:"\x3c!--",close:"--\x3e"}},indentOnInput:/^\s*<\/$/}});function Q(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=[x.data.of({autocomplete:w(e.elements||[],e.attributes||[])})];return!1!==e.autoCloseTags&&t.push(A),new f.Yy(x,t)}function X(e,t){let O=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.length;if(!t)return"";let n=t.firstChild,a=n&&n.getChild("TagName");return a?e.sliceString(a.from,Math.min(a.to,O)):""}const A=v.Lz.inputHandler.of(((e,t,O,n,a)=>{if(e.composing||e.state.readOnly||t!=O||">"!=n&&"/"!=n||!x.isActiveAt(e.state,t,-1))return!1;let r=a(),{state:l}=r,o=l.changeByRange((e=>{var t,O,a;let r,{head:o}=e,s=l.doc.sliceString(o-1,o)==n,i=(0,f.mv)(l).resolveInner(o,-1);if(s&&">"==n&&"EndTag"==i.name){let n=i.parent;if("CloseTag"!=(null===(O=null===(t=n.parent)||void 0===t?void 0:t.lastChild)||void 0===O?void 0:O.name)&&(r=X(l.doc,n.parent,o))){return{range:e,changes:{from:o,to:o+(">"===l.doc.sliceString(o,o+1)?1:0),insert:"")}}}}else if(s&&"/"==n&&"StartCloseTag"==i.name){let e=i.parent;if(i.from==o-2&&"CloseTag"!=(null===(a=e.lastChild)||void 0===a?void 0:a.name)&&(r=X(l.doc,e,o))){let e=o+(">"===l.doc.sliceString(o,o+1)?1:0),t="".concat(r,">");return{range:h.OF.cursor(o+t.length,-1),changes:{from:o,to:e,insert:t}}}}return{range:e}}));return!o.changes.empty&&(e.dispatch([r,l.update(o,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}))}}]); -//# sourceMappingURL=1994.6426e479.chunk.js.map \ No newline at end of file +"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[1994],{1994:(e,t,O)=>{O.r(t),O.d(t,{autoCloseTags:()=>A,completeFromSchema:()=>w,xml:()=>Q,xmlLanguage:()=>x});var n=O(4179),a=O(1345);function r(e){return 45==e||46==e||58==e||e>=65&&e<=90||95==e||e>=97&&e<=122||e>=161}let l=null,o=null,s=0;function i(e,t){let O=e.pos+t;if(o==e&&s==O)return l;for(;9==(n=e.peek(t))||10==n||13==n||32==n;)t++;var n;let a="";for(;;){let O=e.peek(t);if(!r(O))break;a+=String.fromCharCode(O),t++}return o=e,s=O,l=a||null}function y(e,t){this.name=e,this.parent=t,this.hash=t?t.hash:0;for(let O=0;O1==t?new y(i(n,1)||"",e):e,reduce:(e,t)=>11==t&&e?e.parent:e,reuse(e,t,O,n){let a=t.type.id;return 1==a||13==a?new y(i(n,1)||"",e):e},hash:e=>e?e.hash:0,strict:!1}),$=new n.Lu(((e,t)=>{if(60==e.next)if(e.advance(),47==e.next){e.advance();let O=i(e,0);if(!O)return e.acceptToken(5);if(t.context&&O==t.context.name)return e.acceptToken(2);for(let n=t.context;n;n=n.parent)if(n.name==O)return e.acceptToken(3,-2);e.acceptToken(4)}else if(33!=e.next&&63!=e.next)return e.acceptToken(1)}),{contextual:!0});function g(e,t){return new n.Lu((O=>{let n=0,a=t.charCodeAt(0);e:for(;!(O.next<0);O.advance(),n++)if(O.next==a){for(let e=1;e"),m=g(37,"]]>"),S=(0,a.pn)({Text:a._A.content,"StartTag StartCloseTag EndTag SelfCloseEndTag":a._A.angleBracket,TagName:a._A.tagName,"MismatchedCloseTag/TagName":[a._A.tagName,a._A.invalid],AttributeName:a._A.attributeName,AttributeValue:a._A.attributeValue,Is:a._A.definitionOperator,"EntityReference CharacterReference":a._A.character,Comment:a._A.blockComment,ProcessingInst:a._A.processingInstruction,DoctypeDecl:a._A.documentMeta,Cdata:a._A.special(a._A.string)}),d=n.U1.deserialize({version:14,states:",SOQOaOOOrOxO'#CfOzOpO'#CiO!tOaO'#CgOOOP'#Cg'#CgO!{OrO'#CrO#TOtO'#CsO#]OpO'#CtOOOP'#DS'#DSOOOP'#Cv'#CvQQOaOOOOOW'#Cw'#CwO#eOxO,59QOOOP,59Q,59QOOOO'#Cx'#CxO#mOpO,59TO#uO!bO,59TOOOP'#C{'#C{O$TOaO,59RO$[OpO'#CoOOOP,59R,59ROOOQ'#C|'#C|O$dOrO,59^OOO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%yXE]T!PP{WOr%ysv%yw;'S%y;'S;=`&_<%lO%yZEuWaQVP{WOr$nrs%_sv$nw!^$n!^!_%y!_;'S$n;'S;=`&e<%lO$n_FhW[UVP{WOr$nrs%_sv$nw!^$n!^!_%y!_;'S$n;'S;=`&e<%lO$nZGXYVP{WOr$nrs%_sv$nw!^$n!^!_%y!_!`$n!`!aGw!a;'S$n;'S;=`&e<%lO$nZHQW!OQVP{WOr$nrs%_sv$nw!^$n!^!_%y!_;'S$n;'S;=`&e<%lO$nZHqYVP{WOr$nrs%_sv$nw!^$n!^!_%y!_#P$n#P#QIa#Q;'S$n;'S;=`&e<%lO$nZIhYVP{WOr$nrs%_sv$nw!^$n!^!_%y!_!`$n!`!aJW!a;'S$n;'S;=`&e<%lO$nZJaWwQVP{WOr$nrs%_sv$nw!^$n!^!_%y!_;'S$n;'S;=`&e<%lO$n",tokenizers:[$,p,u,m,0,1,2,3],topRules:{Document:[0,6]},tokenPrec:0});var f=O(4859),h=O(8070),v=O(4563);function _(e,t){let O=t&&t.getChild("TagName");return O?e.sliceString(O.from,O.to):""}function T(e,t){let O=t&&t.firstChild;return O&&"OpenTag"==O.name?_(e,O):""}function V(e){for(let t=e&&e.parent;t;t=t.parent)if("Element"==t.name)return t;return null}class P{constructor(e,t,O){this.attrs=t,this.attrValues=O,this.children=[],this.name=e.name,this.completion=Object.assign(Object.assign({type:"type"},e.completion||{}),{label:this.name}),this.openCompletion=Object.assign(Object.assign({},this.completion),{label:"<"+this.name}),this.closeCompletion=Object.assign(Object.assign({},this.completion),{label:"",boost:2}),this.closeNameCompletion=Object.assign(Object.assign({},this.completion),{label:this.name+">"}),this.text=e.textContent?e.textContent.map((e=>({label:e,type:"text"}))):[]}}const b=/^[:\-\.\w\u00b7-\uffff]*$/;function W(e){return Object.assign(Object.assign({type:"property"},e.completion||{}),{label:e.name})}function C(e){return"string"==typeof e?{label:`"${e}"`,type:"constant"}:/^"/.test(e.label)?e:Object.assign(Object.assign({},e),{label:`"${e.label}"`})}function w(e,t){let O=[],n=[],a=Object.create(null);for(let s of t){let e=W(s);O.push(e),s.global&&n.push(e),s.values&&(a[s.name]=s.values.map(C))}let r=[],l=[],o=Object.create(null);for(let s of e){let e=n,t=a;s.attributes&&(e=e.concat(s.attributes.map((e=>"string"==typeof e?O.find((t=>t.label==e))||{label:e,type:"property"}:(e.values&&(t==a&&(t=Object.create(t)),t[e.name]=e.values.map(C)),W(e))))));let i=new P(s,e,t);o[i.name]=i,r.push(i),s.top&&l.push(i)}l.length||(l=r);for(let s=0;s{var t;let{doc:O}=e.state,s=function(e,t){var O;let n=(0,f.mv)(e).resolveInner(t,-1),a=null;for(let r=n;!a&&r.parent;r=r.parent)"OpenTag"!=r.name&&"CloseTag"!=r.name&&"SelfClosingTag"!=r.name&&"MismatchedCloseTag"!=r.name||(a=r);if(a&&(a.to>t||a.lastChild.type.isError)){let e=a.parent;if("TagName"==n.name)return"CloseTag"==a.name||"MismatchedCloseTag"==a.name?{type:"closeTag",from:n.from,context:e}:{type:"openTag",from:n.from,context:V(e)};if("AttributeName"==n.name)return{type:"attrName",from:n.from,context:a};if("AttributeValue"==n.name)return{type:"attrValue",from:n.from,context:a};let O=n==a||"Attribute"==n.name?n.childBefore(t):n;return"StartTag"==(null===O||void 0===O?void 0:O.name)?{type:"openTag",from:t,context:V(e)}:"StartCloseTag"==(null===O||void 0===O?void 0:O.name)&&O.to<=t?{type:"closeTag",from:t,context:e}:"Is"==(null===O||void 0===O?void 0:O.name)?{type:"attrValue",from:t,context:a}:O?{type:"attrName",from:t,context:a}:null}if("StartCloseTag"==n.name)return{type:"closeTag",from:t,context:n.parent};for(;n.parent&&n.to==t&&!(null===(O=n.lastChild)||void 0===O?void 0:O.type.isError);)n=n.parent;return"Element"==n.name||"Text"==n.name||"Document"==n.name?{type:"tag",from:t,context:"Element"==n.name?n:V(n)}:null}(e.state,e.pos);if(!s||"tag"==s.type&&!e.explicit)return null;let{type:i,from:y,context:c}=s;if("openTag"==i){let e=l,t=T(O,c);if(t){let O=o[t];e=(null===O||void 0===O?void 0:O.children)||r}return{from:y,options:e.map((e=>e.completion)),validFor:b}}if("closeTag"==i){let n=T(O,c);return n?{from:y,to:e.pos+(">"==O.sliceString(e.pos,e.pos+1)?1:0),options:[(null===(t=o[n])||void 0===t?void 0:t.closeNameCompletion)||{label:n+">",type:"type"}],validFor:b}:null}if("attrName"==i){let e=o[_(O,c)];return{from:y,options:(null===e||void 0===e?void 0:e.attrs)||n,validFor:b}}if("attrValue"==i){let t=function(e,t,O){let n=t&&t.getChildren("Attribute").find((e=>e.from<=O&&e.to>=O)),a=n&&n.getChild("AttributeName");return a?e.sliceString(a.from,a.to):""}(O,c,y);if(!t)return null;let n=o[_(O,c)],r=((null===n||void 0===n?void 0:n.attrValues)||a)[t];return r&&r.length?{from:y,to:e.pos+('"'==O.sliceString(e.pos,e.pos+1)?1:0),options:r,validFor:/^"[^"]*"?$/}:null}if("tag"==i){let t=T(O,c),n=o[t],a=[],s=c&&c.lastChild;!t||s&&"CloseTag"==s.name&&_(O,s)==t||a.push(n?n.closeCompletion:{label:"",type:"type",boost:2});let i=a.concat(((null===n||void 0===n?void 0:n.children)||(c?r:l)).map((e=>e.openCompletion)));if(c&&(null===n||void 0===n?void 0:n.text.length)){let t=c.firstChild;t.to>e.pos-20&&!/\S/.test(e.state.sliceDoc(t.to,e.pos))&&(i=i.concat(n.text))}return{from:y,options:i,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}return null}}const x=f.bj.define({name:"xml",parser:d.configure({props:[f.Oh.add({Element(e){let t=/^\s*<\//.test(e.textAfter);return e.lineIndent(e.node.from)+(t?0:e.unit)},"OpenTag CloseTag SelfClosingTag":e=>e.column(e.node.from)+e.unit}),f.b_.add({Element(e){let t=e.firstChild,O=e.lastChild;return t&&"OpenTag"==t.name?{from:t.to,to:"CloseTag"==O.name?O.from:e.to}:null}}),f.Q_.add({"OpenTag CloseTag":e=>e.getChild("TagName")})]}),languageData:{commentTokens:{block:{open:"\x3c!--",close:"--\x3e"}},indentOnInput:/^\s*<\/$/}});function Q(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=[x.data.of({autocomplete:w(e.elements||[],e.attributes||[])})];return!1!==e.autoCloseTags&&t.push(A),new f.Yy(x,t)}function X(e,t){let O=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.length;if(!t)return"";let n=t.firstChild,a=n&&n.getChild("TagName");return a?e.sliceString(a.from,Math.min(a.to,O)):""}const A=v.Lz.inputHandler.of(((e,t,O,n,a)=>{if(e.composing||e.state.readOnly||t!=O||">"!=n&&"/"!=n||!x.isActiveAt(e.state,t,-1))return!1;let r=a(),{state:l}=r,o=l.changeByRange((e=>{var t,O,a;let r,{head:o}=e,s=l.doc.sliceString(o-1,o)==n,i=(0,f.mv)(l).resolveInner(o,-1);if(s&&">"==n&&"EndTag"==i.name){let n=i.parent;if("CloseTag"!=(null===(O=null===(t=n.parent)||void 0===t?void 0:t.lastChild)||void 0===O?void 0:O.name)&&(r=X(l.doc,n.parent,o))){return{range:e,changes:{from:o,to:o+(">"===l.doc.sliceString(o,o+1)?1:0),insert:``}}}}else if(s&&"/"==n&&"StartCloseTag"==i.name){let e=i.parent;if(i.from==o-2&&"CloseTag"!=(null===(a=e.lastChild)||void 0===a?void 0:a.name)&&(r=X(l.doc,e,o))){let e=o+(">"===l.doc.sliceString(o,o+1)?1:0),t=`${r}>`;return{range:h.OF.cursor(o+t.length,-1),changes:{from:o,to:e,insert:t}}}}return{range:e}}));return!o.changes.empty&&(e.dispatch([r,l.update(o,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}))}}]); +//# sourceMappingURL=1994.3c3ea84e.chunk.js.map \ No newline at end of file diff --git a/static/js/1994.3c3ea84e.chunk.js.map b/static/js/1994.3c3ea84e.chunk.js.map new file mode 100644 index 0000000..d642258 --- /dev/null +++ b/static/js/1994.3c3ea84e.chunk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"static/js/1994.3c3ea84e.ch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ChB,GAAiI,aAA7C,QAA9EuM,EAA2B,QAArBvE,EAAKnD,EAAI7E,cAA2B,IAAPgI,OAAgB,EAASA,EAAGO,iBAA8B,IAAPgE,OAAgB,EAASA,EAAG5M,QACnHA,EAAO6L,EAAYvD,EAAMrD,IAAKC,EAAI7E,OAAQyM,IAAQ,CAGnD,MAAO,CAAEH,QAAOM,QAAS,CAAE5H,KAAMyH,EAAMxH,GAF9BwH,GAAkD,MAA1CxE,EAAMrD,IAAIG,YAAY0H,EAAMA,EAAO,GAAa,EAAI,GAE1BI,OAD9B,KAAKlN,MAEtB,CACJ,MACK,GAAI+M,GAAmB,KAARrG,GAA6B,iBAAdsG,EAAMhN,KAAyB,CAC9D,IAAIwM,EAAOQ,EAAM3M,OACjB,GAAI2M,EAAM3H,MAAQyH,EAAO,GAA6E,aAA7C,QAAzBD,EAAKL,EAAK5D,iBAA8B,IAAPiE,OAAgB,EAASA,EAAG7M,QACxFA,EAAO6L,EAAYvD,EAAMrD,IAAKuH,EAAMM,IAAQ,CAC7C,IAAIxH,EAAKwH,GAAkD,MAA1CxE,EAAMrD,IAAIG,YAAY0H,EAAMA,EAAO,GAAa,EAAI,GACjEI,EAAS,GAAGlN,KAChB,MAAO,CACH2M,MAAOQ,EAAAA,GAAgBC,OAAON,EAAOI,EAAOzM,QAAS,GACrDwM,QAAS,CAAE5H,KAAMyH,EAAMxH,KAAI4H,UAEnC,CACJ,CACA,MAAO,CAAEP,QAAO,IAEpB,OAAIF,EAAUQ,QAAQI,QAEtBlB,EAAKmB,SAAS,CACVd,EACAlE,EAAMiF,OAAOd,EAAW,CACpBe,UAAW,iBACXC,gBAAgB,OAGjB,EAAI,G","sources":["../../node_modules/@lezer/xml/dist/index.js","../../node_modules/@codemirror/lang-xml/dist/index.js"],"sourcesContent":["import { ContextTracker, ExternalTokenizer, LRParser } from '@lezer/lr';\nimport { styleTags, tags } from '@lezer/highlight';\n\n// This file was generated by lezer-generator. You probably shouldn't edit it.\nconst StartTag = 1,\n StartCloseTag = 2,\n MissingCloseTag = 3,\n mismatchedStartCloseTag = 4,\n incompleteStartCloseTag = 5,\n commentContent$1 = 35,\n piContent$1 = 36,\n cdataContent$1 = 37,\n Element = 11,\n OpenTag = 13;\n\n/* Hand-written tokenizer for XML tag matching. */\n\nfunction nameChar(ch) {\n return ch == 45 || ch == 46 || ch == 58 || ch >= 65 && ch <= 90 || ch == 95 || ch >= 97 && ch <= 122 || ch >= 161\n}\n\nfunction isSpace(ch) {\n return ch == 9 || ch == 10 || ch == 13 || ch == 32\n}\n\nlet cachedName = null, cachedInput = null, cachedPos = 0;\nfunction tagNameAfter(input, offset) {\n let pos = input.pos + offset;\n if (cachedInput == input && cachedPos == pos) return cachedName\n while (isSpace(input.peek(offset))) offset++;\n let name = \"\";\n for (;;) {\n let next = input.peek(offset);\n if (!nameChar(next)) break\n name += String.fromCharCode(next);\n offset++;\n }\n cachedInput = input; cachedPos = pos;\n return cachedName = name || null\n}\n\nfunction ElementContext(name, parent) {\n this.name = name;\n this.parent = parent;\n this.hash = parent ? parent.hash : 0;\n for (let i = 0; i < name.length; i++) this.hash += (this.hash << 4) + name.charCodeAt(i) + (name.charCodeAt(i) << 8);\n}\n\nconst elementContext = new ContextTracker({\n start: null,\n shift(context, term, stack, input) {\n return term == StartTag ? new ElementContext(tagNameAfter(input, 1) || \"\", context) : context\n },\n reduce(context, term) {\n return term == Element && context ? context.parent : context\n },\n reuse(context, node, _stack, input) {\n let type = node.type.id;\n return type == StartTag || type == OpenTag\n ? new ElementContext(tagNameAfter(input, 1) || \"\", context) : context\n },\n hash(context) { return context ? context.hash : 0 },\n strict: false\n});\n\nconst startTag = new ExternalTokenizer((input, stack) => {\n if (input.next != 60 /* '<' */) return\n input.advance();\n if (input.next == 47 /* '/' */) {\n input.advance();\n let name = tagNameAfter(input, 0);\n if (!name) return input.acceptToken(incompleteStartCloseTag)\n if (stack.context && name == stack.context.name) return input.acceptToken(StartCloseTag)\n for (let cx = stack.context; cx; cx = cx.parent) if (cx.name == name) return input.acceptToken(MissingCloseTag, -2)\n input.acceptToken(mismatchedStartCloseTag);\n } else if (input.next != 33 /* '!' */ && input.next != 63 /* '?' */) {\n return input.acceptToken(StartTag)\n }\n}, {contextual: true});\n\nfunction scanTo(type, end) {\n return new ExternalTokenizer(input => {\n let len = 0, first = end.charCodeAt(0);\n scan: for (;; input.advance(), len++) {\n if (input.next < 0) break\n if (input.next == first) {\n for (let i = 1; i < end.length; i++)\n if (input.peek(i) != end.charCodeAt(i)) continue scan\n break\n }\n }\n if (len) input.acceptToken(type);\n })\n}\n\nconst commentContent = scanTo(commentContent$1, \"-->\");\nconst piContent = scanTo(piContent$1, \"?>\");\nconst cdataContent = scanTo(cdataContent$1, \"]]>\");\n\nconst xmlHighlighting = styleTags({\n Text: tags.content,\n \"StartTag StartCloseTag EndTag SelfCloseEndTag\": tags.angleBracket,\n TagName: tags.tagName,\n \"MismatchedCloseTag/TagName\": [tags.tagName, tags.invalid],\n AttributeName: tags.attributeName,\n AttributeValue: tags.attributeValue,\n Is: tags.definitionOperator,\n \"EntityReference CharacterReference\": tags.character,\n Comment: tags.blockComment,\n ProcessingInst: tags.processingInstruction,\n DoctypeDecl: tags.documentMeta,\n Cdata: tags.special(tags.string)\n});\n\n// This file was generated by lezer-generator. You probably shouldn't edit it.\nconst parser = LRParser.deserialize({\n version: 14,\n states: \",SOQOaOOOrOxO'#CfOzOpO'#CiO!tOaO'#CgOOOP'#Cg'#CgO!{OrO'#CrO#TOtO'#CsO#]OpO'#CtOOOP'#DS'#DSOOOP'#Cv'#CvQQOaOOOOOW'#Cw'#CwO#eOxO,59QOOOP,59Q,59QOOOO'#Cx'#CxO#mOpO,59TO#uO!bO,59TOOOP'#C{'#C{O$TOaO,59RO$[OpO'#CoOOOP,59R,59ROOOQ'#C|'#C|O$dOrO,59^OOOP,59^,59^OOOS'#C}'#C}O$lOtO,59_OOOP,59_,59_O$tOpO,59`O$|OpO,59`OOOP-E6t-E6tOOOW-E6u-E6uOOO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=`&e<%lO$n_FhW[UVP{WOr$nrs%_sv$nw!^$n!^!_%y!_;'S$n;'S;=`&e<%lO$nZGXYVP{WOr$nrs%_sv$nw!^$n!^!_%y!_!`$n!`!aGw!a;'S$n;'S;=`&e<%lO$nZHQW!OQVP{WOr$nrs%_sv$nw!^$n!^!_%y!_;'S$n;'S;=`&e<%lO$nZHqYVP{WOr$nrs%_sv$nw!^$n!^!_%y!_#P$n#P#QIa#Q;'S$n;'S;=`&e<%lO$nZIhYVP{WOr$nrs%_sv$nw!^$n!^!_%y!_!`$n!`!aJW!a;'S$n;'S;=`&e<%lO$nZJaWwQVP{WOr$nrs%_sv$nw!^$n!^!_%y!_;'S$n;'S;=`&e<%lO$n\",\n tokenizers: [startTag, commentContent, piContent, cdataContent, 0, 1, 2, 3],\n topRules: {\"Document\":[0,6]},\n tokenPrec: 0\n});\n\nexport { parser };\n","import { parser } from '@lezer/xml';\nimport { syntaxTree, LRLanguage, indentNodeProp, foldNodeProp, bracketMatchingHandle, LanguageSupport } from '@codemirror/language';\nimport { EditorSelection } from '@codemirror/state';\nimport { EditorView } from '@codemirror/view';\n\nfunction tagName(doc, tag) {\n let name = tag && tag.getChild(\"TagName\");\n return name ? doc.sliceString(name.from, name.to) : \"\";\n}\nfunction elementName$1(doc, tree) {\n let tag = tree && tree.firstChild;\n return !tag || tag.name != \"OpenTag\" ? \"\" : tagName(doc, tag);\n}\nfunction attrName(doc, tag, pos) {\n let attr = tag && tag.getChildren(\"Attribute\").find(a => a.from <= pos && a.to >= pos);\n let name = attr && attr.getChild(\"AttributeName\");\n return name ? doc.sliceString(name.from, name.to) : \"\";\n}\nfunction findParentElement(tree) {\n for (let cur = tree && tree.parent; cur; cur = cur.parent)\n if (cur.name == \"Element\")\n return cur;\n return null;\n}\nfunction findLocation(state, pos) {\n var _a;\n let at = syntaxTree(state).resolveInner(pos, -1), inTag = null;\n for (let cur = at; !inTag && cur.parent; cur = cur.parent)\n if (cur.name == \"OpenTag\" || cur.name == \"CloseTag\" || cur.name == \"SelfClosingTag\" || cur.name == \"MismatchedCloseTag\")\n inTag = cur;\n if (inTag && (inTag.to > pos || inTag.lastChild.type.isError)) {\n let elt = inTag.parent;\n if (at.name == \"TagName\")\n return inTag.name == \"CloseTag\" || inTag.name == \"MismatchedCloseTag\"\n ? { type: \"closeTag\", from: at.from, context: elt }\n : { type: \"openTag\", from: at.from, context: findParentElement(elt) };\n if (at.name == \"AttributeName\")\n return { type: \"attrName\", from: at.from, context: inTag };\n if (at.name == \"AttributeValue\")\n return { type: \"attrValue\", from: at.from, context: inTag };\n let before = at == inTag || at.name == \"Attribute\" ? at.childBefore(pos) : at;\n if ((before === null || before === void 0 ? void 0 : before.name) == \"StartTag\")\n return { type: \"openTag\", from: pos, context: findParentElement(elt) };\n if ((before === null || before === void 0 ? void 0 : before.name) == \"StartCloseTag\" && before.to <= pos)\n return { type: \"closeTag\", from: pos, context: elt };\n if ((before === null || before === void 0 ? void 0 : before.name) == \"Is\")\n return { type: \"attrValue\", from: pos, context: inTag };\n if (before)\n return { type: \"attrName\", from: pos, context: inTag };\n return null;\n }\n else if (at.name == \"StartCloseTag\") {\n return { type: \"closeTag\", from: pos, context: at.parent };\n }\n while (at.parent && at.to == pos && !((_a = at.lastChild) === null || _a === void 0 ? void 0 : _a.type.isError))\n at = at.parent;\n if (at.name == \"Element\" || at.name == \"Text\" || at.name == \"Document\")\n return { type: \"tag\", from: pos, context: at.name == \"Element\" ? at : findParentElement(at) };\n return null;\n}\nclass Element {\n constructor(spec, attrs, attrValues) {\n this.attrs = attrs;\n this.attrValues = attrValues;\n this.children = [];\n this.name = spec.name;\n this.completion = Object.assign(Object.assign({ type: \"type\" }, spec.completion || {}), { label: this.name });\n this.openCompletion = Object.assign(Object.assign({}, this.completion), { label: \"<\" + this.name });\n this.closeCompletion = Object.assign(Object.assign({}, this.completion), { label: \"\", boost: 2 });\n this.closeNameCompletion = Object.assign(Object.assign({}, this.completion), { label: this.name + \">\" });\n this.text = spec.textContent ? spec.textContent.map(s => ({ label: s, type: \"text\" })) : [];\n }\n}\nconst Identifier = /^[:\\-\\.\\w\\u00b7-\\uffff]*$/;\nfunction attrCompletion(spec) {\n return Object.assign(Object.assign({ type: \"property\" }, spec.completion || {}), { label: spec.name });\n}\nfunction valueCompletion(spec) {\n return typeof spec == \"string\" ? { label: `\"${spec}\"`, type: \"constant\" }\n : /^\"/.test(spec.label) ? spec\n : Object.assign(Object.assign({}, spec), { label: `\"${spec.label}\"` });\n}\n/**\nCreate a completion source for the given schema.\n*/\nfunction completeFromSchema(eltSpecs, attrSpecs) {\n let allAttrs = [], globalAttrs = [];\n let attrValues = Object.create(null);\n for (let s of attrSpecs) {\n let completion = attrCompletion(s);\n allAttrs.push(completion);\n if (s.global)\n globalAttrs.push(completion);\n if (s.values)\n attrValues[s.name] = s.values.map(valueCompletion);\n }\n let allElements = [], topElements = [];\n let byName = Object.create(null);\n for (let s of eltSpecs) {\n let attrs = globalAttrs, attrVals = attrValues;\n if (s.attributes)\n attrs = attrs.concat(s.attributes.map(s => {\n if (typeof s == \"string\")\n return allAttrs.find(a => a.label == s) || { label: s, type: \"property\" };\n if (s.values) {\n if (attrVals == attrValues)\n attrVals = Object.create(attrVals);\n attrVals[s.name] = s.values.map(valueCompletion);\n }\n return attrCompletion(s);\n }));\n let elt = new Element(s, attrs, attrVals);\n byName[elt.name] = elt;\n allElements.push(elt);\n if (s.top)\n topElements.push(elt);\n }\n if (!topElements.length)\n topElements = allElements;\n for (let i = 0; i < allElements.length; i++) {\n let s = eltSpecs[i], elt = allElements[i];\n if (s.children) {\n for (let ch of s.children)\n if (byName[ch])\n elt.children.push(byName[ch]);\n }\n else {\n elt.children = allElements;\n }\n }\n return cx => {\n var _a;\n let { doc } = cx.state, loc = findLocation(cx.state, cx.pos);\n if (!loc || (loc.type == \"tag\" && !cx.explicit))\n return null;\n let { type, from, context } = loc;\n if (type == \"openTag\") {\n let children = topElements;\n let parentName = elementName$1(doc, context);\n if (parentName) {\n let parent = byName[parentName];\n children = (parent === null || parent === void 0 ? void 0 : parent.children) || allElements;\n }\n return {\n from,\n options: children.map(ch => ch.completion),\n validFor: Identifier\n };\n }\n else if (type == \"closeTag\") {\n let parentName = elementName$1(doc, context);\n return parentName ? {\n from,\n to: cx.pos + (doc.sliceString(cx.pos, cx.pos + 1) == \">\" ? 1 : 0),\n options: [((_a = byName[parentName]) === null || _a === void 0 ? void 0 : _a.closeNameCompletion) || { label: parentName + \">\", type: \"type\" }],\n validFor: Identifier\n } : null;\n }\n else if (type == \"attrName\") {\n let parent = byName[tagName(doc, context)];\n return {\n from,\n options: (parent === null || parent === void 0 ? void 0 : parent.attrs) || globalAttrs,\n validFor: Identifier\n };\n }\n else if (type == \"attrValue\") {\n let attr = attrName(doc, context, from);\n if (!attr)\n return null;\n let parent = byName[tagName(doc, context)];\n let values = ((parent === null || parent === void 0 ? void 0 : parent.attrValues) || attrValues)[attr];\n if (!values || !values.length)\n return null;\n return {\n from,\n to: cx.pos + (doc.sliceString(cx.pos, cx.pos + 1) == '\"' ? 1 : 0),\n options: values,\n validFor: /^\"[^\"]*\"?$/\n };\n }\n else if (type == \"tag\") {\n let parentName = elementName$1(doc, context), parent = byName[parentName];\n let closing = [], last = context && context.lastChild;\n if (parentName && (!last || last.name != \"CloseTag\" || tagName(doc, last) != parentName))\n closing.push(parent ? parent.closeCompletion : { label: \"\", type: \"type\", boost: 2 });\n let options = closing.concat(((parent === null || parent === void 0 ? void 0 : parent.children) || (context ? allElements : topElements)).map(e => e.openCompletion));\n if (context && (parent === null || parent === void 0 ? void 0 : parent.text.length)) {\n let openTag = context.firstChild;\n if (openTag.to > cx.pos - 20 && !/\\S/.test(cx.state.sliceDoc(openTag.to, cx.pos)))\n options = options.concat(parent.text);\n }\n return {\n from,\n options,\n validFor: /^<\\/?[:\\-\\.\\w\\u00b7-\\uffff]*$/\n };\n }\n else {\n return null;\n }\n };\n}\n\n/**\nA language provider based on the [Lezer XML\nparser](https://github.com/lezer-parser/xml), extended with\nhighlighting and indentation information.\n*/\nconst xmlLanguage = /*@__PURE__*/LRLanguage.define({\n name: \"xml\",\n parser: /*@__PURE__*/parser.configure({\n props: [\n /*@__PURE__*/indentNodeProp.add({\n Element(context) {\n let closed = /^\\s*<\\//.test(context.textAfter);\n return context.lineIndent(context.node.from) + (closed ? 0 : context.unit);\n },\n \"OpenTag CloseTag SelfClosingTag\"(context) {\n return context.column(context.node.from) + context.unit;\n }\n }),\n /*@__PURE__*/foldNodeProp.add({\n Element(subtree) {\n let first = subtree.firstChild, last = subtree.lastChild;\n if (!first || first.name != \"OpenTag\")\n return null;\n return { from: first.to, to: last.name == \"CloseTag\" ? last.from : subtree.to };\n }\n }),\n /*@__PURE__*/bracketMatchingHandle.add({\n \"OpenTag CloseTag\": node => node.getChild(\"TagName\")\n })\n ]\n }),\n languageData: {\n commentTokens: { block: { open: \"\" } },\n indentOnInput: /^\\s*<\\/$/\n }\n});\n/**\nXML language support. Includes schema-based autocompletion when\nconfigured.\n*/\nfunction xml(conf = {}) {\n let support = [xmlLanguage.data.of({\n autocomplete: completeFromSchema(conf.elements || [], conf.attributes || [])\n })];\n if (conf.autoCloseTags !== false)\n support.push(autoCloseTags);\n return new LanguageSupport(xmlLanguage, support);\n}\nfunction elementName(doc, tree, max = doc.length) {\n if (!tree)\n return \"\";\n let tag = tree.firstChild;\n let name = tag && tag.getChild(\"TagName\");\n return name ? doc.sliceString(name.from, Math.min(name.to, max)) : \"\";\n}\n/**\nExtension that will automatically insert close tags when a `>` or\n`/` is typed.\n*/\nconst autoCloseTags = /*@__PURE__*/EditorView.inputHandler.of((view, from, to, text, insertTransaction) => {\n if (view.composing || view.state.readOnly || from != to || (text != \">\" && text != \"/\") ||\n !xmlLanguage.isActiveAt(view.state, from, -1))\n return false;\n let base = insertTransaction(), { state } = base;\n let closeTags = state.changeByRange(range => {\n var _a, _b, _c;\n let { head } = range;\n let didType = state.doc.sliceString(head - 1, head) == text;\n let after = syntaxTree(state).resolveInner(head, -1), name;\n if (didType && text == \">\" && after.name == \"EndTag\") {\n let tag = after.parent;\n if (((_b = (_a = tag.parent) === null || _a === void 0 ? void 0 : _a.lastChild) === null || _b === void 0 ? void 0 : _b.name) != \"CloseTag\" &&\n (name = elementName(state.doc, tag.parent, head))) {\n let to = head + (state.doc.sliceString(head, head + 1) === \">\" ? 1 : 0);\n let insert = ``;\n return { range, changes: { from: head, to, insert } };\n }\n }\n else if (didType && text == \"/\" && after.name == \"StartCloseTag\") {\n let base = after.parent;\n if (after.from == head - 2 && ((_c = base.lastChild) === null || _c === void 0 ? void 0 : _c.name) != \"CloseTag\" &&\n (name = elementName(state.doc, base, head))) {\n let to = head + (state.doc.sliceString(head, head + 1) === \">\" ? 1 : 0);\n let insert = `${name}>`;\n return {\n range: EditorSelection.cursor(head + insert.length, -1),\n changes: { from: head, to, insert }\n };\n }\n }\n return { range };\n });\n if (closeTags.changes.empty)\n return false;\n view.dispatch([\n base,\n state.update(closeTags, {\n userEvent: \"input.complete\",\n scrollIntoView: true\n })\n ]);\n return true;\n});\n\nexport { autoCloseTags, completeFromSchema, xml, xmlLanguage };\n"],"names":["nameChar","ch","cachedName","cachedInput","cachedPos","tagNameAfter","input","offset","pos","peek","name","next","String","fromCharCode","ElementContext","parent","this","hash","i","length","charCodeAt","elementContext","ContextTracker","start","shift","context","term","stack","reduce","reuse","node","_stack","type","id","strict","startTag","ExternalTokenizer","advance","acceptToken","cx","contextual","scanTo","end","len","first","scan","commentContent","piContent","cdataContent","xmlHighlighting","styleTags","Text","tags","content","angleBracket","TagName","tagName","invalid","AttributeName","attributeName","AttributeValue","attributeValue","Is","definitionOperator","character","Comment","blockComment","ProcessingInst","processingInstruction","DoctypeDecl","documentMeta","Cdata","special","string","parser","LRParser","deserialize","version","states","stateData","goto","nodeNames","maxTerm","nodeProps","propSources","skippedNodes","repeatNodeCount","tokenData","tokenizers","topRules","tokenPrec","doc","tag","getChild","sliceString","from","to","elementName$1","tree","firstChild","findParentElement","cur","Element","constructor","spec","attrs","attrValues","children","completion","Object","assign","label","openCompletion","closeCompletion","boost","closeNameCompletion","text","textContent","map","s","Identifier","attrCompletion","valueCompletion","test","completeFromSchema","eltSpecs","attrSpecs","allAttrs","globalAttrs","create","push","global","values","allElements","topElements","byName","attrVals","attributes","concat","find","a","elt","top","_a","state","loc","at","syntaxTree","resolveInner","inTag","lastChild","isError","before","childBefore","findLocation","explicit","parentName","options","validFor","attr","getChildren","attrName","closing","last","e","openTag","sliceDoc","xmlLanguage","LRLanguage","define","configure","props","indentNodeProp","add","closed","textAfter","lineIndent","unit","column","foldNodeProp","subtree","bracketMatchingHandle","languageData","commentTokens","block","open","close","indentOnInput","xml","conf","arguments","undefined","support","data","of","autocomplete","elements","autoCloseTags","LanguageSupport","elementName","max","Math","min","EditorView","inputHandler","view","insertTransaction","composing","readOnly","isActiveAt","base","closeTags","changeByRange","range","_b","_c","head","didType","after","changes","insert","EditorSelection","cursor","empty","dispatch","update","userEvent","scrollIntoView"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/1994.6426e479.chunk.js.map b/static/js/1994.6426e479.chunk.js.map deleted file mode 100644 index f88b78b..0000000 --- a/static/js/1994.6426e479.chunk.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"static/js/1994.6426e479.chunk.js","mappings":"mNAiBA,SAASA,EAASC,GAChB,OAAa,IAANA,GAAkB,IAANA,GAAkB,IAANA,GAAYA,GAAM,IAAMA,GAAM,IAAY,IAANA,GAAYA,GAAM,IAAMA,GAAM,KAAOA,GAAM,GAChH,CAMA,IAAIC,EAAa,KAAMC,EAAc,KAAMC,EAAY,EACvD,SAASC,EAAaC,EAAOC,GAC3B,IAAIC,EAAMF,EAAME,IAAMD,EACtB,GAAIJ,GAAeG,GAASF,GAAaI,EAAK,OAAON,EACrD,KAPa,IADED,EAQAK,EAAMG,KAAKF,KAPF,IAANN,GAAkB,IAANA,GAAkB,IAANA,GAONM,IARtC,IAAiBN,EASf,IAAIS,EAAO,GACX,OAAS,CAC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AA6B,iBAAdsG,EAAMhN,KAAyB,CAC9D,IAAIwM,EAAOQ,EAAM3M,OACjB,GAAI2M,EAAM3H,MAAQyH,EAAO,GAA6E,aAA7C,QAAzBD,EAAKL,EAAK5D,iBAA8B,IAAPiE,OAAgB,EAASA,EAAG7M,QACxFA,EAAO6L,EAAYvD,EAAMrD,IAAKuH,EAAMM,IAAQ,CAC7C,IAAIxH,EAAKwH,GAAkD,MAA1CxE,EAAMrD,IAAIG,YAAY0H,EAAMA,EAAO,GAAa,EAAI,GACjEI,EAAS,GAAHjG,OAAMjH,EAAI,KACpB,MAAO,CACH2M,MAAOQ,EAAAA,GAAgBC,OAAON,EAAOI,EAAOzM,QAAS,GACrDwM,QAAS,CAAE5H,KAAMyH,EAAMxH,KAAI4H,UAEnC,CACJ,CACA,MAAO,CAAEP,QAAO,IAEpB,OAAIF,EAAUQ,QAAQI,QAEtBlB,EAAKmB,SAAS,CACVd,EACAlE,EAAMiF,OAAOd,EAAW,CACpBe,UAAW,iBACXC,gBAAgB,OAGjB,EAAI,G","sources":["../../node_modules/@lezer/xml/dist/index.js","../../node_modules/@codemirror/lang-xml/dist/index.js"],"sourcesContent":["import { ContextTracker, ExternalTokenizer, LRParser } from '@lezer/lr';\nimport { styleTags, tags } from '@lezer/highlight';\n\n// This file was generated by lezer-generator. You probably shouldn't edit it.\nconst StartTag = 1,\n StartCloseTag = 2,\n MissingCloseTag = 3,\n mismatchedStartCloseTag = 4,\n incompleteStartCloseTag = 5,\n commentContent$1 = 35,\n piContent$1 = 36,\n cdataContent$1 = 37,\n Element = 11,\n OpenTag = 13;\n\n/* Hand-written tokenizer for XML tag matching. */\n\nfunction nameChar(ch) {\n return ch == 45 || ch == 46 || ch == 58 || ch >= 65 && ch <= 90 || ch == 95 || ch >= 97 && ch <= 122 || ch >= 161\n}\n\nfunction isSpace(ch) {\n return ch == 9 || ch == 10 || ch == 13 || ch == 32\n}\n\nlet cachedName = null, cachedInput = null, cachedPos = 0;\nfunction tagNameAfter(input, offset) {\n let pos = input.pos + offset;\n if (cachedInput == input && cachedPos == pos) return cachedName\n while (isSpace(input.peek(offset))) offset++;\n let name = \"\";\n for (;;) {\n let next = input.peek(offset);\n if (!nameChar(next)) break\n name += String.fromCharCode(next);\n offset++;\n }\n cachedInput = input; cachedPos = pos;\n return cachedName = name || null\n}\n\nfunction ElementContext(name, parent) {\n this.name = name;\n this.parent = parent;\n this.hash = parent ? parent.hash : 0;\n for (let i = 0; i < name.length; i++) this.hash += (this.hash << 4) + name.charCodeAt(i) + (name.charCodeAt(i) << 8);\n}\n\nconst elementContext = new ContextTracker({\n start: null,\n shift(context, term, stack, input) {\n return term == StartTag ? new ElementContext(tagNameAfter(input, 1) || \"\", context) : context\n },\n reduce(context, term) {\n return term == Element && context ? context.parent : context\n },\n reuse(context, node, _stack, input) {\n let type = node.type.id;\n return type == StartTag || type == OpenTag\n ? new ElementContext(tagNameAfter(input, 1) || \"\", context) : context\n },\n hash(context) { return context ? context.hash : 0 },\n strict: false\n});\n\nconst startTag = new ExternalTokenizer((input, stack) => {\n if (input.next != 60 /* '<' */) return\n input.advance();\n if (input.next == 47 /* '/' */) {\n input.advance();\n let name = tagNameAfter(input, 0);\n if (!name) return input.acceptToken(incompleteStartCloseTag)\n if (stack.context && name == stack.context.name) return input.acceptToken(StartCloseTag)\n for (let cx = stack.context; cx; cx = cx.parent) if (cx.name == name) return input.acceptToken(MissingCloseTag, -2)\n input.acceptToken(mismatchedStartCloseTag);\n } else if (input.next != 33 /* '!' */ && input.next != 63 /* '?' */) {\n return input.acceptToken(StartTag)\n }\n}, {contextual: true});\n\nfunction scanTo(type, end) {\n return new ExternalTokenizer(input => {\n let len = 0, first = end.charCodeAt(0);\n scan: for (;; input.advance(), len++) {\n if (input.next < 0) break\n if (input.next == first) {\n for (let i = 1; i < end.length; i++)\n if (input.peek(i) != end.charCodeAt(i)) continue scan\n break\n }\n }\n if (len) input.acceptToken(type);\n })\n}\n\nconst commentContent = scanTo(commentContent$1, \"-->\");\nconst piContent = scanTo(piContent$1, \"?>\");\nconst cdataContent = scanTo(cdataContent$1, \"]]>\");\n\nconst xmlHighlighting = styleTags({\n Text: tags.content,\n \"StartTag StartCloseTag EndTag SelfCloseEndTag\": tags.angleBracket,\n TagName: tags.tagName,\n \"MismatchedCloseTag/TagName\": [tags.tagName, tags.invalid],\n AttributeName: tags.attributeName,\n AttributeValue: tags.attributeValue,\n Is: tags.definitionOperator,\n \"EntityReference CharacterReference\": tags.character,\n Comment: tags.blockComment,\n ProcessingInst: tags.processingInstruction,\n DoctypeDecl: tags.documentMeta,\n Cdata: tags.special(tags.string)\n});\n\n// This file was generated by lezer-generator. You probably shouldn't edit it.\nconst parser = LRParser.deserialize({\n version: 14,\n states: \",SOQOaOOOrOxO'#CfOzOpO'#CiO!tOaO'#CgOOOP'#Cg'#CgO!{OrO'#CrO#TOtO'#CsO#]OpO'#CtOOOP'#DS'#DSOOOP'#Cv'#CvQQOaOOOOOW'#Cw'#CwO#eOxO,59QOOOP,59Q,59QOOOO'#Cx'#CxO#mOpO,59TO#uO!bO,59TOOOP'#C{'#C{O$TOaO,59RO$[OpO'#CoOOOP,59R,59ROOOQ'#C|'#C|O$dOrO,59^OOOP,59^,59^OOOS'#C}'#C}O$lOtO,59_OOOP,59_,59_O$tOpO,59`O$|OpO,59`OOOP-E6t-E6tOOOW-E6u-E6uOOOP1G.l1G.lOOOO-E6v-E6vO%UO!bO1G.oO%UO!bO1G.oO%dOpO'#CkO%lO!bO'#CyO%zO!bO1G.oOOOP1G.o1G.oOOOP1G.w1G.wOOOP-E6y-E6yOOOP1G.m1G.mO&VOpO,59ZO&_OpO,59ZOOOQ-E6z-E6zOOOP1G.x1G.xOOOS-E6{-E6{OOOP1G.y1G.yO&gOpO1G.zO&gOpO1G.zOOOP1G.z1G.zO&oO!bO7+$ZO&}O!bO7+$ZOOOP7+$Z7+$ZOOOP7+$c7+$cO'YOpO,59VO'bOpO,59VO'jO!bO,59eOOOO-E6w-E6wO'xOpO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{WOr$nrs%_sv$nw!^$n!^!_%y!_;'S$n;'S;=`&e<%lO$n\",\n tokenizers: [startTag, commentContent, piContent, cdataContent, 0, 1, 2, 3],\n topRules: {\"Document\":[0,6]},\n tokenPrec: 0\n});\n\nexport { parser };\n","import { parser } from '@lezer/xml';\nimport { syntaxTree, LRLanguage, indentNodeProp, foldNodeProp, bracketMatchingHandle, LanguageSupport } from '@codemirror/language';\nimport { EditorSelection } from '@codemirror/state';\nimport { EditorView } from '@codemirror/view';\n\nfunction tagName(doc, tag) {\n let name = tag && tag.getChild(\"TagName\");\n return name ? doc.sliceString(name.from, name.to) : \"\";\n}\nfunction elementName$1(doc, tree) {\n let tag = tree && tree.firstChild;\n return !tag || tag.name != \"OpenTag\" ? \"\" : tagName(doc, tag);\n}\nfunction attrName(doc, tag, pos) {\n let attr = tag && tag.getChildren(\"Attribute\").find(a => a.from <= pos && a.to >= pos);\n let name = attr && attr.getChild(\"AttributeName\");\n return name ? doc.sliceString(name.from, name.to) : \"\";\n}\nfunction findParentElement(tree) {\n for (let cur = tree && tree.parent; cur; cur = cur.parent)\n if (cur.name == \"Element\")\n return cur;\n return null;\n}\nfunction findLocation(state, pos) {\n var _a;\n let at = syntaxTree(state).resolveInner(pos, -1), inTag = null;\n for (let cur = at; !inTag && cur.parent; cur = cur.parent)\n if (cur.name == \"OpenTag\" || cur.name == \"CloseTag\" || cur.name == \"SelfClosingTag\" || cur.name == \"MismatchedCloseTag\")\n inTag = cur;\n if (inTag && (inTag.to > pos || inTag.lastChild.type.isError)) {\n let elt = inTag.parent;\n if (at.name == \"TagName\")\n return inTag.name == \"CloseTag\" || inTag.name == \"MismatchedCloseTag\"\n ? { type: \"closeTag\", from: at.from, context: elt }\n : { type: \"openTag\", from: at.from, context: findParentElement(elt) };\n if (at.name == \"AttributeName\")\n return { type: \"attrName\", from: at.from, context: inTag };\n if (at.name == \"AttributeValue\")\n return { type: \"attrValue\", from: at.from, context: inTag };\n let before = at == inTag || at.name == \"Attribute\" ? at.childBefore(pos) : at;\n if ((before === null || before === void 0 ? void 0 : before.name) == \"StartTag\")\n return { type: \"openTag\", from: pos, context: findParentElement(elt) };\n if ((before === null || before === void 0 ? void 0 : before.name) == \"StartCloseTag\" && before.to <= pos)\n return { type: \"closeTag\", from: pos, context: elt };\n if ((before === null || before === void 0 ? void 0 : before.name) == \"Is\")\n return { type: \"attrValue\", from: pos, context: inTag };\n if (before)\n return { type: \"attrName\", from: pos, context: inTag };\n return null;\n }\n else if (at.name == \"StartCloseTag\") {\n return { type: \"closeTag\", from: pos, context: at.parent };\n }\n while (at.parent && at.to == pos && !((_a = at.lastChild) === null || _a === void 0 ? void 0 : _a.type.isError))\n at = at.parent;\n if (at.name == \"Element\" || at.name == \"Text\" || at.name == \"Document\")\n return { type: \"tag\", from: pos, context: at.name == \"Element\" ? at : findParentElement(at) };\n return null;\n}\nclass Element {\n constructor(spec, attrs, attrValues) {\n this.attrs = attrs;\n this.attrValues = attrValues;\n this.children = [];\n this.name = spec.name;\n this.completion = Object.assign(Object.assign({ type: \"type\" }, spec.completion || {}), { label: this.name });\n this.openCompletion = Object.assign(Object.assign({}, this.completion), { label: \"<\" + this.name });\n this.closeCompletion = Object.assign(Object.assign({}, this.completion), { label: \"\", boost: 2 });\n this.closeNameCompletion = Object.assign(Object.assign({}, this.completion), { label: this.name + \">\" });\n this.text = spec.textContent ? spec.textContent.map(s => ({ label: s, type: \"text\" })) : [];\n }\n}\nconst Identifier = /^[:\\-\\.\\w\\u00b7-\\uffff]*$/;\nfunction attrCompletion(spec) {\n return Object.assign(Object.assign({ type: \"property\" }, spec.completion || {}), { label: spec.name });\n}\nfunction valueCompletion(spec) {\n return typeof spec == \"string\" ? { label: `\"${spec}\"`, type: \"constant\" }\n : /^\"/.test(spec.label) ? spec\n : Object.assign(Object.assign({}, spec), { label: `\"${spec.label}\"` });\n}\n/**\nCreate a completion source for the given schema.\n*/\nfunction completeFromSchema(eltSpecs, attrSpecs) {\n let allAttrs = [], globalAttrs = [];\n let attrValues = Object.create(null);\n for (let s of attrSpecs) {\n let completion = attrCompletion(s);\n allAttrs.push(completion);\n if (s.global)\n globalAttrs.push(completion);\n if (s.values)\n attrValues[s.name] = s.values.map(valueCompletion);\n }\n let allElements = [], topElements = [];\n let byName = Object.create(null);\n for (let s of eltSpecs) {\n let attrs = globalAttrs, attrVals = attrValues;\n if (s.attributes)\n attrs = attrs.concat(s.attributes.map(s => {\n if (typeof s == \"string\")\n return allAttrs.find(a => a.label == s) || { label: s, type: \"property\" };\n if (s.values) {\n if (attrVals == attrValues)\n attrVals = Object.create(attrVals);\n attrVals[s.name] = s.values.map(valueCompletion);\n }\n return attrCompletion(s);\n }));\n let elt = new Element(s, attrs, attrVals);\n byName[elt.name] = elt;\n allElements.push(elt);\n if (s.top)\n topElements.push(elt);\n }\n if (!topElements.length)\n topElements = allElements;\n for (let i = 0; i < allElements.length; i++) {\n let s = eltSpecs[i], elt = allElements[i];\n if (s.children) {\n for (let ch of s.children)\n if (byName[ch])\n elt.children.push(byName[ch]);\n }\n else {\n elt.children = allElements;\n }\n }\n return cx => {\n var _a;\n let { doc } = cx.state, loc = findLocation(cx.state, cx.pos);\n if (!loc || (loc.type == \"tag\" && !cx.explicit))\n return null;\n let { type, from, context } = loc;\n if (type == \"openTag\") {\n let children = topElements;\n let parentName = elementName$1(doc, context);\n if (parentName) {\n let parent = byName[parentName];\n children = (parent === null || parent === void 0 ? void 0 : parent.children) || allElements;\n }\n return {\n from,\n options: children.map(ch => ch.completion),\n validFor: Identifier\n };\n }\n else if (type == \"closeTag\") {\n let parentName = elementName$1(doc, context);\n return parentName ? {\n from,\n to: cx.pos + (doc.sliceString(cx.pos, cx.pos + 1) == \">\" ? 1 : 0),\n options: [((_a = byName[parentName]) === null || _a === void 0 ? void 0 : _a.closeNameCompletion) || { label: parentName + \">\", type: \"type\" }],\n validFor: Identifier\n } : null;\n }\n else if (type == \"attrName\") {\n let parent = byName[tagName(doc, context)];\n return {\n from,\n options: (parent === null || parent === void 0 ? void 0 : parent.attrs) || globalAttrs,\n validFor: Identifier\n };\n }\n else if (type == \"attrValue\") {\n let attr = attrName(doc, context, from);\n if (!attr)\n return null;\n let parent = byName[tagName(doc, context)];\n let values = ((parent === null || parent === void 0 ? void 0 : parent.attrValues) || attrValues)[attr];\n if (!values || !values.length)\n return null;\n return {\n from,\n to: cx.pos + (doc.sliceString(cx.pos, cx.pos + 1) == '\"' ? 1 : 0),\n options: values,\n validFor: /^\"[^\"]*\"?$/\n };\n }\n else if (type == \"tag\") {\n let parentName = elementName$1(doc, context), parent = byName[parentName];\n let closing = [], last = context && context.lastChild;\n if (parentName && (!last || last.name != \"CloseTag\" || tagName(doc, last) != parentName))\n closing.push(parent ? parent.closeCompletion : { label: \"\", type: \"type\", boost: 2 });\n let options = closing.concat(((parent === null || parent === void 0 ? void 0 : parent.children) || (context ? allElements : topElements)).map(e => e.openCompletion));\n if (context && (parent === null || parent === void 0 ? void 0 : parent.text.length)) {\n let openTag = context.firstChild;\n if (openTag.to > cx.pos - 20 && !/\\S/.test(cx.state.sliceDoc(openTag.to, cx.pos)))\n options = options.concat(parent.text);\n }\n return {\n from,\n options,\n validFor: /^<\\/?[:\\-\\.\\w\\u00b7-\\uffff]*$/\n };\n }\n else {\n return null;\n }\n };\n}\n\n/**\nA language provider based on the [Lezer XML\nparser](https://github.com/lezer-parser/xml), extended with\nhighlighting and indentation information.\n*/\nconst xmlLanguage = /*@__PURE__*/LRLanguage.define({\n name: \"xml\",\n parser: /*@__PURE__*/parser.configure({\n props: [\n /*@__PURE__*/indentNodeProp.add({\n Element(context) {\n let closed = /^\\s*<\\//.test(context.textAfter);\n return context.lineIndent(context.node.from) + (closed ? 0 : context.unit);\n },\n \"OpenTag CloseTag SelfClosingTag\"(context) {\n return context.column(context.node.from) + context.unit;\n }\n }),\n /*@__PURE__*/foldNodeProp.add({\n Element(subtree) {\n let first = subtree.firstChild, last = subtree.lastChild;\n if (!first || first.name != \"OpenTag\")\n return null;\n return { from: first.to, to: last.name == \"CloseTag\" ? last.from : subtree.to };\n }\n }),\n /*@__PURE__*/bracketMatchingHandle.add({\n \"OpenTag CloseTag\": node => node.getChild(\"TagName\")\n })\n ]\n }),\n languageData: {\n commentTokens: { block: { open: \"\" } },\n indentOnInput: /^\\s*<\\/$/\n }\n});\n/**\nXML language support. Includes schema-based autocompletion when\nconfigured.\n*/\nfunction xml(conf = {}) {\n let support = [xmlLanguage.data.of({\n autocomplete: completeFromSchema(conf.elements || [], conf.attributes || [])\n })];\n if (conf.autoCloseTags !== false)\n support.push(autoCloseTags);\n return new LanguageSupport(xmlLanguage, support);\n}\nfunction elementName(doc, tree, max = doc.length) {\n if (!tree)\n return \"\";\n let tag = tree.firstChild;\n let name = tag && tag.getChild(\"TagName\");\n return name ? doc.sliceString(name.from, Math.min(name.to, max)) : \"\";\n}\n/**\nExtension that will automatically insert close tags when a `>` or\n`/` is typed.\n*/\nconst autoCloseTags = /*@__PURE__*/EditorView.inputHandler.of((view, from, to, text, insertTransaction) => {\n if (view.composing || view.state.readOnly || from != to || (text != \">\" && text != \"/\") ||\n !xmlLanguage.isActiveAt(view.state, from, -1))\n return false;\n let base = insertTransaction(), { state } = base;\n let closeTags = state.changeByRange(range => {\n var _a, _b, _c;\n let { head } = range;\n let didType = state.doc.sliceString(head - 1, head) == text;\n let after = syntaxTree(state).resolveInner(head, -1), name;\n if (didType && text == \">\" && after.name == \"EndTag\") {\n let tag = after.parent;\n if (((_b = (_a = tag.parent) === null || _a === void 0 ? void 0 : _a.lastChild) === null || _b === void 0 ? void 0 : _b.name) != \"CloseTag\" &&\n (name = elementName(state.doc, tag.parent, head))) {\n let to = head + (state.doc.sliceString(head, head + 1) === \">\" ? 1 : 0);\n let insert = ``;\n return { range, changes: { from: head, to, insert } };\n }\n }\n else if (didType && text == \"/\" && after.name == \"StartCloseTag\") {\n let base = after.parent;\n if (after.from == head - 2 && ((_c = base.lastChild) === null || _c === void 0 ? void 0 : _c.name) != \"CloseTag\" &&\n (name = elementName(state.doc, base, head))) {\n let to = head + (state.doc.sliceString(head, head + 1) === \">\" ? 1 : 0);\n let insert = `${name}>`;\n return {\n range: EditorSelection.cursor(head + insert.length, -1),\n changes: { from: head, to, insert }\n };\n }\n }\n return { range };\n });\n if (closeTags.changes.empty)\n return false;\n view.dispatch([\n base,\n state.update(closeTags, {\n userEvent: \"input.complete\",\n scrollIntoView: true\n })\n ]);\n return true;\n});\n\nexport { autoCloseTags, completeFromSchema, xml, xmlLanguage };\n"],"names":["nameChar","ch","cachedName","cachedInput","cachedPos","tagNameAfter","input","offset","pos","peek","name","next","String","fromCharCode","ElementContext","parent","this","hash","i","length","charCodeAt","elementContext","ContextTracker","start","shift","context","term","stack","reduce","reuse","node","_stack","type","id","strict","startTag","ExternalTokenizer","advance","acceptToken","cx","contextual","scanTo","end","len","first","scan","commentContent","piContent","cdataContent","xmlHighlighting","styleTags","Text","tags","content","angleBracket","TagName","tagName","invalid","AttributeName","attributeName","AttributeValue","attributeValue","Is","definitionOperator","character","Comment","blockComment","ProcessingInst","processingInstruction","DoctypeDecl","documentMeta","Cdata","special","string","parser","LRParser","deserialize","version","states","stateData","goto","nodeNames","maxTerm","nodeProps","propSources","skippedNodes","repeatNodeCount","tokenData","tokenizers","topRules","tokenPrec","doc","tag","getChild","sliceString","from","to","elementName$1","tree","firstChild","findParentElement","cur","Element","constructor","spec","attrs","attrValues","children","completion","Object","assign","label","openCompletion","closeCompletion","boost","closeNameCompletion","text","textContent","map","s","Identifier","attrCompletion","valueCompletion","concat","test","completeFromSchema","eltSpecs","attrSpecs","allAttrs","globalAttrs","create","push","global","values","allElements","topElements","byName","attrVals","attributes","find","a","elt","top","_a","state","loc","at","syntaxTree","resolveInner","inTag","lastChild","isError","before","childBefore","findLocation","explicit","parentName","options","validFor","attr","getChildren","attrName","closing","last","e","openTag","sliceDoc","xmlLanguage","LRLanguage","define","configure","props","indentNodeProp","add","closed","textAfter","lineIndent","unit","column","foldNodeProp","subtree","bracketMatchingHandle","languageData","commentTokens","block","open","close","indentOnInput","xml","conf","arguments","undefined","support","data","of","autocomplete","elements","autoCloseTags","LanguageSupport","elementName","max","Math","min","EditorView","inputHandler","view","insertTransaction","composing","readOnly","isActiveAt","base","closeTags","changeByRange","range","_b","_c","head","didType","after","changes","insert","EditorSelection","cursor","empty","dispatch","update","userEvent","scrollIntoView"],"sourceRoot":""} \ No newline at end of file diff --git a/static/js/main.3dcb095c.js b/static/js/main.3dcb095c.js new file mode 100644 index 0000000..fe01d0c --- /dev/null +++ b/static/js/main.3dcb095c.js @@ -0,0 +1,342 @@ +/*! For license information please see main.3dcb095c.js.LICENSE.txt */ +(()=>{var e={5054:(e,t,n)=>{"use strict";var r={};n.r(r),n.d(r,{attentionMarkers:()=>Wd,contentInitial:()=>zd,disable:()=>qd,document:()=>Bd,flow:()=>jd,flowInitial:()=>Zd,insideSpan:()=>Hd,string:()=>Ud,text:()=>Xd});var i={};n.r(i),n.d(i,{safe:()=>nk,spec:()=>tk});var o={};n.r(o),n.d(o,{angle:()=>ix,decibel:()=>cx,flex:()=>lx,frequency:()=>sx,length:()=>rx,resolution:()=>ax,semitones:()=>ux,time:()=>ox});var s={};n.r(s),n.d(s,{getTrace:()=>PS,isKeyword:()=>DS,isProperty:()=>RS,isType:()=>_S});var a={};n.r(a),n.d(a,{generate:()=>uw,name:()=>aw,parse:()=>cw,structure:()=>lw});var l={};n.r(l),n.d(l,{generate:()=>Ow,name:()=>fw,parse:()=>gw,structure:()=>mw,walkContext:()=>pw});var c={};n.r(c),n.d(c,{generate:()=>xw,name:()=>bw,parse:()=>kw,structure:()=>vw,walkContext:()=>yw});var u={};n.r(u),n.d(u,{generate:()=>Qw,name:()=>Rw,parse:()=>Nw,structure:()=>Dw});var h={};n.r(h),n.d(h,{generate:()=>Uw,name:()=>Bw,parse:()=>jw,structure:()=>Zw,walkContext:()=>zw});var d={};n.r(d),n.d(d,{generate:()=>qw,name:()=>Xw,parse:()=>Ww,structure:()=>Hw});var f={};n.r(f),n.d(f,{generate:()=>Kw,name:()=>Yw,parse:()=>Vw,structure:()=>Gw});var p={};n.r(p),n.d(p,{generate:()=>nT,name:()=>Jw,parse:()=>tT,structure:()=>eT});var m={};n.r(m),n.d(m,{generate:()=>aT,name:()=>iT,parse:()=>sT,structure:()=>oT});var g={};n.r(g),n.d(g,{generate:()=>mT,name:()=>dT,parse:()=>pT,structure:()=>fT});var O={};n.r(O),n.d(O,{generate:()=>kT,name:()=>bT,parse:()=>vT,structure:()=>yT});var b={};n.r(b),n.d(b,{generate:()=>$T,name:()=>DT,parse:()=>MT,structure:()=>QT,walkContext:()=>NT});var y={};n.r(y),n.d(y,{generate:()=>UT,name:()=>zT,parse:()=>jT,structure:()=>ZT});var v={};n.r(v),n.d(v,{generate:()=>qT,name:()=>XT,parse:()=>WT,structure:()=>HT});var k={};n.r(k),n.d(k,{generate:()=>JT,name:()=>YT,parse:()=>KT,structure:()=>VT,walkContext:()=>GT});var x={};n.r(x),n.d(x,{generate:()=>iA,name:()=>tA,parse:()=>rA,structure:()=>nA,xxx:()=>eA});var S={};n.r(S),n.d(S,{generate:()=>lA,name:()=>oA,parse:()=>aA,structure:()=>sA});var w={};n.r(w),n.d(w,{generate:()=>dA,name:()=>cA,parse:()=>hA,structure:()=>uA});var T={};n.r(T),n.d(T,{generate:()=>gA,name:()=>fA,parse:()=>mA,structure:()=>pA});var A={};n.r(A),n.d(A,{generate:()=>vA,name:()=>OA,parse:()=>yA,structure:()=>bA});var E={};n.r(E),n.d(E,{generate:()=>wA,name:()=>kA,parse:()=>SA,structure:()=>xA});var C={};n.r(C),n.d(C,{generate:()=>PA,name:()=>AA,parse:()=>CA,structure:()=>EA});var P={};n.r(P),n.d(P,{generate:()=>NA,name:()=>_A,parse:()=>DA,structure:()=>RA});var _={};n.r(_),n.d(_,{generate:()=>LA,name:()=>QA,parse:()=>$A,structure:()=>MA});var R={};n.r(R),n.d(R,{generate:()=>zA,name:()=>IA,parse:()=>BA,structure:()=>FA});var D={};n.r(D),n.d(D,{generate:()=>XA,name:()=>ZA,parse:()=>UA,structure:()=>jA});var N={};n.r(N),n.d(N,{generate:()=>YA,name:()=>HA,parse:()=>qA,structure:()=>WA});var Q={};n.r(Q),n.d(Q,{generate:()=>eE,name:()=>GA,parse:()=>JA,structure:()=>KA,walkContext:()=>VA});var M={};n.r(M),n.d(M,{generate:()=>oE,name:()=>tE,parse:()=>iE,structure:()=>rE,walkContext:()=>nE});var $={};n.r($),n.d($,{generate:()=>dE,name:()=>cE,parse:()=>hE,structure:()=>uE});var L={};n.r(L),n.d(L,{generate:()=>OE,name:()=>pE,parse:()=>gE,structure:()=>mE});var I={};n.r(I),n.d(I,{generate:()=>wE,name:()=>vE,parse:()=>SE,structure:()=>xE,walkContext:()=>kE});var F={};n.r(F),n.d(F,{generate:()=>CE,name:()=>TE,parse:()=>EE,structure:()=>AE});var B={};n.r(B),n.d(B,{generate:()=>NE,name:()=>PE,parse:()=>DE,structure:()=>RE,walkContext:()=>_E});var z={};n.r(z),n.d(z,{generate:()=>zE,name:()=>IE,parse:()=>BE,structure:()=>FE});var Z={};n.r(Z),n.d(Z,{generate:()=>qE,name:()=>UE,parse:()=>WE,structure:()=>HE,walkContext:()=>XE});var j={};n.r(j),n.d(j,{generate:()=>tC,name:()=>KE,parse:()=>eC,structure:()=>JE});var U={};n.r(U),n.d(U,{generate:()=>dC,name:()=>cC,parse:()=>hC,structure:()=>uC});var X={};n.r(X),n.d(X,{generate:()=>xC,name:()=>yC,parse:()=>kC,structure:()=>vC});var H={};n.r(H),n.d(H,{generate:()=>AC,name:()=>SC,parse:()=>TC,structure:()=>wC});var W={};n.r(W),n.d(W,{generate:()=>RC,name:()=>CC,parse:()=>_C,structure:()=>PC});var q={};n.r(q),n.d(q,{AnPlusB:()=>a,Atrule:()=>l,AtrulePrelude:()=>c,AttributeSelector:()=>u,Block:()=>h,Brackets:()=>d,CDC:()=>f,CDO:()=>p,ClassSelector:()=>m,Combinator:()=>g,Comment:()=>O,Declaration:()=>b,DeclarationList:()=>y,Dimension:()=>v,Function:()=>k,Hash:()=>x,IdSelector:()=>w,Identifier:()=>S,MediaFeature:()=>T,MediaQuery:()=>A,MediaQueryList:()=>E,NestingSelector:()=>C,Nth:()=>P,Number:()=>_,Operator:()=>R,Parentheses:()=>D,Percentage:()=>N,PseudoClassSelector:()=>Q,PseudoElementSelector:()=>M,Ratio:()=>$,Raw:()=>L,Rule:()=>I,Selector:()=>F,SelectorList:()=>B,String:()=>z,StyleSheet:()=>Z,TypeSelector:()=>j,UnicodeRange:()=>U,Url:()=>X,Value:()=>H,WhiteSpace:()=>W});var Y={};n.r(Y),n.d(Y,{AtrulePrelude:()=>QC,Selector:()=>MC,Value:()=>LC});var G={};n.r(G),n.d(G,{AnPlusB:()=>cw,Atrule:()=>gw,AtrulePrelude:()=>kw,AttributeSelector:()=>Nw,Block:()=>jw,Brackets:()=>Ww,CDC:()=>Vw,CDO:()=>tT,ClassSelector:()=>sT,Combinator:()=>pT,Comment:()=>vT,Declaration:()=>MT,DeclarationList:()=>jT,Dimension:()=>WT,Function:()=>KT,Hash:()=>rA,IdSelector:()=>hA,Identifier:()=>aA,MediaFeature:()=>mA,MediaQuery:()=>yA,MediaQueryList:()=>SA,NestingSelector:()=>CA,Nth:()=>DA,Number:()=>$A,Operator:()=>BA,Parentheses:()=>UA,Percentage:()=>qA,PseudoClassSelector:()=>JA,PseudoElementSelector:()=>iE,Ratio:()=>hE,Raw:()=>gE,Rule:()=>SE,Selector:()=>EE,SelectorList:()=>DE,String:()=>BE,StyleSheet:()=>WE,TypeSelector:()=>eC,UnicodeRange:()=>hC,Url:()=>kC,Value:()=>TC,WhiteSpace:()=>_C});var V,K=n(905),J=n.t(K,2),ee=n(8721),te=n(4824),ne=n.t(te,2);function re(){return re=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function he(e,t,n,r){void 0===r&&(r={});let{window:i=document.defaultView,v5Compat:o=!1}=r,s=i.history,a=V.Pop,l=null,c=u();function u(){return(s.state||{idx:null}).idx}function h(){a=V.Pop;let e=u(),t=null==e?null:e-c;c=e,l&&l({action:a,location:f.location,delta:t})}function d(e){let t="null"!==i.location.origin?i.location.origin:i.location.href,n="string"===typeof e?e:ce(e);return n=n.replace(/ $/,"%20"),oe(t,"No window.location.(origin|href) available to create URL for href: "+n),new URL(n,t)}null==c&&(c=0,s.replaceState(re({},s.state,{idx:c}),""));let f={get action(){return a},get location(){return e(i,s)},listen(e){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(ie,h),l=e,()=>{i.removeEventListener(ie,h),l=null}},createHref:e=>t(i,e),createURL:d,encodeLocation(e){let t=d(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){a=V.Push;let r=le(f.location,e,t);n&&n(r,e),c=u()+1;let h=ae(r,c),d=f.createHref(r);try{s.pushState(h,"",d)}catch(p){if(p instanceof DOMException&&"DataCloneError"===p.name)throw p;i.location.assign(d)}o&&l&&l({action:a,location:f.location,delta:1})},replace:function(e,t){a=V.Replace;let r=le(f.location,e,t);n&&n(r,e),c=u();let i=ae(r,c),h=f.createHref(r);s.replaceState(i,"",h),o&&l&&l({action:a,location:f.location,delta:0})},go:e=>s.go(e)};return f}var de;!function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"}(de||(de={}));new Set(["lazy","caseSensitive","path","id","index","children"]);function fe(e,t,n){return void 0===n&&(n="/"),pe(e,t,n,!1)}function pe(e,t,n,r){let i=Ce(("string"===typeof t?ue(t):t).pathname||"/",n);if(null==i)return null;let o=me(e);!function(e){e.sort(((e,t)=>e.score!==t.score?t.score-e.score:function(e,t){let n=e.length===t.length&&e.slice(0,-1).every(((e,n)=>e===t[n]));return n?e[e.length-1]-t[t.length-1]:0}(e.routesMeta.map((e=>e.childrenIndex)),t.routesMeta.map((e=>e.childrenIndex)))))}(o);let s=null;for(let a=0;null==s&&a{let s={relativePath:void 0===o?e.path||"":o,caseSensitive:!0===e.caseSensitive,childrenIndex:i,route:e};s.relativePath.startsWith("/")&&(oe(s.relativePath.startsWith(r),'Absolute route path "'+s.relativePath+'" nested under path "'+r+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),s.relativePath=s.relativePath.slice(r.length));let a=Ne([r,s.relativePath]),l=n.concat(s);e.children&&e.children.length>0&&(oe(!0!==e.index,'Index routes must not have child routes. Please remove all child routes from route path "'+a+'".'),me(e.children,t,l,a)),(null!=e.path||e.index)&&t.push({path:a,score:we(a,e.index),routesMeta:l})};return e.forEach(((e,t)=>{var n;if(""!==e.path&&null!=(n=e.path)&&n.includes("?"))for(let r of ge(e.path))i(e,t,r);else i(e,t)})),t}function ge(e){let t=e.split("/");if(0===t.length)return[];let[n,...r]=t,i=n.endsWith("?"),o=n.replace(/\?$/,"");if(0===r.length)return i?[o,""]:[o];let s=ge(r.join("/")),a=[];return a.push(...s.map((e=>""===e?o:[o,e].join("/")))),i&&a.push(...s),a.map((t=>e.startsWith("/")&&""===t?"/":t))}const Oe=/^:[\w-]+$/,be=3,ye=2,ve=1,ke=10,xe=-2,Se=e=>"*"===e;function we(e,t){let n=e.split("/"),r=n.length;return n.some(Se)&&(r+=xe),t&&(r+=ye),n.filter((e=>!Se(e))).reduce(((e,t)=>e+(Oe.test(t)?be:""===t?ve:ke)),r)}function Te(e,t,n){void 0===n&&(n=!1);let{routesMeta:r}=e,i={},o="/",s=[];for(let a=0;a(r.push({paramName:t,isOptional:null!=n}),n?"/?([^\\/]+)?":"/([^\\/]+)")));e.endsWith("*")?(r.push({paramName:"*"}),i+="*"===e||"/*"===e?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":""!==e&&"/"!==e&&(i+="(?:(?=\\/|$))");let o=new RegExp(i,t?void 0:"i");return[o,r]}(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let o=i[0],s=o.replace(/(.)\/+$/,"$1"),a=i.slice(1),l=r.reduce(((e,t,n)=>{let{paramName:r,isOptional:i}=t;if("*"===r){let e=a[n]||"";s=o.slice(0,o.length-e.length).replace(/(.)\/+$/,"$1")}const l=a[n];return e[r]=i&&!l?void 0:(l||"").replace(/%2F/g,"/"),e}),{});return{params:l,pathname:o,pathnameBase:s,pattern:e}}function Ee(e){try{return e.split("/").map((e=>decodeURIComponent(e).replace(/\//g,"%2F"))).join("/")}catch(t){return se(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function Ce(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&"/"!==r?null:e.slice(n)||"/"}function Pe(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified `to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the `to."+n+'` field. Alternatively you may provide the full path as a string in and the router will parse it for you.'}function _e(e){return e.filter(((e,t)=>0===t||e.route.path&&e.route.path.length>0))}function Re(e,t){let n=_e(e);return t?n.map(((e,t)=>t===n.length-1?e.pathname:e.pathnameBase)):n.map((e=>e.pathnameBase))}function De(e,t,n,r){let i;void 0===r&&(r=!1),"string"===typeof e?i=ue(e):(i=re({},e),oe(!i.pathname||!i.pathname.includes("?"),Pe("?","pathname","search",i)),oe(!i.pathname||!i.pathname.includes("#"),Pe("#","pathname","hash",i)),oe(!i.search||!i.search.includes("#"),Pe("#","search","hash",i)));let o,s=""===e||""===i.pathname,a=s?"/":i.pathname;if(null==a)o=n;else{let e=t.length-1;if(!r&&a.startsWith("..")){let t=a.split("/");for(;".."===t[0];)t.shift(),e-=1;i.pathname=t.join("/")}o=e>=0?t[e]:"/"}let l=function(e,t){void 0===t&&(t="/");let{pathname:n,search:r="",hash:i=""}="string"===typeof e?ue(e):e,o=n?n.startsWith("/")?n:function(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach((e=>{".."===e?n.length>1&&n.pop():"."!==e&&n.push(e)})),n.length>1?n.join("/"):"/"}(n,t):t;return{pathname:o,search:Me(r),hash:$e(i)}}(i,o),c=a&&"/"!==a&&a.endsWith("/"),u=(s||"."===a)&&n.endsWith("/");return l.pathname.endsWith("/")||!c&&!u||(l.pathname+="/"),l}const Ne=e=>e.join("/").replace(/\/\/+/g,"/"),Qe=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Me=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",$e=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"";Error;function Le(e){return null!=e&&"number"===typeof e.status&&"string"===typeof e.statusText&&"boolean"===typeof e.internal&&"data"in e}const Ie=["post","put","patch","delete"],Fe=(new Set(Ie),["get",...Ie]);new Set(Fe),new Set([301,302,303,307,308]),new Set([307,308]);Symbol("deferred");function Be(){return Be=Object.assign?Object.assign.bind():function(e){for(var t=1;t{n.current=!0}));let r=K.useCallback((function(r,i){void 0===i&&(i={}),n.current&&("number"===typeof r?e.navigate(r):e.navigate(r,Be({fromRouteId:t},i)))}),[e,t]);return r}():function(){We()||oe(!1);let e=K.useContext(ze),{basename:t,future:n,navigator:r}=K.useContext(je),{matches:i}=K.useContext(Xe),{pathname:o}=qe(),s=JSON.stringify(Re(i,n.v7_relativeSplatPath)),a=K.useRef(!1);Ye((()=>{a.current=!0}));let l=K.useCallback((function(n,i){if(void 0===i&&(i={}),!a.current)return;if("number"===typeof n)return void r.go(n);let l=De(n,JSON.parse(s),o,"path"===i.relative);null==e&&"/"!==t&&(l.pathname="/"===l.pathname?t:Ne([t,l.pathname])),(i.replace?r.replace:r.push)(l,i.state,i)}),[t,r,s,o,e]);return l}()}const Ve=K.createContext(null);function Ke(e,t){let{relative:n}=void 0===t?{}:t,{future:r}=K.useContext(je),{matches:i}=K.useContext(Xe),{pathname:o}=qe(),s=JSON.stringify(Re(i,r.v7_relativeSplatPath));return K.useMemo((()=>De(e,JSON.parse(s),o,"path"===n)),[e,s,o,n])}function Je(e,t,n,r){We()||oe(!1);let{navigator:i}=K.useContext(je),{matches:o}=K.useContext(Xe),s=o[o.length-1],a=s?s.params:{},l=(s&&s.pathname,s?s.pathnameBase:"/");s&&s.route;let c,u=qe();if(t){var h;let e="string"===typeof t?ue(t):t;"/"===l||(null==(h=e.pathname)?void 0:h.startsWith(l))||oe(!1),c=e}else c=u;let d=c.pathname||"/",f=d;if("/"!==l){let e=l.replace(/^\//,"").split("/");f="/"+d.replace(/^\//,"").split("/").slice(e.length).join("/")}let p=fe(e,{pathname:f});let m=it(p&&p.map((e=>Object.assign({},e,{params:Object.assign({},a,e.params),pathname:Ne([l,i.encodeLocation?i.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?l:Ne([l,i.encodeLocation?i.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])}))),o,n,r);return t&&m?K.createElement(Ue.Provider,{value:{location:Be({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:V.Pop}},m):m}function et(){let e=function(){var e;let t=K.useContext(He),n=lt(st.UseRouteError),r=ct(st.UseRouteError);if(void 0!==t)return t;return null==(e=n.errors)?void 0:e[r]}(),t=Le(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",i={padding:"0.5rem",backgroundColor:r};return K.createElement(K.Fragment,null,K.createElement("h2",null,"Unexpected Application Error!"),K.createElement("h3",{style:{fontStyle:"italic"}},t),n?K.createElement("pre",{style:i},n):null,null)}const tt=K.createElement(et,null);class nt extends K.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return void 0!==this.state.error?K.createElement(Xe.Provider,{value:this.props.routeContext},K.createElement(He.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function rt(e){let{routeContext:t,match:n,children:r}=e,i=K.useContext(ze);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),K.createElement(Xe.Provider,{value:t},r)}function it(e,t,n,r){var i;if(void 0===t&&(t=[]),void 0===n&&(n=null),void 0===r&&(r=null),null==e){var o;if(!n)return null;if(n.errors)e=n.matches;else{if(!(null!=(o=r)&&o.v7_partialHydration&&0===t.length&&!n.initialized&&n.matches.length>0))return null;e=n.matches}}let s=e,a=null==(i=n)?void 0:i.errors;if(null!=a){let e=s.findIndex((e=>e.route.id&&void 0!==(null==a?void 0:a[e.route.id])));e>=0||oe(!1),s=s.slice(0,Math.min(s.length,e+1))}let l=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let u=0;u=0?s.slice(0,c+1):[s[0]];break}}}return s.reduceRight(((e,r,i)=>{let o,u=!1,h=null,d=null;n&&(o=a&&r.route.id?a[r.route.id]:void 0,h=r.route.errorElement||tt,l&&(c<0&&0===i?(!function(e,t){t||ut[e]||(ut[e]=!0)}("route-fallback",!1),u=!0,d=null):c===i&&(u=!0,d=r.route.hydrateFallbackElement||null)));let f=t.concat(s.slice(0,i+1)),p=()=>{let t;return t=o?h:u?d:r.route.Component?K.createElement(r.route.Component,null):r.route.element?r.route.element:e,K.createElement(rt,{match:r,routeContext:{outlet:e,matches:f,isDataRoute:null!=n},children:t})};return n&&(r.route.ErrorBoundary||r.route.errorElement||0===i)?K.createElement(nt,{location:n.location,revalidation:n.revalidation,component:h,error:o,children:p(),routeContext:{outlet:null,matches:f,isDataRoute:!0}}):p()}),null)}var ot=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(ot||{}),st=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(st||{});function at(e){let t=K.useContext(ze);return t||oe(!1),t}function lt(e){let t=K.useContext(Ze);return t||oe(!1),t}function ct(e){let t=function(){let e=K.useContext(Xe);return e||oe(!1),e}(),n=t.matches[t.matches.length-1];return n.route.id||oe(!1),n.route.id}const ut={};J.startTransition;function ht(e){return function(e){let t=K.useContext(Xe).outlet;return t?K.createElement(Ve.Provider,{value:e},t):t}(e.context)}function dt(e){oe(!1)}function ft(e){let{basename:t="/",children:n=null,location:r,navigationType:i=V.Pop,navigator:o,static:s=!1,future:a}=e;We()&&oe(!1);let l=t.replace(/^\/*/,"/"),c=K.useMemo((()=>({basename:l,navigator:o,static:s,future:Be({v7_relativeSplatPath:!1},a)})),[l,a,o,s]);"string"===typeof r&&(r=ue(r));let{pathname:u="/",search:h="",hash:d="",state:f=null,key:p="default"}=r,m=K.useMemo((()=>{let e=Ce(u,l);return null==e?null:{location:{pathname:e,search:h,hash:d,state:f,key:p},navigationType:i}}),[l,u,h,d,f,p,i]);return null==m?null:K.createElement(je.Provider,{value:c},K.createElement(Ue.Provider,{children:n,value:m}))}function pt(e){let{children:t,location:n}=e;return Je(mt(t),n)}new Promise((()=>{}));K.Component;function mt(e,t){void 0===t&&(t=[]);let n=[];return K.Children.forEach(e,((e,r)=>{if(!K.isValidElement(e))return;let i=[...t,r];if(e.type===K.Fragment)return void n.push.apply(n,mt(e.props.children,i));e.type!==dt&&oe(!1),e.props.index&&e.props.children&&oe(!1);let o={id:e.props.id||i.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(o.children=mt(e.props.children,i)),n.push(o)})),n}function gt(){return gt=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}function bt(e){return void 0===e&&(e=""),new URLSearchParams("string"===typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce(((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map((e=>[n,e])):[[n,r]])}),[]))}new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);const yt=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],vt=["aria-current","caseSensitive","className","end","style","to","unstable_viewTransition","children"];try{window.__reactRouterVersion="6"}catch(j_){}const kt=K.createContext({isTransitioning:!1});new Map;const xt=J.startTransition;ne.flushSync,J.useId;function St(e){let{basename:t,children:n,future:r,window:i}=e,o=K.useRef();var s;null==o.current&&(o.current=(void 0===(s={window:i,v5Compat:!0})&&(s={}),he((function(e,t){let{pathname:n="/",search:r="",hash:i=""}=ue(e.location.hash.substr(1));return n.startsWith("/")||n.startsWith(".")||(n="/"+n),le("",{pathname:n,search:r,hash:i},t.state&&t.state.usr||null,t.state&&t.state.key||"default")}),(function(e,t){let n=e.document.querySelector("base"),r="";if(n&&n.getAttribute("href")){let t=e.location.href,n=t.indexOf("#");r=-1===n?t:t.slice(0,n)}return r+"#"+("string"===typeof t?t:ce(t))}),(function(e,t){se("/"===e.pathname.charAt(0),"relative pathnames are not supported in hash history.push("+JSON.stringify(t)+")")}),s)));let a=o.current,[l,c]=K.useState({action:a.action,location:a.location}),{v7_startTransition:u}=r||{},h=K.useCallback((e=>{u&&xt?xt((()=>c(e))):c(e)}),[c,u]);return K.useLayoutEffect((()=>a.listen(h)),[a,h]),K.createElement(ft,{basename:t,children:n,location:l.location,navigationType:l.action,navigator:a,future:r})}const wt="undefined"!==typeof window&&"undefined"!==typeof window.document&&"undefined"!==typeof window.document.createElement,Tt=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,At=K.forwardRef((function(e,t){let n,{onClick:r,relative:i,reloadDocument:o,replace:s,state:a,target:l,to:c,preventScrollReset:u,unstable_viewTransition:h}=e,d=Ot(e,yt),{basename:f}=K.useContext(je),p=!1;if("string"===typeof c&&Tt.test(c)&&(n=c,wt))try{let e=new URL(window.location.href),t=c.startsWith("//")?new URL(e.protocol+c):new URL(c),n=Ce(t.pathname,f);t.origin===e.origin&&null!=n?c=n+t.search+t.hash:p=!0}catch(j_){}let m=function(e,t){let{relative:n}=void 0===t?{}:t;We()||oe(!1);let{basename:r,navigator:i}=K.useContext(je),{hash:o,pathname:s,search:a}=Ke(e,{relative:n}),l=s;return"/"!==r&&(l="/"===s?r:Ne([r,s])),i.createHref({pathname:l,search:a,hash:o})}(c,{relative:i}),g=function(e,t){let{target:n,replace:r,state:i,preventScrollReset:o,relative:s,unstable_viewTransition:a}=void 0===t?{}:t,l=Ge(),c=qe(),u=Ke(e,{relative:s});return K.useCallback((t=>{if(function(e,t){return 0===e.button&&(!t||"_self"===t)&&!function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)}(t,n)){t.preventDefault();let n=void 0!==r?r:ce(c)===ce(u);l(e,{replace:n,state:i,preventScrollReset:o,relative:s,unstable_viewTransition:a})}}),[c,l,u,r,i,n,e,o,s,a])}(c,{replace:s,state:a,target:l,preventScrollReset:u,relative:i,unstable_viewTransition:h});return K.createElement("a",gt({},d,{href:n||m,onClick:p||o?r:function(e){r&&r(e),e.defaultPrevented||g(e)},ref:t,target:l}))}));const Et=K.forwardRef((function(e,t){let{"aria-current":n="page",caseSensitive:r=!1,className:i="",end:o=!1,style:s,to:a,unstable_viewTransition:l,children:c}=e,u=Ot(e,vt),h=Ke(a,{relative:u.relative}),d=qe(),f=K.useContext(Ze),{navigator:p,basename:m}=K.useContext(je),g=null!=f&&function(e,t){void 0===t&&(t={});let n=K.useContext(kt);null==n&&oe(!1);let{basename:r}=_t(Ct.useViewTransitionState),i=Ke(e,{relative:t.relative});if(!n.isTransitioning)return!1;let o=Ce(n.currentLocation.pathname,r)||n.currentLocation.pathname,s=Ce(n.nextLocation.pathname,r)||n.nextLocation.pathname;return null!=Ae(i.pathname,s)||null!=Ae(i.pathname,o)}(h)&&!0===l,O=p.encodeLocation?p.encodeLocation(h).pathname:h.pathname,b=d.pathname,y=f&&f.navigation&&f.navigation.location?f.navigation.location.pathname:null;r||(b=b.toLowerCase(),y=y?y.toLowerCase():null,O=O.toLowerCase()),y&&m&&(y=Ce(y,m)||y);const v="/"!==O&&O.endsWith("/")?O.length-1:O.length;let k,x=b===O||!o&&b.startsWith(O)&&"/"===b.charAt(v),S=null!=y&&(y===O||!o&&y.startsWith(O)&&"/"===y.charAt(O.length)),w={isActive:x,isPending:S,isTransitioning:g},T=x?n:void 0;k="function"===typeof i?i(w):[i,x?"active":null,S?"pending":null,g?"transitioning":null].filter(Boolean).join(" ");let A="function"===typeof s?s(w):s;return K.createElement(At,gt({},u,{"aria-current":T,className:k,ref:t,style:A,to:a,unstable_viewTransition:l}),"function"===typeof c?c(w):c)}));var Ct,Pt;function _t(e){let t=K.useContext(ze);return t||oe(!1),t}function Rt(e){let t=K.useRef(bt(e)),n=K.useRef(!1),r=qe(),i=K.useMemo((()=>function(e,t){let n=bt(e);return t&&t.forEach(((e,r)=>{n.has(r)||t.getAll(r).forEach((e=>{n.append(r,e)}))})),n}(r.search,n.current?null:t.current)),[r.search]),o=Ge(),s=K.useCallback(((e,t)=>{const r=bt("function"===typeof e?e(i):e);n.current=!0,o("?"+r,t)}),[o,i]);return[i,s]}(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Ct||(Ct={})),function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"}(Pt||(Pt={}));function Dt(){return Dt=Object.assign?Object.assign.bind():function(e){for(var t=1;to/2),[o]),m=(0,K.useMemo)((()=>o/2-s/2),[o,s]),g=(0,K.useMemo)((()=>Math.PI*m*2),[m]),[O,b]=(0,K.useState)(g||0),y=e=>{var{clientHeight:t,scrollHeight:n,scrollTop:o}=r||Bt;b(g-g*(o/(n-t))||0),h.current&&i>0&&(h.current.style.opacity=o>i?"1":"0")};(0,K.useEffect)((()=>{var e=r===Bt?document:r;return e&&e.addEventListener("scroll",y,{passive:!0}),()=>{e&&e.removeEventListener("scroll",y)}}),[r]);return(0,Qt.jsxs)("div",Dt({className:d,ref:h},u,{onClick:e=>{r.scrollTo({top:0,behavior:a?"smooth":"auto"})},style:f,children:[!l&&(0,Qt.jsxs)("svg",{viewBox:"0 0 "+o+" "+o,width:o,height:o,focusable:"false",style:Lt,children:[(0,Qt.jsx)("circle",{fill:"rgb(0 0 0 / 75%)",stroke:"rgb(200 200 200 / 85%)",strokeWidth:s,r:m,cx:p,cy:p}),(0,Qt.jsx)("circle",{fill:"none",stroke:"rgb(0 0 0 / 50%)",strokeWidth:s,r:m,cx:p,cy:p,strokeDasharray:g,strokeDashoffset:O||0,style:It})]}),c&&(0,Qt.jsx)("div",{style:Ft,children:c})]}))}let Zt={data:""},jt=e=>"object"==typeof window?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||Zt,Ut=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,Xt=/\/\*[^]*?\*\/| +/g,Ht=/\n+/g,Wt=(e,t)=>{let n="",r="",i="";for(let o in e){let s=e[o];"@"==o[0]?"i"==o[1]?n=o+" "+s+";":r+="f"==o[1]?Wt(s,o):o+"{"+Wt(s,"k"==o[1]?"":t)+"}":"object"==typeof s?r+=Wt(s,t?t.replace(/([^,])+/g,(e=>o.replace(/(^:.*)|([^,])+/g,(t=>/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t)))):o):null!=s&&(o=/^--/.test(o)?o:o.replace(/[A-Z]/g,"-$&").toLowerCase(),i+=Wt.p?Wt.p(o,s):o+":"+s+";")}return n+(t&&i?t+"{"+i+"}":i)+r},qt={},Yt=e=>{if("object"==typeof e){let t="";for(let n in e)t+=n+Yt(e[n]);return t}return e},Gt=(e,t,n,r,i)=>{let o=Yt(e),s=qt[o]||(qt[o]=(e=>{let t=0,n=11;for(;t>>0;return"go"+n})(o));if(!qt[s]){let t=o!==e?e:(e=>{let t,n,r=[{}];for(;t=Ut.exec(e.replace(Xt,""));)t[4]?r.shift():t[3]?(n=t[3].replace(Ht," ").trim(),r.unshift(r[0][n]=r[0][n]||{})):r[0][t[1]]=t[2].replace(Ht," ").trim();return r[0]})(e);qt[s]=Wt(i?{["@keyframes "+s]:t}:t,n?"":"."+s)}let a=n&&qt.g?qt.g:null;return n&&(qt.g=qt[s]),((e,t,n,r)=>{r?t.data=t.data.replace(r,e):-1===t.data.indexOf(e)&&(t.data=n?e+t.data:t.data+e)})(qt[s],t,r,a),s},Vt=(e,t,n)=>e.reduce(((e,r,i)=>{let o=t[i];if(o&&o.call){let e=o(n),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;o=t?"."+t:e&&"object"==typeof e?e.props?"":Wt(e,""):!1===e?"":e}return e+r+(null==o?"":o)}),"");function Kt(e){let t=this||{},n=e.call?e(t.p):e;return Gt(n.unshift?n.raw?Vt(n,[].slice.call(arguments,1),t.p):n.reduce(((e,n)=>Object.assign(e,n&&n.call?n(t.p):n)),{}):n,jt(t.target),t.g,t.o,t.k)}Kt.bind({g:1});let Jt,en,tn,nn=Kt.bind({k:1});function rn(e,t){let n=this||{};return function(){let r=arguments;function i(o,s){let a=Object.assign({},o),l=a.className||i.className;n.p=Object.assign({theme:en&&en()},a),n.o=/ *go\d+/.test(l),a.className=Kt.apply(n,r)+(l?" "+l:""),t&&(a.ref=s);let c=e;return e[0]&&(c=a.as||e,delete a.as),tn&&c[0]&&tn(a),Jt(c,a)}return t?t(i):i}}var on=(e,t)=>(e=>"function"==typeof e)(e)?e(t):e,sn=(()=>{let e=0;return()=>(++e).toString()})(),an=(()=>{let e;return()=>{if(void 0===e&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),ln=new Map,cn=e=>{if(ln.has(e))return;let t=setTimeout((()=>{ln.delete(e),fn({type:4,toastId:e})}),1e3);ln.set(e,t)},un=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,20)};case 1:return t.toast.id&&(e=>{let t=ln.get(e);t&&clearTimeout(t)})(t.toast.id),{...e,toasts:e.toasts.map((e=>e.id===t.toast.id?{...e,...t.toast}:e))};case 2:let{toast:n}=t;return e.toasts.find((e=>e.id===n.id))?un(e,{type:1,toast:n}):un(e,{type:0,toast:n});case 3:let{toastId:r}=t;return r?cn(r):e.toasts.forEach((e=>{cn(e.id)})),{...e,toasts:e.toasts.map((e=>e.id===r||void 0===r?{...e,visible:!1}:e))};case 4:return void 0===t.toastId?{...e,toasts:[]}:{...e,toasts:e.toasts.filter((e=>e.id!==t.toastId))};case 5:return{...e,pausedAt:t.time};case 6:let i=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map((e=>({...e,pauseDuration:e.pauseDuration+i})))}}},hn=[],dn={toasts:[],pausedAt:void 0},fn=e=>{dn=un(dn,e),hn.forEach((e=>{e(dn)}))},pn={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},mn=e=>(t,n)=>{let r=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"blank",n=arguments.length>2?arguments[2]:void 0;return{createdAt:Date.now(),visible:!0,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...n,id:(null==n?void 0:n.id)||sn()}}(t,e,n);return fn({type:2,toast:r}),r.id},gn=(e,t)=>mn("blank")(e,t);gn.error=mn("error"),gn.success=mn("success"),gn.loading=mn("loading"),gn.custom=mn("custom"),gn.dismiss=e=>{fn({type:3,toastId:e})},gn.remove=e=>fn({type:4,toastId:e}),gn.promise=(e,t,n)=>{let r=gn.loading(t.loading,{...n,...null==n?void 0:n.loading});return e.then((e=>(gn.success(on(t.success,e),{id:r,...n,...null==n?void 0:n.success}),e))).catch((e=>{gn.error(on(t.error,e),{id:r,...n,...null==n?void 0:n.error})})),e};var On=(e,t)=>{fn({type:1,toast:{id:e,height:t}})},bn=()=>{fn({type:5,time:Date.now()})},yn=e=>{let{toasts:t,pausedAt:n}=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},[t,n]=(0,K.useState)(dn);(0,K.useEffect)((()=>(hn.push(n),()=>{let e=hn.indexOf(n);e>-1&&hn.splice(e,1)})),[t]);let r=t.toasts.map((t=>{var n,r;return{...e,...e[t.type],...t,duration:t.duration||(null==(n=e[t.type])?void 0:n.duration)||(null==e?void 0:e.duration)||pn[t.type],style:{...e.style,...null==(r=e[t.type])?void 0:r.style,...t.style}}}));return{...t,toasts:r}}(e);(0,K.useEffect)((()=>{if(n)return;let e=Date.now(),r=t.map((t=>{if(t.duration===1/0)return;let n=(t.duration||0)+t.pauseDuration-(e-t.createdAt);if(!(n<0))return setTimeout((()=>gn.dismiss(t.id)),n);t.visible&&gn.dismiss(t.id)}));return()=>{r.forEach((e=>e&&clearTimeout(e)))}}),[t,n]);let r=(0,K.useCallback)((()=>{n&&fn({type:6,time:Date.now()})}),[n]),i=(0,K.useCallback)(((e,n)=>{let{reverseOrder:r=!1,gutter:i=8,defaultPosition:o}=n||{},s=t.filter((t=>(t.position||o)===(e.position||o)&&t.height)),a=s.findIndex((t=>t.id===e.id)),l=s.filter(((e,t)=>te.visible)).slice(...r?[l+1]:[0,l]).reduce(((e,t)=>e+(t.height||0)+i),0)}),[t]);return{toasts:t,handlers:{updateHeight:On,startPause:bn,endPause:r,calculateOffset:i}}},vn=nn` +from { + transform: scale(0) rotate(45deg); + opacity: 0; +} +to { + transform: scale(1) rotate(45deg); + opacity: 1; +}`,kn=nn` +from { + transform: scale(0); + opacity: 0; +} +to { + transform: scale(1); + opacity: 1; +}`,xn=nn` +from { + transform: scale(0) rotate(90deg); + opacity: 0; +} +to { + transform: scale(1) rotate(90deg); + opacity: 1; +}`,Sn=rn("div")` + width: 20px; + opacity: 0; + height: 20px; + border-radius: 10px; + background: ${e=>e.primary||"#ff4b4b"}; + position: relative; + transform: rotate(45deg); + + animation: ${vn} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) + forwards; + animation-delay: 100ms; + + &:after, + &:before { + content: ''; + animation: ${kn} 0.15s ease-out forwards; + animation-delay: 150ms; + position: absolute; + border-radius: 3px; + opacity: 0; + background: ${e=>e.secondary||"#fff"}; + bottom: 9px; + left: 4px; + height: 2px; + width: 12px; + } + + &:before { + animation: ${xn} 0.15s ease-out forwards; + animation-delay: 180ms; + transform: rotate(90deg); + } +`,wn=nn` + from { + transform: rotate(0deg); + } + to { + transform: rotate(360deg); + } +`,Tn=rn("div")` + width: 12px; + height: 12px; + box-sizing: border-box; + border: 2px solid; + border-radius: 100%; + border-color: ${e=>e.secondary||"#e0e0e0"}; + border-right-color: ${e=>e.primary||"#616161"}; + animation: ${wn} 1s linear infinite; +`,An=nn` +from { + transform: scale(0) rotate(45deg); + opacity: 0; +} +to { + transform: scale(1) rotate(45deg); + opacity: 1; +}`,En=nn` +0% { + height: 0; + width: 0; + opacity: 0; +} +40% { + height: 0; + width: 6px; + opacity: 1; +} +100% { + opacity: 1; + height: 10px; +}`,Cn=rn("div")` + width: 20px; + opacity: 0; + height: 20px; + border-radius: 10px; + background: ${e=>e.primary||"#61d345"}; + position: relative; + transform: rotate(45deg); + + animation: ${An} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) + forwards; + animation-delay: 100ms; + &:after { + content: ''; + box-sizing: border-box; + animation: ${En} 0.2s ease-out forwards; + opacity: 0; + animation-delay: 200ms; + position: absolute; + border-right: 2px solid; + border-bottom: 2px solid; + border-color: ${e=>e.secondary||"#fff"}; + bottom: 6px; + left: 6px; + height: 10px; + width: 6px; + } +`,Pn=rn("div")` + position: absolute; +`,_n=rn("div")` + position: relative; + display: flex; + justify-content: center; + align-items: center; + min-width: 20px; + min-height: 20px; +`,Rn=nn` +from { + transform: scale(0.6); + opacity: 0.4; +} +to { + transform: scale(1); + opacity: 1; +}`,Dn=rn("div")` + position: relative; + transform: scale(0.6); + opacity: 0.4; + min-width: 20px; + animation: ${Rn} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275) + forwards; +`,Nn=e=>{let{toast:t}=e,{icon:n,type:r,iconTheme:i}=t;return void 0!==n?"string"==typeof n?K.createElement(Dn,null,n):n:"blank"===r?null:K.createElement(_n,null,K.createElement(Tn,{...i}),"loading"!==r&&K.createElement(Pn,null,"error"===r?K.createElement(Sn,{...i}):K.createElement(Cn,{...i})))},Qn=e=>`\n0% {transform: translate3d(0,${-200*e}%,0) scale(.6); opacity:.5;}\n100% {transform: translate3d(0,0,0) scale(1); opacity:1;}\n`,Mn=e=>`\n0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}\n100% {transform: translate3d(0,${-150*e}%,-1px) scale(.6); opacity:0;}\n`,$n=rn("div")` + display: flex; + align-items: center; + background: #fff; + color: #363636; + line-height: 1.3; + will-change: transform; + box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05); + max-width: 350px; + pointer-events: auto; + padding: 8px 10px; + border-radius: 8px; +`,Ln=rn("div")` + display: flex; + justify-content: center; + margin: 4px 10px; + color: inherit; + flex: 1 1 auto; + white-space: pre-line; +`,In=K.memo((e=>{let{toast:t,position:n,style:r,children:i}=e,o=t.height?((e,t)=>{let n=e.includes("top")?1:-1,[r,i]=an()?["0%{opacity:0;} 100%{opacity:1;}","0%{opacity:1;} 100%{opacity:0;}"]:[Qn(n),Mn(n)];return{animation:t?`${nn(r)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${nn(i)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}})(t.position||n||"top-center",t.visible):{opacity:0},s=K.createElement(Nn,{toast:t}),a=K.createElement(Ln,{...t.ariaProps},on(t.message,t));return K.createElement($n,{className:t.className,style:{...o,...r,...t.style}},"function"==typeof i?i({icon:s,message:a}):K.createElement(K.Fragment,null,s,a))}));!function(e,t,n,r){Wt.p=t,Jt=e,en=n,tn=r}(K.createElement);var Fn=e=>{let{id:t,className:n,style:r,onHeightUpdate:i,children:o}=e,s=K.useCallback((e=>{if(e){let n=()=>{let n=e.getBoundingClientRect().height;i(t,n)};n(),new MutationObserver(n).observe(e,{subtree:!0,childList:!0,characterData:!0})}}),[t,i]);return K.createElement("div",{ref:s,className:n,style:r},o)},Bn=Kt` + z-index: 9999; + > * { + pointer-events: auto; + } +`,zn=e=>{let{reverseOrder:t,position:n="top-center",toastOptions:r,gutter:i,children:o,containerStyle:s,containerClassName:a}=e,{toasts:l,handlers:c}=yn(r);return K.createElement("div",{style:{position:"fixed",zIndex:9999,top:16,left:16,right:16,bottom:16,pointerEvents:"none",...s},className:a,onMouseEnter:c.startPause,onMouseLeave:c.endPause},l.map((e=>{let r=e.position||n,s=((e,t)=>{let n=e.includes("top"),r=n?{top:0}:{bottom:0},i=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:an()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(n?1:-1)}px)`,...r,...i}})(r,c.calculateOffset(e,{reverseOrder:t,gutter:i,defaultPosition:n}));return K.createElement(Fn,{id:e.id,key:e.id,onHeightUpdate:c.updateHeight,className:e.visible?Bn:"",style:s},"custom"===e.type?on(e.message,e):o?o(e):K.createElement(In,{toast:e,position:r}))})))},Zn=gn;var jn=function(){return jn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0?cr(vr,--br):0,gr--,10===yr&&(gr=1,mr--),yr}function Tr(){return yr=br2||Pr(yr)>3?"":" "}function Qr(e,t){for(;--t&&Tr()&&!(yr<48||yr>102||yr>57&&yr<65||yr>70&&yr<97););return Cr(e,Er()+(t<6&&32==Ar()&&32==Tr()))}function Mr(e){for(;Tr();)switch(yr){case e:return br;case 34:case 39:34!==e&&39!==e&&Mr(yr);break;case 40:41===e&&Mr(e);break;case 92:Tr()}return br}function $r(e,t){for(;Tr()&&e+yr!==57&&(e+yr!==84||47!==Ar()););return"/*"+Cr(t,br-1)+"*"+rr(47===e?e:Tr())}function Lr(e){for(;!Pr(Ar());)Tr();return Cr(e,br)}function Ir(e,t){for(var n="",r=0;r6)switch(cr(e,t+1)){case 109:if(45!==cr(e,t+4))break;case 102:return ar(e,/(.+:)(.+)-([^]+)/,"$1"+Yn+"$2-$3$1"+qn+(108==cr(e,t+3)?"$3":"$2-$3"))+e;case 115:return~lr(e,"stretch",0)?Br(ar(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return ar(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(t,n,r,i,o,s,a){return Wn+n+":"+r+a+(i?Wn+n+"-span:"+(o?s:+s-+r)+a:"")+e}));case 4949:if(121===cr(e,t+6))return ar(e,":",":"+Yn)+e;break;case 6444:switch(cr(e,45===cr(e,14)?18:11)){case 120:return ar(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+Yn+(45===cr(e,14)?"inline-":"")+"box$3$1"+Yn+"$2$3$1"+Wn+"$2box$3")+e;case 100:return ar(e,":",":"+Wn)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return ar(e,"scroll-","scroll-snap-")+e}return e}function zr(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Kn:return void(e.return=Br(e.value,e.length,n));case er:return Ir([xr(e,{value:ar(e.value,"@","@"+Yn)})],r);case Vn:if(e.length)return function(e,t){return e.map(t).join("")}(n=e.props,(function(t){switch(sr(t,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Sr(xr(e,{props:[ar(t,/:(read-\w+)/,":"+qn+"$1")]})),Sr(xr(e,{props:[t]})),ir(e,{props:pr(n,r)});break;case"::placeholder":Sr(xr(e,{props:[ar(t,/:(plac\w+)/,":"+Yn+"input-$1")]})),Sr(xr(e,{props:[ar(t,/:(plac\w+)/,":"+qn+"$1")]})),Sr(xr(e,{props:[ar(t,/:(plac\w+)/,Wn+"input-$1")]})),Sr(xr(e,{props:[t]})),ir(e,{props:pr(n,r)})}return""}))}}function Zr(e){return Rr(jr("",null,null,null,[""],e=_r(e),0,[0],e))}function jr(e,t,n,r,i,o,s,a,l){for(var c=0,u=0,h=s,d=0,f=0,p=0,m=1,g=1,O=1,b=0,y="",v=i,k=o,x=r,S=y;g;)switch(p=b,b=Tr()){case 40:if(108!=p&&58==cr(S,h-1)){-1!=lr(S+=ar(Dr(b),"&","&\f"),"&\f",nr(c?a[c-1]:0))&&(O=-1);break}case 34:case 39:case 91:S+=Dr(b);break;case 9:case 10:case 13:case 32:S+=Nr(p);break;case 92:S+=Qr(Er()-1,7);continue;case 47:switch(Ar()){case 42:case 47:fr(Xr($r(Tr(),Er()),t,n,l),l);break;default:S+="/"}break;case 123*m:a[c++]=hr(S)*O;case 125*m:case 59:case 0:switch(b){case 0:case 125:g=0;case 59+u:-1==O&&(S=ar(S,/\f/g,"")),f>0&&hr(S)-h&&fr(f>32?Hr(S+";",r,n,h-1,l):Hr(ar(S," ","")+";",r,n,h-2,l),l);break;case 59:S+=";";default:if(fr(x=Ur(S,t,n,c,u,i,a,y,v=[],k=[],h,o),o),123===b)if(0===u)jr(S,t,x,x,v,o,h,a,k);else switch(99===d&&110===cr(S,3)?100:d){case 100:case 108:case 109:case 115:jr(e,x,x,r&&fr(Ur(e,x,x,0,0,i,a,y,i,v=[],h,k),k),i,k,h,a,r?v:k);break;default:jr(S,x,x,x,[""],k,0,a,k)}}c=u=f=0,m=O=1,y=S="",h=s;break;case 58:h=1+hr(S),f=p;default:if(m<1)if(123==b)--m;else if(125==b&&0==m++&&125==wr())continue;switch(S+=rr(b),b*m){case 38:O=u>0?1:(S+="\f",-1);break;case 44:a[c++]=(hr(S)-1)*O,O=1;break;case 64:45===Ar()&&(S+=Dr(Tr())),d=Ar(),u=h=hr(y=S+=Lr(Er())),b++;break;case 45:45===p&&2==hr(S)&&(m=0)}}return o}function Ur(e,t,n,r,i,o,s,a,l,c,u,h){for(var d=i-1,f=0===i?o:[""],p=dr(f),m=0,g=0,O=0;m0?f[b]+" "+y:ar(y,/&\f/g,f[b])))&&(l[O++]=v);return kr(e,t,n,0===i?Vn:a,l,c,u,h)}function Xr(e,t,n,r){return kr(e,t,n,Gn,rr(yr),ur(e,2,-2),0,r)}function Hr(e,t,n,r,i){return kr(e,t,n,Kn,ur(e,0,r),ur(e,r+1,-1),r,i)}var Wr={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},qr=n(5683),Yr="undefined"!=typeof qr&&void 0!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}&&({NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.REACT_APP_SC_ATTR||{NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.SC_ATTR)||"data-styled",Gr="active",Vr="data-styled-version",Kr="6.1.12",Jr="/*!sc*/\n",ei="undefined"!=typeof window&&"HTMLElement"in window,ti=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof qr&&void 0!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}&&void 0!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.REACT_APP_SC_DISABLE_SPEEDY&&""!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.REACT_APP_SC_DISABLE_SPEEDY?"false"!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.REACT_APP_SC_DISABLE_SPEEDY&&{NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof qr&&void 0!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}&&void 0!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.SC_DISABLE_SPEEDY&&""!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.SC_DISABLE_SPEEDY&&("false"!=={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.SC_DISABLE_SPEEDY&&{NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.SC_DISABLE_SPEEDY)),ni={},ri=(new Set,Object.freeze([])),ii=Object.freeze({});function oi(e,t,n){return void 0===n&&(n=ii),e.theme!==n.theme&&e.theme||t||n.theme}var si=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),ai=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,li=/(^-|-$)/g;function ci(e){return e.replace(ai,"-").replace(li,"")}var ui=/(a)(d)/gi,hi=52,di=function(e){return String.fromCharCode(e+(e>25?39:97))};function fi(e){var t,n="";for(t=Math.abs(e);t>hi;t=t/hi|0)n=di(t%hi)+n;return(di(t%hi)+n).replace(ui,"$1-$2")}var pi,mi=5381,gi=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},Oi=function(e){return gi(mi,e)};function bi(e){return fi(Oi(e)>>>0)}function yi(e){return e.displayName||e.name||"Component"}function vi(e){return"string"==typeof e&&!0}var ki="function"==typeof Symbol&&Symbol.for,xi=ki?Symbol.for("react.memo"):60115,Si=ki?Symbol.for("react.forward_ref"):60112,wi={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Ti={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Ai={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Ei=((pi={})[Si]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},pi[xi]=Ai,pi);function Ci(e){return("type"in(t=e)&&t.type.$$typeof)===xi?Ai:"$$typeof"in e?Ei[e.$$typeof]:wi;var t}var Pi=Object.defineProperty,_i=Object.getOwnPropertyNames,Ri=Object.getOwnPropertySymbols,Di=Object.getOwnPropertyDescriptor,Ni=Object.getPrototypeOf,Qi=Object.prototype;function Mi(e,t,n){if("string"!=typeof t){if(Qi){var r=Ni(t);r&&r!==Qi&&Mi(e,r,n)}var i=_i(t);Ri&&(i=i.concat(Ri(t)));for(var o=Ci(e),s=Ci(t),a=0;a0?" Args: ".concat(t.join(", ")):""))}var Ui=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,n=0;n=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,i=r;e>=i;)if((i<<=1)<0)throw ji(16,"".concat(e));this.groupSizes=new Uint32Array(i),this.groupSizes.set(n),this.length=i;for(var o=r;o=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),i=r+n,o=r;o=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e0&&(l+="".concat(e,","))})),r+="".concat(s).concat(a,'{content:"').concat(l,'"}').concat(Jr)},o=0;o0?".".concat(t):e},u=l.slice();u.push((function(e){e.type===Vn&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(co,n).replace(r,c))})),s.prefix&&u.push(zr),u.push(Fr);var h=function(e,i,o,a){void 0===i&&(i=""),void 0===o&&(o=""),void 0===a&&(a="&"),t=a,n=i,r=new RegExp("\\".concat(n,"\\b"),"g");var l=e.replace(uo,""),c=Zr(o||i?"".concat(o," ").concat(i," { ").concat(l," }"):l);s.namespace&&(c=ho(c,s.namespace));var h,d=[];return Ir(c,function(e){var t=dr(e);return function(n,r,i,o){for(var s="",a=0;a="A"&&e<="Z"};function xo(e){for(var t="",n=0;n>>0);if(!t.hasNameForId(this.componentId,o)){var s=n(i,".".concat(o),void 0,this.componentId);t.insertRules(this.componentId,o,s)}r=Ii(r,o),this.staticRulesId=o}else{for(var a=gi(this.baseHash,n.hash),l="",c=0;c>>0);t.hasNameForId(this.componentId,d)||t.insertRules(this.componentId,d,n(l,".".concat(d),void 0,this.componentId)),r=Ii(r,d)}}return r},e}(),Po=K.createContext(void 0);Po.Consumer;var _o={};new Set;function Ro(e,t,n){var r=Li(e),i=e,o=!vi(e),s=t.attrs,a=void 0===s?ri:s,l=t.componentId,c=void 0===l?function(e,t){var n="string"!=typeof e?"sc":ci(e);_o[n]=(_o[n]||0)+1;var r="".concat(n,"-").concat(bi(Kr+n+_o[n]));return t?"".concat(t,"-").concat(r):r}(t.displayName,t.parentComponentId):l,u=t.displayName,h=void 0===u?function(e){return vi(e)?"styled.".concat(e):"Styled(".concat(yi(e),")")}(e):u,d=t.displayName&&t.componentId?"".concat(ci(t.displayName),"-").concat(t.componentId):t.componentId||c,f=r&&i.attrs?i.attrs.concat(a).filter(Boolean):a,p=t.shouldForwardProp;if(r&&i.shouldForwardProp){var m=i.shouldForwardProp;if(t.shouldForwardProp){var g=t.shouldForwardProp;p=function(e,t){return m(e,t)&&g(e,t)}}else p=m}var O=new Co(n,d,r?i.componentStyle:void 0);function b(e,t){return function(e,t,n){var r=e.attrs,i=e.componentStyle,o=e.defaultProps,s=e.foldedComponentIds,a=e.styledComponentId,l=e.target,c=K.useContext(Po),u=bo(),h=e.shouldForwardProp||u.shouldForwardProp,d=oi(t,c,o)||ii,f=function(e,t,n){for(var r,i=jn(jn({},t),{className:void 0,theme:n}),o=0;o2&&lo.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)},e}();(function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return"";var n=to(),r=Fi([n&&'nonce="'.concat(n,'"'),"".concat(Yr,'="true"'),"".concat(Vr,'="').concat(Kr,'"')].filter(Boolean)," ");return"")},this.getStyleTags=function(){if(e.sealed)throw ji(2);return e._emitSheetCSS()},this.getStyleElement=function(){var t;if(e.sealed)throw ji(2);var n=e.instance.toString();if(!n)return[];var r=((t={})[Yr]="",t[Vr]=Kr,t.dangerouslySetInnerHTML={__html:n},t),i=to();return i&&(r.nonce=i),[K.createElement("style",jn({},r,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new lo({isServer:!0}),this.sealed=!1}e.prototype.collectStyles=function(e){if(this.sealed)throw ji(2);return K.createElement(yo,{sheet:this.instance},e)},e.prototype.interleaveWithNodeStream=function(e){throw ji(3)}})(),"__sc-".concat(Yr,"__");const Fo="undefined"===typeof window||"Deno"in window;function Bo(){}function zo(e){return"number"===typeof e&&e>=0&&e!==1/0}function Zo(e,t){return Math.max(e+(t||0)-Date.now(),0)}function jo(e,t,n){return ns(e)?"function"===typeof t?{...n,queryKey:e,queryFn:t}:{...t,queryKey:e}:e}function Uo(e,t,n){return ns(e)?[{...t,queryKey:e},n]:[e||{},t]}function Xo(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:o,queryKey:s,stale:a}=e;if(ns(s))if(r){if(t.queryHash!==Wo(s,t.options))return!1}else if(!Yo(t.queryKey,s))return!1;if("all"!==n){const e=t.isActive();if("active"===n&&!e)return!1;if("inactive"===n&&e)return!1}return("boolean"!==typeof a||t.isStale()===a)&&(("undefined"===typeof i||i===t.state.fetchStatus)&&!(o&&!o(t)))}function Ho(e,t){const{exact:n,fetching:r,predicate:i,mutationKey:o}=e;if(ns(o)){if(!t.options.mutationKey)return!1;if(n){if(qo(t.options.mutationKey)!==qo(o))return!1}else if(!Yo(t.options.mutationKey,o))return!1}return("boolean"!==typeof r||"loading"===t.state.status===r)&&!(i&&!i(t))}function Wo(e,t){return((null==t?void 0:t.queryKeyHashFn)||qo)(e)}function qo(e){return JSON.stringify(e,((e,t)=>es(t)?Object.keys(t).sort().reduce(((e,n)=>(e[n]=t[n],e)),{}):t))}function Yo(e,t){return Go(e,t)}function Go(e,t){return e===t||typeof e===typeof t&&(!(!e||!t||"object"!==typeof e||"object"!==typeof t)&&!Object.keys(t).some((n=>!Go(e[n],t[n]))))}function Vo(e,t){if(e===t)return e;const n=Jo(e)&&Jo(t);if(n||es(e)&&es(t)){const r=n?e.length:Object.keys(e).length,i=n?t:Object.keys(t),o=i.length,s=n?[]:{};let a=0;for(let l=0;l{setTimeout(t,e)}))}function is(e){rs(0).then(e)}function os(e,t,n){return null!=n.isDataEqual&&n.isDataEqual(e,t)?e:"function"===typeof n.structuralSharing?n.structuralSharing(e,t):!1!==n.structuralSharing?Vo(e,t):t}const ss=console;const as=function(){let e=[],t=0,n=e=>{e()},r=e=>{e()};const i=r=>{t?e.push(r):is((()=>{n(r)}))},o=()=>{const t=e;e=[],t.length&&is((()=>{r((()=>{t.forEach((e=>{n(e)}))}))}))};return{batch:e=>{let n;t++;try{n=e()}finally{t--,t||o()}return n},batchCalls:e=>function(){for(var t=arguments.length,n=new Array(t),r=0;r{e(...n)}))},schedule:i,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e}}}();class ls{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){const t={listener:e};return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}const cs=new class extends ls{constructor(){super(),this.setup=e=>{if(!Fo&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),window.addEventListener("focus",t,!1),()=>{window.removeEventListener("visibilitychange",t),window.removeEventListener("focus",t)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)}setEventListener(e){var t;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e((e=>{"boolean"===typeof e?this.setFocused(e):this.onFocus()}))}setFocused(e){this.focused!==e&&(this.focused=e,this.onFocus())}onFocus(){this.listeners.forEach((e=>{let{listener:t}=e;t()}))}isFocused(){return"boolean"===typeof this.focused?this.focused:"undefined"===typeof document||[void 0,"visible","prerender"].includes(document.visibilityState)}},us=["online","offline"];const hs=new class extends ls{constructor(){super(),this.setup=e=>{if(!Fo&&window.addEventListener){const t=()=>e();return us.forEach((e=>{window.addEventListener(e,t,!1)})),()=>{us.forEach((e=>{window.removeEventListener(e,t)}))}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)}setEventListener(e){var t;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e((e=>{"boolean"===typeof e?this.setOnline(e):this.onOnline()}))}setOnline(e){this.online!==e&&(this.online=e,this.onOnline())}onOnline(){this.listeners.forEach((e=>{let{listener:t}=e;t()}))}isOnline(){return"boolean"===typeof this.online?this.online:"undefined"===typeof navigator||"undefined"===typeof navigator.onLine||navigator.onLine}};function ds(e){return Math.min(1e3*2**e,3e4)}function fs(e){return"online"!==(null!=e?e:"online")||hs.isOnline()}class ps{constructor(e){this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent}}function ms(e){return e instanceof ps}function gs(e){let t,n,r,i=!1,o=0,s=!1;const a=new Promise(((e,t)=>{n=e,r=t})),l=()=>!cs.isFocused()||"always"!==e.networkMode&&!hs.isOnline(),c=r=>{s||(s=!0,null==e.onSuccess||e.onSuccess(r),null==t||t(),n(r))},u=n=>{s||(s=!0,null==e.onError||e.onError(n),null==t||t(),r(n))},h=()=>new Promise((n=>{t=e=>{const t=s||!l();return t&&n(e),t},null==e.onPause||e.onPause()})).then((()=>{t=void 0,s||null==e.onContinue||e.onContinue()})),d=()=>{if(s)return;let t;try{t=e.fn()}catch(n){t=Promise.reject(n)}Promise.resolve(t).then(c).catch((t=>{var n,r;if(s)return;const a=null!=(n=e.retry)?n:3,c=null!=(r=e.retryDelay)?r:ds,f="function"===typeof c?c(o,t):c,p=!0===a||"number"===typeof a&&o{if(l())return h()})).then((()=>{i?u(t):d()}))):u(t)}))};return fs(e.networkMode)?d():h().then(d),{promise:a,cancel:t=>{s||(u(new ps(t)),null==e.abort||e.abort())},continue:()=>(null==t?void 0:t())?a:Promise.resolve(),cancelRetry:()=>{i=!0},continueRetry:()=>{i=!1}}}class Os{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),zo(this.cacheTime)&&(this.gcTimeout=setTimeout((()=>{this.optionalRemove()}),this.cacheTime))}updateCacheTime(e){this.cacheTime=Math.max(this.cacheTime||0,null!=e?e:Fo?1/0:3e5)}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class bs extends Os{constructor(e){super(),this.abortSignalConsumed=!1,this.defaultOptions=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.cache=e.cache,this.logger=e.logger||ss,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.initialState=e.state||function(e){const t="function"===typeof e.initialData?e.initialData():e.initialData,n="undefined"!==typeof t,r=n?"function"===typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?null!=r?r:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"loading",fetchStatus:"idle"}}(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.cache.remove(this)}setData(e,t){const n=os(this.state.data,e,this.options);return this.dispatch({data:n,type:"success",dataUpdatedAt:null==t?void 0:t.updatedAt,manual:null==t?void 0:t.manual}),n}setState(e,t){this.dispatch({type:"setState",state:e,setStateOptions:t})}cancel(e){var t;const n=this.promise;return null==(t=this.retryer)||t.cancel(e),n?n.then(Bo).catch(Bo):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some((e=>!1!==e.options.enabled))}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some((e=>e.getCurrentResult().isStale))}isStaleByTime(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.state.isInvalidated||!this.state.dataUpdatedAt||!Zo(this.state.dataUpdatedAt,e)}onFocus(){var e;const t=this.observers.find((e=>e.shouldFetchOnWindowFocus()));t&&t.refetch({cancelRefetch:!1}),null==(e=this.retryer)||e.continue()}onOnline(){var e;const t=this.observers.find((e=>e.shouldFetchOnReconnect()));t&&t.refetch({cancelRefetch:!1}),null==(e=this.retryer)||e.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter((t=>t!==e)),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(e,t){var n,r;if("idle"!==this.state.fetchStatus)if(this.state.dataUpdatedAt&&null!=t&&t.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var i;return null==(i=this.retryer)||i.continueRetry(),this.promise}if(e&&this.setOptions(e),!this.options.queryFn){const e=this.observers.find((e=>e.options.queryFn));e&&this.setOptions(e.options)}const o=function(){if("function"===typeof AbortController)return new AbortController}(),s={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},a=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>{if(o)return this.abortSignalConsumed=!0,o.signal}})};a(s);const l={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(s)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'")};var c;(a(l),null==(n=this.options.behavior)||n.onFetch(l),this.revertState=this.state,"idle"===this.state.fetchStatus||this.state.fetchMeta!==(null==(r=l.fetchOptions)?void 0:r.meta))&&this.dispatch({type:"fetch",meta:null==(c=l.fetchOptions)?void 0:c.meta});const u=e=>{var t,n,r,i;(ms(e)&&e.silent||this.dispatch({type:"error",error:e}),ms(e))||(null==(t=(n=this.cache.config).onError)||t.call(n,e,this),null==(r=(i=this.cache.config).onSettled)||r.call(i,this.state.data,e,this));this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=gs({fn:l.fetchFn,abort:null==o?void 0:o.abort.bind(o),onSuccess:e=>{var t,n,r,i;"undefined"!==typeof e?(this.setData(e),null==(t=(n=this.cache.config).onSuccess)||t.call(n,e,this),null==(r=(i=this.cache.config).onSettled)||r.call(i,e,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1):u(new Error(this.queryHash+" data is undefined"))},onError:u,onFail:(e,t)=>{this.dispatch({type:"failed",failureCount:e,error:t})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(e){this.state=(t=>{var n,r;switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null!=(n=e.meta)?n:null,fetchStatus:fs(this.options.networkMode)?"fetching":"paused",...!t.dataUpdatedAt&&{error:null,status:"loading"}};case"success":return{...t,data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:null!=(r=e.dataUpdatedAt)?r:Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const i=e.error;return ms(i)&&i.revert&&this.revertState?{...this.revertState,fetchStatus:"idle"}:{...t,error:i,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),as.batch((()=>{this.observers.forEach((t=>{t.onQueryUpdate(e)})),this.cache.notify({query:this,type:"updated",action:e})}))}}class ys extends ls{constructor(e){super(),this.config=e||{},this.queries=[],this.queriesMap={}}build(e,t,n){var r;const i=t.queryKey,o=null!=(r=t.queryHash)?r:Wo(i,t);let s=this.get(o);return s||(s=new bs({cache:this,logger:e.getLogger(),queryKey:i,queryHash:o,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(i)}),this.add(s)),s}add(e){this.queriesMap[e.queryHash]||(this.queriesMap[e.queryHash]=e,this.queries.push(e),this.notify({type:"added",query:e}))}remove(e){const t=this.queriesMap[e.queryHash];t&&(e.destroy(),this.queries=this.queries.filter((t=>t!==e)),t===e&&delete this.queriesMap[e.queryHash],this.notify({type:"removed",query:e}))}clear(){as.batch((()=>{this.queries.forEach((e=>{this.remove(e)}))}))}get(e){return this.queriesMap[e]}getAll(){return this.queries}find(e,t){const[n]=Uo(e,t);return"undefined"===typeof n.exact&&(n.exact=!0),this.queries.find((e=>Xo(n,e)))}findAll(e,t){const[n]=Uo(e,t);return Object.keys(n).length>0?this.queries.filter((e=>Xo(n,e))):this.queries}notify(e){as.batch((()=>{this.listeners.forEach((t=>{let{listener:n}=t;n(e)}))}))}onFocus(){as.batch((()=>{this.queries.forEach((e=>{e.onFocus()}))}))}onOnline(){as.batch((()=>{this.queries.forEach((e=>{e.onOnline()}))}))}}class vs extends Os{constructor(e){super(),this.defaultOptions=e.defaultOptions,this.mutationId=e.mutationId,this.mutationCache=e.mutationCache,this.logger=e.logger||ss,this.observers=[],this.state=e.state||{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0},this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options={...this.defaultOptions,...e},this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(e){this.dispatch({type:"setState",state:e})}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.observers=this.observers.filter((t=>t!==e)),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.observers.length||("loading"===this.state.status?this.scheduleGc():this.mutationCache.remove(this))}continue(){var e,t;return null!=(e=null==(t=this.retryer)?void 0:t.continue())?e:this.execute()}async execute(){const e=()=>{var e;return this.retryer=gs({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(e,t)=>{this.dispatch({type:"failed",failureCount:e,error:t})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:null!=(e=this.options.retry)?e:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},t="loading"===this.state.status;try{var n,r,i,o,s,a,l,c;if(!t){var u,h,d,f;this.dispatch({type:"loading",variables:this.options.variables}),await(null==(u=(h=this.mutationCache.config).onMutate)?void 0:u.call(h,this.state.variables,this));const e=await(null==(d=(f=this.options).onMutate)?void 0:d.call(f,this.state.variables));e!==this.state.context&&this.dispatch({type:"loading",context:e,variables:this.state.variables})}const p=await e();return await(null==(n=(r=this.mutationCache.config).onSuccess)?void 0:n.call(r,p,this.state.variables,this.state.context,this)),await(null==(i=(o=this.options).onSuccess)?void 0:i.call(o,p,this.state.variables,this.state.context)),await(null==(s=(a=this.mutationCache.config).onSettled)?void 0:s.call(a,p,null,this.state.variables,this.state.context,this)),await(null==(l=(c=this.options).onSettled)?void 0:l.call(c,p,null,this.state.variables,this.state.context)),this.dispatch({type:"success",data:p}),p}catch(x){try{var p,m,g,O,b,y,v,k;throw await(null==(p=(m=this.mutationCache.config).onError)?void 0:p.call(m,x,this.state.variables,this.state.context,this)),await(null==(g=(O=this.options).onError)?void 0:g.call(O,x,this.state.variables,this.state.context)),await(null==(b=(y=this.mutationCache.config).onSettled)?void 0:b.call(y,void 0,x,this.state.variables,this.state.context,this)),await(null==(v=(k=this.options).onSettled)?void 0:v.call(k,void 0,x,this.state.variables,this.state.context)),x}finally{this.dispatch({type:"error",error:x})}}}dispatch(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"loading":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!fs(this.options.networkMode),status:"loading",variables:e.variables};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"};case"setState":return{...t,...e.state}}})(this.state),as.batch((()=>{this.observers.forEach((t=>{t.onMutationUpdate(e)})),this.mutationCache.notify({mutation:this,type:"updated",action:e})}))}}class ks extends ls{constructor(e){super(),this.config=e||{},this.mutations=[],this.mutationId=0}build(e,t,n){const r=new vs({mutationCache:this,logger:e.getLogger(),mutationId:++this.mutationId,options:e.defaultMutationOptions(t),state:n,defaultOptions:t.mutationKey?e.getMutationDefaults(t.mutationKey):void 0});return this.add(r),r}add(e){this.mutations.push(e),this.notify({type:"added",mutation:e})}remove(e){this.mutations=this.mutations.filter((t=>t!==e)),this.notify({type:"removed",mutation:e})}clear(){as.batch((()=>{this.mutations.forEach((e=>{this.remove(e)}))}))}getAll(){return this.mutations}find(e){return"undefined"===typeof e.exact&&(e.exact=!0),this.mutations.find((t=>Ho(e,t)))}findAll(e){return this.mutations.filter((t=>Ho(e,t)))}notify(e){as.batch((()=>{this.listeners.forEach((t=>{let{listener:n}=t;n(e)}))}))}resumePausedMutations(){var e;return this.resuming=(null!=(e=this.resuming)?e:Promise.resolve()).then((()=>{const e=this.mutations.filter((e=>e.state.isPaused));return as.batch((()=>e.reduce(((e,t)=>e.then((()=>t.continue().catch(Bo)))),Promise.resolve())))})).then((()=>{this.resuming=void 0})),this.resuming}}function xs(){return{onFetch:e=>{e.fetchFn=()=>{var t,n,r,i,o,s;const a=null==(t=e.fetchOptions)||null==(n=t.meta)?void 0:n.refetchPage,l=null==(r=e.fetchOptions)||null==(i=r.meta)?void 0:i.fetchMore,c=null==l?void 0:l.pageParam,u="forward"===(null==l?void 0:l.direction),h="backward"===(null==l?void 0:l.direction),d=(null==(o=e.state.data)?void 0:o.pages)||[],f=(null==(s=e.state.data)?void 0:s.pageParams)||[];let p=f,m=!1;const g=e.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+e.options.queryHash+"'")),O=(e,t,n,r)=>(p=r?[t,...p]:[...p,t],r?[n,...e]:[...e,n]),b=(t,n,r,i)=>{if(m)return Promise.reject("Cancelled");if("undefined"===typeof r&&!n&&t.length)return Promise.resolve(t);const o={queryKey:e.queryKey,pageParam:r,meta:e.options.meta};var s;s=o,Object.defineProperty(s,"signal",{enumerable:!0,get:()=>{var t,n;return null!=(t=e.signal)&&t.aborted?m=!0:null==(n=e.signal)||n.addEventListener("abort",(()=>{m=!0})),e.signal}});const a=g(o),l=Promise.resolve(a).then((e=>O(t,r,e,i)));return l};let y;if(d.length)if(u){const t="undefined"!==typeof c,n=t?c:Ss(e.options,d);y=b(d,t,n)}else if(h){const t="undefined"!==typeof c,n=t?c:ws(e.options,d);y=b(d,t,n,!0)}else{p=[];const t="undefined"===typeof e.options.getNextPageParam;y=!a||!d[0]||a(d[0],0,d)?b([],t,f[0]):Promise.resolve(O([],f[0],d[0]));for(let n=1;n{if(!a||!d[n]||a(d[n],n,d)){const i=t?f[n]:Ss(e.options,r);return b(r,t,i)}return Promise.resolve(O(r,f[n],d[n]))}))}else y=b([]);return y.then((e=>({pages:e,pageParams:p})))}}}}function Ss(e,t){return null==e.getNextPageParam?void 0:e.getNextPageParam(t[t.length-1],t)}function ws(e,t){return null==e.getPreviousPageParam?void 0:e.getPreviousPageParam(t[0],t)}const Ts=K.createContext(void 0),As=K.createContext(!1);function Es(e,t){return e||(t&&"undefined"!==typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=Ts),window.ReactQueryClientContext):Ts)}const Cs=function(){let{context:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=K.useContext(Es(e,K.useContext(As)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},Ps=e=>{let{client:t,children:n,context:r,contextSharing:i=!1}=e;K.useEffect((()=>(t.mount(),()=>{t.unmount()})),[t]);const o=Es(r,i);return K.createElement(As.Provider,{value:!r&&i},K.createElement(o.Provider,{value:t},n))};var _s;n(1784);function Rs(){return Rs=Object.assign?Object.assign.bind():function(e){for(var t=1;tt.sql({dialect:t[e]})))}const ea=[Vs.t$.of({name:"C",extensions:["c","h","ino"],load:()=>n.e(2266).then(n.bind(n,2266)).then((e=>e.cpp()))}),Vs.t$.of({name:"C++",alias:["cpp"],extensions:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],load:()=>n.e(2266).then(n.bind(n,2266)).then((e=>e.cpp()))}),Vs.t$.of({name:"CQL",alias:["cassandra"],extensions:["cql"],load:()=>Js("Cassandra")}),Vs.t$.of({name:"CSS",extensions:["css"],load:()=>Promise.resolve().then(n.bind(n,8244)).then((e=>e.css()))}),Vs.t$.of({name:"Go",extensions:["go"],load:()=>n.e(6769).then(n.bind(n,6769)).then((e=>e.go()))}),Vs.t$.of({name:"HTML",alias:["xhtml"],extensions:["html","htm","handlebars","hbs"],load:()=>Promise.resolve().then(n.bind(n,5221)).then((e=>e.html()))}),Vs.t$.of({name:"Java",extensions:["java"],load:()=>n.e(9e3).then(n.bind(n,6619)).then((e=>e.java()))}),Vs.t$.of({name:"JavaScript",alias:["ecmascript","js","node"],extensions:["js","mjs","cjs"],load:()=>Promise.resolve().then(n.bind(n,4013)).then((e=>e.javascript()))}),Vs.t$.of({name:"JSON",alias:["json5"],extensions:["json","map"],load:()=>n.e(9407).then(n.bind(n,9407)).then((e=>e.json()))}),Vs.t$.of({name:"JSX",extensions:["jsx"],load:()=>Promise.resolve().then(n.bind(n,4013)).then((e=>e.javascript({jsx:!0})))}),Vs.t$.of({name:"LESS",extensions:["less"],load:()=>n.e(8615).then(n.bind(n,996)).then((e=>e.less()))}),Vs.t$.of({name:"Liquid",extensions:["liquid"],load:()=>n.e(4).then(n.bind(n,4)).then((e=>e.liquid()))}),Vs.t$.of({name:"MariaDB SQL",load:()=>Js("MariaSQL")}),Vs.t$.of({name:"Markdown",extensions:["md","markdown","mkd"],load:()=>Promise.resolve().then(n.bind(n,7469)).then((e=>e.markdown()))}),Vs.t$.of({name:"MS SQL",load:()=>Js("MSSQL")}),Vs.t$.of({name:"MySQL",load:()=>Js("MySQL")}),Vs.t$.of({name:"PHP",extensions:["php","php3","php4","php5","php7","phtml"],load:()=>n.e(9188).then(n.bind(n,9188)).then((e=>e.php()))}),Vs.t$.of({name:"PLSQL",extensions:["pls"],load:()=>Js("PLSQL")}),Vs.t$.of({name:"PostgreSQL",load:()=>Js("PostgreSQL")}),Vs.t$.of({name:"Python",extensions:["BUILD","bzl","py","pyw"],filename:/^(BUCK|BUILD)$/,load:()=>n.e(9223).then(n.bind(n,9223)).then((e=>e.python()))}),Vs.t$.of({name:"Rust",extensions:["rs"],load:()=>n.e(4089).then(n.bind(n,4089)).then((e=>e.rust()))}),Vs.t$.of({name:"Sass",extensions:["sass"],load:()=>n.e(3450).then(n.bind(n,3450)).then((e=>e.sass({indented:!0})))}),Vs.t$.of({name:"SCSS",extensions:["scss"],load:()=>n.e(3450).then(n.bind(n,3450)).then((e=>e.sass()))}),Vs.t$.of({name:"SQL",extensions:["sql"],load:()=>Js("StandardSQL")}),Vs.t$.of({name:"SQLite",load:()=>Js("SQLite")}),Vs.t$.of({name:"TSX",extensions:["tsx"],load:()=>Promise.resolve().then(n.bind(n,4013)).then((e=>e.javascript({jsx:!0,typescript:!0})))}),Vs.t$.of({name:"TypeScript",alias:["ts"],extensions:["ts","mts","cts"],load:()=>Promise.resolve().then(n.bind(n,4013)).then((e=>e.javascript({typescript:!0})))}),Vs.t$.of({name:"WebAssembly",extensions:["wat","wast"],load:()=>n.e(7873).then(n.bind(n,7873)).then((e=>e.wast()))}),Vs.t$.of({name:"XML",alias:["rss","wsdl","xsd"],extensions:["xml","xsl","xsd","svg"],load:()=>n.e(1994).then(n.bind(n,1994)).then((e=>e.xml()))}),Vs.t$.of({name:"YAML",alias:["yml"],extensions:["yaml","yml"],load:()=>n.e(6576).then(n.bind(n,6576)).then((e=>e.yaml()))}),Vs.t$.of({name:"APL",extensions:["dyalog","apl"],load:()=>n.e(6175).then(n.bind(n,8556)).then((e=>Ks(e.apl)))}),Vs.t$.of({name:"PGP",alias:["asciiarmor"],extensions:["asc","pgp","sig"],load:()=>n.e(9468).then(n.bind(n,9468)).then((e=>Ks(e.asciiArmor)))}),Vs.t$.of({name:"ASN.1",extensions:["asn","asn1"],load:()=>n.e(2007).then(n.bind(n,2007)).then((e=>Ks(e.asn1({}))))}),Vs.t$.of({name:"Asterisk",filename:/^extensions\.conf$/i,load:()=>n.e(866).then(n.bind(n,866)).then((e=>Ks(e.asterisk)))}),Vs.t$.of({name:"Brainfuck",extensions:["b","bf"],load:()=>n.e(6339).then(n.bind(n,6339)).then((e=>Ks(e.brainfuck)))}),Vs.t$.of({name:"Cobol",extensions:["cob","cpy"],load:()=>n.e(6547).then(n.bind(n,6547)).then((e=>Ks(e.cobol)))}),Vs.t$.of({name:"C#",alias:["csharp","cs"],extensions:["cs"],load:()=>n.e(2146).then(n.bind(n,2146)).then((e=>Ks(e.csharp)))}),Vs.t$.of({name:"Clojure",extensions:["clj","cljc","cljx"],load:()=>n.e(3368).then(n.bind(n,3368)).then((e=>Ks(e.clojure)))}),Vs.t$.of({name:"ClojureScript",extensions:["cljs"],load:()=>n.e(3368).then(n.bind(n,3368)).then((e=>Ks(e.clojure)))}),Vs.t$.of({name:"Closure Stylesheets (GSS)",extensions:["gss"],load:()=>n.e(2463).then(n.bind(n,2463)).then((e=>Ks(e.gss)))}),Vs.t$.of({name:"CMake",extensions:["cmake","cmake.in"],filename:/^CMakeLists\.txt$/,load:()=>n.e(935).then(n.bind(n,935)).then((e=>Ks(e.cmake)))}),Vs.t$.of({name:"CoffeeScript",alias:["coffee","coffee-script"],extensions:["coffee"],load:()=>n.e(5473).then(n.bind(n,5473)).then((e=>Ks(e.coffeeScript)))}),Vs.t$.of({name:"Common Lisp",alias:["lisp"],extensions:["cl","lisp","el"],load:()=>n.e(7607).then(n.bind(n,7607)).then((e=>Ks(e.commonLisp)))}),Vs.t$.of({name:"Cypher",extensions:["cyp","cypher"],load:()=>n.e(4269).then(n.bind(n,4269)).then((e=>Ks(e.cypher)))}),Vs.t$.of({name:"Cython",extensions:["pyx","pxd","pxi"],load:()=>n.e(4884).then(n.bind(n,4884)).then((e=>Ks(e.cython)))}),Vs.t$.of({name:"Crystal",extensions:["cr"],load:()=>n.e(8130).then(n.bind(n,8130)).then((e=>Ks(e.crystal)))}),Vs.t$.of({name:"D",extensions:["d"],load:()=>n.e(8448).then(n.bind(n,8448)).then((e=>Ks(e.d)))}),Vs.t$.of({name:"Dart",extensions:["dart"],load:()=>n.e(2146).then(n.bind(n,2146)).then((e=>Ks(e.dart)))}),Vs.t$.of({name:"diff",extensions:["diff","patch"],load:()=>n.e(4829).then(n.bind(n,4829)).then((e=>Ks(e.diff)))}),Vs.t$.of({name:"Dockerfile",filename:/^Dockerfile$/,load:()=>n.e(5912).then(n.bind(n,5912)).then((e=>Ks(e.dockerFile)))}),Vs.t$.of({name:"DTD",extensions:["dtd"],load:()=>n.e(6736).then(n.bind(n,6736)).then((e=>Ks(e.dtd)))}),Vs.t$.of({name:"Dylan",extensions:["dylan","dyl","intr"],load:()=>n.e(8898).then(n.bind(n,8898)).then((e=>Ks(e.dylan)))}),Vs.t$.of({name:"EBNF",load:()=>n.e(6013).then(n.bind(n,6013)).then((e=>Ks(e.ebnf)))}),Vs.t$.of({name:"ECL",extensions:["ecl"],load:()=>n.e(3212).then(n.bind(n,3212)).then((e=>Ks(e.ecl)))}),Vs.t$.of({name:"edn",extensions:["edn"],load:()=>n.e(3368).then(n.bind(n,3368)).then((e=>Ks(e.clojure)))}),Vs.t$.of({name:"Eiffel",extensions:["e"],load:()=>n.e(4989).then(n.bind(n,4989)).then((e=>Ks(e.eiffel)))}),Vs.t$.of({name:"Elm",extensions:["elm"],load:()=>n.e(5208).then(n.bind(n,5208)).then((e=>Ks(e.elm)))}),Vs.t$.of({name:"Erlang",extensions:["erl"],load:()=>n.e(7717).then(n.bind(n,7717)).then((e=>Ks(e.erlang)))}),Vs.t$.of({name:"Esper",load:()=>n.e(1188).then(n.bind(n,1188)).then((e=>Ks(e.esper)))}),Vs.t$.of({name:"Factor",extensions:["factor"],load:()=>n.e(9553).then(n.bind(n,9553)).then((e=>Ks(e.factor)))}),Vs.t$.of({name:"FCL",load:()=>n.e(6193).then(n.bind(n,6193)).then((e=>Ks(e.fcl)))}),Vs.t$.of({name:"Forth",extensions:["forth","fth","4th"],load:()=>n.e(1899).then(n.bind(n,1899)).then((e=>Ks(e.forth)))}),Vs.t$.of({name:"Fortran",extensions:["f","for","f77","f90","f95"],load:()=>n.e(3726).then(n.bind(n,3726)).then((e=>Ks(e.fortran)))}),Vs.t$.of({name:"F#",alias:["fsharp"],extensions:["fs"],load:()=>n.e(3492).then(n.bind(n,3492)).then((e=>Ks(e.fSharp)))}),Vs.t$.of({name:"Gas",extensions:["s"],load:()=>n.e(685).then(n.bind(n,685)).then((e=>Ks(e.gas)))}),Vs.t$.of({name:"Gherkin",extensions:["feature"],load:()=>n.e(2678).then(n.bind(n,2678)).then((e=>Ks(e.gherkin)))}),Vs.t$.of({name:"Groovy",extensions:["groovy","gradle"],filename:/^Jenkinsfile$/,load:()=>n.e(4388).then(n.bind(n,4388)).then((e=>Ks(e.groovy)))}),Vs.t$.of({name:"Haskell",extensions:["hs"],load:()=>n.e(5692).then(n.bind(n,5692)).then((e=>Ks(e.haskell)))}),Vs.t$.of({name:"Haxe",extensions:["hx"],load:()=>n.e(9354).then(n.bind(n,9354)).then((e=>Ks(e.haxe)))}),Vs.t$.of({name:"HXML",extensions:["hxml"],load:()=>n.e(9354).then(n.bind(n,9354)).then((e=>Ks(e.hxml)))}),Vs.t$.of({name:"HTTP",load:()=>n.e(3790).then(n.bind(n,3790)).then((e=>Ks(e.http)))}),Vs.t$.of({name:"IDL",extensions:["pro"],load:()=>n.e(8219).then(n.bind(n,8219)).then((e=>Ks(e.idl)))}),Vs.t$.of({name:"JSON-LD",alias:["jsonld"],extensions:["jsonld"],load:()=>n.e(8437).then(n.bind(n,8437)).then((e=>Ks(e.jsonld)))}),Vs.t$.of({name:"Jinja2",extensions:["j2","jinja","jinja2"],load:()=>n.e(7316).then(n.bind(n,7316)).then((e=>Ks(e.jinja2)))}),Vs.t$.of({name:"Julia",extensions:["jl"],load:()=>n.e(7485).then(n.bind(n,7485)).then((e=>Ks(e.julia)))}),Vs.t$.of({name:"Kotlin",extensions:["kt","kts"],load:()=>n.e(2146).then(n.bind(n,2146)).then((e=>Ks(e.kotlin)))}),Vs.t$.of({name:"LiveScript",alias:["ls"],extensions:["ls"],load:()=>n.e(8063).then(n.bind(n,8063)).then((e=>Ks(e.liveScript)))}),Vs.t$.of({name:"Lua",extensions:["lua"],load:()=>n.e(2682).then(n.bind(n,2682)).then((e=>Ks(e.lua)))}),Vs.t$.of({name:"mIRC",extensions:["mrc"],load:()=>n.e(5039).then(n.bind(n,5039)).then((e=>Ks(e.mirc)))}),Vs.t$.of({name:"Mathematica",extensions:["m","nb","wl","wls"],load:()=>n.e(5516).then(n.bind(n,5516)).then((e=>Ks(e.mathematica)))}),Vs.t$.of({name:"Modelica",extensions:["mo"],load:()=>n.e(1086).then(n.bind(n,1086)).then((e=>Ks(e.modelica)))}),Vs.t$.of({name:"MUMPS",extensions:["mps"],load:()=>n.e(3640).then(n.bind(n,3640)).then((e=>Ks(e.mumps)))}),Vs.t$.of({name:"Mbox",extensions:["mbox"],load:()=>n.e(9986).then(n.bind(n,9986)).then((e=>Ks(e.mbox)))}),Vs.t$.of({name:"Nginx",filename:/nginx.*\.conf$/i,load:()=>n.e(5188).then(n.bind(n,5188)).then((e=>Ks(e.nginx)))}),Vs.t$.of({name:"NSIS",extensions:["nsh","nsi"],load:()=>n.e(1677).then(n.bind(n,1677)).then((e=>Ks(e.nsis)))}),Vs.t$.of({name:"NTriples",extensions:["nt","nq"],load:()=>n.e(8945).then(n.bind(n,8945)).then((e=>Ks(e.ntriples)))}),Vs.t$.of({name:"Objective-C",alias:["objective-c","objc"],extensions:["m"],load:()=>n.e(2146).then(n.bind(n,2146)).then((e=>Ks(e.objectiveC)))}),Vs.t$.of({name:"Objective-C++",alias:["objective-c++","objc++"],extensions:["mm"],load:()=>n.e(2146).then(n.bind(n,2146)).then((e=>Ks(e.objectiveCpp)))}),Vs.t$.of({name:"OCaml",extensions:["ml","mli","mll","mly"],load:()=>n.e(3492).then(n.bind(n,3492)).then((e=>Ks(e.oCaml)))}),Vs.t$.of({name:"Octave",extensions:["m"],load:()=>n.e(9750).then(n.bind(n,9750)).then((e=>Ks(e.octave)))}),Vs.t$.of({name:"Oz",extensions:["oz"],load:()=>n.e(5395).then(n.bind(n,5395)).then((e=>Ks(e.oz)))}),Vs.t$.of({name:"Pascal",extensions:["p","pas"],load:()=>n.e(4374).then(n.bind(n,4374)).then((e=>Ks(e.pascal)))}),Vs.t$.of({name:"Perl",extensions:["pl","pm"],load:()=>n.e(1615).then(n.bind(n,1615)).then((e=>Ks(e.perl)))}),Vs.t$.of({name:"Pig",extensions:["pig"],load:()=>n.e(1140).then(n.bind(n,1140)).then((e=>Ks(e.pig)))}),Vs.t$.of({name:"PowerShell",extensions:["ps1","psd1","psm1"],load:()=>n.e(1839).then(n.bind(n,1839)).then((e=>Ks(e.powerShell)))}),Vs.t$.of({name:"Properties files",alias:["ini","properties"],extensions:["properties","ini","in"],load:()=>n.e(5323).then(n.bind(n,5323)).then((e=>Ks(e.properties)))}),Vs.t$.of({name:"ProtoBuf",extensions:["proto"],load:()=>n.e(2433).then(n.bind(n,2433)).then((e=>Ks(e.protobuf)))}),Vs.t$.of({name:"Pug",alias:["jade"],extensions:["pug","jade"],load:()=>n.e(3632).then(n.bind(n,3632)).then((e=>Ks(e.pug)))}),Vs.t$.of({name:"Puppet",extensions:["pp"],load:()=>n.e(9484).then(n.bind(n,9484)).then((e=>Ks(e.puppet)))}),Vs.t$.of({name:"Q",extensions:["q"],load:()=>n.e(3171).then(n.bind(n,3171)).then((e=>Ks(e.q)))}),Vs.t$.of({name:"R",alias:["rscript"],extensions:["r","R"],load:()=>n.e(6054).then(n.bind(n,6054)).then((e=>Ks(e.r)))}),Vs.t$.of({name:"RPM Changes",load:()=>n.e(1993).then(n.bind(n,1993)).then((e=>Ks(e.rpmChanges)))}),Vs.t$.of({name:"RPM Spec",extensions:["spec"],load:()=>n.e(1993).then(n.bind(n,1993)).then((e=>Ks(e.rpmSpec)))}),Vs.t$.of({name:"Ruby",alias:["jruby","macruby","rake","rb","rbx"],extensions:["rb"],filename:/^(Gemfile|Rakefile)$/,load:()=>n.e(4702).then(n.bind(n,4702)).then((e=>Ks(e.ruby)))}),Vs.t$.of({name:"SAS",extensions:["sas"],load:()=>n.e(4505).then(n.bind(n,4505)).then((e=>Ks(e.sas)))}),Vs.t$.of({name:"Scala",extensions:["scala"],load:()=>n.e(2146).then(n.bind(n,2146)).then((e=>Ks(e.scala)))}),Vs.t$.of({name:"Scheme",extensions:["scm","ss"],load:()=>n.e(2565).then(n.bind(n,2565)).then((e=>Ks(e.scheme)))}),Vs.t$.of({name:"Shell",alias:["bash","sh","zsh"],extensions:["sh","ksh","bash"],filename:/^PKGBUILD$/,load:()=>n.e(8226).then(n.bind(n,8226)).then((e=>Ks(e.shell)))}),Vs.t$.of({name:"Sieve",extensions:["siv","sieve"],load:()=>n.e(642).then(n.bind(n,642)).then((e=>Ks(e.sieve)))}),Vs.t$.of({name:"Smalltalk",extensions:["st"],load:()=>n.e(5381).then(n.bind(n,5381)).then((e=>Ks(e.smalltalk)))}),Vs.t$.of({name:"Solr",load:()=>n.e(9562).then(n.bind(n,9562)).then((e=>Ks(e.solr)))}),Vs.t$.of({name:"SML",extensions:["sml","sig","fun","smackspec"],load:()=>n.e(3492).then(n.bind(n,3492)).then((e=>Ks(e.sml)))}),Vs.t$.of({name:"SPARQL",alias:["sparul"],extensions:["rq","sparql"],load:()=>n.e(5311).then(n.bind(n,5311)).then((e=>Ks(e.sparql)))}),Vs.t$.of({name:"Spreadsheet",alias:["excel","formula"],load:()=>n.e(3498).then(n.bind(n,3498)).then((e=>Ks(e.spreadsheet)))}),Vs.t$.of({name:"Squirrel",extensions:["nut"],load:()=>n.e(2146).then(n.bind(n,2146)).then((e=>Ks(e.squirrel)))}),Vs.t$.of({name:"Stylus",extensions:["styl"],load:()=>n.e(7164).then(n.bind(n,7164)).then((e=>Ks(e.stylus)))}),Vs.t$.of({name:"Swift",extensions:["swift"],load:()=>n.e(7743).then(n.bind(n,7743)).then((e=>Ks(e.swift)))}),Vs.t$.of({name:"sTeX",load:()=>n.e(3884).then(n.bind(n,3884)).then((e=>Ks(e.stex)))}),Vs.t$.of({name:"LaTeX",alias:["tex"],extensions:["text","ltx","tex"],load:()=>n.e(3884).then(n.bind(n,3884)).then((e=>Ks(e.stex)))}),Vs.t$.of({name:"SystemVerilog",extensions:["v","sv","svh"],load:()=>n.e(7062).then(n.bind(n,7062)).then((e=>Ks(e.verilog)))}),Vs.t$.of({name:"Tcl",extensions:["tcl"],load:()=>n.e(6555).then(n.bind(n,6555)).then((e=>Ks(e.tcl)))}),Vs.t$.of({name:"Textile",extensions:["textile"],load:()=>n.e(8373).then(n.bind(n,8373)).then((e=>Ks(e.textile)))}),Vs.t$.of({name:"TiddlyWiki",load:()=>n.e(2290).then(n.bind(n,2290)).then((e=>Ks(e.tiddlyWiki)))}),Vs.t$.of({name:"Tiki wiki",load:()=>n.e(4517).then(n.bind(n,4517)).then((e=>Ks(e.tiki)))}),Vs.t$.of({name:"TOML",extensions:["toml"],load:()=>n.e(7534).then(n.bind(n,7534)).then((e=>Ks(e.toml)))}),Vs.t$.of({name:"Troff",extensions:["1","2","3","4","5","6","7","8","9"],load:()=>n.e(3743).then(n.bind(n,3743)).then((e=>Ks(e.troff)))}),Vs.t$.of({name:"TTCN",extensions:["ttcn","ttcn3","ttcnpp"],load:()=>n.e(1947).then(n.bind(n,1947)).then((e=>Ks(e.ttcn)))}),Vs.t$.of({name:"TTCN_CFG",extensions:["cfg"],load:()=>n.e(588).then(n.bind(n,588)).then((e=>Ks(e.ttcnCfg)))}),Vs.t$.of({name:"Turtle",extensions:["ttl"],load:()=>n.e(7628).then(n.bind(n,7628)).then((e=>Ks(e.turtle)))}),Vs.t$.of({name:"Web IDL",extensions:["webidl"],load:()=>n.e(8047).then(n.bind(n,8047)).then((e=>Ks(e.webIDL)))}),Vs.t$.of({name:"VB.NET",extensions:["vb"],load:()=>n.e(9978).then(n.bind(n,9978)).then((e=>Ks(e.vb)))}),Vs.t$.of({name:"VBScript",extensions:["vbs"],load:()=>n.e(6881).then(n.bind(n,6881)).then((e=>Ks(e.vbScript)))}),Vs.t$.of({name:"Velocity",extensions:["vtl"],load:()=>n.e(9557).then(n.bind(n,9557)).then((e=>Ks(e.velocity)))}),Vs.t$.of({name:"Verilog",extensions:["v"],load:()=>n.e(7062).then(n.bind(n,7062)).then((e=>Ks(e.verilog)))}),Vs.t$.of({name:"VHDL",extensions:["vhd","vhdl"],load:()=>n.e(7472).then(n.bind(n,7472)).then((e=>Ks(e.vhdl)))}),Vs.t$.of({name:"XQuery",extensions:["xy","xquery"],load:()=>n.e(854).then(n.bind(n,854)).then((e=>Ks(e.xQuery)))}),Vs.t$.of({name:"Yacas",extensions:["ys"],load:()=>n.e(3067).then(n.bind(n,3067)).then((e=>Ks(e.yacas)))}),Vs.t$.of({name:"Z80",extensions:["z80"],load:()=>n.e(8206).then(n.bind(n,8206)).then((e=>Ks(e.z80)))}),Vs.t$.of({name:"MscGen",extensions:["mscgen","mscin","msc"],load:()=>n.e(5251).then(n.bind(n,5251)).then((e=>Ks(e.mscgen)))}),Vs.t$.of({name:"X\xf9",extensions:["xu"],load:()=>n.e(5251).then(n.bind(n,5251)).then((e=>Ks(e.xu)))}),Vs.t$.of({name:"MsGenny",extensions:["msgenny"],load:()=>n.e(5251).then(n.bind(n,5251)).then((e=>Ks(e.msgenny)))}),Vs.t$.of({name:"Vue",extensions:["vue"],load:()=>n.e(2066).then(n.bind(n,2066)).then((e=>e.vue()))}),Vs.t$.of({name:"Angular Template",load:()=>n.e(624).then(n.bind(n,624)).then((e=>e.angular()))})];var ta=n(4563);function na(e){var{type:t="scroll",events:n,props:r}=e;return ta.Z9.fromClass(class{constructor(e){(this.dom=void 0,this.view=void 0,this.view=e,this.dom="dom"===t?e.dom:"content"===t?e.contentDOM:e.scrollDOM,this.dom&&r)&&Object.keys(r).forEach((e=>{this.dom[e]=r[e]}));Object.keys(n||{}).forEach((e=>{n&&n[e]&&this.dom&&this.dom.addEventListener(e,n[e])}))}destroy(){Object.keys(n||{}).forEach((e=>{n&&n[e]&&this.dom&&this.dom.removeEventListener(e,n[e])}))}})}var ra=n(8070),ia=n(4450);function oa(e,t){return n=>{let{state:r,dispatch:i}=n;if(r.readOnly)return!1;let o=e(t,r);return!!o&&(i(r.update(o)),!0)}}const sa=oa(da,0),aa=oa(ha,0),la=oa(((e,t)=>ha(e,t,function(e){let t=[];for(let n of e.selection.ranges){let r=e.doc.lineAt(n.from),i=n.to<=r.to?r:e.doc.lineAt(n.to),o=t.length-1;o>=0&&t[o].to>r.from?t[o].to=i.to:t.push({from:r.from+/^\s*/.exec(r.text)[0].length,to:i.to})}return t}(t))),0);function ca(e,t){let n=e.languageDataAt("commentTokens",t);return n.length?n[0]:{}}const ua=50;function ha(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.selection.ranges,r=n.map((e=>ca(t,e.from).block));if(!r.every((e=>e)))return null;let i=n.map(((e,n)=>function(e,t,n,r){let i,o,{open:s,close:a}=t,l=e.sliceDoc(n-ua,n),c=e.sliceDoc(r,r+ua),u=/\s*$/.exec(l)[0].length,h=/^\s*/.exec(c)[0].length,d=l.length-u;if(l.slice(d-s.length,d)==s&&c.slice(h,h+a.length)==a)return{open:{pos:n-u,margin:u&&1},close:{pos:r+h,margin:h&&1}};r-n<=2*ua?i=o=e.sliceDoc(n,r):(i=e.sliceDoc(n,n+ua),o=e.sliceDoc(r-ua,r));let f=/^\s*/.exec(i)[0].length,p=/\s*$/.exec(o)[0].length,m=o.length-p-a.length;return i.slice(f,f+s.length)==s&&o.slice(m,m+a.length)==a?{open:{pos:n+f+s.length,margin:/\s/.test(i.charAt(f+s.length))?1:0},close:{pos:r-p-a.length,margin:/\s/.test(o.charAt(m-1))?1:0}}:null}(t,r[n],e.from,e.to)));if(2!=e&&!i.every((e=>e)))return{changes:t.changes(n.map(((e,t)=>i[t]?[]:[{from:e.from,insert:r[t].open+" "},{from:e.to,insert:" "+r[t].close}])))};if(1!=e&&i.some((e=>e))){let e=[];for(let t,n=0;n2&&void 0!==arguments[2]?arguments[2]:t.selection.ranges,r=[],i=-1;for(let{from:o,to:s}of n){let e=r.length,n=1e9,a=ca(t,o).line;if(a){for(let e=o;e<=s;){let l=t.doc.lineAt(e);if(l.from>i&&(o==s||s>l.from)){i=l.from;let e=/^\s*/.exec(l.text)[0].length,t=e==l.length,o=l.text.slice(e,e+a.length)==a?e:-1;ee.comment<0&&(!e.empty||e.single)))){let e=[];for(let{line:t,token:i,indent:o,empty:s,single:a}of r)!a&&s||e.push({from:t.from+o,insert:i+" "});let n=t.changes(e);return{changes:n,selection:t.selection.map(n,1)}}if(1!=e&&r.some((e=>e.comment>=0))){let e=[];for(let{line:t,comment:n,token:i}of r)if(n>=0){let r=t.from+n,o=r+i.length;" "==t.text[o-t.from]&&o++,e.push({from:r,to:o})}return{changes:e}}return null}const fa=ra.YH.define(),pa=ra.YH.define(),ma=ra.sj.define(),ga=ra.sj.define({combine:e=>(0,ra.QR)(e,{minDepth:100,newGroupDelay:500,joinToEvent:(e,t)=>t},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(e,t)=>(n,r)=>e(n,r)||t(n,r)})}),Oa=ra.sU.define({create:()=>Na.empty,update(e,t){let n=t.state.facet(ga),r=t.annotation(fa);if(r){let i=Sa.fromTransaction(t,r.selection),o=r.side,s=0==o?e.undone:e.done;return s=i?wa(s,s.length,n.minDepth,i):Ca(s,t.startState.selection),new Na(0==o?r.rest:s,0==o?s:r.rest)}let i=t.annotation(pa);if("full"!=i&&"before"!=i||(e=e.isolate()),!1===t.annotation(ra.ZX.addToHistory))return t.changes.empty?e:e.addMapping(t.changes.desc);let o=Sa.fromTransaction(t),s=t.annotation(ra.ZX.time),a=t.annotation(ra.ZX.userEvent);return o?e=e.addChanges(o,s,a,n,t):t.selection&&(e=e.addSelection(t.startState.selection,s,a,n.newGroupDelay)),"full"!=i&&"after"!=i||(e=e.isolate()),e},toJSON:e=>({done:e.done.map((e=>e.toJSON())),undone:e.undone.map((e=>e.toJSON()))}),fromJSON:e=>new Na(e.done.map(Sa.fromJSON),e.undone.map(Sa.fromJSON))});function ba(e,t){return function(n){let{state:r,dispatch:i}=n;if(!t&&r.readOnly)return!1;let o=r.field(Oa,!1);if(!o)return!1;let s=o.pop(e,r,t);return!!s&&(i(s),!0)}}const ya=ba(0,!1),va=ba(1,!1),ka=ba(0,!0),xa=ba(1,!0);class Sa{constructor(e,t,n,r,i){this.changes=e,this.effects=t,this.mapped=n,this.startSelection=r,this.selectionsAfter=i}setSelAfter(e){return new Sa(this.changes,this.effects,this.mapped,this.startSelection,e)}toJSON(){var e,t,n;return{changes:null===(e=this.changes)||void 0===e?void 0:e.toJSON(),mapped:null===(t=this.mapped)||void 0===t?void 0:t.toJSON(),startSelection:null===(n=this.startSelection)||void 0===n?void 0:n.toJSON(),selectionsAfter:this.selectionsAfter.map((e=>e.toJSON()))}}static fromJSON(e){return new Sa(e.changes&&ra.VR.fromJSON(e.changes),[],e.mapped&&ra.Gu.fromJSON(e.mapped),e.startSelection&&ra.OF.fromJSON(e.startSelection),e.selectionsAfter.map(ra.OF.fromJSON))}static fromTransaction(e,t){let n=Aa;for(let r of e.startState.facet(ma)){let t=r(e);t.length&&(n=n.concat(t))}return!n.length&&e.changes.empty?null:new Sa(e.changes.invert(e.startState.doc),n,void 0,t||e.startState.selection,Aa)}static selection(e){return new Sa(void 0,Aa,void 0,void 0,e)}}function wa(e,t,n,r){let i=t+1>n+20?t-n-1:0,o=e.slice(i,t);return o.push(r),o}function Ta(e,t){return e.length?t.length?e.concat(t):e:t}const Aa=[],Ea=200;function Ca(e,t){if(e.length){let n=e[e.length-1],r=n.selectionsAfter.slice(Math.max(0,n.selectionsAfter.length-Ea));return r.length&&r[r.length-1].eq(t)?e:(r.push(t),wa(e,e.length-1,1e9,n.setSelAfter(r)))}return[Sa.selection([t])]}function Pa(e){let t=e[e.length-1],n=e.slice();return n[e.length-1]=t.setSelAfter(t.selectionsAfter.slice(0,t.selectionsAfter.length-1)),n}function _a(e,t){if(!e.length)return e;let n=e.length,r=Aa;for(;n;){let i=Ra(e[n-1],t,r);if(i.changes&&!i.changes.empty||i.effects.length){let t=e.slice(0,n);return t[n-1]=i,t}t=i.mapped,n--,r=i.selectionsAfter}return r.length?[Sa.selection(r)]:Aa}function Ra(e,t,n){let r=Ta(e.selectionsAfter.length?e.selectionsAfter.map((e=>e.map(t))):Aa,n);if(!e.changes)return Sa.selection(r);let i=e.changes.map(t),o=t.mapDesc(e.changes,!0),s=e.mapped?e.mapped.composeDesc(o):o;return new Sa(i,ra.Pe.mapEffects(e.effects,t),s,e.startSelection.map(o),r)}const Da=/^(input\.type|delete)($|\.)/;class Na{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:void 0;this.done=e,this.undone=t,this.prevTime=n,this.prevUserEvent=r}isolate(){return this.prevTime?new Na(this.done,this.undone):this}addChanges(e,t,n,r,i){let o=this.done,s=o[o.length-1];return o=s&&s.changes&&!s.changes.empty&&e.changes&&(!n||Da.test(n))&&(!s.selectionsAfter.length&&t-this.prevTimen.push(e,t))),t.iterChangedRanges(((e,t,i,o)=>{for(let s=0;s=e&&i<=t&&(r=!0)}})),r}(s.changes,e.changes))||"input.type.compose"==n)?wa(o,o.length-1,r.minDepth,new Sa(e.changes.compose(s.changes),Ta(e.effects,s.effects),s.mapped,s.startSelection,Aa)):wa(o,o.length,r.minDepth,e),new Na(o,Aa,t,n)}addSelection(e,t,n,r){let i=this.done.length?this.done[this.done.length-1].selectionsAfter:Aa;return i.length>0&&t-this.prevTimee.empty!=t.ranges[n].empty)).length}(i[i.length-1],e)?this:new Na(Ca(this.done,e),this.undone,t,n)}addMapping(e){return new Na(_a(this.done,e),_a(this.undone,e),this.prevTime,this.prevUserEvent)}pop(e,t,n){let r=0==e?this.done:this.undone;if(0==r.length)return null;let i=r[r.length-1],o=i.selectionsAfter[0]||t.selection;if(n&&i.selectionsAfter.length)return t.update({selection:i.selectionsAfter[i.selectionsAfter.length-1],annotations:fa.of({side:e,rest:Pa(r),selection:o}),userEvent:0==e?"select.undo":"select.redo",scrollIntoView:!0});if(i.changes){let n=1==r.length?Aa:r.slice(0,r.length-1);return i.mapped&&(n=_a(n,i.mapped)),t.update({changes:i.changes,selection:i.startSelection,effects:i.effects,annotations:fa.of({side:e,rest:n,selection:o}),filter:!1,userEvent:0==e?"undo":"redo",scrollIntoView:!0})}return null}}Na.empty=new Na(Aa,Aa);const Qa=[{key:"Mod-z",run:ya,preventDefault:!0},{key:"Mod-y",mac:"Mod-Shift-z",run:va,preventDefault:!0},{linux:"Ctrl-Shift-z",run:va,preventDefault:!0},{key:"Mod-u",run:ka,preventDefault:!0},{key:"Alt-u",mac:"Mod-Shift-u",run:xa,preventDefault:!0}];function Ma(e,t){return ra.OF.create(e.ranges.map(t),e.mainIndex)}function $a(e,t){return e.update({selection:t,scrollIntoView:!0,userEvent:"select"})}function La(e,t){let{state:n,dispatch:r}=e,i=Ma(n.selection,t);return!i.eq(n.selection,!0)&&(r($a(n,i)),!0)}function Ia(e,t){return ra.OF.cursor(t?e.to:e.from)}function Fa(e,t){return La(e,(n=>n.empty?e.moveByChar(n,t):Ia(n,t)))}function Ba(e){return e.textDirectionAt(e.state.selection.main.head)==ta.OP.LTR}const za=e=>Fa(e,!Ba(e)),Za=e=>Fa(e,Ba(e));function ja(e,t){return La(e,(n=>n.empty?e.moveByGroup(n,t):Ia(n,t)))}"undefined"!=typeof Intl&&Intl.Segmenter;function Ua(e,t,n){if(t.type.prop(n))return!0;let r=t.to-t.from;return r&&(r>2||/[^\s,.;:]/.test(e.sliceDoc(t.from,t.to)))||t.firstChild}function Xa(e,t,n){let r,i,o=(0,Vs.mv)(e).resolveInner(t.head),s=n?ia.uY.closedBy:ia.uY.openedBy;for(let a=t.head;;){let t=n?o.childAfter(a):o.childBefore(a);if(!t)break;Ua(e,t,s)?o=t:a=n?t.to:t.from}return i=o.type.prop(s)&&(r=n?(0,Vs.jU)(e,o.from,1):(0,Vs.jU)(e,o.to,-1))&&r.matched?n?r.end.to:r.end.from:n?o.to:o.from,ra.OF.cursor(i,n?-1:1)}function Ha(e,t){return La(e,(n=>{if(!n.empty)return Ia(n,t);let r=e.moveVertically(n,t);return r.head!=n.head?r:e.moveToLineBoundary(n,t)}))}const Wa=e=>Ha(e,!1),qa=e=>Ha(e,!0);function Ya(e){let t,n=e.scrollDOM.clientHeightn.empty?e.moveVertically(n,t,r.height):Ia(n,t)));if(o.eq(i.selection))return!1;if(r.selfScroll){let t=e.coordsAtPos(i.selection.main.head),s=e.scrollDOM.getBoundingClientRect(),a=s.top+r.marginTop,l=s.bottom-r.marginBottom;t&&t.top>a&&t.bottomGa(e,!1),Ka=e=>Ga(e,!0);function Ja(e,t,n){let r=e.lineBlockAt(t.head),i=e.moveToLineBoundary(t,n);if(i.head==t.head&&i.head!=(n?r.to:r.from)&&(i=e.moveToLineBoundary(t,n,!1)),!n&&i.head==r.from&&r.length){let n=/^\s*/.exec(e.state.sliceDoc(r.from,Math.min(r.from+100,r.to)))[0].length;n&&t.head!=r.from+n&&(i=ra.OF.cursor(r.from+n))}return i}function el(e,t,n){let r=!1,i=Ma(e.selection,(t=>{let i=(0,Vs.jU)(e,t.head,-1)||(0,Vs.jU)(e,t.head,1)||t.head>0&&(0,Vs.jU)(e,t.head-1,1)||t.head{let n=t(e);return ra.OF.range(e.anchor,n.head,n.goalColumn,n.bidiLevel||void 0)}));return!n.eq(e.state.selection)&&(e.dispatch($a(e.state,n)),!0)}function nl(e,t){return tl(e,(n=>e.moveByChar(n,t)))}const rl=e=>nl(e,!Ba(e)),il=e=>nl(e,Ba(e));function ol(e,t){return tl(e,(n=>e.moveByGroup(n,t)))}function sl(e,t){return tl(e,(n=>e.moveVertically(n,t)))}const al=e=>sl(e,!1),ll=e=>sl(e,!0);function cl(e,t){return tl(e,(n=>e.moveVertically(n,t,Ya(e).height)))}const ul=e=>cl(e,!1),hl=e=>cl(e,!0),dl=e=>{let{state:t,dispatch:n}=e;return n($a(t,{anchor:0})),!0},fl=e=>{let{state:t,dispatch:n}=e;return n($a(t,{anchor:t.doc.length})),!0},pl=e=>{let{state:t,dispatch:n}=e;return n($a(t,{anchor:t.selection.main.anchor,head:0})),!0},ml=e=>{let{state:t,dispatch:n}=e;return n($a(t,{anchor:t.selection.main.anchor,head:t.doc.length})),!0};function gl(e,t){if(e.state.readOnly)return!1;let n="delete.selection",{state:r}=e,i=r.changeByRange((r=>{let{from:i,to:o}=r;if(i==o){let s=t(r);si&&(n="delete.forward",s=Ol(e,s,!0)),i=Math.min(i,s),o=Math.max(o,s)}else i=Ol(e,i,!1),o=Ol(e,o,!0);return i==o?{range:r}:{changes:{from:i,to:o},range:ra.OF.cursor(i,it(e))))r.between(t,t,((e,r)=>{et&&(t=n?r:e)}));return t}const bl=(e,t,n)=>gl(e,(r=>{let i,o,s=r.from,{state:a}=e,l=a.doc.lineAt(s);if(n&&!t&&s>l.from&&sbl(e,!1,!0),vl=e=>bl(e,!0,!1),kl=(e,t)=>gl(e,(n=>{let r=n.head,{state:i}=e,o=i.doc.lineAt(r),s=i.charCategorizer(r);for(let e=null;;){if(r==(t?o.to:o.from)){r==n.head&&o.number!=(t?i.doc.lines:1)&&(r+=t?1:-1);break}let a=(0,ra.zK)(o.text,r-o.from,t)+o.from,l=o.text.slice(Math.min(r,a)-o.from,Math.max(r,a)-o.from),c=s(l);if(null!=e&&c!=e)break;" "==l&&r==n.head||(e=c),r=a}return r})),xl=e=>kl(e,!1);function Sl(e){let t=[],n=-1;for(let r of e.selection.ranges){let i=e.doc.lineAt(r.from),o=e.doc.lineAt(r.to);if(r.empty||r.to!=o.from||(o=e.doc.lineAt(r.to-1)),n>=i.number){let e=t[t.length-1];e.to=o.to,e.ranges.push(r)}else t.push({from:i.from,to:o.to,ranges:[r]});n=o.number+1}return t}function wl(e,t,n){if(e.readOnly)return!1;let r=[],i=[];for(let o of Sl(e)){if(n?o.to==e.doc.length:0==o.from)continue;let t=e.doc.lineAt(n?o.to+1:o.from-1),s=t.length+1;if(n){r.push({from:o.to,to:t.to},{from:o.from,insert:t.text+e.lineBreak});for(let t of o.ranges)i.push(ra.OF.range(Math.min(e.doc.length,t.anchor+s),Math.min(e.doc.length,t.head+s)))}else{r.push({from:t.from,to:o.from},{from:o.to,insert:e.lineBreak+t.text});for(let e of o.ranges)i.push(ra.OF.range(e.anchor-s,e.head-s))}}return!!r.length&&(t(e.update({changes:r,scrollIntoView:!0,selection:ra.OF.create(i,e.selection.mainIndex),userEvent:"move.line"})),!0)}function Tl(e,t,n){if(e.readOnly)return!1;let r=[];for(let i of Sl(e))n?r.push({from:i.from,insert:e.doc.slice(i.from,i.to)+e.lineBreak}):r.push({from:i.to,insert:e.lineBreak+e.doc.slice(i.from,i.to)});return t(e.update({changes:r,scrollIntoView:!0,userEvent:"input.copyline"})),!0}const Al=Cl(!1),El=Cl(!0);function Cl(e){return t=>{let{state:n,dispatch:r}=t;if(n.readOnly)return!1;let i=n.changeByRange((t=>{let{from:r,to:i}=t,o=n.doc.lineAt(r),s=!e&&r==i&&function(e,t){if(/\(\)|\[\]|\{\}/.test(e.sliceDoc(t-1,t+1)))return{from:t,to:t};let n,r=(0,Vs.mv)(e).resolveInner(t),i=r.childBefore(t),o=r.childAfter(t);return i&&o&&i.to<=t&&o.from>=t&&(n=i.type.prop(ia.uY.closedBy))&&n.indexOf(o.name)>-1&&e.doc.lineAt(i.to).from==e.doc.lineAt(o.from).from&&!/\S/.test(e.sliceDoc(i.to,o.from))?{from:i.to,to:o.from}:null}(n,r);e&&(r=i=(i<=o.to?o:n.doc.lineAt(i)).to);let a=new Vs.KB(n,{simulateBreak:r,simulateDoubleBreak:!!s}),l=(0,Vs._v)(a,r);for(null==l&&(l=(0,ra.y$)(/^\s*/.exec(n.doc.lineAt(r).text)[0],n.tabSize));io.from&&r{let i=[];for(let s=r.from;s<=r.to;){let o=e.doc.lineAt(s);o.number>n&&(r.empty||r.to>o.from)&&(t(o,i,r),n=o.number),s=o.to+1}let o=e.changes(i);return{changes:i,range:ra.OF.range(o.mapPos(r.anchor,1),o.mapPos(r.head,1))}}))}const _l=e=>{let{state:t,dispatch:n}=e;return!t.readOnly&&(n(t.update(Pl(t,((e,n)=>{n.push({from:e.from,insert:t.facet(Vs.Xt)})})),{userEvent:"input.indent"})),!0)},Rl=e=>{let{state:t,dispatch:n}=e;return!t.readOnly&&(n(t.update(Pl(t,((e,n)=>{let r=/^\s*/.exec(e.text)[0];if(!r)return;let i=(0,ra.y$)(r,t.tabSize),o=0,s=(0,Vs.EI)(t,Math.max(0,i-(0,Vs.tp)(t)));for(;oLa(e,(t=>ra.OF.cursor(e.lineBlockAt(t.head).from,1))),shift:e=>tl(e,(t=>ra.OF.cursor(e.lineBlockAt(t.head).from)))},{key:"Ctrl-e",run:e=>La(e,(t=>ra.OF.cursor(e.lineBlockAt(t.head).to,-1))),shift:e=>tl(e,(t=>ra.OF.cursor(e.lineBlockAt(t.head).to)))},{key:"Ctrl-d",run:vl},{key:"Ctrl-h",run:yl},{key:"Ctrl-k",run:e=>gl(e,(t=>{let n=e.lineBlockAt(t.head).to;return t.head{let{state:t,dispatch:n}=e;if(t.readOnly)return!1;let r=t.changeByRange((e=>({changes:{from:e.from,to:e.to,insert:ra.EY.of(["",""])},range:ra.OF.cursor(e.from)})));return n(t.update(r,{scrollIntoView:!0,userEvent:"input"})),!0}},{key:"Ctrl-t",run:e=>{let{state:t,dispatch:n}=e;if(t.readOnly)return!1;let r=t.changeByRange((e=>{if(!e.empty||0==e.from||e.from==t.doc.length)return{range:e};let n=e.from,r=t.doc.lineAt(n),i=n==r.from?n-1:(0,ra.zK)(r.text,n-r.from,!1)+r.from,o=n==r.to?n+1:(0,ra.zK)(r.text,n-r.from,!0)+r.from;return{changes:{from:i,to:o,insert:t.doc.slice(n,o).append(t.doc.slice(i,n))},range:ra.OF.cursor(o)}}));return!r.changes.empty&&(n(t.update(r,{scrollIntoView:!0,userEvent:"move.character"})),!0)}},{key:"Ctrl-v",run:Ka}],Nl=[{key:"ArrowLeft",run:za,shift:rl,preventDefault:!0},{key:"Mod-ArrowLeft",mac:"Alt-ArrowLeft",run:e=>ja(e,!Ba(e)),shift:e=>ol(e,!Ba(e)),preventDefault:!0},{mac:"Cmd-ArrowLeft",run:e=>La(e,(t=>Ja(e,t,!Ba(e)))),shift:e=>tl(e,(t=>Ja(e,t,!Ba(e)))),preventDefault:!0},{key:"ArrowRight",run:Za,shift:il,preventDefault:!0},{key:"Mod-ArrowRight",mac:"Alt-ArrowRight",run:e=>ja(e,Ba(e)),shift:e=>ol(e,Ba(e)),preventDefault:!0},{mac:"Cmd-ArrowRight",run:e=>La(e,(t=>Ja(e,t,Ba(e)))),shift:e=>tl(e,(t=>Ja(e,t,Ba(e)))),preventDefault:!0},{key:"ArrowUp",run:Wa,shift:al,preventDefault:!0},{mac:"Cmd-ArrowUp",run:dl,shift:pl},{mac:"Ctrl-ArrowUp",run:Va,shift:ul},{key:"ArrowDown",run:qa,shift:ll,preventDefault:!0},{mac:"Cmd-ArrowDown",run:fl,shift:ml},{mac:"Ctrl-ArrowDown",run:Ka,shift:hl},{key:"PageUp",run:Va,shift:ul},{key:"PageDown",run:Ka,shift:hl},{key:"Home",run:e=>La(e,(t=>Ja(e,t,!1))),shift:e=>tl(e,(t=>Ja(e,t,!1))),preventDefault:!0},{key:"Mod-Home",run:dl,shift:pl},{key:"End",run:e=>La(e,(t=>Ja(e,t,!0))),shift:e=>tl(e,(t=>Ja(e,t,!0))),preventDefault:!0},{key:"Mod-End",run:fl,shift:ml},{key:"Enter",run:Al},{key:"Mod-a",run:e=>{let{state:t,dispatch:n}=e;return n(t.update({selection:{anchor:0,head:t.doc.length},userEvent:"select"})),!0}},{key:"Backspace",run:yl,shift:yl},{key:"Delete",run:vl},{key:"Mod-Backspace",mac:"Alt-Backspace",run:xl},{key:"Mod-Delete",mac:"Alt-Delete",run:e=>kl(e,!0)},{mac:"Mod-Backspace",run:e=>gl(e,(t=>{let n=e.moveToLineBoundary(t,!1).head;return t.head>n?n:Math.max(0,t.head-1)}))},{mac:"Mod-Delete",run:e=>gl(e,(t=>{let n=e.moveToLineBoundary(t,!0).head;return t.head({mac:e.key,run:e.run,shift:e.shift})))),Ql=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:e=>La(e,(t=>Xa(e.state,t,!Ba(e)))),shift:e=>tl(e,(t=>Xa(e.state,t,!Ba(e))))},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:e=>La(e,(t=>Xa(e.state,t,Ba(e)))),shift:e=>tl(e,(t=>Xa(e.state,t,Ba(e))))},{key:"Alt-ArrowUp",run:e=>{let{state:t,dispatch:n}=e;return wl(t,n,!1)}},{key:"Shift-Alt-ArrowUp",run:e=>{let{state:t,dispatch:n}=e;return Tl(t,n,!1)}},{key:"Alt-ArrowDown",run:e=>{let{state:t,dispatch:n}=e;return wl(t,n,!0)}},{key:"Shift-Alt-ArrowDown",run:e=>{let{state:t,dispatch:n}=e;return Tl(t,n,!0)}},{key:"Escape",run:e=>{let{state:t,dispatch:n}=e,r=t.selection,i=null;return r.ranges.length>1?i=ra.OF.create([r.main]):r.main.empty||(i=ra.OF.create([ra.OF.cursor(r.main.head)])),!!i&&(n($a(t,i)),!0)}},{key:"Mod-Enter",run:El},{key:"Alt-l",mac:"Ctrl-l",run:e=>{let{state:t,dispatch:n}=e,r=Sl(t).map((e=>{let{from:n,to:r}=e;return ra.OF.range(n,Math.min(r+1,t.doc.length))}));return n(t.update({selection:ra.OF.create(r),userEvent:"select"})),!0}},{key:"Mod-i",run:e=>{let{state:t,dispatch:n}=e,r=Ma(t.selection,(e=>{var n;for(let r=(0,Vs.mv)(t).resolveStack(e.from,1);r;r=r.next){let{node:t}=r;if((t.from=e.to||t.to>e.to&&t.from<=e.from)&&(null===(n=t.parent)||void 0===n?void 0:n.parent))return ra.OF.range(t.to,t.from)}return e}));return n($a(t,r)),!0},preventDefault:!0},{key:"Mod-[",run:Rl},{key:"Mod-]",run:_l},{key:"Mod-Alt-\\",run:e=>{let{state:t,dispatch:n}=e;if(t.readOnly)return!1;let r=Object.create(null),i=new Vs.KB(t,{overrideIndentation:e=>{let t=r[e];return null==t?-1:t}}),o=Pl(t,((e,n,o)=>{let s=(0,Vs._v)(i,e.from);if(null==s)return;/\S/.test(e.text)||(s=0);let a=/^\s*/.exec(e.text)[0],l=(0,Vs.EI)(t,s);(a!=l||o.from{if(e.state.readOnly)return!1;let{state:t}=e,n=t.changes(Sl(t).map((e=>{let{from:n,to:r}=e;return n>0?n--:r{let n;if(e.lineWrapping){let r=e.lineBlockAt(t.head),i=e.coordsAtPos(t.head,t.assoc||1);i&&(n=r.bottom+e.documentTop-i.bottom+e.defaultLineHeight/2)}return e.moveVertically(t,!0,n)})).map(n);return e.dispatch({changes:n,selection:r,scrollIntoView:!0,userEvent:"delete.line"}),!0}},{key:"Shift-Mod-\\",run:e=>{let{state:t,dispatch:n}=e;return el(t,n,!1)}},{key:"Mod-/",run:e=>{let{state:t}=e,n=t.doc.lineAt(t.selection.main.from),r=ca(e.state,n.from);return r.line?sa(e):!!r.block&&la(e)}},{key:"Alt-A",run:aa},{key:"Ctrl-m",mac:"Shift-Alt-m",run:e=>(e.setTabFocusMode(),!0)}].concat(Nl),Ml={key:"Tab",run:_l,shift:Rl};function $l(){var e=arguments[0];"string"==typeof e&&(e=document.createElement(e));var t=1,n=arguments[1];if(n&&"object"==typeof n&&null==n.nodeType&&!Array.isArray(n)){for(var r in n)if(Object.prototype.hasOwnProperty.call(n,r)){var i=n[r];"string"==typeof i?e.setAttribute(r,i):null!=i&&(e[r]=i)}t++}for(;te.normalize("NFKD"):e=>e;class Fl{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.length,i=arguments.length>4?arguments[4]:void 0,o=arguments.length>5?arguments[5]:void 0;this.test=o,this.value={from:0,to:0},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=e.iterRange(n,r),this.bufferStart=n,this.normalize=i?e=>i(Il(e)):Il,this.query=this.normalize(t)}peek(){if(this.bufferPos==this.buffer.length){if(this.bufferStart+=this.buffer.length,this.iter.next(),this.iter.done)return-1;this.bufferPos=0,this.buffer=this.iter.value}return(0,ra.vS)(this.buffer,this.bufferPos)}next(){for(;this.matches.length;)this.matches.pop();return this.nextOverlapping()}nextOverlapping(){for(;;){let e=this.peek();if(e<0)return this.done=!0,this;let t=(0,ra.MK)(e),n=this.bufferStart+this.bufferPos;this.bufferPos+=(0,ra.Fh)(e);let r=this.normalize(t);for(let i=0,o=n;;i++){let e=r.charCodeAt(i),s=this.match(e,o,this.bufferPos+this.bufferStart);if(i==r.length-1){if(s)return this.value=s,this;break}o==n&&i3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:e.length;if(this.text=e,this.to=i,this.curLine="",this.done=!1,this.value=Bl,/\\[sWDnr]|\n|\r|\[\^/.test(t))return new Xl(e,t,n,r,i);this.re=new RegExp(t,zl+((null===n||void 0===n?void 0:n.ignoreCase)?"i":"")),this.test=null===n||void 0===n?void 0:n.test,this.iter=e.iter();let o=e.lineAt(r);this.curLineStart=o.from,this.matchPos=Hl(e,r),this.getLine(this.curLineStart)}getLine(e){this.iter.next(e),this.iter.lineBreak?this.curLine="":(this.curLine=this.iter.value,this.curLineStart+this.curLine.length>this.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}nextLine(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine="":this.getLine(0)}next(){for(let e=this.matchPos-this.curLineStart;;){this.re.lastIndex=e;let t=this.matchPos<=this.to&&this.re.exec(this.curLine);if(t){let n=this.curLineStart+t.index,r=n+t[0].length;if(this.matchPos=Hl(this.text,r+(n==r?1:0)),n==this.curLineStart+this.curLine.length&&this.nextLine(),(nthis.value.to)&&(!this.test||this.test(n,r,t)))return this.value={from:n,to:r,match:t},this;e=this.matchPos-this.curLineStart}else{if(!(this.curLineStart+this.curLine.length=n||r.to<=t){let r=new Ul(t,e.sliceString(t,n));return jl.set(e,r),r}if(r.from==t&&r.to==n)return r;let{text:i,from:o}=r;return o>t&&(i=e.sliceString(t,o)+i,o=t),r.to=this.to?this.to:this.text.lineAt(e).to}next(){for(;;){let e=this.re.lastIndex=this.matchPos-this.flat.from,t=this.re.exec(this.flat.text);if(t&&!t[0]&&t.index==e&&(this.re.lastIndex=e+1,t=this.re.exec(this.flat.text)),t){let e=this.flat.from+t.index,n=e+t[0].length;if((this.flat.to>=this.to||t.index+t[0].length<=this.flat.text.length-10)&&(!this.test||this.test(e,n,t)))return this.value={from:e,to:n,match:t},this.matchPos=Hl(this.text,n+(e==n?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=Ul.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+2*this.flat.text.length))}}}function Hl(e,t){if(t>=e.length)return t;let n,r=e.lineAt(t);for(;t=56320&&n<57344;)t++;return t}function Wl(e){let t=$l("input",{class:"cm-textfield",name:"line",value:String(e.state.doc.lineAt(e.state.selection.main.head).number)});function n(){let n=/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(t.value);if(!n)return;let{state:r}=e,i=r.doc.lineAt(r.selection.main.head),[,o,s,a,l]=n,c=a?+a.slice(1):0,u=s?+s:i.number;if(s&&l){let e=u/100;o&&(e=e*("-"==o?-1:1)+i.number/r.doc.lines),u=Math.round(r.doc.lines*e)}else s&&o&&(u=u*("-"==o?-1:1)+i.number);let h=r.doc.line(Math.max(1,Math.min(r.doc.lines,u))),d=ra.OF.cursor(h.from+Math.max(0,Math.min(c,h.length)));e.dispatch({effects:[ql.of(!1),ta.Lz.scrollIntoView(d.from,{y:"center"})],selection:d}),e.focus()}return{dom:$l("form",{class:"cm-gotoLine",onkeydown:t=>{27==t.keyCode?(t.preventDefault(),e.dispatch({effects:ql.of(!1)}),e.focus()):13==t.keyCode&&(t.preventDefault(),n())},onsubmit:e=>{e.preventDefault(),n()}},$l("label",e.state.phrase("Go to line"),": ",t)," ",$l("button",{class:"cm-button",type:"submit"},e.state.phrase("go")))}}"undefined"!=typeof Symbol&&(Zl.prototype[Symbol.iterator]=Xl.prototype[Symbol.iterator]=function(){return this});const ql=ra.Pe.define(),Yl=ra.sU.define({create:()=>!0,update(e,t){for(let n of t.effects)n.is(ql)&&(e=n.value);return e},provide:e=>ta.S7.from(e,(e=>e?Wl:null))}),Gl=ta.Lz.baseTheme({".cm-panel.cm-gotoLine":{padding:"2px 6px 4px","& label":{fontSize:"80%"}}}),Vl={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},Kl=ra.sj.define({combine:e=>(0,ra.QR)(e,Vl,{highlightWordAroundCursor:(e,t)=>e||t,minSelectionLength:Math.min,maxMatches:Math.min})});const Jl=ta.NZ.mark({class:"cm-selectionMatch"}),ec=ta.NZ.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function tc(e,t,n,r){return(0==n||e(t.sliceDoc(n-1,n))!=ra.Je.Word)&&(r==t.doc.length||e(t.sliceDoc(r,r+1))!=ra.Je.Word)}const nc=ta.Z9.fromClass(class{constructor(e){this.decorations=this.getDeco(e)}update(e){(e.selectionSet||e.docChanged||e.viewportChanged)&&(this.decorations=this.getDeco(e.view))}getDeco(e){let t=e.state.facet(Kl),{state:n}=e,r=n.selection;if(r.ranges.length>1)return ta.NZ.none;let i,o=r.main,s=null;if(o.empty){if(!t.highlightWordAroundCursor)return ta.NZ.none;let e=n.wordAt(o.head);if(!e)return ta.NZ.none;s=n.charCategorizer(o.head),i=n.sliceDoc(e.from,e.to)}else{let e=o.to-o.from;if(e200)return ta.NZ.none;if(t.wholeWords){if(i=n.sliceDoc(o.from,o.to),s=n.charCategorizer(o.head),!tc(s,n,o.from,o.to)||!function(e,t,n,r){return e(t.sliceDoc(n,n+1))==ra.Je.Word&&e(t.sliceDoc(r-1,r))==ra.Je.Word}(s,n,o.from,o.to))return ta.NZ.none}else if(i=n.sliceDoc(o.from,o.to),!i)return ta.NZ.none}let a=[];for(let l of e.visibleRanges){let e=new Fl(n.doc,i,l.from,l.to);for(;!e.next().done;){let{from:r,to:i}=e.value;if((!s||tc(s,n,r,i))&&(o.empty&&r<=o.from&&i>=o.to?a.push(ec.range(r,i)):(r>=o.to||i<=o.from)&&a.push(Jl.range(r,i)),a.length>t.maxMatches))return ta.NZ.none}}return ta.NZ.set(a)}},{decorations:e=>e.decorations}),rc=ta.Lz.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}});const ic=ra.sj.define({combine:e=>(0,ra.QR)(e,{top:!1,caseSensitive:!1,literal:!1,regexp:!1,wholeWord:!1,createPanel:e=>new Nc(e),scrollToMatch:e=>ta.Lz.scrollIntoView(e)})});class oc{constructor(e){this.search=e.search,this.caseSensitive=!!e.caseSensitive,this.literal=!!e.literal,this.regexp=!!e.regexp,this.replace=e.replace||"",this.valid=!!this.search&&(!this.regexp||function(e){try{return new RegExp(e,zl),!0}catch(t){return!1}}(this.search)),this.unquoted=this.unquote(this.search),this.wholeWord=!!e.wholeWord}unquote(e){return this.literal?e:e.replace(/\\([nrt\\])/g,((e,t)=>"n"==t?"\n":"r"==t?"\r":"t"==t?"\t":"\\"))}eq(e){return this.search==e.search&&this.replace==e.replace&&this.caseSensitive==e.caseSensitive&&this.regexp==e.regexp&&this.wholeWord==e.wholeWord}create(){return this.regexp?new dc(this):new lc(this)}getCursor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0,r=e.doc?e:ra.$t.create({doc:e});return null==n&&(n=r.doc.length),this.regexp?cc(this,r,t,n):ac(this,r,t,n)}}class sc{constructor(e){this.spec=e}}function ac(e,t,n,r){return new Fl(t.doc,e.unquoted,n,r,e.caseSensitive?void 0:e=>e.toLowerCase(),e.wholeWord?(i=t.doc,o=t.charCategorizer(t.selection.main.head),(e,t,n,r)=>((r>e||r+n.length=t)return null;r.push(n.value)}return r}highlight(e,t,n,r){let i=ac(this.spec,e,Math.max(0,t-this.spec.unquoted.length),Math.min(n+this.spec.unquoted.length,e.doc.length));for(;!i.next().done;)r(i.value.from,i.value.to)}}function cc(e,t,n,r){return new Zl(t.doc,e.search,{ignoreCase:!e.caseSensitive,test:e.wholeWord?(i=t.charCategorizer(t.selection.main.head),(e,t,n)=>!n[0].length||(i(uc(n.input,n.index))!=ra.Je.Word||i(hc(n.input,n.index))!=ra.Je.Word)&&(i(hc(n.input,n.index+n[0].length))!=ra.Je.Word||i(uc(n.input,n.index+n[0].length))!=ra.Je.Word)):void 0},n,r);var i}function uc(e,t){return e.slice((0,ra.zK)(e,t,!1),t)}function hc(e,t){return e.slice(t,(0,ra.zK)(e,t))}class dc extends sc{nextMatch(e,t,n){let r=cc(this.spec,e,n,e.doc.length).next();return r.done&&(r=cc(this.spec,e,0,t).next()),r.done?null:r.value}prevMatchInRange(e,t,n){for(let r=1;;r++){let i=Math.max(t,n-1e4*r),o=cc(this.spec,e,i,n),s=null;for(;!o.next().done;)s=o.value;if(s&&(i==t||s.from>i+10))return s;if(i==t)return null}}prevMatch(e,t,n){return this.prevMatchInRange(e,0,t)||this.prevMatchInRange(e,n,e.doc.length)}getReplacement(e){return this.spec.unquote(this.spec.replace).replace(/\$([$&\d+])/g,((t,n)=>"$"==n?"$":"&"==n?e.match[0]:"0"!=n&&+n=t)return null;r.push(n.value)}return r}highlight(e,t,n,r){let i=cc(this.spec,e,Math.max(0,t-250),Math.min(n+250,e.doc.length));for(;!i.next().done;)r(i.value.from,i.value.to)}}const fc=ra.Pe.define(),pc=ra.Pe.define(),mc=ra.sU.define({create:e=>new gc(Ec(e).create(),null),update(e,t){for(let n of t.effects)n.is(fc)?e=new gc(n.value.create(),e.panel):n.is(pc)&&(e=new gc(e.query,n.value?Ac:null));return e},provide:e=>ta.S7.from(e,(e=>e.panel))});class gc{constructor(e,t){this.query=e,this.panel=t}}const Oc=ta.NZ.mark({class:"cm-searchMatch"}),bc=ta.NZ.mark({class:"cm-searchMatch cm-searchMatch-selected"}),yc=ta.Z9.fromClass(class{constructor(e){this.view=e,this.decorations=this.highlight(e.state.field(mc))}update(e){let t=e.state.field(mc);(t!=e.startState.field(mc)||e.docChanged||e.selectionSet||e.viewportChanged)&&(this.decorations=this.highlight(t))}highlight(e){let{query:t,panel:n}=e;if(!n||!t.spec.valid)return ta.NZ.none;let{view:r}=this,i=new ra.vB;for(let o=0,s=r.visibleRanges,a=s.length;os[o+1].from-500;)n=s[++o].to;t.highlight(r.state,e,n,((e,t)=>{let n=r.state.selection.ranges.some((n=>n.from==e&&n.to==t));i.add(e,t,n?bc:Oc)}))}return i.finish()}},{decorations:e=>e.decorations});function vc(e){return t=>{let n=t.state.field(mc,!1);return n&&n.query.spec.valid?e(t,n):_c(t)}}const kc=vc(((e,t)=>{let{query:n}=t,{to:r}=e.state.selection.main,i=n.nextMatch(e.state,r,r);if(!i)return!1;let o=ra.OF.single(i.from,i.to),s=e.state.facet(ic);return e.dispatch({selection:o,effects:[Lc(e,i),s.scrollToMatch(o.main,e)],userEvent:"select.search"}),Pc(e),!0})),xc=vc(((e,t)=>{let{query:n}=t,{state:r}=e,{from:i}=r.selection.main,o=n.prevMatch(r,i,i);if(!o)return!1;let s=ra.OF.single(o.from,o.to),a=e.state.facet(ic);return e.dispatch({selection:s,effects:[Lc(e,o),a.scrollToMatch(s.main,e)],userEvent:"select.search"}),Pc(e),!0})),Sc=vc(((e,t)=>{let{query:n}=t,r=n.matchAll(e.state,1e3);return!(!r||!r.length)&&(e.dispatch({selection:ra.OF.create(r.map((e=>ra.OF.range(e.from,e.to)))),userEvent:"select.search.matches"}),!0)})),wc=vc(((e,t)=>{let{query:n}=t,{state:r}=e,{from:i,to:o}=r.selection.main;if(r.readOnly)return!1;let s=n.nextMatch(r,i,i);if(!s)return!1;let a,l,c=[],u=[];if(s.from==i&&s.to==o&&(l=r.toText(n.getReplacement(s)),c.push({from:s.from,to:s.to,insert:l}),s=n.nextMatch(r,s.from,s.to),u.push(ta.Lz.announce.of(r.phrase("replaced match on line $",r.doc.lineAt(i).number)+"."))),s){let t=0==c.length||c[0].from>=s.to?0:s.to-s.from-l.length;a=ra.OF.single(s.from-t,s.to-t),u.push(Lc(e,s)),u.push(r.facet(ic).scrollToMatch(a.main,e))}return e.dispatch({changes:c,selection:a,effects:u,userEvent:"input.replace"}),!0})),Tc=vc(((e,t)=>{let{query:n}=t;if(e.state.readOnly)return!1;let r=n.matchAll(e.state,1e9).map((e=>{let{from:t,to:r}=e;return{from:t,to:r,insert:n.getReplacement(e)}}));if(!r.length)return!1;let i=e.state.phrase("replaced $ matches",r.length)+".";return e.dispatch({changes:r,effects:ta.Lz.announce.of(i),userEvent:"input.replace.all"}),!0}));function Ac(e){return e.state.facet(ic).createPanel(e)}function Ec(e,t){var n,r,i,o,s;let a=e.selection.main,l=a.empty||a.to>a.from+100?"":e.sliceDoc(a.from,a.to);if(t&&!l)return t;let c=e.facet(ic);return new oc({search:(null!==(n=null===t||void 0===t?void 0:t.literal)&&void 0!==n?n:c.literal)?l:l.replace(/\n/g,"\\n"),caseSensitive:null!==(r=null===t||void 0===t?void 0:t.caseSensitive)&&void 0!==r?r:c.caseSensitive,literal:null!==(i=null===t||void 0===t?void 0:t.literal)&&void 0!==i?i:c.literal,regexp:null!==(o=null===t||void 0===t?void 0:t.regexp)&&void 0!==o?o:c.regexp,wholeWord:null!==(s=null===t||void 0===t?void 0:t.wholeWord)&&void 0!==s?s:c.wholeWord})}function Cc(e){let t=(0,ta.ld)(e,Ac);return t&&t.dom.querySelector("[main-field]")}function Pc(e){let t=Cc(e);t&&t==e.root.activeElement&&t.select()}const _c=e=>{let t=e.state.field(mc,!1);if(t&&t.panel){let n=Cc(e);if(n&&n!=e.root.activeElement){let r=Ec(e.state,t.query.spec);r.valid&&e.dispatch({effects:fc.of(r)}),n.focus(),n.select()}}else e.dispatch({effects:[pc.of(!0),t?fc.of(Ec(e.state,t.query.spec)):ra.Pe.appendConfig.of(Fc)]});return!0},Rc=e=>{let t=e.state.field(mc,!1);if(!t||!t.panel)return!1;let n=(0,ta.ld)(e,Ac);return n&&n.dom.contains(e.root.activeElement)&&e.focus(),e.dispatch({effects:pc.of(!1)}),!0},Dc=[{key:"Mod-f",run:_c,scope:"editor search-panel"},{key:"F3",run:kc,shift:xc,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:kc,shift:xc,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:Rc,scope:"editor search-panel"},{key:"Mod-Shift-l",run:e=>{let{state:t,dispatch:n}=e,r=t.selection;if(r.ranges.length>1||r.main.empty)return!1;let{from:i,to:o}=r.main,s=[],a=0;for(let l=new Fl(t.doc,t.sliceDoc(i,o));!l.next().done;){if(s.length>1e3)return!1;l.value.from==i&&(a=s.length),s.push(ra.OF.range(l.value.from,l.value.to))}return n(t.update({selection:ra.OF.create(s,a),userEvent:"select.search.matches"})),!0}},{key:"Mod-Alt-g",run:e=>{let t=(0,ta.ld)(e,Wl);if(!t){let n=[ql.of(!0)];null==e.state.field(Yl,!1)&&n.push(ra.Pe.appendConfig.of([Yl,Gl])),e.dispatch({effects:n}),t=(0,ta.ld)(e,Wl)}return t&&t.dom.querySelector("input").select(),!0}},{key:"Mod-d",run:e=>{let{state:t,dispatch:n}=e,{ranges:r}=t.selection;if(r.some((e=>e.from===e.to)))return(e=>{let{state:t,dispatch:n}=e,{selection:r}=t,i=ra.OF.create(r.ranges.map((e=>t.wordAt(e.head)||ra.OF.cursor(e.head))),r.mainIndex);return!i.eq(r)&&(n(t.update({selection:i})),!0)})({state:t,dispatch:n});let i=t.sliceDoc(r[0].from,r[0].to);if(t.selection.ranges.some((e=>t.sliceDoc(e.from,e.to)!=i)))return!1;let o=function(e,t){let{main:n,ranges:r}=e.selection,i=e.wordAt(n.head),o=i&&i.from==n.from&&i.to==n.to;for(let s=!1,a=new Fl(e.doc,t,r[r.length-1].to);;){if(a.next(),!a.done){if(s&&r.some((e=>e.from==a.value.from)))continue;if(o){let t=e.wordAt(a.value.from);if(!t||t.from!=a.value.from||t.to!=a.value.to)continue}return a.value}if(s)return null;a=new Fl(e.doc,t,0,Math.max(0,r[r.length-1].from-1)),s=!0}}(t,i);return!!o&&(n(t.update({selection:t.selection.addRange(ra.OF.range(o.from,o.to),!1),effects:ta.Lz.scrollIntoView(o.to)})),!0)},preventDefault:!0}];class Nc{constructor(e){this.view=e;let t=this.query=e.state.field(mc).query.spec;function n(e,t,n){return $l("button",{class:"cm-button",name:e,onclick:t,type:"button"},n)}this.commit=this.commit.bind(this),this.searchField=$l("input",{value:t.search,placeholder:Qc(e,"Find"),"aria-label":Qc(e,"Find"),class:"cm-textfield",name:"search",form:"","main-field":"true",onchange:this.commit,onkeyup:this.commit}),this.replaceField=$l("input",{value:t.replace,placeholder:Qc(e,"Replace"),"aria-label":Qc(e,"Replace"),class:"cm-textfield",name:"replace",form:"",onchange:this.commit,onkeyup:this.commit}),this.caseField=$l("input",{type:"checkbox",name:"case",form:"",checked:t.caseSensitive,onchange:this.commit}),this.reField=$l("input",{type:"checkbox",name:"re",form:"",checked:t.regexp,onchange:this.commit}),this.wordField=$l("input",{type:"checkbox",name:"word",form:"",checked:t.wholeWord,onchange:this.commit}),this.dom=$l("div",{onkeydown:e=>this.keydown(e),class:"cm-search"},[this.searchField,n("next",(()=>kc(e)),[Qc(e,"next")]),n("prev",(()=>xc(e)),[Qc(e,"previous")]),n("select",(()=>Sc(e)),[Qc(e,"all")]),$l("label",null,[this.caseField,Qc(e,"match case")]),$l("label",null,[this.reField,Qc(e,"regexp")]),$l("label",null,[this.wordField,Qc(e,"by word")]),...e.state.readOnly?[]:[$l("br"),this.replaceField,n("replace",(()=>wc(e)),[Qc(e,"replace")]),n("replaceAll",(()=>Tc(e)),[Qc(e,"replace all")])],$l("button",{name:"close",onclick:()=>Rc(e),"aria-label":Qc(e,"close"),type:"button"},["\xd7"])])}commit(){let e=new oc({search:this.searchField.value,caseSensitive:this.caseField.checked,regexp:this.reField.checked,wholeWord:this.wordField.checked,replace:this.replaceField.value});e.eq(this.query)||(this.query=e,this.view.dispatch({effects:fc.of(e)}))}keydown(e){(0,ta.TS)(this.view,e,"search-panel")?e.preventDefault():13==e.keyCode&&e.target==this.searchField?(e.preventDefault(),(e.shiftKey?xc:kc)(this.view)):13==e.keyCode&&e.target==this.replaceField&&(e.preventDefault(),wc(this.view))}update(e){for(let t of e.transactions)for(let e of t.effects)e.is(fc)&&!e.value.eq(this.query)&&this.setQuery(e.value)}setQuery(e){this.query=e,this.searchField.value=e.search,this.replaceField.value=e.replace,this.caseField.checked=e.caseSensitive,this.reField.checked=e.regexp,this.wordField.checked=e.wholeWord}mount(){this.searchField.select()}get pos(){return 80}get top(){return this.view.state.facet(ic).top}}function Qc(e,t){return e.state.phrase(t)}const Mc=30,$c=/[\s\.,:;?!]/;function Lc(e,t){let{from:n,to:r}=t,i=e.state.doc.lineAt(n),o=e.state.doc.lineAt(r).to,s=Math.max(i.from,n-Mc),a=Math.min(o,r+Mc),l=e.state.sliceDoc(s,a);if(s!=i.from)for(let c=0;cl.length-Mc;c--)if(!$c.test(l[c-1])&&$c.test(l[c])){l=l.slice(0,c);break}return ta.Lz.announce.of(`${e.state.phrase("current match")}. ${l} ${e.state.phrase("on line")} ${i.number}.`)}const Ic=ta.Lz.baseTheme({".cm-panel.cm-search":{padding:"2px 6px 4px",position:"relative","& [name=close]":{position:"absolute",top:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:0,margin:0},"& input, & button, & label":{margin:".2em .6em .2em 0"},"& input[type=checkbox]":{marginRight:".2em"},"& label":{fontSize:"80%",whiteSpace:"pre"}},"&light .cm-searchMatch":{backgroundColor:"#ffff0054"},"&dark .cm-searchMatch":{backgroundColor:"#00ffff8a"},"&light .cm-searchMatch-selected":{backgroundColor:"#ff6a0054"},"&dark .cm-searchMatch-selected":{backgroundColor:"#ff00ff8a"}}),Fc=[mc,ra.Nb.low(yc),Ic];var Bc=n(5045);class zc{constructor(e,t,n){this.from=e,this.to=t,this.diagnostic=n}}class Zc{constructor(e,t,n){this.diagnostics=e,this.panel=t,this.selected=n}static init(e,t,n){let r=e,i=n.facet(tu).markerFilter;i&&(r=i(r,n));let o=ta.NZ.set(r.map((e=>e.from==e.to||e.from==e.to-1&&n.doc.lineAt(e.from).to==e.from?ta.NZ.widget({widget:new iu(e),diagnostic:e}).range(e.from):ta.NZ.mark({attributes:{class:"cm-lintRange cm-lintRange-"+e.severity+(e.markClass?" "+e.markClass:"")},diagnostic:e}).range(e.from,e.to))),!0);return new Zc(o,t,jc(o))}}function jc(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=null;return e.between(n,1e9,((e,n,i)=>{let{spec:o}=i;if(!t||o.diagnostic==t)return r=new zc(e,n,o.diagnostic),!1})),r}function Uc(e,t){let n=t.pos,r=t.end||n,i=e.state.facet(tu).hideOn(e,n,r);if(null!=i)return i;let o=e.startState.doc.lineAt(t.pos);return!(!e.effects.some((e=>e.is(Hc)))&&!e.changes.touchesRange(o.from,Math.max(o.to,r)))}function Xc(e,t){return e.field(Yc,!1)?t:t.concat(ra.Pe.appendConfig.of(uu))}const Hc=ra.Pe.define(),Wc=ra.Pe.define(),qc=ra.Pe.define(),Yc=ra.sU.define({create:()=>new Zc(ta.NZ.none,null,null),update(e,t){if(t.docChanged&&e.diagnostics.size){let n=e.diagnostics.map(t.changes),r=null,i=e.panel;if(e.selected){let i=t.changes.mapPos(e.selected.from,1);r=jc(n,e.selected.diagnostic,i)||jc(n,null,i)}!n.size&&i&&t.state.facet(tu).autoPanel&&(i=null),e=new Zc(n,i,r)}for(let n of t.effects)if(n.is(Hc)){let r=t.state.facet(tu).autoPanel?n.value.length?su.open:null:e.panel;e=Zc.init(n.value,r,t.state)}else n.is(Wc)?e=new Zc(e.diagnostics,n.value?su.open:null,e.selected):n.is(qc)&&(e=new Zc(e.diagnostics,e.panel,n.value));return e},provide:e=>[ta.S7.from(e,(e=>e.panel)),ta.Lz.decorations.from(e,(e=>e.diagnostics))]});const Gc=ta.NZ.mark({class:"cm-lintRange cm-lintRange-active"});function Vc(e,t,n){let{diagnostics:r}=e.state.field(Yc),i=[],o=2e8,s=0;r.between(t-(n<0?1:0),t+(n>0?1:0),((e,r,a)=>{let{spec:l}=a;t>=e&&t<=r&&(e==r||(t>e||n>0)&&(t({dom:Kc(e,i)})}:null}function Kc(e,t){return $l("ul",{class:"cm-tooltip-lint"},t.map((t=>ru(e,t,!1))))}const Jc=e=>{let t=e.state.field(Yc,!1);return!(!t||!t.panel)&&(e.dispatch({effects:Wc.of(!1)}),!0)},eu=[{key:"Mod-Shift-m",run:e=>{let t=e.state.field(Yc,!1);t&&t.panel||e.dispatch({effects:Xc(e.state,[Wc.of(!0)])});let n=(0,ta.ld)(e,su.open);return n&&n.dom.querySelector(".cm-panel-lint ul").focus(),!0},preventDefault:!0},{key:"F8",run:e=>{let t=e.state.field(Yc,!1);if(!t)return!1;let n=e.state.selection.main,r=t.diagnostics.iter(n.to+1);return!(!r.value&&(r=t.diagnostics.iter(0),!r.value||r.from==n.from&&r.to==n.to))&&(e.dispatch({selection:{anchor:r.from,head:r.to},scrollIntoView:!0}),!0)}}],tu=ra.sj.define({combine:e=>Object.assign({sources:e.map((e=>e.source)).filter((e=>null!=e))},(0,ra.QR)(e.map((e=>e.config)),{delay:750,markerFilter:null,tooltipFilter:null,needsRefresh:null,hideOn:()=>null},{needsRefresh:(e,t)=>e?t?n=>e(n)||t(n):e:t}))});function nu(e){let t=[];if(e)e:for(let{name:n}of e){for(let e=0;ee.toLowerCase()==r.toLowerCase()))){t.push(r);continue e}}t.push("")}return t}function ru(e,t,n){var r;let i=n?nu(t.actions):[];return $l("li",{class:"cm-diagnostic cm-diagnostic-"+t.severity},$l("span",{class:"cm-diagnosticText"},t.renderMessage?t.renderMessage(e):t.message),null===(r=t.actions)||void 0===r?void 0:r.map(((n,r)=>{let o=!1,s=r=>{if(r.preventDefault(),o)return;o=!0;let i=jc(e.state.field(Yc).diagnostics,t);i&&n.apply(e,i.from,i.to)},{name:a}=n,l=i[r]?a.indexOf(i[r]):-1,c=l<0?a:[a.slice(0,l),$l("u",a.slice(l,l+1)),a.slice(l+1)];return $l("button",{type:"button",class:"cm-diagnosticAction",onclick:s,onmousedown:s,"aria-label":` Action: ${a}${l<0?"":` (access key "${i[r]})"`}.`},c)})),t.source&&$l("div",{class:"cm-diagnosticSource"},t.source))}class iu extends ta.xO{constructor(e){super(),this.diagnostic=e}eq(e){return e.diagnostic==this.diagnostic}toDOM(){return $l("span",{class:"cm-lintPoint cm-lintPoint-"+this.diagnostic.severity})}}class ou{constructor(e,t){this.diagnostic=t,this.id="item_"+Math.floor(4294967295*Math.random()).toString(16),this.dom=ru(e,t,!0),this.dom.id=this.id,this.dom.setAttribute("role","option")}}class su{constructor(e){this.view=e,this.items=[];this.list=$l("ul",{tabIndex:0,role:"listbox","aria-label":this.view.state.phrase("Diagnostics"),onkeydown:t=>{if(27==t.keyCode)Jc(this.view),this.view.focus();else if(38==t.keyCode||33==t.keyCode)this.moveSelection((this.selectedIndex-1+this.items.length)%this.items.length);else if(40==t.keyCode||34==t.keyCode)this.moveSelection((this.selectedIndex+1)%this.items.length);else if(36==t.keyCode)this.moveSelection(0);else if(35==t.keyCode)this.moveSelection(this.items.length-1);else if(13==t.keyCode)this.view.focus();else{if(!(t.keyCode>=65&&t.keyCode<=90&&this.selectedIndex>=0))return;{let{diagnostic:n}=this.items[this.selectedIndex],r=nu(n.actions);for(let i=0;i{for(let t=0;tJc(this.view)},"\xd7")),this.update()}get selectedIndex(){let e=this.view.state.field(Yc).selected;if(!e)return-1;for(let t=0;t{let a,{spec:l}=s,c=-1;for(let t=n;tn&&(this.items.splice(n,c-n),r=!0)),t&&a.diagnostic==t.diagnostic?a.dom.hasAttribute("aria-selected")||(a.dom.setAttribute("aria-selected","true"),i=a):a.dom.hasAttribute("aria-selected")&&a.dom.removeAttribute("aria-selected"),n++}));n({sel:i.dom.getBoundingClientRect(),panel:this.list.getBoundingClientRect()}),write:e=>{let{sel:t,panel:n}=e,r=n.height/this.list.offsetHeight;t.topn.bottom&&(this.list.scrollTop+=(t.bottom-n.bottom)/r)}})):this.selectedIndex<0&&this.list.removeAttribute("aria-activedescendant"),r&&this.sync()}sync(){let e=this.list.firstChild;function t(){let t=e;e=t.nextSibling,t.remove()}for(let n of this.items)if(n.dom.parentNode==this.list){for(;e!=n.dom;)t();e=n.dom.nextSibling}else this.list.insertBefore(n.dom,e);for(;e;)t()}moveSelection(e){if(this.selectedIndex<0)return;let t=jc(this.view.state.field(Yc).diagnostics,this.items[e].diagnostic);t&&this.view.dispatch({selection:{anchor:t.from,head:t.to},scrollIntoView:!0,effects:qc.of(t)})}static open(e){return new su(e)}}function au(e){return`url('data:image/svg+xml,1&&void 0!==arguments[1]?arguments[1]:'viewBox="0 0 40 40"'}>${encodeURIComponent(e)}')`}function lu(e){return au(``,'width="6" height="3"')}const cu=ta.Lz.baseTheme({".cm-diagnostic":{padding:"3px 6px 3px 8px",marginLeft:"-1px",display:"block",whiteSpace:"pre-wrap"},".cm-diagnostic-error":{borderLeft:"5px solid #d11"},".cm-diagnostic-warning":{borderLeft:"5px solid orange"},".cm-diagnostic-info":{borderLeft:"5px solid #999"},".cm-diagnostic-hint":{borderLeft:"5px solid #66d"},".cm-diagnosticAction":{font:"inherit",border:"none",padding:"2px 4px",backgroundColor:"#444",color:"white",borderRadius:"3px",marginLeft:"8px",cursor:"pointer"},".cm-diagnosticSource":{fontSize:"70%",opacity:.7},".cm-lintRange":{backgroundPosition:"left bottom",backgroundRepeat:"repeat-x",paddingBottom:"0.7px"},".cm-lintRange-error":{backgroundImage:lu("#d11")},".cm-lintRange-warning":{backgroundImage:lu("orange")},".cm-lintRange-info":{backgroundImage:lu("#999")},".cm-lintRange-hint":{backgroundImage:lu("#66d")},".cm-lintRange-active":{backgroundColor:"#ffdd9980"},".cm-tooltip-lint":{padding:0,margin:0},".cm-lintPoint":{position:"relative","&:after":{content:'""',position:"absolute",bottom:0,left:"-2px",borderLeft:"3px solid transparent",borderRight:"3px solid transparent",borderBottom:"4px solid #d11"}},".cm-lintPoint-warning":{"&:after":{borderBottomColor:"orange"}},".cm-lintPoint-info":{"&:after":{borderBottomColor:"#999"}},".cm-lintPoint-hint":{"&:after":{borderBottomColor:"#66d"}},".cm-panel.cm-panel-lint":{position:"relative","& ul":{maxHeight:"100px",overflowY:"auto","& [aria-selected]":{backgroundColor:"#ddd","& u":{textDecoration:"underline"}},"&:focus [aria-selected]":{background_fallback:"#bdf",backgroundColor:"Highlight",color_fallback:"white",color:"HighlightText"},"& u":{textDecoration:"none"},padding:0,margin:0},"& [name=close]":{position:"absolute",top:"0",right:"2px",background:"inherit",border:"none",font:"inherit",padding:0,margin:0}}});ta.wJ;const uu=[Yc,ta.Lz.decorations.compute([Yc],(e=>{let{selected:t,panel:n}=e.field(Yc);return t&&n&&t.from!=t.to?ta.NZ.set([Gc.range(t.from,t.to)]):ta.NZ.none})),(0,ta.Ux)(Vc,{hideOn:Uc}),cu];var hu=function(e){void 0===e&&(e={});var{crosshairCursor:t=!1}=e,n=[];!1!==e.closeBracketsKeymap&&(n=n.concat(Bc.Bc)),!1!==e.defaultKeymap&&(n=n.concat(Ql)),!1!==e.searchKeymap&&(n=n.concat(Dc)),!1!==e.historyKeymap&&(n=n.concat(Qa)),!1!==e.foldKeymap&&(n=n.concat(Vs.f7)),!1!==e.completionKeymap&&(n=n.concat(Bc.OO)),!1!==e.lintKeymap&&(n=n.concat(eu));var r=[];return!1!==e.lineNumbers&&r.push((0,ta.$K)()),!1!==e.highlightActiveLineGutter&&r.push((0,ta.Wu)()),!1!==e.highlightSpecialChars&&r.push((0,ta.N$)()),!1!==e.history&&r.push(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return[Oa,ga.of(e),ta.Lz.domEventHandlers({beforeinput(e,t){let n="historyUndo"==e.inputType?ya:"historyRedo"==e.inputType?va:null;return!!n&&(e.preventDefault(),n(t))}})]}()),!1!==e.foldGutter&&r.push((0,Vs.Lv)()),!1!==e.drawSelection&&r.push((0,ta.VH)()),!1!==e.dropCursor&&r.push((0,ta.A)()),!1!==e.allowMultipleSelections&&r.push(ra.$t.allowMultipleSelections.of(!0)),!1!==e.indentOnInput&&r.push((0,Vs.WD)()),!1!==e.syntaxHighlighting&&r.push((0,Vs.y9)(Vs.Zt,{fallback:!0})),!1!==e.bracketMatching&&r.push((0,Vs.SG)()),!1!==e.closeBrackets&&r.push((0,Bc.wm)()),!1!==e.autocompletion&&r.push((0,Bc.yU)()),!1!==e.rectangularSelection&&r.push((0,ta.D4)()),!1!==t&&r.push((0,ta.HJ)()),!1!==e.highlightActiveLine&&r.push((0,ta.dz)()),!1!==e.highlightSelectionMatches&&r.push(function(e){let t=[rc,nc];return e&&t.push(Kl.of(e)),t}()),e.tabSize&&"number"===typeof e.tabSize&&r.push(Vs.Xt.of(" ".repeat(e.tabSize))),r.concat([ta.w4.of(n.flat())]).filter(Boolean)},du=n(1345);const fu="#e5c07b",pu="#e06c75",mu="#56b6c2",gu="#ffffff",Ou="#abb2bf",bu="#7d8799",yu="#61afef",vu="#98c379",ku="#d19a66",xu="#c678dd",Su="#21252b",wu="#2c313a",Tu="#282c34",Au="#353a42",Eu="#3E4451",Cu="#528bff",Pu=ta.Lz.theme({"&":{color:Ou,backgroundColor:Tu},".cm-content":{caretColor:Cu},".cm-cursor, .cm-dropCursor":{borderLeftColor:Cu},"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground, .cm-selectionBackground, .cm-content ::selection":{backgroundColor:Eu},".cm-panels":{backgroundColor:Su,color:Ou},".cm-panels.cm-panels-top":{borderBottom:"2px solid black"},".cm-panels.cm-panels-bottom":{borderTop:"2px solid black"},".cm-searchMatch":{backgroundColor:"#72a1ff59",outline:"1px solid #457dff"},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:"#6199ff2f"},".cm-activeLine":{backgroundColor:"#6699ff0b"},".cm-selectionMatch":{backgroundColor:"#aafe661a"},"&.cm-focused .cm-matchingBracket, &.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bad0f847"},".cm-gutters":{backgroundColor:Tu,color:bu,border:"none"},".cm-activeLineGutter":{backgroundColor:wu},".cm-foldPlaceholder":{backgroundColor:"transparent",border:"none",color:"#ddd"},".cm-tooltip":{border:"none",backgroundColor:Au},".cm-tooltip .cm-tooltip-arrow:before":{borderTopColor:"transparent",borderBottomColor:"transparent"},".cm-tooltip .cm-tooltip-arrow:after":{borderTopColor:Au,borderBottomColor:Au},".cm-tooltip-autocomplete":{"& > ul > li[aria-selected]":{backgroundColor:wu,color:Ou}}},{dark:!0}),_u=Vs.cr.define([{tag:du._A.keyword,color:xu},{tag:[du._A.name,du._A.deleted,du._A.character,du._A.propertyName,du._A.macroName],color:pu},{tag:[du._A.function(du._A.variableName),du._A.labelName],color:yu},{tag:[du._A.color,du._A.constant(du._A.name),du._A.standard(du._A.name)],color:ku},{tag:[du._A.definition(du._A.name),du._A.separator],color:Ou},{tag:[du._A.typeName,du._A.className,du._A.number,du._A.changed,du._A.annotation,du._A.modifier,du._A.self,du._A.namespace],color:fu},{tag:[du._A.operator,du._A.operatorKeyword,du._A.url,du._A.escape,du._A.regexp,du._A.link,du._A.special(du._A.string)],color:mu},{tag:[du._A.meta,du._A.comment],color:bu},{tag:du._A.strong,fontWeight:"bold"},{tag:du._A.emphasis,fontStyle:"italic"},{tag:du._A.strikethrough,textDecoration:"line-through"},{tag:du._A.link,color:bu,textDecoration:"underline"},{tag:du._A.heading,fontWeight:"bold",color:pu},{tag:[du._A.atom,du._A.bool,du._A.special(du._A.variableName)],color:ku},{tag:[du._A.processingInstruction,du._A.string,du._A.inserted],color:vu},{tag:du._A.invalid,color:gu}]),Ru=[Pu,(0,Vs.y9)(_u)];var Du=ta.Lz.theme({"&":{backgroundColor:"#fff"}},{dark:!1}),Nu=ra.YH.define(),Qu=[];function Mu(e){var{value:t,selection:n,onChange:r,onStatistics:i,onCreateEditor:o,onUpdate:s,extensions:a=Qu,autoFocus:l,theme:c="light",height:u=null,minHeight:h=null,maxHeight:d=null,width:f=null,minWidth:p=null,maxWidth:m=null,placeholder:g="",editable:O=!0,readOnly:b=!1,indentWithTab:y=!0,basicSetup:v=!0,root:k,initialState:x}=e,[S,w]=(0,K.useState)(),[T,A]=(0,K.useState)(),[E,C]=(0,K.useState)(),P=ta.Lz.theme({"&":{height:u,minHeight:h,maxHeight:d,width:f,minWidth:p,maxWidth:m},"& .cm-scroller":{height:"100% !important"}}),_=ta.Lz.updateListener.of((e=>{if(e.docChanged&&"function"===typeof r&&!e.transactions.some((e=>e.annotation(Nu)))){var t=e.state.doc.toString();r(t,e)}i&&i((e=>({line:e.state.doc.lineAt(e.state.selection.main.from),lineCount:e.state.doc.lines,lineBreak:e.state.lineBreak,length:e.state.doc.length,readOnly:e.state.readOnly,tabSize:e.state.tabSize,selection:e.state.selection,selectionAsSingle:e.state.selection.asSingle().main,ranges:e.state.selection.ranges,selectionCode:e.state.sliceDoc(e.state.selection.main.from,e.state.selection.main.to),selections:e.state.selection.ranges.map((t=>e.state.sliceDoc(t.from,t.to))),selectedText:e.state.selection.ranges.some((e=>!e.empty))}))(e))})),R=function(e){void 0===e&&(e={});var{indentWithTab:t=!0,editable:n=!0,readOnly:r=!1,theme:i="light",placeholder:o="",basicSetup:s=!0}=e,a=[];switch(t&&a.unshift(ta.w4.of([Ml])),s&&("boolean"===typeof s?a.unshift(hu()):a.unshift(hu(s))),o&&a.unshift((0,ta.qf)(o)),i){case"light":a.push(Du);break;case"dark":a.push(Ru);break;case"none":break;default:a.push(i)}return!1===n&&a.push(ta.Lz.editable.of(!1)),r&&a.push(ra.$t.readOnly.of(!0)),[...a]}({theme:c,editable:O,readOnly:b,placeholder:g,indentWithTab:y,basicSetup:v}),D=[_,P,...R];return s&&"function"===typeof s&&D.push(ta.Lz.updateListener.of(s)),D=D.concat(a),(0,K.useEffect)((()=>{if(S&&!E){var e={doc:t,selection:n,extensions:D},r=x?ra.$t.fromJSON(x.json,e,x.fields):ra.$t.create(e);if(C(r),!T){var i=new ta.Lz({state:r,parent:S,root:k});A(i),o&&o(i,r)}}return()=>{T&&(C(void 0),A(void 0))}}),[S,E]),(0,K.useEffect)((()=>w(e.container)),[e.container]),(0,K.useEffect)((()=>()=>{T&&(T.destroy(),A(void 0))}),[T]),(0,K.useEffect)((()=>{l&&T&&T.focus()}),[l,T]),(0,K.useEffect)((()=>{T&&T.dispatch({effects:ra.Pe.reconfigure.of(D)})}),[c,a,u,h,d,f,p,m,g,O,b,y,v,r,s]),(0,K.useEffect)((()=>{if(void 0!==t){var e=T?T.state.doc.toString():"";T&&t!==e&&T.dispatch({changes:{from:0,to:e.length,insert:t||""},annotations:[Nu.of(!0)]})}}),[t,T]),{state:E,setState:C,view:T,setView:A,container:S,setContainer:w}}var $u=["className","value","selection","extensions","onChange","onStatistics","onCreateEditor","onUpdate","autoFocus","theme","height","minHeight","maxHeight","width","minWidth","maxWidth","basicSetup","placeholder","indentWithTab","editable","readOnly","root","initialState"],Lu=(0,K.forwardRef)(((e,t)=>{var{className:n,value:r="",selection:i,extensions:o=[],onChange:s,onStatistics:a,onCreateEditor:l,onUpdate:c,autoFocus:u,theme:h="light",height:d,minHeight:f,maxHeight:p,width:m,minWidth:g,maxWidth:O,basicSetup:b,placeholder:y,indentWithTab:v,editable:k,readOnly:x,root:S,initialState:w}=e,T=Nt(e,$u),A=(0,K.useRef)(null),{state:E,view:C,container:P}=Mu({container:A.current,root:S,value:r,autoFocus:u,theme:h,height:d,minHeight:f,maxHeight:p,width:m,minWidth:g,maxWidth:O,basicSetup:b,placeholder:y,indentWithTab:v,editable:k,readOnly:x,selection:i,onChange:s,onStatistics:a,onCreateEditor:l,onUpdate:c,extensions:o,initialState:w});if((0,K.useImperativeHandle)(t,(()=>({editor:A.current,state:E,view:C})),[A,P,E,C]),"string"!==typeof r)throw new Error("value must be typeof string but got "+typeof r);var _="string"===typeof h?"cm-theme-"+h:"cm-theme";return(0,Qt.jsx)("div",Dt({ref:A,className:_+(n?" "+n:"")},T))}));Lu.displayName="CodeMirror";const Iu=Lu;var Fu=n(4631);function Bu(e){return e&&"object"===typeof e?"position"in e||"type"in e?Zu(e.position):"start"in e||"end"in e?Zu(e):"line"in e||"column"in e?zu(e):"":""}function zu(e){return ju(e&&e.line)+":"+ju(e&&e.column)}function Zu(e){return zu(e&&e.start)+"-"+zu(e&&e.end)}function ju(e){return e&&"number"===typeof e?e:1}class Uu extends Error{constructor(e,t,n){const r=[null,null];let i={start:{line:null,column:null},end:{line:null,column:null}};if(super(),"string"===typeof t&&(n=t,t=void 0),"string"===typeof n){const e=n.indexOf(":");-1===e?r[1]=n:(r[0]=n.slice(0,e),r[1]=n.slice(e+1))}t&&("type"in t||"position"in t?t.position&&(i=t.position):"start"in t||"end"in t?i=t:("line"in t||"column"in t)&&(i.start=t)),this.name=Bu(t)||"1:1",this.message="object"===typeof e?e.message:e,this.stack="","object"===typeof e&&e.stack&&(this.stack=e.stack),this.reason=this.message,this.fatal,this.line=i.start.line,this.column=i.start.column,this.position=i,this.source=r[0],this.ruleId=r[1],this.file,this.actual,this.expected,this.url,this.note}}Uu.prototype.file="",Uu.prototype.name="",Uu.prototype.reason="",Uu.prototype.message="",Uu.prototype.stack="",Uu.prototype.fatal=null,Uu.prototype.column=null,Uu.prototype.line=null,Uu.prototype.source=null,Uu.prototype.ruleId=null,Uu.prototype.position=null;const Xu={basename:function(e,t){if(void 0!==t&&"string"!==typeof t)throw new TypeError('"ext" argument must be a string');Hu(e);let n,r=0,i=-1,o=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;o--;)if(47===e.charCodeAt(o)){if(n){r=o+1;break}}else i<0&&(n=!0,i=o+1);return i<0?"":e.slice(r,i)}if(t===e)return"";let s=-1,a=t.length-1;for(;o--;)if(47===e.charCodeAt(o)){if(n){r=o+1;break}}else s<0&&(n=!0,s=o+1),a>-1&&(e.charCodeAt(o)===t.charCodeAt(a--)?a<0&&(i=o):(a=-1,i=s));r===i?i=s:i<0&&(i=e.length);return e.slice(r,i)},dirname:function(e){if(Hu(e),0===e.length)return".";let t,n=-1,r=e.length;for(;--r;)if(47===e.charCodeAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.charCodeAt(0)?"/":".":1===n&&47===e.charCodeAt(0)?"//":e.slice(0,n)},extname:function(e){Hu(e);let t,n=e.length,r=-1,i=0,o=-1,s=0;for(;n--;){const a=e.charCodeAt(n);if(47!==a)r<0&&(t=!0,r=n+1),46===a?o<0?o=n:1!==s&&(s=1):o>-1&&(s=-1);else if(t){i=n+1;break}}if(o<0||r<0||0===s||1===s&&o===r-1&&o===i+1)return"";return e.slice(o,r)},join:function(){let e,t=-1;for(var n=arguments.length,r=new Array(n),i=0;i2){if(r=i.lastIndexOf("/"),r!==i.length-1){r<0?(i="",o=0):(i=i.slice(0,r),o=i.length-1-i.lastIndexOf("/")),s=l,a=0;continue}}else if(i.length>0){i="",o=0,s=l,a=0;continue}t&&(i=i.length>0?i+"/..":"..",o=2)}else i.length>0?i+="/"+e.slice(s+1,l):i=e.slice(s+1,l),o=l-s-1;s=l,a=0}else 46===n&&a>-1?a++:a=-1}return i}(e,!t);0!==n.length||t||(n=".");n.length>0&&47===e.charCodeAt(e.length-1)&&(n+="/");return t?"/"+n:n}(e)},sep:"/"};function Hu(e){if("string"!==typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Wu={cwd:function(){return"/"}};function qu(e){return null!==e&&"object"===typeof e&&e.href&&e.origin}function Yu(e){if("string"===typeof e)e=new URL(e);else if(!qu(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){const e=new TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){const e=new TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}const t=e.pathname;let n=-1;for(;++n1?l-1:0),u=1;ui.length;let c;l&&i.push(o);try{c=e.apply(this,i)}catch(r){if(l&&n)throw r;return o(r)}l||(c&&c.then&&"function"===typeof c.then?c.then(s,o):c instanceof Error?o(c):s(c))}function o(e){if(!n){n=!0;for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o{if(!e&&t&&n){const r=s.stringify(t,n);void 0===r||null===r||(!function(e){return"string"===typeof e||Fu(e)}(r)?n.result=r:n.value=r),o(e,n)}else o(e)}))}n(null,t)},s.processSync=function(e){let t;s.freeze(),lh("processSync",s.Parser),ch("processSync",s.Compiler);const n=fh(e);return s.process(n,r),dh("processSync","process",t),n;function r(e){t=!0,th(e)}},s;function s(){const t=e();let r=-1;for(;++r1?t-1:0),a=1;ai?0:i+t:t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);s0?(Oh(e,e.length,0,t),e):t}const yh={}.hasOwnProperty;function vh(e){const t={};let n=-1;for(;++no))return;const n=t.events.length;let i,a,l=n;for(;l--;)if("exit"===t.events[l][0]&&"chunkFlow"===t.events[l][1].type){if(i){a=t.events[l][1].end;break}i=!0}for(O(s),e=n;er;){const r=n[i];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function b(){r.write([null]),i=void 0,r=void 0,t.containerState._closeFlow=void 0}}},Fh={tokenize:function(e,t,n){return $h(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};const Bh={tokenize:function(e,t,n){return function(t){return Dh(t)?$h(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||_h(e)?t(e):n(e)}},partial:!0};function zh(e){const t={};let n,r,i,o,s,a,l,c=-1;for(;++c=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}},partial:!0};const Xh={tokenize:function(e){const t=this,n=e.attempt(Bh,(function(r){if(null===r)return void e.consume(r);return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}),e.attempt(this.parser.constructs.flowInitial,r,$h(e,e.attempt(this.parser.constructs.flow,r,e.attempt(jh,r)),"linePrefix")));return n;function r(r){if(null!==r)return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n;e.consume(r)}}};const Hh={resolveAll:Gh()},Wh=Yh("string"),qh=Yh("text");function Yh(e){return{tokenize:function(t){const n=this,r=this.parser.constructs[e],i=t.attempt(r,o,s);return o;function o(e){return l(e)?i(e):s(e)}function s(e){if(null!==e)return t.enter("data"),t.consume(e),a;t.consume(e)}function a(e){return l(e)?(t.exit("data"),i(e)):(t.consume(e),a)}function l(e){if(null===e)return!0;const t=r[e];let i=-1;if(t)for(;++i-1){const e=s[0];"string"===typeof e?s[0]=e.slice(r):s.shift()}o>0&&s.push(e[i].slice(0,o))}return s}(s,e)}function p(){const{line:e,column:t,offset:n,_index:i,_bufferIndex:o}=r;return{line:e,column:t,offset:n,_index:i,_bufferIndex:o}}function m(){let e;for(;r._index=3&&(null===o||_h(o))?(e.exit("thematicBreak"),t(o)):n(o)}function s(t){return t===r?(e.consume(t),i++,s):(e.exit("thematicBreakSequence"),Dh(t)?$h(e,o,"whitespace")(t):o(t))}}};const td={name:"list",tokenize:function(e,t,n){const r=this,i=r.events[r.events.length-1];let o=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0,s=0;return function(t){const i=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===i?!r.containerState.marker||t===r.containerState.marker:Eh(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),"listUnordered"===i)return e.enter("listItemPrefix"),42===t||45===t?e.check(ed,n,l)(t):l(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),a(t)}return n(t)};function a(t){return Eh(t)&&++s<10?(e.consume(t),a):(!r.interrupt||s<2)&&(r.containerState.marker?t===r.containerState.marker:41===t||46===t)?(e.exit("listItemValue"),l(t)):n(t)}function l(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(Bh,r.interrupt?n:c,e.attempt(nd,h,u))}function c(e){return r.containerState.initialBlankLine=!0,o++,h(e)}function u(t){return Dh(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),h):n(t)}function h(n){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}},continuation:{tokenize:function(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Bh,i,o);function i(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,$h(e,t,"listItemIndent",r.containerState.size+1)(n)}function o(n){return r.containerState.furtherBlankLines||!Dh(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,s(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(rd,t,s)(n))}function s(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,$h(e,e.attempt(td,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i)}}},exit:function(e){e.exit(this.containerState.type)}},nd={tokenize:function(e,t,n){const r=this;return $h(e,(function(e){const i=r.events[r.events.length-1];return!Dh(e)&&i&&"listItemPrefixWhitespace"===i[1].type?t(e):n(e)}),"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)},partial:!0},rd={tokenize:function(e,t,n){const r=this;return $h(e,(function(e){const i=r.events[r.events.length-1];return i&&"listItemIndent"===i[1].type&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)}),"listItemIndent",r.containerState.size+1)},partial:!0};const id={name:"blockQuote",tokenize:function(e,t,n){const r=this;return function(t){if(62===t){const n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),i}return n(t)};function i(n){return Dh(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}},continuation:{tokenize:function(e,t,n){const r=this;return function(t){if(Dh(t))return $h(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t);return i(t)};function i(r){return e.attempt(id,t,n)(r)}}},exit:function(e){e.exit("blockQuote")}};function od(e,t,n,r,i,o,s,a,l){const c=l||Number.POSITIVE_INFINITY;let u=0;return function(t){if(60===t)return e.enter(r),e.enter(i),e.enter(o),e.consume(t),e.exit(o),h;if(null===t||32===t||41===t||Ah(t))return n(t);return e.enter(r),e.enter(s),e.enter(a),e.enter("chunkString",{contentType:"string"}),p(t)};function h(n){return 62===n?(e.enter(o),e.consume(n),e.exit(o),e.exit(i),e.exit(r),t):(e.enter(a),e.enter("chunkString",{contentType:"string"}),d(n))}function d(t){return 62===t?(e.exit("chunkString"),e.exit(a),h(t)):null===t||60===t||_h(t)?n(t):(e.consume(t),92===t?f:d)}function f(t){return 60===t||62===t||92===t?(e.consume(t),d):d(t)}function p(i){return u||null!==i&&41!==i&&!Rh(i)?u999||null===h||91===h||93===h&&!a||94===h&&!l&&"_hiddenFootnoteSupport"in s.parser.constructs?n(h):93===h?(e.exit(o),e.enter(i),e.consume(h),e.exit(i),e.exit(r),t):_h(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),u(h))}function u(t){return null===t||91===t||93===t||_h(t)||l++>999?(e.exit("chunkString"),c(t)):(e.consume(t),a||(a=!Dh(t)),92===t?h:u)}function h(t){return 91===t||92===t||93===t?(e.consume(t),l++,u):u(t)}}function ad(e,t,n,r,i,o){let s;return function(t){if(34===t||39===t||40===t)return e.enter(r),e.enter(i),e.consume(t),e.exit(i),s=40===t?41:t,a;return n(t)};function a(n){return n===s?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(o),l(n))}function l(t){return t===s?(e.exit(o),a(s)):null===t?n(t):_h(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),$h(e,l,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(t))}function c(t){return t===s||null===t||_h(t)?(e.exit("chunkString"),l(t)):(e.consume(t),92===t?u:c)}function u(t){return t===s||92===t?(e.consume(t),c):c(t)}}function ld(e,t){let n;return function r(i){if(_h(i))return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r;if(Dh(i))return $h(e,r,n?"linePrefix":"lineSuffix")(i);return t(i)}}function cd(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const ud={name:"definition",tokenize:function(e,t,n){const r=this;let i;return function(t){return e.enter("definition"),function(t){return sd.call(r,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)}(t)};function o(t){return i=cd(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),s):n(t)}function s(t){return Rh(t)?ld(e,a)(t):a(t)}function a(t){return od(e,l,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function l(t){return e.attempt(hd,c,c)(t)}function c(t){return Dh(t)?$h(e,u,"whitespace")(t):u(t)}function u(o){return null===o||_h(o)?(e.exit("definition"),r.parser.defined.push(i),t(o)):n(o)}}},hd={tokenize:function(e,t,n){return function(t){return Rh(t)?ld(e,r)(t):n(t)};function r(t){return ad(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function i(t){return Dh(t)?$h(e,o,"whitespace")(t):o(t)}function o(e){return null===e||_h(e)?t(e):n(e)}},partial:!0};const dd={name:"codeIndented",tokenize:function(e,t,n){const r=this;return function(t){return e.enter("codeIndented"),$h(e,i,"linePrefix",5)(t)};function i(e){const t=r.events[r.events.length-1];return t&&"linePrefix"===t[1].type&&t[2].sliceSerialize(t[1],!0).length>=4?o(e):n(e)}function o(t){return null===t?a(t):_h(t)?e.attempt(fd,o,a)(t):(e.enter("codeFlowValue"),s(t))}function s(t){return null===t||_h(t)?(e.exit("codeFlowValue"),o(t)):(e.consume(t),s)}function a(n){return e.exit("codeIndented"),t(n)}}},fd={tokenize:function(e,t,n){const r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):_h(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):$h(e,o,"linePrefix",5)(t)}function o(e){const o=r.events[r.events.length-1];return o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(e):_h(e)?i(e):n(e)}},partial:!0};const pd={name:"headingAtx",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("atxHeading"),function(t){return e.enter("atxHeadingSequence"),i(t)}(t)};function i(t){return 35===t&&r++<6?(e.consume(t),i):null===t||Rh(t)?(e.exit("atxHeadingSequence"),o(t)):n(t)}function o(n){return 35===n?(e.enter("atxHeadingSequence"),s(n)):null===n||_h(n)?(e.exit("atxHeading"),t(n)):Dh(n)?$h(e,o,"whitespace")(n):(e.enter("atxHeadingText"),a(n))}function s(t){return 35===t?(e.consume(t),s):(e.exit("atxHeadingSequence"),o(t))}function a(t){return null===t||35===t||Rh(t)?(e.exit("atxHeadingText"),o(t)):(e.consume(t),a)}},resolve:function(e,t){let n,r,i=e.length-2,o=3;"whitespace"===e[o][1].type&&(o+=2);i-2>o&&"whitespace"===e[i][1].type&&(i-=2);"atxHeadingSequence"===e[i][1].type&&(o===i-1||i-4>o&&"whitespace"===e[i-2][1].type)&&(i-=o+1===i?2:4);i>o&&(n={type:"atxHeadingText",start:e[o][1].start,end:e[i][1].end},r={type:"chunkText",start:e[o][1].start,end:e[i][1].end,contentType:"text"},Oh(e,o,i-o+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]]));return e}};const md={name:"setextUnderline",tokenize:function(e,t,n){const r=this;let i;return function(t){let s,a=r.events.length;for(;a--;)if("lineEnding"!==r.events[a][1].type&&"linePrefix"!==r.events[a][1].type&&"content"!==r.events[a][1].type){s="paragraph"===r.events[a][1].type;break}if(!r.parser.lazy[r.now().line]&&(r.interrupt||s))return e.enter("setextHeadingLine"),i=t,function(t){return e.enter("setextHeadingLineSequence"),o(t)}(t);return n(t)};function o(t){return t===i?(e.consume(t),o):(e.exit("setextHeadingLineSequence"),Dh(t)?$h(e,s,"lineSuffix")(t):s(t))}function s(r){return null===r||_h(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}},resolveTo:function(e,t){let n,r,i,o=e.length;for(;o--;)if("enter"===e[o][0]){if("content"===e[o][1].type){n=o;break}"paragraph"===e[o][1].type&&(r=o)}else"content"===e[o][1].type&&e.splice(o,1),i||"definition"!==e[o][1].type||(i=o);const s={type:"setextHeading",start:Object.assign({},e[r][1].start),end:Object.assign({},e[e.length-1][1].end)};e[r][1].type="setextHeadingText",i?(e.splice(r,0,["enter",s,t]),e.splice(i+1,0,["exit",e[n][1],t]),e[n][1].end=Object.assign({},e[i][1].end)):e[n][1]=s;return e.push(["exit",s,t]),e}};const gd=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Od=["pre","script","style","textarea"],bd={name:"htmlFlow",tokenize:function(e,t,n){const r=this;let i,o,s,a,l;return function(t){return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),c}(t)};function c(a){return 33===a?(e.consume(a),u):47===a?(e.consume(a),o=!0,f):63===a?(e.consume(a),i=3,r.interrupt?t:Q):Sh(a)?(e.consume(a),s=String.fromCharCode(a),p):n(a)}function u(o){return 45===o?(e.consume(o),i=2,h):91===o?(e.consume(o),i=5,a=0,d):Sh(o)?(e.consume(o),i=4,r.interrupt?t:Q):n(o)}function h(i){return 45===i?(e.consume(i),r.interrupt?t:Q):n(i)}function d(i){const o="CDATA[";return i===o.charCodeAt(a++)?(e.consume(i),6===a?r.interrupt?t:A:d):n(i)}function f(t){return Sh(t)?(e.consume(t),s=String.fromCharCode(t),p):n(t)}function p(a){if(null===a||47===a||62===a||Rh(a)){const l=47===a,c=s.toLowerCase();return l||o||!Od.includes(c)?gd.includes(s.toLowerCase())?(i=6,l?(e.consume(a),m):r.interrupt?t(a):A(a)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(a):o?g(a):O(a)):(i=1,r.interrupt?t(a):A(a))}return 45===a||wh(a)?(e.consume(a),s+=String.fromCharCode(a),p):n(a)}function m(i){return 62===i?(e.consume(i),r.interrupt?t:A):n(i)}function g(t){return Dh(t)?(e.consume(t),g):w(t)}function O(t){return 47===t?(e.consume(t),w):58===t||95===t||Sh(t)?(e.consume(t),b):Dh(t)?(e.consume(t),O):w(t)}function b(t){return 45===t||46===t||58===t||95===t||wh(t)?(e.consume(t),b):y(t)}function y(t){return 61===t?(e.consume(t),v):Dh(t)?(e.consume(t),y):O(t)}function v(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),l=t,k):Dh(t)?(e.consume(t),v):x(t)}function k(t){return t===l?(e.consume(t),l=null,S):null===t||_h(t)?n(t):(e.consume(t),k)}function x(t){return null===t||34===t||39===t||47===t||60===t||61===t||62===t||96===t||Rh(t)?y(t):(e.consume(t),x)}function S(e){return 47===e||62===e||Dh(e)?O(e):n(e)}function w(t){return 62===t?(e.consume(t),T):n(t)}function T(t){return null===t||_h(t)?A(t):Dh(t)?(e.consume(t),T):n(t)}function A(t){return 45===t&&2===i?(e.consume(t),_):60===t&&1===i?(e.consume(t),R):62===t&&4===i?(e.consume(t),M):63===t&&3===i?(e.consume(t),Q):93===t&&5===i?(e.consume(t),N):!_h(t)||6!==i&&7!==i?null===t||_h(t)?(e.exit("htmlFlowData"),E(t)):(e.consume(t),A):(e.exit("htmlFlowData"),e.check(yd,$,E)(t))}function E(t){return e.check(vd,C,$)(t)}function C(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),P}function P(t){return null===t||_h(t)?E(t):(e.enter("htmlFlowData"),A(t))}function _(t){return 45===t?(e.consume(t),Q):A(t)}function R(t){return 47===t?(e.consume(t),s="",D):A(t)}function D(t){if(62===t){const n=s.toLowerCase();return Od.includes(n)?(e.consume(t),M):A(t)}return Sh(t)&&s.length<8?(e.consume(t),s+=String.fromCharCode(t),D):A(t)}function N(t){return 93===t?(e.consume(t),Q):A(t)}function Q(t){return 62===t?(e.consume(t),M):45===t&&2===i?(e.consume(t),Q):A(t)}function M(t){return null===t||_h(t)?(e.exit("htmlFlowData"),$(t)):(e.consume(t),M)}function $(n){return e.exit("htmlFlow"),t(n)}},resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2));return e},concrete:!0},yd={tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(Bh,t,n)}},partial:!0},vd={tokenize:function(e,t,n){const r=this;return function(t){if(_h(t))return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i;return n(t)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}},partial:!0};const kd={tokenize:function(e,t,n){const r=this;return function(t){if(null===t)return n(t);return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}},partial:!0},xd={name:"codeFenced",tokenize:function(e,t,n){const r=this,i={tokenize:function(e,t,n){let i=0;return s;function s(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),l}function l(t){return e.enter("codeFencedFence"),Dh(t)?$h(e,c,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):c(t)}function c(t){return t===o?(e.enter("codeFencedFenceSequence"),u(t)):n(t)}function u(t){return t===o?(i++,e.consume(t),u):i>=a?(e.exit("codeFencedFenceSequence"),Dh(t)?$h(e,h,"whitespace")(t):h(t)):n(t)}function h(r){return null===r||_h(r)?(e.exit("codeFencedFence"),t(r)):n(r)}},partial:!0};let o,s=0,a=0;return function(t){return function(t){const n=r.events[r.events.length-1];return s=n&&"linePrefix"===n[1].type?n[2].sliceSerialize(n[1],!0).length:0,o=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),l(t)}(t)};function l(t){return t===o?(a++,e.consume(t),l):a<3?n(t):(e.exit("codeFencedFenceSequence"),Dh(t)?$h(e,c,"whitespace")(t):c(t))}function c(n){return null===n||_h(n)?(e.exit("codeFencedFence"),r.interrupt?t(n):e.check(kd,f,b)(n)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),u(n))}function u(t){return null===t||_h(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),c(t)):Dh(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),$h(e,h,"whitespace")(t)):96===t&&t===o?n(t):(e.consume(t),u)}function h(t){return null===t||_h(t)?c(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),d(t))}function d(t){return null===t||_h(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),c(t)):96===t&&t===o?n(t):(e.consume(t),d)}function f(t){return e.attempt(i,b,p)(t)}function p(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),m}function m(t){return s>0&&Dh(t)?$h(e,g,"linePrefix",s+1)(t):g(t)}function g(t){return null===t||_h(t)?e.check(kd,f,b)(t):(e.enter("codeFlowValue"),O(t))}function O(t){return null===t||_h(t)?(e.exit("codeFlowValue"),g(t)):(e.consume(t),O)}function b(n){return e.exit("codeFenced"),t(n)}},concrete:!0};var Sd=n(3789);const wd={name:"characterReference",tokenize:function(e,t,n){const r=this;let i,o,s=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),a};function a(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),l):(e.enter("characterReferenceValue"),i=31,o=wh,c(t))}function l(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),i=6,o=Ch,c):(e.enter("characterReferenceValue"),i=7,o=Eh,c(t))}function c(a){if(59===a&&s){const i=e.exit("characterReferenceValue");return o!==wh||(0,Sd.s)(r.sliceSerialize(i))?(e.enter("characterReferenceMarker"),e.consume(a),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(a)}return o(a)&&s++1&&e[u][1].end.offset-e[u][1].start.offset>1?2:1;const h=Object.assign({},e[n][1].end),d=Object.assign({},e[u][1].start);Qd(h,-a),Qd(d,a),o={type:a>1?"strongSequence":"emphasisSequence",start:h,end:Object.assign({},e[n][1].end)},s={type:a>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[u][1].start),end:d},i={type:a>1?"strongText":"emphasisText",start:Object.assign({},e[n][1].end),end:Object.assign({},e[u][1].start)},r={type:a>1?"strong":"emphasis",start:Object.assign({},o.start),end:Object.assign({},s.end)},e[n][1].end=Object.assign({},o.start),e[u][1].start=Object.assign({},s.end),l=[],e[n][1].end.offset-e[n][1].start.offset&&(l=bh(l,[["enter",e[n][1],t],["exit",e[n][1],t]])),l=bh(l,[["enter",r,t],["enter",o,t],["exit",o,t],["enter",i,t]]),l=bh(l,Kh(t.parser.constructs.insideSpan.null,e.slice(n+1,u),t)),l=bh(l,[["exit",i,t],["enter",s,t],["exit",s,t],["exit",r,t]]),e[u][1].end.offset-e[u][1].start.offset?(c=2,l=bh(l,[["enter",e[u][1],t],["exit",e[u][1],t]])):c=0,Oh(e,n-1,u-n+3,l),u=n+l.length-c-2;break}u=-1;for(;++u13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||65535===(65535&n)||65534===(65535&n)||n>1114111?"\ufffd":String.fromCharCode(n)}const Vd=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Kd(e){return e.replace(Vd,Jd)}function Jd(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){const e=n.charCodeAt(1),t=120===e||88===e;return Gd(n.slice(t?2:1),t?16:10)}return(0,Sd.s)(n)||e}const ef={}.hasOwnProperty,tf=function(e,t,n){return"string"!==typeof t&&(n=t,t=void 0),function(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:a(ne),autolinkProtocol:E,autolinkEmail:E,atxHeading:a(K),blockQuote:a(W),characterEscape:E,characterReference:E,codeFenced:a(q),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:a(q,l),codeText:a(Y,l),codeTextData:E,data:E,codeFlowValue:E,definition:a(G),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:a(V),hardBreakEscape:a(J),hardBreakTrailing:a(J),htmlFlow:a(ee,l),htmlFlowData:E,htmlText:a(ee,l),htmlTextData:E,image:a(te),label:l,link:a(ne),listItem:a(ie),listItemValue:p,listOrdered:a(re,f),listUnordered:a(re),paragraph:a(oe),reference:z,referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:a(K),strong:a(se),thematicBreak:a(le)},exit:{atxHeading:u(),atxHeadingSequence:S,autolink:u(),autolinkEmail:H,autolinkProtocol:X,blockQuote:u(),characterEscapeValue:C,characterReferenceMarkerHexadecimal:j,characterReferenceMarkerNumeric:j,characterReferenceValue:U,codeFenced:u(b),codeFencedFence:O,codeFencedFenceInfo:m,codeFencedFenceMeta:g,codeFlowValue:C,codeIndented:u(y),codeText:u(N),codeTextData:C,data:C,definition:u(),definitionDestinationString:x,definitionLabelString:v,definitionTitleString:k,emphasis:u(),hardBreakEscape:u(_),hardBreakTrailing:u(_),htmlFlow:u(R),htmlFlowData:C,htmlText:u(D),htmlTextData:C,image:u(M),label:L,labelText:$,lineEnding:P,link:u(Q),listItem:u(),listOrdered:u(),listUnordered:u(),paragraph:u(),referenceString:Z,resourceDestinationString:I,resourceTitleString:F,resource:B,setextHeading:u(A),setextHeadingLineSequence:T,setextHeadingText:w,strong:u(),thematicBreak:u()}};rf(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(e){let n={type:"root",children:[]};const r={stack:[n],tokenStack:[],config:t,enter:c,exit:h,buffer:l,resume:d,setData:o,getData:s},a=[];let u=-1;for(;++u0){const e=r.tokenStack[r.tokenStack.length-1];(e[1]||sf).call(r,void 0,e[0])}for(n.position={start:nf(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:nf(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},u=-1;++u{const n=this.data("settings");return tf(t,Object.assign({},n,e,{extensions:this.data("micromarkExtensions")||[],mdastExtensions:this.data("fromMarkdownExtensions")||[]}))}})}function lf(e){const t=[];let n=-1,r=0,i=0;for(;++n55295&&o<57344){const t=e.charCodeAt(n+1);o<56320&&t>56319&&t<57344?(s=String.fromCharCode(o,t),i=1):s="\ufffd"}else s=String.fromCharCode(o);s&&(t.push(e.slice(r,n),encodeURIComponent(s)),r=n+i+1,s=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}const cf=function(e){if(void 0===e||null===e)return hf;if("string"===typeof e)return function(e){return uf(t);function t(t){return t&&t.type===e}}(e);if("object"===typeof e)return Array.isArray(e)?function(e){const t=[];let n=-1;for(;++n1?n-1:0),i=1;i":"")+")"})}return u;function u(){let c,u,h,d=[];if((!t||i(s,a,l[l.length-1]||null))&&(d=function(e){if(Array.isArray(e))return e;if("number"===typeof e)return[df,e];return[e]}(n(s,l)),d[0]===ff))return d;if(s.children&&d[0]!==pf)for(u=(r?s.children.length:-1)+o,h=l.concat(s);u>-1&&u-1?n.offset:null}}}const vf={}.hasOwnProperty;function kf(e){return String(e||"").toUpperCase()}function xf(e,t){const n=String(t.identifier).toUpperCase(),r=lf(n.toLowerCase()),i=e.footnoteOrder.indexOf(n);let o;-1===i?(e.footnoteOrder.push(n),e.footnoteCounts[n]=1,o=e.footnoteOrder.length):(e.footnoteCounts[n]++,o=i+1);const s=e.footnoteCounts[n],a={type:"element",tagName:"a",properties:{href:"#"+e.clobberPrefix+"fn-"+r,id:e.clobberPrefix+"fnref-"+r+(s>1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(t,a);const l={type:"element",tagName:"sup",properties:{},children:[a]};return e.patch(t,l),e.applyData(t,l)}function Sf(e,t){const n=t.referenceType;let r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return{type:"text",value:"!["+t.alt+r};const i=e.all(t),o=i[0];o&&"text"===o.type?o.value="["+o.value:i.unshift({type:"text",value:"["});const s=i[i.length-1];return s&&"text"===s.type?s.value+=r:i.push({type:"text",value:r}),i}function wf(e){const t=e.spread;return void 0===t||null===t?e.children.length>1:t}const Tf=9,Af=32;function Ef(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const o=[];for(;r;)o.push(Cf(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return o.push(Cf(t.slice(i),i>0,!1)),o.join("")}function Cf(e,t,n){let r=0,i=e.length;if(t){let t=e.codePointAt(r);for(;t===Tf||t===Af;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(i-1);for(;t===Tf||t===Af;)i--,t=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}const Pf={blockquote:function(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){const n=t.value?t.value+"\n":"",r=t.lang?t.lang.match(/^[^ \t]+(?=[ \t]|$)/):null,i={};r&&(i.className=["language-"+r]);let o={type:"element",tagName:"code",properties:i,children:[{type:"text",value:n}]};return t.meta&&(o.data={meta:t.meta}),e.patch(t,o),o=e.applyData(t,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(t,o),o},delete:function(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:xf,footnote:function(e,t){const n=e.footnoteById;let r=1;for(;r in n;)r++;const i=String(r);return n[i]={type:"footnoteDefinition",identifier:i,children:[{type:"paragraph",children:t.children}],position:t.position},xf(e,{type:"footnoteReference",identifier:i,position:t.position})},heading:function(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.dangerous){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}return null},imageReference:function(e,t){const n=e.definition(t.identifier);if(!n)return Sf(e,t);const r={src:lf(n.url||""),alt:t.alt};null!==n.title&&void 0!==n.title&&(r.title=n.title);const i={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,i),e.applyData(t,i)},image:function(e,t){const n={src:lf(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){const n=e.definition(t.identifier);if(!n)return Sf(e,t);const r={href:lf(n.url||"")};null!==n.title&&void 0!==n.title&&(r.title=n.title);const i={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)},link:function(e,t){const n={href:lf(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){const r=e.all(t),i=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r0&&n.children.unshift({type:"text",value:" "}),n.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let a=-1;for(;++a0){const r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},o=Of(t.children[1]),s=bf(t.children[t.children.length-1]);o.line&&s.line&&(r.position={start:o,end:s}),i.push(r)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,o),e.applyData(t,o)},tableCell:function(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){const r=n?n.children:void 0,i=0===(r?r.indexOf(t):1)?"th":"td",o=n&&"table"===n.type?n.align:void 0,s=o?o.length:t.children.length;let a=-1;const l=[];for(;++a{const n=kf(e.identifier);n&&!vf.call(t,n)&&(t[n]=e)})),function(e){const n=kf(e);return n&&vf.call(t,n)?t[n]:null}}(e),s.footnoteById=i,s.footnoteOrder=[],s.footnoteCounts={},s.patch=Nf,s.applyData=Qf,s.one=function(e,t){return Mf(s,e,t)},s.all=function(e){return $f(s,e)},s.wrap=Lf,s.augment=o,gf(e,"footnoteDefinition",(e=>{const t=String(e.identifier).toUpperCase();Rf.call(i,t)||(i[t]=e)})),s;function o(e,t){if(e&&"data"in e&&e.data){const n=e.data;n.hName&&("element"!==t.type&&(t={type:"element",tagName:"",properties:{},children:[]}),t.tagName=n.hName),"element"===t.type&&n.hProperties&&(t.properties={...t.properties,...n.hProperties}),"children"in t&&t.children&&n.hChildren&&(t.children=n.hChildren)}if(e){const n="type"in e?e:{position:e};(function(e){return!e||!e.position||!e.position.start||!e.position.start.line||!e.position.start.column||!e.position.end||!e.position.end.line||!e.position.end.column})(n)||(t.position={start:Of(n),end:bf(n)})}return t}function s(e,t,n,r){return Array.isArray(n)&&(r=n,n={}),o(e,{type:"element",tagName:t,properties:n||{},children:r||[]})}}function Nf(e,t){e.position&&(t.position=function(e){return{start:Of(e),end:bf(e)}}(e))}function Qf(e,t){let n=t;if(e&&e.data){const t=e.data.hName,r=e.data.hChildren,i=e.data.hProperties;"string"===typeof t&&("element"===n.type?n.tagName=t:n={type:"element",tagName:t,properties:{},children:[]}),"element"===n.type&&i&&(n.properties={...n.properties,...i}),"children"in n&&n.children&&null!==r&&void 0!==r&&(n.children=r)}return n}function Mf(e,t,n){const r=t&&t.type;if(!r)throw new Error("Expected node, got `"+t+"`");return Rf.call(e.handlers,r)?e.handlers[r](e,t,n):e.passThrough&&e.passThrough.includes(r)?"children"in t?{...t,children:$f(e,t)}:t:e.unknownHandler?e.unknownHandler(e,t,n):function(e,t){const n=t.data||{},r=!("value"in t)||Rf.call(n,"hProperties")||Rf.call(n,"hChildren")?{type:"element",tagName:"div",properties:{},children:$f(e,t)}:{type:"text",value:t.value};return e.patch(t,r),e.applyData(t,r)}(e,t)}function $f(e,t){const n=[];if("children"in t){const r=t.children;let i=-1;for(;++i0&&n.push({type:"text",value:"\n"}),n}function If(e,t){const n=Df(e,t),r=n.one(e,null),i=function(e){const t=[];let n=-1;for(;++n1?"-"+a:""),dataFootnoteBackref:!0,className:["data-footnote-backref"],ariaLabel:e.footnoteBackLabel},children:[{type:"text",value:"\u21a9"}]};a>1&&t.children.push({type:"element",tagName:"sup",children:[{type:"text",value:String(a)}]}),l.length>0&&l.push({type:"text",value:" "}),l.push(t)}const c=i[i.length-1];if(c&&"element"===c.type&&"p"===c.tagName){const e=c.children[c.children.length-1];e&&"text"===e.type?e.value+=" ":c.children.push({type:"text",value:" "}),c.children.push(...l)}else i.push(...l);const u={type:"element",tagName:"li",properties:{id:e.clobberPrefix+"fn-"+s},children:e.wrap(i,!0)};e.patch(r,u),t.push(u)}if(0!==t.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:e.footnoteLabelTagName,properties:{...JSON.parse(JSON.stringify(e.footnoteLabelProperties)),id:"footnote-label"},children:[{type:"text",value:e.footnoteLabel}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(t,!0)},{type:"text",value:"\n"}]}}(n);return i&&r.children.push({type:"text",value:"\n"},i),Array.isArray(r)?{type:"root",children:r}:r}const Ff=function(e,t){return e&&"run"in e?function(e,t){return(n,r,i)=>{e.run(If(n,t),r,(e=>{i(e)}))}}(e,t):function(e){return t=>If(t,e)}(e||t)};var Bf=n(8987),zf=n(2699);function Zf(e){if(e.allowedElements&&e.disallowedElements)throw new TypeError("Only one of `allowedElements` and `disallowedElements` should be defined");if(e.allowedElements||e.disallowedElements||e.allowElement)return t=>{gf(t,"element",((t,n,r)=>{const i=r;let o;if(e.allowedElements?o=!e.allowedElements.includes(t.tagName):e.disallowedElements&&(o=e.disallowedElements.includes(t.tagName)),!o&&e.allowElement&&"number"===typeof n&&(o=!e.allowElement(t,n,i)),o&&"number"===typeof n)return e.unwrapDisallowed&&t.children?i.children.splice(n,1,...t.children):i.children.splice(n,1),n}))}}var jf=n(8876);function Uf(e){const t=e&&"object"===typeof e&&"text"===e.type?e.value||"":e;return"string"===typeof t&&""===t.replace(/[ \t\n\f\r]/g,"")}var Xf=n(4390);const Hf={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};var Wf=n(4818),qf=n(8461);const Yf=n(4565),Gf=["http","https","mailto","tel"];function Vf(e){const t=(e||"").trim(),n=t.charAt(0);if("#"===n||"/"===n)return t;const r=t.indexOf(":");if(-1===r)return t;let i=-1;for(;++ii?t:(i=t.indexOf("#"),-1!==i&&r>i?t:"javascript:void(0)")}const Kf={}.hasOwnProperty,Jf=new Set(["table","thead","tbody","tfoot","tr"]);function ep(e,t){const n=[];let r,i=-1;for(;++i0?K.createElement(f,l,h):K.createElement(f,l)}function np(e,t){let n=-1,r=0;for(;++n for more info)`),delete sp[o]}const t=oh().use(af).use(e.remarkPlugins||[]).use(Ff,{...e.remarkRehypeOptions,allowDangerousHtml:!0}).use(e.rehypePlugins||[]).use(Zf,e),n=new Vu;"string"===typeof e.children?n.value=e.children:void 0!==e.children&&null!==e.children&&console.warn(`[react-markdown] Warning: please pass a string as \`children\` (not: \`${e.children}\`)`);const r=t.runSync(t.parse(n),n);if("root"!==r.type)throw new TypeError("Expected a `root` node");let i=K.createElement(K.Fragment,{},ep({options:e,schema:zf.qy,listDepth:0},r));return e.className&&(i=K.createElement("div",{className:e.className},i)),i}ap.propTypes={children:Bf.string,className:Bf.string,allowElement:Bf.func,allowedElements:Bf.arrayOf(Bf.string),disallowedElements:Bf.arrayOf(Bf.string),unwrapDisallowed:Bf.bool,remarkPlugins:Bf.arrayOf(Bf.oneOfType([Bf.object,Bf.func,Bf.arrayOf(Bf.oneOfType([Bf.bool,Bf.string,Bf.object,Bf.func,Bf.arrayOf(Bf.any)]))])),rehypePlugins:Bf.arrayOf(Bf.oneOfType([Bf.object,Bf.func,Bf.arrayOf(Bf.oneOfType([Bf.bool,Bf.string,Bf.object,Bf.func,Bf.arrayOf(Bf.any)]))])),sourcePos:Bf.bool,rawSourcePos:Bf.bool,skipHtml:Bf.bool,includeElementIndex:Bf.bool,transformLinkUri:Bf.oneOfType([Bf.func,Bf.bool]),linkTarget:Bf.oneOfType([Bf.func,Bf.string]),transformImageUri:Bf.func,components:Bf.object};const lp={tokenize:function(e,t,n){let r=0;return function t(o){if((87===o||119===o)&&r<3)return r++,e.consume(o),t;if(46===o&&3===r)return e.consume(o),i;return n(o)};function i(e){return null===e?n(e):t(e)}},partial:!0},cp={tokenize:function(e,t,n){let r,i,o;return s;function s(t){return 46===t||95===t?e.check(hp,l,a)(t):null===t||Rh(t)||Qh(t)||45!==t&&Nh(t)?l(t):(o=!0,e.consume(t),s)}function a(t){return 95===t?r=!0:(i=r,r=void 0),e.consume(t),s}function l(e){return i||r||!o?n(e):t(e)}},partial:!0},up={tokenize:function(e,t){let n=0,r=0;return i;function i(s){return 40===s?(n++,e.consume(s),i):41===s&&r0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}gp[43]=mp,gp[45]=mp,gp[46]=mp,gp[95]=mp,gp[72]=[mp,pp],gp[104]=[mp,pp],gp[87]=[mp,fp],gp[119]=[mp,fp];const wp={tokenize:function(e,t,n){const r=this;return $h(e,(function(e){const i=r.events[r.events.length-1];return i&&"gfmFootnoteDefinitionIndent"===i[1].type&&4===i[2].sliceSerialize(i[1],!0).length?t(e):n(e)}),"gfmFootnoteDefinitionIndent",5)},partial:!0};function Tp(e,t,n){const r=this;let i=r.events.length;const o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s;for(;i--;){const e=r.events[i][1];if("labelImage"===e.type){s=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}return function(i){if(!s||!s._balanced)return n(i);const a=cd(r.sliceSerialize({start:s.end,end:r.now()}));if(94!==a.codePointAt(0)||!o.includes(a.slice(1)))return n(i);return e.enter("gfmFootnoteCallLabelMarker"),e.consume(i),e.exit("gfmFootnoteCallLabelMarker"),t(i)}}function Ap(e,t){let n,r=e.length;for(;r--;)if("labelImage"===e[r][1].type&&"enter"===e[r][0]){n=e[r][1];break}e[r+1][1].type="data",e[r+3][1].type="gfmFootnoteCallLabelMarker";const i={type:"gfmFootnoteCall",start:Object.assign({},e[r+3][1].start),end:Object.assign({},e[e.length-1][1].end)},o={type:"gfmFootnoteCallMarker",start:Object.assign({},e[r+3][1].end),end:Object.assign({},e[r+3][1].end)};o.end.column++,o.end.offset++,o.end._bufferIndex++;const s={type:"gfmFootnoteCallString",start:Object.assign({},o.end),end:Object.assign({},e[e.length-1][1].start)},a={type:"chunkString",contentType:"string",start:Object.assign({},s.start),end:Object.assign({},s.end)},l=[e[r+1],e[r+2],["enter",i,t],e[r+3],e[r+4],["enter",o,t],["exit",o,t],["enter",s,t],["enter",a,t],["exit",a,t],["exit",s,t],e[e.length-2],e[e.length-1],["exit",i,t]];return e.splice(r,e.length-r+1,...l),e}function Ep(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,s=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),a};function a(t){return 94!==t?n(t):(e.enter("gfmFootnoteCallMarker"),e.consume(t),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",l)}function l(a){if(s>999||93===a&&!o||null===a||91===a||Rh(a))return n(a);if(93===a){e.exit("chunkString");const o=e.exit("gfmFootnoteCallString");return i.includes(cd(r.sliceSerialize(o)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(a),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(a)}return Rh(a)||(o=!0),s++,e.consume(a),92===a?c:l}function c(t){return 91===t||92===t||93===t?(e.consume(t),s++,l):l(t)}}function Cp(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,s,a=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),l};function l(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):n(t)}function c(t){if(a>999||93===t&&!s||null===t||91===t||Rh(t))return n(t);if(93===t){e.exit("chunkString");const n=e.exit("gfmFootnoteDefinitionLabelString");return o=cd(r.sliceSerialize(n)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),h}return Rh(t)||(s=!0),a++,e.consume(t),92===t?u:c}function u(t){return 91===t||92===t||93===t?(e.consume(t),a++,c):c(t)}function h(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),i.includes(o)||i.push(o),$h(e,d,"gfmFootnoteDefinitionWhitespace")):n(t)}function d(e){return t(e)}}function Pp(e,t,n){return e.check(Bh,t,e.attempt(wp,t,n))}function _p(e){e.exit("gfmFootnoteDefinition")}function Rp(e){let t=(e||{}).singleTilde;const n={tokenize:function(e,n,r){const i=this.previous,o=this.events;let s=0;return function(t){if(126===i&&"characterEscape"!==o[o.length-1][1].type)return r(t);return e.enter("strikethroughSequenceTemporary"),a(t)};function a(o){const l=Dd(i);if(126===o)return s>1?r(o):(e.consume(o),s++,a);if(s<2&&!t)return r(o);const c=e.exit("strikethroughSequenceTemporary"),u=Dd(o);return c._open=!u||2===u&&Boolean(l),c._close=!l||2===l&&Boolean(u),n(o)}},resolveAll:function(e,t){let n=-1;for(;++ne[0]-t[0])),0===this.map.length)return;let t=this.map.length;const n=[];for(;t>0;)t-=1,n.push(e.slice(this.map[t][0]+this.map[t][1])),n.push(this.map[t][2]),e.length=this.map[t][0];n.push([...e]),e.length=0;let r=n.pop();for(;r;)e.push(...r),r=n.pop();this.map.length=0}}function Np(e,t){let n=!1;const r=[];for(;t-1;){const e=r.events[t][1].type;if("lineEnding"!==e&&"linePrefix"!==e)break;t--}const i=t>-1?r.events[t][1].type:null,o="tableHead"===i||"tableRow"===i?v:a;if(o===v&&r.parser.lazy[r.now().line])return n(e);return o(e)};function a(t){return e.enter("tableHead"),e.enter("tableRow"),function(e){if(124===e)return l(e);return i=!0,s+=1,l(e)}(t)}function l(t){return null===t?n(t):_h(t)?s>1?(s=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),h):n(t):Dh(t)?$h(e,l,"whitespace")(t):(s+=1,i&&(i=!1,o+=1),124===t?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),i=!0,l):(e.enter("data"),c(t)))}function c(t){return null===t||124===t||Rh(t)?(e.exit("data"),l(t)):(e.consume(t),92===t?u:c)}function u(t){return 92===t||124===t?(e.consume(t),c):c(t)}function h(t){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(t):(e.enter("tableDelimiterRow"),i=!1,Dh(t)?$h(e,d,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):d(t))}function d(t){return 45===t||58===t?p(t):124===t?(i=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),f):y(t)}function f(t){return Dh(t)?$h(e,p,"whitespace")(t):p(t)}function p(t){return 58===t?(s+=1,i=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),m):45===t?(s+=1,m(t)):null===t||_h(t)?b(t):y(t)}function m(t){return 45===t?(e.enter("tableDelimiterFiller"),g(t)):y(t)}function g(t){return 45===t?(e.consume(t),g):58===t?(i=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),O):(e.exit("tableDelimiterFiller"),O(t))}function O(t){return Dh(t)?$h(e,b,"whitespace")(t):b(t)}function b(n){return 124===n?d(n):(null===n||_h(n))&&i&&o===s?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(n)):y(n)}function y(e){return n(e)}function v(t){return e.enter("tableRow"),k(t)}function k(n){return 124===n?(e.enter("tableCellDivider"),e.consume(n),e.exit("tableCellDivider"),k):null===n||_h(n)?(e.exit("tableRow"),t(n)):Dh(n)?$h(e,k,"whitespace")(n):(e.enter("data"),x(n))}function x(t){return null===t||124===t||Rh(t)?(e.exit("data"),k(t)):(e.consume(t),92===t?S:x)}function S(t){return 92===t||124===t?(e.consume(t),x):x(t)}},resolveAll:function(e,t){let n,r,i,o=-1,s=!0,a=0,l=[0,0,0,0],c=[0,0,0,0],u=!1,h=0;const d=new Dp;for(;++on[2]+1){const t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[["exit",s,t]])}return void 0!==i&&(o.end=Object.assign({},Lp(t.events,i)),e.add(i,0,[["exit",o,t]]),o=void 0),o}function $p(e,t,n,r,i){const o=[],s=Lp(t.events,n);i&&(i.end=Object.assign({},s),o.push(["exit",i,t])),r.end=Object.assign({},s),o.push(["exit",r,t]),e.add(n+1,0,o)}function Lp(e,t){const n=e[t],r="enter"===n[0]?"start":"end";return n[1][r]}const Ip={tokenize:function(e,t,n){const r=this;return function(t){if(null!==r.previous||!r._gfmTasklistFirstContentOfListItem)return n(t);return e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),i};function i(t){return Rh(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),o):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),o):n(t)}function o(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),s):n(t)}function s(r){return _h(r)?t(r):Dh(r)?e.check({tokenize:Bp},t,n)(r):n(r)}}},Fp={text:{91:Ip}};function Bp(e,t,n){return $h(e,(function(e){return null===e?n(e):t(e)}),"whitespace")}function zp(e,t){const n=String(e);if("string"!==typeof t)throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;-1!==i;)r++,i=n.indexOf(t,i+t.length);return r}const Zp={}.hasOwnProperty,jp=function(e,t,n,r){let i,o;"string"===typeof t||t instanceof RegExp?(o=[[t,n]],i=r):(o=t,i=n),i||(i={});const s=cf(i.ignore||[]),a=function(e){const t=[];if("object"!==typeof e)throw new TypeError("Expected array or object as schema");if(Array.isArray(e)){let n=-1;for(;++n0?{type:"text",value:a}:void 0),!1!==a&&(o!==n&&u.push({type:"text",value:e.value.slice(o,n)}),Array.isArray(a)?u.push(...a):a&&u.push(a),o=n+h[0].length,c=!0),!r.global)break;h=r.exec(e.value)}c?(oe}const Hp="phrasing",Wp=["autolink","link","image","label"],qp={transforms:[function(e){jp(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Vp],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g,Kp]],{ignore:["link","linkReference"]})}],enter:{literalAutolink:function(e){this.enter({type:"link",title:null,url:"",children:[]},e)},literalAutolinkEmail:Gp,literalAutolinkHttp:Gp,literalAutolinkWww:Gp},exit:{literalAutolink:function(e){this.exit(e)},literalAutolinkEmail:function(e){this.config.exit.autolinkEmail.call(this,e)},literalAutolinkHttp:function(e){this.config.exit.autolinkProtocol.call(this,e)},literalAutolinkWww:function(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.url="http://"+this.sliceSerialize(e)}}},Yp={unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:Hp,notInConstruct:Wp},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:Hp,notInConstruct:Wp},{character:":",before:"[ps]",after:"\\/",inConstruct:Hp,notInConstruct:Wp}]};function Gp(e){this.config.enter.autolinkProtocol.call(this,e)}function Vp(e,t,n,r,i){let o="";if(!Jp(i))return!1;if(/^w/i.test(t)&&(n=t+n,t="",o="http://"),!function(e){const t=e.split(".");if(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))return!1;return!0}(n))return!1;const s=function(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=zp(e,"(");let o=zp(e,")");for(;-1!==r&&i>o;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),o++;return[e,n]}(n+r);if(!s[0])return!1;const a={type:"link",title:null,url:o+t+s[0],children:[{type:"text",value:t+s[0]}]};return s[1]?[a,{type:"text",value:s[1]}]:a}function Kp(e,t,n,r){return!(!Jp(r,!0)||/[-\d_]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function Jp(e,t){const n=e.input.charCodeAt(e.index-1);return(0===e.index||Qh(n)||Nh(n))&&(!t||47!==n)}function em(e){return e.label||!e.identifier?e.label||"":Kd(e.identifier)}function tm(e,t,n,r){let i=r.join.length;for(;i--;){const o=r.join[i](e,t,n,r);if(!0===o||1===o)break;if("number"===typeof o)return"\n".repeat(1+o);if(!1===o)return"\n\n\x3c!----\x3e\n\n"}return"\n\n"}const nm=/\r?\n|\r/g;function rm(e){if(!e._compiled){const t=(e.atBreak?"[\\r\\n][\\t ]*":"")+(e.before?"(?:"+e.before+")":"");e._compiled=new RegExp((t?"("+t+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(e.character)?"\\":"")+e.character+(e.after?"(?:"+e.after+")":""),"g")}return e._compiled}function im(e,t){return om(e,t.inConstruct,!0)&&!om(e,t.notInConstruct,!1)}function om(e,t,n){if("string"===typeof t&&(t=[t]),!t||0===t.length)return n;let r=-1;for(;++r=c||(e+10?" ":"")),i.shift(4),o+=i.move(function(e,t){const n=[];let r,i=0,o=0;for(;r=nm.exec(e);)s(e.slice(i,r.index)),n.push(r[0]),i=r.index+r[0].length,o++;return s(e.slice(i)),n.join("");function s(e){n.push(t(e,o,!e))}}(function(e,t,n){const r=t.indexStack,i=e.children||[],o=t.createTracker(n),s=[];let a=-1;for(r.push(-1);++a0&&("\r"===a||"\n"===a)&&"html"===c.type&&(o[o.length-1]=o[o.length-1].replace(/(\r?\n|\r)$/," "),a=" ",l=t.createTracker(n),l.move(o.join(""))),o.push(l.move(t.handle(c,e,t,{...l.current(),before:a,after:u}))),a=o[o.length-1].slice(-1)}return r.pop(),o.join("")}bm.peek=function(){return"["};wm.peek=function(){return"~"};const xm={canContainEols:["delete"],enter:{strikethrough:function(e){this.enter({type:"delete",children:[]},e)}},exit:{strikethrough:function(e){this.exit(e)}}},Sm={unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"]}],handlers:{delete:wm}};function wm(e,t,n,r){const i=cm(r),o=n.enter("strikethrough");let s=i.move("~~");return s+=km(e,n,{...i.current(),before:s,after:"~"}),s+=i.move("~~"),o(),s}function Tm(e,t,n){let r=e.value||"",i="`",o=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++o"none"===e?null:e)),children:[]},e),this.setData("inTable",!0)},tableData:Rm,tableHeader:Rm,tableRow:function(e){this.enter({type:"tableRow",children:[]},e)}},exit:{codeText:function(e){let t=this.resume();this.getData("inTable")&&(t=t.replace(/\\([\\|])/g,Dm));const n=this.stack[this.stack.length-1];n.value=t,this.exit(e)},table:function(e){this.exit(e),this.setData("inTable")},tableData:_m,tableHeader:_m,tableRow:_m}};function _m(e){this.exit(e)}function Rm(e){this.enter({type:"tableCell",children:[]},e)}function Dm(e,t){return"|"===t?t:e}function Nm(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,o=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[\t :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{table:function(e,t,n,r){return a(function(e,t,n){const r=e.children;let i=-1;const o=[],s=t.enter("table");for(;++i1&&void 0!==arguments[1]?arguments[1]:{};const n=(t.align||[]).concat(),r=t.stringLength||Em,i=[],o=[],s=[],a=[];let l=0,c=-1;for(;++cl&&(l=e[c].length);++ua[u])&&(a[u]=e)}n.push(o)}o[c]=n,s[c]=i}let u=-1;if("object"===typeof n&&"length"in n)for(;++ua[u]&&(a[u]=o),d[u]=o),h[u]=s}o.splice(1,0,h),s.splice(1,0,d),c=-1;const f=[];for(;++c-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+o);let s=o.length+1;("tab"===i||"mixed"===i&&(t&&"list"===t.type&&t.spread||e.spread))&&(s=4*Math.ceil(s/4));const a=n.createTracker(r);a.move(o+" ".repeat(s-o.length)),a.shift(s);const l=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,a.current()),(function(e,t,n){if(t)return(n?"":" ".repeat(s))+e;return(n?o:o+" ".repeat(s-o.length))+e}));return l(),c}const Mm={exit:{taskListCheckValueChecked:Lm,taskListCheckValueUnchecked:Lm,paragraph:function(e){const t=this.stack[this.stack.length-2];if(t&&"listItem"===t.type&&"boolean"===typeof t.checked){const e=this.stack[this.stack.length-1],n=e.children[0];if(n&&"text"===n.type){const r=t.children;let i,o=-1;for(;++o0&&void 0!==arguments[0]?arguments[0]:{};const t=this.data();function n(e,n){(t[e]?t[e]:t[e]=[]).push(n)}n("micromarkExtensions",function(e){return vh([Op,{document:{91:{tokenize:Cp,continuation:{tokenize:Pp},exit:_p}},text:{91:{tokenize:Ep},93:{add:"after",tokenize:Tp,resolveTo:Ap}}},Rp(e),Qp,Fp])}(e)),n("fromMarkdownExtensions",[qp,{enter:{gfmFootnoteDefinition:um,gfmFootnoteDefinitionLabelString:hm,gfmFootnoteCall:pm,gfmFootnoteCallString:mm},exit:{gfmFootnoteDefinition:fm,gfmFootnoteDefinitionLabelString:dm,gfmFootnoteCall:Om,gfmFootnoteCallString:gm}},xm,Pm,Mm]),n("toMarkdownExtensions",function(e){return{extensions:[Yp,{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:ym,footnoteReference:bm}},Sm,Nm(e),$m]}}(e))}var Fm=n(9838);const Bm=(0,n(8842).I)(zf.JW,"g",["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"]);var zm=n(1927);const Zm={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},jm={}.hasOwnProperty,Um=Object.prototype;function Xm(e,t){let n;switch(t.nodeName){case"#comment":{const r=t;return n={type:"comment",value:r.data},Wm(e,r,n),n}case"#document":case"#document-fragment":{const r=t,i="mode"in r&&("quirks"===r.mode||"limited-quirks"===r.mode);if(n={type:"root",children:Hm(e,t.childNodes),data:{quirksMode:i}},e.file&&e.location){const t=String(e.file),r=function(e){const t=String(e),n=[],r=/\r?\n|\r/g;for(;r.test(t);)n.push(r.lastIndex);return n.push(t.length+1),{toPoint:function(e){let t=-1;if("number"===typeof e&&e>-1&&ee)return{line:t+1,column:e-(t>0?n[t-1]:0)+1,offset:e};return{line:void 0,column:void 0,offset:void 0}},toOffset:function(e){const t=e&&e.line,r=e&&e.column;if("number"===typeof t&&"number"===typeof r&&!Number.isNaN(t)&&!Number.isNaN(r)&&t-1 in n){const e=(n[t-2]||0)+r-1||0;if(e>-1&&e1?o-1:0),a=1;a{const r=e;if(r.value.stitch&&null!==n&&null!==t)return n.children[t]=r.value.stitch,t})),"root"!==e.type&&"root"===h.type&&1===h.children.length?h.children[0]:h;function d(e){let t=-1;if(e)for(;++t0&&void 0!==arguments[0]?arguments[0]:{};return(t,n)=>sg(t,n,e)}var dg=n(7323),fg=n.n(dg);function pg(e){if(!e)return null;var t=e;return t.dataset.code&&t.classList.contains("copied")?t:t.parentElement?pg(t.parentElement):null}function mg(e){var t=e=>{var t=pg(e.target);t&&(t.classList.add("active"),fg()(t.dataset.code,(function(){setTimeout((()=>{t.classList.remove("active")}),2e3)})))};(0,K.useEffect)((()=>{var n,r;return null==(n=e.current)||n.removeEventListener("click",t,!1),null==(r=e.current)||r.addEventListener("click",t,!1),()=>{var n;null==(n=e.current)||n.removeEventListener("click",t,!1)}}),[e])}var gg=["prefixCls","className","source","style","disableCopy","skipHtml","onScroll","onMouseOver","pluginsFilter","rehypeRewrite","wrapperElement","warpperElement"];const Og=K.forwardRef(((e,t)=>{var{prefixCls:n="wmde-markdown wmde-markdown-color",className:r,source:i,style:o,disableCopy:s=!1,skipHtml:a=!0,onScroll:l,onMouseOver:c,pluginsFilter:u,wrapperElement:h={},warpperElement:d={}}=e,f=Nt(e,gg),p=K.useRef(null);(0,K.useImperativeHandle)(t,(()=>Dt({},e,{mdp:p})),[p,e]);var m=(n||"")+" "+(r||"");mg(p);var g=[...f.rehypePlugins||[]],O={allowElement:(e,t,n)=>f.allowElement?f.allowElement(e,t,n):/^[A-Za-z0-9]+$/.test(e.tagName)};a&&g.push(hg);var b=[...f.remarkPlugins||[],Im],y=Dt({},d,h);return(0,Qt.jsx)("div",Dt({ref:p,onScroll:l,onMouseOver:c},y,{className:m,style:o,children:(0,Qt.jsx)(ap,Dt({},O,f,{skipHtml:a,rehypePlugins:u?u("rehype",g):g,remarkPlugins:u?u("remark",b):b,children:i||""}))}))}));function bg(e){return"children"in e?vg(e):"value"in e?e.value:""}function yg(e){return"text"===e.type?e.value:"children"in e?vg(e):""}function vg(e){let t=-1;const n=[];for(;++t]+)>/g,(function(e,t){var n=o[t];return"$"+(Array.isArray(n)?n.join("$"):n)})))}if("function"==typeof i){var s=this;return e[Symbol.replace].call(this,n,(function(){var e=arguments;return"object"!=typeof e[e.length-1]&&(e=[].slice.call(e)).push(r(e,s)),i.apply(this,e)}))}return e[Symbol.replace].call(this,n,i)},Tg.apply(this,arguments)}function Ag(e,t){return Ag=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ag(e,t)}function Eg(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var Pg=function(e){return function(t){return void 0===t&&(t={}),function(e,t){if(t&&!e.registered(t))throw new Error('The default language "'+t+'" is not registered with refractor.')}(e,t.defaultLanguage),function(e){gf(e,"element",n)};function n(n,r,i){var o,s;if(i&&"pre"===i.tagName&&"code"===n.tagName){var a=(null==n||null==(o=n.data)?void 0:o.meta)||(null==n||null==(s=n.properties)?void 0:s.metastring)||"";n.properties.className?"boolean"==typeof n.properties.className?n.properties.className=[]:Array.isArray(n.properties.className)||(n.properties.className=[n.properties.className]):n.properties.className=[];var l,c,u=function(e){for(var t,n=Cg(e.properties.className);!(t=n()).done;){var r=t.value;if("language-"===r.slice(0,9))return r.slice(9).toLowerCase()}return null}(n);if(!u&&t.defaultLanguage&&n.properties.className.push("language-"+(u=t.defaultLanguage)),n.properties.className.push("code-highlight"),u)try{var h,d;d=null!=(h=u)&&h.includes("diff-")?u.split("-")[1]:u,l=e.highlight(bg(n),d),i.properties.className=(i.properties.className||[]).concat("language-"+d)}catch(v){if(!t.ignoreMissing||!/Unknown language/.test(v.message))throw v;l=n}else l=n;l.children=(c=1,function e(t){return t.reduce((function(t,n){if("text"===n.type){var r=n.value,i=(r.match(/\n/g)||"").length;if(0===i)n.position={start:{line:c,column:1},end:{line:c,column:1}},t.push(n);else for(var o,s=r.split("\n"),a=Cg(s.entries());!(o=a()).done;){var l=o.value,u=l[0],h=l[1];t.push({type:"text",value:u===s.length-1?h:h+"\n",position:{start:{line:c+u,column:1},end:{line:c+u,column:1}}})}return c+=i,t}if(Object.prototype.hasOwnProperty.call(n,"children")){var d=c;return n.children=e(n.children),t.push(n),n.position={start:{line:d,column:1},end:{line:c,column:1}},t}return t.push(n),t}),[])})(l.children),l.position=l.children.length>0?{start:{line:l.children[0].position.start.line,column:0},end:{line:l.children[l.children.length-1].position.end.line,column:0}}:{start:{line:0,column:0},end:{line:0,column:0}};for(var f,p=function(e){var t=/{([\d,-]+)}/,n=e.split(",").map((function(e){return e.trim()})).join();if(t.test(n)){var r=t.exec(n)[1],i=xg(r);return function(e){return i.includes(e+1)}}return function(){return!1}}(a),m=function(e){var t=Tg(/showLineNumbers=(\d+)/i,{lines:1});if(t.test(e)){var n=t.exec(e);return Number(n.groups.lines)}return 1}(a),g=function(e){for(var t=new Array(e),n=0;n0&&0===s.length)return null}const a={};let l;for(l in t)kg.call(t,l)&&(a[l]="children"===l?s:t[l]);return a}(e)}(l,(function(e){return e.position.start.line<=i+1&&e.position.end.line>=i+1}));o.children=s.children,!a.toLowerCase().includes("showLineNumbers".toLowerCase())&&!t.showLineNumbers||O.some((function(e){return a.toLowerCase().includes(e)}))||(o.properties.line=[(i+m).toString()],o.properties.className.push("line-number")),p(i)&&o.properties.className.push("highlight-line"),("diff"===u||null!=(e=u)&&e.includes("diff-"))&&"-"===bg(o).substring(0,1)?o.properties.className.push("deleted"):("diff"===u||null!=(n=u)&&n.includes("diff-"))&&"+"===bg(o).substring(0,1)&&o.properties.className.push("inserted")},y=Cg(g.entries());!(f=y()).done;)b();g.length>0&&""===bg(g[g.length-1]).trim()&&g.pop(),n.children=g}}}},_g=(Pg(Sg.L),Pg(wg.L));const Rg="\u0591-\u07ff\ufb1d-\ufdfd\ufe70-\ufefc",Dg="A-Za-z\xc0-\xd6\xd8-\xf6\xf8-\u02b8\u0300-\u0590\u0800-\u1fff\u200e\u2c00-\ufb1c\ufe00-\ufe6f\ufefd-\uffff",Ng=new RegExp("^[^"+Dg+"]*["+Rg+"]"),Qg=new RegExp("^[^"+Rg+"]*["+Dg+"]");function Mg(e){const t=function(e){const t=String(e||"");return Ng.test(t)?"rtl":Qg.test(t)?"ltr":"neutral"}(e);return"neutral"===t?void 0:t}function $g(e){const t="element"===e.type&&e.properties&&"string"===typeof e.properties.dir?e.properties.dir.toLowerCase():void 0;return"auto"===t||"ltr"===t||"rtl"===t?t:void 0}const Lg={}.hasOwnProperty;function Ig(e,t){const n="string"===typeof t&&function(e){return Boolean(e&&"object"===typeof e&&"type"in e)}(e)&&"element"===e.type&&e.properties&&Lg.call(e.properties,t)&&e.properties[t];return null!==n&&void 0!==n&&!1!==n}const Fg=Vm("operator",{unknown:function(e){throw new Error("Unknown operator `"+e.operator+"`")},invalid:function(e,t,n){return Ig(t,n.property)},handlers:{"=":function(e,t,n){return Boolean(Ig(t,n.property)&&t.properties&&Bg(t.properties[n.property],n)===e.value)},"~=":function(e,t,n){const r=t.properties&&t.properties[n.property];return!n.commaSeparated&&r&&"object"===typeof r&&e.value&&r.includes(e.value)||Ig(t,n.property)&&Bg(r,n)===e.value},"|=":function(e,t,n){const r=Bg(t.properties&&t.properties[n.property],n);return Boolean(Ig(t,n.property)&&e.value&&(r===e.value||r.slice(0,e.value.length)===e.value&&"-"===r.charAt(e.value.length)))},"^=":function(e,t,n){return Boolean(Ig(t,n.property)&&t.properties&&e.value&&Bg(t.properties[n.property],n).slice(0,e.value.length)===e.value)},"$=":function(e,t,n){return Boolean(Ig(t,n.property)&&t.properties&&e.value&&Bg(t.properties[n.property],n).slice(-e.value.length)===e.value)},"*=":function(e,t,n){return Boolean(Ig(t,n.property)&&t.properties&&e.value&&Bg(t.properties[n.property],n).includes(e.value))}}});function Bg(e,t){return"boolean"===typeof e?t.attribute:Array.isArray(e)?(t.commaSeparated?qf.A:Wf.A)(e):String(e)}function zg(e,t){return function(n,r){let i=jg(n,"tag");const o=jg(null===r||void 0===r?"*":r,"range"),s=[];let a=-1;for(;++ae<=n;if(0===t)return e=>e===n;if(1===t)return n<0?Wg.trueFunc:e=>e>=n;const r=Math.abs(t),i=(n%r+r)%r;return t>1?e=>e>=n&&e%r===i:e=>e<=n&&e%r===i}(function(e){if("even"===(e=e.trim().toLowerCase()))return[2,0];if("odd"===e)return[2,1];let t=0,n=0,r=o(),i=s();if(t=Xg&&e.charCodeAt(t)<=Hg;)r=10*r+(e.charCodeAt(t)-Xg),t++;return t===n?null:r}function a(){for(;t0},lang:function(e,t,n,r,i){return""!==i.language&&void 0!==i.language&&Zg(i.language,(0,qf.q)(e.value)).length>0},"last-child":function(e,t,n,r,i){return rO(i,e),Boolean(i.elementCount&&i.elementIndex===i.elementCount-1)},"last-of-type":function(e,t,n,r,i){return rO(i,e),"number"===typeof i.typeIndex&&"number"===typeof i.typeCount&&i.typeIndex===i.typeCount-1},matches:Jg,not:function(e,t,n,r,i){return!Jg(e,t,n,r,i)},"nth-child":function(e,t,n,r,i){const o=iO(e);return rO(i,e),"number"===typeof i.elementIndex&&o(i.elementIndex)},"nth-last-child":function(e,t,n,r,i){const o=iO(e);return rO(i,e),Boolean("number"===typeof i.elementCount&&"number"===typeof i.elementIndex&&o(i.elementCount-i.elementIndex-1))},"nth-of-type":function(e,t,n,r,i){const o=iO(e);return rO(i,e),"number"===typeof i.typeIndex&&o(i.typeIndex)},"nth-last-of-type":function(e,t,n,r,i){const o=iO(e);return rO(i,e),"number"===typeof i.typeCount&&"number"===typeof i.typeIndex&&o(i.typeCount-1-i.typeIndex)},"only-child":function(e,t,n,r,i){return rO(i,e),1===i.elementCount},"only-of-type":function(e,t,n,r,i){return rO(i,e),1===i.typeCount},optional:function(e,t){return!tO(e,t)},"read-only":function(e,t,n,r,i){return!eO(e,t,n,r,i)},"read-write":eO,required:tO,root:function(e,t,n,r,i){return Boolean((!r||"root"===r.type)&&i.schema&&("html"===i.schema.space||"svg"===i.schema.space)&&("html"===t.tagName||"svg"===t.tagName))},scope:function(e,t,n,r,i){return i.scopeElements.includes(t)}}});function Vg(e,t,n,r,i){const o=e.pseudos;let s=-1;for(;++s"===t.nestingOperator?"directChild":"descendant",e)}else e.found=!0,e.results.includes(n)||e.results.push(n)}null===a.rule.nestingOperator?hO(o,"descendant",a):"~"===a.rule.nestingOperator&&hO(o,"generalSibling",a)}return o}(e,uO(t,e.rootQuery.selectors),n,r,i)),!("children"in n)||e.shallow||e.one&&e.found||function(e,t,n){const r=uO(t.descendant,t.directChild);let i,o=-1;const s={count:0,types:new Map},a={count:0,types:new Map};for(;++o0&&t.length>0?[...e,...t]:e&&e.length>0?e:t&&t.length>0?t:sO}function hO(e,t,n){const r=e[t];r?r.push(n):e[t]=[n]}function dO(e,t){if("element"===t.type){const n=t.tagName.toUpperCase(),r=(e.types.get(n)||0)+1;e.count++,e.types.set(n,r)}}const fO=new(n(5539).u);function pO(e){if("string"!==typeof e)throw new TypeError("Expected `string` as selector, not `"+e+"`");return fO.parse(e)}function mO(e,t,n){return{rootQuery:aO(pO(e)),results:[],scopeElements:t?"root"===t.type?t.children:[t]:[],one:!1,shallow:!1,found:!1,schema:"svg"===n?zf.JW:zf.qy,language:void 0,direction:"ltr",editableOrEditingHost:!1,typeIndex:void 0,elementIndex:void 0,typeCount:void 0,elementCount:void 0}}fO.registerAttrEqualityMods("~","|","^","$","*"),fO.registerSelectorPseudos("any","matches","not","has"),fO.registerNestingOperators(">","+","~");const gO=function(){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).forEach((t=>{"text"===t.type?e+=t.value:"element"===t.type&&t.children&&Array.isArray(t.children)&&(e+=gO(t.children))})),e},OO=e=>{const{selector:t,rewrite:n}=e||{};return e=>{if(n&&"function"===typeof n)if(t&&"string"===typeof t){const r=function(e,t,n){const r=mO(e,t,n);return lO(r,t||void 0),r.results}(t,e);r&&r.length>0&&gf(e,r,((e,t,r)=>{n(e,t,r)}))}else gf(e,((e,t,r)=>{n(e,t,r)}))}},bO=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>2?arguments[2]:void 0,n=arguments.length>3?arguments[3]:void 0,r=arguments.length>1?arguments[1]:void 0;for(;r/,"$2")||""))return;if(n){if(bO(e,r,"pre",n))return;return t.value=(t.value||"").replace(/^(\n|\s)+/,""),t}return t.value=(t.value||"").replace(/^(\n|\s)+/,""),t}}},yO=e=>{let{value:t=""}=e;const n=function(){return((arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").match(/([^?=&]+)(=([^&]*))/g)||[]).reduce(((e,t)=>(e[t.slice(0,t.indexOf("="))]=t.slice(t.indexOf("=")+1),e)),{})}(t.replace(/^/,"$1").replace(/^rehype:/,""));return Object.keys(n).forEach((e=>{"true"===n[e]&&(n[e]=!0),"false"===n[e]&&(n[e]=!1),"string"!==typeof n[e]||/^0/.test(n[e])||isNaN(+n[e])||(n[e]=+n[e])})),n},vO=(e,t,n)=>"string"===n?{...e,"data-config":JSON.stringify({...t,rehyp:!0})}:"attr"===n?{...e,...t}:{...e,"data-config":{...t,rehyp:!0}},kO=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{properties:t="data",codeBlockParames:n=!0}=e;return e=>{gf(e,"element",((e,r,i)=>{if(n&&"pre"===e.tagName&&e&&Array.isArray(e.children)&&i&&Array.isArray(i.children)&&i.children.length>1){const n=e.children[0];if(n&&"code"===n.tagName&&"number"===typeof r){const o=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;for(;t>-1;){if(t--,!e[t])return;if(e[t]&&e[t].value&&""!==e[t].value.replace(/(\n|\s)/g,"")||"text"!==e[t].type){if(!/^rehype:/.test(e[t].value)||"comment"!==e[t].type)return;return e[t]}}}(i.children,r);if(o){const r=yO(o);Object.keys(r).length>0&&(e.properties={...e.properties,"data-type":"rehyp"},n.properties=vO(n.properties,r,t))}}}if(/^(em|strong|b|a|i|p|pre|kbd|blockquote|h(1|2|3|4|5|6)|code|table|img|del|ul|ol)$/.test(e.tagName)&&i&&Array.isArray(i.children)&&"number"===typeof r){const o=bO(i.children,r,"",n);if(o){const n=yO(o);Object.keys(n).length>0&&(e.properties=vO(e.properties,n,t))}}}))}};var xO=function(e){return void 0===e&&(e={}),e=>{gf(e,(e=>{"element"===e.type&&"code"===e.tagName&&e.data&&e.data.meta&&(e.properties=Dt({},e.properties,{"data-meta":String(e.data.meta)}))}))}};const SO=/[\0-\x1F!-,\.\/:-@\[-\^`\{-\xA9\xAB-\xB4\xB6-\xB9\xBB-\xBF\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0378\u0379\u037E\u0380-\u0385\u0387\u038B\u038D\u03A2\u03F6\u0482\u0530\u0557\u0558\u055A-\u055F\u0589-\u0590\u05BE\u05C0\u05C3\u05C6\u05C8-\u05CF\u05EB-\u05EE\u05F3-\u060F\u061B-\u061F\u066A-\u066D\u06D4\u06DD\u06DE\u06E9\u06FD\u06FE\u0700-\u070F\u074B\u074C\u07B2-\u07BF\u07F6-\u07F9\u07FB\u07FC\u07FE\u07FF\u082E-\u083F\u085C-\u085F\u086B-\u089F\u08B5\u08C8-\u08D2\u08E2\u0964\u0965\u0970\u0984\u098D\u098E\u0991\u0992\u09A9\u09B1\u09B3-\u09B5\u09BA\u09BB\u09C5\u09C6\u09C9\u09CA\u09CF-\u09D6\u09D8-\u09DB\u09DE\u09E4\u09E5\u09F2-\u09FB\u09FD\u09FF\u0A00\u0A04\u0A0B-\u0A0E\u0A11\u0A12\u0A29\u0A31\u0A34\u0A37\u0A3A\u0A3B\u0A3D\u0A43-\u0A46\u0A49\u0A4A\u0A4E-\u0A50\u0A52-\u0A58\u0A5D\u0A5F-\u0A65\u0A76-\u0A80\u0A84\u0A8E\u0A92\u0AA9\u0AB1\u0AB4\u0ABA\u0ABB\u0AC6\u0ACA\u0ACE\u0ACF\u0AD1-\u0ADF\u0AE4\u0AE5\u0AF0-\u0AF8\u0B00\u0B04\u0B0D\u0B0E\u0B11\u0B12\u0B29\u0B31\u0B34\u0B3A\u0B3B\u0B45\u0B46\u0B49\u0B4A\u0B4E-\u0B54\u0B58-\u0B5B\u0B5E\u0B64\u0B65\u0B70\u0B72-\u0B81\u0B84\u0B8B-\u0B8D\u0B91\u0B96-\u0B98\u0B9B\u0B9D\u0BA0-\u0BA2\u0BA5-\u0BA7\u0BAB-\u0BAD\u0BBA-\u0BBD\u0BC3-\u0BC5\u0BC9\u0BCE\u0BCF\u0BD1-\u0BD6\u0BD8-\u0BE5\u0BF0-\u0BFF\u0C0D\u0C11\u0C29\u0C3A-\u0C3C\u0C45\u0C49\u0C4E-\u0C54\u0C57\u0C5B-\u0C5F\u0C64\u0C65\u0C70-\u0C7F\u0C84\u0C8D\u0C91\u0CA9\u0CB4\u0CBA\u0CBB\u0CC5\u0CC9\u0CCE-\u0CD4\u0CD7-\u0CDD\u0CDF\u0CE4\u0CE5\u0CF0\u0CF3-\u0CFF\u0D0D\u0D11\u0D45\u0D49\u0D4F-\u0D53\u0D58-\u0D5E\u0D64\u0D65\u0D70-\u0D79\u0D80\u0D84\u0D97-\u0D99\u0DB2\u0DBC\u0DBE\u0DBF\u0DC7-\u0DC9\u0DCB-\u0DCE\u0DD5\u0DD7\u0DE0-\u0DE5\u0DF0\u0DF1\u0DF4-\u0E00\u0E3B-\u0E3F\u0E4F\u0E5A-\u0E80\u0E83\u0E85\u0E8B\u0EA4\u0EA6\u0EBE\u0EBF\u0EC5\u0EC7\u0ECE\u0ECF\u0EDA\u0EDB\u0EE0-\u0EFF\u0F01-\u0F17\u0F1A-\u0F1F\u0F2A-\u0F34\u0F36\u0F38\u0F3A-\u0F3D\u0F48\u0F6D-\u0F70\u0F85\u0F98\u0FBD-\u0FC5\u0FC7-\u0FFF\u104A-\u104F\u109E\u109F\u10C6\u10C8-\u10CC\u10CE\u10CF\u10FB\u1249\u124E\u124F\u1257\u1259\u125E\u125F\u1289\u128E\u128F\u12B1\u12B6\u12B7\u12BF\u12C1\u12C6\u12C7\u12D7\u1311\u1316\u1317\u135B\u135C\u1360-\u137F\u1390-\u139F\u13F6\u13F7\u13FE-\u1400\u166D\u166E\u1680\u169B-\u169F\u16EB-\u16ED\u16F9-\u16FF\u170D\u1715-\u171F\u1735-\u173F\u1754-\u175F\u176D\u1771\u1774-\u177F\u17D4-\u17D6\u17D8-\u17DB\u17DE\u17DF\u17EA-\u180A\u180E\u180F\u181A-\u181F\u1879-\u187F\u18AB-\u18AF\u18F6-\u18FF\u191F\u192C-\u192F\u193C-\u1945\u196E\u196F\u1975-\u197F\u19AC-\u19AF\u19CA-\u19CF\u19DA-\u19FF\u1A1C-\u1A1F\u1A5F\u1A7D\u1A7E\u1A8A-\u1A8F\u1A9A-\u1AA6\u1AA8-\u1AAF\u1AC1-\u1AFF\u1B4C-\u1B4F\u1B5A-\u1B6A\u1B74-\u1B7F\u1BF4-\u1BFF\u1C38-\u1C3F\u1C4A-\u1C4C\u1C7E\u1C7F\u1C89-\u1C8F\u1CBB\u1CBC\u1CC0-\u1CCF\u1CD3\u1CFB-\u1CFF\u1DFA\u1F16\u1F17\u1F1E\u1F1F\u1F46\u1F47\u1F4E\u1F4F\u1F58\u1F5A\u1F5C\u1F5E\u1F7E\u1F7F\u1FB5\u1FBD\u1FBF-\u1FC1\u1FC5\u1FCD-\u1FCF\u1FD4\u1FD5\u1FDC-\u1FDF\u1FED-\u1FF1\u1FF5\u1FFD-\u203E\u2041-\u2053\u2055-\u2070\u2072-\u207E\u2080-\u208F\u209D-\u20CF\u20F1-\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F-\u215F\u2189-\u24B5\u24EA-\u2BFF\u2C2F\u2C5F\u2CE5-\u2CEA\u2CF4-\u2CFF\u2D26\u2D28-\u2D2C\u2D2E\u2D2F\u2D68-\u2D6E\u2D70-\u2D7E\u2D97-\u2D9F\u2DA7\u2DAF\u2DB7\u2DBF\u2DC7\u2DCF\u2DD7\u2DDF\u2E00-\u2E2E\u2E30-\u3004\u3008-\u3020\u3030\u3036\u3037\u303D-\u3040\u3097\u3098\u309B\u309C\u30A0\u30FB\u3100-\u3104\u3130\u318F-\u319F\u31C0-\u31EF\u3200-\u33FF\u4DC0-\u4DFF\u9FFD-\u9FFF\uA48D-\uA4CF\uA4FE\uA4FF\uA60D-\uA60F\uA62C-\uA63F\uA673\uA67E\uA6F2-\uA716\uA720\uA721\uA789\uA78A\uA7C0\uA7C1\uA7CB-\uA7F4\uA828-\uA82B\uA82D-\uA83F\uA874-\uA87F\uA8C6-\uA8CF\uA8DA-\uA8DF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA954-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\uDCFF\uDDF0-\uDFFF]/g,wO=Object.hasOwnProperty;function TO(e){const t=e&&"element"===e.type&&e.tagName.toLowerCase()||"",n=2===t.length&&104===t.charCodeAt(0)?t.charCodeAt(1):0;return n>48&&n<55?n-48:null}const AO=new class{constructor(){this.occurrences,this.reset()}slug(e,t){const n=this;let r=function(e,t){if("string"!==typeof e)return"";t||(e=e.toLowerCase());return e.replace(SO,"").replace(/ /g,"-")}(e,!0===t);const i=r;for(;wO.call(n.occurrences,r);)n.occurrences[i]++,r=i+"-"+n.occurrences[i];return n.occurrences[r]=0,r}reset(){this.occurrences=Object.create(null)}};const EO=function(e){if(void 0===e||null===e)return PO;if("string"===typeof e)return function(e){return t;function t(t){return PO(t)&&t.tagName===e}}(e);if("object"===typeof e)return function(e){const t=[];let n=-1;for(;++n1?n-1:0),i=1;i0&&void 0!==arguments[0]?arguments[0]:{};const{openDelimiter:t="rehype:ignore:start",closeDelimiter:n="rehype:ignore:end"}=e;return e=>{gf(e,((e,r,i)=>{if("element"===e.type||"root"===e.type){let r=!1;e.children=e.children.filter((e=>{if("raw"===e.type||"comment"===e.type){let i=(e.value||"").trim();if(i=i.replace(/^/,"$1"),i===t)return r=!0,!1;if(i===n)return r=!1,!1}return!r}))}}))}};var DO={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 NO=[function(){const e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).prefix||"";return t=>{AO.reset(),gf(t,"element",(t=>{TO(t)&&t.properties&&!Ig(t,"id")&&(t.properties.id=e+AO.slug(bg(t)))}))}},function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.properties;const n=e.behaviour||e.behavior||"prepend",r=e.content||_O,i=e.group,o=EO(e.test);let s;return"wrap"===n?s=function(e){return e.children=[c(e,nh(!0,{},t),e.children)],[pf]}:"before"===n||"after"===n?s=function(e,o,s){if("number"!==typeof o||!s)return;const u=c(e,nh(!0,{},t),a(r,e));let h="before"===n?[u,e]:[e,u];if(i){const t=l(i,e);t&&!Array.isArray(t)&&"element"===t.type&&(t.children=h,h=[t])}return s.children.splice(o,1,...h),[pf,o+h.length]}:(t||(t={ariaHidden:"true",tabIndex:-1}),s=function(e){return e.children["prepend"===n?"unshift":"push"](c(e,nh(!0,{},t),a(r,e))),[pf]}),e=>{gf(e,"element",((e,t,n)=>{if(TO(e)&&Ig(e,"id")&&o(e,t,n))return s(e,t,n)}))};function a(e,t){const n=l(e,t);return Array.isArray(n)?n:[n]}function l(e,t){return"function"===typeof e?e(t):nh(!0,Array.isArray(e)?[]:{},e)}function c(e,t,n){return{type:"element",tagName:"a",properties:Object.assign({},t,{href:"#"+(e.properties||{}).id}),children:n}}},RO];const QO=K.forwardRef(((e,t)=>{var n,r,i,o=[xO,[_g,{ignoreMissing:!0}],...NO,[OO,{rewrite:(r=null!=(n=e.disableCopy)&&n,i=e.rehypeRewrite,(e,t,n)=>{if("element"===e.type&&n&&"root"===n.type&&/h(1|2|3|4|5|6)/.test(e.tagName)){var o=e.children&&e.children[0];o&&o.properties&&"true"===o.properties.ariaHidden&&(o.properties=Dt({class:"anchor"},o.properties),o.children=[DO])}if("element"===e.type&&"pre"===e.tagName&&!r){var s=gO(e.children);e.children.push((void 0===(a=s)&&(a=""),{type:"element",tagName:"div",properties:{class:"copied","data-code":a},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 a;i&&i(e,t,n)})}],[kO,{properties:"attr"}],...e.rehypePlugins||[]];return(0,Qt.jsx)(Og,Dt({},e,{rehypePlugins:o,ref:t}))}));var MO={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:e=>{var{state:t,view:n}=e;t&&n&&n.dispatch(n.state.changeByRange((e=>({changes:[{from:e.from,insert:"**"},{from:e.to,insert:"**"}],range:ra.OF.range(e.from+2,e.to+2)}))))}},$O={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:e=>{var{state:t,view:n}=e;t&&n&&n.dispatch(n.state.changeByRange((e=>({changes:[{from:e.from,insert:"`"},{from:e.to,insert:"`"}],range:ra.OF.range(e.from+1,e.to+1)}))))}},LO={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:e=>{var{state:t,view:n}=e;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:ra.OF.range(r.from+3,r.from+5)})}}},IO={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:e=>{var{state:t,view:n}=e;t&&n&&n.dispatch(n.state.changeByRange((e=>({changes:[{from:e.from,insert:"*"},{from:e.to,insert:"*"}],range:ra.OF.range(e.from+1,e.to+1)}))))}},FO={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:e=>{var{state:t,view:n}=e;if(t&&n){var r=n.state.doc.lineAt(n.state.selection.main.from),i="#",o=r.text.match(/^#+/);if(o&&o[0]){var s=o[0];s.length<6&&(i=s+"#")}i.length>6&&(i="#");var a=r.text.replace(/^#+/,"");n.dispatch({changes:{from:r.from,to:r.to,insert:i+" "+a},selection:{anchor:r.from+i.length+1}})}}},BO={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:e=>{var{state:t,view:n}=e;t&&n&&n.dispatch(n.state.changeByRange((e=>({changes:[{from:e.from,insert:"~~"},{from:e.to,insert:"~~"}],range:ra.OF.range(e.from+2,e.to+2)}))))}},zO={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:e=>{var{state:t,view:n}=e;t&&n&&n.dispatch(n.state.changeByRange((e=>({changes:[{from:e.from,insert:""},{from:e.to,insert:""}],range:ra.OF.range(e.from+3,e.to+3)}))))}},ZO={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:e=>{var{state:t,view:n}=e;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}})}}},jO={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:e=>{var{state:t,view:n}=e;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}})}}},UO={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:e=>{var{state:t,view:n}=e;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}})}}},XO={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:e=>{var{state:t,view:n}=e;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:ra.OF.range(r.from+3+i.length,r.to+3)})}}},HO={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:e=>{var{state:t,view:n}=e;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}})}}},WO={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:e=>{var{state:t,view:n}=e;if(t&&n){var r=n.state.selection.main,i=n.state.sliceDoc(n.state.selection.main.from,n.state.selection.main.to);n.dispatch({changes:{from:r.from,to:r.to,insert:"![]("+i+")"},selection:ra.OF.range(r.from+4,r.to+4)})}}},qO={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:e=>{var{state:t,view:n}=e;t&&n&&va(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:e=>{var{state:t,view:n}=e;t&&n&&ya(n)}},GO=e=>{var{editorProps:t}=e,n=(0,K.useRef)(0),[r,i]=(0,K.useState)(!1),o=(0,K.useRef)(r),s=e=>{var r;for(var i of e){var s;n.current||(n.current=i.target.clientHeight),null!=(s=t.editor)&&null!=(s=s.current)&&null!=(s=s.view)&&s.dom&&(o.current?t.editor.current.view.dom.style.height=i.target.clientHeight+"px":t.editor.current.view.dom.removeAttribute("style"))}null==(r=a.current)||r.disconnect(),a.current=void 0},a=(0,K.useRef)(new ResizeObserver(s));(0,K.useEffect)((()=>{if(a.current||(a.current=new ResizeObserver(s)),t.containerEditor&&t.containerEditor.current&&t.containerEditor.current.parentElement&&a.current){var e=t.containerEditor.current.parentElement;a.current.observe(e)}return()=>{a.current&&(a.current.disconnect(),a.current=void 0)}}),[t.containerEditor,s,t.editor,r,a]),(0,K.useEffect)((()=>{if(document&&t&&t.container&&t.container.current&&t.editor){var e=t.container.current;document.body.style.overflow=r?"hidden":"initial",e&&r?(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")}}),[r,t]);return(0,Qt.jsx)("button",{onClick:()=>{o.current=!r,i(!r)},type:"button",className:r?"active":"",children:e.command.icon})},VO={name:"fullscreen",keyCommand:"fullscreen",button:(e,t,n)=>(0,Qt.jsx)(GO,{command:e,editorProps:Dt({},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"})})},KO=e=>{var{editorProps:t}=e,{containerEditor:n,preview:r,previewWidth:i="50%",enablePreview:o=!0}=t,[s,a]=(0,K.useState)(e.editorProps.visible);if((0,K.useEffect)((()=>a(e.editorProps.visible)),[e.editorProps.visible]),(0,K.useEffect)((()=>{if(r.current){var e=r.current;r&&(e.style.borderBottomRightRadius="3px"),e&&s?(e.style.width=i,e.style.overflow="auto","100%"!==i&&(e.style.borderLeft="1px solid var(--color-border-muted)"),e.style.padding="20px",n.current&&(n.current.style.width="calc(100% - "+i+")")):e&&(e.style.width="0%",e.style.overflow="hidden",e.style.borderLeft="0px",e.style.padding="0",n.current&&(n.current.style.width="100%"))}}),[s,n,r,i]),o){return(0,Qt.jsx)("button",{onClick:()=>{t.onPreviewMode&&t.onPreviewMode(!s),a(!s)},type:"button",className:s?"active":"",children:e.command.icon})}},JO={name:"preview",keyCommand:"preview",button:(e,t,n)=>(0,Qt.jsx)(KO,{command:e,editorProps:Dt({},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"})})},eb={undo:YO,redo:qO,bold:MO,italic:IO,header:FO,strike:BO,underline:zO,quote:UO,olist:ZO,ulist:jO,todo:HO,link:XO,image:WO,code:$O,codeBlock:LO,fullscreen:VO,preview:JO},tb=()=>Object.keys(eb).filter((e=>!/^(fullscreen|preview)/.test(e))).map((e=>eb[e])),nb=()=>[JO,VO],rb=["prefixCls","className","onClick","toolbars","editor","mode","preview","container","containerEditor","editorProps"];function ib(e){var{prefixCls:t="md-editor",className:n,toolbars:r=[],editor:i,mode:o,preview:s,container:a,containerEditor:l,editorProps:c={}}=e,u=Nt(e,rb);if(!r||0===r.length)return null;return(0,Qt.jsx)("div",Dt({className:t+"-toolbar "+(n||"")+" "+(o?t+"-toolbar-mode":"")},u,{children:[...r].map(((e,t)=>{var n={type:"button"},r="string"===typeof e?eb[e]:e;if(!r)return null;if(n.children=r.icon,n.onClick=()=>{var e;(e=r.execute)&&i&&i&&e(i.current)},r.button&&"object"===typeof r.button){var o=r.button;Object.keys(o).forEach((e=>{n[e]=o[e]}))}else if("function"===typeof r.button)return K.cloneElement(r.button(r,c,{preview:s,container:a,containerEditor:l,editor:i,editorProps:c}),{key:t});return(0,K.createElement)("button",Dt({},n,{key:t}))}))}))}var ob=e=>{var{theme:t,settings:n={},styles:r=[]}=e,i={".cm-gutters":{}},o={};n.background&&(o.backgroundColor=n.background),n.backgroundImage&&(o.backgroundImage=n.backgroundImage),n.foreground&&(o.color=n.foreground),n.fontSize&&(o.fontSize=n.fontSize),(n.background||n.foreground)&&(i["&"]=o),n.fontFamily&&(i["&.cm-editor .cm-scroller"]={fontFamily:n.fontFamily}),n.gutterBackground&&(i[".cm-gutters"].backgroundColor=n.gutterBackground),n.gutterForeground&&(i[".cm-gutters"].color=n.gutterForeground),n.gutterBorder&&(i[".cm-gutters"].borderRightColor=n.gutterBorder),n.caret&&(i[".cm-content"]={caretColor:n.caret},i[".cm-cursor, .cm-dropCursor"]={borderLeftColor:n.caret});var s={};n.gutterActiveForeground&&(s.color=n.gutterActiveForeground),n.lineHighlight&&(i[".cm-activeLine"]={backgroundColor:n.lineHighlight},s.backgroundColor=n.lineHighlight),i[".cm-activeLineGutter"]=s,n.selection&&(i["&.cm-focused .cm-selectionBackground, & .cm-line::selection, & .cm-selectionLayer .cm-selectionBackground, .cm-content ::selection"]={background:n.selection+" !important"}),n.selectionMatch&&(i["& .cm-selectionMatch"]={backgroundColor:n.selectionMatch});var a=ta.Lz.theme(i,{dark:"dark"===t}),l=Vs.cr.define(r);return[a,(0,Vs.y9)(l)]};var sb=ob({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:du._A.comment,color:"var(--color-prettylights-syntax-comment)"},{tag:du._A.variableName,color:"var(--color-prettylights-syntax-variable)"},{tag:[du._A.string,du._A.special(du._A.brace)],color:"var(--color-prettylights-syntax-entity)"},{tag:du._A.number,color:"var(--color-prettylights-syntax-variable)"},{tag:[du._A.bool,du._A.null],color:"var(--color-prettylights-syntax-entity)"},{tag:du._A.keyword,color:"var(--color-prettylights-syntax-keyword)",fontWeight:"bold"},{tag:du._A.string,color:"var(--color-prettylights-syntax-string)"},{tag:du._A.operator,color:"var(--color-accent-emphasis)"},{tag:du._A.deleted,color:"var(--color-prettylights-syntax-markup-deleted-bg)"},{tag:du._A.deleted,color:"red"},{tag:du._A.className,color:"var(--color-prettylights-syntax-variable)"},{tag:du._A.definition(du._A.typeName),color:"var(--color-prettylights-syntax-entity)"},{tag:du._A.typeName,color:"var(--color-prettylights-syntax-entity)"},{tag:du._A.list,color:"var(--color-prettylights-syntax-markup-list)"},{tag:du._A.heading,color:"var(--color-prettylights-syntax-markup-heading)",fontWeight:"bold"},{tag:du._A.regexp,color:"var(--color-prettylights-syntax-string-regexp)"},{tag:du._A.literal,color:"var(--color-prettylights-syntax-markup-italic)"},{tag:du._A.link,color:"var(--color-prettylights-syntax-constant-other-reference-link)",textDecoration:"underline"},{tag:du._A.angleBracket,color:"var(--color-fg-default)"},{tag:du._A.tagName,color:"var(--color-prettylights-syntax-entity-tag)"},{tag:du._A.attributeName,color:"var(--color-prettylights-syntax-constant)"}]}),ab=["prefixCls","className","onChange","toolbars","toolbarsMode","toolbarsFilter","visible","renderPreview","visibleEditor","hideToolbar","toolbarBottom","enableScroll","enablePreview","previewProps","extensions","previewWidth","reExtensions","onPreviewMode"],lb=ta.Lz.theme({"&.cm-editor, & .cm-scroller":{borderBottomRightRadius:"3px",borderBottomLeftRadius:"3px"}}),cb=K.forwardRef(hb);cb.Markdown=QO;const ub=cb;function hb(e,t){var{prefixCls:n="md-editor",className:r,onChange:i,toolbars:o=tb(),toolbarsMode:s=nb(),toolbarsFilter:a,visible:l=!0,renderPreview:c,visibleEditor:u=!0,hideToolbar:h=!0,toolbarBottom:d=!1,enableScroll:f=!0,enablePreview:p=!0,previewProps:m={},extensions:g=[],previewWidth:O="50%",reExtensions:b}=e,y=Nt(e,ab),[v,k]=(0,K.useState)(e.value||""),x=(0,K.useRef)(null),S=(0,K.useRef)(null),w=(0,K.useRef)(null),T=(0,K.useRef)(null),A=(0,K.useRef)("editor");(0,K.useImperativeHandle)(t,(()=>({editor:x,preview:T})),[x]);var E={preview:T,editor:x,container:S,containerEditor:w,editorProps:Dt({},e,{previewWidth:O})},C="number"===typeof y.height?y.height+"px":y.height,P=e.value;(0,K.useEffect)((()=>k(null!=P?P:"")),[P]);var _=(0,K.useCallback)((e=>{if(f){var t=e.target,n=t.scrollTop/t.scrollHeight;if("editor"===A.current&&T.current){var r,i=(null==(r=T.current)?void 0:r.scrollHeight)||0;T.current.scrollTop=i*n}else if(x.current&&x.current.view){var o=x.current.view.scrollDOM,s=x.current.view.scrollDOM.scrollHeight||0;o.scrollTop=s*n}}}),[f]),R=()=>A.current="preview",D=()=>A.current="editor";(0,K.useEffect)((()=>{var e=T.current;return e&&f&&(e.addEventListener("mouseover",R,!1),e.addEventListener("mouseleave",D,!1),e.addEventListener("scroll",_,!1)),()=>{e&&f&&(e.removeEventListener("mouseover",R),e.removeEventListener("mouseleave",R),e.addEventListener("mouseleave",_,!1))}}),[T,f,_]);var N=na({type:"scroll",events:{scroll:_}}),Q=b||[(0,Gs.markdown)({base:Gs.markdownLanguage,codeLanguages:ea}),lb,...g];f&&Q.push(N);var M=n+"-preview",$=[n,"wmde-markdown-var",r].filter(Boolean).join(" ");m.source=v;var L=(0,Qt.jsxs)("div",{className:n+"-content",style:{height:y.height},children:[(0,Qt.jsx)("div",{className:n+"-content-editor",ref:w,children:u&&(0,Qt.jsx)(Iu,Dt({theme:sb},y,{className:n+"-inner",extensions:Q,height:C,ref:x,onChange:(e,t)=>{k(e),i&&i(e,t)}}))}),p&&(0,Qt.jsx)("div",{className:M,ref:T,children:c?c(m,!!l):(0,Qt.jsx)(QO,Dt({},m,{"data-visible":!!l}))})]}),I=[n&&n+"-toolbar-warp",n&&d&&n+"-toolbar-bottom"].filter(Boolean).join(" "),F=a?o.filter(a):o,B=a?s.filter(a):s,z=h&&(0,Qt.jsxs)("div",{className:I,children:[(0,Qt.jsx)(ib,Dt({},E,{toolbars:F})),(0,Qt.jsx)(ib,Dt({},E,{toolbars:B,mode:!0}))]}),Z=d?(0,Qt.jsxs)(K.Fragment,{children:[L,z]}):(0,Qt.jsxs)(K.Fragment,{children:[z,L]});return(0,Qt.jsx)("div",{className:$,ref:S,children:Z})}var db={background:"#0f0f0f",foreground:"#defdef",caret:"#00FF00",selection:"#515151",selectionMatch:"#515151",gutterBackground:"#555",gutterForeground:"#FFFFFF",lineHighlight:"#0a6bcb3d"},fb=[{tag:du._A.keyword,color:"darkgoldenrod",fontWeight:"bold"},{tag:du._A.atom,color:"#77F"},{tag:du._A.comment,color:"#7a7b7c",fontStyle:"italic"},{tag:du._A.number,color:"violet"},{tag:du._A.definition(du._A.variableName),color:"#fffabc"},{tag:du._A.variableName,color:"#abcdef"},{tag:du._A.function(du._A.variableName),color:"#fffabc"},{tag:du._A.typeName,color:"#FFDD44"},{tag:du._A.tagName,color:"#def"},{tag:du._A.string,color:"#2b4"},{tag:du._A.meta,color:"#C9F"},{tag:du._A.bracket,color:"#8a8a8a"},{tag:du._A.attributeName,color:"#DDFF00"},{tag:du._A.heading,color:"aquamarine",fontWeight:"bold"},{tag:du._A.link,color:"blueviolet",fontWeight:"bold"}],pb=(e=>{var{theme:t="dark",settings:n={},styles:r=[]}=e||{};return ob({theme:t,settings:Dt({},db,n),styles:[...fb,...r]})})(),mb={background:"#282b2e",foreground:"#a9b7c6",caret:"#00FF00",selection:"#4e5254",selectionMatch:"#4e5254",lineHighlight:"#7f85891f"},gb=[{tag:[du._A.keyword,du._A.deleted,du._A.className],color:"#cc7832"},{tag:[du._A.number,du._A.literal,du._A.derefOperator],color:"#6897bb"},{tag:[du._A.link,du._A.variableName],color:"#629755"},{tag:[du._A.comment,du._A.quote],color:"grey"},{tag:[du._A.meta,du._A.documentMeta],color:"#bbb529"},{tag:[du._A.string,du._A.propertyName,du._A.attributeValue],color:"#6a8759"},{tag:[du._A.heading,du._A.typeName],color:"#ffc66d"},{tag:[du._A.attributeName],color:"#a9b7c6"},{tag:[du._A.emphasis],fontStyle:"italic"}],Ob=(e=>{var{theme:t="dark",settings:n={},styles:r=[]}=e||{};return ob({theme:t,settings:Dt({},mb,n),styles:[...gb,...r]})})(),bb={background:"#272C35",foreground:"#9d9b97",caret:"#797977",selection:"#3d4c64",selectionMatch:"#3d4c64",gutterBackground:"#272C35",gutterForeground:"#465063",gutterBorder:"transparent",lineHighlight:"#2e3f5940"},yb=[{tag:[du._A.function(du._A.variableName),du._A.function(du._A.propertyName),du._A.url,du._A.processingInstruction],color:"hsl(207, 82%, 66%)"},{tag:[du._A.tagName,du._A.heading],color:"#e06c75"},{tag:du._A.comment,color:"#54636D"},{tag:[du._A.propertyName],color:"hsl(220, 14%, 71%)"},{tag:[du._A.attributeName,du._A.number],color:"hsl( 29, 54%, 61%)"},{tag:du._A.className,color:"hsl( 39, 67%, 69%)"},{tag:du._A.keyword,color:"hsl(286, 60%, 67%)"},{tag:[du._A.string,du._A.regexp,du._A.special(du._A.propertyName)],color:"#98c379"}],vb=(e=>{var{theme:t="dark",settings:n={},styles:r=[]}=e||{};return ob({theme:t,settings:Dt({},bb,n),styles:[...yb,...r]})})(),kb={background:"#FFFFFF",foreground:"#000000",caret:"#FBAC52",selection:"#FFD420",selectionMatch:"#FFD420",gutterBackground:"#f5f5f5",gutterForeground:"#4D4D4C",gutterBorder:"transparent",lineHighlight:"#00000012"},xb=[{tag:[du._A.meta,du._A.comment],color:"#804000"},{tag:[du._A.keyword,du._A.strong],color:"#0000FF"},{tag:[du._A.number],color:"#FF0080"},{tag:[du._A.string],color:"#FF0080"},{tag:[du._A.variableName],color:"#006600"},{tag:[du._A.escape],color:"#33CC33"},{tag:[du._A.tagName],color:"#1C02FF"},{tag:[du._A.heading],color:"#0C07FF"},{tag:[du._A.quote],color:"#000000"},{tag:[du._A.list],color:"#B90690"},{tag:[du._A.documentMeta],color:"#888888"},{tag:[du._A.function(du._A.variableName)],color:"#0000A2"},{tag:[du._A.definition(du._A.typeName),du._A.typeName],color:"#6D79DE"}],Sb=(e=>{var{theme:t="light",settings:n={},styles:r=[]}=e||{};return ob({theme:t,settings:Dt({},kb,n),styles:[...xb,...r]})})(),wb={background:"#28211c",foreground:"#9d9b97",caret:"#797977",selection:"#4f382b",selectionMatch:"#4f382b",gutterBackground:"#28211c",gutterForeground:"#666666",lineHighlight:"#ffffff1a"},Tb=[{tag:[du._A.atom,du._A.number,du._A.link,du._A.bool],color:"#9b859d"},{tag:du._A.comment,color:"#937121"},{tag:[du._A.keyword,du._A.tagName],color:"#cf6a4c"},{tag:du._A.string,color:"#f9ee98"},{tag:du._A.bracket,color:"#9d9b97"},{tag:[du._A.variableName],color:"#5ea6ea"},{tag:du._A.definition(du._A.variableName),color:"#cf7d34"},{tag:[du._A.function(du._A.variableName),du._A.className],color:"#cf7d34"},{tag:[du._A.propertyName,du._A.attributeName],color:"#54be0d"}],Ab=(e=>{var{theme:t="dark",settings:n={},styles:r=[]}=e||{};return ob({theme:t,settings:Dt({},wb,n),styles:[...Tb,...r]})})(),Eb={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)"},Cb=[{tag:[du._A.atom,du._A.number],color:"#bd93f9"},{tag:[du._A.comment],color:"#61A151"},{tag:[du._A.string],color:"#6A8759"},{tag:[du._A.variableName,du._A.operator],color:"#A9B7C6"},{tag:[du._A.meta,du._A.className],color:"#A9B7C6"},{tag:[du._A.propertyName],color:"#FFC66D"},{tag:[du._A.keyword],color:"#CC7832"},{tag:[du._A.tagName],color:"#ff79c6"},{tag:[du._A.typeName],color:"#ffb86c"}],Pb=(e=>{var{theme:t="dark",settings:n={},styles:r=[]}=e||{};return ob({theme:t,settings:Dt({},Eb,n),styles:[...Cb,...r]})})(),_b={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)"},Rb=[{tag:du._A.comment,color:"#6272a4"},{tag:du._A.string,color:"#f1fa8c"},{tag:du._A.atom,color:"#bd93f9"},{tag:du._A.meta,color:"#f8f8f2"},{tag:[du._A.keyword,du._A.operator,du._A.tagName],color:"#ff79c6"},{tag:[du._A.function(du._A.propertyName),du._A.propertyName],color:"#66d9ef"},{tag:[du._A.definition(du._A.variableName),du._A.function(du._A.variableName),du._A.className,du._A.attributeName],color:"#50fa7b"},{tag:du._A.atom,color:"#bd93f9"}],Db=(e=>{var{theme:t="dark",settings:n={},styles:r=[]}=e||{};return ob({theme:t,settings:Dt({},_b,n),styles:[...Rb,...r]})})(),Nb={background:"#faf8f5",foreground:"#b29762",caret:"#93abdc",selection:"#e3dcce",selectionMatch:"#e3dcce",gutterBackground:"#faf8f5",gutterForeground:"#cdc4b1",gutterBorder:"transparent",lineHighlight:"#ddceb154"},Qb=[{tag:[du._A.comment,du._A.bracket],color:"#b6ad9a"},{tag:[du._A.atom,du._A.number,du._A.keyword,du._A.link,du._A.attributeName,du._A.quote],color:"#063289"},{tag:[du._A.emphasis,du._A.heading,du._A.tagName,du._A.propertyName,du._A.variableName],color:"#2d2006"},{tag:[du._A.typeName,du._A.url,du._A.string],color:"#896724"},{tag:[du._A.operator,du._A.string],color:"#1659df"},{tag:[du._A.propertyName],color:"#b29762"},{tag:[du._A.unit,du._A.punctuation],color:"#063289"}],Mb=(e=>{var{theme:t="light",settings:n={},styles:r=[]}=e||{};return ob({theme:t,settings:Dt({},Nb,n),styles:[...Qb,...r]})})(),$b={background:"#2a2734",foreground:"#6c6783",caret:"#ffad5c",selection:"#91ff6c26",selectionMatch:"#91ff6c26",gutterBackground:"#2a2734",gutterForeground:"#545167",lineHighlight:"#36334280"},Lb=[{tag:[du._A.comment,du._A.bracket],color:"#6c6783"},{tag:[du._A.atom,du._A.number,du._A.keyword,du._A.link,du._A.attributeName,du._A.quote],color:"#ffcc99"},{tag:[du._A.emphasis,du._A.heading,du._A.tagName,du._A.propertyName,du._A.className,du._A.variableName],color:"#eeebff"},{tag:[du._A.typeName,du._A.url],color:"#7a63ee"},{tag:du._A.operator,color:"#ffad5c"},{tag:du._A.string,color:"#ffb870"},{tag:[du._A.propertyName],color:"#9a86fd"},{tag:[du._A.unit,du._A.punctuation],color:"#e09142"}],Ib=(e=>{var{theme:t="dark",settings:n={},styles:r=[]}=e||{};return ob({theme:t,settings:Dt({},$b,n),styles:[...Lb,...r]})})(),Fb={background:"#fff",foreground:"#000",caret:"#FFFFFF",selection:"#d7d4f0",selectionMatch:"#d7d4f0",gutterBackground:"#f7f7f7",gutterForeground:"#999",lineHighlight:"#006fff1c",gutterBorder:"transparent"},Bb=[{tag:[du._A.comment],color:"#3F7F5F"},{tag:[du._A.documentMeta],color:"#FF1717"},{tag:du._A.keyword,color:"#7F0055",fontWeight:"bold"},{tag:du._A.atom,color:"#00f"},{tag:du._A.number,color:"#164"},{tag:du._A.propertyName,color:"#164"},{tag:[du._A.variableName,du._A.definition(du._A.variableName)],color:"#0000C0"},{tag:du._A.function(du._A.variableName),color:"#0000C0"},{tag:du._A.string,color:"#2A00FF"},{tag:du._A.operator,color:"black"},{tag:du._A.tagName,color:"#170"},{tag:du._A.attributeName,color:"#00c"},{tag:du._A.link,color:"#219"}],zb=(e=>{var{theme:t="light",settings:n={},styles:r=[]}=e||{};return ob({theme:t,settings:Dt({},Fb,n),styles:[...Bb,...r]})})(),Zb={background:"#fff",foreground:"#24292e",selection:"#BBDFFF",selectionMatch:"#BBDFFF",gutterBackground:"#fff",gutterForeground:"#6e7781"},jb=[{tag:[du._A.standard(du._A.tagName),du._A.tagName],color:"#116329"},{tag:[du._A.comment,du._A.bracket],color:"#6a737d"},{tag:[du._A.className,du._A.propertyName],color:"#6f42c1"},{tag:[du._A.variableName,du._A.attributeName,du._A.number,du._A.operator],color:"#005cc5"},{tag:[du._A.keyword,du._A.typeName,du._A.typeOperator,du._A.typeName],color:"#d73a49"},{tag:[du._A.string,du._A.meta,du._A.regexp],color:"#032f62"},{tag:[du._A.name,du._A.quote],color:"#22863a"},{tag:[du._A.heading,du._A.strong],color:"#24292e",fontWeight:"bold"},{tag:[du._A.emphasis],color:"#24292e",fontStyle:"italic"},{tag:[du._A.deleted],color:"#b31d28",backgroundColor:"ffeef0"},{tag:[du._A.atom,du._A.bool,du._A.special(du._A.variableName)],color:"#e36209"},{tag:[du._A.url,du._A.escape,du._A.regexp,du._A.link],color:"#032f62"},{tag:du._A.link,textDecoration:"underline"},{tag:du._A.strikethrough,textDecoration:"line-through"},{tag:du._A.invalid,color:"#cb2431"}],Ub=(e=>{var{theme:t="light",settings:n={},styles:r=[]}=e||{};return ob({theme:t,settings:Dt({},Zb,n),styles:[...jb,...r]})})(),Xb={background:"#0d1117",foreground:"#c9d1d9",caret:"#c9d1d9",selection:"#003d73",selectionMatch:"#003d73",lineHighlight:"#36334280"},Hb=[{tag:[du._A.standard(du._A.tagName),du._A.tagName],color:"#7ee787"},{tag:[du._A.comment,du._A.bracket],color:"#8b949e"},{tag:[du._A.className,du._A.propertyName],color:"#d2a8ff"},{tag:[du._A.variableName,du._A.attributeName,du._A.number,du._A.operator],color:"#79c0ff"},{tag:[du._A.keyword,du._A.typeName,du._A.typeOperator,du._A.typeName],color:"#ff7b72"},{tag:[du._A.string,du._A.meta,du._A.regexp],color:"#a5d6ff"},{tag:[du._A.name,du._A.quote],color:"#7ee787"},{tag:[du._A.heading,du._A.strong],color:"#d2a8ff",fontWeight:"bold"},{tag:[du._A.emphasis],color:"#d2a8ff",fontStyle:"italic"},{tag:[du._A.deleted],color:"#ffdcd7",backgroundColor:"ffeef0"},{tag:[du._A.atom,du._A.bool,du._A.special(du._A.variableName)],color:"#ffab70"},{tag:du._A.link,textDecoration:"underline"},{tag:du._A.strikethrough,textDecoration:"line-through"},{tag:du._A.invalid,color:"#f97583"}],Wb=(e=>{var{theme:t="dark",settings:n={},styles:r=[]}=e||{};return ob({theme:t,settings:Dt({},Xb,n),styles:[...Hb,...r]})})(),qb={background:"#272822",foreground:"#FFFFFF",caret:"#FFFFFF",selection:"#49483E",selectionMatch:"#49483E",gutterBackground:"#272822",gutterForeground:"#FFFFFF70",lineHighlight:"#0000003b"},Yb=[{tag:[du._A.comment,du._A.documentMeta],color:"#8292a2"},{tag:[du._A.number,du._A.bool,du._A.null,du._A.atom],color:"#ae81ff"},{tag:[du._A.attributeValue,du._A.className,du._A.name],color:"#e6db74"},{tag:[du._A.propertyName,du._A.attributeName],color:"#a6e22e"},{tag:[du._A.variableName],color:"#9effff"},{tag:[du._A.squareBracket],color:"#bababa"},{tag:[du._A.string,du._A.special(du._A.brace)],color:"#e6db74"},{tag:[du._A.regexp,du._A.className,du._A.typeName,du._A.definition(du._A.typeName)],color:"#66d9ef"},{tag:[du._A.definition(du._A.variableName),du._A.definition(du._A.propertyName),du._A.function(du._A.variableName)],color:"#fd971f"},{tag:[du._A.keyword,du._A.definitionKeyword,du._A.modifier,du._A.tagName,du._A.angleBracket],color:"#f92672"}],Gb=(e=>{var{theme:t="dark",settings:n={},styles:r=[]}=e||{};return ob({theme:t,settings:Dt({},qb,n),styles:[...Yb,...r]})})(),Vb={background:"#303841",foreground:"#FFFFFF",caret:"#FBAC52",selection:"#4C5964",selectionMatch:"#3A546E",gutterBackground:"#303841",gutterForeground:"#FFFFFF70",lineHighlight:"#00000059"},Kb=[{tag:[du._A.meta,du._A.comment],color:"#A2A9B5"},{tag:[du._A.attributeName,du._A.keyword],color:"#B78FBA"},{tag:du._A.function(du._A.variableName),color:"#5AB0B0"},{tag:[du._A.string,du._A.regexp,du._A.attributeValue],color:"#99C592"},{tag:du._A.operator,color:"#f47954"},{tag:[du._A.tagName,du._A.modifier],color:"#E35F63"},{tag:[du._A.number,du._A.definition(du._A.tagName),du._A.className,du._A.definition(du._A.variableName)],color:"#fbac52"},{tag:[du._A.atom,du._A.bool,du._A.special(du._A.variableName)],color:"#E35F63"},{tag:du._A.variableName,color:"#539ac4"},{tag:[du._A.propertyName,du._A.typeName],color:"#629ccd"},{tag:du._A.propertyName,color:"#36b7b5"}];var Jb=function(e){var{theme:t="dark",settings:n={},styles:r=[]}=e||{};return ob({theme:t,settings:Dt({},Vb,n),styles:[...Kb,...r]})}(),ey={background:"#fff",foreground:"#3D3D3D",selection:"#BBDFFF",selectionMatch:"#BBDFFF",gutterBackground:"#fff",gutterForeground:"#AFAFAF",lineHighlight:"#d5e6ff69"},ty=[{tag:[du._A.comment,du._A.quote],color:"#707F8D"},{tag:[du._A.typeName,du._A.typeOperator],color:"#aa0d91"},{tag:[du._A.keyword],color:"#aa0d91",fontWeight:"bold"},{tag:[du._A.string,du._A.meta],color:"#D23423"},{tag:[du._A.name],color:"#032f62"},{tag:[du._A.typeName],color:"#522BB2"},{tag:[du._A.variableName],color:"#23575C"},{tag:[du._A.definition(du._A.variableName)],color:"#327A9E"},{tag:[du._A.regexp,du._A.link],color:"#0e0eff"}];var ny=function(e){var{theme:t="light",settings:n={},styles:r=[]}=e||{};return ob({theme:t,settings:Dt({},ey,n),styles:[...ty,...r]})}(),ry={background:"#292A30",foreground:"#CECFD0",caret:"#fff",selection:"#727377",selectionMatch:"#727377",lineHighlight:"#ffffff0f"},iy=[{tag:[du._A.comment,du._A.quote],color:"#7F8C98"},{tag:[du._A.keyword],color:"#FF7AB2",fontWeight:"bold"},{tag:[du._A.string,du._A.meta],color:"#FF8170"},{tag:[du._A.typeName],color:"#DABAFF"},{tag:[du._A.definition(du._A.variableName)],color:"#6BDFFF"},{tag:[du._A.name],color:"#6BAA9F"},{tag:[du._A.variableName],color:"#ACF2E4"},{tag:[du._A.regexp,du._A.link],color:"#FF8170"}],oy=(e=>{var{theme:t="dark",settings:n={},styles:r=[]}=e||{};return ob({theme:t,settings:Dt({},ry,n),styles:[...iy,...r]})})();const sy='
\n

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

\n
\n\n[![Buy me a coffee](https://img.shields.io/badge/Buy%20me%20a%20coffee-048754?logo=buymeacoffee)](https://jaywcjlove.github.io/#/sponsor)\n[![CI](https://github.com/jaywcjlove/wxmp/actions/workflows/ci.yml/badge.svg)](https://github.com/jaywcjlove/wxmp/actions/workflows/ci.yml)\n\n[![\u5fae\u4fe1\u516c\u4f17\u53f7 Markdown \u7f16\u8f91\u5668](https://user-images.githubusercontent.com/1680273/188264183-a6b8cb6a-92e1-4a73-afc5-4f0234b26ed3.png)](https://jaywcjlove.github.io/wxmp)\n\n\u5fae\u4fe1\u516c\u4f17\u53f7\u6587\u7ae0 Markdown \u5728\u7ebf\u7f16\u8f91\u5668\uff0c\u4f7f\u7528 markdown \u8bed\u6cd5\u521b\u5efa\u4e00\u7bc7\u7b80\u4ecb\u7f8e\u89c2\u5927\u65b9\u7684\u5fae\u4fe1\u516c\u4f17\u53f7\u56fe\u6587\u3002\u7531\u4e8e\u53d1\u7248\u672c\u9ebb\u70e6\uff0c\u548c\u4e00\u4e9b\u529f\u80fd\u65e0\u6cd5\u6269\u5c55\u505c\u6ede\u5f00\u53d1\u4e86\uff0c\u672a\u6765\u4e0d\u518d\u5f00\u53d1 Chrome \u7684\u63d2\u4ef6(\u6682\u5b58\u5728 chrome \u5206\u652f)\uff0c\u901a\u8fc7 web \u7248\u672c\u5b9a\u5236\u66f4\u4e30\u5bcc\u7684\u529f\u80fd\u3002\n\n[![Markdown \u7f16\u8f91\u5668\u684c\u9762\u5e94\u7528](https://user-images.githubusercontent.com/1680273/188407235-ead43d61-2ef8-416a-926f-396d8b824b33.png)](https://github.com/jaywcjlove/wxmp/releases)\n\n## \u529f\u80fd\u7279\u6027\n\n\u5f00\u53d1\u8ba1\u5212\u548c\u4e00\u4e9b\u529f\u80fd\u4ecb\u7ecd\uff0c\u6709\u9700\u6c42\u53ef\u4ee5\u5728 issue \u4e2d\u63d0\uff0c\u4f7f\u5f97\u5de5\u5177\u53d8\u5f97\u66f4\u52a0\u5b8c\u5584\u3002\u4e0b\u9762\u793a\u4f8b\u7528\u4e8e web \u5e94\u7528\u4e2d\u6548\u679c\u5c55\u793a\u3002\n\n- [x] \u652f\u6301 Markdown \u6240\u6709\u57fa\u7840\u8bed\u6cd5\n- [x] \u652f\u6301\u81ea\u5b9a\u4e49 CSS \u6837\u5f0f\n- [x] \u652f\u6301\u4e3b\u9898\u9009\u62e9 & \u7f16\u8f91\u9884\u89c8\u3002\n- [x] \u652f\u6301\u660e\u6697\u4e24\u79cd\u4e3b\u9898\u9884\u89c8\u3002\n- [ ] \u652f\u6301\u4ee3\u7801\u5757\u4e3b\u9898\u6837\u5f0f\u9009\u62e9\u3002\n- [x] \u652f\u6301\u8272\u76d8\u53d6\u8272\uff0c\u5feb\u901f\u66ff\u6362\u6587\u7ae0\u6574\u4f53\u8272\u8c03\n- [x] \u652f\u6301 URL \u53c2\u6570\u52a0\u8f7d Markdown \u5185\u5bb9\u3002\n- [x] \u652f\u6301 URL \u53c2\u6570\u9009\u62e9\u9884\u89c8\u4e3b\u9898\u3002\n- [x] CI \u81ea\u52a8\u751f\u6210 Electron \u684c\u9762\u5e94\u7528\u3002\n- [ ] ~~\u652f\u6301\u5168\u5c40\u5b57\u53f7\u5927\u5c0f\u9009\u62e9\u3002~~\n\n### \u652f\u6301\u4ee3\u7801\u5757\u6837\u5f0f\n\n\u4e0b\u9762\u662f `jsx` \u4ee3\u7801\u5757\u5c55\u793a\u793a\u4f8b\uff0c\u5e76\u9ad8\u4eae\u4ee3\u7801\uff0c\u7528\u4e8e web \u5e94\u7528\u4e2d\u6548\u679c\u5c55\u793a\u3002\n\n```jsx\nfunction Demo() {\n return
Hello World!
\n}\n```\n\n\u4e0b\u9762\u662f `css` \u4ee3\u7801\u5757\u5c55\u793a\u793a\u4f8b\uff0c\u5e76\u9ad8\u4eae\u4ee3\u7801\uff0c\u7528\u4e8e web \u5e94\u7528\u4e2d\u6548\u679c\u5c55\u793a\u3002\n\n```css\nli {\n font-size: 16px;\n margin: 0;\n line-height: 26px;\n color: rgb(30 41 59);\n font-family:-apple-system-font,BlinkMacSystemFont, Helvetica Neue, PingFang SC, Hiragino Sans GB , Microsoft YaHei UI , Microsoft YaHei ,Arial,sans-serif;\n}\n```\n\n### \u652f\u6301\u5185\u8054\u4ee3\u7801\n\n> \u7528\u4e8e web \u5e94\u7528\u4e2d\u6548\u679c\u5c55\u793a\u3002\n\nInline Code `{code: 0}`\n\n### \u652f\u6301\u8868\u683c\n\n\u8868\u683c\u65e0\u6cd5\u4f7f\u7528\u81ea\u5b9a\u4e49\u6837\u5f0f\uff0c\u6682\u65f6\u6ca1\u627e\u5230\u89e3\u51b3\u9014\u5f84\n\n| Header 1 | Header 2 |\n| --- | --- |\n| Key 1 | Value 1 |\n| Key 2 | Value 2 |\n| Key 3 | Value 3 |\n\n### \u652f\u6301 GFM \u811a\u6ce8\n\n\u8fd9\u662f\u4e00\u4e2a\u7b80\u5355\u7684 Markdown[^1] \u8bed\u6cd5\u7684\u811a\u6ce8[^2]\u3002 \u9875\u9762\u6700\u540e\u6709\u4e00\u4e9b\u989d\u5916\u7684\u6587\u5b57\u63cf\u8ff0\u3002\u6ce8\u610f\u8fd9\u4e0d\u662f\u5b8c\u6574\u7684\u6ce8\u811a[^3]\u7279\u6027\u3002\n\n[^1]: GitHub \u98ce\u683c\u7684 Markdown \u89c4\u8303 https://github.github.com/gfm/\n[^2]: \u811a\u6ce8 https://github.blog/changelog/2021-09-30-footnotes-now-supported-in-markdown-fields/\n[^3]: \u5fae\u4fe1\u6587\u7ae0\u4e0d\u652f\u6301\u951a\u70b9\u8df3\u8f6c\u548c\u6253\u5f00\u7b2c\u4e09\u65b9 URL \u8d85\u94fe\u63a5\uff0c\u6240\u4ee5\u4e0d\u652f\u6301\u5b8c\u6574\u7684\u6ce8\u811a\u7279\u6027\u3002\n\n### \u652f\u6301\u6ce8\u91ca\n\n```html\n\n \u6c49 Han\n\n```\n\n\u6c49\u5b57\u6ce8\u97f3\u6548\u679c\uff1a\n\n \u6c49 Han\n \u5b57 zi\n \u62fc pin\n \u97f3 yin\n \u6ce8 zhu\n \u97f3 yin\n\n\n### \u652f\u6301\u81ea\u5b9a\u4e49\u6837\u5f0f\n\x3c!--rehype:style=color: red;--\x3e\n\n\u5728 Markdown \u4e2d HTML \u6ce8\u91ca\u4e5f\u53ef\u4ee5\u7528\u5728 markdown \u4e2d\uff0c\u5229\u7528\u8fd9\u4e00\u7279\u70b9\uff0c\u4e3a\u4e00\u4e9b\u5185\u5bb9\u81ea\u5b9a\u4e00\u6837\u5f0f\u3002\u4f7f\u7528 HTML \u6ce8\u91ca `\x3c!--rehype:xxx--\x3e`\x3c!--rehype:style=color: red;background: #ff000033;--\x3e \u8ba9 Markdown \u652f\u6301\u6837\u5f0f\u81ea\u5b9a\u4e49\u3002\n\n```markdown\n## \u5b9a\u4e49\u6807\u9898\u6837\u5f0f\n\x3c!--rehype:style=display: flex; height: 230px; align-items: center; justify-content: center; font-size: 38px;--\x3e\n\n\u652f\u6301\u5bf9\u67d0\u4e9b\u6587\u5b57\u53d8\u66f4\u6837\u5f0f\uff0c\u5982_\u6587\u5b57\u989c\u8272_\x3c!--rehype:style=color: red;--\x3e\uff0c\u6587\u5b57\u989c\u8272\u5c06\u88ab\u8bbe\u7f6e\u4e3a\u7ea2\u8272(red)\u3002\n```\n\n\u26a0\ufe0f \u6ce8\u610f\uff1a\u8fd9\u4e00\u7279\u6027\u53ef\u80fd\u9002\u7528\u4e8e\u6709\u4e00\u5b9a css \u524d\u7aef\u57fa\u7840\u77e5\u8bc6\u7684\u7528\u6237\uff0c\u4e0d\u8fc7\u5b83\u4e5f\u975e\u5e38\u7b80\u5355\uff0c\u4f7f\u7528 `\x3c!--rehype:style=` \u5f00\u59cb\uff0c`--\x3e` \u7ed3\u675f\uff0c\u4e2d\u95f4\u5305\u88f9 css \u6837\u5f0f\uff0c\u5982 `color: red;` \u8bbe\u7f6e\u6587\u5b57\u7ea2\u8272\u3002\n\n\n### \u6807\u8bb0\u5ffd\u7565\u5185\u5bb9\n\n\u6b64\u7279\u6027\u5229\u7528 HTML \u6ce8\u91ca\u5728 markdown \u4e2d\u88ab\u5ffd\u7565\u7684\u7279\u6027\uff0c\u6807\u8bb0\u9700\u8981\u5ffd\u7565\u7684\u5185\u5bb9\uff0c\u6807\u8bb0\u5f00\u59cb `\x3c!--rehype:ignore:start--\x3e`\uff0c\u6807\u8bb0\u7ed3\u675f `\x3c!--rehype:ignore:end--\x3e`\uff0c\u88ab\u6807\u8bb0\u7684\u5185\u5bb9\u5728\u5fae\u4fe1 Markdown \u7f16\u8f91\u5668\u9884\u89c8\u4e2d\u4e0d\u663e\u793a\u3002\u5728\u5176\u5b83\u9884\u89c8\u5de5\u5177\u4e2d\u5c55\u793a\u5185\u5bb9\uff0c\u6bd4\u5982 GitHub \u4e2d\u80fd\u5c55\u793a\u3002\n\n```markdown\n# \u6ce8\u91ca\u5ffd\u7565\n\n\x3c!--rehype:ignore:start--\x3e\u5185\u5bb9\u5728\u5fae\u4fe1 Markdown \u7f16\u8f91\u5668\u9884\u89c8\u4e2d\u4e0d\u663e\u793a\u3002\u5728\u5176\u5b83\u9884\u89c8\u5de5\u5177\u4e2d\u5c55\u793a\u5185\u5bb9\u3002\x3c!--rehype:ignore:end--\x3e\n```\n\n### \u652f\u6301 URL \u53c2\u6570\u52a0\u8f7d Markdown \u5185\u5bb9\n\n```\nhttps://?md=\n```\n\n\u52a0\u8f7d Markdown \u5185\u5bb9\u7684\u793a\u4f8b URL\uff1a\n\n```\nhttps://jaywcjlove.github.io/wxmp/#/?theme=underscore&md=https://raw.githubusercontent.com/jaywcjlove/c-tutorial/master/README.md\n\nMarkdown URL \u5730\u5740: https://raw.githubusercontent.com/jaywcjlove/c-tutorial/master/README.md\n```\n\n## \u4e3b\u9898\u5b9a\u5236\n\n\u5728\u76ee\u5f55 `website/src/themes` \u4e2d\u5b58\u653e\u9ed8\u8ba4\u4e3b\u9898\uff0c\u5728 `website/src/store/context.tsx` \u4e2d\u914d\u7f6e\u4e3b\u9898\uff0c\u4e3b\u9898\u4f7f\u7528 `css` \u5b9a\u4e49\u6837\u5f0f\uff0c\u4e0d\u652f\u6301\u590d\u6742\u7684\u9009\u62e9\u5668\u3002\u63d0\u4f9b\u5728\u7ebf\u4e3b\u9898\u7f16\u8f91\u5668\uff0c\u6b22\u8fce\u4fee\u6539\u5e76 `PR` \u8fdb\u4ed3\u5e93\u4f9b\u5927\u5bb6\u4f7f\u7528\u3002\n\n```css\n/* 1~6 \u6807\u9898\u6837\u5f0f\u5b9a\u4e49 */\nh1 {} h2 {} h3 {} h4 {} h5 {} h6 {}\na { color: red; } /* \u8d85\u94fe\u63a5\u6837\u5f0f\u5b9a\u4e49 */\nstrong {} /* \u52a0\u7c97\u6837\u5f0f\u5b9a\u4e49 */\ndel {} /* \u5220\u9664\u7ebf\u6837\u5f0f\u5b9a\u4e49 */\nem {} /* \u4e0b\u5212\u7ebf\u6837\u5f0f\u5b9a\u4e49 */\nu {} /* \u4e0b\u5212\u7ebf\u6837\u5f0f\u5b9a\u4e49 */\np {} /* \u6bb5\u843d\u6837\u5f0f\u5b9a\u4e49 */\nul {} /* \u65e0\u5e8f\u5217\u8868\u6837\u5f0f\u5b9a\u4e49 */\nol {} /* \u6709\u5e8f\u5217\u8868\u6837\u5f0f\u5b9a\u4e49 */\nli {} /* \u5217\u8868\u6761\u76ee\u6837\u5f0f\u5b9a\u4e49 */\nblockquote {} /* \u5757\u7ea7\u5f15\u7528\u6837\u5f0f\u5b9a\u4e49 */\ntable {}\ntd {}\nth {}\npre {} /* \u6837\u5f0f\u5b9a\u4e49 */\n.code-highlight {} /* \u4ee3\u7801\u5757\u6837\u5f0f\u5b9a\u4e49 */\n.code-line {} /* \u4ee3\u7801\u5757\u884c\u6837\u5f0f\u5b9a\u4e49 */\n.code-spans {} /* \u4ee3\u7801\u5757\u884c\u6837\u5f0f\u5b9a\u4e49 */\n\nsup {} /* GFM \u811a\u6ce8\u6837\u5f0f\u5b9a\u4e49 */\n.footnotes-title {} /* GFM \u811a\u6ce8\uff0c\u53c2\u8003\u6807\u9898\u6837\u5f0f\u5b9a\u4e49 */\n.footnotes-list {} /* GFM \u811a\u6ce8\uff0c\u53c2\u8003\u5217\u8868\u6837\u5f0f\u5b9a\u4e49 */\n\n.image-warpper {} /* \u56fe\u7247\u7236\u8282\u70b9\u6837\u5f0f\u5b9a\u4e49 */\n.image {} /* \u56fe\u7247\u6837\u5f0f\u5b9a\u4e49 */\n\n/* \u90e8\u5206\u4ee3\u7801\u9ad8\u4eae\u6837\u5f0f */\n.comment {}\n.property {}\n.function {}\n.keyword {}\n.punctuation {}\n.unit {}\n.tag {}\n.color {}\n.selector {}\n.quote {}\n.number {}\n.attr-name {}\n.attr-value {}\n```\n\n## \u90e8\u7f72\n\n[![Docker Image Version (latest by date)](https://img.shields.io/docker/v/wcjiang/wxmp?logo=docker)](https://hub.docker.com/r/wcjiang/wxmp) [![Docker Image Size (latest by date)](https://img.shields.io/docker/image-size/wcjiang/wxmp?logo=docker)](https://hub.docker.com/r/wcjiang/wxmp) [![Docker Pulls](https://img.shields.io/docker/pulls/wcjiang/wxmp?logo=docker)](https://hub.docker.com/r/wcjiang/wxmp)\n\n\u8f7b\u677e\u901a\u8fc7 docker \u90e8\u7f72\u300a\u5fae\u4fe1\u516c\u4f17\u53f7 Markdown \u7f16\u8f91\u5668\u300b\u7f51\u7ad9\u5e94\u7528\u3002\n\n```bash\ndocker pull wcjiang/wxmp\n# Or\ndocker pull ghcr.io/jaywcjlove/wxmp:latest\n```\n\n```bash\ndocker run --name wxmp --rm -d -p 8113:3000 wcjiang/wxmp:latest\n# Or\ndocker run --name wxmp -itd -p 8113:3000 wcjiang/wxmp:latest\n# Or\ndocker run --name wxmp -itd -p 8113:3000 ghcr.io/jaywcjlove/wxmp:latest\n```\n\n\u5728\u6d4f\u89c8\u5668\u4e2d\u8bbf\u95ee\u4ee5\u4e0b URL\n\n```\nhttp://localhost:96611/\n```\n\n## \u8d21\u732e\u8005\n\n\u4e00\u5982\u65e2\u5f80\uff0c\u611f\u8c22\u6211\u4eec\u51fa\u8272\u7684\u8d21\u732e\u8005\uff01\n\n\n \n\n\n\u4e0a\u56fe\u8d21\u732e\u8005\u5217\u8868\uff0c\u7531 [action-contributors](https://github.com/jaywcjlove/github-action-contributors)[^4] \u81ea\u52a8\u751f\u6210\u8d21\u732e\u8005\u56fe\u7247\u3002\n\n\n[^4]: Action Contributors https://github.com/jaywcjlove/github-action-contributors\n\n## License\n\n\u6839\u636e MIT \u8bb8\u53ef\u8bc1\u83b7\u5f97\u8bb8\u53ef\u3002\n',ay=sy,ly={default:{label:"\u9ed8\u8ba4\u4e3b\u9898",value:sb},abcdef:{label:"Abcdef Theme",value:pb},androidstudio:{label:"Android Studio Theme",value:Ob},atomone:{label:"Atomone Theme",value:vb},bbedit:{label:"Bbedit Theme",value:Sb},bespin:{label:"Bespin Theme",value:Ab},darcula:{label:"Darcula Theme",value:Pb},dracula:{label:"Dracula Theme",value:Db},duotoneLight:{label:"Duotone Light Theme",value:Mb},duotoneDark:{label:"Duotone Dark Theme",value:Ib},eclipse:{label:"Eclipse Theme",value:zb},githubLight:{label:"Github Light Theme",value:Ub},githubDark:{label:"Github Dark Theme",value:Wb},okaidia:{label:"Okaidia Theme",value:Gb},sublime:{label:"Sublime Theme",value:Jb},xcodeLight:{label:"Xcode Light Theme",value:ny},xcodeDark:{label:"Xcode Dark Theme",value:oy}},cy={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: 18px;\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: 16px;\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: 18px;\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: 16px;\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: 18px;\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: 16px;\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: 18px;\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: 16px;\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:""}},uy={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:[]},hy=(Object.keys(cy).map((e=>cy[e].color)),K.createContext({preColor:"",setPreColor:()=>{},isLoading:!0,setIsLoading:()=>{},markdown:sy,setMarkdown:()=>{},css:cy.underscore.value,setCss:()=>{},previewTheme:"underscore",setPreviewTheme:()=>{},theme:"default",setTheme:()=>{}})),dy=Lo.div``,fy=Lo.div` + position: relative; + height: 2.8rem; +`,py=Lo.header` + -webkit-app-region: drag; + display: flex; + flex-direction: row; + justify-content: space-between; + background: var(--color-canvas-default); + border-bottom: 1px solid var(--color-border-muted); + padding: 0.5rem 0.6rem 0.5rem 0.8rem; + position: fixed; + width: 100%; + z-index: 9; +`,my=Lo.article` + display: flex; + flex-direction: row; + align-items: center; + gap: 0.6rem; +`,gy=Lo(Ns)` + max-width: 3.6rem; +`,Oy=Lo.h1` + font-size: 1rem; + margin: 0; + display: flex; + align-items: center; + user-select: none; + sup { + color: var(--color-fg-subtle); + margin-left: 0.4rem; + background-color: var(--color-border-muted); + border-radius: 0.1rem; + padding: 0 0.2rem 0 0.1rem; + font-weight: normal; + font-size: 0.7rem; + letter-spacing: -0.1rem; + } +`,by=Lo.section` + display: flex; + align-items: center; + gap: 0.5rem; + dark-mode { + font-size: 1.05rem; + display: block; + line-height: 12px; + margin-left: 0.6rem; + } + a svg { + display: block; + } + a { + text-decoration: none; + color: var(--color-theme-text); + padding: 0.1rem 0.3rem; + transition: all 0.3s; + font-size: 0.9rem; + border-radius: 0.2rem; + &.active { + background-color: var(--color-accent-fg); + box-shadow: inset 0 -0.3rem 0 var(--color-accent-fg); + color: #fff; + } + &:hover:not(.active):not(:last-child) { + background-color: var(--color-accent-fg); + color: #fff; + border-radius: 0.2rem; + } + } +`;function yy(){const{isLoading:e}=(0,K.useContext)(hy);return(0,Qt.jsxs)(dy,{className:"wmde-markdown-color",children:[(0,Qt.jsx)(fy,{children:(0,Qt.jsxs)(py,{className:"header",children:[(0,Qt.jsxs)(my,{className:"logo",children:[(0,Qt.jsx)(gy,{width:28,height:28}),(0,Qt.jsxs)(Oy,{children:["\u5fae\u4fe1\u516c\u4f17\u53f7\u6392\u7248\u7f16\u8f91\u5668",(0,Qt.jsxs)("sup",{children:[" v","2.3.3"," "]})]}),e&&(0,Qt.jsx)(Ys,{})]}),(0,Qt.jsxs)(by,{children:[(0,Qt.jsx)(Et,{to:"/",children:"\u9996\u9875"}),(0,Qt.jsx)(Et,{to:"/editor/theme",children:"\u7f16\u8f91\u4e3b\u9898"}),(0,Qt.jsx)(Et,{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)(Ls,{width:23,height:23})})]})]})}),(0,Qt.jsx)(ht,{})]})}const vy=1,ky=2,xy=3,Sy=4,wy=5,Ty=6,Ay=7,Ey=8,Cy=9,Py=10,_y=11,Ry=12,Dy=13,Ny=14,Qy=15,My=16,$y=17,Ly=18,Iy=19,Fy=20,By=21,zy=22,Zy=23,jy=24,Uy=25,Xy=0;function Hy(e){return e>=48&&e<=57}function Wy(e){return Hy(e)||e>=65&&e<=70||e>=97&&e<=102}function qy(e){return e>=65&&e<=90}function Yy(e){return function(e){return qy(e)||function(e){return e>=97&&e<=122}(e)}(e)||function(e){return e>=128}(e)||95===e}function Gy(e){return Yy(e)||Hy(e)||45===e}function Vy(e){return e>=0&&e<=8||11===e||e>=14&&e<=31||127===e}function Ky(e){return 10===e||13===e||12===e}function Jy(e){return Ky(e)||32===e||9===e}function ev(e,t){return 92===e&&(!Ky(t)&&t!==Xy)}function tv(e,t,n){return 45===e?Yy(t)||45===t||ev(t,n):!!Yy(e)||92===e&&ev(e,t)}function nv(e,t,n){return 43===e||45===e?Hy(t)?2:46===t&&Hy(n)?3:0:46===e?Hy(t)?2:0:Hy(e)?1:0}function rv(e){return 65279===e||65534===e?1:0}const iv=new Array(128),ov=130,sv=131,av=132,lv=133;for(let U_=0;U_e.length)return!1;for(let i=t;i=55296&&t<=57343||t>1114111)&&(t=65533),String.fromCodePoint(t)}const kv=["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"],xv=16384;function Sv(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1?arguments[1]:void 0;return null===e||e.length0?rv(t.charCodeAt(0)):0,i=Sv(e.lines,n),o=Sv(e.columns,n);let s=e.startLine,a=e.startColumn;for(let 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}getLocation(e,t){return this.computed||wv(this),{source:t,offset:this.startOffset+e,line:this.lines[e],column:this.columns[e]}}getLocationRange(e,t,n){return this.computed||wv(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]}}}}const Av=16777215,Ev=24,Cv=new Map([[ky,zy],[By,zy],[Iy,Fy],[Zy,jy]]);class Pv{constructor(e,t){this.setSource(e,t)}reset(){this.eof=!1,this.tokenIndex=-1,this.tokenType=0,this.tokenStart=this.firstCharOffset,this.tokenEnd=this.firstCharOffset}setSource(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{};e=String(e||"");const n=e.length,r=Sv(this.offsetAndType,e.length+1),i=Sv(this.balance,e.length+1);let o=0,s=0,a=0,l=-1;for(this.offsetAndType=null,this.balance=null,t(e,((e,t,c)=>{switch(e){default:i[o]=n;break;case s:{let e=a&Av;for(a=i[e],s=a>>Ev,i[o]=e,i[e++]=o;e>Ev:0}lookupOffset(e){return(e+=this.tokenIndex)0?e>Ev,this.tokenEnd=t&Av):(this.tokenIndex=this.tokenCount,this.next())}next(){let e=this.tokenIndex+1;e>Ev,this.tokenEnd=e&Av):(this.eof=!0,this.tokenIndex=this.tokenCount,this.tokenType=0,this.tokenStart=this.tokenEnd=this.source.length)}skipSC(){for(;this.tokenType===Dy||this.tokenType===Uy;)this.next()}skipUntilBalanced(e,t){let n,r,i=e;e:for(;i0?this.offsetAndType[i-1]&Av: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)}forEachToken(e){for(let t=0,n=this.firstCharOffset;t>Ev,r,o,t)}}dump(){const e=new Array(this.tokenCount);return this.forEachToken(((t,n,r,i)=>{e[i]={idx:i,type:kv[t],chunk:this.source.substring(n,r),balance:this.balance[i]}})),e}}function _v(e,t){function n(t){return t=e.length?void(c1&&void 0!==arguments[1]?arguments[1]:this;const n=this.allocateCursor(null,this.head);for(;null!==n.next;){const r=n.next;n.next=r.next,e.call(t,r.data,r,this)}this.releaseCursor()}forEachRight(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this;const n=this.allocateCursor(this.tail,null);for(;null!==n.prev;){const r=n.prev;n.prev=r.prev,e.call(t,r.data,r,this)}this.releaseCursor()}reduce(e,t){let n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this,i=this.allocateCursor(null,this.head),o=t;for(;null!==i.next;)n=i.next,i.next=n.next,o=e.call(r,o,n.data,n,this);return this.releaseCursor(),o}reduceRight(e,t){let n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this,i=this.allocateCursor(this.tail,null),o=t;for(;null!==i.prev;)n=i.prev,i.prev=n.prev,o=e.call(r,o,n.data,n,this);return this.releaseCursor(),o}some(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this;for(let n=this.head;null!==n;n=n.next)if(e.call(t,n.data,n,this))return!0;return!1}map(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this;const n=new Dv;for(let r=this.head;null!==r;r=r.next)n.appendData(e.call(t,r.data,r,this));return n}filter(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this;const n=new Dv;for(let r=this.head;null!==r;r=r.next)e.call(t,r.data,r,this)&&n.appendData(r.data);return n}nextUntil(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this;if(null===e)return;const r=this.allocateCursor(null,e);for(;null!==r.next;){const e=r.next;if(r.next=e.next,t.call(n,e.data,e,this))break}this.releaseCursor()}prevUntil(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this;if(null===e)return;const r=this.allocateCursor(e,null);for(;null!==r.prev;){const e=r.prev;if(r.prev=e.prev,t.call(n,e.data,e,this))break}this.releaseCursor()}clear(){this.head=null,this.tail=null}copy(){const e=new Dv;for(let t of this)e.appendData(t);return e}prepend(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}prependData(e){return this.prepend(Dv.createItem(e))}append(e){return this.insert(e)}appendData(e){return this.insert(Dv.createItem(e))}insert(e){let 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}insertData(e,t){return this.insert(Dv.createItem(e),t)}remove(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}push(e){this.insert(Dv.createItem(e))}pop(){return null!==this.tail?this.remove(this.tail):null}unshift(e){this.prepend(Dv.createItem(e))}shift(){return null!==this.head?this.remove(this.head):null}prependList(e){return this.insertList(e,this.head)}appendList(e){return this.insertList(e)}insertList(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}replace(e,t){"head"in t?this.insertList(t,e):this.insert(t,e),this.remove(e)}}function Nv(e,t){const 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}/,`${e}: ${t}\n`)}})}const Qv=100,Mv=60,$v=" ";function Lv(e,t){let{source:n,line:r,column:i}=e;function o(e,t){return s.slice(e,t).map(((t,n)=>String(e+n+1).padStart(c)+" |"+t)).join("\n")}const s=n.split(/\r\n?|\n|\f/),a=Math.max(1,r-t)-1,l=Math.min(r+t,s.length+1),c=Math.max(4,String(l).length)+1;let u=0;i+=($v.length-1)*(s[r-1].substr(0,i-1).match(/\t/g)||[]).length,i>Qv&&(u=i-Mv+3,i=Mv-2);for(let h=a;h<=l;h++)h>=0&&h0&&s[h].length>u?"\u2026":"")+s[h].substr(u,Qv-2)+(s[h].length>u+Qv-1?"\u2026":""));return[o(a,r),new Array(i+c+2).join("-")+"^",o(r,l)].filter(Boolean).join("\n")}function Iv(e,t,n,r,i){return Object.assign(Nv("SyntaxError",e),{source:t,offset:n,line:r,column:i,sourceFragment:e=>Lv({source:t,line:r,column:i},isNaN(e)?0:e),get formattedMessage(){return`Parse error: ${e}\n`+Lv({source:t,line:r,column:i},2)}})}function Fv(e){const t=this.createList();let n=!1;const r={recognizer:e};for(;!this.eof;){switch(this.tokenType){case Uy:this.next();continue;case Dy:n=!0,this.next();continue}let 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}const Bv=()=>{},zv=33,Zv=35,jv=59,Uv=123,Xv=0;function Hv(e){return function(){return this[e]()}}function Wv(e){const t=Object.create(null);for(const n in e){const r=e[n],i=r.parse||r;i&&(t[n]=i)}return t}function qv(e){let t="",n="",r=!1,i=Bv,o=!1;const s=new Tv,a=Object.assign(new Pv,function(e){const t={context:Object.create(null),scope:Object.assign(Object.create(null),e.scope),atrule:Wv(e.atrule),pseudo:Wv(e.pseudo),node:Wv(e.node)};for(const n in e.parseContext)switch(typeof e.parseContext[n]){case"function":t.context[n]=e.parseContext[n];break;case"string":t.context[n]=Hv(e.parseContext[n])}return{config:t,...t,...t.node}}(e||{}),{parseAtrulePrelude:!0,parseRulePrelude:!0,parseValue:!0,parseCustomProperty:!1,readSequence:Fv,consumeUntilBalanceEnd:()=>0,consumeUntilLeftCurlyBracket:e=>e===Uv?1:0,consumeUntilLeftCurlyBracketOrSemicolon:e=>e===Uv||e===jv?1:0,consumeUntilExclamationMarkOrSemicolon:e=>e===zv||e===jv?1:0,consumeUntilSemicolonIncluded:e=>e===jv?2:0,createList:()=>new Dv,createSingleNodeList:e=>(new Dv).appendData(e),getFirstListNode:e=>e&&e.first,getLastListNode:e=>e&&e.last,parseWithFallback(e,t){const n=this.tokenIndex;try{return e.call(this)}catch(j_){if(o)throw j_;const r=t.call(this,n);return o=!0,i(j_,r),o=!1,r}},lookupNonWSType(e){let t;do{if(t=this.lookupType(e++),t!==Dy)return t}while(t!==Xv);return Xv},charCodeAt:e=>e>=0&&et.substring(e,n),substrToCursor(e){return this.source.substring(e,this.tokenStart)},cmpChar:(e,n)=>dv(t,e,n),cmpStr:(e,n,r)=>fv(t,e,n,r),consume(e){const t=this.tokenStart;return this.eat(e),this.substrToCursor(t)},consumeFunctionName(){const e=t.substring(this.tokenStart,this.tokenEnd-1);return this.eat(ky),e},consumeNumber(e){const n=t.substring(this.tokenStart,bv(t,this.tokenStart));return this.eat(e),n},eat(e){if(this.tokenType!==e){const t=kv[e].slice(0,-6).replace(/-/g," ").replace(/^./,(e=>e.toUpperCase()));let n=`${/[[\](){}]/.test(t)?`"${t}"`:t} is expected`,r=this.tokenStart;switch(e){case vy:this.tokenType===ky||this.tokenType===Ay?(r=this.tokenEnd-1,n="Identifier is expected but function found"):n="Identifier is expected";break;case Sy:this.isDelim(Zv)&&(this.next(),r++,n="Name is expected");break;case _y:this.tokenType===Py&&(r=this.tokenEnd,n="Percent sign is expected")}this.error(n,r)}this.next()},eatIdent(e){this.tokenType===vy&&!1!==this.lookupValue(0,e)||this.error(`Identifier "${e}" is expected`),this.next()},eatDelim(e){this.isDelim(e)||this.error(`Delim "${String.fromCharCode(e)}" is expected`),this.next()},getLocation:(e,t)=>r?s.getLocationRange(e,t,n):null,getLocationFromList(e){if(r){const t=this.getFirstListNode(e),r=this.getLastListNode(e);return s.getLocationRange(null!==t?t.loc.start.offset-s.startOffset:this.tokenStart,null!==r?r.loc.end.offset-s.startOffset:this.tokenStart,n)}return null},error(e,n){const r="undefined"!==typeof n&&n=0&&Jy(e.charCodeAt(t));t--);return t+1}(t,t.length-1)):s.getLocation(this.tokenStart);throw new Iv(e||"Unexpected input",t,r.offset,r.line,r.column)}});return Object.assign((function(e,l){t=e,l=l||{},a.setSource(t,_v),s.setSource(t,l.offset,l.line,l.column),n=l.filename||"",r=Boolean(l.positions),i="function"===typeof l.onParseError?l.onParseError:Bv,o=!1,a.parseAtrulePrelude=!("parseAtrulePrelude"in l)||Boolean(l.parseAtrulePrelude),a.parseRulePrelude=!("parseRulePrelude"in l)||Boolean(l.parseRulePrelude),a.parseValue=!("parseValue"in l)||Boolean(l.parseValue),a.parseCustomProperty="parseCustomProperty"in l&&Boolean(l.parseCustomProperty);const{context:c="default",onComment:u}=l;if(c in a.context===!1)throw new Error("Unknown context `"+c+"`");"function"===typeof u&&a.forEachToken(((e,n,r)=>{if(e===Uy){const e=a.getLocation(n,r),i=fv(t,r-2,r,"*/")?t.slice(n+2,r-2):t.slice(n+2,r);u(i,e)}}));const h=a.context[c].call(a,l);return a.eof||a.error(),h}),{SyntaxError:Iv,config:a.config})}var Yv=n(7428);const Gv=new Set(["Atrule","Selector","Declaration"]);const Vv=(e,t)=>{if(e===Cy&&(e=t),"string"===typeof e){const t=e.charCodeAt(0);return t>127?32768:t<<8}return e},Kv=[[vy,vy],[vy,ky],[vy,Ay],[vy,Ey],[vy,"-"],[vy,Py],[vy,_y],[vy,Ry],[vy,Qy],[vy,By],[xy,vy],[xy,ky],[xy,Ay],[xy,Ey],[xy,"-"],[xy,Py],[xy,_y],[xy,Ry],[xy,Qy],[Sy,vy],[Sy,ky],[Sy,Ay],[Sy,Ey],[Sy,"-"],[Sy,Py],[Sy,_y],[Sy,Ry],[Sy,Qy],[Ry,vy],[Ry,ky],[Ry,Ay],[Ry,Ey],[Ry,"-"],[Ry,Py],[Ry,_y],[Ry,Ry],[Ry,Qy],["#",vy],["#",ky],["#",Ay],["#",Ey],["#","-"],["#",Py],["#",_y],["#",Ry],["#",Qy],["-",vy],["-",ky],["-",Ay],["-",Ey],["-","-"],["-",Py],["-",_y],["-",Ry],["-",Qy],[Py,vy],[Py,ky],[Py,Ay],[Py,Ey],[Py,Py],[Py,_y],[Py,Ry],[Py,"%"],[Py,Qy],["@",vy],["@",ky],["@",Ay],["@",Ey],["@","-"],["@",Qy],[".",Py],[".",_y],[".",Ry],["+",Py],["+",_y],["+",Ry],["/","*"]],Jv=Kv.concat([[vy,Sy],[Ry,Sy],[Sy,Sy],[xy,By],[xy,wy],[xy,My],[_y,_y],[_y,Ry],[_y,ky],[_y,"-"],[zy,vy],[zy,ky],[zy,_y],[zy,Ry],[zy,Sy],[zy,"-"]]);function ek(e){const t=new Set(e.map((e=>{let[t,n]=e;return Vv(t)<<16|Vv(n)})));return function(e,n,r){const i=Vv(n,r),o=r.charCodeAt(0);return(45===o&&n!==vy&&n!==ky&&n!==Qy||43===o?t.has(e<<16|o<<8):t.has(e<<16|i))&&this.emit(" ",Dy,!0),i}}const tk=ek(Kv),nk=ek(Jv),rk=92;function ik(e,t){if("function"!==typeof t)e.children.forEach(this.node,this);else{let n=null;e.children.forEach((e=>{null!==n&&t.call(this,n),this.node(e),n=e}))}}function ok(e){_v(e,((t,n,r)=>{this.token(t,e.slice(n,r))}))}function sk(e){const t=new Map;for(let n in e.node){const r=e.node[n];"function"===typeof(r.generate||r)&&t.set(n,r.generate||r)}return function(e,n){let r="",o=0,s={node(e){if(!t.has(e.type))throw new Error("Unknown node type: "+e.type);t.get(e.type).call(a,e)},tokenBefore:nk,token(e,t){o=this.tokenBefore(o,e,t),this.emit(t,e,!1),e===Cy&&t.charCodeAt(0)===rk&&this.emit("\n",Dy,!0)},emit(e){r+=e},result:()=>r};n&&("function"===typeof n.decorator&&(s=n.decorator(s)),n.sourceMap&&(s=function(e){const t=new Yv.x,n={line:1,column:0},r={line:0,column:0},i={line:1,column:0},o={generated:i};let s=1,a=0,l=!1;const c=e.node;e.node=function(e){if(e.loc&&e.loc.start&&Gv.has(e.type)){const c=e.loc.start.line,u=e.loc.start.column-1;r.line===c&&r.column===u||(r.line=c,r.column=u,n.line=s,n.column=a,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}))}c.call(this,e),l&&Gv.has(e.type)&&(i.line=s,i.column=a)};const u=e.emit;e.emit=function(e,t,n){for(let r=0;rs.node(e),children:ik,token:(e,t)=>s.token(e,t),tokenize:ok};return s.node(e),s.result()}}const{hasOwnProperty:ak}=Object.prototype,lk=function(){};function ck(e){return"function"===typeof e?e:lk}function uk(e,t){return function(n,r,i){n.type===t&&e.call(this,n,r,i)}}function hk(e,t){const n=t.structure,r=[];for(const i in n){if(!1===ak.call(n,i))continue;let e=n[i];const t={name:i,type:!1,nullable:!1};Array.isArray(e)||(e=[e]);for(const n of e)null===n?t.nullable=!0:"string"===typeof n?t.type="node":Array.isArray(n)&&(t.type="list");t.type&&r.push(t)}return r.length?{context:t.walkContext,fields:r}:null}function dk(e,t){const n=e.fields.slice(),r=e.context,i="string"===typeof r;return t&&n.reverse(),function(e,o,s,a){let l;i&&(l=o[r],o[r]=e);for(const r of n){const n=e[r.name];if(!r.nullable||n)if("list"===r.type){if(t?n.reduceRight(a,!1):n.reduce(a,!1))return!0}else if(s(n))return!0}i&&(o[r]=l)}}function fk(e){let{StyleSheet:t,Atrule:n,Rule:r,Block:i,DeclarationList:o}=e;return{Atrule:{StyleSheet:t,Atrule:n,Rule:r,Block:i},Rule:{StyleSheet:t,Atrule:n,Rule:r,Block:i},Declaration:{StyleSheet:t,Atrule:n,Rule:r,Block:i,DeclarationList:o}}}function pk(e){const t=function(e){const t={};for(const n in e.node)if(ak.call(e.node,n)){const r=e.node[n];if(!r.structure)throw new Error("Missed `structure` field in `"+n+"` node type definition");t[n]=hk(0,r)}return t}(e),n={},r={},i=Symbol("break-walk"),o=Symbol("skip-node");for(const c in t)ak.call(t,c)&&null!==t[c]&&(n[c]=dk(t[c],!1),r[c]=dk(t[c],!0));const s=fk(n),a=fk(r),l=function(e,l){function c(e,t,n){const r=u.call(p,e,t,n);return r===i||r!==o&&(!(!d.hasOwnProperty(e.type)||!d[e.type](e,p,c,f))||h.call(p,e,t,n)===i)}let u=lk,h=lk,d=n,f=(e,t,n,r)=>e||c(t,n,r);const p={break:i,skip:o,root:e,stylesheet:null,atrule:null,atrulePrelude:null,rule:null,selector:null,block:null,declaration:null,function:null};if("function"===typeof l)u=l;else if(l&&(u=ck(l.enter),h=ck(l.leave),l.reverse&&(d=r),l.visit)){if(s.hasOwnProperty(l.visit))d=l.reverse?a[l.visit]:s[l.visit];else if(!t.hasOwnProperty(l.visit))throw new Error("Bad value `"+l.visit+"` for `visit` option (should be: "+Object.keys(t).sort().join(", ")+")");u=uk(u,l.visit),h=uk(h,l.visit)}if(u===lk&&h===lk)throw new Error("Neither `enter` nor `leave` walker handler is set or both aren't a function");c(e)};return l.break=i,l.skip=o,l.find=function(e,t){let n=null;return l(e,(function(e,r,o){if(t.call(this,e,r,o))return n=e,i})),n},l.findLast=function(e,t){let n=null;return l(e,{reverse:!0,enter(e,r,o){if(t.call(this,e,r,o))return n=e,i}}),n},l.findAll=function(e,t){const n=[];return l(e,(function(e,r,i){t.call(this,e,r,i)&&n.push(e)})),n},l}function mk(e){return e}function gk(e,t,n,r){let i;switch(e.type){case"Group":i=function(e,t,n,r){const i=" "===e.combinator||r?e.combinator:" "+e.combinator+" ",o=e.terms.map((e=>gk(e,t,n,r))).join(i);return e.explicit||n?(r||","===o[0]?"[":"[ ")+o+(r?"]":" ]"):o}(e,t,n,r)+(e.disallowEmpty?"!":"");break;case"Multiplier":return gk(e.term,t,n,r)+t(function(e){const{min:t,max:n,comma:r}=e;return 0===t&&0===n?r?"#?":"*":0===t&&1===n?"?":1===t&&0===n?r?"#":"+":1===t&&1===n?"":(r?"#":"")+(t===n?"{"+t+"}":"{"+t+","+(0!==n?n:"")+"}")}(e),e);case"Type":i="<"+e.name+(e.opts?t(function(e){if("Range"===e.type)return" ["+(null===e.min?"-\u221e":e.min)+","+(null===e.max?"\u221e":e.max)+"]";throw new Error("Unknown node type `"+e.type+"`")}(e.opts),e.opts):"")+">";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 Ok(e,t){let n=mk,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)),gk(e,n,r,i)}const bk={offset:0,line:1,column:1};function yk(e,t){const n=e&&e.loc&&e.loc[t];return n?"line"in n?vk(n):n:null}function vk(e,t){let{offset:n,line:r,column:i}=e;const o={offset:n,line:r,column:i};if(t){const e=t.split(/\n|\r\n?|\f/);o.offset+=t.length,o.line+=e.length-1,o.column=1===e.length?o.column+t.length:e.pop().length+1}return o}const kk=function(e,t){const n=Nv("SyntaxReferenceError",e+(t?" `"+t+"`":""));return n.reference=t,n},xk=function(e,t,n,r){const i=Nv("SyntaxMatchError",e),{css:o,mismatchOffset:s,mismatchLength:a,start:l,end:c}=function(e,t){const n=e.tokens,r=e.longestMatch,i=r1?(s=yk(o||t,"end")||vk(bk,h),a=vk(s)):(s=yk(o,"start")||vk(yk(t,"start")||bk,h.slice(0,l)),a=yk(o,"end")||vk(s,h.substr(l,c))),{css:h,mismatchOffset:l,mismatchLength:c,start:s,end:a}}(r,n);return i.rawMessage=e,i.syntax=t?Ok(t):"",i.css=o,i.mismatchOffset=s,i.mismatchLength=a,i.message=e+"\n syntax: "+i.syntax+"\n value: "+(o||"")+"\n --------"+new Array(i.mismatchOffset+1).join("-")+"^",Object.assign(i,l),i.loc={source:n&&n.loc&&n.loc.source||"",start:l,end:c},i},Sk=new Map,wk=new Map,Tk=45,Ak=function(e){if(Sk.has(e))return Sk.get(e);const t=e.toLowerCase();let n=Sk.get(t);if(void 0===n){const e=Ck(t,0),r=e?"":Pk(t,0);n=Object.freeze({basename:t.substr(r.length),name:t,prefix:r,vendor:r,custom:e})}return Sk.set(e,n),n},Ek=function(e){if(wk.has(e))return wk.get(e);let t=e,n=e[0];"/"===n?n="/"===e[1]?"//":"/":"_"!==n&&"*"!==n&&"$"!==n&&"#"!==n&&"+"!==n&&"&"!==n&&(n="");const r=Ck(t,n.length);if(!r&&(t=t.toLowerCase(),wk.has(t))){const n=wk.get(t);return wk.set(e,n),n}const i=r?"":Pk(t,n.length),o=t.substr(0,n.length+i.length),s=Object.freeze({basename:t.substr(o.length),name:t.substr(n.length),hack:n,vendor:i,prefix:o,custom:r});return wk.set(e,s),s};function Ck(e,t){return t=t||0,e.length-t>=2&&e.charCodeAt(t)===Tk&&e.charCodeAt(t+1)===Tk}function Pk(e,t){if(t=t||0,e.length-t>=3&&e.charCodeAt(t)===Tk&&e.charCodeAt(t+1)!==Tk){const n=e.indexOf("-",t+2);if(-1!==n)return e.substring(t,n+1)}return""}const _k=["initial","inherit","unset","revert","revert-layer"],Rk=43,Dk=45,Nk=!0;function Qk(e,t){return null!==e&&e.type===Cy&&e.value.charCodeAt(0)===t}function Mk(e,t,n){for(;null!==e&&(e.type===Dy||e.type===Uy);)e=n(++t);return t}function $k(e,t,n,r){if(!e)return 0;const i=e.value.charCodeAt(t);if(i===Rk||i===Dk){if(n)return 0;t++}for(;t6)return 0}return r}function Zk(e,t,n){if(!e)return 0;for(;Bk(n(t),Fk);){if(++e>6)return 0;t++}return t}const jk=["calc(","-moz-calc(","-webkit-calc("],Uk=new Map([[ky,zy],[By,zy],[Iy,Fy],[Zy,jy]]);function Xk(e,t){return te.max&&"string"!==typeof e.max)return!0}return!1}function Gk(e){return function(t,n,r){return null===t?0:t.type===ky&&Wk(t.value,jk)?function(e,t){let n=0,r=[],i=0;e:do{switch(e.type){case jy:case zy:case Fy:if(e.type!==n)break e;if(n=r.pop(),0===r.length){i++;break e}break;case ky:case By:case Iy:case Zy:r.push(n),n=Uk.get(e.type)}i++}while(e=t(i));return i}(t,n):e(t,n,r)}}function Vk(e){return function(t){return null===t||t.type!==e?0:1}}function Kk(e){return e&&(e=new Set(e)),function(t,n,r){if(null===t||t.type!==Ry)return 0;const i=bv(t.value,0);if(null!==e){const n=t.value.indexOf("\\",i),r=-1!==n&&qk(t.value,n)?t.value.substring(i,n):t.value.substr(i);if(!1===e.has(r.toLowerCase()))return 0}return Yk(r,t.value,i)?0:1}}function Jk(e){return"function"!==typeof e&&(e=function(){return 0}),function(t,n,r){return null!==t&&t.type===Py&&0===Number(t.value)?1:e(t,n,r)}}const ex={"ident-token":Vk(vy),"function-token":Vk(ky),"at-keyword-token":Vk(xy),"hash-token":Vk(Sy),"string-token":Vk(wy),"bad-string-token":Vk(Ty),"url-token":Vk(Ay),"bad-url-token":Vk(Ey),"delim-token":Vk(Cy),"number-token":Vk(Py),"percentage-token":Vk(_y),"dimension-token":Vk(Ry),"whitespace-token":Vk(Dy),"CDO-token":Vk(Ny),"CDC-token":Vk(Qy),"colon-token":Vk(My),"semicolon-token":Vk($y),"comma-token":Vk(Ly),"[-token":Vk(Iy),"]-token":Vk(Fy),"(-token":Vk(By),")-token":Vk(zy),"{-token":Vk(Zy),"}-token":Vk(jy)},tx={string:Vk(wy),ident:Vk(vy),percentage:Gk((function(e,t,n){return null===e||e.type!==_y||Yk(n,e.value,e.value.length-1)?0:1})),zero:Jk(),number:Gk((function(e,t,n){if(null===e)return 0;const r=bv(e.value,0);return r===e.value.length||qk(e.value,r)?Yk(n,e.value,r)?0:1:0})),integer:Gk((function(e,t,n){if(null===e||e.type!==Py)return 0;let r=43===Xk(e.value,0)||45===Xk(e.value,0)?1:0;for(;r/[a-zA-Z0-9\-]/.test(String.fromCharCode(t))?1:0)),Fx={" ":1,"&&":2,"||":3,"|":4};function Bx(e){return e.substringToPos(e.findWsEnd(e.pos))}function zx(e){let t=e.pos;for(;t=128||0===Ix[n])break}return e.pos===t&&e.error("Expect a keyword"),e.substringToPos(t)}function Zx(e){let t=e.pos;for(;t57)break}return e.pos===t&&e.error("Expect a number"),e.substringToPos(t)}function jx(e){const 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 Ux(e){let t=null,n=null;return e.eat(Qx),t=Zx(e),e.charCode()===Ax?(e.pos++,e.charCode()!==$x&&(n=Zx(e))):n=t,e.eat($x),{min:Number(t),max:n?Number(n):0}}function Xx(e,t){const n=function(e){let t=null,n=!1;switch(e.charCode()){case wx:e.pos++,t={min:0,max:0};break;case Tx:e.pos++,t={min:1,max:0};break;case _x:e.pos++,t={min:0,max:1};break;case yx:e.pos++,n=!0,e.charCode()===Qx?t=Ux(e):e.charCode()===_x?(e.pos++,t={min:0,max:0}):t={min:1,max:0};break;case Qx:t=Ux(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()===yx&&e.charCodeAt(e.pos-1)===Tx?Xx(e,n):n):t}function Hx(e){const t=e.peek();return""===t?null:{type:"Token",value:t}}function Wx(e){let t,n=null;return e.eat(Cx),t=zx(e),e.charCode()===xx&&e.nextCharCode()===Sx&&(e.pos+=2,t+="()"),e.charCodeAt(e.findWsEnd(e.pos))===Dx&&(Bx(e),n=function(e){let t=null,n=null,r=1;return e.eat(Dx),e.charCode()===Ex&&(e.peek(),r=-1),-1==r&&e.charCode()===Lx?e.peek():(t=r*Number(Zx(e)),0!==Ix[e.charCode()]&&(t+=zx(e))),Bx(e),e.eat(Ax),Bx(e),e.charCode()===Lx?e.peek():(r=1,e.charCode()===Ex&&(e.peek(),r=-1),n=r*Number(Zx(e)),0!==Ix[e.charCode()]&&(n+=zx(e))),e.eat(Nx),{type:"Range",min:t,max:n}}(e)),e.eat(Px),Xx(e,{type:"Type",name:t,opts:n})}function qx(e,t){function n(e,t){return{type:"Group",terms:e,combinator:t,disallowEmpty:!1,explicit:!1}}let r;for(t=Object.keys(t).sort(((e,t)=>Fx[e]-Fx[t]));t.length>0;){r=t.shift();let i=0,o=0;for(;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 Yx(e){const t=[],n={};let r,i=null,o=e.pos;for(;r=Gx(e);)"Spaces"!==r.type&&("Combinator"===r.type?(null!==i&&"Combinator"!==i.type||(e.pos=o,e.error("Unexpected combinator")),n[r.value]=!0):null!==i&&"Combinator"!==i.type&&(n[" "]=!0,t.push({type:"Combinator",value:" "})),t.push(r),i=r,o=e.pos);return null!==i&&"Combinator"===i.type&&(e.pos-=o,e.error("Unexpected combinator")),{type:"Group",terms:t,combinator:qx(t,n)||" ",disallowEmpty:!1,explicit:!1}}function Gx(e){let t=e.charCode();if(t<128&&1===Ix[t])return function(e){const t=zx(e);return e.charCode()===xx?(e.pos++,{type:"Function",name:t}):Xx(e,{type:"Keyword",name:t})}(e);switch(t){case Nx:break;case Dx:return Xx(e,function(e){let t;return e.eat(Dx),t=Yx(e),e.eat(Nx),t.explicit=!0,e.charCode()===bx&&(e.pos++,t.disallowEmpty=!0),t}(e));case Cx:return e.nextCharCode()===kx?function(e){let t;return e.eat(Cx),e.eat(kx),t=zx(e),e.eat(kx),e.eat(Px),Xx(e,{type:"Property",name:t})}(e):Wx(e);case Mx:return{type:"Combinator",value:e.substringToPos(e.pos+(e.nextCharCode()===Mx?2:1))};case vx:return e.pos++,e.eat(vx),{type:"Combinator",value:"&&"};case Ax:return e.pos++,{type:"Comma"};case kx:return Xx(e,{type:"String",value:jx(e)});case Ox:case fx:case px:case gx:case mx:return{type:"Spaces",value:Bx(e)};case Rx:return t=e.nextCharCode(),t<128&&1===Ix[t]?(e.pos++,{type:"AtKeyword",name:zx(e)}):Hx(e);case wx:case Tx:case _x:case yx:case bx:break;case Qx:if(t=e.nextCharCode(),t<48||t>57)return Hx(e);break;default:return Hx(e)}}function Vx(e){const t=new dx(e),n=Yx(t);return t.pos!==e.length&&t.error("Unexpected input"),1===n.terms.length&&"Group"===n.terms[0].type?n.terms[0]:n}const Kx=function(){};function Jx(e){return"function"===typeof e?e:Kx}const eS={decorator(e){const t=[];let n=null;return{...e,node(t){const r=n;n=t,e.node.call(this,t),n=r},emit(e,r,i){t.push({type:r,value:e,node:i?null:n})},result:()=>t}}};function tS(e,t){return"string"===typeof e?function(e){const t=[];return _v(e,((n,r,i)=>t.push({type:n,value:e.slice(r,i),node:null}))),t}(e):t.generate(e,eS)}const nS={type:"Match"},rS={type:"Mismatch"},iS={type:"DisallowEmpty"},oS=40,sS=41;function aS(e,t,n){return t===nS&&n===rS||e===nS&&t===nS&&n===nS?e:("If"===e.type&&e.else===rS&&t===nS&&(t=e.then,e=e.match),{type:"If",match:e,then:t,else:n})}function lS(e){return e.length>2&&e.charCodeAt(e.length-2)===oS&&e.charCodeAt(e.length-1)===sS}function cS(e){return"Keyword"===e.type||"AtKeyword"===e.type||"Function"===e.type||"Type"===e.type&&lS(e.name)}function uS(e,t,n){switch(e){case" ":{let e=nS;for(let n=t.length-1;n>=0;n--){e=aS(t[n],e,rS)}return e}case"|":{let e=rS,n=null;for(let r=t.length-1;r>=0;r--){let i=t[r];if(cS(i)&&(null===n&&r>0&&cS(t[r-1])&&(n=Object.create(null),e=aS({type:"Enum",map:n},nS,e)),null!==n)){const e=(lS(i.name)?i.name.slice(0,-1):i.name).toLowerCase();if(e in n===!1){n[e]=i;continue}}n=null,e=aS(i,nS,e)}return e}case"&&":{if(t.length>5)return{type:"MatchOnce",terms:t,all:!0};let n=rS;for(let r=t.length-1;r>=0;r--){const i=t[r];let o;o=t.length>1?uS(e,t.filter((function(e){return e!==i})),!1):nS,n=aS(i,o,n)}return n}case"||":{if(t.length>5)return{type:"MatchOnce",terms:t,all:!1};let r=n?nS:rS;for(let n=t.length-1;n>=0;n--){const i=t[n];let o;o=t.length>1?uS(e,t.filter((function(e){return e!==i})),!0):nS,r=aS(i,o,r)}return r}}}function hS(e){if("function"===typeof e)return{type:"Generic",fn:e};switch(e.type){case"Group":{let t=uS(e.combinator,e.terms.map(hS),!1);return e.disallowEmpty&&(t=aS(t,iS,rS)),t}case"Multiplier":return function(e){let t=nS,n=hS(e.term);if(0===e.max)n=aS(n,iS,rS),t=aS(n,null,rS),t.then=aS(nS,nS,t),e.comma&&(t.then.else=aS({type:"Comma",syntax:e},t,rS));else for(let r=e.min||1;r<=e.max;r++)e.comma&&t!==nS&&(t=aS({type:"Comma",syntax:e},t,rS)),t=aS(n,aS(nS,nS,t),rS);if(0===e.min)t=aS(nS,nS,t);else for(let r=0;r=65&&i<=90&&(i|=32),i!==r)return!1}return!0}function TS(e){return null===e||(e.type===Ly||e.type===ky||e.type===By||e.type===Iy||e.type===Zy||function(e){return e.type===Cy&&"?"!==e.value}(e))}function AS(e){return null===e||(e.type===zy||e.type===Fy||e.type===jy||e.type===Cy&&"/"===e.value)}function ES(e,t,n){function r(){do{O++,g=Ob&&(b=O)}function c(){y=y.type===gS?y.prev:{type:OS,syntax:u.syntax,token:y.token,prev:y},u=u.prev}let u=null,h=null,d=null,f=null,p=0,m=null,g=null,O=-1,b=0,y={type:pS,syntax:null,token:null,prev:null};for(r();null===m&&++pd.tokenIndex)&&(d=f,f=!1);else if(null===d){m=yS;break}t=d.nextState,h=d.thenStack,u=d.syntaxStack,y=d.matchStack,O=d.tokenIndex,g=OO){for(;O":"<'"+t.name+"'>"));if(!1!==f&&null!==g&&"Type"===t.type){if("custom-ident"===t.name&&g.type===vy||"length"===t.name&&"0"===g.value){null===f&&(f=o(t,d)),t=rS;break}}u={syntax:t.syntax,opts:t.syntax.opts||null!==u&&u.opts||null,prev:u},y={type:gS,syntax:t.syntax,token:y.token,prev:y},t=r.match;break}case"Keyword":{const e=t.name;if(null!==g){let n=g.value;if(-1!==n.indexOf("\\")&&(n=n.replace(/\\[09].*$/,"")),wS(n,e)){l(),t=nS;break}}t=rS;break}case"AtKeyword":case"Function":if(null!==g&&wS(g.value,t.name)){l(),t=nS;break}t=rS;break;case"Token":if(null!==g&&g.value===t.value){l(),t=nS;break}t=rS;break;case"Comma":null!==g&&g.type===Ly?TS(y.token)?t=rS:(l(),t=AS(g)?rS:nS):t=TS(y.token)||AS(g)?nS:rS;break;case"String":let r="",p=O;for(;p"Type"===e.type&&e.name===t))}function RS(e,t){return NS(this,e,(e=>"Property"===e.type&&e.name===t))}function DS(e){return NS(this,e,(e=>"Keyword"===e.type))}function NS(e,t,n){const r=PS.call(e,t);return null!==r&&r.some(n)}function QS(e){return"node"in e?e.node:QS(e.match[0])}function MS(e){return"node"in e?e.node:MS(e.match[e.match.length-1])}function $S(e,t,n,r,i){const o=[];return null!==n.matched&&function n(s){if(null!==s.syntax&&s.syntax.type===r&&s.syntax.name===i){const n=QS(s),r=MS(s);e.syntax.walk(t,(function(e,t,i){if(e===n){const e=new Dv;do{if(e.appendData(t.data),t.data===r)break;t=t.next}while(null!==t);o.push({parent:i,nodes:e})}}))}Array.isArray(s.match)&&s.match.forEach(n)}(n.matched),o}const{hasOwnProperty:LS}=Object.prototype;function IS(e){return"number"===typeof e&&isFinite(e)&&Math.floor(e)===e&&e>=0}function FS(e){return Boolean(e)&&IS(e.offset)&&IS(e.line)&&IS(e.column)}function BS(e,t){return function(n,r){if(!n||n.constructor!==Object)return r(n,"Type of node should be an Object");for(let i in n){let o=!0;if(!1!==LS.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(FS(n.loc.start)){if(FS(n.loc.end))continue;i+=".end"}else i+=".start";o=!1}else if(t.hasOwnProperty(i)){o=!1;for(let e=0;!o&&e");else{if(!Array.isArray(r))throw new Error("Wrong value `"+r+"` in `"+e+"."+o+"` structure definition");t.push("List")}}i[o]=t.join(" | ")}return{docs:i,check:BS(e,r)}}const ZS=dS(_k.join(" | "));function jS(e,t,n){const r={};for(const i in e)e[i].syntax&&(r[i]=n?e[i].syntax:Ok(e[i].syntax,{compact:t}));return r}function US(e,t,n){const r={};for(const[i,o]of Object.entries(e))r[i]={prelude:o.prelude&&(n?o.prelude.syntax:Ok(o.prelude.syntax,{compact:t})),descriptors:o.descriptors&&jS(o.descriptors,t,n)};return r}function XS(e,t,n){return{matched:e,iterations:n,error:t,...s}}function HS(e,t,n,r){const i=tS(n,e.syntax);let o;return function(e){for(let t=0;t3&&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=dS(e,r):("string"===typeof e?Object.defineProperty(i,"syntax",{get:()=>(Object.defineProperty(i,"syntax",{value:Vx(e)}),i.syntax)}):i.syntax=e,Object.defineProperty(i,"match",{get:()=>(Object.defineProperty(i,"match",{value:dS(i.syntax,r)}),i.match)})),i}addAtrule_(e,t){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(((n,r)=>(n[r]=this.createDescriptor(t.descriptors[r],"AtruleDescriptor",r,e),n)),Object.create(null)):null})}addProperty_(e,t){t&&(this.properties[e]=this.createDescriptor(t,"Property",e))}addType_(e,t){t&&(this.types[e]=this.createDescriptor(t,"Type",e))}checkAtruleName(e){if(!this.getAtrule(e))return new kk("Unknown at-rule","@"+e)}checkAtrulePrelude(e,t){const n=this.checkAtruleName(e);if(n)return n;const r=this.getAtrule(e);return!r.prelude&&t?new SyntaxError("At-rule `@"+e+"` should not contain a prelude"):!r.prelude||t||HS(this,r.prelude,"",!1).matched?void 0:new SyntaxError("At-rule `@"+e+"` should contain a prelude")}checkAtruleDescriptorName(e,t){const n=this.checkAtruleName(e);if(n)return n;const r=this.getAtrule(e),i=Ak(t);return r.descriptors?r.descriptors[i.name]||r.descriptors[i.basename]?void 0:new kk("Unknown at-rule descriptor",t):new SyntaxError("At-rule `@"+e+"` has no known descriptors")}checkPropertyName(e){if(!this.getProperty(e))return new kk("Unknown property",e)}matchAtrulePrelude(e,t){const n=this.checkAtrulePrelude(e,t);if(n)return XS(null,n);const r=this.getAtrule(e);return r.prelude?HS(this,r.prelude,t||"",!1):XS(null,null)}matchAtruleDescriptor(e,t,n){const r=this.checkAtruleDescriptorName(e,t);if(r)return XS(null,r);const i=this.getAtrule(e),o=Ak(t);return HS(this,i.descriptors[o.name]||i.descriptors[o.basename],n,!1)}matchDeclaration(e){return"Declaration"!==e.type?XS(null,new Error("Not a Declaration node")):this.matchProperty(e.property,e.value)}matchProperty(e,t){if(Ek(e).custom)return XS(null,new Error("Lexer matching doesn't applicable for custom properties"));const n=this.checkPropertyName(e);return n?XS(null,n):HS(this,this.getProperty(e),t,!0)}matchType(e,t){const n=this.getType(e);return n?HS(this,n,t,!1):XS(null,new kk("Unknown type",e))}match(e,t){return"string"===typeof e||e&&e.type?("string"!==typeof e&&e.match||(e=this.createDescriptor(e,"Type","anonymous")),HS(this,e,t,!1)):XS(null,new kk("Bad syntax"))}findValueFragments(e,t,n,r){return $S(this,t,this.matchProperty(e,t),n,r)}findDeclarationValueFragments(e,t,n){return $S(this,e.value,this.matchDeclaration(e),t,n)}findAllFragments(e,t,n){const r=[];return this.syntax.walk(e,{visit:"Declaration",enter:e=>{r.push.apply(r,this.findDeclarationValueFragments(e,t,n))}}),r}getAtrule(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const n=Ak(e);return(n.vendor&&t?this.atrules[n.name]||this.atrules[n.basename]:this.atrules[n.name])||null}getAtrulePrelude(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const n=this.getAtrule(e,t);return n&&n.prelude||null}getAtruleDescriptor(e,t){return this.atrules.hasOwnProperty(e)&&this.atrules.declarators&&this.atrules[e].declarators[t]||null}getProperty(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const n=Ek(e);return(n.vendor&&t?this.properties[n.name]||this.properties[n.basename]:this.properties[n.name])||null}getType(e){return hasOwnProperty.call(this.types,e)?this.types[e]:null}validate(){function e(r,i,o,s){if(o.has(i))return o.get(i);o.set(i,!1),null!==s.syntax&&function(e,t,n){let r=Kx,i=Kx;if("function"===typeof t?r=t:t&&(r=Jx(t.enter),i=Jx(t.leave)),r===Kx&&i===Kx)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)}(s.syntax,(function(s){if("Type"!==s.type&&"Property"!==s.type)return;const a="Type"===s.type?r.types:r.properties,l="Type"===s.type?t:n;hasOwnProperty.call(a,s.name)&&!e(r,s.name,l,a[s.name])||o.set(i,!0)}),this)}let t=new Map,n=new Map;for(const r in this.types)e(this,r,t,this.types[r]);for(const r in this.properties)e(this,r,n,this.properties[r]);return t=[...t.keys()].filter((e=>t.get(e))),n=[...n.keys()].filter((e=>n.get(e))),t.length||n.length?{types:t,properties:n}:null}dump(e,t){return{generic:this.generic,units:this.units,types:jS(this.types,!t,e),properties:jS(this.properties,!t,e),atrules:US(this.atrules,!t,e)}}toString(){return JSON.stringify(this.dump())}}function qS(e,t){return"string"===typeof t&&/^\s*\|/.test(t)?"string"===typeof e?e+t:t.replace(/^\s*\|\s*/,""):t||null}function YS(e,t){const n=Object.create(null);for(const[r,i]of Object.entries(e))if(i){n[r]={};for(const e of Object.keys(i))t.includes(e)&&(n[r][e]=i[e])}return n}function GS(e,t){const n={...e};for(const[r,i]of Object.entries(t))switch(r){case"generic":n[r]=Boolean(i);break;case"units":n[r]={...e[r]};for(const[e,t]of Object.entries(i))n[r][e]=Array.isArray(t)?t:[];break;case"atrules":n[r]={...e[r]};for(const[e,t]of Object.entries(i)){const i=n[r][e]||{},o=n[r][e]={prelude:i.prelude||null,descriptors:{...i.descriptors}};if(t){o.prelude=t.prelude?qS(o.prelude,t.prelude):o.prelude||null;for(const[e,n]of Object.entries(t.descriptors||{}))o.descriptors[e]=n?qS(o.descriptors[e],n):null;Object.keys(o.descriptors).length||(o.descriptors=null)}}break;case"types":case"properties":n[r]={...e[r]};for(const[e,t]of Object.entries(i))n[r][e]=qS(n[r][e],t);break;case"scope":n[r]={...e[r]};for(const[e,t]of Object.entries(i))n[r][e]={...n[r][e],...t};break;case"parseContext":n[r]={...e[r],...i};break;case"atrule":case"pseudo":n[r]={...e[r],...YS(i,["parse"])};break;case"node":n[r]={...e[r],...YS(i,["name","structure","parse","generate","walkContext"])}}return n}function VS(e){const t=qv(e),n=pk(e),r=sk(e),{fromPlainObject:i,toPlainObject:o}=function(e){return{fromPlainObject:t=>(e(t,{enter(e){e.children&&e.children instanceof Dv===!1&&(e.children=(new Dv).fromArray(e.children))}}),t),toPlainObject:t=>(e(t,{leave(e){e.children&&e.children instanceof Dv&&(e.children=e.children.toArray())}}),t)}}(n),s={lexer:null,createLexer:e=>new WS(e,s,s.lexer.structure),tokenize:_v,parse:t,generate:r,walk:n,find:n.find,findLast:n.findLast,findAll:n.findAll,fromPlainObject:i,toPlainObject:o,fork(t){const n=GS({},e);return VS("function"===typeof t?t(n,Object.assign):GS(n,t))}};return s.lexer=new WS({generic:!0,units:e.units,types:e.types,atrules:e.atrules,properties:e.properties,node:e.node},s),s}const KS=43,JS=45,ew=110,tw=!0,nw=!1;function rw(e,t){let n=this.tokenStart+e;const r=this.charCodeAt(n);for(r!==KS&&r!==JS||(t&&this.error("Number sign is not allowed"),n++);n0&&this.skip(e),0===t&&(n=this.charCodeAt(this.tokenStart),n!==KS&&n!==JS&&this.error("Number sign is expected")),iw.call(this,0!==t),t===JS?"-"+this.consume(Py):this.consume(Py)}const aw="AnPlusB",lw={a:[String,null],b:[String,null]};function cw(){const e=this.tokenStart;let t=null,n=null;if(this.tokenType===Py)iw.call(this,nw),n=this.consume(Py);else if(this.tokenType===vy&&this.cmpChar(this.tokenStart,JS))switch(t="-1",ow.call(this,1,ew),this.tokenEnd-this.tokenStart){case 2:this.next(),n=sw.call(this);break;case 3:ow.call(this,2,JS),this.next(),this.skipSC(),iw.call(this,tw),n="-"+this.consume(Py);break;default:ow.call(this,2,JS),rw.call(this,3,tw),this.next(),n=this.substrToCursor(e+2)}else if(this.tokenType===vy||this.isDelim(KS)&&this.lookupType(1)===vy){let r=0;switch(t="1",this.isDelim(KS)&&(r=1,this.next()),ow.call(this,0,ew),this.tokenEnd-this.tokenStart){case 1:this.next(),n=sw.call(this);break;case 2:ow.call(this,1,JS),this.next(),this.skipSC(),iw.call(this,tw),n="-"+this.consume(Py);break;default:ow.call(this,1,JS),rw.call(this,2,tw),this.next(),n=this.substrToCursor(e+r+1)}}else if(this.tokenType===Ry){const r=this.charCodeAt(this.tokenStart),i=r===KS||r===JS;let o=this.tokenStart+i;for(;o0&&void 0!==arguments[0]&&arguments[0];const t=this.tokenStart;let n,r,i=null,o=null;switch(this.eat(xy),n=this.substrToCursor(t+1),r=n.toLowerCase(),this.skipSC(),!1===this.eof&&this.tokenType!==Zy&&this.tokenType!==$y&&(i=this.parseAtrulePrelude?this.parseWithFallback(this.AtrulePrelude.bind(this,n,e),hw):hw.call(this,this.tokenIndex),this.skipSC()),this.tokenType){case $y:this.next();break;case Zy:o=hasOwnProperty.call(this.atrule,r)&&"function"===typeof this.atrule[r].block?this.atrule[r].block.call(this,e):this.Block(dw.call(this))}return{type:"Atrule",loc:this.getLocation(t,this.tokenStart),name:n,prelude:i,block:o}}function Ow(e){this.token(xy,"@"+e.name),null!==e.prelude&&this.node(e.prelude),e.block?this.node(e.block):this.token($y,";")}const bw="AtrulePrelude",yw="atrulePrelude",vw={children:[[]]};function kw(e){let 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!==Zy&&this.tokenType!==$y&&this.error("Semicolon or block is expected"),{type:"AtrulePrelude",loc:this.getLocationFromList(t),children:t}}function xw(e){this.children(e)}const Sw=36,ww=42,Tw=61,Aw=94,Ew=124,Cw=126;function Pw(){this.eof&&this.error("Unexpected end of input");const e=this.tokenStart;let t=!1;return this.isDelim(ww)?(t=!0,this.next()):this.isDelim(Ew)||this.eat(vy),this.isDelim(Ew)?this.charCodeAt(this.tokenStart+1)!==Tw?(this.next(),this.eat(vy)):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 _w(){const e=this.tokenStart,t=this.charCodeAt(e);return t!==Tw&&t!==Cw&&t!==Aw&&t!==Sw&&t!==ww&&t!==Ew&&this.error("Attribute selector (=, ~=, ^=, $=, *=, |=) is expected"),this.next(),t!==Tw&&(this.isDelim(Tw)||this.error("Equal sign is expected"),this.next()),this.substrToCursor(e)}const Rw="AttributeSelector",Dw={name:"Identifier",matcher:[String,null],value:["String","Identifier",null],flags:[String,null]};function Nw(){const e=this.tokenStart;let t,n=null,r=null,i=null;return this.eat(Iy),this.skipSC(),t=Pw.call(this),this.skipSC(),this.tokenType!==Fy&&(this.tokenType!==vy&&(n=_w.call(this),this.skipSC(),r=this.tokenType===wy?this.String():this.Identifier(),this.skipSC()),this.tokenType===vy&&(i=this.consume(vy),this.skipSC())),this.eat(Fy),{type:"AttributeSelector",loc:this.getLocation(e,this.tokenStart),name:t,matcher:n,value:r,flags:i}}function Qw(e){this.token(Cy,"["),this.node(e.name),null!==e.matcher&&(this.tokenize(e.matcher),this.node(e.value)),null!==e.flags&&this.token(vy,e.flags),this.token(Cy,"]")}const Mw=38;function $w(e){return this.Raw(e,null,!0)}function Lw(){return this.parseWithFallback(this.Rule,$w)}function Iw(e){return this.Raw(e,this.consumeUntilSemicolonIncluded,!0)}function Fw(){if(this.tokenType===$y)return Iw.call(this,this.tokenIndex);const e=this.parseWithFallback(this.Declaration,Iw);return this.tokenType===$y&&this.next(),e}const Bw="Block",zw="block",Zw={children:[["Atrule","Rule","Declaration"]]};function jw(e){const t=e?Fw:Lw,n=this.tokenStart;let r=this.createList();this.eat(Zy);e:for(;!this.eof;)switch(this.tokenType){case jy:break e;case Dy:case Uy:this.next();break;case xy:r.push(this.parseWithFallback(this.Atrule.bind(this,e),$w));break;default:e&&this.isDelim(Mw)?r.push(Lw.call(this)):r.push(t.call(this))}return this.eof||this.eat(jy),{type:"Block",loc:this.getLocation(n,this.tokenStart),children:r}}function Uw(e){this.token(Zy,"{"),this.children(e,(e=>{"Declaration"===e.type&&this.token($y,";")})),this.token(jy,"}")}const Xw="Brackets",Hw={children:[[]]};function Ww(e,t){const n=this.tokenStart;let r=null;return this.eat(Iy),r=e.call(this,t),this.eof||this.eat(Fy),{type:"Brackets",loc:this.getLocation(n,this.tokenStart),children:r}}function qw(e){this.token(Cy,"["),this.children(e),this.token(Cy,"]")}const Yw="CDC",Gw=[];function Vw(){const e=this.tokenStart;return this.eat(Qy),{type:"CDC",loc:this.getLocation(e,this.tokenStart)}}function Kw(){this.token(Qy,"--\x3e")}const Jw="CDO",eT=[];function tT(){const e=this.tokenStart;return this.eat(Ny),{type:"CDO",loc:this.getLocation(e,this.tokenStart)}}function nT(){this.token(Ny,"\x3c!--")}const rT=46,iT="ClassSelector",oT={name:String};function sT(){return this.eatDelim(rT),{type:"ClassSelector",loc:this.getLocation(this.tokenStart-1,this.tokenEnd),name:this.consume(vy)}}function aT(e){this.token(Cy,"."),this.token(vy,e.name)}const lT=43,cT=47,uT=62,hT=126,dT="Combinator",fT={name:String};function pT(){const e=this.tokenStart;let t;switch(this.tokenType){case Dy:t=" ";break;case Cy:switch(this.charCodeAt(this.tokenStart)){case uT:case lT:case hT:this.next();break;case cT:this.next(),this.eatIdent("deep"),this.eatDelim(cT);break;default:this.error("Combinator is expected")}t=this.substrToCursor(e)}return{type:"Combinator",loc:this.getLocation(e,this.tokenStart),name:t}}function mT(e){this.tokenize(e.name)}const gT=42,OT=47,bT="Comment",yT={value:String};function vT(){const e=this.tokenStart;let t=this.tokenEnd;return this.eat(Uy),t-e+2>=2&&this.charCodeAt(t-2)===gT&&this.charCodeAt(t-1)===OT&&(t-=2),{type:"Comment",loc:this.getLocation(e,this.tokenStart),value:this.substring(e+2,t)}}function kT(e){this.token(Uy,"/*"+e.value+"*/")}const xT=33,ST=35,wT=36,TT=38,AT=42,ET=43,CT=47;function PT(e){return this.Raw(e,this.consumeUntilExclamationMarkOrSemicolon,!0)}function _T(e){return this.Raw(e,this.consumeUntilExclamationMarkOrSemicolon,!1)}function RT(){const e=this.tokenIndex,t=this.Value();return"Raw"!==t.type&&!1===this.eof&&this.tokenType!==$y&&!1===this.isDelim(xT)&&!1===this.isBalanceEdge(e)&&this.error(),t}const DT="Declaration",NT="declaration",QT={important:[Boolean,String],property:String,value:["Value","Raw"]};function MT(){const e=this.tokenStart,t=this.tokenIndex,n=LT.call(this),r=Ck(n),i=r?this.parseCustomProperty:this.parseValue,o=r?_T:PT;let s,a=!1;this.skipSC(),this.eat(My);const l=this.tokenIndex;if(r||this.skipSC(),s=i?this.parseWithFallback(RT,o):o.call(this,this.tokenIndex),r&&"Value"===s.type&&s.children.isEmpty)for(let c=l-this.tokenIndex;c<=0;c++)if(this.lookupType(c)===Dy){s.children.appendData({type:"WhiteSpace",loc:null,value:" "});break}return this.isDelim(xT)&&(a=IT.call(this),this.skipSC()),!1===this.eof&&this.tokenType!==$y&&!1===this.isBalanceEdge(t)&&this.error(),{type:"Declaration",loc:this.getLocation(e,this.tokenStart),important:a,property:n,value:s}}function $T(e){this.token(vy,e.property),this.token(My,":"),this.node(e.value),e.important&&(this.token(Cy,"!"),this.token(vy,!0===e.important?"important":e.important))}function LT(){const e=this.tokenStart;if(this.tokenType===Cy)switch(this.charCodeAt(this.tokenStart)){case AT:case wT:case ET:case ST:case TT:this.next();break;case CT:this.next(),this.isDelim(CT)&&this.next()}return this.tokenType===Sy?this.eat(Sy):this.eat(vy),this.substrToCursor(e)}function IT(){this.eat(Cy),this.skipSC();const e=this.consume(vy);return"important"===e||e}const FT=38;function BT(e){return this.Raw(e,this.consumeUntilSemicolonIncluded,!0)}const zT="DeclarationList",ZT={children:[["Declaration","Atrule","Rule"]]};function jT(){const e=this.createList();for(;!this.eof;)switch(this.tokenType){case Dy:case Uy:case $y:this.next();break;case xy:e.push(this.parseWithFallback(this.Atrule.bind(this,!0),BT));break;default:this.isDelim(FT)?e.push(this.parseWithFallback(this.Rule,BT)):e.push(this.parseWithFallback(this.Declaration,BT))}return{type:"DeclarationList",loc:this.getLocationFromList(e),children:e}}function UT(e){this.children(e,(e=>{"Declaration"===e.type&&this.token($y,";")}))}const XT="Dimension",HT={value:String,unit:String};function WT(){const e=this.tokenStart,t=this.consumeNumber(Ry);return{type:"Dimension",loc:this.getLocation(e,this.tokenStart),value:t,unit:this.substring(e+t.length,this.tokenStart)}}function qT(e){this.token(Ry,e.value+e.unit)}const YT="Function",GT="function",VT={name:String,children:[[]]};function KT(e,t){const n=this.tokenStart,r=this.consumeFunctionName(),i=r.toLowerCase();let o;return o=t.hasOwnProperty(i)?t[i].call(this,t):e.call(this,t),this.eof||this.eat(zy),{type:"Function",loc:this.getLocation(n,this.tokenStart),name:r,children:o}}function JT(e){this.token(ky,e.name+"("),this.children(e),this.token(zy,")")}const eA="XXX",tA="Hash",nA={value:String};function rA(){const e=this.tokenStart;return this.eat(Sy),{type:"Hash",loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e+1)}}function iA(e){this.token(Sy,"#"+e.value)}const oA="Identifier",sA={name:String};function aA(){return{type:"Identifier",loc:this.getLocation(this.tokenStart,this.tokenEnd),name:this.consume(vy)}}function lA(e){this.token(vy,e.name)}const cA="IdSelector",uA={name:String};function hA(){const e=this.tokenStart;return this.eat(Sy),{type:"IdSelector",loc:this.getLocation(e,this.tokenStart),name:this.substrToCursor(e+1)}}function dA(e){this.token(Cy,"#"+e.name)}const fA="MediaFeature",pA={name:String,value:["Identifier","Number","Dimension","Ratio",null]};function mA(){const e=this.tokenStart;let t,n=null;if(this.eat(By),this.skipSC(),t=this.consume(vy),this.skipSC(),this.tokenType!==zy){switch(this.eat(My),this.skipSC(),this.tokenType){case Py:n=this.lookupNonWSType(1)===Cy?this.Ratio():this.Number();break;case Ry:n=this.Dimension();break;case vy:n=this.Identifier();break;default:this.error("Number, dimension, ratio or identifier is expected")}this.skipSC()}return this.eat(zy),{type:"MediaFeature",loc:this.getLocation(e,this.tokenStart),name:t,value:n}}function gA(e){this.token(By,"("),this.token(vy,e.name),null!==e.value&&(this.token(My,":"),this.node(e.value)),this.token(zy,")")}const OA="MediaQuery",bA={children:[["Identifier","MediaFeature","WhiteSpace"]]};function yA(){const e=this.createList();let t=null;this.skipSC();e:for(;!this.eof;){switch(this.tokenType){case Uy:case Dy:this.next();continue;case vy:t=this.Identifier();break;case By: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 vA(e){this.children(e)}const kA="MediaQueryList",xA={children:[["MediaQuery"]]};function SA(){const e=this.createList();for(this.skipSC();!this.eof&&(e.push(this.MediaQuery()),this.tokenType===Ly);)this.next();return{type:"MediaQueryList",loc:this.getLocationFromList(e),children:e}}function wA(e){this.children(e,(()=>this.token(Ly,",")))}const TA=38,AA="NestingSelector",EA={};function CA(){const e=this.tokenStart;return this.eatDelim(TA),{type:"NestingSelector",loc:this.getLocation(e,this.tokenStart)}}function PA(){this.token(Cy,"&")}const _A="Nth",RA={nth:["AnPlusB","Identifier"],selector:["SelectorList",null]};function DA(){this.skipSC();const e=this.tokenStart;let t,n=e,r=null;return t=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(e,n),nth:t,selector:r}}function NA(e){this.node(e.nth),null!==e.selector&&(this.token(vy,"of"),this.node(e.selector))}const QA="Number",MA={value:String};function $A(){return{type:"Number",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:this.consume(Py)}}function LA(e){this.token(Py,e.value)}const IA="Operator",FA={value:String};function BA(){const e=this.tokenStart;return this.next(),{type:"Operator",loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e)}}function zA(e){this.tokenize(e.value)}const ZA="Parentheses",jA={children:[[]]};function UA(e,t){const n=this.tokenStart;let r=null;return this.eat(By),r=e.call(this,t),this.eof||this.eat(zy),{type:"Parentheses",loc:this.getLocation(n,this.tokenStart),children:r}}function XA(e){this.token(By,"("),this.children(e),this.token(zy,")")}const HA="Percentage",WA={value:String};function qA(){return{type:"Percentage",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:this.consumeNumber(_y)}}function YA(e){this.token(_y,e.value+"%")}const GA="PseudoClassSelector",VA="function",KA={name:String,children:[["Raw"],null]};function JA(){const e=this.tokenStart;let t,n,r=null;return this.eat(My),this.tokenType===ky?(t=this.consumeFunctionName(),n=t.toLowerCase(),hasOwnProperty.call(this.pseudo,n)?(this.skipSC(),r=this.pseudo[n].call(this),this.skipSC()):(r=this.createList(),r.push(this.Raw(this.tokenIndex,null,!1))),this.eat(zy)):t=this.consume(vy),{type:"PseudoClassSelector",loc:this.getLocation(e,this.tokenStart),name:t,children:r}}function eE(e){this.token(My,":"),null===e.children?this.token(vy,e.name):(this.token(ky,e.name+"("),this.children(e),this.token(zy,")"))}const tE="PseudoElementSelector",nE="function",rE={name:String,children:[["Raw"],null]};function iE(){const e=this.tokenStart;let t,n,r=null;return this.eat(My),this.eat(My),this.tokenType===ky?(t=this.consumeFunctionName(),n=t.toLowerCase(),hasOwnProperty.call(this.pseudo,n)?(this.skipSC(),r=this.pseudo[n].call(this),this.skipSC()):(r=this.createList(),r.push(this.Raw(this.tokenIndex,null,!1))),this.eat(zy)):t=this.consume(vy),{type:"PseudoElementSelector",loc:this.getLocation(e,this.tokenStart),name:t,children:r}}function oE(e){this.token(My,":"),this.token(My,":"),null===e.children?this.token(vy,e.name):(this.token(ky,e.name+"("),this.children(e),this.token(zy,")"))}const sE=47,aE=46;function lE(){this.skipSC();const e=this.consume(Py);for(let t=0;t0&&this.lookupType(-1)===Dy?this.tokenIndex>1?this.getTokenStart(this.tokenIndex-1):this.firstCharOffset:this.tokenStart}const pE="Raw",mE={value:String};function gE(e,t,n){const r=this.getTokenStart(e);let i;return this.skipUntilBalanced(e,t||this.consumeUntilBalanceEnd),i=n&&this.tokenStart>r?fE.call(this):this.tokenStart,{type:"Raw",loc:this.getLocation(r,i),value:this.substring(r,i)}}function OE(e){this.tokenize(e.value)}function bE(e){return this.Raw(e,this.consumeUntilLeftCurlyBracket,!0)}function yE(){const e=this.SelectorList();return"Raw"!==e.type&&!1===this.eof&&this.tokenType!==Zy&&this.error(),e}const vE="Rule",kE="rule",xE={prelude:["SelectorList","Raw"],block:["Block"]};function SE(){const e=this.tokenIndex,t=this.tokenStart;let n,r;return n=this.parseRulePrelude?this.parseWithFallback(yE,bE):bE.call(this,e),r=this.Block(!0),{type:"Rule",loc:this.getLocation(t,this.tokenStart),prelude:n,block:r}}function wE(e){this.node(e.prelude),this.node(e.block)}const TE="Selector",AE={children:[["TypeSelector","IdSelector","ClassSelector","AttributeSelector","PseudoClassSelector","PseudoElementSelector","Combinator","WhiteSpace"]]};function EE(){const 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 CE(e){this.children(e)}const PE="SelectorList",_E="selector",RE={children:[["Selector","Raw"]]};function DE(){const e=this.createList();for(;!this.eof&&(e.push(this.Selector()),this.tokenType===Ly);)this.next();return{type:"SelectorList",loc:this.getLocationFromList(e),children:e}}function NE(e){this.children(e,(()=>this.token(Ly,",")))}const QE=92,ME=34,$E=39;function LE(e){const t=e.length,n=e.charCodeAt(0),r=n===ME||n===$E?1:0,i=1===r&&t>1&&e.charCodeAt(t-1)===n?t-2:t-1;let o="";for(let s=r;s<=i;s++){let n=e.charCodeAt(s);if(n===QE){if(s===i){s!==t-1&&(o=e.substr(s+1));break}if(n=e.charCodeAt(++s),ev(QE,n)){const t=s-1,n=gv(e,t);s=n-1,o+=vv(e.substring(t+1,n))}else 13===n&&10===e.charCodeAt(s+1)&&s++}else o+=e[s]}return o}const IE="String",FE={value:String};function BE(){return{type:"String",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:LE(this.consume(wy))}}function zE(e){this.token(wy,function(e,t){const n=t?"'":'"',r=t?$E:ME;let i="",o=!1;for(let s=0;s6&&this.error("Too many hex digits",r)}return this.next(),n}function sC(e){let t=0;for(;this.isDelim(iC);)++t>e&&this.error("Too many question marks"),this.next()}function aC(e){this.charCodeAt(this.tokenStart)!==e&&this.error((e===nC?"Plus sign":"Hyphen minus")+" is expected")}function lC(){let e=0;switch(this.tokenType){case Py:if(e=oC.call(this,1,!0),this.isDelim(iC)){sC.call(this,6-e);break}if(this.tokenType===Ry||this.tokenType===Py){aC.call(this,rC),oC.call(this,1,!1);break}break;case Ry:e=oC.call(this,1,!0),e>0&&sC.call(this,6-e);break;default:if(this.eatDelim(nC),this.tokenType===vy){e=oC.call(this,0,!0),e>0&&sC.call(this,6-e);break}if(this.isDelim(iC)){this.next(),sC.call(this,5);break}this.error("Hex digit or question mark is expected")}}const cC="UnicodeRange",uC={value:String};function hC(){const e=this.tokenStart;return this.eatIdent("u"),lC.call(this),{type:"UnicodeRange",loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e)}}function dC(e){this.tokenize(e.value)}const fC=32,pC=92,mC=34,gC=39,OC=40,bC=41;const yC="Url",vC={value:String};function kC(){const e=this.tokenStart;let t;switch(this.tokenType){case Ay:t=function(e){const t=e.length;let n=4,r=e.charCodeAt(t-1)===bC?t-2:t-1,i="";for(;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":"[? * [ *]*]!","compound-selector-list":"#","complex-selector":" [? ]*","complex-selector-list":"#","conic-gradient()":"conic-gradient( [from ]? [at ]? , )","contextual-alt-values":"[contextual|no-contextual]","content-distribution":"space-between|space-around|space-evenly|stretch","content-list":"[|contents||||||]+","content-position":"center|start|end|flex-start|flex-end","content-replacement":"","contrast()":"contrast( [] )","cos()":"cos( )",counter:"|","counter()":"counter( , ? )","counter-name":"","counter-style":"|symbols( )","counter-style-name":"","counters()":"counters( , , ? )","cross-fade()":"cross-fade( , ? )","cubic-bezier-timing-function":"ease|ease-in|ease-out|ease-in-out|cubic-bezier( , , , )","deprecated-system-color":"ActiveBorder|ActiveCaption|AppWorkspace|Background|ButtonFace|ButtonHighlight|ButtonShadow|ButtonText|CaptionText|GrayText|Highlight|HighlightText|InactiveBorder|InactiveCaption|InactiveCaptionText|InfoBackground|InfoText|Menu|MenuText|Scrollbar|ThreeDDarkShadow|ThreeDFace|ThreeDHighlight|ThreeDLightShadow|ThreeDShadow|Window|WindowFrame|WindowText","discretionary-lig-values":"[discretionary-ligatures|no-discretionary-ligatures]","display-box":"contents|none","display-inside":"flow|flow-root|table|flex|grid|ruby","display-internal":"table-row-group|table-header-group|table-footer-group|table-row|table-cell|table-column-group|table-column|table-caption|ruby-base|ruby-text|ruby-base-container|ruby-text-container","display-legacy":"inline-block|inline-list-item|inline-table|inline-flex|inline-grid","display-listitem":"?&&[flow|flow-root]?&&list-item","display-outside":"block|inline|run-in","drop-shadow()":"drop-shadow( {2,3} ? )","east-asian-variant-values":"[jis78|jis83|jis90|jis04|simplified|traditional]","east-asian-width-values":"[full-width|proportional-width]","element()":"element( , [first|start|last|first-except]? )|element( )","ellipse()":"ellipse( [{2}]? [at ]? )","ending-shape":"circle|ellipse","env()":"env( , ? )","exp()":"exp( )","explicit-track-list":"[? ]+ ?","family-name":"|+","feature-tag-value":" [|on|off]?","feature-type":"@stylistic|@historical-forms|@styleset|@character-variant|@swash|@ornaments|@annotation","feature-value-block":" '{' '}'","feature-value-block-list":"+","feature-value-declaration":" : + ;","feature-value-declaration-list":"","feature-value-name":"","fill-rule":"nonzero|evenodd","filter-function":"|||||||||","filter-function-list":"[|]+","final-bg-layer":"<'background-color'>|||| [/ ]?||||||||","fixed-breadth":"","fixed-repeat":"repeat( [] , [? ]+ ? )","fixed-size":"|minmax( , )|minmax( , )","font-stretch-absolute":"normal|ultra-condensed|extra-condensed|condensed|semi-condensed|semi-expanded|expanded|extra-expanded|ultra-expanded|","font-variant-css21":"[normal|small-caps]","font-weight-absolute":"normal|bold|","frequency-percentage":"|","general-enclosed":"[ )]|( )","generic-family":"serif|sans-serif|cursive|fantasy|monospace|-apple-system","generic-name":"serif|sans-serif|cursive|fantasy|monospace","geometry-box":"|fill-box|stroke-box|view-box",gradient:"||||||<-legacy-gradient>","grayscale()":"grayscale( )","grid-line":"auto||[&&?]|[span&&[||]]","historical-lig-values":"[historical-ligatures|no-historical-ligatures]","hsl()":"hsl( [/ ]? )|hsl( , , , ? )","hsla()":"hsla( [/ ]? )|hsla( , , , ? )",hue:"|","hue-rotate()":"hue-rotate( )","hwb()":"hwb( [|none] [|none] [|none] [/ [|none]]? )","hypot()":"hypot( # )",image:"||||||","image()":"image( ? [? , ?]! )","image-set()":"image-set( # )","image-set-option":"[|] [||type( )]","image-src":"|","image-tags":"ltr|rtl","inflexible-breadth":"|min-content|max-content|auto","inset()":"inset( {1,4} [round <'border-radius'>]? )","invert()":"invert( )","keyframes-name":"|","keyframe-block":"# { }","keyframe-block-list":"+","keyframe-selector":"from|to|","lab()":"lab( [||none] [||none] [||none] [/ [|none]]? )","layer()":"layer( )","layer-name":" ['.' ]*","lch()":"lch( [||none] [||none] [|none] [/ [|none]]? )","leader()":"leader( )","leader-type":"dotted|solid|space|","length-percentage":"|","line-names":"'[' * ']'","line-name-list":"[|]+","line-style":"none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset","line-width":"|thin|medium|thick","linear-color-hint":"","linear-color-stop":" ?","linear-gradient()":"linear-gradient( [|to ]? , )","log()":"log( , ? )","mask-layer":"|| [/ ]?||||||[|no-clip]||||","mask-position":"[|left|center|right] [|top|center|bottom]?","mask-reference":"none||","mask-source":"","masking-mode":"alpha|luminance|match-source","matrix()":"matrix( #{6} )","matrix3d()":"matrix3d( #{16} )","max()":"max( # )","media-and":" [and ]+","media-condition":"|||","media-condition-without-or":"||","media-feature":"( [||] )","media-in-parens":"( )||","media-not":"not ","media-or":" [or ]+","media-query":"|[not|only]? [and ]?","media-query-list":"#","media-type":"","mf-boolean":"","mf-name":"","mf-plain":" : ","mf-range":" ['<'|'>']? '='? | ['<'|'>']? '='? | '<' '='? '<' '='? | '>' '='? '>' '='? ","mf-value":"|||","min()":"min( # )","minmax()":"minmax( [|min-content|max-content|auto] , [||min-content|max-content|auto] )","mod()":"mod( , )","name-repeat":"repeat( [|auto-fill] , + )","named-color":"transparent|aliceblue|antiquewhite|aqua|aquamarine|azure|beige|bisque|black|blanchedalmond|blue|blueviolet|brown|burlywood|cadetblue|chartreuse|chocolate|coral|cornflowerblue|cornsilk|crimson|cyan|darkblue|darkcyan|darkgoldenrod|darkgray|darkgreen|darkgrey|darkkhaki|darkmagenta|darkolivegreen|darkorange|darkorchid|darkred|darksalmon|darkseagreen|darkslateblue|darkslategray|darkslategrey|darkturquoise|darkviolet|deeppink|deepskyblue|dimgray|dimgrey|dodgerblue|firebrick|floralwhite|forestgreen|fuchsia|gainsboro|ghostwhite|gold|goldenrod|gray|green|greenyellow|grey|honeydew|hotpink|indianred|indigo|ivory|khaki|lavender|lavenderblush|lawngreen|lemonchiffon|lightblue|lightcoral|lightcyan|lightgoldenrodyellow|lightgray|lightgreen|lightgrey|lightpink|lightsalmon|lightseagreen|lightskyblue|lightslategray|lightslategrey|lightsteelblue|lightyellow|lime|limegreen|linen|magenta|maroon|mediumaquamarine|mediumblue|mediumorchid|mediumpurple|mediumseagreen|mediumslateblue|mediumspringgreen|mediumturquoise|mediumvioletred|midnightblue|mintcream|mistyrose|moccasin|navajowhite|navy|oldlace|olive|olivedrab|orange|orangered|orchid|palegoldenrod|palegreen|paleturquoise|palevioletred|papayawhip|peachpuff|peru|pink|plum|powderblue|purple|rebeccapurple|red|rosybrown|royalblue|saddlebrown|salmon|sandybrown|seagreen|seashell|sienna|silver|skyblue|slateblue|slategray|slategrey|snow|springgreen|steelblue|tan|teal|thistle|tomato|turquoise|violet|wheat|white|whitesmoke|yellow|yellowgreen|<-non-standard-color>","namespace-prefix":"","ns-prefix":"[|'*']? '|'","number-percentage":"|","numeric-figure-values":"[lining-nums|oldstyle-nums]","numeric-fraction-values":"[diagonal-fractions|stacked-fractions]","numeric-spacing-values":"[proportional-nums|tabular-nums]",nth:"|even|odd","opacity()":"opacity( [] )","overflow-position":"unsafe|safe","outline-radius":"|","page-body":"? [; ]?| ","page-margin-box":" '{' '}'","page-margin-box-type":"@top-left-corner|@top-left|@top-center|@top-right|@top-right-corner|@bottom-left-corner|@bottom-left|@bottom-center|@bottom-right|@bottom-right-corner|@left-top|@left-middle|@left-bottom|@right-top|@right-middle|@right-bottom","page-selector-list":"[#]?","page-selector":"+| *","page-size":"A5|A4|A3|B5|B4|JIS-B5|JIS-B4|letter|legal|ledger","path()":"path( [ ,]? )","paint()":"paint( , ? )","perspective()":"perspective( [|none] )","polygon()":"polygon( ? , [ ]# )",position:"[[left|center|right]||[top|center|bottom]|[left|center|right|] [top|center|bottom|]?|[[left|right] ]&&[[top|bottom] ]]","pow()":"pow( , )","pseudo-class-selector":"':' |':' ')'","pseudo-element-selector":"':' ","pseudo-page":": [left|right|first|blank]",quote:"open-quote|close-quote|no-open-quote|no-close-quote","radial-gradient()":"radial-gradient( [||]? [at ]? , )",ratio:" [/ ]?","relative-selector":"? ","relative-selector-list":"#","relative-size":"larger|smaller","rem()":"rem( , )","repeat-style":"repeat-x|repeat-y|[repeat|space|round|no-repeat]{1,2}","repeating-conic-gradient()":"repeating-conic-gradient( [from ]? [at ]? , )","repeating-linear-gradient()":"repeating-linear-gradient( [|to ]? , )","repeating-radial-gradient()":"repeating-radial-gradient( [||]? [at ]? , )","reversed-counter-name":"reversed( )","rgb()":"rgb( {3} [/ ]? )|rgb( {3} [/ ]? )|rgb( #{3} , ? )|rgb( #{3} , ? )","rgba()":"rgba( {3} [/ ]? )|rgba( {3} [/ ]? )|rgba( #{3} , ? )|rgba( #{3} , ? )","rotate()":"rotate( [|] )","rotate3d()":"rotate3d( , , , [|] )","rotateX()":"rotateX( [|] )","rotateY()":"rotateY( [|] )","rotateZ()":"rotateZ( [|] )","round()":"round( ? , , )","rounding-strategy":"nearest|up|down|to-zero","saturate()":"saturate( )","scale()":"scale( [|]#{1,2} )","scale3d()":"scale3d( [|]#{3} )","scaleX()":"scaleX( [|] )","scaleY()":"scaleY( [|] )","scaleZ()":"scaleZ( [|] )",scroller:"root|nearest","self-position":"center|start|end|self-start|self-end|flex-start|flex-end","shape-radius":"|closest-side|farthest-side","sign()":"sign( )","skew()":"skew( [|] , [|]? )","skewX()":"skewX( [|] )","skewY()":"skewY( [|] )","sepia()":"sepia( )",shadow:"inset?&&{2,4}&&?","shadow-t":"[{2,3}&&?]",shape:"rect( , , , )|rect( )","shape-box":"|margin-box","side-or-corner":"[left|right]||[top|bottom]","sin()":"sin( )","single-animation":"