Auto Submit

pull/1/head
autosubmit 8 months ago
parent 5b94e57d02
commit e34b075e8a

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -136,7 +136,7 @@
initArrayDisplay();
<\/script>
</body>
</html>`;function de({open:oe=!0,onChange:a,defaultValue:E,placement:b,width:y,height:z,extra:ee,onDynamic:ne,onOpenChange:ae,showExtra:ie=!0}){const re=(0,x.useRef)(null),le=(0,x.useRef)(null),[Se,Ae]=(0,x.useState)(E||""),[we,Me]=(0,x.useState)(E||""),[ye,tt]=(0,x.useState)(!!oe),[Ce,xe]=(0,x.useState)(1),be={selectOnLineNumbers:!0};(0,x.useEffect)(()=>{oe&&(Ae(E),Me(E),tt(!0))},[oe,E]),(0,x.useEffect)(()=>{Se!==""&&(clearTimeout(le.current),le.current=setTimeout(()=>{const Ue=document.createElement("iframe");if(Ue.style.width="100%",Ue.style.height="100%",Ue.style.border="0",re.current){re.current.innerHTML="",re.current.appendChild(Ue);const Te=Ue.contentDocument||Ue.contentWindow.document;Te.open(),Te.write(Se),Te.close()}},1e3))},[oe,Se]);const De=Ue=>{Ae(Ue),a==null||a(Ue,we)};return ue.createElement(ce.Z,{title:"\u667A\u80FD\u52A8\u6548",placement:"right",open:ye,width:"100%",height:z||"100vh",rootClassName:pe.smartWrp,destroyOnClose:!0,onClose:()=>{tt(!1),ae==null||ae(Se)},extra:ie&&ue.createElement("div",null,ue.createElement(ge.tp,{dataSource:[{name:"\u9884\u89C8",id:1},{name:"\u4EE3\u7801",id:2}],value:Ce,onChange:Ue=>xe(Ue)}),ue.createElement(Pe.Z,{type:"primary",className:"ml20",onClick:()=>se(this,null,function*(){yield ne(Se,()=>{tt(!1)})})},"\u4FDD\u5B58\u81F3\u8BFE\u4EF6"))},ue.createElement(Ie.Z,{className:"h100"},ue.createElement(he.Z,{flex:"1",style:{background:"#f6f7fb",borderRight:"#e8eaf1 1px solid",display:Ce===1?"block":"none"}},ue.createElement("div",{className:"h100",ref:re})),ue.createElement(he.Z,{flex:"1",style:{display:Ce===2?"block":"none"}},ue.createElement(me.ZP,{height:"90vh",value:E,language:"html",theme:"vs",showMiniMap:!1,options:be,onChange:De}))))}var Ne=de},10946:function(Fe,Le,te){"use strict";te.d(Le,{Z:function(){return Se}});var x=te(59301),ce=te(72460),Ie=te(77596),he=te(3977),pe=te(14179),me=te(56102),ge={answer:"answer___UngkO",imgWrap:"imgWrap___ORTRf",codeCopy:"codeCopy___re8vm",runCode:"runCode___MYs9m"},Pe=te(6767),ue=te(90083),se=te(95827),Be=te(30084),de=te(10787),Ne=te(8944),oe=te(81679),a=Object.defineProperty,E=Object.defineProperties,b=Object.getOwnPropertyDescriptors,y=Object.getOwnPropertySymbols,z=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable,ne=(Ae,we,Me)=>we in Ae?a(Ae,we,{enumerable:!0,configurable:!0,writable:!0,value:Me}):Ae[we]=Me,ae=(Ae,we)=>{for(var Me in we||(we={}))z.call(we,Me)&&ne(Ae,Me,we[Me]);if(y)for(var Me of y(we))ee.call(we,Me)&&ne(Ae,Me,we[Me]);return Ae},ie=(Ae,we)=>E(Ae,b(we)),re=(Ae,we)=>{var Me={};for(var ye in Ae)z.call(Ae,ye)&&we.indexOf(ye)<0&&(Me[ye]=Ae[ye]);if(Ae!=null&&y)for(var ye of y(Ae))we.indexOf(ye)<0&&ee.call(Ae,ye)&&(Me[ye]=Ae[ye]);return Me},Se=({onFinish:Ae,value:we,streamingStatus:Me,cancelIndex:ye,loadImage:tt,onDynamic:Ce,isHiddenHtml:xe})=>{const[be,De]=(0,x.useState)(""),[Ue,Te]=(0,x.useState)({defaultValue:"",open:0,language:"",placement:"right",height:"100vh"}),[Ze,rt]=(0,x.useState)(0),[mt,At]=(0,x.useState)(!1),Qe=et=>et.replace(/`(\$\$.*?\$\$)`/g,"$1").replace(/\$\$([\s\S]*?)\$\$/g,(We,fe)=>`<mathx data-text="${fe.trim()}">$$${fe.trim()}$$</mathx>`).replace(/\\\(([\s\S]*?)\\\)/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/\\\[([\s\S]*?)\\\]/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/_{2,}/g,"`$&`"),ze=()=>{At(!0),Ae==null||Ae()};(0,x.useEffect)(()=>{const et=tt?`\u8FD9\u662F\u6839\u636E\u60A8\u7684\u63CF\u8FF0\u751F\u6210\u7684\u56FE\u7247\uFF1A
</html>`;function de({open:oe=!0,onChange:a,defaultValue:E,placement:b,width:y,height:z,extra:ee,onDynamic:ne,onOpenChange:ae,showExtra:ie=!0}){const re=(0,x.useRef)(null),le=(0,x.useRef)(null),[Se,Ae]=(0,x.useState)(E||""),[we,Me]=(0,x.useState)(E||""),[ye,tt]=(0,x.useState)(!!oe),[Ce,xe]=(0,x.useState)(1),be={selectOnLineNumbers:!0};(0,x.useEffect)(()=>{oe&&(Ae(E),Me(E),tt(!0))},[oe,E]),(0,x.useEffect)(()=>{Se!==""&&(clearTimeout(le.current),le.current=setTimeout(()=>{const Ue=document.createElement("iframe");if(Ue.style.width="100%",Ue.style.height="100%",Ue.style.border="0",re.current){re.current.innerHTML="",re.current.appendChild(Ue);const Te=Ue.contentDocument||Ue.contentWindow.document;Te.open(),Te.write(Se),Te.close()}},1e3))},[oe,Se]);const De=Ue=>{Ae(Ue),a==null||a(Ue,we)};return ue.createElement(ce.Z,{title:"\u667A\u80FD\u52A8\u6548",placement:"right",open:ye,width:"100%",height:z||"100vh",rootClassName:pe.smartWrp,destroyOnClose:!0,onClose:()=>{tt(!1),ae==null||ae(Se)},extra:ie&&ue.createElement("div",null,ue.createElement(ge.tp,{dataSource:[{name:"\u9884\u89C8",id:1},{name:"\u4EE3\u7801",id:2}],value:Ce,onChange:Ue=>xe(Ue)}),ue.createElement(Pe.Z,{type:"primary",className:"ml20",onClick:()=>se(this,null,function*(){yield ne(Se,()=>{tt(!1)})})},"\u4FDD\u5B58\u81F3\u8BFE\u4EF6"))},ue.createElement(Ie.Z,{className:"h100"},ue.createElement(he.Z,{flex:"1",style:{background:"#f6f7fb",borderRight:"#e8eaf1 1px solid",display:Ce===1?"block":"none"}},ue.createElement("div",{className:"h100",ref:re})),ue.createElement(he.Z,{flex:"1",style:{display:Ce===2?"block":"none"}},ue.createElement(me.ZP,{height:"90vh",value:E,language:"html",theme:"vs",showMiniMap:!1,options:be,onChange:De}))))}var Ne=de},10946:function(Fe,Le,te){"use strict";te.d(Le,{Z:function(){return Se}});var x=te(59301),ce=te(97831),Ie=te(77596),he=te(3977),pe=te(14179),me=te(56102),ge={answer:"answer___UngkO",imgWrap:"imgWrap___ORTRf",codeCopy:"codeCopy___re8vm",runCode:"runCode___MYs9m"},Pe=te(6767),ue=te(90083),se=te(95827),Be=te(30084),de=te(10787),Ne=te(8944),oe=te(81679),a=Object.defineProperty,E=Object.defineProperties,b=Object.getOwnPropertyDescriptors,y=Object.getOwnPropertySymbols,z=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable,ne=(Ae,we,Me)=>we in Ae?a(Ae,we,{enumerable:!0,configurable:!0,writable:!0,value:Me}):Ae[we]=Me,ae=(Ae,we)=>{for(var Me in we||(we={}))z.call(we,Me)&&ne(Ae,Me,we[Me]);if(y)for(var Me of y(we))ee.call(we,Me)&&ne(Ae,Me,we[Me]);return Ae},ie=(Ae,we)=>E(Ae,b(we)),re=(Ae,we)=>{var Me={};for(var ye in Ae)z.call(Ae,ye)&&we.indexOf(ye)<0&&(Me[ye]=Ae[ye]);if(Ae!=null&&y)for(var ye of y(Ae))we.indexOf(ye)<0&&ee.call(Ae,ye)&&(Me[ye]=Ae[ye]);return Me},Se=({onFinish:Ae,value:we,streamingStatus:Me,cancelIndex:ye,loadImage:tt,onDynamic:Ce,isHiddenHtml:xe})=>{const[be,De]=(0,x.useState)(""),[Ue,Te]=(0,x.useState)({defaultValue:"",open:0,language:"",placement:"right",height:"100vh"}),[Ze,rt]=(0,x.useState)(0),[mt,At]=(0,x.useState)(!1),Qe=et=>et.replace(/`(\$\$.*?\$\$)`/g,"$1").replace(/\$\$([\s\S]*?)\$\$/g,(We,fe)=>`<mathx data-text="${fe.trim()}">$$${fe.trim()}$$</mathx>`).replace(/\\\(([\s\S]*?)\\\)/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/\\\[([\s\S]*?)\\\]/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/_{2,}/g,"`$&`"),ze=()=>{At(!0),Ae==null||Ae()};(0,x.useEffect)(()=>{const et=tt?`\u8FD9\u662F\u6839\u636E\u60A8\u7684\u63CF\u8FF0\u751F\u6210\u7684\u56FE\u7247\uFF1A
${we}`:we,We=Qe(et);if(!mt)if(tt||!Me||ye>0){De(We),rt(We.length),(!Me||ye>0)&&!tt&&ze();return}else if((We==null?void 0:We.length)<4)De(We),rt(We.length);else if(Ze<We.length){const fe=We.length-Ze,Oe=setInterval(()=>{De(We.slice(0,Ze+2)),rt($e=>$e+2)},fe>10?Math.max(500/(fe/2),20):50);return()=>clearInterval(Oe)}else Me||ze()},[we,Me,ye,tt,Ze]);const He=(0,x.useMemo)(()=>x.createElement("section",{className:`${ge.answer} fadeIn animated edu_md`},x.createElement(ce.UG,{remarkPlugins:[Be.Z,de.Z],rehypePlugins:[se.Z,he.Z],components:{code(et){var We=et,{node:fe,inline:Oe,className:$e,children:qe}=We,Ke=re(We,["node","inline","className","children"]);const it=/language-(\w+)/.exec($e||""),Nt=String(qe).trim();return Oe||!it?x.createElement("code",ae({className:$e},Ke),qe):x.createElement("code",{className:ge.codeCopy,"data-text":`\`\`\`${it?it[1]:""}
${qe}

@ -136,7 +136,7 @@
initArrayDisplay();
<\/script>
</body>
</html>`;function Te({open:le=!0,onChange:E,defaultValue:y,placement:x,width:b,height:z,extra:te,onDynamic:ne,onOpenChange:me,showExtra:Ee=!0}){const ce=(0,a.useRef)(null),ve=(0,a.useRef)(null),[Ce,be]=(0,a.useState)(y||""),[Me,Ge]=(0,a.useState)(y||""),[We,je]=(0,a.useState)(!!le),[Ye,Ve]=(0,a.useState)(1),mt={selectOnLineNumbers:!0};(0,a.useEffect)(()=>{le&&(be(y),Ge(y),je(!0))},[le,y]),(0,a.useEffect)(()=>{Ce!==""&&(clearTimeout(ve.current),ve.current=setTimeout(()=>{const St=document.createElement("iframe");if(St.style.width="100%",St.style.height="100%",St.style.border="0",ce.current){ce.current.innerHTML="",ce.current.appendChild(St);const nt=St.contentDocument||St.contentWindow.document;nt.open(),nt.write(Ce),nt.close()}},1e3))},[le,Ce]);const Et=St=>{be(St),E==null||E(St,Me)};return Fe.createElement(he.Z,{title:"\u667A\u80FD\u52A8\u6548",placement:"right",open:We,width:"100%",height:z||"100vh",rootClassName:Be.smartWrp,destroyOnClose:!0,onClose:()=>{je(!1),me==null||me(Ce)},extra:Ee&&Fe.createElement("div",null,Fe.createElement(Ae.tp,{dataSource:[{name:"\u9884\u89C8",id:1},{name:"\u4EE3\u7801",id:2}],value:Ye,onChange:St=>Ve(St)}),Fe.createElement(Le.Z,{type:"primary",className:"ml20",onClick:()=>de(this,null,function*(){yield ne(Ce,()=>{je(!1)})})},"\u4FDD\u5B58\u81F3\u8BFE\u4EF6"))},Fe.createElement(Ie.Z,{className:"h100"},Fe.createElement(pe.Z,{flex:"1",style:{background:"#f6f7fb",borderRight:"#e8eaf1 1px solid",display:Ye===1?"block":"none"}},Fe.createElement("div",{className:"h100",ref:ce})),Fe.createElement(pe.Z,{flex:"1",style:{display:Ye===2?"block":"none"}},Fe.createElement(we.ZP,{height:"90vh",value:y,language:"html",theme:"vs",showMiniMap:!1,options:mt,onChange:Et}))))}var xe=Te},10946:function(ct,Xe,ee){"use strict";ee.d(Xe,{Z:function(){return Ce}});var a=ee(59301),he=ee(72460),Ie=ee(77596),pe=ee(3977),Be=ee(14179),we=ee(56102),Ae={answer:"answer___UngkO",imgWrap:"imgWrap___ORTRf",codeCopy:"codeCopy___re8vm",runCode:"runCode___MYs9m"},Le=ee(6767),Fe=ee(90083),de=ee(95827),Oe=ee(30084),Te=ee(10787),xe=ee(8944),le=ee(81679),E=Object.defineProperty,y=Object.defineProperties,x=Object.getOwnPropertyDescriptors,b=Object.getOwnPropertySymbols,z=Object.prototype.hasOwnProperty,te=Object.prototype.propertyIsEnumerable,ne=(be,Me,Ge)=>Me in be?E(be,Me,{enumerable:!0,configurable:!0,writable:!0,value:Ge}):be[Me]=Ge,me=(be,Me)=>{for(var Ge in Me||(Me={}))z.call(Me,Ge)&&ne(be,Ge,Me[Ge]);if(b)for(var Ge of b(Me))te.call(Me,Ge)&&ne(be,Ge,Me[Ge]);return be},Ee=(be,Me)=>y(be,x(Me)),ce=(be,Me)=>{var Ge={};for(var We in be)z.call(be,We)&&Me.indexOf(We)<0&&(Ge[We]=be[We]);if(be!=null&&b)for(var We of b(be))Me.indexOf(We)<0&&te.call(be,We)&&(Ge[We]=be[We]);return Ge},Ce=({onFinish:be,value:Me,streamingStatus:Ge,cancelIndex:We,loadImage:je,onDynamic:Ye,isHiddenHtml:Ve})=>{const[mt,Et]=(0,a.useState)(""),[St,nt]=(0,a.useState)({defaultValue:"",open:0,language:"",placement:"right",height:"100vh"}),[Bt,dn]=(0,a.useState)(0),[Fn,ft]=(0,a.useState)(!1),Je=Mt=>Mt.replace(/`(\$\$.*?\$\$)`/g,"$1").replace(/\$\$([\s\S]*?)\$\$/g,(Ot,ut)=>`<mathx data-text="${ut.trim()}">$$${ut.trim()}$$</mathx>`).replace(/\\\(([\s\S]*?)\\\)/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/\\\[([\s\S]*?)\\\]/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/_{2,}/g,"`$&`"),ot=()=>{ft(!0),be==null||be()};(0,a.useEffect)(()=>{const Mt=je?`\u8FD9\u662F\u6839\u636E\u60A8\u7684\u63CF\u8FF0\u751F\u6210\u7684\u56FE\u7247\uFF1A
</html>`;function Te({open:le=!0,onChange:E,defaultValue:y,placement:x,width:b,height:z,extra:te,onDynamic:ne,onOpenChange:me,showExtra:Ee=!0}){const ce=(0,a.useRef)(null),ve=(0,a.useRef)(null),[Ce,be]=(0,a.useState)(y||""),[Me,Ge]=(0,a.useState)(y||""),[We,je]=(0,a.useState)(!!le),[Ye,Ve]=(0,a.useState)(1),mt={selectOnLineNumbers:!0};(0,a.useEffect)(()=>{le&&(be(y),Ge(y),je(!0))},[le,y]),(0,a.useEffect)(()=>{Ce!==""&&(clearTimeout(ve.current),ve.current=setTimeout(()=>{const St=document.createElement("iframe");if(St.style.width="100%",St.style.height="100%",St.style.border="0",ce.current){ce.current.innerHTML="",ce.current.appendChild(St);const nt=St.contentDocument||St.contentWindow.document;nt.open(),nt.write(Ce),nt.close()}},1e3))},[le,Ce]);const Et=St=>{be(St),E==null||E(St,Me)};return Fe.createElement(he.Z,{title:"\u667A\u80FD\u52A8\u6548",placement:"right",open:We,width:"100%",height:z||"100vh",rootClassName:Be.smartWrp,destroyOnClose:!0,onClose:()=>{je(!1),me==null||me(Ce)},extra:Ee&&Fe.createElement("div",null,Fe.createElement(Ae.tp,{dataSource:[{name:"\u9884\u89C8",id:1},{name:"\u4EE3\u7801",id:2}],value:Ye,onChange:St=>Ve(St)}),Fe.createElement(Le.Z,{type:"primary",className:"ml20",onClick:()=>de(this,null,function*(){yield ne(Ce,()=>{je(!1)})})},"\u4FDD\u5B58\u81F3\u8BFE\u4EF6"))},Fe.createElement(Ie.Z,{className:"h100"},Fe.createElement(pe.Z,{flex:"1",style:{background:"#f6f7fb",borderRight:"#e8eaf1 1px solid",display:Ye===1?"block":"none"}},Fe.createElement("div",{className:"h100",ref:ce})),Fe.createElement(pe.Z,{flex:"1",style:{display:Ye===2?"block":"none"}},Fe.createElement(we.ZP,{height:"90vh",value:y,language:"html",theme:"vs",showMiniMap:!1,options:mt,onChange:Et}))))}var xe=Te},10946:function(ct,Xe,ee){"use strict";ee.d(Xe,{Z:function(){return Ce}});var a=ee(59301),he=ee(97831),Ie=ee(77596),pe=ee(3977),Be=ee(14179),we=ee(56102),Ae={answer:"answer___UngkO",imgWrap:"imgWrap___ORTRf",codeCopy:"codeCopy___re8vm",runCode:"runCode___MYs9m"},Le=ee(6767),Fe=ee(90083),de=ee(95827),Oe=ee(30084),Te=ee(10787),xe=ee(8944),le=ee(81679),E=Object.defineProperty,y=Object.defineProperties,x=Object.getOwnPropertyDescriptors,b=Object.getOwnPropertySymbols,z=Object.prototype.hasOwnProperty,te=Object.prototype.propertyIsEnumerable,ne=(be,Me,Ge)=>Me in be?E(be,Me,{enumerable:!0,configurable:!0,writable:!0,value:Ge}):be[Me]=Ge,me=(be,Me)=>{for(var Ge in Me||(Me={}))z.call(Me,Ge)&&ne(be,Ge,Me[Ge]);if(b)for(var Ge of b(Me))te.call(Me,Ge)&&ne(be,Ge,Me[Ge]);return be},Ee=(be,Me)=>y(be,x(Me)),ce=(be,Me)=>{var Ge={};for(var We in be)z.call(be,We)&&Me.indexOf(We)<0&&(Ge[We]=be[We]);if(be!=null&&b)for(var We of b(be))Me.indexOf(We)<0&&te.call(be,We)&&(Ge[We]=be[We]);return Ge},Ce=({onFinish:be,value:Me,streamingStatus:Ge,cancelIndex:We,loadImage:je,onDynamic:Ye,isHiddenHtml:Ve})=>{const[mt,Et]=(0,a.useState)(""),[St,nt]=(0,a.useState)({defaultValue:"",open:0,language:"",placement:"right",height:"100vh"}),[Bt,dn]=(0,a.useState)(0),[Fn,ft]=(0,a.useState)(!1),Je=Mt=>Mt.replace(/`(\$\$.*?\$\$)`/g,"$1").replace(/\$\$([\s\S]*?)\$\$/g,(Ot,ut)=>`<mathx data-text="${ut.trim()}">$$${ut.trim()}$$</mathx>`).replace(/\\\(([\s\S]*?)\\\)/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/\\\[([\s\S]*?)\\\]/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/_{2,}/g,"`$&`"),ot=()=>{ft(!0),be==null||be()};(0,a.useEffect)(()=>{const Mt=je?`\u8FD9\u662F\u6839\u636E\u60A8\u7684\u63CF\u8FF0\u751F\u6210\u7684\u56FE\u7247\uFF1A
${Me}`:Me,Ot=Je(Mt);if(!Fn)if(je||!Ge||We>0){Et(Ot),dn(Ot.length),(!Ge||We>0)&&!je&&ot();return}else if((Ot==null?void 0:Ot.length)<4)Et(Ot),dn(Ot.length);else if(Bt<Ot.length){const ut=Ot.length-Bt,qe=setInterval(()=>{Et(Ot.slice(0,Bt+2)),dn(an=>an+2)},ut>10?Math.max(500/(ut/2),20):50);return()=>clearInterval(qe)}else Ge||ot()},[Me,Ge,We,je,Bt]);const gt=(0,a.useMemo)(()=>a.createElement("section",{className:`${Ae.answer} fadeIn animated edu_md`},a.createElement(he.UG,{remarkPlugins:[Oe.Z,Te.Z],rehypePlugins:[de.Z,pe.Z],components:{code(Mt){var Ot=Mt,{node:ut,inline:qe,className:an,children:On}=Ot,_n=ce(Ot,["node","inline","className","children"]);const Dt=/language-(\w+)/.exec(an||""),cn=String(On).trim();return qe||!Dt?a.createElement("code",me({className:an},_n),On):a.createElement("code",{className:Ae.codeCopy,"data-text":`\`\`\`${Dt?Dt[1]:""}
${On}

@ -136,7 +136,7 @@
initArrayDisplay();
<\/script>
</body>
</html>`;function Ne({open:oe=!0,onChange:a,defaultValue:E,placement:b,width:y,height:ee,extra:z,onDynamic:ne,onOpenChange:ae,showExtra:le=!0}){const re=(0,x.useRef)(null),ue=(0,x.useRef)(null),[ce,se]=(0,x.useState)(E||""),[ge,fe]=(0,x.useState)(E||""),[Fe,Ue]=(0,x.useState)(!!oe),[xe,Ge]=(0,x.useState)(1),Ze={selectOnLineNumbers:!0};(0,x.useEffect)(()=>{oe&&(se(E),fe(E),Ue(!0))},[oe,E]),(0,x.useEffect)(()=>{ce!==""&&(clearTimeout(ue.current),ue.current=setTimeout(()=>{const je=document.createElement("iframe");if(je.style.width="100%",je.style.height="100%",je.style.border="0",re.current){re.current.innerHTML="",re.current.appendChild(je);const me=je.contentDocument||je.contentWindow.document;me.open(),me.write(ce),me.close()}},1e3))},[oe,ce]);const De=je=>{se(je),a==null||a(je,ge)};return de.createElement(ve.Z,{title:"\u667A\u80FD\u52A8\u6548",placement:"right",open:Fe,width:"100%",height:ee||"100vh",rootClassName:pe.smartWrp,destroyOnClose:!0,onClose:()=>{Ue(!1),ae==null||ae(ce)},extra:le&&de.createElement("div",null,de.createElement(he.tp,{dataSource:[{name:"\u9884\u89C8",id:1},{name:"\u4EE3\u7801",id:2}],value:xe,onChange:je=>Ge(je)}),de.createElement(Ce.Z,{type:"primary",className:"ml20",onClick:()=>ie(this,null,function*(){yield ne(ce,()=>{Ue(!1)})})},"\u4FDD\u5B58\u81F3\u8BFE\u4EF6"))},de.createElement(Oe.Z,{className:"h100"},de.createElement(Se.Z,{flex:"1",style:{background:"#f6f7fb",borderRight:"#e8eaf1 1px solid",display:xe===1?"block":"none"}},de.createElement("div",{className:"h100",ref:re})),de.createElement(Se.Z,{flex:"1",style:{display:xe===2?"block":"none"}},de.createElement(Pe.ZP,{height:"90vh",value:E,language:"html",theme:"vs",showMiniMap:!1,options:Ze,onChange:De}))))}var Xe=Ne},10946:function(we,Ye,te){"use strict";te.d(Ye,{Z:function(){return ce}});var x=te(59301),ve=te(72460),Oe=te(77596),Se=te(3977),pe=te(14179),Pe=te(56102),he={answer:"answer___UngkO",imgWrap:"imgWrap___ORTRf",codeCopy:"codeCopy___re8vm",runCode:"runCode___MYs9m"},Ce=te(6767),de=te(90083),ie=te(95827),Ie=te(30084),Ne=te(10787),Xe=te(8944),oe=te(81679),a=Object.defineProperty,E=Object.defineProperties,b=Object.getOwnPropertyDescriptors,y=Object.getOwnPropertySymbols,ee=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable,ne=(se,ge,fe)=>ge in se?a(se,ge,{enumerable:!0,configurable:!0,writable:!0,value:fe}):se[ge]=fe,ae=(se,ge)=>{for(var fe in ge||(ge={}))ee.call(ge,fe)&&ne(se,fe,ge[fe]);if(y)for(var fe of y(ge))z.call(ge,fe)&&ne(se,fe,ge[fe]);return se},le=(se,ge)=>E(se,b(ge)),re=(se,ge)=>{var fe={};for(var Fe in se)ee.call(se,Fe)&&ge.indexOf(Fe)<0&&(fe[Fe]=se[Fe]);if(se!=null&&y)for(var Fe of y(se))ge.indexOf(Fe)<0&&z.call(se,Fe)&&(fe[Fe]=se[Fe]);return fe},ce=({onFinish:se,value:ge,streamingStatus:fe,cancelIndex:Fe,loadImage:Ue,onDynamic:xe,isHiddenHtml:Ge})=>{const[Ze,De]=(0,x.useState)(""),[je,me]=(0,x.useState)({defaultValue:"",open:0,language:"",placement:"right",height:"100vh"}),[ye,He]=(0,x.useState)(0),[tt,lt]=(0,x.useState)(!1),be=Ke=>Ke.replace(/`(\$\$.*?\$\$)`/g,"$1").replace(/\$\$([\s\S]*?)\$\$/g,(Te,Ae)=>`<mathx data-text="${Ae.trim()}">$$${Ae.trim()}$$</mathx>`).replace(/\\\(([\s\S]*?)\\\)/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/\\\[([\s\S]*?)\\\]/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/_{2,}/g,"`$&`"),Le=()=>{lt(!0),se==null||se()};(0,x.useEffect)(()=>{const Ke=Ue?`\u8FD9\u662F\u6839\u636E\u60A8\u7684\u63CF\u8FF0\u751F\u6210\u7684\u56FE\u7247\uFF1A
</html>`;function Ne({open:oe=!0,onChange:a,defaultValue:E,placement:b,width:y,height:ee,extra:z,onDynamic:ne,onOpenChange:ae,showExtra:le=!0}){const re=(0,x.useRef)(null),ue=(0,x.useRef)(null),[ce,se]=(0,x.useState)(E||""),[ge,fe]=(0,x.useState)(E||""),[Fe,Ue]=(0,x.useState)(!!oe),[xe,Ge]=(0,x.useState)(1),Ze={selectOnLineNumbers:!0};(0,x.useEffect)(()=>{oe&&(se(E),fe(E),Ue(!0))},[oe,E]),(0,x.useEffect)(()=>{ce!==""&&(clearTimeout(ue.current),ue.current=setTimeout(()=>{const je=document.createElement("iframe");if(je.style.width="100%",je.style.height="100%",je.style.border="0",re.current){re.current.innerHTML="",re.current.appendChild(je);const me=je.contentDocument||je.contentWindow.document;me.open(),me.write(ce),me.close()}},1e3))},[oe,ce]);const De=je=>{se(je),a==null||a(je,ge)};return de.createElement(ve.Z,{title:"\u667A\u80FD\u52A8\u6548",placement:"right",open:Fe,width:"100%",height:ee||"100vh",rootClassName:pe.smartWrp,destroyOnClose:!0,onClose:()=>{Ue(!1),ae==null||ae(ce)},extra:le&&de.createElement("div",null,de.createElement(he.tp,{dataSource:[{name:"\u9884\u89C8",id:1},{name:"\u4EE3\u7801",id:2}],value:xe,onChange:je=>Ge(je)}),de.createElement(Ce.Z,{type:"primary",className:"ml20",onClick:()=>ie(this,null,function*(){yield ne(ce,()=>{Ue(!1)})})},"\u4FDD\u5B58\u81F3\u8BFE\u4EF6"))},de.createElement(Oe.Z,{className:"h100"},de.createElement(Se.Z,{flex:"1",style:{background:"#f6f7fb",borderRight:"#e8eaf1 1px solid",display:xe===1?"block":"none"}},de.createElement("div",{className:"h100",ref:re})),de.createElement(Se.Z,{flex:"1",style:{display:xe===2?"block":"none"}},de.createElement(Pe.ZP,{height:"90vh",value:E,language:"html",theme:"vs",showMiniMap:!1,options:Ze,onChange:De}))))}var Xe=Ne},10946:function(we,Ye,te){"use strict";te.d(Ye,{Z:function(){return ce}});var x=te(59301),ve=te(97831),Oe=te(77596),Se=te(3977),pe=te(14179),Pe=te(56102),he={answer:"answer___UngkO",imgWrap:"imgWrap___ORTRf",codeCopy:"codeCopy___re8vm",runCode:"runCode___MYs9m"},Ce=te(6767),de=te(90083),ie=te(95827),Ie=te(30084),Ne=te(10787),Xe=te(8944),oe=te(81679),a=Object.defineProperty,E=Object.defineProperties,b=Object.getOwnPropertyDescriptors,y=Object.getOwnPropertySymbols,ee=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable,ne=(se,ge,fe)=>ge in se?a(se,ge,{enumerable:!0,configurable:!0,writable:!0,value:fe}):se[ge]=fe,ae=(se,ge)=>{for(var fe in ge||(ge={}))ee.call(ge,fe)&&ne(se,fe,ge[fe]);if(y)for(var fe of y(ge))z.call(ge,fe)&&ne(se,fe,ge[fe]);return se},le=(se,ge)=>E(se,b(ge)),re=(se,ge)=>{var fe={};for(var Fe in se)ee.call(se,Fe)&&ge.indexOf(Fe)<0&&(fe[Fe]=se[Fe]);if(se!=null&&y)for(var Fe of y(se))ge.indexOf(Fe)<0&&z.call(se,Fe)&&(fe[Fe]=se[Fe]);return fe},ce=({onFinish:se,value:ge,streamingStatus:fe,cancelIndex:Fe,loadImage:Ue,onDynamic:xe,isHiddenHtml:Ge})=>{const[Ze,De]=(0,x.useState)(""),[je,me]=(0,x.useState)({defaultValue:"",open:0,language:"",placement:"right",height:"100vh"}),[ye,He]=(0,x.useState)(0),[tt,lt]=(0,x.useState)(!1),be=Ke=>Ke.replace(/`(\$\$.*?\$\$)`/g,"$1").replace(/\$\$([\s\S]*?)\$\$/g,(Te,Ae)=>`<mathx data-text="${Ae.trim()}">$$${Ae.trim()}$$</mathx>`).replace(/\\\(([\s\S]*?)\\\)/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/\\\[([\s\S]*?)\\\]/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/_{2,}/g,"`$&`"),Le=()=>{lt(!0),se==null||se()};(0,x.useEffect)(()=>{const Ke=Ue?`\u8FD9\u662F\u6839\u636E\u60A8\u7684\u63CF\u8FF0\u751F\u6210\u7684\u56FE\u7247\uFF1A
${ge}`:ge,Te=be(Ke);if(!tt)if(Ue||!fe||Fe>0){De(Te),He(Te.length),(!fe||Fe>0)&&!Ue&&Le();return}else if((Te==null?void 0:Te.length)<4)De(Te),He(Te.length);else if(ye<Te.length){const Ae=Te.length-ye,Me=setInterval(()=>{De(Te.slice(0,ye+2)),He(Je=>Je+2)},Ae>10?Math.max(500/(Ae/2),20):50);return()=>clearInterval(Me)}else fe||Le()},[ge,fe,Fe,Ue,ye]);const Re=(0,x.useMemo)(()=>x.createElement("section",{className:`${he.answer} fadeIn animated edu_md`},x.createElement(ve.UG,{remarkPlugins:[Ie.Z,Ne.Z],rehypePlugins:[ie.Z,Se.Z],components:{code(Ke){var Te=Ke,{node:Ae,inline:Me,className:Je,children:et}=Te,ot=re(Te,["node","inline","className","children"]);const qe=/language-(\w+)/.exec(Je||""),St=String(et).trim();return Me||!qe?x.createElement("code",ae({className:Je},ot),et):x.createElement("code",{className:he.codeCopy,"data-text":`\`\`\`${qe?qe[1]:""}
${et}

@ -136,7 +136,7 @@
initArrayDisplay();
<\/script>
</body>
</html>`;function Se({open:le=!0,onChange:a,defaultValue:E,placement:b,width:y,height:z,extra:ee,onDynamic:re,onOpenChange:ie,showExtra:ue=!0}){const se=(0,x.useRef)(null),de=(0,x.useRef)(null),[xe,Ce]=(0,x.useState)(E||""),[pe,He]=(0,x.useState)(E||""),[qe,ut]=(0,x.useState)(!!le),[Xe,Ye]=(0,x.useState)(1),ot={selectOnLineNumbers:!0};(0,x.useEffect)(()=>{le&&(Ce(E),He(E),ut(!0))},[le,E]),(0,x.useEffect)(()=>{xe!==""&&(clearTimeout(de.current),de.current=setTimeout(()=>{const Et=document.createElement("iframe");if(Et.style.width="100%",Et.style.height="100%",Et.style.border="0",se.current){se.current.innerHTML="",se.current.appendChild(Et);const Ke=Et.contentDocument||Et.contentWindow.document;Ke.open(),Ke.write(xe),Ke.close()}},1e3))},[le,xe]);const gt=Et=>{Ce(Et),a==null||a(Et,pe)};return ge.createElement(me.Z,{title:"\u667A\u80FD\u52A8\u6548",placement:"right",open:qe,width:"100%",height:z||"100vh",rootClassName:Ee.smartWrp,destroyOnClose:!0,onClose:()=>{ut(!1),ie==null||ie(xe)},extra:ue&&ge.createElement("div",null,ge.createElement(Fe.tp,{dataSource:[{name:"\u9884\u89C8",id:1},{name:"\u4EE3\u7801",id:2}],value:Xe,onChange:Et=>Ye(Et)}),ge.createElement(Ie.Z,{type:"primary",className:"ml20",onClick:()=>ye(this,null,function*(){yield re(xe,()=>{ut(!1)})})},"\u4FDD\u5B58\u81F3\u8BFE\u4EF6"))},ge.createElement(ve.Z,{className:"h100"},ge.createElement(he.Z,{flex:"1",style:{background:"#f6f7fb",borderRight:"#e8eaf1 1px solid",display:Xe===1?"block":"none"}},ge.createElement("div",{className:"h100",ref:se})),ge.createElement(he.Z,{flex:"1",style:{display:Xe===2?"block":"none"}},ge.createElement(fe.ZP,{height:"90vh",value:E,language:"html",theme:"vs",showMiniMap:!1,options:ot,onChange:gt}))))}var We=Se},10946:function(be,Ue,Ae){"use strict";Ae.d(Ue,{Z:function(){return xe}});var x=Ae(59301),me=Ae(72460),ve=Ae(77596),he=Ae(3977),Ee=Ae(14179),fe=Ae(56102),Fe={answer:"answer___UngkO",imgWrap:"imgWrap___ORTRf",codeCopy:"codeCopy___re8vm",runCode:"runCode___MYs9m"},Ie=Ae(6767),ge=Ae(90083),ye=Ae(95827),Le=Ae(30084),Se=Ae(10787),We=Ae(8944),le=Ae(81679),a=Object.defineProperty,E=Object.defineProperties,b=Object.getOwnPropertyDescriptors,y=Object.getOwnPropertySymbols,z=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable,re=(Ce,pe,He)=>pe in Ce?a(Ce,pe,{enumerable:!0,configurable:!0,writable:!0,value:He}):Ce[pe]=He,ie=(Ce,pe)=>{for(var He in pe||(pe={}))z.call(pe,He)&&re(Ce,He,pe[He]);if(y)for(var He of y(pe))ee.call(pe,He)&&re(Ce,He,pe[He]);return Ce},ue=(Ce,pe)=>E(Ce,b(pe)),se=(Ce,pe)=>{var He={};for(var qe in Ce)z.call(Ce,qe)&&pe.indexOf(qe)<0&&(He[qe]=Ce[qe]);if(Ce!=null&&y)for(var qe of y(Ce))pe.indexOf(qe)<0&&ee.call(Ce,qe)&&(He[qe]=Ce[qe]);return He},xe=({onFinish:Ce,value:pe,streamingStatus:He,cancelIndex:qe,loadImage:ut,onDynamic:Xe,isHiddenHtml:Ye})=>{const[ot,gt]=(0,x.useState)(""),[Et,Ke]=(0,x.useState)({defaultValue:"",open:0,language:"",placement:"right",height:"100vh"}),[At,wt]=(0,x.useState)(0),[lt,Zt]=(0,x.useState)(!1),ze=vt=>vt.replace(/`(\$\$.*?\$\$)`/g,"$1").replace(/\$\$([\s\S]*?)\$\$/g,(ht,Te)=>`<mathx data-text="${Te.trim()}">$$${Te.trim()}$$</mathx>`).replace(/\\\(([\s\S]*?)\\\)/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/\\\[([\s\S]*?)\\\]/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/_{2,}/g,"`$&`"),$e=()=>{Zt(!0),Ce==null||Ce()};(0,x.useEffect)(()=>{const vt=ut?`\u8FD9\u662F\u6839\u636E\u60A8\u7684\u63CF\u8FF0\u751F\u6210\u7684\u56FE\u7247\uFF1A
</html>`;function Se({open:le=!0,onChange:a,defaultValue:E,placement:b,width:y,height:z,extra:ee,onDynamic:re,onOpenChange:ie,showExtra:ue=!0}){const se=(0,x.useRef)(null),de=(0,x.useRef)(null),[xe,Ce]=(0,x.useState)(E||""),[pe,He]=(0,x.useState)(E||""),[qe,ut]=(0,x.useState)(!!le),[Xe,Ye]=(0,x.useState)(1),ot={selectOnLineNumbers:!0};(0,x.useEffect)(()=>{le&&(Ce(E),He(E),ut(!0))},[le,E]),(0,x.useEffect)(()=>{xe!==""&&(clearTimeout(de.current),de.current=setTimeout(()=>{const Et=document.createElement("iframe");if(Et.style.width="100%",Et.style.height="100%",Et.style.border="0",se.current){se.current.innerHTML="",se.current.appendChild(Et);const Ke=Et.contentDocument||Et.contentWindow.document;Ke.open(),Ke.write(xe),Ke.close()}},1e3))},[le,xe]);const gt=Et=>{Ce(Et),a==null||a(Et,pe)};return ge.createElement(me.Z,{title:"\u667A\u80FD\u52A8\u6548",placement:"right",open:qe,width:"100%",height:z||"100vh",rootClassName:Ee.smartWrp,destroyOnClose:!0,onClose:()=>{ut(!1),ie==null||ie(xe)},extra:ue&&ge.createElement("div",null,ge.createElement(Fe.tp,{dataSource:[{name:"\u9884\u89C8",id:1},{name:"\u4EE3\u7801",id:2}],value:Xe,onChange:Et=>Ye(Et)}),ge.createElement(Ie.Z,{type:"primary",className:"ml20",onClick:()=>ye(this,null,function*(){yield re(xe,()=>{ut(!1)})})},"\u4FDD\u5B58\u81F3\u8BFE\u4EF6"))},ge.createElement(ve.Z,{className:"h100"},ge.createElement(he.Z,{flex:"1",style:{background:"#f6f7fb",borderRight:"#e8eaf1 1px solid",display:Xe===1?"block":"none"}},ge.createElement("div",{className:"h100",ref:se})),ge.createElement(he.Z,{flex:"1",style:{display:Xe===2?"block":"none"}},ge.createElement(fe.ZP,{height:"90vh",value:E,language:"html",theme:"vs",showMiniMap:!1,options:ot,onChange:gt}))))}var We=Se},10946:function(be,Ue,Ae){"use strict";Ae.d(Ue,{Z:function(){return xe}});var x=Ae(59301),me=Ae(97831),ve=Ae(77596),he=Ae(3977),Ee=Ae(14179),fe=Ae(56102),Fe={answer:"answer___UngkO",imgWrap:"imgWrap___ORTRf",codeCopy:"codeCopy___re8vm",runCode:"runCode___MYs9m"},Ie=Ae(6767),ge=Ae(90083),ye=Ae(95827),Le=Ae(30084),Se=Ae(10787),We=Ae(8944),le=Ae(81679),a=Object.defineProperty,E=Object.defineProperties,b=Object.getOwnPropertyDescriptors,y=Object.getOwnPropertySymbols,z=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable,re=(Ce,pe,He)=>pe in Ce?a(Ce,pe,{enumerable:!0,configurable:!0,writable:!0,value:He}):Ce[pe]=He,ie=(Ce,pe)=>{for(var He in pe||(pe={}))z.call(pe,He)&&re(Ce,He,pe[He]);if(y)for(var He of y(pe))ee.call(pe,He)&&re(Ce,He,pe[He]);return Ce},ue=(Ce,pe)=>E(Ce,b(pe)),se=(Ce,pe)=>{var He={};for(var qe in Ce)z.call(Ce,qe)&&pe.indexOf(qe)<0&&(He[qe]=Ce[qe]);if(Ce!=null&&y)for(var qe of y(Ce))pe.indexOf(qe)<0&&ee.call(Ce,qe)&&(He[qe]=Ce[qe]);return He},xe=({onFinish:Ce,value:pe,streamingStatus:He,cancelIndex:qe,loadImage:ut,onDynamic:Xe,isHiddenHtml:Ye})=>{const[ot,gt]=(0,x.useState)(""),[Et,Ke]=(0,x.useState)({defaultValue:"",open:0,language:"",placement:"right",height:"100vh"}),[At,wt]=(0,x.useState)(0),[lt,Zt]=(0,x.useState)(!1),ze=vt=>vt.replace(/`(\$\$.*?\$\$)`/g,"$1").replace(/\$\$([\s\S]*?)\$\$/g,(ht,Te)=>`<mathx data-text="${Te.trim()}">$$${Te.trim()}$$</mathx>`).replace(/\\\(([\s\S]*?)\\\)/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/\\\[([\s\S]*?)\\\]/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/_{2,}/g,"`$&`"),$e=()=>{Zt(!0),Ce==null||Ce()};(0,x.useEffect)(()=>{const vt=ut?`\u8FD9\u662F\u6839\u636E\u60A8\u7684\u63CF\u8FF0\u751F\u6210\u7684\u56FE\u7247\uFF1A
${pe}`:pe,ht=ze(vt);if(!lt)if(ut||!He||qe>0){gt(ht),wt(ht.length),(!He||qe>0)&&!ut&&$e();return}else if((ht==null?void 0:ht.length)<4)gt(ht),wt(ht.length);else if(At<ht.length){const Te=ht.length-At,Re=setInterval(()=>{gt(ht.slice(0,At+2)),wt(ft=>ft+2)},Te>10?Math.max(500/(Te/2),20):50);return()=>clearInterval(Re)}else He||$e()},[pe,He,qe,ut,At]);const it=(0,x.useMemo)(()=>x.createElement("section",{className:`${Fe.answer} fadeIn animated edu_md`},x.createElement(me.UG,{remarkPlugins:[Le.Z,Se.Z],rehypePlugins:[ye.Z,he.Z],components:{code(vt){var ht=vt,{node:Te,inline:Re,className:ft,children:Ct}=ht,Mt=se(ht,["node","inline","className","children"]);const ke=/language-(\w+)/.exec(ft||""),Ut=String(Ct).trim();return Re||!ke?x.createElement("code",ie({className:ft},Mt),Ct):x.createElement("code",{className:Fe.codeCopy,"data-text":`\`\`\`${ke?ke[1]:""}
${Ct}

@ -136,7 +136,7 @@
initArrayDisplay();
<\/script>
</body>
</html>`;function xe({open:oe=!0,onChange:a,defaultValue:E,placement:x,width:y,height:b,extra:ee,onDynamic:te,onOpenChange:ae,showExtra:ie=!0}){const re=(0,z.useRef)(null),le=(0,z.useRef)(null),[fe,ge]=(0,z.useState)(E||""),[pe,we]=(0,z.useState)(E||""),[ke,st]=(0,z.useState)(!!oe),[je,ye]=(0,z.useState)(1),Ke={selectOnLineNumbers:!0};(0,z.useEffect)(()=>{oe&&(ge(E),we(E),st(!0))},[oe,E]),(0,z.useEffect)(()=>{fe!==""&&(clearTimeout(le.current),le.current=setTimeout(()=>{const tt=document.createElement("iframe");if(tt.style.width="100%",tt.style.height="100%",tt.style.border="0",re.current){re.current.innerHTML="",re.current.appendChild(tt);const ze=tt.contentDocument||tt.contentWindow.document;ze.open(),ze.write(fe),ze.close()}},1e3))},[oe,fe]);const Je=tt=>{ge(tt),a==null||a(tt,pe)};return de.createElement(Se.Z,{title:"\u667A\u80FD\u52A8\u6548",placement:"right",open:ke,width:"100%",height:b||"100vh",rootClassName:me.smartWrp,destroyOnClose:!0,onClose:()=>{st(!1),ae==null||ae(fe)},extra:ie&&de.createElement("div",null,de.createElement(se.tp,{dataSource:[{name:"\u9884\u89C8",id:1},{name:"\u4EE3\u7801",id:2}],value:je,onChange:tt=>ye(tt)}),de.createElement(Ae.Z,{type:"primary",className:"ml20",onClick:()=>ce(this,null,function*(){yield te(fe,()=>{st(!1)})})},"\u4FDD\u5B58\u81F3\u8BFE\u4EF6"))},de.createElement(Ne.Z,{className:"h100"},de.createElement(he.Z,{flex:"1",style:{background:"#f6f7fb",borderRight:"#e8eaf1 1px solid",display:je===1?"block":"none"}},de.createElement("div",{className:"h100",ref:re})),de.createElement(he.Z,{flex:"1",style:{display:je===2?"block":"none"}},de.createElement(ve.ZP,{height:"90vh",value:E,language:"html",theme:"vs",showMiniMap:!1,options:Ke,onChange:Je}))))}var Ge=xe},10946:function(Ee,Ve,ne){"use strict";ne.d(Ve,{Z:function(){return fe}});var z=ne(59301),Se=ne(72460),Ne=ne(77596),he=ne(3977),me=ne(14179),ve=ne(56102),se={answer:"answer___UngkO",imgWrap:"imgWrap___ORTRf",codeCopy:"codeCopy___re8vm",runCode:"runCode___MYs9m"},Ae=ne(6767),de=ne(90083),ce=ne(95827),Re=ne(30084),xe=ne(10787),Ge=ne(8944),oe=ne(81679),a=Object.defineProperty,E=Object.defineProperties,x=Object.getOwnPropertyDescriptors,y=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable,te=(ge,pe,we)=>pe in ge?a(ge,pe,{enumerable:!0,configurable:!0,writable:!0,value:we}):ge[pe]=we,ae=(ge,pe)=>{for(var we in pe||(pe={}))b.call(pe,we)&&te(ge,we,pe[we]);if(y)for(var we of y(pe))ee.call(pe,we)&&te(ge,we,pe[we]);return ge},ie=(ge,pe)=>E(ge,x(pe)),re=(ge,pe)=>{var we={};for(var ke in ge)b.call(ge,ke)&&pe.indexOf(ke)<0&&(we[ke]=ge[ke]);if(ge!=null&&y)for(var ke of y(ge))pe.indexOf(ke)<0&&ee.call(ge,ke)&&(we[ke]=ge[ke]);return we},fe=({onFinish:ge,value:pe,streamingStatus:we,cancelIndex:ke,loadImage:st,onDynamic:je,isHiddenHtml:ye})=>{const[Ke,Je]=(0,z.useState)(""),[tt,ze]=(0,z.useState)({defaultValue:"",open:0,language:"",placement:"right",height:"100vh"}),[Ue,We]=(0,z.useState)(0),[nt,$e]=(0,z.useState)(!1),Fe=Ie=>Ie.replace(/`(\$\$.*?\$\$)`/g,"$1").replace(/\$\$([\s\S]*?)\$\$/g,(Ze,ue)=>`<mathx data-text="${ue.trim()}">$$${ue.trim()}$$</mathx>`).replace(/\\\(([\s\S]*?)\\\)/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/\\\[([\s\S]*?)\\\]/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/_{2,}/g,"`$&`"),be=()=>{$e(!0),ge==null||ge()};(0,z.useEffect)(()=>{const Ie=st?`\u8FD9\u662F\u6839\u636E\u60A8\u7684\u63CF\u8FF0\u751F\u6210\u7684\u56FE\u7247\uFF1A
</html>`;function xe({open:oe=!0,onChange:a,defaultValue:E,placement:x,width:y,height:b,extra:ee,onDynamic:te,onOpenChange:ae,showExtra:ie=!0}){const re=(0,z.useRef)(null),le=(0,z.useRef)(null),[fe,ge]=(0,z.useState)(E||""),[pe,we]=(0,z.useState)(E||""),[ke,st]=(0,z.useState)(!!oe),[je,ye]=(0,z.useState)(1),Ke={selectOnLineNumbers:!0};(0,z.useEffect)(()=>{oe&&(ge(E),we(E),st(!0))},[oe,E]),(0,z.useEffect)(()=>{fe!==""&&(clearTimeout(le.current),le.current=setTimeout(()=>{const tt=document.createElement("iframe");if(tt.style.width="100%",tt.style.height="100%",tt.style.border="0",re.current){re.current.innerHTML="",re.current.appendChild(tt);const ze=tt.contentDocument||tt.contentWindow.document;ze.open(),ze.write(fe),ze.close()}},1e3))},[oe,fe]);const Je=tt=>{ge(tt),a==null||a(tt,pe)};return de.createElement(Se.Z,{title:"\u667A\u80FD\u52A8\u6548",placement:"right",open:ke,width:"100%",height:b||"100vh",rootClassName:me.smartWrp,destroyOnClose:!0,onClose:()=>{st(!1),ae==null||ae(fe)},extra:ie&&de.createElement("div",null,de.createElement(se.tp,{dataSource:[{name:"\u9884\u89C8",id:1},{name:"\u4EE3\u7801",id:2}],value:je,onChange:tt=>ye(tt)}),de.createElement(Ae.Z,{type:"primary",className:"ml20",onClick:()=>ce(this,null,function*(){yield te(fe,()=>{st(!1)})})},"\u4FDD\u5B58\u81F3\u8BFE\u4EF6"))},de.createElement(Ne.Z,{className:"h100"},de.createElement(he.Z,{flex:"1",style:{background:"#f6f7fb",borderRight:"#e8eaf1 1px solid",display:je===1?"block":"none"}},de.createElement("div",{className:"h100",ref:re})),de.createElement(he.Z,{flex:"1",style:{display:je===2?"block":"none"}},de.createElement(ve.ZP,{height:"90vh",value:E,language:"html",theme:"vs",showMiniMap:!1,options:Ke,onChange:Je}))))}var Ge=xe},10946:function(Ee,Ve,ne){"use strict";ne.d(Ve,{Z:function(){return fe}});var z=ne(59301),Se=ne(97831),Ne=ne(77596),he=ne(3977),me=ne(14179),ve=ne(56102),se={answer:"answer___UngkO",imgWrap:"imgWrap___ORTRf",codeCopy:"codeCopy___re8vm",runCode:"runCode___MYs9m"},Ae=ne(6767),de=ne(90083),ce=ne(95827),Re=ne(30084),xe=ne(10787),Ge=ne(8944),oe=ne(81679),a=Object.defineProperty,E=Object.defineProperties,x=Object.getOwnPropertyDescriptors,y=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable,te=(ge,pe,we)=>pe in ge?a(ge,pe,{enumerable:!0,configurable:!0,writable:!0,value:we}):ge[pe]=we,ae=(ge,pe)=>{for(var we in pe||(pe={}))b.call(pe,we)&&te(ge,we,pe[we]);if(y)for(var we of y(pe))ee.call(pe,we)&&te(ge,we,pe[we]);return ge},ie=(ge,pe)=>E(ge,x(pe)),re=(ge,pe)=>{var we={};for(var ke in ge)b.call(ge,ke)&&pe.indexOf(ke)<0&&(we[ke]=ge[ke]);if(ge!=null&&y)for(var ke of y(ge))pe.indexOf(ke)<0&&ee.call(ge,ke)&&(we[ke]=ge[ke]);return we},fe=({onFinish:ge,value:pe,streamingStatus:we,cancelIndex:ke,loadImage:st,onDynamic:je,isHiddenHtml:ye})=>{const[Ke,Je]=(0,z.useState)(""),[tt,ze]=(0,z.useState)({defaultValue:"",open:0,language:"",placement:"right",height:"100vh"}),[Ue,We]=(0,z.useState)(0),[nt,$e]=(0,z.useState)(!1),Fe=Ie=>Ie.replace(/`(\$\$.*?\$\$)`/g,"$1").replace(/\$\$([\s\S]*?)\$\$/g,(Ze,ue)=>`<mathx data-text="${ue.trim()}">$$${ue.trim()}$$</mathx>`).replace(/\\\(([\s\S]*?)\\\)/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/\\\[([\s\S]*?)\\\]/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/_{2,}/g,"`$&`"),be=()=>{$e(!0),ge==null||ge()};(0,z.useEffect)(()=>{const Ie=st?`\u8FD9\u662F\u6839\u636E\u60A8\u7684\u63CF\u8FF0\u751F\u6210\u7684\u56FE\u7247\uFF1A
${pe}`:pe,Ze=Fe(Ie);if(!nt)if(st||!we||ke>0){Je(Ze),We(Ze.length),(!we||ke>0)&&!st&&be();return}else if((Ze==null?void 0:Ze.length)<4)Je(Ze),We(Ze.length);else if(Ue<Ze.length){const ue=Ze.length-Ue,Pe=setInterval(()=>{Je(Ze.slice(0,Ue+2)),We(Xe=>Xe+2)},ue>10?Math.max(500/(ue/2),20):50);return()=>clearInterval(Pe)}else we||be()},[pe,we,ke,st,Ue]);const Oe=(0,z.useMemo)(()=>z.createElement("section",{className:`${se.answer} fadeIn animated edu_md`},z.createElement(Se.UG,{remarkPlugins:[Re.Z,xe.Z],rehypePlugins:[ce.Z,he.Z],components:{code(Ie){var Ze=Ie,{node:ue,inline:Pe,className:Xe,children:ot}=Ze,lt=re(Ze,["node","inline","className","children"]);const mt=/language-(\w+)/.exec(Xe||""),Nt=String(ot).trim();return Pe||!mt?z.createElement("code",ae({className:Xe},lt),ot):z.createElement("code",{className:se.codeCopy,"data-text":`\`\`\`${mt?mt[1]:""}
${ot}

@ -136,7 +136,7 @@
initArrayDisplay();
<\/script>
</body>
</html>`;function xe({open:ue=!0,onChange:a,defaultValue:E,placement:x,width:y,height:z,extra:ee,onDynamic:oe,onOpenChange:ie,showExtra:de=!0}){const ce=(0,b.useRef)(null),pe=(0,b.useRef)(null),[Me,we]=(0,b.useState)(E||""),[Ne,Ge]=(0,b.useState)(E||""),[gt,Dt]=(0,b.useState)(!!ue),[et,At]=(0,b.useState)(1),vt={selectOnLineNumbers:!0};(0,b.useEffect)(()=>{ue&&(we(E),Ge(E),Dt(!0))},[ue,E]),(0,b.useEffect)(()=>{Me!==""&&(clearTimeout(pe.current),pe.current=setTimeout(()=>{const pt=document.createElement("iframe");if(pt.style.width="100%",pt.style.height="100%",pt.style.border="0",ce.current){ce.current.innerHTML="",ce.current.appendChild(pt);const qe=pt.contentDocument||pt.contentWindow.document;qe.open(),qe.write(Me),qe.close()}},1e3))},[ue,Me]);const wt=pt=>{we(pt),a==null||a(pt,Ne)};return ye.createElement(Le.Z,{title:"\u667A\u80FD\u52A8\u6548",placement:"right",open:gt,width:"100%",height:z||"100vh",rootClassName:Ee.smartWrp,destroyOnClose:!0,onClose:()=>{Dt(!1),ie==null||ie(Me)},extra:de&&ye.createElement("div",null,ye.createElement(Pe.tp,{dataSource:[{name:"\u9884\u89C8",id:1},{name:"\u4EE3\u7801",id:2}],value:et,onChange:pt=>At(pt)}),ye.createElement(ve.Z,{type:"primary",className:"ml20",onClick:()=>Qe(this,null,function*(){yield oe(Me,()=>{Dt(!1)})})},"\u4FDD\u5B58\u81F3\u8BFE\u4EF6"))},ye.createElement(Se.Z,{className:"h100"},ye.createElement(Ce.Z,{flex:"1",style:{background:"#f6f7fb",borderRight:"#e8eaf1 1px solid",display:et===1?"block":"none"}},ye.createElement("div",{className:"h100",ref:ce})),ye.createElement(Ce.Z,{flex:"1",style:{display:et===2?"block":"none"}},ye.createElement(Ue.ZP,{height:"90vh",value:E,language:"html",theme:"vs",showMiniMap:!1,options:vt,onChange:wt}))))}var at=xe},10946:function(ke,ct,re){"use strict";re.d(ct,{Z:function(){return Me}});var b=re(59301),Le=re(72460),Se=re(77596),Ce=re(3977),Ee=re(14179),Ue=re(56102),Pe={answer:"answer___UngkO",imgWrap:"imgWrap___ORTRf",codeCopy:"codeCopy___re8vm",runCode:"runCode___MYs9m"},ve=re(6767),ye=re(90083),Qe=re(95827),Ve=re(30084),xe=re(10787),at=re(8944),ue=re(81679),a=Object.defineProperty,E=Object.defineProperties,x=Object.getOwnPropertyDescriptors,y=Object.getOwnPropertySymbols,z=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable,oe=(we,Ne,Ge)=>Ne in we?a(we,Ne,{enumerable:!0,configurable:!0,writable:!0,value:Ge}):we[Ne]=Ge,ie=(we,Ne)=>{for(var Ge in Ne||(Ne={}))z.call(Ne,Ge)&&oe(we,Ge,Ne[Ge]);if(y)for(var Ge of y(Ne))ee.call(Ne,Ge)&&oe(we,Ge,Ne[Ge]);return we},de=(we,Ne)=>E(we,x(Ne)),ce=(we,Ne)=>{var Ge={};for(var gt in we)z.call(we,gt)&&Ne.indexOf(gt)<0&&(Ge[gt]=we[gt]);if(we!=null&&y)for(var gt of y(we))Ne.indexOf(gt)<0&&ee.call(we,gt)&&(Ge[gt]=we[gt]);return Ge},Me=({onFinish:we,value:Ne,streamingStatus:Ge,cancelIndex:gt,loadImage:Dt,onDynamic:et,isHiddenHtml:At})=>{const[vt,wt]=(0,b.useState)(""),[pt,qe]=(0,b.useState)({defaultValue:"",open:0,language:"",placement:"right",height:"100vh"}),[_e,dt]=(0,b.useState)(0),[Qt,Kt]=(0,b.useState)(!1),Ze=tt=>tt.replace(/`(\$\$.*?\$\$)`/g,"$1").replace(/\$\$([\s\S]*?)\$\$/g,(Bt,be)=>`<mathx data-text="${be.trim()}">$$${be.trim()}$$</mathx>`).replace(/\\\(([\s\S]*?)\\\)/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/\\\[([\s\S]*?)\\\]/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/_{2,}/g,"`$&`"),$e=()=>{Kt(!0),we==null||we()};(0,b.useEffect)(()=>{const tt=Dt?`\u8FD9\u662F\u6839\u636E\u60A8\u7684\u63CF\u8FF0\u751F\u6210\u7684\u56FE\u7247\uFF1A
</html>`;function xe({open:ue=!0,onChange:a,defaultValue:E,placement:x,width:y,height:z,extra:ee,onDynamic:oe,onOpenChange:ie,showExtra:de=!0}){const ce=(0,b.useRef)(null),pe=(0,b.useRef)(null),[Me,we]=(0,b.useState)(E||""),[Ne,Ge]=(0,b.useState)(E||""),[gt,Dt]=(0,b.useState)(!!ue),[et,At]=(0,b.useState)(1),vt={selectOnLineNumbers:!0};(0,b.useEffect)(()=>{ue&&(we(E),Ge(E),Dt(!0))},[ue,E]),(0,b.useEffect)(()=>{Me!==""&&(clearTimeout(pe.current),pe.current=setTimeout(()=>{const pt=document.createElement("iframe");if(pt.style.width="100%",pt.style.height="100%",pt.style.border="0",ce.current){ce.current.innerHTML="",ce.current.appendChild(pt);const qe=pt.contentDocument||pt.contentWindow.document;qe.open(),qe.write(Me),qe.close()}},1e3))},[ue,Me]);const wt=pt=>{we(pt),a==null||a(pt,Ne)};return ye.createElement(Le.Z,{title:"\u667A\u80FD\u52A8\u6548",placement:"right",open:gt,width:"100%",height:z||"100vh",rootClassName:Ee.smartWrp,destroyOnClose:!0,onClose:()=>{Dt(!1),ie==null||ie(Me)},extra:de&&ye.createElement("div",null,ye.createElement(Pe.tp,{dataSource:[{name:"\u9884\u89C8",id:1},{name:"\u4EE3\u7801",id:2}],value:et,onChange:pt=>At(pt)}),ye.createElement(ve.Z,{type:"primary",className:"ml20",onClick:()=>Qe(this,null,function*(){yield oe(Me,()=>{Dt(!1)})})},"\u4FDD\u5B58\u81F3\u8BFE\u4EF6"))},ye.createElement(Se.Z,{className:"h100"},ye.createElement(Ce.Z,{flex:"1",style:{background:"#f6f7fb",borderRight:"#e8eaf1 1px solid",display:et===1?"block":"none"}},ye.createElement("div",{className:"h100",ref:ce})),ye.createElement(Ce.Z,{flex:"1",style:{display:et===2?"block":"none"}},ye.createElement(Ue.ZP,{height:"90vh",value:E,language:"html",theme:"vs",showMiniMap:!1,options:vt,onChange:wt}))))}var at=xe},10946:function(ke,ct,re){"use strict";re.d(ct,{Z:function(){return Me}});var b=re(59301),Le=re(97831),Se=re(77596),Ce=re(3977),Ee=re(14179),Ue=re(56102),Pe={answer:"answer___UngkO",imgWrap:"imgWrap___ORTRf",codeCopy:"codeCopy___re8vm",runCode:"runCode___MYs9m"},ve=re(6767),ye=re(90083),Qe=re(95827),Ve=re(30084),xe=re(10787),at=re(8944),ue=re(81679),a=Object.defineProperty,E=Object.defineProperties,x=Object.getOwnPropertyDescriptors,y=Object.getOwnPropertySymbols,z=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable,oe=(we,Ne,Ge)=>Ne in we?a(we,Ne,{enumerable:!0,configurable:!0,writable:!0,value:Ge}):we[Ne]=Ge,ie=(we,Ne)=>{for(var Ge in Ne||(Ne={}))z.call(Ne,Ge)&&oe(we,Ge,Ne[Ge]);if(y)for(var Ge of y(Ne))ee.call(Ne,Ge)&&oe(we,Ge,Ne[Ge]);return we},de=(we,Ne)=>E(we,x(Ne)),ce=(we,Ne)=>{var Ge={};for(var gt in we)z.call(we,gt)&&Ne.indexOf(gt)<0&&(Ge[gt]=we[gt]);if(we!=null&&y)for(var gt of y(we))Ne.indexOf(gt)<0&&ee.call(we,gt)&&(Ge[gt]=we[gt]);return Ge},Me=({onFinish:we,value:Ne,streamingStatus:Ge,cancelIndex:gt,loadImage:Dt,onDynamic:et,isHiddenHtml:At})=>{const[vt,wt]=(0,b.useState)(""),[pt,qe]=(0,b.useState)({defaultValue:"",open:0,language:"",placement:"right",height:"100vh"}),[_e,dt]=(0,b.useState)(0),[Qt,Kt]=(0,b.useState)(!1),Ze=tt=>tt.replace(/`(\$\$.*?\$\$)`/g,"$1").replace(/\$\$([\s\S]*?)\$\$/g,(Bt,be)=>`<mathx data-text="${be.trim()}">$$${be.trim()}$$</mathx>`).replace(/\\\(([\s\S]*?)\\\)/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/\\\[([\s\S]*?)\\\]/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/_{2,}/g,"`$&`"),$e=()=>{Kt(!0),we==null||we()};(0,b.useEffect)(()=>{const tt=Dt?`\u8FD9\u662F\u6839\u636E\u60A8\u7684\u63CF\u8FF0\u751F\u6210\u7684\u56FE\u7247\uFF1A
${Ne}`:Ne,Bt=Ze(tt);if(!Qt)if(Dt||!Ge||gt>0){wt(Bt),dt(Bt.length),(!Ge||gt>0)&&!Dt&&$e();return}else if((Bt==null?void 0:Bt.length)<4)wt(Bt),dt(Bt.length);else if(_e<Bt.length){const be=Bt.length-_e,We=setInterval(()=>{wt(Bt.slice(0,_e+2)),dt(Ft=>Ft+2)},be>10?Math.max(500/(be/2),20):50);return()=>clearInterval(We)}else Ge||$e()},[Ne,Ge,gt,Dt,_e]);const it=(0,b.useMemo)(()=>b.createElement("section",{className:`${Pe.answer} fadeIn animated edu_md`},b.createElement(Le.UG,{remarkPlugins:[Ve.Z,xe.Z],rehypePlugins:[Qe.Z,Ce.Z],components:{code(tt){var Bt=tt,{node:be,inline:We,className:Ft,children:Lt}=Bt,Ht=ce(Bt,["node","inline","className","children"]);const He=/language-(\w+)/.exec(Ft||""),he=String(Lt).trim();return We||!He?b.createElement("code",ie({className:Ft},Ht),Lt):b.createElement("code",{className:Pe.codeCopy,"data-text":`\`\`\`${He?He[1]:""}
${Lt}

@ -136,7 +136,7 @@
initArrayDisplay();
<\/script>
</body>
</html>`;function we({open:oe=!0,onChange:a,defaultValue:E,placement:x,width:y,height:b,extra:z,onDynamic:te,onOpenChange:ae,showExtra:ie=!0}){const re=(0,ee.useRef)(null),le=(0,ee.useRef)(null),[ce,ue]=(0,ee.useState)(E||""),[me,Ee]=(0,ee.useState)(E||""),[ze,at]=(0,ee.useState)(!!oe),[Ie,He]=(0,ee.useState)(1),Ke={selectOnLineNumbers:!0};(0,ee.useEffect)(()=>{oe&&(ue(E),Ee(E),at(!0))},[oe,E]),(0,ee.useEffect)(()=>{ce!==""&&(clearTimeout(le.current),le.current=setTimeout(()=>{const Je=document.createElement("iframe");if(Je.style.width="100%",Je.style.height="100%",Je.style.border="0",re.current){re.current.innerHTML="",re.current.appendChild(Je);const Oe=Je.contentDocument||Je.contentWindow.document;Oe.open(),Oe.write(ce),Oe.close()}},1e3))},[oe,ce]);const Ye=Je=>{ue(Je),a==null||a(Je,me)};return de.createElement(ve.Z,{title:"\u667A\u80FD\u52A8\u6548",placement:"right",open:ze,width:"100%",height:b||"100vh",rootClassName:fe.smartWrp,destroyOnClose:!0,onClose:()=>{at(!1),ae==null||ae(ce)},extra:ie&&de.createElement("div",null,de.createElement(se.tp,{dataSource:[{name:"\u9884\u89C8",id:1},{name:"\u4EE3\u7801",id:2}],value:Ie,onChange:Je=>He(Je)}),de.createElement(ye.Z,{type:"primary",className:"ml20",onClick:()=>pe(this,null,function*(){yield te(ce,()=>{at(!1)})})},"\u4FDD\u5B58\u81F3\u8BFE\u4EF6"))},de.createElement(De.Z,{className:"h100"},de.createElement(he.Z,{flex:"1",style:{background:"#f6f7fb",borderRight:"#e8eaf1 1px solid",display:Ie===1?"block":"none"}},de.createElement("div",{className:"h100",ref:re})),de.createElement(he.Z,{flex:"1",style:{display:Ie===2?"block":"none"}},de.createElement(Se.ZP,{height:"90vh",value:E,language:"html",theme:"vs",showMiniMap:!1,options:Ke,onChange:Ye}))))}var Ve=we},10946:function(Pe,Ue,ne){"use strict";ne.d(Ue,{Z:function(){return ce}});var ee=ne(59301),ve=ne(72460),De=ne(77596),he=ne(3977),fe=ne(14179),Se=ne(56102),se={answer:"answer___UngkO",imgWrap:"imgWrap___ORTRf",codeCopy:"codeCopy___re8vm",runCode:"runCode___MYs9m"},ye=ne(6767),de=ne(90083),pe=ne(95827),Te=ne(30084),we=ne(10787),Ve=ne(8944),oe=ne(81679),a=Object.defineProperty,E=Object.defineProperties,x=Object.getOwnPropertyDescriptors,y=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable,te=(ue,me,Ee)=>me in ue?a(ue,me,{enumerable:!0,configurable:!0,writable:!0,value:Ee}):ue[me]=Ee,ae=(ue,me)=>{for(var Ee in me||(me={}))b.call(me,Ee)&&te(ue,Ee,me[Ee]);if(y)for(var Ee of y(me))z.call(me,Ee)&&te(ue,Ee,me[Ee]);return ue},ie=(ue,me)=>E(ue,x(me)),re=(ue,me)=>{var Ee={};for(var ze in ue)b.call(ue,ze)&&me.indexOf(ze)<0&&(Ee[ze]=ue[ze]);if(ue!=null&&y)for(var ze of y(ue))me.indexOf(ze)<0&&z.call(ue,ze)&&(Ee[ze]=ue[ze]);return Ee},ce=({onFinish:ue,value:me,streamingStatus:Ee,cancelIndex:ze,loadImage:at,onDynamic:Ie,isHiddenHtml:He})=>{const[Ke,Ye]=(0,ee.useState)(""),[Je,Oe]=(0,ee.useState)({defaultValue:"",open:0,language:"",placement:"right",height:"100vh"}),[je,_e]=(0,ee.useState)(0),[ot,lt]=(0,ee.useState)(!1),Le=We=>We.replace(/`(\$\$.*?\$\$)`/g,"$1").replace(/\$\$([\s\S]*?)\$\$/g,(Ze,ge)=>`<mathx data-text="${ge.trim()}">$$${ge.trim()}$$</mathx>`).replace(/\\\(([\s\S]*?)\\\)/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/\\\[([\s\S]*?)\\\]/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/_{2,}/g,"`$&`"),be=()=>{lt(!0),ue==null||ue()};(0,ee.useEffect)(()=>{const We=at?`\u8FD9\u662F\u6839\u636E\u60A8\u7684\u63CF\u8FF0\u751F\u6210\u7684\u56FE\u7247\uFF1A
</html>`;function we({open:oe=!0,onChange:a,defaultValue:E,placement:x,width:y,height:b,extra:z,onDynamic:te,onOpenChange:ae,showExtra:ie=!0}){const re=(0,ee.useRef)(null),le=(0,ee.useRef)(null),[ce,ue]=(0,ee.useState)(E||""),[me,Ee]=(0,ee.useState)(E||""),[ze,at]=(0,ee.useState)(!!oe),[Ie,He]=(0,ee.useState)(1),Ke={selectOnLineNumbers:!0};(0,ee.useEffect)(()=>{oe&&(ue(E),Ee(E),at(!0))},[oe,E]),(0,ee.useEffect)(()=>{ce!==""&&(clearTimeout(le.current),le.current=setTimeout(()=>{const Je=document.createElement("iframe");if(Je.style.width="100%",Je.style.height="100%",Je.style.border="0",re.current){re.current.innerHTML="",re.current.appendChild(Je);const Oe=Je.contentDocument||Je.contentWindow.document;Oe.open(),Oe.write(ce),Oe.close()}},1e3))},[oe,ce]);const Ye=Je=>{ue(Je),a==null||a(Je,me)};return de.createElement(ve.Z,{title:"\u667A\u80FD\u52A8\u6548",placement:"right",open:ze,width:"100%",height:b||"100vh",rootClassName:fe.smartWrp,destroyOnClose:!0,onClose:()=>{at(!1),ae==null||ae(ce)},extra:ie&&de.createElement("div",null,de.createElement(se.tp,{dataSource:[{name:"\u9884\u89C8",id:1},{name:"\u4EE3\u7801",id:2}],value:Ie,onChange:Je=>He(Je)}),de.createElement(ye.Z,{type:"primary",className:"ml20",onClick:()=>pe(this,null,function*(){yield te(ce,()=>{at(!1)})})},"\u4FDD\u5B58\u81F3\u8BFE\u4EF6"))},de.createElement(De.Z,{className:"h100"},de.createElement(he.Z,{flex:"1",style:{background:"#f6f7fb",borderRight:"#e8eaf1 1px solid",display:Ie===1?"block":"none"}},de.createElement("div",{className:"h100",ref:re})),de.createElement(he.Z,{flex:"1",style:{display:Ie===2?"block":"none"}},de.createElement(Se.ZP,{height:"90vh",value:E,language:"html",theme:"vs",showMiniMap:!1,options:Ke,onChange:Ye}))))}var Ve=we},10946:function(Pe,Ue,ne){"use strict";ne.d(Ue,{Z:function(){return ce}});var ee=ne(59301),ve=ne(97831),De=ne(77596),he=ne(3977),fe=ne(14179),Se=ne(56102),se={answer:"answer___UngkO",imgWrap:"imgWrap___ORTRf",codeCopy:"codeCopy___re8vm",runCode:"runCode___MYs9m"},ye=ne(6767),de=ne(90083),pe=ne(95827),Te=ne(30084),we=ne(10787),Ve=ne(8944),oe=ne(81679),a=Object.defineProperty,E=Object.defineProperties,x=Object.getOwnPropertyDescriptors,y=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable,te=(ue,me,Ee)=>me in ue?a(ue,me,{enumerable:!0,configurable:!0,writable:!0,value:Ee}):ue[me]=Ee,ae=(ue,me)=>{for(var Ee in me||(me={}))b.call(me,Ee)&&te(ue,Ee,me[Ee]);if(y)for(var Ee of y(me))z.call(me,Ee)&&te(ue,Ee,me[Ee]);return ue},ie=(ue,me)=>E(ue,x(me)),re=(ue,me)=>{var Ee={};for(var ze in ue)b.call(ue,ze)&&me.indexOf(ze)<0&&(Ee[ze]=ue[ze]);if(ue!=null&&y)for(var ze of y(ue))me.indexOf(ze)<0&&z.call(ue,ze)&&(Ee[ze]=ue[ze]);return Ee},ce=({onFinish:ue,value:me,streamingStatus:Ee,cancelIndex:ze,loadImage:at,onDynamic:Ie,isHiddenHtml:He})=>{const[Ke,Ye]=(0,ee.useState)(""),[Je,Oe]=(0,ee.useState)({defaultValue:"",open:0,language:"",placement:"right",height:"100vh"}),[je,_e]=(0,ee.useState)(0),[ot,lt]=(0,ee.useState)(!1),Le=We=>We.replace(/`(\$\$.*?\$\$)`/g,"$1").replace(/\$\$([\s\S]*?)\$\$/g,(Ze,ge)=>`<mathx data-text="${ge.trim()}">$$${ge.trim()}$$</mathx>`).replace(/\\\(([\s\S]*?)\\\)/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/\\\[([\s\S]*?)\\\]/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/_{2,}/g,"`$&`"),be=()=>{lt(!0),ue==null||ue()};(0,ee.useEffect)(()=>{const We=at?`\u8FD9\u662F\u6839\u636E\u60A8\u7684\u63CF\u8FF0\u751F\u6210\u7684\u56FE\u7247\uFF1A
${me}`:me,Ze=Le(We);if(!ot)if(at||!Ee||ze>0){Ye(Ze),_e(Ze.length),(!Ee||ze>0)&&!at&&be();return}else if((Ze==null?void 0:Ze.length)<4)Ye(Ze),_e(Ze.length);else if(je<Ze.length){const ge=Ze.length-je,Be=setInterval(()=>{Ye(Ze.slice(0,je+2)),_e(qe=>qe+2)},ge>10?Math.max(500/(ge/2),20):50);return()=>clearInterval(Be)}else Ee||be()},[me,Ee,ze,at,je]);const Me=(0,ee.useMemo)(()=>ee.createElement("section",{className:`${se.answer} fadeIn animated edu_md`},ee.createElement(ve.UG,{remarkPlugins:[Te.Z,we.Z],rehypePlugins:[pe.Z,he.Z],components:{code(We){var Ze=We,{node:ge,inline:Be,className:qe,children:$e}=Ze,rt=re(Ze,["node","inline","className","children"]);const tt=/language-(\w+)/.exec(qe||""),Dt=String($e).trim();return Be||!tt?ee.createElement("code",ae({className:qe},rt),$e):ee.createElement("code",{className:se.codeCopy,"data-text":`\`\`\`${tt?tt[1]:""}
${$e}

@ -136,7 +136,7 @@
initArrayDisplay();
<\/script>
</body>
</html>`;function Fe({open:oe=!0,onChange:a,defaultValue:E,placement:x,width:y,height:b,extra:z,onDynamic:te,onOpenChange:ae,showExtra:ie=!0}){const re=(0,ee.useRef)(null),le=(0,ee.useRef)(null),[fe,ue]=(0,ee.useState)(E||""),[pe,we]=(0,ee.useState)(E||""),[ke,at]=(0,ee.useState)(!!oe),[Ie,Ve]=(0,ee.useState)(1),Qe={selectOnLineNumbers:!0};(0,ee.useEffect)(()=>{oe&&(ue(E),we(E),at(!0))},[oe,E]),(0,ee.useEffect)(()=>{fe!==""&&(clearTimeout(le.current),le.current=setTimeout(()=>{const Xe=document.createElement("iframe");if(Xe.style.width="100%",Xe.style.height="100%",Xe.style.border="0",re.current){re.current.innerHTML="",re.current.appendChild(Xe);const Oe=Xe.contentDocument||Xe.contentWindow.document;Oe.open(),Oe.write(fe),Oe.close()}},1e3))},[oe,fe]);const Ke=Xe=>{ue(Xe),a==null||a(Xe,pe)};return de.createElement(ve.Z,{title:"\u667A\u80FD\u52A8\u6548",placement:"right",open:ke,width:"100%",height:b||"100vh",rootClassName:ce.smartWrp,destroyOnClose:!0,onClose:()=>{at(!1),ae==null||ae(fe)},extra:ie&&de.createElement("div",null,de.createElement(se.tp,{dataSource:[{name:"\u9884\u89C8",id:1},{name:"\u4EE3\u7801",id:2}],value:Ie,onChange:Xe=>Ve(Xe)}),de.createElement(Ee.Z,{type:"primary",className:"ml20",onClick:()=>me(this,null,function*(){yield te(fe,()=>{at(!1)})})},"\u4FDD\u5B58\u81F3\u8BFE\u4EF6"))},de.createElement(De.Z,{className:"h100"},de.createElement(he.Z,{flex:"1",style:{background:"#f6f7fb",borderRight:"#e8eaf1 1px solid",display:Ie===1?"block":"none"}},de.createElement("div",{className:"h100",ref:re})),de.createElement(he.Z,{flex:"1",style:{display:Ie===2?"block":"none"}},de.createElement(Se.ZP,{height:"90vh",value:E,language:"html",theme:"vs",showMiniMap:!1,options:Qe,onChange:Ke}))))}var He=Fe},10946:function(Pe,Ue,ne){"use strict";ne.d(Ue,{Z:function(){return fe}});var ee=ne(59301),ve=ne(72460),De=ne(77596),he=ne(3977),ce=ne(14179),Se=ne(56102),se={answer:"answer___UngkO",imgWrap:"imgWrap___ORTRf",codeCopy:"codeCopy___re8vm",runCode:"runCode___MYs9m"},Ee=ne(6767),de=ne(90083),me=ne(95827),Te=ne(30084),Fe=ne(10787),He=ne(8944),oe=ne(81679),a=Object.defineProperty,E=Object.defineProperties,x=Object.getOwnPropertyDescriptors,y=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable,te=(ue,pe,we)=>pe in ue?a(ue,pe,{enumerable:!0,configurable:!0,writable:!0,value:we}):ue[pe]=we,ae=(ue,pe)=>{for(var we in pe||(pe={}))b.call(pe,we)&&te(ue,we,pe[we]);if(y)for(var we of y(pe))z.call(pe,we)&&te(ue,we,pe[we]);return ue},ie=(ue,pe)=>E(ue,x(pe)),re=(ue,pe)=>{var we={};for(var ke in ue)b.call(ue,ke)&&pe.indexOf(ke)<0&&(we[ke]=ue[ke]);if(ue!=null&&y)for(var ke of y(ue))pe.indexOf(ke)<0&&z.call(ue,ke)&&(we[ke]=ue[ke]);return we},fe=({onFinish:ue,value:pe,streamingStatus:we,cancelIndex:ke,loadImage:at,onDynamic:Ie,isHiddenHtml:Ve})=>{const[Qe,Ke]=(0,ee.useState)(""),[Xe,Oe]=(0,ee.useState)({defaultValue:"",open:0,language:"",placement:"right",height:"100vh"}),[je,_e]=(0,ee.useState)(0),[ot,ut]=(0,ee.useState)(!1),xe=We=>We.replace(/`(\$\$.*?\$\$)`/g,"$1").replace(/\$\$([\s\S]*?)\$\$/g,(Ze,ge)=>`<mathx data-text="${ge.trim()}">$$${ge.trim()}$$</mathx>`).replace(/\\\(([\s\S]*?)\\\)/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/\\\[([\s\S]*?)\\\]/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/_{2,}/g,"`$&`"),be=()=>{ut(!0),ue==null||ue()};(0,ee.useEffect)(()=>{const We=at?`\u8FD9\u662F\u6839\u636E\u60A8\u7684\u63CF\u8FF0\u751F\u6210\u7684\u56FE\u7247\uFF1A
</html>`;function Fe({open:oe=!0,onChange:a,defaultValue:E,placement:x,width:y,height:b,extra:z,onDynamic:te,onOpenChange:ae,showExtra:ie=!0}){const re=(0,ee.useRef)(null),le=(0,ee.useRef)(null),[fe,ue]=(0,ee.useState)(E||""),[pe,we]=(0,ee.useState)(E||""),[ke,at]=(0,ee.useState)(!!oe),[Ie,Ve]=(0,ee.useState)(1),Qe={selectOnLineNumbers:!0};(0,ee.useEffect)(()=>{oe&&(ue(E),we(E),at(!0))},[oe,E]),(0,ee.useEffect)(()=>{fe!==""&&(clearTimeout(le.current),le.current=setTimeout(()=>{const Xe=document.createElement("iframe");if(Xe.style.width="100%",Xe.style.height="100%",Xe.style.border="0",re.current){re.current.innerHTML="",re.current.appendChild(Xe);const Oe=Xe.contentDocument||Xe.contentWindow.document;Oe.open(),Oe.write(fe),Oe.close()}},1e3))},[oe,fe]);const Ke=Xe=>{ue(Xe),a==null||a(Xe,pe)};return de.createElement(ve.Z,{title:"\u667A\u80FD\u52A8\u6548",placement:"right",open:ke,width:"100%",height:b||"100vh",rootClassName:ce.smartWrp,destroyOnClose:!0,onClose:()=>{at(!1),ae==null||ae(fe)},extra:ie&&de.createElement("div",null,de.createElement(se.tp,{dataSource:[{name:"\u9884\u89C8",id:1},{name:"\u4EE3\u7801",id:2}],value:Ie,onChange:Xe=>Ve(Xe)}),de.createElement(Ee.Z,{type:"primary",className:"ml20",onClick:()=>me(this,null,function*(){yield te(fe,()=>{at(!1)})})},"\u4FDD\u5B58\u81F3\u8BFE\u4EF6"))},de.createElement(De.Z,{className:"h100"},de.createElement(he.Z,{flex:"1",style:{background:"#f6f7fb",borderRight:"#e8eaf1 1px solid",display:Ie===1?"block":"none"}},de.createElement("div",{className:"h100",ref:re})),de.createElement(he.Z,{flex:"1",style:{display:Ie===2?"block":"none"}},de.createElement(Se.ZP,{height:"90vh",value:E,language:"html",theme:"vs",showMiniMap:!1,options:Qe,onChange:Ke}))))}var He=Fe},10946:function(Pe,Ue,ne){"use strict";ne.d(Ue,{Z:function(){return fe}});var ee=ne(59301),ve=ne(97831),De=ne(77596),he=ne(3977),ce=ne(14179),Se=ne(56102),se={answer:"answer___UngkO",imgWrap:"imgWrap___ORTRf",codeCopy:"codeCopy___re8vm",runCode:"runCode___MYs9m"},Ee=ne(6767),de=ne(90083),me=ne(95827),Te=ne(30084),Fe=ne(10787),He=ne(8944),oe=ne(81679),a=Object.defineProperty,E=Object.defineProperties,x=Object.getOwnPropertyDescriptors,y=Object.getOwnPropertySymbols,b=Object.prototype.hasOwnProperty,z=Object.prototype.propertyIsEnumerable,te=(ue,pe,we)=>pe in ue?a(ue,pe,{enumerable:!0,configurable:!0,writable:!0,value:we}):ue[pe]=we,ae=(ue,pe)=>{for(var we in pe||(pe={}))b.call(pe,we)&&te(ue,we,pe[we]);if(y)for(var we of y(pe))z.call(pe,we)&&te(ue,we,pe[we]);return ue},ie=(ue,pe)=>E(ue,x(pe)),re=(ue,pe)=>{var we={};for(var ke in ue)b.call(ue,ke)&&pe.indexOf(ke)<0&&(we[ke]=ue[ke]);if(ue!=null&&y)for(var ke of y(ue))pe.indexOf(ke)<0&&z.call(ue,ke)&&(we[ke]=ue[ke]);return we},fe=({onFinish:ue,value:pe,streamingStatus:we,cancelIndex:ke,loadImage:at,onDynamic:Ie,isHiddenHtml:Ve})=>{const[Qe,Ke]=(0,ee.useState)(""),[Xe,Oe]=(0,ee.useState)({defaultValue:"",open:0,language:"",placement:"right",height:"100vh"}),[je,_e]=(0,ee.useState)(0),[ot,ut]=(0,ee.useState)(!1),xe=We=>We.replace(/`(\$\$.*?\$\$)`/g,"$1").replace(/\$\$([\s\S]*?)\$\$/g,(Ze,ge)=>`<mathx data-text="${ge.trim()}">$$${ge.trim()}$$</mathx>`).replace(/\\\(([\s\S]*?)\\\)/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/\\\[([\s\S]*?)\\\]/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/_{2,}/g,"`$&`"),be=()=>{ut(!0),ue==null||ue()};(0,ee.useEffect)(()=>{const We=at?`\u8FD9\u662F\u6839\u636E\u60A8\u7684\u63CF\u8FF0\u751F\u6210\u7684\u56FE\u7247\uFF1A
${pe}`:pe,Ze=xe(We);if(!ot)if(at||!we||ke>0){Ke(Ze),_e(Ze.length),(!we||ke>0)&&!at&&be();return}else if((Ze==null?void 0:Ze.length)<4)Ke(Ze),_e(Ze.length);else if(je<Ze.length){const ge=Ze.length-je,Be=setInterval(()=>{Ke(Ze.slice(0,je+2)),_e(qe=>qe+2)},ge>10?Math.max(500/(ge/2),20):50);return()=>clearInterval(Be)}else we||be()},[pe,we,ke,at,je]);const Me=(0,ee.useMemo)(()=>ee.createElement("section",{className:`${se.answer} fadeIn animated edu_md`},ee.createElement(ve.UG,{remarkPlugins:[Te.Z,Fe.Z],rehypePlugins:[me.Z,he.Z],components:{code(We){var Ze=We,{node:ge,inline:Be,className:qe,children:$e}=Ze,rt=re(Ze,["node","inline","className","children"]);const tt=/language-(\w+)/.exec(qe||""),Dt=String($e).trim();return Be||!tt?ee.createElement("code",ae({className:qe},rt),$e):ee.createElement("code",{className:se.codeCopy,"data-text":`\`\`\`${tt?tt[1]:""}
${$e}

@ -136,7 +136,7 @@
initArrayDisplay();
<\/script>
</body>
</html>`;function ge({open:oe=!0,onChange:a,defaultValue:E,placement:x,width:b,height:z,extra:ee,onDynamic:ne,onOpenChange:ae,showExtra:re=!0}){const le=(0,y.useRef)(null),ce=(0,y.useRef)(null),[ye,de]=(0,y.useState)(E||""),[Se,Be]=(0,y.useState)(E||""),[he,lt]=(0,y.useState)(!!oe),[Ue,Ie]=(0,y.useState)(1),st={selectOnLineNumbers:!0};(0,y.useEffect)(()=>{oe&&(de(E),Be(E),lt(!0))},[oe,E]),(0,y.useEffect)(()=>{ye!==""&&(clearTimeout(ce.current),ce.current=setTimeout(()=>{const $e=document.createElement("iframe");if($e.style.width="100%",$e.style.height="100%",$e.style.border="0",le.current){le.current.innerHTML="",le.current.appendChild($e);const Le=$e.contentDocument||$e.contentWindow.document;Le.open(),Le.write(ye),Le.close()}},1e3))},[oe,ye]);const Ze=$e=>{de($e),a==null||a($e,Se)};return fe.createElement(ie.Z,{title:"\u667A\u80FD\u52A8\u6548",placement:"right",open:he,width:"100%",height:z||"100vh",rootClassName:Pe.smartWrp,destroyOnClose:!0,onClose:()=>{lt(!1),ae==null||ae(ye)},extra:re&&fe.createElement("div",null,fe.createElement(pe.tp,{dataSource:[{name:"\u9884\u89C8",id:1},{name:"\u4EE3\u7801",id:2}],value:Ue,onChange:$e=>Ie($e)}),fe.createElement(be.Z,{type:"primary",className:"ml20",onClick:()=>ue(this,null,function*(){yield ne(ye,()=>{lt(!1)})})},"\u4FDD\u5B58\u81F3\u8BFE\u4EF6"))},fe.createElement(Ce.Z,{className:"h100"},fe.createElement(me.Z,{flex:"1",style:{background:"#f6f7fb",borderRight:"#e8eaf1 1px solid",display:Ue===1?"block":"none"}},fe.createElement("div",{className:"h100",ref:le})),fe.createElement(me.Z,{flex:"1",style:{display:Ue===2?"block":"none"}},fe.createElement(Fe.ZP,{height:"90vh",value:E,language:"html",theme:"vs",showMiniMap:!1,options:st,onChange:Ze}))))}var Ge=ge},10946:function(Oe,at,te){"use strict";te.d(at,{Z:function(){return ye}});var y=te(59301),ie=te(72460),Ce=te(77596),me=te(3977),Pe=te(14179),Fe=te(56102),pe={answer:"answer___UngkO",imgWrap:"imgWrap___ORTRf",codeCopy:"codeCopy___re8vm",runCode:"runCode___MYs9m"},be=te(6767),fe=te(90083),ue=te(95827),Ee=te(30084),ge=te(10787),Ge=te(8944),oe=te(81679),a=Object.defineProperty,E=Object.defineProperties,x=Object.getOwnPropertyDescriptors,b=Object.getOwnPropertySymbols,z=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable,ne=(de,Se,Be)=>Se in de?a(de,Se,{enumerable:!0,configurable:!0,writable:!0,value:Be}):de[Se]=Be,ae=(de,Se)=>{for(var Be in Se||(Se={}))z.call(Se,Be)&&ne(de,Be,Se[Be]);if(b)for(var Be of b(Se))ee.call(Se,Be)&&ne(de,Be,Se[Be]);return de},re=(de,Se)=>E(de,x(Se)),le=(de,Se)=>{var Be={};for(var he in de)z.call(de,he)&&Se.indexOf(he)<0&&(Be[he]=de[he]);if(de!=null&&b)for(var he of b(de))Se.indexOf(he)<0&&ee.call(de,he)&&(Be[he]=de[he]);return Be},ye=({onFinish:de,value:Se,streamingStatus:Be,cancelIndex:he,loadImage:lt,onDynamic:Ue,isHiddenHtml:Ie})=>{const[st,Ze]=(0,y.useState)(""),[$e,Le]=(0,y.useState)({defaultValue:"",open:0,language:"",placement:"right",height:"100vh"}),[Te,tt]=(0,y.useState)(0),[Je,ot]=(0,y.useState)(!1),xe=we=>we.replace(/`(\$\$.*?\$\$)`/g,"$1").replace(/\$\$([\s\S]*?)\$\$/g,(Qe,ve)=>`<mathx data-text="${ve.trim()}">$$${ve.trim()}$$</mathx>`).replace(/\\\(([\s\S]*?)\\\)/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/\\\[([\s\S]*?)\\\]/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/_{2,}/g,"`$&`"),Ae=()=>{ot(!0),de==null||de()};(0,y.useEffect)(()=>{const we=lt?`\u8FD9\u662F\u6839\u636E\u60A8\u7684\u63CF\u8FF0\u751F\u6210\u7684\u56FE\u7247\uFF1A
</html>`;function ge({open:oe=!0,onChange:a,defaultValue:E,placement:x,width:b,height:z,extra:ee,onDynamic:ne,onOpenChange:ae,showExtra:re=!0}){const le=(0,y.useRef)(null),ce=(0,y.useRef)(null),[ye,de]=(0,y.useState)(E||""),[Se,Be]=(0,y.useState)(E||""),[he,lt]=(0,y.useState)(!!oe),[Ue,Ie]=(0,y.useState)(1),st={selectOnLineNumbers:!0};(0,y.useEffect)(()=>{oe&&(de(E),Be(E),lt(!0))},[oe,E]),(0,y.useEffect)(()=>{ye!==""&&(clearTimeout(ce.current),ce.current=setTimeout(()=>{const $e=document.createElement("iframe");if($e.style.width="100%",$e.style.height="100%",$e.style.border="0",le.current){le.current.innerHTML="",le.current.appendChild($e);const Le=$e.contentDocument||$e.contentWindow.document;Le.open(),Le.write(ye),Le.close()}},1e3))},[oe,ye]);const Ze=$e=>{de($e),a==null||a($e,Se)};return fe.createElement(ie.Z,{title:"\u667A\u80FD\u52A8\u6548",placement:"right",open:he,width:"100%",height:z||"100vh",rootClassName:Pe.smartWrp,destroyOnClose:!0,onClose:()=>{lt(!1),ae==null||ae(ye)},extra:re&&fe.createElement("div",null,fe.createElement(pe.tp,{dataSource:[{name:"\u9884\u89C8",id:1},{name:"\u4EE3\u7801",id:2}],value:Ue,onChange:$e=>Ie($e)}),fe.createElement(be.Z,{type:"primary",className:"ml20",onClick:()=>ue(this,null,function*(){yield ne(ye,()=>{lt(!1)})})},"\u4FDD\u5B58\u81F3\u8BFE\u4EF6"))},fe.createElement(Ce.Z,{className:"h100"},fe.createElement(me.Z,{flex:"1",style:{background:"#f6f7fb",borderRight:"#e8eaf1 1px solid",display:Ue===1?"block":"none"}},fe.createElement("div",{className:"h100",ref:le})),fe.createElement(me.Z,{flex:"1",style:{display:Ue===2?"block":"none"}},fe.createElement(Fe.ZP,{height:"90vh",value:E,language:"html",theme:"vs",showMiniMap:!1,options:st,onChange:Ze}))))}var Ge=ge},10946:function(Oe,at,te){"use strict";te.d(at,{Z:function(){return ye}});var y=te(59301),ie=te(97831),Ce=te(77596),me=te(3977),Pe=te(14179),Fe=te(56102),pe={answer:"answer___UngkO",imgWrap:"imgWrap___ORTRf",codeCopy:"codeCopy___re8vm",runCode:"runCode___MYs9m"},be=te(6767),fe=te(90083),ue=te(95827),Ee=te(30084),ge=te(10787),Ge=te(8944),oe=te(81679),a=Object.defineProperty,E=Object.defineProperties,x=Object.getOwnPropertyDescriptors,b=Object.getOwnPropertySymbols,z=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable,ne=(de,Se,Be)=>Se in de?a(de,Se,{enumerable:!0,configurable:!0,writable:!0,value:Be}):de[Se]=Be,ae=(de,Se)=>{for(var Be in Se||(Se={}))z.call(Se,Be)&&ne(de,Be,Se[Be]);if(b)for(var Be of b(Se))ee.call(Se,Be)&&ne(de,Be,Se[Be]);return de},re=(de,Se)=>E(de,x(Se)),le=(de,Se)=>{var Be={};for(var he in de)z.call(de,he)&&Se.indexOf(he)<0&&(Be[he]=de[he]);if(de!=null&&b)for(var he of b(de))Se.indexOf(he)<0&&ee.call(de,he)&&(Be[he]=de[he]);return Be},ye=({onFinish:de,value:Se,streamingStatus:Be,cancelIndex:he,loadImage:lt,onDynamic:Ue,isHiddenHtml:Ie})=>{const[st,Ze]=(0,y.useState)(""),[$e,Le]=(0,y.useState)({defaultValue:"",open:0,language:"",placement:"right",height:"100vh"}),[Te,tt]=(0,y.useState)(0),[Je,ot]=(0,y.useState)(!1),xe=we=>we.replace(/`(\$\$.*?\$\$)`/g,"$1").replace(/\$\$([\s\S]*?)\$\$/g,(Qe,ve)=>`<mathx data-text="${ve.trim()}">$$${ve.trim()}$$</mathx>`).replace(/\\\(([\s\S]*?)\\\)/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/\\\[([\s\S]*?)\\\]/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/_{2,}/g,"`$&`"),Ae=()=>{ot(!0),de==null||de()};(0,y.useEffect)(()=>{const we=lt?`\u8FD9\u662F\u6839\u636E\u60A8\u7684\u63CF\u8FF0\u751F\u6210\u7684\u56FE\u7247\uFF1A
${Se}`:Se,Qe=xe(we);if(!Je)if(lt||!Be||he>0){Ze(Qe),tt(Qe.length),(!Be||he>0)&&!lt&&Ae();return}else if((Qe==null?void 0:Qe.length)<4)Ze(Qe),tt(Qe.length);else if(Te<Qe.length){const ve=Qe.length-Te,je=setInterval(()=>{Ze(Qe.slice(0,Te+2)),tt(ct=>ct+2)},ve>10?Math.max(500/(ve/2),20):50);return()=>clearInterval(je)}else Be||Ae()},[Se,Be,he,lt,Te]);const Me=(0,y.useMemo)(()=>y.createElement("section",{className:`${pe.answer} fadeIn animated edu_md`},y.createElement(ie.UG,{remarkPlugins:[Ee.Z,ge.Z],rehypePlugins:[ue.Z,me.Z],components:{code(we){var Qe=we,{node:ve,inline:je,className:ct,children:dt}=Qe,ht=le(Qe,["node","inline","className","children"]);const De=/language-(\w+)/.exec(ct||""),gt=String(dt).trim();return je||!De?y.createElement("code",ae({className:ct},ht),dt):y.createElement("code",{className:pe.codeCopy,"data-text":`\`\`\`${De?De[1]:""}
${dt}

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

@ -136,7 +136,7 @@
initArrayDisplay();
<\/script>
</body>
</html>`;function ge({open:oe=!0,onChange:a,defaultValue:E,placement:x,width:b,height:z,extra:ee,onDynamic:ne,onOpenChange:ae,showExtra:le=!0}){const re=(0,y.useRef)(null),ce=(0,y.useRef)(null),[Ae,de]=(0,y.useState)(E||""),[Pe,Be]=(0,y.useState)(E||""),[he,ut]=(0,y.useState)(!!oe),[Ue,Me]=(0,y.useState)(1),ct={selectOnLineNumbers:!0};(0,y.useEffect)(()=>{oe&&(de(E),Be(E),ut(!0))},[oe,E]),(0,y.useEffect)(()=>{Ae!==""&&(clearTimeout(ce.current),ce.current=setTimeout(()=>{const Je=document.createElement("iframe");if(Je.style.width="100%",Je.style.height="100%",Je.style.border="0",re.current){re.current.innerHTML="",re.current.appendChild(Je);const xe=Je.contentDocument||Je.contentWindow.document;xe.open(),xe.write(Ae),xe.close()}},1e3))},[oe,Ae]);const Ge=Je=>{de(Je),a==null||a(Je,Pe)};return fe.createElement(ie.Z,{title:"\u667A\u80FD\u52A8\u6548",placement:"right",open:he,width:"100%",height:z||"100vh",rootClassName:Ee.smartWrp,destroyOnClose:!0,onClose:()=>{ut(!1),ae==null||ae(Ae)},extra:le&&fe.createElement("div",null,fe.createElement(ve.tp,{dataSource:[{name:"\u9884\u89C8",id:1},{name:"\u4EE3\u7801",id:2}],value:Ue,onChange:Je=>Me(Je)}),fe.createElement(De.Z,{type:"primary",className:"ml20",onClick:()=>ue(this,null,function*(){yield ne(Ae,()=>{ut(!1)})})},"\u4FDD\u5B58\u81F3\u8BFE\u4EF6"))},fe.createElement(ye.Z,{className:"h100"},fe.createElement(me.Z,{flex:"1",style:{background:"#f6f7fb",borderRight:"#e8eaf1 1px solid",display:Ue===1?"block":"none"}},fe.createElement("div",{className:"h100",ref:re})),fe.createElement(me.Z,{flex:"1",style:{display:Ue===2?"block":"none"}},fe.createElement(Se.ZP,{height:"90vh",value:E,language:"html",theme:"vs",showMiniMap:!1,options:ct,onChange:Ge}))))}var Ze=ge},10946:function(Oe,tt,te){"use strict";te.d(tt,{Z:function(){return Ae}});var y=te(59301),ie=te(72460),ye=te(77596),me=te(3977),Ee=te(14179),Se=te(56102),ve={answer:"answer___UngkO",imgWrap:"imgWrap___ORTRf",codeCopy:"codeCopy___re8vm",runCode:"runCode___MYs9m"},De=te(6767),fe=te(90083),ue=te(95827),pe=te(30084),ge=te(10787),Ze=te(8944),oe=te(81679),a=Object.defineProperty,E=Object.defineProperties,x=Object.getOwnPropertyDescriptors,b=Object.getOwnPropertySymbols,z=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable,ne=(de,Pe,Be)=>Pe in de?a(de,Pe,{enumerable:!0,configurable:!0,writable:!0,value:Be}):de[Pe]=Be,ae=(de,Pe)=>{for(var Be in Pe||(Pe={}))z.call(Pe,Be)&&ne(de,Be,Pe[Be]);if(b)for(var Be of b(Pe))ee.call(Pe,Be)&&ne(de,Be,Pe[Be]);return de},le=(de,Pe)=>E(de,x(Pe)),re=(de,Pe)=>{var Be={};for(var he in de)z.call(de,he)&&Pe.indexOf(he)<0&&(Be[he]=de[he]);if(de!=null&&b)for(var he of b(de))Pe.indexOf(he)<0&&ee.call(de,he)&&(Be[he]=de[he]);return Be},Ae=({onFinish:de,value:Pe,streamingStatus:Be,cancelIndex:he,loadImage:ut,onDynamic:Ue,isHiddenHtml:Me})=>{const[ct,Ge]=(0,y.useState)(""),[Je,xe]=(0,y.useState)({defaultValue:"",open:0,language:"",placement:"right",height:"100vh"}),[ke,$e]=(0,y.useState)(0),[rt,gt]=(0,y.useState)(!1),Le=we=>we.replace(/`(\$\$.*?\$\$)`/g,"$1").replace(/\$\$([\s\S]*?)\$\$/g,(Qe,Ce)=>`<mathx data-text="${Ce.trim()}">$$${Ce.trim()}$$</mathx>`).replace(/\\\(([\s\S]*?)\\\)/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/\\\[([\s\S]*?)\\\]/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/_{2,}/g,"`$&`"),Fe=()=>{gt(!0),de==null||de()};(0,y.useEffect)(()=>{const we=ut?`\u8FD9\u662F\u6839\u636E\u60A8\u7684\u63CF\u8FF0\u751F\u6210\u7684\u56FE\u7247\uFF1A
</html>`;function ge({open:oe=!0,onChange:a,defaultValue:E,placement:x,width:b,height:z,extra:ee,onDynamic:ne,onOpenChange:ae,showExtra:le=!0}){const re=(0,y.useRef)(null),ce=(0,y.useRef)(null),[Ae,de]=(0,y.useState)(E||""),[Pe,Be]=(0,y.useState)(E||""),[he,ut]=(0,y.useState)(!!oe),[Ue,Me]=(0,y.useState)(1),ct={selectOnLineNumbers:!0};(0,y.useEffect)(()=>{oe&&(de(E),Be(E),ut(!0))},[oe,E]),(0,y.useEffect)(()=>{Ae!==""&&(clearTimeout(ce.current),ce.current=setTimeout(()=>{const Je=document.createElement("iframe");if(Je.style.width="100%",Je.style.height="100%",Je.style.border="0",re.current){re.current.innerHTML="",re.current.appendChild(Je);const xe=Je.contentDocument||Je.contentWindow.document;xe.open(),xe.write(Ae),xe.close()}},1e3))},[oe,Ae]);const Ge=Je=>{de(Je),a==null||a(Je,Pe)};return fe.createElement(ie.Z,{title:"\u667A\u80FD\u52A8\u6548",placement:"right",open:he,width:"100%",height:z||"100vh",rootClassName:Ee.smartWrp,destroyOnClose:!0,onClose:()=>{ut(!1),ae==null||ae(Ae)},extra:le&&fe.createElement("div",null,fe.createElement(ve.tp,{dataSource:[{name:"\u9884\u89C8",id:1},{name:"\u4EE3\u7801",id:2}],value:Ue,onChange:Je=>Me(Je)}),fe.createElement(De.Z,{type:"primary",className:"ml20",onClick:()=>ue(this,null,function*(){yield ne(Ae,()=>{ut(!1)})})},"\u4FDD\u5B58\u81F3\u8BFE\u4EF6"))},fe.createElement(ye.Z,{className:"h100"},fe.createElement(me.Z,{flex:"1",style:{background:"#f6f7fb",borderRight:"#e8eaf1 1px solid",display:Ue===1?"block":"none"}},fe.createElement("div",{className:"h100",ref:re})),fe.createElement(me.Z,{flex:"1",style:{display:Ue===2?"block":"none"}},fe.createElement(Se.ZP,{height:"90vh",value:E,language:"html",theme:"vs",showMiniMap:!1,options:ct,onChange:Ge}))))}var Ze=ge},10946:function(Oe,tt,te){"use strict";te.d(tt,{Z:function(){return Ae}});var y=te(59301),ie=te(97831),ye=te(77596),me=te(3977),Ee=te(14179),Se=te(56102),ve={answer:"answer___UngkO",imgWrap:"imgWrap___ORTRf",codeCopy:"codeCopy___re8vm",runCode:"runCode___MYs9m"},De=te(6767),fe=te(90083),ue=te(95827),pe=te(30084),ge=te(10787),Ze=te(8944),oe=te(81679),a=Object.defineProperty,E=Object.defineProperties,x=Object.getOwnPropertyDescriptors,b=Object.getOwnPropertySymbols,z=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable,ne=(de,Pe,Be)=>Pe in de?a(de,Pe,{enumerable:!0,configurable:!0,writable:!0,value:Be}):de[Pe]=Be,ae=(de,Pe)=>{for(var Be in Pe||(Pe={}))z.call(Pe,Be)&&ne(de,Be,Pe[Be]);if(b)for(var Be of b(Pe))ee.call(Pe,Be)&&ne(de,Be,Pe[Be]);return de},le=(de,Pe)=>E(de,x(Pe)),re=(de,Pe)=>{var Be={};for(var he in de)z.call(de,he)&&Pe.indexOf(he)<0&&(Be[he]=de[he]);if(de!=null&&b)for(var he of b(de))Pe.indexOf(he)<0&&ee.call(de,he)&&(Be[he]=de[he]);return Be},Ae=({onFinish:de,value:Pe,streamingStatus:Be,cancelIndex:he,loadImage:ut,onDynamic:Ue,isHiddenHtml:Me})=>{const[ct,Ge]=(0,y.useState)(""),[Je,xe]=(0,y.useState)({defaultValue:"",open:0,language:"",placement:"right",height:"100vh"}),[ke,$e]=(0,y.useState)(0),[rt,gt]=(0,y.useState)(!1),Le=we=>we.replace(/`(\$\$.*?\$\$)`/g,"$1").replace(/\$\$([\s\S]*?)\$\$/g,(Qe,Ce)=>`<mathx data-text="${Ce.trim()}">$$${Ce.trim()}$$</mathx>`).replace(/\\\(([\s\S]*?)\\\)/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/\\\[([\s\S]*?)\\\]/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/_{2,}/g,"`$&`"),Fe=()=>{gt(!0),de==null||de()};(0,y.useEffect)(()=>{const we=ut?`\u8FD9\u662F\u6839\u636E\u60A8\u7684\u63CF\u8FF0\u751F\u6210\u7684\u56FE\u7247\uFF1A
${Pe}`:Pe,Qe=Le(we);if(!rt)if(ut||!Be||he>0){Ge(Qe),$e(Qe.length),(!Be||he>0)&&!ut&&Fe();return}else if((Qe==null?void 0:Qe.length)<4)Ge(Qe),$e(Qe.length);else if(ke<Qe.length){const Ce=Qe.length-ke,Ve=setInterval(()=>{Ge(Qe.slice(0,ke+2)),$e(it=>it+2)},Ce>10?Math.max(500/(Ce/2),20):50);return()=>clearInterval(Ve)}else Be||Fe()},[Pe,Be,he,ut,ke]);const Ie=(0,y.useMemo)(()=>y.createElement("section",{className:`${ve.answer} fadeIn animated edu_md`},y.createElement(ie.UG,{remarkPlugins:[pe.Z,ge.Z],rehypePlugins:[ue.Z,me.Z],components:{code(we){var Qe=we,{node:Ce,inline:Ve,className:it,children:lt}=Qe,ht=re(Qe,["node","inline","className","children"]);const be=/language-(\w+)/.exec(it||""),st=String(lt).trim();return Ve||!be?y.createElement("code",ae({className:it},ht),lt):y.createElement("code",{className:ve.codeCopy,"data-text":`\`\`\`${be?be[1]:""}
${lt}

@ -136,7 +136,7 @@
initArrayDisplay();
<\/script>
</body>
</html>`;function Oe({open:se=!0,onChange:E,defaultValue:a,placement:b,width:x,height:z,extra:ee,onDynamic:ie,onOpenChange:me,showExtra:Be=!0}){const ve=(0,y.useRef)(null),Pe=(0,y.useRef)(null),[je,We]=(0,y.useState)(a||""),[ut,dt]=(0,y.useState)(a||""),[bt,ln]=(0,y.useState)(!!se),[An,Xt]=(0,y.useState)(1),Tn={selectOnLineNumbers:!0};(0,y.useEffect)(()=>{se&&(We(a),dt(a),ln(!0))},[se,a]),(0,y.useEffect)(()=>{je!==""&&(clearTimeout(Pe.current),Pe.current=setTimeout(()=>{const kt=document.createElement("iframe");if(kt.style.width="100%",kt.style.height="100%",kt.style.border="0",ve.current){ve.current.innerHTML="",ve.current.appendChild(kt);const Pt=kt.contentDocument||kt.contentWindow.document;Pt.open(),Pt.write(je),Pt.close()}},1e3))},[se,je]);const Nt=kt=>{We(kt),E==null||E(kt,ut)};return de.createElement(Ue.Z,{title:"\u667A\u80FD\u52A8\u6548",placement:"right",open:bt,width:"100%",height:z||"100vh",rootClassName:le.smartWrp,destroyOnClose:!0,onClose:()=>{ln(!1),me==null||me(je)},extra:Be&&de.createElement("div",null,de.createElement(Ce.tp,{dataSource:[{name:"\u9884\u89C8",id:1},{name:"\u4EE3\u7801",id:2}],value:An,onChange:kt=>Xt(kt)}),de.createElement(pe.Z,{type:"primary",className:"ml20",onClick:()=>oe(this,null,function*(){yield ie(je,()=>{ln(!1)})})},"\u4FDD\u5B58\u81F3\u8BFE\u4EF6"))},de.createElement(De.Z,{className:"h100"},de.createElement(ge.Z,{flex:"1",style:{background:"#f6f7fb",borderRight:"#e8eaf1 1px solid",display:An===1?"block":"none"}},de.createElement("div",{className:"h100",ref:ve})),de.createElement(ge.Z,{flex:"1",style:{display:An===2?"block":"none"}},de.createElement(ce.ZP,{height:"90vh",value:a,language:"html",theme:"vs",showMiniMap:!1,options:Tn,onChange:Nt}))))}var He=Oe},10946:function(Lt,Ne,re){"use strict";re.d(Ne,{Z:function(){return je}});var y=re(59301),Ue=re(72460),De=re(77596),ge=re(3977),le=re(14179),ce=re(56102),Ce={answer:"answer___UngkO",imgWrap:"imgWrap___ORTRf",codeCopy:"codeCopy___re8vm",runCode:"runCode___MYs9m"},pe=re(6767),de=re(90083),oe=re(95827),we=re(30084),Oe=re(10787),He=re(8944),se=re(81679),E=Object.defineProperty,a=Object.defineProperties,b=Object.getOwnPropertyDescriptors,x=Object.getOwnPropertySymbols,z=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable,ie=(We,ut,dt)=>ut in We?E(We,ut,{enumerable:!0,configurable:!0,writable:!0,value:dt}):We[ut]=dt,me=(We,ut)=>{for(var dt in ut||(ut={}))z.call(ut,dt)&&ie(We,dt,ut[dt]);if(x)for(var dt of x(ut))ee.call(ut,dt)&&ie(We,dt,ut[dt]);return We},Be=(We,ut)=>a(We,b(ut)),ve=(We,ut)=>{var dt={};for(var bt in We)z.call(We,bt)&&ut.indexOf(bt)<0&&(dt[bt]=We[bt]);if(We!=null&&x)for(var bt of x(We))ut.indexOf(bt)<0&&ee.call(We,bt)&&(dt[bt]=We[bt]);return dt},je=({onFinish:We,value:ut,streamingStatus:dt,cancelIndex:bt,loadImage:ln,onDynamic:An,isHiddenHtml:Xt})=>{const[Tn,Nt]=(0,y.useState)(""),[kt,Pt]=(0,y.useState)({defaultValue:"",open:0,language:"",placement:"right",height:"100vh"}),[nt,jt]=(0,y.useState)(0),[fn,$n]=(0,y.useState)(!1),_t=Gn=>Gn.replace(/`(\$\$.*?\$\$)`/g,"$1").replace(/\$\$([\s\S]*?)\$\$/g,(mn,pt)=>`<mathx data-text="${pt.trim()}">$$${pt.trim()}$$</mathx>`).replace(/\\\(([\s\S]*?)\\\)/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/\\\[([\s\S]*?)\\\]/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/_{2,}/g,"`$&`"),rn=()=>{$n(!0),We==null||We()};(0,y.useEffect)(()=>{const Gn=ln?`\u8FD9\u662F\u6839\u636E\u60A8\u7684\u63CF\u8FF0\u751F\u6210\u7684\u56FE\u7247\uFF1A
</html>`;function Oe({open:se=!0,onChange:E,defaultValue:a,placement:b,width:x,height:z,extra:ee,onDynamic:ie,onOpenChange:me,showExtra:Be=!0}){const ve=(0,y.useRef)(null),Pe=(0,y.useRef)(null),[je,We]=(0,y.useState)(a||""),[ut,dt]=(0,y.useState)(a||""),[bt,ln]=(0,y.useState)(!!se),[An,Xt]=(0,y.useState)(1),Tn={selectOnLineNumbers:!0};(0,y.useEffect)(()=>{se&&(We(a),dt(a),ln(!0))},[se,a]),(0,y.useEffect)(()=>{je!==""&&(clearTimeout(Pe.current),Pe.current=setTimeout(()=>{const kt=document.createElement("iframe");if(kt.style.width="100%",kt.style.height="100%",kt.style.border="0",ve.current){ve.current.innerHTML="",ve.current.appendChild(kt);const Pt=kt.contentDocument||kt.contentWindow.document;Pt.open(),Pt.write(je),Pt.close()}},1e3))},[se,je]);const Nt=kt=>{We(kt),E==null||E(kt,ut)};return de.createElement(Ue.Z,{title:"\u667A\u80FD\u52A8\u6548",placement:"right",open:bt,width:"100%",height:z||"100vh",rootClassName:le.smartWrp,destroyOnClose:!0,onClose:()=>{ln(!1),me==null||me(je)},extra:Be&&de.createElement("div",null,de.createElement(Ce.tp,{dataSource:[{name:"\u9884\u89C8",id:1},{name:"\u4EE3\u7801",id:2}],value:An,onChange:kt=>Xt(kt)}),de.createElement(pe.Z,{type:"primary",className:"ml20",onClick:()=>oe(this,null,function*(){yield ie(je,()=>{ln(!1)})})},"\u4FDD\u5B58\u81F3\u8BFE\u4EF6"))},de.createElement(De.Z,{className:"h100"},de.createElement(ge.Z,{flex:"1",style:{background:"#f6f7fb",borderRight:"#e8eaf1 1px solid",display:An===1?"block":"none"}},de.createElement("div",{className:"h100",ref:ve})),de.createElement(ge.Z,{flex:"1",style:{display:An===2?"block":"none"}},de.createElement(ce.ZP,{height:"90vh",value:a,language:"html",theme:"vs",showMiniMap:!1,options:Tn,onChange:Nt}))))}var He=Oe},10946:function(Lt,Ne,re){"use strict";re.d(Ne,{Z:function(){return je}});var y=re(59301),Ue=re(97831),De=re(77596),ge=re(3977),le=re(14179),ce=re(56102),Ce={answer:"answer___UngkO",imgWrap:"imgWrap___ORTRf",codeCopy:"codeCopy___re8vm",runCode:"runCode___MYs9m"},pe=re(6767),de=re(90083),oe=re(95827),we=re(30084),Oe=re(10787),He=re(8944),se=re(81679),E=Object.defineProperty,a=Object.defineProperties,b=Object.getOwnPropertyDescriptors,x=Object.getOwnPropertySymbols,z=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable,ie=(We,ut,dt)=>ut in We?E(We,ut,{enumerable:!0,configurable:!0,writable:!0,value:dt}):We[ut]=dt,me=(We,ut)=>{for(var dt in ut||(ut={}))z.call(ut,dt)&&ie(We,dt,ut[dt]);if(x)for(var dt of x(ut))ee.call(ut,dt)&&ie(We,dt,ut[dt]);return We},Be=(We,ut)=>a(We,b(ut)),ve=(We,ut)=>{var dt={};for(var bt in We)z.call(We,bt)&&ut.indexOf(bt)<0&&(dt[bt]=We[bt]);if(We!=null&&x)for(var bt of x(We))ut.indexOf(bt)<0&&ee.call(We,bt)&&(dt[bt]=We[bt]);return dt},je=({onFinish:We,value:ut,streamingStatus:dt,cancelIndex:bt,loadImage:ln,onDynamic:An,isHiddenHtml:Xt})=>{const[Tn,Nt]=(0,y.useState)(""),[kt,Pt]=(0,y.useState)({defaultValue:"",open:0,language:"",placement:"right",height:"100vh"}),[nt,jt]=(0,y.useState)(0),[fn,$n]=(0,y.useState)(!1),_t=Gn=>Gn.replace(/`(\$\$.*?\$\$)`/g,"$1").replace(/\$\$([\s\S]*?)\$\$/g,(mn,pt)=>`<mathx data-text="${pt.trim()}">$$${pt.trim()}$$</mathx>`).replace(/\\\(([\s\S]*?)\\\)/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/\\\[([\s\S]*?)\\\]/g,'<mathx data-text="$1">$$$$$1$$$$</mathx>').replace(/_{2,}/g,"`$&`"),rn=()=>{$n(!0),We==null||We()};(0,y.useEffect)(()=>{const Gn=ln?`\u8FD9\u662F\u6839\u636E\u60A8\u7684\u63CF\u8FF0\u751F\u6210\u7684\u56FE\u7247\uFF1A
${ut}`:ut,mn=_t(Gn);if(!fn)if(ln||!dt||bt>0){Nt(mn),jt(mn.length),(!dt||bt>0)&&!ln&&rn();return}else if((mn==null?void 0:mn.length)<4)Nt(mn),jt(mn.length);else if(nt<mn.length){const pt=mn.length-nt,Qt=setInterval(()=>{Nt(mn.slice(0,nt+2)),jt(Wt=>Wt+2)},pt>10?Math.max(500/(pt/2),20):50);return()=>clearInterval(Qt)}else dt||rn()},[ut,dt,bt,ln,nt]);const an=(0,y.useMemo)(()=>y.createElement("section",{className:`${Ce.answer} fadeIn animated edu_md`},y.createElement(Ue.UG,{remarkPlugins:[we.Z,Oe.Z],rehypePlugins:[oe.Z,ge.Z],components:{code(Gn){var mn=Gn,{node:pt,inline:Qt,className:Wt,children:Dn}=mn,Un=ve(mn,["node","inline","className","children"]);const Xn=/language-(\w+)/.exec(Wt||""),tt=String(Dn).trim();return Qt||!Xn?y.createElement("code",me({className:Wt},Un),Dn):y.createElement("code",{className:Ce.codeCopy,"data-text":`\`\`\`${Xn?Xn[1]:""}
${Dn}

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save