ccpanel 0.1.6 → 0.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ccpanel",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "description": "本地图形化管理 Claude Code 配置:MCP、Skills、子 Agent、Commands、配置文件、Memory、Sessions、Plugins",
5
5
  "type": "module",
6
6
  "repository": {
@@ -69,7 +69,7 @@ Error generating stack: `+s.message+`
69
69
  `+e.scrub();for(let i of e.markers)n.marks.push(i)}return this.finishLeaf(n),null}stopAt(e){if(this.stoppedAt!=null&&this.stoppedAt<e)throw new RangeError("Can't move stoppedAt forward");this.stoppedAt=e}reuseFragment(e){if(!this.fragments.moveTo(this.absoluteLineStart+e,this.absoluteLineStart)||!this.fragments.matches(this.block.hash))return!1;let n=this.fragments.takeNodes(this);return n?(this.absoluteLineStart+=n,this.lineStart=Sw(this.absoluteLineStart,this.ranges),this.moveRangeI(),this.absoluteLineStart<this.to?(this.lineStart++,this.absoluteLineStart++,this.readLine()):(this.atEnd=!0,this.readLine()),!0):!1}get depth(){return this.stack.length}parentType(e=this.depth-1){return this.parser.nodeSet.types[this.stack[e].type]}nextLine(){return this.lineStart+=this.line.text.length,this.absoluteLineEnd>=this.to?(this.absoluteLineStart=this.absoluteLineEnd,this.atEnd=!0,this.readLine(),!1):(this.lineStart++,this.absoluteLineStart=this.absoluteLineEnd+1,this.moveRangeI(),this.readLine(),!0)}peekLine(){return this.scanLine(this.absoluteLineEnd+1).text}moveRangeI(){for(;this.rangeI<this.ranges.length-1&&this.absoluteLineStart>=this.ranges[this.rangeI].to;)this.rangeI++,this.absoluteLineStart=Math.max(this.absoluteLineStart,this.ranges[this.rangeI].from)}scanLine(e){let n=FA;if(n.end=e,e>=this.to)n.text="";else if(n.text=this.lineChunkAt(e),n.end+=n.text.length,this.ranges.length>1){let i=this.absoluteLineStart,r=this.rangeI;for(;this.ranges[r].to<n.end;){r++;let s=this.ranges[r].from,l=this.lineChunkAt(s);n.end=s+l.length,n.text=n.text.slice(0,this.ranges[r-1].to-i)+l,i=n.end-n.text.length}}return n}readLine(){let{line:e}=this,{text:n,end:i}=this.scanLine(this.absoluteLineStart);for(this.absoluteLineEnd=i,e.reset(n);e.depth<this.stack.length;e.depth++){let r=this.stack[e.depth],s=this.parser.skipContextMarkup[r.type];if(!s)throw new Error("Unhandled block context "+R[r.type]);let l=this.line.markers.length;if(!s(r,this,e)){this.line.markers.length>l&&(r.end=this.line.markers[this.line.markers.length-1].to),e.forward();break}e.forward()}}lineChunkAt(e){let n=this.input.chunk(e),i;if(this.input.lineChunks)i=n==`
70
70
  `?"":n;else{let r=n.indexOf(`
71
71
  `);i=r<0?n:n.slice(0,r)}return e+i.length>this.to?i.slice(0,this.to-e):i}prevLineEnd(){return this.atEnd?this.lineStart:this.lineStart-1}startContext(e,n,i=0){this.block=zu.create(e,i,this.lineStart+n,this.block.hash,this.lineStart+this.line.text.length),this.stack.push(this.block)}startComposite(e,n,i=0){this.startContext(this.parser.getNodeType(e),n,i)}addNode(e,n,i){typeof e=="number"&&(e=new F(this.parser.nodeSet.types[e],xs,xs,(i??this.prevLineEnd())-n)),this.block.addChild(e,n-this.block.from)}addElement(e){this.block.addChild(e.toTree(this.parser.nodeSet),e.from-this.block.from)}addLeafElement(e,n){this.addNode(this.buffer.writeElements(Yd(n.children,e.marks),-n.from).finish(n.type,n.to-n.from),n.from)}finishContext(){let e=this.stack.pop(),n=this.stack[this.stack.length-1];n.addChild(e.toTree(this.parser.nodeSet),e.from-n.from),this.block=n}finish(){for(;this.stack.length>1;)this.finishContext();return this.addGaps(this.block.toTree(this.parser.nodeSet,this.lineStart))}addGaps(e){return this.ranges.length>1?cw(this.ranges,0,e.topNode,this.ranges[0].from,this.reusePlaceholders):e}finishLeaf(e){for(let i of e.parsers)if(i.finish(this,e))return;let n=Yd(this.parser.parseInline(e.content,e.start),e.marks);this.addNode(this.buffer.writeElements(n,-e.start).finish(R.Paragraph,e.content.length),e.start)}elt(e,n,i,r){return typeof e=="string"?ie(this.parser.getNodeType(e),n,i,r):new dw(e,n)}get buffer(){return new fw(this.parser.nodeSet)}}function cw(t,e,n,i,r){let s=t[e].to,l=[],o=[],a=n.from+i;function u(c,h){for(;h?c>=s:c>s;){let f=t[e+1].from-s;i+=f,c+=f,e++,s=t[e].to}}for(let c=n.firstChild;c;c=c.nextSibling){u(c.from+i,!0);let h=c.from+i,f,d=r.get(c.tree);d?f=d:c.to+i>s?(f=cw(t,e,c,i,r),u(c.to+i,!1)):f=c.toTree(),l.push(f),o.push(h-a)}return u(n.to+i,!1),new F(n.type,l,o,n.to+i-a,n.tree?n.tree.propValues:void 0)}class wc extends fc{constructor(e,n,i,r,s,l,o,a,u){super(),this.nodeSet=e,this.blockParsers=n,this.leafBlockParsers=i,this.blockNames=r,this.endLeafBlock=s,this.skipContextMarkup=l,this.inlineParsers=o,this.inlineNames=a,this.wrappers=u,this.nodeTypes=Object.create(null);for(let c of e.types)this.nodeTypes[c.name]=c.id}createParse(e,n,i){let r=new HA(this,e,n,i);for(let s of this.wrappers)r=s(r,e,n,i);return r}configure(e){let n=Dd(e);if(!n)return this;let{nodeSet:i,skipContextMarkup:r}=this,s=this.blockParsers.slice(),l=this.leafBlockParsers.slice(),o=this.blockNames.slice(),a=this.inlineParsers.slice(),u=this.inlineNames.slice(),c=this.endLeafBlock.slice(),h=this.wrappers;if(Gs(n.defineNodes)){r=Object.assign({},r);let f=i.types.slice(),d;for(let O of n.defineNodes){let{name:p,block:v,composite:g,style:m}=typeof O=="string"?{name:O}:O;if(f.some(Q=>Q.name==p))continue;g&&(r[f.length]=(Q,k,b)=>g(k,b,Q.value));let x=f.length,w=g?["Block","BlockContext"]:v?x>=R.ATXHeading1&&x<=R.SetextHeading2?["Block","LeafBlock","Heading"]:["Block","LeafBlock"]:void 0;f.push(Xe.define({id:x,name:p,props:w&&[[Y.group,w]]})),m&&(d||(d={}),Array.isArray(m)||m instanceof Tt?d[p]=m:Object.assign(d,m))}i=new $s(f),d&&(i=i.extend(qi(d)))}if(Gs(n.props)&&(i=i.extend(...n.props)),Gs(n.remove))for(let f of n.remove){let d=this.blockNames.indexOf(f),O=this.inlineNames.indexOf(f);d>-1&&(s[d]=l[d]=void 0),O>-1&&(a[O]=void 0)}if(Gs(n.parseBlock))for(let f of n.parseBlock){let d=o.indexOf(f.name);if(d>-1)s[d]=f.parse,l[d]=f.leaf;else{let O=f.before?da(o,f.before):f.after?da(o,f.after)+1:o.length-1;s.splice(O,0,f.parse),l.splice(O,0,f.leaf),o.splice(O,0,f.name)}f.endLeaf&&c.push(f.endLeaf)}if(Gs(n.parseInline))for(let f of n.parseInline){let d=u.indexOf(f.name);if(d>-1)a[d]=f.parse;else{let O=f.before?da(u,f.before):f.after?da(u,f.after)+1:u.length-1;a.splice(O,0,f.parse),u.splice(O,0,f.name)}}return n.wrap&&(h=h.concat(n.wrap)),new wc(i,s,l,o,c,r,a,u,h)}getNodeType(e){let n=this.nodeTypes[e];if(n==null)throw new RangeError(`Unknown node type '${e}'`);return n}parseInline(e,n){let i=new Yp(this,e,n);e:for(let r=n;r<i.end;){let s=i.char(r);for(let l of this.inlineParsers)if(l){let o=l(i,s,r);if(o>=0){r=o;continue e}}r++}return i.resolveMarkers(0)}}function Gs(t){return t!=null&&t.length>0}function Dd(t){if(!Array.isArray(t))return t;if(t.length==0)return null;let e=Dd(t[0]);if(t.length==1)return e;let n=Dd(t.slice(1));if(!n||!e)return e||n;let i=(l,o)=>(l||xs).concat(o||xs),r=e.wrap,s=n.wrap;return{props:i(e.props,n.props),defineNodes:i(e.defineNodes,n.defineNodes),parseBlock:i(e.parseBlock,n.parseBlock),parseInline:i(e.parseInline,n.parseInline),remove:i(e.remove,n.remove),wrap:r?s?(l,o,a,u)=>r(s(l,o,a,u),o,a,u):r:s}}function da(t,e){let n=t.indexOf(e);if(n<0)throw new RangeError(`Position specified relative to unknown parser ${e}`);return n}let hw=[Xe.none];for(let t=1,e;e=R[t];t++)hw[t]=Xe.define({id:t,name:e,props:t>=R.Escape?[]:[[Y.group,t in ew?["Block","BlockContext"]:["Block","LeafBlock"]]],top:e=="Document"});const xs=[];class fw{constructor(e){this.nodeSet=e,this.content=[],this.nodes=[]}write(e,n,i,r=0){return this.content.push(e,n,i,4+r*4),this}writeElements(e,n=0){for(let i of e)i.writeTo(this,n);return this}finish(e,n){return F.build({buffer:this.content,nodeSet:this.nodeSet,reused:this.nodes,topID:e,length:n})}}let lo=class{constructor(e,n,i,r=xs){this.type=e,this.from=n,this.to=i,this.children=r}writeTo(e,n){let i=e.content.length;e.writeElements(this.children,n),e.content.push(this.type,this.from+n,this.to+n,e.content.length+4-i)}toTree(e){return new fw(e).writeElements(this.children,-this.from).finish(this.type,this.to-this.from)}};class dw{constructor(e,n){this.tree=e,this.from=n}get to(){return this.from+this.tree.length}get type(){return this.tree.type.id}get children(){return xs}writeTo(e,n){e.nodes.push(this.tree),e.content.push(e.nodes.length-1,this.from+n,this.to+n,-1)}toTree(){return this.tree}}function ie(t,e,n,i){return new lo(t,e,n,i)}const Ow={resolve:"Emphasis",mark:"EmphasisMark"},pw={resolve:"Emphasis",mark:"EmphasisMark"},er={},Mu={};class $t{constructor(e,n,i,r){this.type=e,this.from=n,this.to=i,this.side=r}}const Zy="!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~";let oo=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\u2010-\u2027]/;try{oo=new RegExp("[\\p{S}|\\p{P}]","u")}catch{}const Mh={Escape(t,e,n){if(e!=92||n==t.end-1)return-1;let i=t.char(n+1);for(let r=0;r<Zy.length;r++)if(Zy.charCodeAt(r)==i)return t.append(ie(R.Escape,n,n+2));return-1},Entity(t,e,n){if(e!=38)return-1;let i=/^(?:#\d+|#x[a-f\d]+|\w+);/i.exec(t.slice(n+1,n+31));return i?t.append(ie(R.Entity,n,n+1+i[0].length)):-1},InlineCode(t,e,n){if(e!=96||n&&t.char(n-1)==96)return-1;let i=n+1;for(;i<t.end&&t.char(i)==96;)i++;let r=i-n,s=0;for(;i<t.end;i++)if(t.char(i)==96){if(s++,s==r&&t.char(i+1)!=96)return t.append(ie(R.InlineCode,n,i+1,[ie(R.CodeMark,n,n+r),ie(R.CodeMark,i+1-r,i+1)]))}else s=0;return-1},HTMLTag(t,e,n){if(e!=60||n==t.end-1)return-1;let i=t.slice(n+1,t.end),r=/^(?:[a-z][-\w+.]+:[^\s>]+|[a-z\d.!#$%&'*+/=?^_`{|}~-]+@[a-z\d](?:[a-z\d-]{0,61}[a-z\d])?(?:\.[a-z\d](?:[a-z\d-]{0,61}[a-z\d])?)*)>/i.exec(i);if(r)return t.append(ie(R.Autolink,n,n+1+r[0].length,[ie(R.LinkMark,n,n+1),ie(R.URL,n+1,n+r[0].length),ie(R.LinkMark,n+r[0].length,n+1+r[0].length)]));let s=/^!--[^>](?:-[^-]|[^-])*?-->/i.exec(i);if(s)return t.append(ie(R.Comment,n,n+1+s[0].length));let l=/^\?[^]*?\?>/.exec(i);if(l)return t.append(ie(R.ProcessingInstruction,n,n+1+l[0].length));let o=/^(?:![A-Z][^]*?>|!\[CDATA\[[^]*?\]\]>|\/\s*[a-zA-Z][\w-]*\s*>|\s*[a-zA-Z][\w-]*(\s+[a-zA-Z:_][\w-.:]*(?:\s*=\s*(?:[^\s"'=<>`]+|'[^']*'|"[^"]*"))?)*\s*(\/\s*)?>)/.exec(i);return o?t.append(ie(R.HTMLTag,n,n+1+o[0].length)):-1},Emphasis(t,e,n){if(e!=95&&e!=42)return-1;let i=n+1;for(;t.char(i)==e;)i++;let r=t.slice(n-1,n),s=t.slice(i,i+1),l=oo.test(r),o=oo.test(s),a=/\s|^$/.test(r),u=/\s|^$/.test(s),c=!u&&(!o||a||l),h=!a&&(!l||u||o),f=c&&(e==42||!h||l),d=h&&(e==42||!c||o);return t.append(new $t(e==95?Ow:pw,n,i,(f?1:0)|(d?2:0)))},HardBreak(t,e,n){if(e==92&&t.char(n+1)==10)return t.append(ie(R.HardBreak,n,n+2));if(e==32){let i=n+1;for(;t.char(i)==32;)i++;if(t.char(i)==10&&i>=n+2)return t.append(ie(R.HardBreak,n,i+1))}return-1},Link(t,e,n){return e==91?t.append(new $t(er,n,n+1,1)):-1},Image(t,e,n){return e==33&&t.char(n+1)==91?t.append(new $t(Mu,n,n+2,1)):-1},LinkEnd(t,e,n){if(e!=93)return-1;for(let i=t.parts.length-1;i>=0;i--){let r=t.parts[i];if(r instanceof $t&&(r.type==er||r.type==Mu)){if(!r.side||t.skipSpace(r.to)==n&&!/[(\[]/.test(t.slice(n+1,n+2)))return t.parts[i]=null,-1;let s=t.takeContent(i),l=t.parts[i]=KA(t,s,r.type==er?R.Link:R.Image,r.from,n+1);if(r.type==er)for(let o=0;o<i;o++){let a=t.parts[o];a instanceof $t&&a.type==er&&(a.side=0)}return l.to}}return-1}};function KA(t,e,n,i,r){let{text:s}=t,l=t.char(r),o=r;if(e.unshift(ie(R.LinkMark,i,i+(n==R.Image?2:1))),e.push(ie(R.LinkMark,r-1,r)),l==40){let a=t.skipSpace(r+1),u=mw(s,a-t.offset,t.offset),c;u&&(a=t.skipSpace(u.to),a!=u.to&&(c=gw(s,a-t.offset,t.offset),c&&(a=t.skipSpace(c.to)))),t.char(a)==41&&(e.push(ie(R.LinkMark,r,r+1)),o=a+1,u&&e.push(u),c&&e.push(c),e.push(ie(R.LinkMark,a,o)))}else if(l==91){let a=yw(s,r-t.offset,t.offset,!1);a&&(e.push(a),o=a.to)}return ie(n,i,o,e)}function mw(t,e,n){if(t.charCodeAt(e)==60){for(let r=e+1;r<t.length;r++){let s=t.charCodeAt(r);if(s==62)return ie(R.URL,e+n,r+1+n);if(s==60||s==10)return!1}return null}else{let r=0,s=e;for(let l=!1;s<t.length;s++){let o=t.charCodeAt(s);if(Bt(o))break;if(l)l=!1;else if(o==40)r++;else if(o==41){if(!r)break;r--}else o==92&&(l=!0)}return s>e?ie(R.URL,e+n,s+n):s==t.length?null:!1}}function gw(t,e,n){let i=t.charCodeAt(e);if(i!=39&&i!=34&&i!=40)return!1;let r=i==40?41:i;for(let s=e+1,l=!1;s<t.length;s++){let o=t.charCodeAt(s);if(l)l=!1;else{if(o==r)return ie(R.LinkTitle,e+n,s+1+n);o==92&&(l=!0)}}return null}function yw(t,e,n,i){for(let r=!1,s=e+1,l=Math.min(t.length,s+999);s<l;s++){let o=t.charCodeAt(s);if(r)r=!1;else{if(o==93)return i?!1:ie(R.LinkLabel,e+n,s+1+n);if(i&&!Bt(o)&&(i=!1),o==91)return!1;o==92&&(r=!0)}}return null}class Yp{constructor(e,n,i){this.parser=e,this.text=n,this.offset=i,this.parts=[]}char(e){return e>=this.end?-1:this.text.charCodeAt(e-this.offset)}get end(){return this.offset+this.text.length}slice(e,n){return this.text.slice(e-this.offset,n-this.offset)}append(e){return this.parts.push(e),e.to}addDelimiter(e,n,i,r,s){return this.append(new $t(e,n,i,(r?1:0)|(s?2:0)))}get hasOpenLink(){for(let e=this.parts.length-1;e>=0;e--){let n=this.parts[e];if(n instanceof $t&&(n.type==er||n.type==Mu))return!0}return!1}addElement(e){return this.append(e)}resolveMarkers(e){for(let i=e;i<this.parts.length;i++){let r=this.parts[i];if(!(r instanceof $t&&r.type.resolve&&r.side&2))continue;let s=r.type==Ow||r.type==pw,l=r.to-r.from,o,a=i-1;for(;a>=e;a--){let p=this.parts[a];if(p instanceof $t&&p.side&1&&p.type==r.type&&!(s&&(r.side&1||p.side&2)&&(p.to-p.from+l)%3==0&&((p.to-p.from)%3||l%3))){o=p;break}}if(!o)continue;let u=r.type.resolve,c=[],h=o.from,f=r.to;if(s){let p=Math.min(2,o.to-o.from,l);h=o.to-p,f=r.from+p,u=p==1?"Emphasis":"StrongEmphasis"}o.type.mark&&c.push(this.elt(o.type.mark,h,o.to));for(let p=a+1;p<i;p++)this.parts[p]instanceof lo&&c.push(this.parts[p]),this.parts[p]=null;r.type.mark&&c.push(this.elt(r.type.mark,r.from,f));let d=this.elt(u,h,f,c);this.parts[a]=s&&o.from!=h?new $t(o.type,o.from,h,o.side):null,(this.parts[i]=s&&r.to!=f?new $t(r.type,f,r.to,r.side):null)?this.parts.splice(i,0,d):this.parts[i]=d}let n=[];for(let i=e;i<this.parts.length;i++){let r=this.parts[i];r instanceof lo&&n.push(r)}return n}findOpeningDelimiter(e){for(let n=this.parts.length-1;n>=0;n--){let i=this.parts[n];if(i instanceof $t&&i.type==e&&i.side&1)return n}return null}takeContent(e){let n=this.resolveMarkers(e);return this.parts.length=e,n}getDelimiterAt(e){let n=this.parts[e];return n instanceof $t?n:null}skipSpace(e){return vl(this.text,e-this.offset)+this.offset}elt(e,n,i,r){return typeof e=="string"?ie(this.parser.getNodeType(e),n,i,r):new dw(e,n)}}Yp.linkStart=er;Yp.imageStart=Mu;function Yd(t,e){if(!e.length)return t;if(!t.length)return e;let n=t.slice(),i=0;for(let r of e){for(;i<n.length&&n[i].to<r.to;)i++;if(i<n.length&&n[i].from<r.from){let s=n[i];s instanceof lo&&(n[i]=new lo(s.type,s.from,s.to,Yd(s.children,[r])))}else n.splice(i++,0,r)}return n}const JA=[R.CodeBlock,R.ListItem,R.OrderedList,R.BulletList];class e_{constructor(e,n){this.fragments=e,this.input=n,this.i=0,this.fragment=null,this.fragmentEnd=-1,this.cursor=null,e.length&&(this.fragment=e[this.i++])}nextFragment(){this.fragment=this.i<this.fragments.length?this.fragments[this.i++]:null,this.cursor=null,this.fragmentEnd=-1}moveTo(e,n){for(;this.fragment&&this.fragment.to<=e;)this.nextFragment();if(!this.fragment||this.fragment.from>(e?e-1:0))return!1;if(this.fragmentEnd<0){let s=this.fragment.to;for(;s>0&&this.input.read(s-1,s)!=`
72
- `;)s--;this.fragmentEnd=s?s-1:0}let i=this.cursor;i||(i=this.cursor=this.fragment.tree.cursor(),i.firstChild());let r=e+this.fragment.offset;for(;i.to<=r;)if(!i.parent())return!1;for(;;){if(i.from>=r)return this.fragment.from<=n;if(!i.childAfter(r))return!1}}matches(e){let n=this.cursor.tree;return n&&n.prop(Y.contextHash)==e}takeNodes(e){let n=this.cursor,i=this.fragment.offset,r=this.fragmentEnd-(this.fragment.openEnd?1:0),s=e.absoluteLineStart,l=s,o=e.block.children.length,a=l,u=o;for(;;){if(n.to-i>r){if(n.type.isAnonymous&&n.firstChild())continue;break}let c=Sw(n.from-i,e.ranges);if(n.to-i<=e.ranges[e.rangeI].to)e.addNode(n.tree,c);else{let h=new F(e.parser.nodeSet.types[R.Paragraph],[],[],0,e.block.hashProp);e.reusePlaceholders.set(h,n.tree),e.addNode(h,c)}if(n.type.is("Block")&&(JA.indexOf(n.type.id)<0?(l=n.to-i,o=e.block.children.length):(l=a,o=u),a=n.to-i,u=e.block.children.length),!n.nextSibling())break}for(;e.block.children.length>o;)e.block.children.pop(),e.block.positions.pop();return l-s}}function Sw(t,e){let n=t;for(let i=1;i<e.length;i++){let r=e[i-1].to,s=e[i].from;r<t&&(n-=s-r)}return n}const t_=qi({"Blockquote/...":y.quote,HorizontalRule:y.contentSeparator,"ATXHeading1/... SetextHeading1/...":y.heading1,"ATXHeading2/... SetextHeading2/...":y.heading2,"ATXHeading3/...":y.heading3,"ATXHeading4/...":y.heading4,"ATXHeading5/...":y.heading5,"ATXHeading6/...":y.heading6,"Comment CommentBlock":y.comment,Escape:y.escape,Entity:y.character,"Emphasis/...":y.emphasis,"StrongEmphasis/...":y.strong,"Link/... Image/...":y.link,"OrderedList/... BulletList/...":y.list,"BlockQuote/...":y.quote,"InlineCode CodeText":y.monospace,"URL Autolink":y.url,"HeaderMark HardBreak QuoteMark ListMark LinkMark EmphasisMark CodeMark":y.processingInstruction,"CodeInfo LinkLabel":y.labelName,LinkTitle:y.string,Paragraph:y.content}),n_=new wc(new $s(hw).extend(t_),Object.keys(fa).map(t=>fa[t]),Object.keys(fa).map(t=>uw[t]),Object.keys(fa),GA,ew,Object.keys(Mh).map(t=>Mh[t]),Object.keys(Mh),[]);function i_(t,e,n){let i=[];for(let r=t.firstChild,s=e;;r=r.nextSibling){let l=r?r.from:n;if(l>s&&i.push({from:s,to:l}),!r)break;s=r.to}return i}function r_(t){let{codeParser:e,htmlParser:n}=t;return{wrap:eQ((r,s)=>{let l=r.type.id;if(e&&(l==R.CodeBlock||l==R.FencedCode)){let o="";if(l==R.FencedCode){let u=r.node.getChild(R.CodeInfo);u&&(o=s.read(u.from,u.to))}let a=e(o);if(a)return{parser:a,overlay:u=>u.type.id==R.CodeText,bracketed:l==R.FencedCode}}else if(n&&(l==R.HTMLBlock||l==R.HTMLTag||l==R.CommentBlock))return{parser:n,overlay:i_(r.node,r.from,r.to)};return null})}}const s_={resolve:"Strikethrough",mark:"StrikethroughMark"},l_={defineNodes:[{name:"Strikethrough",style:{"Strikethrough/...":y.strikethrough}},{name:"StrikethroughMark",style:y.processingInstruction}],parseInline:[{name:"Strikethrough",parse(t,e,n){if(e!=126||t.char(n+1)!=126||t.char(n+2)==126)return-1;let i=t.slice(n-1,n),r=t.slice(n+2,n+3),s=/\s|^$/.test(i),l=/\s|^$/.test(r),o=oo.test(i),a=oo.test(r);return t.addDelimiter(s_,n,n+2,!l&&(!a||s||o),!s&&(!o||l||a))},after:"Emphasis"}]};function Ql(t,e,n=0,i,r=0){let s=0,l=!0,o=-1,a=-1,u=!1,c=()=>{i.push(t.elt("TableCell",r+o,r+a,t.parser.parseInline(e.slice(o,a),r+o)))};for(let h=n;h<e.length;h++){let f=e.charCodeAt(h);f==124&&!u?((!l||o>-1)&&s++,l=!1,i&&(o>-1&&c(),i.push(t.elt("TableDelimiter",h+r,h+r+1))),o=a=-1):(u||f!=32&&f!=9)&&(o<0&&(o=h),a=h+1),u=!u&&f==92}return o>-1&&(s++,i&&c()),s}function Ey(t,e){for(let n=e;n<t.length;n++){let i=t.charCodeAt(n);if(i==124)return!0;i==92&&n++}return!1}const xw=/^\|?(\s*:?-+:?\s*\|)+(\s*:?-+:?\s*)?$/;class Ay{constructor(){this.rows=null}nextLine(e,n,i){if(this.rows==null){this.rows=!1;let r;if((n.next==45||n.next==58||n.next==124)&&xw.test(r=n.text.slice(n.pos))){let s=[];Ql(e,i.content,0,s,i.start)==Ql(e,r,0)&&(this.rows=[e.elt("TableHeader",i.start,i.start+i.content.length,s),e.elt("TableDelimiter",e.lineStart+n.pos,e.lineStart+n.text.length)])}}else if(this.rows){let r=[];Ql(e,n.text,n.pos,r,e.lineStart),this.rows.push(e.elt("TableRow",e.lineStart+n.pos,e.lineStart+n.text.length,r))}return!1}finish(e,n){return this.rows?(e.addLeafElement(n,e.elt("Table",n.start,n.start+n.content.length,this.rows)),!0):!1}}const o_={defineNodes:[{name:"Table",block:!0},{name:"TableHeader",style:{"TableHeader/...":y.heading}},"TableRow",{name:"TableCell",style:y.content},{name:"TableDelimiter",style:y.processingInstruction}],parseBlock:[{name:"Table",leaf(t,e){return Ey(e.content,0)?new Ay:null},endLeaf(t,e,n){if(n.parsers.some(r=>r instanceof Ay)||!Ey(e.text,e.basePos))return!1;let i=t.peekLine();return xw.test(i)&&Ql(t,e.text,e.basePos)==Ql(t,i,e.basePos)},before:"SetextHeading"}]};class a_{nextLine(){return!1}finish(e,n){return e.addLeafElement(n,e.elt("Task",n.start,n.start+n.content.length,[e.elt("TaskMarker",n.start,n.start+3),...e.parser.parseInline(n.content.slice(3),n.start+3)])),!0}}const u_={defineNodes:[{name:"Task",block:!0,style:y.list},{name:"TaskMarker",style:y.atom}],parseBlock:[{name:"TaskList",leaf(t,e){return/^\[[ xX]\][ \t]/.test(e.content)&&t.parentType().name=="ListItem"?new a_:null},after:"SetextHeading"}]},_y=/(www\.)|(https?:\/\/)|([\w.+-]{1,100}@)|(mailto:|xmpp:)/gy,zy=/[\w-]+(\.[\w-]+)+(:\d+)?(\/[^\s<]*)?/gy,c_=/[\w-]+\.[\w-]+($|[/:])/,My=/[\w.+-]+@[\w-]+(\.[\w.-]+)+/gy,Ly=/\/[a-zA-Z\d@.]+/gy;function Wy(t,e,n,i){let r=0;for(let s=e;s<n;s++)t[s]==i&&r++;return r}function h_(t,e){zy.lastIndex=e;let n=zy.exec(t);if(!n||c_.exec(n[0])[0].indexOf("_")>-1)return-1;let i=e+n[0].length;for(;;){let r=t[i-1],s;if(/[?!.,:*_~]/.test(r)||r==")"&&Wy(t,e,i,")")>Wy(t,e,i,"("))i--;else if(r==";"&&(s=/&(?:#\d+|#x[a-f\d]+|\w+);$/.exec(t.slice(e,i))))i=e+s.index;else break}return i}function qy(t,e){My.lastIndex=e;let n=My.exec(t);if(!n)return-1;let i=n[0][n[0].length-1];return i=="_"||i=="-"?-1:e+n[0].length-(i=="."?1:0)}const f_={parseInline:[{name:"Autolink",parse(t,e,n){let i=n-t.offset;if(i&&/\w/.test(t.text[i-1]))return-1;_y.lastIndex=i;let r=_y.exec(t.text),s=-1;if(!r)return-1;if(r[1]||r[2]){if(s=h_(t.text,i+r[0].length),s>-1&&t.hasOpenLink){let l=/([^\[\]]|\[[^\]]*\])*/.exec(t.text.slice(i,s));s=i+l[0].length}}else r[3]?s=qy(t.text,i):(s=qy(t.text,i+r[0].length),s>-1&&r[0]=="xmpp:"&&(Ly.lastIndex=s,r=Ly.exec(t.text),r&&(s=r.index+r[0].length)));return s<0?-1:(t.addElement(t.elt("URL",n,s+t.offset)),s+t.offset)}}]},d_=[o_,u_,l_,f_];function vw(t,e,n){return(i,r,s)=>{if(r!=t||i.char(s+1)==t)return-1;let l=[i.elt(n,s,s+1)];for(let o=s+1;o<i.end;o++){let a=i.char(o);if(a==t)return i.addElement(i.elt(e,s,o+1,l.concat(i.elt(n,o,o+1))));if(a==92&&l.push(i.elt("Escape",o,o+++2)),Bt(a))break}return-1}}const O_={defineNodes:[{name:"Superscript",style:y.special(y.content)},{name:"SuperscriptMark",style:y.processingInstruction}],parseInline:[{name:"Superscript",parse:vw(94,"Superscript","SuperscriptMark")}]},p_={defineNodes:[{name:"Subscript",style:y.special(y.content)},{name:"SubscriptMark",style:y.processingInstruction}],parseInline:[{name:"Subscript",parse:vw(126,"Subscript","SubscriptMark")}]},m_={defineNodes:[{name:"Emoji",style:y.character}],parseInline:[{name:"Emoji",parse(t,e,n){let i;return e!=58||!(i=/^[a-zA-Z_0-9]+:/.exec(t.slice(n+1,t.end)))?-1:t.addElement(t.elt("Emoji",n,n+1+i[0].length))}}]},g_=55,y_=1,S_=56,x_=2,v_=57,Q_=3,Vy=4,k_=5,Ip=6,Qw=7,kw=8,ww=9,bw=10,w_=11,b_=12,P_=13,Lh=58,$_=14,T_=15,Ny=59,Pw=21,C_=23,$w=24,R_=25,Id=27,Tw=28,X_=29,j_=32,Z_=35,E_=37,A_=38,__=0,z_=1,M_={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},L_={dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},Dy={dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}};function W_(t){return t==45||t==46||t==58||t>=65&&t<=90||t==95||t>=97&&t<=122||t>=161}let Yy=null,Iy=null,By=0;function Bd(t,e){let n=t.pos+e;if(By==n&&Iy==t)return Yy;let i=t.peek(e),r="";for(;W_(i);)r+=String.fromCharCode(i),i=t.peek(++e);return Iy=t,By=n,Yy=r?r.toLowerCase():i==q_||i==V_?void 0:null}const Cw=60,Lu=62,Bp=47,q_=63,V_=33,N_=45;function Uy(t,e){this.name=t,this.parent=e}const D_=[Ip,bw,Qw,kw,ww],Y_=new zp({start:null,shift(t,e,n,i){return D_.indexOf(e)>-1?new Uy(Bd(i,1)||"",t):t},reduce(t,e){return e==Pw&&t?t.parent:t},reuse(t,e,n,i){let r=e.type.id;return r==Ip||r==E_?new Uy(Bd(i,1)||"",t):t},strict:!1}),I_=new Ge((t,e)=>{if(t.next!=Cw){t.next<0&&e.context&&t.acceptToken(Lh);return}t.advance();let n=t.next==Bp;n&&t.advance();let i=Bd(t,0);if(i===void 0)return;if(!i)return t.acceptToken(n?T_:$_);let r=e.context?e.context.name:null;if(n){if(i==r)return t.acceptToken(w_);if(r&&L_[r])return t.acceptToken(Lh,-2);if(e.dialectEnabled(__))return t.acceptToken(b_);for(let s=e.context;s;s=s.parent)if(s.name==i)return;t.acceptToken(P_)}else{if(i=="script")return t.acceptToken(Qw);if(i=="style")return t.acceptToken(kw);if(i=="textarea")return t.acceptToken(ww);if(M_.hasOwnProperty(i))return t.acceptToken(bw);r&&Dy[r]&&Dy[r][i]?t.acceptToken(Lh,-1):t.acceptToken(Ip)}},{contextual:!0}),B_=new Ge(t=>{for(let e=0,n=0;;n++){if(t.next<0){n&&t.acceptToken(Ny);break}if(t.next==N_)e++;else if(t.next==Lu&&e>=2){n>=3&&t.acceptToken(Ny,-2);break}else e=0;t.advance()}});function U_(t){for(;t;t=t.parent)if(t.name=="svg"||t.name=="math")return!0;return!1}const G_=new Ge((t,e)=>{if(t.next==Bp&&t.peek(1)==Lu){let n=e.dialectEnabled(z_)||U_(e.context);t.acceptToken(n?k_:Vy,2)}else t.next==Lu&&t.acceptToken(Vy,1)});function Up(t,e,n){let i=2+t.length;return new Ge(r=>{for(let s=0,l=0,o=0;;o++){if(r.next<0){o&&r.acceptToken(e);break}if(s==0&&r.next==Cw||s==1&&r.next==Bp||s>=2&&s<i&&r.next==t.charCodeAt(s-2))s++,l++;else if(s==i&&r.next==Lu){o>l?r.acceptToken(e,-l):r.acceptToken(n,-(l-2));break}else if((r.next==10||r.next==13)&&o){r.acceptToken(e,1);break}else s=l=0;r.advance()}})}const F_=Up("script",g_,y_),H_=Up("style",S_,x_),K_=Up("textarea",v_,Q_),J_=qi({"Text RawText IncompleteTag IncompleteCloseTag":y.content,"StartTag StartCloseTag SelfClosingEndTag EndTag":y.angleBracket,TagName:y.tagName,"MismatchedCloseTag/TagName":[y.tagName,y.invalid],AttributeName:y.attributeName,"AttributeValue UnquotedAttributeValue":y.attributeValue,Is:y.definitionOperator,"EntityReference CharacterReference":y.character,Comment:y.blockComment,ProcessingInst:y.processingInstruction,DoctypeDecl:y.documentMeta}),ez=zi.deserialize({version:14,states:",xOVO!rOOO!ZQ#tO'#CrO!`Q#tO'#C{O!eQ#tO'#DOO!jQ#tO'#DRO!oQ#tO'#DTO!tOaO'#CqO#PObO'#CqO#[OdO'#CqO$kO!rO'#CqOOO`'#Cq'#CqO$rO$fO'#DUO$zQ#tO'#DWO%PQ#tO'#DXOOO`'#Dl'#DlOOO`'#DZ'#DZQVO!rOOO%UQ&rO,59^O%aQ&rO,59gO%lQ&rO,59jO%wQ&rO,59mO&SQ&rO,59oOOOa'#D_'#D_O&_OaO'#CyO&jOaO,59]OOOb'#D`'#D`O&rObO'#C|O&}ObO,59]OOOd'#Da'#DaO'VOdO'#DPO'bOdO,59]OOO`'#Db'#DbO'jO!rO,59]O'qQ#tO'#DSOOO`,59],59]OOOp'#Dc'#DcO'vO$fO,59pOOO`,59p,59pO(OQ#|O,59rO(TQ#|O,59sOOO`-E7X-E7XO(YQ&rO'#CtOOQW'#D['#D[O(hQ&rO1G.xOOOa1G.x1G.xOOO`1G/Z1G/ZO(sQ&rO1G/ROOOb1G/R1G/RO)OQ&rO1G/UOOOd1G/U1G/UO)ZQ&rO1G/XOOO`1G/X1G/XO)fQ&rO1G/ZOOOa-E7]-E7]O)qQ#tO'#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c!{O!d!xO~OT~cbd!ey|!e~",goto:"%q!aPPPPPPPPPPPPPPPPPPPPP!b!hP!nPP!zP!}#Q#T#Z#^#a#g#j#m#s#y!bP!b!bP$P$V$m$s$y%P%V%]%cPPPPPPPP%iX^OX`pXUOX`pezabcde{!O!Q!S!UR!q!dRhUR!XhXVOX`pRkVR!XkXWOX`pRnWR!XnXXOX`pQrXR!XpXYOX`pQ`ORx`Q{aQ!ObQ!QcQ!SdQ!UeZ!e{!O!Q!S!UQ!v!oR!z!vQ!y!pR!|!yQgUR!VgQjVR!YjQmWR![mQpXR!^pQtZR!`tS_O`ToXp",nodeNames:"⚠ StartCloseTag StartCloseTag StartCloseTag EndTag SelfClosingEndTag StartTag StartTag StartTag StartTag StartTag StartCloseTag StartCloseTag StartCloseTag IncompleteTag IncompleteCloseTag Document Text EntityReference CharacterReference InvalidEntity Element OpenTag TagName Attribute AttributeName Is AttributeValue UnquotedAttributeValue ScriptText CloseTag OpenTag StyleText CloseTag OpenTag TextareaText CloseTag OpenTag CloseTag SelfClosingTag Comment ProcessingInst MismatchedCloseTag CloseTag DoctypeDecl",maxTerm:68,context:Y_,nodeProps:[["closedBy",-10,1,2,3,7,8,9,10,11,12,13,"EndTag",6,"EndTag SelfClosingEndTag",-4,22,31,34,37,"CloseTag"],["openedBy",4,"StartTag StartCloseTag",5,"StartTag",-4,30,33,36,38,"OpenTag"],["group",-10,14,15,18,19,20,21,40,41,42,43,"Entity",17,"Entity TextContent",-3,29,32,35,"TextContent Entity"],["isolate",-11,22,30,31,33,34,36,37,38,39,42,43,"ltr",-3,27,28,40,""]],propSources:[J_],skippedNodes:[0],repeatNodeCount:9,tokenData:"!<p!aR!YOX$qXY,QYZ,QZ[$q[]&X]^,Q^p$qpq,Qqr-_rs3_sv-_vw3}wxHYx}-_}!OH{!O!P-_!P!Q$q!Q![-_![!]Mz!]!^-_!^!_!$S!_!`!;x!`!a&X!a!c-_!c!}Mz!}#R-_#R#SMz#S#T1k#T#oMz#o#s-_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x!8]x!`!4t!`!a!;S!a;'S!4t;'S;=`!;r<%lO!4t!R!;]V!b`!dpyPOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!;uP;=`<%l!4t!V!<TXjSaP!b`!dpOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&X",tokenizers:[F_,H_,K_,G_,I_,B_,0,1,2,3,4,5],topRules:{Document:[0,16]},dialects:{noMatch:0,selfClosing:515},tokenPrec:517});function Rw(t,e){let n=Object.create(null);for(let i of t.getChildren($w)){let r=i.getChild(R_),s=i.getChild(Id)||i.getChild(Tw);r&&(n[e.read(r.from,r.to)]=s?s.type.id==Id?e.read(s.from+1,s.to-1):e.read(s.from,s.to):"")}return n}function Gy(t,e){let n=t.getChild(C_);return n?e.read(n.from,n.to):" "}function Wh(t,e,n){let i;for(let r of n)if(!r.attrs||r.attrs(i||(i=Rw(t.node.parent.firstChild,e))))return{parser:r.parser,bracketed:!0};return null}function Xw(t=[],e=[]){let n=[],i=[],r=[],s=[];for(let o of t)(o.tag=="script"?n:o.tag=="style"?i:o.tag=="textarea"?r:s).push(o);let l=e.length?Object.create(null):null;for(let o of e)(l[o.name]||(l[o.name]=[])).push(o);return eQ((o,a)=>{let u=o.type.id;if(u==X_)return Wh(o,a,n);if(u==j_)return Wh(o,a,i);if(u==Z_)return Wh(o,a,r);if(u==Pw&&s.length){let c=o.node,h=c.firstChild,f=h&&Gy(h,a),d;if(f){for(let O of s)if(O.tag==f&&(!O.attrs||O.attrs(d||(d=Rw(h,a))))){let p=c.lastChild,v=p.type.id==A_?p.from:c.to;if(v>h.to)return{parser:O.parser,overlay:[{from:h.to,to:v}]}}}}if(l&&u==$w){let c=o.node,h;if(h=c.firstChild){let f=l[a.read(h.from,h.to)];if(f)for(let d of f){if(d.tagName&&d.tagName!=Gy(c.parent,a))continue;let O=c.lastChild;if(O.type.id==Id){let p=O.from+1,v=O.lastChild,g=O.to-(v&&v.isError?0:1);if(g>p)return{parser:d.parser,overlay:[{from:p,to:g}],bracketed:!0}}else if(O.type.id==Tw)return{parser:d.parser,overlay:[{from:O.from,to:O.to}]}}}}return null})}const tz=135,Fy=1,nz=136,iz=137,jw=2,rz=138,sz=3,lz=4,Zw=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],oz=58,az=40,Ew=95,uz=91,Ma=45,cz=46,hz=35,fz=37,dz=38,Oz=92,pz=10,mz=42;function ao(t){return t>=65&&t<=90||t>=97&&t<=122||t>=161}function Gp(t){return t>=48&&t<=57}function Hy(t){return Gp(t)||t>=97&&t<=102||t>=65&&t<=70}const Aw=(t,e,n)=>(i,r)=>{for(let s=!1,l=0,o=0;;o++){let{next:a}=i;if(ao(a)||a==Ma||a==Ew||s&&Gp(a))!s&&(a!=Ma||o>0)&&(s=!0),l===o&&a==Ma&&l++,i.advance();else if(a==Oz&&i.peek(1)!=pz){if(i.advance(),Hy(i.next)){do i.advance();while(Hy(i.next));i.next==32&&i.advance()}else i.next>-1&&i.advance();s=!0}else{s&&i.acceptToken(l==2&&r.canShift(jw)?e:a==az?n:t);break}}},gz=new Ge(Aw(nz,jw,iz),{contextual:!0}),yz=new Ge(Aw(rz,sz,lz),{contextual:!0}),Sz=new Ge(t=>{if(Zw.includes(t.peek(-1))){let{next:e}=t;(ao(e)||e==Ew||e==hz||e==cz||e==mz||e==uz||e==oz&&ao(t.peek(1))||e==Ma||e==dz)&&t.acceptToken(tz)}}),xz=new Ge(t=>{if(!Zw.includes(t.peek(-1))){let{next:e}=t;if(e==fz&&(t.advance(),t.acceptToken(Fy)),ao(e)){do t.advance();while(ao(t.next)||Gp(t.next));t.acceptToken(Fy)}}}),vz=qi({"AtKeyword import charset namespace keyframes media supports font-feature-values":y.definitionKeyword,"from to selector scope MatchFlag":y.keyword,NamespaceName:y.namespace,KeyframeName:y.labelName,KeyframeRangeName:y.operatorKeyword,TagName:y.tagName,ClassName:y.className,PseudoClassName:y.constant(y.className),IdName:y.labelName,"FeatureName PropertyName":y.propertyName,AttributeName:y.attributeName,NumberLiteral:y.number,KeywordQuery:y.keyword,UnaryQueryOp:y.operatorKeyword,"CallTag ValueName FontName":y.atom,VariableName:y.variableName,Callee:y.operatorKeyword,Unit:y.unit,"UniversalSelector NestingSelector":y.definitionOperator,"MatchOp CompareOp":y.compareOperator,"ChildOp SiblingOp, LogicOp":y.logicOperator,BinOp:y.arithmeticOperator,Important:y.modifier,Comment:y.blockComment,ColorLiteral:y.color,"ParenthesizedContent StringLiteral":y.string,":":y.punctuation,"PseudoOp #":y.derefOperator,"; , |":y.separator,"( )":y.paren,"[ ]":y.squareBracket,"{ }":y.brace}),Qz={__proto__:null,lang:44,"nth-child":44,"nth-last-child":44,"nth-of-type":44,"nth-last-of-type":44,dir:44,"host-context":44,if:90,url:132,"url-prefix":132,domain:132,regexp:132},kz={__proto__:null,or:104,and:104,not:112,only:112,layer:186},wz={__proto__:null,selector:118,layer:182},bz={__proto__:null,"@import":178,"@media":190,"@charset":194,"@namespace":198,"@keyframes":204,"@supports":216,"@scope":220,"@font-feature-values":226},Pz={__proto__:null,to:223},$z=zi.deserialize({version:14,states:"IpQYQdOOO#}QdOOP$UO`OOO%OQaO'#CfOOQP'#Ce'#CeO%VQdO'#CgO%[Q`O'#CgO%aQaO'#FdO&XQdO'#CkO&xQaO'#CcO'SQdO'#CnO'_QdO'#DtO'dQdO'#DvO'oQdO'#D}O'oQdO'#EQOOQP'#Fd'#FdO)OQhO'#EsOOQS'#Fc'#FcOOQS'#Ev'#EvQYQdOOO)VQdO'#EWO*cQhO'#E^O)VQdO'#E`O*jQdO'#EbO*uQdO'#EeO)zQhO'#EkO*}QdO'#EmO+YQdO'#EpO+_QaO'#CfO+fQ`O'#ETO+kQ`O'#FnO+vQdO'#FnQOQ`OOP,QO&jO'#CaPOOO)CAR)CAROOQP'#Ci'#CiOOQP,59R,59RO%VQdO,59ROOQP'#Cm'#CmOOQP,59V,59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'f&wV%|$p&P&wR#XkQ#_qR%Q#_QcOSoP!RU!kco$}R$}#ZQ%Z#pY&`%Z&f'U'^'sQ&f%_Q'U&aQ'^&kR's'kQ$Y!mQ$[!nQ$^!oV%j$Y$[$^Q%t$gR&t%tQ&j%gS']&j'lR'l'^Q&b%ZR'V&bQ&^%WR'T&^Q!QXR#l!QQ&W$yR'O&WQ#[nS%O#[%PR%P#]Q'`&nR'n'`Q$k!xR%x$kQ&P$pR&z&PQ&x&OR'g&xQ#WkR$w#WQ$O!dR%d$O_bOPco!R#Z$}^XOPco!R#Z$}Q!`]Q!a^Q#h|Q#i}Q#j!OQ#k!PQ$s#RQ%W#oR'S&]R%[#pQ!qdQ!zf[$V!m!n!o$Y$[$^Q$y#Yd%Y#p%Z%_&a&f&k'U'^'k'sQ%^#uQ%n$aS&U$y&WQ&[%UQ&}&VR'b&p]$X!m!n!o$Y$[$^Q!d`U!xe!q$eQ#QiQ#x!cS#{!d$OQ$Q!eQ%b#|Q%c#}Q%g$RS%r$g%tQ%w$jR'Z&iQ#z!cQ&h%`R'j'YR%i$RR%X#oQpPR#n!RQ!yeQ$d!qR%q$e",nodeNames:"⚠ Unit VariableName VariableName QueryCallee Comment StyleSheet RuleSet UniversalSelector TagSelector TagName NamespacedTagSelector NamespaceName TagName NestingSelector ClassSelector . ClassName PseudoClassSelector : :: PseudoClassName PseudoClassName ) ( ArgList ValueName ParenthesizedValue AtKeyword # ; ] [ BracketedValue } { BracedValue ColorLiteral NumberLiteral StringLiteral BinaryExpression BinOp CallExpression Callee IfExpression if ArgList IfBranch KeywordQuery FeatureQuery FeatureName BinaryQuery LogicOp ComparisonQuery CompareOp UnaryQuery UnaryQueryOp ParenthesizedQuery SelectorQuery selector ParenthesizedSelector CallQuery ArgList , PseudoQuery CallLiteral CallTag ParenthesizedContent PseudoClassName ArgList IdSelector IdName AttributeSelector AttributeName NamespacedAttribute NamespaceName AttributeName MatchOp MatchFlag ChildSelector ChildOp DescendantSelector SiblingSelector SiblingOp Block Declaration PropertyName Important ImportStatement import Layer layer LayerName layer MediaStatement media CharsetStatement charset NamespaceStatement namespace NamespaceName KeyframesStatement keyframes KeyframeName KeyframeList KeyframeSelector KeyframeRangeName SupportsStatement supports ScopeStatement scope to FontFeatureStatement font-feature-values FontName AtRule Styles",maxTerm:159,nodeProps:[["isolate",-2,5,39,""],["openedBy",23,"(",31,"[",34,"{"],["closedBy",24,")",32,"]",35,"}"]],propSources:[vz],skippedNodes:[0,5,117],repeatNodeCount:17,tokenData:"K`~R!bOX%ZX^&R^p%Zpq&Rqr)ers)vst+jtu2Xuv%Zvw3Rwx3dxy5Ryz5dz{5i{|6S|}:u}!O;W!O!P;u!P!Q<^!Q![=V![!]>Q!]!^>|!^!_?_!_!`@Z!`!a@n!a!b%Z!b!cAo!c!k%Z!k!lC|!l!u%Z!u!vC|!v!}%Z!}#OD_#O#P%Z#P#QDp#Q#R2X#R#]%Z#]#^ER#^#g%Z#g#hC|#h#o%Z#o#pIf#p#qIw#q#rJ`#r#sJq#s#y%Z#y#z&R#z$f%Z$f$g&R$g#BY%Z#BY#BZ&R#BZ$IS%Z$IS$I_&R$I_$I|%Z$I|$JO&R$JO$JT%Z$JT$JU&R$JU$KV%Z$KV$KW&R$KW&FU%Z&FU&FV&R&FV;'S%Z;'S;=`KY<%lO%Z`%^SOy%jz;'S%j;'S;=`%{<%lO%j`%oS!e`Oy%jz;'S%j;'S;=`%{<%lO%j`&OP;=`<%l%j~&Wh$Q~OX%jX^'r^p%jpq'rqy%jz#y%j#y#z'r#z$f%j$f$g'r$g#BY%j#BY#BZ'r#BZ$IS%j$IS$I_'r$I_$I|%j$I|$JO'r$JO$JT%j$JT$JU'r$JU$KV%j$KV$KW'r$KW&FU%j&FU&FV'r&FV;'S%j;'S;=`%{<%lO%j~'yh$Q~!e`OX%jX^'r^p%jpq'rqy%jz#y%j#y#z'r#z$f%j$f$g'r$g#BY%j#BY#BZ'r#BZ$IS%j$IS$I_'r$I_$I|%j$I|$JO'r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topRules:{StyleSheet:[0,6],Styles:[1,116]},dynamicPrecedences:{84:1},specialized:[{term:137,get:t=>Qz[t]||-1},{term:138,get:t=>kz[t]||-1},{term:4,get:t=>wz[t]||-1},{term:28,get:t=>bz[t]||-1},{term:136,get:t=>Pz[t]||-1}],tokenPrec:2256});let qh=null;function Vh(){if(!qh&&typeof document=="object"&&document.body){let{style:t}=document.body,e=[],n=new Set;for(let i in t)i!="cssText"&&i!="cssFloat"&&typeof t[i]=="string"&&(/[A-Z]/.test(i)&&(i=i.replace(/[A-Z]/g,r=>"-"+r.toLowerCase())),n.has(i)||(e.push(i),n.add(i)));qh=e.sort().map(i=>({type:"property",label:i,apply:i+": "}))}return qh||[]}const Ky=["active","after","any-link","autofill","backdrop","before","checked","cue","default","defined","disabled","empty","enabled","file-selector-button","first","first-child","first-letter","first-line","first-of-type","focus","focus-visible","focus-within","fullscreen","has","host","host-context","hover","in-range","indeterminate","invalid","is","lang","last-child","last-of-type","left","link","marker","modal","not","nth-child","nth-last-child","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","part","placeholder","placeholder-shown","read-only","read-write","required","right","root","scope","selection","slotted","target","target-text","valid","visited","where"].map(t=>({type:"class",label:t})),Jy=["above","absolute","activeborder","additive","activecaption","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","antialiased","appworkspace","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic-abegede-gez","ethiopic-halehame-aa-er","ethiopic-halehame-gez","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","graytext","grid","groove","hand","hard-light","help","hidden","hide","higher","highlight","highlighttext","horizontal","hsl","hsla","hue","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","justify","keep-all","landscape","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-hexadecimal","lower-latin","lower-norwegian","lowercase","ltr","luminosity","manipulation","match","matrix","matrix3d","medium","menu","menutext","message-box","middle","min-intrinsic","mix","monospace","move","multiple","multiple_mask_images","multiply","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","opacity","open-quote","optimizeLegibility","optimizeSpeed","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","self-start","self-end","semi-condensed","semi-expanded","separate","serif","show","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","text","text-bottom","text-top","textarea","textfield","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","to","top","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-latin","uppercase","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"].map(t=>({type:"keyword",label:t})).concat(["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","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","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","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"].map(t=>({type:"constant",label:t}))),Tz=["a","abbr","address","article","aside","b","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","dd","del","details","dfn","dialog","div","dl","dt","em","figcaption","figure","footer","form","header","hgroup","h1","h2","h3","h4","h5","h6","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","main","meter","nav","ol","output","p","pre","ruby","section","select","small","source","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","tr","u","ul"].map(t=>({type:"type",label:t})),Cz=["@charset","@color-profile","@container","@counter-style","@font-face","@font-feature-values","@font-palette-values","@import","@keyframes","@layer","@media","@namespace","@page","@position-try","@property","@scope","@starting-style","@supports","@view-transition"].map(t=>({type:"keyword",label:t})),En=/^(\w[\w-]*|-\w[\w-]*|)$/,Rz=/^-(-[\w-]*)?$/;function Xz(t,e){var n;if((t.name=="("||t.type.isError)&&(t=t.parent||t),t.name!="ArgList")return!1;let i=(n=t.parent)===null||n===void 0?void 0:n.firstChild;return(i==null?void 0:i.name)!="Callee"?!1:e.sliceString(i.from,i.to)=="var"}const e1=new hp,jz=["Declaration"];function Zz(t){for(let e=t;;){if(e.type.isTop)return e;if(!(e=e.parent))return t}}function _w(t,e,n){if(e.to-e.from>4096){let i=e1.get(e);if(i)return i;let r=[],s=new Set,l=e.cursor(le.IncludeAnonymous);if(l.firstChild())do for(let o of _w(t,l.node,n))s.has(o.label)||(s.add(o.label),r.push(o));while(l.nextSibling());return e1.set(e,r),r}else{let i=[],r=new Set;return e.cursor().iterate(s=>{var l;if(n(s)&&s.matchContext(jz)&&((l=s.node.nextSibling)===null||l===void 0?void 0:l.name)==":"){let o=t.sliceString(s.from,s.to);r.has(o)||(r.add(o),i.push({label:o,type:"variable"}))}}),i}}const Ez=t=>e=>{let{state:n,pos:i}=e,r=ue(n).resolveInner(i,-1),s=r.type.isError&&r.from==r.to-1&&n.doc.sliceString(r.from,r.to)=="-";if(r.name=="PropertyName"||(s||r.name=="TagName")&&/^(Block|Styles)$/.test(r.resolve(r.to).name))return{from:r.from,options:Vh(),validFor:En};if(r.name=="ValueName")return{from:r.from,options:Jy,validFor:En};if(r.name=="PseudoClassName")return{from:r.from,options:Ky,validFor:En};if(t(r)||(e.explicit||s)&&Xz(r,n.doc))return{from:t(r)||s?r.from:i,options:_w(n.doc,Zz(r),t),validFor:Rz};if(r.name=="TagName"){for(let{parent:a}=r;a;a=a.parent)if(a.name=="Block")return{from:r.from,options:Vh(),validFor:En};return{from:r.from,options:Tz,validFor:En}}if(r.name=="AtKeyword")return{from:r.from,options:Cz,validFor:En};if(!e.explicit)return null;let l=r.resolve(i),o=l.childBefore(i);return o&&o.name==":"&&l.name=="PseudoClassSelector"?{from:i,options:Ky,validFor:En}:o&&o.name==":"&&l.name=="Declaration"||l.name=="ArgList"?{from:i,options:Jy,validFor:En}:l.name=="Block"||l.name=="Styles"?{from:i,options:Vh(),validFor:En}:null},Az=Ez(t=>t.name=="VariableName"),Wu=Ei.define({name:"css",parser:$z.configure({props:[Vi.add({Declaration:ts()}),Ni.add({"Block KeyframeList":pc})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"}},indentOnInput:/^\s*\}$/,wordChars:"-"}});function _z(){return new Sr(Wu,Wu.data.of({autocomplete:Az}))}const Fs=["_blank","_self","_top","_parent"],Nh=["ascii","utf-8","utf-16","latin1","latin1"],Dh=["get","post","put","delete"],Yh=["application/x-www-form-urlencoded","multipart/form-data","text/plain"],wt=["true","false"],q={},zz={a:{attrs:{href:null,ping:null,type:null,media:null,target:Fs,hreflang:null}},abbr:q,address:q,area:{attrs:{alt:null,coords:null,href:null,target:null,ping:null,media:null,hreflang:null,type:null,shape:["default","rect","circle","poly"]}},article:q,aside:q,audio:{attrs:{src:null,mediagroup:null,crossorigin:["anonymous","use-credentials"],preload:["none","metadata","auto"],autoplay:["autoplay"],loop:["loop"],controls:["controls"]}},b:q,base:{attrs:{href:null,target:Fs}},bdi:q,bdo:q,blockquote:{attrs:{cite:null}},body:q,br:q,button:{attrs:{form:null,formaction:null,name:null,value:null,autofocus:["autofocus"],disabled:["autofocus"],formenctype:Yh,formmethod:Dh,formnovalidate:["novalidate"],formtarget:Fs,type:["submit","reset","button"]}},canvas:{attrs:{width:null,height:null}},caption:q,center:q,cite:q,code:q,col:{attrs:{span:null}},colgroup:{attrs:{span:null}},command:{attrs:{type:["command","checkbox","radio"],label:null,icon:null,radiogroup:null,command:null,title:null,disabled:["disabled"],checked:["checked"]}},data:{attrs:{value:null}},datagrid:{attrs:{disabled:["disabled"],multiple:["multiple"]}},datalist:{attrs:{data:null}},dd:q,del:{attrs:{cite:null,datetime:null}},details:{attrs:{open:["open"]}},dfn:q,div:q,dl:q,dt:q,em:q,embed:{attrs:{src:null,type:null,width:null,height:null}},eventsource:{attrs:{src:null}},fieldset:{attrs:{disabled:["disabled"],form:null,name:null}},figcaption:q,figure:q,footer:q,form:{attrs:{action:null,name:null,"accept-charset":Nh,autocomplete:["on","off"],enctype:Yh,method:Dh,novalidate:["novalidate"],target:Fs}},h1:q,h2:q,h3:q,h4:q,h5:q,h6:q,head:{children:["title","base","link","style","meta","script","noscript","command"]},header:q,hgroup:q,hr:q,html:{attrs:{manifest:null}},i:q,iframe:{attrs:{src:null,srcdoc:null,name:null,width:null,height:null,sandbox:["allow-top-navigation","allow-same-origin","allow-forms","allow-scripts"],seamless:["seamless"]}},img:{attrs:{alt:null,src:null,ismap:null,usemap:null,width:null,height:null,crossorigin:["anonymous","use-credentials"]}},input:{attrs:{alt:null,dirname:null,form:null,formaction:null,height:null,list:null,max:null,maxlength:null,min:null,name:null,pattern:null,placeholder:null,size:null,src:null,step:null,value:null,width:null,accept:["audio/*","video/*","image/*"],autocomplete:["on","off"],autofocus:["autofocus"],checked:["checked"],disabled:["disabled"],formenctype:Yh,formmethod:Dh,formnovalidate:["novalidate"],formtarget:Fs,multiple:["multiple"],readonly:["readonly"],required:["required"],type:["hidden","text","search","tel","url","email","password","datetime","date","month","week","time","datetime-local","number","range","color","checkbox","radio","file","submit","image","reset","button"]}},ins:{attrs:{cite:null,datetime:null}},kbd:q,keygen:{attrs:{challenge:null,form:null,name:null,autofocus:["autofocus"],disabled:["disabled"],keytype:["RSA"]}},label:{attrs:{for:null,form:null}},legend:q,li:{attrs:{value:null}},link:{attrs:{href:null,type:null,hreflang:null,media:null,sizes:["all","16x16","16x16 32x32","16x16 32x32 64x64"]}},map:{attrs:{name:null}},mark:q,menu:{attrs:{label:null,type:["list","context","toolbar"]}},meta:{attrs:{content:null,charset:Nh,name:["viewport","application-name","author","description","generator","keywords"],"http-equiv":["content-language","content-type","default-style","refresh"]}},meter:{attrs:{value:null,min:null,low:null,high:null,max:null,optimum:null}},nav:q,noscript:q,object:{attrs:{data:null,type:null,name:null,usemap:null,form:null,width:null,height:null,typemustmatch:["typemustmatch"]}},ol:{attrs:{reversed:["reversed"],start:null,type:["1","a","A","i","I"]},children:["li","script","template","ul","ol"]},optgroup:{attrs:{disabled:["disabled"],label:null}},option:{attrs:{disabled:["disabled"],label:null,selected:["selected"],value:null}},output:{attrs:{for:null,form:null,name:null}},p:q,param:{attrs:{name:null,value:null}},pre:q,progress:{attrs:{value:null,max:null}},q:{attrs:{cite:null}},rp:q,rt:q,ruby:q,samp:q,script:{attrs:{type:["text/javascript"],src:null,async:["async"],defer:["defer"],charset:Nh}},section:q,select:{attrs:{form:null,name:null,size:null,autofocus:["autofocus"],disabled:["disabled"],multiple:["multiple"]}},slot:{attrs:{name:null}},small:q,source:{attrs:{src:null,type:null,media:null}},span:q,strong:q,style:{attrs:{type:["text/css"],media:null,scoped:null}},sub:q,summary:q,sup:q,table:q,tbody:q,td:{attrs:{colspan:null,rowspan:null,headers:null}},template:q,textarea:{attrs:{dirname:null,form:null,maxlength:null,name:null,placeholder:null,rows:null,cols:null,autofocus:["autofocus"],disabled:["disabled"],readonly:["readonly"],required:["required"],wrap:["soft","hard"]}},tfoot:q,th:{attrs:{colspan:null,rowspan:null,headers:null,scope:["row","col","rowgroup","colgroup"]}},thead:q,time:{attrs:{datetime:null}},title:q,tr:q,track:{attrs:{src:null,label:null,default:null,kind:["subtitles","captions","descriptions","chapters","metadata"],srclang:null}},ul:{children:["li","script","template","ul","ol"]},var:q,video:{attrs:{src:null,poster:null,width:null,height:null,crossorigin:["anonymous","use-credentials"],preload:["auto","metadata","none"],autoplay:["autoplay"],mediagroup:["movie"],muted:["muted"],controls:["controls"]}},wbr:q},zw={accesskey:null,class:null,contenteditable:wt,contextmenu:null,dir:["ltr","rtl","auto"],draggable:["true","false","auto"],dropzone:["copy","move","link","string:","file:"],hidden:["hidden"],id:null,inert:["inert"],itemid:null,itemprop:null,itemref:null,itemscope:["itemscope"],itemtype:null,lang:["ar","bn","de","en-GB","en-US","es","fr","hi","id","ja","pa","pt","ru","tr","zh"],spellcheck:wt,autocorrect:wt,autocapitalize:wt,style:null,tabindex:null,title:null,translate:["yes","no"],rel:["stylesheet","alternate","author","bookmark","help","license","next","nofollow","noreferrer","prefetch","prev","search","tag"],role:"alert application article banner button cell checkbox complementary contentinfo dialog document feed figure form grid gridcell heading img list listbox listitem main navigation region row rowgroup search switch tab table tabpanel textbox timer".split(" "),"aria-activedescendant":null,"aria-atomic":wt,"aria-autocomplete":["inline","list","both","none"],"aria-busy":wt,"aria-checked":["true","false","mixed","undefined"],"aria-controls":null,"aria-describedby":null,"aria-disabled":wt,"aria-dropeffect":null,"aria-expanded":["true","false","undefined"],"aria-flowto":null,"aria-grabbed":["true","false","undefined"],"aria-haspopup":wt,"aria-hidden":wt,"aria-invalid":["true","false","grammar","spelling"],"aria-label":null,"aria-labelledby":null,"aria-level":null,"aria-live":["off","polite","assertive"],"aria-multiline":wt,"aria-multiselectable":wt,"aria-owns":null,"aria-posinset":null,"aria-pressed":["true","false","mixed","undefined"],"aria-readonly":wt,"aria-relevant":null,"aria-required":wt,"aria-selected":["true","false","undefined"],"aria-setsize":null,"aria-sort":["ascending","descending","none","other"],"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null},Mw="beforeunload copy cut dragstart dragover dragleave dragenter dragend drag paste focus blur change click load mousedown mouseenter mouseleave mouseup keydown keyup resize scroll unload".split(" ").map(t=>"on"+t);for(let t of Mw)zw[t]=null;class uo{constructor(e,n){this.tags={...zz,...e},this.globalAttrs={...zw,...n},this.allTags=Object.keys(this.tags),this.globalAttrNames=Object.keys(this.globalAttrs)}}uo.default=new uo;function vs(t,e,n=t.length){if(!e)return"";let i=e.firstChild,r=i&&i.getChild("TagName");return r?t.sliceString(r.from,Math.min(r.to,n)):""}function Qs(t,e=!1){for(;t;t=t.parent)if(t.name=="Element")if(e)e=!1;else return t;return null}function Lw(t,e,n){let i=n.tags[vs(t,Qs(e))];return(i==null?void 0:i.children)||n.allTags}function Fp(t,e){let n=[];for(let i=Qs(e);i&&!i.type.isTop;i=Qs(i.parent)){let r=vs(t,i);if(r&&i.lastChild.name=="CloseTag")break;r&&n.indexOf(r)<0&&(e.name=="EndTag"||e.from>=i.firstChild.to)&&n.push(r)}return n}const Ww=/^[:\-\.\w\u00b7-\uffff]*$/;function t1(t,e,n,i,r){let s=/\s*>/.test(t.sliceDoc(r,r+5))?"":">",l=Qs(n,n.name=="StartTag"||n.name=="TagName");return{from:i,to:r,options:Lw(t.doc,l,e).map(o=>({label:o,type:"type"})).concat(Fp(t.doc,n).map((o,a)=>({label:"/"+o,apply:"/"+o+s,type:"type",boost:99-a}))),validFor:/^\/?[:\-\.\w\u00b7-\uffff]*$/}}function n1(t,e,n,i){let r=/\s*>/.test(t.sliceDoc(i,i+5))?"":">";return{from:n,to:i,options:Fp(t.doc,e).map((s,l)=>({label:s,apply:s+r,type:"type",boost:99-l})),validFor:Ww}}function Mz(t,e,n,i){let r=[],s=0;for(let l of Lw(t.doc,n,e))r.push({label:"<"+l,type:"type"});for(let l of Fp(t.doc,n))r.push({label:"</"+l+">",type:"type",boost:99-s++});return{from:i,to:i,options:r,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}function Lz(t,e,n,i,r){let s=Qs(n),l=s?e.tags[vs(t.doc,s)]:null,o=l&&l.attrs?Object.keys(l.attrs):[],a=l&&l.globalAttrs===!1?o:o.length?o.concat(e.globalAttrNames):e.globalAttrNames;return{from:i,to:r,options:a.map(u=>({label:u,type:"property"})),validFor:Ww}}function Wz(t,e,n,i,r){var s;let l=(s=n.parent)===null||s===void 0?void 0:s.getChild("AttributeName"),o=[],a;if(l){let u=t.sliceDoc(l.from,l.to),c=e.globalAttrs[u];if(!c){let h=Qs(n),f=h?e.tags[vs(t.doc,h)]:null;c=(f==null?void 0:f.attrs)&&f.attrs[u]}if(c){let h=t.sliceDoc(i,r).toLowerCase(),f='"',d='"';/^['"]/.test(h)?(a=h[0]=='"'?/^[^"]*$/:/^[^']*$/,f="",d=t.sliceDoc(r,r+1)==h[0]?"":h[0],h=h.slice(1),i++):a=/^[^\s<>='"]*$/;for(let O of c)o.push({label:O,apply:f+O+d,type:"constant"})}}return{from:i,to:r,options:o,validFor:a}}function qw(t,e){let{state:n,pos:i}=e,r=ue(n).resolveInner(i,-1),s=r.resolve(i);for(let l=i,o;s==r&&(o=r.childBefore(l));){let a=o.lastChild;if(!a||!a.type.isError||a.from<a.to)break;s=r=o,l=a.from}return r.name=="TagName"?r.parent&&/CloseTag$/.test(r.parent.name)?n1(n,r,r.from,i):t1(n,t,r,r.from,i):r.name=="StartTag"||r.name=="IncompleteTag"?t1(n,t,r,i,i):r.name=="StartCloseTag"||r.name=="IncompleteCloseTag"?n1(n,r,i,i):r.name=="OpenTag"||r.name=="SelfClosingTag"||r.name=="AttributeName"?Lz(n,t,r,r.name=="AttributeName"?r.from:i,i):r.name=="Is"||r.name=="AttributeValue"||r.name=="UnquotedAttributeValue"?Wz(n,t,r,r.name=="Is"?i:r.from,i):e.explicit&&(s.name=="Element"||s.name=="Text"||s.name=="Document")?Mz(n,t,r,i):null}function qz(t){return qw(uo.default,t)}function Vz(t){let{extraTags:e,extraGlobalAttributes:n}=t,i=n||e?new uo(e,n):uo.default;return r=>qw(i,r)}const Nz=Cn.parser.configure({top:"SingleExpression"}),Vw=[{tag:"script",attrs:t=>t.type=="text/typescript"||t.lang=="ts",parser:Yk.parser},{tag:"script",attrs:t=>t.type=="text/babel"||t.type=="text/jsx",parser:Ik.parser},{tag:"script",attrs:t=>t.type=="text/typescript-jsx",parser:Bk.parser},{tag:"script",attrs(t){return/^(importmap|speculationrules|application\/(.+\+)?json)$/i.test(t.type)},parser:Nz},{tag:"script",attrs(t){return!t.type||/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i.test(t.type)},parser:Cn.parser},{tag:"style",attrs(t){return(!t.lang||t.lang=="css")&&(!t.type||/^(text\/)?(x-)?(stylesheet|css)$/i.test(t.type))},parser:Wu.parser}],Nw=[{name:"style",parser:Wu.parser.configure({top:"Styles"})}].concat(Mw.map(t=>({name:t,parser:Cn.parser}))),Dw=Ei.define({name:"html",parser:ez.configure({props:[Vi.add({Element(t){let e=/^(\s*)(<\/)?/.exec(t.textAfter);return t.node.to<=t.pos+e[0].length?t.continue():t.lineIndent(t.node.from)+(e[2]?0:t.unit)},"OpenTag CloseTag SelfClosingTag"(t){return t.column(t.node.from)+t.unit},Document(t){if(t.pos+/\s*/.exec(t.textAfter)[0].length<t.node.to)return t.continue();let e=null,n;for(let i=t.node;;){let r=i.lastChild;if(!r||r.name!="Element"||r.to!=i.to)break;e=i=r}return e&&!((n=e.lastChild)&&(n.name=="CloseTag"||n.name=="SelfClosingTag"))?t.lineIndent(e.from)+t.unit:null}}),Ni.add({Element(t){let e=t.firstChild,n=t.lastChild;return!e||e.name!="OpenTag"?null:{from:e.to,to:n.name=="CloseTag"?n.from:t.to}}}),yQ.add({"OpenTag CloseTag":t=>t.getChild("TagName")})]}),languageData:{commentTokens:{block:{open:"<!--",close:"-->"}},indentOnInput:/^\s*<\/\w+\W$/,wordChars:"-_"}}),La=Dw.configure({wrap:Xw(Vw,Nw)});function Dz(t={}){let e="",n;t.matchClosingTags===!1&&(e="noMatch"),t.selfClosingTags===!0&&(e=(e?e+" ":"")+"selfClosing"),(t.nestedLanguages&&t.nestedLanguages.length||t.nestedAttributes&&t.nestedAttributes.length)&&(n=Xw((t.nestedLanguages||[]).concat(Vw),(t.nestedAttributes||[]).concat(Nw)));let i=n?Dw.configure({wrap:n,dialect:e}):e?La.configure({dialect:e}):La;return new Sr(i,[La.data.of({autocomplete:Vz(t)}),t.autoCloseTags!==!1?Yz:[],Wd().support,_z().support])}const i1=new Set("area base br col command embed frame hr img input keygen link meta param source track wbr menuitem".split(" ")),Yz=X.inputHandler.of((t,e,n,i,r)=>{if(t.composing||t.state.readOnly||e!=n||i!=">"&&i!="/"||!La.isActiveAt(t.state,e,-1))return!1;let s=r(),{state:l}=s,o=l.changeByRange(a=>{var u,c,h;let f=l.doc.sliceString(a.from-1,a.to)==i,{head:d}=a,O=ue(l).resolveInner(d,-1),p;if(f&&i==">"&&O.name=="EndTag"){let v=O.parent;if(((c=(u=v.parent)===null||u===void 0?void 0:u.lastChild)===null||c===void 0?void 0:c.name)!="CloseTag"&&(p=vs(l.doc,v.parent,d))&&!i1.has(p)){let g=d+(l.doc.sliceString(d,d+1)===">"?1:0),m=`</${p}>`;return{range:a,changes:{from:d,to:g,insert:m}}}}else if(f&&i=="/"&&O.name=="IncompleteCloseTag"){let v=O.parent;if(O.from==d-2&&((h=v.lastChild)===null||h===void 0?void 0:h.name)!="CloseTag"&&(p=vs(l.doc,v,d))&&!i1.has(p)){let g=d+(l.doc.sliceString(d,d+1)===">"?1:0),m=`${p}>`;return{range:P.cursor(d+m.length,-1),changes:{from:d,to:g,insert:m}}}}return{range:a}});return o.changes.empty?!1:(t.dispatch([s,l.update(o,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}),Yw=dc({commentTokens:{block:{open:"<!--",close:"-->"}}}),Iw=new Y,Bw=n_.configure({props:[Ni.add(t=>!t.is("Block")||t.is("Document")||Ud(t)!=null||Iz(t)?void 0:(e,n)=>({from:n.doc.lineAt(e.from).to,to:e.to})),Iw.add(Ud),Vi.add({Document:()=>null}),gi.add({Document:Yw})]});function Ud(t){let e=/^(?:ATX|Setext)Heading(\d)$/.exec(t.name);return e?+e[1]:void 0}function Iz(t){return t.name=="OrderedList"||t.name=="BulletList"}function Bz(t,e){let n=t;for(;;){let i=n.nextSibling,r;if(!i||(r=Ud(i.type))!=null&&r<=e)break;n=i}return n.to}const Uz=lQ.of((t,e,n)=>{for(let i=ue(t).resolveInner(n,-1);i&&!(i.from<e);i=i.parent){let r=i.type.prop(Iw);if(r==null)continue;let s=Bz(i,r);if(s>n)return{from:n,to:s}}return null});function Hp(t){return new Rt(Yw,t,[],"markdown")}const Gz=Hp(Bw),Fz=Bw.configure([d_,p_,O_,m_,{props:[Ni.add({Table:(t,e)=>({from:e.doc.lineAt(t.from).to,to:t.to})})]}]),qu=Hp(Fz);function Hz(t,e){return n=>{if(n&&t){let i=null;if(n=/\S*/.exec(n)[0],typeof t=="function"?i=t(n):i=ku.matchLanguageName(t,n,!0),i instanceof ku)return i.support?i.support.language.parser:yr.getSkippingParser(i.load());if(i)return i.parser}return e?e.parser:null}}class Ih{constructor(e,n,i,r,s,l,o){this.node=e,this.from=n,this.to=i,this.spaceBefore=r,this.spaceAfter=s,this.type=l,this.item=o}blank(e,n=!0){let i=this.spaceBefore+(this.node.name=="Blockquote"?">":"");if(e!=null){for(;i.length<e;)i+=" ";return i}else{for(let r=this.to-this.from-i.length-this.spaceAfter.length;r>0;r--)i+=" ";return i+(n?this.spaceAfter:"")}}marker(e,n){let i=this.node.name=="OrderedList"?String(+Gw(this.item,e)[2]+n):"";return this.spaceBefore+i+this.type+this.spaceAfter}}function Uw(t,e){let n=[],i=[];for(let r=t;r;r=r.parent){if(r.name=="FencedCode")return i;(r.name=="ListItem"||r.name=="Blockquote")&&n.push(r)}for(let r=n.length-1;r>=0;r--){let s=n[r],l,o=e.lineAt(s.from),a=s.from-o.from;if(s.name=="Blockquote"&&(l=/^ *>( ?)/.exec(o.text.slice(a))))i.push(new Ih(s,a,a+l[0].length,"",l[1],">",null));else if(s.name=="ListItem"&&s.parent.name=="OrderedList"&&(l=/^( *)\d+([.)])( *)/.exec(o.text.slice(a)))){let u=l[3],c=l[0].length;u.length>=4&&(u=u.slice(0,u.length-4),c-=4),i.push(new Ih(s.parent,a,a+c,l[1],u,l[2],s))}else if(s.name=="ListItem"&&s.parent.name=="BulletList"&&(l=/^( *)([-+*])( {1,4}\[[ xX]\])?( +)/.exec(o.text.slice(a)))){let u=l[4],c=l[0].length;u.length>4&&(u=u.slice(0,u.length-4),c-=4);let h=l[2];l[3]&&(h+=l[3].replace(/[xX]/," ")),i.push(new Ih(s.parent,a,a+c,l[1],u,h,s))}}return i}function Gw(t,e){return/^(\s*)(\d+)(?=[.)])/.exec(e.sliceString(t.from,t.from+10))}function Bh(t,e,n,i=0){for(let r=-1,s=t;;){if(s.name=="ListItem"){let o=Gw(s,e),a=+o[2];if(r>=0){if(a!=r+1)return;n.push({from:s.from+o[1].length,to:s.from+o[0].length,insert:String(r+2+i)})}r=a}let l=s.nextSibling;if(!l)break;s=l}}function Kp(t,e){let n=/^[ \t]*/.exec(t)[0].length;if(!n||e.facet(Ts)!=" ")return t;let i=sn(t,4,n),r="";for(let s=i;s>0;)s>=4?(r+=" ",s-=4):(r+=" ",s--);return r+t.slice(n)}const Kz=(t={})=>({state:e,dispatch:n})=>{let i=ue(e),{doc:r}=e,s=null,l=e.changeByRange(o=>{if(!o.empty||!qu.isActiveAt(e,o.from,-1)&&!qu.isActiveAt(e,o.from,1))return s={range:o};let a=o.from,u=r.lineAt(a),c=Uw(i.resolveInner(a,-1),r);for(;c.length&&c[c.length-1].from>a-u.from;)c.pop();if(!c.length)return s={range:o};let h=c[c.length-1];if(h.to-h.spaceAfter.length>a-u.from)return s={range:o};let f=a>=h.to-h.spaceAfter.length&&!/\S/.test(u.text.slice(h.to));if(h.item&&f){let g=h.node.firstChild,m=h.node.getChild("ListItem","ListItem");if(g.to>=a||m&&m.to<a||u.from>0&&!/[^\s>]/.test(r.lineAt(u.from-1).text)||t.nonTightLists===!1){let x=c.length>1?c[c.length-2]:null,w,Q="";x&&x.item?(w=u.from+x.from,Q=x.marker(r,1)):w=u.from+(x?x.to:0);let k=[{from:w,to:a,insert:Q}];return h.node.name=="OrderedList"&&Bh(h.item,r,k,-2),x&&x.node.name=="OrderedList"&&Bh(x.item,r,k),{range:P.cursor(w+Q.length),changes:k}}else{let x=s1(c,e,u);return{range:P.cursor(a+x.length+1),changes:{from:u.from,insert:x+e.lineBreak}}}}if(h.node.name=="Blockquote"&&f&&u.from){let g=r.lineAt(u.from-1),m=/>\s*$/.exec(g.text);if(m&&m.index==h.from){let x=e.changes([{from:g.from+m.index,to:g.to},{from:u.from+h.from,to:u.to}]);return{range:o.map(x),changes:x}}}let d=[];h.node.name=="OrderedList"&&Bh(h.item,r,d);let O=h.item&&h.item.from<u.from,p="";if(!O||/^[\s\d.)\-+*>]*/.exec(u.text)[0].length>=h.to)for(let g=0,m=c.length-1;g<=m;g++)p+=g==m&&!O?c[g].marker(r,1):c[g].blank(g<m?sn(u.text,4,c[g+1].from)-p.length:null);let v=a;for(;v>u.from&&/\s/.test(u.text.charAt(v-u.from-1));)v--;return p=Kp(p,e),eM(h.node,e.doc)&&(p=s1(c,e,u)+e.lineBreak+p),d.push({from:v,to:a,insert:e.lineBreak+p}),{range:P.cursor(v+p.length+1),changes:d}});return s?!1:(n(e.update(l,{scrollIntoView:!0,userEvent:"input"})),!0)},Jz=Kz();function r1(t){return t.name=="QuoteMark"||t.name=="ListMark"}function eM(t,e){if(t.name!="OrderedList"&&t.name!="BulletList")return!1;let n=t.firstChild,i=t.getChild("ListItem","ListItem");if(!i)return!1;let r=e.lineAt(n.to),s=e.lineAt(i.from),l=/^[\s>]*$/.test(r.text);return r.number+(l?0:1)<s.number}function s1(t,e,n){let i="";for(let r=0,s=t.length-2;r<=s;r++)i+=t[r].blank(r<s?sn(n.text,4,t[r+1].from)-i.length:null,r<s);return Kp(i,e)}function tM(t,e){let n=t.resolveInner(e,-1),i=e;r1(n)&&(i=n.from,n=n.parent);for(let r;r=n.childBefore(i);)if(r1(r))i=r.from;else if(r.name=="OrderedList"||r.name=="BulletList")n=r.lastChild,i=n.to;else break;return n}const nM=({state:t,dispatch:e})=>{let n=ue(t),i=null,r=t.changeByRange(s=>{let l=s.from,{doc:o}=t;if(s.empty&&qu.isActiveAt(t,s.from)){let a=o.lineAt(l),u=Uw(tM(n,l),o);if(u.length){let c=u[u.length-1],h=c.to-c.spaceAfter.length+(c.spaceAfter?1:0);if(l-a.from>h&&!/\S/.test(a.text.slice(h,l-a.from)))return{range:P.cursor(a.from+h),changes:{from:a.from+h,to:l}};if(l-a.from==h&&(!c.item||a.from<=c.item.from||!/\S/.test(a.text.slice(0,c.to)))){let f=a.from+c.from;if(c.item&&c.node.from<c.item.from&&/\S/.test(a.text.slice(c.from,c.to))){let d=c.blank(sn(a.text,4,c.to)-sn(a.text,4,c.from));return f==a.from&&(d=Kp(d,t)),{range:P.cursor(f+d.length),changes:{from:f,to:a.from+c.to,insert:d}}}if(f<l)return{range:P.cursor(f),changes:{from:f,to:l}}}}}return i={range:s}});return i?!1:(e(t.update(r,{scrollIntoView:!0,userEvent:"delete"})),!0)},iM=[{key:"Enter",run:Jz},{key:"Backspace",run:nM}],Fw=Dz({matchClosingTags:!1});function rM(t={}){let{codeLanguages:e,defaultCodeLanguage:n,addKeymap:i=!0,base:{parser:r}=Gz,completeHTMLTags:s=!0,pasteURLAsLink:l=!0,htmlTagLanguage:o=Fw}=t;if(!(r instanceof wc))throw new RangeError("Base parser provided to `markdown` should be a Markdown parser");let a=t.extensions?[t.extensions]:[],u=[o.support,Uz],c;l&&u.push(aM),n instanceof Sr?(u.push(n.support),c=n.language):n&&(c=n);let h=e||c?Hz(e,c):void 0;a.push(r_({codeParser:h,htmlParser:o.language.parser})),i&&u.push(ni.high(Ps.of(iM)));let f=Hp(r.configure(a));return s&&u.push(f.data.of({autocomplete:sM})),new Sr(f,u)}function sM(t){let{state:e,pos:n}=t,i=/<[:\-\.\w\u00b7-\uffff]*$/.exec(e.sliceDoc(n-25,n));if(!i)return null;let r=ue(e).resolveInner(n,-1);for(;r&&!r.type.isTop;){if(r.name=="CodeBlock"||r.name=="FencedCode"||r.name=="ProcessingInstructionBlock"||r.name=="CommentBlock"||r.name=="Link"||r.name=="Image")return null;r=r.parent}return{from:n-i[0].length,to:n,options:lM(),validFor:/^<[:\-\.\w\u00b7-\uffff]*$/}}let Uh=null;function lM(){if(Uh)return Uh;let t=qz(new Pp(J.create({extensions:Fw}),0,!0));return Uh=t?t.options:[]}const oM=/code|horizontalrule|html|link|comment|processing|escape|entity|image|mark|url/i,aM=X.domEventHandlers({paste:(t,e)=>{var n;let{main:i}=e.state.selection;if(i.empty)return!1;let r=(n=t.clipboardData)===null||n===void 0?void 0:n.getData("text/plain");if(!r||!/^(https?:\/\/|mailto:|xmpp:|www\.)/.test(r)||(/^www\./.test(r)&&(r="https://"+r),!qu.isActiveAt(e.state,i.from,1)))return!1;let s=ue(e.state),l=!1;return s.iterate({from:i.from,to:i.to,enter:o=>{(o.from>i.from||oM.test(o.name))&&(l=!0)},leave:o=>{o.to<i.to&&(l=!0)}}),l?!1:(e.dispatch({changes:[{from:i.from,insert:"["},{from:i.to,insert:`](${r})`}],userEvent:"input.paste",scrollIntoView:!0}),!0)}}),uM=Cs.define([{tag:[y.heading,y.heading1,y.heading2,y.heading3,y.heading4,y.heading5,y.heading6],color:"#0550ae",fontWeight:"bold"},{tag:y.strong,fontWeight:"bold"},{tag:y.emphasis,fontStyle:"italic"},{tag:y.strikethrough,textDecoration:"line-through"},{tag:[y.link,y.url],color:"#0969da",textDecoration:"none"},{tag:y.monospace,color:"#0a3069"},{tag:y.quote,color:"#6e7781",fontStyle:"italic"},{tag:[y.meta,y.processingInstruction],color:"#8250df"},{tag:[y.list,y.contentSeparator],color:"#6e7781"},{tag:y.escape,color:"#6e7781"}]),Zs=[rM(),pp(uM),X.lineWrapping];function l1(t){return t.split("/").map(encodeURIComponent).join("/")}function cM(t){var n;switch(((n=t.split(".").pop())==null?void 0:n.toLowerCase())??""){case"md":case"markdown":return Zs;case"py":return[KE()];case"js":case"jsx":case"mjs":case"cjs":return[Wd({jsx:!0})];case"ts":case"tsx":return[Wd({jsx:!0,typescript:!0})];case"json":return[Wp()];case"sh":case"bash":case"zsh":return[mp.define(DA)];default:return[]}}function hM({name:t,queryString:e}){const[n,i]=T.useState([]),[r,s]=T.useState(null),[l,o]=T.useState(""),[a,u]=T.useState(!1),[c,h]=T.useState(null),[f,d]=T.useState(null),[O,p]=T.useState(!1);async function v(m){try{const x=await Ae(`/api/skills/${t}/files/${l1(m)}${e}`);s(m),o(x.content),d(x.mtime??null),u(!1),p(!1),h(null)}catch(x){h(x.message)}}T.useEffect(()=>{Ae(`/api/skills/${t}/files${e}`).then(m=>{i(m);const x=m.includes("SKILL.md")?"SKILL.md":m[0]??null;x&&v(x)}).catch(m=>h(m.message))},[t,e]);async function g(m=!1){if(r)try{await mo(`/api/skills/${t}/files/${l1(r)}${e}`,{content:l,baseMtime:m?void 0:f}),h(null),await v(r)}catch(x){x.code==="conflict"?p(!0):h(x.message)}}return S.jsxs("div",{className:"flex h-full min-h-0 flex-col gap-2",children:[c&&S.jsx("div",{className:"rounded bg-red-100 p-2 text-red-700",children:c}),O&&S.jsxs("div",{className:"flex flex-wrap items-center gap-3 rounded bg-amber-100 p-2 text-amber-800",children:[S.jsx("span",{children:"⚠ 文件已被外部修改,直接保存会覆盖外部改动。"}),S.jsx("button",{className:"rounded bg-amber-600 px-2 py-0.5 text-white",onClick:()=>r&&v(r),children:"重新加载"}),S.jsx("button",{className:"rounded border border-amber-600 px-2 py-0.5 text-amber-700",onClick:()=>g(!0),children:"仍然覆盖"})]}),S.jsxs("div",{className:"flex min-h-0 flex-1 items-stretch gap-3",children:[S.jsxs("ul",{className:"w-56 shrink-0 divide-y overflow-auto rounded border",children:[n.map(m=>S.jsx("li",{children:S.jsx("button",{className:`w-full truncate px-2 py-1 text-left font-mono text-sm ${m===r?"bg-blue-100":""}`,onClick:()=>v(m),children:m})},m)),n.length===0&&S.jsx("li",{className:"px-2 py-1 text-sm text-gray-500",children:"无可编辑文本文件"})]}),S.jsxs("div",{className:"flex min-w-0 min-h-0 grow flex-col gap-2",children:[S.jsx("div",{className:"min-h-0 flex-1 overflow-hidden rounded border",children:S.jsx(Yi,{className:"h-full",value:l,height:"100%",editable:!!r,extensions:r?cM(r):[],onChange:m=>{o(m),u(!0)}})}),S.jsx("div",{children:S.jsx("button",{className:"rounded bg-blue-600 px-3 py-1 text-white disabled:opacity-50",onClick:()=>g(),disabled:!r||!a,children:a?"保存 *":"保存"})})]})]})]})}function fM(t){return t?new Date(t).toLocaleString():"—"}function dM(){const{queryString:t,provider:e}=Xn(),[n,i]=T.useState([]),[r,s]=T.useState(null),[l,o]=T.useState(null),[a,u]=T.useState(""),[c,h]=T.useState("name"),f=e==="agents";async function d(){try{i(await Ae(f?"/api/shared-skills":`/api/skills${t}`)),o(null)}catch(Q){o(Q.message)}}T.useEffect(()=>{d()},[t]);async function O(Q){const k={name:Q.name,frontmatter:{name:Q.name,description:Q.description},body:Q.body};try{await pi(`/api/skills${t}`,k),s(null),await d()}catch(b){o(b.message)}}async function p(Q,k){try{await pi(`/api/skills/${Q}/toggle${t}`,{enabled:k}),await d()}catch(b){o(b.message)}}async function v(Q){try{await Wl(`/api/skills/${Q}${t}`),await d()}catch(k){o(k.message)}}async function g(Q,k,b){try{b?await Wl(`/api/shared-skills/${Q}/sync`,{target:k}):await pi(`/api/shared-skills/${Q}/sync`,{target:k}),await d()}catch($){o($.message)}}async function m(Q){if(confirm(`将「${Q}」复制到 ~/.agents/skills,并把原目录替换为链接。继续?`))try{await pi(`/api/skills/${Q}/make-shared${t}`,{}),await d()}catch(k){o(k.message)}}const x=a.trim().toLowerCase(),w=n.filter(Q=>!x||Q.name.toLowerCase().includes(x)).sort((Q,k)=>c==="mtime"?k.mtime-Q.mtime:Q.name.localeCompare(k.name));return S.jsxs("div",{className:"space-y-3",children:[S.jsxs("div",{className:"flex items-center justify-between",children:[S.jsx("h2",{className:"text-lg font-semibold",children:f?"公共 Skills(~/.agents/skills)":"Skills"}),S.jsx("button",{className:"rounded bg-blue-600 px-3 py-1 text-white",onClick:()=>s({mode:"new"}),children:"新增"})]}),S.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[S.jsx("input",{className:"min-w-0 flex-1 rounded border px-2 py-1 text-sm",placeholder:"按名称搜索技能…",value:a,onChange:Q=>u(Q.target.value)}),S.jsxs("select",{className:"rounded border px-2 py-1 text-sm",value:c,onChange:Q=>h(Q.target.value),children:[S.jsx("option",{value:"name",children:"按名称"}),S.jsx("option",{value:"mtime",children:"按最后修改"})]})]}),l&&S.jsx("div",{className:"rounded bg-red-100 p-2 text-red-700",children:l}),S.jsxs("div",{className:"grid gap-3 sm:grid-cols-2 lg:grid-cols-3",children:[w.map(Q=>S.jsxs("div",{className:"cursor-pointer rounded border p-3 transition hover:shadow",onClick:()=>{Q.broken||s({mode:"edit",entry:Q})},children:[S.jsxs("div",{className:"flex items-center justify-between gap-2",children:[S.jsxs("span",{className:"flex min-w-0 items-center gap-1",children:[S.jsx("span",{className:"truncate font-mono font-semibold",children:Q.name}),Q.broken?S.jsx("span",{className:"shrink-0 rounded bg-red-100 px-1 text-xs text-red-700",title:`断链 → ${Q.linkTarget??"?"}`,children:"断链"}):Q.linkKind==="shared"?S.jsx("span",{className:"shrink-0 rounded bg-green-100 px-1 text-xs text-green-700",title:`公共链接 → ${Q.linkTarget}`,children:"公共"}):Q.linkKind==="external"?S.jsx("span",{className:"shrink-0 rounded bg-amber-100 px-1 text-xs text-amber-700",title:`外部链接 → ${Q.linkTarget}`,children:"外部链接"}):null]}),!f&&S.jsxs("label",{className:"flex shrink-0 items-center gap-1 text-xs text-gray-500",onClick:k=>k.stopPropagation(),children:[S.jsx("input",{type:"checkbox",checked:Q.enabled,onChange:k=>p(Q.name,k.target.checked)}),Q.enabled?"启用":"禁用"]})]}),S.jsx("p",{className:"mt-1 line-clamp-2 min-h-[2.5rem] text-sm text-gray-500",children:Q.description}),S.jsxs("div",{className:"mt-1 text-xs text-gray-400",children:["修改于 ",fM(Q.mtime)]}),S.jsx("div",{className:"mt-0.5 break-all text-xs text-gray-400",children:Q.path}),Q.linkTarget&&S.jsxs("div",{className:"mt-0.5 break-all text-xs text-amber-700",children:["链接 → ",Q.linkTarget]}),S.jsxs("div",{className:"mt-2 flex flex-wrap items-center justify-end gap-2",children:[f&&Q.sync&&["claude","codex"].map(k=>{const b=Q.sync[k],$=k==="claude"?"Claude":"Codex";return b==="conflict"?S.jsxs("span",{className:"rounded bg-amber-100 px-2 py-1 text-xs text-amber-700",title:`${$} 的 skills 目录存在同名条目且不是指向本技能的链接,请手动处理`,children:[$," 冲突"]},k):S.jsx("button",{className:`rounded px-2 py-1 text-xs ${b==="linked"?"bg-green-100 text-green-700":"bg-gray-100 text-gray-700"}`,title:b==="linked"?`已同步,点击取消(删除 ${$} 侧链接)`:`在 ${$} 的 skills 目录创建链接`,onClick:z=>{z.stopPropagation(),g(Q.name,k,b==="linked")},children:b==="linked"?`✓ ${$}`:`同步到 ${$}`},k)}),!f&&!Q.linkTarget&&!Q.broken&&Q.enabled&&S.jsx("button",{className:"rounded bg-green-100 px-2 py-1 text-green-700",onClick:k=>{k.stopPropagation(),m(Q.name)},children:"转公共"}),S.jsx("button",{className:"rounded bg-red-100 px-2 py-1 text-red-700",onClick:k=>{k.stopPropagation(),v(Q.name)},children:"删除"})]})]},Q.name)),w.length===0&&S.jsx("div",{className:"text-sm text-gray-500",children:n.length===0?"暂无技能":"无匹配技能"})]}),S.jsx(Rn,{open:(r==null?void 0:r.mode)==="new",title:"新增技能",onClose:()=>s(null),children:S.jsx(q$,{onSubmit:O,onCancel:()=>s(null)})}),S.jsx(Rn,{open:(r==null?void 0:r.mode)==="edit",title:(r==null?void 0:r.mode)==="edit"?r.entry.name:"",subtitle:(r==null?void 0:r.mode)==="edit"?r.entry.linkTarget?`${r.entry.path} → ${r.entry.linkTarget}`:r.entry.path:void 0,width:"max-w-5xl",onClose:()=>s(null),children:(r==null?void 0:r.mode)==="edit"&&S.jsx(hM,{name:r.entry.name,queryString:t})})]})}function Hw({title:t,apiBase:e,template:n}){const{queryString:i}=Xn(),[r,s]=T.useState([]),[l,o]=T.useState(null),[a,u]=T.useState(null);async function c(){try{s(await Ae(`${e}${i}`)),u(null)}catch(d){u(d.message)}}T.useEffect(()=>{c()},[i]);async function h(d,O){try{await pi(`${e}${i}`,{name:d,content:O}),o(null),await c()}catch(p){u(p.message)}}async function f(d){try{await Wl(`${e}/${d}${i}`),await c()}catch(O){u(O.message)}}return S.jsxs("div",{className:"space-y-3",children:[S.jsxs("div",{className:"flex items-center justify-between",children:[S.jsx("h2",{className:"text-lg font-semibold",children:t}),S.jsx("button",{className:"rounded bg-blue-600 px-3 py-1 text-white",onClick:()=>o({mode:"new"}),children:"新增"})]}),a&&S.jsx("div",{className:"rounded bg-red-100 p-2 text-red-700",children:a}),S.jsxs("div",{className:"grid gap-3 sm:grid-cols-2 lg:grid-cols-3",children:[r.map(d=>S.jsxs("div",{className:"cursor-pointer rounded border p-3 transition hover:shadow",onClick:()=>o({mode:"edit",entry:d}),children:[S.jsx("div",{className:"truncate font-mono font-semibold",children:d.name}),S.jsx("p",{className:"mt-1 line-clamp-2 min-h-[2.5rem] text-sm text-gray-500",children:d.description||"(无描述)"}),S.jsx("div",{className:"mt-1 break-all text-xs text-gray-400",children:d.path}),S.jsx("div",{className:"mt-2 flex justify-end",children:S.jsx("button",{className:"rounded bg-red-100 px-2 py-1 text-red-700",onClick:O=>{O.stopPropagation(),f(d.name)},children:"删除"})})]},d.name)),r.length===0&&S.jsx("div",{className:"text-sm text-gray-500",children:"暂无内容"})]}),S.jsx(Rn,{open:(l==null?void 0:l.mode)==="new",title:`新增 ${t}`,onClose:()=>o(null),children:S.jsx(OM,{template:n,onSubmit:h,onCancel:()=>o(null)})}),S.jsx(Rn,{open:(l==null?void 0:l.mode)==="edit",title:(l==null?void 0:l.mode)==="edit"?l.entry.name:"",subtitle:(l==null?void 0:l.mode)==="edit"?l.entry.path:void 0,width:"max-w-5xl",onClose:()=>o(null),children:(l==null?void 0:l.mode)==="edit"&&S.jsx(pM,{name:l.entry.name,apiBase:e,queryString:i})})]})}function OM({template:t,onSubmit:e,onCancel:n}){const[i,r]=T.useState(""),[s,l]=T.useState(""),[o,a]=T.useState(!1),u=o?s:t(i);return S.jsxs("div",{className:"space-y-2",children:[S.jsx("input",{className:"w-full rounded border px-2 py-1",placeholder:"名称(文件名,不含 .md)",value:i,onChange:c=>r(c.target.value)}),S.jsx("div",{className:"overflow-hidden rounded border",children:S.jsx(Yi,{value:u,height:"60vh",extensions:Zs,onChange:c=>{l(c),a(!0)}})}),S.jsxs("div",{className:"flex gap-2",children:[S.jsx("button",{className:"rounded bg-blue-600 px-3 py-1 text-white disabled:opacity-50",disabled:!i.trim(),onClick:()=>e(i.trim(),u),children:"保存"}),S.jsx("button",{className:"rounded bg-gray-200 px-3 py-1",onClick:n,children:"取消"})]})]})}function pM({name:t,apiBase:e,queryString:n}){const[i,r]=T.useState(""),[s,l]=T.useState(!1),[o,a]=T.useState(!1),[u,c]=T.useState(null),[h,f]=T.useState(null),[d,O]=T.useState(!1);async function p(){try{const g=await Ae(`${e}/${t}${n}`);r(g.content),f(g.mtime??null),l(!1),O(!1),c(null)}catch(g){c(g.message)}}T.useEffect(()=>{p(),a(!1)},[t,e,n]);async function v(g=!1){try{await mo(`${e}/${t}${n}`,{content:i,baseMtime:g?void 0:h}),a(!0),c(null),await p()}catch(m){m.code==="conflict"?O(!0):c(m.message)}}return S.jsxs("div",{className:"flex h-full min-h-0 flex-col gap-2",children:[u&&S.jsx("div",{className:"rounded bg-red-100 p-2 text-red-700",children:u}),d&&S.jsxs("div",{className:"flex flex-wrap items-center gap-3 rounded bg-amber-100 p-2 text-amber-800",children:[S.jsx("span",{children:"⚠ 文件已被外部修改,直接保存会覆盖外部改动。"}),S.jsx("button",{className:"rounded bg-amber-600 px-2 py-0.5 text-white",onClick:p,children:"重新加载"}),S.jsx("button",{className:"rounded border border-amber-600 px-2 py-0.5 text-amber-700",onClick:()=>v(!0),children:"仍然覆盖"})]}),S.jsx("div",{className:"min-h-0 flex-1 overflow-hidden rounded border",children:S.jsx(Yi,{className:"h-full",value:i,height:"100%",extensions:Zs,onChange:g=>{r(g),l(!0),a(!1)}})}),S.jsxs("div",{className:"flex items-center gap-3",children:[S.jsx("button",{className:"rounded bg-blue-600 px-3 py-1 text-white disabled:opacity-50",onClick:()=>v(),disabled:!s,children:s?"保存 *":"保存"}),o&&!s&&S.jsx("span",{className:"text-sm text-green-600",children:"已保存"})]})]})}const mM=t=>`---
72
+ `;)s--;this.fragmentEnd=s?s-1:0}let i=this.cursor;i||(i=this.cursor=this.fragment.tree.cursor(),i.firstChild());let r=e+this.fragment.offset;for(;i.to<=r;)if(!i.parent())return!1;for(;;){if(i.from>=r)return this.fragment.from<=n;if(!i.childAfter(r))return!1}}matches(e){let n=this.cursor.tree;return n&&n.prop(Y.contextHash)==e}takeNodes(e){let n=this.cursor,i=this.fragment.offset,r=this.fragmentEnd-(this.fragment.openEnd?1:0),s=e.absoluteLineStart,l=s,o=e.block.children.length,a=l,u=o;for(;;){if(n.to-i>r){if(n.type.isAnonymous&&n.firstChild())continue;break}let c=Sw(n.from-i,e.ranges);if(n.to-i<=e.ranges[e.rangeI].to)e.addNode(n.tree,c);else{let h=new F(e.parser.nodeSet.types[R.Paragraph],[],[],0,e.block.hashProp);e.reusePlaceholders.set(h,n.tree),e.addNode(h,c)}if(n.type.is("Block")&&(JA.indexOf(n.type.id)<0?(l=n.to-i,o=e.block.children.length):(l=a,o=u),a=n.to-i,u=e.block.children.length),!n.nextSibling())break}for(;e.block.children.length>o;)e.block.children.pop(),e.block.positions.pop();return l-s}}function Sw(t,e){let n=t;for(let i=1;i<e.length;i++){let r=e[i-1].to,s=e[i].from;r<t&&(n-=s-r)}return n}const t_=qi({"Blockquote/...":y.quote,HorizontalRule:y.contentSeparator,"ATXHeading1/... SetextHeading1/...":y.heading1,"ATXHeading2/... SetextHeading2/...":y.heading2,"ATXHeading3/...":y.heading3,"ATXHeading4/...":y.heading4,"ATXHeading5/...":y.heading5,"ATXHeading6/...":y.heading6,"Comment CommentBlock":y.comment,Escape:y.escape,Entity:y.character,"Emphasis/...":y.emphasis,"StrongEmphasis/...":y.strong,"Link/... Image/...":y.link,"OrderedList/... BulletList/...":y.list,"BlockQuote/...":y.quote,"InlineCode CodeText":y.monospace,"URL Autolink":y.url,"HeaderMark HardBreak QuoteMark ListMark LinkMark EmphasisMark CodeMark":y.processingInstruction,"CodeInfo LinkLabel":y.labelName,LinkTitle:y.string,Paragraph:y.content}),n_=new wc(new $s(hw).extend(t_),Object.keys(fa).map(t=>fa[t]),Object.keys(fa).map(t=>uw[t]),Object.keys(fa),GA,ew,Object.keys(Mh).map(t=>Mh[t]),Object.keys(Mh),[]);function i_(t,e,n){let i=[];for(let r=t.firstChild,s=e;;r=r.nextSibling){let l=r?r.from:n;if(l>s&&i.push({from:s,to:l}),!r)break;s=r.to}return i}function r_(t){let{codeParser:e,htmlParser:n}=t;return{wrap:eQ((r,s)=>{let l=r.type.id;if(e&&(l==R.CodeBlock||l==R.FencedCode)){let o="";if(l==R.FencedCode){let u=r.node.getChild(R.CodeInfo);u&&(o=s.read(u.from,u.to))}let a=e(o);if(a)return{parser:a,overlay:u=>u.type.id==R.CodeText,bracketed:l==R.FencedCode}}else if(n&&(l==R.HTMLBlock||l==R.HTMLTag||l==R.CommentBlock))return{parser:n,overlay:i_(r.node,r.from,r.to)};return null})}}const s_={resolve:"Strikethrough",mark:"StrikethroughMark"},l_={defineNodes:[{name:"Strikethrough",style:{"Strikethrough/...":y.strikethrough}},{name:"StrikethroughMark",style:y.processingInstruction}],parseInline:[{name:"Strikethrough",parse(t,e,n){if(e!=126||t.char(n+1)!=126||t.char(n+2)==126)return-1;let i=t.slice(n-1,n),r=t.slice(n+2,n+3),s=/\s|^$/.test(i),l=/\s|^$/.test(r),o=oo.test(i),a=oo.test(r);return t.addDelimiter(s_,n,n+2,!l&&(!a||s||o),!s&&(!o||l||a))},after:"Emphasis"}]};function Ql(t,e,n=0,i,r=0){let s=0,l=!0,o=-1,a=-1,u=!1,c=()=>{i.push(t.elt("TableCell",r+o,r+a,t.parser.parseInline(e.slice(o,a),r+o)))};for(let h=n;h<e.length;h++){let f=e.charCodeAt(h);f==124&&!u?((!l||o>-1)&&s++,l=!1,i&&(o>-1&&c(),i.push(t.elt("TableDelimiter",h+r,h+r+1))),o=a=-1):(u||f!=32&&f!=9)&&(o<0&&(o=h),a=h+1),u=!u&&f==92}return o>-1&&(s++,i&&c()),s}function Ey(t,e){for(let n=e;n<t.length;n++){let i=t.charCodeAt(n);if(i==124)return!0;i==92&&n++}return!1}const xw=/^\|?(\s*:?-+:?\s*\|)+(\s*:?-+:?\s*)?$/;class Ay{constructor(){this.rows=null}nextLine(e,n,i){if(this.rows==null){this.rows=!1;let r;if((n.next==45||n.next==58||n.next==124)&&xw.test(r=n.text.slice(n.pos))){let s=[];Ql(e,i.content,0,s,i.start)==Ql(e,r,0)&&(this.rows=[e.elt("TableHeader",i.start,i.start+i.content.length,s),e.elt("TableDelimiter",e.lineStart+n.pos,e.lineStart+n.text.length)])}}else if(this.rows){let r=[];Ql(e,n.text,n.pos,r,e.lineStart),this.rows.push(e.elt("TableRow",e.lineStart+n.pos,e.lineStart+n.text.length,r))}return!1}finish(e,n){return this.rows?(e.addLeafElement(n,e.elt("Table",n.start,n.start+n.content.length,this.rows)),!0):!1}}const o_={defineNodes:[{name:"Table",block:!0},{name:"TableHeader",style:{"TableHeader/...":y.heading}},"TableRow",{name:"TableCell",style:y.content},{name:"TableDelimiter",style:y.processingInstruction}],parseBlock:[{name:"Table",leaf(t,e){return Ey(e.content,0)?new Ay:null},endLeaf(t,e,n){if(n.parsers.some(r=>r instanceof Ay)||!Ey(e.text,e.basePos))return!1;let i=t.peekLine();return xw.test(i)&&Ql(t,e.text,e.basePos)==Ql(t,i,e.basePos)},before:"SetextHeading"}]};class a_{nextLine(){return!1}finish(e,n){return e.addLeafElement(n,e.elt("Task",n.start,n.start+n.content.length,[e.elt("TaskMarker",n.start,n.start+3),...e.parser.parseInline(n.content.slice(3),n.start+3)])),!0}}const u_={defineNodes:[{name:"Task",block:!0,style:y.list},{name:"TaskMarker",style:y.atom}],parseBlock:[{name:"TaskList",leaf(t,e){return/^\[[ xX]\][ \t]/.test(e.content)&&t.parentType().name=="ListItem"?new a_:null},after:"SetextHeading"}]},_y=/(www\.)|(https?:\/\/)|([\w.+-]{1,100}@)|(mailto:|xmpp:)/gy,zy=/[\w-]+(\.[\w-]+)+(:\d+)?(\/[^\s<]*)?/gy,c_=/[\w-]+\.[\w-]+($|[/:])/,My=/[\w.+-]+@[\w-]+(\.[\w.-]+)+/gy,Ly=/\/[a-zA-Z\d@.]+/gy;function Wy(t,e,n,i){let r=0;for(let s=e;s<n;s++)t[s]==i&&r++;return r}function h_(t,e){zy.lastIndex=e;let n=zy.exec(t);if(!n||c_.exec(n[0])[0].indexOf("_")>-1)return-1;let i=e+n[0].length;for(;;){let r=t[i-1],s;if(/[?!.,:*_~]/.test(r)||r==")"&&Wy(t,e,i,")")>Wy(t,e,i,"("))i--;else if(r==";"&&(s=/&(?:#\d+|#x[a-f\d]+|\w+);$/.exec(t.slice(e,i))))i=e+s.index;else break}return i}function qy(t,e){My.lastIndex=e;let n=My.exec(t);if(!n)return-1;let i=n[0][n[0].length-1];return i=="_"||i=="-"?-1:e+n[0].length-(i=="."?1:0)}const f_={parseInline:[{name:"Autolink",parse(t,e,n){let i=n-t.offset;if(i&&/\w/.test(t.text[i-1]))return-1;_y.lastIndex=i;let r=_y.exec(t.text),s=-1;if(!r)return-1;if(r[1]||r[2]){if(s=h_(t.text,i+r[0].length),s>-1&&t.hasOpenLink){let l=/([^\[\]]|\[[^\]]*\])*/.exec(t.text.slice(i,s));s=i+l[0].length}}else r[3]?s=qy(t.text,i):(s=qy(t.text,i+r[0].length),s>-1&&r[0]=="xmpp:"&&(Ly.lastIndex=s,r=Ly.exec(t.text),r&&(s=r.index+r[0].length)));return s<0?-1:(t.addElement(t.elt("URL",n,s+t.offset)),s+t.offset)}}]},d_=[o_,u_,l_,f_];function vw(t,e,n){return(i,r,s)=>{if(r!=t||i.char(s+1)==t)return-1;let l=[i.elt(n,s,s+1)];for(let o=s+1;o<i.end;o++){let a=i.char(o);if(a==t)return i.addElement(i.elt(e,s,o+1,l.concat(i.elt(n,o,o+1))));if(a==92&&l.push(i.elt("Escape",o,o+++2)),Bt(a))break}return-1}}const O_={defineNodes:[{name:"Superscript",style:y.special(y.content)},{name:"SuperscriptMark",style:y.processingInstruction}],parseInline:[{name:"Superscript",parse:vw(94,"Superscript","SuperscriptMark")}]},p_={defineNodes:[{name:"Subscript",style:y.special(y.content)},{name:"SubscriptMark",style:y.processingInstruction}],parseInline:[{name:"Subscript",parse:vw(126,"Subscript","SubscriptMark")}]},m_={defineNodes:[{name:"Emoji",style:y.character}],parseInline:[{name:"Emoji",parse(t,e,n){let i;return e!=58||!(i=/^[a-zA-Z_0-9]+:/.exec(t.slice(n+1,t.end)))?-1:t.addElement(t.elt("Emoji",n,n+1+i[0].length))}}]},g_=55,y_=1,S_=56,x_=2,v_=57,Q_=3,Vy=4,k_=5,Ip=6,Qw=7,kw=8,ww=9,bw=10,w_=11,b_=12,P_=13,Lh=58,$_=14,T_=15,Ny=59,Pw=21,C_=23,$w=24,R_=25,Id=27,Tw=28,X_=29,j_=32,Z_=35,E_=37,A_=38,__=0,z_=1,M_={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},L_={dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},Dy={dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}};function W_(t){return t==45||t==46||t==58||t>=65&&t<=90||t==95||t>=97&&t<=122||t>=161}let Yy=null,Iy=null,By=0;function Bd(t,e){let n=t.pos+e;if(By==n&&Iy==t)return Yy;let i=t.peek(e),r="";for(;W_(i);)r+=String.fromCharCode(i),i=t.peek(++e);return Iy=t,By=n,Yy=r?r.toLowerCase():i==q_||i==V_?void 0:null}const Cw=60,Lu=62,Bp=47,q_=63,V_=33,N_=45;function Uy(t,e){this.name=t,this.parent=e}const D_=[Ip,bw,Qw,kw,ww],Y_=new zp({start:null,shift(t,e,n,i){return D_.indexOf(e)>-1?new Uy(Bd(i,1)||"",t):t},reduce(t,e){return e==Pw&&t?t.parent:t},reuse(t,e,n,i){let r=e.type.id;return r==Ip||r==E_?new Uy(Bd(i,1)||"",t):t},strict:!1}),I_=new Ge((t,e)=>{if(t.next!=Cw){t.next<0&&e.context&&t.acceptToken(Lh);return}t.advance();let n=t.next==Bp;n&&t.advance();let i=Bd(t,0);if(i===void 0)return;if(!i)return t.acceptToken(n?T_:$_);let r=e.context?e.context.name:null;if(n){if(i==r)return t.acceptToken(w_);if(r&&L_[r])return t.acceptToken(Lh,-2);if(e.dialectEnabled(__))return t.acceptToken(b_);for(let s=e.context;s;s=s.parent)if(s.name==i)return;t.acceptToken(P_)}else{if(i=="script")return t.acceptToken(Qw);if(i=="style")return t.acceptToken(kw);if(i=="textarea")return t.acceptToken(ww);if(M_.hasOwnProperty(i))return t.acceptToken(bw);r&&Dy[r]&&Dy[r][i]?t.acceptToken(Lh,-1):t.acceptToken(Ip)}},{contextual:!0}),B_=new Ge(t=>{for(let e=0,n=0;;n++){if(t.next<0){n&&t.acceptToken(Ny);break}if(t.next==N_)e++;else if(t.next==Lu&&e>=2){n>=3&&t.acceptToken(Ny,-2);break}else e=0;t.advance()}});function U_(t){for(;t;t=t.parent)if(t.name=="svg"||t.name=="math")return!0;return!1}const G_=new Ge((t,e)=>{if(t.next==Bp&&t.peek(1)==Lu){let n=e.dialectEnabled(z_)||U_(e.context);t.acceptToken(n?k_:Vy,2)}else t.next==Lu&&t.acceptToken(Vy,1)});function Up(t,e,n){let i=2+t.length;return new Ge(r=>{for(let s=0,l=0,o=0;;o++){if(r.next<0){o&&r.acceptToken(e);break}if(s==0&&r.next==Cw||s==1&&r.next==Bp||s>=2&&s<i&&r.next==t.charCodeAt(s-2))s++,l++;else if(s==i&&r.next==Lu){o>l?r.acceptToken(e,-l):r.acceptToken(n,-(l-2));break}else if((r.next==10||r.next==13)&&o){r.acceptToken(e,1);break}else s=l=0;r.advance()}})}const F_=Up("script",g_,y_),H_=Up("style",S_,x_),K_=Up("textarea",v_,Q_),J_=qi({"Text RawText IncompleteTag IncompleteCloseTag":y.content,"StartTag StartCloseTag SelfClosingEndTag EndTag":y.angleBracket,TagName:y.tagName,"MismatchedCloseTag/TagName":[y.tagName,y.invalid],AttributeName:y.attributeName,"AttributeValue UnquotedAttributeValue":y.attributeValue,Is:y.definitionOperator,"EntityReference CharacterReference":y.character,Comment:y.blockComment,ProcessingInst:y.processingInstruction,DoctypeDecl:y.documentMeta}),ez=zi.deserialize({version:14,states:",xOVO!rOOO!ZQ#tO'#CrO!`Q#tO'#C{O!eQ#tO'#DOO!jQ#tO'#DRO!oQ#tO'#DTO!tOaO'#CqO#PObO'#CqO#[OdO'#CqO$kO!rO'#CqOOO`'#Cq'#CqO$rO$fO'#DUO$zQ#tO'#DWO%PQ#tO'#DXOOO`'#Dl'#DlOOO`'#DZ'#DZQVO!rOOO%UQ&rO,59^O%aQ&rO,59gO%lQ&rO,59jO%wQ&rO,59mO&SQ&rO,59oOOOa'#D_'#D_O&_OaO'#CyO&jOaO,59]OOOb'#D`'#D`O&rObO'#C|O&}ObO,59]OOOd'#Da'#DaO'VOdO'#DPO'bOdO,59]OOO`'#Db'#DbO'jO!rO,59]O'qQ#tO'#DSOOO`,59],59]OOOp'#Dc'#DcO'vO$fO,59pOOO`,59p,59pO(OQ#|O,59rO(TQ#|O,59sOOO`-E7X-E7XO(YQ&rO'#CtOOQW'#D['#D[O(hQ&rO1G.xOOOa1G.x1G.xOOO`1G/Z1G/ZO(sQ&rO1G/ROOOb1G/R1G/RO)OQ&rO1G/UOOOd1G/U1G/UO)ZQ&rO1G/XOOO`1G/X1G/XO)fQ&rO1G/ZOOOa-E7]-E7]O)qQ#tO'#CzOOO`1G.w1G.wOOOb-E7^-E7^O)vQ#tO'#C}OOOd-E7_-E7_O){Q#tO'#DQOOO`-E7`-E7`O*QQ#|O,59nOOOp-E7a-E7aOOO`1G/[1G/[OOO`1G/^1G/^OOO`1G/_1G/_O*VQ,UO,59`OOQW-E7Y-E7YOOOa7+$d7+$dOOO`7+$u7+$uOOOb7+$m7+$mOOOd7+$p7+$pOOO`7+$s7+$sO*bQ#|O,59fO*gQ#|O,59iO*lQ#|O,59lOOO`1G/Y1G/YO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vQ!y!pR!|!yQgUR!VgQjVR!YjQmWR![mQpXR!^pQtZR!`tS_O`ToXp",nodeNames:"⚠ StartCloseTag StartCloseTag StartCloseTag EndTag SelfClosingEndTag StartTag StartTag StartTag StartTag StartTag StartCloseTag StartCloseTag StartCloseTag IncompleteTag IncompleteCloseTag Document Text EntityReference CharacterReference InvalidEntity Element OpenTag TagName Attribute AttributeName Is AttributeValue UnquotedAttributeValue ScriptText CloseTag OpenTag StyleText CloseTag OpenTag TextareaText CloseTag OpenTag CloseTag SelfClosingTag Comment ProcessingInst MismatchedCloseTag CloseTag DoctypeDecl",maxTerm:68,context:Y_,nodeProps:[["closedBy",-10,1,2,3,7,8,9,10,11,12,13,"EndTag",6,"EndTag SelfClosingEndTag",-4,22,31,34,37,"CloseTag"],["openedBy",4,"StartTag StartCloseTag",5,"StartTag",-4,30,33,36,38,"OpenTag"],["group",-10,14,15,18,19,20,21,40,41,42,43,"Entity",17,"Entity TextContent",-3,29,32,35,"TextContent Entity"],["isolate",-11,22,30,31,33,34,36,37,38,39,42,43,"ltr",-3,27,28,40,""]],propSources:[J_],skippedNodes:[0],repeatNodeCount:9,tokenData:"!<p!aR!YOX$qXY,QYZ,QZ[$q[]&X]^,Q^p$qpq,Qqr-_rs3_sv-_vw3}wxHYx}-_}!OH{!O!P-_!P!Q$q!Q![-_![!]Mz!]!^-_!^!_!$S!_!`!;x!`!a&X!a!c-_!c!}Mz!}#R-_#R#SMz#S#T1k#T#oMz#o#s-_#s$f$q$f%W-_%W%oMz%o%p-_%p&aMz&a&b-_&b1pMz1p4U-_4U4dMz4d4e-_4e$ISMz$IS$I`-_$I`$IbMz$Ib$Kh-_$Kh%#tMz%#t&/x-_&/x&EtMz&Et&FV-_&FV;'SMz;'S;:j!#|;:j;=`3X<%l?&r-_?&r?AhMz?Ah?BY$q?BY?MnMz?MnO$q!Z$|caPlW!b`!dpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr$qrs&}sv$qvw+Pwx(tx!^$q!^!_*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e){let n=Object.create(null);for(let i of t.getChildren($w)){let r=i.getChild(R_),s=i.getChild(Id)||i.getChild(Tw);r&&(n[e.read(r.from,r.to)]=s?s.type.id==Id?e.read(s.from+1,s.to-1):e.read(s.from,s.to):"")}return n}function Gy(t,e){let n=t.getChild(C_);return n?e.read(n.from,n.to):" "}function Wh(t,e,n){let i;for(let r of n)if(!r.attrs||r.attrs(i||(i=Rw(t.node.parent.firstChild,e))))return{parser:r.parser,bracketed:!0};return null}function Xw(t=[],e=[]){let n=[],i=[],r=[],s=[];for(let o of t)(o.tag=="script"?n:o.tag=="style"?i:o.tag=="textarea"?r:s).push(o);let l=e.length?Object.create(null):null;for(let o of e)(l[o.name]||(l[o.name]=[])).push(o);return eQ((o,a)=>{let u=o.type.id;if(u==X_)return Wh(o,a,n);if(u==j_)return Wh(o,a,i);if(u==Z_)return Wh(o,a,r);if(u==Pw&&s.length){let c=o.node,h=c.firstChild,f=h&&Gy(h,a),d;if(f){for(let O of s)if(O.tag==f&&(!O.attrs||O.attrs(d||(d=Rw(h,a))))){let p=c.lastChild,v=p.type.id==A_?p.from:c.to;if(v>h.to)return{parser:O.parser,overlay:[{from:h.to,to:v}]}}}}if(l&&u==$w){let c=o.node,h;if(h=c.firstChild){let f=l[a.read(h.from,h.to)];if(f)for(let d of f){if(d.tagName&&d.tagName!=Gy(c.parent,a))continue;let O=c.lastChild;if(O.type.id==Id){let p=O.from+1,v=O.lastChild,g=O.to-(v&&v.isError?0:1);if(g>p)return{parser:d.parser,overlay:[{from:p,to:g}],bracketed:!0}}else if(O.type.id==Tw)return{parser:d.parser,overlay:[{from:O.from,to:O.to}]}}}}return null})}const tz=135,Fy=1,nz=136,iz=137,jw=2,rz=138,sz=3,lz=4,Zw=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288],oz=58,az=40,Ew=95,uz=91,Ma=45,cz=46,hz=35,fz=37,dz=38,Oz=92,pz=10,mz=42;function ao(t){return t>=65&&t<=90||t>=97&&t<=122||t>=161}function Gp(t){return t>=48&&t<=57}function Hy(t){return Gp(t)||t>=97&&t<=102||t>=65&&t<=70}const Aw=(t,e,n)=>(i,r)=>{for(let s=!1,l=0,o=0;;o++){let{next:a}=i;if(ao(a)||a==Ma||a==Ew||s&&Gp(a))!s&&(a!=Ma||o>0)&&(s=!0),l===o&&a==Ma&&l++,i.advance();else if(a==Oz&&i.peek(1)!=pz){if(i.advance(),Hy(i.next)){do i.advance();while(Hy(i.next));i.next==32&&i.advance()}else i.next>-1&&i.advance();s=!0}else{s&&i.acceptToken(l==2&&r.canShift(jw)?e:a==az?n:t);break}}},gz=new Ge(Aw(nz,jw,iz),{contextual:!0}),yz=new Ge(Aw(rz,sz,lz),{contextual:!0}),Sz=new Ge(t=>{if(Zw.includes(t.peek(-1))){let{next:e}=t;(ao(e)||e==Ew||e==hz||e==cz||e==mz||e==uz||e==oz&&ao(t.peek(1))||e==Ma||e==dz)&&t.acceptToken(tz)}}),xz=new Ge(t=>{if(!Zw.includes(t.peek(-1))){let{next:e}=t;if(e==fz&&(t.advance(),t.acceptToken(Fy)),ao(e)){do t.advance();while(ao(t.next)||Gp(t.next));t.acceptToken(Fy)}}}),vz=qi({"AtKeyword import charset namespace keyframes media supports font-feature-values":y.definitionKeyword,"from to selector scope MatchFlag":y.keyword,NamespaceName:y.namespace,KeyframeName:y.labelName,KeyframeRangeName:y.operatorKeyword,TagName:y.tagName,ClassName:y.className,PseudoClassName:y.constant(y.className),IdName:y.labelName,"FeatureName PropertyName":y.propertyName,AttributeName:y.attributeName,NumberLiteral:y.number,KeywordQuery:y.keyword,UnaryQueryOp:y.operatorKeyword,"CallTag ValueName FontName":y.atom,VariableName:y.variableName,Callee:y.operatorKeyword,Unit:y.unit,"UniversalSelector NestingSelector":y.definitionOperator,"MatchOp CompareOp":y.compareOperator,"ChildOp SiblingOp, LogicOp":y.logicOperator,BinOp:y.arithmeticOperator,Important:y.modifier,Comment:y.blockComment,ColorLiteral:y.color,"ParenthesizedContent StringLiteral":y.string,":":y.punctuation,"PseudoOp #":y.derefOperator,"; , |":y.separator,"( )":y.paren,"[ ]":y.squareBracket,"{ }":y.brace}),Qz={__proto__:null,lang:44,"nth-child":44,"nth-last-child":44,"nth-of-type":44,"nth-last-of-type":44,dir:44,"host-context":44,if:90,url:132,"url-prefix":132,domain:132,regexp:132},kz={__proto__:null,or:104,and:104,not:112,only:112,layer:186},wz={__proto__:null,selector:118,layer:182},bz={__proto__:null,"@import":178,"@media":190,"@charset":194,"@namespace":198,"@keyframes":204,"@supports":216,"@scope":220,"@font-feature-values":226},Pz={__proto__:null,to:223},$z=zi.deserialize({version:14,states:"IpQYQdOOO#}QdOOP$UO`OOO%OQaO'#CfOOQP'#Ce'#CeO%VQdO'#CgO%[Q`O'#CgO%aQaO'#FdO&XQdO'#CkO&xQaO'#CcO'SQdO'#CnO'_QdO'#DtO'dQdO'#DvO'oQdO'#D}O'oQdO'#EQOOQP'#Fd'#FdO)OQhO'#EsOOQS'#Fc'#FcOOQS'#Ev'#EvQYQdOOO)VQdO'#EWO*cQhO'#E^O)VQdO'#E`O*jQdO'#EbO*uQdO'#EeO)zQhO'#EkO*}QdO'#EmO+YQdO'#EpO+_QaO'#CfO+fQ`O'#ETO+kQ`O'#FnO+vQdO'#FnQOQ`OOP,QO&jO'#CaPOOO)CAR)CAROOQP'#Ci'#CiOOQP,59R,59RO%VQdO,59ROOQP'#Cm'#CmOOQP,59V,59VO&XQdO,59VO,]QdO,59YO'_QdO,5:`O'dQdO,5:bO'oQdO,5:iO'oQdO,5:kO'oQdO,5:lO'oQdO'#E}O,hQ`O,58}O,pQdO'#ESOOQS,58},58}OOQP'#Cq'#CqOOQO'#Dr'#DrOOQP,59Y,59YO,wQ`O,59YO,|Q`O,59YOOQP'#Du'#DuOOQP,5:`,5:`O-RQpO'#DwO-^QdO'#DxO-cQ`O'#DxO-hQpO,5:bO.RQaO,5:iO.iQaO,5:lOOQW'#D^'#D^O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Q$O!dR%d$O_bOPco!R#Z$}^XOPco!R#Z$}Q!`]Q!a^Q#h|Q#i}Q#j!OQ#k!PQ$s#RQ%W#oR'S&]R%[#pQ!qdQ!zf[$V!m!n!o$Y$[$^Q$y#Yd%Y#p%Z%_&a&f&k'U'^'k'sQ%^#uQ%n$aS&U$y&WQ&[%UQ&}&VR'b&p]$X!m!n!o$Y$[$^Q!d`U!xe!q$eQ#QiQ#x!cS#{!d$OQ$Q!eQ%b#|Q%c#}Q%g$RS%r$g%tQ%w$jR'Z&iQ#z!cQ&h%`R'j'YR%i$RR%X#oQpPR#n!RQ!yeQ$d!qR%q$e",nodeNames:"⚠ Unit VariableName VariableName QueryCallee Comment StyleSheet RuleSet UniversalSelector TagSelector TagName NamespacedTagSelector NamespaceName TagName NestingSelector ClassSelector . ClassName PseudoClassSelector : :: PseudoClassName PseudoClassName ) ( ArgList ValueName ParenthesizedValue AtKeyword # ; ] [ BracketedValue } { BracedValue ColorLiteral NumberLiteral StringLiteral BinaryExpression BinOp CallExpression Callee IfExpression if ArgList IfBranch KeywordQuery FeatureQuery FeatureName BinaryQuery LogicOp ComparisonQuery CompareOp UnaryQuery UnaryQueryOp ParenthesizedQuery SelectorQuery selector ParenthesizedSelector CallQuery ArgList , PseudoQuery CallLiteral CallTag ParenthesizedContent PseudoClassName ArgList IdSelector IdName AttributeSelector AttributeName NamespacedAttribute NamespaceName AttributeName MatchOp MatchFlag ChildSelector ChildOp DescendantSelector SiblingSelector SiblingOp Block Declaration PropertyName Important ImportStatement import Layer layer LayerName layer MediaStatement media CharsetStatement charset NamespaceStatement namespace NamespaceName KeyframesStatement keyframes KeyframeName KeyframeList KeyframeSelector KeyframeRangeName SupportsStatement supports ScopeStatement scope to FontFeatureStatement font-feature-values FontName AtRule Styles",maxTerm:159,nodeProps:[["isolate",-2,5,39,""],["openedBy",23,"(",31,"[",34,"{"],["closedBy",24,")",32,"]",35,"}"]],propSources:[vz],skippedNodes:[0,5,117],repeatNodeCount:17,tokenData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q![CP![!c%j!c!}CP!}#T%j#T#oCP#o;'S%j;'S;=`%{<%lO%jhDRS!pWOy%jz;'S%j;'S;=`%{<%lO%jjDdSpYOy%jz;'S%j;'S;=`%{<%lO%jnDuSo^Oy%jz;'S%j;'S;=`%{<%lO%jjEWU!pWOy%jz#a%j#a#bEj#b;'S%j;'S;=`%{<%lO%jbEoU!e`Oy%jz#d%j#d#eFR#e;'S%j;'S;=`%{<%lO%jbFWU!e`Oy%jz#c%j#c#dFj#d;'S%j;'S;=`%{<%lO%jbFoU!e`Oy%jz#f%j#f#gGR#g;'S%j;'S;=`%{<%lO%jbGWU!e`Oy%jz#h%j#h#iGj#i;'S%j;'S;=`%{<%lO%jbGoU!e`Oy%jz#T%j#T#UHR#U;'S%j;'S;=`%{<%lO%jbHWU!e`Oy%jz#b%j#b#cHj#c;'S%j;'S;=`%{<%lO%jbHoU!e`Oy%jz#h%j#h#iIR#i;'S%j;'S;=`%{<%lO%jbIYS$cQ!e`Oy%jz;'S%j;'S;=`%{<%lO%jjIkSsYOy%jz;'S%j;'S;=`%{<%lO%jfI|U$XUOy%jz!_%j!_!`2n!`;'S%j;'S;=`%{<%lO%jjJeSrYOy%jz;'S%j;'S;=`%{<%lO%jfJvU!uQOy%jz!_%j!_!`2n!`;'S%j;'S;=`%{<%lO%j`K]P;=`<%l%Z",tokenizers:[Sz,xz,gz,yz,1,2,3,4,new _u("m~RRYZ[z{a~~g~aO$T~~dP!P!Qg~lO$U~~",28,142)],topRules:{StyleSheet:[0,6],Styles:[1,116]},dynamicPrecedences:{84:1},specialized:[{term:137,get:t=>Qz[t]||-1},{term:138,get:t=>kz[t]||-1},{term:4,get:t=>wz[t]||-1},{term:28,get:t=>bz[t]||-1},{term:136,get:t=>Pz[t]||-1}],tokenPrec:2256});let qh=null;function Vh(){if(!qh&&typeof document=="object"&&document.body){let{style:t}=document.body,e=[],n=new Set;for(let i in t)i!="cssText"&&i!="cssFloat"&&typeof t[i]=="string"&&(/[A-Z]/.test(i)&&(i=i.replace(/[A-Z]/g,r=>"-"+r.toLowerCase())),n.has(i)||(e.push(i),n.add(i)));qh=e.sort().map(i=>({type:"property",label:i,apply:i+": "}))}return qh||[]}const Ky=["active","after","any-link","autofill","backdrop","before","checked","cue","default","defined","disabled","empty","enabled","file-selector-button","first","first-child","first-letter","first-line","first-of-type","focus","focus-visible","focus-within","fullscreen","has","host","host-context","hover","in-range","indeterminate","invalid","is","lang","last-child","last-of-type","left","link","marker","modal","not","nth-child","nth-last-child","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","part","placeholder","placeholder-shown","read-only","read-write","required","right","root","scope","selection","slotted","target","target-text","valid","visited","where"].map(t=>({type:"class",label:t})),Jy=["above","absolute","activeborder","additive","activecaption","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","antialiased","appworkspace","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic-abegede-gez","ethiopic-halehame-aa-er","ethiopic-halehame-gez","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","graytext","grid","groove","hand","hard-light","help","hidden","hide","higher","highlight","highlighttext","horizontal","hsl","hsla","hue","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","justify","keep-all","landscape","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-hexadecimal","lower-latin","lower-norwegian","lowercase","ltr","luminosity","manipulation","match","matrix","matrix3d","medium","menu","menutext","message-box","middle","min-intrinsic","mix","monospace","move","multiple","multiple_mask_images","multiply","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","opacity","open-quote","optimizeLegibility","optimizeSpeed","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","self-start","self-end","semi-condensed","semi-expanded","separate","serif","show","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","text","text-bottom","text-top","textarea","textfield","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","to","top","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-latin","uppercase","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"].map(t=>({type:"keyword",label:t})).concat(["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","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","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","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"].map(t=>({type:"constant",label:t}))),Tz=["a","abbr","address","article","aside","b","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","dd","del","details","dfn","dialog","div","dl","dt","em","figcaption","figure","footer","form","header","hgroup","h1","h2","h3","h4","h5","h6","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","main","meter","nav","ol","output","p","pre","ruby","section","select","small","source","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","tr","u","ul"].map(t=>({type:"type",label:t})),Cz=["@charset","@color-profile","@container","@counter-style","@font-face","@font-feature-values","@font-palette-values","@import","@keyframes","@layer","@media","@namespace","@page","@position-try","@property","@scope","@starting-style","@supports","@view-transition"].map(t=>({type:"keyword",label:t})),En=/^(\w[\w-]*|-\w[\w-]*|)$/,Rz=/^-(-[\w-]*)?$/;function Xz(t,e){var n;if((t.name=="("||t.type.isError)&&(t=t.parent||t),t.name!="ArgList")return!1;let i=(n=t.parent)===null||n===void 0?void 0:n.firstChild;return(i==null?void 0:i.name)!="Callee"?!1:e.sliceString(i.from,i.to)=="var"}const e1=new hp,jz=["Declaration"];function Zz(t){for(let e=t;;){if(e.type.isTop)return e;if(!(e=e.parent))return t}}function _w(t,e,n){if(e.to-e.from>4096){let i=e1.get(e);if(i)return i;let r=[],s=new Set,l=e.cursor(le.IncludeAnonymous);if(l.firstChild())do for(let o of _w(t,l.node,n))s.has(o.label)||(s.add(o.label),r.push(o));while(l.nextSibling());return e1.set(e,r),r}else{let i=[],r=new Set;return e.cursor().iterate(s=>{var l;if(n(s)&&s.matchContext(jz)&&((l=s.node.nextSibling)===null||l===void 0?void 0:l.name)==":"){let o=t.sliceString(s.from,s.to);r.has(o)||(r.add(o),i.push({label:o,type:"variable"}))}}),i}}const Ez=t=>e=>{let{state:n,pos:i}=e,r=ue(n).resolveInner(i,-1),s=r.type.isError&&r.from==r.to-1&&n.doc.sliceString(r.from,r.to)=="-";if(r.name=="PropertyName"||(s||r.name=="TagName")&&/^(Block|Styles)$/.test(r.resolve(r.to).name))return{from:r.from,options:Vh(),validFor:En};if(r.name=="ValueName")return{from:r.from,options:Jy,validFor:En};if(r.name=="PseudoClassName")return{from:r.from,options:Ky,validFor:En};if(t(r)||(e.explicit||s)&&Xz(r,n.doc))return{from:t(r)||s?r.from:i,options:_w(n.doc,Zz(r),t),validFor:Rz};if(r.name=="TagName"){for(let{parent:a}=r;a;a=a.parent)if(a.name=="Block")return{from:r.from,options:Vh(),validFor:En};return{from:r.from,options:Tz,validFor:En}}if(r.name=="AtKeyword")return{from:r.from,options:Cz,validFor:En};if(!e.explicit)return null;let l=r.resolve(i),o=l.childBefore(i);return o&&o.name==":"&&l.name=="PseudoClassSelector"?{from:i,options:Ky,validFor:En}:o&&o.name==":"&&l.name=="Declaration"||l.name=="ArgList"?{from:i,options:Jy,validFor:En}:l.name=="Block"||l.name=="Styles"?{from:i,options:Vh(),validFor:En}:null},Az=Ez(t=>t.name=="VariableName"),Wu=Ei.define({name:"css",parser:$z.configure({props:[Vi.add({Declaration:ts()}),Ni.add({"Block KeyframeList":pc})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"}},indentOnInput:/^\s*\}$/,wordChars:"-"}});function _z(){return new Sr(Wu,Wu.data.of({autocomplete:Az}))}const Fs=["_blank","_self","_top","_parent"],Nh=["ascii","utf-8","utf-16","latin1","latin1"],Dh=["get","post","put","delete"],Yh=["application/x-www-form-urlencoded","multipart/form-data","text/plain"],wt=["true","false"],q={},zz={a:{attrs:{href:null,ping:null,type:null,media:null,target:Fs,hreflang:null}},abbr:q,address:q,area:{attrs:{alt:null,coords:null,href:null,target:null,ping:null,media:null,hreflang:null,type:null,shape:["default","rect","circle","poly"]}},article:q,aside:q,audio:{attrs:{src:null,mediagroup:null,crossorigin:["anonymous","use-credentials"],preload:["none","metadata","auto"],autoplay:["autoplay"],loop:["loop"],controls:["controls"]}},b:q,base:{attrs:{href:null,target:Fs}},bdi:q,bdo:q,blockquote:{attrs:{cite:null}},body:q,br:q,button:{attrs:{form:null,formaction:null,name:null,value:null,autofocus:["autofocus"],disabled:["autofocus"],formenctype:Yh,formmethod:Dh,formnovalidate:["novalidate"],formtarget:Fs,type:["submit","reset","button"]}},canvas:{attrs:{width:null,height:null}},caption:q,center:q,cite:q,code:q,col:{attrs:{span:null}},colgroup:{attrs:{span:null}},command:{attrs:{type:["command","checkbox","radio"],label:null,icon:null,radiogroup:null,command:null,title:null,disabled:["disabled"],checked:["checked"]}},data:{attrs:{value:null}},datagrid:{attrs:{disabled:["disabled"],multiple:["multiple"]}},datalist:{attrs:{data:null}},dd:q,del:{attrs:{cite:null,datetime:null}},details:{attrs:{open:["open"]}},dfn:q,div:q,dl:q,dt:q,em:q,embed:{attrs:{src:null,type:null,width:null,height:null}},eventsource:{attrs:{src:null}},fieldset:{attrs:{disabled:["disabled"],form:null,name:null}},figcaption:q,figure:q,footer:q,form:{attrs:{action:null,name:null,"accept-charset":Nh,autocomplete:["on","off"],enctype:Yh,method:Dh,novalidate:["novalidate"],target:Fs}},h1:q,h2:q,h3:q,h4:q,h5:q,h6:q,head:{children:["title","base","link","style","meta","script","noscript","command"]},header:q,hgroup:q,hr:q,html:{attrs:{manifest:null}},i:q,iframe:{attrs:{src:null,srcdoc:null,name:null,width:null,height:null,sandbox:["allow-top-navigation","allow-same-origin","allow-forms","allow-scripts"],seamless:["seamless"]}},img:{attrs:{alt:null,src:null,ismap:null,usemap:null,width:null,height:null,crossorigin:["anonymous","use-credentials"]}},input:{attrs:{alt:null,dirname:null,form:null,formaction:null,height:null,list:null,max:null,maxlength:null,min:null,name:null,pattern:null,placeholder:null,size:null,src:null,step:null,value:null,width:null,accept:["audio/*","video/*","image/*"],autocomplete:["on","off"],autofocus:["autofocus"],checked:["checked"],disabled:["disabled"],formenctype:Yh,formmethod:Dh,formnovalidate:["novalidate"],formtarget:Fs,multiple:["multiple"],readonly:["readonly"],required:["required"],type:["hidden","text","search","tel","url","email","password","datetime","date","month","week","time","datetime-local","number","range","color","checkbox","radio","file","submit","image","reset","button"]}},ins:{attrs:{cite:null,datetime:null}},kbd:q,keygen:{attrs:{challenge:null,form:null,name:null,autofocus:["autofocus"],disabled:["disabled"],keytype:["RSA"]}},label:{attrs:{for:null,form:null}},legend:q,li:{attrs:{value:null}},link:{attrs:{href:null,type:null,hreflang:null,media:null,sizes:["all","16x16","16x16 32x32","16x16 32x32 64x64"]}},map:{attrs:{name:null}},mark:q,menu:{attrs:{label:null,type:["list","context","toolbar"]}},meta:{attrs:{content:null,charset:Nh,name:["viewport","application-name","author","description","generator","keywords"],"http-equiv":["content-language","content-type","default-style","refresh"]}},meter:{attrs:{value:null,min:null,low:null,high:null,max:null,optimum:null}},nav:q,noscript:q,object:{attrs:{data:null,type:null,name:null,usemap:null,form:null,width:null,height:null,typemustmatch:["typemustmatch"]}},ol:{attrs:{reversed:["reversed"],start:null,type:["1","a","A","i","I"]},children:["li","script","template","ul","ol"]},optgroup:{attrs:{disabled:["disabled"],label:null}},option:{attrs:{disabled:["disabled"],label:null,selected:["selected"],value:null}},output:{attrs:{for:null,form:null,name:null}},p:q,param:{attrs:{name:null,value:null}},pre:q,progress:{attrs:{value:null,max:null}},q:{attrs:{cite:null}},rp:q,rt:q,ruby:q,samp:q,script:{attrs:{type:["text/javascript"],src:null,async:["async"],defer:["defer"],charset:Nh}},section:q,select:{attrs:{form:null,name:null,size:null,autofocus:["autofocus"],disabled:["disabled"],multiple:["multiple"]}},slot:{attrs:{name:null}},small:q,source:{attrs:{src:null,type:null,media:null}},span:q,strong:q,style:{attrs:{type:["text/css"],media:null,scoped:null}},sub:q,summary:q,sup:q,table:q,tbody:q,td:{attrs:{colspan:null,rowspan:null,headers:null}},template:q,textarea:{attrs:{dirname:null,form:null,maxlength:null,name:null,placeholder:null,rows:null,cols:null,autofocus:["autofocus"],disabled:["disabled"],readonly:["readonly"],required:["required"],wrap:["soft","hard"]}},tfoot:q,th:{attrs:{colspan:null,rowspan:null,headers:null,scope:["row","col","rowgroup","colgroup"]}},thead:q,time:{attrs:{datetime:null}},title:q,tr:q,track:{attrs:{src:null,label:null,default:null,kind:["subtitles","captions","descriptions","chapters","metadata"],srclang:null}},ul:{children:["li","script","template","ul","ol"]},var:q,video:{attrs:{src:null,poster:null,width:null,height:null,crossorigin:["anonymous","use-credentials"],preload:["auto","metadata","none"],autoplay:["autoplay"],mediagroup:["movie"],muted:["muted"],controls:["controls"]}},wbr:q},zw={accesskey:null,class:null,contenteditable:wt,contextmenu:null,dir:["ltr","rtl","auto"],draggable:["true","false","auto"],dropzone:["copy","move","link","string:","file:"],hidden:["hidden"],id:null,inert:["inert"],itemid:null,itemprop:null,itemref:null,itemscope:["itemscope"],itemtype:null,lang:["ar","bn","de","en-GB","en-US","es","fr","hi","id","ja","pa","pt","ru","tr","zh"],spellcheck:wt,autocorrect:wt,autocapitalize:wt,style:null,tabindex:null,title:null,translate:["yes","no"],rel:["stylesheet","alternate","author","bookmark","help","license","next","nofollow","noreferrer","prefetch","prev","search","tag"],role:"alert application article banner button cell checkbox complementary contentinfo dialog document feed figure form grid gridcell heading img list listbox listitem main navigation region row rowgroup search switch tab table tabpanel textbox timer".split(" "),"aria-activedescendant":null,"aria-atomic":wt,"aria-autocomplete":["inline","list","both","none"],"aria-busy":wt,"aria-checked":["true","false","mixed","undefined"],"aria-controls":null,"aria-describedby":null,"aria-disabled":wt,"aria-dropeffect":null,"aria-expanded":["true","false","undefined"],"aria-flowto":null,"aria-grabbed":["true","false","undefined"],"aria-haspopup":wt,"aria-hidden":wt,"aria-invalid":["true","false","grammar","spelling"],"aria-label":null,"aria-labelledby":null,"aria-level":null,"aria-live":["off","polite","assertive"],"aria-multiline":wt,"aria-multiselectable":wt,"aria-owns":null,"aria-posinset":null,"aria-pressed":["true","false","mixed","undefined"],"aria-readonly":wt,"aria-relevant":null,"aria-required":wt,"aria-selected":["true","false","undefined"],"aria-setsize":null,"aria-sort":["ascending","descending","none","other"],"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null},Mw="beforeunload copy cut dragstart dragover dragleave dragenter dragend drag paste focus blur change click load mousedown mouseenter mouseleave mouseup keydown keyup resize scroll unload".split(" ").map(t=>"on"+t);for(let t of Mw)zw[t]=null;class uo{constructor(e,n){this.tags={...zz,...e},this.globalAttrs={...zw,...n},this.allTags=Object.keys(this.tags),this.globalAttrNames=Object.keys(this.globalAttrs)}}uo.default=new uo;function vs(t,e,n=t.length){if(!e)return"";let i=e.firstChild,r=i&&i.getChild("TagName");return r?t.sliceString(r.from,Math.min(r.to,n)):""}function Qs(t,e=!1){for(;t;t=t.parent)if(t.name=="Element")if(e)e=!1;else return t;return null}function Lw(t,e,n){let i=n.tags[vs(t,Qs(e))];return(i==null?void 0:i.children)||n.allTags}function Fp(t,e){let n=[];for(let i=Qs(e);i&&!i.type.isTop;i=Qs(i.parent)){let r=vs(t,i);if(r&&i.lastChild.name=="CloseTag")break;r&&n.indexOf(r)<0&&(e.name=="EndTag"||e.from>=i.firstChild.to)&&n.push(r)}return n}const Ww=/^[:\-\.\w\u00b7-\uffff]*$/;function t1(t,e,n,i,r){let s=/\s*>/.test(t.sliceDoc(r,r+5))?"":">",l=Qs(n,n.name=="StartTag"||n.name=="TagName");return{from:i,to:r,options:Lw(t.doc,l,e).map(o=>({label:o,type:"type"})).concat(Fp(t.doc,n).map((o,a)=>({label:"/"+o,apply:"/"+o+s,type:"type",boost:99-a}))),validFor:/^\/?[:\-\.\w\u00b7-\uffff]*$/}}function n1(t,e,n,i){let r=/\s*>/.test(t.sliceDoc(i,i+5))?"":">";return{from:n,to:i,options:Fp(t.doc,e).map((s,l)=>({label:s,apply:s+r,type:"type",boost:99-l})),validFor:Ww}}function Mz(t,e,n,i){let r=[],s=0;for(let l of Lw(t.doc,n,e))r.push({label:"<"+l,type:"type"});for(let l of Fp(t.doc,n))r.push({label:"</"+l+">",type:"type",boost:99-s++});return{from:i,to:i,options:r,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}function Lz(t,e,n,i,r){let s=Qs(n),l=s?e.tags[vs(t.doc,s)]:null,o=l&&l.attrs?Object.keys(l.attrs):[],a=l&&l.globalAttrs===!1?o:o.length?o.concat(e.globalAttrNames):e.globalAttrNames;return{from:i,to:r,options:a.map(u=>({label:u,type:"property"})),validFor:Ww}}function Wz(t,e,n,i,r){var s;let l=(s=n.parent)===null||s===void 0?void 0:s.getChild("AttributeName"),o=[],a;if(l){let u=t.sliceDoc(l.from,l.to),c=e.globalAttrs[u];if(!c){let h=Qs(n),f=h?e.tags[vs(t.doc,h)]:null;c=(f==null?void 0:f.attrs)&&f.attrs[u]}if(c){let h=t.sliceDoc(i,r).toLowerCase(),f='"',d='"';/^['"]/.test(h)?(a=h[0]=='"'?/^[^"]*$/:/^[^']*$/,f="",d=t.sliceDoc(r,r+1)==h[0]?"":h[0],h=h.slice(1),i++):a=/^[^\s<>='"]*$/;for(let O of c)o.push({label:O,apply:f+O+d,type:"constant"})}}return{from:i,to:r,options:o,validFor:a}}function qw(t,e){let{state:n,pos:i}=e,r=ue(n).resolveInner(i,-1),s=r.resolve(i);for(let l=i,o;s==r&&(o=r.childBefore(l));){let a=o.lastChild;if(!a||!a.type.isError||a.from<a.to)break;s=r=o,l=a.from}return r.name=="TagName"?r.parent&&/CloseTag$/.test(r.parent.name)?n1(n,r,r.from,i):t1(n,t,r,r.from,i):r.name=="StartTag"||r.name=="IncompleteTag"?t1(n,t,r,i,i):r.name=="StartCloseTag"||r.name=="IncompleteCloseTag"?n1(n,r,i,i):r.name=="OpenTag"||r.name=="SelfClosingTag"||r.name=="AttributeName"?Lz(n,t,r,r.name=="AttributeName"?r.from:i,i):r.name=="Is"||r.name=="AttributeValue"||r.name=="UnquotedAttributeValue"?Wz(n,t,r,r.name=="Is"?i:r.from,i):e.explicit&&(s.name=="Element"||s.name=="Text"||s.name=="Document")?Mz(n,t,r,i):null}function qz(t){return qw(uo.default,t)}function Vz(t){let{extraTags:e,extraGlobalAttributes:n}=t,i=n||e?new uo(e,n):uo.default;return r=>qw(i,r)}const Nz=Cn.parser.configure({top:"SingleExpression"}),Vw=[{tag:"script",attrs:t=>t.type=="text/typescript"||t.lang=="ts",parser:Yk.parser},{tag:"script",attrs:t=>t.type=="text/babel"||t.type=="text/jsx",parser:Ik.parser},{tag:"script",attrs:t=>t.type=="text/typescript-jsx",parser:Bk.parser},{tag:"script",attrs(t){return/^(importmap|speculationrules|application\/(.+\+)?json)$/i.test(t.type)},parser:Nz},{tag:"script",attrs(t){return!t.type||/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i.test(t.type)},parser:Cn.parser},{tag:"style",attrs(t){return(!t.lang||t.lang=="css")&&(!t.type||/^(text\/)?(x-)?(stylesheet|css)$/i.test(t.type))},parser:Wu.parser}],Nw=[{name:"style",parser:Wu.parser.configure({top:"Styles"})}].concat(Mw.map(t=>({name:t,parser:Cn.parser}))),Dw=Ei.define({name:"html",parser:ez.configure({props:[Vi.add({Element(t){let e=/^(\s*)(<\/)?/.exec(t.textAfter);return t.node.to<=t.pos+e[0].length?t.continue():t.lineIndent(t.node.from)+(e[2]?0:t.unit)},"OpenTag CloseTag SelfClosingTag"(t){return t.column(t.node.from)+t.unit},Document(t){if(t.pos+/\s*/.exec(t.textAfter)[0].length<t.node.to)return t.continue();let e=null,n;for(let i=t.node;;){let r=i.lastChild;if(!r||r.name!="Element"||r.to!=i.to)break;e=i=r}return e&&!((n=e.lastChild)&&(n.name=="CloseTag"||n.name=="SelfClosingTag"))?t.lineIndent(e.from)+t.unit:null}}),Ni.add({Element(t){let e=t.firstChild,n=t.lastChild;return!e||e.name!="OpenTag"?null:{from:e.to,to:n.name=="CloseTag"?n.from:t.to}}}),yQ.add({"OpenTag CloseTag":t=>t.getChild("TagName")})]}),languageData:{commentTokens:{block:{open:"<!--",close:"-->"}},indentOnInput:/^\s*<\/\w+\W$/,wordChars:"-_"}}),La=Dw.configure({wrap:Xw(Vw,Nw)});function Dz(t={}){let e="",n;t.matchClosingTags===!1&&(e="noMatch"),t.selfClosingTags===!0&&(e=(e?e+" ":"")+"selfClosing"),(t.nestedLanguages&&t.nestedLanguages.length||t.nestedAttributes&&t.nestedAttributes.length)&&(n=Xw((t.nestedLanguages||[]).concat(Vw),(t.nestedAttributes||[]).concat(Nw)));let i=n?Dw.configure({wrap:n,dialect:e}):e?La.configure({dialect:e}):La;return new Sr(i,[La.data.of({autocomplete:Vz(t)}),t.autoCloseTags!==!1?Yz:[],Wd().support,_z().support])}const i1=new Set("area base br col command embed frame hr img input keygen link meta param source track wbr menuitem".split(" ")),Yz=X.inputHandler.of((t,e,n,i,r)=>{if(t.composing||t.state.readOnly||e!=n||i!=">"&&i!="/"||!La.isActiveAt(t.state,e,-1))return!1;let s=r(),{state:l}=s,o=l.changeByRange(a=>{var u,c,h;let f=l.doc.sliceString(a.from-1,a.to)==i,{head:d}=a,O=ue(l).resolveInner(d,-1),p;if(f&&i==">"&&O.name=="EndTag"){let v=O.parent;if(((c=(u=v.parent)===null||u===void 0?void 0:u.lastChild)===null||c===void 0?void 0:c.name)!="CloseTag"&&(p=vs(l.doc,v.parent,d))&&!i1.has(p)){let g=d+(l.doc.sliceString(d,d+1)===">"?1:0),m=`</${p}>`;return{range:a,changes:{from:d,to:g,insert:m}}}}else if(f&&i=="/"&&O.name=="IncompleteCloseTag"){let v=O.parent;if(O.from==d-2&&((h=v.lastChild)===null||h===void 0?void 0:h.name)!="CloseTag"&&(p=vs(l.doc,v,d))&&!i1.has(p)){let g=d+(l.doc.sliceString(d,d+1)===">"?1:0),m=`${p}>`;return{range:P.cursor(d+m.length,-1),changes:{from:d,to:g,insert:m}}}}return{range:a}});return o.changes.empty?!1:(t.dispatch([s,l.update(o,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}),Yw=dc({commentTokens:{block:{open:"<!--",close:"-->"}}}),Iw=new Y,Bw=n_.configure({props:[Ni.add(t=>!t.is("Block")||t.is("Document")||Ud(t)!=null||Iz(t)?void 0:(e,n)=>({from:n.doc.lineAt(e.from).to,to:e.to})),Iw.add(Ud),Vi.add({Document:()=>null}),gi.add({Document:Yw})]});function Ud(t){let e=/^(?:ATX|Setext)Heading(\d)$/.exec(t.name);return e?+e[1]:void 0}function Iz(t){return t.name=="OrderedList"||t.name=="BulletList"}function Bz(t,e){let n=t;for(;;){let i=n.nextSibling,r;if(!i||(r=Ud(i.type))!=null&&r<=e)break;n=i}return n.to}const Uz=lQ.of((t,e,n)=>{for(let i=ue(t).resolveInner(n,-1);i&&!(i.from<e);i=i.parent){let r=i.type.prop(Iw);if(r==null)continue;let s=Bz(i,r);if(s>n)return{from:n,to:s}}return null});function Hp(t){return new Rt(Yw,t,[],"markdown")}const Gz=Hp(Bw),Fz=Bw.configure([d_,p_,O_,m_,{props:[Ni.add({Table:(t,e)=>({from:e.doc.lineAt(t.from).to,to:t.to})})]}]),qu=Hp(Fz);function Hz(t,e){return n=>{if(n&&t){let i=null;if(n=/\S*/.exec(n)[0],typeof t=="function"?i=t(n):i=ku.matchLanguageName(t,n,!0),i instanceof ku)return i.support?i.support.language.parser:yr.getSkippingParser(i.load());if(i)return i.parser}return e?e.parser:null}}class Ih{constructor(e,n,i,r,s,l,o){this.node=e,this.from=n,this.to=i,this.spaceBefore=r,this.spaceAfter=s,this.type=l,this.item=o}blank(e,n=!0){let i=this.spaceBefore+(this.node.name=="Blockquote"?">":"");if(e!=null){for(;i.length<e;)i+=" ";return i}else{for(let r=this.to-this.from-i.length-this.spaceAfter.length;r>0;r--)i+=" ";return i+(n?this.spaceAfter:"")}}marker(e,n){let i=this.node.name=="OrderedList"?String(+Gw(this.item,e)[2]+n):"";return this.spaceBefore+i+this.type+this.spaceAfter}}function Uw(t,e){let n=[],i=[];for(let r=t;r;r=r.parent){if(r.name=="FencedCode")return i;(r.name=="ListItem"||r.name=="Blockquote")&&n.push(r)}for(let r=n.length-1;r>=0;r--){let s=n[r],l,o=e.lineAt(s.from),a=s.from-o.from;if(s.name=="Blockquote"&&(l=/^ *>( ?)/.exec(o.text.slice(a))))i.push(new Ih(s,a,a+l[0].length,"",l[1],">",null));else if(s.name=="ListItem"&&s.parent.name=="OrderedList"&&(l=/^( *)\d+([.)])( *)/.exec(o.text.slice(a)))){let u=l[3],c=l[0].length;u.length>=4&&(u=u.slice(0,u.length-4),c-=4),i.push(new Ih(s.parent,a,a+c,l[1],u,l[2],s))}else if(s.name=="ListItem"&&s.parent.name=="BulletList"&&(l=/^( *)([-+*])( {1,4}\[[ xX]\])?( +)/.exec(o.text.slice(a)))){let u=l[4],c=l[0].length;u.length>4&&(u=u.slice(0,u.length-4),c-=4);let h=l[2];l[3]&&(h+=l[3].replace(/[xX]/," ")),i.push(new Ih(s.parent,a,a+c,l[1],u,h,s))}}return i}function Gw(t,e){return/^(\s*)(\d+)(?=[.)])/.exec(e.sliceString(t.from,t.from+10))}function Bh(t,e,n,i=0){for(let r=-1,s=t;;){if(s.name=="ListItem"){let o=Gw(s,e),a=+o[2];if(r>=0){if(a!=r+1)return;n.push({from:s.from+o[1].length,to:s.from+o[0].length,insert:String(r+2+i)})}r=a}let l=s.nextSibling;if(!l)break;s=l}}function Kp(t,e){let n=/^[ \t]*/.exec(t)[0].length;if(!n||e.facet(Ts)!=" ")return t;let i=sn(t,4,n),r="";for(let s=i;s>0;)s>=4?(r+=" ",s-=4):(r+=" ",s--);return r+t.slice(n)}const Kz=(t={})=>({state:e,dispatch:n})=>{let i=ue(e),{doc:r}=e,s=null,l=e.changeByRange(o=>{if(!o.empty||!qu.isActiveAt(e,o.from,-1)&&!qu.isActiveAt(e,o.from,1))return s={range:o};let a=o.from,u=r.lineAt(a),c=Uw(i.resolveInner(a,-1),r);for(;c.length&&c[c.length-1].from>a-u.from;)c.pop();if(!c.length)return s={range:o};let h=c[c.length-1];if(h.to-h.spaceAfter.length>a-u.from)return s={range:o};let f=a>=h.to-h.spaceAfter.length&&!/\S/.test(u.text.slice(h.to));if(h.item&&f){let g=h.node.firstChild,m=h.node.getChild("ListItem","ListItem");if(g.to>=a||m&&m.to<a||u.from>0&&!/[^\s>]/.test(r.lineAt(u.from-1).text)||t.nonTightLists===!1){let x=c.length>1?c[c.length-2]:null,w,Q="";x&&x.item?(w=u.from+x.from,Q=x.marker(r,1)):w=u.from+(x?x.to:0);let k=[{from:w,to:a,insert:Q}];return h.node.name=="OrderedList"&&Bh(h.item,r,k,-2),x&&x.node.name=="OrderedList"&&Bh(x.item,r,k),{range:P.cursor(w+Q.length),changes:k}}else{let x=s1(c,e,u);return{range:P.cursor(a+x.length+1),changes:{from:u.from,insert:x+e.lineBreak}}}}if(h.node.name=="Blockquote"&&f&&u.from){let g=r.lineAt(u.from-1),m=/>\s*$/.exec(g.text);if(m&&m.index==h.from){let x=e.changes([{from:g.from+m.index,to:g.to},{from:u.from+h.from,to:u.to}]);return{range:o.map(x),changes:x}}}let d=[];h.node.name=="OrderedList"&&Bh(h.item,r,d);let O=h.item&&h.item.from<u.from,p="";if(!O||/^[\s\d.)\-+*>]*/.exec(u.text)[0].length>=h.to)for(let g=0,m=c.length-1;g<=m;g++)p+=g==m&&!O?c[g].marker(r,1):c[g].blank(g<m?sn(u.text,4,c[g+1].from)-p.length:null);let v=a;for(;v>u.from&&/\s/.test(u.text.charAt(v-u.from-1));)v--;return p=Kp(p,e),eM(h.node,e.doc)&&(p=s1(c,e,u)+e.lineBreak+p),d.push({from:v,to:a,insert:e.lineBreak+p}),{range:P.cursor(v+p.length+1),changes:d}});return s?!1:(n(e.update(l,{scrollIntoView:!0,userEvent:"input"})),!0)},Jz=Kz();function r1(t){return t.name=="QuoteMark"||t.name=="ListMark"}function eM(t,e){if(t.name!="OrderedList"&&t.name!="BulletList")return!1;let n=t.firstChild,i=t.getChild("ListItem","ListItem");if(!i)return!1;let r=e.lineAt(n.to),s=e.lineAt(i.from),l=/^[\s>]*$/.test(r.text);return r.number+(l?0:1)<s.number}function s1(t,e,n){let i="";for(let r=0,s=t.length-2;r<=s;r++)i+=t[r].blank(r<s?sn(n.text,4,t[r+1].from)-i.length:null,r<s);return Kp(i,e)}function tM(t,e){let n=t.resolveInner(e,-1),i=e;r1(n)&&(i=n.from,n=n.parent);for(let r;r=n.childBefore(i);)if(r1(r))i=r.from;else if(r.name=="OrderedList"||r.name=="BulletList")n=r.lastChild,i=n.to;else break;return n}const nM=({state:t,dispatch:e})=>{let n=ue(t),i=null,r=t.changeByRange(s=>{let l=s.from,{doc:o}=t;if(s.empty&&qu.isActiveAt(t,s.from)){let a=o.lineAt(l),u=Uw(tM(n,l),o);if(u.length){let c=u[u.length-1],h=c.to-c.spaceAfter.length+(c.spaceAfter?1:0);if(l-a.from>h&&!/\S/.test(a.text.slice(h,l-a.from)))return{range:P.cursor(a.from+h),changes:{from:a.from+h,to:l}};if(l-a.from==h&&(!c.item||a.from<=c.item.from||!/\S/.test(a.text.slice(0,c.to)))){let f=a.from+c.from;if(c.item&&c.node.from<c.item.from&&/\S/.test(a.text.slice(c.from,c.to))){let d=c.blank(sn(a.text,4,c.to)-sn(a.text,4,c.from));return f==a.from&&(d=Kp(d,t)),{range:P.cursor(f+d.length),changes:{from:f,to:a.from+c.to,insert:d}}}if(f<l)return{range:P.cursor(f),changes:{from:f,to:l}}}}}return i={range:s}});return i?!1:(e(t.update(r,{scrollIntoView:!0,userEvent:"delete"})),!0)},iM=[{key:"Enter",run:Jz},{key:"Backspace",run:nM}],Fw=Dz({matchClosingTags:!1});function rM(t={}){let{codeLanguages:e,defaultCodeLanguage:n,addKeymap:i=!0,base:{parser:r}=Gz,completeHTMLTags:s=!0,pasteURLAsLink:l=!0,htmlTagLanguage:o=Fw}=t;if(!(r instanceof wc))throw new RangeError("Base parser provided to `markdown` should be a Markdown parser");let a=t.extensions?[t.extensions]:[],u=[o.support,Uz],c;l&&u.push(aM),n instanceof Sr?(u.push(n.support),c=n.language):n&&(c=n);let h=e||c?Hz(e,c):void 0;a.push(r_({codeParser:h,htmlParser:o.language.parser})),i&&u.push(ni.high(Ps.of(iM)));let f=Hp(r.configure(a));return s&&u.push(f.data.of({autocomplete:sM})),new Sr(f,u)}function sM(t){let{state:e,pos:n}=t,i=/<[:\-\.\w\u00b7-\uffff]*$/.exec(e.sliceDoc(n-25,n));if(!i)return null;let r=ue(e).resolveInner(n,-1);for(;r&&!r.type.isTop;){if(r.name=="CodeBlock"||r.name=="FencedCode"||r.name=="ProcessingInstructionBlock"||r.name=="CommentBlock"||r.name=="Link"||r.name=="Image")return null;r=r.parent}return{from:n-i[0].length,to:n,options:lM(),validFor:/^<[:\-\.\w\u00b7-\uffff]*$/}}let Uh=null;function lM(){if(Uh)return Uh;let t=qz(new Pp(J.create({extensions:Fw}),0,!0));return Uh=t?t.options:[]}const oM=/code|horizontalrule|html|link|comment|processing|escape|entity|image|mark|url/i,aM=X.domEventHandlers({paste:(t,e)=>{var n;let{main:i}=e.state.selection;if(i.empty)return!1;let r=(n=t.clipboardData)===null||n===void 0?void 0:n.getData("text/plain");if(!r||!/^(https?:\/\/|mailto:|xmpp:|www\.)/.test(r)||(/^www\./.test(r)&&(r="https://"+r),!qu.isActiveAt(e.state,i.from,1)))return!1;let s=ue(e.state),l=!1;return s.iterate({from:i.from,to:i.to,enter:o=>{(o.from>i.from||oM.test(o.name))&&(l=!0)},leave:o=>{o.to<i.to&&(l=!0)}}),l?!1:(e.dispatch({changes:[{from:i.from,insert:"["},{from:i.to,insert:`](${r})`}],userEvent:"input.paste",scrollIntoView:!0}),!0)}}),uM=Cs.define([{tag:[y.heading,y.heading1,y.heading2,y.heading3,y.heading4,y.heading5,y.heading6],color:"#0550ae",fontWeight:"bold"},{tag:y.strong,fontWeight:"bold"},{tag:y.emphasis,fontStyle:"italic"},{tag:y.strikethrough,textDecoration:"line-through"},{tag:[y.link,y.url],color:"#0969da",textDecoration:"none"},{tag:y.monospace,color:"#0a3069"},{tag:y.quote,color:"#6e7781",fontStyle:"italic"},{tag:[y.meta,y.processingInstruction],color:"#8250df"},{tag:[y.list,y.contentSeparator],color:"#6e7781"},{tag:y.escape,color:"#6e7781"}]),Zs=[rM(),pp(uM),X.lineWrapping];function l1(t){return t.split("/").map(encodeURIComponent).join("/")}function cM(t){var n;switch(((n=t.split(".").pop())==null?void 0:n.toLowerCase())??""){case"md":case"markdown":return Zs;case"py":return[KE()];case"js":case"jsx":case"mjs":case"cjs":return[Wd({jsx:!0})];case"ts":case"tsx":return[Wd({jsx:!0,typescript:!0})];case"json":return[Wp()];case"sh":case"bash":case"zsh":return[mp.define(DA)];default:return[]}}function hM({name:t,queryString:e}){const[n,i]=T.useState([]),[r,s]=T.useState(null),[l,o]=T.useState(""),[a,u]=T.useState(!1),[c,h]=T.useState(null),[f,d]=T.useState(null),[O,p]=T.useState(!1);async function v(m){try{const x=await Ae(`/api/skills/${t}/files/${l1(m)}${e}`);s(m),o(x.content),d(x.mtime??null),u(!1),p(!1),h(null)}catch(x){h(x.message)}}T.useEffect(()=>{Ae(`/api/skills/${t}/files${e}`).then(m=>{i(m);const x=m.includes("SKILL.md")?"SKILL.md":m[0]??null;x&&v(x)}).catch(m=>h(m.message))},[t,e]);async function g(m=!1){if(r)try{await mo(`/api/skills/${t}/files/${l1(r)}${e}`,{content:l,baseMtime:m?void 0:f}),h(null),await v(r)}catch(x){x.code==="conflict"?p(!0):h(x.message)}}return S.jsxs("div",{className:"flex h-full min-h-0 flex-col gap-2",children:[c&&S.jsx("div",{className:"rounded bg-red-100 p-2 text-red-700",children:c}),O&&S.jsxs("div",{className:"flex flex-wrap items-center gap-3 rounded bg-amber-100 p-2 text-amber-800",children:[S.jsx("span",{children:"⚠ 文件已被外部修改,直接保存会覆盖外部改动。"}),S.jsx("button",{className:"rounded bg-amber-600 px-2 py-0.5 text-white",onClick:()=>r&&v(r),children:"重新加载"}),S.jsx("button",{className:"rounded border border-amber-600 px-2 py-0.5 text-amber-700",onClick:()=>g(!0),children:"仍然覆盖"})]}),S.jsxs("div",{className:"flex min-h-0 flex-1 items-stretch gap-3",children:[S.jsxs("ul",{className:"w-56 shrink-0 divide-y overflow-auto rounded border",children:[n.map(m=>S.jsx("li",{children:S.jsx("button",{className:`w-full truncate px-2 py-1 text-left font-mono text-sm ${m===r?"bg-blue-100":""}`,onClick:()=>v(m),children:m})},m)),n.length===0&&S.jsx("li",{className:"px-2 py-1 text-sm text-gray-500",children:"无可编辑文本文件"})]}),S.jsxs("div",{className:"flex min-w-0 min-h-0 grow flex-col gap-2",children:[S.jsx("div",{className:"min-h-0 flex-1 overflow-hidden rounded border",children:S.jsx(Yi,{className:"h-full",value:l,height:"100%",editable:!!r,extensions:r?cM(r):[],onChange:m=>{o(m),u(!0)}})}),S.jsx("div",{children:S.jsx("button",{className:"rounded bg-blue-600 px-3 py-1 text-white disabled:opacity-50",onClick:()=>g(),disabled:!r||!a,children:a?"保存 *":"保存"})})]})]})]})}function fM(t){return t?new Date(t).toLocaleString():"—"}function dM(){const{queryString:t,provider:e}=Xn(),[n,i]=T.useState([]),[r,s]=T.useState(null),[l,o]=T.useState(null),[a,u]=T.useState(""),[c,h]=T.useState("mtime"),f=e==="agents";async function d(){try{i(await Ae(f?"/api/shared-skills":`/api/skills${t}`)),o(null)}catch(Q){o(Q.message)}}T.useEffect(()=>{d()},[t]);async function O(Q){const k={name:Q.name,frontmatter:{name:Q.name,description:Q.description},body:Q.body};try{await pi(`/api/skills${t}`,k),s(null),await d()}catch(b){o(b.message)}}async function p(Q,k){try{await pi(`/api/skills/${Q}/toggle${t}`,{enabled:k}),await d()}catch(b){o(b.message)}}async function v(Q){try{await Wl(`/api/skills/${Q}${t}`),await d()}catch(k){o(k.message)}}async function g(Q,k,b){try{b?await Wl(`/api/shared-skills/${Q}/sync`,{target:k}):await pi(`/api/shared-skills/${Q}/sync`,{target:k}),await d()}catch($){o($.message)}}async function m(Q){if(confirm(`将「${Q}」复制到 ~/.agents/skills,并把原目录替换为链接。继续?`))try{await pi(`/api/skills/${Q}/make-shared${t}`,{}),await d()}catch(k){o(k.message)}}const x=a.trim().toLowerCase(),w=n.filter(Q=>!x||Q.name.toLowerCase().includes(x)).sort((Q,k)=>c==="mtime"?k.mtime-Q.mtime:Q.name.localeCompare(k.name));return S.jsxs("div",{className:"space-y-3",children:[S.jsxs("div",{className:"flex items-center justify-between",children:[S.jsx("h2",{className:"text-lg font-semibold",children:f?"公共 Skills(~/.agents/skills)":"Skills"}),S.jsx("button",{className:"rounded bg-blue-600 px-3 py-1 text-white",onClick:()=>s({mode:"new"}),children:"新增"})]}),S.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[S.jsx("input",{className:"min-w-0 flex-1 rounded border px-2 py-1 text-sm",placeholder:"按名称搜索技能…",value:a,onChange:Q=>u(Q.target.value)}),S.jsxs("select",{className:"rounded border px-2 py-1 text-sm",value:c,onChange:Q=>h(Q.target.value),children:[S.jsx("option",{value:"name",children:"按名称"}),S.jsx("option",{value:"mtime",children:"按最后修改"})]})]}),l&&S.jsx("div",{className:"rounded bg-red-100 p-2 text-red-700",children:l}),S.jsxs("div",{className:"grid gap-3 sm:grid-cols-2 lg:grid-cols-3",children:[w.map(Q=>S.jsxs("div",{className:"cursor-pointer rounded border p-3 transition hover:shadow",onClick:()=>{Q.broken||s({mode:"edit",entry:Q})},children:[S.jsxs("div",{className:"flex items-center justify-between gap-2",children:[S.jsxs("span",{className:"flex min-w-0 items-center gap-1",children:[S.jsx("span",{className:"truncate font-mono font-semibold",children:Q.name}),Q.broken?S.jsx("span",{className:"shrink-0 rounded bg-red-100 px-1 text-xs text-red-700",title:`断链 → ${Q.linkTarget??"?"}`,children:"断链"}):Q.linkKind==="shared"?S.jsx("span",{className:"shrink-0 rounded bg-green-100 px-1 text-xs text-green-700",title:`公共链接 → ${Q.linkTarget}`,children:"公共"}):Q.linkKind==="external"?S.jsx("span",{className:"shrink-0 rounded bg-amber-100 px-1 text-xs text-amber-700",title:`外部链接 → ${Q.linkTarget}`,children:"外部链接"}):null]}),!f&&S.jsxs("label",{className:"flex shrink-0 items-center gap-1 text-xs text-gray-500",onClick:k=>k.stopPropagation(),children:[S.jsx("input",{type:"checkbox",checked:Q.enabled,onChange:k=>p(Q.name,k.target.checked)}),Q.enabled?"启用":"禁用"]})]}),S.jsx("p",{className:"mt-1 line-clamp-2 min-h-[2.5rem] text-sm text-gray-500",children:Q.description}),S.jsxs("div",{className:"mt-1 text-xs text-gray-400",children:["修改于 ",fM(Q.mtime)]}),S.jsx("div",{className:"mt-0.5 break-all text-xs text-gray-400",children:Q.path}),Q.linkTarget&&S.jsxs("div",{className:"mt-0.5 break-all text-xs text-amber-700",children:["链接 → ",Q.linkTarget]}),S.jsxs("div",{className:"mt-2 flex flex-wrap items-center justify-end gap-2",children:[f&&Q.sync&&["claude","codex"].map(k=>{const b=Q.sync[k],$=k==="claude"?"Claude":"Codex";return b==="conflict"?S.jsxs("span",{className:"rounded bg-amber-100 px-2 py-1 text-xs text-amber-700",title:`${$} 的 skills 目录存在同名条目且不是指向本技能的链接,请手动处理`,children:[$," 冲突"]},k):S.jsx("button",{className:`rounded px-2 py-1 text-xs ${b==="linked"?"bg-green-100 text-green-700":"bg-gray-100 text-gray-700"}`,title:b==="linked"?`已同步,点击取消(删除 ${$} 侧链接)`:`在 ${$} 的 skills 目录创建链接`,onClick:z=>{z.stopPropagation(),g(Q.name,k,b==="linked")},children:b==="linked"?`✓ ${$}`:`同步到 ${$}`},k)}),!f&&!Q.linkTarget&&!Q.broken&&Q.enabled&&S.jsx("button",{className:"rounded bg-green-100 px-2 py-1 text-green-700",onClick:k=>{k.stopPropagation(),m(Q.name)},children:"转公共"}),S.jsx("button",{className:"rounded bg-red-100 px-2 py-1 text-red-700",onClick:k=>{k.stopPropagation(),v(Q.name)},children:"删除"})]})]},Q.name)),w.length===0&&S.jsx("div",{className:"text-sm text-gray-500",children:n.length===0?"暂无技能":"无匹配技能"})]}),S.jsx(Rn,{open:(r==null?void 0:r.mode)==="new",title:"新增技能",onClose:()=>s(null),children:S.jsx(q$,{onSubmit:O,onCancel:()=>s(null)})}),S.jsx(Rn,{open:(r==null?void 0:r.mode)==="edit",title:(r==null?void 0:r.mode)==="edit"?r.entry.name:"",subtitle:(r==null?void 0:r.mode)==="edit"?r.entry.linkTarget?`${r.entry.path} → ${r.entry.linkTarget}`:r.entry.path:void 0,width:"max-w-5xl",onClose:()=>s(null),children:(r==null?void 0:r.mode)==="edit"&&S.jsx(hM,{name:r.entry.name,queryString:t})})]})}function Hw({title:t,apiBase:e,template:n}){const{queryString:i}=Xn(),[r,s]=T.useState([]),[l,o]=T.useState(null),[a,u]=T.useState(null);async function c(){try{s(await Ae(`${e}${i}`)),u(null)}catch(d){u(d.message)}}T.useEffect(()=>{c()},[i]);async function h(d,O){try{await pi(`${e}${i}`,{name:d,content:O}),o(null),await c()}catch(p){u(p.message)}}async function f(d){try{await Wl(`${e}/${d}${i}`),await c()}catch(O){u(O.message)}}return S.jsxs("div",{className:"space-y-3",children:[S.jsxs("div",{className:"flex items-center justify-between",children:[S.jsx("h2",{className:"text-lg font-semibold",children:t}),S.jsx("button",{className:"rounded bg-blue-600 px-3 py-1 text-white",onClick:()=>o({mode:"new"}),children:"新增"})]}),a&&S.jsx("div",{className:"rounded bg-red-100 p-2 text-red-700",children:a}),S.jsxs("div",{className:"grid gap-3 sm:grid-cols-2 lg:grid-cols-3",children:[r.map(d=>S.jsxs("div",{className:"cursor-pointer rounded border p-3 transition hover:shadow",onClick:()=>o({mode:"edit",entry:d}),children:[S.jsx("div",{className:"truncate font-mono font-semibold",children:d.name}),S.jsx("p",{className:"mt-1 line-clamp-2 min-h-[2.5rem] text-sm text-gray-500",children:d.description||"(无描述)"}),S.jsx("div",{className:"mt-1 break-all text-xs text-gray-400",children:d.path}),S.jsx("div",{className:"mt-2 flex justify-end",children:S.jsx("button",{className:"rounded bg-red-100 px-2 py-1 text-red-700",onClick:O=>{O.stopPropagation(),f(d.name)},children:"删除"})})]},d.name)),r.length===0&&S.jsx("div",{className:"text-sm text-gray-500",children:"暂无内容"})]}),S.jsx(Rn,{open:(l==null?void 0:l.mode)==="new",title:`新增 ${t}`,onClose:()=>o(null),children:S.jsx(OM,{template:n,onSubmit:h,onCancel:()=>o(null)})}),S.jsx(Rn,{open:(l==null?void 0:l.mode)==="edit",title:(l==null?void 0:l.mode)==="edit"?l.entry.name:"",subtitle:(l==null?void 0:l.mode)==="edit"?l.entry.path:void 0,width:"max-w-5xl",onClose:()=>o(null),children:(l==null?void 0:l.mode)==="edit"&&S.jsx(pM,{name:l.entry.name,apiBase:e,queryString:i})})]})}function OM({template:t,onSubmit:e,onCancel:n}){const[i,r]=T.useState(""),[s,l]=T.useState(""),[o,a]=T.useState(!1),u=o?s:t(i);return S.jsxs("div",{className:"space-y-2",children:[S.jsx("input",{className:"w-full rounded border px-2 py-1",placeholder:"名称(文件名,不含 .md)",value:i,onChange:c=>r(c.target.value)}),S.jsx("div",{className:"overflow-hidden rounded border",children:S.jsx(Yi,{value:u,height:"60vh",extensions:Zs,onChange:c=>{l(c),a(!0)}})}),S.jsxs("div",{className:"flex gap-2",children:[S.jsx("button",{className:"rounded bg-blue-600 px-3 py-1 text-white disabled:opacity-50",disabled:!i.trim(),onClick:()=>e(i.trim(),u),children:"保存"}),S.jsx("button",{className:"rounded bg-gray-200 px-3 py-1",onClick:n,children:"取消"})]})]})}function pM({name:t,apiBase:e,queryString:n}){const[i,r]=T.useState(""),[s,l]=T.useState(!1),[o,a]=T.useState(!1),[u,c]=T.useState(null),[h,f]=T.useState(null),[d,O]=T.useState(!1);async function p(){try{const g=await Ae(`${e}/${t}${n}`);r(g.content),f(g.mtime??null),l(!1),O(!1),c(null)}catch(g){c(g.message)}}T.useEffect(()=>{p(),a(!1)},[t,e,n]);async function v(g=!1){try{await mo(`${e}/${t}${n}`,{content:i,baseMtime:g?void 0:h}),a(!0),c(null),await p()}catch(m){m.code==="conflict"?O(!0):c(m.message)}}return S.jsxs("div",{className:"flex h-full min-h-0 flex-col gap-2",children:[u&&S.jsx("div",{className:"rounded bg-red-100 p-2 text-red-700",children:u}),d&&S.jsxs("div",{className:"flex flex-wrap items-center gap-3 rounded bg-amber-100 p-2 text-amber-800",children:[S.jsx("span",{children:"⚠ 文件已被外部修改,直接保存会覆盖外部改动。"}),S.jsx("button",{className:"rounded bg-amber-600 px-2 py-0.5 text-white",onClick:p,children:"重新加载"}),S.jsx("button",{className:"rounded border border-amber-600 px-2 py-0.5 text-amber-700",onClick:()=>v(!0),children:"仍然覆盖"})]}),S.jsx("div",{className:"min-h-0 flex-1 overflow-hidden rounded border",children:S.jsx(Yi,{className:"h-full",value:i,height:"100%",extensions:Zs,onChange:g=>{r(g),l(!0),a(!1)}})}),S.jsxs("div",{className:"flex items-center gap-3",children:[S.jsx("button",{className:"rounded bg-blue-600 px-3 py-1 text-white disabled:opacity-50",onClick:()=>v(),disabled:!s,children:s?"保存 *":"保存"}),o&&!s&&S.jsx("span",{className:"text-sm text-green-600",children:"已保存"})]})]})}const mM=t=>`---
73
73
  name: ${t}
74
74
  description:
75
75
  tools:
@@ -4,7 +4,7 @@
4
4
  <meta charset="UTF-8" />
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
6
  <title>CCPanel</title>
7
- <script type="module" crossorigin src="/assets/index-XKaR9SwA.js"></script>
7
+ <script type="module" crossorigin src="/assets/index-4HCcippd.js"></script>
8
8
  <link rel="stylesheet" crossorigin href="/assets/index-B5vT_l-U.css">
9
9
  </head>
10
10
  <body>