@ylzcc/editor 0.2.18 → 0.2.19

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/dist/editor.es.js CHANGED
@@ -94545,8 +94545,8 @@ const LinkComponent = (Ff) => {
94545
94545
  const rme = zP >= nme && zP < nme + tme.nodeSize;
94546
94546
  if (tme.type.name === "active" && rme) {
94547
94547
  const ime = Decoration.node(nme, nme + tme.nodeSize, {
94548
- // class: 'tiptap-active-focus',
94549
- style: "outline: 2px solid #1677ff;"
94548
+ class: "tiptap-active-focus"
94549
+ // style: 'outline: 2px solid #1677ff;'
94550
94550
  });
94551
94551
  eme.push(ime);
94552
94552
  }
@@ -454,7 +454,7 @@ html body {
454
454
  `,EMOJI_VARIATION="️",EMOJI_JOINER="‍";let tlds=null,utlds=null;function init$2(Ff){Ff===void 0&&(Ff=[]);const kh={};State.groups=kh;const x_=new State;tlds==null&&(tlds=decodeTlds(encodedTlds)),utlds==null&&(utlds=decodeTlds(encodedUtlds)),tt$1(x_,"'",APOSTROPHE),tt$1(x_,"{",OPENBRACE),tt$1(x_,"}",CLOSEBRACE),tt$1(x_,"[",OPENBRACKET),tt$1(x_,"]",CLOSEBRACKET),tt$1(x_,"(",OPENPAREN),tt$1(x_,")",CLOSEPAREN),tt$1(x_,"<",OPENANGLEBRACKET),tt$1(x_,">",CLOSEANGLEBRACKET),tt$1(x_,"(",FULLWIDTHLEFTPAREN),tt$1(x_,")",FULLWIDTHRIGHTPAREN),tt$1(x_,"「",LEFTCORNERBRACKET),tt$1(x_,"」",RIGHTCORNERBRACKET),tt$1(x_,"『",LEFTWHITECORNERBRACKET),tt$1(x_,"』",RIGHTWHITECORNERBRACKET),tt$1(x_,"<",FULLWIDTHLESSTHAN),tt$1(x_,">",FULLWIDTHGREATERTHAN),tt$1(x_,"&",AMPERSAND),tt$1(x_,"*",ASTERISK),tt$1(x_,"@",AT$1),tt$1(x_,"`",BACKTICK),tt$1(x_,"^",CARET),tt$1(x_,":",COLON),tt$1(x_,",",COMMA),tt$1(x_,"$",DOLLAR),tt$1(x_,".",DOT),tt$1(x_,"=",EQUALS),tt$1(x_,"!",EXCLAMATION),tt$1(x_,"-",HYPHEN),tt$1(x_,"%",PERCENT),tt$1(x_,"|",PIPE),tt$1(x_,"+",PLUS),tt$1(x_,"#",POUND),tt$1(x_,"?",QUERY),tt$1(x_,'"',QUOTE),tt$1(x_,"/",SLASH),tt$1(x_,";",SEMI),tt$1(x_,"~",TILDE),tt$1(x_,"_",UNDERSCORE),tt$1(x_,"\\",BACKSLASH);const B_=tr$1(x_,DIGIT,NUM,{[numeric]:!0});tr$1(B_,DIGIT,B_);const $_=tr$1(x_,ASCII_LETTER,WORD,{[ascii]:!0});tr$1($_,ASCII_LETTER,$_);const $P=tr$1(x_,LETTER,UWORD,{[alpha]:!0});tr$1($P,ASCII_LETTER),tr$1($P,LETTER,$P);const zP=tr$1(x_,SPACE,WS$1,{[whitespace]:!0});tt$1(x_,NL$2,NL$1,{[whitespace]:!0}),tt$1(zP,NL$2),tr$1(zP,SPACE,zP);const eme=tr$1(x_,EMOJI,EMOJI$1,{[emoji]:!0});tr$1(eme,EMOJI,eme),tt$1(eme,EMOJI_VARIATION,eme);const tme=tt$1(eme,EMOJI_JOINER);tr$1(tme,EMOJI,eme);const nme=[[ASCII_LETTER,$_]],rme=[[ASCII_LETTER,null],[LETTER,$P]];for(let ime=0;ime<tlds.length;ime++)fastts(x_,tlds[ime],TLD,WORD,nme);for(let ime=0;ime<utlds.length;ime++)fastts(x_,utlds[ime],UTLD,UWORD,rme);addToGroups(TLD,{tld:!0,ascii:!0},kh),addToGroups(UTLD,{utld:!0,alpha:!0},kh),fastts(x_,"file",SCHEME,WORD,nme),fastts(x_,"mailto",SCHEME,WORD,nme),fastts(x_,"http",SLASH_SCHEME,WORD,nme),fastts(x_,"https",SLASH_SCHEME,WORD,nme),fastts(x_,"ftp",SLASH_SCHEME,WORD,nme),fastts(x_,"ftps",SLASH_SCHEME,WORD,nme),addToGroups(SCHEME,{scheme:!0,ascii:!0},kh),addToGroups(SLASH_SCHEME,{slashscheme:!0,ascii:!0},kh),Ff=Ff.sort((ime,ome)=>ime[0]>ome[0]?1:-1);for(let ime=0;ime<Ff.length;ime++){const ome=Ff[ime][0],cme=Ff[ime][1]?{[scheme]:!0}:{[slashscheme]:!0};ome.indexOf("-")>=0?cme[domain]=!0:ASCII_LETTER.test(ome)?DIGIT.test(ome)?cme[asciinumeric]=!0:cme[ascii]=!0:cme[numeric]=!0,ts$1(x_,ome,ome,cme)}return ts$1(x_,"localhost",LOCALHOST,{ascii:!0}),x_.jd=new State(SYM),{start:x_,tokens:assign({groups:kh},tk$1)}}function run$1(Ff,kh){const x_=stringToArray(kh.replace(/[A-Z]/g,eme=>eme.toLowerCase())),B_=x_.length,$_=[];let $P=0,zP=0;for(;zP<B_;){let eme=Ff,tme=null,nme=0,rme=null,ime=-1,ome=-1;for(;zP<B_&&(tme=eme.go(x_[zP]));)eme=tme,eme.accepts()?(ime=0,ome=0,rme=eme):ime>=0&&(ime+=x_[zP].length,ome++),nme+=x_[zP].length,$P+=x_[zP].length,zP++;$P-=ime,zP-=ome,nme-=ime,$_.push({t:rme.t,v:kh.slice($P-nme,$P),s:$P-nme,e:$P})}return $_}function stringToArray(Ff){const kh=[],x_=Ff.length;let B_=0;for(;B_<x_;){let $_=Ff.charCodeAt(B_),$P,zP=$_<55296||$_>56319||B_+1===x_||($P=Ff.charCodeAt(B_+1))<56320||$P>57343?Ff[B_]:Ff.slice(B_,B_+2);kh.push(zP),B_+=zP.length}return kh}function fastts(Ff,kh,x_,B_,$_){let $P;const zP=kh.length;for(let eme=0;eme<zP-1;eme++){const tme=kh[eme];Ff.j[tme]?$P=Ff.j[tme]:($P=new State(B_),$P.jr=$_.slice(),Ff.j[tme]=$P),Ff=$P}return $P=new State(x_),$P.jr=$_.slice(),Ff.j[kh[zP-1]]=$P,$P}function decodeTlds(Ff){const kh=[],x_=[];let B_=0,$_="0123456789";for(;B_<Ff.length;){let $P=0;for(;$_.indexOf(Ff[B_+$P])>=0;)$P++;if($P>0){kh.push(x_.join(""));for(let zP=parseInt(Ff.substring(B_,B_+$P),10);zP>0;zP--)x_.pop();B_+=$P}else x_.push(Ff[B_]),B_++}return kh}const defaults={defaultProtocol:"http",events:null,format:noop,formatHref:noop,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function Options(Ff,kh){kh===void 0&&(kh=null);let x_=assign({},defaults);Ff&&(x_=assign(x_,Ff instanceof Options?Ff.o:Ff));const B_=x_.ignoreTags,$_=[];for(let $P=0;$P<B_.length;$P++)$_.push(B_[$P].toUpperCase());this.o=x_,kh&&(this.defaultRender=kh),this.ignoreTags=$_}Options.prototype={o:defaults,ignoreTags:[],defaultRender(Ff){return Ff},check(Ff){return this.get("validate",Ff.toString(),Ff)},get(Ff,kh,x_){const B_=kh!=null;let $_=this.o[Ff];return $_&&(typeof $_=="object"?($_=x_.t in $_?$_[x_.t]:defaults[Ff],typeof $_=="function"&&B_&&($_=$_(kh,x_))):typeof $_=="function"&&B_&&($_=$_(kh,x_.t,x_)),$_)},getObj(Ff,kh,x_){let B_=this.o[Ff];return typeof B_=="function"&&kh!=null&&(B_=B_(kh,x_.t,x_)),B_},render(Ff){const kh=Ff.render(this);return(this.get("render",null,Ff)||this.defaultRender)(kh,Ff.t,Ff)}};function noop(Ff){return Ff}function MultiToken(Ff,kh){this.t="token",this.v=Ff,this.tk=kh}MultiToken.prototype={isLink:!1,toString(){return this.v},toHref(Ff){return this.toString()},toFormattedString(Ff){const kh=this.toString(),x_=Ff.get("truncate",kh,this),B_=Ff.get("format",kh,this);return x_&&B_.length>x_?B_.substring(0,x_)+"…":B_},toFormattedHref(Ff){return Ff.get("formatHref",this.toHref(Ff.get("defaultProtocol")),this)},startIndex(){return this.tk[0].s},endIndex(){return this.tk[this.tk.length-1].e},toObject(Ff){return Ff===void 0&&(Ff=defaults.defaultProtocol),{type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(Ff),start:this.startIndex(),end:this.endIndex()}},toFormattedObject(Ff){return{type:this.t,value:this.toFormattedString(Ff),isLink:this.isLink,href:this.toFormattedHref(Ff),start:this.startIndex(),end:this.endIndex()}},validate(Ff){return Ff.get("validate",this.toString(),this)},render(Ff){const kh=this,x_=this.toHref(Ff.get("defaultProtocol")),B_=Ff.get("formatHref",x_,this),$_=Ff.get("tagName",x_,kh),$P=this.toFormattedString(Ff),zP={},eme=Ff.get("className",x_,kh),tme=Ff.get("target",x_,kh),nme=Ff.get("rel",x_,kh),rme=Ff.getObj("attributes",x_,kh),ime=Ff.getObj("events",x_,kh);return zP.href=B_,eme&&(zP.class=eme),tme&&(zP.target=tme),nme&&(zP.rel=nme),rme&&assign(zP,rme),{tagName:$_,attributes:zP,content:$P,eventListeners:ime}}};function createTokenClass(Ff,kh){class x_ extends MultiToken{constructor($_,$P){super($_,$P),this.t=Ff}}for(const B_ in kh)x_.prototype[B_]=kh[B_];return x_.t=Ff,x_}const Email=createTokenClass("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),Text=createTokenClass("text"),Nl$1=createTokenClass("nl"),Url=createTokenClass("url",{isLink:!0,toHref(Ff){return Ff===void 0&&(Ff=defaults.defaultProtocol),this.hasProtocol()?this.v:`${Ff}://${this.v}`},hasProtocol(){const Ff=this.tk;return Ff.length>=2&&Ff[0].t!==LOCALHOST&&Ff[1].t===COLON}}),makeState=Ff=>new State(Ff);function init$1(Ff){let{groups:kh}=Ff;const x_=kh.domain.concat([AMPERSAND,ASTERISK,AT$1,BACKSLASH,BACKTICK,CARET,DOLLAR,EQUALS,HYPHEN,NUM,PERCENT,PIPE,PLUS,POUND,SLASH,SYM,TILDE,UNDERSCORE]),B_=[APOSTROPHE,COLON,COMMA,DOT,EXCLAMATION,QUERY,QUOTE,SEMI,OPENANGLEBRACKET,CLOSEANGLEBRACKET,OPENBRACE,CLOSEBRACE,CLOSEBRACKET,OPENBRACKET,OPENPAREN,CLOSEPAREN,FULLWIDTHLEFTPAREN,FULLWIDTHRIGHTPAREN,LEFTCORNERBRACKET,RIGHTCORNERBRACKET,LEFTWHITECORNERBRACKET,RIGHTWHITECORNERBRACKET,FULLWIDTHLESSTHAN,FULLWIDTHGREATERTHAN],$_=[AMPERSAND,APOSTROPHE,ASTERISK,BACKSLASH,BACKTICK,CARET,DOLLAR,EQUALS,HYPHEN,OPENBRACE,CLOSEBRACE,PERCENT,PIPE,PLUS,POUND,QUERY,SLASH,SYM,TILDE,UNDERSCORE],$P=makeState(),zP=tt$1($P,TILDE);ta$1(zP,$_,zP),ta$1(zP,kh.domain,zP);const eme=makeState(),tme=makeState(),nme=makeState();ta$1($P,kh.domain,eme),ta$1($P,kh.scheme,tme),ta$1($P,kh.slashscheme,nme),ta$1(eme,$_,zP),ta$1(eme,kh.domain,eme);const rme=tt$1(eme,AT$1);tt$1(zP,AT$1,rme),tt$1(tme,AT$1,rme),tt$1(nme,AT$1,rme);const ime=tt$1(zP,DOT);ta$1(ime,$_,zP),ta$1(ime,kh.domain,zP);const ome=makeState();ta$1(rme,kh.domain,ome),ta$1(ome,kh.domain,ome);const ame=tt$1(ome,DOT);ta$1(ame,kh.domain,ome);const cme=makeState(Email);ta$1(ame,kh.tld,cme),ta$1(ame,kh.utld,cme),tt$1(rme,LOCALHOST,cme);const ume=tt$1(ome,HYPHEN);ta$1(ume,kh.domain,ome),ta$1(cme,kh.domain,ome),tt$1(cme,DOT,ame),tt$1(cme,HYPHEN,ume);const sme=tt$1(cme,COLON);ta$1(sme,kh.numeric,Email);const lme=tt$1(eme,HYPHEN),dme=tt$1(eme,DOT);ta$1(lme,kh.domain,eme),ta$1(dme,$_,zP),ta$1(dme,kh.domain,eme);const fme=makeState(Url);ta$1(dme,kh.tld,fme),ta$1(dme,kh.utld,fme),ta$1(fme,kh.domain,eme),ta$1(fme,$_,zP),tt$1(fme,DOT,dme),tt$1(fme,HYPHEN,lme),tt$1(fme,AT$1,rme);const pme=tt$1(fme,COLON),hme=makeState(Url);ta$1(pme,kh.numeric,hme);const mme=makeState(Url),_me=makeState();ta$1(mme,x_,mme),ta$1(mme,B_,_me),ta$1(_me,x_,mme),ta$1(_me,B_,_me),tt$1(fme,SLASH,mme),tt$1(hme,SLASH,mme);const gme=tt$1(tme,COLON),vme=tt$1(nme,COLON),Eme=tt$1(vme,SLASH),Sme=tt$1(Eme,SLASH);ta$1(tme,kh.domain,eme),tt$1(tme,DOT,dme),tt$1(tme,HYPHEN,lme),ta$1(nme,kh.domain,eme),tt$1(nme,DOT,dme),tt$1(nme,HYPHEN,lme),ta$1(gme,kh.domain,mme),tt$1(gme,SLASH,mme),ta$1(Sme,kh.domain,mme),ta$1(Sme,x_,mme),tt$1(Sme,SLASH,mme);const bme=[[OPENBRACE,CLOSEBRACE],[OPENBRACKET,CLOSEBRACKET],[OPENPAREN,CLOSEPAREN],[OPENANGLEBRACKET,CLOSEANGLEBRACKET],[FULLWIDTHLEFTPAREN,FULLWIDTHRIGHTPAREN],[LEFTCORNERBRACKET,RIGHTCORNERBRACKET],[LEFTWHITECORNERBRACKET,RIGHTWHITECORNERBRACKET],[FULLWIDTHLESSTHAN,FULLWIDTHGREATERTHAN]];for(let Rme=0;Rme<bme.length;Rme++){const[Ome,Pme]=bme[Rme],Lme=tt$1(mme,Ome);tt$1(_me,Ome,Lme),tt$1(Lme,Pme,mme);const Dme=makeState(Url);ta$1(Lme,x_,Dme);const yme=makeState();ta$1(Lme,B_),ta$1(Dme,x_,Dme),ta$1(Dme,B_,yme),ta$1(yme,x_,Dme),ta$1(yme,B_,yme),tt$1(Dme,Pme,mme),tt$1(yme,Pme,mme)}return tt$1($P,LOCALHOST,fme),tt$1($P,NL$1,Nl$1),{start:$P,tokens:tk$1}}function run(Ff,kh,x_){let B_=x_.length,$_=0,$P=[],zP=[];for(;$_<B_;){let eme=Ff,tme=null,nme=null,rme=0,ime=null,ome=-1;for(;$_<B_&&!(tme=eme.go(x_[$_].t));)zP.push(x_[$_++]);for(;$_<B_&&(nme=tme||eme.go(x_[$_].t));)tme=null,eme=nme,eme.accepts()?(ome=0,ime=eme):ome>=0&&ome++,$_++,rme++;if(ome<0)$_-=rme,$_<B_&&(zP.push(x_[$_]),$_++);else{zP.length>0&&($P.push(initMultiToken(Text,kh,zP)),zP=[]),$_-=ome,rme-=ome;const ame=ime.t,cme=x_.slice($_-rme,$_);$P.push(initMultiToken(ame,kh,cme))}}return zP.length>0&&$P.push(initMultiToken(Text,kh,zP)),$P}function initMultiToken(Ff,kh,x_){const B_=x_[0].s,$_=x_[x_.length-1].e,$P=kh.slice(B_,$_);return new Ff($P,x_)}const warn=typeof console<"u"&&console&&console.warn||(()=>{}),warnAdvice="until manual call of linkify.init(). Register all schemes and plugins before invoking linkify the first time.",INIT={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function reset(){State.groups={},INIT.scanner=null,INIT.parser=null,INIT.tokenQueue=[],INIT.pluginQueue=[],INIT.customSchemes=[],INIT.initialized=!1}function registerCustomProtocol(Ff,kh){if(kh===void 0&&(kh=!1),INIT.initialized&&warn(`linkifyjs: already initialized - will not register custom scheme "${Ff}" ${warnAdvice}`),!/^[0-9a-z]+(-[0-9a-z]+)*$/.test(Ff))throw new Error(`linkifyjs: incorrect scheme format.
455
455
  1. Must only contain digits, lowercase ASCII letters or "-"
456
456
  2. Cannot start or end with "-"
457
- 3. "-" cannot repeat`);INIT.customSchemes.push([Ff,kh])}function init(){INIT.scanner=init$2(INIT.customSchemes);for(let Ff=0;Ff<INIT.tokenQueue.length;Ff++)INIT.tokenQueue[Ff][1]({scanner:INIT.scanner});INIT.parser=init$1(INIT.scanner.tokens);for(let Ff=0;Ff<INIT.pluginQueue.length;Ff++)INIT.pluginQueue[Ff][1]({scanner:INIT.scanner,parser:INIT.parser});INIT.initialized=!0}function tokenize(Ff){return INIT.initialized||init(),run(INIT.parser.start,Ff,run$1(INIT.scanner.start,Ff))}function find(Ff,kh,x_){if(kh===void 0&&(kh=null),x_===void 0&&(x_=null),kh&&typeof kh=="object"){if(x_)throw Error(`linkifyjs: Invalid link type ${kh}; must be a string`);x_=kh,kh=null}const B_=new Options(x_),$_=tokenize(Ff),$P=[];for(let zP=0;zP<$_.length;zP++){const eme=$_[zP];eme.isLink&&(!kh||eme.t===kh)&&B_.check(eme)&&$P.push(eme.toFormattedObject(B_))}return $P}function autolink(Ff){return new Plugin({key:new PluginKey("autolink"),appendTransaction:(kh,x_,B_)=>{const $_=kh.some(nme=>nme.docChanged)&&!x_.doc.eq(B_.doc),$P=kh.some(nme=>nme.getMeta("preventAutolink"));if(!$_||$P)return;const{tr:zP}=B_,eme=combineTransactionSteps(x_.doc,[...kh]);if(getChangedRanges(eme).forEach(({newRange:nme})=>{const rme=findChildrenInRange(B_.doc,nme,ame=>ame.isTextblock);let ime,ome;if(rme.length>1?(ime=rme[0],ome=B_.doc.textBetween(ime.pos,ime.pos+ime.node.nodeSize,void 0," ")):rme.length&&B_.doc.textBetween(nme.from,nme.to," "," ").endsWith(" ")&&(ime=rme[0],ome=B_.doc.textBetween(ime.pos,nme.to,void 0," ")),ime&&ome){const ame=ome.split(" ").filter(sme=>sme!=="");if(ame.length<=0)return!1;const cme=ame[ame.length-1],ume=ime.pos+ome.lastIndexOf(cme);if(!cme)return!1;find(cme).filter(sme=>sme.isLink).map(sme=>({...sme,from:ume+sme.start+1,to:ume+sme.end+1})).filter(sme=>B_.schema.marks.code?!B_.doc.rangeHasMark(sme.from,sme.to,B_.schema.marks.code):!0).filter(sme=>Ff.validate?Ff.validate(sme.value):!0).forEach(sme=>{getMarksBetween(sme.from,sme.to,B_.doc).some(lme=>lme.mark.type===Ff.type)||zP.addMark(sme.from,sme.to,Ff.type.create({href:sme.href}))})}}),!!zP.steps.length)return zP}})}function clickHandler(Ff){return new Plugin({key:new PluginKey("handleClickLink"),props:{handleClick:(kh,x_,B_)=>{if(B_.button!==0)return!1;let $_=B_.target;const $P=[];for(;$_.nodeName!=="DIV";)$P.push($_),$_=$_.parentNode;if(!$P.find(rme=>rme.nodeName==="A"))return!1;const zP=getAttributes$1(kh.state,Ff.type.name),eme=B_.target,tme=(eme==null?void 0:eme.href)??zP.href,nme=(eme==null?void 0:eme.target)??zP.target;return eme&&tme?(window.open(tme,nme),!0):!1}}})}function pasteHandler(Ff){return new Plugin({key:new PluginKey("handlePasteLink"),props:{handlePaste:(kh,x_,B_)=>{const{state:$_}=kh,{selection:$P}=$_,{empty:zP}=$P;if(zP)return!1;let eme="";B_.content.forEach(nme=>{eme+=nme.textContent});const tme=find(eme).find(nme=>nme.isLink&&nme.value===eme);return!eme||!tme?!1:(Ff.editor.commands.setMark(Ff.type,{href:tme.href}),!0)}}})}const LinkComponent=Ff=>{const{editor:kh}=Ff,[x_,B_]=React.useState(null),[$_,$P]=React.useState(null),[zP,eme]=React.useState(null),[tme,nme]=React.useState(null),[rme,ime]=React.useState(null),[ome,ame]=React.useState(null),[cme,ume]=React.useState(""),[sme,lme]=React.useState("");return React.useEffect(()=>{!x_||!tme||tippy(x_,{placement:"top",content:tme,maxWidth:"none"})},[x_,tme]),React.useEffect(()=>{!zP||!rme||tippy(zP,{placement:"top",content:rme,maxWidth:"none"})},[zP,rme]),React.useEffect(()=>{!$_||!ome||tippy($_,{placement:"top",content:ome,maxWidth:"none"})},[$_,ome]),jsxRuntimeExports.jsxs("div",{className:"lintView",style:{display:kh!=null&&kh.isEditable?"flex":"none"},children:[jsxRuntimeExports.jsx("div",{className:"lineValue",ref:B_,children:jsxRuntimeExports.jsx("span",{children:Ff==null?void 0:Ff.value})}),jsxRuntimeExports.jsx("div",{className:"lineIcon",ref:eme,onMouseEnter:()=>ume("编辑链接"),style:{marginRight:"4px",marginLeft:"20px"},onClick:()=>{const dme=kh==null?void 0:kh.state;kh==null||kh.view;const fme=dme==null?void 0:dme.doc;fme==null||fme.descendants((pme,hme)=>{var mme,_me,gme,vme,Eme,Sme,bme,Rme,Ome,Pme;if(pme.isText){let Lme=hme,Dme=hme+(pme!=null&&pme.text?(mme=pme==null?void 0:pme.text)==null?void 0:mme.length:0);for(let yme=0;yme<pme.marks.length;yme++)pme.marks[yme].type.name==="link"&&(Ff==null?void 0:Ff.value)===((gme=(_me=pme==null?void 0:pme.marks[0])==null?void 0:_me.attrs)==null?void 0:gme.href)&&(Ff==null?void 0:Ff.id)===((Eme=(vme=pme==null?void 0:pme.marks[0])==null?void 0:vme.attrs)==null?void 0:Eme.id)&&(console.log(pme,Ff==null?void 0:Ff.id,(bme=(Sme=pme==null?void 0:pme.marks[0])==null?void 0:Sme.attrs)==null?void 0:bme.id),(Rme=kh==null?void 0:kh.commands)==null||Rme.setTextSelection({from:Lme,to:Dme}),(Ome=kh==null?void 0:kh.commands)==null||Ome.hideLinkTip(),(Pme=kh==null?void 0:kh.commands)==null||Pme.showBubbleMenu({from:Lme,to:Dme}))}})},children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M4.27614 10.593L11.0375 3.83158L10.0947 2.88877L3.33333 9.65022V10.593H4.27614ZM4.82843 11.9263H2V9.09788L9.62333 1.47456C9.88373 1.21421 10.3058 1.21421 10.5661 1.47456L12.4518 3.36018C12.7121 3.62052 12.7121 4.04264 12.4518 4.30298L4.82843 11.9263ZM2 13.2597H14V14.593H2V13.2597Z",fill:"#666666"})})}),jsxRuntimeExports.jsx("div",{className:"lineIcon",ref:$P,onMouseEnter:()=>lme("移除链接"),onClick:()=>{const dme=kh==null?void 0:kh.state,fme=kh==null?void 0:kh.view,pme=dme==null?void 0:dme.tr,hme=dme==null?void 0:dme.doc;hme==null||hme.descendants((mme,_me)=>{var gme,vme,Eme,Sme,bme,Rme;if(mme.isText){let Ome=_me,Pme=_me+(mme!=null&&mme.text?(gme=mme==null?void 0:mme.text)==null?void 0:gme.length:0);for(let Lme=0;Lme<mme.marks.length;Lme++)mme.marks[Lme].type.name==="link"&&(Ff==null?void 0:Ff.value)===((Eme=(vme=mme==null?void 0:mme.marks[0])==null?void 0:vme.attrs)==null?void 0:Eme.href)&&(Ff==null?void 0:Ff.id)===((bme=(Sme=mme==null?void 0:mme.marks[0])==null?void 0:Sme.attrs)==null?void 0:bme.id)&&(console.log(Ome,Pme),pme==null||pme.removeMark(Ome,Pme,kh==null?void 0:kh.schema.marks.link),pme&&(fme==null||fme.dispatch(pme)),(Rme=kh==null?void 0:kh.commands)==null||Rme.hideLinkTip())}})},children:jsxRuntimeExports.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsxRuntimeExports.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.7787 13.7347L2.26416 3.22022L3.21875 2.26562L13.7333 12.7802L12.7787 13.7347Z",fill:"#666666"}),jsxRuntimeExports.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.2993 9.41374L12.2422 10.3565L13.185 9.41374C15.0074 7.59134 15.0074 4.63655 13.185 2.8141C11.3625 0.991654 8.40781 0.991654 6.58533 2.8141L5.64253 3.75691L6.58533 4.69972L7.52815 3.75691C8.82988 2.45516 10.9404 2.45516 12.2422 3.75691C13.5439 5.05865 13.5439 7.16921 12.2422 8.47094L11.2993 9.41374ZM9.86676 12.732L8.92396 11.7892L8.47095 12.2422C7.16921 13.5439 5.05865 13.5439 3.75691 12.2422C2.45516 10.9405 2.45516 8.82987 3.75691 7.52814L4.2099 7.07515L3.2671 6.13234L2.8141 6.58533C0.991654 8.40781 0.991654 11.3625 2.8141 13.185C4.63655 15.0075 7.59135 15.0075 9.41375 13.185L9.86676 12.732ZM7.05011 8.00616L9.88515 5.17112L10.8279 6.11393L7.99293 8.94898L7.05011 8.00616ZM6.09551 8.96075L7.03834 9.90358L6.11393 10.828L5.17112 9.88514L6.09551 8.96075Z",fill:"#666666"})]})}),jsxRuntimeExports.jsx("div",{className:"hoveValue",ref:nme,children:Ff==null?void 0:Ff.value}),jsxRuntimeExports.jsx("div",{className:"hoveValue",ref:ime,children:cme}),jsxRuntimeExports.jsx("div",{className:"hoveValue",ref:ame,children:sme})]})},Link=Mark.create({name:"link",priority:1e3,keepOnSplit:!1,addOptions(){return{openOnClick:!0,linkOnPaste:!0,autolink:!0,protocols:[],id:"",HTMLAttributes:{target:"_blank",rel:"noopener noreferrer nofollow",class:null},validate:Ff=>/^https?:\/\//.test(Ff),tip:null}},onCreate(){this.options.protocols.forEach(Ff=>{if(typeof Ff=="string"){registerCustomProtocol(Ff);return}registerCustomProtocol(Ff.scheme,Ff.optionalSlashes)})},onDestroy(){reset()},inclusive(){return this.options.autolink},addAttributes(){var Ff;return{href:{default:null},target:{default:this.options.HTMLAttributes.target},rel:{default:this.options.HTMLAttributes.rel},class:{default:this.options.HTMLAttributes.class},id:{default:(Ff=this.options)==null?void 0:Ff.id}}},parseHTML(){return[{tag:'a[href]:not([href *= "javascript:" i])'}]},renderHTML({mark:Ff,HTMLAttributes:kh}){var $P,zP;const x_=v4$1();document.createElement("a");const B_=document.createElement("a");if(this.editor){const eme=new ReactRenderer(LinkComponent,{editor:this.editor,props:{editor:this.editor,value:kh==null?void 0:kh.href,id:x_}});kh.id=x_,this.options.tip=tippy(B_,{appendTo:document.body,placement:"top",content:eme.element,interactive:!0,offset:[0,3]}),($P=this.options.tip)==null||$P.popper.setAttribute("id",x_)}Ff.attrs.id=x_;let $_;(zP=kh.href)!=null&&zP.startsWith("javascript:")?$_=mergeAttributes(this.options.HTMLAttributes,{...kh,href:""}):$_=mergeAttributes(this.options.HTMLAttributes,kh);for(const eme in $_)Object.prototype.hasOwnProperty.call($_,eme)&&B_.setAttribute(eme,$_[eme]);return B_.addEventListener("mouseenter",()=>{var tme;document.querySelectorAll(".bubble-new").length>0&&((tme=this.options.tip)==null||tme.hide())}),B_.addEventListener("mouseleave",()=>{var tme;document.querySelectorAll(".bubble-new").length>0&&((tme=this.options.tip)==null||tme.hide())}),B_},addCommands(){return{setLink:Ff=>({chain:kh})=>kh().setMark(this.name,Ff).setMeta("preventAutolink",!0).run(),toggleLink:Ff=>({chain:kh})=>kh().toggleMark(this.name,Ff,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run(),unsetLink:()=>({chain:Ff})=>Ff().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run(),showLinkTip:()=>()=>{var Ff,kh;return(kh=(Ff=this.options)==null?void 0:Ff.tip)==null||kh.show(),!0},hideLinkTip:()=>()=>{var Ff,kh;return(kh=(Ff=this.options)==null?void 0:Ff.tip)==null||kh.hide(),!0}}},addPasteRules(){return[markPasteRule({find:Ff=>{const kh=[];if(Ff){const x_=find(Ff).filter(B_=>B_.isLink);x_.length&&x_.forEach(B_=>kh.push({text:B_.value,data:{href:B_.href},index:B_.start}))}return kh},type:this.type,getAttributes:Ff=>{var kh;return{href:(kh=Ff.data)==null?void 0:kh.href}}})]},addProseMirrorPlugins(){const Ff=[];return this.options.autolink&&Ff.push(autolink({type:this.type,validate:this.options.validate})),this.options.openOnClick&&Ff.push(clickHandler({type:this.type})),this.options.linkOnPaste&&Ff.push(pasteHandler({editor:this.editor,type:this.type})),Ff}}),backtickInputRegex=/^`````([a-z]+)?[\s\n]$/,Active=Node$1.create({name:"active",addOptions(){return{xternUrl:""}},content:"text*",marks:"",group:"block",atom:!0,defining:!0,addAttributes(){return{id:"",language:""}},parseHTML(){return[{tag:"div"}]},renderHTML(){return["div"]},addCommands(){return{setQuestion:Ff=>({commands:kh})=>kh.setNode(this.name,Ff),unsetQuestion:Ff=>({commands:kh})=>kh.toggleNode(this.name,"paragraph",Ff)}},addInputRules(){return[textblockTypeInputRule({find:backtickInputRegex,type:this.type,getAttributes:Ff=>({language:Ff[1]})})]}}),Question=Active.extend({atom:!0,addOptions(){var Ff;return{...(Ff=this.parent)==null?void 0:Ff.call(this)}},addProseMirrorPlugins(){var kh;const{editor:Ff}=this;return[...((kh=this.parent)==null?void 0:kh.call(this))||[],new Plugin({key:new PluginKey("tablefocus"),props:{decorations(x_){if(!Ff.isFocused)return null;const{selection:B_,doc:$_}=x_,{$anchor:$P,anchor:zP}=B_,eme=[];return $_.descendants((tme,nme)=>{const rme=zP>=nme&&zP<nme+tme.nodeSize;if(tme.type.name==="active"&&rme){const ime=Decoration.node(nme,nme+tme.nodeSize,{style:"outline: 2px solid #1677ff;"});eme.push(ime)}return!1}),console.log(eme),DecorationSet.create($_,eme)}}})]}}),error="data:image/svg+xml,%3csvg%20width='13'%20height='13'%20viewBox='0%200%2013%2013'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20opacity='0.01'%20x='0.947266'%20y='0.474609'%20width='12'%20height='12'%20fill='black'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M6.94727%201.22461C4.04805%201.22461%201.69727%203.57539%201.69727%206.47461C1.69727%209.37383%204.04805%2011.7246%206.94727%2011.7246C9.84648%2011.7246%2012.1973%209.37383%2012.1973%206.47461C12.1973%203.57539%209.84648%201.22461%206.94727%201.22461Z'%20fill='%23F5222D'/%3e%3cpath%20d='M4.85271%203.95703L4.43977%204.3045C5.175%204.85341%205.85988%205.48289%206.46166%206.11237C5.5401%207.04148%204.81746%207.95548%204.43726%208.3231L5.22285%208.98027C5.50233%208.40367%206.10915%207.52995%206.92244%206.61343C7.73572%207.53499%208.34506%208.41374%208.62455%208.99286C8.62455%208.99286%209.38999%208.17957%209.45798%208.30547C9.16338%207.97311%208.44326%207.00623%207.47638%206.01669C8.03032%205.44764%208.65225%204.88362%209.31698%204.38759L9.13569%204.05019C8.38283%204.42536%207.66522%204.98182%207.02064%205.57353C6.37101%204.95664%205.63578%204.36997%204.85271%203.95703V3.95703Z'%20fill='white'/%3e%3c/svg%3e",Icon_Warning="data:image/svg+xml,%3csvg%20width='17'%20height='17'%20viewBox='0%200%2017%2017'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20opacity='0.01'%20x='0.164062'%20y='0.354492'%20width='16'%20height='16'%20fill='black'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M8.16406%201.35449C4.29844%201.35449%201.16406%204.48887%201.16406%208.35449C1.16406%2012.2201%204.29844%2015.3545%208.16406%2015.3545C12.0297%2015.3545%2015.1641%2012.2201%2015.1641%208.35449C15.1641%204.48887%2012.0297%201.35449%208.16406%201.35449ZM7.66406%204.97949C7.66406%204.91074%207.72031%204.85449%207.78906%204.85449H8.53906C8.60781%204.85449%208.66406%204.91074%208.66406%204.97949V9.22949C8.66406%209.29824%208.60781%209.35449%208.53906%209.35449H7.78906C7.72031%209.35449%207.66406%209.29824%207.66406%209.22949V4.97949ZM8.16406%2011.8545C7.75%2011.8545%207.41406%2011.5186%207.41406%2011.1045C7.41406%2010.6904%207.75%2010.3545%208.16406%2010.3545C8.57813%2010.3545%208.91406%2010.6904%208.91406%2011.1045C8.91406%2011.5186%208.57813%2011.8545%208.16406%2011.8545Z'%20fill='%23FAAD14'/%3e%3c/svg%3e",arrowIcon="data:image/svg+xml,%3csvg%20width='17'%20height='16'%20viewBox='0%200%2017%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20opacity='0.01'%20x='16.5352'%20y='16'%20width='16'%20height='16'%20transform='rotate(-180%2016.5352%2016)'%20fill='black'/%3e%3cpath%20d='M4.75455%2010.7326L8.71709%206.43956L12.68%2010.7326C12.8843%2010.9541%2013.2295%2010.9679%2013.4509%2010.7636C13.6723%2010.5592%2013.6862%2010.2141%2013.4818%209.99265L9.11818%205.26537C9.01492%205.15344%208.86956%205.08977%208.71727%205.08977C8.56498%205.08977%208.41963%205.15344%208.31636%205.26537L3.95273%209.99265C3.74838%2010.2141%203.76222%2010.5592%203.98364%2010.7636C4.20505%2010.9679%204.5502%2010.9541%204.75455%2010.7326'%20fill='%23FAAD14'/%3e%3c/svg%3e",tipIcon="data:image/svg+xml,%3csvg%20width='32'%20height='32'%20viewBox='0%200%2032%2032'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_954_6949)'%3e%3cg%20filter='url(%23filter0_i_954_6949)'%3e%3cpath%20d='M26.9806%2012.2299L29.1814%2011.1896C29.9321%2013.1617%2030.1883%2015.2877%2029.9274%2017.3817C29.6665%2019.4757%2028.8965%2021.4739%2027.6848%2023.2015L25.6975%2021.81C26.6636%2020.4329%2027.2845%2018.8438%2027.5078%2017.1765C27.7311%2015.5092%2027.5503%2013.8127%2026.9806%2012.2299ZM17.053%205.27772C15.3709%205.28347%2013.7147%205.69355%2012.2243%206.47339C10.7338%207.25323%209.45264%208.37997%208.48881%209.75864L6.50399%208.36886C7.71308%206.63945%209.32747%205.23262%2011.206%204.27141C13.0845%203.31019%2015.1699%202.82387%2017.2798%202.85497L17.0554%205.2795L17.053%205.27772ZM12.325%2028.2294C12.0815%2028.5771%2011.772%2028.8734%2011.414%2029.1015C11.056%2029.3295%2010.6566%2029.4848%2010.2386%2029.5586C9.82061%2029.6323%209.39218%2029.6229%208.97778%2029.531C8.56339%2029.4392%208.17115%2029.2666%207.82346%2029.0231C7.47577%2028.7796%207.17943%2028.4701%206.95138%2028.1121C6.72332%2027.7541%206.56801%2027.3547%206.49431%2026.9367C6.34546%2026.0925%206.53806%2025.2237%207.02975%2024.5216L12.325%2028.2294ZM23.7127%2020.4202L20.9314%2024.3923L20.2555%2028.9549C20.2148%2029.2272%2020.1052%2029.4845%2019.9371%2029.7026C19.769%2029.9206%2019.548%2030.0921%2019.295%2030.2008C19.042%2030.3094%2018.7655%2030.3516%2018.4916%2030.3234C18.2178%2030.2952%2017.9556%2030.1974%2017.7301%2030.0395L3.48051%2020.0642C3.25433%2019.9064%203.07227%2019.6935%202.95167%2019.4455C2.83107%2019.1975%202.77592%2018.9228%202.79149%2018.6475C2.80706%2018.3721%202.89282%2018.1054%203.04062%2017.8726C3.18841%2017.6398%203.39332%2017.4487%203.63584%2017.3174L7.69207%2015.1218L10.4747%2011.15C11.3766%209.86202%2012.6346%208.8651%2014.0946%208.28134C15.5545%207.69757%2017.153%207.55231%2018.6943%207.86334L19.0811%207.31281C19.3203%206.95534%2019.6285%206.64922%2019.9876%206.41239C20.3467%206.17556%2020.7494%206.01279%2021.1722%205.93362C21.595%205.85444%2022.0293%205.86046%2022.4498%205.95132C22.8702%206.04217%2023.2683%206.21604%2023.6206%206.46273C23.973%206.70941%2024.2726%207.02396%2024.5018%207.38792C24.7311%207.75188%2024.8854%208.15794%2024.9557%208.5823C25.0259%209.00666%2025.0108%209.44078%2024.9111%209.85922C24.8115%2010.2777%2024.6293%2010.672%2024.3753%2011.0191L23.9911%2011.5701C24.811%2012.9126%2025.2214%2014.4651%2025.1719%2016.0374C25.1224%2017.6096%2024.6152%2019.1333%2023.7125%2020.4215L23.7127%2020.4202Z'%20fill='%23FFCC33'%20fill-opacity='0.15'/%3e%3c/g%3e%3cpath%20d='M21.3721%2019.6161C22.2185%2018.4077%2022.6941%2016.9787%2022.7405%2015.5041C22.787%2014.0291%2022.402%2012.5726%2021.6328%2011.3131L21.4625%2011.0344L21.6493%2010.7665L22.0335%2010.2156L22.04%2010.2062L22.0401%2010.2062C22.2549%209.91283%2022.4089%209.5795%2022.4931%209.2258C22.5774%208.87209%2022.5901%208.50513%2022.5307%208.14642C22.4713%207.78771%2022.3409%207.44447%2022.1471%207.13681C21.9534%206.82916%2021.7001%206.56327%2021.4023%206.35475C21.1044%206.14623%2020.7679%205.99926%2020.4125%205.92246C20.0571%205.84566%2019.69%205.84057%2019.3326%205.9075C18.9752%205.97442%2018.6348%206.11201%2018.3313%206.3122C18.0277%206.51239%2017.7672%206.77116%2017.565%207.07333L17.5587%207.08276L17.5586%207.08268L17.1718%207.63321L16.984%207.9005L16.6638%207.83588C15.2178%207.54409%2013.7182%207.68037%2012.3486%208.22802C10.9789%208.77567%209.79875%209.71092%208.95263%2010.9192L8.95257%2010.9193L6.16993%2014.8911L6.10222%2014.9877L5.99845%2015.0439L1.94222%2017.2396L1.94216%2017.2396C1.77467%2017.3302%201.63316%2017.4622%201.5311%2017.623C1.42903%2017.7838%201.36981%2017.968%201.35905%2018.1581C1.3483%2018.3482%201.38638%2018.538%201.46967%2018.7092C1.55296%2018.8805%201.67869%2019.0276%201.83489%2019.1365L1.83562%2019.137L16.0852%2029.1123L16.0854%2029.1124C16.2411%2029.2215%2016.4221%2029.289%2016.6112%2029.3084C16.8004%2029.3279%2016.9913%2029.2988%2017.166%2029.2238C17.3407%2029.1487%2017.4934%2029.0303%2017.6095%2028.8797C17.7254%2028.7293%2017.8011%2028.5518%2017.8293%2028.364L21.3721%2019.6161ZM21.3721%2019.6161L21.3715%2019.6158L18.5902%2023.5879L18.5225%2023.6846L18.5052%2023.8014L17.8294%2028.3634L21.3721%2019.6161ZM14.7994%202.84116L14.6671%204.27101C13.0611%204.34269%2011.4885%204.76584%2010.0608%205.51279C8.64735%206.25234%207.41357%207.28968%206.44341%208.55102L5.27665%207.73406C6.40133%206.25582%207.84479%205.04697%209.50211%204.19894C11.147%203.35725%2012.957%202.89436%2014.7994%202.84116ZM26.0717%2016.7253C26.2855%2015.1291%2026.1457%2013.5074%2025.6647%2011.9743L26.964%2011.3601C27.5441%2013.1097%2027.728%2014.9688%2027.4996%2016.8023C27.2694%2018.6498%2026.627%2020.4196%2025.6224%2021.982L24.4533%2021.1634C25.3069%2019.8204%2025.86%2018.3064%2026.0717%2016.7253ZM5.05507%2026.3323C4.95858%2025.7851%205.03183%2025.2256%205.25868%2024.7268L9.6592%2027.8081C9.52376%2027.941%209.37452%2028.0598%209.21372%2028.1622C8.91111%2028.355%208.5735%2028.4863%208.22015%2028.5486C7.86681%2028.6109%207.50466%2028.603%207.15437%2028.5253C6.80408%2028.4476%206.47252%2028.3017%206.17861%2028.096C5.88471%2027.8902%205.63421%2027.6285%205.44143%2027.3259C5.24866%2027.0233%205.11737%2026.6857%205.05507%2026.3323Z'%20stroke='%23FAA600'%20stroke-opacity='0.4'/%3e%3c/g%3e%3cdefs%3e%3cfilter%20id='filter0_i_954_6949'%20x='2.78906'%20y='2.85352'%20width='27.2373'%20height='27.4785'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='BackgroundImageFix'%20result='shape'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'%20result='hardAlpha'/%3e%3cfeOffset%20dx='-2'%20dy='2'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='arithmetic'%20k2='-1'%20k3='1'/%3e%3cfeColorMatrix%20type='matrix'%20values='0%200%200%200%200.96%200%200%200%200%200.832%200%200%200%200%200.576%200%200%200%200.3%200'/%3e%3cfeBlend%20mode='normal'%20in2='shape'%20result='effect1_innerShadow_954_6949'/%3e%3c/filter%3e%3cclipPath%20id='clip0_954_6949'%3e%3crect%20width='32'%20height='32'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",questionSuccess="data:image/svg+xml,%3csvg%20width='13'%20height='13'%20viewBox='0%200%2013%2013'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20opacity='0.01'%20x='0.947388'%20y='0.474609'%20width='12'%20height='12'%20fill='black'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M6.94739%201.22461C4.04817%201.22461%201.69739%203.57539%201.69739%206.47461C1.69739%209.37383%204.04817%2011.7246%206.94739%2011.7246C9.84661%2011.7246%2012.1974%209.37383%2012.1974%206.47461C12.1974%203.57539%209.84661%201.22461%206.94739%201.22461Z'%20fill='%2330C213'/%3e%3cpath%20d='M3.76379%207.04927C3.76379%207.04927%205.40937%208.39168%205.57283%209.53336C5.57283%209.53336%207.73061%206.01074%2010.1281%205.69556C10.1281%205.69556%209.39799%205.1649%209.63774%204.32617C9.63774%204.32617%208.3082%204.45848%205.80169%208.33841L4.62696%206.34977L3.76379%207.04927Z'%20fill='white'/%3e%3c/svg%3e",selectIcon="data:image/svg+xml,%3csvg%20width='17'%20height='17'%20viewBox='0%200%2017%2017'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20x='1.0083'%20y='0.958008'%20width='15'%20height='15'%20rx='1.5'%20fill='%231677FF'%20stroke='%231677FF'/%3e%3cpath%20d='M3.0083%209.08935C3.0083%209.08935%205.85249%2011.4095%206.135%2013.3828C6.135%2013.3828%209.86446%207.29439%2014.0083%206.74964C14.0083%206.74964%2012.7463%205.83246%2013.1607%204.38281C13.1607%204.38281%2010.8627%204.61148%206.53056%2011.3175L4.50018%207.88036L3.0083%209.08935Z'%20fill='white'/%3e%3c/svg%3e",arrowIconBlue="data:image/svg+xml,%3csvg%20width='16'%20height='17'%20viewBox='0%200%2016%2017'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20opacity='0.01'%20x='16'%20y='16.5566'%20width='16'%20height='16'%20transform='rotate(-180%2016%2016.5566)'%20fill='black'/%3e%3cpath%20d='M4.21939%2011.2893L8.18194%206.9962L12.1448%2011.2893C12.3492%2011.5107%2012.6943%2011.5245%2012.9158%2011.3202C13.1372%2011.1159%2013.151%2010.7707%2012.9467%2010.5493L8.58303%205.82201C8.47976%205.71008%208.33441%205.64642%208.18212%205.64642C8.02983%205.64642%207.88447%205.71008%207.78121%205.82201L3.41757%2010.5493C3.21323%2010.7707%203.22706%2011.1159%203.44848%2011.3202C3.6699%2011.5245%204.01504%2011.5107%204.21939%2011.2893'%20fill='%231677FF'/%3e%3c/svg%3e",isJsonString=Ff=>{try{JSON.parse(Ff)}catch{return!1}return!0},base64ToText=Ff=>{try{const kh=atob(Ff),x_=new Uint8Array(kh.length);for(let $_=0;$_<kh.length;$_++)x_[$_]=kh.charCodeAt($_);return new TextDecoder().decode(x_)}catch{return""}};var xterm={exports:{}};(function(Ff,kh){(function(x_,B_){Ff.exports=B_()})(self,()=>(()=>{var x_={4567:function(zP,eme,tme){var nme=this&&this.__decorate||function(fme,pme,hme,mme){var _me,gme=arguments.length,vme=gme<3?pme:mme===null?mme=Object.getOwnPropertyDescriptor(pme,hme):mme;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")vme=Reflect.decorate(fme,pme,hme,mme);else for(var Eme=fme.length-1;Eme>=0;Eme--)(_me=fme[Eme])&&(vme=(gme<3?_me(vme):gme>3?_me(pme,hme,vme):_me(pme,hme))||vme);return gme>3&&vme&&Object.defineProperty(pme,hme,vme),vme},rme=this&&this.__param||function(fme,pme){return function(hme,mme){pme(hme,mme,fme)}};Object.defineProperty(eme,"__esModule",{value:!0}),eme.AccessibilityManager=void 0;const ime=tme(9042),ome=tme(6114),ame=tme(9924),cme=tme(844),ume=tme(5596),sme=tme(4725),lme=tme(3656);let dme=eme.AccessibilityManager=class extends cme.Disposable{constructor(fme,pme){super(),this._terminal=fme,this._renderService=pme,this._liveRegionLineCount=0,this._charsToConsume=[],this._charsToAnnounce="",this._accessibilityContainer=document.createElement("div"),this._accessibilityContainer.classList.add("xterm-accessibility"),this._rowContainer=document.createElement("div"),this._rowContainer.setAttribute("role","list"),this._rowContainer.classList.add("xterm-accessibility-tree"),this._rowElements=[];for(let hme=0;hme<this._terminal.rows;hme++)this._rowElements[hme]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[hme]);if(this._topBoundaryFocusListener=hme=>this._handleBoundaryFocus(hme,0),this._bottomBoundaryFocusListener=hme=>this._handleBoundaryFocus(hme,1),this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions(),this._accessibilityContainer.appendChild(this._rowContainer),this._liveRegion=document.createElement("div"),this._liveRegion.classList.add("live-region"),this._liveRegion.setAttribute("aria-live","assertive"),this._accessibilityContainer.appendChild(this._liveRegion),this._liveRegionDebouncer=this.register(new ame.TimeBasedDebouncer(this._renderRows.bind(this))),!this._terminal.element)throw new Error("Cannot enable accessibility before Terminal.open");this._terminal.element.insertAdjacentElement("afterbegin",this._accessibilityContainer),this.register(this._terminal.onResize(hme=>this._handleResize(hme.rows))),this.register(this._terminal.onRender(hme=>this._refreshRows(hme.start,hme.end))),this.register(this._terminal.onScroll(()=>this._refreshRows())),this.register(this._terminal.onA11yChar(hme=>this._handleChar(hme))),this.register(this._terminal.onLineFeed(()=>this._handleChar(`
457
+ 3. "-" cannot repeat`);INIT.customSchemes.push([Ff,kh])}function init(){INIT.scanner=init$2(INIT.customSchemes);for(let Ff=0;Ff<INIT.tokenQueue.length;Ff++)INIT.tokenQueue[Ff][1]({scanner:INIT.scanner});INIT.parser=init$1(INIT.scanner.tokens);for(let Ff=0;Ff<INIT.pluginQueue.length;Ff++)INIT.pluginQueue[Ff][1]({scanner:INIT.scanner,parser:INIT.parser});INIT.initialized=!0}function tokenize(Ff){return INIT.initialized||init(),run(INIT.parser.start,Ff,run$1(INIT.scanner.start,Ff))}function find(Ff,kh,x_){if(kh===void 0&&(kh=null),x_===void 0&&(x_=null),kh&&typeof kh=="object"){if(x_)throw Error(`linkifyjs: Invalid link type ${kh}; must be a string`);x_=kh,kh=null}const B_=new Options(x_),$_=tokenize(Ff),$P=[];for(let zP=0;zP<$_.length;zP++){const eme=$_[zP];eme.isLink&&(!kh||eme.t===kh)&&B_.check(eme)&&$P.push(eme.toFormattedObject(B_))}return $P}function autolink(Ff){return new Plugin({key:new PluginKey("autolink"),appendTransaction:(kh,x_,B_)=>{const $_=kh.some(nme=>nme.docChanged)&&!x_.doc.eq(B_.doc),$P=kh.some(nme=>nme.getMeta("preventAutolink"));if(!$_||$P)return;const{tr:zP}=B_,eme=combineTransactionSteps(x_.doc,[...kh]);if(getChangedRanges(eme).forEach(({newRange:nme})=>{const rme=findChildrenInRange(B_.doc,nme,ame=>ame.isTextblock);let ime,ome;if(rme.length>1?(ime=rme[0],ome=B_.doc.textBetween(ime.pos,ime.pos+ime.node.nodeSize,void 0," ")):rme.length&&B_.doc.textBetween(nme.from,nme.to," "," ").endsWith(" ")&&(ime=rme[0],ome=B_.doc.textBetween(ime.pos,nme.to,void 0," ")),ime&&ome){const ame=ome.split(" ").filter(sme=>sme!=="");if(ame.length<=0)return!1;const cme=ame[ame.length-1],ume=ime.pos+ome.lastIndexOf(cme);if(!cme)return!1;find(cme).filter(sme=>sme.isLink).map(sme=>({...sme,from:ume+sme.start+1,to:ume+sme.end+1})).filter(sme=>B_.schema.marks.code?!B_.doc.rangeHasMark(sme.from,sme.to,B_.schema.marks.code):!0).filter(sme=>Ff.validate?Ff.validate(sme.value):!0).forEach(sme=>{getMarksBetween(sme.from,sme.to,B_.doc).some(lme=>lme.mark.type===Ff.type)||zP.addMark(sme.from,sme.to,Ff.type.create({href:sme.href}))})}}),!!zP.steps.length)return zP}})}function clickHandler(Ff){return new Plugin({key:new PluginKey("handleClickLink"),props:{handleClick:(kh,x_,B_)=>{if(B_.button!==0)return!1;let $_=B_.target;const $P=[];for(;$_.nodeName!=="DIV";)$P.push($_),$_=$_.parentNode;if(!$P.find(rme=>rme.nodeName==="A"))return!1;const zP=getAttributes$1(kh.state,Ff.type.name),eme=B_.target,tme=(eme==null?void 0:eme.href)??zP.href,nme=(eme==null?void 0:eme.target)??zP.target;return eme&&tme?(window.open(tme,nme),!0):!1}}})}function pasteHandler(Ff){return new Plugin({key:new PluginKey("handlePasteLink"),props:{handlePaste:(kh,x_,B_)=>{const{state:$_}=kh,{selection:$P}=$_,{empty:zP}=$P;if(zP)return!1;let eme="";B_.content.forEach(nme=>{eme+=nme.textContent});const tme=find(eme).find(nme=>nme.isLink&&nme.value===eme);return!eme||!tme?!1:(Ff.editor.commands.setMark(Ff.type,{href:tme.href}),!0)}}})}const LinkComponent=Ff=>{const{editor:kh}=Ff,[x_,B_]=React.useState(null),[$_,$P]=React.useState(null),[zP,eme]=React.useState(null),[tme,nme]=React.useState(null),[rme,ime]=React.useState(null),[ome,ame]=React.useState(null),[cme,ume]=React.useState(""),[sme,lme]=React.useState("");return React.useEffect(()=>{!x_||!tme||tippy(x_,{placement:"top",content:tme,maxWidth:"none"})},[x_,tme]),React.useEffect(()=>{!zP||!rme||tippy(zP,{placement:"top",content:rme,maxWidth:"none"})},[zP,rme]),React.useEffect(()=>{!$_||!ome||tippy($_,{placement:"top",content:ome,maxWidth:"none"})},[$_,ome]),jsxRuntimeExports.jsxs("div",{className:"lintView",style:{display:kh!=null&&kh.isEditable?"flex":"none"},children:[jsxRuntimeExports.jsx("div",{className:"lineValue",ref:B_,children:jsxRuntimeExports.jsx("span",{children:Ff==null?void 0:Ff.value})}),jsxRuntimeExports.jsx("div",{className:"lineIcon",ref:eme,onMouseEnter:()=>ume("编辑链接"),style:{marginRight:"4px",marginLeft:"20px"},onClick:()=>{const dme=kh==null?void 0:kh.state;kh==null||kh.view;const fme=dme==null?void 0:dme.doc;fme==null||fme.descendants((pme,hme)=>{var mme,_me,gme,vme,Eme,Sme,bme,Rme,Ome,Pme;if(pme.isText){let Lme=hme,Dme=hme+(pme!=null&&pme.text?(mme=pme==null?void 0:pme.text)==null?void 0:mme.length:0);for(let yme=0;yme<pme.marks.length;yme++)pme.marks[yme].type.name==="link"&&(Ff==null?void 0:Ff.value)===((gme=(_me=pme==null?void 0:pme.marks[0])==null?void 0:_me.attrs)==null?void 0:gme.href)&&(Ff==null?void 0:Ff.id)===((Eme=(vme=pme==null?void 0:pme.marks[0])==null?void 0:vme.attrs)==null?void 0:Eme.id)&&(console.log(pme,Ff==null?void 0:Ff.id,(bme=(Sme=pme==null?void 0:pme.marks[0])==null?void 0:Sme.attrs)==null?void 0:bme.id),(Rme=kh==null?void 0:kh.commands)==null||Rme.setTextSelection({from:Lme,to:Dme}),(Ome=kh==null?void 0:kh.commands)==null||Ome.hideLinkTip(),(Pme=kh==null?void 0:kh.commands)==null||Pme.showBubbleMenu({from:Lme,to:Dme}))}})},children:jsxRuntimeExports.jsx("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:jsxRuntimeExports.jsx("path",{d:"M4.27614 10.593L11.0375 3.83158L10.0947 2.88877L3.33333 9.65022V10.593H4.27614ZM4.82843 11.9263H2V9.09788L9.62333 1.47456C9.88373 1.21421 10.3058 1.21421 10.5661 1.47456L12.4518 3.36018C12.7121 3.62052 12.7121 4.04264 12.4518 4.30298L4.82843 11.9263ZM2 13.2597H14V14.593H2V13.2597Z",fill:"#666666"})})}),jsxRuntimeExports.jsx("div",{className:"lineIcon",ref:$P,onMouseEnter:()=>lme("移除链接"),onClick:()=>{const dme=kh==null?void 0:kh.state,fme=kh==null?void 0:kh.view,pme=dme==null?void 0:dme.tr,hme=dme==null?void 0:dme.doc;hme==null||hme.descendants((mme,_me)=>{var gme,vme,Eme,Sme,bme,Rme;if(mme.isText){let Ome=_me,Pme=_me+(mme!=null&&mme.text?(gme=mme==null?void 0:mme.text)==null?void 0:gme.length:0);for(let Lme=0;Lme<mme.marks.length;Lme++)mme.marks[Lme].type.name==="link"&&(Ff==null?void 0:Ff.value)===((Eme=(vme=mme==null?void 0:mme.marks[0])==null?void 0:vme.attrs)==null?void 0:Eme.href)&&(Ff==null?void 0:Ff.id)===((bme=(Sme=mme==null?void 0:mme.marks[0])==null?void 0:Sme.attrs)==null?void 0:bme.id)&&(console.log(Ome,Pme),pme==null||pme.removeMark(Ome,Pme,kh==null?void 0:kh.schema.marks.link),pme&&(fme==null||fme.dispatch(pme)),(Rme=kh==null?void 0:kh.commands)==null||Rme.hideLinkTip())}})},children:jsxRuntimeExports.jsxs("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[jsxRuntimeExports.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.7787 13.7347L2.26416 3.22022L3.21875 2.26562L13.7333 12.7802L12.7787 13.7347Z",fill:"#666666"}),jsxRuntimeExports.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.2993 9.41374L12.2422 10.3565L13.185 9.41374C15.0074 7.59134 15.0074 4.63655 13.185 2.8141C11.3625 0.991654 8.40781 0.991654 6.58533 2.8141L5.64253 3.75691L6.58533 4.69972L7.52815 3.75691C8.82988 2.45516 10.9404 2.45516 12.2422 3.75691C13.5439 5.05865 13.5439 7.16921 12.2422 8.47094L11.2993 9.41374ZM9.86676 12.732L8.92396 11.7892L8.47095 12.2422C7.16921 13.5439 5.05865 13.5439 3.75691 12.2422C2.45516 10.9405 2.45516 8.82987 3.75691 7.52814L4.2099 7.07515L3.2671 6.13234L2.8141 6.58533C0.991654 8.40781 0.991654 11.3625 2.8141 13.185C4.63655 15.0075 7.59135 15.0075 9.41375 13.185L9.86676 12.732ZM7.05011 8.00616L9.88515 5.17112L10.8279 6.11393L7.99293 8.94898L7.05011 8.00616ZM6.09551 8.96075L7.03834 9.90358L6.11393 10.828L5.17112 9.88514L6.09551 8.96075Z",fill:"#666666"})]})}),jsxRuntimeExports.jsx("div",{className:"hoveValue",ref:nme,children:Ff==null?void 0:Ff.value}),jsxRuntimeExports.jsx("div",{className:"hoveValue",ref:ime,children:cme}),jsxRuntimeExports.jsx("div",{className:"hoveValue",ref:ame,children:sme})]})},Link=Mark.create({name:"link",priority:1e3,keepOnSplit:!1,addOptions(){return{openOnClick:!0,linkOnPaste:!0,autolink:!0,protocols:[],id:"",HTMLAttributes:{target:"_blank",rel:"noopener noreferrer nofollow",class:null},validate:Ff=>/^https?:\/\//.test(Ff),tip:null}},onCreate(){this.options.protocols.forEach(Ff=>{if(typeof Ff=="string"){registerCustomProtocol(Ff);return}registerCustomProtocol(Ff.scheme,Ff.optionalSlashes)})},onDestroy(){reset()},inclusive(){return this.options.autolink},addAttributes(){var Ff;return{href:{default:null},target:{default:this.options.HTMLAttributes.target},rel:{default:this.options.HTMLAttributes.rel},class:{default:this.options.HTMLAttributes.class},id:{default:(Ff=this.options)==null?void 0:Ff.id}}},parseHTML(){return[{tag:'a[href]:not([href *= "javascript:" i])'}]},renderHTML({mark:Ff,HTMLAttributes:kh}){var $P,zP;const x_=v4$1();document.createElement("a");const B_=document.createElement("a");if(this.editor){const eme=new ReactRenderer(LinkComponent,{editor:this.editor,props:{editor:this.editor,value:kh==null?void 0:kh.href,id:x_}});kh.id=x_,this.options.tip=tippy(B_,{appendTo:document.body,placement:"top",content:eme.element,interactive:!0,offset:[0,3]}),($P=this.options.tip)==null||$P.popper.setAttribute("id",x_)}Ff.attrs.id=x_;let $_;(zP=kh.href)!=null&&zP.startsWith("javascript:")?$_=mergeAttributes(this.options.HTMLAttributes,{...kh,href:""}):$_=mergeAttributes(this.options.HTMLAttributes,kh);for(const eme in $_)Object.prototype.hasOwnProperty.call($_,eme)&&B_.setAttribute(eme,$_[eme]);return B_.addEventListener("mouseenter",()=>{var tme;document.querySelectorAll(".bubble-new").length>0&&((tme=this.options.tip)==null||tme.hide())}),B_.addEventListener("mouseleave",()=>{var tme;document.querySelectorAll(".bubble-new").length>0&&((tme=this.options.tip)==null||tme.hide())}),B_},addCommands(){return{setLink:Ff=>({chain:kh})=>kh().setMark(this.name,Ff).setMeta("preventAutolink",!0).run(),toggleLink:Ff=>({chain:kh})=>kh().toggleMark(this.name,Ff,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run(),unsetLink:()=>({chain:Ff})=>Ff().unsetMark(this.name,{extendEmptyMarkRange:!0}).setMeta("preventAutolink",!0).run(),showLinkTip:()=>()=>{var Ff,kh;return(kh=(Ff=this.options)==null?void 0:Ff.tip)==null||kh.show(),!0},hideLinkTip:()=>()=>{var Ff,kh;return(kh=(Ff=this.options)==null?void 0:Ff.tip)==null||kh.hide(),!0}}},addPasteRules(){return[markPasteRule({find:Ff=>{const kh=[];if(Ff){const x_=find(Ff).filter(B_=>B_.isLink);x_.length&&x_.forEach(B_=>kh.push({text:B_.value,data:{href:B_.href},index:B_.start}))}return kh},type:this.type,getAttributes:Ff=>{var kh;return{href:(kh=Ff.data)==null?void 0:kh.href}}})]},addProseMirrorPlugins(){const Ff=[];return this.options.autolink&&Ff.push(autolink({type:this.type,validate:this.options.validate})),this.options.openOnClick&&Ff.push(clickHandler({type:this.type})),this.options.linkOnPaste&&Ff.push(pasteHandler({editor:this.editor,type:this.type})),Ff}}),backtickInputRegex=/^`````([a-z]+)?[\s\n]$/,Active=Node$1.create({name:"active",addOptions(){return{xternUrl:""}},content:"text*",marks:"",group:"block",atom:!0,defining:!0,addAttributes(){return{id:"",language:""}},parseHTML(){return[{tag:"div"}]},renderHTML(){return["div"]},addCommands(){return{setQuestion:Ff=>({commands:kh})=>kh.setNode(this.name,Ff),unsetQuestion:Ff=>({commands:kh})=>kh.toggleNode(this.name,"paragraph",Ff)}},addInputRules(){return[textblockTypeInputRule({find:backtickInputRegex,type:this.type,getAttributes:Ff=>({language:Ff[1]})})]}}),Question=Active.extend({atom:!0,addOptions(){var Ff;return{...(Ff=this.parent)==null?void 0:Ff.call(this)}},addProseMirrorPlugins(){var kh;const{editor:Ff}=this;return[...((kh=this.parent)==null?void 0:kh.call(this))||[],new Plugin({key:new PluginKey("tablefocus"),props:{decorations(x_){if(!Ff.isFocused)return null;const{selection:B_,doc:$_}=x_,{$anchor:$P,anchor:zP}=B_,eme=[];return $_.descendants((tme,nme)=>{const rme=zP>=nme&&zP<nme+tme.nodeSize;if(tme.type.name==="active"&&rme){const ime=Decoration.node(nme,nme+tme.nodeSize,{class:"tiptap-active-focus"});eme.push(ime)}return!1}),console.log(eme),DecorationSet.create($_,eme)}}})]}}),error="data:image/svg+xml,%3csvg%20width='13'%20height='13'%20viewBox='0%200%2013%2013'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20opacity='0.01'%20x='0.947266'%20y='0.474609'%20width='12'%20height='12'%20fill='black'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M6.94727%201.22461C4.04805%201.22461%201.69727%203.57539%201.69727%206.47461C1.69727%209.37383%204.04805%2011.7246%206.94727%2011.7246C9.84648%2011.7246%2012.1973%209.37383%2012.1973%206.47461C12.1973%203.57539%209.84648%201.22461%206.94727%201.22461Z'%20fill='%23F5222D'/%3e%3cpath%20d='M4.85271%203.95703L4.43977%204.3045C5.175%204.85341%205.85988%205.48289%206.46166%206.11237C5.5401%207.04148%204.81746%207.95548%204.43726%208.3231L5.22285%208.98027C5.50233%208.40367%206.10915%207.52995%206.92244%206.61343C7.73572%207.53499%208.34506%208.41374%208.62455%208.99286C8.62455%208.99286%209.38999%208.17957%209.45798%208.30547C9.16338%207.97311%208.44326%207.00623%207.47638%206.01669C8.03032%205.44764%208.65225%204.88362%209.31698%204.38759L9.13569%204.05019C8.38283%204.42536%207.66522%204.98182%207.02064%205.57353C6.37101%204.95664%205.63578%204.36997%204.85271%203.95703V3.95703Z'%20fill='white'/%3e%3c/svg%3e",Icon_Warning="data:image/svg+xml,%3csvg%20width='17'%20height='17'%20viewBox='0%200%2017%2017'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20opacity='0.01'%20x='0.164062'%20y='0.354492'%20width='16'%20height='16'%20fill='black'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M8.16406%201.35449C4.29844%201.35449%201.16406%204.48887%201.16406%208.35449C1.16406%2012.2201%204.29844%2015.3545%208.16406%2015.3545C12.0297%2015.3545%2015.1641%2012.2201%2015.1641%208.35449C15.1641%204.48887%2012.0297%201.35449%208.16406%201.35449ZM7.66406%204.97949C7.66406%204.91074%207.72031%204.85449%207.78906%204.85449H8.53906C8.60781%204.85449%208.66406%204.91074%208.66406%204.97949V9.22949C8.66406%209.29824%208.60781%209.35449%208.53906%209.35449H7.78906C7.72031%209.35449%207.66406%209.29824%207.66406%209.22949V4.97949ZM8.16406%2011.8545C7.75%2011.8545%207.41406%2011.5186%207.41406%2011.1045C7.41406%2010.6904%207.75%2010.3545%208.16406%2010.3545C8.57813%2010.3545%208.91406%2010.6904%208.91406%2011.1045C8.91406%2011.5186%208.57813%2011.8545%208.16406%2011.8545Z'%20fill='%23FAAD14'/%3e%3c/svg%3e",arrowIcon="data:image/svg+xml,%3csvg%20width='17'%20height='16'%20viewBox='0%200%2017%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20opacity='0.01'%20x='16.5352'%20y='16'%20width='16'%20height='16'%20transform='rotate(-180%2016.5352%2016)'%20fill='black'/%3e%3cpath%20d='M4.75455%2010.7326L8.71709%206.43956L12.68%2010.7326C12.8843%2010.9541%2013.2295%2010.9679%2013.4509%2010.7636C13.6723%2010.5592%2013.6862%2010.2141%2013.4818%209.99265L9.11818%205.26537C9.01492%205.15344%208.86956%205.08977%208.71727%205.08977C8.56498%205.08977%208.41963%205.15344%208.31636%205.26537L3.95273%209.99265C3.74838%2010.2141%203.76222%2010.5592%203.98364%2010.7636C4.20505%2010.9679%204.5502%2010.9541%204.75455%2010.7326'%20fill='%23FAAD14'/%3e%3c/svg%3e",tipIcon="data:image/svg+xml,%3csvg%20width='32'%20height='32'%20viewBox='0%200%2032%2032'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20clip-path='url(%23clip0_954_6949)'%3e%3cg%20filter='url(%23filter0_i_954_6949)'%3e%3cpath%20d='M26.9806%2012.2299L29.1814%2011.1896C29.9321%2013.1617%2030.1883%2015.2877%2029.9274%2017.3817C29.6665%2019.4757%2028.8965%2021.4739%2027.6848%2023.2015L25.6975%2021.81C26.6636%2020.4329%2027.2845%2018.8438%2027.5078%2017.1765C27.7311%2015.5092%2027.5503%2013.8127%2026.9806%2012.2299ZM17.053%205.27772C15.3709%205.28347%2013.7147%205.69355%2012.2243%206.47339C10.7338%207.25323%209.45264%208.37997%208.48881%209.75864L6.50399%208.36886C7.71308%206.63945%209.32747%205.23262%2011.206%204.27141C13.0845%203.31019%2015.1699%202.82387%2017.2798%202.85497L17.0554%205.2795L17.053%205.27772ZM12.325%2028.2294C12.0815%2028.5771%2011.772%2028.8734%2011.414%2029.1015C11.056%2029.3295%2010.6566%2029.4848%2010.2386%2029.5586C9.82061%2029.6323%209.39218%2029.6229%208.97778%2029.531C8.56339%2029.4392%208.17115%2029.2666%207.82346%2029.0231C7.47577%2028.7796%207.17943%2028.4701%206.95138%2028.1121C6.72332%2027.7541%206.56801%2027.3547%206.49431%2026.9367C6.34546%2026.0925%206.53806%2025.2237%207.02975%2024.5216L12.325%2028.2294ZM23.7127%2020.4202L20.9314%2024.3923L20.2555%2028.9549C20.2148%2029.2272%2020.1052%2029.4845%2019.9371%2029.7026C19.769%2029.9206%2019.548%2030.0921%2019.295%2030.2008C19.042%2030.3094%2018.7655%2030.3516%2018.4916%2030.3234C18.2178%2030.2952%2017.9556%2030.1974%2017.7301%2030.0395L3.48051%2020.0642C3.25433%2019.9064%203.07227%2019.6935%202.95167%2019.4455C2.83107%2019.1975%202.77592%2018.9228%202.79149%2018.6475C2.80706%2018.3721%202.89282%2018.1054%203.04062%2017.8726C3.18841%2017.6398%203.39332%2017.4487%203.63584%2017.3174L7.69207%2015.1218L10.4747%2011.15C11.3766%209.86202%2012.6346%208.8651%2014.0946%208.28134C15.5545%207.69757%2017.153%207.55231%2018.6943%207.86334L19.0811%207.31281C19.3203%206.95534%2019.6285%206.64922%2019.9876%206.41239C20.3467%206.17556%2020.7494%206.01279%2021.1722%205.93362C21.595%205.85444%2022.0293%205.86046%2022.4498%205.95132C22.8702%206.04217%2023.2683%206.21604%2023.6206%206.46273C23.973%206.70941%2024.2726%207.02396%2024.5018%207.38792C24.7311%207.75188%2024.8854%208.15794%2024.9557%208.5823C25.0259%209.00666%2025.0108%209.44078%2024.9111%209.85922C24.8115%2010.2777%2024.6293%2010.672%2024.3753%2011.0191L23.9911%2011.5701C24.811%2012.9126%2025.2214%2014.4651%2025.1719%2016.0374C25.1224%2017.6096%2024.6152%2019.1333%2023.7125%2020.4215L23.7127%2020.4202Z'%20fill='%23FFCC33'%20fill-opacity='0.15'/%3e%3c/g%3e%3cpath%20d='M21.3721%2019.6161C22.2185%2018.4077%2022.6941%2016.9787%2022.7405%2015.5041C22.787%2014.0291%2022.402%2012.5726%2021.6328%2011.3131L21.4625%2011.0344L21.6493%2010.7665L22.0335%2010.2156L22.04%2010.2062L22.0401%2010.2062C22.2549%209.91283%2022.4089%209.5795%2022.4931%209.2258C22.5774%208.87209%2022.5901%208.50513%2022.5307%208.14642C22.4713%207.78771%2022.3409%207.44447%2022.1471%207.13681C21.9534%206.82916%2021.7001%206.56327%2021.4023%206.35475C21.1044%206.14623%2020.7679%205.99926%2020.4125%205.92246C20.0571%205.84566%2019.69%205.84057%2019.3326%205.9075C18.9752%205.97442%2018.6348%206.11201%2018.3313%206.3122C18.0277%206.51239%2017.7672%206.77116%2017.565%207.07333L17.5587%207.08276L17.5586%207.08268L17.1718%207.63321L16.984%207.9005L16.6638%207.83588C15.2178%207.54409%2013.7182%207.68037%2012.3486%208.22802C10.9789%208.77567%209.79875%209.71092%208.95263%2010.9192L8.95257%2010.9193L6.16993%2014.8911L6.10222%2014.9877L5.99845%2015.0439L1.94222%2017.2396L1.94216%2017.2396C1.77467%2017.3302%201.63316%2017.4622%201.5311%2017.623C1.42903%2017.7838%201.36981%2017.968%201.35905%2018.1581C1.3483%2018.3482%201.38638%2018.538%201.46967%2018.7092C1.55296%2018.8805%201.67869%2019.0276%201.83489%2019.1365L1.83562%2019.137L16.0852%2029.1123L16.0854%2029.1124C16.2411%2029.2215%2016.4221%2029.289%2016.6112%2029.3084C16.8004%2029.3279%2016.9913%2029.2988%2017.166%2029.2238C17.3407%2029.1487%2017.4934%2029.0303%2017.6095%2028.8797C17.7254%2028.7293%2017.8011%2028.5518%2017.8293%2028.364L21.3721%2019.6161ZM21.3721%2019.6161L21.3715%2019.6158L18.5902%2023.5879L18.5225%2023.6846L18.5052%2023.8014L17.8294%2028.3634L21.3721%2019.6161ZM14.7994%202.84116L14.6671%204.27101C13.0611%204.34269%2011.4885%204.76584%2010.0608%205.51279C8.64735%206.25234%207.41357%207.28968%206.44341%208.55102L5.27665%207.73406C6.40133%206.25582%207.84479%205.04697%209.50211%204.19894C11.147%203.35725%2012.957%202.89436%2014.7994%202.84116ZM26.0717%2016.7253C26.2855%2015.1291%2026.1457%2013.5074%2025.6647%2011.9743L26.964%2011.3601C27.5441%2013.1097%2027.728%2014.9688%2027.4996%2016.8023C27.2694%2018.6498%2026.627%2020.4196%2025.6224%2021.982L24.4533%2021.1634C25.3069%2019.8204%2025.86%2018.3064%2026.0717%2016.7253ZM5.05507%2026.3323C4.95858%2025.7851%205.03183%2025.2256%205.25868%2024.7268L9.6592%2027.8081C9.52376%2027.941%209.37452%2028.0598%209.21372%2028.1622C8.91111%2028.355%208.5735%2028.4863%208.22015%2028.5486C7.86681%2028.6109%207.50466%2028.603%207.15437%2028.5253C6.80408%2028.4476%206.47252%2028.3017%206.17861%2028.096C5.88471%2027.8902%205.63421%2027.6285%205.44143%2027.3259C5.24866%2027.0233%205.11737%2026.6857%205.05507%2026.3323Z'%20stroke='%23FAA600'%20stroke-opacity='0.4'/%3e%3c/g%3e%3cdefs%3e%3cfilter%20id='filter0_i_954_6949'%20x='2.78906'%20y='2.85352'%20width='27.2373'%20height='27.4785'%20filterUnits='userSpaceOnUse'%20color-interpolation-filters='sRGB'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeBlend%20mode='normal'%20in='SourceGraphic'%20in2='BackgroundImageFix'%20result='shape'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20type='matrix'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'%20result='hardAlpha'/%3e%3cfeOffset%20dx='-2'%20dy='2'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='arithmetic'%20k2='-1'%20k3='1'/%3e%3cfeColorMatrix%20type='matrix'%20values='0%200%200%200%200.96%200%200%200%200%200.832%200%200%200%200%200.576%200%200%200%200.3%200'/%3e%3cfeBlend%20mode='normal'%20in2='shape'%20result='effect1_innerShadow_954_6949'/%3e%3c/filter%3e%3cclipPath%20id='clip0_954_6949'%3e%3crect%20width='32'%20height='32'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",questionSuccess="data:image/svg+xml,%3csvg%20width='13'%20height='13'%20viewBox='0%200%2013%2013'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20opacity='0.01'%20x='0.947388'%20y='0.474609'%20width='12'%20height='12'%20fill='black'/%3e%3cpath%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M6.94739%201.22461C4.04817%201.22461%201.69739%203.57539%201.69739%206.47461C1.69739%209.37383%204.04817%2011.7246%206.94739%2011.7246C9.84661%2011.7246%2012.1974%209.37383%2012.1974%206.47461C12.1974%203.57539%209.84661%201.22461%206.94739%201.22461Z'%20fill='%2330C213'/%3e%3cpath%20d='M3.76379%207.04927C3.76379%207.04927%205.40937%208.39168%205.57283%209.53336C5.57283%209.53336%207.73061%206.01074%2010.1281%205.69556C10.1281%205.69556%209.39799%205.1649%209.63774%204.32617C9.63774%204.32617%208.3082%204.45848%205.80169%208.33841L4.62696%206.34977L3.76379%207.04927Z'%20fill='white'/%3e%3c/svg%3e",selectIcon="data:image/svg+xml,%3csvg%20width='17'%20height='17'%20viewBox='0%200%2017%2017'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20x='1.0083'%20y='0.958008'%20width='15'%20height='15'%20rx='1.5'%20fill='%231677FF'%20stroke='%231677FF'/%3e%3cpath%20d='M3.0083%209.08935C3.0083%209.08935%205.85249%2011.4095%206.135%2013.3828C6.135%2013.3828%209.86446%207.29439%2014.0083%206.74964C14.0083%206.74964%2012.7463%205.83246%2013.1607%204.38281C13.1607%204.38281%2010.8627%204.61148%206.53056%2011.3175L4.50018%207.88036L3.0083%209.08935Z'%20fill='white'/%3e%3c/svg%3e",arrowIconBlue="data:image/svg+xml,%3csvg%20width='16'%20height='17'%20viewBox='0%200%2016%2017'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3crect%20opacity='0.01'%20x='16'%20y='16.5566'%20width='16'%20height='16'%20transform='rotate(-180%2016%2016.5566)'%20fill='black'/%3e%3cpath%20d='M4.21939%2011.2893L8.18194%206.9962L12.1448%2011.2893C12.3492%2011.5107%2012.6943%2011.5245%2012.9158%2011.3202C13.1372%2011.1159%2013.151%2010.7707%2012.9467%2010.5493L8.58303%205.82201C8.47976%205.71008%208.33441%205.64642%208.18212%205.64642C8.02983%205.64642%207.88447%205.71008%207.78121%205.82201L3.41757%2010.5493C3.21323%2010.7707%203.22706%2011.1159%203.44848%2011.3202C3.6699%2011.5245%204.01504%2011.5107%204.21939%2011.2893'%20fill='%231677FF'/%3e%3c/svg%3e",isJsonString=Ff=>{try{JSON.parse(Ff)}catch{return!1}return!0},base64ToText=Ff=>{try{const kh=atob(Ff),x_=new Uint8Array(kh.length);for(let $_=0;$_<kh.length;$_++)x_[$_]=kh.charCodeAt($_);return new TextDecoder().decode(x_)}catch{return""}};var xterm={exports:{}};(function(Ff,kh){(function(x_,B_){Ff.exports=B_()})(self,()=>(()=>{var x_={4567:function(zP,eme,tme){var nme=this&&this.__decorate||function(fme,pme,hme,mme){var _me,gme=arguments.length,vme=gme<3?pme:mme===null?mme=Object.getOwnPropertyDescriptor(pme,hme):mme;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")vme=Reflect.decorate(fme,pme,hme,mme);else for(var Eme=fme.length-1;Eme>=0;Eme--)(_me=fme[Eme])&&(vme=(gme<3?_me(vme):gme>3?_me(pme,hme,vme):_me(pme,hme))||vme);return gme>3&&vme&&Object.defineProperty(pme,hme,vme),vme},rme=this&&this.__param||function(fme,pme){return function(hme,mme){pme(hme,mme,fme)}};Object.defineProperty(eme,"__esModule",{value:!0}),eme.AccessibilityManager=void 0;const ime=tme(9042),ome=tme(6114),ame=tme(9924),cme=tme(844),ume=tme(5596),sme=tme(4725),lme=tme(3656);let dme=eme.AccessibilityManager=class extends cme.Disposable{constructor(fme,pme){super(),this._terminal=fme,this._renderService=pme,this._liveRegionLineCount=0,this._charsToConsume=[],this._charsToAnnounce="",this._accessibilityContainer=document.createElement("div"),this._accessibilityContainer.classList.add("xterm-accessibility"),this._rowContainer=document.createElement("div"),this._rowContainer.setAttribute("role","list"),this._rowContainer.classList.add("xterm-accessibility-tree"),this._rowElements=[];for(let hme=0;hme<this._terminal.rows;hme++)this._rowElements[hme]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[hme]);if(this._topBoundaryFocusListener=hme=>this._handleBoundaryFocus(hme,0),this._bottomBoundaryFocusListener=hme=>this._handleBoundaryFocus(hme,1),this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions(),this._accessibilityContainer.appendChild(this._rowContainer),this._liveRegion=document.createElement("div"),this._liveRegion.classList.add("live-region"),this._liveRegion.setAttribute("aria-live","assertive"),this._accessibilityContainer.appendChild(this._liveRegion),this._liveRegionDebouncer=this.register(new ame.TimeBasedDebouncer(this._renderRows.bind(this))),!this._terminal.element)throw new Error("Cannot enable accessibility before Terminal.open");this._terminal.element.insertAdjacentElement("afterbegin",this._accessibilityContainer),this.register(this._terminal.onResize(hme=>this._handleResize(hme.rows))),this.register(this._terminal.onRender(hme=>this._refreshRows(hme.start,hme.end))),this.register(this._terminal.onScroll(()=>this._refreshRows())),this.register(this._terminal.onA11yChar(hme=>this._handleChar(hme))),this.register(this._terminal.onLineFeed(()=>this._handleChar(`
458
458
  `))),this.register(this._terminal.onA11yTab(hme=>this._handleTab(hme))),this.register(this._terminal.onKey(hme=>this._handleKey(hme.key))),this.register(this._terminal.onBlur(()=>this._clearLiveRegion())),this.register(this._renderService.onDimensionsChange(()=>this._refreshRowsDimensions())),this._screenDprMonitor=new ume.ScreenDprMonitor(window),this.register(this._screenDprMonitor),this._screenDprMonitor.setListener(()=>this._refreshRowsDimensions()),this.register((0,lme.addDisposableDomListener)(window,"resize",()=>this._refreshRowsDimensions())),this._refreshRows(),this.register((0,cme.toDisposable)(()=>{this._accessibilityContainer.remove(),this._rowElements.length=0}))}_handleTab(fme){for(let pme=0;pme<fme;pme++)this._handleChar(" ")}_handleChar(fme){this._liveRegionLineCount<21&&(this._charsToConsume.length>0?this._charsToConsume.shift()!==fme&&(this._charsToAnnounce+=fme):this._charsToAnnounce+=fme,fme===`
459
459
  `&&(this._liveRegionLineCount++,this._liveRegionLineCount===21&&(this._liveRegion.textContent+=ime.tooMuchOutput)),ome.isMac&&this._liveRegion.textContent&&this._liveRegion.textContent.length>0&&!this._liveRegion.parentNode&&setTimeout(()=>{this._accessibilityContainer.appendChild(this._liveRegion)},0))}_clearLiveRegion(){this._liveRegion.textContent="",this._liveRegionLineCount=0,ome.isMac&&this._liveRegion.remove()}_handleKey(fme){this._clearLiveRegion(),new RegExp("\\p{Control}","u").test(fme)||this._charsToConsume.push(fme)}_refreshRows(fme,pme){this._liveRegionDebouncer.refresh(fme,pme,this._terminal.rows)}_renderRows(fme,pme){const hme=this._terminal.buffer,mme=hme.lines.length.toString();for(let _me=fme;_me<=pme;_me++){const gme=hme.translateBufferLineToString(hme.ydisp+_me,!0),vme=(hme.ydisp+_me+1).toString(),Eme=this._rowElements[_me];Eme&&(gme.length===0?Eme.innerText=" ":Eme.textContent=gme,Eme.setAttribute("aria-posinset",vme),Eme.setAttribute("aria-setsize",mme))}this._announceCharacters()}_announceCharacters(){this._charsToAnnounce.length!==0&&(this._liveRegion.textContent+=this._charsToAnnounce,this._charsToAnnounce="")}_handleBoundaryFocus(fme,pme){const hme=fme.target,mme=this._rowElements[pme===0?1:this._rowElements.length-2];if(hme.getAttribute("aria-posinset")===(pme===0?"1":`${this._terminal.buffer.lines.length}`)||fme.relatedTarget!==mme)return;let _me,gme;if(pme===0?(_me=hme,gme=this._rowElements.pop(),this._rowContainer.removeChild(gme)):(_me=this._rowElements.shift(),gme=hme,this._rowContainer.removeChild(_me)),_me.removeEventListener("focus",this._topBoundaryFocusListener),gme.removeEventListener("focus",this._bottomBoundaryFocusListener),pme===0){const vme=this._createAccessibilityTreeNode();this._rowElements.unshift(vme),this._rowContainer.insertAdjacentElement("afterbegin",vme)}else{const vme=this._createAccessibilityTreeNode();this._rowElements.push(vme),this._rowContainer.appendChild(vme)}this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._terminal.scrollLines(pme===0?-1:1),this._rowElements[pme===0?1:this._rowElements.length-2].focus(),fme.preventDefault(),fme.stopImmediatePropagation()}_handleResize(fme){this._rowElements[this._rowElements.length-1].removeEventListener("focus",this._bottomBoundaryFocusListener);for(let pme=this._rowContainer.children.length;pme<this._terminal.rows;pme++)this._rowElements[pme]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[pme]);for(;this._rowElements.length>fme;)this._rowContainer.removeChild(this._rowElements.pop());this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions()}_createAccessibilityTreeNode(){const fme=document.createElement("div");return fme.setAttribute("role","listitem"),fme.tabIndex=-1,this._refreshRowDimensions(fme),fme}_refreshRowsDimensions(){if(this._renderService.dimensions.css.cell.height){this._accessibilityContainer.style.width=`${this._renderService.dimensions.css.canvas.width}px`,this._rowElements.length!==this._terminal.rows&&this._handleResize(this._terminal.rows);for(let fme=0;fme<this._terminal.rows;fme++)this._refreshRowDimensions(this._rowElements[fme])}}_refreshRowDimensions(fme){fme.style.height=`${this._renderService.dimensions.css.cell.height}px`}};eme.AccessibilityManager=dme=nme([rme(1,sme.IRenderService)],dme)},3614:(zP,eme)=>{function tme(ome){return ome.replace(/\r?\n/g,"\r")}function nme(ome,ame){return ame?"\x1B[200~"+ome+"\x1B[201~":ome}function rme(ome,ame,cme,ume){ome=nme(ome=tme(ome),cme.decPrivateModes.bracketedPasteMode&&ume.rawOptions.ignoreBracketedPasteMode!==!0),cme.triggerDataEvent(ome,!0),ame.value=""}function ime(ome,ame,cme){const ume=cme.getBoundingClientRect(),sme=ome.clientX-ume.left-10,lme=ome.clientY-ume.top-10;ame.style.width="20px",ame.style.height="20px",ame.style.left=`${sme}px`,ame.style.top=`${lme}px`,ame.style.zIndex="1000",ame.focus()}Object.defineProperty(eme,"__esModule",{value:!0}),eme.rightClickHandler=eme.moveTextAreaUnderMouseCursor=eme.paste=eme.handlePasteEvent=eme.copyHandler=eme.bracketTextForPaste=eme.prepareTextForTerminal=void 0,eme.prepareTextForTerminal=tme,eme.bracketTextForPaste=nme,eme.copyHandler=function(ome,ame){ome.clipboardData&&ome.clipboardData.setData("text/plain",ame.selectionText),ome.preventDefault()},eme.handlePasteEvent=function(ome,ame,cme,ume){ome.stopPropagation(),ome.clipboardData&&rme(ome.clipboardData.getData("text/plain"),ame,cme,ume)},eme.paste=rme,eme.moveTextAreaUnderMouseCursor=ime,eme.rightClickHandler=function(ome,ame,cme,ume,sme){ime(ome,ame,cme),sme&&ume.rightClickSelect(ome),ame.value=ume.selectionText,ame.select()}},7239:(zP,eme,tme)=>{Object.defineProperty(eme,"__esModule",{value:!0}),eme.ColorContrastCache=void 0;const nme=tme(1505);eme.ColorContrastCache=class{constructor(){this._color=new nme.TwoKeyMap,this._css=new nme.TwoKeyMap}setCss(rme,ime,ome){this._css.set(rme,ime,ome)}getCss(rme,ime){return this._css.get(rme,ime)}setColor(rme,ime,ome){this._color.set(rme,ime,ome)}getColor(rme,ime){return this._color.get(rme,ime)}clear(){this._color.clear(),this._css.clear()}}},3656:(zP,eme)=>{Object.defineProperty(eme,"__esModule",{value:!0}),eme.addDisposableDomListener=void 0,eme.addDisposableDomListener=function(tme,nme,rme,ime){tme.addEventListener(nme,rme,ime);let ome=!1;return{dispose:()=>{ome||(ome=!0,tme.removeEventListener(nme,rme,ime))}}}},6465:function(zP,eme,tme){var nme=this&&this.__decorate||function(sme,lme,dme,fme){var pme,hme=arguments.length,mme=hme<3?lme:fme===null?fme=Object.getOwnPropertyDescriptor(lme,dme):fme;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")mme=Reflect.decorate(sme,lme,dme,fme);else for(var _me=sme.length-1;_me>=0;_me--)(pme=sme[_me])&&(mme=(hme<3?pme(mme):hme>3?pme(lme,dme,mme):pme(lme,dme))||mme);return hme>3&&mme&&Object.defineProperty(lme,dme,mme),mme},rme=this&&this.__param||function(sme,lme){return function(dme,fme){lme(dme,fme,sme)}};Object.defineProperty(eme,"__esModule",{value:!0}),eme.Linkifier2=void 0;const ime=tme(3656),ome=tme(8460),ame=tme(844),cme=tme(2585);let ume=eme.Linkifier2=class extends ame.Disposable{get currentLink(){return this._currentLink}constructor(sme){super(),this._bufferService=sme,this._linkProviders=[],this._linkCacheDisposables=[],this._isMouseOut=!0,this._wasResized=!1,this._activeLine=-1,this._onShowLinkUnderline=this.register(new ome.EventEmitter),this.onShowLinkUnderline=this._onShowLinkUnderline.event,this._onHideLinkUnderline=this.register(new ome.EventEmitter),this.onHideLinkUnderline=this._onHideLinkUnderline.event,this.register((0,ame.getDisposeArrayDisposable)(this._linkCacheDisposables)),this.register((0,ame.toDisposable)(()=>{this._lastMouseEvent=void 0})),this.register(this._bufferService.onResize(()=>{this._clearCurrentLink(),this._wasResized=!0}))}registerLinkProvider(sme){return this._linkProviders.push(sme),{dispose:()=>{const lme=this._linkProviders.indexOf(sme);lme!==-1&&this._linkProviders.splice(lme,1)}}}attachToDom(sme,lme,dme){this._element=sme,this._mouseService=lme,this._renderService=dme,this.register((0,ime.addDisposableDomListener)(this._element,"mouseleave",()=>{this._isMouseOut=!0,this._clearCurrentLink()})),this.register((0,ime.addDisposableDomListener)(this._element,"mousemove",this._handleMouseMove.bind(this))),this.register((0,ime.addDisposableDomListener)(this._element,"mousedown",this._handleMouseDown.bind(this))),this.register((0,ime.addDisposableDomListener)(this._element,"mouseup",this._handleMouseUp.bind(this)))}_handleMouseMove(sme){if(this._lastMouseEvent=sme,!this._element||!this._mouseService)return;const lme=this._positionFromMouseEvent(sme,this._element,this._mouseService);if(!lme)return;this._isMouseOut=!1;const dme=sme.composedPath();for(let fme=0;fme<dme.length;fme++){const pme=dme[fme];if(pme.classList.contains("xterm"))break;if(pme.classList.contains("xterm-hover"))return}this._lastBufferCell&&lme.x===this._lastBufferCell.x&&lme.y===this._lastBufferCell.y||(this._handleHover(lme),this._lastBufferCell=lme)}_handleHover(sme){if(this._activeLine!==sme.y||this._wasResized)return this._clearCurrentLink(),this._askForLink(sme,!1),void(this._wasResized=!1);this._currentLink&&this._linkAtPosition(this._currentLink.link,sme)||(this._clearCurrentLink(),this._askForLink(sme,!0))}_askForLink(sme,lme){var dme,fme;this._activeProviderReplies&&lme||((dme=this._activeProviderReplies)===null||dme===void 0||dme.forEach(hme=>{hme==null||hme.forEach(mme=>{mme.link.dispose&&mme.link.dispose()})}),this._activeProviderReplies=new Map,this._activeLine=sme.y);let pme=!1;for(const[hme,mme]of this._linkProviders.entries())lme?!((fme=this._activeProviderReplies)===null||fme===void 0)&&fme.get(hme)&&(pme=this._checkLinkProviderResult(hme,sme,pme)):mme.provideLinks(sme.y,_me=>{var gme,vme;if(this._isMouseOut)return;const Eme=_me==null?void 0:_me.map(Sme=>({link:Sme}));(gme=this._activeProviderReplies)===null||gme===void 0||gme.set(hme,Eme),pme=this._checkLinkProviderResult(hme,sme,pme),((vme=this._activeProviderReplies)===null||vme===void 0?void 0:vme.size)===this._linkProviders.length&&this._removeIntersectingLinks(sme.y,this._activeProviderReplies)})}_removeIntersectingLinks(sme,lme){const dme=new Set;for(let fme=0;fme<lme.size;fme++){const pme=lme.get(fme);if(pme)for(let hme=0;hme<pme.length;hme++){const mme=pme[hme],_me=mme.link.range.start.y<sme?0:mme.link.range.start.x,gme=mme.link.range.end.y>sme?this._bufferService.cols:mme.link.range.end.x;for(let vme=_me;vme<=gme;vme++){if(dme.has(vme)){pme.splice(hme--,1);break}dme.add(vme)}}}}_checkLinkProviderResult(sme,lme,dme){var fme;if(!this._activeProviderReplies)return dme;const pme=this._activeProviderReplies.get(sme);let hme=!1;for(let mme=0;mme<sme;mme++)this._activeProviderReplies.has(mme)&&!this._activeProviderReplies.get(mme)||(hme=!0);if(!hme&&pme){const mme=pme.find(_me=>this._linkAtPosition(_me.link,lme));mme&&(dme=!0,this._handleNewLink(mme))}if(this._activeProviderReplies.size===this._linkProviders.length&&!dme)for(let mme=0;mme<this._activeProviderReplies.size;mme++){const _me=(fme=this._activeProviderReplies.get(mme))===null||fme===void 0?void 0:fme.find(gme=>this._linkAtPosition(gme.link,lme));if(_me){dme=!0,this._handleNewLink(_me);break}}return dme}_handleMouseDown(){this._mouseDownLink=this._currentLink}_handleMouseUp(sme){if(!this._element||!this._mouseService||!this._currentLink)return;const lme=this._positionFromMouseEvent(sme,this._element,this._mouseService);lme&&this._mouseDownLink===this._currentLink&&this._linkAtPosition(this._currentLink.link,lme)&&this._currentLink.link.activate(sme,this._currentLink.link.text)}_clearCurrentLink(sme,lme){this._element&&this._currentLink&&this._lastMouseEvent&&(!sme||!lme||this._currentLink.link.range.start.y>=sme&&this._currentLink.link.range.end.y<=lme)&&(this._linkLeave(this._element,this._currentLink.link,this._lastMouseEvent),this._currentLink=void 0,(0,ame.disposeArray)(this._linkCacheDisposables))}_handleNewLink(sme){if(!this._element||!this._lastMouseEvent||!this._mouseService)return;const lme=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);lme&&this._linkAtPosition(sme.link,lme)&&(this._currentLink=sme,this._currentLink.state={decorations:{underline:sme.link.decorations===void 0||sme.link.decorations.underline,pointerCursor:sme.link.decorations===void 0||sme.link.decorations.pointerCursor},isHovered:!0},this._linkHover(this._element,sme.link,this._lastMouseEvent),sme.link.decorations={},Object.defineProperties(sme.link.decorations,{pointerCursor:{get:()=>{var dme,fme;return(fme=(dme=this._currentLink)===null||dme===void 0?void 0:dme.state)===null||fme===void 0?void 0:fme.decorations.pointerCursor},set:dme=>{var fme,pme;!((fme=this._currentLink)===null||fme===void 0)&&fme.state&&this._currentLink.state.decorations.pointerCursor!==dme&&(this._currentLink.state.decorations.pointerCursor=dme,this._currentLink.state.isHovered&&((pme=this._element)===null||pme===void 0||pme.classList.toggle("xterm-cursor-pointer",dme)))}},underline:{get:()=>{var dme,fme;return(fme=(dme=this._currentLink)===null||dme===void 0?void 0:dme.state)===null||fme===void 0?void 0:fme.decorations.underline},set:dme=>{var fme,pme,hme;!((fme=this._currentLink)===null||fme===void 0)&&fme.state&&((hme=(pme=this._currentLink)===null||pme===void 0?void 0:pme.state)===null||hme===void 0?void 0:hme.decorations.underline)!==dme&&(this._currentLink.state.decorations.underline=dme,this._currentLink.state.isHovered&&this._fireUnderlineEvent(sme.link,dme))}}}),this._renderService&&this._linkCacheDisposables.push(this._renderService.onRenderedViewportChange(dme=>{if(!this._currentLink)return;const fme=dme.start===0?0:dme.start+1+this._bufferService.buffer.ydisp,pme=this._bufferService.buffer.ydisp+1+dme.end;if(this._currentLink.link.range.start.y>=fme&&this._currentLink.link.range.end.y<=pme&&(this._clearCurrentLink(fme,pme),this._lastMouseEvent&&this._element)){const hme=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);hme&&this._askForLink(hme,!1)}})))}_linkHover(sme,lme,dme){var fme;!((fme=this._currentLink)===null||fme===void 0)&&fme.state&&(this._currentLink.state.isHovered=!0,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(lme,!0),this._currentLink.state.decorations.pointerCursor&&sme.classList.add("xterm-cursor-pointer")),lme.hover&&lme.hover(dme,lme.text)}_fireUnderlineEvent(sme,lme){const dme=sme.range,fme=this._bufferService.buffer.ydisp,pme=this._createLinkUnderlineEvent(dme.start.x-1,dme.start.y-fme-1,dme.end.x,dme.end.y-fme-1,void 0);(lme?this._onShowLinkUnderline:this._onHideLinkUnderline).fire(pme)}_linkLeave(sme,lme,dme){var fme;!((fme=this._currentLink)===null||fme===void 0)&&fme.state&&(this._currentLink.state.isHovered=!1,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(lme,!1),this._currentLink.state.decorations.pointerCursor&&sme.classList.remove("xterm-cursor-pointer")),lme.leave&&lme.leave(dme,lme.text)}_linkAtPosition(sme,lme){const dme=sme.range.start.y*this._bufferService.cols+sme.range.start.x,fme=sme.range.end.y*this._bufferService.cols+sme.range.end.x,pme=lme.y*this._bufferService.cols+lme.x;return dme<=pme&&pme<=fme}_positionFromMouseEvent(sme,lme,dme){const fme=dme.getCoords(sme,lme,this._bufferService.cols,this._bufferService.rows);if(fme)return{x:fme[0],y:fme[1]+this._bufferService.buffer.ydisp}}_createLinkUnderlineEvent(sme,lme,dme,fme,pme){return{x1:sme,y1:lme,x2:dme,y2:fme,cols:this._bufferService.cols,fg:pme}}};eme.Linkifier2=ume=nme([rme(0,cme.IBufferService)],ume)},9042:(zP,eme)=>{Object.defineProperty(eme,"__esModule",{value:!0}),eme.tooMuchOutput=eme.promptLabel=void 0,eme.promptLabel="Terminal input",eme.tooMuchOutput="Too much output to announce, navigate to rows manually to read"},3730:function(zP,eme,tme){var nme=this&&this.__decorate||function(ume,sme,lme,dme){var fme,pme=arguments.length,hme=pme<3?sme:dme===null?dme=Object.getOwnPropertyDescriptor(sme,lme):dme;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")hme=Reflect.decorate(ume,sme,lme,dme);else for(var mme=ume.length-1;mme>=0;mme--)(fme=ume[mme])&&(hme=(pme<3?fme(hme):pme>3?fme(sme,lme,hme):fme(sme,lme))||hme);return pme>3&&hme&&Object.defineProperty(sme,lme,hme),hme},rme=this&&this.__param||function(ume,sme){return function(lme,dme){sme(lme,dme,ume)}};Object.defineProperty(eme,"__esModule",{value:!0}),eme.OscLinkProvider=void 0;const ime=tme(511),ome=tme(2585);let ame=eme.OscLinkProvider=class{constructor(ume,sme,lme){this._bufferService=ume,this._optionsService=sme,this._oscLinkService=lme}provideLinks(ume,sme){var lme;const dme=this._bufferService.buffer.lines.get(ume-1);if(!dme)return void sme(void 0);const fme=[],pme=this._optionsService.rawOptions.linkHandler,hme=new ime.CellData,mme=dme.getTrimmedLength();let _me=-1,gme=-1,vme=!1;for(let Eme=0;Eme<mme;Eme++)if(gme!==-1||dme.hasContent(Eme)){if(dme.loadCell(Eme,hme),hme.hasExtendedAttrs()&&hme.extended.urlId){if(gme===-1){gme=Eme,_me=hme.extended.urlId;continue}vme=hme.extended.urlId!==_me}else gme!==-1&&(vme=!0);if(vme||gme!==-1&&Eme===mme-1){const Sme=(lme=this._oscLinkService.getLinkData(_me))===null||lme===void 0?void 0:lme.uri;if(Sme){const bme={start:{x:gme+1,y:ume},end:{x:Eme+(vme||Eme!==mme-1?0:1),y:ume}};let Rme=!1;if(!(pme!=null&&pme.allowNonHttpProtocols))try{const Ome=new URL(Sme);["http:","https:"].includes(Ome.protocol)||(Rme=!0)}catch{Rme=!0}Rme||fme.push({text:Sme,range:bme,activate:(Ome,Pme)=>pme?pme.activate(Ome,Pme,bme):cme(0,Pme),hover:(Ome,Pme)=>{var Lme;return(Lme=pme==null?void 0:pme.hover)===null||Lme===void 0?void 0:Lme.call(pme,Ome,Pme,bme)},leave:(Ome,Pme)=>{var Lme;return(Lme=pme==null?void 0:pme.leave)===null||Lme===void 0?void 0:Lme.call(pme,Ome,Pme,bme)}})}vme=!1,hme.hasExtendedAttrs()&&hme.extended.urlId?(gme=Eme,_me=hme.extended.urlId):(gme=-1,_me=-1)}}sme(fme)}};function cme(ume,sme){if(confirm(`Do you want to navigate to ${sme}?
460
460
 
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- .tiptap{padding:30px 40px;max-width:1000px;box-sizing:border-box;margin:0 auto}.tiptap:focus{outline:none}.tiptap *{padding:0;margin:0}.tiptap .ant-btn{padding:0 16px;height:24px;background:#1677ff;border-radius:2px;font-size:12px;line-height:24px}.tiptap>.tiptap-image{margin:20px 0}.tiptap img.ProseMirror-selectednode{outline:2px solid #1677ff}.tiptap .inline-code{padding:2px 8px;background:#fff5ec;color:#f0861d;border-radius:2px}.tiptap .node-codeBlock{margin:20px 0}.tiptap blockquote{margin:20px 0;margin-inline-start:0!important;padding:8px 10px 8px 16px;background:#f0f2f5;color:#888;position:relative}.tiptap blockquote:after{position:absolute;left:0;bottom:0;width:4px;height:100%;background:#dcdee0;content:""}.tiptap .tableWrapper{margin:20px 0;max-width:100%;overflow-x:auto}.tiptap .tableWrapper::-webkit-scrollbar{width:0px;height:0px;cursor:default}.tiptap .tableWrapper:hover::-webkit-scrollbar{height:8px}.tiptap .tableWrapper::-webkit-scrollbar-track{background-color:transparent}.tiptap .tableWrapper::-webkit-scrollbar-thumb{background-color:#ededed;border-radius:4px}.tiptap .tableWrapper::-webkit-scrollbar-thumb:hover{background-color:#e0e0e0}.tiptap .tableWrapper table{max-width:100%}.tiptap table{border-collapse:collapse;text-align:left}.tiptap table th{background:#f0f2f5}.tiptap table th p{font-weight:700;color:#333!important}.tiptap table th,.tiptap table td{border:.5px solid #d9d9d9!important;padding:8px 20px!important;color:#666!important}.tiptap>ul{margin:20px 0!important;padding-left:18px!important}.tiptap ul{padding-left:14px;margin:0}.tiptap ul li p{line-height:28px}.tiptap ul li::marker{color:#1677ff}.tiptap ul ul ul ul{list-style-type:disc}.tiptap ul ul ul ul ul{list-style-type:circle}.tiptap ul ul ul ul ul ul{list-style-type:square}.tiptap ul ul ul ul ul ul ul{list-style-type:disc}.tiptap ul ul ul ul ul ul ul ul{list-style-type:circle}.tiptap ul ul ul ul ul ul ul ul ul{list-style-type:square}.tiptap>ol{margin:20px 0!important;padding-left:18px!important}.tiptap ol{padding-left:14px;margin:0}.tiptap ol li{margin:0}.tiptap ol li p{line-height:28px}.tiptap ol li::marker{color:#1677ff}.tiptap ol ol{list-style-type:lower-alpha}.tiptap ol ol ol{list-style-type:lower-roman}.tiptap ol ol ol ol{list-style-type:decimal}.tiptap ol ol ol ol ol{list-style-type:lower-alpha}.tiptap ol ol ol ol ol ol{list-style-type:lower-roman}.tiptap ol ol ol ol ol ol ol{list-style-type:decimal}.tiptap ol ol ol ol ol ol ol ol{list-style-type:lower-alpha}.tiptap ol ol ol ol ol ol ol ol ol{list-style-type:lower-roman}.tiptap hr{margin:20px 0;border-top:.5px solid #d9d9d9}.ylz-editor{position:relative;height:100%;max-height:100%;min-height:100%;background:#fafcff;display:flex}.ylz-editor-container{margin:0;flex:1;overflow-y:auto}.ylz-editor-container>div{width:calc(100% - 268px)}.ylz-editor-container::-webkit-scrollbar{width:6px}.ylz-editor-container::-webkit-scrollbar-track{background-color:transparent}.ylz-editor-container::-webkit-scrollbar-thumb{background-color:#cfcfcf;border-radius:10px}.ylz-editor-container::-webkit-scrollbar-thumb:hover{background-color:#b3b3b3}.ylz-editor-container-max>div{width:100%}.ylz-editor-container-read img.ProseMirror-selectednode{outline:none!important}.ylz-editor-tooltip{background:#fff;border:.5px solid #e5e5e5;border-radius:2px;box-shadow:1px 1px 2px #5c75991a;overflow:hidden}.ylz-editor-tooltip .ant-tooltip-inner{min-height:24px!important;padding:4px 8px;font-size:12px;font-weight:400;text-align:LEFT;color:#666;line-height:16px;border-radius:2px;text-align:justify}.tiptap-scroll::-webkit-scrollbar{width:8px;height:0px}.tiptap-scroll::-webkit-scrollbar-track{background-color:transparent}.tiptap-scroll::-webkit-scrollbar-thumb{background-color:#ededed;border-radius:4px}.tiptap-scroll::-webkit-scrollbar-thumb:hover{background-color:#e0e0e0}.tiptap-scroll-row::-webkit-scrollbar{width:0px;height:8px}.tiptap-scroll-row::-webkit-scrollbar-track{background-color:transparent}.tiptap-scroll-row::-webkit-scrollbar-thumb{background-color:#ededed;border-radius:4px}.tiptap-scroll-row::-webkit-scrollbar-thumb:hover{background-color:#e0e0e0}.tiptap h1,.tiptap h2,.tiptap h3,.tiptap h4,.tiptap h5,.tiptap h6{margin:20px 0!important;color:#333;font-weight:600}.tiptap h1{font-size:28px;line-height:38px}.tiptap h2{font-size:24px;line-height:34px}.tiptap h3{font-size:20px;line-height:30px}.tiptap h4{font-size:18px;line-height:28px}.tiptap h5{font-size:16px;line-height:26px}.tiptap h6{font-size:15px;line-height:24px}.tiptap-paragraph{font-size:14px;font-weight:400;color:#666;line-height:26px}.tiptap-title{font-size:28px;font-weight:600;color:block;line-height:38px;padding-bottom:20px;border-bottom:.5px solid #d9d9d9;margin-bottom:20px}.tiptap .tiptap-editor-nofocus-is-empty:before{content:attr(data-placeholder);float:left;pointer-events:none;height:0;font-size:14px;font-weight:400;color:#ccc;line-height:26px}.tiptap .tiptap-title-is-empty:before{content:attr(data-placeholder);float:left;pointer-events:none;height:0;font-size:28px;font-weight:600;color:#ccc;line-height:38px}.tiptap .tiptap-is-empty:before{content:attr(data-placeholder);float:left;pointer-events:none;height:0;font-size:14px;font-weight:400;color:#ccc;line-height:26px}.bubble-menu{display:flex;justify-content:center;align-items:center;position:relative;background:#fff;border:.5px solid #e5e5e5;border-radius:4px;box-shadow:0 2px 8px #615c9926;height:28px;z-index:1;padding:0 4px}.bubble-menu .dropdownLine{height:14px;border-left:.5px solid #d9d9d9}.bubble-menu .bubble-menu-item{display:flex;justify-content:center;align-items:center;width:20px;height:20px;border-radius:2px}.bubble-menu .bubble-menu-item:hover{background:#f0f2f5}.bubble-menu .bubble-menu-other-item{display:flex;justify-content:center;align-items:center;width:30px;height:20px;border-radius:2px;cursor:pointer}.bubble-menu .bubble-menu-other-item .bubble-menu-other-item-icon{transition:transform .5s ease-in-out}.bubble-menu .bubble-menu-other-item:hover{background:#f0f2f5}.floating-menu{width:16px;height:16px;display:flex;justify-content:center;align-items:center;border-radius:4px;border:1px solid #e0e0e0;background:#fff;padding:4px;z-index:1}.floating-menu button{width:14px;height:14px;display:flex;align-items:center;justify-content:center}.tom{margin-top:1rem;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:20px;box-sizing:border-box}.bubbleMenuDropdown{margin-top:10px}.bubbleMenuDropdown .ant-dropdown-menu{border:.5px solid #e5e5e5;border-radius:4px;box-shadow:0 2px 8px #615c9926}.bubbleMenuDropdown .ant-dropdown-menu-item{width:180px;height:28px;border-radius:2px}.bubbleMenuDropdown .ant-dropdown-menu-item:hover .MenuProps-item-left .MenuProps-item-left-text{color:#333!important}.bubbleMenuDropdown .ant-dropdown-menu-item:hover .MenuProps-item-left .MenuProps-item-left-svg svg{fill:#333}.bubbleMenuDropdown .MenuProps-item{display:flex;align-items:center;justify-content:space-between}.bubbleMenuDropdown .MenuProps-item .MenuProps-item-left{display:flex;align-items:center}.h-link{width:400px;background:#fff;border:.5px solid #e5e5e5;border-radius:4px;box-shadow:0 2px 8px #615c9926;padding:24px;box-sizing:border-box}.h-link .h-link-bottoms{display:flex;justify-content:end;align-items:center;margin-top:10px}.h-link .h-link-bottoms .cancleBtn{display:flex;align-items:center;justify-content:center;width:64px;height:32px;background:#fff;border:1px solid #d9d9d9;border-radius:2px;color:#666;font-size:14px;cursor:pointer}.h-link .h-link-bottoms .conBtn{cursor:pointer;display:flex;align-items:center;justify-content:center;width:64px;height:32px;background:#1677ff;border-radius:2px;font-size:14px;color:#fff;margin-left:10px}.h-link .h-link-line{position:relative;display:flex;align-items:center;font-size:14px;color:#333;margin-bottom:20px}.h-link .h-link-line .h-link-line-tip{position:absolute;bottom:-22px;color:#ff4d4f;font-size:14px;left:45px}.h-link .h-link-line .text{text-wrap:nowrap;margin-right:16px}.h-link .h-link-line .ant-input{border:1px solid #e5e5e5;border-radius:2px;color:#666;font-size:14px}.h-link .h-link-line .ant-input-outlined:focus{border:1px solid #1677ff}.tippy-box[data-animation=scale-extreme][data-placement^=top]{transform-origin:bottom}.tippy-box[data-animation=scale-extreme][data-placement^=bottom]{transform-origin:top}.tippy-box[data-animation=scale-extreme][data-placement^=left]{transform-origin:right}.tippy-box[data-animation=scale-extreme][data-placement^=right]{transform-origin:left}.tippy-box[data-animation=scale-extreme][data-state=hidden]{transform:scale(0);opacity:.25}.catalogue{position:absolute;top:0;right:6px;bottom:0;width:262px}.catalogue-header{padding:40px 30px 20px;display:flex;align-items:center}.catalogue-header>span{font-size:16px;font-weight:500;color:#333;line-height:16px}.catalogue-header svg{margin-left:12px;cursor:pointer}.catalogue-main{max-height:calc(100% - 76px);margin-right:2px;padding-right:10px;border-left:1px solid #d9d9d9;overflow-y:auto}.catalogue-main::-webkit-scrollbar{width:6px}.catalogue-main::-webkit-scrollbar-track{background-color:transparent}.catalogue-main::-webkit-scrollbar-thumb{background-color:#e0e0e0;border-radius:10px}.catalogue-main::-webkit-scrollbar-thumb:hover{background-color:#cfcfcf}.catalogue-main>div{padding-right:8px;height:28px;display:flex;align-items:center;cursor:pointer;position:relative}.catalogue-main>div .catalogue-collapse{margin-right:8px;width:14px;height:14px;display:flex}.catalogue-main>div .catalogue-collapse svg{fill:#999;transform:rotate(0);transition:all .5s}.catalogue-main>div .catalogue-collapse svg:hover{fill:#1677ff}.catalogue-main>div .collapsed svg{transform:rotate(-90deg)}.catalogue-main>div .catalogue-text{flex:1;font-size:13px;color:#666;line-height:initial;white-space:nowrap;word-break:break-all;text-overflow:ellipsis;overflow:hidden}.catalogue-main>div .catalogue-text:hover{color:#1677ff}.catalogue-main .active .catalogue-text{color:#1677ff!important}.catalogue-main .indent-level-1{padding-left:8px}.catalogue-main .indent-level-2{padding-left:16px}.catalogue-main .indent-level-3{padding-left:24px}.catalogue-main .indent-level-4{padding-left:32px}.catalogue-main .indent-level-5{padding-left:40px}.catalogue-main .indent-level-6{padding-left:48px}.catalogue-hover{right:0;width:268px;background:#fafcff;box-shadow:-4px 0 10px #0000000d;z-index:999}.catalogue-folded{position:absolute;top:calc(50% - 24px);right:0;display:flex;align-items:center;justify-content:center}.catalogue-folded div{width:27px;height:47px;background:#fff;border:.5px solid #e5e5e5;border-radius:2px;box-shadow:1px 1px 2px #5c75991a;font-size:14px;font-weight:400;color:#666;line-height:16px;writing-mode:vertical-lr;letter-spacing:2px;display:flex;align-items:center;justify-content:center;cursor:pointer}.tiptap .code-block{position:relative;padding:32px 10px 0;border-radius:4px}.tiptap .code-block-header{position:absolute;left:10px;top:4px;right:10px;padding:0;width:auto;box-shadow:none;justify-content:space-between;display:flex}.tiptap .code-block-header-left .ant-select{margin-right:10px}.tiptap .code-block-header .ant-select-single{height:24px}.tiptap .code-block-header .ant-select .ant-select-selector{padding:0 10px;border-radius:2px;font-size:12px}.tiptap .code-block-header .ant-select .ant-select-selector .ant-select-selection-item{line-height:24px}.tiptap .code-block-header .ant-select .ant-select-selector .ant-select-selection-search-input{height:24px}.tiptap .code-block-header .ant-checkbox-wrapper{align-items:center}.tiptap .code-block-header .ant-checkbox .ant-checkbox-inner{border-radius:2px}.tiptap .code-block-header .ant-checkbox+span{padding-inline-start:4px;padding-inline-end:4px;font-size:12px}.tiptap .code-block-body{font-size:14px;box-shadow:none;max-height:500px;overflow-y:auto}.tiptap .code-block-body::-webkit-scrollbar{width:6px}.tiptap .code-block-body::-webkit-scrollbar-track{background-color:transparent}.tiptap .code-block-body::-webkit-scrollbar-thumb{border-radius:10px}.tiptap .code-block-action{padding:10px 0;display:flex;justify-content:flex-end}.tiptap .code-block-action .ant-btn{margin-left:10px}.tiptap .code-block-action-copy{position:relative}.tiptap .code-block-action-copy .copy-tip{position:absolute;left:10px;top:-28px;width:88px;height:24px;background:#fff;border-radius:2px;box-shadow:4px 4px 10px #615c9926;display:flex;align-items:center;justify-content:center}.tiptap .code-block-action-copy .copy-tip span{margin-left:4px;color:#666;font-size:12px}.tiptap .code-block-light,.tiptap .code-block-light .code-block-header{background:#f0f2f5}.tiptap .code-block-light .code-block-header .ant-select .ant-select-selector{background:#fff;border:.5px solid #d9d9d9}.tiptap .code-block-light .code-block-header .ant-select .ant-select-selection-item{color:#333}.tiptap .code-block-light .code-block-header .ant-checkbox .ant-checkbox-inner{border:1px solid #999999}.tiptap .code-block-light .code-block-header .ant-checkbox+span{color:#666}.tiptap .code-block-light .code-block-body{background:#f0f2f5;color:#666}.tiptap .code-block-light .code-block-body::-webkit-scrollbar-thumb{background-color:#e0e0e0}.tiptap .code-block-light .code-block-body::-webkit-scrollbar-thumb:hover{background-color:#cfcfcf}.tiptap .code-block-dark,.tiptap .code-block-dark .code-block-header{background:#252525}.tiptap .code-block-dark .code-block-header .ant-select .ant-select-selector{background:#333;border:.5px solid #454545}.tiptap .code-block-dark .code-block-header .ant-select .ant-select-selection-item,.tiptap .code-block-dark .code-block-header .ant-select .ant-select-arrow{color:#ccc}.tiptap .code-block-dark .code-block-header .ant-checkbox .ant-checkbox-inner{border:1px solid #cccccc}.tiptap .code-block-dark .code-block-header .ant-checkbox+span{color:#ccc}.tiptap .code-block-dark .code-block-header .ant-checkbox-checked .ant-checkbox-inner{background-color:#1677ff;border-color:#1677ff}.tiptap .code-block-dark .code-block-body{background:#252525;color:#ccc}.tiptap .code-block-dark .code-block-body::-webkit-scrollbar-thumb{background-color:#444}.tiptap .code-block-dark .code-block-body::-webkit-scrollbar-thumb:hover{background-color:#666}.floatingmenu-tip{width:16px;height:16px;border:.5px solid #d9d9d9;border-radius:2px;display:flex;align-items:center;justify-content:center;cursor:pointer}.floatingmenu-tip:hover{background:#f0f2f5}.tiptap-menu{width:182px;box-sizing:border-box;background:#fff;border:.5px solid #e5e5e5;border-radius:4px;box-shadow:0 2px 8px #615c9926;padding:10px 4px 4px}.tiptap-menu-item:not(:last-child){margin-bottom:20px}.tiptap-menu-item-title{font-size:12px;font-weight:400;text-align:LEFT;color:#999;line-height:12px;padding-bottom:10px;padding-left:16px;margin:0!important}.tiptap-menu-item-menus{display:flex;flex-wrap:wrap;gap:10px;padding:0 16px}.tiptap-menu-item-menus-light{background:#f0f2f5!important}.tiptap-menu-item-menus-item{width:20px;height:20px;border-radius:2px;cursor:pointer;display:flex;align-items:center;justify-content:center;--color: #666666;position:relative}.tiptap-menu-item-menus-item svg{fill:var(--color)}.tiptap-menu-item-menus-item:hover{background:#f0f2f5}.tiptap-menu-item-menus-item:hover:before{box-sizing:border-box;position:absolute;content:attr(data-tip);width:fit-content;left:50%;transform:translate(-50%);top:100%;white-space:nowrap;background:#fff;border:.5px solid #e5e5e5;border-radius:2px;font-size:12px;font-weight:400;color:#666;line-height:12px;padding:4px;box-shadow:1px 1px 2px #5c75991a;z-index:100}.tiptap-menu-item-list-item{height:28px;border-radius:2px;cursor:pointer;display:flex;align-items:center}.tiptap-menu-item-list-item:hover{background:#f0f2f5}.tiptap-menu-item-list-item svg{margin:0 18px}.tiptap-menu-item-list-item span{font-size:13px;font-weight:400;text-align:LEFT;color:#666;line-height:13px}.tiptap-table-select{background-color:#fff;border:.5px solid #e5e5e5;border-radius:4px;box-shadow:0 2px 8px #615c9926;padding:10px 15px;box-sizing:border-box;width:282px;position:relative;left:6px}.tiptap-table-select-title{padding-bottom:10px;display:flex;align-items:center;justify-content:space-between}.tiptap-table-select-title-left{font-size:12px}.tiptap-table-select-title-right{font-size:12px;color:#8a8a8a;letter-spacing:2px}.tiptap-table-select-content{border:1px solid #e5e5e5;display:flex;flex-wrap:wrap;padding:10px;gap:6px;cursor:pointer}.tiptap-table-select-content div{width:20px;height:20px;background-color:#e9e9e9;box-sizing:border-box;border:1px solid #e1e1e1}.tiptap-table-select-content div.light{background-color:#d0e4ff;border-color:#d0e4ff}.tiptap-changemenu{background:#fff;border:.5px solid #e5e5e5;border-radius:4px;padding:4px;box-shadow:0 2px 8px #615c9926}.tiptap-changemenu-item{width:72px;height:28px;border-radius:2px;display:flex;align-items:center;justify-content:left;font-size:13px;font-weight:400;text-align:LEFT;color:#666;line-height:13px;cursor:pointer}.tiptap-changemenu-item:hover{background:#f0f2f5}.tiptap-changemenu-item svg{margin-left:10px;margin-right:8px}.tiptap-changemenu-item-del svg{fill:#999!important}.tiptap-changemenu-item-del:hover{color:#f5222d!important}.tiptap-changemenu-item-del:hover svg{fill:#f5222d!important}.tiptap .tiptap-image{display:block;object-fit:contain;max-width:100%;max-height:100%;height:auto}.tiptap-paragraph a{position:relative;display:inline-block;color:#1677ff;text-decoration:none;cursor:pointer}.tiptap-paragraph a:hover{color:#1677ff;text-decoration:underline}.hoveValue{background:#fff;border:.5px solid #e5e5e5;border-radius:2px;box-shadow:0 2px 8px #615c9926;height:20px;box-sizing:border-box;padding:0 4px;color:#666;font-size:12px;display:flex;align-items:center}.lintView{height:28px;display:flex;align-items:center;padding:0 10px;background:#fff;border:.5px solid #e5e5e5;border-radius:2px;box-shadow:0 2px 8px #615c9926;cursor:pointer}.lintView .lineValue{max-width:260px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#999;font-size:14px;box-sizing:border-box}.lintView .lineIcon{display:flex;justify-content:center;align-items:center;width:20px!important;height:20px!important;box-sizing:border-box;border-radius:2px}.lintView .lineIcon:hover{background:#f0f2f5}.link-tooltip{background:#f5f6fa!important;border:.5px solid #e5e5e5;border-radius:2px;box-shadow:1px 1px 1px #5c75991a;overflow:hidden}.link-tooltip .ant-tooltip-inner{min-height:16px!important;padding:2px 4px;font-size:12px;font-weight:400;text-align:LEFT;color:#999;line-height:20px;border-radius:2px}.activeMd{box-shadow:0 2px 8px #615c9926;width:100%;padding:24px 30px;box-sizing:border-box;white-space:break-spaces;min-height:180px;display:flex;flex-direction:column;justify-content:center;max-width:600px;min-width:380px;font-family:none!important;line-height:26px;font-size:14px;color:#666;background:#fff}.activeMd img{margin:0!important}.node-active{margin:10px 0}.EditorClass{position:relative;width:100%}*:focus{outline:none;box-shadow:none}.EditorMark{position:absolute;width:100%;height:100%;z-index:999}.validateTitle img{max-width:100%}.questionTitle{width:100%;display:flex;align-items:center}.validateTitle{width:100%;margin-bottom:14px;position:relative}.validate-prompt{position:absolute;bottom:-20px}.validate-prompt-success{display:flex;align-items:center;color:#30c213;font-size:12px}.question-title-rigth{flex:1;font-size:15px;color:#333;line-height:21px;display:flex;align-items:center}.question-value{background:#fff;border:.5px solid #faad14;border-radius:2px;margin-bottom:-1px;margin-left:4px;font-size:11px;color:#faad14;box-sizing:border-box;padding:0 4px;background:#faad140d;line-height:16px}.question-type{background:#fff;border:.5px solid #1677ff;background:#1677ff0d;border-radius:2px;margin-bottom:-1px;margin-left:4px;font-size:11px;color:#1677ff;box-sizing:border-box;padding:0 4px;display:flex;justify-content:center;align-items:center;line-height:16px}.questSelect{width:100%;margin-top:20px;position:relative}.questSelectitem{width:100%;display:flex;margin-bottom:16px;align-items:center}.questSelectitem-left{width:16px;height:16px;border:1px solid #666;box-sizing:border-box;cursor:pointer;display:flex;justify-content:center;align-items:center;min-width:16px}.questSelectitem-left:hover{border:1px solid #1677FF!important}.questSelectitem-click{background:#1677ff;width:10px;height:10px;border-radius:50%}.questSelectitem-rigth{color:#666;font-size:14px;margin-left:10px;line-height:20px}.qusetion-prompt{position:absolute;bottom:-20px}.qusetion-prompt-success{display:flex;align-items:center;color:#30c213;font-size:12px}.qusetion-prompt-error{display:flex;align-items:center;color:#f5222d;font-size:12px}.questionSumbit{width:100%;padding-top:14px;display:flex;justify-content:center}.questionSumbit-btn{display:flex;color:#fff;font-size:14px;justify-content:center;align-items:center;padding:5px 30px;background:#1677ff;border-radius:2px;box-sizing:border-box;cursor:pointer}.novalue-btn{display:flex;color:#00000040;font-size:14px;justify-content:center;align-items:center;padding:4px 29px;background:#0000000a;box-sizing:border-box;border:1px solid #d9d9d9;border-radius:2px;cursor:pointer}.exec-btn{display:flex;color:#fff;font-size:14px;justify-content:center;align-items:center;padding:5px 30px;background:#1677ff;border-radius:2px;box-sizing:border-box;cursor:pointer}.last-btn{border:1px solid #d9d9d9;border-radius:2px;box-sizing:border-box;padding:5px 23px;color:#333;font-size:14px;cursor:pointer}.last-btn:hover{border:1px solid #1677FF;color:#1677ff}.questionSumbit-btn:hover{background:#4592ff}.tipContent{margin-top:40px;margin-bottom:14px}.tipValue{position:relative;width:100%;padding:10px 16px;border:.5px solid;border-image:linear-gradient(90deg,#faad141a,#faad1480 100%,#faad141a) .5 .5;border-radius:2px;box-shadow:0 2px 8px #faad141a;box-sizing:border-box;color:#666;font-size:14px;margin-top:8px}.tipIcon{position:absolute;right:0;top:0}.instructTip{margin-top:15px;margin-bottom:14px}.instructValue{background:#f5f6fa;border-radius:2px;padding:10px 16px;box-sizing:border-box;font-size:14px;color:#666;line-height:20px;margin-top:8px}pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}.hljs{color:#abb2bf;background:#282c34}.hljs-comment,.hljs-quote{color:#5c6370;font-style:italic}.hljs-doctag,.hljs-keyword,.hljs-formula{color:#c678dd}.hljs-section,.hljs-name,.hljs-selector-tag,.hljs-deletion,.hljs-subst{color:#e06c75}.hljs-literal{color:#56b6c2}.hljs-string,.hljs-regexp,.hljs-addition,.hljs-attribute,.hljs-meta .hljs-string{color:#98c379}.hljs-attr,.hljs-variable,.hljs-template-variable,.hljs-type,.hljs-selector-class,.hljs-selector-attr,.hljs-selector-pseudo,.hljs-number{color:#d19a66}.hljs-symbol,.hljs-bullet,.hljs-link,.hljs-meta,.hljs-selector-id,.hljs-title{color:#61aeee}.hljs-built_in,.hljs-title.class_,.hljs-class .hljs-title{color:#e6c07b}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:700}.hljs-link{text-decoration:underline}.pdfShow{position:relative}.pdfShow .annotationLayer{display:none}.pdfShow .react-pdf__Page__canvas{max-width:100%!important;height:100%!important}.pdfShow .react-pdf__Page__annotations{display:none}.pagechange{display:flex;align-items:center;font-size:12px;color:#666;justify-content:center;width:100%;background:#fff;cursor:pointer}.react-pdf__Page{display:flex;justify-content:center}.nowPage{width:24px;height:24px;background:#fff;border:1px solid #d9d9d9;border-radius:2px;display:flex;justify-content:center;align-items:center;margin:0 6px}.nowPageInput{border:none;background:transparent;width:100%;text-align:center;font-size:12px;color:#666}.rpv-toolbar__pagination{display:none}
1
+ .tiptap{padding:30px 40px;max-width:1000px;box-sizing:border-box;margin:0 auto}.tiptap:focus{outline:none}.tiptap *{padding:0;margin:0}.tiptap .ant-btn{padding:0 16px;height:24px;background:#1677ff;border-radius:2px;font-size:12px;line-height:24px}.tiptap>.tiptap-image{margin:20px 0}.tiptap img.ProseMirror-selectednode,.tiptap .tiptap-active-focus .activeMd{outline:2px solid #1677ff}.tiptap .inline-code{padding:2px 8px;background:#fff5ec;color:#f0861d;border-radius:2px}.tiptap .node-codeBlock{margin:20px 0}.tiptap blockquote{margin:20px 0;margin-inline-start:0!important;padding:8px 10px 8px 16px;background:#f0f2f5;color:#888;position:relative}.tiptap blockquote:after{position:absolute;left:0;bottom:0;width:4px;height:100%;background:#dcdee0;content:""}.tiptap .tableWrapper{margin:20px 0;max-width:100%;overflow-x:auto}.tiptap .tableWrapper::-webkit-scrollbar{width:0px;height:0px;cursor:default}.tiptap .tableWrapper:hover::-webkit-scrollbar{height:8px}.tiptap .tableWrapper::-webkit-scrollbar-track{background-color:transparent}.tiptap .tableWrapper::-webkit-scrollbar-thumb{background-color:#ededed;border-radius:4px}.tiptap .tableWrapper::-webkit-scrollbar-thumb:hover{background-color:#e0e0e0}.tiptap .tableWrapper table{max-width:100%}.tiptap table{border-collapse:collapse;text-align:left}.tiptap table th{background:#f0f2f5}.tiptap table th p{font-weight:700;color:#333!important}.tiptap table th,.tiptap table td{border:.5px solid #d9d9d9!important;padding:8px 20px!important;color:#666!important}.tiptap>ul{margin:20px 0!important;padding-left:18px!important}.tiptap ul{padding-left:14px;margin:0}.tiptap ul li p{line-height:28px}.tiptap ul li::marker{color:#1677ff}.tiptap ul ul ul ul{list-style-type:disc}.tiptap ul ul ul ul ul{list-style-type:circle}.tiptap ul ul ul ul ul ul{list-style-type:square}.tiptap ul ul ul ul ul ul ul{list-style-type:disc}.tiptap ul ul ul ul ul ul ul ul{list-style-type:circle}.tiptap ul ul ul ul ul ul ul ul ul{list-style-type:square}.tiptap>ol{margin:20px 0!important;padding-left:18px!important}.tiptap ol{padding-left:14px;margin:0}.tiptap ol li{margin:0}.tiptap ol li p{line-height:28px}.tiptap ol li::marker{color:#1677ff}.tiptap ol ol{list-style-type:lower-alpha}.tiptap ol ol ol{list-style-type:lower-roman}.tiptap ol ol ol ol{list-style-type:decimal}.tiptap ol ol ol ol ol{list-style-type:lower-alpha}.tiptap ol ol ol ol ol ol{list-style-type:lower-roman}.tiptap ol ol ol ol ol ol ol{list-style-type:decimal}.tiptap ol ol ol ol ol ol ol ol{list-style-type:lower-alpha}.tiptap ol ol ol ol ol ol ol ol ol{list-style-type:lower-roman}.tiptap hr{margin:20px 0;border-top:.5px solid #d9d9d9}.ylz-editor{position:relative;height:100%;max-height:100%;min-height:100%;background:#fafcff;display:flex}.ylz-editor-container{margin:0;flex:1;overflow-y:auto}.ylz-editor-container>div{width:calc(100% - 268px)}.ylz-editor-container::-webkit-scrollbar{width:6px}.ylz-editor-container::-webkit-scrollbar-track{background-color:transparent}.ylz-editor-container::-webkit-scrollbar-thumb{background-color:#cfcfcf;border-radius:10px}.ylz-editor-container::-webkit-scrollbar-thumb:hover{background-color:#b3b3b3}.ylz-editor-container-max>div{width:100%}.ylz-editor-container-read img.ProseMirror-selectednode{outline:none!important}.ylz-editor-tooltip{background:#fff;border:.5px solid #e5e5e5;border-radius:2px;box-shadow:1px 1px 2px #5c75991a;overflow:hidden}.ylz-editor-tooltip .ant-tooltip-inner{min-height:24px!important;padding:4px 8px;font-size:12px;font-weight:400;text-align:LEFT;color:#666;line-height:16px;border-radius:2px;text-align:justify}.tiptap-scroll::-webkit-scrollbar{width:8px;height:0px}.tiptap-scroll::-webkit-scrollbar-track{background-color:transparent}.tiptap-scroll::-webkit-scrollbar-thumb{background-color:#ededed;border-radius:4px}.tiptap-scroll::-webkit-scrollbar-thumb:hover{background-color:#e0e0e0}.tiptap-scroll-row::-webkit-scrollbar{width:0px;height:8px}.tiptap-scroll-row::-webkit-scrollbar-track{background-color:transparent}.tiptap-scroll-row::-webkit-scrollbar-thumb{background-color:#ededed;border-radius:4px}.tiptap-scroll-row::-webkit-scrollbar-thumb:hover{background-color:#e0e0e0}.tiptap h1,.tiptap h2,.tiptap h3,.tiptap h4,.tiptap h5,.tiptap h6{margin:20px 0!important;color:#333;font-weight:600}.tiptap h1{font-size:28px;line-height:38px}.tiptap h2{font-size:24px;line-height:34px}.tiptap h3{font-size:20px;line-height:30px}.tiptap h4{font-size:18px;line-height:28px}.tiptap h5{font-size:16px;line-height:26px}.tiptap h6{font-size:15px;line-height:24px}.tiptap-paragraph{font-size:14px;font-weight:400;color:#666;line-height:26px}.tiptap-title{font-size:28px;font-weight:600;color:block;line-height:38px;padding-bottom:20px;border-bottom:.5px solid #d9d9d9;margin-bottom:20px}.tiptap .tiptap-editor-nofocus-is-empty:before{content:attr(data-placeholder);float:left;pointer-events:none;height:0;font-size:14px;font-weight:400;color:#ccc;line-height:26px}.tiptap .tiptap-title-is-empty:before{content:attr(data-placeholder);float:left;pointer-events:none;height:0;font-size:28px;font-weight:600;color:#ccc;line-height:38px}.tiptap .tiptap-is-empty:before{content:attr(data-placeholder);float:left;pointer-events:none;height:0;font-size:14px;font-weight:400;color:#ccc;line-height:26px}.bubble-menu{display:flex;justify-content:center;align-items:center;position:relative;background:#fff;border:.5px solid #e5e5e5;border-radius:4px;box-shadow:0 2px 8px #615c9926;height:28px;z-index:1;padding:0 4px}.bubble-menu .dropdownLine{height:14px;border-left:.5px solid #d9d9d9}.bubble-menu .bubble-menu-item{display:flex;justify-content:center;align-items:center;width:20px;height:20px;border-radius:2px}.bubble-menu .bubble-menu-item:hover{background:#f0f2f5}.bubble-menu .bubble-menu-other-item{display:flex;justify-content:center;align-items:center;width:30px;height:20px;border-radius:2px;cursor:pointer}.bubble-menu .bubble-menu-other-item .bubble-menu-other-item-icon{transition:transform .5s ease-in-out}.bubble-menu .bubble-menu-other-item:hover{background:#f0f2f5}.floating-menu{width:16px;height:16px;display:flex;justify-content:center;align-items:center;border-radius:4px;border:1px solid #e0e0e0;background:#fff;padding:4px;z-index:1}.floating-menu button{width:14px;height:14px;display:flex;align-items:center;justify-content:center}.tom{margin-top:1rem;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:20px;box-sizing:border-box}.bubbleMenuDropdown{margin-top:10px}.bubbleMenuDropdown .ant-dropdown-menu{border:.5px solid #e5e5e5;border-radius:4px;box-shadow:0 2px 8px #615c9926}.bubbleMenuDropdown .ant-dropdown-menu-item{width:180px;height:28px;border-radius:2px}.bubbleMenuDropdown .ant-dropdown-menu-item:hover .MenuProps-item-left .MenuProps-item-left-text{color:#333!important}.bubbleMenuDropdown .ant-dropdown-menu-item:hover .MenuProps-item-left .MenuProps-item-left-svg svg{fill:#333}.bubbleMenuDropdown .MenuProps-item{display:flex;align-items:center;justify-content:space-between}.bubbleMenuDropdown .MenuProps-item .MenuProps-item-left{display:flex;align-items:center}.h-link{width:400px;background:#fff;border:.5px solid #e5e5e5;border-radius:4px;box-shadow:0 2px 8px #615c9926;padding:24px;box-sizing:border-box}.h-link .h-link-bottoms{display:flex;justify-content:end;align-items:center;margin-top:10px}.h-link .h-link-bottoms .cancleBtn{display:flex;align-items:center;justify-content:center;width:64px;height:32px;background:#fff;border:1px solid #d9d9d9;border-radius:2px;color:#666;font-size:14px;cursor:pointer}.h-link .h-link-bottoms .conBtn{cursor:pointer;display:flex;align-items:center;justify-content:center;width:64px;height:32px;background:#1677ff;border-radius:2px;font-size:14px;color:#fff;margin-left:10px}.h-link .h-link-line{position:relative;display:flex;align-items:center;font-size:14px;color:#333;margin-bottom:20px}.h-link .h-link-line .h-link-line-tip{position:absolute;bottom:-22px;color:#ff4d4f;font-size:14px;left:45px}.h-link .h-link-line .text{text-wrap:nowrap;margin-right:16px}.h-link .h-link-line .ant-input{border:1px solid #e5e5e5;border-radius:2px;color:#666;font-size:14px}.h-link .h-link-line .ant-input-outlined:focus{border:1px solid #1677ff}.tippy-box[data-animation=scale-extreme][data-placement^=top]{transform-origin:bottom}.tippy-box[data-animation=scale-extreme][data-placement^=bottom]{transform-origin:top}.tippy-box[data-animation=scale-extreme][data-placement^=left]{transform-origin:right}.tippy-box[data-animation=scale-extreme][data-placement^=right]{transform-origin:left}.tippy-box[data-animation=scale-extreme][data-state=hidden]{transform:scale(0);opacity:.25}.catalogue{position:absolute;top:0;right:6px;bottom:0;width:262px}.catalogue-header{padding:40px 30px 20px;display:flex;align-items:center}.catalogue-header>span{font-size:16px;font-weight:500;color:#333;line-height:16px}.catalogue-header svg{margin-left:12px;cursor:pointer}.catalogue-main{max-height:calc(100% - 76px);margin-right:2px;padding-right:10px;border-left:1px solid #d9d9d9;overflow-y:auto}.catalogue-main::-webkit-scrollbar{width:6px}.catalogue-main::-webkit-scrollbar-track{background-color:transparent}.catalogue-main::-webkit-scrollbar-thumb{background-color:#e0e0e0;border-radius:10px}.catalogue-main::-webkit-scrollbar-thumb:hover{background-color:#cfcfcf}.catalogue-main>div{padding-right:8px;height:28px;display:flex;align-items:center;cursor:pointer;position:relative}.catalogue-main>div .catalogue-collapse{margin-right:8px;width:14px;height:14px;display:flex}.catalogue-main>div .catalogue-collapse svg{fill:#999;transform:rotate(0);transition:all .5s}.catalogue-main>div .catalogue-collapse svg:hover{fill:#1677ff}.catalogue-main>div .collapsed svg{transform:rotate(-90deg)}.catalogue-main>div .catalogue-text{flex:1;font-size:13px;color:#666;line-height:initial;white-space:nowrap;word-break:break-all;text-overflow:ellipsis;overflow:hidden}.catalogue-main>div .catalogue-text:hover{color:#1677ff}.catalogue-main .active .catalogue-text{color:#1677ff!important}.catalogue-main .indent-level-1{padding-left:8px}.catalogue-main .indent-level-2{padding-left:16px}.catalogue-main .indent-level-3{padding-left:24px}.catalogue-main .indent-level-4{padding-left:32px}.catalogue-main .indent-level-5{padding-left:40px}.catalogue-main .indent-level-6{padding-left:48px}.catalogue-hover{right:0;width:268px;background:#fafcff;box-shadow:-4px 0 10px #0000000d;z-index:999}.catalogue-folded{position:absolute;top:calc(50% - 24px);right:0;display:flex;align-items:center;justify-content:center}.catalogue-folded div{width:27px;height:47px;background:#fff;border:.5px solid #e5e5e5;border-radius:2px;box-shadow:1px 1px 2px #5c75991a;font-size:14px;font-weight:400;color:#666;line-height:16px;writing-mode:vertical-lr;letter-spacing:2px;display:flex;align-items:center;justify-content:center;cursor:pointer}.tiptap .code-block{position:relative;padding:32px 10px 0;border-radius:4px}.tiptap .code-block-header{position:absolute;left:10px;top:4px;right:10px;padding:0;width:auto;box-shadow:none;justify-content:space-between;display:flex}.tiptap .code-block-header-left .ant-select{margin-right:10px}.tiptap .code-block-header .ant-select-single{height:24px}.tiptap .code-block-header .ant-select .ant-select-selector{padding:0 10px;border-radius:2px;font-size:12px}.tiptap .code-block-header .ant-select .ant-select-selector .ant-select-selection-item{line-height:24px}.tiptap .code-block-header .ant-select .ant-select-selector .ant-select-selection-search-input{height:24px}.tiptap .code-block-header .ant-checkbox-wrapper{align-items:center}.tiptap .code-block-header .ant-checkbox .ant-checkbox-inner{border-radius:2px}.tiptap .code-block-header .ant-checkbox+span{padding-inline-start:4px;padding-inline-end:4px;font-size:12px}.tiptap .code-block-body{font-size:14px;box-shadow:none;max-height:500px;overflow-y:auto}.tiptap .code-block-body::-webkit-scrollbar{width:6px}.tiptap .code-block-body::-webkit-scrollbar-track{background-color:transparent}.tiptap .code-block-body::-webkit-scrollbar-thumb{border-radius:10px}.tiptap .code-block-action{padding:10px 0;display:flex;justify-content:flex-end}.tiptap .code-block-action .ant-btn{margin-left:10px}.tiptap .code-block-action-copy{position:relative}.tiptap .code-block-action-copy .copy-tip{position:absolute;left:10px;top:-28px;width:88px;height:24px;background:#fff;border-radius:2px;box-shadow:4px 4px 10px #615c9926;display:flex;align-items:center;justify-content:center}.tiptap .code-block-action-copy .copy-tip span{margin-left:4px;color:#666;font-size:12px}.tiptap .code-block-light,.tiptap .code-block-light .code-block-header{background:#f0f2f5}.tiptap .code-block-light .code-block-header .ant-select .ant-select-selector{background:#fff;border:.5px solid #d9d9d9}.tiptap .code-block-light .code-block-header .ant-select .ant-select-selection-item{color:#333}.tiptap .code-block-light .code-block-header .ant-checkbox .ant-checkbox-inner{border:1px solid #999999}.tiptap .code-block-light .code-block-header .ant-checkbox+span{color:#666}.tiptap .code-block-light .code-block-body{background:#f0f2f5;color:#666}.tiptap .code-block-light .code-block-body::-webkit-scrollbar-thumb{background-color:#e0e0e0}.tiptap .code-block-light .code-block-body::-webkit-scrollbar-thumb:hover{background-color:#cfcfcf}.tiptap .code-block-dark,.tiptap .code-block-dark .code-block-header{background:#252525}.tiptap .code-block-dark .code-block-header .ant-select .ant-select-selector{background:#333;border:.5px solid #454545}.tiptap .code-block-dark .code-block-header .ant-select .ant-select-selection-item,.tiptap .code-block-dark .code-block-header .ant-select .ant-select-arrow{color:#ccc}.tiptap .code-block-dark .code-block-header .ant-checkbox .ant-checkbox-inner{border:1px solid #cccccc}.tiptap .code-block-dark .code-block-header .ant-checkbox+span{color:#ccc}.tiptap .code-block-dark .code-block-header .ant-checkbox-checked .ant-checkbox-inner{background-color:#1677ff;border-color:#1677ff}.tiptap .code-block-dark .code-block-body{background:#252525;color:#ccc}.tiptap .code-block-dark .code-block-body::-webkit-scrollbar-thumb{background-color:#444}.tiptap .code-block-dark .code-block-body::-webkit-scrollbar-thumb:hover{background-color:#666}.floatingmenu-tip{width:16px;height:16px;border:.5px solid #d9d9d9;border-radius:2px;display:flex;align-items:center;justify-content:center;cursor:pointer}.floatingmenu-tip:hover{background:#f0f2f5}.tiptap-menu{width:182px;box-sizing:border-box;background:#fff;border:.5px solid #e5e5e5;border-radius:4px;box-shadow:0 2px 8px #615c9926;padding:10px 4px 4px}.tiptap-menu-item:not(:last-child){margin-bottom:20px}.tiptap-menu-item-title{font-size:12px;font-weight:400;text-align:LEFT;color:#999;line-height:12px;padding-bottom:10px;padding-left:16px;margin:0!important}.tiptap-menu-item-menus{display:flex;flex-wrap:wrap;gap:10px;padding:0 16px}.tiptap-menu-item-menus-light{background:#f0f2f5!important}.tiptap-menu-item-menus-item{width:20px;height:20px;border-radius:2px;cursor:pointer;display:flex;align-items:center;justify-content:center;--color: #666666;position:relative}.tiptap-menu-item-menus-item svg{fill:var(--color)}.tiptap-menu-item-menus-item:hover{background:#f0f2f5}.tiptap-menu-item-menus-item:hover:before{box-sizing:border-box;position:absolute;content:attr(data-tip);width:fit-content;left:50%;transform:translate(-50%);top:100%;white-space:nowrap;background:#fff;border:.5px solid #e5e5e5;border-radius:2px;font-size:12px;font-weight:400;color:#666;line-height:12px;padding:4px;box-shadow:1px 1px 2px #5c75991a;z-index:100}.tiptap-menu-item-list-item{height:28px;border-radius:2px;cursor:pointer;display:flex;align-items:center}.tiptap-menu-item-list-item:hover{background:#f0f2f5}.tiptap-menu-item-list-item svg{margin:0 18px}.tiptap-menu-item-list-item span{font-size:13px;font-weight:400;text-align:LEFT;color:#666;line-height:13px}.tiptap-table-select{background-color:#fff;border:.5px solid #e5e5e5;border-radius:4px;box-shadow:0 2px 8px #615c9926;padding:10px 15px;box-sizing:border-box;width:282px;position:relative;left:6px}.tiptap-table-select-title{padding-bottom:10px;display:flex;align-items:center;justify-content:space-between}.tiptap-table-select-title-left{font-size:12px}.tiptap-table-select-title-right{font-size:12px;color:#8a8a8a;letter-spacing:2px}.tiptap-table-select-content{border:1px solid #e5e5e5;display:flex;flex-wrap:wrap;padding:10px;gap:6px;cursor:pointer}.tiptap-table-select-content div{width:20px;height:20px;background-color:#e9e9e9;box-sizing:border-box;border:1px solid #e1e1e1}.tiptap-table-select-content div.light{background-color:#d0e4ff;border-color:#d0e4ff}.tiptap-changemenu{background:#fff;border:.5px solid #e5e5e5;border-radius:4px;padding:4px;box-shadow:0 2px 8px #615c9926}.tiptap-changemenu-item{width:72px;height:28px;border-radius:2px;display:flex;align-items:center;justify-content:left;font-size:13px;font-weight:400;text-align:LEFT;color:#666;line-height:13px;cursor:pointer}.tiptap-changemenu-item:hover{background:#f0f2f5}.tiptap-changemenu-item svg{margin-left:10px;margin-right:8px}.tiptap-changemenu-item-del svg{fill:#999!important}.tiptap-changemenu-item-del:hover{color:#f5222d!important}.tiptap-changemenu-item-del:hover svg{fill:#f5222d!important}.tiptap .tiptap-image{display:block;object-fit:contain;max-width:100%;max-height:100%;height:auto}.tiptap-paragraph a{position:relative;display:inline-block;color:#1677ff;text-decoration:none;cursor:pointer}.tiptap-paragraph a:hover{color:#1677ff;text-decoration:underline}.hoveValue{background:#fff;border:.5px solid #e5e5e5;border-radius:2px;box-shadow:0 2px 8px #615c9926;height:20px;box-sizing:border-box;padding:0 4px;color:#666;font-size:12px;display:flex;align-items:center}.lintView{height:28px;display:flex;align-items:center;padding:0 10px;background:#fff;border:.5px solid #e5e5e5;border-radius:2px;box-shadow:0 2px 8px #615c9926;cursor:pointer}.lintView .lineValue{max-width:260px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#999;font-size:14px;box-sizing:border-box}.lintView .lineIcon{display:flex;justify-content:center;align-items:center;width:20px!important;height:20px!important;box-sizing:border-box;border-radius:2px}.lintView .lineIcon:hover{background:#f0f2f5}.link-tooltip{background:#f5f6fa!important;border:.5px solid #e5e5e5;border-radius:2px;box-shadow:1px 1px 1px #5c75991a;overflow:hidden}.link-tooltip .ant-tooltip-inner{min-height:16px!important;padding:2px 4px;font-size:12px;font-weight:400;text-align:LEFT;color:#999;line-height:20px;border-radius:2px}.activeMd{box-shadow:0 2px 8px #615c9926;width:100%;padding:24px 30px;box-sizing:border-box;white-space:break-spaces;min-height:180px;display:flex;flex-direction:column;justify-content:center;max-width:600px;min-width:380px;font-family:none!important;line-height:26px;font-size:14px;color:#666;background:#fff}.activeMd img{margin:0!important}.node-active{margin:10px 0}.EditorClass{position:relative;width:100%}*:focus{outline:none;box-shadow:none}.EditorMark{position:absolute;width:100%;height:100%;z-index:999}.validateTitle img{max-width:100%}.questionTitle{width:100%;display:flex;align-items:center}.validateTitle{width:100%;margin-bottom:14px;position:relative}.validate-prompt{position:absolute;bottom:-20px}.validate-prompt-success{display:flex;align-items:center;color:#30c213;font-size:12px}.question-title-rigth{flex:1;font-size:15px;color:#333;line-height:21px;display:flex;align-items:center}.question-value{background:#fff;border:.5px solid #faad14;border-radius:2px;margin-bottom:-1px;margin-left:4px;font-size:11px;color:#faad14;box-sizing:border-box;padding:0 4px;background:#faad140d;line-height:16px}.question-type{background:#fff;border:.5px solid #1677ff;background:#1677ff0d;border-radius:2px;margin-bottom:-1px;margin-left:4px;font-size:11px;color:#1677ff;box-sizing:border-box;padding:0 4px;display:flex;justify-content:center;align-items:center;line-height:16px}.questSelect{width:100%;margin-top:20px;position:relative}.questSelectitem{width:100%;display:flex;margin-bottom:16px;align-items:center}.questSelectitem-left{width:16px;height:16px;border:1px solid #666;box-sizing:border-box;cursor:pointer;display:flex;justify-content:center;align-items:center;min-width:16px}.questSelectitem-left:hover{border:1px solid #1677FF!important}.questSelectitem-click{background:#1677ff;width:10px;height:10px;border-radius:50%}.questSelectitem-rigth{color:#666;font-size:14px;margin-left:10px;line-height:20px}.qusetion-prompt{position:absolute;bottom:-20px}.qusetion-prompt-success{display:flex;align-items:center;color:#30c213;font-size:12px}.qusetion-prompt-error{display:flex;align-items:center;color:#f5222d;font-size:12px}.questionSumbit{width:100%;padding-top:14px;display:flex;justify-content:center}.questionSumbit-btn{display:flex;color:#fff;font-size:14px;justify-content:center;align-items:center;padding:5px 30px;background:#1677ff;border-radius:2px;box-sizing:border-box;cursor:pointer}.novalue-btn{display:flex;color:#00000040;font-size:14px;justify-content:center;align-items:center;padding:4px 29px;background:#0000000a;box-sizing:border-box;border:1px solid #d9d9d9;border-radius:2px;cursor:pointer}.exec-btn{display:flex;color:#fff;font-size:14px;justify-content:center;align-items:center;padding:5px 30px;background:#1677ff;border-radius:2px;box-sizing:border-box;cursor:pointer}.last-btn{border:1px solid #d9d9d9;border-radius:2px;box-sizing:border-box;padding:5px 23px;color:#333;font-size:14px;cursor:pointer}.last-btn:hover{border:1px solid #1677FF;color:#1677ff}.questionSumbit-btn:hover{background:#4592ff}.tipContent{margin-top:40px;margin-bottom:14px}.tipValue{position:relative;width:100%;padding:10px 16px;border:.5px solid;border-image:linear-gradient(90deg,#faad141a,#faad1480 100%,#faad141a) .5 .5;border-radius:2px;box-shadow:0 2px 8px #faad141a;box-sizing:border-box;color:#666;font-size:14px;margin-top:8px}.tipIcon{position:absolute;right:0;top:0}.instructTip{margin-top:15px;margin-bottom:14px}.instructValue{background:#f5f6fa;border-radius:2px;padding:10px 16px;box-sizing:border-box;font-size:14px;color:#666;line-height:20px;margin-top:8px}pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}.hljs{color:#abb2bf;background:#282c34}.hljs-comment,.hljs-quote{color:#5c6370;font-style:italic}.hljs-doctag,.hljs-keyword,.hljs-formula{color:#c678dd}.hljs-section,.hljs-name,.hljs-selector-tag,.hljs-deletion,.hljs-subst{color:#e06c75}.hljs-literal{color:#56b6c2}.hljs-string,.hljs-regexp,.hljs-addition,.hljs-attribute,.hljs-meta .hljs-string{color:#98c379}.hljs-attr,.hljs-variable,.hljs-template-variable,.hljs-type,.hljs-selector-class,.hljs-selector-attr,.hljs-selector-pseudo,.hljs-number{color:#d19a66}.hljs-symbol,.hljs-bullet,.hljs-link,.hljs-meta,.hljs-selector-id,.hljs-title{color:#61aeee}.hljs-built_in,.hljs-title.class_,.hljs-class .hljs-title{color:#e6c07b}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:700}.hljs-link{text-decoration:underline}.pdfShow{position:relative}.pdfShow .annotationLayer{display:none}.pdfShow .react-pdf__Page__canvas{max-width:100%!important;height:100%!important}.pdfShow .react-pdf__Page__annotations{display:none}.pagechange{display:flex;align-items:center;font-size:12px;color:#666;justify-content:center;width:100%;background:#fff;cursor:pointer}.react-pdf__Page{display:flex;justify-content:center}.nowPage{width:24px;height:24px;background:#fff;border:1px solid #d9d9d9;border-radius:2px;display:flex;justify-content:center;align-items:center;margin:0 6px}.nowPageInput{border:none;background:transparent;width:100%;text-align:center;font-size:12px;color:#666}.rpv-toolbar__pagination{display:none}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ylzcc/editor",
3
- "version": "0.2.18",
3
+ "version": "0.2.19",
4
4
  "type": "module",
5
5
  "description": "editor ui components",
6
6
  "keywords": [