You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
NewEduCoderBuild/p__Classrooms__Lists__Exerc...

1356 lines
1.3 MiB

(self.webpackChunk=self.webpackChunk||[]).push([[292],{87169:function(It,kt,ne){"use strict";ne.d(kt,{Z:function(){return nt}});var E=ne(60499),ve=ne(59301),Pe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},Te=Pe,He=ne(7657),_e=function(We,Xe){return ve.createElement(He.Z,(0,E.Z)({},We,{ref:Xe,icon:Te}))},ze=ve.forwardRef(_e),nt=ze},12893:function(It,kt,ne){"use strict";ne.d(kt,{Z:function(){return nt}});var E=ne(60499),ve=ne(59301),Pe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"minus-circle",theme:"outlined"},Te=Pe,He=ne(7657),_e=function(We,Xe){return ve.createElement(He.Z,(0,E.Z)({},We,{ref:Xe,icon:Te}))},ze=ve.forwardRef(_e),nt=ze},32134:function(It,kt,ne){"use strict";ne.d(kt,{Z:function(){return nt}});var E=ne(60499),ve=ne(59301),Pe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"plus-circle",theme:"outlined"},Te=Pe,He=ne(7657),_e=function(We,Xe){return ve.createElement(He.Z,(0,E.Z)({},We,{ref:Xe,icon:Te}))},ze=ve.forwardRef(_e),nt=ze},88319:function(){"use strict"},94896:function(){"use strict"},74501:function(It,kt){"use strict";kt.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},42168:function(It,kt){"use strict";kt.Z={wrap:"wrap___ilWvf",deleteIcon:"deleteIcon___JBDG8",keywordTag:"keywordTag___iieCb",questionTitleEditorWrap:"questionTitleEditorWrap___MHB5s",choiceListWrap:"choiceListWrap___jB8b1",choiceWrap:"choiceWrap___QFkTc",choiceIndex:"choiceIndex___Mr2YO",judgementIndex:"judgementIndex___fUVWK",setAnswerBtn:"setAnswerBtn___Whox5",activeAnswer:"activeAnswer___fGU6Y",activeJudgementAnswer:"activeJudgementAnswer___wJv8P",actionWrapper:"actionWrapper___ERQ7k",addIcon:"addIcon___L9TE0",inputBorder:"inputBorder___Q5tRE",placeholder:"placeholder___p9sFY",blankInputNumberWrapper:"blankInputNumberWrapper___uEHb0",addBtn:"addBtn___WR5ZI",blankIndex:"blankIndex___x9Pny",baseInputWrapper:"baseInputWrapper___eVsG7",collapseWrapper:"collapseWrapper___ZTysU",panelHeader:"panelHeader___QSN9g",open:"open___B6FU9",close:"close___QX19r",hide:"hide___mn25n",rateInput:"rateInput___yMSFt",operationWrapper:"operationWrapper___sHATq",add:"add___jcwUR",remove:"remove___nbhui"}},27781:function(It,kt){"use strict";kt.Z={flex_box_center:"flex_box_center___ycN2f",flex_space_between:"flex_space_between___LcS9e",flex_box_vertical_center:"flex_box_vertical_center___uwjPm",flex_box_center_end:"flex_box_center_end___Pc903",flex_box_column:"flex_box_column___AXEdv",bg:"bg___fm2Cw",title:"title___J3MCU",editIcon:"editIcon___i4Zll",titleLeft:"titleLeft___da61c",titleRight:"titleRight___EsdL6",formWrap:"formWrap___YTxC3",baseLineHeight:"baseLineHeight___TprCB",radioBtnWrapper:"radioBtnWrapper___Mt_XG",radiogroup:"radiogroup___EvkWh",easy:"easy___mSxtg",medium:"medium___NIaWN",hard:"hard___mddnD",baseFormItem:"baseFormItem___csbyb",cascaderPopup:"cascaderPopup___BttnF",selectdiv:"selectdiv___TAr4i",divitem:"divitem___iaXB2",bottmodiv:"bottmodiv___bmp6p",cancelBtn:"cancelBtn___Q4ZcL",confirmBtn:"confirmBtn___nRiCD",concat:"concat___jlPR1",zhishidian:"zhishidian___fS6sq",tags_list:"tags_list___ia3sA",tag_item:"tag_item___QZC19",tag_icon:"tag_icon___ATbW9"}},25638:function(It,kt,ne){"use strict";var E=ne(59301),ve=Object.defineProperty,Pe=Object.getOwnPropertySymbols,Te=Object.prototype.hasOwnProperty,He=Object.prototype.propertyIsEnumerable,_e=(Fe,We,Xe)=>We in Fe?ve(Fe,We,{enumerable:!0,configurable:!0,writable:!0,value:Xe}):Fe[We]=Xe,ze=(Fe,We)=>{for(var Xe in We||(We={}))Te.call(We,Xe)&&_e(Fe,Xe,We[Xe]);if(Pe)for(var Xe of Pe(We))He.call(We,Xe)&&_e(Fe,Xe,We[Xe]);return Fe};const nt=Fe=>React.createElement("svg",ze({width:14,height:13,xmlns:"http://www.w3.org/2000/svg"},Fe),React.createElement("title",null,"\u6D4B\u8BD5AI\u8BC4\u5206"),React.createElement("path",{d:"M5.19 1.488a2.133 2.133 0 0 1 3.62 0l.96 1.54a.25.25 0 0 0 .152.11l1.76.437a2.133 2.133 0 0 1 1.12 3.443l-1.234 1.465.136 1.912a2.133 2.133 0 0 1-1.823 2.263l-.152.016a2.133 2.133 0 0 1-.954-.15l-1.681-.683a.25.25 0 0 0-.188 0l-1.681.682a2.133 2.133 0 0 1-2.93-2.128l.13-1.81a.25.25 0 0 0-.058-.178L1.198 7.018a2.133 2.133 0 0 1 1.12-3.443l1.76-.436a.25.25 0 0 0 .152-.11Zm2.053.543a.633.633 0 0 0-.78.25l-.96 1.54a1.75 1.75 0 0 1-1.064.774l-1.761.436a.633.633 0 0 0-.332 1.022L3.514 7.44c.294.348.44.797.407 1.251l-.13 1.81a.633.633 0 0 0 .87.631l1.681-.682a1.75 1.75 0 0 1 1.316 0l1.681.682a.633.633 0 0 0 .87-.631l-.18-2.518 1.625-1.931a.633.633 0 0 0-.332-1.022l-1.761-.436a1.75 1.75 0 0 1-1.065-.774l-.959-1.54a.633.633 0 0 0-.203-.203Zm1.544 5.23a.75.75 0 0 1 .102 1.493l-.102.007H5.362a.75.75 0 0 1-.102-1.494l.102-.006h3.425Z",fill:"#3061D0",fillRule:"nonzero"}));kt.Z="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTMiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTUuMTkgMS40ODhhMi4xMzMgMi4xMzMgMCAwIDEgMy42MiAwbC45NiAxLjU0YS4yNS4yNSAwIDAgMCAuMTUyLjExbDEuNzYuNDM3YTIuMTMzIDIuMTMzIDAgMCAxIDEuMTIgMy40NDNsLTEuMjM0IDEuNDY1LjEzNiAxLjkxMmEyLjEzMyAy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,Te=Object.prototype.hasOwnProperty,He=Object.prototype.propertyIsEnumerable,_e=(Fe,We,Xe)=>We in Fe?ve(Fe,We,{enumerable:!0,configurable:!0,writable:!0,value:Xe}):Fe[We]=Xe,ze=(Fe,We)=>{for(var Xe in We||(We={}))Te.call(We,Xe)&&_e(Fe,Xe,We[Xe]);if(Pe)for(var Xe of Pe(We))He.call(We,Xe)&&_e(Fe,Xe,We[Xe]);return Fe};const nt=Fe=>React.createElement("svg",ze({className:"jiangxu_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:32,height:32},Fe),React.createElement("path",{d:"M365.714 73.143H1024v73.143H365.714zm0 292.571H1024v73.143H365.714zm0 292.572H1024v73.143H365.714zm0 292.571H1024V1024H365.714v-73.143z",fill:"#98BDF7"}),React.createElement("path",{d:"m248.686 803.182-65.829 75.922V658.286h-73.143v220.818l-65.828-75.995L0 851.383 146.286 1024 292.57 851.53z",fill:"#145DFF"}),React.createElement("path",{d:"M146.286 0 0 158.72l43.886 55.223 65.828-75.922v227.693h73.143V138.021l65.829 75.922 43.885-55.223z",fill:"#98BDF7"}));kt.Z="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMzIiIGhlaWdodD0iMzIiPjxwYXRoIGQ9Ik0zNjUuNzE0IDczLjE0M0gxMDI0djczLjE0M0gzNjUuNzE0em0wIDI5Mi41NzFIMTAyNHY3My4xNDNIMzY1LjcxNHptMCAyOTIuNTcySDEwMjR2NzMuMTQzSDM2NS43MTR6bTAgMjkyLjU3MUgxMDI0VjEwMjRIMzY1LjcxNHYtNzMuMTQzeiIgZmlsbD0iIzk4QkRGNyIvPjxwYXRoIGQ9Im0yNDguNjg2IDgwMy4xODItNjUuODI5IDc1LjkyMlY2NTguMjg2aC03My4xNDN2MjIwLjgxOGwtNjUuODI4LTc1Ljk5NUwwIDg1MS4zODMgMTQ2LjI4NiAxMDI0IDI5Mi41NyA4NTEuNTN6IiBmaWxsPSIjMTQ1REZGIi8+PHBhdGggZD0iTTE0Ni4yODYgMCAwIDE1OC43Mmw0My44ODYgNTUuMjIzIDY1LjgyOC03NS45MjJ2MjI3LjY5M2g3My4xNDNWMTM4LjAyMWw2NS44MjkgNzUuOTIyIDQzLjg4NS01NS4yMjN6IiBmaWxsPSIjOThCREY3Ii8+PC9zdmc+"},77264:function(It,kt,ne){"use strict";var E=ne(59301),ve=Object.defineProperty,Pe=Object.getOwnPropertySymbols,Te=Object.prototype.hasOwnProperty,He=Object.prototype.propertyIsEnumerable,_e=(Fe,We,Xe)=>We in Fe?ve(Fe,We,{enumerable:!0,configurable:!0,writable:!0,value:Xe}):Fe[We]=Xe,ze=(Fe,We)=>{for(var Xe in We||(We={}))Te.call(We,Xe)&&_e(Fe,Xe,We[Xe]);if(Pe)for(var Xe of Pe(We))He.call(We,Xe)&&_e(Fe,Xe,We[Xe]);return Fe};const nt=Fe=>React.createElement("svg",ze({className:"shengxu_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:32,height:32},Fe),React.createElement("path",{d:"M365.714 73.143H1024v73.143H365.714zm0 292.571H1024v73.143H365.714zm0 292.572H1024v73.143H365.714zm0 292.571H1024V1024H365.714v-73.143zM248.686 803.182l-65.829 75.922V658.286h-73.143v220.818l-65.828-75.995L0 851.383 146.286 1024 292.57 851.53z",fill:"#98BDF7"}),React.createElement("path",{d:"M146.286 0 0 158.72l43.886 55.223 65.828-75.922v227.693h73.143V138.021l65.829 75.922 43.885-55.223z",fill:"#145DFF"}));kt.Z="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMzIiIGhlaWdodD0iMzIiPjxwYXRoIGQ9Ik0zNjUuNzE0IDczLjE0M0gxMDI0djczLjE0M0gzNjUuNzE0em0wIDI5Mi41NzFIMTAyNHY3My4xNDNIMzY1LjcxNHptMCAyOTIuNTcySDEwMjR2NzMuMTQzSDM2NS43MTR6bTAgMjkyLjU3MUgxMDI0VjEwMjRIMzY1LjcxNHYtNzMuMTQzek0yNDguNjg2IDgwMy4xODJsLTY1LjgyOSA3NS45MjJWNjU4LjI4NmgtNzMuMTQzdjIyMC44MThsLTY1LjgyOC03NS45OTVMMCA4NTEuMzgzIDE0Ni4yODYgMTAyNCAyOTIuNTcgODUxLjUzeiIgZmlsbD0iIzk4QkRGNyIvPjxwYXRoIGQ9Ik0xNDYuMjg2IDAgMCAxNTguNzJsNDMuODg2IDU1LjIyMyA2NS44MjgtNzUuOTIydjIyNy42OTNoNzMuMTQzVjEzOC4wMjFsNjUuODI5IDc1LjkyMiA0My44ODUtNTUuMjIzeiIgZmlsbD0iIzE0NURGRiIvPjwvc3ZnPg=="},84915:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(){if(typeof window.GGBApplet=="function"){console.warn("deployggb.js was loaded twice");return}var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var It={},kt="5.0",ne={},E=null,ve=!1,Pe=!1,Te=null,He=!1,_e=null,ze=null,nt=0;nt<arguments.length;nt++){var Fe=arguments[nt];if(Fe!==null)switch(typeof Fe){case"number":kt=Fe.toFixed(1);break;case"string":Fe.match(new RegExp("^[0-9]\\.[0-9]+$"))?kt=Fe:Te=Fe;break;case"object":typeof Fe.is3D!="undefined"?E=Fe:ne=Fe;break;case"boolean":ve=Fe,Pe=!0;break}}E===null&&(E={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},ne.material_id!==void 0&&!Pe&&(ve=!0)),Te!==null&&ne.id===void 0&&(ne.id=Te);var We="",Xe="",$e=!1,vt=null,Ye=null,Ne=null,Be=!1,be=null,Ie=null,Ke=null,at=null,fe=null;ne.height!==void 0&&(ne.height=Math.round(ne.height)),ne.width!==void 0&&(ne.width=Math.round(ne.width));var qe=function(Le){return parseFloat(Le)>4?parseFloat(Le):5};It.setHTML5Codebase=function(Le,Ue){ze=Le,pt(Le,Ue)},It.setJavaCodebase=It.setJavaCodebaseVersion=It.isCompiledInstalled=It.setPreCompiledScriptPath=It.setPreCompiledResourcePath=function(){},It.setHTML5CodebaseVersion=function(Le,Ue){var mt=parseFloat(Le);if(mt!==NaN&&mt<5){console.log("The GeoGebra HTML5 codebase version "+mt+" is deprecated. Using version latest instead.");return}_e=Le,me(Le,Ue)},It.getHTML5CodebaseVersion=function(){return Ye},It.getParameters=function(){return ne},It.setFontsCSSURL=function(Le){at=Le},It.setGiacJSURL=function(Le){},It.setJNLPFile=function(Le){We=Le},It.setJNLPBaseDir=function(Le){},It.inject=function(){function Le(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Ue="auto",mt=ne.id,Zt,Pt=!1,en=0;en<arguments.length;en++){var dt=arguments[en];typeof dt=="string"?(dt=dt.toLowerCase(),dt.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?Ue=dt:mt=arguments[en]):typeof dt=="boolean"?Pt=dt:dt instanceof HTMLElement&&(Zt=dt)}Lt();function Lt(){if(!He){setTimeout(Lt,200);return}Ue=xt(Ue);var pn=Zt||document.getElementById(mt);if(!pn){console.log("possibly bug on ajax loading? ");return}if(It.removeExistingApplet(pn,!1),ne.width===void 0&&pn.clientWidth&&(ne.width=pn.clientWidth),ne.height===void 0&&pn.clientHeight&&(ne.height=pn.clientHeight),!(ne.width&&ne.height)&&Ue==="html5"&&(delete ne.width,delete ne.height),vt=Ue,Ue==="screenshot")Ae(pn,ne);else{var he=!1;ne.hasOwnProperty("playButton")&&ne.playButton||ne.hasOwnProperty("clickToLoad")&&ne.clickToLoad?he=!0:ne.hasOwnProperty("playButtonAutoDecide")&&ne.playButtonAutoDecide&&(he=(!st()||Le())&&wt()),he?(vt="screenshot",Dt(pn,ne,Pt,Ue)):Ve(pn,ne,Pt)}}};function st(){try{return window.self!==window.top}catch(Le){return!0}}function wt(){return ne.hasOwnProperty("screenshotGenerator")&&ne.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}It.getViews=function(){return E},It.isJavaInstalled=function(){return!1};var ft=function(Le){var Ue=function(en){var dt=JSON.parse(en),Lt=function(le){return le.type=="G"||le.type=="E"},pn=dt.elements?dt.elements.filter(Lt)[0]:dt;if(!pn||!pn.url){mt();return}ne.fileName=pn.url,ct(pn.settings||{}),E.is3D=!0;var he="https://www.geogebra.org/images/";It.setPreviewImage(be||pn.previewUrl,he+"GeoGebra_loading.png",he+"applet_play.png"),Le()},mt=function(){ne.onError&&ne.onError(),bt("Error: Fetching material (id "+ne.material_id+") failed.",ne)},Zt=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",Pt="/materials/"+ne.material_id+"?scope=basic";Je("https://"+Zt+"/api/proxy.php?path="+encodeURIComponent(Pt),Ue,mt)};function ct(Le){var Ue=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(mt){Le[mt]=!!Le[mt]}),Ue.forEach(function(mt){ne[mt]===void 0&&Le[mt]!==void 0&&(ne[mt]=Le[mt])}),ne.showToolBarHelp===void 0&&(ne.showToolBarHelp=ne.showToolBar)}function Je(Le,Ue,mt){var Zt=new XMLHttpRequest;Zt.open("GET",Le),Zt.onload=function(){Ue(Zt.responseText)},Zt.onerror=mt,Zt.send()}It.isHTML5Installed=function(){return!0},It.getLoadedAppletType=function(){return vt},It.setPreviewImage=function(Le,Ue,mt){be=Le,Ie=Ue,Ke=mt},It.removeExistingApplet=function(Le,Ue){var mt;typeof Le=="string"&&(Le=document.getElementById(Le)),vt=null;var Zt=null;for(mt=0;mt<Le.childNodes.length;mt++){var Pt=Le.childNodes[mt],en=Pt.className;en==="applet_screenshot"?Ue?(Pt.style.display="block",vt="screenshot"):Pt.style.display="none":en!=="applet_scaler prerender"&&(Le.removeChild(Pt),Zt=en&&en.indexOf("appletParameters")!=-1?Pt.id:null,mt--)}var dt=ne.id!==void 0?ne.id:Zt,Lt=window[dt];Lt&&typeof Lt.getBase64=="function"&&(Lt.remove(),window[dt]=null)},It.refreshHitPoints=function(){if(qe(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var Le=It.getAppletObject();return Le&&typeof Le.recalculateEnvironments=="function"?(Le.recalculateEnvironments(),!0):!1},It.startAnimation=function(){var Le=It.getAppletObject();return Le&&typeof Le.startAnimation=="function"?(Le.startAnimation(),!0):!1},It.stopAnimation=function(){var Le=It.getAppletObject();return Le&&typeof Le.stopAnimation=="function"?(Le.stopAnimation(),!0):!1},It.getAppletObject=function(){var Le=ne.id!==void 0?ne.id:"ggbApplet";return window[Le]},It.resize=function(){};var ut=function(Le,Ue,mt){var Zt=document.createElement("param");Zt.setAttribute("name",Ue),Zt.setAttribute("value",mt),Le.appendChild(Zt)},Se=function(Le){return Le&&Le!=="false"},Ve=function(Le,Ue,mt){qe(Ye)<=4.2&&(mt=!0);var Zt=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==Ye||ggbHTML5LoadedCodebaseIsWebSimple&&!Be)&&(Zt=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Pt=document.createElement("div");Pt.classList.add("appletParameters","notranslate");var en=Ue.width,dt=Ue.height;if(Ue.disableAutoScale=Ue.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Ue.disableAutoScale,Ue.width!==void 0)if(qe(Ye)<=4.4)Se(Ue.showToolBar)&&(Ue.height-=7),Se(Ue.showAlgebraInput)&&(Ue.height-=37),Ue.width<605&&Se(Ue.showToolBar)&&(Ue.width=605,en=605);else{var Lt=100;(Se(Ue.showToolBar)||Se(Ue.showMenuBar))&&(Ue.hasOwnProperty("customToolBar")&&(Ue.customToolbar=Ue.customToolBar),Lt=Se(Ue.showMenuBar)?245:155),en<Lt&&(Ue.width=Lt,en=Lt)}Pt.style.border="none",Pt.style.display="inline-block";for(var pn in Ue)Ue.hasOwnProperty(pn)&&pn!=="appletOnLoad"&&Pt.setAttribute("data-param-"+pn,Ue[pn]);at&&Pt.setAttribute("data-param-fontscssurl",at),It.resize=function(){GGBAppletUtils.responsiveResize(Le,Ue)},window.addEventListener("resize",function(Fn){It.resize()});var he=typeof Ue.appletOnLoad=="function"?Ue.appletOnLoad:function(){};if(!mt&&Ue.width!==void 0){Ue.hasOwnProperty("showSplash")||Pt.setAttribute("data-param-showSplash","false");var le=Le.querySelector(".applet_scaler.prerender"),ae=le!==null;if(ae)var pe=le.querySelector(".ggb_preview");else{var pe=Qe(en,dt,Ue.borderColor,!1);le=document.createElement("div"),le.className="applet_scaler",le.style.position="relative",le.style.display="block",le.style.width=en+"px",le.style.height=dt+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(le,"66%"),qe(Ye)>=5?(Ue.appletOnLoad=function(Fn){var or=Le.querySelector(".ggb_preview");or&&or.parentNode.removeChild(or),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(le),window.GGBT_wsf_view&&$(window).trigger("resize"),he(Fn)},ae||le.appendChild(pe)):Pt.appendChild(pe),le.appendChild(Pt),ae||Le.appendChild(le),setTimeout(function(){It.resize()},1)}else{var ye=document.createElement("div");ye.className="applet_scaler",ye.style.position="relative",ye.style.display="block",ye.appendChild(Pt),Le.appendChild(ye),Ue.appletOnLoad=function(Fn){It.resize(),he(Fn)}}function se(Fn,or){or&&typeof or.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(Fn,or.appletOnLoad):renderGGBElement(Fn),bt("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",or)}function ot(Fn,or){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:Fn,params:or}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(ra){se(ra.article,ra.params)}),html5AppletsToProcess=null)},qe(Ye)<5&&(Fn.className+=" geogebraweb")):se(Fn,or)}if(Zt){scriptLoadStarted=!0;for(var Xt=0;Xt<Pt.childNodes.length;Xt++){var zt=Pt.childNodes[Xt].tagName;zt==="TABLE"&&(Pt.removeChild(Pt.childNodes[Xt]),Xt--)}if(ggbHTML5LoadedScript!==null){var on=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');on!=null&&on.parentNode.removeChild(on)}var Kt=document.createElement("script"),Yn=function(){ot(Pt,Ue)};Kt.src=Xe+Ne,ggbHTML5LoadedCodebaseIsWebSimple=Be,ggbHTML5LoadedCodebaseVersion=Ye,ggbHTML5LoadedScript=Kt.src,bt("GeoGebra HTML5 codebase loaded: '"+Xe+"'.",Ue),!ze&&(!_e||_e=="5.0")?(Be?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),Yn()):Xe.requirejs?__webpack_require__.e(4510).then(function(){var Fn=[__webpack_require__(4510)];Yn.apply(null,Fn)}.bind(this)).catch(__webpack_require__.oe):(Kt.onload=Yn,Le.appendChild(Kt))}else ot(Pt,Ue);Ue.height=dt,Ue.width=en},Ae=function(Le,Ue,mt){var Zt=Qe(Ue.width,Ue.height,Ue.borderColor,mt),Pt=document.createElement("div");Pt.style.position="relative",Pt.style.display="block",Pt.style.width=Ue.width+"px",Pt.style.height=Ue.height+"px",Pt.className="applet_screenshot applet_scaler"+(mt?" applet_screenshot_play":""),Pt.appendChild(Zt);var en=GGBAppletUtils.getScale(Ue,Le,mt);mt?(Le.appendChild(lt()),window.GGBT_wsf_view||(Le.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Pt,"66%"),Le.appendChild(Pt),en!==1&&!isNaN(en)&&(GGBAppletUtils.scaleElement(Pt,en),Pt.style.width=Ue.width+"px",Pt.style.height=Ue.height+"px",Pt.parentNode.style.width=Ue.width*en+"px",Pt.parentNode.style.height=Ue.height*en+"px"),It.resize=function(){tt(Le,Zt,Pt,mt)},window.addEventListener("resize",function(dt){It.resize()}),It.resize()};function tt(Le,Ue,mt,Zt){if(Le.contains(Ue)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Le.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(Le)}var Pt=GGBAppletUtils.getScale(ne,Le,Zt);mt.parentNode!==null&&(!isNaN(Pt)&&Pt!==1?(GGBAppletUtils.scaleElement(mt,Pt),mt.parentNode.style.width=ne.width*Pt+"px",mt.parentNode.style.height=ne.height*Pt+"px"):(GGBAppletUtils.scaleElement(mt,1),mt.parentNode.style.width=ne.width+"px",mt.parentNode.style.height=ne.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(Le),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}It.onExitFullscreen=function(Le,Ue){Ue.appendChild(Le)};var Dt=function(Le,Ue,mt,Zt){Ae(Le,Ue,!0);for(var Pt=function(){var Lt=[];for(dt=0;dt<Le.childNodes.length;dt++)Lt.push(Le.childNodes[dt]);if(window.GGBT_wsf_view){var pn=window.GGBT_wsf_view.renderFullScreen(Le,Ue.id),he=document.getElementById("fullscreencontainer"),le=jQuery(Le).find(".fullscreencontent");le.length>0?(pn.remove(),le.attr("id","fullscreencontent").show(),jQuery(he).append(le),window.dispatchEvent(new Event("resize"))):Ve(pn,Ue,!1),window.GGBT_wsf_view.launchFullScreen(he)}else vt=Zt,Ve(Le,Ue,!1);if(!window.GGBT_wsf_view)for(dt=0;dt<Lt.length;dt++)Le.removeChild(Lt[dt])},en=Le.getElementsByClassName("ggb_preview_play"),dt=0;dt<en.length;dt++)en[dt].addEventListener("click",Pt,!1),en[dt].addEventListener("ontouchstart",Pt,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(Le),wt()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},lt=function(){var Le=document.createElement("div");if(Le.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var Ue='.icon-applet-play { width: 100%; height: 100%;box-sizing: border-box;position: absolute;z-index: 1001;cursor: pointer;border-width: 0px; background-color: transparent;background-repeat: no-repeat;left: 0;top: 0;background-position: center center; background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet.png");}.icon-applet-play:hover {background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet-hover.png");}',mt=document.createElement("style");mt.styleSheet?mt.styleSheet.cssText=Ue:mt.appendChild(document.createTextNode(Ue)),document.getElementsByTagName("head")[0].appendChild(mt)}return Le},Qe=function(Le,Ue,mt,Zt){var Pt=document.createElement("div");Pt.className="ggb_preview",Pt.style.position="absolute",Pt.style.zIndex="90",Pt.style.width=Le-2+"px",Pt.style.height=Ue-2+"px",Pt.style.top="0px",Pt.style.left="0px",Pt.style.overflow="hidden",Pt.style.backgroundColor="white";var en="lightgrey";mt!==void 0&&(mt==="none"?en="transparent":en=mt),Pt.style.border="1px solid "+en;var dt=document.createElement("img");if(dt.style.position="relative",dt.style.zIndex="1000",dt.style.top="-1px",dt.style.left="-1px",be!==null&&dt.setAttribute("src",be),dt.style.opacity=.7,Ie!==null){var Lt,pn,he;if(!Zt){Lt=document.createElement("img"),Lt.style.position="absolute",Lt.style.zIndex="1001",Lt.style.opacity=1,dt.style.opacity=.3,pn=360,pn>Le/4*3&&(pn=Le/4*3),he=pn/5.8,Lt.setAttribute("src",Ie),Lt.setAttribute("width",pn),Lt.setAttribute("height",he);var le=(Le-pn)/2,ae=(Ue-he)/2;Lt.style.left=le+"px",Lt.style.top=ae+"px",Pt.appendChild(Lt)}}return Pt.appendChild(dt),Pt},xt=function(Le){return Le=Le.toLowerCase(),Le==="html5"||Le==="screenshot"?Le:"html5"},Re=["web","webSimple","web3d","tablet","tablet3d","phone"],me=function(Le,Ue){if(Ye=Le,Ue){pt(Ye,!0);return}var mt=!ve;if(mt){var Zt=qe(Ye);!isNaN(Zt)&&Zt<4.4&&(mt=!1)}var Pt,en;window.location.protocol.substr(0,4)==="http"?Pt=window.location.protocol:Pt="http:";var dt=Ye.indexOf("//");dt>0?en=Ye:dt===0?en=Pt+Ye:en="https://www.geogebra.org/apps/5.2.814.0/";for(var Lt in Re)if(Ye.slice(Re[Lt].length*-1)===Re[Lt]||Ye.slice((Re[Lt].length+1)*-1)===Re[Lt]+"/"){pt(en,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&mt&&!E.is3D&&!E.AV&&!E.SV&&!E.CV&&!E.EV2&&!E.CP&&!E.PC&&!E.DA&&!E.FI&&!E.PV&&!Se(ne.showToolBar)&&!Se(ne.showMenuBar)&&!Se(ne.showAlgebraInput)&&!Se(ne.enableRightClick)&&(!ne.appName||ne.appName=="classic")?en+="webSimple/":en+="web3d/",pt(en,!1)},pt=function(Le,Ue){if(Le.requirejs){Xe=Le;return}Le.slice(-1)!=="/"&&(Le+="/"),Xe=Le,Ue===null&&(Ue=Le.indexOf("http")===-1),$e=Ue,Ne="web.nocache.js",Be=!1;var mt=Xe.split("/");mt.length>1&&(!Ue&&mt[mt.length-2]==="webSimple"?(Ne="webSimple.nocache.js",Be=!0):Re.indexOf(mt[mt.length-2])>=0&&(Ne=mt[mt.length-2]+".nocache.js")),mt=Le.split("/"),Ye=mt[mt.length-3],Ye.substr(0,4)==="test"?Ye=Ye.substr(4,1)+"."+Ye.substr(5,1):(Ye.substr(0,3)==="war"||Ye.substr(0,4)==="beta")&&(Ye="5.0");var Zt=parseFloat(Ye);Zt!==NaN&&Zt<5&&Le.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+Zt+" is deprecated. Using version latest instead."),me("5.0",Ue))},bt=function(Le,Ue){window.console&&window.console.log&&(!Ue||typeof Ue.showLogging=="undefined"||Ue.showLogging&&Ue.showLogging!=="false")&&console.log(Le)};ne.material_id!==void 0?ft(it):it();function it(){var Le=kt;_e!==null?Le=_e:parseFloat(Le)<5&&(Le="5.0"),me(Le,!1),ze!==null&&pt(ze,$e),He=!0}return It},GGBAppletUtils=function(){"use strict";function It(){return window.GGBT_wsf_edit!==void 0}function kt(He,_e){_e!=1?(He.style.transformOrigin="0% 0% 0px",He.style.webkitTransformOrigin="0% 0% 0px",He.style.transform="scale("+_e+","+_e+")",He.style.webkitTransform="scale("+_e+","+_e+")",He.style.maxWidth="initial",He.querySelector(".ggb_preview")!==null&&(He.querySelector(".ggb_preview").style.maxWidth="initial"),He.querySelectorAll(".ggb_preview img")[0]!==void 0&&(He.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),He.querySelectorAll(".ggb_preview img")[1]!==void 0&&(He.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(He.style.transform="none",He.style.webkitTransform="none")}function ne(He,_e,ze,nt,Fe,We){var Xe=null;if(We!=null&&We!="")for(var $e=He.parentNode;$e!=null;)if((" "+$e.className+" ").indexOf(" "+We+" ")>-1){Xe=$e;break}else $e=$e.parentNode;var vt=0,Ye=0,Ne=0,Be=0,be=0,Ie=0,Ke=0;if(Xe)vt=Xe.offsetWidth,Ye=Math.max(nt?Xe.offsetWidth:0,Xe.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(vt=Math.min(window.innerWidth,document.documentElement.clientWidth),Ye=Math.min(window.innerHeight,document.documentElement.clientHeight),Ne=vt):(vt=window.innerWidth,Ye=window.innerHeight,Ne=window.innerWidth),He){var at=He.getBoundingClientRect();at.left>0&&at.left<=vt&&(Fe===void 0||!Fe)&&(document.dir==="rtl"?(be=vt-at.width-at.left,Ie=Ne<=480?10:30):(Ie=at.left,be=Ne<=480?10:30),Be=Ie+be)}if(He&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var fe=He.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Be=40,Ke=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Be=0,Ke=40)}}return He&&((ze===void 0||!ze)&&_e>0&&_e+Be<vt?vt=_e:vt-=Be,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(ze===void 0||!ze)&&(Ye-=Ke)),{width:vt,height:Ye}}function E(He,_e,ze,nt,Fe){if(He.isScreenshoGenerator)return 1;var We=nt!==void 0&&nt,Xe=He.noScaleMargin!=null&&He.noScaleMargin,$e=function(fe){return fe&&fe!=="false"},vt=$e(He.autoHeight),Ye=ne(_e,He.width,ze,vt,We&&window.GGBT_wsf_view||Xe,Fe),Ne=parseInt(Ye.width),Be=He.width,be=He.height;if(Be===void 0){var Ie=_e.querySelector(".appletParameters");Ie&&(Be=Ie.offsetWidth,be=Ie.offsetHeight)}var Ke=Ne/Be,at=We?1:Ye.height/be;return ze!==void 0&&!ze&&(Ke=Math.min(1,Ke),at=Math.min(1,at)),Math.min(Ke,at)}function ve(He,_e,ze){var nt=1,Fe,We=!1;if(He.hasOwnProperty("allowUpscale")&&(We=He.allowUpscale),He.hasOwnProperty("scale")&&(nt=parseFloat(He.scale),(isNaN(nt)||nt===null||nt===0)&&(nt=1),nt>1&&(We=!0)),_e&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(We=!0),!(He.hasOwnProperty("disableAutoScale")&&He.disableAutoScale))Fe=E(He,_e,We,ze,He.scaleContainerClass);else return nt;return We&&(!He.hasOwnProperty("scale")||nt===1)?Fe:Math.min(nt,Fe)}function Pe(He){var _e=Math.min(window.innerWidth,document.documentElement.clientWidth),ze=Math.min(window.innerHeight,document.documentElement.clientHeight),nt=He.getBoundingClientRect(),Fe=(_e-nt.width)/2,We=(ze-nt.height)/2;We<0&&(We=0),He.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Fe<40?He.style.left="40px":He.style.left=Fe+"px",He.style.top=We+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(We<40?He.style.top="40px":He.style.top=We+"px",He.style.left=Fe+"px")}function Te(He,_e){var ze=He.querySelector(".appletParameters");if(ze){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(_e.id!==ze.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(He)}if(ze.parentElement&&/fullscreen/.test(ze.parentElement.className))return;var nt=ve(_e,He);It()&&ze.setAttribute("data-param-scale",nt);for(var Fe=null,We=0;We<He.childNodes.length;We++)if(He.childNodes[We].className!==void 0&&He.childNodes[We].className.match(/^applet_scaler/)){Fe=He.childNodes[We];break}if(Fe!==null&&Fe.querySelector(".noscale")!==null)return;var Xe=_e.id!==void 0?_e.id:"ggbApplet",$e=window[Xe];($e==null||!$e.recalculateEnvironments)&&Fe!==null&&!Fe.className.match(/fullscreen/)&&(Fe.parentNode.style.transform="",!isNaN(nt)&&nt!==1?(Fe.parentNode.style.width=_e.width*nt+"px",Fe.parentNode.style.height=_e.height*nt+"px",kt(Fe,nt)):(kt(Fe,1),Fe.parentNode.style.width=_e.width+"px",Fe.parentNode.style.height=_e.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&Pe(He),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(ze).parents(".content-added-content"))}}return{responsiveResize:Te,isFlexibleWorksheetEditor:It,positionCenter:Pe,getScale:ve,scaleElement:kt}}();__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_RESULT__=function(){return GGBApplet}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),__WEBPACK_AMD_DEFINE_RESULT__!==void 0&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__),GGBAppletUtils.makeModule=function(name,permutation){function webModule(){var H="bootstrap",I="begin",J="gwt.codesvr."+name+"=",K="gwt.codesvr=",L=name,M="startup",N="DUMMY",O=0,P=1,Q="iframe",R="position:absolute; width:0; height:0; border:none; left: -1000px;",S=" top: -1000px;",T="Chrome",U="CSS1Compat",V="<!doctype html>",W="",X="<html><head></head><body></body></html>",Y="undefined",Z="readystatechange",$=10,_="script",ab="javascript",bb="Failed to load ",cb="moduleStartup",db="scriptTagAdded",eb="moduleRequested",fb="meta",gb="name",hb=name+"::",ib="::",jb="gwt:property",kb="content",lb="=",mb="gwt:onPropertyErrorFn",nb='Bad handler "',ob='" for "gwt:onPropertyErrorFn"',pb="gwt:onLoadErrorFn",qb='" for "gwt:onLoadErrorFn"',rb="#",sb="?",tb="/",ub="img",vb="clear.cache.gif",wb="baseUrl",xb=name+".nocache.js",yb="base",zb="//",Ab="selectingPermutation",Bb=name+".devmode.js",Cb=permutation,Db=":",Eb=".cache.js",Fb="loadExternalRefs",Gb="end",n=window,o=document;function p(){var It=n.location.search;return It.indexOf(J)!=-1||It.indexOf(K)!=-1}function q(It,kt){}webModule.__sendStats=q,webModule.__moduleName=L,webModule.__errFn=null,webModule.__moduleBase=N,webModule.__softPermutationId=O,webModule.__computePropValue=null,webModule.__getPropMap=null,webModule.__installRunAsyncCode=function(){},webModule.__gwtStartLoadingFragment=function(){return null},webModule.__gwt_isKnownPropertyValue=function(){return!1},webModule.__gwt_getMetaProperty=function(){return null};var r=null,s=n.__gwt_activeModules=n.__gwt_activeModules||{};s[L]={moduleName:L},webModule.__moduleStartupDone=function(It){var kt=s[L].bindings;s[L].bindings=function(){for(var ne=kt?kt():{},E=It[webModule.__softPermutationId],ve=O;ve<E.length;ve++){var Pe=E[ve];ne[Pe[O]]=Pe[P]}return ne}};var t;function u(){return v(),t}function v(){if(!t){var It=o.createElement(Q);if(It.id=L,It.style.cssText=R+S,It.tabIndex=-1,o.body.appendChild(It),t=It.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var kt=document.compatMode==U?V:W;t.write(kt+X),t.close()}}}function w(It){function kt(E){function ve(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var Pe=ve();if(Pe){E();return}function Te(){if(!Pe){if(!ve())return;Pe=!0,E(),o.removeEventListener&&o.removeEventListener(Z,Te,!1),He&&clearInterval(He)}}o.addEventListener&&o.addEventListener(Z,Te,!1);var He=setInterval(function(){Te()},$)}function ne(E){var ve=u(),Pe=ve.body,Te=ve.createElement(_);Te.language=ab,Te.crossOrigin=W,Te.src=E,webModule.__errFn&&(Te.onerror=function(){webModule.__errFn(L,new Error(bb+E))}),Pe.appendChild(Te)}kt(function(){ne(It)})}webModule.__startLoadingFragment=function(It){return C(It)},webModule.__installRunAsyncCode=function(It){var kt=u(),ne=kt.body,E=kt.createElement(_);E.language=ab,E.text=It,ne.appendChild(E),ne.removeChild(E)};function A(){for(var c={},d,e,f=o.getElementsByTagName(fb),g=O,h=f.length;g<h;++g){var i=f[g],j=i.getAttribute(gb),k;if(j){if(j=j.replace(hb,W),j.indexOf(ib)>=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch(It){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(It){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(It){var kt=c[It];return kt==null?null:kt},r=d,webModule.__errFn=e}function B(){function It(He){var _e=He.lastIndexOf(rb);_e==-1&&(_e=He.length);var ze=He.indexOf(sb);ze==-1&&(ze=He.length);var nt=He.lastIndexOf(tb,Math.min(ze,_e));return nt>=O?He.substring(O,nt+P):W}function kt(He){if(!He.match(/^\w+:\/\//)){var _e=o.createElement(ub);_e.src=He+vb,He=It(_e.src)}return He}function ne(){var He=__gwt_getMetaProperty(wb);return He!=null?He:W}function E(){for(var He=o.getElementsByTagName(_),_e=O;_e<He.length;++_e)if(He[_e].src.indexOf(xb)!=-1)return It(He[_e].src);return W}function ve(){var He=o.getElementsByTagName(yb);return He.length>O?He[He.length-P].href:W}function Pe(){var He=o.location;return He.href==He.protocol+zb+He.host+He.pathname+He.search+He.hash}var Te=ne();return Te==W&&(Te=E()),Te==W&&(Te=ve()),Te==W&&Pe()&&(Te=It(o.location.href)),Te=kt(Te),Te}function C(It){return It.match(/^\//)||It.match(/^[a-zA-Z]+:\/\//)?It:webModule.__moduleBase+It}function D(){var It=[],kt=O,ne=[],E=[];function ve(He){var _e=E[He](),ze=ne[He];if(_e in ze)return _e;var nt=[];for(var Fe in ze)nt[ze[Fe]]=Fe;throw r&&r(He,nt,_e),null}if(__gwt_isKnownPropertyValue=function(He,_e){return _e in ne[He]},webModule.__getPropMap=function(){var He={};for(var _e in ne)ne.hasOwnProperty(_e)&&(He[_e]=ve(_e));return He},webModule.__computePropValue=ve,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var Pe;try{Pe=Cb;var Te=Pe.indexOf(Db);Te!=-1&&(kt=parseInt(Pe.substring(Te+P),$),Pe=Pe.substring(O,Te))}catch(He){}return webModule.__softPermutationId=kt,C(Pe+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase="/js/mathematicalGraphics/"+name+"/",s[L].moduleBase=webModule.__moduleBase;var G=D();return F(),w(G),!0}return webModule},typeof window.web3d!="function"&&(window.web3d=GGBAppletUtils.makeModule("web3d","A18F540516513B1292CA7CEF2F6AFC7E")),typeof window.webSimple!="function"&&(window.webSimple=GGBAppletUtils.makeModule("webSimple","96B09BF1B436BF53F0DF54116700F16A")),window.GGBApplet=GGBApplet})()},23216:function(It,kt,ne){"use strict";ne.d(kt,{Ax:function(){return Te},Ds:function(){return He},KI:function(){return ze},SI:function(){return Pe},f1:function(){return ve}});var E=ne(14185);function ve(nt){let Fe=!0;if(nt.length>0){for(let We=0;We<nt.length;We++)if(nt[We].compile_success==0||!nt[We].compile_success){Fe=!1;break}}else Fe=!1;return Fe}function Pe(nt,Fe=""){let We=[];for(let Xe=0;Xe<nt.length;Xe++){let $e=nt[Xe],vt=Fe?`${Fe}/${$e.name}`:`${$e.name}`;We.push({title:$e.name,type:$e.type,isLeaf:$e.type!=="tree",key:vt})}return We}function Te(nt,Fe,We){for(let Xe=0;Xe<nt.length;Xe++){let $e=nt[Xe];if($e.key===Fe){$e.children=We;break}$e.children&&Te($e.children,Fe,We)}return nt}function He(nt,Fe,We){let Xe;return function(){let $e=this,vt=arguments,Ye=function(){Xe=null,We||nt.apply($e,vt)},Ne=We&&!Xe;clearTimeout(Xe),Xe=setTimeout(Ye,Fe),Ne&&nt.apply($e,vt)}}const _e=!0,ze=E.Z.API_SERVER},42075:function(It,kt,ne){"use strict";ne.d(kt,{Z:function(){return Ye}});var E=ne(7939),ve=ne(59301),Pe=Object.defineProperty,Te=Object.defineProperties,He=Object.getOwnPropertyDescriptors,_e=Object.getOwnPropertySymbols,ze=Object.prototype.hasOwnProperty,nt=Object.prototype.propertyIsEnumerable,Fe=(Ne,Be,be)=>Be in Ne?Pe(Ne,Be,{enumerable:!0,configurable:!0,writable:!0,value:be}):Ne[Be]=be,We=(Ne,Be)=>{for(var be in Be||(Be={}))ze.call(Be,be)&&Fe(Ne,be,Be[be]);if(_e)for(var be of _e(Be))nt.call(Be,be)&&Fe(Ne,be,Be[be]);return Ne},Xe=(Ne,Be)=>Te(Ne,He(Be)),$e=(Ne,Be)=>{var be={};for(var Ie in Ne)ze.call(Ne,Ie)&&Be.indexOf(Ie)<0&&(be[Ie]=Ne[Ie]);if(Ne!=null&&_e)for(var Ie of _e(Ne))Be.indexOf(Ie)<0&&nt.call(Ne,Ie)&&(be[Ie]=Ne[Ie]);return be},vt=(Ne,Be,be)=>new Promise((Ie,Ke)=>{var at=st=>{try{qe(be.next(st))}catch(wt){Ke(wt)}},fe=st=>{try{qe(be.throw(st))}catch(wt){Ke(wt)}},qe=st=>st.done?Ie(st.value):Promise.resolve(st.value).then(at,fe);qe((be=be.apply(Ne,Be)).next())});const Ye=Ne=>{var Be=Ne,{children:be}=Be,Ie=$e(Be,["children"]);const[Ke,at]=(0,ve.useState)(!1);return ve.createElement(E.ZP,Xe(We({},Ie),{loading:Ke,onClick:fe=>vt(void 0,null,function*(){try{at(!0),yield Ie.onClick(fe),at(!1)}catch(qe){console.error(qe),at(!1)}})}),be)}},74410:function(It,kt,ne){"use strict";var E=ne(86204),ve=ne.n(E),Pe=Object.defineProperty,Te=(nt,Fe,We)=>Fe in nt?Pe(nt,Fe,{enumerable:!0,configurable:!0,writable:!0,value:We}):nt[Fe]=We,He=(nt,Fe,We)=>Te(nt,typeof Fe!="symbol"?Fe+"":Fe,We),_e=(nt,Fe,We)=>new Promise((Xe,$e)=>{var vt=Be=>{try{Ne(We.next(Be))}catch(be){$e(be)}},Ye=Be=>{try{Ne(We.throw(Be))}catch(be){$e(be)}},Ne=Be=>Be.done?Xe(Be.value):Promise.resolve(Be.value).then(vt,Ye);Ne((We=We.apply(nt,Fe)).next())});class ze extends E.EventEmitter{constructor(Fe,We){super(),He(this,"url"),He(this,"body"),He(this,"fullContent",""),He(this,"controller",null),He(this,"buffer",""),this.url=Fe,this.body=We}startStream(){return _e(this,null,function*(){this.controller=new AbortController;const{signal:Fe}=this.controller;try{const We=yield fetch(this.url,{method:"POST",headers:{"Content-Type":"application/json; charset=utf-8"},credentials:"include",body:JSON.stringify(this.body),signal:Fe});if(!We.ok)throw new Error(`\u8BF7\u6C42\u5931\u8D25: ${We.status}`);const Xe=We.headers.get("content-type");if(!Xe)throw new Error("\u54CD\u5E94\u5934\u7F3A\u5C11 content-type");if(Xe.includes("application/json")){const Ye=yield We.json();this.emit("error",Ye);return}if(!Xe.includes("text/event-stream"))throw new Error("\u54CD\u5E94\u6570\u636E\u683C\u5F0F\u9519\u8BEF");const $e=We.body.getReader(),vt=new TextDecoder("utf-8");for(;;){const{done:Ye,value:Ne}=yield $e.read();if(Ye)break;const Be=vt.decode(Ne,{stream:!0});this.buffer+=Be;const be=this.buffer.split(`
`);this.buffer=be.pop()||"";for(const Ie of be)if(Ie.startsWith("data:")){const Ke=Ie.slice(5).trim();if(Ke==="[DONE]")break;try{const at=JSON.parse(Ke);at.data&&this.handleData(at.data)}catch(at){this.buffer=Ie+`
`+this.buffer,console.error("\u89E3\u6790 JSON \u5931\u8D25:",at)}}}this.emit("done",this.fullContent)}catch(We){We.name==="AbortError"?this.emit("cancelled",this.fullContent):this.emit("error",We.message)}})}handleData(Fe){Fe.content&&(this.fullContent+=Fe.content,this.emit("data",{chunk:Fe,full:this.fullContent}))}cancelRequest(){var Fe;(Fe=this.controller)==null||Fe.abort()}}kt.Z=ze},76593:function(It,kt,ne){"use strict";ne.d(kt,{Z:function(){return vt}});var E=ne(59301),ve=ne(36207),Pe=ne(77019),Te=ne(5269),He={smartWrp:"smartWrp___NjRcB"},_e=ne(34728),ze=ne(70467),nt=ne(42075),Fe=ne(59301),We=(Ye,Ne,Be)=>new Promise((be,Ie)=>{var Ke=qe=>{try{fe(Be.next(qe))}catch(st){Ie(st)}},at=qe=>{try{fe(Be.throw(qe))}catch(st){Ie(st)}},fe=qe=>qe.done?be(qe.value):Promise.resolve(qe.value).then(Ke,at);fe((Be=Be.apply(Ye,Ne)).next())});const Xe=`<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>\u5FEB\u901F\u6392\u5E8F\u6F14\u793A</title>
<style>
body {
font-family: Arial, sans-serif;
text-align: center;
margin: 20px;
}
.array-container {
display: flex;
justify-content: center;
align-items: flex-end;
height: 300px;
margin-top: 20px;
}
.bar {
width: 30px;
margin: 0 2px;
background-color: #4caf50;
color: white;
display: flex;
justify-content: center;
align-items: center;
border-radius: 5px;
transition: all 0.3s ease;
}
.bar.sorted {
background-color: #ff9800;
}
.bar.pivot {
background-color: #f44336;
}
</style>
</head>
<body>
<h1>\u5FEB\u901F\u6392\u5E8F\u7B97\u6CD5\u6F14\u793A</h1>
<button id="start-sort">\u5F00\u59CB\u6392\u5E8F</button>
<div class="array-container" id="array-container"></div>
<script>
const array = [34, 7, 23, 32, 5, 62]; // \u56FA\u5B9A\u6570\u7EC4
let bars = [];
// \u521D\u59CB\u5316\u6570\u7EC4\u663E\u793A
function initArrayDisplay() {
const container = document.getElementById('array-container');
container.innerHTML = '';
bars = array.map(value => {
const bar = document.createElement('div');
bar.className = 'bar';
bar.style.height = \`\${value * 5}px\`;
bar.textContent = value;
container.appendChild(bar);
return bar;
});
}
// \u9AD8\u4EAE\u67D0\u4E2A\u8303\u56F4\u5185\u7684\u67F1\u5B50
function highlightBars(indices, className) {
indices.forEach(index => bars[index].classList.add(className));
}
// \u79FB\u9664\u9AD8\u4EAE
function removeHighlightBars(indices, className) {
indices.forEach(index => bars[index].classList.remove(className));
}
// \u5FEB\u901F\u6392\u5E8F\u4E3B\u51FD\u6570
async function quickSort(arr, left = 0, right = arr.length - 1) {
if (left >= right) return;
const pivotIndex = await partition(arr, left, right);
await quickSort(arr, left, pivotIndex - 1);
await quickSort(arr, pivotIndex + 1, right);
}
// \u5206\u533A\u51FD\u6570
async function partition(arr, left, right) {
const pivot = arr[right];
let i = left - 1;
highlightBars([right], 'pivot'); // \u9AD8\u4EAE\u57FA\u51C6\u503C
for (let j = left; j < right; j++) {
highlightBars([j], 'sorted'); // \u9AD8\u4EAE\u5F53\u524D\u6BD4\u8F83\u5143\u7D20
await sleep(500);
if (arr[j] <= pivot) {
i++;
[arr[i], arr[j]] = [arr[j], arr[i]];
// \u66F4\u65B0\u67F1\u5B50\u9AD8\u5EA6
bars[i].style.height = \`\${arr[i] * 5}px\`;
bars[i].textContent = arr[i];
bars[j].style.height = \`\${arr[j] * 5}px\`;
bars[j].textContent = arr[j];
await sleep(500);
}
removeHighlightBars([j], 'sorted'); // \u79FB\u9664\u9AD8\u4EAE
}
// \u5C06\u57FA\u51C6\u503C\u653E\u5230\u6B63\u786E\u4F4D\u7F6E
[arr[i + 1], arr[right]] = [arr[right], arr[i + 1]];
bars[i + 1].style.height = \`\${arr[i + 1] * 5}px\`;
bars[i + 1].textContent = arr[i + 1];
bars[right].style.height = \`\${arr[right] * 5}px\`;
bars[right].textContent = arr[right];
removeHighlightBars([right], 'pivot'); // \u79FB\u9664\u57FA\u51C6\u503C\u9AD8\u4EAE
highlightBars([i + 1], 'sorted'); // \u9AD8\u4EAE\u6700\u7EC8\u4F4D\u7F6E
await sleep(500);
removeHighlightBars([i + 1], 'sorted');
return i + 1;
}
// \u5EF6\u8FDF\u51FD\u6570
function sleep(ms) {
return new Promise(resolve => setTimeout(resolve, ms));
}
// \u5F00\u59CB\u6392\u5E8F\u6309\u94AE\u70B9\u51FB\u4E8B\u4EF6
document.getElementById('start-sort').addEventListener('click', () => {
quickSort(array);
});
// \u521D\u59CB\u5316\u9875\u9762
initArrayDisplay();
<\/script>
</body>
</html>`;function $e({open:Ye=!0,onChange:Ne,defaultValue:Be,placement:be,width:Ie,height:Ke,extra:at,onDynamic:fe,onOpenChange:qe,showExtra:st=!0}){const wt=(0,E.useRef)(null),ft=(0,E.useRef)(null),[ct,Je]=(0,E.useState)(Be||""),[ut,Se]=(0,E.useState)(Be||""),[Ve,Ae]=(0,E.useState)(!!Ye),[tt,Dt]=(0,E.useState)(1),lt={selectOnLineNumbers:!0};(0,E.useEffect)(()=>{Ye&&(Je(Be),Se(Be),Ae(!0))},[Ye,Be]),(0,E.useEffect)(()=>{ct!==""&&(clearTimeout(ft.current),ft.current=setTimeout(()=>{const xt=document.createElement("iframe");if(xt.style.width="100%",xt.style.height="100%",xt.style.border="0",wt.current){wt.current.innerHTML="",wt.current.appendChild(xt);const Re=xt.contentDocument||xt.contentWindow.document;Re.open(),Re.write(ct),Re.close()}},1e3))},[Ye,ct]);const Qe=xt=>{Je(xt),Ne==null||Ne(xt,ut)};return Fe.createElement(ve.Z,{title:"\u667A\u80FD\u52A8\u6548",placement:"right",open:Ve,width:"100%",height:Ke||"100vh",rootClassName:He.smartWrp,destroyOnClose:!0,onClose:()=>{Ae(!1),qe==null||qe(ct)},extra:st&&Fe.createElement("div",null,Fe.createElement(ze.tp,{dataSource:[{name:"\u9884\u89C8",id:1},{name:"\u4EE3\u7801",id:2}],value:tt,onChange:xt=>Dt(xt)}),Fe.createElement(nt.Z,{type:"primary",className:"ml20",onClick:()=>We(this,null,function*(){yield fe(ct,()=>{Ae(!1)})})},"\u4FDD\u5B58\u81F3\u8BFE\u4EF6"))},Fe.createElement(Pe.Z,{className:"h100"},Fe.createElement(Te.Z,{flex:"1",style:{background:"#f6f7fb",borderRight:"#e8eaf1 1px solid",display:tt===1?"block":"none"}},Fe.createElement("div",{className:"h100",ref:wt})),Fe.createElement(Te.Z,{flex:"1",style:{display:tt===2?"block":"none"}},Fe.createElement(_e.ZP,{height:"90vh",value:Be,language:"html",theme:"vs",showMiniMap:!1,options:lt,onChange:Qe}))))}var vt=$e},8191:function(It,kt,ne){"use strict";ne.d(kt,{Z:function(){return Ue}});var E=ne(59301),ve=ne(24342),Pe=ne(66328),Te=ne(84821),He=ne(18369),_e=ne(56102),ze={answer:"answer___UngkO",imgWrap:"imgWrap___ORTRf",codeCopy:"codeCopy___re8vm",runCode:"runCode___MYs9m"},nt=ne(6767),Fe=ne(75786),We=ne(40797),Xe=ne(91378),$e=ne(15342),vt=ne.n($e),Ye=ne(19453),Ne=Object.defineProperty,Be=Object.defineProperties,be=Object.getOwnPropertyDescriptors,Ie=Object.getOwnPropertySymbols,Ke=Object.prototype.hasOwnProperty,at=Object.prototype.propertyIsEnumerable,fe=(mt,Zt,Pt)=>Zt in mt?Ne(mt,Zt,{enumerable:!0,configurable:!0,writable:!0,value:Pt}):mt[Zt]=Pt,qe=(mt,Zt)=>{for(var Pt in Zt||(Zt={}))Ke.call(Zt,Pt)&&fe(mt,Pt,Zt[Pt]);if(Ie)for(var Pt of Ie(Zt))at.call(Zt,Pt)&&fe(mt,Pt,Zt[Pt]);return mt},st=(mt,Zt)=>Be(mt,be(Zt));const wt={},ft=[];function ct(mt){const Zt=mt||wt;return function(Pt,en){(0,Ye.S4)(Pt,"element",function(dt,Lt){const pn=Array.isArray(dt.properties.className)?dt.properties.className:ft,he=pn.includes("language-math"),le=pn.includes("math-display"),ae=pn.includes("math-inline");let pe=le;if(!he&&!le&&!ae)return;let ye=Lt[Lt.length-1],se=dt;if(dt.tagName==="code"&&he&&ye&&ye.type==="element"&&ye.tagName==="pre"&&(se=ye,ye=Lt[Lt.length-2],pe=!0),!ye)return;const ot=(0,Xe.l)(se,{whitespace:"pre"});let Xt;try{const on=vt().renderToString(ot,st(qe({},Zt),{displayMode:pe,throwOnError:!0}));Xt=(0,We.N)(`<mathx data-text="${ot.replace(/"/g,"&quot;")}">
${on}
</mathx>`,{fragment:!0}).children}catch(on){const Kt=on;en.message("Could not render math with KaTeX",{ancestors:[...Lt,dt],cause:Kt,place:dt.position,ruleId:Kt.name.toLowerCase(),source:"rehype-katex"}),Xt=[{type:"element",tagName:"mathx",properties:{"data-text":ot},children:[{type:"element",tagName:"span",properties:{className:["katex-error"],style:"color:"+(Zt.errorColor||"#cc0000"),title:String(on)},children:[{type:"text",value:ot}]}]}]}const zt=ye.children.indexOf(se);return ye.children.splice(zt,1,...Xt),Ye.AM})}}var Je=ne(55468),ut=ne(3369),Se=ne(20570),Ve=ne(46214),Ae=ne(76593),tt=Object.defineProperty,Dt=Object.defineProperties,lt=Object.getOwnPropertyDescriptors,Qe=Object.getOwnPropertySymbols,xt=Object.prototype.hasOwnProperty,Re=Object.prototype.propertyIsEnumerable,me=(mt,Zt,Pt)=>Zt in mt?tt(mt,Zt,{enumerable:!0,configurable:!0,writable:!0,value:Pt}):mt[Zt]=Pt,pt=(mt,Zt)=>{for(var Pt in Zt||(Zt={}))xt.call(Zt,Pt)&&me(mt,Pt,Zt[Pt]);if(Qe)for(var Pt of Qe(Zt))Re.call(Zt,Pt)&&me(mt,Pt,Zt[Pt]);return mt},bt=(mt,Zt)=>Dt(mt,lt(Zt)),it=(mt,Zt)=>{var Pt={};for(var en in mt)xt.call(mt,en)&&Zt.indexOf(en)<0&&(Pt[en]=mt[en]);if(mt!=null&&Qe)for(var en of Qe(mt))Zt.indexOf(en)<0&&Re.call(mt,en)&&(Pt[en]=mt[en]);return Pt},Ue=({onFinish:mt,value:Zt,streamingStatus:Pt,cancelIndex:en,loadImage:dt,onDynamic:Lt,isHiddenHtml:pn})=>{const[he,le]=(0,E.useState)(""),[ae,pe]=(0,E.useState)({defaultValue:"",open:0,language:"",placement:"right",height:"100vh"}),[ye,se]=(0,E.useState)(0),[ot,Xt]=(0,E.useState)(!1),zt=Yn=>Yn,on=()=>{Xt(!0),mt==null||mt()};(0,E.useEffect)(()=>{const Fn=dt?`\u8FD9\u662F\u6839\u636E\u60A8\u7684\u63CF\u8FF0\u751F\u6210\u7684\u56FE\u7247\uFF1A
${Zt}`:Zt;if(!ot)if(dt||!Pt||en>0){le(Fn),se(Fn.length),(!Pt||en>0)&&!dt&&on();return}else if((Fn==null?void 0:Fn.length)<4)le(Fn),se(Fn.length);else if(ye<Fn.length){const or=Fn.length-ye,ra=setInterval(()=>{le(Fn.slice(0,ye+2)),se(ur=>ur+2)},or>10?Math.max(500/(or/2),20):50);return()=>clearInterval(ra)}else Pt||on()},[Zt,Pt,en,dt,ye]);const Kt=(0,E.useMemo)(()=>E.createElement("section",{className:`${ze.answer} fadeIn animated edu_md`},E.createElement(ve.UG,{remarkPlugins:[Je.Z,ut.Z,Se.Z],rehypePlugins:[ct,Te.Z],components:{code(Yn){var Fn=Yn,{node:or,inline:ra,className:ur,children:rr}=Fn,Xr=it(Fn,["node","inline","className","children"]);const Vr=/language-(\w+)/.exec(ur||""),xr=String(rr).trim();return ra||!Vr?E.createElement("code",pt({className:ur},Xr),rr):E.createElement("code",{className:ze.codeCopy,"data-text":`\`\`\`${Vr?Vr[1]:""}
${rr}
\`\`\``},!pn&&E.createElement(_e.CopyToClipboard,{text:xr,onCopy:()=>nt.ZP.success({content:"\u590D\u5236\u6210\u529F",key:"copy"})},E.createElement("button",null,"\u590D\u5236")),!pn&&Vr[1]==="html"&&ot&&E.createElement("button",{className:ze.runCode,onClick:()=>{pe(pt({},bt(pt({},ae),{open:++ae.open,defaultValue:xr,language:Vr[1]})))}},"\u8FD0\u884CHTML"),E.createElement(Pe.Z,pt({wrapLongLines:!0,style:He.Z,language:Vr[1],PreTag:"div",showLineNumbers:!0,lineNumberStyle:{minWidth:"40px"}},Xr),xr))},img({node:Yn}){var Fn;const or=(Fn=Yn.properties)==null?void 0:Fn.src;return E.createElement(Fe.Z,{src:or,width:320,"data-text":or,onLoad:()=>dt&&setTimeout(()=>on(),500)})},a:Yn=>{var Fn=Yn,{node:or}=Fn,ra=it(Fn,["node"]);return E.createElement("a",bt(pt({},ra),{target:"_blank",rel:"noopener noreferrer"}))}}},ot?he:`${he}__`)),[he,ot]);return E.createElement(E.Fragment,null,E.createElement(Ae.Z,{defaultValue:ae.defaultValue,open:ae.open,language:ae.language,height:ae.height,onChange:(Yn,Fn)=>{le(he.replaceAll(Fn,Yn))},onDynamic:Lt}),Kt)}},64466:function(It,kt,ne){"use strict";var E=ne(59301),ve=Object.defineProperty,Pe=Object.getOwnPropertySymbols,Te=Object.prototype.hasOwnProperty,He=Object.prototype.propertyIsEnumerable,_e=($e,vt,Ye)=>vt in $e?ve($e,vt,{enumerable:!0,configurable:!0,writable:!0,value:Ye}):$e[vt]=Ye,ze=($e,vt)=>{for(var Ye in vt||(vt={}))Te.call(vt,Ye)&&_e($e,Ye,vt[Ye]);if(Pe)for(var Ye of Pe(vt))He.call(vt,Ye)&&_e($e,Ye,vt[Ye]);return $e},nt=($e,vt)=>{var Ye={};for(var Ne in $e)Te.call($e,Ne)&&vt.indexOf(Ne)<0&&(Ye[Ne]=$e[Ne]);if($e!=null&&Pe)for(var Ne of Pe($e))vt.indexOf(Ne)<0&&He.call($e,Ne)&&(Ye[Ne]=$e[Ne]);return Ye};const Fe=ne(20441),We={};Fe.keys().forEach($e=>{const vt=$e.replace("./","").replace(".svg","");We[vt]=Fe($e)});const Xe=$e=>{var vt=$e,{filename:Ye}=vt,Ne=nt(vt,["filename"]),Be;const be=((Be=Ye==null?void 0:Ye.split(".").pop())==null?void 0:Be.toLowerCase())||"unknown",Ie=We[be]||We.default;return E.createElement("img",ze({src:Ie,alt:be},Ne))};kt.Z=Xe},10345:function(It,kt,ne){"use strict";ne.d(kt,{Z:function(){return vt}});var E=ne(59301),ve={flex_box_center:"flex_box_center___kyfCX",flex_space_between:"flex_space_between___GHTzD",flex_box_vertical_center:"flex_box_vertical_center___FdgNd",flex_box_center_end:"flex_box_center_end___LMVYD",flex_box_column:"flex_box_column___Yb2bC",f_l_c:"f_l_c___nwLBO",officediv:"officediv___KkKIB",preclass:"preclass___SCKdC"},Pe=ne(37285),Te=ne(64466),He=ne(25399),_e=ne(37639),ze=ne(86974),nt=ne(49317),Fe=(Ye,Ne,Be)=>new Promise((be,Ie)=>{var Ke=qe=>{try{fe(Be.next(qe))}catch(st){Ie(st)}},at=qe=>{try{fe(Be.throw(qe))}catch(st){Ie(st)}},fe=qe=>qe.done?be(qe.value):Promise.resolve(qe.value).then(Ke,at);fe((Be=Be.apply(Ye,Ne)).next())}),Xe=({item:Ye})=>{var Ne,Be,be,Ie,Ke;const[at,fe]=(0,E.useState)(!1),[qe,st]=(0,E.useState)({}),wt=(0,E.useRef)(),[ft,ct]=(0,E.useState)(!1);let Je=[{name:"subject",icon:E.createElement("i",{style:{width:16,height:16,marginRight:5,color:"#2054C9"},className:"iconfont icon-kecheng1"})},{name:"shixun",icon:E.createElement("i",{style:{width:16,height:16,marginRight:5,color:"#2054C9"},className:"iconfont icon-shixunti2"})},{name:"challenge",icon:E.createElement("i",{style:{width:16,height:16,marginRight:5,color:"#2054C9"},className:"iconfont icon-shixunti2"})},{name:"document",icon:E.createElement(Te.Z,{filename:Ye==null?void 0:Ye.name,style:{width:16,height:16,marginRight:5}})}];return E.createElement("div",{className:ve.f_l_c},E.createElement(He.Z,{title:Ye==null?void 0:Ye.name},E.createElement(_e.Z,{placement:"top",content:E.createElement("div",null,E.createElement(Pe.Z,null),E.createElement("pre",{className:ve.preclass,style:{maxWidth:600,maxHeight:400}},(Ye==null?void 0:Ye.type)==="document"&&((Ne=Ye==null?void 0:Ye.contents)==null?void 0:Ne.toString()),(Ye==null?void 0:Ye.type)!=="document"&&E.createElement("a",{target:"_blank",href:(Be=Ye==null?void 0:Ye.contents)==null?void 0:Be.toString()},(be=Ye==null?void 0:Ye.contents)==null?void 0:be.toString()))),title:E.createElement("div",null,(Ie=Je==null?void 0:Je.find(ut=>(ut==null?void 0:ut.name)===Ye.type))==null?void 0:Ie.icon,Ye==null?void 0:Ye.name),trigger:"click",open:at,onOpenChange:ut=>Fe(void 0,null,function*(){var Se;if(Ye!=null&&Ye.deployable_type){let Ve={};(Ye==null?void 0:Ye.deployable_type)=="Course"?Ve.course_id=Ye==null?void 0:Ye.deployable_id:Ve.subject_id=Ye==null?void 0:Ye.deployable_id;let Ae=yield(0,nt.ZP)("/api/users/get_permissions.json",{method:"get",params:Ve});if(!((Se=Ae==null?void 0:Ae.data)!=null&&Se.manager)){fe(ut);return}}if(!(Ye!=null&&Ye.web_url))fe(ut);else{const Dt=new URL(Ye==null?void 0:Ye.web_url).pathname.split("/").pop().split(".").pop();if(Dt==="txt"){ct(!0);let lt=yield(0,nt.ZP)(Ye==null?void 0:Ye.web_url,{method:"get"},!1,!1,!0);ct(!1);const xt=new TextDecoder("utf-8").decode(lt);wt.current=xt,st({file_type:"txt",url:Ye==null?void 0:Ye.web_url})}else st({file_type:["docx","doc"].includes(Dt)?"office":Dt,url:Ye==null?void 0:Ye.web_url})}})},E.createElement("div",{className:ve.officediv},(Ke=Je==null?void 0:Je.find(ut=>(ut==null?void 0:ut.name)===Ye.type))==null?void 0:Ke.icon,Ye==null?void 0:Ye.name))),E.createElement(ze.Z,{close:!0,monacoEditor:{value:wt.current,language:"txt",onChange:()=>{},options:{readOnly:!0,fontSize:14,minimap:{enabled:!1}}},style:{zIndex:1300,background:"rgba(1, 10, 35, 0.5)"},data:qe==null?void 0:qe.url,type:qe==null?void 0:qe.file_type,disabledDownload:!0,onClose:()=>st({})}))},vt=({Filelist:Ye})=>E.createElement("div",null,E.createElement("div",{style:{display:"flex",alignItems:"center"}},E.createElement("span",{style:{minWidth:40,fontWeight:500,color:"#333"}},"\u5F15\u7528"),E.createElement(Pe.Z,{style:{flex:1,minWidth:"calc(100% - 40px)"}})),E.createElement("div",{className:ve.f_l_c},Ye==null?void 0:Ye.map(Ne=>E.createElement(Xe,{item:Ne}))))},14468:function(It,kt,ne){"use strict";ne.d(kt,{Z:function(){return Je}});var E=ne(59301),ve=ne(6767),Pe=ne(36207),Te=ne(77019),He=ne(62957),_e=ne(37568),ze=ne(94968),nt=ne(25399),Fe=ne(82326),We=ne(5269),Xe=ne(4875),$e={wrap:"wrap___Yz6fc",left:"left___F0axg",tip:"tip___nCmqI",bottomBtn:"bottomBtn___x70Gq",disabled:"disabled___CWzre"},vt=ne(70467),Ye=ne(14185),Ne=ne(32648),Be=ne(49317),be=ne(49998),Ie=ne(76406),Ke=ne(62440),at=ne(53973),fe=ne(66915),qe=ne(83928),st="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAYAAAA6/NlyAAAAAXNSR0IArs4c6QAAHr1JREFUaEPNmweYnVW1/n/7a6fMmcm0ZEoSUkkCSQgJCVWKoAI2FAH1iqBYwXvFLogF8S9XvRYElUeqIJegFOmEKgiICUkgJBBCkpnMZHoyc6ad9pW9r3t/58wEsJfn+Z8z5zn9fN+711rvetdaewT/rsvi073GB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izAr20fwzIOkkvW8fcUcLGesFAbhz+y0/OYFV13w7/8XgH1X76avXbJ0167iN/r6/Hf6JdyUrMMVHuvaNpPN7SFfHKMQSWa1VnH+h9/I3FlNuOkUtfU1bHsiYvczKbbn2ri340nePH8l20ZGsL0QT3ceSz4zptUyNDrK4oXzeGGTHxxbt/jujuoXv/nd+/9rYqPZX7Lmn3rvH7Lwa3/og0d+eklP78j5c2vmntZUO7V27e5nGM2NsGtoF65dxQmHz+NDZxxBKpEkNSVFmE3w8iMOj2x5kZ78ANWJBNPqpyESJQIZUvJDk8Km1qUpFovDc2e13Mp4+vIv/uasf/i/Wf4R0vqri/mh2RfXLlow66St+fXvbu/qOW4o3z/1iMXzxOnvOIpUlYNjW2QaUvSvTbFlS462PQMUo2EaG2pIpjzT+y4UlQpDuUchH3ec6DdeUqy5+M7P/v/1j1p/aiXuv/zyxDOP7ViyYP7Ug9r6upadcPSqhYlkYm405jXteNqt8reG9LYO5NJVqt8VXlsU2Nsi6WySofvCfml38xm3nvFv+Ve8/wNgli4fKbeMnwAAAABJRU5ErkJggg==",wt=ne(44283),ft=(ut,Se,Ve)=>new Promise((Ae,tt)=>{var Dt=xt=>{try{Qe(Ve.next(xt))}catch(Re){tt(Re)}},lt=xt=>{try{Qe(Ve.throw(xt))}catch(Re){tt(Re)}},Qe=xt=>xt.done?Ae(xt.value):Promise.resolve(xt.value).then(Dt,lt);Qe((Ve=Ve.apply(ut,Se)).next())}),Je=(0,E.forwardRef)(({onUpdateNum:ut,onSave:Se},Ve)=>{var Ae;const tt=`\u8BF7\u8F93\u5165\u51FA\u9898\u8981\u6C42\uFF0C\u60A8\u4E5F\u53EF\u4EE5\u5148\u4E0A\u4F20\u6750\u6599\u4E4B\u540E\u518D\u6839\u636E\u6750\u6599\u51FA\u9898
\u4F8B\uFF1A\u8BF7\u751F\u6210\u5173\u4E8E\u300APython\u7A0B\u5E8F\u8BBE\u8BA1\u300B\u7684\u8BD5\u9898\u3002\u8003\u5BDF\u77E5\u8BC6\u70B9\uFF1A\u53D8\u91CF\u5B9A\u4E49\u3001\u6570\u636E\u7C7B\u578B\u3001\u8FD0\u7B97\u7B26\u548C\u63A7\u5236\u7ED3\u6784\u3002\u96BE\u5EA6\u4E3A\u201C\u56F0\u96BE\u201D\u7684\u8BD5\u9898\u536020%`,[Dt,lt]=(0,E.useState)(!1),[Qe,xt]=(0,E.useState)([]),[Re,me]=(0,E.useState)(null),[pt,bt]=(0,E.useState)([]),[it,Le]=(0,E.useState)(0),[Ue,mt]=(0,E.useState)(0),[Zt,Pt]=(0,E.useState)(!1),[en,dt]=(0,E.useState)(""),[Lt,pn]=(0,E.useState)(0),[he,le]=(0,E.useState)(0),[ae,pe]=(0,E.useState)(0),[ye,se]=(0,E.useState)(0),[ot,Xt]=(0,E.useState)(0),[zt,on]=(0,E.useState)(0),[Kt,Yn]=(0,E.useState)(0),[Fn,or]=(0,E.useState)(0),ra=(0,wt.useParams)(),[ur,rr]=(0,E.useState)(),[Xr,Vr]=(0,E.useState)([]),[xr,Dn]=(0,E.useState)(qe.Q),{contentRef:pa,value:Jn,status:Vn,open:ha,close:Ti}=xr,Ni=(0,at.Z)({contentRef:pa,status:Vn}),{openProgress:Ir,closeProgress:Sn,CreateProgressModal:ir,progressOpen:Fa}=(0,Ke.Z)();(0,E.useEffect)(()=>{Re&&Qa(),Re===!1&&(Ti(),ut==null||ut(),xt([]),dt(""),pn(0),le(0),pe(0),se(0),Xt(0),on(0),Yn(0),or(0))},[Re]);const $a=()=>{me(!0)};(0,E.useImperativeHandle)(Ve,()=>({onClick:$a}));const Jr=cn=>{Pt(!0),Le(cn),mt(0)},na=cn=>ft(void 0,null,function*(){const fn=cn.name.split(".").slice(-1)[0].toLowerCase();if(["docx","doc","pdf","png","jpg"].indexOf(fn)==-1)return ve.ZP.warning("\u4E0A\u4F20\u7684\u6587\u4EF6\u683C\u5F0F\u6709\u8BEF\uFF0C\u8BF7\u68C0\u67E5\u540E\u91CD\u65B0\u4E0A\u4F20"),Promise.reject();const nn=["docx","doc","pdf"],Kn=["png","jpg"];return nn.indexOf(fn)!=-1&&cn.size/1024/1024>100?(ve.ZP.warning("\u4E0A\u4F20\u7684\u6587\u4EF6\u5927\u5C0F\u9650\u5236100MB\uFF0C\u8BF7\u68C0\u67E5\u540E\u91CD\u65B0\u4E0A\u4F20"),xt([]),Promise.reject()):Kn.indexOf(fn)!=-1&&cn.size/1024/1024>10?(ve.ZP.warning("\u4E0A\u4F20\u7684\u56FE\u7247\u5927\u5C0F\u9650\u523610MB\uFF0C\u8BF7\u68C0\u67E5\u540E\u91CD\u65B0\u4E0A\u4F20"),xt([]),Promise.reject()):!0}),Qa=()=>ft(void 0,null,function*(){var cn;const fn=yield(0,Be.ZP)("/api/intelligent_imports/check_number.json",{method:"get"});fn.status===0&&(Le(fn.total_number),mt(fn.remaining_number));let wn=yield(0,Be.ZP)("/api/ai/agents/library_resource_list.json",{method:"get"});(wn==null?void 0:wn.status)===0&&Vr((cn=wn==null?void 0:wn.data)==null?void 0:cn.map(nn=>({value:nn==null?void 0:nn.coze_id,disabled:!(nn!=null&&nn.have_file),label:E.createElement("span",null,nn==null?void 0:nn.name,!(nn!=null&&nn.have_file)&&"\uFF08\u5185\u5BB9\u4E3A\u7A7A\uFF09")})))}),Kr=cn=>(cn=cn||"",cn=String(cn),cn=cn.replace(/\s+/g,""),cn),qa=(cn=!0)=>ft(void 0,null,function*(){var fn,wn;const nn=[{name:"\u5355\u9009\u9898",num:Lt||0},{name:"\u591A\u9009\u9898",num:he||0},{name:"\u5224\u65AD\u9898",num:ae||0},{name:"\u586B\u7A7A\u9898",num:ye||0},{name:"\u7B80\u7B54\u9898",num:ot||0},{name:"\u7EC4\u5408\u9898",num:Fn||0},{name:"\u7F16\u7A0B\u9898",num:zt||0},{name:"\u7A0B\u5E8F\u586B\u7A7A\u9898",num:Kt||0}];if(cn){if(Kr(en)){if(en.length>1e3){ve.ZP.warning("\u51FA\u9898\u8981\u6C42\u5B57\u6570\u9650\u5236\u4E3A1000\u5B57");return}}else{ve.ZP.warning("\u8BF7\u5148\u8F93\u5165\u51FA\u9898\u8981\u6C42");return}if(!Kr(en)&&!(Qe!=null&&Qe.length)){ve.ZP.warning("\u8BF7\u4E0A\u4F20\u6750\u6599\u6587\u6863\u6216\u5728\u6587\u672C\u6846\u4E2D\u586B\u5199\u6750\u6599\u5185\u5BB9");return}const On=nn.reduce((hr,yr)=>hr+yr.num,0);if(On===0){ve.ZP.warning("\u8BF7\u8BBE\u7F6E\u51FA\u9898\u6570\u91CF");return}if(On>50){ve.ZP.warning("\u51FA\u9898\u6570\u91CF\u8FBE\u5230\u9650\u5236");return}if(it!==-1){Pt(!0);return}}Pt(!1);const Jt={scene_type:6,request_identifier:Math.random(),file_id:(wn=(fn=Qe[0])==null?void 0:fn.response)==null?void 0:wn.id,content:en,count_arr:nn.map(On=>On.num).join(","),course_id:ra==null?void 0:ra.coursesId,coze_id:ur};yield ha(Jt),Qa()}),aa=()=>ft(void 0,null,function*(){const cn=Ni();if(Se){me(!1),Se(cn);return}Ir(),lt(!0),bt([]);const fn=new FormData;fn.append("html",cn);const wn=yield(0,Be.ZP)("/api/intelligent_imports/import.json",{method:"post",body:fn},!0);if((wn==null?void 0:wn.status)===0)if(wn!=null&&wn.data){Sn(100),bt(wn==null?void 0:wn.data);return}else ve.ZP.warning("\u672A\u8BC6\u522B\u5230\u8BD5\u9898");lt(!1),Sn()}),Wn=()=>ft(void 0,null,function*(){const cn=Ni();(0,Ie.RG)(cn)}),Rn=["uploading","error"].includes((Ae=Qe==null?void 0:Qe[0])==null?void 0:Ae.status);return E.createElement(E.Fragment,null,E.createElement(fe.Z,{visible:Zt,totalCount:it,usedCount:Ue,onCancel:()=>Pt(!1),onOk:()=>qa(!1)}),E.createElement(Pe.Z,{title:"\u667A\u80FD\u51FA\u9898",extra:E.createElement("div",{className:$e.extraHeader},E.createElement(Te.Z,{align:"middle"},!Vn&&!!Jn&&E.createElement(E.Fragment,null,E.createElement(vt.op,{onClick:aa,className:"mr15",shape:"default"},"\u4FDD\u5B58\u8BD5\u9898"),E.createElement(vt.op,{onClick:Wn,shape:"default",type:"text"},E.createElement("i",{className:"iconfont icon-fuzhi8 mr5 font14"}),"\u590D\u5236")),E.createElement("i",{onClick:()=>{const cn=fn=>{He.default.confirm({centered:!0,icon:null,width:500,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:fn,onOk:()=>{me(!1)}})};if(Vn){cn("\u6B63\u5728\u751F\u6210\u8BD5\u9898\u4E2D\uFF0C\u786E\u5B9A\u8981\u9000\u51FA\u5417\uFF1F");return}else Jn?cn("\u8BD5\u9898\u672A\u4FDD\u5B58\uFF0C\u786E\u5B9A\u8981\u9000\u51FA\u5417\uFF1F"):me(!1)},className:"iconfont icon-guanbi11 current ml15"}))),placement:"bottom",height:"100%",headerStyle:{height:54,borderBottomColor:"#DCDCDC"},bodyStyle:{padding:0},closable:!1,className:"body-overflow-hidden",destroyOnClose:!0,open:Re},E.createElement("div",{className:$e.wrap},E.createElement("div",{className:$e.left},E.createElement("div",{className:$e.tip},E.createElement("img",{src:st}),E.createElement("span",null,"\u60A8\u597D\uFF01\u6211\u662F\u60A8\u7684\u667A\u80FD\u51FA\u9898\u52A9\u624B\uFF0C\u6211\u5DF2\u5B66\u4E60\u4E86\u5E73\u53F0\u4EE5\u53CA\u4E92\u8054\u7F51\u4E0A\u6D77\u91CF\u7684\u8BD5\u9898\u77E5\u8BC6\u5E93\u3002\u53EF\u4EE5\u6839\u636E\u60A8\u7684\u8981\u6C42\u548C\u4E0A\u4F20\u7684\u6750\u6599\u7075\u6D3B\u751F\u6210\u5404\u7C7B\u8BD5\u9898\u3002\u6B22\u8FCE\u968F\u65F6\u4E0E\u6211\u4E92\u52A8\uFF0C\u8BA9\u6211\u4EEC\u4E00\u8D77\u6253\u9020\u66F4\u9AD8\u6548\u3001\u66F4\u4F18\u8D28\u7684\u8BD5\u9898\uFF01")),E.createElement("div",{className:"mb10 mt20 c-black"},E.createElement("b",null,"\u51FA\u9898\u8981\u6C42")),E.createElement(_e.default.TextArea,{style:{height:160},className:"mb20",value:en,placeholder:tt,onChange:cn=>{dt(cn.target.value)}}),E.createElement(ze.default,{accept:".doc,.docx,.pdf,.png,.jpg",action:`${Ye.Z.API_SERVER}/api/attachments.json`,maxCount:1,fileList:Qe,withCredentials:!0,data:{upload_type:1},beforeUpload:na,onChange:({file:cn})=>{var fn,wn;if(cn.status==="removed")return;cn.status==="done"&&((fn=cn==null?void 0:cn.response)==null?void 0:fn.status)!==0&&(cn.status="error",cn.response=(wn=cn==null?void 0:cn.response)==null?void 0:wn.message),xt([cn]);const nn=cn.name.split(".").slice(-1)[0].toLowerCase(),Kn=["docx","doc","pdf"],Jt=["png","jpg"];Kn.indexOf(nn)!=-1&&cn.size/1024/1024>100&&xt([]),Jt.indexOf(nn)!=-1&&cn.size/1024/1024>10&&xt([])},onRemove:()=>xt([])},E.createElement(nt.Z,{title:"\u5355\u6B21\u4EC5\u652F\u6301\u4E0A\u4F201\u4E2A\u6587\u6863\u62161\u5F20\u56FE\u7247\uFF0C\u6587\u6863\u652F\u6301PDF/Word\u683C\u5F0F\u4E0D\u8D85\u8FC7100M,\u56FE\u7247\u652F\u63011\u5F20\u4E0D\u8D85\u8FC710M\u7684PNG/JPG\u56FE\u7247"},E.createElement(vt.op,{style:{borderRadius:2}},E.createElement("i",{className:"icon-shangchuan3 mr5"}),"\u4E0A\u4F20\u6750\u6599"))),E.createElement("div",{className:"c-black mt20"},E.createElement("div",{className:"mb10 c-black"},E.createElement("b",null,"\u77E5\u8BC6\u5E93 "),E.createElement(Fe.default,{onChange:cn=>{rr(cn)},style:{marginLeft:10,width:"80%"},options:Xr}))),E.createElement("div",{className:"c-black mt20"},E.createElement("div",{className:"mb10 c-black"},E.createElement("b",null,"\u51FA\u9898\u6570\u91CF"),E.createElement("span",{className:"c-grey-999"},"\uFF08\u4E3A\u4FDD\u8BC1\u51FA\u9898\u4F53\u9A8C\uFF0C\u5355\u6B21\u51FA\u9898\u603B\u6570\u91CF\u4E0D\u80FD\u8D85\u8FC7",E.createElement("span",{style:{padding:"0 6px",color:"#FB901F"}},"50"),"\u9053\uFF09")),E.createElement(Te.Z,{style:{gap:16}},E.createElement(We.Z,null,E.createElement("label",null,"\u5355\u9009\u9898"),E.createElement(Xe.Z,{min:0,max:10,value:Lt,onChange:pn,style:{marginLeft:"8px"}})),E.createElement(We.Z,null,E.createElement("label",null,"\u591A\u9009\u9898"),E.createElement(Xe.Z,{min:0,max:10,value:he,onChange:le,style:{marginLeft:"8px"}})),E.createElement(We.Z,null,E.createElement("label",null,"\u5224\u65AD\u9898"),E.createElement(Xe.Z,{min:0,max:10,value:ae,onChange:pe,style:{marginLeft:"8px"}})),E.createElement(We.Z,null,E.createElement("label",null,"\u586B\u7A7A\u9898"),E.createElement(Xe.Z,{min:0,max:10,value:ye,onChange:se,style:{marginLeft:"8px"}})),E.createElement(We.Z,null,E.createElement("label",null,"\u7B80\u7B54\u9898"),E.createElement(Xe.Z,{min:0,max:10,value:ot,onChange:Xt,style:{marginLeft:"8px"}})),E.createElement(We.Z,null,E.createElement("label",null,"\u7EC4\u5408\u9898"),E.createElement(Xe.Z,{min:0,max:10,value:Fn,onChange:or,style:{marginLeft:"8px"}})),E.createElement(We.Z,null,E.createElement("label",null,"\u7F16\u7A0B\u9898"),E.createElement(Xe.Z,{min:0,max:10,value:zt,onChange:on,style:{marginLeft:"8px"}})),E.createElement(We.Z,null,E.createElement("label",null,"\u7A0B\u5E8F\u586B\u7A7A\u9898"),E.createElement(Xe.Z,{min:0,max:10,value:Kt,onChange:Yn,style:{marginLeft:"8px"}})))),Vn?E.createElement("div",{onClick:Ti,className:$e.bottomBtn},E.createElement("i",{className:"iconfont icon-tingzhihuida"}),"\u505C\u6B62\u51FA\u9898"):Rn?E.createElement("div",{className:`${$e.bottomBtn} ${$e.disabled}`},E.createElement("i",{className:"iconfont icon-kaishichuti font14"}),"\u5F00\u59CB\u51FA\u9898"):E.createElement("div",{onClick:()=>{qa()},className:$e.bottomBtn},E.createElement("i",{className:"iconfont icon-kaishichuti font14"}),"\u5F00\u59CB\u51FA\u9898")),E.createElement(qe.Z,{onStatusChange:Dn,loadingText:"\u8BD5\u9898\u751F\u6210\u4E2D",fetchUrl:"/api/stream/intelligent_imports/stream.json",showEditableToolbar:!Fa,noRestrictModal:Jr,stringTransformer:be.o,onError:cn=>{Object.prototype.toString.call(cn)==="[object Object]"&&cn.status===-9&&Jr(cn.data)}}))),E.createElement(Pe.Z,{placement:"bottom",height:"100%",closable:!1,className:"body-overflow-hidden",destroyOnClose:!0,open:Dt},E.createElement(Te.Z,{align:"middle",style:{margin:"8px auto 24px auto",width:1200,fontWeight:600},className:"c-black font18"},E.createElement("img",{src:ne(36413),alt:"\u667A\u80FD\u51FA\u9898"}),E.createElement("span",{className:"ml10"},"\u667A\u80FD\u51FA\u9898")),E.createElement(Ne.Z,{stickyTop:-24,hideWordFeatures:!0,dataSource:pt,isRefreshItemBank:!0,okText:"\u5BFC\u5165\u9898\u5E93",mode:1,onCancel:()=>lt(!1),onSuccess:()=>{lt(!1),me(!1)}}),E.createElement("div",{style:{height:70}})),ir("\u5904\u7406\u4E2D"))})},57226:function(It,kt,ne){"use strict";var E=ne(59301);const ve=({scrollBoxRef:Pe,bottomInspectRef:Te,contentRef:He,status:_e,rootMargin:ze="70px",bottomOffset:nt=110})=>{const[Fe,We]=(0,E.useState)(!0),Xe=(0,E.useRef)(!1);return(0,E.useEffect)(()=>{if(!Pe.current||!Te.current)return;const $e=new IntersectionObserver(([vt])=>{var Ye,Ne,Be,be;if(!document.contains(vt.target)){console.log("\u76EE\u6807\u5143\u7D20\u5DF2\u4ECE DOM \u79FB\u9664");return}if(((Ye=vt.rootBounds)==null?void 0:Ye.width)===0&&((Ne=vt.rootBounds)==null?void 0:Ne.height)===0){console.log("root\uFF08\u6EDA\u52A8\u5BB9\u5668\uFF09\u65E0\u6548\uFF0C\u53EF\u80FD\u5DF2\u88AB\u79FB\u9664");return}if(((Be=vt.boundingClientRect)==null?void 0:Be.width)===0&&((be=vt.boundingClientRect)==null?void 0:be.height)===0){console.log("\u76EE\u6807\u5143\u7D20\u5BBD\u9AD8\u4E3A 0\uFF0C\u53EF\u80FD\u5DF2\u88AB\u79FB\u9664\u6216 display: none");return}We(vt.isIntersecting)},{root:Pe.current,rootMargin:ze,threshold:0});return $e.observe(Te.current),()=>{$e.disconnect()}},[Pe.current,Te.current,ze]),(0,E.useEffect)(()=>{if(!_e)return;const $e=Pe.current,vt=He.current;Xe.current=!1;let Ye=$e.scrollTop;const Ne=()=>{const{scrollTop:be,scrollHeight:Ie,clientHeight:Ke}=$e;be>Ye?be+Ke>=Ie-nt&&($e.scrollTop=$e.scrollHeight,Xe.current=!1):be<Ye&&(Xe.current=!0),Ye=be};$e.addEventListener("scroll",Ne);const Be=new ResizeObserver(()=>{Xe.current||($e.scrollTop=$e.scrollHeight)});return Be.observe(vt),()=>{setTimeout(()=>{Be.unobserve(vt)},250),$e.removeEventListener("scroll",Ne)}},[_e]),Fe};kt.Z=ve},53973:function(It,kt,ne){"use strict";var E=ne(59301);const ve=({contentRef:Pe,status:Te})=>((0,E.useEffect)(()=>{!Te&&(Pe!=null&&Pe.current)&&Pe.current.querySelectorAll("code[data-text], mathx[data-text]").forEach(ze=>{ze.tagName.toLowerCase()==="code"?ze.parentElement&&(ze.parentElement.contentEditable="false"):ze.tagName.toLowerCase()==="mathx"&&(ze.contentEditable="false")})},[Te]),(_e=!1)=>{const ze=Xe=>{const $e={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'","&nbsp;":" ","&copy;":"\xA9","&reg;":"\xAE","&euro;":"\u20AC"};return Xe.replace(/&[^;]+;/g,vt=>$e[vt]||vt)};if(!Pe.current)return"";const nt=Pe.current.cloneNode(!0);nt.querySelectorAll("code[data-text], mathx[data-text]").forEach(Xe=>{let $e=Xe.getAttribute("data-text");Xe.tagName.toLowerCase()==="code"?$e=$e.replace(/```.*\n|\n```/g,""):Xe.tagName.toLowerCase()==="mathx"&&($e=`$$${$e}$$`);const vt=document.createTextNode($e);Xe.parentNode.replaceChild(vt,Xe)}),_e&&nt.querySelectorAll('[data-select="disabled"]').forEach($e=>{var vt;const Ye=$e.textContent||"",Ne=document.createTextNode(Ye+`
`);(vt=$e.parentNode)==null||vt.replaceChild(Ne,$e)});let We=nt.innerHTML;return _e||(We=We.replace(/<[^>]*data-select="disabled"[^>]*>.*?<\/[^>]*>/g,"")),We=We.replace(/<p>/g,""),We=We.replace(/<\/p>/g,`
`),We=We.replace(/<br>/g,`
`),We=We.replace(/\r\n/g,`
`),We=We.replace(/<[^>]*>/g,""),We=ze(We),We});kt.Z=ve},62440:function(It,kt,ne){"use strict";ne.d(kt,{Z:function(){return $e}});var E=ne(59301),ve=ne(62957),Pe=ne(77019),Te=ne(89787),He="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGIAAABYCAYAAAAORCLFAAAAAXNSR0IArs4c6QAAIABJREFUeF7lfQecXFXZ/nNumT6zvWeTTSWkEEJooUgRpSMooiLfxycqTcQGIvipAf1UsNFEUAQBQTpSDCgtIQVTSAgJ6ckm2ZJt2dnd6XPL+fuec8/sZAmSbAKBv/P73Z3ZmXvv3Ps+5+1lGD5kD855cHM8P85xtRqmG1a5H5sqQqz1Q3aZ+/xy2D4/4zBOyGfN0lZe9v0Tt/fj0vZenBAf0MozFgNjAOe2XR1jy8qC7s/OPdT/12Gc/iNxyH4HYlVrctrb3b5bN7Wzj3X1agDXYOgQILgccFwgk+OoKOOY1uT89nPPmldiFnM/EtTdg4vcr0C8uC59xbIt5k3bu/Sgz2Twm4BuAJom78B1AdsG8haQywMOc5BLDPzsD5eXX7cH9/iR2HW/AMFnQXvwEwM/e7vN913b9iMQAPw+wPQBuscNnIBwPCDyQDZHnAEsXtPHzzo6fPG1p/vu/khQeDcvcr8A8cC8xKzV240fuW4AoSAQCAI+H+AzAdMEwADLliBYFmATR2SBZAbY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jB/8x9zCQijfIWHd5BWDS4t+6KpWC4FAoejl/NB+oFD0/9uWP5914uwmf3l0v5ZAxIn7nr/MdWSRv84vhA1eaO3PZ/Kbnv7cnN5fFwDMOP8vz4/Uk8nae+oAAAAASUVORK5CYII=",nt={dotLoading:"dotLoading___s6Sh4",showHide:"showHide___Dfprh",progress:"progress___QUpqo"},Fe=ne(59301);const We=["\u6587\u4EF6\u89E3\u6790\u8BFB\u53D6\u4E2D","\u5185\u5BB9\u7406\u89E3\u5206\u6790\u4E2D","\u7ED3\u6784\u5316\u63D0\u53D6\u4E2D"];var $e=()=>{const[vt,Ye]=(0,E.useState)(0),[Ne,Be]=(0,E.useState)(!1),[be,Ie]=(0,E.useState)(!0),Ke=(0,E.useRef)(null);(0,E.useEffect)(()=>{if(be)return;const ft=()=>{Ye(ct=>ct>=99?(clearInterval(Ke.current),99):ct+1)};return Ke.current=setInterval(ft,5e4/99),()=>clearInterval(Ke.current)},[be]);const at=()=>{Ye(0),Be(!0),Ie(!1)},fe=(ft=0)=>{Ie(!0),Ye(ft),Be(!1)},qe=ft=>{const ct=ft/1048576;let Je;return ct<=.3?Je=3:ct<=.5?Je=5:ct<=1?Je=10:ct<=2?Je=20:ct<=3?Je=30:ct<=10?Je=ct*10:Je=100,` \u9884\u8BA1\u5904\u7406\u65F6\u957F\u4E3A${Je}\u5206\u949F\uFF0C\u8BF7\u52FF\u5173\u95ED\u7A97\u53E3`},st=()=>Fe.createElement("span",{className:nt.dotLoading},Fe.createElement("span",null,"."),Fe.createElement("span",null,"."),Fe.createElement("span",null,"."));return{progress:vt,progressOpen:Ne,openProgress:at,closeProgress:fe,toggleLock:()=>Ie(ft=>!ft),CreateProgressModal:(ft=We,ct)=>(typeof ft=="string"&&(ft=[ft,ft,ft]),Fe.createElement(ve.default,{centered:!0,closable:!1,destroyOnClose:!0,zIndex:1200,open:Ne,title:null,footer:null,width:500,afterClose:()=>Ye(0)},Fe.createElement(Pe.Z,{align:"middle",className:"mt40 mb20",style:{flexDirection:"column"}},vt<=30&&Fe.createElement(Fe.Fragment,null,Fe.createElement("img",{src:He,alt:"Step 1"}),Fe.createElement("div",{className:"mt20 c-light-primary"},ft[0],st())),vt>30&&vt<60&&Fe.createElement(Fe.Fragment,null,Fe.createElement("img",{src:_e,alt:"Step 2"}),Fe.createElement("div",{className:"mt20 c-light-primary"},ft[1],st())),vt>=60&&Fe.createElement(Fe.Fragment,null,Fe.createElement("img",{src:ze,alt:"Step 3"}),Fe.createElement("div",{className:"mt20 c-light-primary"},ft[2],st())),Fe.createElement(Te.Z,{className:nt.progress,status:"active",style:{width:"auto"},size:[300,8],percent:vt}),!!ct&&Fe.createElement("div",{className:"c-grey-999"},qe(ct)))))}}},23420:function(It,kt,ne){"use strict";ne.d(kt,{Z:function(){return pt}});var E=ne(59301),ve=ne(75727),Pe=ne(6767),Te=ne(25399),He=ne(37568),_e=ne(7939),ze=ne(8191),nt={wrap:"wrap___AasCO",chatContainer:"chatContainer___n6e3E",btnContainer:"btnContainer___yKyVB",btn:"btn___Y_09T",inputContainer:"inputContainer____bM3M",sendBtn:"sendBtn___UHHLj",sendBtnDisabled:"sendBtnDisabled___AoSRc",cancelBtn:"cancelBtn___yql4C",loadingWrp:"loadingWrp___gYLGT","dot-fade":"dot-fade___LruoO"},We=({position:bt,children:it})=>{const{left:Le=0,top:Ue=0}=bt||{},[mt,Zt]=(0,E.useState)(Le),[Pt,en]=(0,E.useState)(Ue),dt=(0,E.useRef)(null),Lt=()=>{if(dt.current){const pn=dt.current.offsetWidth,he=dt.current.offsetHeight,le=window.innerWidth,ae=window.innerHeight;let pe=Le,ye=Ue;Le+pn>le&&(pe=le-pn),pe<0&&(pe=0),Ue+he>ae&&(ye=ae-he),ye<0&&(ye=0),Zt(pe),en(ye)}};return(0,E.useEffect)(()=>{if(!dt.current||!bt)return;const pn=new ResizeObserver(()=>{Lt()});return pn.observe(dt.current),()=>{pn.disconnect()}},[Le,Ue,bt]),(0,E.useEffect)(()=>{bt&&Lt()},[Le,Ue,bt]),bt?E.createElement("div",{ref:dt,style:{position:"fixed",left:`${mt}px`,top:`${Pt}px`,zIndex:1050}},it):null},Xe=ne(14185),$e=ne(56102),vt=ne(74410),Ye=Object.defineProperty,Ne=Object.defineProperties,Be=Object.getOwnPropertyDescriptors,be=Object.getOwnPropertySymbols,Ie=Object.prototype.hasOwnProperty,Ke=Object.prototype.propertyIsEnumerable,at=(bt,it,Le)=>it in bt?Ye(bt,it,{enumerable:!0,configurable:!0,writable:!0,value:Le}):bt[it]=Le,fe=(bt,it)=>{for(var Le in it||(it={}))Ie.call(it,Le)&&at(bt,Le,it[Le]);if(be)for(var Le of be(it))Ke.call(it,Le)&&at(bt,Le,it[Le]);return bt},qe=(bt,it)=>Ne(bt,Be(it)),st=(bt,it,Le)=>new Promise((Ue,mt)=>{var Zt=dt=>{try{en(Le.next(dt))}catch(Lt){mt(Lt)}},Pt=dt=>{try{en(Le.throw(dt))}catch(Lt){mt(Lt)}},en=dt=>dt.done?Ue(dt.value):Promise.resolve(dt.value).then(Zt,Pt);en((Le=Le.apply(bt,it)).next())}),ft=({visible:bt,position:it,selectText:Le,applyRefinedText:Ue,fetchUrl:mt,noRestrictModal:Zt})=>{var Pt;const[en,dt]=(0,E.useState)(!1),[Lt,pn]=(0,E.useState)([]),[he,le]=(0,E.useState)(""),[ae,pe]=(0,E.useState)(1),[ye,se]=(0,E.useState)(""),[ot,Xt]=(0,E.useState)(!1),zt=(0,E.useRef)(null),[on,Kt]=(0,E.useState)(!1),[Yn,Fn]=(0,E.useState)(0),or=(0,E.useRef)(!1),ra=((Pt=Lt==null?void 0:Lt[(Lt==null?void 0:Lt.length)-1])==null?void 0:Pt.loading)===!0;(0,E.useEffect)(()=>{if(bt){pe(1);return}Kt(!1),dt(!1),ur(),Fn(0),pn([]),pe(0)},[bt]);const ur=()=>{var ir,Fa;le(""),se(""),(Fa=(ir=zt.current)==null?void 0:ir.cancelRequest)==null||Fa.call(ir)},rr=(...ir)=>st(void 0,[...ir],function*(Fa="",$a=Lt){const Jr=Date.now(),na=[...$a,{text:Fa,key:Jr,sender:"user",show:!0},{loading:!0,key:Jr,sender:"AI",show:!0}];pe(2),pn(na);const Qa=Vr($a),Kr={no_record_times:!0,prompt:Fa,history:Qa};zt.current=new vt.Z(Xe.Z.API_SERVER+mt,Kr),yield new Promise(qa=>{zt.current.on("data",aa=>{const{chunk:{msg:Wn},full:Rn}=aa,cn=Wn==="error";Kt(!0),se(Vn(Rn)),pn(fn=>fn.map((wn,nn)=>nn===fn.length-1?qe(fe({},wn),{text:Rn,loading:!1,error:cn}):wn))}),zt.current.on("done",()=>qa()),zt.current.on("error",aa=>{const Wn="\u62B1\u6B49\uFF0C\u6211\u521A\u521A\u9047\u5230\u4E86\u4E00\u70B9\u95EE\u9898\uFF0C\u6CA1\u80FD\u5B8C\u6210\u60A8\u7684\u8BF7\u6C42\u3002\u8BF7\u60A8\u7A0D\u540E\u518D\u8BD5\u4E00\u6B21\uFF0C\u6216\u8005\u8054\u7CFB\u6280\u672F\u652F\u6301\u5E2E\u5FD9\u89E3\u51B3!";Object.prototype.toString.call(aa)==="[object Object]"&&aa.status===-9&&(pe(1),Zt(aa.data)),pn(Rn=>Rn.map((cn,fn)=>fn===Rn.length-1?qe(fe({},cn),{text:Wn,loading:!1,error:!0}):cn)),qa()}),zt.current.on("cancelled",()=>qa()),zt.current.startStream()}),dt(!1)}),Xr=ir=>{le(ir.target.value)},Vr=ir=>ir.reduce(($a,Jr)=>{if(Jr.sender==="user"){const na=ir.find(Qa=>Qa.key===Jr.key&&Qa.sender==="AI");na&&(na!=null&&na.text)&&!(na!=null&&na.error)&&$a.push({question:Jr.text,answer:na.text})}return $a},[]),xr=()=>{if(Sn)return;const ir=ha("\u6539\u5199");ur(),dt(!0),rr(ir)},Dn=ir=>{if(ir.key==="Enter"&&!ir.shiftKey){if(ir.preventDefault(),or.current||Ir)return;xr()}},pa=()=>{var ir,Fa;Fn($a=>$a+1),(Fa=(ir=zt.current)==null?void 0:ir.cancelRequest)==null||Fa.call(ir),dt(!1),Kt(!1)},Jn=[{key:"1",label:E.createElement("span",null," ",E.createElement("i",{className:"iconfont icon-runse font14 mr10"}),"\u6DA6\u8272 ")},{key:"2",label:E.createElement("span",null,E.createElement("i",{className:"iconfont icon-kuoxie font14 mr10"}),"\u6269\u5199")},{key:"3",label:E.createElement("span",null," ",E.createElement("i",{className:"iconfont icon-suoxie font14 mr10"}),"\u7F29\u5199")}],Vn=(ir="")=>{const Fa=["\u7B54\u6848\uFF1A","\u96BE\u5EA6\uFF1A","\u89E3\u6790\uFF1A","\u77E5\u8BC6\u70B9\uFF1A","\u65F6\u95F4\u9650\u5236\uFF08\u79D2\uFF09","\u7F16\u7A0B\u8BED\u8A00\uFF1A","\u5B66\u5458\u521D\u59CB\u4EE3\u7801\uFF1A","\u7A0B\u5E8F\u4EE3\u7801\uFF1A","\u6D4B\u8BD5\u7528\u4F8B\u8F93\u5165\uFF1A","\u6D4B\u8BD5\u7528\u4F8B\u8F93\u51FA\uFF1A"];return Array.from({length:20}).forEach(($a,Jr)=>{Fa.push(`\u7B54\u6848${Jr+1}\uFF1A`,`\u6D4B\u8BD5\u7528\u4F8B(${Jr+1})\u8F93\u5165\uFF1A`,`\u6D4B\u8BD5\u7528\u4F8B(${Jr+1})\u8F93\u51FA\uFF1A`)}),Fa.forEach($a=>{const Jr=new RegExp($a,"g");ir=ir.replace(Jr,`**${$a}** `)}),ir},ha=ir=>ir==="\u6539\u5199"?`${he}\uFF0C\u6839\u636E\u4E0A\u8FF0\u8981\u6C42\u6539\u5199\u8FD9\u53E5\u8BDD\uFF0C${Le}\uFF0C\u6839\u636E\u539F\u683C\u5F0F\u8FD4\u56DE\u7ED9\u6211\uFF0C\u4E0D\u8981\u53BB\u6389\u63D0\u793A\u8BED`:`${Le}\uFF0C${ir}\u4E0A\u9762\u8FD9\u53E5\u8BDD\uFF0C\u6839\u636E\u539F\u683C\u5F0F\u8FD4\u56DE\u7ED9\u6211\uFF0C\u4E0D\u8981\u53BB\u6389\u63D0\u793A\u8BED`,Ti=ir=>{let Fa="";ir.key==="1"&&(Fa=ha("\u6DA6\u8272")),ir.key==="2"&&(Fa=ha("\u6269\u5199")),ir.key==="3"&&(Fa=ha("\u7F29\u5199")),ur(),dt(!0),rr(Fa)},Ni=()=>{const ir=Lt.splice(Lt.length-2),{text:Fa}=(ir==null?void 0:ir[0])||{};ur(),dt(!0),rr(Fa,Lt)},Ir=en||on,Sn=(he==null?void 0:he.trim())==="";return bt?E.createElement(ve.Z,{open:Sn&&!Ir&&(ot||!ye),overlayStyle:{minWidth:200},menu:{items:Jn,onClick:Ti}},E.createElement(We,{position:it},E.createElement("div",{className:nt.wrap},ae===2&&E.createElement(E.Fragment,null,E.createElement("div",{className:nt.chatContainer},ra&&E.createElement("div",{className:nt.loadingWrp},E.createElement("span",null,"\u6B63\u5728\u751F\u6210\u4E2D"),E.createElement("div",{className:"ai-loading"})),ye&&E.createElement(ze.Z,{cancelIndex:Yn,streamingStatus:en,loadImage:!1,onFinish:()=>st(void 0,null,function*(){Fn(0),setTimeout(()=>Kt(!1),0)}),value:ye})),E.createElement("div",{className:nt.btnContainer},E.createElement("div",{onClick:()=>Ue(!0,ye),className:nt.btn,style:{padding:"0 16px",width:"initial"}},E.createElement("i",{className:"iconfont icon-tihuan mr10 font14"}),"\u66FF\u6362"),E.createElement("div",{onClick:()=>Ue(!1,ye),className:nt.btn,style:{padding:"0 16px",width:"initial"}},E.createElement("i",{className:"iconfont icon-charu mr10 font14"}),"\u63D2\u5165"),E.createElement($e.CopyToClipboard,{text:ye,onCopy:()=>Pe.ZP.success({content:"\u590D\u5236\u6210\u529F",key:"copy"})},E.createElement(Te.Z,{title:"\u590D\u5236"},E.createElement("div",{className:nt.btn,style:{marginLeft:"auto"}},E.createElement("i",{className:"iconfont icon-fuzhi8 font14"})))),E.createElement(Te.Z,{title:"\u91CD\u65B0\u751F\u6210"},E.createElement("div",{onClick:Ni,className:nt.btn},E.createElement("i",{className:"iciconfontonfot icon-gengxin-genghuan-tihuan font17"}))),E.createElement(Te.Z,{title:"\u5220\u9664"},E.createElement("div",{onClick:()=>{pe(1),ur(),pn([])},className:nt.btn},E.createElement("i",{className:"iconfont icon-shanchu14 font14"}))))),E.createElement("div",{className:nt.inputContainer},E.createElement(He.default.TextArea,{placeholder:"\u5728\u8FD9\u91CC\u8F93\u5165\u4F60\u7684\u6587\u672C\u4F18\u5316\u5EFA\u8BAE",value:he,bordered:!1,onFocus:()=>Xt(!0),onBlur:()=>setTimeout(()=>Xt(!1),300),onChange:Xr,onPressEnter:Dn,onCompositionStart:()=>or.current=!0,onCompositionEnd:()=>or.current=!1}),on?E.createElement("div",{className:`iconfont icon-tingzhihuida ${nt.cancelBtn}`,onClick:pa}):E.createElement(_e.ZP,{className:Sn?nt.sendBtnDisabled:nt.sendBtn,icon:E.createElement("i",{className:"iconfont icon-fasong2 c-white"}),disabled:Ir,onClick:xr}))))):E.createElement(E.Fragment,null)},ct={"hover-line-container":"hover-line-container___kkYQN","hover-line-content":"hover-line-content___ZkD9e","line-button-container":"line-button-container___A79j9",button:"button___X_Iu7"},Je=Object.defineProperty,ut=Object.getOwnPropertySymbols,Se=Object.prototype.hasOwnProperty,Ve=Object.prototype.propertyIsEnumerable,Ae=(bt,it,Le)=>it in bt?Je(bt,it,{enumerable:!0,configurable:!0,writable:!0,value:Le}):bt[it]=Le,tt=(bt,it)=>{for(var Le in it||(it={}))Se.call(it,Le)&&Ae(bt,Le,it[Le]);if(ut)for(var Le of ut(it))Ve.call(it,Le)&&Ae(bt,Le,it[Le]);return bt};const Dt=bt=>React.createElement("svg",tt({width:14,height:14,xmlns:"http://www.w3.org/2000/svg"},bt),React.createElement("title",null,"AI\u6539\u5199"),React.createElement("defs",null,React.createElement("linearGradient",{x1:"26.797%",y1:"22.073%",x2:"82.181%",y2:"80.474%",id:"rewrite_svg__a"},React.createElement("stop",{stopColor:"#5C64FF",offset:"0%"}),React.createElement("stop",{stopColor:"#6988F8",offset:"100%"}))),React.createElement("path",{d:"m10.406 4.741.007.015h-.007v-.022.007Zm-.04-.04.855-1.495 1.497-.855-1.496-.855L10.366 0l-.854 1.497-1.497.855 1.496.854.855 1.495ZM3.1 8.442l1.71 3.1 1.603-3.1 3.1-1.71L6.52 5.023l-1.71-3.1-1.71 3.1L0 6.733l3.099 1.709H3.1Zm6.84 3.1 1.069 1.924 1.068-1.924L14 10.473l-1.924-1.069-1.069-1.923L9.94 9.405l-1.924 1.068 1.924 1.07v-.001Z",fill:"url(#rewrite_svg__a)",fillRule:"nonzero"}));var lt="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IHgxPSIyNi43OTclIiB5MT0iMjIuMDczJSIgeDI9IjgyLjE4MSUiIHkyPSI4MC40NzQlIiBpZD0iYSI+PHN0b3Agc3RvcC1jb2xvcj0iIzVDNjRGRiIgb2Zmc2V0PSIwJSIvPjxzdG9wIHN0b3AtY29sb3I9IiM2OTg4RjgiIG9mZnNldD0iMTAwJSIvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjxwYXRoIGQ9Im0xMC40MDYgNC43NDEuMDA3LjAxNWgtLjAwN3YtLjAyMi4wMDdabS0uMDQtLjA0Ljg1NS0xLjQ5NSAxLjQ5Ny0uODU1LTEuNDk2LS44NTVMMTAuMzY2IDBsLS44NTQgMS40OTctMS40OTcuODU1IDEuNDk2Ljg1NC44NTUgMS40OTVaTTMuMSA4LjQ0MmwxLjcxIDMuMSAxLjYwMy0zLjEgMy4xLTEuNzFMNi41MiA1LjAyM2wtMS43MS0zLjEtMS43MSAzLjFMMCA2LjczM2wzLjA5OSAxLjcwOUgzLjFabTYuODQgMy4xIDEuMDY5IDEuOTI0IDEuMDY4LTEuOTI0TDE0IDEwLjQ3M2wtMS45MjQtMS4wNjktMS4wNjktMS45MjNMOS45NCA5LjQwNWwtMS45MjQgMS4wNjggMS45MjQgMS4wN3YtLjAwMVoiIGZpbGw9InVybCgjYSkiIGZpbGwtcnVsZT0ibm9uemVybyIvPjwvc3ZnPg==",xt=(0,E.forwardRef)(({initialContent:bt,onButtonClick:it},Le)=>{const[Ue,mt]=(0,E.useState)(null),[Zt,Pt]=(0,E.useState)(null),[en,dt]=(0,E.useState)(""),[Lt,pn]=(0,E.useState)(null),he=Le,le=zt=>{const on=document.elementFromPoint(10,zt),Kt=document.createRange();let Yn=null;const Fn=document.createTreeWalker(he.current,NodeFilter.SHOW_TEXT,{acceptNode:xr=>{const Dn=document.createRange();Dn.selectNodeContents(xr);const pa=Dn.getBoundingClientRect();return pa.top<=zt&&pa.bottom>=zt?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}});let or="",ra,ur,rr=null,Xr=null,Vr=null;for(;ra=Fn.nextNode();){ra.parentNode.getAttribute("data-select")==="disabled"&&(ur=!0),or+=ra.textContent,Xr||(Xr=ra),Vr=ra;const xr=document.createRange();xr.selectNodeContents(ra);const Dn=xr.getBoundingClientRect();rr===null&&(rr=Dn.top)}if(Xr&&Vr&&!ur){const xr=document.createRange();xr.setStart(Xr,0),xr.setEnd(Vr,Vr.textContent.length),pn(xr)}else pn(null);return Pt(rr-1),ur?"":or.trim()};function ae(zt){for(;zt.parentElement&&zt.parentElement.tagName.toLowerCase()!=="section";){var on=window.getComputedStyle(zt.parentElement);if(on.pointerEvents==="none")return!0;zt=zt.parentElement}return!1}const pe=zt=>{var on,Kt;if(ae(zt.target)){Pt(-1e6);return}if(((Kt=(on=document.getSelection())==null?void 0:on.toString)==null?void 0:Kt.call(on))!==""){Pt(-1e6);return}const Yn=le(zt.clientY);if((Yn==null?void 0:Yn.trim())===""){Pt(-1e6);return}const Fn=he.current.getBoundingClientRect();mt(Fn.left-30),dt(Yn)},ye=()=>{},se=zt=>{it&&en&&it(en,zt.clientX,zt.clientY,Lt)},ot=()=>{if(Lt){const zt=window.getSelection();zt.removeAllRanges(),zt.addRange(Lt)}},Xt=()=>{window.getSelection().removeAllRanges()};return(0,E.useEffect)(()=>{const zt=he.current;return zt.addEventListener("mousemove",pe),zt.addEventListener("mouseleave",ye),()=>{zt.removeEventListener("mousemove",pe),zt.removeEventListener("mouseleave",ye),Xt()}},[bt]),E.createElement("div",{className:ct["hover-line-container2"]},Zt!==null&&E.createElement("div",{className:ct["line-button-container"],style:{top:Zt,left:Ue},onMouseEnter:()=>{ot()},onMouseLeave:()=>{Xt(),Pt(null),dt(""),pn(null)}},E.createElement("div",{className:ct.button,onClick:se},E.createElement("img",{src:lt}),E.createElement("span",null,"AI\u6539\u5199"))))}),Re={toolbar:"toolbar___qYQBF","chat-dialog":"chat-dialog___AUJYU",button:"button___VhNes"},pt=({nodeRef:bt,noRestrictModal:it})=>{const[Le,Ue]=(0,E.useState)(null),[mt,Zt]=(0,E.useState)(null),[Pt,en]=(0,E.useState)(!1),[dt,Lt]=(0,E.useState)(null),[pn,he]=(0,E.useState)(!1),[le,ae]=(0,E.useState)(!1),pe=bt,ye=(0,E.useRef)(null),se=(0,E.useRef)(null),[ot,Xt]=(0,E.useState)("");(0,E.useEffect)(()=>{Le!=null&&Le.toString()&&Xt(Le==null?void 0:Le.toString())},[Le==null?void 0:Le.toString()]);const zt=()=>{const Fn=window.getSelection(),or=pe.current.scrollTop,ra=pe.current.getBoundingClientRect();if(Fn.rangeCount>0&&Fn.toString().length>0){const ur=Fn.getRangeAt(0);Ue(ur.cloneRange());const rr=ur.getBoundingClientRect(),Xr=40;let Vr=rr.top+or-5+Xr;Vr<or&&(Vr=rr.bottom-ra.top+or+5);const xr=pe.current.scrollHeight-Xr;Vr=Math.min(Math.max(Vr,or),xr),Zt({top:Vr+6,left:rr.left})}else Ue(null),Zt(null),en(!1);on(Fn)},on=Fn=>{if(!Fn||Fn.rangeCount===0){he(!1);return}const ra=Fn.getRangeAt(0).getBoundingClientRect(),ur=window.getComputedStyle(pe.current),rr=parseInt(ur.lineHeight),Xr=parseInt(ur.paddingTop),Vr=pe.current.scrollTop,xr=pe.current.getBoundingClientRect(),Dn=ra.top-xr.top+Vr,pa=Math.floor((Dn-Xr)/rr),Jn=Xr+pa*rr-Vr;Lt(Jn),he(!0)},Kt=Fn=>{pe.current&&!pe.current.contains(Fn.target)&&ae(!1)};(0,E.useEffect)(()=>{const Fn=pe.current;return Fn.addEventListener("scroll",zt),Fn.addEventListener("input",zt),Fn.addEventListener("click",zt),Fn.addEventListener("mouseup",zt),Fn.addEventListener("keyup",zt),Fn.addEventListener("click",zt),document.addEventListener("mousedown",Kt),()=>{Fn.removeEventListener("scroll",zt),Fn.removeEventListener("input",zt),Fn.removeEventListener("click",zt),Fn.removeEventListener("mouseup",zt),Fn.removeEventListener("keyup",zt),Fn.removeEventListener("click",zt),document.removeEventListener("mousedown",Kt)}},[]);const Yn=(Fn=!0,or)=>{if(!Le)return;const ra=se.current.querySelector("section.edu_md").innerHTML.replace(/<p[^>]*>([\s\S]*?)<\/p>/g,"$1"),ur=Le.cloneRange(),rr=window.getSelection();if(rr.removeAllRanges(),rr.addRange(ur),Fn){ur.deleteContents();const Xr=document.createElement("div");Xr.innerHTML=ra;const Vr=Array.from(Xr.childNodes);for(;Vr.length>0;)ur.insertNode(Vr.pop())}else{ur.collapse(!1);const Xr=document.createElement("div");Xr.innerHTML=" "+ra;const Vr=Array.from(Xr.childNodes);for(;Vr.length>0;)ur.insertNode(Vr.pop())}rr.removeAllRanges(),Ue(null),en(!1),Zt(null)};return E.createElement("section",{ref:se},mt&&E.createElement("div",{ref:ye,className:Re.toolbar,style:{top:mt==null?void 0:mt.top,left:mt==null?void 0:mt.left}},E.createElement("div",{className:Re.button,onClick:()=>en(!0)},E.createElement("img",{src:lt}),E.createElement("span",null,"AI\u6539\u5199"))),E.createElement(ft,{key:JSON.stringify(mt),noRestrictModal:it,visible:Pt,position:mt,selectText:ot,applyRefinedText:Yn,fetchUrl:"/api/stream/intelligent_imports/stream.json"}),pe.current&&E.createElement(xt,{ref:pe,onButtonClick:(Fn,or,ra,ur)=>{Ue(ur),en(!0),Xt(Fn),Zt({left:or,top:ra+20})}}))}},66915:function(It,kt,ne){"use strict";ne.d(kt,{Z:function(){return He}});var E=ne(59301),ve=ne(62957),Pe={num:"num___VQiqB"},He=({visible:_e,usedCount:ze,totalCount:nt,onOk:Fe,onCancel:We})=>{const Xe=()=>ze>0?E.createElement("div",null,"\u672C\u6B21\u5C06\u6D88\u80171\u6B21\u5927\u6A21\u578B\u4F7F\u7528\u673A\u4F1A\uFF08\u6BCF\u65E5",nt,"\u6B21\u673A\u4F1A\uFF0C\u4ECA\u65E5\u5269\u4F59",E.createElement("span",{className:Pe.num},ze),"\u6B21\uFF09\uFF0C\u786E\u5B9A\u64CD\u4F5C\u5417\uFF1F"):E.createElement("div",{className:"mb20"},"\u4ECA\u65E5\u5927\u6A21\u578B\u4F7F\u7528\u673A\u4F1A\u5DF2\u7528\u5B8C\uFF08\u6BCF\u65E5",nt,"\u6B21\u673A\u4F1A\uFF0C\u4ECA\u65E5\u5269\u4F59",E.createElement("span",{className:Pe.num},ze),"\u6B21\uFF09\u3002");return E.createElement(ve.default,{centered:!0,open:_e,zIndex:1e4,title:"\u63D0\u793A",width:620,onCancel:We,onOk:Fe,footer:ze>0?void 0:null},Xe())}},83928:function(It,kt,ne){"use strict";ne.d(kt,{Z:function(){return be},Q:function(){return Ne}});var E=ne(59301),ve={container:"container___DAVRd",katex:"katex___oS9Qs",liWrap:"liWrap___pAkIe",backBottom:"backBottom___kT237",imgBox:"imgBox___O8q6M"},Pe=ne(74410),Te=ne(14185),He=ne(8191),_e=ne(23420),ze=ne(57226),nt=ne(85284),Fe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHAAAAB4CAYAAAAqs3YmAAAAAXNSR0IArs4c6QAADGlJREFUeF7tnVlQHMcZx7/umT0AcSjGBonDOmxdgV2Ww0iWIsmxrfIhJ1VJ2W+uilgEjqtclTwmLxQvyYur8uCKY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ntQLIlk7T+vQLhRWtqrLO2y0/8zrNSPJ+lypXNYBZCe7t+nT/DmUt1+9tMaG8NgW7DYzI1srrKdpsB4hskH9OyJw+9wJ19lU5aOmHGAqrjo9Pne/NLApGMLVS2wJDeY68dlP/+C6o8eHXpvI05CjQzvUCVWsLEF4rqis6mQq0zqyFiATsLF1aFdI051hhBQM9ELPG65rZrSKSCLx3RxP3FfXFACbDAM9ne4bei8GXrusBsjEuPeB6oJECMYdVDqvTm/gEe9gG5VnRv1bQgrZipAUWyq7x0eKIWY9wEh6nzewbcmcbMlNCsYlO75WLDlv65kvsuWxEMEbQmGlUp0BEHXJuk0cJk5QvwOcQohZDzAqbGPzYEmIEk880WOjVUATMlYmqYJn7cg2R2zziIQxCilKDgYpHxAtpAgt+0EENmDJr3T1zY4ESkNh8KwGxDUDkEFir9FNj47vWO7NWp4uVG3L5nm51HHh9Ikdo4sXjL98NSCuKYBRcZ9ouVI4Rie34TAqMfSlCkKDsoS+eLrM9XW8JbLG5tRDXJMAoyCffuWy49bMZAWiUikgqZACiaVkLNcaI/NJCrfA7vjm8IZt3yVa20w1xDUNUA3p+effkm4U7Cqcg2A+AruNymDH80RSHPKcTVLmbITM27E0k8zD2FRCFACTvfFxllsOopQr9fYeq7rJ6S5mzg2wrsl3SD0SEx891y99PIgU0MRAl+tj/V6WWvIDPOJvVH9WQ2w7wCe9FiLTr6/D3cPnZdGaH2DLUCVVFHeyFWZKuVQmBrP36MPzZBtCNFiG7w8Yef2bG+BCptVudapcpkDhiTOVAHniSGTLDTA6IZ4YnvJkM8SsBsggRl5pbj1fASFlQ6IlpkRXkRWPZwrA/wPlJnpuyspBOgAAAABJRU5ErkJggg==",We=ne(92310),Xe=ne.n(We),$e=ne(6767),vt=ne(10345),Ye=(Ie,Ke,at)=>new Promise((fe,qe)=>{var st=ct=>{try{ft(at.next(ct))}catch(Je){qe(Je)}},wt=ct=>{try{ft(at.throw(ct))}catch(Je){qe(Je)}},ft=ct=>ct.done?fe(ct.value):Promise.resolve(ct.value).then(st,wt);ft((at=at.apply(Ie,Ke)).next())});const Ne={contentRef:{current:null},value:null,status:!1,open:()=>Ye(void 0,null,function*(){}),close:()=>{}};var be=({className:Ie,style:Ke,onChange:at,onSuccess:fe,onCancel:qe,onError:st,fetchUrl:wt,noRestrictModal:ft=()=>{},showEditableToolbar:ct,bottomOffset:Je=110,loadingText:ut,showEmptyData:Se=!0,onStatusChange:Ve,stringTransformer:Ae,bottomContainerNode:tt})=>{const[Dt,lt]=(0,E.useState)(!1),[Qe,xt]=(0,E.useState)(""),[Re,me]=(0,E.useState)(0),[pt,bt]=(0,E.useState)(!1),it=(0,E.useRef)(null),Le=(0,E.useRef)(null),Ue=(0,E.useRef)(null),mt=(0,E.useRef)(null),Zt=(0,ze.Z)({scrollBoxRef:mt,bottomInspectRef:Ue,contentRef:Le,status:pt,bottomOffset:Je}),Pt=Dt||pt;(0,E.useEffect)(()=>{at==null||at(Qe)},[Qe]);const[en,dt]=(0,E.useState)([]);(0,E.useEffect)(()=>{Ve==null||Ve({contentRef:Le,status:Pt,value:Qe,open:Lt,close:pn})},[Pt,Qe]);const Lt=le=>Ye(void 0,null,function*(){lt(!0),xt(""),dt([]),me(0);const ae=wt;le!=null&&le.fetchUrl&&delete le.fetchUrl,it.current=new Pe.Z(`${Te.Z.API_SERVER}${ae}`,le),yield new Promise((pe,ye)=>{it.current.on("data",se=>{var ot;let{chunk:{content:Xt,type:zt}}=se;bt(!0),zt==="text"&&xt(on=>Ae?Ae(on+Xt):on+Xt),zt==="knowledge"&&(console.log("---knowledge-",se==null?void 0:se.chunk),dt((ot=se==null?void 0:se.chunk)==null?void 0:ot.content))}),it.current.on("done",()=>{pe()}),it.current.on("error",se=>{Object.prototype.toString.call(se)==="[object Object]"&&se.status===-1&&$e.ZP.warning((se==null?void 0:se.message)||""),pe(),st==null||st(se)}),it.current.on("cancelled",()=>{pe(),qe==null||qe()}),it.current.startStream()}),lt(!1)}),pn=()=>{var le,ae;me(1),(ae=(le=it.current)==null?void 0:le.cancelRequest)==null||ae.call(le),lt(!1),bt(!1)},he=(0,E.useMemo)(()=>Le.current?E.createElement(_e.Z,{noRestrictModal:ft,nodeRef:Le}):E.createElement(E.Fragment,null),[Le.current]);return E.createElement(E.Fragment,null,E.createElement("div",{className:Xe()(ve.container,Ie),style:Ke,ref:mt},E.createElement("div",{ref:Le,className:ve.liWrap,contentEditable:!Pt},Qe&&E.createElement(He.Z,{cancelIndex:Re,streamingStatus:Dt,loadImage:!1,onFinish:()=>Ye(void 0,null,function*(){me(0),setTimeout(()=>bt(!1),0),fe==null||fe(Qe)}),value:Qe}),(en==null?void 0:en.length)>0&&E.createElement(vt.Z,{Filelist:en})),!Qe&&!Pt&&E.createElement("div",{className:ve.imgBox},E.createElement("img",{width:56,src:Fe}),E.createElement("span",null,"\u9884\u89C8\u533A")),Se&&Pt&&E.createElement(nt.Z,{text:ut}),!Zt&&E.createElement("div",{className:ve.backBottom,onClick:()=>{mt.current.scrollTop=mt.current.scrollHeight}},E.createElement("i",{className:"iconfont icon-huidaodibu"})),E.createElement("div",{ref:Ue}),tt),!Pt&&ct&&he)}},85284:function(It,kt,ne){"use strict";ne.d(kt,{Z:function(){return Te}});var E=ne(59301),ve={loading:"loading___SifAS",dot:"dot___J5R0d","dot-fade":"dot-fade___BPUGC"},Te=({text:He})=>E.createElement("div",null,E.createElement("div",{className:ve.loading},E.createElement("div",{className:ve.dot}),E.createElement("div",{className:ve.dot}),E.createElement("div",{className:ve.dot})),!!He&&E.createElement("div",{className:"mt5"},He))},49998:function(It,kt,ne){"use strict";ne.d(kt,{o:function(){return E}});const E=ve=>(ve=ve.replace(new RegExp("(?<!\\*)\\*\\*\\*\\*([^\\n*]+?)\\*\\*\\*\\*(?!\\*)","g"),'<h2 data-select="disabled" data-type="title" contenteditable="false" class="c-black">$1</h2>'),ve=ve.replace(new RegExp("(?<!\\*)\\*\\*\\*([^\\n*]+?)\\*\\*\\*(?!\\*)","g"),`
<h3 data-select="disabled" contenteditable="false" class="c-black font18">$1</h3>
`),ve)},35139:function(It,kt,ne){"use strict";ne.d(kt,{Z:function(){return vt}});var E=ne(59301),ve=ne(6767),Pe=ne(37568),Te={codeBox:"codeBox___WpkVl"},He=ne(92310),_e=ne.n(He),ze=Object.defineProperty,nt=(Ye,Ne,Be)=>Ne in Ye?ze(Ye,Ne,{enumerable:!0,configurable:!0,writable:!0,value:Be}):Ye[Ne]=Be,Fe=(Ye,Ne,Be)=>nt(Ye,typeof Ne!="symbol"?Ne+"":Ne,Be),We=(Ye,Ne,Be)=>new Promise((be,Ie)=>{var Ke=qe=>{try{fe(Be.next(qe))}catch(st){Ie(st)}},at=qe=>{try{fe(Be.throw(qe))}catch(st){Ie(st)}},fe=qe=>qe.done?be(qe.value):Promise.resolve(qe.value).then(Ke,at);fe((Be=Be.apply(Ye,Ne)).next())});class Xe extends E.Component{constructor(Ne){super(Ne),Fe(this,"canvas"),Fe(this,"randomNum",(Be,be)=>Math.floor(Math.random()*(be-Be)+Be)),Fe(this,"drawPic",()=>{this.randomCode()}),Fe(this,"reloadPic",()=>{this.drawPic()}),Fe(this,"changeCode",Be=>{console.log(Be.target.value,222),this.setState({value:Be.target.value,showError:!1})}),Fe(this,"onVerify",()=>{let Be;return this.state.value.toLowerCase()!==""&&this.state.value.toLowerCase()!==this.state.code.toLowerCase()?(Be=!0,ve.ZP.error("\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u9A8C\u8BC1\u7801"),this.reloadPic()):this.state.value.toLowerCase()===""?(Be=!0,ve.ZP.error("\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801")):this.state.value.toLowerCase()===this.state.code.toLowerCase()&&(Be=!1),this.setState({showError:Be}),Be}),this.canvas=E.createRef(),this.state={value:"",code:"",codeLength:4,fontSizeMin:20,fontSizeMax:22,backgroundColorMin:240,backgroundColorMax:250,colorMin:10,colorMax:20,lineColorMin:40,lineColorMax:180,contentWidth:96,contentHeight:38,showError:!1}}componentDidMount(){this.drawPic()}randomColor(Ne,Be){const be=this.randomNum(Ne,Be),Ie=this.randomNum(Ne,Be),Ke=this.randomNum(Ne,Be);return`rgb(${be}, ${Ie}, ${Ke})`}drawText(Ne,Be,be){Ne.fillStyle=this.randomColor(this.state.colorMin,this.state.colorMax);const Ie=this.randomNum(this.state.fontSizeMin,this.state.fontSizeMax);Ne.font=Ie+"px SimHei";const Ke=10,at=(this.state.contentWidth-40)/(this.state.code.length-1);let fe=Ke;be>0&&(fe=Ke+be*at);let qe=this.randomNum(this.state.fontSizeMax,this.state.contentHeight-5);Ie>40&&(qe=40);const st=this.randomNum(-10,10);Ne.translate(fe,qe),Ne.rotate(st*Math.PI/180),Ne.fillText(Be,0,0),Ne.rotate(-st*Math.PI/180),Ne.translate(-fe,-qe)}drawLine(Ne){for(let Be=0;Be<1;Be++)Ne.strokeStyle=this.randomColor(this.state.lineColorMin,this.state.lineColorMax),Ne.beginPath(),Ne.moveTo(this.randomNum(0,this.state.contentWidth),this.randomNum(0,this.state.contentHeight)),Ne.lineTo(this.randomNum(0,this.state.contentWidth),this.randomNum(0,this.state.contentHeight)),Ne.stroke()}drawDot(Ne){for(let Be=0;Be<100;Be++)Ne.fillStyle=this.randomColor(0,255),Ne.beginPath(),Ne.arc(this.randomNum(0,this.state.contentWidth),this.randomNum(0,this.state.contentHeight),1,0,2*Math.PI),Ne.fill()}randomCode(){let Ne="";const Be="QWERTYUPLKJHGFDSAZXCVBNMqwertyupkjhgfdsazxcvbnm1234567890";for(let be=0;be<this.state.codeLength;be++){const Ie=Math.floor(Math.random()*57);Ne+=Be[Ie]}this.setState({code:Ne},()=>{const Ie=this.canvas.current.getContext("2d");Ie.textBaseline="bottom",Ie.fillStyle=this.randomColor(this.state.backgroundColorMin,this.state.backgroundColorMax),Ie.fillRect(0,0,this.state.contentWidth,this.state.contentHeight);for(let Ke=0;Ke<this.state.code.length;Ke++)this.drawText(Ie,this.state.code[Ke],Ke);this.drawLine(Ie),this.drawDot(Ie)})}render(){const{className:Ne,width:Be=300}=this.props;return E.createElement("div",{className:_e()(Te.codeBox,Ne),style:{width:Be}},E.createElement("aside",null,E.createElement(Pe.default,{value:this.state.value,onChange:this.changeCode,placeholder:"\u8BF7\u8F93\u5165\u56FE\u7247\u4E2D\u7684\u9A8C\u8BC1\u7801"})),E.createElement("div",null,E.createElement("canvas",{onClick:this.reloadPic,ref:this.canvas,width:"100",height:"30"}),E.createElement("div",{className:"current",onClick:this.reloadPic},"\u770B\u4E0D\u6E05\uFF1F\u6362\u4E00\u5F20")))}}const $e=(Ye,Ne)=>{let Be;Modal.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:React.createElement("div",null,React.createElement("p",null,Ne),React.createElement(Xe,{ref:be=>Be=be})),onOk:()=>We(void 0,null,function*(){if(Be.onVerify())return Promise.reject();Ye()})})};var vt=Xe},23513:function(It,kt,ne){"use strict";ne.d(kt,{Z:function(){return be}});var E=ne(59301),ve=ne(18287),Pe=ne(46861),Te={flex_box_center:"flex_box_center___SFmJH",flex_space_between:"flex_space_between___f2H1D",flex_box_vertical_center:"flex_box_vertical_center___hW_hp",flex_box_center_end:"flex_box_center_end___yklmJ",flex_box_column:"flex_box_column___m0oUw",customTree:"customTree___ZhEHU",name:"name___RIkn2"},He=Object.defineProperty,_e=Object.defineProperties,ze=Object.getOwnPropertyDescriptors,nt=Object.getOwnPropertySymbols,Fe=Object.prototype.hasOwnProperty,We=Object.prototype.propertyIsEnumerable,Xe=(Ie,Ke,at)=>Ke in Ie?He(Ie,Ke,{enumerable:!0,configurable:!0,writable:!0,value:at}):Ie[Ke]=at,$e=(Ie,Ke)=>{for(var at in Ke||(Ke={}))Fe.call(Ke,at)&&Xe(Ie,at,Ke[at]);if(nt)for(var at of nt(Ke))We.call(Ke,at)&&Xe(Ie,at,Ke[at]);return Ie},vt=(Ie,Ke)=>_e(Ie,ze(Ke)),Ye=(Ie,Ke)=>{var at={};for(var fe in Ie)Fe.call(Ie,fe)&&Ke.indexOf(fe)<0&&(at[fe]=Ie[fe]);if(Ie!=null&&nt)for(var fe of nt(Ie))Ke.indexOf(fe)<0&&We.call(Ie,fe)&&(at[fe]=Ie[fe]);return at},Ne=(Ie,Ke,at)=>new Promise((fe,qe)=>{var st=ct=>{try{ft(at.next(ct))}catch(Je){qe(Je)}},wt=ct=>{try{ft(at.throw(ct))}catch(Je){qe(Je)}},ft=ct=>ct.done?fe(ct.value):Promise.resolve(ct.value).then(st,wt);ft((at=at.apply(Ie,Ke)).next())}),be=Ie=>{var Ke=Ie,{value:at,onChange:fe,defaultValue:qe,disabled:st}=Ke,wt=Ye(Ke,["value","onChange","defaultValue","disabled"]);const[ft,ct]=(0,E.useState)([]),[Je,ut]=(0,E.useState)("1");(0,E.useEffect)(()=>{Se()},[]);const Se=()=>Ne(void 0,null,function*(){const tt=yield(0,Pe.NZ)({});if(tt!=null&&tt.data){const Dt=[{title:E.createElement("div",{title:"\u6839\u76EE\u5F55",className:Te.name},"\u6839\u76EE\u5F55"),value:0,key:0,icon:E.createElement("i",{className:"iconfont icon-wenjianjia2 c-light-primary mr10",style:{lineHeight:"19px"}}),children:Ve(tt.data||[])}];ct(Dt),ut("2")}}),Ve=tt=>{function Dt(lt){const Qe=lt.children,xt=Array.isArray(Qe)&&Qe.length>0,Re=lt==null?void 0:lt.group_id;return{title:E.createElement("div",{title:lt==null?void 0:lt.name,className:Te.name},lt==null?void 0:lt.name),value:Re,key:Re,icon:E.createElement("i",{className:"iconfont icon-wenjianjia2 c-light-primary mr10",style:{lineHeight:"19px"}}),children:xt?Qe==null?void 0:Qe.map(me=>Dt(me)):[]}}return tt==null?void 0:tt.map(lt=>Dt(lt))},Ae=qe?{defaultExpandedKeys:[0],defaultSelectedKeys:[0]}:{selectedKeys:at,defaultExpandedKeys:at};return E.createElement("div",{className:Te.customTree},E.createElement(ve.default,$e(vt($e({key:Je},Ae),{showIcon:!0,treeData:ft,onSelect:fe,disabled:st}),wt)))}},34300:function(It,kt,ne){"use strict";ne.d(kt,{Z:function(){return Te}});var E=ne(59301),ve={digitalLabel:"digitalLabel___tImKs",active:"active___Ck70Q"},Te=({number:He,active:_e,className:ze})=>E.createElement("div",{className:`${ve.digitalLabel} ${_e?ve.active:""} ${ze}`},He)},24424:function(It,kt,ne){"use strict";ne.d(kt,{Z:function(){return Ie}});var E=ne(59301),ve=ne(18287),Pe={folderWrapper:"folderWrapper___G__0a",folderIcon:"folderIcon___oTG6c"},Te=ne(73631),He=ne(5623),_e=ne(46861),ze=Object.defineProperty,nt=Object.defineProperties,Fe=Object.getOwnPropertyDescriptors,We=Object.getOwnPropertySymbols,Xe=Object.prototype.hasOwnProperty,$e=Object.prototype.propertyIsEnumerable,vt=(Ke,at,fe)=>at in Ke?ze(Ke,at,{enumerable:!0,configurable:!0,writable:!0,value:fe}):Ke[at]=fe,Ye=(Ke,at)=>{for(var fe in at||(at={}))Xe.call(at,fe)&&vt(Ke,fe,at[fe]);if(We)for(var fe of We(at))$e.call(at,fe)&&vt(Ke,fe,at[fe]);return Ke},Ne=(Ke,at)=>nt(Ke,Fe(at)),Be=(Ke,at,fe)=>new Promise((qe,st)=>{var wt=Je=>{try{ct(fe.next(Je))}catch(ut){st(ut)}},ft=Je=>{try{ct(fe.throw(Je))}catch(ut){st(ut)}},ct=Je=>Je.done?qe(Je.value):Promise.resolve(Je.value).then(wt,ft);ct((fe=fe.apply(Ke,at)).next())}),Ie=({value:Ke,onChange:at,scrollId:fe})=>{const[qe,st]=(0,E.useState)([]);(0,E.useEffect)(()=>{wt()},[]);const wt=()=>Be(void 0,null,function*(){const Ve=yield(0,_e.NZ)({});if(Ve!=null&&Ve.data){const Ae=[{title:"\u6839\u76EE\u5F55",value:0,key:0,icon:E.createElement("img",{src:Te,className:Pe.folderIcon}),isLeaf:!1,children:ft(Ve.data||[])}];st(Ae)}}),ft=Ve=>Ve.map(Ae=>({title:Ae.name,key:Ae.group_id,icon:E.createElement("img",{src:Te,className:Pe.folderIcon}),isLeaf:Ae.children.length===0,children:ft(Ae.children)})),ct=(Ve,Ae,tt)=>Ve.map(Dt=>Dt.key===Ae?Ye(Ye({},Dt),tt):Dt.children?Ne(Ye({},Dt),{children:ct(Dt.children,Ae,tt)}):Dt),Je=(Ve,Ae,tt)=>Ve.map(Dt=>{if(Dt.key===Ae)return Ne(Ye({},Dt),{icon:tt?E.createElement("img",{src:He,className:Pe.folderIcon}):E.createElement("img",{src:Te,className:Pe.folderIcon})});if(Dt.children)return Ne(Ye({},Dt),{children:Je(Dt.children,Ae,tt)})}),ut=(Ve,Ae)=>{st(tt=>Je(tt,Ae.node.key,Ae.expanded))},Se=Ke?{selectedKeys:Ke,defaultExpandedKeys:Ke}:{};return qe.length>0&&E.createElement("div",{id:fe||""},E.createElement(ve.default,Ye({showLine:{showLeafIcon:!1},showIcon:!0,treeData:qe,className:Pe.folderWrapper,onSelect:at,onExpand:ut},Se)))}},44240:function(It,kt,ne){"use strict";ne.d(kt,{Z:function(){return _e}});var E=ne(37639),ve={text:"text___FxbAX",wrap:"wrap___UlBQ1",contact:"contact____pUDq",img:"img___BapAv"},Pe=ne(32637),Te=ne(59301),_e=({type:ze,style:nt})=>{const Fe=Te.createElement("div",{className:ve.wrap,onClick:We=>{We.preventDefault(),We.stopPropagation()}},Te.createElement("p",null,ze==="shixun"||ze==="paths"?"\u5F53\u524D\u5B9E\u8DF5\u9879\u76EE\u662F\u9AD8\u6D88\u8017\u7C7B\u578B\u7684\u5B9E\u9A8C\u3002":"\u5F53\u524D\u8BD5\u5377\u5305\u542B\u9AD8\u6D88\u8017\u7C7B\u578B\u7684\u5B9E\u9A8C\u3002",Te.createElement("br",null),"\u6839\u636E\u5E73\u53F0\u4F7F\u7528\u89C4\u5219\uFF0C\u9700\u8981\u6388\u6743\u624D\u80FD\u4F7F\u7528\u3002",ze==="paths"?"\u53D1\u9001\u5230\u8BFE\u5802":"\u53D1\u5E03","\u4F7F\u7528\u4E4B\u524D\uFF0C\u8BF7\u5148\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u83B7\u53D6\u6388\u6743\u7801\u3002"),Te.createElement("div",{className:ve.contact},Te.createElement("div",{className:ve.img},Te.createElement("img",{src:Pe,width:"124px",height:"124px"})),Te.createElement("div",{className:"tc font14 mt10",style:{color:"#777A93"}},"\u626B\u4E00\u626B\uFF0C\u83B7\u53D6\u6388\u6743\u7801")));return Te.createElement(E.Z,{content:Fe},Te.createElement("span",{className:ve.text,style:nt},"\u9AD8\u6D88\u8017"))}},40254:function(It,kt,ne){"use strict";ne.d(kt,{Z:function(){return Xe}});var E=ne(59301),ve={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},Pe=ne(92310),Te=ne.n(Pe),He=ne(29787),_e=ne(2859),ze=ne(49317),nt=ne(76406),Fe=($e,vt,Ye)=>new Promise((Ne,Be)=>{var be=at=>{try{Ke(Ye.next(at))}catch(fe){Be(fe)}},Ie=at=>{try{Ke(Ye.throw(at))}catch(fe){Be(fe)}},Ke=at=>at.done?Ne(at.value):Promise.resolve(at.value).then(be,Ie);Ke((Ye=Ye.apply($e,vt)).next())}),Xe=({data:$e,className:vt,fullWidth:Ye,style:Ne={},onClose:Be,onOk:be,showFullTools:Ie,noAssociationId:Ke})=>{const at=(0,E.useRef)(null),fe=(0,E.useRef)(null),qe=(0,E.useRef)(null),st=(0,E.useRef)(null),[wt,ft]=(0,E.useState)(!1),[ct,Je]=(0,E.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,E.useEffect)(()=>(qe.current||(qe.current=document.createElement("style"),document.head.appendChild(qe.current)),$e!=null&&$e.visible?(document.body.setAttribute("data-custom","y-hidden"),qe.current.innerHTML=" html { overflow-y: hidden; }",$e!=null&&$e.src&&ut()):(document.body.removeAttribute("data-custom"),qe.current&&(document.head.removeChild(qe.current),qe.current=null)),()=>{document.body.removeAttribute("data-custom"),qe.current&&(document.head.removeChild(qe.current),qe.current=null)}),[$e==null?void 0:$e.visible]);const ut=()=>Fe(void 0,null,function*(){ft(!0),Je("\u6B63\u5728\u52A0\u8F7D\u4E2D");const tt=yield(0,nt.ZJ)($e==null?void 0:$e.src);at.current.src="",at.current.src=tt,at.current.onload=function(){Ae()},ft(!1),Je("")}),Se=tt=>Fe(void 0,null,function*(){ft(!0),Je("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Dt=yield(0,ze.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:$e.title,file:tt.dataUrl}});Dt!=null&&Dt.id&&!Ke?(yield(0,ze.ZP)(`/api/attachments/${$e.id}/add_subitem.json`,{method:"post",body:{subitem_id:Dt==null?void 0:Dt.id,settings:JSON.stringify(tt.state)}})).status===0&&be():Dt!=null&&Dt.id&&be(Dt),ft(!1),Je("")}),Ve=()=>{const tt=document.querySelector('a[href="https://markerjs.com/"]');tt&&tt.parentNode&&(tt.parentNode.style.display="none"),[{name:'[data-action="select"]',title:"\u9009\u62E9"},{name:'[data-action="delete"]',title:"\u5220\u9664\u5143\u7D20"},{name:'[data-action="undo"]',title:"\u64A4\u9500"},{name:'[data-type-name="FrameMarker"]',title:"\u77E9\u5F62"},{name:'[data-type-name="FreehandMarker"]',title:"\u753B\u7EBF"},{name:'[data-type-name="ArrowMarker"]',title:"\u7BAD\u5934"},{name:'[data-type-name="TextMarker"]',title:"\u6587\u672C"},{name:'[data-type-name="EllipseMarker"]',title:"\u692D\u5706"},{name:'[data-type-name="HighlightMarker"]',title:"\u65B9\u5757"},{name:'[data-type-name="CalloutMarker"]',title:"\u6CE8\u91CA"},{name:'[data-action="render"]',title:"\u4FDD\u5B58"},{name:'[data-action="close"]',title:"\u9000\u51FA"}].forEach(lt=>{const Qe=document.querySelector(lt.name);Qe&&Qe.setAttribute("title",lt.title)})},Ae=()=>{fe.current=new _e.hP(at.current),fe.current.targetRoot=st.current,fe.current.addEventListener("render",Se),fe.current.addEventListener("beforeclose",Be),Ie&&(fe.current.availableMarkerTypes=fe.current.ALL_MARKER_TYPES,fe.current.uiStyleSettings.redoButtonVisible=!0,fe.current.uiStyleSettings.notesButtonVisible=!0,fe.current.uiStyleSettings.zoomButtonVisible=!0,fe.current.uiStyleSettings.zoomOutButtonVisible=!0,fe.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=fe.current.uiStyleSettings,fe.current.show(),$e!=null&&$e.snapshotData&&fe.current.restoreState($e.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Ve()},300)};return E.createElement(E.Fragment,null,($e==null?void 0:$e.visible)&&E.createElement(He.Z,{spinning:wt,tip:ct,style:{position:"absolute",width:"100vw"}},E.createElement("div",{ref:st,className:Te()(ve.imageDimensions,vt,Ye?ve.fullWidth:""),style:Ne},E.createElement("img",{className:ve.img,ref:at}))))}},32648:function(It,kt,ne){"use strict";ne.d(kt,{Z:function(){return pe},$:function(){return ae}});var E=ne(59301),ve={flex_box_center:"flex_box_center___ILe3s",flex_space_between:"flex_space_between___c0XhE",flex_box_vertical_center:"flex_box_vertical_center___Iusj1",flex_box_center_end:"flex_box_center_end___DIVMO",flex_box_column:"flex_box_column___x06LA",intelligentBox:"intelligentBox___M5xO7",red:"red___oyEWt",imgBox:"imgBox___DdoNI",underpin:"underpin___fwUex",row:"row___W9MrK",leftLayout:"leftLayout___MMjoZ",rightLayout:"rightLayout___EsxRX",head:"head___Q7Od8",centerBox:"centerBox___j58Ut",title:"title___rMcNx",tip:"tip___gLHFS",leftBox:"leftBox___DJ6lp",question:"question___THjM9",rightBox:"rightBox___CuMdf",error:"error___PHzCG",actionHead:"actionHead___vTHMx",edit:"edit___EaRLy",option:"option___z4UTy",active:"active___o8wNJ",fill:"fill___g760n",text:"text___L_lug",liWrap:"liWrap___LDwxe",li:"li___k4Mcf",buttonFixed:"buttonFixed___QxKdm",buttonWrap:"buttonWrap___OEep5",button:"button___b2y4h",menu:"menu___aQ4xO",tabs:"tabs___QmlP4",dotLoading:"dotLoading___zUYOu",showHide:"showHide___fHrAG"},Pe=ne(92310),Te=ne.n(Pe),He=ne(28284),_e=ne(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xCN6y4BcCuFTCrx2U8XOHN9dabmCbr6/NDq4RjO2fdLo1MfOy2Gw+mrb+Z6OC9qpUDA4fzn8ICbfb4wXm4XI4EKQE0MrS+GO8zOvXxwauew/iTQhBWNnhEhN9KLM19boyRQA6apSMS2t84fe7yRTCYPHhKTQFM2NPsCsNKfddTGYjgJ1ARpNCahOiJF9sXiTIkEGjWh3xy4lINS5EigPkPzSQlVEmheg/4MSKA+O9PJ/a/QIfoKNS1Cqz/9E6OFLRQhuo0IhQa9SdCNvB63UKRoKS0UGtQnQYvZ6sxCk/D1OIke6IbG1z8T8f1Al7ZUhE+g0paK+vRpU5O+ROObmvSnTsk6gVBsKyQV+gSCEEgbe/X5o5NYgW6/u5m+Q1vr0SJ0C+gKpJdbdIkHnNMRSK+XBSwBU05VIL3giaHdhayKQHrFugsCsCX9CKRDDrCUu5jvJJCOGeki/CBK00E/QVA0WIOO2jIIP4jW8/OSP8u/m/aksJr16LC7IMj2sEbzuEkBnmdFo+u9PG7yNxidqHC3DAxxAAAAAElFTkSuQmCC",qe=ne(49317),st=ne(24424),wt=ne(5623),ft=ne(46214),ct=ne(71039),Je=ne(53332),ut=ne(15342),Se=ne.n(ut),Ve=(ye,se,ot)=>new Promise((Xt,zt)=>{var on=Fn=>{try{Yn(ot.next(Fn))}catch(or){zt(or)}},Kt=Fn=>{try{Yn(ot.throw(Fn))}catch(or){zt(or)}},Yn=Fn=>Fn.done?Xt(Fn.value):Promise.resolve(Fn.value).then(on,Kt);Yn((ot=ot.apply(ye,se)).next())}),tt=E.memo(({tagName:ye="div",value:se="",className:ot,style:Xt={},onBlur:zt,id:on})=>{const Kt=(0,E.useRef)(null);(0,E.useEffect)(()=>{if(!Kt.current)return;Ve(void 0,null,function*(){const or=Kt.current;or.innerHTML="";const ra=se==null?void 0:se.split(/(`?\$\$[\s\S]*?\$\$`?)/g);for(const ur of ra)if(ur.startsWith("$$")&&ur.endsWith("$$")||ur.startsWith("`$$")&&ur.endsWith("$$`")){const rr=ur.startsWith("`$$")?ur.slice(3,-3):ur.slice(2,-2),Xr=document.createElement("span");Xr.setAttribute("contentEditable","false"),Xr.setAttribute("title",ur),Xr.className="edu_latex",or.appendChild(Xr),Se().render(rr,Xr,{throwOnError:!1})}else{const rr=ur==null?void 0:ur.replace(/<[^>]*>/g,Xr=>Xr.startsWith("<img")?Xr:Xr.replace(/</g,"&lt;"));or.insertAdjacentHTML("beforeend",rr)}})},[on]);const Yn=()=>{var Fn,or;if(zt&&Kt.current){const ur=Kt.current.cloneNode(!0),rr=ur.querySelectorAll("span.edu_latex");for(let Xr of rr){const Vr=Xr.getAttribute("title"),xr=document.createTextNode(Vr||""),Dn=Xr;(or=(Fn=Dn.parentNode)==null?void 0:Fn.replaceChild)==null||or.call(Fn,xr,Dn)}zt(ur.innerHTML)}};return E.createElement(E.Fragment,null,E.createElement(ye,{ref:Kt,contentEditable:!0,className:ot,style:Xt,onBlur:Yn}))}),Dt=ne(15267),lt=ne(33156),Qe=ne(14468),xt=ne(30935),Re=ne(76406),me=Object.defineProperty,pt=Object.defineProperties,bt=Object.getOwnPropertyDescriptors,it=Object.getOwnPropertySymbols,Le=Object.prototype.hasOwnProperty,Ue=Object.prototype.propertyIsEnumerable,mt=(ye,se,ot)=>se in ye?me(ye,se,{enumerable:!0,configurable:!0,writable:!0,value:ot}):ye[se]=ot,Zt=(ye,se)=>{for(var ot in se||(se={}))Le.call(se,ot)&&mt(ye,ot,se[ot]);if(it)for(var ot of it(se))Ue.call(se,ot)&&mt(ye,ot,se[ot]);return ye},Pt=(ye,se)=>pt(ye,bt(se)),en=(ye,se,ot)=>new Promise((Xt,zt)=>{var on=Fn=>{try{Yn(ot.next(Fn))}catch(or){zt(or)}},Kt=Fn=>{try{Yn(ot.throw(Fn))}catch(or){zt(or)}},Yn=Fn=>Fn.done?Xt(Fn.value):Promise.resolve(Fn.value).then(on,Kt);Yn((ot=ot.apply(ye,se)).next())});const dt=ye=>{ye.preventDefault();let ot=(ye.clipboardData||window.clipboardData).getData("Text");document.execCommand("insertText",!1,ot)},Lt=ye=>{ye.key==="Enter"&&ye.preventDefault()},pn=({children:ye,style:se})=>E.createElement("div",{className:ve.leftBox,style:se,onPaste:dt},ye),he=({children:ye,style:se,className:ot})=>E.createElement("div",{className:Te()(ve.rightBox,ot),style:se,onPaste:dt},ye),le=({className:ye,style:se={},width:ot=1200,onCancel:Xt=()=>{},onSuccess:zt=()=>{},gather:on={},mode:Kt=1,stickyTop:Yn=0,subDisciplineId:Fn=[],hideWordFeatures:or,dataSource:ra=[],customLeftHeadNode:ur,customRightHeadNode:rr,customLeftContent:Xr,hideRecognition:Vr=!1,onExchange:xr,isSingleSelection:Dn=!1,underpinBackgroundStyle:pa={},headExtraNode:Jn,isRefreshItemBank:Vn=!1,okText:ha="\u786E\u5B9A\u5BFC\u5165",onSave:Ti})=>{var Ni;const[Ir,Sn]=(0,E.useState)(1),[ir,Fa]=(0,E.useState)(0),[$a,Jr]=(0,E.useState)(""),[na,Qa]=(0,E.useState)(!1),[Kr,qa]=(0,E.useState)([]),[aa,Wn]=(0,E.useState)([]),[Rn,cn]=(0,E.useState)(!1),[fn,wn]=(0,E.useState)(!1),[nn,Kn]=(0,E.useState)(!1),[Jt,On]=(0,E.useState)(!1),[hr,yr]=(0,E.useState)([]),[Ar,la]=(0,E.useState)(1),[Er,Qt]=(0,E.useState)(!1),[_n,br]=(0,E.useState)(!0),[Nr,qr]=(0,E.useState)(0),[Xa,si]=(0,E.useState)(!1),[so]=He.default.useForm(),[Mn]=He.default.useForm(),Rr=(0,E.useRef)(null),jn=(0,E.useRef)(null),tl=(0,E.useRef)(),Zo=(0,E.useRef)(null),Ct=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],rn=["C","C++","Java","Python","JavaScript","Ruby"];(0,E.useEffect)(()=>{ra!=null&&ra.length&&Pi(ra)},[ra]),(0,E.useEffect)(()=>{Ir===2&&Rr.current.focus()},[Ir]),(0,E.useEffect)(()=>{nn&&Nt()},[nn]);const Mt=()=>{if(Ir===1){_e.ZP.warning("\u8BF7\u5148\u4E0A\u4F20\u8BD5\u9898\uFF01");return}ze.default.confirm({centered:!0,icon:null,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u6E05\u7A7A\u64CD\u4F5C\u5C06\u5220\u9664\u8BD5\u9898\u7F16\u8F91\u533A\u57DF\u7684\u5168\u90E8\u5185\u5BB9\uFF0C\u786E\u5B9A\u4E00\u952E\u6E05\u7A7A\u5417\uFF1F",onOk:()=>en(void 0,null,function*(){Sn(1)})})},Nt=()=>en(void 0,null,function*(){const De=yield(0,qe.ZP)("/api/disciplines.json",{method:"get",params:{source:Kt===1?"new_question":"subject"}});yr(De.disciplines||[])}),sr=De=>{const jt=[],hn=(Cn,_t)=>{Cn.length>=2&&jt.push(Cn.join(""));for(let $t=_t;$t<De.length;$t++)Cn.push(De[$t]),hn(Cn,$t+1),Cn.pop()};return hn([],0),jt},Hn=De=>(De=De||"",De=String(De),De=De.replace(/\s+/g,""),De),vn=De=>(De=De||"",De=String(De),De=De.replace(/<div>/g,""),De=De.replace(/<br>/g,`
`),De=De.replace(/<\/div>/g,`
`),De=Pr(De),De),Fr=De=>De.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;"),Pr=De=>De.replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&amp;/g,"&").replace(/&quot;/g,'"').replace(/&#39;/g,"'"),Or=De=>{var jt;const hn=De.clipboardData;if(hn){const Cn=hn.types.toString(),_t=hn.items;if(Cn==="Files"||hn.types.indexOf("Files")>-1){De.preventDefault();try{let $t=_t[1];((jt=_t[0])==null?void 0:jt.kind)==="file"&&($t=_t[0]);const Ut=$t.getAsFile();(0,Je.I)(Ut,an=>{var qt;if(an.id){if(((qt=Ut==null?void 0:Ut.type)==null?void 0:qt.indexOf("image"))>-1){const An=`<img src='${be.Z.API_SERVER}${an.url}'>`;document.execCommand("insertText",!1,An)}}else(an==null?void 0:an.status)===401&&(document.location.href="/user/login")})}catch($t){_e.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};function Ha(De,jt){return en(this,null,function*(){if(typeof De=="string")return yield jt(De);if(typeof De!="object"||De===null)return De;if(Array.isArray(De))return yield Promise.all(De.map(_t=>en(this,null,function*(){return yield Ha(_t,jt)})));const hn={};for(const Cn in De)if(Object.prototype.hasOwnProperty.call(De,Cn)){const _t=De[Cn];typeof _t=="string"?hn[Cn]=yield jt(_t):typeof _t=="object"?hn[Cn]=yield Ha(_t,jt):hn[Cn]=_t}return hn})}const ma=()=>en(void 0,null,function*(){var De;Qa(!0),Jr("\u5904\u7406\u4E2D"),yield new Promise(Cn=>setTimeout(Cn,1e3));let jt=(De=jn.current)==null?void 0:De.querySelectorAll('[data-text="edit"]'),hn="";try{jt.forEach(function(Cn){var _t,$t,Ut,an;const qt=Cn.cloneNode(!0),An=qt.querySelectorAll("span.edu_latex");for(let cr of An){const $n=cr.getAttribute("title"),Pa=document.createTextNode($n),ta=cr;($t=(_t=ta.parentNode)==null?void 0:_t.replaceChild)==null||$t.call(_t,Pa,ta)}const fr=qt.querySelectorAll("span[style]");for(let cr of fr)if(cr.style.fontFamily){const $n=cr.innerHTML,Pa=document.createTextNode($n),ta=cr;(an=(Ut=ta.parentNode)==null?void 0:Ut.replaceChild)==null||an.call(Ut,Pa,ta)}qt==null||qt.childNodes.forEach(function(cr){cr.nodeType===Node.ELEMENT_NODE&&cr.localName!=="h5"&&cr.localName!=="h4"?hn+=`<p>${cr.innerHTML}</p>`:cr.nodeType===Node.TEXT_NODE&&(hn+=`<p>${cr.textContent}</p>`)})}),Fo("/api/intelligent_imports/import.json",{html:Pr(hn)})}catch(Cn){console.error("\u5904\u7406\u8282\u70B9\u9519\u8BEF:",Cn)}}),Qr=De=>{let jt=De.filter(hn=>!!(hn!=null&&hn.type));return jt=jt.map(hn=>{var Cn,_t;const $t=(Cn=Ei.find(an=>an.id===(hn==null?void 0:hn.type)))==null?void 0:Cn.deal,Ut=Pt(Zt({},hn),{id:String(Math.random()).slice(-6),knowledgePoint:(_t=Hn(hn==null?void 0:hn.knowledgePoint))==null?void 0:_t.replaceAll(";","\uFF1B")});return $t?$t(Ut):Ut}),jt},za=()=>{if(Ir===1){_e.ZP.warning("\u672A\u8BC6\u522B\u5230\u8BD5\u9898!");return}ze.default.confirm({centered:!0,icon:null,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u91CD\u65B0\u8BC6\u522B\u4F1A\u8986\u76D6\u53F3\u4FA7\u5DF2\u8BC6\u522B\u7ED3\u679C\uFF0C\u5305\u62EC\u4EBA\u5DE5\u4FEE\u6539\u7684\u5185\u5BB9\uFF0C\u786E\u5B9A\u91CD\u65B0\u8BC6\u522B\u5417?",onOk:ma})},Ya=()=>E.createElement("div",{className:ve.row},E.createElement("div",{className:ve.leftLayout},E.createElement(pn,{style:{height:675}},Ir===1&&E.createElement("div",{style:{height:"100%",display:"flex",flexDirection:"column",alignItems:"center"},onClick:()=>Sn(2)},E.createElement("div",{style:{color:"#9096A3",fontSize:12}},"1.\u672C\u529F\u80FD\u652F\u6301\u5BFC\u5165\u7684\u9898\u578B\uFF1A\u5355\u9009\u9898\u3001\u591A\u9009\u9898\u3001\u586B\u7A7A\u9898\u3001\u5224\u65AD\u9898\u3001\u7B80\u7B54\u9898\u3001 \u7EC4\u5408\u9898\u3001\u7F16\u7A0B\u9898\u3001\u7A0B\u5E8F\u586B\u7A7A\u9898\u3002",E.createElement("br",null),"2.\u82E5\u8981\u5BFC\u5165\u7EC4\u5408\u9898\uFF0C\u8BF7\u5728\u9898\u76EE\u524D\u540E\u4F7F\u7528\u4E00\u5BF9\u201C","{{\u201D\u3001\u201C}}","\u201D\u5C06\u5185\u5BB9\u6807\u51FA\uFF1B\u5927\u9898\u9898\u5E72\u548C\u5C0F\u9898\u9898\u5E72\u4E4B\u95F4\u4E0D\u9700\u8981\u7A7A\u884C\uFF1B\u5927\u9898\u548C\u5C0F\u9898\u9898\u5E72\u90FD\u9700\u6807\u6CE8\u9898\u53F7\uFF1B\u5C0F\u9898\u7B54\u6848\u53EF\u8DDF\u5728\u5C0F\u9898\u9898\u5E72\u540E\uFF0C\u5E76\u7528\u7A7A\u683C\u4E0E\u9898\u5E72\u5185\u5BB9\u9694\u5F00\u3002\u8303\u4F8B\u53EF\u53C2\u8003\u63A8\u8350\u683C\u5F0F\u3002",E.createElement("br",null),"3.\u5BFC\u5165\u652F\u6301\u6587\u672C\u3001\u56FE\u7247\u3001\u516C\u5F0F\u3002\u9898\u76EE\u7ED3\u6784\u652F\u6301\u8BC6\u522B\u7B54\u6848\u3001\u89E3\u6790\u3001\u96BE\u5EA6\u3001\u77E5\u8BC6\u70B9\u3002",E.createElement("br",null),"4.\u82E5\u8BC6\u522B\u6709\u8BEF\uFF0C\u53EF\u5728\u5DE6\u4FA7\u4FEE\u6539\u9898\u76EE\u5185\u5BB9\u540E\u91CD\u65B0\u8BC6\u522B\uFF0C\u6216\u4E0B\u8F7D\u63A8\u8350\u683C\u5F0F\uFF0C\u6309\u683C\u5F0F\u4FEE\u6539\u540E\u91CD\u65B0\u5BFC\u5165\u8BC6\u522B\u3002",E.createElement("br",null)),E.createElement("div",{className:ve.imgBox,style:{marginTop:75}},E.createElement("img",{width:56,src:Ke}),E.createElement("span",null,"\u7F16\u8F91\u533A"))),Ir===2&&E.createElement("div",{"data-text":"edit",onBlur:()=>{Rr.current.innerHTML||Sn(1)},ref:Rr,contentEditable:!0,style:{color:"#9096A3",height:"100%",overflow:"auto"}}))),E.createElement("div",{className:ve.rightLayout,style:{display:"flex",alignItems:"start",justifyContent:"center"}},E.createElement("div",{className:ve.imgBox,style:{marginTop:240}},E.createElement("img",{width:56,src:at}),E.createElement("span",null,"\u9884\u89C8\u533A")))),jr=(De,jt,hn,Cn)=>{var _t;console.log(De,jt,hn,Cn,"onDataChange\u4FEE\u6539\u6570\u503C");const $t=JSON.parse(JSON.stringify(aa));Cn===void 0?$t[jt][De]=hn:$t[jt].questions[Cn][De]=hn;const Ut=Zt({},$t[jt]),an=(_t=Ei.find(qt=>qt.id===(Ut==null?void 0:Ut.type)))==null?void 0:_t.deal;$t[jt]=an(Ut),Wn($t)},Wa=(De,jt,hn)=>{var Cn;const _t=hn!==void 0,$t=(Cn=Ei.find(qt=>qt.id===(De==null?void 0:De.type)))==null?void 0:Cn.type,Ut=`${jt+1}.${hn===void 0?"":hn+1+"."}`,an=`${(De==null?void 0:De.type)==="7"?"{{":""}${Ut}\u3010${$t}\u3011${(De==null?void 0:De.question)||""}`;return E.createElement(E.Fragment,null,_t&&E.createElement("h4",{contentEditable:!0}),E.createElement(tt,{id:De==null?void 0:De.id,tagName:"div",value:an}))},Li=(De,jt)=>en(void 0,null,function*(){var hn;const Cn=yield xr(De,jt),_t=(hn=Cn==null?void 0:Cn.data)==null?void 0:hn.content;if(_t!=null&&_t.length){const $t=Qr(_t)[0];Kr.splice(jt,1,$t),aa.splice(jt,1,$t),qa([...Kr]),Wn([...aa])}}),ui=(De,jt,hn)=>{var Cn;const _t=hn!==void 0,$t=(Cn=Ei.find(an=>an.id===(De==null?void 0:De.type)))==null?void 0:Cn.type,Ut=`${jt+1}.${hn===void 0?"":hn+1+"."}`;return _t?E.createElement("div",{style:{padding:"10px 18px"}},`${Ut}\u3010${$t}\u3011`,E.createElement(tt,{id:De==null?void 0:De.id,tagName:"span",className:ve.edit,onBlur:an=>jr("question",jt,an,hn),value:(De==null?void 0:De.question)||""})):E.createElement(E.Fragment,null,E.createElement("div",{className:ve.actionHead},E.createElement("div",{className:"c-light-primary"},`${Ut}\u3010${$t}\u3011`),Kt!==1&&E.createElement(nt.Z,{disabled:(De==null?void 0:De.type)==="7",min:0,max:100,style:{width:100,marginLeft:10},addonAfter:"\u5206",precision:1,size:"middle",onChange:an=>jr("score",jt,an,hn),value:De==null?void 0:De.score}),E.createElement(Fe.Z,{align:"middle",style:{marginLeft:"auto"}},!!xr&&E.createElement("span",{className:"current c-light-primary mr30",onClick:()=>Li(De,jt)},E.createElement("i",{className:"iconfont icon-huanyihuan mr5"}),"\u6362\u4E00\u6362"),E.createElement(We.default,{onChange:an=>jr("checked",jt,an.target.checked,hn),checked:!!(De!=null&&De.checked)},"\u4E0D\u5BFC\u5165\u6B64\u9898"))),E.createElement(tt,{id:De==null?void 0:De.id,tagName:"div",style:{padding:"10px 18px"},className:ve.edit,onBlur:an=>jr("question",jt,an,hn),value:De==null?void 0:De.question}))},Sa=(De,jt,hn)=>E.createElement(E.Fragment,null,["0","1","2","4"].includes(De==null?void 0:De.type)&&E.createElement(tt,{id:De==null?void 0:De.id,value:`\u7B54\u6848\uFF1A${jt||""}`,tagName:"p"}),!hn&&E.createElement(tt,{id:De==null?void 0:De.id,value:`\u96BE\u5EA6\uFF1A${(De==null?void 0:De.difficulty)||""}`,tagName:"p"}),(De==null?void 0:De.type)!=="7"&&E.createElement(tt,{id:De==null?void 0:De.id,value:`\u89E3\u6790\uFF1A${(De==null?void 0:De.analyze)||""}`,tagName:"p"}),!hn&&E.createElement(tt,{id:De==null?void 0:De.id,value:`\u77E5\u8BC6\u70B9\uFF1A${(De==null?void 0:De.knowledgePoint)||""}`,tagName:"p"})),ia=(De,jt,hn,Cn)=>{const _t=Cn!==void 0,$t=["\u7B80\u5355","\u9002\u4E2D","\u56F0\u96BE"],Ut=_t&&!De.last&&!De.errorMsg?{marginBottom:10}:{},an=$t.map(qt=>({key:qt,label:qt,onClick:()=>jr("difficulty",hn,qt,Cn)}));return E.createElement("div",{className:ve.liWrap,style:Ut},["4"].includes(De==null?void 0:De.type)&&E.createElement("div",{className:ve.li},E.createElement("aside",null,"\u7B54\xA0\xA0\xA0\xA0\u6848\uFF1A"),E.createElement(tt,{id:De==null?void 0:De.id,tagName:"div",className:`${ve.edit} c-black`,onBlur:qt=>jr("answer",hn,[qt],Cn),value:jt})),!_t&&E.createElement("div",{className:ve.li},E.createElement("aside",null,"\u96BE\xA0\xA0\xA0\xA0\u5EA6\uFF1A"),E.createElement("div",{className:"c-black"},E.createElement(Xe.Z,{menu:{items:an}},E.createElement("span",{className:"c-light-primary"},De==null?void 0:De.difficulty,E.createElement("i",{className:"iconfont icon-a-bianzu11 font14 ml4"}))))),(De==null?void 0:De.type)!=="7"&&E.createElement("div",{className:ve.li},E.createElement("aside",null,"\u89E3\xA0\xA0\xA0\xA0\u6790\uFF1A"),E.createElement(tt,{id:De==null?void 0:De.id,tagName:"div",className:`${ve.edit} c-grey-333`,onBlur:qt=>jr("analyze",hn,qt,Cn),value:De==null?void 0:De.analyze})),!_t&&E.createElement("div",{onKeyDown:Lt,className:ve.li},E.createElement("aside",null,"\u77E5\u8BC6\u70B9\uFF1A"),E.createElement(tt,{id:De==null?void 0:De.id,tagName:"div",value:(De==null?void 0:De.knowledgePoint)||"",className:`${ve.edit} c-grey-333`,onBlur:qt=>jr("knowledgePoint",hn,Hn(vn(qt)),Cn)})))},$i=De=>E.createElement(E.Fragment,null,typeof(De==null?void 0:De.errorMsg)=="string"&&!!(De!=null&&De.errorMsg)&&E.createElement("h5",{contentEditable:!1},E.createElement("i",{className:"iconfont icon-shanchuhuanjing"}),E.createElement("div",null,De==null?void 0:De.errorMsg))),ci=De=>E.createElement(E.Fragment,null,typeof(De==null?void 0:De.errorMsg)=="string"&&!!(De!=null&&De.errorMsg)&&E.createElement("h5",null,E.createElement("i",{className:"iconfont icon-shanchuhuanjing"}),E.createElement("div",null,De==null?void 0:De.errorMsg))),ja=(De,jt,hn,Cn)=>{let _t="flex";return(Dn&&Nr!==Cn||Rn&&!(hn!=null&&hn.errorMsg))&&(_t="none"),E.createElement("div",{className:ve.row,style:{display:_t}},E.createElement("div",{className:ve.leftLayout},Xr||E.createElement(pn,null,E.createElement("div",{"data-text":"edit",contentEditable:!0,className:ve.question},De))),E.createElement("div",{className:ve.rightLayout},E.createElement(he,{className:hn!=null&&hn.errorMsg?ve.error:""},jt)))},Ei=[{id:"0",type:"\u5355\u9009\u9898",element:(De,jt,hn)=>{var Cn,_t;const $t=hn!==void 0;let Ut=(Cn=De==null?void 0:De.answer)==null?void 0:Cn[0];const an=E.createElement(E.Fragment,null,Wa(De,jt,hn),(_t=De==null?void 0:De.options)==null?void 0:_t.map((cr,$n)=>E.createElement(tt,{id:De==null?void 0:De.id,key:$n,value:`${Ct[$n]}.${cr}`,tagName:"p"})),Sa(De,Ut,$t),$i(De));let qt=$t?De:aa[jt];const An=qt==null?void 0:qt.options,fr=E.createElement(E.Fragment,null,ui(qt,jt,hn),An==null?void 0:An.map((cr,$n)=>{var Pa;return E.createElement("div",{key:$n,className:ve.option},E.createElement("aside",{className:((Pa=qt==null?void 0:qt.answer)==null?void 0:Pa[0])===Ct[$n]?ve.active:"",onClick:()=>jr("answer",jt,[Ct[$n]],hn)},Ct[$n]),E.createElement(tt,{id:qt==null?void 0:qt.id,tagName:"div",className:`${ve.text}`,onBlur:ta=>{An[$n]=ta,jr("options",jt,An,hn)},value:cr}))}),ia(qt,"",jt,hn),ci(qt));return $t?[an,fr]:ja(an,fr,qt,jt)},deal:De=>{var jt,hn,Cn;De.score=De.score===void 0?2:De.score;let _t=Hn((jt=De==null?void 0:De.answer)==null?void 0:jt[0]).toUpperCase();De.answer=_t?[_t]:[];let $t=[];if(!(De!=null&&De.options))$t.push("\u672A\u8BC6\u522B\u5230\u9009\u9879\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u201C A.\u9009\u9879\u4E00 B.\u9009\u9879\u4E8C C.\u9009\u9879\u4E09 \u201D");else{De.options=(hn=De.options)==null?void 0:hn.slice(0,15);const Ut=De.options.map(qt=>qt==null?void 0:qt.trim().replace(/^\s+|\s+$/g,""));new Set(Ut).size!==Ut.length&&$t.push("\u9009\u9879\u5185\u5BB9\u91CD\u590D")}return _t||$t.push("\u672A\u8BC6\u522B\u5230\u7B54\u6848\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u201C \u7B54\u6848\uFF1AA \u201D"),_t&&(Ct.slice(0,((Cn=De==null?void 0:De.options)==null?void 0:Cn.length)||15).includes(_t)||$t.push("\u6B63\u786E\u7B54\u6848\u8BBE\u7F6E\u6709\u8BEF\uFF0C\u8BF7\u91CD\u65B0\u8BBE\u7F6E\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u201C \u7B54\u6848\uFF1AA \u201D")),Hn(De==null?void 0:De.question)||$t.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),De.errorMsg=$t.join(`
`),De}},{id:"1",type:"\u591A\u9009\u9898",element:(De,jt,hn)=>{var Cn,_t;const $t=hn!==void 0;let Ut=(Cn=De==null?void 0:De.answer)==null?void 0:Cn[0];const an=E.createElement(E.Fragment,null,Wa(De,jt,hn),(_t=De==null?void 0:De.options)==null?void 0:_t.map((cr,$n)=>E.createElement(tt,{id:De==null?void 0:De.id,key:$n,value:`${Ct[$n]}.${cr}`,tagName:"p"})),Sa(De,Ut,$t),$i(De));let qt=$t?De:aa[jt];const An=qt==null?void 0:qt.options,fr=E.createElement(E.Fragment,null,ui(qt,jt,hn),An==null?void 0:An.map((cr,$n)=>{var Pa,ta;return E.createElement("div",{key:$n,className:ve.option},E.createElement("aside",{className:(ta=(Pa=qt==null?void 0:qt.answer)==null?void 0:Pa[0])!=null&&ta.includes(Ct[$n])?ve.active:"",onClick:()=>{var Ba;let bi=((Ba=qt==null?void 0:qt.answer)==null?void 0:Ba[0])||"";const Hi=Ct[$n];bi.includes(Hi)?bi=bi.replace(new RegExp(Hi,"g"),""):bi+=Hi,bi=bi.split("").sort().join(""),jr("answer",jt,[bi],hn)}},Ct[$n]),E.createElement(tt,{id:qt==null?void 0:qt.id,tagName:"div",className:`${ve.text}`,onBlur:Ba=>{An[$n]=Ba,jr("options",jt,An,hn)},value:cr}))}),ia(qt,"",jt,hn),ci(qt));return $t?[an,fr]:ja(an,fr,qt,jt)},deal:De=>{var jt,hn,Cn;De.score=De.score===void 0?2:De.score;let _t=Hn((jt=De==null?void 0:De.answer)==null?void 0:jt[0]).toUpperCase().split("").sort().join("");De.answer=_t?[_t]:[];let $t=[];if(!(De!=null&&De.options))$t.push("\u672A\u8BC6\u522B\u5230\u9009\u9879\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u201C A.\u9009\u9879\u4E00 B.\u9009\u9879\u4E8C C.\u9009\u9879\u4E09 \u201D");else{De.options=(hn=De.options)==null?void 0:hn.slice(0,15);const Ut=De.options.map(qt=>qt==null?void 0:qt.trim().replace(/^\s+|\s+$/g,""));new Set(Ut).size!==Ut.length&&$t.push("\u9009\u9879\u5185\u5BB9\u91CD\u590D")}if(_t||$t.push("\u672A\u8BC6\u522B\u5230\u7B54\u6848\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u201C \u7B54\u6848\uFF1AAB \u201D"),_t){const Ut=Ct.slice(0,((Cn=De==null?void 0:De.options)==null?void 0:Cn.length)||15);sr(Ut).includes(_t)||$t.push("\u6B63\u786E\u7B54\u6848\u8BBE\u7F6E\u6709\u8BEF\uFF0C\u8BF7\u91CD\u65B0\u8BBE\u7F6E\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u201C \u7B54\u6848\uFF1AAB \u201D")}return Hn(De==null?void 0:De.question)||$t.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),De.errorMsg=$t.join(`
`),De}},{id:"2",type:"\u5224\u65AD\u9898",element:(De,jt,hn)=>{var Cn,_t;const $t=hn!==void 0;let Ut=(Cn=De==null?void 0:De.answer)==null?void 0:Cn[0];const an=E.createElement(E.Fragment,null,Wa(De,jt,hn),Sa(De,Ut,$t),$i(De));let qt=$t?De:aa[jt];const An=["\u6B63\u786E","\u9519\u8BEF"];let fr=((_t=qt==null?void 0:qt.answer)==null?void 0:_t[0])||"";["\u6B63\u786E","\u5BF9","T","True","t","true"].includes(fr)?fr="\u6B63\u786E":["\u9519\u8BEF","\u9519","T","true","t","false"].includes(fr)&&(fr="\u9519\u8BEF");const cr=E.createElement(E.Fragment,null,ui(qt,jt,hn),An==null?void 0:An.map(($n,Pa)=>E.createElement("div",{key:Pa,className:ve.option},E.createElement("aside",{style:{borderRadius:2},className:fr===$n?ve.active:"",onClick:()=>jr("answer",jt,[$n],hn)},$n==="\u6B63\u786E"?"T":"F"),E.createElement("div",{style:{pointerEvents:"none"},className:`${ve.text}`},$n))),ia(qt,"",jt,hn),ci(qt));return $t?[an,cr]:ja(an,cr,qt,jt)},deal:De=>{var jt;De.score=De.score===void 0?2:De.score;let hn=Hn((jt=De==null?void 0:De.answer)==null?void 0:jt[0]);De.answer=hn?[hn]:[];let Cn=[];return hn||Cn.push("\u672A\u8BC6\u522B\u5230\u7B54\u6848\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u201C \u7B54\u6848\uFF1A\u9519\u8BEF\u201D"),hn&&!["\u6B63\u786E","\u5BF9","T","True","t","true","\u9519\u8BEF","\u9519","T","true","t","false"].includes(hn)&&Cn.push("\u6B63\u786E\u7B54\u6848\u8BBE\u7F6E\u6709\u8BEF\uFF0C\u8BF7\u91CD\u65B0\u8BBE\u7F6E\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u201C \u7B54\u6848\uFF1A\u9519\u8BEF\u201D"),Hn(De==null?void 0:De.question)||Cn.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),De.errorMsg=Cn.join(`
`),De}},{id:"3",type:"\u586B\u7A7A\u9898",element:(De,jt,hn)=>{var Cn,_t;const $t=hn!==void 0,Ut=E.createElement(E.Fragment,null,Wa(De,jt,hn),(Cn=De==null?void 0:De.answer)==null?void 0:Cn.map((An,fr)=>E.createElement(tt,{id:De==null?void 0:De.id,key:fr,tagName:"p",value:`\u7B54\u6848${fr+1}\uFF1A${An.text||""}`})),Sa(De,"",$t),$i(De));let an=$t?De:aa[jt];const qt=E.createElement(E.Fragment,null,ui(an,jt,hn),(_t=an==null?void 0:an.answer)==null?void 0:_t.map((An,fr)=>E.createElement("div",{key:fr,className:ve.option},E.createElement("aside",{className:ve.fill},"\u586B\u7A7A\u9879",fr+1),An.model===1&&E.createElement(tt,{id:an==null?void 0:an.id,tagName:"div",onBlur:cr=>{an.answer[fr].latex=vn(cr),jr("answer",jt,an.answer,hn)},className:`${ve.text}`,value:An.latex}),An.model===2&&E.createElement(ct.Z,{value:An.latex,onChange:cr=>{an.answer[fr].latex=cr,jr("answer",jt,an.answer,hn)}}))),ia(an,"",jt,hn),ci(an));return $t?[Ut,qt]:ja(Ut,qt,an,jt)},deal:De=>{var jt;De.score=De.score===void 0?2:De.score;const hn=(jt=De.answer)==null?void 0:jt.map(_t=>{if(Object.prototype.toString.call(_t)==="[object Object]")return _t;_t=_t==null?void 0:_t.trim();const $t={model:1,text:_t,latex:_t};return _t.startsWith("$$")&&_t.endsWith("$$")||_t.startsWith("`$$")&&_t.endsWith("$$`")?($t.model=2,$t.latex=_t.slice(2,-2)):$t.latex=vn(_t),$t});De.answer=hn;let Cn=[];return hn||Cn.push("\u672A\u8BC6\u522B\u5230\u7B54\u6848\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u7B54\u68481\uFF1A\u4E2D\u56FD\uFF1B\u7B54\u68482\uFF1A\u4E16\u754C"),Hn(De==null?void 0:De.question)||Cn.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),De.errorMsg=Cn.join(`
`),De}},{id:"4",type:"\u7B80\u7B54\u9898",element:(De,jt,hn)=>{var Cn,_t;const $t=hn!==void 0;let Ut=(Cn=De==null?void 0:De.answer)==null?void 0:Cn[0];const an=E.createElement(E.Fragment,null,Wa(De,jt,hn),Sa(De,Ut,$t),$i(De));let qt=$t?De:aa[jt];const An=E.createElement(E.Fragment,null,ui(qt,jt,hn),ia(qt,(_t=qt==null?void 0:qt.answer)==null?void 0:_t[0],jt,hn),ci(qt));return $t?[an,An]:ja(an,An,qt,jt)},deal:De=>{De.score=De.score===void 0?5:De.score;let jt=[];return Hn(De==null?void 0:De.question)||jt.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),De.errorMsg=jt.join(`
`),De}},{id:"6",type:"\u7F16\u7A0B\u9898",element:(De,jt)=>{var hn,Cn;const _t=aa[jt],$t=rn.slice(0,4).map(Ut=>({key:Ut,label:Ut,onClick:()=>jr("platform",jt,Ut)}));return E.createElement("div",{className:ve.row,style:{display:Rn?_t!=null&&_t.errorMsg?"flex":"none":"flex"}},E.createElement("div",{className:ve.leftLayout},E.createElement(pn,null,E.createElement("div",{"data-text":"edit",contentEditable:!0,className:ve.question},Wa(De,jt),E.createElement(tt,{id:De==null?void 0:De.id,value:`\u8BD5\u9898\u63CF\u8FF0\uFF1A${(De==null?void 0:De.description)||""}`,tagName:"p"}),Sa(De),E.createElement(tt,{id:De==null?void 0:De.id,value:`\u65F6\u95F4\u9650\u5236\uFF08\u79D2\uFF09\uFF1A${De==null?void 0:De.timeLimit}`,tagName:"p"}),E.createElement(tt,{id:De==null?void 0:De.id,value:`\u7F16\u7A0B\u8BED\u8A00\uFF1A${(De==null?void 0:De.platform)||""}`,tagName:"p"}),E.createElement("p",{contentEditable:!0},"\u5B66\u5458\u521D\u59CB\u4EE3\u7801\uFF1A"),E.createElement("h4",null),E.createElement(tt,{id:De==null?void 0:De.id,value:(De==null?void 0:De.code)||"",tagName:"div"}),(hn=De==null?void 0:De.inputs)==null?void 0:hn.map((Ut,an)=>{var qt;return E.createElement(E.Fragment,{key:an},E.createElement("h4",null),E.createElement(tt,{id:De==null?void 0:De.id,value:`\u6D4B\u8BD5\u7528\u4F8B(${an+1})\u8F93\u5165\uFF1A${Ut||""}`,tagName:"div"}),E.createElement(tt,{id:De==null?void 0:De.id,value:`\u6D4B\u8BD5\u7528\u4F8B(${an+1})\u8F93\u51FA\uFF1A${((qt=De==null?void 0:De.outputs)==null?void 0:qt[an])||""}`,tagName:"div"}))}),$i(De)))),E.createElement("div",{className:ve.rightLayout},E.createElement(he,{className:_t!=null&&_t.errorMsg?ve.error:""},ui(_t,jt),E.createElement("div",{className:ve.liWrap,style:{background:"transparent",marginBottom:0,padding:0}},E.createElement("div",{className:ve.li},E.createElement("aside",null,"\u8BD5\u9898\u63CF\u8FF0\uFF1A"),E.createElement(tt,{className:ve.edit,id:_t==null?void 0:_t.id,value:_t==null?void 0:_t.description,tagName:"div",onBlur:Ut=>jr("description",jt,Ut)}))),ia(_t,"",jt),E.createElement("div",{className:ve.liWrap},E.createElement("div",{className:ve.li},E.createElement("aside",null,"\u65F6\u95F4\u9650\u5236\uFF08\u79D2\uFF09\uFF1A"),E.createElement(tt,{className:ve.edit,id:_t==null?void 0:_t.id,value:_t==null?void 0:_t.timeLimit,tagName:"div",onBlur:Ut=>jr("timeLimit",jt,vn(Ut))})),E.createElement("div",{className:ve.li},E.createElement("aside",null,"\u7F16\u7A0B\u8BED\u8A00\uFF1A"),E.createElement("div",{className:"c-black"},E.createElement(Xe.Z,{menu:{items:$t}},E.createElement("span",{className:"c-light-primary"},_t==null?void 0:_t.platform,E.createElement("i",{className:"iconfont icon-a-bianzu11 font14 ml4"}))))),E.createElement("div",{className:ve.li,style:{flexDirection:"column",alignItems:"start"}},E.createElement("aside",{className:"mb10"},"\u5B66\u5458\u521D\u59CB\u4EE3\u7801\uFF1A"),E.createElement(tt,{className:ve.edit,id:_t==null?void 0:_t.id,value:(_t==null?void 0:_t.code)||"",onBlur:Ut=>jr("code",jt,vn(Ut)),tagName:"div"}))),(Cn=_t==null?void 0:_t.inputs)==null?void 0:Cn.map((Ut,an)=>{var qt;return E.createElement("div",{className:ve.liWrap,key:an},E.createElement("div",{className:ve.li},E.createElement("aside",null,"\u6D4B\u8BD5\u7528\u4F8B(",an+1,")\u8F93\u5165\uFF1A"),E.createElement(tt,{id:_t==null?void 0:_t.id,value:Ut||"",className:ve.edit,onBlur:An=>{const fr=[...(_t==null?void 0:_t.inputs)||[]];fr[an]=vn(An),jr("inputs",jt,fr)},tagName:"div"})),E.createElement("div",{className:ve.li},E.createElement("aside",null,"\u6D4B\u8BD5\u7528\u4F8B(",an+1,")\u8F93\u51FA\uFF1A"),E.createElement(tt,{id:_t==null?void 0:_t.id,value:((qt=_t==null?void 0:_t.outputs)==null?void 0:qt[an])||"",className:ve.edit,onBlur:An=>{const fr=[...(_t==null?void 0:_t.outputs)||[]];fr[an]=vn(An),jr("outputs",jt,fr)},tagName:"div"})))}),ci(_t))))},deal:De=>{var jt,hn,Cn;De.score=De.score===void 0?10:De.score,De.code=(jt=De.code)==null?void 0:jt.trim();let _t=[];Hn(De==null?void 0:De.question)?((hn=De==null?void 0:De.question)==null?void 0:hn.length)>60&&_t.push("\u7F16\u7A0B\u9898\u540D\u79F0\u9650\u523660\u4E2A\u5B57\u7B26"):_t.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),Hn(De==null?void 0:De.description)||_t.push("\u672A\u8BC6\u522B\u5230\u8BD5\u9898\u63CF\u8FF0");const $t=Hn(String((De==null?void 0:De.timeLimit)||""));if(De.timeLimit=$t,(!$t||$t&&!["3","4","5","6","7","8","9","10"].includes($t))&&_t.push("\u65F6\u95F4\u9650\u5236\u4E3A\u5FC5\u586B\u9879\uFF0C\u53EA\u652F\u63013-10\u7684\u6574\u6570"),De.platform=Hn(De==null?void 0:De.platform),De!=null&&De.platform){const Ut=["c","c++","java","python"],an=(Cn=De==null?void 0:De.platform)==null?void 0:Cn.toLowerCase(),qt=Ut.findIndex(An=>An===an);qt>-1?De.platform=rn[qt]:_t.push("\u7F16\u7A0B\u8BED\u8A00\u4E3A\u5FC5\u586B\u9879\uFF0C\u76EE\u524D\u53EA\u652F\u6301C\u3001C++\u3001Python\u3001Java\u8BED\u8A00")}else _t.push("\u7F16\u7A0B\u8BED\u8A00\u4E3A\u5FC5\u586B\u9879\uFF0C\u76EE\u524D\u53EA\u652F\u6301C\u3001C++\u3001Python\u3001Java\u8BED\u8A00");if(!(De!=null&&De.inputs)||!(De!=null&&De.outputs))De.inputs=[],De.outputs=[],_t.push("\u672A\u8BC6\u522B\u5230\u6D4B\u8BD5\u7528\u4F8B\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u6D4B\u8BD5\u7528\u4F8B(1)\u8F93\u5165\uFF1A1\uFF1B\u6D4B\u8BD5\u7528\u4F8B(1)\u8F93\u51FA\uFF1A2");else{const Ut=Math.min(De.inputs.length,De.outputs.length);De.inputs=De.inputs.slice(0,Ut),De.outputs=De.outputs.slice(0,Ut),De.outputs.some(an=>!Hn(an))&&_t.push("\u6D4B\u8BD5\u7528\u4F8B\u8F93\u51FA\u4E3A\u5FC5\u586B\u9879")}return De.errorMsg=_t.join(`
`),De}},{id:"7",type:"\u7EC4\u5408\u9898",element:(De,jt)=>{var hn,Cn;const _t=aa[jt];return E.createElement("div",{className:ve.row,style:{display:Rn?_t!=null&&_t.errorMsg?"flex":"none":"flex"}},E.createElement("div",{className:ve.leftLayout},E.createElement(pn,null,E.createElement("div",{"data-text":"edit",contentEditable:!0,className:ve.question},Wa(De,jt),Sa(De),(hn=De==null?void 0:De.questions)==null?void 0:hn.map(($t,Ut)=>{var an;const qt=(an=Ei.find(An=>An.id===($t==null?void 0:$t.type)))==null?void 0:an.element;return E.createElement(E.Fragment,{key:`left-${De.id}-${Ut}`},qt($t,jt,Ut)[0])}),$i(De),E.createElement("p",{contentEditable:!0},"}}")))),E.createElement("div",{className:ve.rightLayout},E.createElement(he,{className:_t!=null&&_t.errorMsg?ve.error:""},ui(_t,jt),ia(_t,"",jt),(Cn=_t==null?void 0:_t.questions)==null?void 0:Cn.map(($t,Ut)=>{var an;const qt=(an=Ei.find(An=>An.id===($t==null?void 0:$t.type)))==null?void 0:an.element;return E.createElement(E.Fragment,{key:`right-${_t.id}-${Ut}`},qt($t,jt,Ut)[1])}),ci(_t))))},deal:De=>{var jt,hn,Cn,_t,$t;const Ut=Qr,an=[...Ei],qt=an.findIndex($n=>$n.id==="0"),An=an.findIndex($n=>$n.id==="1");if(qt!==-1){const $n=an[qt].deal;an[qt].deal=Pa=>{const ta=$n(Pa);return ta.errorMsg&&(ta.errorMsg=ta.errorMsg.split(`
`).filter(Ba=>Ba!=="\u9009\u9879\u5185\u5BB9\u91CD\u590D").join(`
`)),ta}}if(An!==-1){const $n=an[An].deal;an[An].deal=Pa=>{const ta=$n(Pa);return ta.errorMsg&&(ta.errorMsg=ta.errorMsg.split(`
`).filter(Ba=>Ba!=="\u9009\u9879\u5185\u5BB9\u91CD\u590D").join(`
`)),ta}}De.questions=(jt=De.questions)!=null&&jt.length?Qr(De.questions.slice(0,20)):[],De.questions=(hn=De.questions)==null?void 0:hn.map(($n,Pa)=>{var ta;if($n.type==="0"||$n.type==="1"){const Ba=(ta=$n.options)==null?void 0:ta.map(bi=>bi==null?void 0:bi.trim().replace(/^\s+|\s+$/g,""));Ba&&new Set(Ba).size!==Ba.length&&($n.errorMsg=($n.errorMsg?$n.errorMsg+`
`:"")+"\u9009\u9879\u5185\u5BB9\u91CD\u590D")}return Pt(Zt({},$n),{last:Pa===De.questions.length-1})});const fr=(Cn=De.questions)==null?void 0:Cn.reduce(($n,Pa)=>{const ta=parseFloat(Pa.score);return isNaN(ta)?$n:$n+ta},0);De.score=fr;let cr=[];return(_t=De.questions)!=null&&_t.length?De.errorMsg=(($t=De.questions)==null?void 0:$t.findIndex($n=>!!$n.errorMsg))>-1:cr.push("\u8BF7\u6DFB\u52A0\u5C0F\u9898"),Hn(De==null?void 0:De.question)||cr.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),cr.length&&(De.errorMsg=cr.join(`
`)),De}},{id:"8",type:"\u7A0B\u5E8F\u586B\u7A7A\u9898",element:(De,jt)=>{var hn,Cn,_t,$t;const Ut=aa[jt],an=rn.map(qt=>({key:qt,label:qt,onClick:()=>jr("platform",jt,qt)}));return E.createElement("div",{className:ve.row,style:{display:Rn?Ut!=null&&Ut.errorMsg?"flex":"none":"flex"}},E.createElement("div",{className:ve.leftLayout},E.createElement(pn,null,E.createElement("div",{"data-text":"edit",contentEditable:!0,className:ve.question},Wa(De,jt),Sa(De),E.createElement(tt,{id:De==null?void 0:De.id,value:`\u65F6\u95F4\u9650\u5236\uFF08\u79D2\uFF09\uFF1A${De==null?void 0:De.timeLimit}`,tagName:"p"}),E.createElement(tt,{id:De==null?void 0:De.id,value:`\u7F16\u7A0B\u8BED\u8A00\uFF1A${(De==null?void 0:De.platform)||""}`,tagName:"p"}),E.createElement("p",{contentEditable:!0},"\u7A0B\u5E8F\u4EE3\u7801\uFF1A"),E.createElement("h4",null),E.createElement(tt,{id:De==null?void 0:De.id,value:(De==null?void 0:De.code)||"",tagName:"div"}),E.createElement("h4",null),(hn=De==null?void 0:De.inputs)==null?void 0:hn.map((qt,An)=>{var fr;return E.createElement(E.Fragment,{key:An},E.createElement("h4",null),E.createElement(tt,{id:De==null?void 0:De.id,value:`\u6D4B\u8BD5\u7528\u4F8B(${An+1})\u8F93\u5165\uFF1A${qt||""}`,tagName:"div"}),E.createElement(tt,{id:De==null?void 0:De.id,value:`\u6D4B\u8BD5\u7528\u4F8B(${An+1})\u8F93\u51FA\uFF1A${((fr=De==null?void 0:De.outputs)==null?void 0:fr[An])||""}`,tagName:"div"}))}),(Cn=De==null?void 0:De.answer)==null?void 0:Cn.map((qt,An)=>E.createElement(tt,{key:An,id:De==null?void 0:De.id,value:`\u7B54\u6848${An+1}\uFF1A${qt||""}`,tagName:"p"})),$i(De)))),E.createElement("div",{className:ve.rightLayout},E.createElement(he,{className:Ut!=null&&Ut.errorMsg?ve.error:""},ui(Ut,jt),ia(Ut,"",jt),E.createElement("div",{className:ve.liWrap},E.createElement("div",{className:ve.li,onKeyDown:Lt},E.createElement("aside",null,"\u65F6\u95F4\u9650\u5236\uFF08\u79D2\uFF09\uFF1A"),E.createElement(tt,{className:ve.edit,id:Ut==null?void 0:Ut.id,value:Ut==null?void 0:Ut.timeLimit,tagName:"div",onBlur:qt=>jr("timeLimit",jt,vn(qt))})),E.createElement("div",{className:ve.li},E.createElement("aside",null,"\u7F16\u7A0B\u8BED\u8A00\uFF1A"),E.createElement("div",{className:"c-black"},E.createElement(Xe.Z,{menu:{items:an}},E.createElement("span",{className:"c-light-primary"},Ut==null?void 0:Ut.platform,E.createElement("i",{className:"iconfont icon-a-bianzu11 font14 ml4"}))))),E.createElement("div",{className:ve.li,style:{flexDirection:"column",alignItems:"start"}},E.createElement("aside",{className:"mb10"},"\u7A0B\u5E8F\u4EE3\u7801\uFF1A"),E.createElement(tt,{className:ve.edit,id:Ut==null?void 0:Ut.id,value:(Ut==null?void 0:Ut.code)||"",onBlur:qt=>jr("code",jt,vn(qt)),tagName:"div"})),(_t=Ut==null?void 0:Ut.inputs)==null?void 0:_t.map((qt,An)=>{var fr;return E.createElement("div",{className:ve.liWrap,key:An},E.createElement("div",{className:ve.li},E.createElement("aside",null,"\u6D4B\u8BD5\u7528\u4F8B(",An+1,")\u8F93\u5165\uFF1A"),E.createElement(tt,{id:Ut==null?void 0:Ut.id,value:qt||"",className:ve.edit,onBlur:cr=>{const $n=[...(Ut==null?void 0:Ut.inputs)||[]];$n[An]=vn(cr),jr("inputs",jt,$n)},tagName:"div"})),E.createElement("div",{className:ve.li},E.createElement("aside",null,"\u6D4B\u8BD5\u7528\u4F8B(",An+1,")\u8F93\u51FA\uFF1A"),E.createElement(tt,{id:Ut==null?void 0:Ut.id,value:((fr=Ut==null?void 0:Ut.outputs)==null?void 0:fr[An])||"",className:ve.edit,onBlur:cr=>{const $n=[...(Ut==null?void 0:Ut.outputs)||[]];$n[An]=vn(cr),jr("outputs",jt,$n)},tagName:"div"})))})),E.createElement("div",{className:ve.liWrap},($t=Ut==null?void 0:Ut.answer)==null?void 0:$t.map((qt,An)=>E.createElement("div",{className:ve.li,key:An},E.createElement("aside",null,"\u7B54\u6848",An+1,"\uFF1A"),E.createElement(tt,{id:Ut==null?void 0:Ut.id,value:qt||"",className:ve.edit,onBlur:fr=>{const cr=[...(Ut==null?void 0:Ut.answer)||[]];cr[An]=vn(fr),jr("output",jt,cr)},tagName:"div"})))),ci(Ut))))},deal:De=>{var jt,hn,Cn,_t,$t,Ut,an,qt;De.score=De.score===void 0?10:De.score,De.code=(Cn=(hn=(jt=De.code)==null?void 0:jt.trim())==null?void 0:hn.replace(/@_@/g,"@\u2581@"))==null?void 0:Cn.replace(/@__@/g,"@\u2581\u2581@");let An=[];if(Hn(De==null?void 0:De.question)||An.push("\u672A\u8BC6\u522B\u5230\u9898\u5E72"),Hn(De==null?void 0:De.code)?/@▁@|@▁▁@/.test(De==null?void 0:De.code)?(_t=De==null?void 0:De.answer)!=null&&_t.length&&(($t=De==null?void 0:De.code.match(/@▁@|@▁▁@/g))==null?void 0:$t.length)!==((Ut=De==null?void 0:De.answer)==null?void 0:Ut.length)&&An.push("\u586B\u7A7A\u9879\u4E0E\u7B54\u6848\u4E2A\u6570\u4E0D\u5339\u914D\uFF0C\u8BF7\u8FDB\u884C\u8C03\u6574"):An.push("\u7A0B\u5E8F\u4EE3\u7801\u8BBE\u7F6E\u6709\u8BEF\uFF0C\u8BF7\u91CD\u65B0\u8BBE\u7F6E\u3002\u7A0B\u5E8F\u4EE3\u7801\u4E2D\u7684\u586B\u7A7A\u9879\u9700\u8981\u4F7F\u7528 @\u2581@ \u7B26\u53F7\u6807\u8BC6\u51FA\u6765"):An.push("\u672A\u8BC6\u522B\u5230\u7A0B\u5E8F\u4EE3\u7801"),De!=null&&De.answer?(an=De.answer)!=null&&an.some(cr=>!Hn(cr))&&An.push("\u7B54\u6848\u4E3A\u5FC5\u586B\u9879"):An.push("\u672A\u8BC6\u522B\u5230\u7B54\u6848\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u7B54\u68481\uFF1AHello\uFF1B\u7B54\u68482\uFF1AWorld"),De.platform=Hn(De==null?void 0:De.platform),De!=null&&De.platform){const cr=["c","c++","java","python","javascript","ruby"],$n=(qt=De==null?void 0:De.platform)==null?void 0:qt.toLowerCase(),Pa=cr.findIndex(ta=>ta===$n);Pa>-1?De.platform=rn[Pa]:An.push("\u7F16\u7A0B\u8BED\u8A00\u4E3A\u5FC5\u586B\u9879\uFF0C\u76EE\u524D\u53EA\u652F\u6301C\u3001C++\u3001Python\u3001Java\u3001JavaScript\u3001Ruby\u8BED\u8A00")}else An.push("\u7F16\u7A0B\u8BED\u8A00\u4E3A\u5FC5\u586B\u9879\uFF0C\u76EE\u524D\u53EA\u652F\u6301C\u3001C++\u3001Python\u3001Java\u3001JavaScript\u3001Ruby\u8BED\u8A00");if(!(De!=null&&De.inputs)||!(De!=null&&De.outputs))De.inputs=[],De.outputs=[],An.push("\u672A\u8BC6\u522B\u5230\u6D4B\u8BD5\u7528\u4F8B\u3002\u63A8\u8350\u683C\u5F0F\uFF1A\u6D4B\u8BD5\u7528\u4F8B(1)\u8F93\u5165\uFF1A1\uFF1B\u6D4B\u8BD5\u7528\u4F8B(1)\u8F93\u51FA\uFF1A2");else{const cr=Math.min(De.inputs.length,De.outputs.length);De.inputs=De.inputs.slice(0,cr),De.outputs=De.outputs.slice(0,cr),De.outputs.some($n=>!Hn($n))&&An.push("\u6D4B\u8BD5\u7528\u4F8B\u8F93\u51FA\u4E3A\u5FC5\u586B\u9879")}const fr=Hn(String((De==null?void 0:De.timeLimit)||""));return De.timeLimit=fr,(!fr||fr&&!["3","4","5","6","7","8","9","10"].includes(fr))&&An.push("\u65F6\u95F4\u9650\u5236\u4E3A\u5FC5\u586B\u9879\uFF0C\u53EA\u652F\u63013-10\u7684\u6574\u6570"),De.errorMsg=An.join(`
`),De}}],Qi=()=>E.createElement(E.Fragment,null,Kr.filter(De=>{var jt;return!!((jt=Ei.find(Cn=>Cn.id===(De==null?void 0:De.type)))==null?void 0:jt.element)}).map((De,jt)=>{var hn;const Cn=(hn=Ei.find(_t=>_t.id===(De==null?void 0:De.type)))==null?void 0:hn.element;return E.createElement(E.Fragment,{key:De.id},Cn(De,jt))})),ga=()=>en(void 0,null,function*(){const De=aa.filter(jt=>!jt.checked);if(Ir!==3||!De.length){_e.ZP.warning("\u672A\u8BC6\u522B\u5230\u8BD5\u9898\uFF01");return}if(Ti){si(!0),yield Ti(aa),si(!1);return}so.setFieldsValue({course_discipline_id:Fn}),Kn(!0)}),Ri=(De,jt=[])=>{if(typeof De=="string")return De.trim();if(Array.isArray(De))return De.map(hn=>Ri(hn,jt));if(typeof De=="object"&&De!==null){const hn={};for(const Cn in De)De.hasOwnProperty(Cn)&&(jt.includes(Cn)?hn[Cn]=De[Cn]:hn[Cn]=Ri(De[Cn],jt));return hn}return De},Pi=De=>en(void 0,null,function*(){const jt=Qr(Ri(De));qa(jt),Wn(JSON.parse(JSON.stringify(jt))),Sn(3),Qa(!1),cn(!1)});(0,E.useEffect)(()=>{if(_n)return;const De=()=>{Fa(jt=>jt>=90?(clearInterval(tl.current),90):jt+1)};return tl.current=setInterval(De,5e4/90),()=>clearInterval(tl.current)},[_n]);const Fo=(De,jt)=>{br(!1);const hn=new FormData;Object.keys(jt).forEach($t=>{hn.append($t,jt[$t])});const Cn=new window.XMLHttpRequest;Cn.withCredentials=!0;const _t=(0,Re.Ec)({method:"POST",headers:{}});Cn.addEventListener("load",function($t){return en(this,null,function*(){var Ut,an;try{const qt=JSON.parse((Ut=$t==null?void 0:$t.target)==null?void 0:Ut.response);if(br(!0),Fa(100),yield new Promise(An=>setTimeout(()=>An(),780)),qt.status===0){if(!((an=qt==null?void 0:qt.data)!=null&&an.length)){_e.ZP.warning("\u672A\u8BC6\u522B\u5230\u8BD5\u9898!"),Qa(!1);return}Pi((qt==null?void 0:qt.data)||[])}else Qa(!1),_e.ZP.warning(qt==null?void 0:qt.message)}catch(qt){console.log("\u8BF7\u6C42\u9519\u8BEF\uFF1A",qt)}})}),Cn.addEventListener("error",()=>{Qa(!1)}),Cn.open("POST",`${be.Z.API_SERVER}${De}`),Cn.send(hn)},Bi=De=>en(void 0,null,function*(){const jt=De.name.split(".").slice(-1)[0].toLowerCase();return["docx"].indexOf(jt)==-1?(_e.ZP.error(`${De.name}\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\uFF0C\u5F53\u524D\u4EC5\u9650\u652F\u6301\u683C\u5F0F\u4E3Adocx\u6587\u4EF6\uFF08Microsoft Word 2007\u4EE5\u4E0A\u7684\u7248\u672C\uFF09`),Promise.reject()):(Qa(!0),Jr("\u5904\u7406\u4E2D"),Fo("/api/intelligent_imports/import.json",{file:De}),Promise.reject())});let Fi=[{key:1,label:E.createElement($e.default,{showUploadList:!1,accept:".docx",maxCount:1,beforeUpload:Bi},E.createElement("div",{style:{padding:"0 5px",width:108,height:35,lineHeight:"35px"}},"\u672C\u5730\u5BFC\u5165"))}];((0,Dt.Ny)()||(0,Dt.$O)())&&Fi.push({key:2,label:E.createElement("div",{style:{padding:"0 5px"}},"\u5927\u6A21\u578B\u667A\u80FD\u51FA\u9898"),onClick:()=>{Zo.current.onClick()}});const So=[aa.length,(Ni=aa.filter(De=>!!(De!=null&&De.errorMsg)))==null?void 0:Ni.length];return E.createElement("div",{className:Te()(ve.intelligentBox,"intelligent-body-curb",ye),style:Pt(Zt({},se),{width:ot}),ref:jn},E.createElement("div",{className:ve.underpin},E.createElement("b",{style:pa}),E.createElement("b",{style:pa})),E.createElement("div",{className:ve.head,style:{top:Yn}},E.createElement("div",{className:ve.leftLayout},ur||E.createElement(E.Fragment,null,E.createElement(Fe.Z,{align:"middle"},E.createElement("div",{className:ve.title},"\u8BD5\u9898\u7F16\u8F91"),!or&&E.createElement(Be.op,{href:`${be.Z.API_SERVER}/api/intelligent_imports/download_template`,download:!0,type:"link"},"\u4E0B\u8F7DWord\u6A21\u7248",E.createElement("i",{className:"iconfont icon-xiazai4 font14 ml10"})),E.createElement(Be.op,{onClick:Mt,shape:"default"},"\u4E00\u952E\u6E05\u7A7A"),!or&&E.createElement(Xe.Z,{overlayClassName:ve.menu,menu:{items:Fi}},E.createElement(Be.op,{className:"ml20",type:"primary",shape:"default"},"\u5BFC\u5165\u8BD5\u9898")),!!Jn&&Jn),E.createElement("div",{className:ve.tip},E.createElement("i",{className:"iconfont icon-tishi7 font12 mr10"}),"\u63D0\u793A\uFF1A\u82E5\u8BC6\u522B\u6709\u8BEF\uFF0C\u53EF\u5728\u5DE6\u4FA7\u7F16\u8F91\u533A\u70B9\u51FB\u5BF9\u5E94\u7684\u8BD5\u9898\u6309\u683C\u5F0F\u4FEE\u6539\u540E\u91CD\u65B0\u8BC6\u522B"))),E.createElement(Fe.Z,{className:ve.rightLayout,style:{alignItems:"start"}},rr||E.createElement(E.Fragment,null,E.createElement("div",{className:ve.title,style:{marginRight:0}},"\u8BD5\u9898\u9884\u89C8"),[3].includes(Ir)&&E.createElement(We.default,{className:"ml20",checked:Rn,onChange:De=>cn(De.target.checked)},"\u4EC5\u67E5\u770B\u9519\u8BEF\u8BD5\u9898"),[3].includes(Ir)&&E.createElement("div",{style:{color:"#5F6368",marginLeft:"auto"}},"\u5171\u8BC6\u522B",E.createElement("span",{className:"ml5 mr5 c-light-primary"},So[0]),"\u9898\uFF0C\u5176\u4E2D\u8BC6\u522B\u6709\u8BEF",E.createElement("span",{className:"ml5 mr5 c-red-e53"},So[1]),"\u9898")),Dn&&E.createElement("div",{className:ve.tabs},Kr==null?void 0:Kr.map((De,jt)=>E.createElement("div",{onClick:()=>{qr(jt)},className:Nr===jt&&ve.active,key:jt},"\u65B0\u9898",jt+1)))),E.createElement("div",{className:ve.centerBox},E.createElement("img",{className:"mb10",src:fe,width:56}),!Vr&&E.createElement(Be.op,{onClick:za},"\u8BC6\u522B"))),[1,2].includes(Ir)&&Ya(),[3].includes(Ir)&&Qi(),E.createElement("div",{className:"pb10"}),E.createElement("div",{className:ve.buttonFixed},E.createElement("div",{className:ve.buttonWrap},E.createElement(vt.ZP,{size:"middle",className:`${ve.button} mr20`,onClick:Xt},"\u53D6\u6D88"),E.createElement(vt.ZP,{size:"middle",type:"primary",loading:Xa,className:`${ve.button}`,onClick:ga},ha))),E.createElement(ze.default,{centered:!0,closable:!1,destroyOnClose:!0,open:na,title:null,footer:null,width:320,afterClose:()=>Fa(0)},E.createElement(Fe.Z,{align:"middle",style:{flexDirection:"column"}},E.createElement("b",{style:{color:"#5F6368"},className:"font16 mb5 mt20"},$a,E.createElement("span",{className:ve.dotLoading},E.createElement("span",null,"."),E.createElement("span",null,"."),E.createElement("span",null,"."))),E.createElement(Ye.Z,{style:{width:"auto"},size:[200,8],showInfo:!1,percent:ir}),E.createElement("div",{style:{color:"#5F6368"},className:"mb20"},"\u6B63\u5728\u8BC6\u522B\uFF0C\u5DF2\u5B8C\u6210",E.createElement("span",{className:"ml5 c-light-primary"},ir,"%")))),E.createElement(ze.default,{centered:!0,open:nn,title:"\u8BD5\u9898\u5BFC\u5165\u8BBE\u7F6E",confirmLoading:fn,width:500,onCancel:()=>Kn(!1),onOk:()=>so.submit(),afterClose:()=>{so.resetFields()}},E.createElement(He.default,{style:{maxHeight:550},form:so,layout:"horizontal",colon:!1,size:"large",onFinish:De=>en(void 0,null,function*(){var jt,hn,Cn,_t,$t;const Ut=aa.filter(An=>!An.checked&&!An.errorMsg);wn(!0);const an=()=>en(void 0,null,function*(){var An,fr;const cr=yield(0,qe.ZP)("/api/intelligent_imports/save.json",{method:"post",body:Pt(Zt(Zt({},on),De),{list:Ut,mode:Kt})});cr.status===0&&(Vn&&((An=cr==null?void 0:cr.data)!=null&&An.success)&&window.location.pathname==="/problemset"&&(lt.Z.publish("refresh-item-bank",De.group_id),yield new Promise($n=>setTimeout(()=>$n(),1500))),_e.ZP.success(`\u6210\u529F\u5BFC\u5165${(fr=cr==null?void 0:cr.data)==null?void 0:fr.success}\u9053\u8BD5\u9898`,3),zt(cr),Kn(!1)),wn(!1)});if(Kt!==1){yield an();return}const qt=yield(0,qe.ZP)("/api/intelligent_imports/is_repeated.json",{method:"post",body:{list:aa,mode:Kt}});if(qt.status===0){if(!((jt=qt==null?void 0:qt.data)!=null&&jt.error_size)){yield an();return}ze.default.confirm({centered:!0,icon:null,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onCancel:()=>{wn(!1)},title:"\u63D0\u793A",content:E.createElement("div",{style:{overflow:"auto",maxHeight:500}},"\u5171",E.createElement("span",{className:"c-light-primary ml5 mr5"},(hn=qt==null?void 0:qt.data)==null?void 0:hn.all_size),"\u9053\u8BD5\u9898\uFF0C\u5176\u4E2D",E.createElement("span",{style:{color:"#FF9D18"},className:"ml5 mr5"},(Cn=qt==null?void 0:qt.data)==null?void 0:Cn.error_size),"\u9053\u8BD5\u9898\u91CD\u590D\uFF08\u7B2C",E.createElement("span",{className:"ml5 mr5"},($t=(_t=qt==null?void 0:qt.data)==null?void 0:_t.index)==null?void 0:$t.join("\u3001")),"\u9053\uFF09\uFF0C\u91CD\u590D\u8BD5\u9898\u5C06\u4F1A\u4E3A\u60A8\u81EA\u52A8\u8FC7\u6EE4\uFF0C\u786E\u5B9A\u5BFC\u5165\u5417\uFF1F"),onOk:an})}})},E.createElement("div",{className:"c-grey-999 mb20"},"\u63D0\u793A\uFF1A\u8BC6\u522B\u6709\u8BEF\u7684\u8BD5\u9898\u5C06\u4E0D\u4F1A\u88AB\u5BFC\u5165"),E.createElement(He.default.Item,{label:"\u6240\u5C5E\u8BFE\u7A0B",name:"course_discipline_id",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u8BFE\u7A0B"}]},E.createElement(xt.q,null)),Kt===1&&E.createElement(He.default.Item,{label:E.createElement(Fe.Z,{align:"middle",style:{justifyContent:"space-between"}},E.createElement("span",null,"\u653E\u5165\u6587\u4EF6\u5939\u76EE\u5F55"),E.createElement("div",{onClick:()=>On(!0),style:{marginLeft:211,transform:"translateX(14px)",display:"flex",color:"#5F6368",cursor:"pointer"}},E.createElement("img",{className:"mr5 primary-hover",src:wt}),"\u65B0\u5EFA\u6587\u4EF6\u5939")),rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6587\u4EF6\u5939"}],name:"group_id",labelCol:{span:24},wrapperCol:{span:24}},E.createElement(st.Z,{key:Ar})))),E.createElement(ze.default,{centered:!0,open:Jt,title:"\u65B0\u5EFA\u6587\u4EF6\u5939",destroyOnClose:!0,width:480,confirmLoading:Er,onCancel:()=>On(!1),onOk:()=>Mn.submit(),afterClose:()=>{Mn.resetFields()}},E.createElement(He.default,{style:{maxHeight:550},form:Mn,layout:"horizontal",colon:!1,size:"large",onFinish:De=>en(void 0,null,function*(){var jt;Qt(!0),(yield(0,qe.ZP)("/api/item_banks_groups.json",{method:"post",body:{name:De.name,parent_id:(jt=De==null?void 0:De.parent_id)==null?void 0:jt[0]}})).status===0?(la(Ar+1),setTimeout(()=>{_e.ZP.success("\u64CD\u4F5C\u6210\u529F"),On(!1),Qt(!1)},1e3)):Qt(!1)})},E.createElement(He.default.Item,{label:"\u6587\u4EF6\u5939\u540D\u79F0",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5939\u540D\u79F0"},{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"}]},E.createElement(Ne.default,{maxLength:60,showCount:!0,placeholder:"\u8BF7\u8F93\u5165\u6587\u4EF6\u5939\u540D\u79F0"})),E.createElement(He.default.Item,{label:"\u6587\u4EF6\u5939\u4F4D\u7F6E",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6587\u4EF6\u5939"}],name:"parent_id"},E.createElement(st.Z,null)))),E.createElement(Qe.Z,{onSave:De=>{Qa(!0),Jr("\u5904\u7406\u4E2D"),Fo("/api/intelligent_imports/import.json",{html:De})},ref:Zo}))},ae=Ie;var pe=le},71039:function(It,kt,ne){"use strict";var E=ne(59301),ve=ne(74501),Pe=ne(48136),Te=ne(9057),He=ne(62957),_e=ne(59301);const ze=(0,E.forwardRef)(({callback:nt,width:Fe,onChange:We,disabled:Xe,readOnly:$e,type:vt="",value:Ye="",style:Ne={}},Be)=>{const be=(0,E.useRef)(),Ie=(0,E.useRef)(),[Ke,at]=(0,E.useState)(0),[fe,qe]=(0,E.useState)(0),[st,wt]=(0,E.useState)(!1),ft=()=>{var Se=document.createElement("div");Se.innerHTML=be.current.getValue();var Ve=Se.innerText;return nt&&nt(Ve),Ve};(0,E.useImperativeHandle)(Be,()=>({getData:ft}));const ct=Se=>{Se.preventDefault();const Ve=Se.clientX-Ke,Ae=Se.clientY-fe;document.body.onmousemove=tt=>{let Dt=tt.clientX-Ve,lt=tt.clientY-Ae;const Qe=document.getElementsByClassName("markdown-popup-form")[0],xt=window.innerWidth-Qe.offsetWidth,Re=window.innerHeight-Qe.offsetHeight;Dt=Math.max(0,Math.min(Dt,xt)),lt=Math.max(0,Math.min(lt,Re)),Je(tt.clientX,tt.clientY,Ve,Ae)&&(at(Dt),qe(lt))},document.body.onmouseup=function(){document.body.onmousemove=null}},Je=(Se,Ve,Ae,tt)=>{const Dt=document.body.clientHeight,lt=document.body.clientWidth;return Se<20&&Ae>Se||Se>lt-20&&Ae<Se||Ve<20&&tt>Ve||Ve>Dt-20&&tt<Ve?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};(0,E.useEffect)(()=>{st&&setTimeout(()=>{const Se=document.getElementsByClassName("markdown-popup-form")[0],Ve=window.innerWidth/2-Se.offsetWidth/2,Ae=window.innerHeight/2-Se.offsetHeight/2;at(Ve),qe(Ae)},0)},[st]);const ut=()=>{Xe||$e||wt(!0)};return _e.createElement("div",{style:Ne},_e.createElement("div",{style:{width:Fe||"100%",position:"relative"},className:`${ve.Z.mathFillWrap} ${Xe||$e?"cursorDefault":""}`,onClick:()=>ut()},_e.createElement("math-field",{disabled:Xe,locale:"zh_cn",class:`${ve.Z.mathField} ${vt}`,readOnly:$e,placeholder:"\u8BF7\u8F93\u5165\u516C\u5F0F",ref:be,style:{width:"100%",fontSize:Ye?18:14},value:Ye||""})),_e.createElement(He.default,{maskClosable:!1,centered:!0,width:860,style:{position:"absolute",left:Ke,top:fe},title:_e.createElement("div",{style:{cursor:"move"},onMouseDown:ct},"\u8F93\u5165\u516C\u5F0F"),open:st,onOk:()=>{const Se=Ie.current.getData();be.current.setValue(Se),We(Se),wt(!1)},onCancel:()=>{wt(!1)},destroyOnClose:!0,className:"markdown-popup-form"},_e.createElement(Te.Z,{value:Ye,ref:Ie,onChange:We,showSaveButton:!1})))});kt.Z=ze},9057:function(It,kt,ne){"use strict";var E=ne(59301),ve=ne(77019),Pe=ne(5269),Te=ne(31691),He=ne(7939),_e=ne(35883),ze=ne(74501),nt=ne(48136),Fe=ne(59301);const We=(0,E.forwardRef)(({callback:Xe,showSaveButton:$e,value:vt=""},Ye)=>{const Ne=(0,E.useRef)(),Be=[{name:"\u5206\u6570\u5F97\u5206",value:"\\frac{x}{y}",children:[{name:"\u5206\u6570 Fractions",data:[{value:"\\frac{a}{b}"},{value:"x\\tfrac{x}{a} "},{value:"\\mathrm{d}t"},{value:"\\partial t"},{value:"\\frac{\\partial y}{\\partial x}"},{value:"\\nabla\\psi"},{value:"\\frac{\\partial^2}{\\partial x_1\\partial x_2}y"},{value:"\\cfrac{1}{a + \\cfrac{7}{b + \\cfrac{2}{9}}} = c"}]},{name:"\u5BFC\u6570 Derivative",data:[{value:"\\dot{a} "},{value:"\\ddot{a}"},{value:"{f}^{\\prime}"},{value:"{f}^{\\prime\\prime}"},{value:"{f}^{(n)}"}]},{name:"\u6A21\u7B97\u672F Modular arithmetic",data:[{value:"a \\bmod b"},{value:"a \\equiv b \\pmod{m} "},{value:"\\gcd(m, n) "},{value:"\\operatorname{lcm}(m, n) "}]}]},{name:"\u6839\u5F0F\u89D2\u6807",value:"\\sqrt{x}",children:[{name:"\u6839\u5F0F Radicals",data:[{value:"\\sqrt{x}"},{value:"\\sqrt[y]{x}"}]},{name:"\u4E0A\u4E0B\u6807 Sub&Super",data:[{value:"x^{a}"},{value:"x_{a}"},{value:"x_{a}^{b} "},{value:"_{a}^{b} x"},{value:"x_{a}^{b} "}]},{name:"\u91CD\u97F3\u7B26\u53CA\u5176\u4ED6 Accents and Others",data:[{value:"\\hat{a} "},{value:"\\sqrt[y]{x}"},{value:"\\check{} "},{value:"\\grave{a} "},{value:"\\acute{a}"},{value:"\\tilde{a}"},{value:"\\breve{a}"},{value:"\\bar{a}"},{value:"\\vec{a}"},{value:"\\not{a}"},{value:"\\widetilde{abc}"},{value:"\\widehat{abc}"},{value:"\\overleftarrow{abc} "},{value:"\\overrightarrow{abc}"},{value:"\\overline{abc}"},{value:"\\underline{abc}"},{value:"\\overbrace{abc}"},{value:"\\underbrace{abc}"},{value:"\\overset{a}{abc}"},{value:"\\underset{a}{abc} \\stackrel\\frown{ab}"},{value:"\\overline{ab} "},{value:"\\overleftrightarrow{ab}"},{value:"\\overset{a}{\\leftarrow}"},{value:"\\overset{a}{\\rightarrow}"},{value:"\\xleftarrow[abc]{a}"},{value:"\\xrightarrow[abc]{a} "}]}]},{name:"\u6781\u9650\u5BF9\u6570",value:"\\lim_{x \\to 0}",children:[{name:"\u6781\u9650 Limits",data:[{value:"\\lim a"},{value:"\\lim_{x \\to 0}"},{value:"\\lim_{x \\to \\infty}"},{value:"\\max_b{a}"},{value:"\\min_a{b}"}]},{name:"\u5BF9\u6570\u6307\u6570 Logarithms and exponentials",data:[{value:"\\log_{a}{b}"},{value:"\\lg_{a}{b}"},{value:"\\ln_{a}{b}"},{value:"\\exp a"}]},{name:"\u754C\u9650 Bounds",data:[{value:"\\min x"},{value:"\\sup t"},{value:"\\inf s"},{value:"\\lim u"},{value:"\\limsup w"},{value:"\\dim p"},{value:"\\ker\\phi "}]}]},{name:"\u4E09\u89D2\u51FD\u6570",value:"\\sin a",children:[{name:"\u4E09\u89D2\u51FD\u6570 Trigonometric functions",data:[{value:"\\sin a"},{value:"\\cos a"},{value:"\\tan a"},{value:"\\cot a "},{value:"\\sec a "},{value:"\\csc a "}]},{name:"\u53CD\u4E09\u89D2\u51FD\u6570 Inverse trigonometric functions",data:[{value:"\\sin^{-1}"},{value:"\\cos^{-1}"},{value:"\\tan^{-1}"},{value:"\\cot^{-1}"},{value:"\\sec^{-1}"},{value:"\\csc^{-1}"},{value:"\\arcsin a"},{value:"\\arccos a"},{value:"\\arctan a"},{value:"\\operatorname{arccot} a"},{value:"\\operatorname{arcsec} a"},{value:"\\operatorname{arccsc} a"}]},{name:"\u53CC\u66F2\u51FD\u6570 Hyperblic functions",data:[{value:"\\sinh a"},{value:"\\cosh a"},{value:"\\tanh a"},{value:"\\coth a"},{value:"\\operatorname{sech} a"},{value:"\\operatorname{csch} a"}]},{name:"\u53CD\u53CC\u66F2\u51FD\u6570 Inverse hyperbolic functions",data:[{value:"\\sinh^{-1}"},{value:"a\\cosh^{-1} a"},{value:"\\tanh^{-1} a"},{value:"\\coth^{-1} a"},{value:"\\operatorname{sech}^{-1} a"},{value:"\\operatorname{csch}^{-1} a"}]}]},{name:"\u79EF\u5206\u8FD0\u7B97",value:"\\int_{a}^{b}",children:[{name:"\u79EF\u5206 Integral",data:[{value:"\\int"},{value:"\\int_{a}^{b}"},{value:"\\int\\limits_{a}^{b}"}]},{name:"\u53CC\u91CD\u79EF\u5206 Double integral",data:[{value:"\\iint"},{value:"\\iint_{a}^{b} "},{value:"\\iint\\limits_{a}^{b} "}]},{name:"\u4E09\u91CD\u79EF\u5206 Triple integral",data:[{value:"\\iiint"},{value:"\\iiint_{a}^{b}"},{value:"\\iiint\\limits_{a}^{b} "}]},{name:"\u66F2\u7EBF\u79EF\u5206 Closed line or path integral",data:[{value:"\\oint"},{value:"\\oint_{a}^{b} "}]}]},{name:"\u5927\u578B\u8FD0\u7B97",value:"\\sum_{a}^{b}",children:[{name:"\u6C42\u548C Summation",data:[{value:"\\sum"},{value:"\\sum_{a}^{b}"},{value:"{\\textstyle \\sum_{a}^{b}} "}]},{name:"\u4E58\u79EF\u4F59\u79EF Product and coproduct",data:[{value:"\\prod"},{value:"\\prod_{a}^{b}"},{value:"{\\textstyle \\prod_{a}^{b}}"},{value:"\\coprod"},{value:"\\coprod_{a}^{b}"},{value:"{\\textstyle \\coprod_{a}^{b}} "}]},{name:"\u5E76\u96C6\u4EA4\u96C6 Union and intersection",data:[{value:"\\bigcup"},{value:"\\bigcup_{a}^{b}"},{value:"{\\textstyle \\bigcup_{a}^{b}}"},{value:"\\bigcap"},{value:"\\bigcap_{a}^{b}"}]},{name:"\u6790\u53D6\u5408\u53D6 Disjunction and conjunction",data:[{value:"\\bigvee"},{value:"\\bigvee_{a}^{b}"},{value:"\\bigwedge"},{value:"\\bigwedge_{a}^{b}"}]}]},{name:"\u62EC\u53F7\u53D6\u6574",value:"\\left [ \\left ( \\right ) \\right ] ",children:[{name:"\u62EC\u53F7 Brackets",data:[{value:"\\left ( \\right )"},{value:"\\left [ \\right ]"},{value:"\\left \\langle \\right \\rangle "},{value:"\\left | \\right | "},{value:"\\left \\lfloor \\right \\rfloor "},{value:"\\left \\lceil \\right \\rceil "}]}]}],be=[{name:"\u4EE3\u6570",value:"\\sqrt{a^2+b^2}",children:[{data:[{value:"\\left(x-1\\right)\\left(x+3\\right) "},{value:"\\sqrt{a^2+b^2}"},{value:"\\left ( \\frac{a}{b}\\right )^{n}= \\frac{a^{n}}{b^{n}}"},{value:"\\frac{a}{b}\\pm \\frac{c}{d}= \\frac{ad \\pm bc}{bd} "},{value:"\\frac{x^{2}}{a^{2}}-\\frac{y^{2}}{b^{2}}=1 "},{value:"\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0 "},{value:"\\sqrt[n]{a^{n}}=\\left ( \\sqrt[n]{a}\\right )^{n} "},{value:"x ={-b \\pm \\sqrt{b^2-4ac}\\over 2a} "},{value:"y-y_{1}=k \\left( x-x_{1}\\right) "},{value:`\\left\\{\\begin{matrix} \r
x=a + r\\text{cos}\\theta \\ \r
y=b + r\\text{sin}\\theta \r
\\end{matrix}\\right. `},{value:`\\begin{array}{l} \r
\\text{\u5BF9\u4E8E\u65B9\u7A0B\u5F62\u5982\uFF1A}x^{3}-1=0 \\ \r
\\text{\u8BBE}\\text{:}\\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
x_{1}=1,x_{2}= \\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
x_{3}= \\omega ^{2}=\\frac{-1-\\sqrt{3}i}{2} \r
\\end{array} `},{value:`\\begin{array}{l} \r
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
\\left\\{\\begin{matrix} \r
\\Delta \\gt 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u4E0D\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
\\Delta = 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
\\Delta \\lt 0\\text{\u65B9\u7A0B\u65E0\u5B9E\u6839} \r
\\end{matrix}\\right. \r
\\end{array} `},{value:`\\begin{array}{l} \r
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
\\mathop{{x}}\\nolimits_{{1,2}}=\\frac{{-b \\pm \r
\\sqrt{{\\mathop{{b}}\\nolimits^{{2}}-4ac}}}}{{2a}} \\ \r
\\mathop{{x}}\\nolimits_{{1}}+\\mathop{{x}}\\nolimits_{{2}}=-\\frac{{b}}{{a}} \\ \r
\\mathop{{x}}\\nolimits_{{1}}\\mathop{{x}}\\nolimits_{{2}}=\\frac{{c}}{{a}} \r
\\end{array} `}]}]},{name:"\u51E0\u4F55",value:"\\Delta A B C ",children:[{data:[{value:"\\Delta A B C "},{value:"a \\parallel c,b \\parallel c \\Rightarrow a \\parallel b "},{value:"l \\perp \\beta ,l \\subset \\alpha \\Rightarrow \\alpha \\perp \\beta"},{value:`\\left.\\begin{matrix} \r
a \\perp \\alpha \\ \r
b \\perp \\alpha \r
\\end{matrix}\\right\\}\\Rightarrow a \\parallel b`},{value:"P \\in \\alpha ,P \\in \\beta , \\alpha \\cap \\beta =l \\Rightarrow P \\in l "},{value:`\\alpha \\perp \\beta , \\alpha \\cap \\beta =l,a \\subset \\alpha ,a \\perp l \r
\\Rightarrow a \\perp \\beta `},{value:`\\left.\\begin{matrix} \r
a \\subset \\beta ,b \\subset \\beta ,a \\cap b=P \\ \r
a \\parallel \\partial ,b \\parallel \\partial \r
\\end{matrix}\\right\\}\\Rightarrow \\beta \\parallel \\alpha `},{value:"\\alpha \\parallel \\beta , \\gamma \\cap \\alpha =a, \\gamma \\cap \\beta =b \\Rightarrow a \\parallel b "},{value:"A \\in l,B \\in l,A \\in \\alpha ,B \\in \\alpha \\Rightarrow l \\subset \\alpha "},{value:`\\left.\\begin{matrix} \r
m \\subset \\alpha ,n \\subset \\alpha ,m \\cap n=P \\ \r
a \\perp m,a \\perp n \r
\\end{matrix}\\right\\}\\Rightarrow a \\perp \\alpha `},{value:`\\begin{array}{c} \r
\\text{\u76F4\u89D2\u4E09\u89D2\u5F62\u4E2D,\u76F4\u89D2\u8FB9\u957Fa,b,\u659C\u8FB9\u8FB9\u957Fc} \\ \r
a^{2}+b^{2}=c^{2} \r
\\end{array}`}]}]},{name:"\u4E0D\u7B49\u5F0F",value:"a > b",children:[{data:[{value:"a > b,b > c \\Rightarrow a > c "},{value:"a > b,c > d \\Rightarrow a+c > b+d "},{value:"a > b > 0,c > d > 0 \\Rightarrow ac bd "},{value:`\\begin{array}{c} \r
a \\gt b,c \\gt 0 \\Rightarrow ac \\gt bc \\ \r
a \\gt b,c \\lt 0 \\Rightarrow ac \\lt bc \r
\\end{array}`},{value:"\\left | a-b \\right | \\geqslant \\left | a \\right | -\\left | b \\right | "},{value:"-\\left | a \\right |\\leq a\\leqslant \\left | a \\right | "},{value:"\\left | a \\right |\\leqslant b \\Rightarrow -b \\leqslant a \\leqslant \\left | b \\right | "},{value:"\\left | a+b \\right | \\leqslant \\left | a \\right | + \\left | b \\right | "},{value:`\\begin{array}{c} \r
a \\gt b \\gt 0,n \\in N^{\\ast},n \\gt 1 \\ \r
\\Rightarrow a^{n}\\gt b^{n}, \\sqrt[n]{a}\\gt \\sqrt[n]{b} \r
\\end{array}`},{value:`\\left( \\sum_{k=1}^n a_k b_k \\right)^{\\!\\!2}\\leq \r
\\left( \\sum_{k=1}^n a_k^2 \\right) \\left( \\sum_{k=1}^n b_k^2 \\right) `},{value:`\\begin{array}{c} \r
a,b \\in R^{+} \\ \r
\\Rightarrow \\frac{a+b}{{2}}\\ge \\sqrt{ab} \\ \r
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
\\end{array}`},{value:`\\begin{array}{c} \r
a,b \\in R \\ \r
\\Rightarrow a^{2}+b^{2}\\gt 2ab \\ \r
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
\\end{array}`},{value:`\\begin{array}{c} \r
H_{n}=\\frac{n}{\\sum \\limits_{i=1}^{n}\\frac{1}{x_{i}}}= \\frac{n}{\\frac{1}{x_{1}}+ \\frac{1}{x_{2}}+ \\cdots + \\frac{1}{x_{n}}} \\ G_{n}=\\sqrt[n]{\\prod \\limits_{i=1}^{n}x_{i}}= \\sqrt[n]{x_{1}x_{2}\\cdots x_{n}} \\ A_{n}=\\frac{1}{n}\\sum \\limits_{i=1}^{n}x_{i}=\\frac{x_{1}+ x_{2}+ \\cdots + x_{n}}{n} \\ Q_{n}=\\sqrt{\\sum \\limits_{i=1}^{n}x_{i}^{2}}= \\sqrt{\\frac{x_{1}^{2}+ x_{2}^{2}+ \\cdots + x_{n}^{2}}{n}} \\ H_{n}\\leq G_{n}\\leq A_{n}\\leq Q_{n} \r
\\end{array}`}]}]},{name:"\u79EF\u5206",value:"\\frac{\\mathrm{d}\\partial}{\\partial x}",children:[{data:[{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}x^n=nx^{n-1} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}e^{ax}=a\\,e^{ax} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\ln(x)=\\frac{1}{x} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\sin x=\\cos x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cos x=-\\sin x "},{value:"\\int k\\mathrm{d}x = kx+C "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\tan x=\\sec^2 x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cot x=-\\csc^2 x "},{value:"\\int \\frac{1}{x}\\mathrm{d}x= \\ln \\left| x \\right| +C "},{value:"\\int \\frac{1}{\\sqrt{1-x^{2}}}\\mathrm{d}x= \\arcsin x +C "},{value:"\\int \\frac{1}{1+x^{2}}\\mathrm{d}x= \\arctan x +C "},{value:"\\int u \\frac{\\mathrm{d}v}{\\mathrm{d}x}\\,\\mathrm{d}x=uv-\\int \\frac{\\mathrm{d}u}{\\mathrm{d}x}v\\,\\mathrm{d}x "},{value:"f(x) = \\int_{-\\infty}^\\infty \\hat f(x)\\xi\\,e^{2 \\pi i \\xi x} \\,\\mathrm{d}\\xi "},{value:"\\int x^{\\mu}\\mathrm{d}x=\\frac{x^{\\mu +1}}{\\mu +1}+C, \\left({\\mu \\neq -1}\\right) "}]}]},{name:"\u4E09\u89D2",value:"e^{i \\theta}",children:[{name:"\u6C42\u548C Summation",data:[{value:"e^{i \\theta} "},{value:"\\left(\\frac{\\pi}{2}-\\theta \\right ) "},{value:"\\text{sin}^{2}\\frac{\\alpha}{2}=\\frac{1- \\text{cos}\\alpha}{2} "},{value:"\\text{cos}^{2}\\frac{\\alpha}{2}=\\frac{1+ \\text{cos}\\alpha}{2} "},{value:"\\text{tan}\\frac{\\alpha}{2}=\\frac{\\text{sin}\\alpha}{1+ \\text{cos}\\alpha} "},{value:"\\sin \\alpha + \\sin \\beta =2 \\sin \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\sin \\alpha - \\sin \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha + \\cos \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha - \\cos \\beta =-2\\sin \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"a^{2}=b^{2}+c^{2}-2bc\\cos A "},{value:"\\frac{\\sin A}{a}=\\frac{\\sin B}{b}=\\frac{\\sin C}{c}=\\frac{1}{2R} "},{value:"\\sin \\left ( \\frac{\\pi}{2}-\\alpha \\right ) = \\cos \\alpha "},{value:"\\sin \\left ( \\frac{\\pi}{2}+\\alpha \\right ) = \\cos \\alpha "}]}]},{name:"\u7EDF\u8BA1",value:"C_{r}^{n}",children:[{data:[{value:"C_{r}^{n} "},{value:"\\frac{n!}{r!(n-r)!} "},{value:"\\sum_{i=1}^{n}{X_i} "},{value:"\\sum_{i=1}^{n}{X_i^2} "},{value:"X_1, \\cdots,X_n "},{value:"\\frac{x-\\mu}{\\sigma} "},{value:"\\sum_{i=1}^{n}{(X_i - \\overline{X})^2} "},{value:`\\begin{array}{c} \r
\\text{\u82E5}P \\left( AB \\right) =P \\left( A \\right) P \\left( B \\right) \\\\ \r
\\text{\u5219}P \\left( A \\left| B\\right. \\right) =P \\left({B}\\right) \r
\\end{array}`},{value:"P(E) ={n \\choose k}p^k (1-p)^{n-k} "},{value:"P \\left( A \\right) = \\lim \\limits_{n \\to \\infty}f_{n}\\left ( A \\right ) "},{value:"P \\left( \\bigcup \\limits_{i=1}^{+ \\infty}A_{i}\\right) = \\prod \\limits_{i=1}^{+ \\infty}P{\\left( A_{i}\\right)} "},{value:`\\begin{array}{c} \r
P \\left( \\emptyset \\right) =0 \\\\ \r
P \\left( S \\right) =1 \r
\\end{array}`},{value:`\\begin{array}{c} \r
\\forall A \\in S \\\\ \r
P \\left( A \\right) \\ge 0 \r
\\end{array}`},{value:"P \\left( \\bigcup \\limits_{i=1}^{n}A_{i}\\right) = \\prod \\limits_{i=1}^{n}P \\left( A_{i}\\right) "},{value:`\\begin{array}{c} \r
S= \\binom{N}{n},A_{k}=\\binom{M}{k}\\cdot \\binom{N-M}{n-k} \\\\ \r
P\\left ( A_{k}\\right ) = \\frac{\\binom{M}{k}\\cdot \\binom{N-M}{n-k}}{\\binom{N}{n}} \r
\\end{array}`},{value:`\\begin{array}{c} \r
P_{n}=n! \\\\ \r
A_{n}^{k}=\\frac{n!}{\\left( n-k \\left) !\\right. \\right.} \r
\\end{array}`}]}]}],Ie=fe=>{Ne.current.setValue(Ne.current.getValue()+" "+fe.value+" ")},Ke=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:Fe.createElement(ve.Z,{className:ze.Z.lists,gutter:[10,10]},Be.map((fe,qe)=>Fe.createElement(Pe.Z,{flex:"110px",className:ze.Z.item},Fe.createElement("div",null,Fe.createElement(_e.Z,{value:`$$${fe.value}$$`}),fe.name),Fe.createElement("div",{className:ze.Z.children},fe.children.map((st,wt)=>Fe.createElement("div",{key:wt},Fe.createElement("h1",null,st.name),Fe.createElement(ve.Z,{gutter:[10,10]},st.data.map((ft,ct)=>Fe.createElement(Pe.Z,{key:ct,onClick:()=>Ie(ft),className:ze.Z.diamond},Fe.createElement(_e.Z,{value:"`$$"+ft.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Fe.createElement(ve.Z,{className:ze.Z.lists,gutter:[10,10]},be.map((fe,qe)=>Fe.createElement(Pe.Z,{flex:"110px",className:ze.Z.item},Fe.createElement("div",null,Fe.createElement(_e.Z,{value:"`$$"+fe.value+"$$`"}),fe.name),Fe.createElement("div",{className:ze.Z.children},fe.children.map((st,wt)=>Fe.createElement("div",{key:wt},st.name&&Fe.createElement("h1",null,st.name),Fe.createElement(ve.Z,{gutter:[10,10]},st.data.map((ft,ct)=>Fe.createElement(Pe.Z,{key:ct,onClick:()=>Ie(ft),className:ze.Z.diamond},Fe.createElement(_e.Z,{value:"`$$"+ft.value+"$$`"}))))))))))}],at=()=>{var fe=document.createElement("div");fe.innerHTML=Ne.current.getValue();var qe=fe.innerText;return Xe&&Xe(qe),qe};return(0,E.useImperativeHandle)(Ye,()=>({getData:at})),Fe.createElement("div",{className:ze.Z.mathWrap},Fe.createElement(Te.default,{defaultActiveKey:"1",items:Ke}),Fe.createElement("math-field",{locale:"zh_cn",className:ze.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:Ne,style:{width:800,marginTop:30,fontSize:18}},vt||""),$e&&Fe.createElement("div",{className:ze.Z.button},Fe.createElement(He.ZP,{size:"large",onClick:at,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});kt.Z=We},90736:function(It,kt,ne){"use strict";var E=ne(59301),ve=ne(4977),Pe=ne(7939),Te=Object.defineProperty,He=Object.defineProperties,_e=Object.getOwnPropertyDescriptors,ze=Object.getOwnPropertySymbols,nt=Object.prototype.hasOwnProperty,Fe=Object.prototype.propertyIsEnumerable,We=(Ye,Ne,Be)=>Ne in Ye?Te(Ye,Ne,{enumerable:!0,configurable:!0,writable:!0,value:Be}):Ye[Ne]=Be,Xe=(Ye,Ne)=>{for(var Be in Ne||(Ne={}))nt.call(Ne,Be)&&We(Ye,Be,Ne[Be]);if(ze)for(var Be of ze(Ne))Fe.call(Ne,Be)&&We(Ye,Be,Ne[Be]);return Ye},$e=(Ye,Ne)=>He(Ye,_e(Ne));const vt=({img:Ye,buttonProps:Ne={},styles:Be={},customText:be,ButtonText:Ie,ButtonClick:Ke,Buttonclass:at,ButtonTwo:fe,imgStyles:qe,loading:st=!1,className:wt=""})=>E.createElement("section",{className:`tc animated fadeIn ${wt}`,style:Xe({color:"#999",margin:"100px auto",visibility:st?"hidden":"visible"},Be)},E.createElement("img",{src:Ye||ve,style:$e(Xe({},qe),{pointerEvents:"none",userSelect:"none"})}),E.createElement("p",{className:"mt20 font14"},be||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),Ie&&E.createElement(Pe.ZP,Xe({className:at,onClick:Ke},Ne),Ie),fe&&fe);kt.Z=vt},86974:function(It,kt,ne){"use strict";ne.d(kt,{Z:function(){return at}});var E=ne(59301),ve={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",showClose:"showClose___edZQA",embed:"embed___hvpEJ"},Pe=ne(7939),Te=ne(70557),He=ne(34728),_e=ne(25399),ze=ne(76406),nt=ne(84849),Fe=ne(90736),We=ne(14185),Xe=ne(52078),$e=ne(59301),vt=Object.defineProperty,Ye=Object.getOwnPropertySymbols,Ne=Object.prototype.hasOwnProperty,Be=Object.prototype.propertyIsEnumerable,be=(fe,qe,st)=>qe in fe?vt(fe,qe,{enumerable:!0,configurable:!0,writable:!0,value:st}):fe[qe]=st,Ie=(fe,qe)=>{for(var st in qe||(qe={}))Ne.call(qe,st)&&be(fe,st,qe[st]);if(Ye)for(var st of Ye(qe))Be.call(qe,st)&&be(fe,st,qe[st]);return fe},Ke=(fe,qe,st)=>new Promise((wt,ft)=>{var ct=Se=>{try{ut(st.next(Se))}catch(Ve){ft(Ve)}},Je=Se=>{try{ut(st.throw(Se))}catch(Ve){ft(Ve)}},ut=Se=>Se.done?wt(Se.value):Promise.resolve(Se.value).then(ct,Je);ut((st=st.apply(fe,qe)).next())}),at=({editOffice:fe="view",data:qe,issaver:st,onSaver:wt,theme:ft,type:ct,filename:Je,monacoEditor:ut,className:Se,style:Ve,close:Ae,onClose:tt,hasMask:Dt,disabledDownload:lt,onImgDimensions:Qe,showNodata:xt,recordInfo:Re})=>{const[me,pt]=(0,E.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[bt,it]=(0,E.useState)(""),[Le,Ue]=(0,E.useState)(),mt=window.ENV==="build"?"/react/build":"",Zt=location.host.startsWith("localhost")?We.Z.PROXY_SERVER:We.Z.API_SERVER,en=10*(1024*1024),dt=(0,E.useRef)();qe!=null&&qe.startsWith("/api")&&ct!=="txt"&&(qe=We.Z.API_SERVER+qe);const Lt=ye=>ye.substring(ye.lastIndexOf("/")+1).split(".").pop();Je&&ut&&(ut.filename=Je),(0,E.useEffect)(()=>{var ye,se;const ot=(se=(ye=document.cookie)==null?void 0:ye.replace(/\s/g,""))==null?void 0:se.split(";");ot==null||ot.map(Xt=>{let zt=Xt.split("=");zt[0]==="_educoder_session"&&it(zt[1])})},[]),(0,E.useEffect)(()=>{ct==="office"&&(qe.indexOf("bigfilescdn.")>-1||qe.indexOf("bigfiles1")>-1?Ue({url:qe,fileType:Lt(qe),model:qe.indexOf("model=edit")?"edit":"view"}):qe.indexOf("coze")>-1?Ue({url:qe,fileType:"doc",model:"view"}):he())},[ct,qe]);function pn(ye){return Ke(this,null,function*(){ye.data.type==="pdfdata"&&(wt(ye.data.data),window.removeEventListener("message",pn,!1)),console.log("mess---:",ye.data)})}const he=()=>Ke(void 0,null,function*(){console.log("data:",qe);let ye=qe;qe.startsWith("http")||(ye=location.origin+ye);let se=new URL(ye).pathname.split("/").pop();const ot=yield(0,nt.gJ)({attachment_id:se});ot.url=Zt+ot.url,Ue(ot)}),le=()=>{if(qe.startsWith("http")||qe.startsWith("blob:")){ae();return}(0,ze.Sv)(Je||"educoder",qe,Je)},ae=()=>{Re&&(0,Xe.fc)({id:Re==null?void 0:Re.id,watch_type:1,course_id:Re==null?void 0:Re.course_id}),(0,ze.Nd)(Je||"educoder",decodeURIComponent(qe))};(0,E.useEffect)(()=>(window.addEventListener("message",pe),()=>{window.removeEventListener("message",pe)}),[]);const pe=ye=>{var se;((se=ye==null?void 0:ye.data)==null?void 0:se.type)==="closePop"&&tt()};return $e.createElement("div",{style:Ie({},Ve||{}),className:`${Dt&&ve.bgBlack} ${ct?ve.wrp:"hide"}`},!!ct&&Ae&&$e.createElement("div",{id:"closePop",className:ve.close,ref:dt},!!Qe&&$e.createElement(_e.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>dt.current},$e.createElement("span",{onClick:()=>{tt(),Qe()}},$e.createElement("i",{className:"icon-yulanpizhu"}))),!lt&&window.parent===window&&$e.createElement(_e.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>dt.current},$e.createElement("span",{onClick:ae},$e.createElement("i",{className:"icon-quxiaozhiding"}))),st&&$e.createElement(_e.Z,{title:"\u4FDD\u5B58pdf\u5E76\u9000\u51FA",getPopupContainer:()=>dt.current},$e.createElement("span",{className:"",onClick:()=>{const ye=document.getElementById("pdfiframe");window.addEventListener("message",pn,!1),setTimeout(()=>{ye.contentWindow.postMessage("getData","*")},300)}},$e.createElement("i",{className:"icon-baocun"}))),$e.createElement(_e.Z,{title:"\u5173\u95ED",getPopupContainer:()=>dt.current},$e.createElement("span",{className:"",onClick:()=>{tt()}},$e.createElement("i",{className:"icon-guanbi1"})))),$e.createElement("div",{className:`${ve[Se]} ${Se} ${ve.monaco} ${ct==="txt"?"show":"hide"}`},ct==="txt"&&$e.createElement($e.Fragment,null,$e.createElement(He.ZP,Ie({},ut)))),ct==="audio"&&$e.createElement("audio",{controls:!0,src:`${(qe==null?void 0:qe.indexOf("http://"))>-1||(qe==null?void 0:qe.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${qe}`,autoPlay:!0}),ct==="video"&&$e.createElement($e.Fragment,null,(qe==null?void 0:qe.indexOf("http"))>-1?$e.createElement("video",{controls:!0,src:`${qe}`,autoPlay:!0}):$e.createElement("video",{controls:!0,src:`data:video/mp4;base64,${qe}`,autoPlay:!0})),ct==="office"&&Le&&$e.createElement("iframe",{src:`${mt}/office.html?key=${Le.key}&url=${btoa(Le.url)}&callbackUrl=${Zt+(Le.callbackUrl||"")}&fileType=${Le.fileType}&title=${Le.title||""}&model=${fe}&officeServer=${We.Z.ONLYOFFICE}&disabledDownload=${!!lt}`}),ct==="html"&&$e.createElement("iframe",{src:qe+"&disposition=inline"}),ct==="pdf"&&$e.createElement("iframe",{id:"pdfiframe",src:`${mt}/js/pdf/index.html?filename=${Je||"educoder.pdf"}&url=${encodeURIComponent(qe)}&disabledDownload=${!!lt}&model=${fe}`}),ct==="image"&&$e.createElement("img",{src:`${(qe==null?void 0:qe.indexOf("http://"))>-1||(qe==null?void 0:qe.indexOf("https://"))>-1?"":"data:image/png;base64,"}${qe}`}),(ct==="other"||ct==="download")&&$e.createElement($e.Fragment,null,xt?$e.createElement(Fe.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:$e.createElement(Pe.ZP,{icon:$e.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:le,disabled:lt},"\u4E0B\u8F7D")}):$e.createElement(Pe.ZP,{type:"primary",size:"middle",onClick:le,disabled:lt},$e.createElement(Te.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")),ct==="flowChart"&&$e.createElement("div",{className:"embed"},$e.createElement("iframe",{src:`/drawio/src/main/webapp/viewer.html?id=${qe||""}&gapi=0&od=0&db=0&gh=0&gl=0`,width:"100%",height:"100%",frameBorder:"0"})))}},58219:function(It,kt,ne){"use strict";ne.d(kt,{Q:function(){return Fe},Z:function(){return Xe}});var E=ne(59301),ve={flex_box_center:"flex_box_center___VcCAZ",flex_space_between:"flex_space_between___I3jjO",flex_box_vertical_center:"flex_box_vertical_center___Rm_54",flex_box_center_end:"flex_box_center_end___nTsdc",flex_box_column:"flex_box_column___UVpzN",tags:"tags___kRRoe",text:"text___IyyEa",tagWrap:"tagWrap___v63mB",tag:"tag___X7wE6",c:"c___mZMPq",cpp:"cpp___eaTie",java:"java___gL98T",python:"python___eNRkk",edit:"edit___tbVu0"},Pe=ne(92310),Te=ne.n(Pe),He=ne(62957),_e=ne(6767),ze=ne(62673),nt=($e,vt,Ye)=>new Promise((Ne,Be)=>{var be=at=>{try{Ke(Ye.next(at))}catch(fe){Be(fe)}},Ie=at=>{try{Ke(Ye.throw(at))}catch(fe){Be(fe)}},Ke=at=>at.done?Ne(at.value):Promise.resolve(at.value).then(be,Ie);Ke((Ye=Ye.apply($e,vt)).next())});const Fe=({title:$e="\u8BBE\u7F6E\u7F16\u7A0B\u8BED\u8A00",dataSource:vt=[],visible:Ye,setVisible:Ne,tip:Be,onOk:be})=>{const[Ie,Ke]=(0,E.useState)([]),[at,fe]=(0,E.useState)(!1);return(0,E.useEffect)(()=>{Ye&&Ke(vt)},[Ye]),E.createElement(He.default,{centered:!0,open:Ye,title:$e,confirmLoading:at,width:564,onOk:()=>nt(void 0,null,function*(){if(!Ie.length){_e.ZP.warning("\u8BF7\u9009\u62E9\u7F16\u7A0B\u8BED\u8A00");return}fe(!0),yield be(Ie),fe(!1)}),onCancel:()=>Ne(!1)},!!Be&&E.createElement("div",{className:"c-grey-666 font16 mb10"},Be),E.createElement("div",{style:{background:"#F6F7F9",padding:"20px 20px 20px 26px"}},E.createElement(ze.default.Group,{value:Ie,options:[{label:"C\u8BED\u8A00",value:"C"},{label:"C++\u8BED\u8A00",value:"C++",style:{marginLeft:30}},{label:"Java\u8BED\u8A00",value:"Java",style:{marginLeft:30}},{label:"Python\u8BED\u8A00",value:"Python",style:{marginLeft:30}}],onChange:qe=>{Ke(qe)}})))};var Xe=({title:$e="\u5141\u8BB8\u7F16\u7A0B\u7684\u8BED\u8A00",className:vt,style:Ye={},onEdit:Ne,dataSource:Be=[]})=>{const be={C:E.createElement("div",{className:ve.c},"C"),"C++":E.createElement("div",{className:ve.cpp},"C++"),Java:E.createElement("div",{className:ve.java},"Java"),Python:E.createElement("div",{className:ve.python},"Python")};return E.createElement("div",{className:Te()(ve.tags,vt),style:Ye},!!$e&&E.createElement("div",{className:ve.text},$e),E.createElement("div",{className:ve.tagWrap},Be==null?void 0:Be.map(Ie=>E.createElement(E.Fragment,{key:Ie},be[Ie]))),!!Ne&&E.createElement("div",{onClick:Ne,className:`iconfont icon-bianji_Hover ${ve.edit}`}))}},9556:function(It,kt,ne){"use strict";ne.d(kt,{t:function(){return Xt}});var E=ne(59301),ve=ne(37568),Pe=ne(8848),Te=ne(28284),He=ne(62957),_e=ne(77019),ze=ne(5269),nt=ne(4875),Fe=ne(82326),We=ne(47889),Xe=ne(7939),$e=ne(93725),vt=ne(78130),Ye=ne(44283),Ne=ne(42168),Be=ne(6767),be=ne(29787),Ie=ne(24334),Ke={flex_box_center:"flex_box_center___kOQ8P",flex_space_between:"flex_space_between___fY6jt",flex_box_vertical_center:"flex_box_vertical_center___bDSSI",flex_box_center_end:"flex_box_center_end___mQ6mU",flex_box_column:"flex_box_column___F15G0",result:"result___UYRo8",left:"left___TRaH5",right:"right___twp9s",box:"box___vwndt",li:"li___hRe2d"},at=ne(49317),fe=ne(19160),qe=ne(39116),st=ne(56102),wt=ne(30628),ft=ne(59301),ct=Object.defineProperty,Je=Object.defineProperties,ut=Object.getOwnPropertyDescriptors,Se=Object.getOwnPropertySymbols,Ve=Object.prototype.hasOwnProperty,Ae=Object.prototype.propertyIsEnumerable,tt=(zt,on,Kt)=>on in zt?ct(zt,on,{enumerable:!0,configurable:!0,writable:!0,value:Kt}):zt[on]=Kt,Dt=(zt,on)=>{for(var Kt in on||(on={}))Ve.call(on,Kt)&&tt(zt,Kt,on[Kt]);if(Se)for(var Kt of Se(on))Ae.call(on,Kt)&&tt(zt,Kt,on[Kt]);return zt},lt=(zt,on)=>Je(zt,ut(on)),Qe=(zt,on,Kt)=>new Promise((Yn,Fn)=>{var or=rr=>{try{ur(Kt.next(rr))}catch(Xr){Fn(Xr)}},ra=rr=>{try{ur(Kt.throw(rr))}catch(Xr){Fn(Xr)}},ur=rr=>rr.done?Yn(rr.value):Promise.resolve(rr.value).then(or,ra);ur((Kt=Kt.apply(zt,on)).next())}),Re=({buttonProps:zt,buttonText:on,form:Kt,hackIdentifier:Yn="",answerKey:Fn,data:or})=>{const[ra,ur]=(0,E.useState)(!1),[rr,Xr]=(0,E.useState)(!1),[Vr,xr]=(0,E.useState)(!1),[Dn,pa]=(0,E.useState)({}),[Jn,Vn]=(0,E.useState)(""),[ha,Ti]=(0,E.useState)(""),Ni=(0,E.useRef)(Yn),Ir=(0,E.useRef)(""),Sn=(0,E.useRef)(!1);(0,E.useEffect)(()=>{Vr&&Jr()},[Vr]),(0,E.useEffect)(()=>()=>{sessionStorage.removeItem("projectFill")},[]);const ir=()=>new Date().getTime(),Fa=or==null?void 0:or.code,$a=()=>{var Kr,qa,aa;let Wn=Fa?or==null?void 0:or.code:(Kr=Kt.getFieldValue("hack_codes"))==null?void 0:Kr.code,Rn=Fa?or==null?void 0:or.answer_content:Kt.getFieldValue(Fn),cn=Fa?or==null?void 0:or.input:(aa=(qa=Kt.getFieldValue("hack_sets"))==null?void 0:qa[0])==null?void 0:aa.input;Rn==null||Rn.forEach(fn=>{const wn=fn.value||fn.answer_text||"";Wn=Wn.replace(/(@▁@|@▁▁@)/,wn)}),Ti(cn),Vn(Wn),pa({}),xr(!0)},Jr=()=>Qe(void 0,null,function*(){var Kr,qa,aa,Wn;const Rn=ir(),cn=Fa?or==null?void 0:or.time_limit:(Kr=Kt.getFieldsValue())==null?void 0:Kr.hack.time_limit,fn=Fa?(qa=or==null?void 0:or.answer_content)==null?void 0:qa.length:(Wn=(aa=Kt.getFieldsValue())==null?void 0:aa.standard_answers)==null?void 0:Wn.length;ur(!0),yield(0,fe.bM)(Ir.current,{test_hack_code:Jn,test_input:ha});function wn(){return Qe(this,null,function*(){const{status:nn,data:Kn}=yield(0,fe.rX)(Ir.current,"submit"),On=ir()-Rn>(cn+3)*1e3*fn;if(Sn.current){if(On){Be.ZP.error("\u8C03\u8BD5\u4EE3\u7801\u8D85\u65F6"),ur(!1);return}if(nn===0){ur(!1),pa(lt(Dt({},Kn),{showText:!0}));return}setTimeout(wn,1e3)}})}wn()}),na=()=>Qe(void 0,null,function*(){var Kr,qa,aa,Wn,Rn,cn,fn;if(!or){try{yield Kt.validateFields()}catch(Jt){(aa=(qa=(Kr=Jt==null?void 0:Jt.errorFields)==null?void 0:Kr[0])==null?void 0:qa.name)!=null&&aa.includes("standard_answers")?Be.ZP.error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"):Be.ZP.error(Jt.errorFields[0].errors[0]),Kt.scrollToField(Jt.errorFields[0].name,{behavior:"smooth",block:"center"});return}Xr(!0);let nn="";const Kn=Kt.getFieldsValue();Ni.current?nn=yield(0,at.ZP)(`/api/problems/${Ni.current}.json`,{method:"put",body:lt(Dt({},Kn),{hack:lt(Dt({},Kn==null?void 0:Kn.hack),{sub_discipline_id:(fn=(cn=Kn==null?void 0:Kn.hack)==null?void 0:cn.sub_discipline_id)==null?void 0:fn[1],difficult:Kn.difficulty,item_banks_group_id:Kn.item_banks_group_id}),hack_codes:lt(Dt({},Kn.hack_codes),{code:Ie.Base64.encode(Kn.hack_codes.code)}),update_hack_sets:Kn.hack_sets,is_blank:!0,item_type:"BPROGRAM"})}):(nn=yield(0,at.ZP)("/api/problems.json",{method:"post",body:lt(Dt({},Kn),{hack:lt(Dt({},Kn==null?void 0:Kn.hack),{sub_discipline_id:(Rn=(Wn=Kn==null?void 0:Kn.hack)==null?void 0:Wn.sub_discipline_id)==null?void 0:Rn[1],difficult:Kn.difficulty,item_banks_group_id:Kn.item_banks_group_id}),hack_codes:lt(Dt({},Kn.hack_codes),{code:Ie.Base64.encode(Kn.hack_codes.code)}),hack_sets:Kn.hack_sets,is_blank:!0,item_type:"BPROGRAM"})}),Ni.current=nn==null?void 0:nn.identifier,sessionStorage.projectFill=nn==null?void 0:nn.identifier)}const wn=yield(0,at.ZP)(`/api/problems/${Ni.current}/start.json`,{method:"get"});if((wn==null?void 0:wn.status)===0){Ir.current=wn==null?void 0:wn.identifier,Sn.current=!0,Xr(!1),$a();return}Xr(!1)}),Qa=Kr=>{const{status:qa,error_msg:aa,execute_time:Wn,output:Rn,input:cn,expected_output:fn}=Kr;let wn=null;switch(qa){case wt.h.OK:wn=ft.createElement(ft.Fragment,null,ft.createElement("p",null,"\u6267\u884C\u7528\u65F6\uFF1A",Wn/1e3,"\u79D2"),ft.createElement("p",null,"\u6267\u884C\u7ED3\u679C\uFF1A\u8C03\u8BD5\u901A\u8FC7"));break;case wt.h.NOMATCH:wn=ft.createElement(ft.Fragment,null,ft.createElement("div",null,"\u8F93\u5165\uFF1A"),ft.createElement("pre",{style:{fontFamily:"initial"}},cn),ft.createElement("div",null,"\u8F93\u51FA\uFF1A"),ft.createElement("pre",{style:{fontFamily:"initial"}},Rn&&Ie.Base64.decode(Rn)),ft.createElement("div",null,"\u9884\u671F\u8F93\u51FA\uFF1A"),ft.createElement("pre",{style:{fontFamily:"initial"}},fn&&Ie.Base64.decode(fn)));break;case wt.h.EXECUTEFAILURE:wn=ft.createElement(ft.Fragment,null,ft.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A",ft.createElement("pre",null,cn)),ft.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),ft.createElement("pre",{className:"error"},Ie.Base64.decode(aa)));break;case wt.h.COMPILEFAILURE:wn=ft.createElement(ft.Fragment,null,ft.createElement("p",null,"\u6700\u540E\u6267\u884C\u7684\u8F93\u5165\uFF1A",ft.createElement("pre",null,cn)),ft.createElement("p",null,"\u6267\u884C\u51FA\u9519\u4FE1\u606F\uFF1A"),ft.createElement("pre",{className:"error"},Ie.Base64.decode(aa)));break;case wt.h.PODFAILURE:wn=ft.createElement("p",null,"\u521B\u5EFApod\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break;case wt.h.TIMEOUT:wn=ft.createElement("p",null,"\u8BC4\u6D4B\u8D85\u65F6\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5");break}return ft.createElement(ft.Fragment,null," ",wn," ")};return ft.createElement("div",null,ft.createElement(Xe.ZP,lt(Dt({loading:rr},zt),{onClick:na}),on),ft.createElement(He.default,{open:Vr,title:"\u8C03\u8BD5\u4EE3\u7801",destroyOnClose:!0,width:1200,okText:"\u8FD0\u884C\u6D4B\u8BD5",confirmLoading:ra,cancelButtonProps:{style:{display:"none"}},onOk:()=>Jr(),onCancel:()=>{Sn.current=!1,xr(!1)}},ft.createElement("div",{className:Ke.result},ft.createElement("div",{className:Ke.left},ft.createElement("div",{className:"mb20"},ft.createElement("span",{className:"c-black"},"\u6267\u884C\u4EE3\u7801"),!or&&ft.createElement(st.CopyToClipboard,{text:Jn,onCopy:()=>Be.ZP.success("\u590D\u5236\u6210\u529F")},ft.createElement("span",{style:{float:"right"},className:"current c-light-primary"},ft.createElement("i",{className:"iconfont icon-fuzhi8 mr5"}),"\u590D\u5236"))),ft.createElement(qe.Z,{height:510,className:"mb0",hidetoolBar:!0,defaultValue:Jn,onChange:Kr=>Vn(Kr)})),ft.createElement("div",{className:Ke.right},ft.createElement("div",{className:"c-black mb20"},"\u81EA\u5B9A\u4E49\u6D4B\u8BD5\u7528\u4F8B ",ft.createElement("span",{style:{color:"#FA6400",fontSize:14}},"\uFF08\u9ED8\u8BA4\u7B2C1\u4E2A\u6D4B\u8BD5\u7528\u4F8B\u7684\u8F93\u5165\uFF0C\u53EF\u624B\u52A8\u4FEE\u6539\u540E\u518D\u8FDB\u884C\u8C03\u8BD5\uFF09")),ft.createElement("div",{className:Ke.box},ft.createElement("div",{className:Ke.li},ft.createElement(ve.default.TextArea,{placeholder:"\u8BF7\u8F93\u5165",value:ha,onChange:Kr=>Ti(Kr.target.value),bordered:!1,style:{height:180}}))),ft.createElement("div",{className:"c-black mb20 mt30"},"\u4EE3\u7801\u6267\u884C\u7ED3\u679C"),ft.createElement("div",{className:Ke.box},ft.createElement(be.Z,{spinning:ra,tip:"\u4EE3\u7801\u6267\u884C\u4E2D"},ft.createElement("div",{className:Ke.li,style:{height:196,overflow:"auto",padding:10}},Qa(Dn))))))))},me=ne(87169),pt=ne(32134),bt=ne(12893),it=ne(59301),Le=Object.defineProperty,Ue=Object.defineProperties,mt=Object.getOwnPropertyDescriptors,Zt=Object.getOwnPropertySymbols,Pt=Object.prototype.hasOwnProperty,en=Object.prototype.propertyIsEnumerable,dt=(zt,on,Kt)=>on in zt?Le(zt,on,{enumerable:!0,configurable:!0,writable:!0,value:Kt}):zt[on]=Kt,Lt=(zt,on)=>{for(var Kt in on||(on={}))Pt.call(on,Kt)&&dt(zt,Kt,on[Kt]);if(Zt)for(var Kt of Zt(on))en.call(on,Kt)&&dt(zt,Kt,on[Kt]);return zt},pn=(zt,on)=>Ue(zt,mt(on)),he=(zt,on)=>{var Kt={};for(var Yn in zt)Pt.call(zt,Yn)&&on.indexOf(Yn)<0&&(Kt[Yn]=zt[Yn]);if(zt!=null&&Zt)for(var Yn of Zt(zt))on.indexOf(Yn)<0&&en.call(zt,Yn)&&(Kt[Yn]=zt[Yn]);return Kt};const{TextArea:le}=ve.default,{Panel:ae}=Pe.default,pe=[{title:"C",key:"C"},{title:"C++",key:"C++"},{title:"Python",key:"Python"},{title:"Java",key:"Java"}],ye=({value:zt,onChange:on})=>it.createElement(Switch,{checked:zt,onChange:Kt=>{on(Kt)}}),se="@\u2581@",ot="@\u2581\u2581@",Xt=({questionTitlePlaceholder:zt,form:on,scoreByBlank:Kt=!1,hackidentifier:Yn,answerKey:Fn})=>{const[or,ra]=(0,E.useState)(!1),[ur,rr]=(0,E.useState)(!1),Vr=(0,Ye.useParams)().type==="edit",[xr,Dn]=(0,E.useState)(0),pa=(Jr,na)=>{const Qa=na.line;let Kr=0;for(let aa=0;aa<Qa;aa++)Kr+=Jr.getLine(aa).split(se).length-1;for(let aa=0;aa<Qa;aa++)Kr+=Jr.getLine(aa).split(ot).length-1;const qa=Jr.getLine(Qa).substring(0,na.ch);return Kr+=qa.split(se).length-1,Kr+=qa.split(ot).length-1,Kr},Jn=(Jr,na,Qa,Kr)=>{const qa=Jr.getRange(na.from,na.to);let aa=0;if(na.text.forEach(Wn=>{aa+=Wn.split(se).length-1}),na.text.forEach(Wn=>{aa+=Wn.split(ot).length-1}),na.origin!=="setValue"){if(qa&&(qa.indexOf(se)!==-1||qa.indexOf(ot)!==-1)){const Wn=qa.split(se).length-1+qa.split(ot).length-1,Rn=pa(Jr,na.from);if(console.log(`\u5220\u9664${Wn}\u4E2A\uFF0C \u524D\u9762\u6709${Rn}\u4E2A\uFF0C\u65B0\u589E${aa}\u4E2A`),Wn>1){const cn=Array.from({length:Wn},(fn,wn)=>Rn+wn);Kr(cn)}else Kr(Rn)}else if(aa>0){const Wn=pa(Jr,na.from);console.log(`\u65B0\u589E${aa}\u4E2A\uFF0C\u4E4B\u524D\u6709${Wn}\u4E2A`),Qa(aa,Wn)}}},Vn=()=>{const Jr=on.getFieldValue(Fn);on.setFieldsValue({[Fn]:Jr==null?void 0:Jr.map((na,Qa)=>pn(Lt({},na),{position:Qa+1}))})},ha=(0,E.useRef)(),Ti=(Jr,na)=>{for(let Qa=0;Qa<Jr;Qa++)ha.current({position:null,answer_text:""},na+Qa);Vn()},Ni=(0,E.useRef)(),Ir=Jr=>{Ni.current(Jr),Vn()};function Sn(Jr){Jr.stopPropagation()}const ir=Te.default.useWatch(Fn,on);function Fa(){let Jr=on.getFieldValue("hack_sets"),na=parseInt(on.getFieldValue("hack").code_compile_score)||0;const Qa=Jr.length+1;Jr.map((Kr,qa)=>(Kr.position=qa+1,Kr)),Jr.push({input:"",output:"",position:Qa}),on.setFieldsValue({hack_sets:Jr}),Dn(Jr.length-1)}function $a(Jr){let na=on.getFieldValue("hack_sets"),Qa=parseInt(on.getFieldValue("hack").code_compile_score)||0;const Kr=(na==null?void 0:na.length)-1;na.splice(Jr,1),na==null||na.map((qa,aa)=>(qa.position=aa+1,qa)),on.setFieldsValue({hack_sets:na})}return it.createElement("div",{className:Ne.Z.wrap},it.createElement(Te.default.Item,{label:"\u8BD5\u9898\u63CF\u8FF0",name:["hack","description"],style:{display:"table"},className:"w100",labelCol:{span:24},rules:[{required:!0}]},it.createElement(vt.h,{scrollId:"name",watch:!0,height:140})),it.createElement("div",{className:Ne.Z.questionTitleEditorWrap},it.createElement(Te.default.Item,{label:"\u7A0B\u5E8F\u4EE3\u7801",name:["hack_codes","code"],labelCol:{span:24},rules:[{required:!0}]},it.createElement(vt.h,{scrollId:"name",watch:!0,height:400,showNullProgramButton:!0,onChange:(Jr,na)=>{const Qa=on.getFieldValue(Fn);console.log("--preAnswerData",Qa,na),on.setFieldsValue({[Fn]:Qa==null?void 0:Qa.map((Kr,qa)=>{var aa;return pn(Lt({},Kr),{position:qa+1,multi_line:(aa=na==null?void 0:na[qa])==null?void 0:aa.multiLine})})})},placeholder:zt,onCMBeforeChange:(Jr,na)=>{Jn(Jr,na,Ti,Ir)}}))),it.createElement(Te.default.List,{name:Fn,rules:[{validator(Jr,na){if(!(na!=null&&na.length))return Promise.reject(new Error("\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"));for(const Qa of na){const{answer_text:Kr}=Qa||{};if((Kr==null?void 0:Kr.length)===0)return Promise.reject(new Error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"))}return Promise.resolve()}}]},(Jr,{add:na,remove:Qa},{errors:Kr})=>(ha.current=na,Ni.current=Qa,it.createElement(it.Fragment,null,it.createElement("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"}},it.createElement(Te.default.Item,{label:"\u586B\u7A7A\u9879\u7B54\u6848",required:!0,labelCol:{span:24}}),it.createElement("div",{onClick:()=>{He.default.warning({title:"\u7ED9\u5206\u8BF4\u660E",icon:null,width:700,centered:!0,content:it.createElement("div",null,it.createElement("div",null,"1.\u5B66\u751F\u586B\u5199\u7B54\u6848\u4E4B\u540E\uFF0C\u5FC5\u987B\u63D0\u4EA4\u4EE3\u7801",it.createElement("span",{style:{color:"#e30000"}},"\u8FDB\u884C\u8BC4\u6D4B"),"\u624D\u80FD\u5F97\u5206\u3002"),it.createElement("div",{style:{marginTop:10}},"2.\u8BD5\u9898\u7B97\u5206\u65F6\uFF0C\u7CFB\u7EDF\u4F1A\u5C06\u7A0B\u5E8F\u91CC\u9762\u7684\u6240\u6709\u7A7A\u66FF\u6362\u6210\u5B66\u751F\u7684\u7B54\u6848\u8FDB\u884C\u8BC4\u6D4B\u3002\u8F93\u51FA\u7684\u7ED3\u679C\u4E0E\u6D4B\u8BD5\u96C6\u6BD4\u5BF9\uFF0C\u5B8C\u5168\u6B63\u786E\u5219\u5F97\u6EE1\u5206\uFF1B\u82E5\u4E0D\u5B8C\u5168\u6B63\u786E\uFF0C\u5219\u4F9D\u6B21\u5C06\u6BCF\u4E2A\u7A7A\u6362\u6210\u5B66\u751F\u63D0\u4EA4\u7684\u7B54\u6848\uFF0C\u540C\u65F6\u5C06\u5176\u4ED6\u7A7A\u66FF\u6362\u6210\u6807\u51C6\u7B54\u6848\uFF0C\u8FD0\u884C\u7A0B\u5E8F\u3002\u5982\u679C\u8FD9\u4E2A\u7A7A\u7684\u5B66\u751F\u7B54\u6848\u4E0E\u6807\u51C6\u7B54\u6848\u7ED3\u5408\u80FD\u5F97\u5230\u6B63\u786E\u8F93\u51FA\uFF0C\u5219\u8FD9\u4E2A\u7A7A\u5F97\u5230\u8BE5\u7A7A\u7684\u6EE1\u5206\uFF0C\u5426\u5219\u8BE5\u7A7A\u5F970\u5206\u3002"))})},style:{minHeight:32,color:"#3061D0",cursor:"pointer"}},it.createElement(me.Z,{style:{marginRight:3,color:"#3061D0"}}),it.createElement("span",null," \u7ED9\u5206\u8BF4\u660E"))),Jr.map((qa,aa)=>{var Wn=qa,{key:Rn,name:cn}=Wn,fn=he(Wn,["key","name"]),wn,nn;return it.createElement(_e.Z,{className:"mb20",key:Rn,align:"middle",wrap:!1},it.createElement(ze.Z,{flex:"0 0 auto",className:`${Ne.Z.blankIndex}`},"\u586B\u7A7A\u9879",aa+1),it.createElement(ze.Z,{flex:1},it.createElement(_e.Z,{align:"top",justify:"space-between",wrap:!1},it.createElement(ze.Z,null,it.createElement(Te.default.Item,pn(Lt({},fn),{name:[cn,"answer_text"],noStyle:!0}),(wn=ir==null?void 0:ir[cn])!=null&&wn.multi_line||(nn=ir==null?void 0:ir[cn])!=null&&nn.multiLine?it.createElement(le,{spellCheck:!1,style:{marginLeft:10,width:550}}):it.createElement(ve.default,{style:{marginLeft:10,width:550},className:Ne.Z.blankInput,size:"large",maxLength:1e3,onBlur:Kn=>{}}))),Kt&&it.createElement(ze.Z,{flex:"224px"},it.createElement(Te.default.Item,pn(Lt({},fn),{name:[cn,"score"],label:"\u5206\u503C",rules:[{required:!0}]}),it.createElement(nt.Z,{size:"large",className:Ne.Z.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5206\u503C"}))))))})))),it.createElement("div",{onClick:()=>ra(!0)},it.createElement(Te.default.Item,{name:["hack","analysis"],label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},it.createElement(vt.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:or}))),it.createElement(Te.default.Item,{label:"\u7F16\u7A0B\u8BED\u8A00",style:{marginTop:30},name:["hack_codes","language"],labelCol:{span:24},rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u7F16\u7A0B\u8BED\u8A00"}]},it.createElement(Fe.default,{size:"large"},pe.map(Jr=>it.createElement(Fe.default.Option,{key:Jr.title,value:Jr.key}," ",Jr.title)))),it.createElement(Te.default.Item,{label:"\u6700\u5927\u8BC4\u6D4B\u65F6\u957F\uFF08\u79D2\uFF09",style:{marginTop:30},labelCol:{span:24},required:!0},it.createElement(Te.default.Item,{name:["hack","time_limit"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5355\u4E2A\u6D4B\u8BD5\u96C6\u8BC4\u6D4B\u65F6\u957F\u9650\u5236"},{type:"number",min:3,message:"\u6700\u5C0F\u9650\u5236\u65F6\u95F4\u662F3\u79D2"}],noStyle:!0},it.createElement(nt.Z,{precision:0,max:10,min:3,size:"large",style:{width:"97%"}})),it.createElement("span",{className:"ml10 font14"},"\u79D2")),it.createElement(Te.default.Item,{label:"\u8BC4\u6D4B\u65F6\u7A7A\u683C\u5904\u7406",style:{marginTop:30},name:["hack","submit_rule"],labelCol:{span:24},rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u8BC4\u6D4B\u65F6\u7A7A\u683C\u5904\u7406"}]},it.createElement(We.ZP.Group,{style:{marginTop:-10}},it.createElement(We.ZP,{value:0},"\u4E0D\u5FFD\u7565\u7A7A\u683C"),it.createElement(We.ZP,{value:1},"\u5FFD\u7565\u9996\u5C3E\u7A7A\u683C"),it.createElement(We.ZP,{value:2},"\u5FFD\u7565\u6240\u6709\u7A7A\u683C"))),it.createElement(Te.default.Item,{label:"\u6D4B\u8BD5\u7528\u4F8B",required:!0,style:{marginTop:30}},it.createElement(Xe.ZP,{className:"mr20",type:"primary",onClick:Fa},"\u6DFB\u52A0")),it.createElement("div",{style:{padding:15}},it.createElement(Te.default.List,{name:"hack_sets"},(Jr,{})=>it.createElement(Pe.default,{accordion:!0,bordered:!1,activeKey:xr,onChange:Dn,className:Ne.Z.collapseWrapper,expandIcon:({isActive:na})=>it.createElement("i",{className:`iconfont icon-weizhankai ${na?Ne.Z.open:Ne.Z.close}`,style:{fontSize:14,transition:"all .2s"}})},Jr.map((na,Qa)=>it.createElement(ae,{key:na.key,id:`scroll-key-${na.key}`,header:it.createElement(_e.Z,{align:"middle",justify:"space-between",wrap:!1},it.createElement(ze.Z,{className:Ne.Z.panelHeader},it.createElement("span",null,"\u6D4B\u8BD5\u7528\u4F8B",Qa+1)),it.createElement(ze.Z,{flex:1},it.createElement(_e.Z,{align:"middle",justify:"end",wrap:!1},it.createElement(ze.Z,{flex:"78px",className:Ne.Z.operationWrapper},Qa>0&&it.createElement(it.Fragment,null,it.createElement(pt.Z,{className:Ne.Z.add,onClick:Kr=>{Sn(Kr),Fa()}}),it.createElement($e.Z,{okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u786E\u5B9A\u5220\u9664\u6D4B\u8BD5\u96C6"+(Qa+1),onCancel:Sn,onConfirm:Kr=>{Sn(Kr),$a(Qa)}},it.createElement(bt.Z,{className:`${Ne.Z.remove} ml20`,onClick:Sn})))))))},it.createElement(Te.default.Item,{label:"\u8F93\u5165",labelCol:{span:24},name:[na.name,"input"]},it.createElement(le,{rows:4})),it.createElement(Te.default.Item,{label:"\u8F93\u51FA",labelCol:{span:24},name:[na.name,"output"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8F93\u51FA\u5185\u5BB9"}]},it.createElement(le,{rows:4}))))))),it.createElement(Re,{form:on,answerKey:Fn,hackIdentifier:Yn,buttonText:"\u8FD0\u884C\u8C03\u8BD5",buttonProps:{ghost:!0,icon:it.createElement("i",{className:"iconfont icon-ceshi"}),style:{background:"rgba(55,173,131,0.05)",borderRadius:19,border:"1px solid #37AD83",width:116,height:38,display:"inline-flex",fontSize:14,alignItems:"center",justifyContent:"center",marginTop:20,cursor:"pointer",color:"#37AD83"}}}))}},8338:function(It,kt,ne){"use strict";ne.d(kt,{u:function(){return st}});var E=ne(59301),ve=ne(77019),Pe=ne(5269),Te=ne(25399),He=ne(28284),_e=ne(42168),ze=ne(32134),nt=ne(12893),Fe=ne(78130),We=ne(59301),Xe=Object.defineProperty,$e=Object.defineProperties,vt=Object.getOwnPropertyDescriptors,Ye=Object.getOwnPropertySymbols,Ne=Object.prototype.hasOwnProperty,Be=Object.prototype.propertyIsEnumerable,be=(wt,ft,ct)=>ft in wt?Xe(wt,ft,{enumerable:!0,configurable:!0,writable:!0,value:ct}):wt[ft]=ct,Ie=(wt,ft)=>{for(var ct in ft||(ft={}))Ne.call(ft,ct)&&be(wt,ct,ft[ct]);if(Ye)for(var ct of Ye(ft))Be.call(ft,ct)&&be(wt,ct,ft[ct]);return wt},Ke=(wt,ft)=>$e(wt,vt(ft)),at=(wt,ft)=>{var ct={};for(var Je in wt)Ne.call(wt,Je)&&ft.indexOf(Je)<0&&(ct[Je]=wt[Je]);if(wt!=null&&Ye)for(var Je of Ye(wt))ft.indexOf(Je)<0&&Be.call(wt,Je)&&(ct[Je]=wt[Je]);return ct};const fe=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],qe=({value:wt,onChange:ft,choiceTextKey:ct,answerKey:Je,index:ut,isEdit:Se,setInputActive:Ve,form:Ae,choiceOptionsPath:tt,allowChangeMode:Dt,showAddIcon:lt,addItem:Qe,deleteItem:xt})=>{console.log(wt,"value");const Re=(wt==null?void 0:wt[Je])===1,me=()=>{const bt=Ae.getFieldValue(tt);Ae.setFieldValue(tt,bt.map(it=>Ke(Ie({},it),{[Je]:0})))},pt=()=>{Re?ft(Ke(Ie({},wt),{[Je]:0})):(Dt||me(),ft(Ke(Ie({},wt),{[Je]:1})))};return We.createElement(ve.Z,{className:_e.Z.choiceWrap,align:"middle",wrap:!1},We.createElement(Pe.Z,{onClick:pt,className:`${_e.Z.choiceIndex} ${Re?_e.Z.activeAnswer:""}`},fe[ut]),We.createElement(Pe.Z,{flex:1,className:`${_e.Z.editorWrap} ml15`,onClick:Ve},We.createElement(Fe.x,{height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",isEdit:Se,value:wt==null?void 0:wt[ct],onChange:bt=>{ft(Ke(Ie({},wt),{[ct]:bt}))}})),We.createElement(Pe.Z,{flex:"0 0 auto",className:"ml15"},We.createElement("div",{onClick:pt,className:`${_e.Z.setAnswerBtn} ${Re?_e.Z.activeAnswer:""}`},Re?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")),We.createElement(Pe.Z,{className:_e.Z.actionWrapper},We.createElement(Te.Z,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},We.createElement(ze.Z,{className:_e.Z.addIcon,onClick:Qe,style:{visibility:lt?"visible":"hidden"}})),We.createElement(Te.Z,{title:"\u5220\u9664"},We.createElement(nt.Z,{className:_e.Z.deleteIcon,onClick:xt,style:{visibility:ut>1?"visible":"hidden"}}))))},st=({questionTitlePlaceholder:wt,titleKey:ft,choiceKey:ct,analysisKey:Je,choiceTextKey:ut,answerKey:Se,choiceOptionsPath:Ve,allowChangeMode:Ae=!0,form:tt,showAnalysis:Dt=!0})=>{const[lt,Qe]=(0,E.useState)(),[xt,Re]=(0,E.useState)(!1);return We.createElement("div",{className:_e.Z.wrap},We.createElement("div",{className:_e.Z.questionTitleEditorWrap},We.createElement(He.default.Item,{label:"\u9898\u5E72",name:ft,labelCol:{span:24},rules:[{required:!0}]},We.createElement(Fe.h,{scrollId:Array.isArray(ft)?ft.join("_"):`${ft}`,watch:!0,height:140,placeholder:wt}))),We.createElement(He.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}}),We.createElement(He.default.List,{name:ct,rules:[{validator(me,pt){const bt=pt.some(Le=>Le[Se]===1),it=pt.findIndex(Le=>{var Ue;return((Ue=Le[ut])==null?void 0:Ue.length)<=0});return it!==-1?Promise.reject(new Error(`\u8BF7\u5148\u8F93\u5165${fe[it]}\u9009\u9879\u7684\u5185\u5BB9`)):bt?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},(me,{add:pt,remove:bt})=>We.createElement("div",{id:Array.isArray(Ve)?Ve.join("_"):`${Ve}`},me.map((it,Le)=>{var Ue=it,{key:mt,name:Zt}=Ue,Pt=at(Ue,["key","name"]);const en=lt===mt,dt=()=>{Qe(mt)},Lt=Le<14&&Le===me.length-1,pn=()=>pt({[ut]:"",[Se]:0}),he=()=>bt(Zt);return We.createElement(He.default.Item,Ke(Ie({},Pt),{key:mt,name:Zt,className:_e.Z.choiceListWrap,rules:[{validator(le,ae){return ae!=null&&ae.choice_text?Promise.resolve():Promise.reject(new Error(`\u8BF7\u5148\u8F93\u5165${fe[Le]}\u9009\u9879\u7684\u5185\u5BB9`))}}]}),We.createElement(qe,{choiceTextKey:ut,answerKey:Se,index:Le,isEdit:en,setInputActive:dt,form:tt,choiceOptionsPath:Ve,allowChangeMode:Ae,showAddIcon:Lt,addItem:pn,deleteItem:he}))}),me.length<15&&We.createElement("div",{className:`${_e.Z.addBtn} mb30`,onClick:()=>pt({[ut]:"",[Se]:0})},"\u6DFB\u52A0\u9009\u9879"))),Dt&&We.createElement("div",{onClick:()=>Re(!0)},We.createElement(He.default.Item,{name:Je,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},We.createElement(Fe.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:xt}))))}},64780:function(It,kt,ne){"use strict";ne.d(kt,{u:function(){return tt}});var E=ne(59301),ve=ne(62957),Pe=ne(77019),Te=ne(5269),He=ne(37568),_e=ne(25399),ze=ne(58755),nt=ne(28284),Fe=ne(47889),We=ne(4875),Xe=ne(7939),$e=ne(78130),vt=ne(12893),Ye=ne(32134),Ne=ne(61485),Be=ne(42168),be=ne(71039),Ie=ne(59301),Ke=Object.defineProperty,at=Object.defineProperties,fe=Object.getOwnPropertyDescriptors,qe=Object.getOwnPropertySymbols,st=Object.prototype.hasOwnProperty,wt=Object.prototype.propertyIsEnumerable,ft=(Dt,lt,Qe)=>lt in Dt?Ke(Dt,lt,{enumerable:!0,configurable:!0,writable:!0,value:Qe}):Dt[lt]=Qe,ct=(Dt,lt)=>{for(var Qe in lt||(lt={}))st.call(lt,Qe)&&ft(Dt,Qe,lt[Qe]);if(qe)for(var Qe of qe(lt))wt.call(lt,Qe)&&ft(Dt,Qe,lt[Qe]);return Dt},Je=(Dt,lt)=>at(Dt,fe(lt)),ut=(Dt,lt)=>{var Qe={};for(var xt in Dt)st.call(Dt,xt)&&lt.indexOf(xt)<0&&(Qe[xt]=Dt[xt]);if(Dt!=null&&qe)for(var xt of qe(Dt))lt.indexOf(xt)<0&&wt.call(Dt,xt)&&(Qe[xt]=Dt[xt]);return Qe};const Se=({value:Dt,onChange:lt,position:Qe,removeBlank:xt})=>{const Re=pt=>{ve.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u53C2\u8003\u7B54\u6848\u5417\uFF1F",className:Be.Z.modal,onOk:()=>{const bt=[...Dt];bt.splice(pt,1),bt.length===0?xt(Qe-1):lt(bt)}})},me=()=>{const pt=[...Dt];pt.push(""),lt(pt)};return Ie.createElement(Pe.Z,{className:"ml20"},Ie.createElement(Te.Z,{flex:1},Dt==null?void 0:Dt.map((pt,bt)=>Ie.createElement(Pe.Z,{key:`${pt}_${bt}`,className:"mb20"},Ie.createElement(He.default.TextArea,{style:{flex:1,minHeight:44},defaultValue:pt,autoSize:{maxRows:3},maxLength:1e3,onBlur:it=>{const Le=[...Dt],Ue=it.target.value.trim();Le[bt]=Ue,lt(Le)}}),Ie.createElement(_e.Z,{title:"\u5220\u9664"},Ie.createElement(vt.Z,{className:Be.Z.deleteIcon,style:{marginLeft:15,visibility:Qe===1&&bt===0?"hidden":"visible"},onClick:()=>Re(bt)})),Ie.createElement(_e.Z,{title:"\u65B0\u589E\u7B54\u6848"},Ie.createElement(Ye.Z,{style:{color:"#2A5DD8",fontSize:16,marginLeft:15,visibility:bt===0?"visible":"hidden"},onClick:()=>{me()}}))))))},Ve=({value:Dt,onChange:lt,position:Qe,removeBlank:xt})=>{const Re=pt=>{ve.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u53C2\u8003\u7B54\u6848\u5417\uFF1F",className:Be.Z.modal,onOk:()=>{const bt=[...Dt];bt.splice(pt,1),bt.length===0?xt(Qe-1):lt(bt)}})},me=()=>{const pt=[...Dt];pt.push(""),lt(pt)};return Ie.createElement(Pe.Z,{className:"ml20"},Ie.createElement(Te.Z,{flex:1},Dt==null?void 0:Dt.map((pt,bt)=>Ie.createElement(Pe.Z,{key:`${pt}_${bt}`,align:"middle",className:"mb20"},Ie.createElement(be.Z,{value:pt,style:{flex:1},onChange:it=>{const Le=[...Dt];Le[bt]=it,lt(Le)}}),Ie.createElement(_e.Z,{title:"\u5220\u9664"},Ie.createElement(vt.Z,{className:Be.Z.deleteIcon,style:{marginLeft:15,visibility:Qe===1&&bt===0?"hidden":"visible"},onClick:()=>Re(bt)})),Ie.createElement(_e.Z,{title:"\u65B0\u589E\u7B54\u6848"},Ie.createElement(Ye.Z,{style:{color:"#2A5DD8",fontSize:16,marginLeft:15,visibility:bt===0?"visible":"hidden"},onClick:()=>{me()}}))))))},Ae=({value:Dt=!0,onChange:lt})=>Ie.createElement(ze.Z,{checked:!Dt,onChange:Qe=>{lt(!Qe)}}),tt=({questionTitlePlaceholder:Dt,form:lt,scoreByBlank:Qe=!1,answerKey:xt})=>{const[Re,me]=(0,E.useState)(!1),pt=()=>{const Zt=lt.getFieldValue(xt);lt.setFieldsValue({[xt]:Zt.map((Pt,en)=>Je(ct({},Pt),{position:en+1}))})},bt=(0,E.useRef)(),it=(Zt,Pt)=>{for(let en=0;en<Zt;en++)bt.current({position:null,answer_text:[""],model:1},Pt+en);pt()},Le=(0,E.useRef)(),Ue=Zt=>{Le.current(Zt),pt()},mt=nt.default.useWatch(xt,lt);return Ie.createElement("div",{className:Be.Z.wrap},Ie.createElement("div",{className:Be.Z.questionTitleEditorWrap},Ie.createElement(nt.default.Item,{label:"\u9898\u5E72",name:"name",labelCol:{span:24},rules:[{required:!0}]},Ie.createElement($e.h,{scrollId:"name",watch:!0,height:140,placeholder:Dt,showNullButton:!0,onAddBlank:()=>{const Zt=lt.getFieldValue(xt);it(1,Zt==null?void 0:Zt.length)}}))),Ie.createElement(nt.default.List,{name:xt,rules:[{validator(Zt,Pt){if(!(Pt!=null&&Pt.length))return Promise.reject(new Error("\u8BF7\u5148\u5728\u9898\u5E72\u4E2D\u63D2\u5165\u586B\u7A7A\u9879"));for(const en of Pt){const{answer_text:dt}=en||{};if(dt!=null&&dt.some(Lt=>(Lt==null?void 0:Lt.length)===0))return Promise.reject(new Error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"))}return Promise.resolve()}}]},(Zt,{add:Pt,remove:en},{errors:dt})=>(bt.current=Pt,Le.current=en,Ie.createElement(Ie.Fragment,null,Ie.createElement(nt.default.Item,{label:Ie.createElement("span",null,"\u586B\u7A7A\u9879\u7B54\u6848"),required:!0,labelCol:{span:24}}),Zt.map((Lt,pn)=>{var he=Lt,{key:le,name:ae}=he,pe=ut(he,["key","name"]),ye,se;return Ie.createElement("div",{style:{marginBottom:10},key:le},Ie.createElement(Pe.Z,{className:"mb20",align:"middle",wrap:!1},Ie.createElement(Te.Z,{style:{marginRight:10},flex:"0 0 auto",className:`${Be.Z.blankIndex}`},"\u586B\u7A7A\u9879",pn+1),Ie.createElement(nt.default.Item,Je(ct({},pe),{name:[ae,"model"],noStyle:!0}),Ie.createElement(Fe.ZP.Group,{onChange:()=>{const ot=lt.getFieldValue(xt);lt.setFieldsValue({[xt]:ot.map((Xt,zt)=>Je(ct({},Xt),{answer_text:ae===zt?[""]:Xt.answer_text}))})}},Ie.createElement(Fe.ZP,{value:1},"\u6587\u672C\u6A21\u5F0F ",Ie.createElement(_e.Z,{title:"\u5B66\u751F\u7B54\u9898\u65F6\uFF0C\u9700\u8981\u5728\u6587\u672C\u6846\u4E2D\u586B\u5199\u6587\u672C\u7B54\u6848"},Ie.createElement(Ne.Z,null))),Ie.createElement(Fe.ZP,{value:2},"\u6570\u5B66\u516C\u5F0F\u6A21\u5F0F ",Ie.createElement(_e.Z,{title:"\u5B66\u751F\u7B54\u9898\u65F6\uFF0C\u9700\u8981\u7F16\u5199\u6570\u5B66\u516C\u5F0F\u4F5C\u4E3A\u7B54\u6848"},Ie.createElement(Ne.Z,null)))))),Ie.createElement(Pe.Z,{style:{marginLeft:20},align:"middle",wrap:!1},Ie.createElement(Te.Z,{flex:1},Ie.createElement(Pe.Z,{align:"top",justify:"space-between",wrap:!1},Ie.createElement(Te.Z,{flex:1},Ie.createElement(nt.default.Item,Je(ct({},pe),{name:[ae,"answer_text"],noStyle:!0}),((se=(ye=lt.getFieldValue(xt))==null?void 0:ye[ae])==null?void 0:se.model)===1?Ie.createElement(Se,{removeBlank:Ue,position:pn+1}):Ie.createElement(Ve,{removeBlank:Ue,position:pn+1}))),Qe&&Ie.createElement(Te.Z,{flex:"224px",style:{margin:"-2px 0 0 20px"}},Ie.createElement(nt.default.Item,Je(ct({},pe),{name:[ae,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:Be.Z.blankInputNumberWrapper}),Ie.createElement(We.Z,{min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5206\u503C"})))),Ie.createElement(nt.default.Item,Je(ct({},pe),{name:[ae,"position"],noStyle:!0}),Ie.createElement(He.default,{type:"hidden"})))))})))),Ie.createElement(Xe.ZP,{className:"mb20",onClick:()=>it(1,mt==null?void 0:mt.length),type:"primary",shape:"round"},"\u65B0\u589E\u586B\u7A7A\u9879"),Ie.createElement(Pe.Z,{align:"middle"},Ie.createElement(nt.default.Item,{name:"downcase",valuePropName:"checked"},Ie.createElement(ze.Z,null)),Ie.createElement(Te.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u5B57\u6BCD\u5927\u5C0F\u5199")),Ie.createElement(Pe.Z,{align:"middle"},Ie.createElement(nt.default.Item,{name:"no_space",valuePropName:"checked"},Ie.createElement(ze.Z,null)),Ie.createElement(Te.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u7A7A\u683C")),(mt==null?void 0:mt.length)>1&&Ie.createElement(Pe.Z,{align:"middle",className:(mt==null?void 0:mt.length)>1?"mb30":`${Be.Z.hide}`},Ie.createElement(nt.default.Item,{name:"is_ordered"},Ie.createElement(Ae,null)),Ie.createElement(Te.Z,{className:"ml10"},"\u5141\u8BB8\u5B66\u751F\u6BCF\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u4E0E\u6807\u51C6\u7B54\u6848\u7684\u987A\u5E8F\u4E0D\u4E00\u81F4")),Ie.createElement("div",{onClick:()=>me(!0)},Ie.createElement(nt.default.Item,{name:"analysis",label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},Ie.createElement($e.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Re}))))}},12035:function(It,kt,ne){"use strict";ne.d(kt,{Z:function(){return at}});var E=ne(59301),ve=ne(77019),Pe=ne(5269),Te=ne(28284),He=ne(42168),_e=ne(78130),ze=ne(59301),nt=Object.defineProperty,Fe=Object.defineProperties,We=Object.getOwnPropertyDescriptors,Xe=Object.getOwnPropertySymbols,$e=Object.prototype.hasOwnProperty,vt=Object.prototype.propertyIsEnumerable,Ye=(fe,qe,st)=>qe in fe?nt(fe,qe,{enumerable:!0,configurable:!0,writable:!0,value:st}):fe[qe]=st,Ne=(fe,qe)=>{for(var st in qe||(qe={}))$e.call(qe,st)&&Ye(fe,st,qe[st]);if(Xe)for(var st of Xe(qe))vt.call(qe,st)&&Ye(fe,st,qe[st]);return fe},Be=(fe,qe)=>Fe(fe,We(qe)),be=(fe,qe)=>{var st={};for(var wt in fe)$e.call(fe,wt)&&qe.indexOf(wt)<0&&(st[wt]=fe[wt]);if(fe!=null&&Xe)for(var wt of Xe(fe))qe.indexOf(wt)<0&&vt.call(fe,wt)&&(st[wt]=fe[wt]);return st};const Ie={\u6B63\u786E:"T",\u9519\u8BEF:"F"},Ke=({value:fe,onChange:qe,form:st})=>{const wt=(fe==null?void 0:fe.is_answer)===1,ft=fe==null?void 0:fe.choice_text,ct=()=>{const Je=st.getFieldsValue().choices.map(ut=>({choice_text:ut.choice_text,is_answer:0}));st.setFieldsValue({choices:Je}),qe(Be(Ne({},fe),{is_answer:1}))};return ze.createElement(ve.Z,{className:He.Z.choiceWrap,align:"middle",wrap:!1,style:{marginBottom:"20px"}},ze.createElement(Pe.Z,{onClick:ct,className:`${He.Z.choiceIndex} ${He.Z.judgementIndex} ${wt?He.Z.activeAnswer:""}`},Ie[ft]),ze.createElement(Pe.Z,{flex:1,className:`${He.Z.editorWrap} ml15`},ze.createElement("div",{className:`${He.Z.inputBorder} ${He.Z.placeholder} ${wt?He.Z.activeJudgementAnswer:""}`},ft)),ze.createElement(Pe.Z,{flex:"0 0 auto",className:"ml15"},ze.createElement("div",{onClick:ct,className:`${He.Z.setAnswerBtn} ${wt?He.Z.activeAnswer:""}`},wt?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")))},at=({questionTitlePlaceholder:fe,choiceKey:qe,form:st})=>{const[wt,ft]=(0,E.useState)(!1);return ze.createElement("div",{className:He.Z.wrap},ze.createElement("div",{className:He.Z.questionTitleEditorWrap},ze.createElement(Te.default.Item,{label:"\u9898\u5E72",name:"name",labelCol:{span:24},rules:[{required:!0}]},ze.createElement(_e.h,{scrollId:"name",watch:!0,height:140,placeholder:fe}))),ze.createElement(Te.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}},ze.createElement(Te.default.List,{name:"choices",rules:[{validator(ct,Je){return Je.some(Se=>(Se==null?void 0:Se.is_answer)===1)?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},ct=>ze.createElement("div",{id:"choices"},ct.map(Je=>{var ut=Je,{key:Se,name:Ve}=ut,Ae=be(ut,["key","name"]);return ze.createElement(Te.default.Item,Be(Ne({},Ae),{key:Se,name:Ve,noStyle:!0}),ze.createElement(Ke,{form:st}))})))),ze.createElement("div",{onClick:()=>ft(!0)},ze.createElement(Te.default.Item,{name:"analysis",label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},ze.createElement(_e.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:wt}))))}},78130:function(It,kt,ne){"use strict";ne.d(kt,{h:function(){return Ne},x:function(){return Be}});var E=ne(39116),ve=ne(42168),Pe=ne(35883),Te=ne(59301),He=Object.defineProperty,_e=Object.defineProperties,ze=Object.getOwnPropertyDescriptors,nt=Object.getOwnPropertySymbols,Fe=Object.prototype.hasOwnProperty,We=Object.prototype.propertyIsEnumerable,Xe=(be,Ie,Ke)=>Ie in be?He(be,Ie,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):be[Ie]=Ke,$e=(be,Ie)=>{for(var Ke in Ie||(Ie={}))Fe.call(Ie,Ke)&&Xe(be,Ke,Ie[Ke]);if(nt)for(var Ke of nt(Ie))We.call(Ie,Ke)&&Xe(be,Ke,Ie[Ke]);return be},vt=(be,Ie)=>_e(be,ze(Ie)),Ye=(be,Ie)=>{var Ke={};for(var at in be)Fe.call(be,at)&&Ie.indexOf(at)<0&&(Ke[at]=be[at]);if(be!=null&&nt)for(var at of nt(be))Ie.indexOf(at)<0&&We.call(be,at)&&(Ke[at]=be[at]);return Ke};const Ne=be=>{var Ie=be,{value:Ke,onChange:at,scrollId:fe}=Ie,qe=Ye(Ie,["value","onChange","scrollId"]);return Te.createElement("div",{id:fe||""},Te.createElement(E.Z,vt($e({},qe),{defaultValue:Ke,onChange:(st,wt)=>{wt!=null&&wt.length?at(st,wt):at(st)}})))},Be=({value:be,onChange:Ie,placeholder:Ke,height:at=140,isEdit:fe,miniToolbar:qe,watch:st=!0})=>fe?Te.createElement(E.Z,{watch:st,isFocus:!0,height:at||void 0,placeholder:Ke,defaultValue:be,onChange:Ie,miniToolbar:qe}):Te.createElement("div",{style:{cursor:"pointer"}},be?Te.createElement(Pe.Z,{className:ve.Z.inputBorder,value:be}):Te.createElement("div",{className:`${ve.Z.inputBorder} ${ve.Z.placeholder} inputBorderError`},Ke))},90775:function(It,kt,ne){"use strict";ne.d(kt,{W:function(){return ut}});var E=ne(59301),ve=ne(6767),Pe=ne(96599),Te=ne(28284),He=ne(58755),_e=ne(77019),ze=ne(5269),nt=ne(25399),Fe=ne(37568),We=ne(4875),Xe=ne(42168),$e=ne(78130),vt=ne(39116),Ye=ne(61485),Ne=Object.defineProperty,Be=Object.defineProperties,be=Object.getOwnPropertyDescriptors,Ie=Object.getOwnPropertySymbols,Ke=Object.prototype.hasOwnProperty,at=Object.prototype.propertyIsEnumerable,fe=(Se,Ve,Ae)=>Ve in Se?Ne(Se,Ve,{enumerable:!0,configurable:!0,writable:!0,value:Ae}):Se[Ve]=Ae,qe=(Se,Ve)=>{for(var Ae in Ve||(Ve={}))Ke.call(Ve,Ae)&&fe(Se,Ae,Ve[Ae]);if(Ie)for(var Ae of Ie(Ve))at.call(Ve,Ae)&&fe(Se,Ae,Ve[Ae]);return Se},st=(Se,Ve)=>Be(Se,be(Ve)),wt=(Se,Ve)=>{var Ae={};for(var tt in Se)Ke.call(Se,tt)&&Ve.indexOf(tt)<0&&(Ae[tt]=Se[tt]);if(Se!=null&&Ie)for(var tt of Ie(Se))Ve.indexOf(tt)<0&&at.call(Se,tt)&&(Ae[tt]=Se[tt]);return Ae};const ft=Se=>{var Ve=Se,{value:Ae,onChange:tt}=Ve,Dt=wt(Ve,["value","onChange"]);const lt=Qe=>{tt([Qe])};return E.createElement(vt.Z,st(qe({},Dt),{defaultValue:Ae==null?void 0:Ae[0],onChange:lt}))},ct=Se=>{if(!Se)return!1;if(/^s*$/.test(Se)||Se.trim()===""){ve.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u5168\u4E3A\u7A7A\u683C");return}let Ve=new RegExp("[ `~!@#$^&*()={}':;,\\[\\].<>/?~\uFF01@#\uFFE5\u2026\u2026&*\uFF08\uFF09\u2014\u3010\u3011\u2018\uFF1B\uFF1A\u201D\u201C\u3002\uFF0C\u3001\uFF1F\u300C\u300D\u300E\u300F_\\+\\-\xB7%\u300A\u300B]|[\\\\/]");return Se==="|"?(ve.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u53EA\u8F93\u5165\u4E00\u4E2A\u201C|\u201D\u5B57\u7B26\uFF01"),!1):!0},Je=({value:Se=[],onClose:Ve})=>E.createElement(Pe.default,{closable:!0,onClose:Ve,className:Xe.Z.keywordTag},E.createElement("pre",{style:{margin:"0px",whiteSpace:"pre-wrap"}},Se.join(" \u6216 "))),ut=({questionTitlePlaceholder:Se,form:Ve,showKeywords:Ae,isMustKeyWords:tt=Ae})=>{const[Dt,lt]=(0,E.useState)(!1),[Qe,xt]=(0,E.useState)(""),Re=Te.default.useWatch("use_keywords",Ve),me=Te.default.useWatch("question_score",Ve);return E.createElement("div",{className:Xe.Z.wrap},E.createElement("div",{className:Xe.Z.questionTitleEditorWrap},E.createElement(Te.default.Item,{label:"\u9898\u5E72",name:"name",labelCol:{span:24},rules:[{required:!0}]},E.createElement($e.h,{scrollId:"name",watch:!0,height:140,placeholder:Se}))),E.createElement(Te.default.Item,{label:"\u53C2\u8003\u7B54\u6848",name:"answer_texts",labelCol:{span:24}},E.createElement(ft,{watch:!0,height:140,placeholder:"\u8BF7\u7F16\u8F91\u53C2\u8003\u7B54\u6848\uFF08\u975E\u5FC5\u586B\uFF09"})),Ae&&!tt&&E.createElement(Te.default.Item,{hidden:!0,name:"use_keywords",valuePropName:"checked"},E.createElement(He.Z,{defaultChecked:!0})),Ae&&tt&&E.createElement(_e.Z,{align:"middle",className:"mb30"},E.createElement(Te.default.Item,{name:"use_keywords",valuePropName:"checked"},E.createElement(He.Z,null)),E.createElement(ze.Z,{className:"ml10"},"\u5F00\u542F\u5173\u952E\u8BCD\u81EA\u52A8\u5224\u5206"),E.createElement(ze.Z,null,E.createElement(nt.Z,{placement:"right",title:"\u9009\u4E2D\u540E\uFF0C\u9700\u8981\u8BBE\u7F6E\u6BCF\u4E2A\u5173\u952E\u8BCD\u7684\u5206\u503C\uFF0C\u7CFB\u7EDF\u4F1A\u6839\u636E\u8BBE\u7F6E\u7684\u5173\u952E\u8BCD\u8FDB\u884C\u81EA\u52A8\u5224\u5206\uFF1B \u6240\u6709\u5173\u952E\u8BCD\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u5C0F\u4E8E\u7B49\u4E8E\u5C0F\u9898\u5206\u503C\u3002"},E.createElement(Ye.Z,{style:{color:"#3061D0",marginLeft:6,cursor:"pointer"}})))),(Re||!tt)&&E.createElement(Te.default.List,{name:"keywords",rules:[{validator(pt,bt){return tt?bt!=null&&bt.length?(bt==null?void 0:bt.reduce((Le,Ue)=>Le+Ue.score,0))>parseFloat(me)?Promise.reject(new Error("\u6240\u6709\u5173\u952E\u8BCD\u7684\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u5C0F\u4E8E\u7B49\u4E8E\u8BE5\u5C0F\u9898\u7684\u5206\u503C")):Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u5224\u5206\u5173\u952E\u8BCD")):Promise.resolve()}}]},(pt,{add:bt,remove:it})=>E.createElement(E.Fragment,null,E.createElement("div",{className:`${Xe.Z.title} mb10`},tt?"\u5173\u952E\u8BCD":E.createElement("span",{style:{color:"#9096A3"}},"\u5224\u5206\u5173\u952E\u8BCD")),E.createElement(_e.Z,{align:"middle",className:"font14 mb30"},E.createElement(ze.Z,{flex:1},E.createElement(Fe.default,{value:Qe,onChange:Le=>{xt(Le.target.value)},maxLength:500,allowClear:!0,onPressEnter:Le=>{var Ue,mt,Zt,Pt;const en=`${(Ue=Le.target)==null?void 0:Ue.value}`,dt=(Zt=(mt=en==null?void 0:en.split("|"))==null?void 0:mt.filter(he=>!!he))==null?void 0:Zt.map(he=>he==null?void 0:he.trim()),Lt=Ve.getFieldValue("keywords"),pn=((Pt=Lt==null?void 0:Lt.map(he=>he==null?void 0:he.keyword))==null?void 0:Pt.flat())||[];for(const he of dt)if(pn.includes(he)){ve.ZP.error("\u4E3A\u907F\u514D\u5224\u5206\u9519\u8BEF\uFF0C\u8BF7\u52FF\u8BBE\u7F6E\u76F8\u540C\u7684\u5173\u952E\u8BCD");return}ct(en)&&(bt({keyword:dt,score:1}),xt(""))},className:Xe.Z.inputBorder,placeholder:"\u652F\u6301\u8BBE\u7F6E\u591A\u4E2A\u5173\u952E\u8BCD\uFF1B\u5E76\u5217\u5173\u952E\u8BCD\uFF08\u6216\u7684\u5173\u7CFB\uFF09\u8BF7\u7528\u201C|\u201D\u5206\u9694\u5F00"})),E.createElement(ze.Z,{flex:"148px",style:{textAlign:"right",color:"#e99237"}},"\u201C\u56DE\u8F66\u952E\u201D\u4FDD\u5B58\u5173\u952E\u8BCD")),pt.map(Le=>{var Ue=Le,{key:mt,name:Zt}=Ue,Pt=wt(Ue,["key","name"]);return E.createElement(_e.Z,{key:mt,className:"mb20",style:{marginRight:148}},E.createElement(ze.Z,{flex:1},E.createElement(_e.Z,{align:"middle",justify:"space-between"},E.createElement(Te.default.Item,st(qe({},Pt),{name:[Zt,"keyword"]}),E.createElement(Je,{onClose:()=>it(Zt)})),tt&&E.createElement(Te.default.Item,st(qe({},Pt),{name:[Zt,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:Xe.Z.blankInputNumberWrapper}),E.createElement(We.Z,{className:Xe.Z.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u5206\u6570"})))))}))),E.createElement("div",{onClick:()=>lt(!0)},E.createElement(Te.default.Item,{name:"analysis",label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},E.createElement($e.x,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Dt}))))}},40183:function(It,kt,ne){"use strict";ne.d(kt,{Z:function(){return He}});var E={text:"text___bQulM",sup:"sup___rX_Y3"},ve=ne(28284),Pe=ne(59301),He=({text:_e,name:ze="question_score"})=>{const nt=({value:Fe})=>Pe.createElement("div",{className:E.text},Pe.createElement("span",{className:E.sup},"*"),Pe.createElement("span",{className:"mr10"},"\u5206\u503C"),Pe.createElement("span",null,Fe||"--"),Pe.createElement("span",{className:"c-grey-999"},_e));return Pe.createElement(ve.default.Item,{noStyle:!0,name:ze},Pe.createElement(nt,null))}},35883:function(It,kt,ne){"use strict";ne.d(kt,{z:function(){return ut},Z:function(){return Se}});var E=ne(59301),ve=ne(46214),Pe=ne(20047),Te=ne(64018),He=ne(16471),_e=ne(14185),ze=ne(76406),nt=ne(15342),Fe=ne(44104),We=ne(7939),Xe=ne(1012),$e=ne(86974),vt=ne(59301),Ne=({html:Ve})=>{const Ae=(0,E.useRef)(null),tt=(0,E.useRef)(null),Dt=`.markdown-body p {
margin: 0 0 16px 0 !important;
line-height: 28px;
white-space: pre-wrap;
}
ol,
ul,
li {
list-style-type: none
}
ol,
ul,
dl {
margin-bottom: 0px;
}
.markdown-body {
-ms-text-size-adjust: 100%;
-webkit-text-size-adjust: 100%;
color: #333;
overflow: hidden;
font-family: "Microsoft YaHei", Helvetica, "Meiryo UI", "Malgun Gothic", "Segoe UI", "Trebuchet MS", "Monaco", monospace, Tahoma, STXihei, "\u534E\u6587\u7EC6\u9ED1", STHeiti, "Helvetica Neue", "Droid Sans", "wenquanyi micro hei", FreeSans, Arimo, Arial, SimSun, "\u5B8B\u4F53", Heiti, "\u9ED1\u4F53", sans-serif;
word-break: break-word;
font-size: 16px;
line-height: 1.6;
white-space: normal;
word-wrap: break-word;
position: relative;
}
.markdown-body ul>li {
list-style-type: disc;
}
.markdown-body ol>li {
list-style-type: decimal;
}
.markdown-body a {
background: transparent;
}
.markdown-body a:active,
.markdown-body a:hover {
outline: 0;
}
.markdown-body strong {
font-weight: bold;
}
.markdown-body h1 {
font-size: 2em;
margin: 0.67em 0;
}
.markdown-body img {
border: 0;
}
.markdown-body hr {
-moz-box-sizing: content-box;
box-sizing: content-box;
height: 0;
}
.markdown-body pre {
overflow: auto;
}
.markdown-body code,
.markdown-body kbd,
.markdown-body pre {
font-family: "Meiryo UI", "YaHei Consolas Hybrid", Consolas, "Malgun Gothic", "Segoe UI", "Trebuchet MS", Helvetica, monospace, monospace;
font-size: 1em;
}
.markdown-body input {
color: inherit;
font: inherit;
margin: 0;
}
.markdown-body html input[disabled] {
cursor: default;
}
.markdown-body input {
line-height: normal;
}
.markdown-body input[type="checkbox"] {
-moz-box-sizing: border-box;
box-sizing: border-box;
padding: 0;
}
.markdown-body table {
border-collapse: collapse;
border-spacing: 0;
}
.markdown-body td,
.markdown-body th {
padding: 0;
}
.markdown-body * {
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.markdown-body input {
font: 13px/1.4 Helvetica, arial, freesans, clean, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol";
}
.markdown-body a {
color: #4183c4;
text-decoration: none;
}
.markdown-body a:hover,
.markdown-body a:active {
text-decoration: underline;
}
.markdown-body hr {
height: 0;
margin: 15px 0;
overflow: hidden;
background: transparent;
border: 0;
border-bottom: 1px solid #ddd;
}
.markdown-body hr:before {
display: table;
content: "";
}
.markdown-body hr:after {
display: table;
clear: both;
content: "";
}
.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
margin-top: 15px;
margin-bottom: 15px;
line-height: 1.1;
}
.markdown-body h1 {
font-size: 30px;
}
.markdown-body h2 {
font-size: 21px;
}
.markdown-body h3 {
font-size: 16px;
}
.markdown-body h4 {
font-size: 14px;
}
.markdown-body h5 {
font-size: 12px;
}
.markdown-body h6 {
font-size: 11px;
}
.markdown-body blockquote {
margin: 0;
}
.markdown-body ul,
.markdown-body ol {
padding: 0;
margin-top: 0;
margin-bottom: 0;
}
ul.linenums,
ol.linenums {
padding: 16px 0 0 56px !important;
}
.markdown-body ul,
.markdown-body ol {
padding-left: 2em;
}
.markdown-body ol ol,
.markdown-body ul ol {
list-style-type: lower-roman;
}
.markdown-body ul ul ol,
.markdown-body ul ol ol,
.markdown-body ol ul ol,
.markdown-body ol ol ol {
list-style-type: lower-alpha;
}
.markdown-body dd {
margin-left: 0;
}
.markdown-body code {
font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;
font-size: 12px;
}
.markdown-body pre {
margin-top: 0;
margin-bottom: 0;
font: 12px Consolas, "Liberation Mono", Menlo, Courier, monospace;
}
.markdown-body .octicon {
font: normal normal 16px octicons-anchor;
line-height: 1;
display: inline-block;
text-decoration: none;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.markdown-body .octicon-link:before {
content: '\f05c';
}
.markdown-body>*:first-child {
margin-top: 0 !important;
}
.markdown-body>*:last-child {
margin-bottom: 0 !important;
}
.markdown-body .anchor {
position: absolute;
top: 0;
left: 0;
display: block;
padding-right: 6px;
padding-left: 30px;
margin-left: -30px;
}
.markdown-body .anchor:focus {
outline: none;
}
.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
position: relative;
margin-top: 1em;
margin-bottom: 16px;
font-weight: bold;
line-height: 1.4;
}
.markdown-body h1 .octicon-link,
.markdown-body h2 .octicon-link,
.markdown-body h3 .octicon-link,
.markdown-body h4 .octicon-link,
.markdown-body h5 .octicon-link,
.markdown-body h6 .octicon-link {
display: none;
color: #000;
vertical-align: middle;
}
.markdown-body h1:hover .anchor,
.markdown-body h2:hover .anchor,
.markdown-body h3:hover .anchor,
.markdown-body h4:hover .anchor,
.markdown-body h5:hover .anchor,
.markdown-body h6:hover .anchor {
padding-left: 8px;
margin-left: -30px;
text-decoration: none;
}
.markdown-body h1:hover .anchor .octicon-link,
.markdown-body h2:hover .anchor .octicon-link,
.markdown-body h3:hover .anchor .octicon-link,
.markdown-body h4:hover .anchor .octicon-link,
.markdown-body h5:hover .anchor .octicon-link,
.markdown-body h6:hover .anchor .octicon-link {
display: inline-block;
}
.markdown-body h1 {
padding-bottom: 0.3em;
font-size: 2.25em;
line-height: 1.2;
border-bottom: 1px solid #eee;
}
.markdown-body h1 .anchor {
line-height: 1;
}
.markdown-body h2 {
padding-bottom: 0.3em;
font-size: 1.75em;
line-height: 1.225;
border-bottom: 1px solid #eee;
}
.markdown-body h2 .anchor {
line-height: 1;
}
.markdown-body h3 {
font-size: 1.5em;
line-height: 1.43;
}
.markdown-body h3 .anchor {
line-height: 1.2;
}
.markdown-body h4 {
font-size: 1.25em;
}
.markdown-body h4 .anchor {
line-height: 1.2;
}
.markdown-body h5 {
font-size: 1em;
}
.markdown-body h5 .anchor {
line-height: 1.1;
}
.markdown-body h6 {
font-size: 1em;
color: #777;
}
.markdown-body h6 .anchor {
line-height: 1.1;
}
.markdown-body p,
.markdown-body blockquote,
.markdown-body ul,
.markdown-body ol,
.markdown-body dl,
.markdown-body table,
.markdown-body pre {
margin-top: 0;
margin-bottom: 16px;
}
.markdown-body ul ul,
.markdown-body ul ol,
.markdown-body ol ol,
.markdown-body ol ul {
margin-top: 0;
margin-bottom: 0;
}
.markdown-body li>p {
margin-top: 16px;
}
.markdown-body dl {
padding: 0;
}
.markdown-body dl dt {
padding: 0;
margin-top: 16px;
font-size: 1em;
font-style: italic;
font-weight: bold;
}
.markdown-body dl dd {
padding: 0 16px;
margin-bottom: 16px;
}
.markdown-body blockquote {
padding: 0 15px;
color: #777;
border-left: 4px solid #ddd;
}
.markdown-body blockquote> :first-child {
margin-top: 0;
}
.markdown-body blockquote> :last-child {
margin-bottom: 0;
}
.markdown-body table {
display: block;
width: 100%;
overflow: auto;
word-break: normal;
word-break: keep-all;
}
.markdown-body table th {
font-weight: bold;
text-align: revert;
}
.markdown-body table th,
.markdown-body table td {
padding: 6px 13px;
border: 1px solid #ddd;
}
.markdown-body table tr {
background-color: #fff;
border-top: 1px solid #ccc;
}
.markdown-body table tr:nth-child(2n) {
background-color: #f8f8f8;
}
.markdown-body img {
max-width: 100%;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
.markdown-body code {
padding: 0;
padding-top: 0.2em;
padding-bottom: 0.2em;
margin: 0;
font-size: 85%;
background-color: rgba(0, 0, 0, 0.04);
border-radius: 3px;
}
.markdown-body code:has(.katex) {
background-color: transparent;
}
.markdown-body code:before,
.markdown-body code:after {
letter-spacing: -0.2em;
content: "\\00a0";
}
.markdown-body pre>code {
padding: 0;
margin: 0;
font-size: 100%;
word-break: normal;
white-space: pre;
background: transparent;
border: 0;
}
.markdown-body .highlight {
margin-bottom: 16px;
}
.markdown-body .highlight pre,
.markdown-body pre {
padding: 16px;
overflow: auto;
font-size: 85%;
line-height: 1.45;
background-color: #f7f7f7;
border-radius: 3px;
}
.markdown-body .highlight pre {
margin-bottom: 0;
word-break: normal;
}
.markdown-body pre {
word-wrap: normal;
}
.markdown-body pre code {
display: inline;
max-width: initial;
padding: 0;
margin: 0;
overflow: initial;
line-height: inherit;
word-wrap: normal;
background-color: transparent;
border: 0;
}
.markdown-body pre code:before,
.markdown-body pre code:after {
content: normal;
}
.markdown-body kbd {
display: inline-block;
padding: 3px 5px;
font-size: 11px;
line-height: 10px;
color: #555;
vertical-align: middle;
background-color: #fcfcfc;
border: solid 1px #ccc;
border-bottom-color: #bbb;
border-radius: 3px;
box-shadow: inset 0 -1px 0 #bbb;
}
.markdown-body .pl-c {
color: #969896;
}
.markdown-body .pl-c1,
.markdown-body .pl-mdh,
.markdown-body .pl-mm,
.markdown-body .pl-mp,
.markdown-body .pl-mr,
.markdown-body .pl-s1 .pl-v,
.markdown-body .pl-s3,
.markdown-body .pl-sc,
.markdown-body .pl-sv {
color: #0086b3;
}
.markdown-body .pl-e,
.markdown-body .pl-en {
color: #795da3;
}
.markdown-body .pl-s1 .pl-s2,
.markdown-body .pl-smi,
.markdown-body .pl-smp,
.markdown-body .pl-stj,
.markdown-body .pl-vo,
.markdown-body .pl-vpf {
color: #333;
}
.markdown-body .pl-ent {
color: #63a35c;
}
.markdown-body .pl-k,
.markdown-body .pl-s,
.markdown-body .pl-st {
color: #a71d5d;
}
.markdown-body .pl-pds,
.markdown-body .pl-s1,
.markdown-body .pl-s1 .pl-pse .pl-s2,
.markdown-body .pl-sr,
.markdown-body .pl-sr .pl-cce,
.markdown-body .pl-sr .pl-sra,
.markdown-body .pl-sr .pl-sre,
.markdown-body .pl-src {
color: #df5000;
}
.markdown-body .pl-mo,
.markdown-body .pl-v {
color: #1d3e81;
}
.markdown-body .pl-id {
color: #b52a1d;
}
.markdown-body .pl-ii {
background-color: #b52a1d;
color: #f8f8f8;
}
.markdown-body .pl-sr .pl-cce {
color: #63a35c;
font-weight: bold;
}
.markdown-body .pl-ml {
color: #693a17;
}
.markdown-body .pl-mh,
.markdown-body .pl-mh .pl-en,
.markdown-body .pl-ms {
color: #1d3e81;
font-weight: bold;
}
.markdown-body .pl-mq {
color: #008080;
}
.markdown-body .pl-mi {
color: #333;
font-style: italic;
}
.markdown-body .pl-mb {
color: #333;
font-weight: bold;
}
.markdown-body .pl-md,
.markdown-body .pl-mdhf {
background-color: #ffecec;
color: #bd2c00;
}
.markdown-body .pl-mdht,
.markdown-body .pl-mi1 {
background-color: #eaffea;
color: #55a532;
}
.markdown-body .pl-mdr {
color: #795da3;
font-weight: bold;
}
.markdown-body kbd {
display: inline-block;
padding: 3px 5px;
font: 11px Consolas, "Liberation Mono", Menlo, Courier, monospace;
line-height: 10px;
color: #555;
vertical-align: middle;
background-color: #fcfcfc;
border: solid 1px #ccc;
border-bottom-color: #bbb;
border-radius: 3px;
box-shadow: inset 0 -1px 0 #bbb;
}
.markdown-body .task-list-item {
list-style-type: none;
}
.markdown-body .task-list-item+.task-list-item {
margin-top: 3px;
}
.markdown-body .task-list-item input {
float: left;
margin: 0.3em 0 0.25em -1.6em;
vertical-align: middle;
}
.markdown-body :checked+.radio-label {
z-index: 1;
position: relative;
border-color: #4183c4;
}
/*! Pretty printing styles. Used with prettify.js. */
/* SPAN elements with the classes below are added by prettyprint. */
.pln {
color: #000
}
/* plain text */
@media screen {
.str {
color: #080
}
/* string content */
.kwd {
color: #008
}
/* a keyword */
.com {
color: #800
}
/* a comment */
.typ {
color: #606
}
/* a type name */
.lit {
color: #066
}
/* a literal value */
/* punctuation, lisp open bracket, lisp close bracket */
.pun,
.opn,
.clo {
color: #660
}
.tag {
color: #008
}
/* a markup tag name */
.atn {
color: #606
}
/* a markup attribute name */
.atv {
color: #080
}
/* a markup attribute value */
.dec,
.var {
color: #606
}
/* a declaration; a variable name */
.fun {
color: red
}
/* a function name */
}
/* Use higher contrast and text-weight for printable form. */
@media print,
projection {
.str {
color: #060
}
.kwd {
color: #006;
font-weight: bold
}
.com {
color: #600;
font-style: italic
}
.typ {
color: #404;
font-weight: bold
}
.lit {
color: #044
}
.pun,
.opn,
.clo {
color: #440
}
.tag {
color: #006;
font-weight: bold
}
.atn {
color: #404
}
.atv {
color: #060
}
}
/* Put a border around prettyprinted code snippets. */
pre.prettyprint {
padding: 2px;
/* border: 1px solid #888 */
}
/* Specify class=linenums on a pre to get line numbering */
ol.linenums {
margin-top: 0;
margin-bottom: 0
}
/* IE indents via margin-left */
li.L0,
li.L1,
li.L2,
li.L3,
li.L5,
li.L6,
li.L7,
li.L8 {
list-style-type: none
}
/* Alternate shading for lines */
li.L1,
li.L3,
li.L5,
li.L7,
li.L9 {
background: #eee
}
.markdown-body p,
.markdown-body blockquote,
.markdown-body ul,
.markdown-body ol,
.markdown-body dl,
.markdown-body table,
.markdown-body pre {
margin-top: 0;
margin-bottom: 16px;
}`;return(0,E.useEffect)(()=>{const lt=Ae.current.attachShadow({mode:"open"});tt.current=document.createElement("div"),tt.current.className="markdown-body",tt.current.innerHTML=Ve,lt.appendChild(tt.current);const Qe=document.createElement("style");return Qe.textContent=Dt,lt.appendChild(Qe),()=>{lt.innerHTML=""}},[]),(0,E.useEffect)(()=>{tt.current&&(tt.current.innerHTML=Ve)},[Ve]),vt.createElement("div",{ref:Ae})};function Be(Ve){const Ae=["onabort","onanimationend","onanimationiteration","onanimationstart","onauxclick","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextmenu","oncopy","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onformdata","ongotpointercapture","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onload","onloadeddata","onloadedmetadata","onloadstart","onlostpointercapture","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","onpaste","onpause","onplay","onplaying","onpointercancel","onpointerdown","onpointerenter","onpointerleave","onpointermove","onpointerout","onpointerover","onpointerup","onprogress","onratechange","onreset","onresize","onscroll","onsecuritypolicyviolation","onseeked","onseeking","onselect","onslotchange","onstalled","onsubmit","onsuspend","ontimeupdate","ontoggle","ontouchcancel","ontouchend","ontouchmove","ontouchstart","ontransitionend","onvolumechange","onwaiting","onwheel"],tt=new RegExp(`\\b(${Ae.join("|")})\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s>]*)`,"gi"),Dt=/<meta\s+http-equiv\s*=\s*["']?refresh["']?[^>]*>/gi;return Ve.replace(tt,"").replace(Dt,"").trim()}var be={mdBody:"mdBody___raKXb",button:"button___Ch5Pc",previewFlowChart:"previewFlowChart___vY1dq"},Ie=Object.defineProperty,Ke=Object.getOwnPropertySymbols,at=Object.prototype.hasOwnProperty,fe=Object.prototype.propertyIsEnumerable,qe=(Ve,Ae,tt)=>Ae in Ve?Ie(Ve,Ae,{enumerable:!0,configurable:!0,writable:!0,value:tt}):Ve[Ae]=tt,st=(Ve,Ae)=>{for(var tt in Ae||(Ae={}))at.call(Ae,tt)&&qe(Ve,tt,Ae[tt]);if(Ke)for(var tt of Ke(Ae))fe.call(Ae,tt)&&qe(Ve,tt,Ae[tt]);return Ve};const wt="@\u2581\u2581@",ft="@\u2581@",ct=/<pre[^>]*>/g;function Je(Ve){let Ae=document.createElement("div");return Ae.innerHTML=Ve,Ae.childNodes.length===0?"":Ae.childNodes[0].nodeValue}const ut=(Ve,Ae)=>{Ve=Ve||"";const tt=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Dt=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,lt=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Qe=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return Ae?Ve.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(tt,(xt,Re,me,pt,bt,it,Le)=>{const Ue=Re||pt||it,mt=me||bt||Le||"?";return _e.Z.API_SERVER+"/api/attachments/"+Ue+mt+"&t="+(0,ze.Jn)(Ue,Date.now())+(xt.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(Ve=Ve.replace(Qe,(xt,Re,me,pt,bt,it,Le)=>{const Ue=Re||pt||it,mt=me||bt||Le||"?";return _e.Z.API_SERVER+"/attachments/download/"+Ue+mt+"&t="+(0,ze.Jn)(Ue,Date.now())+(xt.indexOf(")")>-1?")":"&")}).replace(tt,(xt,Re,me,pt,bt,it,Le)=>{const Ue=Re||pt||it,mt=me||bt||Le||"?";return _e.Z.API_SERVER+"/api/attachments/"+Ue+mt+"&t="+(0,ze.Jn)(Ue,Date.now())+(xt.indexOf(")")>-1?")":"&")}).replace(Dt,(xt,Re,me,pt,bt)=>{const it=Re||pt,Le=me||bt||"";return'"'+_e.Z.API_SERVER+"/api/attachments/"+it+Le+it+Le+"&t="+(0,ze.Jn)(it,Date.now())}).replace(lt,(xt,Re,me,pt,bt)=>{const it=Re||pt,Le=me||bt||"";return"("+_e.Z.API_SERVER+"/files/uploads/"+it+Le+it+Le+"&t="+(0,ze.Jn)(it,Date.now())}).replaceAll('src="(','src="').replaceAll("src='(",'src="').replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,`
`),Ve)};var Se=({value:Ve="",edit:Ae=!1,className:tt,showTextOnly:Dt,showLines:lt,style:Qe={},stylesPrev:xt={},highlightKeywords:Re,showProgramFill:me,isProgramFill:pt,disabledFill:bt=!1,programFillValue:it,openEditor:Le=()=>{},onFillChange:Ue=Pt=>{},onFillBlur:mt=()=>{},onFillFocus:Zt=()=>{}})=>{let Pt=Be(String(Ve||""));const en=(0,E.useRef)(),dt=(0,E.useRef)(),[Lt,pn]=(0,E.useState)(""),[he,le]=(0,E.useState)("office"),[ae,pe]=(0,E.useState)([]),ye=(0,E.useRef)("a"+(0,Xe.Z)()),se={},ot=Dn=>/<style[\s\S]*?>/i.test(Dn||""),Xt=(Dn,pa,Jn)=>{const Vn=document.createElement(Dn===ft?"input":"textarea");Vn.style.width="100%",Vn.style.height=Dn===ft?"40px":"151px",Vn.rows=5,Vn.spellcheck=!1,Vn.name="edu-program-fill",Vn.placeholder="\u8BF7\u8F93\u5165",Vn.dataset.id=pa;const ha=Object.keys(se).length;return se[ha]=Vn,`<span class="edu-program-fill-wrap ${Dn===ft?"":"show"}" style="width:${Dn===ft?"600px":"100%"}" title=${Jn||""}><span>${Vn.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function zt(Dn){return Dn=Dn.replace(/!\[.*?\]\(.*?\)/g,""),Dn=Dn.replace(/\[.*?\]\(.*?\)/g,""),Dn=Dn.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),Dn=Dn.replace(/<embed.*?>/g,""),Dn=Dn.replace(/<img.*?>/g,""),Dn=Dn.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),Dn=Dn.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),Dn=Dn.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),Dn=Dn.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),Dn}const on=Dn=>!Dt&&ot(Pt)?Dn:Dn.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(pa,Jn){let Vn=Jn.replace(/(\n|\r)/g,"").split("}"),ha=[];return Vn.map(Ti=>{Ti!=""&&ha.push(`.${ye.current} ${Ti}`)}),`<style>${ha.join("}")}</style>`}),Kt=(0,E.useMemo)(()=>{(0,Pe.Iy)();try{const Vn=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,ha=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Ti=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,Ni=/\(\/attachments\/download\//g;Pt=Pt.replace(Ni,"("+_e.Z.API_SERVER+"/attachments/download/").replace(Vn,"("+_e.Z.API_SERVER+"/api/attachments/").replace(ha,'"'+_e.Z.API_SERVER+"/api/attachments/").replace(Ti,'"'+_e.Z.API_SERVER+"/files/uploads/").replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,`
`),en.current.style.display="none"}catch(Vn){}if(me){let Vn=-1;return Pt=Pt.replaceAll("<","&lt;").replaceAll(">","&gt;").replace(/(@▁▁@|@▁@)/g,function(ha,Ti,Ni){var Ir;return++Vn,Xt(ha,Vn,(Ir=it==null?void 0:it[Vn])==null?void 0:Ir.value.replaceAll("<","&lt;").replaceAll(">","&gt;"))}),`<pre style="background:#fff;padding:4px">${on(Pt||"")}</pre>`}let Dn=on(Pt);Dn=(0,Pe.ZP)(Dn);const pa=(0,Pe.ez)();Pt.match(/\[TOC\]/)&&(Dn=Dn.replace("<p>[TOC]</p>",(0,Pe.Qv)()),(0,Pe.Iy)()),Dn=Dn.replace(/(__special_katext_id_\d+__)/g,(Vn,ha)=>{const{type:Ti,expression:Ni}=pa[ha];return(0,nt.renderToString)(Je(Ni)||"",{displayMode:Ti==="block",throwOnError:!1,output:"html"})}),Dn=Dn.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,Pe.AL)();const Jn=document.createElement("div");if(Jn.innerHTML=Dn,Dt)return Jn.innerText;if(Re){const Vn=Re.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return ra(Jn,Vn),Jn.innerHTML}return setTimeout(()=>Xr(),500),Jn.innerHTML},[Pt,Re]);(0,E.useEffect)(()=>{ur.current&&ur.current.querySelectorAll(["input","textarea"]).forEach(pa=>{pa.oninput=Yn,pa.onblur=Fn,pa.onfocus=or})},[ae]),(0,E.useEffect)(()=>{var Dn,pa,Jn,Vn,ha;if(it!=null&&it.length)try{const Ti=ur.current.querySelectorAll(".edu-program-fill-score"),Ni=ur.current.querySelectorAll('[name="edu-program-fill"]');for(const[Ir,Sn]of Ni.entries())Sn.value=((Dn=it==null?void 0:it[Ir])==null?void 0:Dn.value)||"",((pa=it==null?void 0:it[Ir])==null?void 0:pa.type)==="warning"?Sn.className="program-fill-warning":((Jn=it==null?void 0:it[Ir])==null?void 0:Jn.type)==="success"?Sn.className="program-fill-success":Sn.className="";for(const[Ir,Sn]of Ti.entries())Sn.innerHTML=(Vn=it==null?void 0:it[Ir])!=null&&Vn.score?`${(ha=it==null?void 0:it[Ir])==null?void 0:ha.score}\u5206`:"";pe(it)}catch(Ti){console.log(Ti,"error")}},[it]);const Yn=Dn=>{ae[Dn.target.dataset.id]=ae[Dn.target.dataset.id]||{},ae[Dn.target.dataset.id].value=Dn.target.value,pe([...ae]),Ue(ae,Dn.target.dataset.id)},Fn=Dn=>{ae[Dn.target.dataset.id]=ae[Dn.target.dataset.id]||{},ae[Dn.target.dataset.id].value=Dn.target.value,pe([...ae]),mt(ae,Dn.target.dataset.id)},or=Dn=>{ae[Dn.target.dataset.id]=ae[Dn.target.dataset.id]||{},ae[Dn.target.dataset.id].value=Dn.target.value,pe([...ae]),Zt(ae,Dn.target.dataset.id)};function ra(Dn,pa){return Dn.childNodes.forEach(Jn=>{var Vn;if(Jn.childNodes.length>0)ra(Jn,pa);else if(Jn.nodeName!=="IMG")if(Jn.innerHTML)Jn.innerHTML=(Vn=Jn.innerHTML)==null?void 0:Vn.replace(new RegExp(pa,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const ha=document.createElement("span");ha.innerHTML=Jn.textContent.replace(new RegExp(pa,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),Jn.replaceWith(ha)}})}const ur=(0,E.useRef)();Pe.jb.WebkitLineClamp=lt,lt&&(Qe=st(st({},Qe),Pe.jb));function rr(Dn){let pa=Dn.target;if(pa.tagName.toUpperCase()==="A"){let Jn=pa.getAttribute("href");if(Jn.indexOf("office")>-1)Dn.preventDefault(),pn(Jn),le("office");else if(Jn.indexOf("application/pdf")>-1)Dn.preventDefault(),pn(Jn),le("pdf");else if(Jn.indexOf("text/html")>-1)Dn.preventDefault(),pn(Jn),le("html");else if(Jn.startsWith("#")){Dn.preventDefault();let Vn=document.getElementById(Jn.replace("#",""));Vn&&Vn.scrollIntoView(!0)}}}const Xr=()=>{var Dn;const pa=(Dn=ur.current)==null?void 0:Dn.querySelectorAll("video");pa==null||pa.forEach(Jn=>{if(Jn.oncontextmenu=()=>!1,Jn.src.indexOf(".m3u8")>-1&&!Jn.canPlayType("application/vnd.apple.mpegurl")){if(He.ZP.isSupported()){var Vn=new He.ZP;Vn.loadSource(Jn.src),Vn.attachMedia(Jn)}}})};(0,E.useEffect)(()=>{if(ur.current&&Kt&&Kt.match(ct)&&window.PR.prettyPrint(),ur.current)return ur.current.addEventListener("click",rr),()=>{var Dn;(Dn=ur.current)==null||Dn.removeEventListener("click",rr),(0,Pe.AL)(),(0,Pe.Iy)()}},[Kt,ur.current,rr]);const Vr=Dn=>{Dn.target.nodeName==="IMG"&&Dn.target.className.indexOf("draw-flowchart")>-1?(en.current.style.zIndex=1,en.current.style.display="flex",en.current.style.width=Dn.target.clientWidth+"px",en.current.style.height=Dn.target.clientHeight+"px",en.current.style.top=Dn.target.offsetTop+"px",en.current.style.left=Dn.target.offsetLeft+"px",Dn.target.id&&(dt.current=Dn.target.id)):en.current.style.display="none"},xr=()=>{en.current.style.display="none"};return(0,E.useEffect)(()=>{var Dn;const pa=Jn=>{Jn.preventDefault(),Jn.clipboardData.setData("text",window.getSelection().toString())};return(Dn=ur.current)==null||Dn.addEventListener("copy",pa),()=>{var Jn;(Jn=ur.current)==null||Jn.removeEventListener("copy",pa)}},[ur.current]),E.createElement("div",{style:{position:"relative"},onMouseLeave:xr},Dt&&E.createElement("div",{ref:ur,className:`${be.mdBody} `},Kt),!Dt&&!ot(Kt)&&E.createElement("div",{ref:ur,style:st({},Qe),onMouseOver:Vr,className:`${tt||""} ${bt?"disabled-fill":""} markdown-body ${be.mdBody} ${ye.current}`,dangerouslySetInnerHTML:{__html:Kt}}),!Dt&&ot(Kt)&&E.createElement(Ne,{html:Kt}),E.createElement("div",{ref:en,className:`${be.button} ${Ae?"":be.previewFlowChart}`},E.createElement(Fe.Z,null,E.createElement(We.ZP,{onClick:()=>{Ae?Le(dt.current):(pn(dt.current),le("flowChart"))}},Ae?"\u7F16\u8F91":"\u9884\u89C8"))),E.createElement($e.Z,{close:!0,data:Lt,type:Lt!=null&&Lt.length?he:"",style:st({},xt),onClose:()=>pn("")}))}},75284:function(It,kt,ne){"use strict";ne.d(kt,{Z:function(){return ct},P:function(){return st}});var E=ne(59301),ve=ne(28284),Pe=ne(62957),Te=ne(47889),He=ne(37568),_e=ne(70858),ze={brief:"brief___LOzpE",contentTitle:"contentTitle___xkdcN",content:"content___Vtri0",tips:"tips___tuAtH",antdTable:"antdTable___s8T2N",tableCell:"tableCell___kN9Fw",antdModal:"antdModal___WVBk3",orangeColor:"orangeColor___ryB2u"},nt=ne(66443),Fe=Object.defineProperty,We=Object.defineProperties,Xe=Object.getOwnPropertyDescriptors,$e=Object.getOwnPropertySymbols,vt=Object.prototype.hasOwnProperty,Ye=Object.prototype.propertyIsEnumerable,Ne=(Je,ut,Se)=>ut in Je?Fe(Je,ut,{enumerable:!0,configurable:!0,writable:!0,value:Se}):Je[ut]=Se,Be=(Je,ut)=>{for(var Se in ut||(ut={}))vt.call(ut,Se)&&Ne(Je,Se,ut[Se]);if($e)for(var Se of $e(ut))Ye.call(ut,Se)&&Ne(Je,Se,ut[Se]);return Je},be=(Je,ut)=>We(Je,Xe(ut)),Ie=(Je,ut)=>{var Se={};for(var Ve in Je)vt.call(Je,Ve)&&ut.indexOf(Ve)<0&&(Se[Ve]=Je[Ve]);if(Je!=null&&$e)for(var Ve of $e(Je))ut.indexOf(Ve)<0&&Ye.call(Je,Ve)&&(Se[Ve]=Je[Ve]);return Se},Ke=(Je,ut,Se)=>new Promise((Ve,Ae)=>{var tt=Qe=>{try{lt(Se.next(Qe))}catch(xt){Ae(xt)}},Dt=Qe=>{try{lt(Se.throw(Qe))}catch(xt){Ae(xt)}},lt=Qe=>Qe.done?Ve(Qe.value):Promise.resolve(Qe.value).then(tt,Dt);lt((Se=Se.apply(Je,ut)).next())});const at=({studentNames:Je,total:ut})=>{const Se=["","\u4E00","\u4E24","\u4E09"];return ut>3?E.createElement(E.Fragment,null,"\u8BFE\u5802\u5185\u6709",E.createElement("span",{className:ze.orangeColor},Je==null?void 0:Je.join("\u3001")),"\u7B49",E.createElement("span",{className:ze.orangeColor},ut),"\u540D\u5B66\u751F"):E.createElement(E.Fragment,null,"\u8BFE\u5802\u5185\u6709",E.createElement("span",{className:ze.orangeColor},Je==null?void 0:Je.join("\u3001")),Se[ut],"\u540D\u5B66\u751F")},fe=({used:Je,copy:ut,canNotCopy:Se,studentNames:Ve,studentCount:Ae,inPaper:tt,is_random:Dt=!1,position:lt=""})=>{const Qe=()=>{if(ut>0&&Se>0)return E.createElement(E.Fragment,null,"\u5176\u4E2D",E.createElement("span",{className:ze.orangeColor},ut),"\u4E2A\u9879\u76EE\u652F\u6301\u590D\u5236\uFF0C",E.createElement("span",{className:ze.orangeColor},Se),"\u4E2A\u9879\u76EE\u4E0D\u652F\u6301\u590D\u5236");if(ut>0&&Se===0)return E.createElement(E.Fragment,null,"\u5176\u4E2D",E.createElement("span",{className:ze.orangeColor},ut),"\u4E2A\u9879\u76EE\u652F\u6301\u590D\u5236");if(ut===0&&Se>0)return E.createElement(E.Fragment,null,"\u5176\u4E2D",E.createElement("span",{className:ze.orangeColor},Se),"\u4E2A\u9879\u76EE\u4E0D\u652F\u6301\u590D\u5236")},xt=lt||(tt?"\u8BD5\u5377":"\u8BFE\u7A0B");return E.createElement("span",null,E.createElement(at,{studentNames:Ve,total:Ae}),"\u5B66\u4E60\u8FC7",xt,"\u4E2D\u7684",E.createElement("span",{className:ze.orangeColor},Je),"\u4E2A\u9879\u76EE\uFF0C",Qe(),"\u3002\u8BF7\u9009\u62E9",Dt?"":"\u662F\u5426\u7EE7\u7EED\u4F7F\u7528\u548C","\u662F\u5426\u590D\u5236\u4E3A\u65B0\u9879\u76EE\u53D1\u9001\u81F3\u8BFE\u5802\u4E2D\uFF1F")},qe=({onCancel:Je,onOk:ut,visible:Se,inPaper:Ve,renderData:Ae,type:tt,isMultipleCourse:Dt=!1})=>{const[lt]=ve.default.useForm(),[Qe,xt]=(0,E.useState)(1),[Re,me]=(0,E.useState)(!1),pt=(0,E.useMemo)(()=>(Ae==null?void 0:Ae.total_num)===1&&(Ae==null?void 0:Ae.can_copy_num)===1,[Ae]),bt=(0,E.useMemo)(()=>{var it;return(it=Ae==null?void 0:Ae.course_data_list)==null?void 0:it.filter(Le=>Le.is_show)},[Ae]);return E.createElement(E.Fragment,null,pt?E.createElement(Pe.default,{centered:!0,closable:!0,open:Se,destroyOnClose:!0,title:"\u63D0\u793A",className:ze.antdModal,width:682,confirmLoading:Re,onCancel:Je,onOk:()=>Ke(void 0,null,function*(){var it;me(!0);let Le=Qe;if(Dt){const Ue=Be({},lt.getFieldsValue());Le=(it=Ae==null?void 0:Ae.course_data_list)==null?void 0:it.map(mt=>Ue[mt.id]!==void 0?be(Be({},mt),{is_copy:Ue[mt.id]}):mt)}yield ut(Le),me(!1)})},E.createElement("div",{className:ze.content,style:{marginBottom:20}},Dt?"\u68C0\u6D4B\u5230\u4EE5\u4E0B\u8BFE\u5802\u5DF2\u5728\u6559\u5B66\u8BFE\u5802\u4E2D\u4F7F\u7528\uFF0C\u8BF7\u95EE\u662F\u5426\u590D\u5236\u6210\u65B0\u7684\u5B9E\u8BAD\u53D1\u9001\u81F3\u6559\u5B66\u8BFE\u5802\u4E2D?":E.createElement(E.Fragment,null,E.createElement(at,{studentNames:Ae==null?void 0:Ae.student_names,total:Ae==null?void 0:Ae.student_count}),"\u5B66\u4E60\u8FC7\u8BE5\u5B9E\u8DF5\u9879\u76EE\u3002\u8BE5\u9879\u76EE\u652F\u6301\u590D\u5236\uFF0C\u8BF7\u9009\u62E9\u662F\u5426\u5C06\u8BE5\u9879\u76EE\u590D\u5236\u4E3A\u65B0\u9879\u76EE\u53D1\u9001\u81F3\u8BFE\u5802\u4E2D\uFF1F")),Dt?E.createElement(ve.default,{form:lt,preserve:!1},bt==null?void 0:bt.map(it=>E.createElement(E.Fragment,{key:it.id},E.createElement("h3",{className:"ml15 mb5"},it.name),E.createElement(ve.default.Item,{name:it.id,initialValue:1},E.createElement(Te.ZP.Group,{className:ze.content},E.createElement(Te.ZP,{value:1,style:{color:"#464f66"}},"\u590D\u5236\u5B9E\u8BAD"),E.createElement(Te.ZP,{value:0,style:{color:"#464f66"}},"\u4E0D\u590D\u5236\u5B9E\u8BAD")))))):E.createElement(Te.ZP.Group,{value:Qe,onChange:it=>xt(it.target.value),className:ze.content,style:{marginBottom:30}},E.createElement(Te.ZP,{value:1,style:{color:"#464f66"}},"\u590D\u5236"),E.createElement(Te.ZP,{value:0,style:{color:"#464f66"}},"\u4E0D\u590D\u5236")),E.createElement("div",null,E.createElement("div",{className:ze.content,style:{marginBottom:10}},"* \u8BF4\u660E\uFF1A"),E.createElement("div",{className:ze.content,style:{marginBottom:20}},"1\u3001\u590D\u5236\uFF1A\u7CFB\u7EDF\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\u53D1\u9001\u5230\u8BFE\u5802\u4E2D\u4F7F\u7528\uFF08\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF09\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\u3002"),E.createElement("div",{className:`${ze.content} ${ze.orangeColor}`},"2\u3001\u4E0D\u590D\u5236\uFF1A\u5F53\u524D\u9879\u76EE\u4F1A\u88AB\u76F4\u63A5\u53D1\u9001\u5230\u8BFE\u5802\u4E2D\u4F7F\u7528\uFF0C\u6311\u6218\u8FC7\u8BE5\u9879\u76EE\u7684\u5B66\u751F\u518D\u6B21\u8FDB\u5165\u9879\u76EE\u5F00\u542F\u6311\u6218\u65F6\uFF0C\u4F1A\u6E05\u7A7A\u4E4B\u524D\u7684\u6311\u6218\u8BB0\u5F55\u3002"))):E.createElement(Pe.default,{centered:!0,closable:!0,destroyOnClose:!0,open:Se,confirmLoading:Re,title:"\u63D0\u793A",width:682,onCancel:Je,onOk:()=>Ke(void 0,null,function*(){var it;me(!0);let Le=0;if(Dt){const Ue=Be({},lt.getFieldsValue());Le=(it=Ae==null?void 0:Ae.course_data_list)==null?void 0:it.map(mt=>Ue[mt.id]!==void 0?be(Be({},mt),{is_use:Ue[mt.id]}):mt)}yield ut(Le),me(!1)})},E.createElement("div",{className:ze.content},E.createElement(at,{studentNames:Ae==null?void 0:Ae.student_names,total:Ae==null?void 0:Ae.student_count}),"\u5B66\u4E60\u8FC7\u8BE5\u5B9E\u8DF5\u9879\u76EE\u3002",Dt?E.createElement(ve.default,{form:lt,preserve:!1},E.createElement("h3",null,"\u5F53\u524D\u5B9E\u8BAD\u4E0D\u53EF\u590D\u5236\uFF0C\u5DF2\u7ECF\u68C0\u6D4B\u5230\u4EE5\u4E0B\u8BFE\u5802\u5B58\u5728\u8BE5\u5B9E\u8BAD\uFF0C\u540C\u4E00\u5B9E\u8BAD\u5728\u8BFE\u5802\u4E2D\u91CD\u590D\u4F7F\u7528\u65F6\uFF0C\u4F1A\u5BFC\u81F4\u6210\u7EE9\u4E92\u76F8\u5F71\u54CD\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u7EE7\u7EED\u4F7F\u7528"),bt==null?void 0:bt.map(it=>E.createElement(E.Fragment,{key:it.id},E.createElement("h3",{className:"ml15 mb5"},it.name),E.createElement(ve.default.Item,{name:it.id,initialValue:1},E.createElement(Te.ZP.Group,{className:ze.content},E.createElement(Te.ZP,{value:1,style:{color:"#464f66"}},"\u7EE7\u7EED\u4F7F\u7528"),E.createElement(Te.ZP,{value:0,style:{color:"#464f66"}},"\u4E0D\u4F7F\u7528")))))):E.createElement("div",null,"\u8BE5\u9879\u76EE\u4E0D\u652F\u6301\u590D\u5236\uFF0C\u82E5\u786E\u8BA4\u7EE7\u7EED\u53D1\u9001\uFF0C",E.createElement("span",{className:ze.orangeColor},"\u5F53\u524D\u9879\u76EE\u4F1A\u88AB\u76F4\u63A5\u53D1\u9001\u5230\u8BFE\u5802\u4E2D\u4F7F\u7528\uFF0C\u6311\u6218\u8FC7\u8BE5\u9879\u76EE\u7684\u5B66\u751F\u518D\u6B21\u8FDB\u5165\u9879\u76EE\u5F00\u542F\u6311\u6218\u65F6\uFF0C\u4F1A\u6E05\u7A7A\u4E4B\u524D\u7684\u6311\u6218\u8BB0\u5F55\u3002"),"\uFF08\u5982\u679C\u4E0D\u60F3\u6E05\u7A7A\u5B66\u751F\u4E4B\u524D\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u5EFA\u8BAE\u53C2\u7167\u8BE5\u5B9E\u8DF5\u9879\u76EE\u7684\u5185\u5BB9\u81EA\u884C\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\uFF0C\u6216\u8005\u5C1D\u8BD5\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u4EBA\u5F00\u653E\u672C\u9879\u76EE\u7684\u590D\u5236\u6743\u9650\uFF09\u3002"))))},st=function(){const[Je,ut]=(0,E.useState)(!1),[Se,Ve]=(0,E.useState)();return[Je,()=>ut(!1),Se,Dt=>Ke(this,null,function*(){var lt;const Qe=Dt,{isImportMultipleCourse:xt=!1}=Qe,Re=Ie(Qe,["isImportMultipleCourse"]);console.log(Dt);const me=(Dt==null?void 0:Dt.result)||(yield(0,nt.Tr)(Re));return"status"in me?!1:xt?((lt=me==null?void 0:me.course_data_list)==null?void 0:lt.some(bt=>bt.is_show))?(Ve(me),ut(!0),!0):me.course_data_list||[]:me.student_count===0?!1:(Ve(me),ut(!0),!0)})]},wt=Je=>{const[ut]=ve.default.useForm(),[Se,Ve]=(0,E.useState)(!1),{onCancel:Ae,onOk:tt,visible:Dt,inPaper:lt=!1,renderData:Qe,type:xt,isMultipleCourse:Re=!1,position:me}=Je;let pt=(0,E.useMemo)(()=>lt?[{title:"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0",dataIndex:"name",width:424,align:"center",ellipsis:!0,className:ze.tableCell,render(Le,Ue){return E.createElement("a",{href:`/shixuns/${Ue.identifier}/challenges`,target:"_blank"},Le)}},{title:"\u662F\u5426\u590D\u5236",dataIndex:"is_copy",align:"center",render:(Le,Ue)=>E.createElement(E.Fragment,null,E.createElement(ve.default.Item,{name:[`${xt==="subject"?Ue.stage_shixun_id:Ue.shixun_course_id||Ue.id}`,"is_copy"],initialValue:1},E.createElement(Te.ZP.Group,null,E.createElement(Te.ZP,{value:1},"\u662F"),E.createElement(Te.ZP,{value:0},"\u5426"))),E.createElement(ve.default.Item,{name:[`${xt==="subject"?Ue==null?void 0:Ue.stage_shixun_id:Ue.shixun_course_id||Ue.id}`,"is_use"],hidden:!0,initialValue:1},E.createElement(He.default,{type:"hidden"})))}]:[{title:"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0",dataIndex:"name",width:424,align:"center",ellipsis:!0,className:ze.tableCell,render(Le,Ue){return E.createElement("a",{href:`/shixuns/${Ue.identifier}/challenges`,target:"_blank"},Le)}},{title:"\u662F\u5426\u4F7F\u7528",dataIndex:"is_use",align:"center",render:(Le,Ue)=>E.createElement(ve.default.Item,{name:[`${xt==="subject"?Ue.stage_shixun_id:Ue.shixun_course_id||Ue.id}`,"is_use"],initialValue:1},E.createElement(Te.ZP.Group,null,E.createElement(Te.ZP,{value:1},"\u662F"),E.createElement(Te.ZP,{value:0},"\u5426")))},{title:"\u662F\u5426\u590D\u5236",dataIndex:"is_copy",align:"center",render:(Le,Ue)=>E.createElement(ve.default.Item,{name:[`${xt==="subject"?Ue.stage_shixun_id:Ue.shixun_course_id||Ue.id}`,"is_copy"],initialValue:1},E.createElement(Te.ZP.Group,null,E.createElement(Te.ZP,{value:1},"\u662F"),E.createElement(Te.ZP,{value:0},"\u5426")))}],[lt]),bt=(0,E.useMemo)(()=>lt?[{title:"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0",dataIndex:"name",width:424,className:ze.tableCell,align:"center",ellipsis:!0,render:(Le,Ue)=>E.createElement(E.Fragment,null,E.createElement("a",{href:`/shixuns/${Ue.identifier}/challenges`,target:"_blank"},Le),E.createElement(ve.default.Item,{name:[`${xt==="subject"?Ue==null?void 0:Ue.stage_shixun_id:Ue.shixun_course_id||Ue.id}`,"is_copy"],hidden:!0,initialValue:0},E.createElement(He.default,{type:"hidden"})),E.createElement(ve.default.Item,{name:[`${xt==="subject"?Ue==null?void 0:Ue.stage_shixun_id:Ue.shixun_course_id||Ue.id}`,"is_use"],hidden:!0,initialValue:1},E.createElement(He.default,{type:"hidden"})))}]:[{title:"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0",dataIndex:"name",width:424,className:ze.tableCell,ellipsis:!0,align:"center",render:(Le,Ue)=>E.createElement("a",{href:`/shixuns/${Ue.identifier}/challenges`,target:"_blank"},Le)},{title:"\u662F\u5426\u4F7F\u7528",dataIndex:"is_use",align:"center",render:(Le,Ue)=>E.createElement(E.Fragment,null,E.createElement(ve.default.Item,{name:[`${xt==="subject"?Ue==null?void 0:Ue.stage_shixun_id:Ue.shixun_course_id||Ue.id}`,"is_use"],initialValue:0},E.createElement(Te.ZP.Group,null,E.createElement(Te.ZP,{value:1},"\u662F"),E.createElement(Te.ZP,{value:0},"\u5426"))),E.createElement(ve.default.Item,{name:[`${xt==="subject"?Ue==null?void 0:Ue.stage_shixun_id:Ue.shixun_course_id||Ue.id}`,"is_copy"],hidden:!0,initialValue:0},E.createElement(He.default,{type:"hidden"})))}],[lt]);if(Re){const Le={title:"\u8BFE\u5802\u540D\u79F0",ellipsis:!0,dataIndex:"course_name",width:190,align:"center",className:ze.tableCell,render:(Ue,mt)=>E.createElement("a",{href:`/classrooms/${mt.course_id}`},Ue)};pt=[Le,...pt],bt=[Le,...bt]}const it=(0,E.useMemo)(()=>fe({used:Qe==null?void 0:Qe.repeat_shixun_num,copy:Qe==null?void 0:Qe.can_copy_num,canNotCopy:Qe==null?void 0:Qe.no_copy_num,studentNames:Qe==null?void 0:Qe.student_names,studentCount:Qe==null?void 0:Qe.student_count,is_random:Qe==null?void 0:Qe.is_random,inPaper:lt,position:me}),[Qe,lt,me]);return E.createElement(Pe.default,{title:"\u63D0\u793A",centered:!0,open:Dt,confirmLoading:Se,onOk:()=>Ke(void 0,null,function*(){Ve(!0);const Le=ut.getFieldsValue(),Ue=Object.keys(Le).map(mt=>({id:parseInt(mt.split("_")[0]),course_id:parseInt(mt.split("_")[1]),is_use:Le[mt].is_use,is_copy:Le[mt].is_copy}));yield tt(Ue),Ve(!1)}),onCancel:Ae,width:880,okText:"\u786E\u8BA4",className:ze.antdModal,destroyOnClose:!0},E.createElement(ve.default,{form:ut,preserve:!1},E.createElement("div",{className:ze.brief},it),E.createElement("div",{style:{marginBottom:30}},E.createElement("div",{style:{marginBottom:20}},"* \u8BF4\u660E"),E.createElement("div",{style:{marginBottom:20}},"1\u3001\u590D\u5236\uFF1A\u7CFB\u7EDF\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\u53D1\u9001\u5230\u8BFE\u5802\u4E2D\u4F7F\u7528\uFF08\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF09\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\u3002"),E.createElement("div",{className:ze.orangeColor},"2\u3001\u4E0D\u590D\u5236\uFF1A\u5F53\u524D\u9879\u76EE\u4F1A\u88AB\u76F4\u63A5\u53D1\u9001\u5230\u8BFE\u5802\u4E2D\u4F7F\u7528\uFF0C\u6311\u6218\u8FC7\u8BE5\u9879\u76EE\u7684\u5B66\u751F\u518D\u6B21\u8FDB\u5165\u9879\u76EE\u5F00\u542F\u6311\u6218\u65F6\uFF0C\u4F1A\u6E05\u7A7A\u4E4B\u524D\u7684\u6311\u6218\u8BB0\u5F55\u3002")),(Qe==null?void 0:Qe.can_copy_num)>0&&E.createElement("div",null,E.createElement("div",{className:ze.contentTitle},"\u652F\u6301\u590D\u5236\u7684\u9879\u76EE"),E.createElement(_e.default,{columns:pt,className:ze.antdTable,dataSource:Qe==null?void 0:Qe.can_copy_list,rowKey:xt==="subject"?"stage_shixun_id":"id",pagination:!1,scroll:{y:240},bordered:!0})),(Qe==null?void 0:Qe.no_copy_num)>0&&E.createElement("div",null,E.createElement("div",{className:ze.contentTitle},"\u4E0D\u652F\u6301\u590D\u5236\u7684\u9879\u76EE"),E.createElement(_e.default,{columns:bt,className:ze.antdTable,dataSource:Qe==null?void 0:Qe.no_copy_list,rowKey:xt==="subject"?"stage_shixun_id":"id",pagination:!1,scroll:{y:200},bordered:!0})),(Qe==null?void 0:Qe.no_use_list.length)>0&&(Qe==null?void 0:Qe.no_use_list.map(Le=>E.createElement("div",{key:xt==="subject"?Le.stage_shixun_id:Le.shixun_course_id||Le.id},E.createElement(ve.default.Item,{name:[`${xt==="subject"?Le==null?void 0:Le.stage_shixun_id:Le.shixun_course_id||Le.id}`,"is_copy"],hidden:!0,initialValue:0},E.createElement(He.default,{type:"hidden"})),E.createElement(ve.default.Item,{name:[`${xt==="subject"?Le==null?void 0:Le.stage_shixun_id:Le.shixun_course_id||Le.id}`,"is_use"],hidden:!0,initialValue:1},E.createElement(He.default,{type:"hidden"})))))))};var ct=Je=>{const{modalType:ut}=Je;return ut==="multiple"?E.createElement(wt,Be({},Je)):E.createElement(qe,Be({},Je))}},27878:function(It,kt,ne){"use strict";ne.d(kt,{Z:function(){return nt}});var E=ne(59301),ve={flex_box_center:"flex_box_center___rQJfc",flex_space_between:"flex_space_between___MDW24",flex_box_vertical_center:"flex_box_vertical_center___RZbAv",flex_box_center_end:"flex_box_center_end___ILhJA",flex_box_column:"flex_box_column___Fmij7",orangeColor:"orangeColor___U5vU6",redColor:"redColor___qYa6X",statustitle:"statustitle___pTBLm",statusbody:"statusbody___qUPQx",flex:"flex___VtL45"},Pe=ne(62957),Te="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAPCAYAAADUFP50AAAAAXNSR0IArs4c6QAAAUFJREFUOE+V0ktKw1AUxvH/rVqIxT4wkgwEUSmK4APRBfiYCKU7cOZEBOkadAMZiwhuwJETBQciFRTtwJkPBLW2BRGrRanU9kpN2sSYiGaWc/PjuznnCN2Qh8AkPo+AzXxKLLiPhW7ICtDqB4GzQkqM/huGFZgZcDCBBDaaicsTMKbZH2xfwdY5/ICAEGSasC0AwRYblj+gKkENwfy4WS9V4LHsgsk49EZteJKHdBa6w7AybdZzr3D64ILxGKjtNrx9gfsSRBSYtf6xZh1/u+qQClrIhtdFuHmGvhisJcz65RPsZl2Jc/3QE7FhpgDHuT80x2+O9cR1K/GiCDt3rkQ/+Ns43gDFD0YVmHIuQGOOmiGTARhxwkGd1cZ7Vwd0OppWr3911StpcV++Iwn67q/kyBMuHchErcqwFxT1XZXsfQJqo2zI6kdI4QAAAABJRU5ErkJggg==",He="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAAXNSR0IArs4c6QAAAW1JREFUOE+dkj1IQmEUht9z/blp4VQEjS39eW+oSCFCpFCI4BiKFGWWQUSrCjVVg+lQNJZQDZGNTm1B4NTibS3n2lo0wuqEN8i/a0HfeN7v+d73nO+QJEcKAJzQPAwCnSpKNtoqkyRHqgDrtUFAb6Rnedx43KgT6O5P0GQijFiNLe/Sy3/B8g+YTIRRrb5jP32JYNADr8eOldU0RJEqVlm8r1kyuA/AIEB10OWy4vBgA4ryCIdjCJlMDmfn1zAY6EmyGY/UrAwrgGATWKsn4mGEQl4Uiw+YX9hT73aZiEcl8eMbZAGA0AT6/ZPY3Ykiny/A55tA7uoGqdQFBD2VbDbDugoSTTEj3gTGYgG8Vt7UeG63hNkZJ7a2s+gw1XqPnf5REKhkt4kxNakO08ycbOtRC/7FcakCwNTJ0WwmDI+1LUCZZDkSYGa5Eewf0G0KAnprNYtFQHdPbZhNS1cmLafF5bUTJsyBSVMHPm+/ADTrfrtCH68WAAAAAElFTkSuQmCC",_e=(Fe,We,Xe)=>new Promise(($e,vt)=>{var Ye=be=>{try{Be(Xe.next(be))}catch(Ie){vt(Ie)}},Ne=be=>{try{Be(Xe.throw(be))}catch(Ie){vt(Ie)}},Be=be=>be.done?$e(be.value):Promise.resolve(be.value).then(Ye,Ne);Be((Xe=Xe.apply(Fe,We)).next())}),nt=({type:Fe,resdata:We,onok:Xe,oktext:$e,okloading:vt})=>{const[Ye,Ne]=(0,E.useState)(!1),{can_copy_list:Be,can_copy_num:be,challenge_type:Ie,course_data_list:Ke,no_copy_list:at,no_copy_num:fe,no_use_list:qe,no_use_num:st,repeat_shixun_num:wt,student_count:ft,total_num:ct,use_num:Je}=We;let ut=be>0||Fe==="exercise";(0,E.useEffect)(()=>{(We==null?void 0:We.student_count)>0&&Ne(!0)},[We]),console.log("---11",vt),(0,E.useEffect)(()=>{vt||Ne(!1)},[vt]);const Se=()=>{if(Fe==="exercise"&&Ie===1)return E.createElement(E.Fragment,null,"\u8BFE\u5802\u5185\u6709",E.createElement("span",{className:ve.orangeColor},ft),"\u540D\u5B66\u751F\u5DF2\u5728\u5176\u4ED6\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",E.createElement("span",{className:ve.orangeColor},Je),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",E.createElement("span",{className:ve.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u4F5C\u7B54\u5DF2\u6311\u6218\u8FC7\u7684\u5B9E\u8BAD\u9898\u3002"));if(Fe==="exercise"&&Ie===2)return E.createElement(E.Fragment,null,"\u8BFE\u5802\u5185\u6709",E.createElement("span",{className:ve.orangeColor},ft),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",E.createElement("span",{className:ve.orangeColor},Je),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",E.createElement("span",{className:ve.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(Fe==="shixun"&&Ie===1)return E.createElement(E.Fragment,null,"\u8BFE\u5802\u5185\u6709",E.createElement("span",{className:ve.orangeColor},ft),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u8BE5\u5B9E\u8DF5\u9879\u76EE\uFF0C",E.createElement("span",{className:ve.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(Fe==="shixun"&&Ie===2)return E.createElement(E.Fragment,null,"\u8BFE\u5802\u5185\u6709",E.createElement("span",{className:ve.orangeColor},ft),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7\u8BE5\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",E.createElement("span",{className:ve.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(Fe==="subject"&&Ie===1)return E.createElement(E.Fragment,null,"\u8BFE\u5802\u5185\u6709",E.createElement("span",{className:ve.orangeColor},ft),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",E.createElement("span",{className:ve.orangeColor},Je),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",E.createElement("span",{className:ve.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(Fe==="subject"&&Ie===2)return E.createElement(E.Fragment,null,"\u8BFE\u5802\u5185\u6709 ",E.createElement("span",{className:ve.orangeColor},ft)," \u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u6311\u6218\u8FC7\u5176\u4E2D\u7684 ",E.createElement("span",{className:ve.orangeColor},Je)," \u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",E.createElement("span",{className:ve.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(Fe==="exercisepush")return E.createElement(E.Fragment,null,"\u8BFE\u5802\u5185\u6709",E.createElement("span",{className:ve.orangeColor},ft),"\u540D\u5B66\u751F\u5DF2\u5728\u5176\u4ED6\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u8BD5\u5377\u4E2D\u7684",E.createElement("span",{className:ve.orangeColor},Je),"\u4E2A\u5B9E\u8DF5\u9879\u76EE \uFF0C",E.createElement("span",{className:ve.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u5728\u5F53\u524D\u8003\u8BD5\u4E2D\u8FDB\u884C\u4F5C\u7B54\u3002"));if(Fe==="shixunpush"&&Ie===1)return E.createElement(E.Fragment,null,"\u8BFE\u5802\u5185\u6709",E.createElement("span",{className:ve.orangeColor},ft),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",E.createElement("span",{className:ve.orangeColor},Je),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",E.createElement("span",{className:ve.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(Fe==="shixunpush"&&Ie===2)return E.createElement(E.Fragment,null,"\u8BFE\u5802\u5185\u6709",E.createElement("span",{className:ve.orangeColor},ft),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7",E.createElement("span",{className:ve.orangeColor},Je),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",E.createElement("span",{className:ve.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"))},Ve=()=>{if(Fe==="exercise"||Fe==="subject"||Fe==="exercisepush"||Fe==="shixunpush")return E.createElement("div",{style:{marginTop:20}},fe>0&&E.createElement("div",null,E.createElement("span",{className:ve.flex},E.createElement("img",{src:He,style:{width:14}}),E.createElement("span",{className:ve.statustitle},"\u4E0D\u652F\u6301\u590D\u5236\u7684\u5B9E\u8DF5\u9879\u76EE")),E.createElement("div",{className:ve.statusbody},Fe==="exercise"&&E.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",E.createElement("span",{className:ve.redColor},"\u4EE5\u4E0B\u8BD5\u9898\u5C06\u4E0D\u4F1A\u88AB\u53D1\u9001\u81F3\u8BFE\u5802\u4E2D\u3002"),"\u60A8\u4E5F\u53EF\u4EE5\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8005\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002"),(Fe==="subject"||Fe==="exercisepush")&&E.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",ut&&E.createElement("span",{className:ve.redColor},"\u4E00\u952E\u590D\u5236\u4E0D\u4F1A\u590D\u5236\u6B64\u90E8\u5206\u9879\u76EE\u3002"),"\u60A8\u53EF\u4EE5\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8005\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002"),Fe==="shixunpush"&&E.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",ut&&E.createElement("span",{className:ve.redColor},"\u4E00\u952E\u590D\u5236\u4E0D\u4F1A\u590D\u5236\u6B64\u90E8\u5206\u9879\u76EE\u3002"),"\u5EFA\u8BAE\u60A8\u91CD\u65B0\u9009\u62E9\u5B9E\u8DF5\u9879\u76EE\u518D\u53D1\u5E03\u4F5C\u4E1A\uFF0C\u4E5F\u53EF\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002"),E.createElement("div",null,at==null?void 0:at.map((Ae,tt)=>E.createElement("a",{href:`/shixuns/${Ae.identifier}/challenges`,target:"_blank"},"\u300A",Ae==null?void 0:Ae.name,"\u300B",tt+1!==fe&&"\u3001"))))),be>0&&E.createElement("div",{style:{marginTop:20}},E.createElement("span",{className:ve.flex},E.createElement("img",{src:Te,style:{width:14}}),E.createElement("span",{className:ve.statustitle},"\u652F\u6301\u590D\u5236\u7684\u5B9E\u8DF5\u9879\u76EE")),E.createElement("div",{className:ve.statusbody},Fe==="exercise"&&E.createElement("div",{style:{marginBottom:15}},"\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362\u8BD5\u9898\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\u66FF\u6362\u8BD5\u5377\u4E2D\u7684\u539F\u8BD5\u9898\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002"),(Fe==="subject"||Fe==="exercisepush")&&E.createElement("div",{style:{marginBottom:15}},"\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u53D1\u9001\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002"),Fe==="shixunpush"&&E.createElement("div",{style:{marginBottom:15}},"\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362\u8BD5\u9898\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\u66FF\u6362\u5F53\u524D\u4F5C\u4E1A\u4E2D\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002"),E.createElement("div",null,Be==null?void 0:Be.map((Ae,tt)=>E.createElement("a",{href:`/shixuns/${Ae.identifier}/challenges`,target:"_blank"},"\u300A",Ae==null?void 0:Ae.name,"\u300B",tt+1!==be&&"\u3001"))))));if(Fe==="shixun")return E.createElement("div",{style:{marginTop:20}},be>0?"\u8BE5\u9879\u76EE\u652F\u6301\u590D\u5236\uFF0C\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u53D1\u9001\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002":"\u8BE5\u9879\u76EE\u4E0D\u652F\u6301\u590D\u5236\uFF0C\u60A8\u53EF\u4EE5\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8005\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002")};return E.createElement(Pe.default,{open:Ye,onCancel:()=>{Ne(!1)},cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",width:700,centered:!0,cancelButtonProps:{style:{display:!ut&&"none"}},zIndex:1003,confirmLoading:vt,okText:ut?$e:"\u6211\u77E5\u9053\u4E86",onOk:()=>_e(void 0,null,function*(){ut?yield Xe([...Be,...qe]):Ne(!1)})},E.createElement("div",{style:{maxHeight:600,overflow:"auto"}},Se(),Ve()))}},66502:function(It,kt,ne){"use strict";var E=ne(59301),ve=ne(44283),Pe=ne(62957),Te=ne(35139),He=ne(59301),_e=(nt,Fe,We)=>new Promise((Xe,$e)=>{var vt=Be=>{try{Ne(We.next(Be))}catch(be){$e(be)}},Ye=Be=>{try{Ne(We.throw(Be))}catch(be){$e(be)}},Ne=Be=>Be.done?Xe(Be.value):Promise.resolve(Be.value).then(vt,Ye);Ne((We=We.apply(nt,Fe)).next())});const ze=({classroomList:nt,dispatch:Fe})=>{var We,Xe;const $e=(0,E.useRef)(null),[vt,Ye]=(0,E.useState)(!1),Ne=()=>{Fe({type:"classroomList/setActionTabs",payload:{}})};return He.createElement(Pe.default,{centered:!0,maskClosable:!1,width:560,title:"\u540C\u6B65\u786E\u8BA4",open:((We=nt==null?void 0:nt.actionTabs)==null?void 0:We.key)==="\u5B9E\u8BAD\u540C\u6B65\u786E\u8BA4",destroyOnClose:!0,onCancel:Ne,onOk:()=>_e(void 0,null,function*(){var Be,be;(Be=$e.current)!=null&&Be.onVerify()||(Ye(!0),yield(be=nt==null?void 0:nt.actionTabs)==null?void 0:be.onOK(),Ye(!1))}),okText:"\u786E\u8BA4\u540C\u6B65",comfirmLoading:(Xe=nt==null?void 0:nt.actionTabs)==null?void 0:Xe.loading},He.createElement("p",null,"\u672C\u64CD\u4F5C\u4F1A\u5C06\u5F53\u524D\u5B9E\u8BAD\u5168\u90E8\u5185\u5BB9\u540C\u6B65\u81F3\u9009\u62E9\u5B9E\u8BAD\u4E2D\uFF0C\u8BF7\u4ED4\u7EC6\u786E\u8BA4\u9700\u540C\u6B65\u7684\u5B9E\u8BAD\u5185\u5BB9\uFF0C\u786E\u8BA4\u65E0\u8BEF\uFF0C\u8BF7\u5728\u4E0B\u65B9\u6587\u672C\u6846\u8F93\u5165\u9A8C\u8BC1\u7801\u540E\uFF0C\u8FDB\u884C\u5B9E\u8BAD\u540C\u6B65\u3002"),He.createElement("p",{style:{color:"#DD0000"}},"*\u6CE8\u610F\uFF1A\u5B9E\u8BAD\u540C\u6B65\u540E\u5C06\u65E0\u6CD5\u6062\u590D\u81F3\u539F\u6709\u7248\u672C\uFF0C\u8BF7\u8C28\u614E\u64CD\u4F5C\u3002"),He.createElement(Te.Z,{ref:Be=>$e.current=Be}))};kt.Z=(0,ve.connect)(({classroomList:nt})=>({classroomList:nt}))(ze)},54533:function(It,kt,ne){"use strict";ne.d(kt,{Z:function(){return Ie}});var E=ne(59301),ve=ne(44283),Pe=ne(62957),Te=ne(89787),He=ne(7939),_e={con_warp:"con_warp___UwmUW",success_txt:"success_txt___bixIU"},ze=ne(49317),nt=ne(66649),Fe=ne.n(nt),We=ne(78267),Xe=ne(59301),$e=Object.getOwnPropertySymbols,vt=Object.prototype.hasOwnProperty,Ye=Object.prototype.propertyIsEnumerable,Ne=(Ke,at)=>{var fe={};for(var qe in Ke)vt.call(Ke,qe)&&at.indexOf(qe)<0&&(fe[qe]=Ke[qe]);if(Ke!=null&&$e)for(var qe of $e(Ke))at.indexOf(qe)<0&&Ye.call(Ke,qe)&&(fe[qe]=Ke[qe]);return fe},Be=(Ke,at,fe)=>new Promise((qe,st)=>{var wt=Je=>{try{ct(fe.next(Je))}catch(ut){st(ut)}},ft=Je=>{try{ct(fe.throw(Je))}catch(ut){st(ut)}},ct=Je=>Je.done?qe(Je.value):Promise.resolve(Je.value).then(wt,ft);ct((fe=fe.apply(Ke,at)).next())});const be=Ke=>{var at=Ke,{shixunsDetail:fe,globalSetting:qe,loading:st,dispatch:wt,showModal:ft,onCancel:ct,onOk:Je,okBtnName:ut="\u5B8C\u6210",info:Se,source:Ve}=at,Ae=Ne(at,["shixunsDetail","globalSetting","loading","dispatch","showModal","onCancel","onOk","okBtnName","info","source"]);const[tt,Dt]=(0,E.useState)(0),[lt,Qe]=(0,E.useState)(0);return(0,E.useEffect)(()=>{var xt,Re;let me=null;const pt=()=>Be(void 0,null,function*(){let bt={id:Se==null?void 0:Se.courseId,send_time:Fe()().format("YYYY-MM-DD HH:mm"),exercise_id:Se!=null&&Se.exercise_id?Se==null?void 0:Se.exercise_id:null},it={id:Se==null?void 0:Se.courseId,course_id:Se==null?void 0:Se.courseId,identifier:Se==null?void 0:Se.courseId,type:"normal",is_use:1,is_copy:!0};Ve==="\u8BD5\u5377"?(bt.examination_bank_ids=Se==null?void 0:Se.examination_bank_ids,bt.type="ExaminationBank"):Ve==="\u5B9E\u8BAD"?bt.shixun_info=(Se==null?void 0:Se.shixun_info.length)>0?Se==null?void 0:Se.shixun_info:[it]:Ve==="\u5B9E\u8BAD\u548C\u8BD5\u5377"&&(bt.examination_bank_ids=Se==null?void 0:Se.examination_bank_ids,bt.shixun_info=(Se==null?void 0:Se.shixun_info.length)>0?Se==null?void 0:Se.shixun_info:[it]);const Le=yield(0,ze.ZP)(`/api/courses/${Se==null?void 0:Se.courseId}/send_shixun_progress.json`,{method:"post",body:bt});(Le==null?void 0:Le.status)===0&&(Dt(Le==null?void 0:Le.complete_num),Qe(Le==null?void 0:Le.total_num),(Le==null?void 0:Le.complete_num)!==(Le==null?void 0:Le.total_num)?(me&&clearInterval(me),me=setInterval(pt,5e3)):me&&clearInterval(me))});if(ft&&(Se!=null&&Se.courseId)){const bt=(xt=(Se==null?void 0:Se.shixun_info)||[])==null?void 0:xt.filter(Le=>!!Le.identifier),it=(Re=(0,We.uniqBy)(bt,"identifier"))==null?void 0:Re.length;Dt(0),Qe(it),pt()}return()=>{me&&clearInterval(me)}},[ft]),Xe.createElement(Pe.default,{centered:!0,maskClosable:!1,width:400,title:"\u5B9E\u8BAD\u52A0\u5165\u8BFE\u5802\u63D0\u793A",closable:tt==lt,open:ft,destroyOnClose:!0,footer:null,onCancel:ct},Xe.createElement("div",null,"\u5F53\u524D\u9009\u4E2D",Xe.createElement("span",{className:"mr5 ml5",style:{color:"#3061D0"}},lt),"\u4E2A\u5B9E\u8BAD\u52A0\u5165\u6559\u5B66\u8BFE\u5802\u4E2D\uFF0C\u8BF7\u7A0D\u5019\u3002"),Xe.createElement("div",{className:_e.con_warp},Xe.createElement(Te.Z,{className:"mt15 mb5",strokeColor:"#3061D0",trailColor:"rgba(144, 150, 163, 0.1)",percent:tt==lt&&lt!=0?100:tt/lt*100,showInfo:!1,size:[350,10]}),Xe.createElement("div",{className:_e.success_txt},"\u5DF2\u6210\u529F\u53D1\u9001",Xe.createElement("span",{className:"mr5 ml5",style:{color:"#3061D0"}},tt),"\u4E2A"),tt!=lt&&Xe.createElement(He.ZP,{disabled:!0},"\u5904\u7406\u4E2D"),tt==lt&&Xe.createElement(He.ZP,{type:"primary",onClick:Je},ut)))};var Ie=(0,ve.connect)(({shixunsDetail:Ke,loading:at,globalSetting:fe})=>({shixunsDetail:Ke,globalSetting:fe,loading:at.models.index}))(be)},28267:function(It,kt,ne){"use strict";ne.d(kt,{h:function(){return fe}});var E=ne(59301),ve=ne(82326),Pe=ne(28284),Te=ne(7939),He=ne(89780),_e=ne.n(He),ze=ne(88319),nt=ne(94896),Fe=Object.defineProperty,We=Object.defineProperties,Xe=Object.getOwnPropertyDescriptors,$e=Object.getOwnPropertySymbols,vt=Object.prototype.hasOwnProperty,Ye=Object.prototype.propertyIsEnumerable,Ne=(qe,st,wt)=>st in qe?Fe(qe,st,{enumerable:!0,configurable:!0,writable:!0,value:wt}):qe[st]=wt,Be=(qe,st)=>{for(var wt in st||(st={}))vt.call(st,wt)&&Ne(qe,wt,st[wt]);if($e)for(var wt of $e(st))Ye.call(st,wt)&&Ne(qe,wt,st[wt]);return qe},be=(qe,st)=>We(qe,Xe(st));const Ie=ve.default.Option,Ke={labelCol:{span:4},wrapperCol:{span:20}},at={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};kt.Z=({callback:qe,onCancel:st})=>{const[wt,ft]=(0,E.useState)("python");function ct(ut){ft(at[ut][1])}function Je(ut){qe(ut)}return E.createElement(Pe.default,be(Be({},Ke),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:Je,style:{width:500}}),E.createElement(Pe.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},E.createElement(ve.default,{getPopupContainer:ut=>ut.parentNode,onChange:ct},Object.keys(at).map(ut=>E.createElement(Ie,{key:ut,value:ut},at[ut][0])))),E.createElement(Pe.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},E.createElement(fe,{mode:wt})),E.createElement("div",{className:"flex-container flex-end"},E.createElement(Te.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),E.createElement(Te.ZP,{type:"ghost",onClick:st},"\u53D6\u6D88")))};function fe({value:qe,onChange:st,mode:wt,options:ft={}}){const ct=(0,E.useRef)(),[Je,ut]=(0,E.useState)();return(0,E.useEffect)(()=>{if(Je){let Se=function(Ve){const Ae=Ve.getValue();st&&st(Ae)};return Je.on("change",Se),()=>{Je.off("change",Se)}}},[Je,st]),(0,E.useEffect)(()=>{Je&&Je.setOption("mode",wt)},[Je,wt]),(0,E.useEffect)(()=>{Je&&(qe!==Je.getValue()||qe==="")&&setTimeout(()=>{Je.setValue(qe||"")},300)},[Je,qe]),(0,E.useEffect)(()=>{if(ct.current&&!Je){const Se=_e().fromTextArea(ct.current,Be({mode:wt,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},ft));ut(Se)}},[ct.current,Je]),E.createElement("div",{className:"my-codemirror-container"},E.createElement("textarea",{ref:ct}))}},39116:function(It,kt,ne){"use strict";ne.d(kt,{Z:function(){return cn}});var E=ne(59301),ve=ne(44283),Pe=ne(89780),Te=ne.n(Pe),He=ne(76374),_e=ne(88319),ze=ne(6313),nt=ne(25717),Fe=ne(99498),We=ne(25419),Xe=ne(67549),$e=ne(35883),vt=({value:fn="",className:wn,showTextOnly:nn,showLines:Kn,style:Jt={}})=>{const On=(0,E.useMemo)(()=>"",[fn]);return E.createElement(E.Fragment,null,E.createElement("div",{dangerouslySetInnerHTML:{__html:On}}))},Ye=Object.defineProperty,Ne=Object.defineProperties,Be=Object.getOwnPropertyDescriptors,be=Object.getOwnPropertySymbols,Ie=Object.prototype.hasOwnProperty,Ke=Object.prototype.propertyIsEnumerable,at=(fn,wn,nn)=>wn in fn?Ye(fn,wn,{enumerable:!0,configurable:!0,writable:!0,value:nn}):fn[wn]=nn,fe=(fn,wn)=>{for(var nn in wn||(wn={}))Ie.call(wn,nn)&&at(fn,nn,wn[nn]);if(be)for(var nn of be(wn))Ke.call(wn,nn)&&at(fn,nn,wn[nn]);return fn},qe=(fn,wn)=>Ne(fn,Be(wn));let st=[{title:"\u7C97\u4F53",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"md-iconfont icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"\u6570\u5B66\u516C\u5F0F",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"md-iconfont icon-formula",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"\u63D2\u5165\u753B\u56FE",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"\u63D2\u5165\u6D41\u7A0B\u56FE",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"\u8868\u683C",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function wt({onActionCallback:fn,title:wn,icon:nn,actionName:Kn,className:Jt="",children:On}){function hr(){fn(Kn)}return E.createElement("a",{title:wn,className:Jt,onClick:hr},E.createElement("i",{className:`${nn}`}),On)}var ft=({watch:fn,showNullButton:wn,showNullProgramButton:nn,onActionCallback:Kn,fullScreen:Jt,insertTemp:On,hidetoolBar:hr,extraUse:yr})=>{const Ar=[...st,{title:`${fn?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${fn?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return E.createElement("ul",{className:"markdown-toolbar-container"},!hr&&Ar.map((la,Er)=>E.createElement("li",{key:Er},la.actionName?E.createElement(wt,qe(fe({},la),{onActionCallback:Kn})):E.createElement("span",{className:"v-line"}))),wn?E.createElement("li",null,E.createElement(wt,{icon:"iconfont icon-tianjia5 insert-blank",className:"btn-null ml5",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Kn},E.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u65B0\u589E\u586B\u7A7A\u9879"))):null,nn?E.createElement(E.Fragment,null,E.createElement("li",null,E.createElement(wt,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:Kn},E.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u5355\u884C\u586B\u7A7A\u9879"))),E.createElement("li",null,E.createElement(wt,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:Kn},E.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u591A\u884C\u586B\u7A7A\u9879")))):null,On&&E.createElement("li",null,E.createElement(wt,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${On}`,onActionCallback:Kn},E.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),yr&&E.createElement("li",null,yr),E.createElement("li",{className:"btn-full-screen"},E.createElement(wt,{icon:`${Jt?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:Jt?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Kn})))},ct=ne(88487),Je=ne(28284),ut=ne(37568),Se=ne(7939),Ve=Object.defineProperty,Ae=Object.defineProperties,tt=Object.getOwnPropertyDescriptors,Dt=Object.getOwnPropertySymbols,lt=Object.prototype.hasOwnProperty,Qe=Object.prototype.propertyIsEnumerable,xt=(fn,wn,nn)=>wn in fn?Ve(fn,wn,{enumerable:!0,configurable:!0,writable:!0,value:nn}):fn[wn]=nn,Re=(fn,wn)=>{for(var nn in wn||(wn={}))lt.call(wn,nn)&&xt(fn,nn,wn[nn]);if(Dt)for(var nn of Dt(wn))Qe.call(wn,nn)&&xt(fn,nn,wn[nn]);return fn},me=(fn,wn)=>Ae(fn,tt(wn));const pt={labelCol:{span:4},wrapperCol:{span:20}};var bt=({callback:fn,onCancel:wn})=>{function nn(Kn){fn(Kn)}return E.createElement(Je.default,me(Re({},pt),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:nn,style:{width:500}}),E.createElement(Je.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},E.createElement(ut.default,null)),E.createElement(Je.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},E.createElement(ut.default,null)),E.createElement("div",{className:"flex-container flex-end"},E.createElement(Se.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),E.createElement(Se.ZP,{type:"ghost",onClick:wn},"\u53D6\u6D88")))},it=ne(28267),Le=ne(53332),Ue=ne(62957),mt=ne(77019),Zt=ne(40254),Pt=ne(59301),en=({callback:fn,onCancel:wn})=>{const nn=document.createElement("canvas"),Kn=nn.getContext("2d");nn.width=1e3,nn.height=800,Kn.fillStyle="#ffffff",Kn.fillRect(0,0,nn.width,nn.height);const Jt=nn.toDataURL("image/png");return Pt.createElement(Ue.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Pt.createElement(mt.Z,{style:{height:"100vh"}},Pt.createElement(Zt.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:Jt,visible:!0,title:String(Date.now())},onOk:On=>{fn({src:On.url})},onClose:wn})))},dt=ne(36207),Lt=ne(5269),pn=ne(6767),he={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re",drawerWrap:"drawerWrap___MfDw8"},le=ne(59301),pe=(0,E.forwardRef)(({onCancel:fn,editImgId:wn,callback:nn},Kn)=>{let Jt=(0,E.useRef)(),On=(0,E.useRef)(),hr=(0,E.useRef)(),yr=(0,E.useRef)(!1);const Ar=(0,E.useRef)(!1);console.log("ref:",Kn);const[la,Er]=(0,E.useState)(0),[Qt,_n]=(0,E.useState)("100vh");return(0,E.useEffect)(()=>{Er(1)},[]),(0,E.useImperativeHandle)(Kn,()=>({setHeight:_n})),le.createElement("div",{ref:Ar,className:"body-overflow-initial"},le.createElement(dt.Z,{width:"100vw",height:Qt,footer:null,closable:!0,placement:"bottom",open:!!la,destroyOnClose:!0,maskClosable:!1,mask:!1,rootClassName:`zIndex-9999 ${he.drawerWrap}`,onClose:()=>{window.saveDrawData(br=>{nn({src:`/api/attachments/${br}`,id:br})})},title:le.createElement(mt.Z,{align:"middle"},le.createElement(Lt.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),le.createElement(Lt.Z,{onClick:()=>{_n(Qt==="60px"?"100vh":"60px")}},le.createElement("span",{className:"current c-blue",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77")),le.createElement(Lt.Z,{onClick:()=>{window.saveDrawData(br=>{if(br===null){pn.ZP.warning({content:"\u5185\u5BB9\u4E3A\u7A7A\uFF0C\u8BF7\u5148\u7ED8\u5236\u6D41\u7A0B\u56FE",key:"saveFlowChart"});return}pn.ZP.success({content:"\u4FDD\u5B58\u6210\u529F",key:"saveFlowChart",style:{zIndex:999999999}}),nn({src:`/api/attachments/${br}`,id:br,disabledClose:!0})})}},le.createElement(Se.ZP,{type:"primary",className:"ml20"},"\u4FDD\u5B58")))},le.createElement("iframe",{src:`/drawio/src/main/webapp/?id=${wn||""}&gapi=0&od=0&db=0&gh=0&gl=0&local=0`,width:"100%",height:"100%",frameBorder:"0",ref:On})))}),ye=ne(14185),se=ne(47889),ot=ne(4875);const Xt=se.ZP.Group,zt={margin:"0 8px"};var on=({callback:fn,onCancel:wn})=>{function nn(Kn){fn(Kn)}return E.createElement(Je.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:nn},E.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},E.createElement("span",{style:zt},"\u5355\u5143\u683C\u6570\uFF1A"),E.createElement("span",{style:zt},"\u884C\u6570"),E.createElement(Je.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},E.createElement(ot.Z,null)),E.createElement("span",{style:zt},"\u5217\u6570"),E.createElement(Je.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},E.createElement(ot.Z,null))),E.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},E.createElement("span",{style:zt},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),E.createElement(Je.default.Item,{name:"align"},E.createElement(Xt,null,E.createElement(se.ZP,{value:"default"},E.createElement("i",{className:"fa fa-align-justify"})),E.createElement(se.ZP,{value:"left"},E.createElement("i",{className:"fa fa-align-left"})),E.createElement(se.ZP,{value:"center"},E.createElement("i",{className:"fa fa-align-center"})),E.createElement(se.ZP,{value:"right"},E.createElement("i",{className:"fa fa-align-right"}))))),E.createElement("div",{className:"flex-container flex-end"},E.createElement(Se.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),E.createElement(Se.ZP,{type:"ghost",onClick:wn},"\u53D6\u6D88")))},Kt=ne(58755),Yn=ne(84915),Fn=ne.n(Yn),ra=(0,E.forwardRef)(({use3d:fn,width:wn,height:nn,callback:Kn,showSaveButton:Jt},On)=>{const hr=(0,E.useRef)(),yr=(0,E.useRef)(),[Ar,la]=(0,E.useState)(!1),Er=(0,E.useRef)({id:hr,appName:"graphing",width:wn||1e3,height:nn||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,E.useEffect)(()=>{yr.current=new(Fn())(Er.current,!0),window.onload=function(){yr.current.inject("applet_container")}},[]);const Qt=()=>{var _n=window.ggbApplet.getPNGBase64(1,!0,72);return Kn&&Kn(_n),_n};return(0,E.useEffect)(()=>{Er.current.appName=Ar?"3D":"graphing",yr.current.inject("applet_container")},[Ar]),(0,E.useEffect)(()=>{la(fn)},[fn]),(0,E.useImperativeHandle)(On,()=>({getImgData:Qt})),E.createElement(E.Fragment,null,E.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:hr}),E.createElement(mt.Z,{align:"middle"},E.createElement(Lt.Z,{flex:1},E.createElement(Kt.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:Ar,onChange:_n=>la(_n)})),E.createElement(Lt.Z,null,E.createElement(Se.ZP,{size:"large",onClick:Qt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),ur=ne(9057);const rr="link",Xr="upload-image",Vr="add-flowchart",xr="draw-image",Dn="add-flowchart",pa="code-block",Jn="add-table",Vn="------------",ha={default:Vn,left:`:${Vn}`,center:`:${Vn}:`,right:`${Vn}:`};var Ti=ne(79006),Ni=ne(76406);function Ir(){}let Sn=0;const ir=1e4,Fa="\u2581",$a="@\u2581\u2581@",Jr="@\u2581@",na=`
**\u6A21\u677F\u6807\u9898**
\u6A21\u677F\u6B63\u6587\u5185\u5BB9\uFF0C\u53EF\u8F93\u5165\u6587\u672C\u5185\u5BB9\u548C\u7C98\u8D34\u56FE\u7247\u7B49\u64CD\u4F5C`,Qa=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"];function Kr(fn){return/^\d+$/.test(fn)?`${fn}px`:fn}const aa=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Wn={[aa+"-B"]:"bold",[aa+"-I"]:"italic"},Rn={[rr]:"\u6DFB\u52A0\u94FE\u63A5",[pa]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[Xr]:"\u6DFB\u52A0\u56FE\u7247",[xr]:"\u6DFB\u52A0\u753B\u56FE",[Vr]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Jn]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var cn=({defaultValue:fn="",onChange:wn,width:nn="100%",height:Kn=400,miniToolbar:Jt=!1,isFocus:On=!1,watch:hr,insertTemp:yr,mode:Ar="markdown",id:la="markdown-editor-id",showResizeBar:Er=!1,noStorage:Qt=!1,showNullButton:_n=!1,showNullProgramButton:br=!1,hidetoolBar:Nr=!1,fullScreen:qr=!1,onBlur:Xa,onCMBeforeChange:si,onFullScreen:so,className:Mn="",disablePaste:Rr=!1,disabled:jn=!1,disabledFill:tl=!1,placeholder:Zo="",values:Ct="",extraUse:rn,onAddBlank:Mt})=>{const[Nt,sr]=(0,E.useState)(null),[Hn,vn]=(0,E.useState)(fn),[Fr,Pr]=(0,E.useState)(hr),[Or,Ha]=(0,E.useState)(qr),[ma,Qr]=(0,E.useState)(""),[za,Ya]=(0,E.useState)(0),[jr,Wa]=(0,E.useState)(Kn),[Li,ui]=(0,E.useState)(!1),[Sa,ia]=(0,E.useState)(0),[$i,ci]=(0,E.useState)(0),ja=(0,E.useRef)(),ai=(0,E.useRef)(),wi=(0,E.useRef)(),ii=(0,E.useRef)(),Da=(0,E.useRef)(),Di=(0,E.useRef)(),oi=(0,ve.useDispatch)();(0,E.useEffect)(()=>{const _t=window.scrollY||window.pageYOffset;vn(Ct),Nt==null||Nt.setValue(Ct),window.scrollTo(0,_t)},[Ct]),(0,E.useEffect)(()=>{so==null||so(Or)},[Or]),(0,E.useEffect)(()=>{if(ja.current){let _t=function(Ut,an){var qt;if(Rr){an.preventDefault();return}const An=an.clipboardData;if(An){const fr=An.types.toString(),cr=An.items;if(fr==="Files"||An.types.indexOf("Files")>-1){if(an.preventDefault(),Ar=="stex")return;try{let $n=cr[1];((qt=cr[0])==null?void 0:qt.kind)==="file"&&($n=cr[0]);const Pa=$n.getAsFile(),ta=Pa.name.split(".").pop();(0,Le.I)(Pa,Ba=>{var bi,Hi,uo;Ba.id?((bi=Pa==null?void 0:Pa.type)==null?void 0:bi.indexOf("image"))>-1?$t.replaceSelection(`<img width="100%" src="/api/attachments/${Ba.id}?type=${Ba.content_type})" alt="" />`):((Hi=Pa==null?void 0:Pa.type)==null?void 0:Hi.indexOf("video"))>-1?$t.replaceSelection(`<video width="100%" controls src="/api/attachments/${Ba.id}"></video>`):((uo=Pa==null?void 0:Pa.type)==null?void 0:uo.indexOf("pdf"))>-1?$t.replaceSelection(`<a href="/api/attachments/${Ba.id}?type=${Pa.type}&disposition=inline" target="_blank">${Pa.name}</a>`):Qa.includes(ta)?$t.replaceSelection(`<a href="/api/attachments/${Ba.id}?type=office&disposition=inline" target="_blank">${Pa.name}</a>`):$t.replaceSelection(`[${Pa.name}](/api/attachments/${Ba.id}?type=${Ba.content_type})`):(Ba==null?void 0:Ba.status)===401&&(document.location.href="/user/login")})}catch($n){pn.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const $t=Te().fromTextArea(ja.current,{mode:Ar,lineNumbers:!Jt,lineWrapping:!0,value:fn,autoCloseTags:!0,autoCloseBrackets:!0});return $t.on("keyup",function(Ut,an){an.keyCode===8&&(Ut.getValue()==""?$t.setOption("placeholder",Zo):$t.setOption("placeholder",null))}),$t.on("keydown",function(Ut,an){if(an.keyCode===8){var qt=Bo(Ut);qt&&an.preventDefault()}}),On&&$t.focus(),$t.on("paste",_t),jn&&$t.on("beforeChange",function(Ut,an){(an.origin==="paste"||an.origin==="+input")&&an.cancel()}),sr($t),()=>{$t.off("paste",_t)}}},[]);const xo=(0,E.useCallback)(()=>{if(ai.current)try{}catch(_t){console.log(_t,"---- to set md editor body height")}},[jr,ai,Or]);(0,E.useEffect)(()=>{function _t(){let $t=new He.Z(Ut=>{for(let an of Ut)(an.target.offsetHeight>0||an.target.offsetWidth>0)&&(xo(),Nt.setSize("100%","100%"),Nt.refresh())});return $t.observe(ja.current.parentElement),$t}if(Nt){const $t=_t();return()=>{var Ut,an;(Ut=ja.current)!=null&&Ut.parentElement&&$t.unobserve((an=ja.current)==null?void 0:an.parentElement)}}},[Nt,xo]),(0,E.useEffect)(()=>{if(Nt){let _t=[];for(const[$t,Ut]of Object.entries(Wn)){let an={[$t]:()=>{Ei(Ut)}};_t.push(an),Nt.addKeyMap(an)}return()=>{for(let $t of _t)Nt.removeKeyMap($t)}}},[Nt]),(0,E.useEffect)(()=>{qr!==Or&&Ha(qr)},[qr]),(0,Ti.Z)(()=>{if(!Qt&&za>0){let _t=new Date().getTime(),$t=window.sessionStorage.getItem(la);_t>=za+ir&&(!$t||$t!==Hn)&&(window.sessionStorage.setItem(la,Hn),ui(!0))}},ir),(0,E.useEffect)(()=>{Pr(hr)},[Nt,hr]),(0,E.useEffect)(()=>{Nt&&On&&Nt.focus()},[Nt,On]),(0,E.useEffect)(()=>{if(Fr&&Nt){let _t=function(Ut){let an=Ut.target;if(ii.current){let qt=an.scrollTop/an.scrollHeight;ii.current.scrollTop=ii.current.scrollHeight*qt}};const $t=Nt.getScrollerElement();return $t.addEventListener("scroll",_t),()=>{$t.removeEventListener("scroll",_t)}}},[Nt,Fr]),(0,E.useEffect)(()=>{if(Nt&&si){let _t=function($t,Ut){si($t,Ut)};return Nt.on("beforeChange",_t),()=>{Nt.off("beforeChange",_t)}}},[Nt,si]),(0,E.useEffect)(()=>{if(Nt&&Xa){let _t=function(){Xa(Nt.getValue())};return Nt.on("blur",_t),()=>{Nt.off("blur",_t)}}},[Nt,Xa]);function Bo(_t,$t){var Ut=_t.getDoc(),an=Ut.getCursor(),qt=Ut.getLine(an.line),An=qt.charAt(an.ch-1),fr=qt.lastIndexOf("@\u2581@",an.ch),cr=qt.lastIndexOf("@\u2581\u2581@",an.ch),$n=fr>cr?fr:cr,Pa=fr>cr?3:4;if($a.indexOf(An)===-1)return null;if(console.log("change1:",$t,_t,qt,an,$n,fr,cr,An),$n>=0&&an.ch-$n<5){var ta=$n+Pa;return Ut.replaceRange("",{line:an.line,ch:$n},{line:an.line,ch:ta}),{line:an.line,ch:ta}}return null}(0,E.useEffect)(()=>{if(Nt){let _t=function($t,Ut){const an=$t.getValue();vn(an),Ya(new Date().getTime()),$t.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),wn&&(br?wn(an,So(an)):wn(an))};return Nt.on("change",_t),()=>{Nt.off("change",_t)}}},[Nt,wn]),(0,E.useEffect)(()=>{if(Nt)if(fn==null)Nt.setValue(""),vn("");else{const _t=window.scrollY||window.pageYOffset;fn!==Nt.getValue()&&(Nt.setValue(fn),vn(fn),Nt.setCursor(jn?1:Nt.lineCount(),0),window.scrollTo(0,_t))}},[Nt,fn]);const Ei=(0,E.useCallback)(_t=>{const $t=Nt.getCursor(),Ut=Nt.getSelection();let an=Ut.split(`
`);switch(_t){case"bold":return Nt.replaceSelection("**"+Ut+"**"),Ut===""&&Nt.setCursor($t.line,$t.ch+2),Nt.focus();case"italic":return Nt.replaceSelection("*"+Ut+"*"),Ut===""&&Nt.setCursor($t.line,$t.ch+1),Nt.focus();case"code":return Nt.replaceSelection("`"+Ut+"`"),Ut===""&&Nt.setCursor($t.line,$t.ch+1),Nt.focus();case"inline-latex":return(0,Ni.Ye)(oi)?void 0:(Qr("inline-latex"),Nt.focus());case"latex":return Nt.replaceSelection("```latex\n"+Ut+"\n```"),Nt.setCursor($t.line+1,Ut.length+1),Nt.focus();case"line-break":return Nt.replaceSelection(`<br/>
`),Nt.focus();case"list-ul":return Ut===""?Nt.replaceSelection("- "+Ut):Nt.replaceSelection(an.map(qt=>qt===""?"":`- ${qt}`).join(`
`)),Nt.focus();case"list-ol":return Ut===""?Nt.replaceSelection("1. "+Ut):Nt.replaceSelection(an.map((qt,An)=>qt===""?"":`${An+1}. ${qt}`).join(`
`)),Nt.focus();case"add-null-ch":Mt==null||Mt();return;case"add-signal":return Ut===""&&Nt.setCursor($t.line,$t.ch),Nt.replaceSelection(Jr),Nt.focus();case"add-multiple":return Ut===""&&Nt.setCursor($t.line,$t.ch),Nt.replaceSelection($a),Nt.focus();case"inster-template-1":return Ut===""&&Nt.setCursor($t.line,$t.ch),Nt.replaceSelection(na),Nt.focus();case"eraser":return Nt.setValue(""),Nt.focus();case"trigger-watch":return Pr(!Fr),Nt.focus();case"trigger-full-screen":return Ha(!Or),Nt.focus();case rr:Qr(rr);return;case pa:Qr(pa);return;case Xr:Qr(Xr);return;case xr:Qr(xr);return;case"maths-latex":if((0,Ni.Ye)(oi))return;Qr("maths-latex");return;case Vr:Da.current="",sessionStorage.removeItem("file_id"),Qr(Vr);return;case Jn:Qr(Jn);return;default:throw new Error}},[Nt,Fr,Or]),Qi=(0,E.useCallback)((_t,$t)=>{var Ut,an,qt,An,fr,cr;_t!=null&&_t.disabledClose||Qr("");const{src:$n,alt:Pa,id:ta}=_t||{};switch(ma){case rr:const{title:pl,link:ol}=_t;return Nt.replaceSelection(`[${pl}](${ol})`),Nt.focus();case pa:const{language:ll,content:nl}=_t;return Nt.replaceSelection(["```"+ll,nl,"```"].join(`
`)),Nt.focus();case"maths-latex":for(var Ba=atob(_t),bi=new Uint8Array(Ba.length),Hi=0;Hi<Ba.length;Hi++)bi[Hi]=Ba.charCodeAt(Hi);var uo=new Blob([bi],{type:"image/png"});return(0,Le.I)(uo,kl=>{kl.id?Nt.replaceSelection(`![,](/api/attachments/${kl.id}?type=${kl.content_type})`):(kl==null?void 0:kl.status)===401&&(document.location.href="/user/login")}),Nt.focus();case"inline-latex":return(0,Ni.Ye)(oi)?void 0:(Nt.replaceSelection("`$$"+_t+"$$`"),Nt.focus());case Dn:return ta?(Nt.getValue().indexOf($n)===-1?Nt.replaceSelection(`<center><img id="${ta}" width="80%" src="${$n}" class="draw-flowchart" alt="${Pa||""}" /></center>`):document.getElementById(ta).src=ye.Z.API_SERVER+$n+"?t="+Date.now(),Nt.focus()):void 0;case Xr:case xr:const Do=$t,co=(qt=(an=(Ut=Do==null?void 0:Do.name)==null?void 0:Ut.split("."))==null?void 0:an.pop)==null?void 0:qt.call(an);return((An=Do==null?void 0:Do.type)==null?void 0:An.indexOf("image"))>-1||!(Do!=null&&Do.type)?Do!=null&&Do.align||Do!=null&&Do.width?Nt.replaceSelection(`<p style="text-align:${Do.align||"initial"}"><img width="${Do.width?Do.width+"%":"initial"}" src="${$n}" alt="${Pa||""}" /></p>`):Nt.replaceSelection(`<img width="100%" src="${$n}" alt="${Pa||""}" />`):((fr=Do==null?void 0:Do.type)==null?void 0:fr.indexOf("video"))>-1?Nt.replaceSelection(`<video width="100%" controls src="${$n}"></video>`):((cr=Do==null?void 0:Do.type)==null?void 0:cr.indexOf("pdf"))>-1?Nt.replaceSelection(`<a href="${$n}?type=${Do.type}&disposition=inline" target="_blank">${Do.name}</a>`):Qa.includes(co)?Nt.replaceSelection(`<a href="${$n}?type=office&disposition=inline" target="_blank">${Do.name}</a>`):Nt.replaceSelection(`[${Do.name}](${$n})`),Nt.focus();case Jn:const{row:jl,col:yl,align:Ul}=_t;let ql=`
`;for(let kl=0;kl<jl;kl++){let hl=[],Go=[];for(let ts=0;ts<yl;ts++)kl===1&&Go.push(ha[Ul]),hl.push(" ");kl===1&&(ql+=`| ${Go.join(" | ")} |
`),ql+=`| ${hl.join(yl===1?"":" | ")} |
`}return Nt.replaceSelection(ql+`
`),Nt.focus();default:throw new Error}},[Nt,ma]),ga=(0,E.useMemo)(()=>{switch(ma){case rr:return E.createElement(bt,{callback:Qi,onCancel:Ri});case pa:return E.createElement(it.Z,{callback:Qi,onCancel:Ri});case Xr:return E.createElement(Le.Z,{callback:Qi,onCancel:Ri});case Vr:return E.createElement(pe,{editImgId:Da.current,callback:Qi,onCancel:Ri});case Jn:return E.createElement(on,{callback:Qi,onCancel:Ri});case"maths-latex":return E.createElement(ra,{showSaveButton:!0,callback:Qi});case"inline-latex":return E.createElement(ur.Z,{showSaveButton:!0,callback:Qi});default:return null}},[ma]);function Ri(){Qr("")}(0,E.useEffect)(()=>{if(wi.current){let _t=function(fr){qt=!0,An=fr.pageY},$t=function(){qt=!1},Ut=function(fr){if(qt){let cr=fr.pageY-An;cr<0&&(cr=0),cr>300&&(cr=300);let $n=Kn+cr+"px";Wa($n)}},an=wi.current,qt=!1,An=0;return an.addEventListener("mousedown",_t),document.addEventListener("mousemove",Ut),document.addEventListener("mouseup",$t),()=>{an.removeEventListener("mousedown",_t),document.removeEventListener("mousemove",Ut),document.removeEventListener("mouseup",$t)}}},[Nt,wi]),(0,E.useEffect)(()=>{Wa(Kn)},[Kn]);const Pi=Kr(nn),Fo=Kr(jr),Bi={width:Pi,height:Fo},Fi=(0,E.useMemo)(()=>{if(za){let _t=new Date(za),$t=_t.getHours(),Ut=_t.getMinutes(),an=_t.getSeconds();return $t=$t<10?"0"+$t:$t,Ut=Ut<10?"0"+Ut:Ut,an=an<10?"0"+an:an,`${$t}:${Ut}:${an}`}return 0},[za]),So=_t=>{const $t=[];if(br){let Ut=-1;_t=_t.replace(/(@▁▁@|@▁@)/g,function(an,qt,An){$t.push({multiLine:an!==Jr})})}return $t};function De(){window.sessionStorage.removeItem(la),ui(!1),Ya(0)}function jt(){ui(!1),Ya(0),Nt.setValue(window.sessionStorage.getItem(la))}(0,E.useEffect)(()=>{Rn[ma]&&ma!==xr&&ma!==Vr&&setTimeout(()=>{const _t=document.getElementsByClassName("markdown-popup-form")[0],$t=window.innerWidth/2-_t.offsetWidth/2,Ut=window.innerHeight/2-_t.offsetHeight/2;ia($t),ci(Ut)},0)},[ma]);const hn=_t=>{_t.preventDefault();const $t=_t.clientX-Sa,Ut=_t.clientY-$i;document.body.onmousemove=an=>{let qt=an.clientX-$t,An=an.clientY-Ut;const fr=document.getElementsByClassName("markdown-popup-form")[0],cr=window.innerWidth-fr.offsetWidth,$n=window.innerHeight-fr.offsetHeight;qt=Math.max(0,Math.min(qt,cr)),An=Math.max(0,Math.min(An,$n)),Cn(an.clientX,an.clientY,$t,Ut)&&(ia(qt),ci(An))},document.body.onmouseup=function(){document.body.onmousemove=null}},Cn=(_t,$t,Ut,an)=>{const qt=document.body.clientHeight,An=document.body.clientWidth;return _t<20&&Ut>_t||_t>An-20&&Ut<_t||$t<20&&an>$t||$t>qt-20&&an<$t?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return E.createElement(E.Fragment,null,E.createElement("div",{className:"markdown-editor-wrapper",ref:ai},E.createElement("div",{className:`markdown-editor-container ${Mn} ${Fr?"on-preview":""} ${Jt?"mini":""} ${Or?"full-screen":""}`,style:Bi},E.createElement(ft,{insertTemp:yr,watch:Fr,fullScreen:Or,showNullButton:_n,showNullProgramButton:br,onActionCallback:Ei,hidetoolBar:Nr,extraUse:rn}),E.createElement("div",{className:"markdown-editor-body"},E.createElement("div",{className:"codemirror-container"},E.createElement("textarea",{ref:ja,placeholder:Zo})),Fr?E.createElement("div",{ref:ii,className:"preview-container"},Ar==="stex"&&E.createElement(vt,{value:Hn}),Ar!=="stex"&&E.createElement($e.Z,{edit:!0,disabledFill:tl,showProgramFill:br,value:Hn,openEditor:_t=>{var $t;Da.current=_t,($t=Di.current)==null||$t.setHeight("100vh"),setTimeout(()=>{Qr("add-flowchart")},150)}})):null))),Er?E.createElement("a",{ref:wi,className:"editor-resize"}):null,ma===xr&&E.createElement(en,{callback:Qi,onCancel:Ri}),ma===Vr&&E.createElement(pe,{ref:Di,editImgId:Da.current,callback:Qi,onCancel:Ri}),E.createElement(ct.Z,null,Rn[ma]&&ma!==xr&&ma!==Vr?E.createElement(Ue.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:Sa,top:$i},title:E.createElement("div",{style:{cursor:"move"},onMouseDown:hn},Rn[ma]),open:!0,onCancel:Ri,footer:null,destroyOnClose:!0,width:ma===Vr?"1200px":null,height:ma===Vr?"80vh":null,className:"markdown-popup-form"},ga):null))}},53332:function(It,kt,ne){"use strict";ne.d(kt,{Z:function(){return st},I:function(){return ft}});var E=ne(28284),ve=ne(6767),Pe=ne(37568),Te=ne(44104),He=ne(4875),_e=ne(47889),ze=ne(7939),nt=ne(23216),Fe=ne(59301),We=ne(59301),Xe=Object.defineProperty,$e=Object.defineProperties,vt=Object.getOwnPropertyDescriptors,Ye=Object.getOwnPropertySymbols,Ne=Object.prototype.hasOwnProperty,Be=Object.prototype.propertyIsEnumerable,be=(ct,Je,ut)=>Je in ct?Xe(ct,Je,{enumerable:!0,configurable:!0,writable:!0,value:ut}):ct[Je]=ut,Ie=(ct,Je)=>{for(var ut in Je||(Je={}))Ne.call(Je,ut)&&be(ct,ut,Je[ut]);if(Ye)for(var ut of Ye(Je))Be.call(Je,ut)&&be(ct,ut,Je[ut]);return ct},Ke=(ct,Je)=>$e(ct,vt(Je));const{useForm:at}=E.default,fe={width:280,marginRight:10},qe={labelCol:{span:5},wrapperCol:{span:19}};var st=({callback:ct,onCancel:Je})=>{const[ut]=at();let Se=(0,Fe.useRef)();function Ve(Dt){Se.current.width=ut.getFieldValue("width"),Se.current.align=ut.getFieldValue("align"),ct(Dt,Se.current)}function Ae(Dt,lt){if(Dt.status===-1){ve.ZP.error(Dt.message);return}ut.setFieldsValue({src:`/api/attachments/${Dt.id}`,type:lt.type})}function tt(Dt){let lt=Dt.target.files[0];Se.current=lt,ft(lt,Ae)}return We.createElement(E.default,Ke(Ie({form:ut},qe),{className:"upload-image-panel",onFinish:Ve,style:{width:470,overflow:"hidden"}}),We.createElement(E.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},We.createElement("div",{className:"flex-container"},We.createElement(E.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},We.createElement(Pe.default,{style:fe})),We.createElement(wt,{onFileChange:tt}))),We.createElement(E.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},We.createElement(Pe.default,{style:{width:264}})),We.createElement(E.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},We.createElement(Te.Z,null,We.createElement(E.default.Item,{name:"width",style:{margin:0}},We.createElement(He.Z,{style:{width:264}})),We.createElement("span",{className:"ml8"},"%"))),We.createElement(E.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},We.createElement(_e.ZP.Group,{name:"align",defaultValue:1,options:[{value:"left",label:"\u5DE6\u5BF9\u9F50"},{value:"center",label:"\u5C45\u4E2D\u5BF9\u9F50"},{value:"right",label:"\u53F3\u5BF9\u9F50"}]})),We.createElement("aside",null,We.createElement(E.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},We.createElement(ze.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),We.createElement(ze.ZP,{type:"default",onClick:Je},"\u53D6\u6D88"))))};function wt({onFileChange:ct}){return We.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",We.createElement("input",{type:"file",onChange:ct}))}function ft(ct,Je){if(!ct)throw new String("\u6CA1\u6709\u6587\u4EF6");let ut=new FormData;ut.append("editormd-image-file",ct),ut.append("file_param_name","editormd-image-file"),ut.append("byxhr","true");var Se=new window.XMLHttpRequest;Se.withCredentials=!0,Se.addEventListener("load",function(Ve){Je(JSON.parse(Ve.target.responseText),ct)},!1),Se.addEventListener("error",function(Ve){console.error(Ve)},!1),Se.open("POST",`${nt.KI}/api/attachments.json`),Se.send(ut)}},88487:function(It,kt,ne){"use strict";ne.d(kt,{Z:function(){return Pe}});var E=ne(59301),ve=ne(4676);class Pe extends E.Component{constructor(He){super(He);const _e=window.document;this.node=_e.createElement("div"),_e.body.appendChild(this.node)}render(){const{children:He}=this.props;return(0,ve.createPortal)(He,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},34728:function(It,kt,ne){"use strict";ne.d(kt,{SV:function(){return en},ZP:function(){return Pt}});var E=ne(59301),ve=ne(76374);const Pe={keywords:["print","auto","break","case","char","const","continue","default","do","double","else","enum","extern","float","for","goto","if","int","long","register","return","short","signed","sizeof","static","struct","switch","typedef","union","unsigned","void","volatile","while"]},Te={quickKey:[{label:"main",content:["public static void main(String[] args) {"," $0","}"].join(`
`)},{label:"System.out.println",content:["System.out.println($0)"].join(`
`)},{label:"System.out.print",content:["System.out.print($0)"].join(`
`)}],keywords:["abstract","continue","for","new","switch","assert","default","goto","package","synchronized","boolean","do","if","private","this","break","double","implements","protected","throw","byte","else","import","public","throws","case","enum","instanceof","return","transient","catch","extends","int","short","try","char","final","interface","static","void","class","finally","long","strictfp","volatile","const","float","native","super","while","true","false"]},He={keywords:["abstract","amp","array","auto","bool","break","case","catch","char","class","const","constexpr","const_cast","continue","cpu","decltype","default","delegate","delete","do","double","dynamic_cast","each","else","enum","event","explicit","export","extern","false","final","finally","float","friend","gcnew","generic","goto","in","initonly","inline","int","interface","interior_ptr","internal","literal","long","mutable","namespace","new","noexcept","nullptr","__nullptr","operator","override","partial","pascal","pin_ptr","private","property","protected","public","ref","register","reinterpret_cast","restrict","return","safe_cast","sealed","short","signed","sizeof","static","static_assert","static_cast","struct","switch","template","this","thread_local","throw","tile_static","true","try","typedef","typeid","typename","union","unsigned","using","virtual","void","volatile","wchar_t","where","while","_asm","_based","_cdecl","_declspec","_fastcall","_if_exists","_if_not_exists","_inline","_multiple_inheritance","_pascal","_single_inheritance","_stdcall","_virtual_inheritance","_w64","__abstract","__alignof","__asm","__assume","__based","__box","__builtin_alignof","__cdecl","__clrcall","__declspec","__delegate","__event","__except","__fastcall","__finally","__forceinline","__gc","__hook","__identifier","__if_exists","__if_not_exists","__inline","__int128","__int16","__int32","__int64","__int8","__interface","__leave","__m128","__m128d","__m128i","__m256","__m256d","__m256i","__m64","__multiple_inheritance","__newslot","__nogc","__noop","__nounwind","__novtordisp","__pascal","__pin","__pragma","__property","__ptr32","__ptr64","__raise","__restrict","__resume","__sealed","__single_inheritance","__stdcall","__super","__thiscall","__try","__try_cast","__typeof","__unaligned","__unhook","__uuidof","__value","__virtual_inheritance","__w64","__wchar_t"],operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],quickKey:[{label:"ifelse",content:["if (${1:condition}) {"," $0","} else {"," ","}"].join(`
`)},{label:"include",content:"include<$0>"},{label:"printf",content:"printf($0)"},{label:"system",content:'system("$0")'},{label:"main",content:["int main () {"," $0","}"].join(`
`)},{label:"if",content:["if () {"," $0","}"].join(`
`)},{label:"for",content:["for(int j=0 ; j<10; j++){"," $0","}"].join(`
`)},{label:"trycatch",content:["try{"," $0","}catch(ExceptionName e){","}"].join(`
`)},{label:"using namespace std",content:["using namespace std"].join(`
`)},{label:"include <iostream>",content:["#include <iostream>"].join(`
`)},{label:"include <vector>",content:["#include <vector>"].join(`
`)},{label:"include <cstdio>",content:["#include <cstdio>"].join(`
`)},{label:"include <cstring>",content:["#include <cstring>"].join(`
`)},{label:"include <sstream>",content:["#include <sstream>"].join(`
`)},{label:"include <fstream>",content:["#include <fstream>"].join(`
`)},{label:"include <map>",content:["#include <map>"].join(`
`)},{label:"include <string>",content:["#include <string>"].join(`
`)},{label:"include <cmath>",content:["#include <cmath>"].join(`
`)}]},_e={keywords:["and","as","assert","break","class","continue","def","del","elif","else","except","exec","finally","for","from","global","if","import","in","is","lambda","None","not","or","pass","raise","return","self","try","while","with","yield","int","float","long","complex","hex","abs","all","any","apply","basestring","bin","bool","buffer","bytearray","callable","chr","classmethod","cmp","coerce","compile","complex","delattr","dict","dir","divmod","enumerate","eval","execfile","file","filter","format","frozenset","getattr","globals","hasattr","hash","help","id","input","intern","isinstance","issubclass","iter","len","locals","list","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","reversed","range","raw_input","reduce","reload","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","unichr","unicode","vars","xrange","zip","True","False","__dict__","__methods__","__members__","__class__","__bases__","__name__","__mro__","__subclasses__","__init__","__import__"],quickKey:[{label:"print",content:["print($0)"].join(`
`)}]},ze={keywords:["asInstanceOf","catch","class","classOf","def","do","else","extends","finally","for","foreach","forSome","if","import","isInstanceOf","macro","match","new","object","package","return","throw","trait","try","type","until","val","var","while","with","yield","given","enum","then"],quickKey:[{label:"println",content:["println($0)"].join(`
`)}]};var nt=ne(53184),Fe=ne.n(nt),We=(dt,Lt,pn)=>new Promise((he,le)=>{var ae=se=>{try{ye(pn.next(se))}catch(ot){le(ot)}},pe=se=>{try{ye(pn.throw(se))}catch(ot){le(ot)}},ye=se=>se.done?he(se.value):Promise.resolve(se.value).then(ae,pe);ye((pn=pn.apply(dt,Lt)).next())});const Xe={languages:["c","abap","apex","azcli","bat","cameligo","clojure","coffee","cpp","csharp","csp","css","dockerfile","fsharp","go","graphql","handlebars","html","ini","java","javascript","json","kotlin","less","lua","markdown","mips","msdax","mysql","objective-c","pascal","pascaligo","perl","pgsql","php","postiats","powerquery","powershell","pug","python","r","razor","redis","redshift","restructuredtext","ruby","rust","sb","scheme","scss","shell","solidity","sophia","sql","st","swift","tcl","twig","vb","xml","yaml'"],tables:{users:["name","id","email","phone","password"],roles:["id","name","order","created_at","updated_at","deleted_at"]}},$e=(dt,Lt,pn,he)=>{const le=Lt.getValueInRange({startLineNumber:1,startColumn:1,endLineNumber:pn.lineNumber,endColumn:pn.column});return Array.from(new Set(le.match(/\b\w{2,}\b/g)||[])).map(pe=>({label:pe,kind:dt.languages.CompletionItemKind.Text,insertText:pe,range:he}))},vt=(dt,Lt,pn,he)=>{dt.languages.registerCompletionItemProvider(Lt,{provideCompletionItems(le,ae){const pe=le.getWordUntilPosition(ae),ye={startLineNumber:ae.lineNumber,endLineNumber:ae.lineNumber,startColumn:pe.startColumn,endColumn:pe.endColumn},se=le.getLineContent(ae.lineNumber).substring(pe.startColumn-2,pe.endColumn);return{suggestions:[...$e(dt,le,ae,ye),...pn.map(Xt=>({label:Xt,kind:dt.languages.CompletionItemKind.Keyword,documentation:Xt,insertText:Xt,insertTextRules:dt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ye})),...he.map(Xt=>({label:Xt.label,kind:dt.languages.CompletionItemKind.Snippet,documentation:Xt.content,insertText:se.startsWith("#")?Xt.content.replace(/#/,""):Xt.content,insertTextRules:dt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ye}))]}}})};var Ye=dt=>{Xe.languages.forEach(Lt=>{dt.languages.registerDocumentFormattingEditProvider(Lt,{provideDocumentFormattingEdits(pn){return We(this,null,function*(){const he=Fe()(pn.getValue(),{indent_size:2,indent_char:" ",max_preserve_newlines:2,preserve_newlines:!0,keep_array_indentation:!0,break_chained_methods:!1,indent_scripts:"normal",brace_style:"collapse",space_before_conditional:!0,unescape_strings:!1,jslint_happy:!1,end_with_newline:!0,wrap_line_length:0,indent_inner_html:!1,comma_first:!1,e4x:!1,indent_empty_lines:!1});return[{range:pn.getFullModelRange(),text:he}]})}})}),vt(dt,"java",Te.keywords,Te.quickKey),vt(dt,"cpp",He.keywords,He.quickKey),vt(dt,"c",Pe.keywords,[]),vt(dt,"python",_e.keywords,_e.quickKey),vt(dt,"scala",ze.keywords,ze.quickKey)};const Ne="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var Be=Object.defineProperty,be=(dt,Lt,pn)=>Lt in dt?Be(dt,Lt,{enumerable:!0,configurable:!0,writable:!0,value:pn}):dt[Lt]=pn,Ie=(dt,Lt,pn)=>be(dt,typeof Lt!="symbol"?Lt+"":Lt,pn);const Ke=class Kc{constructor(Lt,pn,he){this.placeholder=Lt,this.editor=pn,this.monaco=he,pn.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return Kc.ID}getDomNode(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.style.width="max-content",this.domNode.textContent=this.placeholder,this.domNode.style.fontStyle="initial",this.domNode.style.color="#D7D7D7",this.domNode.style.pointerEvents="none",this.editor.applyFontInfo(this.domNode)),this.domNode}getPosition(){return{position:{lineNumber:1,column:1},preference:[this.monaco.editor.ContentWidgetPositionPreference.EXACT]}}dispose(){this.editor.removeContentWidget(this)}};Ie(Ke,"ID","editor.widget.placeholderHint");var fe=Ke,qe=ne(96236),st=ne(6767),wt=ne(25399),ft=ne(78267),ct=ne(33156),Je=ne(56102),ut=Object.defineProperty,Se=Object.defineProperties,Ve=Object.getOwnPropertyDescriptors,Ae=Object.getOwnPropertySymbols,tt=Object.prototype.hasOwnProperty,Dt=Object.prototype.propertyIsEnumerable,lt=(dt,Lt,pn)=>Lt in dt?ut(dt,Lt,{enumerable:!0,configurable:!0,writable:!0,value:pn}):dt[Lt]=pn,Qe=(dt,Lt)=>{for(var pn in Lt||(Lt={}))tt.call(Lt,pn)&&lt(dt,pn,Lt[pn]);if(Ae)for(var pn of Ae(Lt))Dt.call(Lt,pn)&&lt(dt,pn,Lt[pn]);return dt},xt=(dt,Lt)=>Se(dt,Ve(Lt)),Re=(dt,Lt)=>{var pn={};for(var he in dt)tt.call(dt,he)&&Lt.indexOf(he)<0&&(pn[he]=dt[he]);if(dt!=null&&Ae)for(var he of Ae(dt))Lt.indexOf(he)<0&&Dt.call(dt,he)&&(pn[he]=dt[he]);return pn},me=(dt,Lt,pn)=>new Promise((he,le)=>{var ae=se=>{try{ye(pn.next(se))}catch(ot){le(ot)}},pe=se=>{try{ye(pn.throw(se))}catch(ot){le(ot)}},ye=se=>se.done?he(se.value):Promise.resolve(se.value).then(ae,pe);ye((pn=pn.apply(dt,Lt)).next())});function pt(dt){return/^\d+$/.test(dt)?`${dt}px`:dt}function bt(){}let it=!1;const Le={"Python3.6":"python","Python2.7":"python",Dynamips:"cpp",Java:"java",Web:"php",Html:"html",Hive:"sql",Hadoop:"java",SDL:"cpp",PHP:"php",Matlab:"python",Git:"python",Python:"python","C/C++":"cpp","C++":"cpp",C:"cpp",Ruby:"ruby",Shell:"shell",JavaScript:"javascript",Perl6:"perl",Kotlin:"kotlin",Elixir:"elixir",Android:"java",JavaWeb:"java",Go:"go",Spark:"sql",MachineLearning:"python",Verilog:"xml","Verilog/VNC":"xml",Docker:"dockerfile","C#":"csharp",SQLite3:"sql",Oracle:"sql",Vhdl:"vhdl",R:"r",Swift:"swift",SQLServer:"mysql",MySQL:"mysql",Mongo:"sql",PostgreSql:"pgsql",Hbase:"powershell",Sqoop:"sql",Nasm:"cpp",Kafka:"java",Flink:"java",Sml:"javascript",OpenGL:"cpp",Perl5:"perl",Orange:"python",Scala:"scale",solidity:"sol"};function Ue(dt=[]){let Lt=dt;if(Array.isArray(dt)){for(let pn=0;pn<dt.length;pn++){let he=Le[dt[pn]];if(he)return he}return Lt[0]}return Le[Lt]||Lt}let mt=null;const Zt=()=>me(void 0,null,function*(){try{yield navigator.clipboard.writeText(" "),console.log("\u5185\u5BB9\u5DF2\u81EA\u52A8\u590D\u5236\u5230\u526A\u8D34\u677F:")}catch(dt){console.error("\u81EA\u52A8\u590D\u5236\u5931\u8D25:",dt)}});var Pt=dt=>{var Lt=dt,{width:pn="100%",height:he="100%",value:le,language:ae="javascript",style:pe={},options:ye={},overrideServices:se={},theme:ot="vs-dark",onEditBlur:Xt,isCopy:zt=!1,onSave:on,autoHeight:Kt=!1,forbidCopy:Yn=!1,forbidCopyTips:Fn,onChange:or=bt,editorDidMount:ra=bt,onFocus:ur=bt,onBreakPoint:rr=bt,breakPointValue:Xr=[],filename:Vr="educoder.txt",errorLine:xr,errorContent:Dn="",highlightLine:pa,openBreakPoint:Jn=!1,placeholder:Vn="",showMiniMap:ha=!0}=Lt,Ti=Re(Lt,["width","height","value","language","style","options","overrideServices","theme","onEditBlur","isCopy","onSave","autoHeight","forbidCopy","forbidCopyTips","onChange","editorDidMount","onFocus","onBreakPoint","breakPointValue","filename","errorLine","errorContent","highlightLine","openBreakPoint","placeholder","showMiniMap"]);const Ni=(0,E.useRef)(),Ir=(0,E.useRef)({}),Sn=(0,E.useRef)(),ir=(0,E.useRef)(),Fa=(0,E.useRef)([]),$a=(0,E.useRef)(!1),Jr=(0,E.useRef)(),na=(0,E.useRef)(),Qa=(0,E.useRef)(!1),[Kr,qa]=(0,E.useState)(!1);function aa(){let Qt;return Ni.current&&(Qt=new ve.Z(_n=>{for(let br of _n)(br.target.offsetHeight>0||br.target.offsetWidth>0)&&Ir.current.instance.layout()}),Qt.observe(Ni.current)),Qt}function Wn(){st.ZP.warning({content:decodeURIComponent(Fn||Ne),key:"monaco-editor-tip"})}const Rn=()=>{let Qt=Ir.current.instance;if(le!=null&&Qt&&Kr){const _n=Qt.getModel();_n&&le!==_n.getValue()&&(it=!0,_n.setValue(le),Qt.layout(),it=!1)}};(0,E.useEffect)(()=>{const Qt=ct.Z.subscribe("formatDocument",_n=>{var br;let Nr=Ir.current.instance;(br=Nr==null?void 0:Nr.getAction)==null||br.call(Nr,"editor.action.formatDocument").run()});return window.updateMonacoValue=_n=>{or(_n)},Qt},[]),(0,E.useEffect)(()=>{var Qt;let _n=Ir.current.instance;ir.current&&clearTimeout(ir.current),ir.current=setTimeout(()=>{Rn()},500),le&&(le!=null&&le.length)&&((Qt=_n==null?void 0:_n.updateOptions)==null||Qt.call(_n,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(le.split(/\r\n|\r|\n/g).length))+3,5)}))},[le,Kr,Ir.current]),(0,E.useEffect)(()=>{if(xr&&Ir.current&&Ir.current.instance){let _n=Ir.current.instance;_n.changeViewZones(function(br){var Nr=document.createElement("div");Nr.style.padding="10px 20px",Nr.style.width="calc(100% - 20px)",Nr.className="my-error-line-wrp",Nr.innerHTML=Dn,br.addZone({afterLineNumber:xr||11,heightInLines:3,domNode:Nr})});var Qt={domNode:null,getId:function(){return"my.overlay.widget"},getDomNode:function(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.innerHTML="",this.domNode.style.width="100%",this.domNode.style.padding="20px 100px",this.domNode.style.right="0px",this.domNode.style.top="50px",this.domNode.style.position="relative",this.domNode.style.color="#333"),this.domNode},getPosition:function(){return null}};_n.addOverlayWidget(Qt),_n.revealPositionInCenter({lineNumber:20,column:1})}},[xr,Ir.current,Kr]);const cn=(Qt="",_n)=>{if(!Qt||Qt.trim()==="")return!0;const Nr=Ir.current.instance.getModel().getLineTokens(_n);let qr=!1;for(let Xa=0;Xa<2;Xa++)Nr.getStandardTokenType(Xa)===1&&(qr=!0);return qr};(0,E.useEffect)(()=>{var Qt;const _n=(Qt=Ir.current)==null?void 0:Qt.instance;if(_n&&Kr&&Yn){const br=_n.onDidBlurEditorWidget(()=>{Qa.current=!1}),Nr=_n.onDidFocusEditorText(()=>{Qa.current=!0});return()=>{br.dispose(),Nr.dispose()}}},[Ir.current,Kr,Yn]),(0,E.useEffect)(()=>{var Qt;if((Qt=Ir.current)!=null&&Qt.instance&&Kr&&Jn){let _n=Ir.current.instance,br=_n.getModel();if(!br)return;(()=>{var rn;let Mt=[],Nt=[];const sr=br.getAllDecorations();for(let vn of sr)vn.options.className==="highlighted-line"&&(Mt.push((rn=vn==null?void 0:vn.range)==null?void 0:rn.startLineNumber),Nt.push(vn==null?void 0:vn.id));if(pa===Mt[0])return;br.deltaDecorations(Nt,[]);const Hn=br.getLineCount();pa&&pa<=Hn&&(_n.deltaDecorations([],[{range:new mt.Range(pa,1,pa,br.getLineMaxColumn(pa)),options:{isWholeLine:!0,className:"highlighted-line"}}]),_n.revealLineInCenter(pa))})();const qr=(rn=!1)=>{var Mt;let Nt=[],sr=[];const Hn=br.getAllDecorations();for(let vn of Hn)vn.options.linesDecorationsClassName==="breakpoints-select"&&(Nt.push((Mt=vn==null?void 0:vn.range)==null?void 0:Mt.startLineNumber),sr.push(vn==null?void 0:vn.id));if(rn)return{lines:Nt,ids:sr};rr(Nt)},Xa=rn=>me(void 0,null,function*(){let Mt={range:new mt.Range(rn,1,rn,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield br.deltaDecorations([],[Mt]),qr()}),si=rn=>me(void 0,null,function*(){let Mt=[];const Nt=_n.getLineDecorations(rn);for(let sr of Nt)sr.options.linesDecorationsClassName==="breakpoints-select"&&Mt.push(sr.id);yield br.deltaDecorations(Mt,[]),qr()}),so=rn=>{let Mt=_n.getLineDecorations(rn);for(let Nt of Mt)if(Nt.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,ft.isEqual)(Xr,qr(!0).lines)){br.deltaDecorations(qr(!0).ids,[]);const rn=Xr.map(Mt=>({range:new mt.Range(Mt,1,Mt,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));br.deltaDecorations([],rn)}const Mn=_n.onDidChangeModelContent(rn=>{let Mt=_n.getPosition();if(Mt){let Nt=Mt.lineNumber;clearTimeout(na.current),na.current=setTimeout(()=>{cn(br.getLineContent(Nt),Nt)?si(Nt):so(Nt)?(si(Nt),Xa(Nt)):qr()},100)}}),Rr=_n.onMouseDown(rn=>{var Mt,Nt,sr;if(rn.target.detail&&((sr=(Nt=(Mt=rn.target)==null?void 0:Mt.element)==null?void 0:Nt.className)!=null&&sr.includes("line-numbers"))){let Hn=rn.target.position.lineNumber;if(cn(br.getLineContent(Hn),Hn))return;so(Hn)?si(Hn):Xa(Hn)}}),jn=rn=>{let Mt={range:new mt.Range(rn,1,rn,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};Fa.current=_n.deltaDecorations(Fa.current,[Mt])},tl=()=>{Fa.current=_n.deltaDecorations(Fa.current,[])},Zo=_n.onMouseMove(rn=>{var Mt,Nt,sr;if(tl(),rn.target.detail&&((sr=(Nt=(Mt=rn.target)==null?void 0:Mt.element)==null?void 0:Nt.className)!=null&&sr.includes("line-numbers"))){let Hn=rn.target.position.lineNumber;if(cn(br.getLineContent(Hn),Hn))return;jn(Hn)}}),Ct=_n.onMouseLeave(()=>{tl()});return()=>{Mn.dispose(),Rr.dispose(),Zo.dispose(),Ct.dispose()}}},[Ir.current,Kr,Xr,pa,Jn,ae]),(0,E.useEffect)(()=>{var Qt;(Qt=Ir.current)!=null&&Qt.instance&&Jn&&Ir.current.instance.setPosition({lineNumber:0,column:0})},[pa]);function fn(){let Qt=Ir.current.instance;if(Qt){const _n=Qt.getSelection(),br=Ir.current.pastePos||{},Nr=new mt.Range(br.startLineNumber||_n.endLineNumber,br.startColumn||_n.endColumn,br.endLineNumber||_n.endLineNumber,br.endColumn||_n.endColumn);setTimeout(()=>{Qt.executeEdits("",[{range:Nr,text:""}])},300)}}function wn(Qt){(window.navigator.platform.match("Mac")?Qt.metaKey:Qt.ctrlKey)&&Qt.keyCode==83&&(Qt.preventDefault(),on())}const nn=()=>{if(Kt&&Ir.current.instance){const Qt=Ir.current.instance.getContentHeight();la(Qt<he?he:Qt)}else la(he)};function Kn(Qt){var _n=document.createEvent("MouseEvents");_n.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),Qt.dispatchEvent(_n)}const Jt=Qt=>{if(!Qa.current)return;const{keyCode:_n,ctrlKey:br,metaKey:Nr,target:qr,type:Xa}=Qt;return(Xa==="paste"||(_n===67||_n===86)&&(Nr||br))&&qr.nodeName==="TEXTAREA"&&(Wn(),Qt.preventDefault()),!1};function On(Qt,_n){var br=window.URL||window.webkitURL||window,Nr=new Blob([_n]),qr=document.createElementNS("http://www.w3.org/1999/xhtml","a");qr.href=br.createObjectURL(Nr),qr.download=Qt,Kn(qr)}(0,E.useEffect)(()=>{nn()},[nn]),(0,E.useEffect)(()=>{Ni.current&&!Kr&&Promise.all([ne.e(8909),ne.e(5977)]).then(ne.bind(ne,71448)).then(Qt=>{try{mt=Qt,Ir.current.instance=mt.editor.create(Ni.current,{value:le,language:Ue(ae),theme:ot,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0,minimap:{enabled:ha||!1}},se);const _n=Ir.current.instance;let qr=[...qe.BH._menuItems].find(Mn=>Mn[0]._debugName=="EditorContext")[1],Xa=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],si=(Mn,Rr)=>{var jn,tl;let Zo=Mn._first;do Rr.includes((tl=(jn=Zo.element)==null?void 0:jn.command)==null?void 0:tl.id)&&Mn._remove(Zo);while(Zo=Zo.next)};if(ra(_n,mt),setTimeout(()=>{nn(),Ir.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{On(Vr||"educoder.txt",_n.getValue())}})},500),Ir.current.subscription=_n.onDidChangeModelContent(Mn=>{$a.current?clearTimeout(Jr.current):(nn(),or(_n.getValue(),Mn)),Jr.current=setTimeout(()=>{$a.current=!1},500)}),window.Monaco||Ye(mt,Ue(ae)),Yn&&(si(qr,Xa),Ni.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",Jt),window.removeEventListener("paste",Jt),window.addEventListener("keydown",Jt),window.addEventListener("paste",Jt)),window.Monaco=mt,Xt&&_n.onDidBlurEditorWidget(()=>{Xt(_n.getValue())}),ur&&_n.onDidFocusEditorText(()=>{Yn&&Zt(),ur(_n.getValue())}),Yn){Zt();try{_n.onDidPaste(Mn=>{const Rr=_n.getSelection(),jn=Ir.current.pastePos||{},tl=new mt.Range(jn.startLineNumber||Rr.endLineNumber,jn.startColumn||Rr.endColumn,jn.endLineNumber||Rr.endLineNumber,jn.endColumn||Rr.endColumn);_n.executeEdits("",[{range:Mn.range,text:""}])})}catch(Mn){}}let so=aa();return Vn&&typeof Vn=="string"&&new fe(Vn,_n,mt),qa(!0),()=>{const Mn=Ir.current.instance;Mn.dispose();const Rr=Mn.getModel();Rr&&Rr.dispose(),Ir.current.subscription&&Ir.current.subscription.dispose(),so.unobserve(Ni.current)}}catch(_n){}})},[]),(0,E.useEffect)(()=>{if(Ir.current.instance&&Kr)return document.addEventListener("keydown",wn,!1),()=>{document.removeEventListener("keydown",wn)}},[on,Kr]),(0,E.useEffect)(()=>{let Qt=Ir.current.instance;if(Qt&&Kr){let _n=Ue(ae);mt.editor.setModelLanguage(Qt.getModel(),_n)}},[ae,Kr]),(0,E.useEffect)(()=>{Ir.current.instance&&Kr&&mt.editor.setTheme(ot)},[ot,Kr]),(0,E.useEffect)(()=>{let Qt=Ir.current.instance;Sn.current=ye,Qt&&Kr&&(Qt.updateOptions(Qe({},ye)),setTimeout(()=>{Qt.getModel().updateOptions(Qe({},ye))},200))},[JSON.stringify(ye),Kr]),(0,E.useEffect)(()=>{let Qt=Ir.current.instance;Qt&&Kr&&Qt.layout()},[pn,he,Kr]);const[hr,yr]=(0,E.useState)(pt(pn)),[Ar,la]=(0,E.useState)(pt(he)),Er=xt(Qe({},pe),{width:hr,height:Ar,position:"relative"});return E.createElement("div",{className:"my-monaco-editor",ref:Ni,style:Er,onFocus:()=>{Yn&&Zt()}},zt&&E.createElement(Je.CopyToClipboard,{text:le,onCopy:()=>st.ZP.success("\u590D\u5236\u6210\u529F")},E.createElement(wt.Z,{title:"\u590D\u5236\u4EE3\u7801"},E.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},E.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function en({width:dt="100%",height:Lt="100%",original:pn,modified:he,language:le,options:ae={}}){const pe=(0,E.useRef)(),[ye,se]=(0,E.useState)(null);function ot(Kt){let Yn;return pe.current&&(Yn=new ve.Z(Fn=>{for(let or of Fn)(or.target.offsetHeight>0||or.target.offsetWidth>0)&&Kt.layout()}),Yn.observe(pe.current)),Yn}(0,E.useEffect)(()=>(pe.current&&Promise.all([ne.e(8909),ne.e(9404)]).then(ne.bind(ne,2550)).then(Kt=>{mt=Kt;const Yn=mt.editor.createDiffEditor(pe.current,xt(Qe({enableSplitViewResizing:!1,scrollBeyondLastLine:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1,horizontal:"hidden",lineNumbers:"off",wordWrap:"off",ignoreTrimWhitespace:!1,"semanticHighlighting.enabled":!0,followsCaret:!0,ignoreCharChanges:!0,minimap:{enabled:!1},readOnly:!0},ae),{wordWrap:!0}));se(Yn);let Fn=ot(Yn);return()=>{Yn.dispose();const or=Yn.getModel();or&&or.dispose(),Fn.unobserve(pe.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,E.useEffect)(()=>{ye&&ye.setModel({original:mt.editor.createModel(pn,le),modified:mt.editor.createModel(he,le)})},[pn,he,le,ye]);const Xt=pt(dt),zt=pt(Lt),on={width:Xt,height:zt};return E.createElement("div",{className:"my-diff-editor",ref:pe,style:on})}},54077:function(It,kt,ne){"use strict";ne.d(kt,{Z:function(){return Xe}});var E={flex_box_center:"flex_box_center___AQ53o",flex_space_between:"flex_space_between___i2aIa",flex_box_vertical_center:"flex_box_vertical_center___sPEKB",flex_box_center_end:"flex_box_center_end___GhSSH",flex_box_column:"flex_box_column___R9_Hb",list:"list___jb2Ay",wrap:"wrap___VsQDr",lockWrap:"lockWrap___g1k1T",li:"li___IxCLC",cover:"cover___Mu8wr",img:"img___IpFLA",movebq:"movebq___mF7wt",bq:"bq___Bil0T",sign:"sign___DXJ4d",name:"name___l7FoJ",e:"e___pXQUG",unit:"unit___wCIFR",tags:"tags___w_Mil",tag1:"tag1___dxm7r",tag2:"tag2___llZkf",wrapisCurrent:"wrapisCurrent___qIfQT",tagsDom:"tagsDom___COQg7",hiddenbq:"hiddenbq___TqlUF"},ve=ne(29787),Pe=ne(25399),Te=ne(89787),He=ne(92310),_e=ne.n(He),ze=ne(76406),nt=ne(90736),Fe=ne(59301),Xe=({className:$e,dataSource:vt=[],col:Ye=4,right:Ne,bottom:Be=23,precision:be=0,wrapWidth:Ie=1200,trackEventItems:Ke,loading:at,onRemove:fe=()=>{},isCurrent:qe=!0,showProgress:st=!1,showAlias:wt=!1,category:ft="notDisplay",hiddenClick:ct=()=>{}})=>{const Je=Math.floor((Ie-(Ye-1)*Ne)/Ye),ut=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:"/images/tjzx.png",swimg:"/images/sw_tjzx.png",ptclass:"sprite-70",swclass:"sprite-68"},{name:"101\u8BA1\u5212",ptimg:"/images/jh.png",swimg:"/images/sw_jh.png",ptclass:"sprite-60",swclass:"sprite-65"},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:"/images/gjyl.png",swimg:"/images/sw_gjyl.png",ptclass:"sprite-58",swclass:"sprite-63"},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:"/images/sjyl.png",swimg:"/images/sw_sjyl.png",ptclass:"sprite-62",swclass:"sprite-67"},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:"/images/jpkc.png",swimg:"/images/sw_jpkc.png",ptclass:"sprite-61",swclass:"sprite-66"},{name:"\u519B\u961F\u4E00\u6D41",ptimg:"/images/jdyl.png",swimg:"/images/sw_jdyl.png",ptclass:"sprite-59",swclass:"sprite-64"},{name:"\u65B0\u578B\u6559\u6750",ptimg:"/images/xxjc.png",swimg:"/images/sw_xxjc.png",ptclass:"sprite-71",swclass:"sprite-69"}];return Fe.createElement(ve.Z,{spinning:at},Fe.createElement("div",{className:_e()(E.list,$e)},!!(vt!=null&&vt.length)&&(vt==null?void 0:vt.map((Se,Ve)=>{var Ae,tt,Dt,lt,Qe,xt,Re;const{name:me,id:pt,identifier:bt,featured:it,school_name:Le,image_url:Ue,excellent:mt,is_plan:Zt}=Se;return Fe.createElement("div",{key:pt,className:qe&&st?E.wrapisCurrent:E.wrap,style:{width:Je,marginRight:(1+Ve)%Ye===0?0:Ne+be,marginBottom:Be}},Fe.createElement("a",{className:E.li,onClick:Pt=>{Pt.preventDefault(),Pt.stopPropagation(),Ke&&(0,ze.L9)([Ke]),(0,ze.xg)(`/paths/${bt}`)}},Fe.createElement("div",{className:E.img},Fe.createElement("img",{className:E.cover,src:`${Ue}`}),(Ae=Se==null?void 0:Se.subject_tags)==null?void 0:Ae.map((Pt,en)=>{var dt,Lt;if(en===0){const he=(dt=ut.find(le=>le.name==Pt))==null?void 0:dt.swclass;return Fe.createElement("span",{className:`sprite ${he} ${E.sign}`,style:{left:"-4px"}})}const pn=(Lt=ut.find(he=>he.name==Pt))==null?void 0:Lt.ptclass;return Fe.createElement("span",{className:`sprite ${pn} ${E.sign}`,style:{left:`${48+52*(en-1)+2*en}px`}})}),Fe.createElement("div",{className:E.tagsDom},Fe.createElement("div",{className:"flex flex-wrap item-center",style:{gap:"0 6px"}},(Se==null?void 0:Se.excellent)&&Fe.createElement("div",{className:E.bq},"\u5F00\u653E\u8BFE\u7A0B"),((tt=Se==null?void 0:Se.custom_tags)==null?void 0:tt.length)>0&&(Se==null?void 0:Se.custom_tags.map((Pt,en)=>{var dt;return Fe.createElement(Pe.Z,{title:Pt==null?void 0:Pt.tag_name,key:en},Fe.createElement("div",{className:"font12 rounded-2px c-white flex item-center",style:{height:22,padding:"0 6px",maxWidth:((dt=Se==null?void 0:Se.custom_tags)==null?void 0:dt.length)>2?"60px":"71px",background:"rgba(48, 97, 208, .6)",border:"1px solid #8FAFF8"}},Fe.createElement("span",{className:"multi-llipsis1e"},Pt==null?void 0:Pt.tag_name)))})))),ft=="hide"&&(Se==null?void 0:Se.studying)&&qe&&Fe.createElement("div",{className:`${E.movebq} user-path-items`,onClick:Pt=>{Pt.stopPropagation(),fe(Se)}},Fe.createElement("i",{className:"iconfont icon-yichu1 font12"}),Fe.createElement("span",null,"\u79FB\u9664")),!["notDisplay","collect","payed"].includes(ft)&&qe&&Fe.createElement("div",{className:`${E.hiddenbq} user-path-items`,onClick:Pt=>{Pt.stopPropagation(),ct(Se)}},Fe.createElement("i",{className:`iconfont ${ft=="hide"?"icon-chakan2":"icon-yincangtiaojianshezhi"} font12`}),Fe.createElement("span",null,ft=="hide"?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF"))),Fe.createElement("div",{className:E.name},Fe.createElement(Pe.Z,{title:wt&&(Se!=null&&Se.excellent_alias_name)?Fe.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${me}`,Fe.createElement("br",null),Fe.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${Se==null?void 0:Se.excellent_alias_name}`)):me},Fe.createElement("span",{className:E.e},wt&&(Se==null?void 0:Se.excellent_alias_name)||me))),qe&&st&&((Dt=Se==null?void 0:Se.progress)==null?void 0:Dt.all_score)!=0&&Fe.createElement("div",{style:{padding:"0px 10px",color:"#333",marginTop:10}},Fe.createElement(Te.Z,{strokeColor:"#44d7b6",gap:"small",percent:(((lt=Se==null?void 0:Se.progress)==null?void 0:lt.my_score)/((Qe=Se==null?void 0:Se.progress)==null?void 0:Qe.all_score)*100).toFixed(),showInfo:!1}),"\u5DF2\u5B8C\u6210 ",(xt=Se==null?void 0:Se.progress)==null?void 0:xt.my_score,"/",(Re=Se==null?void 0:Se.progress)==null?void 0:Re.all_score),(!qe||!st)&&Fe.createElement(Pe.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${Le}`},Fe.createElement("div",{className:E.unit},Fe.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),Le)),(!qe||!st)&&Fe.createElement("div",{className:E.tags},Fe.createElement("div",null,Fe.createElement(Pe.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},Fe.createElement("span",null,Fe.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),Fe.createElement("span",null,Se.stages_count))),Fe.createElement(Pe.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},Fe.createElement("span",null,Fe.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),Fe.createElement("span",null,Se.members_count)))))))})),!vt.length&&Fe.createElement(nt.Z,null)))}},70467:function(It,kt,ne){"use strict";ne.d(kt,{jL:function(){return Te},w9:function(){return me},QD:function(){return Xr},cQ:function(){return Ve.Z},op:function(){return Yn},O5:function(){return aa},_b:function(){return Vn},t7:function(){return be},Gi:function(){return mt},YG:function(){return Le},qp:function(){return We},vr:function(){return Dn},qE:function(){return ra},Je:function(){return at},wb:function(){return Se},cq:function(){return pn},tp:function(){return vt}});var E=ne(59301),ve={flex_box_center:"flex_box_center___NeSU8",flex_space_between:"flex_space_between___ImTGl",flex_box_vertical_center:"flex_box_vertical_center___BtRd9",flex_box_center_end:"flex_box_center_end___qcLe3",flex_box_column:"flex_box_column___Ze_3q",banner:"banner___PoUBO",content:"content___XoDjy",btns:"btns___Pb35j"},Te=({dataSource:Wn=[],img:Rn,imgWidth:cn=346,title:fn,sunTitle:wn,bannerExtraContent:nn})=>E.createElement("div",{className:ve.banner},E.createElement("div",{className:ve.content},E.createElement("aside",null,E.createElement("p",null,E.createElement("b",null,fn),E.createElement("span",null,wn)),Wn.length>0&&E.createElement("div",{className:ve.btns},Wn.map((Kn,Jt)=>E.createElement("div",{key:Jt,onClick:Kn.click},Kn.name,Kn.sign?E.createElement("span",{className:"sprite sprite-33"}):null))),nn),Rn&&E.createElement("img",{style:{marginTop:33,marginRight:38},src:Rn,width:cn}))),He={flex_box_center:"flex_box_center___hG6RI",flex_space_between:"flex_space_between___ss3Fh",flex_box_vertical_center:"flex_box_vertical_center___K80p9",flex_box_center_end:"flex_box_center_end___qmXX3",flex_box_column:"flex_box_column___GFV8F",row:"row___aXJjm",title:"title___HUKL0",tagsWrap:"tagsWrap___XB2W3",action:"action___VdHb1",bar:"bar___t1kKC",tag:"tag___V7Eft",name:"name___Hk1Ip",num:"num___xQpcH",active:"active___XryTX",tagsBorderWrap:"tagsBorderWrap___OMxjs"},_e=ne(92310),ze=ne.n(_e),nt=ne(78267),We=({dataSource:Wn=[],value:Rn,onChange:cn,onTitleChange:fn,className:wn,title:nn,titleWidth:Kn=41,style:Jt={},fontColor:On="#6A7283",showCount:hr})=>{const[yr,Ar]=(0,E.useState)(1),[la,Er]=(0,E.useState)(!1),Qt=(0,E.useRef)(null),_n=(0,E.useRef)(null);return(0,E.useEffect)(()=>{var br;Wn.length!==0&&(((br=Qt==null?void 0:Qt.current)==null?void 0:br.clientHeight)>97?Ar(1):Ar(0)),Wn.length===0&&Ar(0),Er(!1)},[Wn]),E.createElement("div",{className:ze()(He.row,wn,"fadeIn","animated"),style:Jt},E.createElement("div",{onClick:(0,nt.throttle)(()=>fn==null?void 0:fn(),2e3),style:{width:Kn,marginTop:la?12:4},className:`${He.title} ${fn?"current":""}`},nn),E.createElement("div",{className:la?`${He.tagsWrap} ${He.tagsBorderWrap}`:He.tagsWrap},E.createElement("div",{className:He.bar,ref:_n,style:yr>0?{height:yr===1?97:"auto",overflow:yr===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},E.createElement("div",{className:He.tag,ref:Qt},Wn==null?void 0:Wn.map(br=>E.createElement("span",{onClick:()=>cn(br.id),key:br.id,style:{color:On},className:Rn===br.id?He.active:""},E.createElement("span",{title:br.name,className:He.name},br.name),!!hr&&E.createElement("span",{className:He.num},br.count))))),!!yr&&E.createElement(E.Fragment,null,yr===1?E.createElement("div",{onClick:()=>{var br;Ar(2),((br=Qt==null?void 0:Qt.current)==null?void 0:br.clientHeight)>245?Er(!0):Er(!1)},className:He.action},"\u5C55\u5F00",E.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):E.createElement("div",{onClick:()=>{_n.current.scrollTop=0,Ar(1),Er(!1)},className:He.action},"\u6536\u8D77",E.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},Xe={flex_box_center:"flex_box_center___aK2n3",flex_space_between:"flex_space_between___HX0Oh",flex_box_vertical_center:"flex_box_vertical_center___LJOJr",flex_box_center_end:"flex_box_center_end___SCakF",flex_box_column:"flex_box_column___AYv4m",tabs:"tabs___GTqPV",active:"active___F26E8"},vt=({dataSource:Wn=[],value:Rn,onChange:cn,className:fn,style:wn={}})=>E.createElement("div",{style:wn,className:ze()(Xe.tabs,fn)},Wn.map(nn=>E.createElement("span",{onClick:()=>cn(nn.id),className:Rn===nn.id?Xe.active:"",key:nn.id},nn.name))),Ye={flex_box_center:"flex_box_center___yX6Oa",flex_space_between:"flex_space_between___t7oqF",flex_box_vertical_center:"flex_box_vertical_center___dEIHy",flex_box_center_end:"flex_box_center_end___taQDF",flex_box_column:"flex_box_column___xY_Lr",input:"input___PW2zI",dropdown:"dropdown___vSy8B",menu:"menu___NiyBu",text:"text___Grueu",b1:"b1___ZKryM",b2:"b2___aKyGa"},Ne=ne(37568),be=({dataSource:Wn=[],value:Rn="",onChange:cn,onInputChange:fn=()=>{},className:wn,style:nn={},placeholder:Kn,allowClear:Jt=!1})=>{var On;const[hr,yr]=(0,E.useState)(""),[Ar,la]=(0,E.useState)("");(0,E.useEffect)(()=>{var _n;let br=Rn;(_n=JSON.stringify(Rn))!=null&&_n.includes("{")&&(yr(Rn.id),br=Rn.value||"");try{la(decodeURIComponent(br||""))}catch(Nr){la(decodeURIComponent(br||""))}},[Rn]);const Er=()=>{cn(encodeURIComponent(Ar),hr||null)},Qt=_n=>{_n!==hr&&(yr(_n),cn(encodeURIComponent(Ar),_n))};return E.createElement("div",{className:ze()(Ye.input,wn),style:nn},!!Wn.length&&E.createElement("div",{className:Ye.dropdown},E.createElement("div",{className:Ye.text},(On=Wn.find(_n=>_n.id===hr))==null?void 0:On.name,E.createElement("i",{className:"iconfont icon-zhankai4"}),E.createElement("b",{className:Ye.b1}),E.createElement("b",{className:Ye.b2})),E.createElement("div",{className:Ye.menu},Wn.map((_n,br)=>E.createElement("div",{key:br,onClick:()=>Qt(_n.id)},_n.name)))),E.createElement(Ne.default,{onPressEnter:Er,value:Ar,onChange:_n=>{la(_n.target.value),fn(encodeURIComponent(_n.target.value),hr||null)},placeholder:Kn,variant:"borderless",allowClear:Jt,onClear:()=>cn("",hr||null)}),E.createElement("i",{onClick:Er,className:"iconfont icon-sousuo9 font14 current"}))},Ie={flex_box_center:"flex_box_center___tol8o",flex_space_between:"flex_space_between___Z235C",flex_box_vertical_center:"flex_box_vertical_center___Wq1sZ",flex_box_center_end:"flex_box_center_end___LLxom",flex_box_column:"flex_box_column___DbMSN",quickPager:"quickPager___GM30J",disabled:"disabled___Ozc8I"},at=({value:Wn,onChange:Rn,className:cn,total:fn,pageSize:wn,style:nn={}})=>{const Kn=Wn<2,Jt=Wn>=Math.ceil(fn/wn);return fn<=wn?E.createElement(E.Fragment,null):E.createElement("div",{className:ze()(Ie.quickPager,cn),style:nn},E.createElement("div",{onClick:()=>{Kn||Rn(Wn-1,"prev")},className:Kn?Ie.disabled:""},"\u4E0A\u4E00\u9875"),E.createElement("div",{onClick:()=>{Jt||Rn(Wn+1,"next")},className:Jt?Ie.disabled:""},"\u4E0B\u4E00\u9875"))},fe={flex_box_center:"flex_box_center___FO7TP",flex_space_between:"flex_space_between___LotYx",flex_box_vertical_center:"flex_box_vertical_center___bWdaw",flex_box_center_end:"flex_box_center_end___mVJ1o",flex_box_column:"flex_box_column___M83Mm",list:"list___oOsiS",wrap:"wrap___G6T7F",lockWrap:"lockWrap___Rl79E",li:"li___oZZ7l",cover:"cover___b2bYW",img:"img___IQX7w",sign:"sign___HkT6C",name:"name___SsJx8",e:"e___TMqq0",tags:"tags___bcjyo",rate:"rate___YACg7"},qe=ne(29787),st=ne(25399),wt=ne(63139),ft=ne(14185),ct=ne(76406),Je=ne(90736),Se=({className:Wn,dataSource:Rn=[],col:cn=4,right:fn,bottom:wn=23,precision:nn=0,wrapWidth:Kn=1200,trackEventItems:Jt,loading:On})=>{const hr=Math.floor((Kn-(cn-1)*fn)/cn);return E.createElement(qe.Z,{spinning:On},E.createElement("div",{className:ze()(fe.list,Wn)},!!Rn.length&&Rn.map((yr,Ar)=>{const{name:la,id:Er,identifier:Qt,power:_n,cover_image_id:br,pic:Nr}=yr;return E.createElement("div",{className:fe.wrap,key:Er,style:{width:hr,marginRight:(1+Ar)%cn===0?0:fn+nn,marginBottom:wn}},E.createElement("a",{target:"_blank",href:`/shixuns/${Qt}/challenges`,className:fe.li,onClick:qr=>{qr.preventDefault(),Jt&&(0,ct.L9)([Jt]),_n&&(0,ct.xg)(`/shixuns/${Qt}/challenges`)}},E.createElement("div",{className:fe.img},E.createElement("img",{className:fe.cover,src:`${Nr}`}),yr.is_jupyter&&E.createElement("span",{className:`sprite sprite-43 ${fe.sign}`}),yr.is_jupyter_lab&&E.createElement("span",{className:`sprite sprite-42 ${fe.sign}`}),yr.is_unity_3d&&E.createElement("span",{className:`sprite sprite-44 ${fe.sign}`})),E.createElement("div",{className:fe.name},E.createElement(st.Z,{title:la||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},E.createElement("span",{className:fe.e},la||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),E.createElement("div",{className:fe.tags},E.createElement(st.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},E.createElement("span",null,E.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),E.createElement("span",null,yr.challenges_count))),!!yr.myshixuns_count&&E.createElement(st.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},E.createElement("span",null,E.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),E.createElement("span",null,yr.myshixuns_count))),E.createElement(st.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},E.createElement("span",null,E.createElement("span",null,yr.level))),E.createElement("div",{className:fe.rate},E.createElement(wt.Z,{allowHalf:!0,disabled:!0,defaultValue:yr.score_info}),E.createElement("span",null,"\xA0",yr.score_info?`${yr.score_info}\u5206`:"5\u5206")))),!_n&&E.createElement("div",{className:fe.lockWrap},E.createElement("img",{src:`${ft.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),E.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!Rn.length&&E.createElement(Je.Z,null)))},Ve=ne(54077),Ae={flex_box_center:"flex_box_center___eMcr7",flex_space_between:"flex_space_between___HcNca",flex_box_vertical_center:"flex_box_vertical_center___ZnvVN",flex_box_center_end:"flex_box_center_end___fdgDf",flex_box_column:"flex_box_column___SEKvd",list:"list___L1hmU",hidden:"hidden___NniIi",wrap:"wrap___pKgcW",btnsTop:"btnsTop___Lrm6T",lockWrap:"lockWrap___SMhkK",top:"top___udHSB",sign:"sign___uwRpq",name:"name___Fpf90",img:"img___AMLhL",text:"text___KiTb7",btns:"btns___i6IuZ",bottom:"bottom____k2sh"},tt=ne(62957),Dt=ne(96599),lt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAkIB0OMISFsFQqSAhOohFR+JKmEQPILClJZfpEfIUAChFQSHIJxnGDiDYwsb8KRLUuWZcmSxqN9pJF6nV7eSZ373u1509Mzvd2eGVt6VV2z9Ht3+9459+yX8Bq4mDmWK2GLqla3MvFWZt4KpjVMSBNzGoQ0M6WJkJbpMiNDxBkwMkyUIUYGxCeJaB8x7fMcZ18yiv1EVHy1Lw+9GicwO8tXlSrlbSB6O4HfANAmZlY250JEHsBHGLQTzA9H3chDfX2012Yfy9HWqwJgZh7NF6vvY/a2gWkbgyeWY3Hq+yDQcRA/RKQeSsSce4jo9EqMo50+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p1O6rXwnOy1pOi9yZj7P93Mp2uApfNMvvIRAn/nIsjdQDH3rIDLoI+lE+6/dtuiFYBDlHz3RXbdHSTClknRB7qlXDMKawCbPbnK9F8XBa9OQRYrFb+nmz23vmerABvpulwt339RhWoPZFGFIk7k9k6l5cV6sw6w0ZOrqHzvojGkRZCJdjhwP9iJntush54ALJ2KwJUrVL4M4A9frbbrZovX7fdiWwbwN8m4+7l2LVSt9t0zgM0AxEHhVflbF/flBbvjtHLot9pxHLQK6jxdupOH2n1GuxpR+S6Yb2332dfk/USPOnA/2qrLr5s16DkFm8EJm84Xq5/wPP7LC5eaaVop+pNEzPlmwJ67wa6lZ5cN4BDQw9l8+StEdNeFsjcLmMz89VQi8qdEdKYlZCzdtOwAm3EHIblfZeabLc1lVTYjccsK/NlEIvrESgxwxQAOCWHv9jz+Aph/cSUWoGd9Ej2mFH3RlkWq03GuOMBm4JLwRh4+z+DbOp3ManhOsvxY4UvpeOSR1TGe1TCK0BiC/OS7APoQwKHqHKtsoPOGQzMA/7sCvp5MRp9aTSNdNRRcvyhSTqJQqN7pgT8O4F3MvArC3uZGKdVsAPxIgb4djzv3EtHsagLWjGXVAhxeLCnxlC9W38fsbQPTNgZPrMRiSgU5ED9EpB5KxJx7iKjFkxlXYrR+n68KgOuXJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",Qe=ne(59301),xt=(Wn,Rn,cn)=>new Promise((fn,wn)=>{var nn=On=>{try{Jt(cn.next(On))}catch(hr){wn(hr)}},Kn=On=>{try{Jt(cn.throw(On))}catch(hr){wn(hr)}},Jt=On=>On.done?fn(On.value):Promise.resolve(On.value).then(nn,Kn);Jt((cn=cn.apply(Wn,Rn)).next())}),me=({className:Wn,dataSource:Rn=[],col:cn=4,right:fn,bottom:wn=23,precision:nn=0,wrapWidth:Kn=1200,trackEventItems:Jt,loading:On,category:hr,hiddenClick:yr,handleVery:Ar=()=>!0,isCurrent:la})=>{const[Er,Qt]=tt.default.useModal(),_n=Math.floor((Kn-(cn-1)*fn)/cn),br=Nr=>xt(void 0,null,function*(){Er.confirm({title:"\u7F6E\u9876",width:500,content:Qe.createElement("div",null,"\u60A8\u786E\u5B9A\u8981\u5C06",Qe.createElement("span",{className:"c-blue"},"\u201C",Nr.name,"\u201D"),"\u8BFE\u5802\u7F6E\u9876\u5417\uFF1F"),okText:"\u786E\u8BA4\u7F6E\u9876",centered:!0,cancelText:"\u53D6\u6D88"})});return Qe.createElement(qe.Z,{spinning:On},Qt,Qe.createElement("div",{className:ze()(Ae.list,Wn)},!!Rn.length&&Rn.map((Nr,qr)=>{const{subject_identifier:Xa,id:si,identifier:so,power:Mn}=Nr,Rr=Nr.is_public!=0&&Nr.is_public;return Qe.createElement("div",{className:Ae.wrap,key:si,style:{width:_n,marginRight:(1+qr)%cn===0?0:fn+nn,marginBottom:wn}},Nr.homepage_show&&Qe.createElement("div",{className:Ae.btnsTop},Qe.createElement(Dt.default,{color:"red"},"\u7F6E\u9876")),Qe.createElement("a",{className:Ae.li,onClick:jn=>{jn.preventDefault(),Ar(Nr==null?void 0:Nr.first_category_url)&&(Jt&&(0,ct.L9)([Jt]),(0,ct.xg)(Nr.first_category_url))}},Qe.createElement("div",{className:Ae.top},Qe.createElement(st.Z,{title:Nr.name},Qe.createElement("div",{className:Ae.name},Nr.name)),Qe.createElement("img",{className:Ae.img,src:ft.Z.IMG_SERVER+"/images/"+Nr.avatar_url}),Qe.createElement("div",{className:Ae.text,title:Nr.creator},Nr.creator),Xa&&Qe.createElement("div",{className:Ae.btns},Qe.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),Qe.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),Rr&&Qe.createElement("div",{className:Ae.sign},"\u516C\u5F00"),la&&Qe.createElement("div",{className:Ae.hidden,onClick:jn=>{jn.stopPropagation(),yr(Nr)}},Qe.createElement("i",{className:`iconfont ${hr=="hide"?"icon-chakan2":"icon-yincangtiaojianshezhi"} font12`}),hr=="hide"?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF")),Qe.createElement("div",{className:Ae.bottom},Nr.visits>0&&Qe.createElement(st.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},Qe.createElement("span",null,Qe.createElement("i",{className:"iconfont icon-liulanyan"}),Qe.createElement("span",null,Nr.visits))),Nr.course_members_count>0&&Qe.createElement(st.Z,{title:"\u6210\u5458",placement:"bottom"},Qe.createElement("span",null,Qe.createElement("i",{className:"iconfont icon-chengyuan"}),Nr.course_members_count)),Nr.tasks_count>0&&Qe.createElement(st.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},Qe.createElement("span",null,Qe.createElement("i",{className:"iconfont icon-zuoye"}),Nr.tasks_count)),Nr.is_end?Qe.createElement("div",{style:{color:"#6B758B"}}):Qe.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!Nr.is_accessible&&Qe.createElement("div",{className:Ae.lockWrap},Qe.createElement("img",{src:`${ft.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),Qe.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!Rn.length&&Qe.createElement(Je.Z,null)))},pt={flex_box_center:"flex_box_center___d27mZ",flex_space_between:"flex_space_between___qfRU9",flex_box_vertical_center:"flex_box_vertical_center___fCRld",flex_box_center_end:"flex_box_center_end___ORMV8",flex_box_column:"flex_box_column___PNKtZ",tabs:"tabs___alpa7",tabsWrap:"tabsWrap___aCQjw",tab:"tab___MKLr4",active:"active___nl_4v"},bt=ne(44283),Le=({dataSource:Wn=[],value:Rn,onChange:cn,className:fn,style:wn={},tabBarExtraContent:nn})=>E.createElement("div",{className:ze()(pt.tabs,fn),style:wn},E.createElement("div",{className:pt.tabsWrap},Wn.map((Kn,Jt)=>!(Kn!=null&&Kn.hide)&&E.createElement("aside",{className:pt.tab,onClick:()=>{cn(Kn.id),Kn.link&&bt.history.push(Kn.link)},key:Jt},E.createElement("div",{className:Rn===Kn.id?pt.active:""},Kn.name),(Kn==null?void 0:Kn.resetCount)==null&&(Kn==null?void 0:Kn.total)!==void 0&&E.createElement("span",null,"\uFF08",Kn==null?void 0:Kn.total,"\uFF09"),(Kn==null?void 0:Kn.resetCount)!==void 0&&(Kn==null?void 0:Kn.total)!==void 0&&E.createElement(st.Z,{title:(Kn==null?void 0:Kn.tip)!=null?Kn==null?void 0:Kn.tip:""},E.createElement("span",{style:{color:"#9096A3"}},"\uFF08",E.createElement("span",{style:{color:"#000"}},Kn==null?void 0:Kn.resetCount),"/",E.createElement("span",null,Kn==null?void 0:Kn.total),"\uFF09"))))),E.createElement("div",{className:pt.tabBar},nn)),mt=({className:Wn,style:Rn={},children:cn})=>E.createElement("div",{className:ze()(Wn),style:Rn},cn),Zt={flex_box_center:"flex_box_center___e6HxQ",flex_space_between:"flex_space_between___RnXYe",flex_box_vertical_center:"flex_box_vertical_center___lVxPk",flex_box_center_end:"flex_box_center_end___bu8yv",flex_box_column:"flex_box_column___JczGj",orderWrap:"orderWrap___ZfyGX",orderIconWrap:"orderIconWrap___XTB_O",orderAsc:"orderAsc___KWHmA",orderDesc:"orderDesc___rHdbB",active:"active___a7eSP",cursorPointer:"cursorPointer___gs9kL",orderTextWrap:"orderTextWrap___teAKn"},Pt=ne(75727),en=ne(93041);const dt=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var pn=({sortValue:Wn,dropValue:Rn,className:cn,onSort:fn,onDrop:wn,dataSource:nn=dt})=>{var Kn;return E.createElement("div",{className:ze()(Zt.orderWrap,cn)},E.createElement(Pt.Z,{dropdownRender:()=>E.createElement(en.default,null,nn.map((Jt,On)=>E.createElement(en.default.Item,{key:On,onClick:()=>wn(Jt.id)},Jt.name)))},E.createElement("span",{className:Zt.orderTextWrap},(Kn=nn.find(Jt=>Rn===Jt.id))==null?void 0:Kn.name)),E.createElement("span",{className:Zt.orderIconWrap},E.createElement("span",{className:Zt.orderAsc},E.createElement("i",{className:Wn==="asc"?`iconfont icon-sanjiaoxing-up font12 ${Zt.cursorPointer} ${Zt.active}`:`iconfont icon-sanjiaoxing-up font12 ${Zt.cursorPointer}`,onClick:()=>fn(Wn==="asc"?"desc":"asc")})),E.createElement("span",{className:Zt.orderDesc},E.createElement("i",{className:Wn==="desc"?`iconfont icon-sanjiaoxing-down font12 ${Zt.cursorPointer} ${Zt.active}`:`iconfont icon-sanjiaoxing-down font12 ${Zt.cursorPointer}`,onClick:()=>fn(Wn==="asc"?"desc":"asc")}))))},he={flex_box_center:"flex_box_center___LCi0B",flex_space_between:"flex_space_between___hzONe",flex_box_vertical_center:"flex_box_vertical_center___ZyQRE",flex_box_center_end:"flex_box_center_end___XKM74",flex_box_column:"flex_box_column___p8LCU",btn:"btn___In02G","mediacy-round":"mediacy-round___uveEv","mediacy-default":"mediacy-default___dDxsd",default:"default___K791v"},le=ne(7939),ae=Object.defineProperty,pe=Object.getOwnPropertySymbols,ye=Object.prototype.hasOwnProperty,se=Object.prototype.propertyIsEnumerable,ot=(Wn,Rn,cn)=>Rn in Wn?ae(Wn,Rn,{enumerable:!0,configurable:!0,writable:!0,value:cn}):Wn[Rn]=cn,Xt=(Wn,Rn)=>{for(var cn in Rn||(Rn={}))ye.call(Rn,cn)&&ot(Wn,cn,Rn[cn]);if(pe)for(var cn of pe(Rn))se.call(Rn,cn)&&ot(Wn,cn,Rn[cn]);return Wn},zt=(Wn,Rn)=>{var cn={};for(var fn in Wn)ye.call(Wn,fn)&&Rn.indexOf(fn)<0&&(cn[fn]=Wn[fn]);if(Wn!=null&&pe)for(var fn of pe(Wn))Rn.indexOf(fn)<0&&se.call(Wn,fn)&&(cn[fn]=Wn[fn]);return cn},on=(Wn,Rn,cn)=>new Promise((fn,wn)=>{var nn=On=>{try{Jt(cn.next(On))}catch(hr){wn(hr)}},Kn=On=>{try{Jt(cn.throw(On))}catch(hr){wn(hr)}},Jt=On=>On.done?fn(On.value):Promise.resolve(On.value).then(nn,Kn);Jt((cn=cn.apply(Wn,Rn)).next())}),Yn=Wn=>{var Rn=Wn,{className:cn,style:fn,children:wn,loading:nn=!1,openLoading:Kn,onClick:Jt=()=>{},size:On="middle",shape:hr="round"}=Rn,yr=zt(Rn,["className","style","children","loading","openLoading","onClick","size","shape"]);const[Ar,la]=(0,E.useState)(!1);return E.createElement(le.ZP,Xt({onClick:(0,nt.throttle)(Er=>on(void 0,null,function*(){Kn&&la(!0);try{yield Jt(Er)}catch(Qt){console.log("error",Qt)}Kn&&la(!1)}),2e3,{leading:!0,trailing:!1}),className:ze()(he.btn,he[`${On}-${hr}`],cn),style:fn,size:On,shape:hr,loading:Ar||nn},yr),wn)},Fn={flex_box_center:"flex_box_center___TB7bQ",flex_space_between:"flex_space_between___oBlTb",flex_box_vertical_center:"flex_box_vertical_center___b5XbB",flex_box_center_end:"flex_box_center_end___CNhe7",flex_box_column:"flex_box_column___yHXKW",head:"head___ghH72",node:"node___mjPEy"},ra=({className:Wn,style:Rn,children:cn=null,onClick:fn,title:wn})=>E.createElement("div",{className:ze()(Fn.head,Wn),style:Rn},E.createElement("span",{className:"primary-hover",onClick:fn},E.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),E.createElement("b",{title:wn},wn),E.createElement("div",{className:Fn.node},cn)),ur={flex_box_center:"flex_box_center___AlHuF",flex_space_between:"flex_space_between___vN2LW",flex_box_vertical_center:"flex_box_vertical_center___Ac7D2",flex_box_center_end:"flex_box_center_end___y38I7",flex_box_column:"flex_box_column___iQE6P",btns:"btns___sNgTb",confirm:"confirm___Ozirl",cancel:"cancel___aiq1I"},Xr=({confirmShow:Wn=!0,confirmTitle:Rn,confirmClick:cn,cancelShow:fn=!0,cancelTitle:wn,cancelClick:nn,className:Kn,style:Jt,confirmLoading:On=!1})=>E.createElement("div",{className:ze()(ur.btns,Kn),style:Jt},Wn&&E.createElement(le.ZP,{loading:On,onClick:cn,type:"primary",className:ur.confirm},Rn),fn&&E.createElement(le.ZP,{onClick:nn,className:ur.cancel},wn)),Vr={flex_box_center:"flex_box_center___jkpdr",flex_space_between:"flex_space_between___OtsL8",flex_box_vertical_center:"flex_box_vertical_center___rbcb_",flex_box_center_end:"flex_box_center_end___zBR21",flex_box_column:"flex_box_column___nS_eP",fixedBottom:"fixedBottom___oJl7m",wrap:"wrap___A3Oq1",center:"center____VL1y"},Dn=({className:Wn,style:Rn={},LeftContent:cn,children:fn,RightContent:wn})=>E.createElement("div",{className:ze()(Vr.fixedBottom,Wn),style:Rn},E.createElement("div",{className:Vr.wrap},E.createElement("div",{className:Vr.left},cn),E.createElement("div",{className:Vr.center},fn),E.createElement("div",{className:Vr.right},wn))),pa={flex_box_center:"flex_box_center___tY8Yn",flex_space_between:"flex_space_between___vHdYA",flex_box_vertical_center:"flex_box_vertical_center___pa61F",flex_box_center_end:"flex_box_center_end___HyDXt",flex_box_column:"flex_box_column___UjZek",crumbs:"crumbs___V41Oe",hover:"hover___bEIVd"},Vn=({className:Wn,style:Rn={},dataSource:cn=[]})=>E.createElement("div",{className:ze()(pa.crumbs,Wn),style:Rn},cn.map((fn,wn)=>wn<cn.length-1?E.createElement(E.Fragment,{key:wn},fn.path||fn.onClick?E.createElement("span",{className:pa.hover,onClick:fn!=null&&fn.onClick?fn.onClick:()=>bt.history.push(fn.path)},fn.name):E.createElement("span",null,fn.name),E.createElement("span",null,"\xA0",">","\xA0")):E.createElement("span",{key:wn,style:{color:"#5F6368"}},fn.name))),ha=ne(11938),Ti=Object.defineProperty,Ni=Object.defineProperties,Ir=Object.getOwnPropertyDescriptors,Sn=Object.getOwnPropertySymbols,ir=Object.prototype.hasOwnProperty,Fa=Object.prototype.propertyIsEnumerable,$a=(Wn,Rn,cn)=>Rn in Wn?Ti(Wn,Rn,{enumerable:!0,configurable:!0,writable:!0,value:cn}):Wn[Rn]=cn,Jr=(Wn,Rn)=>{for(var cn in Rn||(Rn={}))ir.call(Rn,cn)&&$a(Wn,cn,Rn[cn]);if(Sn)for(var cn of Sn(Rn))Fa.call(Rn,cn)&&$a(Wn,cn,Rn[cn]);return Wn},na=(Wn,Rn)=>Ni(Wn,Ir(Rn)),Qa=(Wn,Rn)=>{var cn={};for(var fn in Wn)ir.call(Wn,fn)&&Rn.indexOf(fn)<0&&(cn[fn]=Wn[fn]);if(Wn!=null&&Sn)for(var fn of Sn(Wn))Rn.indexOf(fn)<0&&Fa.call(Wn,fn)&&(cn[fn]=Wn[fn]);return cn};const{Countdown:Kr}=ha.default;var aa=Wn=>{var Rn=Wn,{onChange:cn}=Rn,fn=Qa(Rn,["onChange"]);const[wn,nn]=(0,E.useState)(null);(0,E.useEffect)(()=>{typeof wn=="number"&&wn>=0&&cn(wn)},[wn]);const Kn=Jt=>{const On=Math.floor(Jt/1e3);nn(On)};return E.createElement(Kr,na(Jr({},fn),{onChange:Kn}))}},79006:function(It,kt,ne){"use strict";ne.d(kt,{Z:function(){return ve}});var E=ne(59301);function ve(Pe,Te){const He=(0,E.useRef)();(0,E.useEffect)(()=>{He.current=Pe}),(0,E.useEffect)(()=>{function _e(){He.current()}if(Te!==null){let ze=setInterval(_e,Te);return()=>clearInterval(ze)}},[Te])}},28808:function(It,kt,ne){"use strict";ne.r(kt),ne.d(kt,{default:function(){return Bs}});var E=ne(59301),ve=ne(44283),Pe=ne(28284),Te=ne(6767),He=ne(91882),_e=ne(37568),ze=ne(62673),nt=ne(47889),Fe=ne(4875),We=ne(7939),Xe={flex_box_center:"flex_box_center___aPGWN",flex_space_between:"flex_space_between___MQNX5",flex_box_vertical_center:"flex_box_vertical_center___Z7QdK",flex_box_center_end:"flex_box_center_end___JQl5O",flex_box_column:"flex_box_column___IhYhx",bg:"bg___Kg8x_",title:"title___UhsVG",titleLeft:"titleLeft___NPVwn",titleRight:"titleRight___UGtmZ",formWrap:"formWrap___Jowb2",baseLineHeight:"baseLineHeight___N68WX",radioBtnWrapper:"radioBtnWrapper___bX7Pi",radiogroup:"radiogroup___ukf8u",easy:"easy___ZHYPU",medium:"medium___piewx",hard:"hard___HMXyt",selectdiv:"selectdiv___gkuBG",divitem:"divitem___vNm0q",bottmodiv:"bottmodiv___assW5",cancelBtn:"cancelBtn___Nl6Pi",confirmBtn:"confirmBtn___BNoFU",baseFormItem:"baseFormItem___ILZ2V",cascaderPopup:"cascaderPopup___QPxW3",addQuestionBtn:"addQuestionBtn___OjehS",concat:"concat___kliXB"},$e=ne(62957),vt=ne(24017),Ye=ne(66649),Ne=ne.n(Ye),Be=(ue,ke,Ze)=>new Promise((Vt,Nn)=>{var Cr=Yt=>{try{gn(Ze.next(Yt))}catch(Ln){Nn(Ln)}},kn=Yt=>{try{gn(Ze.throw(Yt))}catch(Ln){Nn(Ln)}},gn=Yt=>Yt.done?Vt(Yt.value):Promise.resolve(Yt.value).then(Cr,kn);gn((Ze=Ze.apply(ue,ke)).next())});const be=({user:ue,dispatch:ke,classroomList:Ze,onModalOk:Vt,setsubloading:Nn})=>{const Cr=(0,ve.useParams)(),[kn,gn]=(0,E.useState)(),[Yt,Ln]=(0,E.useState)(!1);function Ia(ln){return ln&&ln<Ne()().subtract(1,"days")}return E.createElement($e.default,{title:"\u6E29\u99A8\u63D0\u793A",afterClose:()=>{Ln(!1)},zIndex:8888,destroyOnClose:!0,footer:null,maskClosable:!1,keyboard:!1,open:Ze.actionTabs.key==="\u9884\u7EA6\u5F39\u7A97",onCancel:()=>{if(Yt){Te.ZP.warning("\u6B63\u5728\u8BF7\u6C42\u6570\u636E\u4E2D...");return}Nn(!1),ke({type:"classroomList/setActionTabs",payload:{}})}},E.createElement("div",null,E.createElement("span",null,"EduCoder\u6CE8\u610F\u5230\u60A8\u7684\u8BFE\u5802\u4E2D\u5B66\u751F\u4EBA\u6570\u8F83\u591A\u3002\u4E3A\u66F4\u597D\u5730\u4E3A\u60A8\u548C\u60A8\u7684\u5B66\u751F\u670D\u52A1\uFF0C\u7ED9\u540C\u5B66\u4EEC\u5E26\u6765\u66F4\u597D\u7684\u8003\u8BD5\u4F53\u9A8C\uFF0C\u6211\u4EEC\u5C06\u63D0\u524D\u4E3A\u60A8\u548C\u60A8\u7684\u5B66\u751F\u51C6\u5907\u597D\u670D\u52A1\u5668\u8D44\u6E90\u3002 \u8BF7\u60A8\u544A\u77E5\u6211\u4EEC\uFF0C\u8FD9\u4EFD\u8BD5\u5377\u7684\u9884\u8BA1\u8003\u8BD5\u65F6\u95F4\u662F\uFF1A"),E.createElement("br",null),E.createElement(vt.default,{popupStyle:{zIndex:9999},style:{marginTop:"10px",marginBottom:"10px"},disabledDate:Ia,format:"YYYY-MM-DD HH:mm:ss",onChange:(ln,Wt)=>{gn(Wt)},showTime:{defaultValue:Ne()("00:00:00","HH:mm:ss")}}),E.createElement("br",null),E.createElement("span",null,"\u611F\u8C22\u60A8\u7684\u914D\u5408"),E.createElement("br",null),E.createElement("div",{style:{textAlign:"end"}},E.createElement(We.ZP,{loading:Yt,type:"primary",onClick:()=>Be(void 0,null,function*(){Ln(!0),Vt(kn,()=>{ke({type:"classroomList/setActionTabs",payload:{}})})})},"\u786E\u8BA4"))))};var Ie=(0,ve.connect)(({user:ue,classroomList:ke})=>({user:ue,classroomList:ke}))(be),Ke=ne(49317),at=ne(32134),fe=ne(12893),qe={wrap:"wrap___Ww0Ti",itemWarp:"itemWarp___LMLjd",addIcon:"addIcon___xmRLl",deleteIcon:"deleteIcon___gjwgO"},st=ne(82326),wt=Object.defineProperty,ft=Object.getOwnPropertySymbols,ct=Object.prototype.hasOwnProperty,Je=Object.prototype.propertyIsEnumerable,ut=(ue,ke,Ze)=>ke in ue?wt(ue,ke,{enumerable:!0,configurable:!0,writable:!0,value:Ze}):ue[ke]=Ze,Se=(ue,ke)=>{for(var Ze in ke||(ke={}))ct.call(ke,Ze)&&ut(ue,Ze,ke[Ze]);if(ft)for(var Ze of ft(ke))Je.call(ke,Ze)&&ut(ue,Ze,ke[Ze]);return ue},Ve=(ue,ke,Ze)=>new Promise((Vt,Nn)=>{var Cr=Yt=>{try{gn(Ze.next(Yt))}catch(Ln){Nn(Ln)}},kn=Yt=>{try{gn(Ze.throw(Yt))}catch(Ln){Nn(Ln)}},gn=Yt=>Yt.done?Vt(Yt.value):Promise.resolve(Yt.value).then(Cr,kn);gn((Ze=Ze.apply(ue,ke)).next())}),tt=({setitem:ue,item:ke,rz:Ze})=>{var Vt,Nn,Cr,kn,gn,Yt,Ln,Ia;let[ln,Wt]=(0,E.useState)({zydatas:[],jbdatas:[],kcdatas:[],zsdatas:[],page:1,per_page:20});const[un]=Pe.default.useForm(),[er,Xn]=(0,E.useState)(!1);(0,E.useEffect)(()=>{Ze&&!er&&(ln.zydatas=Ze,Wt(Se({},ln)),Xn(!0),ke!=null&&ke.ec_course_id&&Zn())},[ke,Ze,er]),console.log(ln,"params");function Zn(){return Ve(this,null,function*(){yield qn(ke==null?void 0:ke.ec_major_school_id),yield yn(ke==null?void 0:ke.ec_year_id),yield lr(ke==null?void 0:ke.ec_course_id),un.setFieldsValue({ec_course_id:ke==null?void 0:ke.ec_course_id,ec_major_school_id:ke==null?void 0:ke.ec_major_school_id,ec_point_ids:ke==null?void 0:ke.ec_point_ids,ec_year_id:ke==null?void 0:ke.ec_year_id})})}function qn(Dr){return Ve(this,null,function*(){const dr=yield(0,Ke.ZP)(`/api/ec_major_schools/${Dr}/ec_years/get_year_list.json`,{method:"get"});ln.jbdatas=dr==null?void 0:dr.data,Wt(Se({},ln)),un.setFieldsValue({ec_year_id:"",ec_course_id:"",ec_point_ids:[]})})}function yn(Dr){return Ve(this,null,function*(){const dr=yield(0,Ke.ZP)(`/api/ec_years/${Dr}/ec_courses/get_courses.json`,{method:"get"});ln.kcdatas=dr==null?void 0:dr.data,Wt(Se({},ln)),un.setFieldsValue({ec_course_id:"",ec_point_ids:[]})})}const lr=Dr=>Ve(void 0,null,function*(){const dr=yield(0,Ke.ZP)(`/api/ec_courses/${Dr}/ec_points.json`,{method:"get",params:{ec_course_id:Dr}});ln.zsdatas=dr==null?void 0:dr.data,Wt(Se({},ln))});return E.createElement("div",{className:qe.from},E.createElement(Pe.default,{form:un,layout:"inline",onValuesChange:Dr=>{console.log("----",Dr),Dr.ec_major_school_id&&(ln.jbdatas=[],ln.kcdatas=[],ln.zsdatas=[],Wt(Se({},ln)),qn(Dr.ec_major_school_id)),Dr.ec_year_id&&(ln.kcdatas=[],ln.zsdatas=[],Wt(Se({},ln)),yn(Dr.ec_year_id)),Dr.ec_course_id&&(ln.zsdatas=[],Wt(Se({},ln)),lr(Dr.ec_course_id))},onFinish:Dr=>Ve(void 0,null,function*(){ue(Dr)})},E.createElement(Pe.default.Item,{name:"ec_major_school_id"},E.createElement(st.default,{style:{width:160},disabled:((Vt=ln.zydatas)==null?void 0:Vt.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u8BA4\u8BC1\u4E13\u4E1A"},(Nn=ln==null?void 0:ln.zydatas)==null?void 0:Nn.map((Dr,dr)=>E.createElement(st.default.Option,{key:dr,value:Dr==null?void 0:Dr.ec_major_school_id},Dr==null?void 0:Dr.name)))),E.createElement(Pe.default.Item,{name:"ec_year_id"},E.createElement(st.default,{style:{width:160},disabled:((Cr=ln.jbdatas)==null?void 0:Cr.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u8BA4\u8BC1\u5C4A\u522B"},(kn=ln==null?void 0:ln.jbdatas)==null?void 0:kn.map((Dr,dr)=>E.createElement(st.default.Option,{key:dr,value:Dr==null?void 0:Dr.ec_year_id},Dr==null?void 0:Dr.year)))),E.createElement(Pe.default.Item,{name:"ec_course_id"},E.createElement(st.default,{style:{width:208},disabled:((gn=ln.kcdatas)==null?void 0:gn.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u8BFE\u7A0B"},(Yt=ln==null?void 0:ln.kcdatas)==null?void 0:Yt.map((Dr,dr)=>E.createElement(st.default.Option,{key:dr,value:Dr==null?void 0:Dr.id},Dr==null?void 0:Dr.name)))),E.createElement(Pe.default.Item,{name:"ec_point_ids"},E.createElement(st.default,{onChange:()=>{un.submit()},style:{width:160},maxTagCount:1,maxTagTextLength:7,mode:"multiple",disabled:((Ln=ln.zsdatas)==null?void 0:Ln.length)<=0,placeholder:"\u8BF7\u9009\u62E9\u77E5\u8BC6\u70B9"},(Ia=ln==null?void 0:ln.zsdatas)==null?void 0:Ia.map((Dr,dr)=>E.createElement(st.default.Option,{key:dr,value:Dr==null?void 0:Dr.id},Dr==null?void 0:Dr.name))))))},Dt=Object.defineProperty,lt=Object.defineProperties,Qe=Object.getOwnPropertyDescriptors,xt=Object.getOwnPropertySymbols,Re=Object.prototype.hasOwnProperty,me=Object.prototype.propertyIsEnumerable,pt=(ue,ke,Ze)=>ke in ue?Dt(ue,ke,{enumerable:!0,configurable:!0,writable:!0,value:Ze}):ue[ke]=Ze,bt=(ue,ke)=>{for(var Ze in ke||(ke={}))Re.call(ke,Ze)&&pt(ue,Ze,ke[Ze]);if(xt)for(var Ze of xt(ke))me.call(ke,Ze)&&pt(ue,Ze,ke[Ze]);return ue},it=(ue,ke)=>lt(ue,Qe(ke)),Le=(ue,ke,Ze)=>new Promise((Vt,Nn)=>{var Cr=Yt=>{try{gn(Ze.next(Yt))}catch(Ln){Nn(Ln)}},kn=Yt=>{try{gn(Ze.throw(Yt))}catch(Ln){Nn(Ln)}},gn=Yt=>Yt.done?Vt(Yt.value):Promise.resolve(Yt.value).then(Cr,kn);gn((Ze=Ze.apply(ue,ke)).next())});const Ue=({user:ue,exercise_id:ke=null,homework_common_id:Ze=null,setitem:Vt})=>{var Nn,Cr,kn;let[gn,Yt]=(0,E.useState)([{id:Math.random()}]),[Ln,Ia]=(0,E.useState)(null);function ln(){return Le(this,null,function*(){var un,er,Xn,Zn;let qn=yield(0,Ke.ZP)("/api/ec_courses/0/ec_points/get_work_points.json",{method:"get",params:{exercise_id:ke,homework_common_id:Ze}});if(((un=qn==null?void 0:qn.data)==null?void 0:un.length)>0){let yn=[];(er=qn==null?void 0:qn.data)==null||er.map(lr=>{var Dr;(Dr=lr==null?void 0:lr.ec_point_ids)==null||Dr.map(dr=>{yn.push(dr)})}),Vt(it(bt({},(Xn=qn==null?void 0:qn.data)==null?void 0:Xn[0]),{ec_point_ids:yn})),Yt((Zn=qn==null?void 0:qn.data)==null?void 0:Zn.map(lr=>it(bt({},lr),{id:Math.random()})))}})}(0,E.useEffect)(()=>{var un,er;(er=(un=ue==null?void 0:ue.userInfo)==null?void 0:un.course)!=null&&er.course_school_id&&Wt()},[(Cr=(Nn=ue==null?void 0:ue.userInfo)==null?void 0:Nn.course)==null?void 0:Cr.course_school_id]);function Wt(){return Le(this,null,function*(){var un,er;const Xn=yield(0,Ke.ZP)(`/api/schools/${(er=(un=ue==null?void 0:ue.userInfo)==null?void 0:un.course)==null?void 0:er.course_school_id}/ec_majors/get_major_list.json`,{method:"get"});Ia(Xn==null?void 0:Xn.data),(Ze||ke)&&ln()})}return console.log(gn,Ln,"datas"),E.createElement("div",{style:{display:(kn=ue.userInfo.course)!=null&&kn.is_openengineering?"":"none"}},E.createElement("div",{className:qe.wrap},E.createElement("p",null,"\u5DE5\u7A0B\u8BA4\u8BC1",E.createElement("br",null),"\u8003\u6838\u77E5\u8BC6\u70B9"),E.createElement("div",{className:qe.itemWarp},gn==null?void 0:gn.map((un,er)=>E.createElement("div",{key:un.id,style:{display:"flex",alignItems:"center",marginBottom:20}},E.createElement(tt,{rz:Ln,item:un,setitem:Xn=>{Xn=bt(bt({},gn==null?void 0:gn[er]),Xn),gn.splice(er,1,Xn),Yt([...gn]);let Zn=[];gn==null||gn.map(qn=>{var yn;(yn=qn==null?void 0:qn.ec_point_ids)==null||yn.map(lr=>{Zn.push(lr)})}),Vt(it(bt({},Xn),{ec_point_ids:Zn}))}}),E.createElement(at.Z,{className:qe.addIcon,onClick:()=>{gn.push({id:Math.random()}),Yt([...gn])}}),er!=0&&E.createElement(fe.Z,{className:qe.deleteIcon,onClick:()=>{gn.splice(er,1);let Xn=[];gn==null||gn.map(Zn=>{var qn;(qn=Zn==null?void 0:Zn.ec_point_ids)==null||qn.map(yn=>{Xn.push(yn)})}),Vt(it(bt({},gn[er-1]),{ec_point_ids:Xn})),Yt([...gn])}}))))))};var mt=(0,ve.connect)(({user:ue})=>({user:ue}))(Ue),Zt=ne(93041),Pt=ne(29787),en=ne(75727),dt=ne(25399),Lt=ne(37639),pn=ne(36207),he={flex_box_center:"flex_box_center___zCnVx",flex_space_between:"flex_space_between___BBiQD",flex_box_vertical_center:"flex_box_vertical_center___KzPui",flex_box_center_end:"flex_box_center_end___zJokd",flex_box_column:"flex_box_column___Grsys",moreSpan:"moreSpan___VJeLv",bg:"bg___oBBHW",title:"title___xV4Rt",bottomdiv:"bottomdiv___rPfwr",spanBtn:"spanBtn___eJxID",addQuestionBtn:"addQuestionBtn___RPRiP",saveBtn:"saveBtn___y9nNf",left:"left___Q3Qf4",leftAction:"leftAction___GT9yG",Button:"Button___r00OP",iconWrapper:"iconWrapper___wofW_",up:"up___a9RQm",down:"down___x6RAl",disabled:"disabled___mkEME",titleleft:"titleleft___WZ83K",more_style:"more_style___ZXYnN",qcount:"qcount___o6F1k",drag:"drag___ZSZki",score:"score___Gy6jr",qtitle:"qtitle___KF7pa",qcountclick:"qcountclick___kvoyc",right:"right___Nfa70",edit:"edit___RVRSb",delete:"delete___J9BAT",yuanti:"yuanti___ljq8l",tianjia:"tianjia___s7Zu2",shixun:"shixun___YkjdZ",scoreByBlankRadio:"scoreByBlankRadio___QYQY5",modalconfirm:"modalconfirm___dmWFe",scoremodal:"scoremodal___CDA7w",close:"close___jdUWv",content:"content___HPqUf",items:"items___YkyQL",bottom:"bottom___mzpp4",yes:"yes___Xio6z",no:"no___hbicD",formcenter:"formcenter___kN8Ax",radiogroup:"radiogroup___htjtc",easy:"easy____g1mR",medium:"medium___vPAsn",hard:"hard___c6tcf",formcenterselect:"formcenterselect___B88vb",selectitems1:"selectitems1___Dzpho",selectitems:"selectitems___wUGKF",morebottom:"morebottom___F5cFQ",scoreinput:"scoreinput___S9Fbv",shake:"shake___IYp2E",titleTooltip:"titleTooltip___J0i26",exercise_styles:"exercise_styles___BJAZm",btn_warp:"btn_warp___iFP5N"},le=ne(76406),ae=ne(90736),pe=ne(58219),ye=ne(43141),se=ne(35883),ot=ne(59301),Xt=Object.defineProperty,zt=Object.defineProperties,on=Object.getOwnPropertyDescriptors,Kt=Object.getOwnPropertySymbols,Yn=Object.prototype.hasOwnProperty,Fn=Object.prototype.propertyIsEnumerable,or=(ue,ke,Ze)=>ke in ue?Xt(ue,ke,{enumerable:!0,configurable:!0,writable:!0,value:Ze}):ue[ke]=Ze,ra=(ue,ke)=>{for(var Ze in ke||(ke={}))Yn.call(ke,Ze)&&or(ue,Ze,ke[Ze]);if(Kt)for(var Ze of Kt(ke))Fn.call(ke,Ze)&&or(ue,Ze,ke[Ze]);return ue},ur=(ue,ke)=>zt(ue,on(ke)),rr=(ue,ke,Ze)=>new Promise((Vt,Nn)=>{var Cr=Yt=>{try{gn(Ze.next(Yt))}catch(Ln){Nn(Ln)}},kn=Yt=>{try{gn(Ze.throw(Yt))}catch(Ln){Nn(Ln)}},gn=Yt=>Yt.done?Vt(Yt.value):Promise.resolve(Yt.value).then(Cr,kn);gn((Ze=Ze.apply(ue,ke)).next())}),Vr=({Itemid:ue,setqitem:ke,qitem:Ze,data:Vt,getdata:Nn,bigitem:Cr,setBigqitem:kn,isedit:gn,handleEditing:Yt})=>{const[Ln,Ia]=(0,E.useState)([]),[ln,Wt]=(0,E.useState)(!1),un=(Xn,Zn,qn)=>{const yn=Array.from(Xn),[lr]=yn.splice(Zn,1);return yn.splice(qn,0,lr),yn};(0,E.useEffect)(()=>{Vt.length>0&&Ia([...Vt])},[Vt]);const er=(Xn,Zn)=>rr(void 0,null,function*(){if(!Xn.destination)return;if(gn){Yt();return}const qn=un(Zn,Xn.source.index,Xn.destination.index);Wt(!0);let yn=yield(0,Ke.ZP)(`/api/exercises/${ue}/adjust_position.json`,{method:"post",body:{id:ue,question_ids:qn==null?void 0:qn.map(lr=>lr.question_id)}});Wt(!1),yn.status===0&&Nn({id:Zn==null?void 0:Zn[Xn.source.index].question_id})});return ot.createElement("div",null,ot.createElement(ye.Z5,{onDragEnd:Xn=>er(Xn,Ln)},ot.createElement(ye.bK,{droppableId:"droppable"},(Xn,Zn)=>ot.createElement("div",ra({ref:Xn.innerRef},Xn.droppableProps),ot.createElement(Pt.Z,{spinning:ln},Ln.map((qn,yn)=>ot.createElement(ye._l,{key:yn,draggableId:yn.toString(),index:yn},(lr,Dr)=>{var dr,ki;return ot.createElement("aside",ra(ra({ref:lr.innerRef},lr.draggableProps),lr.dragHandleProps),ot.createElement("div",{onClick:()=>{if(gn){Yt();return}ke(ur(ra({},qn),{index:yn+1})),kn(Cr),(0,le.Vf)("#question-scroll-id")},className:`${he.qcount} ${qn.question_id===(Ze==null?void 0:Ze.question_id)?he.qcountclick:""}`},ot.createElement(dt.Z,{title:"\u62D6\u62FD\u8C03\u6574\u987A\u5E8F"},ot.createElement("i",{className:`iconfont icon-tuodong3 ${he.drag}`})),ot.createElement("span",{className:he.score},qn==null?void 0:qn.question_score,"\u5206"),ot.createElement(dt.Z,{title:ot.createElement(se.Z,{value:(qn==null?void 0:qn.question_type)===8?(dr=qn==null?void 0:qn.program_attr)==null?void 0:dr.description:qn.question_title}),color:"#fff",placement:"left",overlayClassName:he.titleTooltip},ot.createElement("span",{className:he.qtitle},yn+1,"\u3001",ot.createElement(se.Z,{value:(qn==null?void 0:qn.question_type)===8?(ki=qn==null?void 0:qn.program_attr)==null?void 0:ki.description:qn.question_title,showTextOnly:!0}))),(qn==null?void 0:qn.question_imperfect)&&ot.createElement(dt.Z,{title:"\u77E5\u8BC6\u70B9\u4FE1\u606F\u4E0D\u5B8C\u5584"},ot.createElement("div",{style:{transform:"scaleY(-1)",color:"#E99237"},className:"iconfont icon-tishi12"}))))}))),Xn.placeholder))))},xr=ne(77019),Dn=ne(8338),pa=ne(58755),Jn=ne(61485),Vn=ne(30935),ha=ne(59301),Ti=(ue,ke,Ze)=>new Promise((Vt,Nn)=>{var Cr=Yt=>{try{gn(Ze.next(Yt))}catch(Ln){Nn(Ln)}},kn=Yt=>{try{gn(Ze.throw(Yt))}catch(Ln){Nn(Ln)}},gn=Yt=>Yt.done?Vt(Yt.value):Promise.resolve(Yt.value).then(Cr,kn);gn((Ze=Ze.apply(ue,ke)).next())}),Ir=({form:ue,TagDiscipline:ke,exerciseitem:Ze,qitem:Vt,getTagData:Nn})=>{var Cr,kn,gn,Yt;const[Ln,Ia]=(0,E.useState)(!0),ln=Pe.default.useWatch("course_discipline_id",ue);(0,E.useEffect)(()=>{Wt()},[]);const Wt=()=>Ti(void 0,null,function*(){ue.setFieldsValue({difficulty:Vt.difficulty||2,tag_discipline_ids:Vt==null?void 0:Vt.tag_discipline_ids,repeat_answer:!Vt.repeat_answer,course_discipline_id:Vt==null?void 0:Vt.course_discipline_id})});return ha.createElement("div",null,ha.createElement("div",{style:{marginTop:30,overflow:"hidden",height:Ln?"100%":0}},ha.createElement(Pe.default.Item,{className:he.formcenter,rules:[{required:!0,message:"\u8BF7\u5148\u9009\u62E9\u96BE\u5EA6"}],label:"\u96BE\u5EA6",name:"difficulty"},ha.createElement(nt.ZP.Group,{className:he.radiogroup},ha.createElement(nt.ZP.Button,{className:he.easy,value:1},"\u7B80\u5355"),ha.createElement(nt.ZP.Button,{className:he.medium,value:2},"\u9002\u4E2D"),ha.createElement(nt.ZP.Button,{className:he.hard,value:3},"\u56F0\u96BE"))),ha.createElement(Pe.default.Item,{name:"course_discipline_id",label:"\u6240\u5C5E\u8BFE\u7A0B",className:he.formcenterselect,rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u8BFE\u7A0B"}]},ha.createElement(Vn.q,{onChange:()=>ue.setFieldsValue({tag_discipline_ids:[]}),style:{width:666,height:46},data:{course_discipline_id:Vt==null?void 0:Vt.course_discipline_id},tooltipTitle:((Cr=Vt==null?void 0:Vt.course_discipline_data)==null?void 0:Cr.is_managed)===!1?`${(kn=Vt==null?void 0:Vt.course_discipline_data)==null?void 0:kn.user_name}\u8001\u5E08\u521B\u5EFA\u7684\u8BD5\u9898\uFF0C\u8BF7\u8054\u7CFB\u521B\u5EFA\u8005\u4FEE\u6539\u6240\u5C5E\u8BFE\u7A0B\u4E0E\u77E5\u8BC6\u70B9`:"",disabled:((gn=Vt==null?void 0:Vt.course_discipline_data)==null?void 0:gn.is_managed)===!1})),ha.createElement(Pe.default.Item,{label:"\u77E5\u8BC6\u70B9",name:"tag_discipline_ids",labelAlign:"left",labelCol:{flex:"80px"},className:he.formcenterselect},ha.createElement(Vn.i,{isPlusHeight:!0,size:"large",courseDisciplineId:ln,disabled:((Yt=Vt==null?void 0:Vt.course_discipline_data)==null?void 0:Yt.is_managed)===!1})),ha.createElement(Pe.default.Item,{className:he.formcenterselect},ha.createElement("div",{style:{display:"flex",alignItems:"center"}},ha.createElement(Pe.default.Item,{name:"repeat_answer",valuePropName:"checked"},ha.createElement(pa.Z,null)),ha.createElement("div",{style:{marginLeft:10,marginTop:"-16px",lineHeight:"40px",height:48,color:"#000000"}},"\u4E0D\u5141\u8BB8\u5B66\u751F\u91CD\u590D\u7B54\u9898",ha.createElement(dt.Z,{placement:"right",title:"\u5F00\u542F\u540E\uFF0C\u5B66\u751F\u4F5C\u7B54\u5B8C\u6210\u8BE5\u9898\u5E76\u8FDB\u5165\u4E0B\u4E00\u9898\u4E4B\u540E\uFF0C\u4E0D\u5141\u8BB8\u518D\u4FEE\u6539\u8BE5\u9898\u7B54\u6848"},ha.createElement(Jn.Z,{style:{color:"#3061D0",marginLeft:6,cursor:"pointer"}})))))))},Sn=ne(59301),ir=Object.defineProperty,Fa=Object.defineProperties,$a=Object.getOwnPropertyDescriptors,Jr=Object.getOwnPropertySymbols,na=Object.prototype.hasOwnProperty,Qa=Object.prototype.propertyIsEnumerable,Kr=(ue,ke,Ze)=>ke in ue?ir(ue,ke,{enumerable:!0,configurable:!0,writable:!0,value:Ze}):ue[ke]=Ze,qa=(ue,ke)=>{for(var Ze in ke||(ke={}))na.call(ke,Ze)&&Kr(ue,Ze,ke[Ze]);if(Jr)for(var Ze of Jr(ke))Qa.call(ke,Ze)&&Kr(ue,Ze,ke[Ze]);return ue},aa=(ue,ke)=>Fa(ue,$a(ke)),Wn=(ue,ke,Ze)=>new Promise((Vt,Nn)=>{var Cr=Yt=>{try{gn(Ze.next(Yt))}catch(Ln){Nn(Ln)}},kn=Yt=>{try{gn(Ze.throw(Yt))}catch(Ln){Nn(Ln)}},gn=Yt=>Yt.done?Vt(Yt.value):Promise.resolve(Yt.value).then(Cr,kn);gn((Ze=Ze.apply(ue,ke)).next())}),cn=({qitem:ue,setisedit:ke,TagDiscipline:Ze,exerciseitem:Vt,seveeditor:Nn,deleteitem:Cr,getTagData:kn,init:gn,showTip:Yt=!1,saveLoading:Ln=!1})=>{var Ia;const[ln]=Pe.default.useForm();(0,E.useEffect)(()=>{var un;ln.setFieldsValue(aa(qa({},ue),{name:ue==null?void 0:ue.question_title,choices:(un=ue==null?void 0:ue.question_choices)==null?void 0:un.map(er=>aa(qa({},er),{standard_boolean:er!=null&&er.standard_boolean?1:0})),repeat_answer:!(ue!=null&&ue.repeat_answer)}))},[ue]);const Wt=un=>{if(!(un!=null&&un.length))return!1;const er=un.map(Zn=>{var qn;return(qn=Zn.choice_text)==null?void 0:qn.trim().replace(/^\s+|\s+$/g,"")});return new Set(er).size!==er.length};return Sn.createElement("div",null,Sn.createElement(Pe.default,{form:ln,colon:!1,onFinish:un=>{var er,Xn,Zn,qn,yn;if(Wt(un.choices)){Te.ZP.error("\u9009\u62E9\u9898\u9009\u9879\u5185\u5BB9\u4E0D\u80FD\u91CD\u590D\uFF0C\u8BF7\u4FEE\u6539\u540E\u518D\u4FDD\u5B58");return}let lr=(Xn=(er=un==null?void 0:un.choices)==null?void 0:er.map)==null?void 0:Xn.call(er,(dr,ki)=>{if((dr==null?void 0:dr.standard_boolean)===1)return ki+1}),Dr=aa(qa({},un),{item_type:ue==null?void 0:ue.question_type,question_choices:(qn=(Zn=un==null?void 0:un.choices)==null?void 0:Zn.map)==null?void 0:qn.call(Zn,dr=>dr.choice_text),standard_answers:lr.filter(dr=>dr),choices:(yn=un==null?void 0:un.choices)==null?void 0:yn.map(dr=>aa(qa({},dr),{is_answer:dr.standard_boolean}))});Nn(qa(qa({},ue),Dr))},onFinishFailed:un=>Wn(void 0,null,function*(){var er,Xn;Te.ZP.error(un.errorFields[0].errors[0]),ln.scrollToField((Xn=(er=un==null?void 0:un.errorFields)==null?void 0:er[0])==null?void 0:Xn.name,{behavior:"smooth",block:"center"})})},Sn.createElement("div",{style:{display:"flex",alignItems:"center"}},Sn.createElement("div",{style:{flex:1}},Sn.createElement("span",{style:{display:"inline-flex",border:"1px solid #9096A3",borderRadius:"50%",width:10,height:10,marginRight:5,background:"#9096A3"}}),Sn.createElement("span",null,(ue==null?void 0:ue.question_type)===1?"\u591A\u9009\u9898":"\u5355\u9009\u9898")),((Ia=Vt==null?void 0:Vt.exercise)==null?void 0:Ia.exercise_status)==1&&!(ue!=null&&ue.isadd)&&Sn.createElement("span",{style:{marginLeft:20,marginRight:20,color:"red",cursor:"pointer"},onClick:()=>{Cr()}},Sn.createElement("i",{className:"iconfont icon-piliangshanchu3",style:{fontSize:14,marginRight:6}}),"\u5220\u9664"),Sn.createElement(We.ZP,{onClick:()=>{var un;ue.isadd?(ke(!1),gn()):(ln.setFieldsValue(aa(qa({},ue),{name:ue==null?void 0:ue.question_title,choices:(un=ue==null?void 0:ue.question_choices)==null?void 0:un.map(er=>aa(qa({},er),{standard_boolean:er!=null&&er.standard_boolean?1:0})),repeat_answer:!(ue!=null&&ue.repeat_answer)})),ke(!1))}},"\u53D6\u6D88"),Sn.createElement(dt.Z,{overlayClassName:he.shake,open:Yt,placement:"bottom",color:"rgba(244,156,14,0.19)",title:Sn.createElement("div",{style:{color:"#FF841A",fontSize:"14px"}},Sn.createElement("i",{className:"iconfont icon-tishi11 mr5 font14"}),"\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u8BD5\u9898\u3002")},Sn.createElement(We.ZP,{type:"primary",className:"ml20",onClick:()=>Wn(void 0,null,function*(){ln.submit()}),loading:Ln},"\u4FDD\u5B58"))),Sn.createElement("div",{style:{maxHeight:"calc(100vh - 148px)",overflowY:"auto",marginTop:"10px",paddingRight:"5px"}},Sn.createElement(xr.Z,{align:"middle"},Sn.createElement(Pe.default.Item,{className:he.scoreinput,name:"question_score",label:"\u5206\u503C",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5206\u503C"}]},Sn.createElement(Fe.Z,{onBlur:un=>{un.target.value==="0"&&Te.ZP.error("\u5206\u503C\u5FC5\u987B\u5927\u4E8E0\u4E14\u5C0F\u4E8E\u7B49\u4E8E100")},style:{width:150},precision:1,placeholder:"\u8BF7\u8F93\u5165\u5206\u503C",max:100,min:.1}))),Sn.createElement(Dn.u,{form:ln,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u9009\u62E9\u9898\u9898\u5E72\u5185\u5BB9",titleKey:"question_title",choiceKey:"choices",analysisKey:"analysis",choiceOptionsPath:"choices",choiceTextKey:"choice_text",answerKey:"standard_boolean"}),Sn.createElement(Ir,{getTagData:kn,qitem:ue,exerciseitem:Vt,TagDiscipline:Ze,form:ln}))))},fn=ne(64780),wn=ne(40183),nn=ne(59301),Kn=Object.defineProperty,Jt=Object.defineProperties,On=Object.getOwnPropertyDescriptors,hr=Object.getOwnPropertySymbols,yr=Object.prototype.hasOwnProperty,Ar=Object.prototype.propertyIsEnumerable,la=(ue,ke,Ze)=>ke in ue?Kn(ue,ke,{enumerable:!0,configurable:!0,writable:!0,value:Ze}):ue[ke]=Ze,Er=(ue,ke)=>{for(var Ze in ke||(ke={}))yr.call(ke,Ze)&&la(ue,Ze,ke[Ze]);if(hr)for(var Ze of hr(ke))Ar.call(ke,Ze)&&la(ue,Ze,ke[Ze]);return ue},Qt=(ue,ke)=>Jt(ue,On(ke)),_n=(ue,ke,Ze)=>new Promise((Vt,Nn)=>{var Cr=Yt=>{try{gn(Ze.next(Yt))}catch(Ln){Nn(Ln)}},kn=Yt=>{try{gn(Ze.throw(Yt))}catch(Ln){Nn(Ln)}},gn=Yt=>Yt.done?Vt(Yt.value):Promise.resolve(Yt.value).then(Cr,kn);gn((Ze=Ze.apply(ue,ke)).next())}),Nr=({qitem:ue,TagDiscipline:ke,exerciseitem:Ze,setisedit:Vt,seveeditor:Nn,deleteitem:Cr,getTagData:kn,init:gn,showTip:Yt=!1,saveLoading:Ln=!1})=>{var Ia;const[ln]=Pe.default.useForm(),Wt=Pe.default.useWatch("use_blank_score",ln);return(0,E.useEffect)(()=>{ln.setFieldsValue(Qt(Er({},ue),{standard_answers:ue.standard_answers||[],name:ue.question_title,repeat_answer:!ue.repeat_answer}))},[ue]),nn.createElement("div",null,nn.createElement(Pe.default,{form:ln,colon:!1,onValuesChange:(un,er)=>{var Xn,Zn,qn,yn;if(un!=null&&un.standard_answers||un!=null&&un.use_blank_score){let lr=((Xn=ln.getFieldValue("standard_answers"))==null?void 0:Xn.length)>0&&((qn=(Zn=ln.getFieldValue("standard_answers"))==null?void 0:Zn.map(Dr=>Dr.score))==null?void 0:qn.filter(Dr=>Dr));(lr==null?void 0:lr.length)>0&&ln.setFieldsValue({question_score:(lr==null?void 0:lr.length)>0&&((yn=lr.reduce((Dr,dr)=>Dr+dr))==null?void 0:yn.toFixed(1))})}},onFinish:un=>{Nn(Qt(Er(Er({},ue),un),{item_type:ue==null?void 0:ue.question_type,standard_answers:un.standard_answers,question_title:un.name}))},onFinishFailed:un=>_n(void 0,null,function*(){var er,Xn;un.errorFields[0].errors[0]==="\u8BF7\u5148\u5728\u9898\u5E72\u4E2D\u63D2\u5165\u586B\u7A7A\u9879"&&(0,le.pE)(),Te.ZP.error(un.errorFields[0].errors[0]),ln.scrollToField((Xn=(er=un==null?void 0:un.errorFields)==null?void 0:er[0])==null?void 0:Xn.name,{behavior:"smooth",block:"center"})})},nn.createElement("div",{style:{display:"flex",alignItems:"center"}},nn.createElement("div",{style:{flex:1}},nn.createElement("span",{style:{display:"inline-flex",border:"1px solid #9096A3",borderRadius:"50%",width:10,height:10,marginRight:5,background:"#9096A3"}}),nn.createElement("span",null,"\u586B\u7A7A\u9898")),((Ia=Ze==null?void 0:Ze.exercise)==null?void 0:Ia.exercise_status)==1&&!(ue!=null&&ue.isadd)&&nn.createElement("span",{style:{marginLeft:20,marginRight:20,color:"red",cursor:"pointer"},onClick:()=>{Cr()}},nn.createElement("i",{className:"iconfont icon-piliangshanchu3",style:{fontSize:14,marginRight:6}}),"\u5220\u9664"),nn.createElement(We.ZP,{onClick:()=>{ue.isadd?(Vt(!1),gn()):(ln.setFieldsValue(Qt(Er({},ue),{standard_answers:ue.standard_answers||[],name:ue.question_title,repeat_answer:!ue.repeat_answer})),Vt(!1))}},"\u53D6\u6D88"),nn.createElement(dt.Z,{overlayClassName:he.shake,open:Yt,placement:"bottom",color:"rgba(244,156,14,0.19)",title:nn.createElement("div",{style:{color:"#FF841A",fontSize:"14px"}},nn.createElement("i",{className:"iconfont icon-tishi11 mr5 font14"}),"\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u8BD5\u9898\u3002")},nn.createElement(We.ZP,{type:"primary",className:"ml20",onClick:()=>{ln.submit()},loading:Ln},"\u4FDD\u5B58"))),nn.createElement("div",{style:{maxHeight:"calc(100vh - 148px)",overflowY:"auto",marginTop:"10px",paddingRight:"5px"}},nn.createElement(xr.Z,{align:"middle"},Wt?nn.createElement(wn.Z,{text:"\uFF08\u5C0F\u9898\u5206\u503C\u7B49\u4E8E\u5404\u586B\u7A7A\u9879\u5206\u503C\u4E4B\u548C\uFF09"}):nn.createElement(Pe.default.Item,{key:2,className:he.scoreinput,name:"question_score",label:"\u5206\u503C",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5206\u503C"}]},nn.createElement(Fe.Z,{onBlur:un=>{un.target.value==="0"&&Te.ZP.error("\u5206\u503C\u5FC5\u987B\u5927\u4E8E0\u4E14\u5C0F\u4E8E\u7B49\u4E8E100")},style:{width:150},precision:1,placeholder:"\u8BF7\u8F93\u5165\u5206\u503C",size:"middle",max:100,min:.1})),nn.createElement(Pe.default.Item,{name:"use_blank_score",noStyle:!0},nn.createElement(nt.ZP.Group,{className:he.scoreByBlankRadio,optionType:"button",options:[{label:"\u6309\u7A7A\u7ED9\u5206",value:!0},{label:"\u6309\u9898\u7ED9\u5206",value:!1}]})),nn.createElement(dt.Z,{overlayInnerStyle:{width:460},title:nn.createElement("div",null,"\u6309\u7A7A\u7ED9\u5206\uFF1A\u9700\u8981\u5206\u522B\u8BBE\u7F6E\u6BCF\u4E2A\u586B\u7A7A\u9879\u7684\u5206\u503C\uFF0C\u586B\u7A7A\u9879\u7B54\u5BF9\u4E4B\u540E\u5219\u83B7\u5F97\u5BF9\u5E94\u7684\u5206\u503C\u3002",nn.createElement("br",null),"\u6309\u9898\u7ED9\u5206\uFF1A\u9700\u8981\u8BBE\u7F6E\u6574\u4E2A\u5C0F\u9898\u7684\u5206\u503C\uFF0C\u7B54\u5BF9\u5168\u90E8\u586B\u7A7A\u9879\u4E4B\u540E\u624D\u80FD\u83B7\u5F97\u8BE5\u5C0F\u9898\u7684\u5206\u503C\u3002")},nn.createElement("i",{className:"icon-tishixiaowenhao font18 ml20 c-3061d0"}))),nn.createElement(fn.u,{form:ln,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u9898\u5E72\uFF0C\u60A8\u53EF\u4EE5\u7528\u4EFB\u610F\u5B57\u7B26\u8868\u793A\u586B\u7A7A\u9879",scoreByBlank:Wt,answerKey:"standard_answers"}),nn.createElement(Ir,{getTagData:kn,qitem:ue,exerciseitem:Ze,TagDiscipline:ke,form:ln}))))},qr=ne(12035),Xa=ne(59301),si=Object.defineProperty,so=Object.defineProperties,Mn=Object.getOwnPropertyDescriptors,Rr=Object.getOwnPropertySymbols,jn=Object.prototype.hasOwnProperty,tl=Object.prototype.propertyIsEnumerable,Zo=(ue,ke,Ze)=>ke in ue?si(ue,ke,{enumerable:!0,configurable:!0,writable:!0,value:Ze}):ue[ke]=Ze,Ct=(ue,ke)=>{for(var Ze in ke||(ke={}))jn.call(ke,Ze)&&Zo(ue,Ze,ke[Ze]);if(Rr)for(var Ze of Rr(ke))tl.call(ke,Ze)&&Zo(ue,Ze,ke[Ze]);return ue},rn=(ue,ke)=>so(ue,Mn(ke)),Mt=(ue,ke,Ze)=>new Promise((Vt,Nn)=>{var Cr=Yt=>{try{gn(Ze.next(Yt))}catch(Ln){Nn(Ln)}},kn=Yt=>{try{gn(Ze.throw(Yt))}catch(Ln){Nn(Ln)}},gn=Yt=>Yt.done?Vt(Yt.value):Promise.resolve(Yt.value).then(Cr,kn);gn((Ze=Ze.apply(ue,ke)).next())}),sr=({qitem:ue,setisedit:ke,TagDiscipline:Ze,exerciseitem:Vt,seveeditor:Nn,deleteitem:Cr,getTagData:kn,init:gn,showTip:Yt=!1,saveLoading:Ln=!1})=>{var Ia;const[ln]=Pe.default.useForm();return(0,E.useEffect)(()=>{var Wt;ln.setFieldsValue(rn(Ct({},ue),{name:ue.question_title,repeat_answer:!ue.repeat_answer,choices:(Wt=ue==null?void 0:ue.question_choices)==null?void 0:Wt.map(un=>rn(Ct({},un),{is_answer:un!=null&&un.standard_boolean?1:0}))}))},[ue]),Xa.createElement("div",null,Xa.createElement(Pe.default,{form:ln,colon:!1,onFinish:Wt=>{var un,er,Xn,Zn;let qn=(er=(un=Wt==null?void 0:Wt.choices)==null?void 0:un.map)==null?void 0:er.call(un,(yn,lr)=>{if((yn==null?void 0:yn.is_answer)===1)return lr+1});Nn(rn(Ct(Ct({},ue),Wt),{question_title:Wt.name,standard_answers:qn.filter(yn=>yn),question_choices:(Zn=(Xn=Wt==null?void 0:Wt.choices)==null?void 0:Xn.map)==null?void 0:Zn.call(Xn,yn=>yn.choice_text)}))},onFinishFailed:Wt=>Mt(void 0,null,function*(){var un,er;Te.ZP.error(Wt.errorFields[0].errors[0]),ln.scrollToField((er=(un=Wt==null?void 0:Wt.errorFields)==null?void 0:un[0])==null?void 0:er.name,{behavior:"smooth",block:"center"})})},Xa.createElement("div",{style:{display:"flex",alignItems:"center"}},Xa.createElement("div",{style:{flex:1}},Xa.createElement("span",{style:{display:"inline-flex",border:"1px solid #9096A3",borderRadius:"50%",width:10,height:10,marginRight:5,background:"#9096A3"}}),Xa.createElement("span",null,"\u5224\u65AD\u9898")),((Ia=Vt==null?void 0:Vt.exercise)==null?void 0:Ia.exercise_status)==1&&!(ue!=null&&ue.isadd)&&Xa.createElement("span",{style:{marginLeft:20,marginRight:20,color:"red",cursor:"pointer"},onClick:()=>{Cr()}},Xa.createElement("i",{className:"iconfont icon-piliangshanchu3",style:{fontSize:14,marginRight:6}}),"\u5220\u9664"),Xa.createElement(We.ZP,{onClick:()=>{var Wt;ue.isadd?(ke(!1),gn()):(ln.setFieldsValue(rn(Ct({},ue),{name:ue.question_title,repeat_answer:!ue.repeat_answer,choices:(Wt=ue==null?void 0:ue.question_choices)==null?void 0:Wt.map(un=>rn(Ct({},un),{is_answer:un!=null&&un.standard_boolean?1:0}))})),ke(!1))}},"\u53D6\u6D88"),Xa.createElement(dt.Z,{overlayClassName:he.shake,open:Yt,placement:"bottom",color:"rgba(244,156,14,0.19)",title:Xa.createElement("div",{style:{color:"#FF841A",fontSize:"14px"}},Xa.createElement("i",{className:"iconfont icon-tishi11 mr5 font14"}),"\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u8BD5\u9898\u3002")},Xa.createElement(We.ZP,{type:"primary",className:"ml20",onClick:()=>{ln.submit()},loading:Ln},"\u4FDD\u5B58"))),Xa.createElement("div",{style:{maxHeight:"calc(100vh - 148px)",overflowY:"auto",marginTop:"10px",paddingRight:"5px"}},Xa.createElement(Pe.default.Item,{className:he.scoreinput,name:"question_score",label:"\u5206\u503C",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5206\u503C"}]},Xa.createElement(Fe.Z,{onBlur:Wt=>{Wt.target.value==="0"&&Te.ZP.error("\u5206\u503C\u5FC5\u987B\u5927\u4E8E0\u4E14\u5C0F\u4E8E\u7B49\u4E8E100")},style:{width:150},precision:1,placeholder:"\u8BF7\u8F93\u5165\u5206\u503C",max:100,min:.1})),Xa.createElement(qr.Z,{form:ln,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u5224\u65AD\u9898\u9898\u5E72\u5185\u5BB9",choiceKey:""}),Xa.createElement(Ir,{getTagData:kn,qitem:ue,exerciseitem:Vt,TagDiscipline:Ze,form:ln}))))},Hn=ne(8848),vn={wrap:"wrap___m6v_p",deleteIcon:"deleteIcon___hdYRw",keywordTag:"keywordTag___BLtdn",questionTitleEditorWrap:"questionTitleEditorWrap___fdaK7",choiceWrap:"choiceWrap___wkyUO",choiceIndex:"choiceIndex___tExMq",judgementIndex:"judgementIndex___RMhzJ",setAnswerBtn:"setAnswerBtn___bisIK",activeAnswer:"activeAnswer___MnyyC",activeJudgementAnswer:"activeJudgementAnswer___grGX5",actionWrapper:"actionWrapper___LUawU",addIcon:"addIcon___ckXqe",inputBorder:"inputBorder___nuo0O",placeholder:"placeholder___Dhdir",blankWrapper:"blankWrapper___cnidV",blankInput:"blankInput___iZ5BF",blankInputNumberWrapper:"blankInputNumberWrapper___zlXQc",addBtn:"addBtn___OdgAm",blankIndex:"blankIndex___g4Y7d",baseInputWrapper:"baseInputWrapper___DCOHd",collapseWrapper:"collapseWrapper___SyLrk",panelHeader:"panelHeader___E0il1",open:"open___IFH3V",close:"close___YpIA9",hide:"hide___Nl1W6",scoreByBlankRadio:"scoreByBlankRadio___jpG4i"},Fr=ne(39116),Pr=Object.defineProperty,Or=Object.defineProperties,Ha=Object.getOwnPropertyDescriptors,ma=Object.getOwnPropertySymbols,Qr=Object.prototype.hasOwnProperty,za=Object.prototype.propertyIsEnumerable,Ya=(ue,ke,Ze)=>ke in ue?Pr(ue,ke,{enumerable:!0,configurable:!0,writable:!0,value:Ze}):ue[ke]=Ze,jr=(ue,ke)=>{for(var Ze in ke||(ke={}))Qr.call(ke,Ze)&&Ya(ue,Ze,ke[Ze]);if(ma)for(var Ze of ma(ke))za.call(ke,Ze)&&Ya(ue,Ze,ke[Ze]);return ue},Wa=(ue,ke)=>Or(ue,Ha(ke)),Li=(ue,ke)=>{var Ze={};for(var Vt in ue)Qr.call(ue,Vt)&&ke.indexOf(Vt)<0&&(Ze[Vt]=ue[Vt]);if(ue!=null&&ma)for(var Vt of ma(ue))ke.indexOf(Vt)<0&&za.call(ue,Vt)&&(Ze[Vt]=ue[Vt]);return Ze};const ui=ue=>{var ke=ue,{value:Ze,onChange:Vt,scrollId:Nn}=ke,Cr=Li(ke,["value","onChange","scrollId"]);return E.createElement("div",{id:Nn||""},E.createElement(Fr.Z,Wa(jr({},Cr),{defaultValue:Ze,onChange:(kn,gn)=>{console.log("a:",kn,gn),gn!=null&&gn.length?Vt(kn,gn):Vt(kn)}})))},Sa=({value:ue,onChange:ke,placeholder:Ze,height:Vt=140,isEdit:Nn})=>Nn?E.createElement(Fr.Z,{watch:!0,isFocus:!0,height:Vt,placeholder:Ze,defaultValue:ue,onChange:ke}):E.createElement("div",{style:{cursor:"pointer"}},ue?E.createElement(se.Z,{className:vn.inputBorder,value:ue}):E.createElement("div",{className:`${vn.inputBorder} ${vn.placeholder}`},Ze));var ia=ne(5269),$i=Object.defineProperty,ci=Object.defineProperties,ja=Object.getOwnPropertyDescriptors,ai=Object.getOwnPropertySymbols,wi=Object.prototype.hasOwnProperty,ii=Object.prototype.propertyIsEnumerable,Da=(ue,ke,Ze)=>ke in ue?$i(ue,ke,{enumerable:!0,configurable:!0,writable:!0,value:Ze}):ue[ke]=Ze,Di=(ue,ke)=>{for(var Ze in ke||(ke={}))wi.call(ke,Ze)&&Da(ue,Ze,ke[Ze]);if(ai)for(var Ze of ai(ke))ii.call(ke,Ze)&&Da(ue,Ze,ke[Ze]);return ue},oi=(ue,ke)=>ci(ue,ja(ke)),xo=(ue,ke)=>{var Ze={};for(var Vt in ue)wi.call(ue,Vt)&&ke.indexOf(Vt)<0&&(Ze[Vt]=ue[Vt]);if(ue!=null&&ai)for(var Vt of ai(ue))ke.indexOf(Vt)<0&&ii.call(ue,Vt)&&(Ze[Vt]=ue[Vt]);return Ze};const Bo=["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],Ei=({value:ue,onChange:ke,choiceTextKey:Ze,answerKey:Vt,index:Nn,isEdit:Cr,setInputActive:kn,form:gn,choiceOptionsPath:Yt,allowChangeMode:Ln,showAddIcon:Ia,addItem:ln,deleteItem:Wt})=>{const un=(ue==null?void 0:ue[Vt])===1,er=()=>{const Zn=gn.getFieldValue(Yt);gn.setFieldValue(Yt,Zn.map(qn=>oi(Di({},qn),{[Vt]:0})))},Xn=()=>{un?ke(oi(Di({},ue),{[Vt]:0})):(Ln||er(),ke(oi(Di({},ue),{[Vt]:1})))};return E.createElement(xr.Z,{className:vn.choiceWrap,align:"middle",wrap:!1},E.createElement(ia.Z,{onClick:Xn,className:`${vn.choiceIndex} ${un?vn.activeAnswer:""}`},Bo[Nn]),E.createElement(ia.Z,{flex:1,className:`${vn.editorWrap} ml15`,onClick:kn},E.createElement(Sa,{height:155,placeholder:"\u8BF7\u60A8\u8F93\u5165\u9009\u9879",isEdit:Cr,value:ue==null?void 0:ue[Ze],onChange:Zn=>{ke(oi(Di({},ue),{[Ze]:Zn}))}})),E.createElement(ia.Z,{flex:"0 0 auto",className:"ml15"},E.createElement("div",{onClick:Xn,className:`${vn.setAnswerBtn} ${un?vn.activeAnswer:""}`},un?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")),E.createElement(ia.Z,{className:vn.actionWrapper},E.createElement(dt.Z,{title:"\u65B0\u589E\u53C2\u8003\u7B54\u6848"},E.createElement(at.Z,{className:vn.addIcon,onClick:ln,style:{visibility:Ia?"visible":"hidden"}})),E.createElement(dt.Z,{title:"\u5220\u9664"},E.createElement(fe.Z,{className:vn.deleteIcon,onClick:Wt,style:{visibility:Nn>1?"visible":"hidden"}}))))},Qi=({questionTitlePlaceholder:ue,titleKey:ke,choiceKey:Ze,analysisKey:Vt,choiceTextKey:Nn,answerKey:Cr,choiceOptionsPath:kn,allowChangeMode:gn=!0,form:Yt,showAnalysis:Ln=!0})=>{const[Ia,ln]=(0,E.useState)(),[Wt,un]=(0,E.useState)(!1);return E.createElement("div",{className:vn.wrap},E.createElement("div",{className:vn.questionTitleEditorWrap},E.createElement(Pe.default.Item,{label:"\u9898\u5E72",name:ke,labelCol:{span:24},rules:[{required:!0}]},E.createElement(ui,{scrollId:Array.isArray(ke)?ke.join("_"):`${ke}`,watch:!0,height:140,placeholder:ue}))),E.createElement(Pe.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}}),E.createElement(Pe.default.List,{name:Ze,rules:[{validator(er,Xn){const Zn=Xn.some(yn=>yn[Cr]===1),qn=Xn.findIndex(yn=>{var lr;return((lr=yn[Nn])==null?void 0:lr.length)<=0});return qn!==-1?Promise.reject(new Error(`\u8BF7\u5148\u8F93\u5165${Bo[qn]}\u9009\u9879\u7684\u5185\u5BB9`)):Zn?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},(er,{add:Xn,remove:Zn})=>E.createElement("div",{id:Array.isArray(kn)?kn.join("_"):`${kn}`},er.map((qn,yn)=>{var lr=qn,{key:Dr,name:dr}=lr,ki=xo(lr,["key","name"]);const Gi=Ia===Dr,Ui=()=>{ln(Dr)},_o=yn<14&&yn===er.length-1,Tr=()=>Xn({[Nn]:"",[Cr]:0}),Mi=()=>Zn(dr);return E.createElement(Pe.default.Item,oi(Di({},ki),{key:Dr,name:dr,noStyle:!0}),E.createElement(Ei,{choiceTextKey:Nn,answerKey:Cr,index:yn,isEdit:Gi,setInputActive:Ui,form:Yt,choiceOptionsPath:kn,allowChangeMode:gn,showAddIcon:_o,addItem:Tr,deleteItem:Mi}))}),er.length<15&&E.createElement("div",{className:`${vn.addBtn} mb30`,onClick:()=>Xn({[Nn]:"",[Cr]:0})},"\u6DFB\u52A0\u9009\u9879"))),Ln&&E.createElement("div",{onClick:()=>un(!0)},E.createElement(Pe.default.Item,{name:Vt,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},E.createElement(Sa,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Wt}))))};var ga=ne(59301),Ri=Object.defineProperty,Pi=Object.defineProperties,Fo=Object.getOwnPropertyDescriptors,Bi=Object.getOwnPropertySymbols,Fi=Object.prototype.hasOwnProperty,So=Object.prototype.propertyIsEnumerable,De=(ue,ke,Ze)=>ke in ue?Ri(ue,ke,{enumerable:!0,configurable:!0,writable:!0,value:Ze}):ue[ke]=Ze,jt=(ue,ke)=>{for(var Ze in ke||(ke={}))Fi.call(ke,Ze)&&De(ue,Ze,ke[Ze]);if(Bi)for(var Ze of Bi(ke))So.call(ke,Ze)&&De(ue,Ze,ke[Ze]);return ue},hn=(ue,ke)=>Pi(ue,Fo(ke)),Cn=(ue,ke)=>{var Ze={};for(var Vt in ue)Fi.call(ue,Vt)&&ke.indexOf(Vt)<0&&(Ze[Vt]=ue[Vt]);if(ue!=null&&Bi)for(var Vt of Bi(ue))ke.indexOf(Vt)<0&&So.call(ue,Vt)&&(Ze[Vt]=ue[Vt]);return Ze};const _t=({value:ue,onChange:ke,position:Ze,removeBlank:Vt})=>{const Nn=kn=>{$e.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:"\u786E\u8BA4\u8981\u5220\u9664\u8FD9\u4E2A\u53C2\u8003\u7B54\u6848\u5417\uFF1F",className:vn.modal,onOk:()=>{const gn=[...ue];gn.splice(kn,1),gn.length===0?Vt(Ze-1):ke(gn)}})},Cr=()=>{const kn=[...ue];kn.push(""),ke(kn)};return ga.createElement(xr.Z,{className:"ml20"},ga.createElement(ia.Z,{flex:1},ue==null?void 0:ue.map((kn,gn)=>ga.createElement(xr.Z,{key:`${kn}_${gn}`,className:"mb20"},ga.createElement(_e.default.TextArea,{style:{flex:1,minHeight:44},defaultValue:kn,autoSize:{maxRows:3},maxLength:1e3,onBlur:Yt=>{const Ln=[...ue],Ia=Yt.target.value.trim();Ln[gn]=Ia,ke(Ln)}}),ga.createElement(dt.Z,{title:"\u5220\u9664"},ga.createElement(fe.Z,{className:vn.deleteIcon,style:{marginLeft:15,visibility:Ze===1&&gn===0?"hidden":"visible"},onClick:()=>Nn(gn)})),ga.createElement(dt.Z,{title:"\u65B0\u589E\u7B54\u6848"},ga.createElement(at.Z,{style:{color:"#2A5DD8",fontSize:16,marginLeft:15,visibility:gn===0?"visible":"hidden"},onClick:()=>{Cr()}}))))))},$t=({value:ue=!0,onChange:ke})=>ga.createElement(pa.Z,{checked:!ue,onChange:Ze=>{ke(!Ze)}}),Ut=({questionTitlePlaceholder:ue,form:ke,name:Ze,scoreByBlank:Vt,answerKey:Nn,titleKey:Cr="name",analysisKey:kn="analysis",isOrdered:gn="is_ordered"})=>{var Yt,Ln;const[Ia,ln]=(0,E.useState)(!1),Wt=()=>{const yn=ke.getFieldValue(["sub_item_banks",...Nn]);ke.setFieldValue(["sub_item_banks",...Nn],yn==null?void 0:yn.map((lr,Dr)=>hn(jt({},lr),{position:Dr+1})))},un=(0,E.useRef)(),er=(yn,lr)=>{for(let Dr=0;Dr<yn;Dr++)un.current({position:null,answer_text:[""]},lr+Dr);Wt()},Xn=(0,E.useRef)(),Zn=yn=>{Xn.current(yn),Wt()},qn=(Ln=(Yt=ke.getFieldValue("sub_item_banks"))==null?void 0:Yt[Nn==null?void 0:Nn[0]])==null?void 0:Ln[Nn==null?void 0:Nn[1]];return ga.createElement("div",{className:vn.wrap},ga.createElement("div",{className:vn.questionTitleEditorWrap},ga.createElement(Pe.default.Item,{label:"\u9898\u5E72",name:Cr,labelCol:{span:24},rules:[{required:!0}]},ga.createElement(ui,{scrollId:"name",watch:!0,height:140,placeholder:ue,showNullButton:!0,onAddBlank:()=>{const yn=ke.getFieldValue(["sub_item_banks",...Nn]);er(1,yn==null?void 0:yn.length)}}))),ga.createElement(Pe.default.List,{name:Nn,rules:[{validator(yn,lr){if((lr==null?void 0:lr.length)===0)return Promise.reject(new Error("\u8BF7\u5148\u5728\u9898\u5E72\u4E2D\u63D2\u5165\u586B\u7A7A\u9879"));for(const Dr of lr){const{answer_text:dr}=Dr||{};if(dr!=null&&dr.some(ki=>(ki==null?void 0:ki.length)===0))return Promise.reject(new Error("\u586B\u7A7A\u9879\u7B54\u6848\u4E0D\u80FD\u4E3A\u7A7A"))}return Promise.resolve()}}]},(yn,{add:lr,remove:Dr},{errors:dr})=>(un.current=lr,Xn.current=Dr,ga.createElement(ga.Fragment,null,ga.createElement(Pe.default.Item,{label:ga.createElement("span",null,"\u586B\u7A7A\u9879\u7B54\u6848"),required:!0,labelCol:{span:24}}),yn.map((ki,Gi)=>{var Ui=ki,{key:_o,name:Tr}=Ui,Mi=Cn(Ui,["key","name"]);return ga.createElement(xr.Z,{key:_o,align:"top"},ga.createElement(ia.Z,{flex:"0 0 auto",className:`${vn.blankIndex} pt5`},"\u586B\u7A7A\u9879",Gi+1),ga.createElement(ia.Z,{flex:1},ga.createElement(xr.Z,{align:"top",justify:"space-between"},ga.createElement(ia.Z,{flex:1},ga.createElement(Pe.default.Item,hn(jt({},Mi),{name:[Tr,"answer_text"],noStyle:!0}),ga.createElement(_t,{removeBlank:Zn,position:Gi+1}))),(ke==null?void 0:ke.getFieldValue(["sub_item_banks",...Vt]))&&ga.createElement(ia.Z,{flex:"224px",style:{margin:"-2px 0 0 20px"}},ga.createElement(Pe.default.Item,hn(jt({},Mi),{name:[Tr,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:vn.blankInputNumberWrapper}),ga.createElement(Fe.Z,{onChange:()=>{var eo,tr;let yo=ke==null?void 0:ke.getFieldValue(["sub_item_banks",Nn==null?void 0:Nn[0],"standard_answers"]),Lo=0;for(let Io in yo)(eo=yo[Io])!=null&&eo.score&&(Lo+=Number((tr=yo[Io])==null?void 0:tr.score));ke==null||ke.setFieldValue(["sub_item_banks",Nn==null?void 0:Nn[0],"question_score"],Lo)},className:vn.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5206\u503C"})))),ga.createElement(Pe.default.Item,hn(jt({},Mi),{name:[Tr,"position"],noStyle:!0}),ga.createElement(_e.default,{type:"hidden"}))))})))),ga.createElement(We.ZP,{className:"mb20",onClick:()=>er(1,qn==null?void 0:qn.length),type:"primary",shape:"round"},"\u65B0\u589E\u586B\u7A7A\u9879"),ga.createElement(xr.Z,{align:"middle"},ga.createElement(Pe.default.Item,{name:[Ze,"downcase"],valuePropName:"checked"},ga.createElement(pa.Z,null)),ga.createElement(ia.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u5B57\u6BCD\u5927\u5C0F\u5199")),ga.createElement(xr.Z,{align:"middle"},ga.createElement(Pe.default.Item,{name:[Ze,"no_space"],valuePropName:"checked"},ga.createElement(pa.Z,null)),ga.createElement(ia.Z,{className:"ml10"},"\u5224\u5206\u65F6\u5FFD\u7565\u7B54\u6848\u4E2D\u7684\u7A7A\u683C")),(qn==null?void 0:qn.length)>1&&ga.createElement(xr.Z,{align:"middle",className:(qn==null?void 0:qn.length)>1?"mb30":`${vn.hide}`},ga.createElement(Pe.default.Item,{name:gn},ga.createElement($t,null)),ga.createElement(ia.Z,{className:"ml10"},"\u5141\u8BB8\u5B66\u751F\u6BCF\u4E2A\u586B\u7A7A\u7684\u7B54\u6848\u4E0E\u6807\u51C6\u7B54\u6848\u7684\u987A\u5E8F\u4E0D\u4E00\u81F4")),ga.createElement("div",{onClick:()=>ln(!0)},ga.createElement(Pe.default.Item,{name:kn,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},ga.createElement(Sa,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Ia}))))};var an=Object.defineProperty,qt=Object.defineProperties,An=Object.getOwnPropertyDescriptors,fr=Object.getOwnPropertySymbols,cr=Object.prototype.hasOwnProperty,$n=Object.prototype.propertyIsEnumerable,Pa=(ue,ke,Ze)=>ke in ue?an(ue,ke,{enumerable:!0,configurable:!0,writable:!0,value:Ze}):ue[ke]=Ze,ta=(ue,ke)=>{for(var Ze in ke||(ke={}))cr.call(ke,Ze)&&Pa(ue,Ze,ke[Ze]);if(fr)for(var Ze of fr(ke))$n.call(ke,Ze)&&Pa(ue,Ze,ke[Ze]);return ue},Ba=(ue,ke)=>qt(ue,An(ke)),bi=(ue,ke)=>{var Ze={};for(var Vt in ue)cr.call(ue,Vt)&&ke.indexOf(Vt)<0&&(Ze[Vt]=ue[Vt]);if(ue!=null&&fr)for(var Vt of fr(ue))ke.indexOf(Vt)<0&&$n.call(ue,Vt)&&(Ze[Vt]=ue[Vt]);return Ze};const Hi={\u6B63\u786E:"T",\u9519\u8BEF:"F"},uo=({value:ue,onChange:ke,form:Ze,choiceKey:Vt})=>{const Nn=(ue==null?void 0:ue.is_answer)===1,Cr=ue==null?void 0:ue.choice_text,kn=()=>{var gn;const Yt=(gn=Ze==null?void 0:Ze.getFieldValue(["sub_item_banks",...Vt]))==null?void 0:gn.map(Ln=>({choice_text:Ln.choice_text,is_answer:0}));Ze==null||Ze.setFieldValue(["sub_item_banks",...Vt],Yt),ke(Ba(ta({},ue),{is_answer:1}))};return E.createElement(xr.Z,{className:vn.choiceWrap,align:"middle",wrap:!1},E.createElement(ia.Z,{onClick:kn,className:`${vn.choiceIndex} ${vn.judgementIndex} ${Nn?vn.activeAnswer:""}`},Hi[Cr]),E.createElement(ia.Z,{flex:1,className:`${vn.editorWrap} ml15`},E.createElement("div",{className:`${vn.inputBorder} ${vn.placeholder} ${Nn?vn.activeJudgementAnswer:""}`},Cr)),E.createElement(ia.Z,{flex:"0 0 auto",className:"ml15"},E.createElement("div",{onClick:kn,className:`${vn.setAnswerBtn} ${Nn?vn.activeAnswer:""}`},Nn?"\u6B63\u786E\u7B54\u6848":"\u8BBE\u4E3A\u7B54\u6848")))},pl=({questionTitlePlaceholder:ue,choiceKey:ke="choices",form:Ze,titleKey:Vt="name",analysisKey:Nn="analysis"})=>{const[Cr,kn]=(0,E.useState)(!1);return E.createElement("div",{className:vn.wrap},E.createElement("div",{className:vn.questionTitleEditorWrap},E.createElement(Pe.default.Item,{label:"\u9898\u5E72",name:Vt,labelCol:{span:24},rules:[{required:!0}]},E.createElement(ui,{scrollId:"name",watch:!0,height:140,placeholder:ue}))),E.createElement(Pe.default.Item,{label:"\u7B54\u6848\u9009\u9879",required:!0,labelCol:{span:24}},E.createElement(Pe.default.List,{name:ke,rules:[{validator(gn,Yt){return Yt.some(Ia=>(Ia==null?void 0:Ia.is_answer)===1)?Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u6B63\u786E\u7B54\u6848"))}}]},gn=>E.createElement("div",{id:"choices"},gn.map(Yt=>{var Ln=Yt,{key:Ia,name:ln}=Ln,Wt=bi(Ln,["key","name"]);return E.createElement(Pe.default.Item,Ba(ta({},Wt),{key:Ia,name:ln,noStyle:!0}),E.createElement(uo,{form:Ze,choiceKey:ke}))})))),E.createElement("div",{onClick:()=>kn(!0)},E.createElement(Pe.default.Item,{name:Nn,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},E.createElement(Sa,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:Cr}))))};var ol=ne(96599),ll={ai_config:"ai_config___cJ8LY",znpy:"znpy___RTAAN",pfbz_ts:"pfbz_ts___ux6Ec",btns_pfbz:"btns_pfbz___QFXM_",lable_name1:"lable_name1___c_vnV",h_lh_40:"h_lh_40___ptAW7"},nl=ne(25638),Do=ne(9202),co=ne(59301);const jl=({qitem:ue,form:ke,exercise:Ze,loading:Vt,dispatch:Nn,aiReviewSettings:Cr=null})=>co.createElement("div",{className:ll.ai_config},co.createElement("div",{style:{lineHeight:"32px",paddingBottom:8}},"\u8BC4\u5206\u6807\u51C6"),co.createElement("div",{className:ll.pfbz_ts},co.createElement("div",{style:{color:"#333"}},"\u63D0\u793A\uFF1A\u53C2\u8003\u7B54\u6848\u548C\u9898\u76EE\u89E3\u6790\u8D8A\u5B8C\u5584\uFF0CAI\u667A\u80FD\u8BC4\u9605\u5C31\u8D8A\u7CBE\u51C6~"),co.createElement("div",{className:"flex"},co.createElement("div",{className:ll.btns_pfbz,onClick:()=>{Nn({type:"exercise/setActionTabs",payload:{key:"\u6D4B\u8BD5AI\u8BC4\u5206",questionId:ue==null?void 0:ue.question_id,ai_review_settings:ke.getFieldValue(Cr||"ai_review_settings")}})}},co.createElement("img",{src:nl.Z}),"\u6D4B\u8BD5AI\u8BC4\u5206"))),co.createElement("div",{style:{background:"#F6F7F9"}},co.createElement(Pe.default.List,{name:Cr||"ai_review_settings"},(kn,{add:gn,remove:Yt})=>kn.map((Ln,Ia)=>{var ln;return co.createElement(xr.Z,{key:Ln.key,style:{padding:"5px 10px 5px 15px"}},co.createElement(ia.Z,{className:ll.lable_name1},"\u8BC4\u5206\u70B9"),co.createElement(ia.Z,null,co.createElement(Pe.default.Item,{className:"ml10",name:[Ln.name,"name"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8BC4\u5206\u70B9"}]},co.createElement(_e.default,{onChange:Wt=>{ke.setFieldValue([Ln.name,"content"],Wt.target.value)},placeholder:"\u8BF7\u8F93\u5165\u6700\u591A10\u5B57\u7B26",size:"large",style:{width:142},maxLength:10,className:"mr15"}))),co.createElement(ia.Z,{className:ll.lable_name1},"\u8BC4\u5206\u6807\u51C6"),co.createElement(ia.Z,null,co.createElement(Pe.default.Item,{className:"ml10",name:[Ln.name,"content"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8BC4\u5206\u6807\u51C6"}]},co.createElement(_e.default,{onChange:Wt=>{ke.setFieldValue([Ln.name,"content"],Wt.target.value)},placeholder:"\u8BF7\u8F93\u5165\u8BC4\u5206\u6807\u51C6",size:"large",style:{width:Cr?232:318},className:"mr15",maxLength:500}))),co.createElement(ia.Z,{className:ll.lable_name1},"\u6743\u91CD"),co.createElement(ia.Z,null,co.createElement(Pe.default.Item,{className:"ml10",name:[Ln.name,"weight"],rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u6743\u91CD"},{pattern:/^(?!0(\.0+)?$)(\d+(\.\d)?)$/,message:"\u6700\u591A\u4FDD\u7559\u4E00\u4F4D\u5C0F\u6570"}]},co.createElement(Fe.Z,{value:ke.getFieldValue([Ln.name,"weight"]),onChange:Wt=>{Number.isInteger(Wt)||ke.setFieldValue([Ln.name,"weight"],parseFloat(Wt).toFixed(2))},size:"large",addonAfter:"%",placeholder:"\u8BF7\u8F93\u5165\u6743\u91CD",min:.01,step:1,max:100,style:{width:"110px"}}))),co.createElement(xr.Z,{className:(ln=ll)==null?void 0:ln.h_lh_40},co.createElement(ia.Z,null,co.createElement("i",{className:"iconfont icon-tianjiatimu ml10 current",style:{color:"#00B187"},onClick:()=>{if(kn.length>=10)return Te.ZP.info("\u6700\u591A\u53EA\u80FD\u6DFB\u52A010\u4E2A\u8BC4\u5206\u70B9");gn()}})),Ia>0&&co.createElement(ia.Z,null,co.createElement("i",{className:"iconfont icon-shanjian1 ml10 current",style:{color:"#E30000"},onClick:()=>{Yt(Ln.name)}}))))}))),co.createElement(Do.Z,null));var yl=(0,ve.connect)(({exercise:ue,loading:ke})=>({exercise:ue,loading:ke.effects}))(jl),Ul=Object.defineProperty,ql=Object.defineProperties,kl=Object.getOwnPropertyDescriptors,hl=Object.getOwnPropertySymbols,Go=Object.prototype.hasOwnProperty,ts=Object.prototype.propertyIsEnumerable,Ts=(ue,ke,Ze)=>ke in ue?Ul(ue,ke,{enumerable:!0,configurable:!0,writable:!0,value:Ze}):ue[ke]=Ze,ns=(ue,ke)=>{for(var Ze in ke||(ke={}))Go.call(ke,Ze)&&Ts(ue,Ze,ke[Ze]);if(hl)for(var Ze of hl(ke))ts.call(ke,Ze)&&Ts(ue,Ze,ke[Ze]);return ue},vs=(ue,ke)=>ql(ue,kl(ke)),Us=(ue,ke)=>{var Ze={};for(var Vt in ue)Go.call(ue,Vt)&&ke.indexOf(Vt)<0&&(Ze[Vt]=ue[Vt]);if(ue!=null&&hl)for(var Vt of hl(ue))ke.indexOf(Vt)<0&&ts.call(ue,Vt)&&(Ze[Vt]=ue[Vt]);return Ze};const Ls=ue=>{var ke=ue,{value:Ze,onChange:Vt}=ke,Nn=Us(ke,["value","onChange"]);const Cr=kn=>{Vt([kn])};return E.createElement(Fr.Z,vs(ns({},Nn),{defaultValue:Ze==null?void 0:Ze[0],onChange:Cr}))},Rs=ue=>{if(!ue)return!1;let ke=new RegExp("[ `~!@#$^&*()={}':;,\\[\\].<>/?~\uFF01@#\uFFE5\u2026\u2026&*\uFF08\uFF09\u2014\u3010\u3011\u2018\uFF1B\uFF1A\u201D\u201C\u3002\uFF0C\u3001\uFF1F\u300C\u300D\u300E\u300F_\\+\\-\xB7%\u300A\u300B]|[\\\\/]");return ue==="|"?(Te.ZP.warning("\u5173\u952E\u8BCD\u4E0D\u80FD\u53EA\u8F93\u5165\u4E00\u4E2A\u201C|\u201D\u5B57\u7B26\uFF01"),!1):!0},Zs=({value:ue=[],onClose:ke})=>E.createElement(ol.default,{closable:!0,onClose:ke,className:vn.keywordTag},E.createElement("pre",{style:{margin:"0px",whiteSpace:"pre-wrap"}},ue.join(" \u6216 "))),Ao=({questionTitlePlaceholder:ue,form:ke,showKeywords:Ze,isMustKeyWords:Vt=Ze,titleKey:Nn="name",analysisKey:Cr="analysis",answerTexts:kn="answer_texts",keywords:gn="keywords",useKeywords:Yt="use_keywords",indexs:Ln,qitem:Ia,exerciseitem:ln,aiReviewSettings:Wt})=>{var un,er,Xn,Zn,qn;const[yn,lr]=(0,E.useState)(!1),[Dr,dr]=(0,E.useState)(""),ki=(er=(un=ke.getFieldValue("sub_item_banks"))==null?void 0:un[Yt==null?void 0:Yt[0]])==null?void 0:er[Yt==null?void 0:Yt[1]],Gi=(Zn=(Xn=ke.getFieldValue("sub_item_banks"))==null?void 0:Xn[Yt==null?void 0:Yt[0]])==null?void 0:Zn.question_score;return E.createElement("div",{className:vn.wrap},E.createElement("div",{className:vn.questionTitleEditorWrap},E.createElement(Pe.default.Item,{label:"\u9898\u5E72",name:Nn,labelCol:{span:24},rules:[{required:!0}]},E.createElement(ui,{scrollId:"name",watch:!0,height:140,placeholder:ue}))),E.createElement(Pe.default.Item,{label:"\u53C2\u8003\u7B54\u6848",name:kn,labelCol:{span:24}},E.createElement(Ls,{watch:!0,height:140,placeholder:"\u8BF7\u7F16\u8F91\u53C2\u8003\u7B54\u6848\uFF08\u975E\u5FC5\u586B\uFF09"})),Ze&&!Vt&&E.createElement(Pe.default.Item,{hidden:!0,name:Yt,valuePropName:"checked"},E.createElement(pa.Z,{defaultChecked:!0})),Ze&&Vt&&E.createElement(xr.Z,{align:"middle",className:"mb30"},E.createElement(Pe.default.Item,{name:Yt,valuePropName:"checked"},E.createElement(pa.Z,null)),E.createElement(ia.Z,{className:"ml10"},"\u5F00\u542F\u5173\u952E\u8BCD\u81EA\u52A8\u5224\u5206"),E.createElement(ia.Z,null,E.createElement(dt.Z,{placement:"right",title:"\u9009\u4E2D\u540E\uFF0C\u9700\u8981\u8BBE\u7F6E\u6BCF\u4E2A\u5173\u952E\u8BCD\u7684\u5206\u503C\uFF0C\u7CFB\u7EDF\u4F1A\u6839\u636E\u8BBE\u7F6E\u7684\u5173\u952E\u8BCD\u8FDB\u884C\u81EA\u52A8\u5224\u5206\uFF1B \u6240\u6709\u5173\u952E\u8BCD\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u5C0F\u4E8E\u7B49\u4E8E\u5C0F\u9898\u5206\u503C\u3002"},E.createElement(Jn.Z,{style:{color:"#3061D0",marginLeft:6,cursor:"pointer"}})))),(ki||!Vt)&&E.createElement(Pe.default.List,{name:gn,rules:[{validator(Ui,_o){return Vt?_o!=null&&_o.length?(_o==null?void 0:_o.reduce((Mi,eo)=>Mi+eo.score,0))>parseFloat(Gi)?Promise.reject(new Error("\u6240\u6709\u5173\u952E\u8BCD\u7684\u5206\u503C\u4E4B\u548C\u5FC5\u987B\u5C0F\u4E8E\u7B49\u4E8E\u8BE5\u5C0F\u9898\u7684\u5206\u503C")):Promise.resolve():Promise.reject(new Error("\u8BF7\u8BBE\u7F6E\u5224\u5206\u5173\u952E\u8BCD")):Promise.resolve()}}]},(Ui,{add:_o,remove:Tr})=>E.createElement(E.Fragment,null,E.createElement("div",{className:`${vn.title} mb10`},Vt?"\u5173\u952E\u8BCD":E.createElement("span",{style:{color:"#9096A3"}},"\u5224\u5206\u5173\u952E\u8BCD")),E.createElement(xr.Z,{align:"middle",className:"font14 mb30"},E.createElement(ia.Z,{flex:1},E.createElement(_e.default,{value:Dr,onChange:Mi=>{dr(Mi.target.value)},maxLength:50,allowClear:!0,onPressEnter:Mi=>{var eo,tr,yo,Lo;const Io=`${(eo=Mi.target)==null?void 0:eo.value}`,nr=(yo=(tr=Io==null?void 0:Io.split("|"))==null?void 0:tr.filter(No=>!!No))==null?void 0:yo.map(No=>No==null?void 0:No.trim()),fi=ke.getFieldValue(["sub_item_banks",...gn]),ul=((Lo=fi==null?void 0:fi.map(No=>No==null?void 0:No.keyword))==null?void 0:Lo.flat())||[];for(const No of nr)if(ul.includes(No)){Te.ZP.error("\u4E3A\u907F\u514D\u5224\u5206\u9519\u8BEF\uFF0C\u8BF7\u52FF\u8BBE\u7F6E\u76F8\u540C\u7684\u5173\u952E\u8BCD");return}Rs(Io)&&(_o({keyword:nr,score:1}),dr(""))},className:vn.inputBorder,placeholder:"\u652F\u6301\u8BBE\u7F6E\u591A\u4E2A\u5173\u952E\u8BCD\uFF1B\u5E76\u5217\u5173\u952E\u8BCD\uFF08\u6216\u7684\u5173\u7CFB\uFF09\u8BF7\u7528\u201C|\u201D\u5206\u9694\u5F00"})),E.createElement(ia.Z,{flex:"148px",style:{textAlign:"right",color:"#e99237"}},"\u201C\u56DE\u8F66\u952E\u201D\u4FDD\u5B58\u5173\u952E\u8BCD")),Ui.map(Mi=>{var eo=Mi,{key:tr,name:yo}=eo,Lo=Us(eo,["key","name"]);return E.createElement(xr.Z,{key:tr,className:"mb20",style:{marginRight:148}},E.createElement(ia.Z,{flex:1},E.createElement(xr.Z,{align:"middle",justify:"space-between"},E.createElement(Pe.default.Item,vs(ns({},Lo),{name:[yo,"keyword"]}),E.createElement(Zs,{onClose:()=>Tr(yo)})),Vt&&E.createElement(Pe.default.Item,vs(ns({},Lo),{name:[yo,"score"],label:"\u5206\u503C",rules:[{required:!0}],className:vn.blankInputNumberWrapper}),E.createElement(Fe.Z,{className:vn.blankInput,min:.1,max:100,precision:1,style:{width:"100%"},placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u5206\u6570"})))))}))),E.createElement("div",{onClick:()=>lr(!0)},E.createElement(Pe.default.Item,{name:Cr,label:"\u9898\u76EE\u89E3\u6790",labelCol:{span:24}},E.createElement(Sa,{placeholder:"\u8BF7\u7F16\u8F91\u9898\u76EE\u89E3\u6790\uFF08\u975E\u5FC5\u586B\uFF09",isEdit:yn}))),((qn=ln==null?void 0:ln.exercise)==null?void 0:qn.is_open_ai_review)&&E.createElement(yl,{form:ke,qitem:Ia,aiReviewSettings:Wt}))};var Gr=ne(59301),Ai=Object.defineProperty,mo=Object.defineProperties,Bl=Object.getOwnPropertyDescriptors,Mo=Object.getOwnPropertySymbols,Ci=Object.prototype.hasOwnProperty,To=Object.prototype.propertyIsEnumerable,wl=(ue,ke,Ze)=>ke in ue?Ai(ue,ke,{enumerable:!0,configurable:!0,writable:!0,value:Ze}):ue[ke]=Ze,os=(ue,ke)=>{for(var Ze in ke||(ke={}))Ci.call(ke,Ze)&&wl(ue,Ze,ke[Ze]);if(Mo)for(var Ze of Mo(ke))To.call(ke,Ze)&&wl(ue,Ze,ke[Ze]);return ue},Il=(ue,ke)=>mo(ue,Bl(ke)),Nl=(ue,ke)=>{var Ze={};for(var Vt in ue)Ci.call(ue,Vt)&&ke.indexOf(Vt)<0&&(Ze[Vt]=ue[Vt]);if(ue!=null&&Mo)for(var Vt of Mo(ue))ke.indexOf(Vt)<0&&To.call(ue,Vt)&&(Ze[Vt]=ue[Vt]);return Ze};const{Panel:Wi}=Hn.default,Is=({questionTitlePlaceholder:ue,choiceKey:ke,form:Ze,withScore:Vt,exerciseitem:Nn})=>{const Cr=[{type:0,name:"\u5355\u9009\u9898"},{type:1,name:"\u591A\u9009\u9898"},{type:2,name:"\u5224\u65AD\u9898"},{type:3,name:"\u586B\u7A7A\u9898"},{type:4,name:"\u7B80\u7B54\u9898"},{type:5,name:"\u5B9E\u8BAD\u9898"},{type:6,name:"\u7F16\u7A0B\u9898"},{type:7,name:"\u7EC4\u5408\u9898"},{type:8,name:"\u7A0B\u5E8F\u586B\u7A7A\u9898"}],[kn,gn]=(0,E.useState)(),[Yt,Ln]=(0,E.useState)([]),Ia=Wt=>{Ln(Wt)},ln=({value:Wt})=>Gr.createElement("div",{style:{width:150,paddingLeft:11}},Wt);return Gr.createElement("div",{className:vn.wrap},Gr.createElement("div",{className:vn.questionTitleEditorWrap},Gr.createElement(Pe.default.Item,{label:"\u9898\u5E72",name:"name",labelCol:{span:24},rules:[{required:!0}]},Gr.createElement(ui,{scrollId:"name",watch:!0,height:140,placeholder:ue}))),Gr.createElement(Pe.default.Item,{label:"\u5C0F\u9898",required:!0,labelCol:{span:24}}),Gr.createElement(Pe.default.List,{name:"sub_item_banks",rules:[{validator(Wt,un){return un?Promise.resolve():Promise.reject(new Error("\u8BF7\u6DFB\u52A0\u5C0F\u9898"))}}]},(Wt,{add:un,remove:er,move:Xn})=>{const Zn=Ze.getFieldValue("sub_item_banks");return Gr.createElement(Gr.Fragment,null,Gr.createElement(Hn.default,{className:Wt.length>0?vn.collapseWrapper:"",bordered:!1,activeKey:Yt,onChange:Ia,expandIcon:({isActive:qn})=>Gr.createElement("i",{className:`iconfont icon-weizhankai ${qn?vn.open:vn.close}`,style:{fontSize:14,transition:"all .2s"}})},Wt.map((qn,yn)=>{var lr=qn,{key:Dr,name:dr}=lr,ki=Nl(lr,["key","name"]),Gi,Ui,_o,Tr,Mi,eo,tr,yo,Lo,Io,nr,fi,ul,No;return Gr.createElement(Wi,{className:vn.panel,forceRender:!0,header:Gr.createElement("div",{className:vn.panelHeader},"\u7B2C",yn+1,"\u5C0F\u9898",Gr.createElement("span",null,"\uFF08",((Gi=Zn==null?void 0:Zn[dr])==null?void 0:Gi.question_type)==0?"\u5355\u9009\u9898":((Ui=Zn==null?void 0:Zn[dr])==null?void 0:Ui.question_type)==1?"\u591A\u9009\u9898":((_o=Zn==null?void 0:Zn[dr])==null?void 0:_o.question_type)==3?"\u586B\u7A7A\u9898":((Tr=Zn==null?void 0:Zn[dr])==null?void 0:Tr.question_type)==2?"\u5224\u65AD\u9898":"\u7B80\u7B54\u9898","\uFF09")),key:dr,extra:Gr.createElement(xr.Z,{align:"middle",onClick:pi=>pi.stopPropagation()},((Mi=Zn==null?void 0:Zn[dr])==null?void 0:Mi.question_type)==3&&Gr.createElement(Gr.Fragment,null,Gr.createElement(nt.ZP.Group,{defaultValue:(eo=Zn==null?void 0:Zn[dr])==null?void 0:eo.use_blank_score,className:he.scoreByBlankRadio,style:{marginRight:20},optionType:"button",options:[{label:"\u6309\u7A7A\u7ED9\u5206",value:!0},{label:"\u6309\u9898\u7ED9\u5206",value:!1}],onChange:pi=>{var xl,wo,cl,Qo,Ho;if(Ze==null||Ze.setFieldValue(["sub_item_banks",dr,"use_blank_score"],(xl=pi==null?void 0:pi.target)==null?void 0:xl.value),(wo=pi==null?void 0:pi.target)!=null&&wo.value){let qo=0;for(let $o in(cl=Ze==null?void 0:Ze.getFieldValue(["sub_item_banks",dr]))==null?void 0:cl.standard_answers)qo+=Number((Ho=(Qo=Ze==null?void 0:Ze.getFieldValue(["sub_item_banks",dr]))==null?void 0:Qo.standard_answers[$o])==null?void 0:Ho.score);Ze==null||Ze.setFieldValue(["sub_item_banks",dr,"question_score"],qo||"")}gn(new Date)}}),Gr.createElement(dt.Z,{overlayInnerStyle:{width:460},title:Gr.createElement("div",null,"\u6309\u7A7A\u7ED9\u5206\uFF1A\u9700\u8981\u5206\u522B\u8BBE\u7F6E\u6BCF\u4E2A\u586B\u7A7A\u9879\u7684\u5206\u503C\uFF0C\u586B\u7A7A\u9879\u7B54\u5BF9\u4E4B\u540E\u5219\u83B7\u5F97\u5BF9\u5E94\u7684\u5206\u503C\u3002",Gr.createElement("br",null),"\u6309\u9898\u7ED9\u5206\uFF1A\u9700\u8981\u8BBE\u7F6E\u6574\u4E2A\u5C0F\u9898\u7684\u5206\u503C\uFF0C\u7B54\u5BF9\u5168\u90E8\u586B\u7A7A\u9879\u4E4B\u540E\u624D\u80FD\u83B7\u5F97\u8BE5\u5C0F\u9898\u7684\u5206\u503C\u3002")},Gr.createElement("i",{className:"icon-tishixiaowenhao font18 mr25 c-3061d0"}))),Vt&&Gr.createElement(Pe.default.Item,Il(os({},ki),{rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5C0F\u9898\u5206\u503C"}],label:"\u5206\u503C",name:[dr,"question_score"],className:vn.blankInputNumberWrapper}),((tr=Zn==null?void 0:Zn[dr])==null?void 0:tr.question_type)==3&&((yo=Zn==null?void 0:Zn[dr])!=null&&yo.use_blank_score)?Gr.createElement(ln,null):Gr.createElement(Fe.Z,{className:vn.blankInput,placeholder:"\u8BF7\u8F93\u5165\u5206\u6570",min:.1,precision:1,max:100,style:{width:150}})),Gr.createElement(xr.Z,{align:"middle",className:"pl40",style:{width:82}},yn!==0&&Gr.createElement("div",{onClick:()=>{var pi;Xn(yn,yn-1);const xl=(pi=Ze.getFieldValue("sub_item_banks"))==null?void 0:pi.map((wo,cl)=>(Wt.map((Qo,Ho)=>{cl===Ho&&(wo.q_position=Number(Qo.name)+1)}),wo));Ze.setFieldValue("sub_item_banks",xl)}},Gr.createElement(dt.Z,{title:"\u4E0A\u79FB"},Gr.createElement("i",{className:"iconfont icon-shangyi3 c-grey-999 primary-hover"}))),yn<Wt.length-1&&Gr.createElement("div",{onClick:()=>{var pi;Xn(yn,yn+1);const xl=(pi=Ze.getFieldValue("sub_item_banks"))==null?void 0:pi.map((wo,cl)=>(Wt.map((Qo,Ho)=>{cl===Ho&&(wo.q_position=Number(Qo.name)+1)}),wo));Ze.setFieldValue("sub_item_banks",xl)},className:yn===0?"":"ml10"},Gr.createElement(dt.Z,{title:"\u4E0B\u79FB"},Gr.createElement("i",{className:"iconfont icon-xiayi3 c-grey-999 primary-hover"})))),Gr.createElement(dt.Z,{title:"\u5220\u9664"},Gr.createElement(fe.Z,{className:`${vn.deleteIcon} ml40`,onClick:()=>er(dr)})))},Gr.createElement(Pe.default.Item,Il(os({},ki),{name:dr}),(((Lo=Zn==null?void 0:Zn[dr])==null?void 0:Lo.question_type)==0||((Io=Zn==null?void 0:Zn[dr])==null?void 0:Io.question_type)==1)&&Gr.createElement(Qi,{questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u9009\u62E9\u9898\u9898\u5E72\u5185\u5BB9",allowChangeMode:((nr=Zn==null?void 0:Zn[dr])==null?void 0:nr.question_type)==1,form:Ze,choiceKey:[dr,"choices"],titleKey:[dr,"name"],analysisKey:[dr,"analysis"],choiceOptionsPath:["sub_item_banks",dr,"choices"],choiceTextKey:"choice_text",answerKey:"is_answer"}),((fi=Zn==null?void 0:Zn[dr])==null?void 0:fi.question_type)==3&&Gr.createElement(Ut,{form:Ze,name:dr,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u9898\u5E72\uFF0C\u60A8\u53EF\u4EE5\u7528\u4EFB\u610F\u5B57\u7B26\u8868\u793A\u586B\u7A7A\u9879",scoreByBlank:[dr,"use_blank_score"],titleKey:[dr,"name"],analysisKey:[dr,"analysis"],isOrdered:[dr,"is_ordered"],answerKey:[dr,"standard_answers"],key:kn}),((ul=Zn==null?void 0:Zn[dr])==null?void 0:ul.question_type)==2&&Gr.createElement(pl,{form:Ze,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u5224\u65AD\u9898\u9898\u5E72\u5185\u5BB9",titleKey:[dr,"name"],analysisKey:[dr,"analysis"],choiceKey:[dr,"choices"]}),((No=Zn==null?void 0:Zn[dr])==null?void 0:No.question_type)==4&&Gr.createElement(Ao,{showKeywords:!0,isMustKeyWords:!0,form:Ze,titleKey:[dr,"name"],analysisKey:[dr,"analysis"],answerTexts:[dr,"answer_texts"],useKeywords:[dr,"use_keywords"],keywords:[dr,"keywords"],aiReviewSettings:[dr,"ai_review_settings"],indexs:dr,qitem:Zn==null?void 0:Zn[dr],questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u7B80\u7B54\u9898\u9898\u5E72\u5185\u5BB9",exerciseitem:Nn})))})),Wt.length<20&&Gr.createElement(en.Z,{menu:{items:[{label:Gr.createElement("div",{onClick:()=>{un({name:"",choices:Array.from({length:4},()=>({choice_text:"",is_answer:0})),analysis:"",question_type:0,item_type:"SINGLE"}),Ln([Wt==null?void 0:Wt.length,...Yt])}},"\u5355\u9009\u9898"),key:"1",show:!0},{label:Gr.createElement("div",{onClick:()=>{un({name:"",choices:Array.from({length:4},()=>({choice_text:"",is_answer:0})),analysis:"",question_type:1,item_type:"MULTIPLE"}),Ln([Wt==null?void 0:Wt.length,...Yt])}},"\u591A\u9009\u9898"),key:"2",show:!0},{label:Gr.createElement("div",{onClick:()=>{un({name:"",choices:[{choice_text:"\u6B63\u786E",is_answer:0},{choice_text:"\u9519\u8BEF",is_answer:0}],analysis:"",question_type:2,item_type:"JUDGMENT"}),Ln([Wt==null?void 0:Wt.length,...Yt])}},"\u5224\u65AD\u9898"),key:"3",show:!0},{label:Gr.createElement("div",{onClick:()=>{un({name:"",analysis:"",is_ordered:!0,standard_answers:[{position:1,answer_text:[""]}],question_type:3,item_type:"COMPLETION",use_blank_score:!0,downcase:!0,no_space:!0}),Ln([Wt==null?void 0:Wt.length,...Yt])}},"\u586B\u7A7A\u9898"),key:"4",show:!0},{label:Gr.createElement("div",{onClick:()=>{un({name:"",answer_texts:[],keywords:[],use_keywords:!1,analysis:"",question_type:4,item_type:"SUBJECTIVE"}),Ln([Wt==null?void 0:Wt.length,...Yt])}},"\u7B80\u7B54\u9898"),key:"5",show:!0}].filter(qn=>qn.show).map(qn=>({label:qn.label,key:qn.key}))}},Gr.createElement("div",{className:`${vn.addBtn}`},"\u6DFB\u52A0\u5C0F\u9898")))}))};var sl=ne(59301),rs=Object.defineProperty,gs=Object.defineProperties,js=Object.getOwnPropertyDescriptors,Fl=Object.getOwnPropertySymbols,ys=Object.prototype.hasOwnProperty,Au=Object.prototype.propertyIsEnumerable,Es=(ue,ke,Ze)=>ke in ue?rs(ue,ke,{enumerable:!0,configurable:!0,writable:!0,value:Ze}):ue[ke]=Ze,ds=(ue,ke)=>{for(var Ze in ke||(ke={}))ys.call(ke,Ze)&&Es(ue,Ze,ke[Ze]);if(Fl)for(var Ze of Fl(ke))Au.call(ke,Ze)&&Es(ue,Ze,ke[Ze]);return ue},bs=(ue,ke)=>gs(ue,js(ke)),tc=(ue,ke,Ze)=>new Promise((Vt,Nn)=>{var Cr=Yt=>{try{gn(Ze.next(Yt))}catch(Ln){Nn(Ln)}},kn=Yt=>{try{gn(Ze.throw(Yt))}catch(Ln){Nn(Ln)}},gn=Yt=>Yt.done?Vt(Yt.value):Promise.resolve(Yt.value).then(Cr,kn);gn((Ze=Ze.apply(ue,ke)).next())}),qs=({qitem:ue,setisedit:ke,TagDiscipline:Ze,exerciseitem:Vt,seveeditor:Nn,deleteitem:Cr,getTagData:kn,init:gn,showTip:Yt=!1,saveLoading:Ln=!1})=>{var Ia;const[ln]=Pe.default.useForm(),{unified_ai_setting:Wt,ai_review_settings:un}=Vt==null?void 0:Vt.exercise;(0,E.useEffect)(()=>{var Xn;ln.setFieldsValue(bs(ds({},ue),{name:ue.question_title,sub_item_banks:(Xn=ue.sub_exercise_questions)==null?void 0:Xn.map(Zn=>{var qn,yn;if(Zn.question_type==4){const lr=Wt?un:((qn=Zn==null?void 0:Zn.ai_review_settings)==null?void 0:qn.length)>0?Zn.ai_review_settings:un;Zn.ai_review_settings=lr}return bs(ds({},Zn),{name:Zn.question_title,choices:(yn=Zn==null?void 0:Zn.question_choices)==null?void 0:yn.map(lr=>bs(ds({},lr),{is_answer:lr!=null&&lr.standard_boolean?1:0}))})}),repeat_answer:!ue.repeat_answer}))},[ue]);const er=Xn=>{if(!(Xn!=null&&Xn.length))return!1;const Zn=Xn.map(yn=>{var lr;return(lr=yn.choice_text)==null?void 0:lr.trim().replace(/^\s+|\s+$/g,"")});return new Set(Zn).size!==Zn.length};return sl.createElement("div",null,sl.createElement(Pe.default,{form:ln,colon:!1,onValuesChange:(Xn,Zn)=>{var qn,yn,lr,Dr;if(Xn!=null&&Xn.sub_item_banks){let dr=((qn=ln.getFieldValue("sub_item_banks"))==null?void 0:qn.length)>0&&((lr=(yn=ln.getFieldValue("sub_item_banks"))==null?void 0:yn.map(ki=>{var Gi;if(ki.question_type==3&&(ki!=null&&ki.use_blank_score)){let Ui=0;for(let _o in ki==null?void 0:ki.standard_answers)Ui+=Number((Gi=ki==null?void 0:ki.standard_answers[_o])==null?void 0:Gi.score);return Ui}else return ki.question_score}))==null?void 0:lr.filter(ki=>ki));(dr==null?void 0:dr.length)>0&&ln.setFieldsValue({question_score:(Dr=parseFloat(dr.reduce((ki,Gi)=>parseFloat(ki)+parseFloat(Gi))))==null?void 0:Dr.toFixed(1)})}},onFinish:Xn=>{var Zn,qn;if((Zn=Xn.sub_item_banks)==null?void 0:Zn.some(lr=>lr.question_type===0||lr.question_type===1?er(lr.choices):!1)){Te.ZP.error("\u9009\u62E9\u9898\u9009\u9879\u5185\u5BB9\u4E0D\u80FD\u91CD\u590D\uFF0C\u8BF7\u4FEE\u6539\u540E\u518D\u4FDD\u5B58");return}Nn(bs(ds(ds({},ue),Xn),{question_title:Xn.name,sub_questions:(qn=Xn==null?void 0:Xn.sub_item_banks)==null?void 0:qn.map(lr=>{var Dr,dr,ki,Gi;return(lr==null?void 0:lr.question_type)==3?bs(ds({},lr),{question_title:lr.name,item_type:lr==null?void 0:lr.question_type}):bs(ds({},lr),{question_title:lr.name,question_choices:(dr=(Dr=lr==null?void 0:lr.choices)==null?void 0:Dr.map)==null?void 0:dr.call(Dr,Ui=>Ui.choice_text),standard_answers:(Gi=(ki=lr==null?void 0:lr.choices)==null?void 0:ki.map)==null?void 0:Gi.call(ki,(Ui,_o)=>(Ui==null?void 0:Ui.is_answer)===1&&_o+1).filter(Ui=>Ui),item_type:lr==null?void 0:lr.question_type})})}))},onFinishFailed:Xn=>tc(void 0,null,function*(){var Zn,qn;Te.ZP.error(Xn.errorFields[0].errors[0]),ln.scrollToField((qn=(Zn=Xn==null?void 0:Xn.errorFields)==null?void 0:Zn[0])==null?void 0:qn.name,{behavior:"smooth",block:"center"})})},sl.createElement("div",{style:{display:"flex",alignItems:"center"}},sl.createElement("div",{style:{flex:1}},sl.createElement("span",{style:{display:"inline-flex",border:"1px solid #9096A3",borderRadius:"50%",width:10,height:10,marginRight:5,background:"#9096A3"}}),sl.createElement("span",null,"\u7EC4\u5408\u9898")),((Ia=Vt==null?void 0:Vt.exercise)==null?void 0:Ia.exercise_status)==1&&!(ue!=null&&ue.isadd)&&sl.createElement("span",{style:{marginLeft:20,marginRight:20,color:"red",cursor:"pointer"},onClick:()=>{Cr()}},sl.createElement("i",{className:"iconfont icon-piliangshanchu3",style:{fontSize:14,marginRight:6}}),"\u5220\u9664"),sl.createElement(We.ZP,{onClick:()=>{var Xn;ue.isadd?(ke(!1),gn()):(ln.setFieldsValue(bs(ds({},ue),{name:ue.question_title,sub_item_banks:(Xn=ue.sub_exercise_questions)==null?void 0:Xn.map(Zn=>{var qn;return bs(ds({},Zn),{name:Zn.question_title,choices:(qn=Zn==null?void 0:Zn.question_choices)==null?void 0:qn.map(yn=>bs(ds({},yn),{is_answer:yn!=null&&yn.standard_boolean?1:0}))})}),repeat_answer:!ue.repeat_answer})),ke(!1))}},"\u53D6\u6D88"),sl.createElement(dt.Z,{overlayClassName:he.shake,open:Yt,placement:"bottom",color:"rgba(244,156,14,0.19)",title:sl.createElement("div",{style:{color:"#FF841A",fontSize:"14px"}},sl.createElement("i",{className:"iconfont icon-tishi11 mr5 font14"}),"\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u8BD5\u9898\u3002")},sl.createElement(We.ZP,{className:"ml20",type:"primary",onClick:()=>{ln.submit()},loading:Ln},"\u4FDD\u5B58"))),sl.createElement("div",{style:{maxHeight:"calc(100vh - 148px)",overflowY:"auto",marginTop:"10px",paddingRight:"5px"}},sl.createElement(wn.Z,{text:"\uFF08\u7EC4\u5408\u9898\u5206\u503C\u7B49\u4E8E\u5404\u5C0F\u9898\u5206\u503C\u4E4B\u548C\uFF09"}),sl.createElement(Is,{form:ln,withScore:!0,choiceKey:"",exerciseitem:Vt,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u7EC4\u5408\u9898\u9898\u5E72\u5185\u5BB9"}),sl.createElement(Ir,{getTagData:kn,qitem:ue,exerciseitem:Vt,TagDiscipline:Ze,form:ln}))))},Ys=ne(15267),Xo=ne(59301),zu=Object.defineProperty,Cu=Object.defineProperties,iu=Object.getOwnPropertyDescriptors,xu=Object.getOwnPropertySymbols,ou=Object.prototype.hasOwnProperty,Yl=Object.prototype.propertyIsEnumerable,_u=(ue,ke,Ze)=>ke in ue?zu(ue,ke,{enumerable:!0,configurable:!0,writable:!0,value:Ze}):ue[ke]=Ze,as=(ue,ke)=>{for(var Ze in ke||(ke={}))ou.call(ke,Ze)&&_u(ue,Ze,ke[Ze]);if(xu)for(var Ze of xu(ke))Yl.call(ke,Ze)&&_u(ue,Ze,ke[Ze]);return ue},Hl=(ue,ke)=>Cu(ue,iu(ke)),wu=(ue,ke,Ze)=>new Promise((Vt,Nn)=>{var Cr=Yt=>{try{gn(Ze.next(Yt))}catch(Ln){Nn(Ln)}},kn=Yt=>{try{gn(Ze.throw(Yt))}catch(Ln){Nn(Ln)}},gn=Yt=>Yt.done?Vt(Yt.value):Promise.resolve(Yt.value).then(Cr,kn);gn((Ze=Ze.apply(ue,ke)).next())}),nu=({qitem:ue,setqitem:ke,setisedit:Ze,TagDiscipline:Vt,exerciseitem:Nn,seveeditor:Cr,deleteitem:kn,showTip:gn,saveLoading:Yt=!1})=>{var Ln,Ia;const[ln]=Pe.default.useForm();return(0,E.useEffect)(()=>{var Wt,un;ln.setFieldsValue(Hl(as({},ue),{name:ue==null?void 0:ue.question_title,choices:(Wt=ue==null?void 0:ue.question_choices)==null?void 0:Wt.map(er=>Hl(as({},er),{standard_boolean:er!=null&&er.standard_boolean?1:0})),repeat_answer:!(ue!=null&&ue.repeat_answer)})),ue.shixun=(un=ue==null?void 0:ue.shixun)==null?void 0:un.map(er=>Hl(as({},er),{defaultscore:er.challenge_score}))},[]),Xo.createElement("div",null,Xo.createElement(Pe.default,{form:ln,colon:!1,onFinish:Wt=>{var un,er;let Xn=Hl(as({},Wt),{question_scores:(un=ue==null?void 0:ue.shixun)==null?void 0:un.map(Zn=>Zn.challenge_score),item_type:ue==null?void 0:ue.question_type,choices:(er=Wt==null?void 0:Wt.choices)==null?void 0:er.map(Zn=>Hl(as({},Zn),{is_answer:Zn.standard_boolean}))});Cr(as(as({},ue),Xn))},onFinishFailed:Wt=>wu(void 0,null,function*(){var un,er;Te.ZP.error(Wt.errorFields[0].errors[0]),ln.scrollToField((er=(un=Wt==null?void 0:Wt.errorFields)==null?void 0:un[0])==null?void 0:er.name,{behavior:"smooth",block:"center"})})},Xo.createElement("div",{style:{display:"flex",alignItems:"center"}},Xo.createElement("div",{style:{flex:1}},Xo.createElement("span",{style:{display:"inline-flex",border:"1px solid #9096A3",borderRadius:"50%",width:10,height:10,marginRight:5,background:"#9096A3"}}),Xo.createElement("span",null,"\u5B9E\u8BAD\u9898")),((Ln=Nn==null?void 0:Nn.exercise)==null?void 0:Ln.exercise_status)==1&&!(ue!=null&&ue.isadd)&&Xo.createElement("span",{style:{marginLeft:20,marginRight:20,color:"red",cursor:"pointer"},onClick:()=>{kn()}},Xo.createElement("i",{className:"iconfont icon-piliangshanchu3",style:{fontSize:14,marginRight:6}}),"\u5220\u9664"),Xo.createElement(We.ZP,{onClick:()=>{var Wt,un;ln.setFieldsValue(Hl(as({},ue),{name:ue==null?void 0:ue.question_title,choices:(Wt=ue==null?void 0:ue.question_choices)==null?void 0:Wt.map(er=>Hl(as({},er),{standard_boolean:er!=null&&er.standard_boolean?1:0})),repeat_answer:!(ue!=null&&ue.repeat_answer)})),ue.shixun=(un=ue==null?void 0:ue.shixun)==null?void 0:un.map(er=>Hl(as({},er),{challenge_score:er.defaultscore})),ke(as({},ue)),Ze(!1)}},"\u53D6\u6D88"),Xo.createElement(dt.Z,{overlayClassName:he.shake,open:gn,placement:"bottom",color:"rgba(244,156,14,0.19)",title:Xo.createElement("div",{style:{color:"#FF841A",fontSize:"14px"}},Xo.createElement("i",{className:"iconfont icon-tishi11 mr5 font14"}),"\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u8BD5\u9898\u3002")},Xo.createElement(We.ZP,{className:"ml20",type:"primary",onClick:()=>wu(void 0,null,function*(){var Wt,un,er;if(((un=(Wt=ue==null?void 0:ue.shixun)==null?void 0:Wt.map)==null?void 0:un.call(Wt,Xn=>Xn.challenge_score).filter(Xn=>Xn).length)<((er=ue==null?void 0:ue.shixun)==null?void 0:er.length)){Te.ZP.info("\u5206\u6570\u4E0D\u80FD\u4E3A\u7A7A");return}ln.submit()}),loading:Yt},"\u4FDD\u5B58"))),Xo.createElement("div",{style:{maxHeight:"calc(100vh - 148px)",overflowY:"auto",marginTop:"10px",paddingRight:"5px"}},Xo.createElement(wn.Z,{text:"\uFF08\u5B9E\u8BAD\u9898\u5206\u503C\u7B49\u4E8E\u5404\u5173\u5361\u5206\u503C\u4E4B\u548C\uFF09"}),Xo.createElement(Pe.default.Item,{label:"\u9898\u5E72",name:"question_title",labelCol:{span:24},rules:[{required:!0}]},Xo.createElement(Fr.Z,{watch:!0,height:140,placeholder:"",defaultValue:ue.question_title})),Xo.createElement(xr.Z,{style:{marginBottom:15},align:"middle",justify:"space-between"},Xo.createElement("div",null,Xo.createElement("span",{style:{color:"red"}},"*"),"\u5173\u5361\u540D\u79F0"),Xo.createElement("a",{href:`/shixuns/${(0,Ys.G5)()?ue.forked_shixun_identifier:ue==null?void 0:ue.shixun_identifier}/challenges?exercise=true`,target:"_blank"},Xo.createElement("i",{onClick:()=>{},className:"iconfont icon-shixunkecheng font14 mr5"}),"\u5B9E\u8BAD\u8BE6\u60C5")),(Ia=ue==null?void 0:ue.shixun)==null?void 0:Ia.map((Wt,un)=>Xo.createElement("div",{style:{display:"flex",marginBottom:20}},Xo.createElement("div",{style:{flex:1}},un+1,"\u3001",Wt.challenge_name),Xo.createElement("div",null,Xo.createElement("span",{style:{color:"red"}},"*"),"\u5206\u503C",Xo.createElement(Fe.Z,{precision:1,value:Wt==null?void 0:Wt.challenge_score,onChange:er=>{const Xn=JSON.parse(JSON.stringify((ue==null?void 0:ue.shixun)||[]));Xn[un].challenge_score=er;const Zn=Xn.every(yn=>!yn.challenge_score),qn=parseFloat(Xn==null?void 0:Xn.map(yn=>yn.challenge_score).reduce((yn,lr)=>parseFloat(yn||0)+parseFloat(lr||0)));ln.setFieldsValue({question_score:Zn?"":qn.toFixed(1)}),ke(Hl(as({},ue),{shixun:Xn}))},max:200,min:.1,style:{marginLeft:10,width:150},placeholder:"\u8BF7\u8F93\u5165\u5206\u503C",size:"middle"})))))))},ca={flex_box_center:"flex_box_center___Vhtb1",flex_space_between:"flex_space_between___k2ZrJ",flex_box_vertical_center:"flex_box_vertical_center___tn6Db",flex_box_center_end:"flex_box_center_end___k3eNX",flex_box_column:"flex_box_column___rsWbi",warp:"warp___UlRJc",indexTag:"indexTag___rjJ1u",normalWrap:"normalWrap___Qm4zY",redio:"redio___VW3yr",redioitem:"redioitem___jAPlJ",redioitemyes:"redioitemyes___VoiQ1",title:"title___Dt2dl",titleyes:"titleyes___Fjh3a",yestag:"yestag___CXrPv",checkbox:"checkbox___CgMU_",checkboxitem:"checkboxitem___PpJ9n",checkboxitemyes:"checkboxitemyes___pCfvZ",bottom:"bottom___BqrmJ",bottomitem:"bottomitem___Qk2rG",left:"left___l29lW",right:"right___nB1XE",completion:"completion___y1m7L",content:"content___AmQy4",items:"items___lIt8e",simple:"simple___zxJLH",shixunWrapper:"shixunWrapper___kAYdL",shixun:"shixun___UE6xS",score:"score___Px5Fq",qtitle:"qtitle___wG7Nn",program:"program___gzKdL",combination:"combination___R0ysn",qtype:"qtype___U0Suy",divname:"divname___guDo9"},ku=ne(70858),Iu=ne(71039),fs=ne(24334),wr=ne(59301);const ls=["A\uFF0E","B\uFF0E","C\uFF0E","D\uFF0E","E\uFF0E","F\uFF0E","G\uFF0E","H\uFF0E","I\uFF0E","J\uFF0E","K\uFF0E","L\uFF0E","M\uFF0E","N\uFF0E","O\uFF0E","P\uFF0E","Q\uFF0E","R\uFF0E","S\uFF0E","T\uFF0E","U\uFF0E","V\uFF0E","W\uFF0E","X\uFF0E","Y\uFF0E","Z\uFF0E"],Fu=[{type:0,name:"\u5355\u9009\u9898"},{type:1,name:"\u591A\u9009\u9898"},{type:2,name:"\u5224\u65AD\u9898"},{type:3,name:"\u586B\u7A7A\u9898"},{type:4,name:"\u7B80\u7B54\u9898"},{type:5,name:"\u5B9E\u8BAD\u9898"},{type:6,name:"\u7F16\u7A0B\u9898"},{type:7,name:"\u7EC4\u5408\u9898"},{type:8,name:"\u7A0B\u5E8F\u586B\u7A7A\u9898"}];var Ou=({qitem:ue,exercise:ke})=>{var Ze,Vt,Nn,Cr,kn,gn,Yt,Ln,Ia,ln,Wt,un,er,Xn,Zn,qn,yn,lr,Dr,dr,ki,Gi,Ui,_o;return wr.createElement("div",{className:ca.warp},((ue==null?void 0:ue.question_type)===0||(ue==null?void 0:ue.question_type)===2)&&wr.createElement("div",{className:ca.normalWrap},(Ze=ue==null?void 0:ue.question_choices)==null?void 0:Ze.map((Tr,Mi)=>wr.createElement("div",{className:ca.redio},!(Tr!=null&&Tr.standard_boolean)&&wr.createElement("span",{className:ca.redioitem}),(Tr==null?void 0:Tr.standard_boolean)&&wr.createElement("i",{className:`${ca.redioitemyes} icon-duigou1`}),wr.createElement("span",{className:`${Tr!=null&&Tr.standard_boolean?ca.titleyes:ca.title} ${ca.indexTag}`},(ue==null?void 0:ue.question_type)===0?ls[Mi]:""),wr.createElement(se.Z,{className:Tr!=null&&Tr.standard_boolean?ca.titleyes:ca.title,value:Tr==null?void 0:Tr.choice_text}),(Tr==null?void 0:Tr.standard_boolean)&&wr.createElement("div",{className:ca.yestag},"\u6B63\u786E\u7B54\u6848")))),(ue==null?void 0:ue.question_type)===1&&wr.createElement("div",{className:ca.normalWrap},(Vt=ue==null?void 0:ue.question_choices)==null?void 0:Vt.map((Tr,Mi)=>wr.createElement("div",{className:ca.checkbox},!(Tr!=null&&Tr.standard_boolean)&&wr.createElement("span",{className:ca.checkboxitem}),(Tr==null?void 0:Tr.standard_boolean)&&wr.createElement("i",{className:`${ca.checkboxitemyes} icon-duigou1`}),wr.createElement("span",{className:`${Tr!=null&&Tr.standard_boolean?ca.titleyes:ca.title} ${ca.indexTag}`},ls[Mi]),wr.createElement(se.Z,{className:Tr!=null&&Tr.standard_boolean?ca.titleyes:ca.title,value:Tr==null?void 0:Tr.choice_text}),(Tr==null?void 0:Tr.standard_boolean)&&wr.createElement("div",{className:ca.yestag},"\u6B63\u786E\u7B54\u6848")))),(ue==null?void 0:ue.question_type)===3&&wr.createElement("div",{className:ca.completion},(Nn=ue==null?void 0:ue.standard_answers)==null?void 0:Nn.map((Tr,Mi)=>{var eo;return wr.createElement(xr.Z,{align:"top"},wr.createElement("span",{className:ca.title},"\u586B\u7A7A\u9879",Mi+1),wr.createElement("div",{className:ca.content},(eo=Tr.answer_text)==null?void 0:eo.map((tr,yo)=>wr.createElement("div",{key:`${ue.question_id}-${yo}`,className:ca.items,style:(Tr==null?void 0:Tr.model)===2?{border:0,padding:0}:{}},(Tr==null?void 0:Tr.model)===1?wr.createElement("pre",{className:"mb0"},tr):wr.createElement(Iu.Z,{value:tr,disabled:!0})))))})),(ue==null?void 0:ue.question_type)===4&&wr.createElement("div",{className:ca.simple},wr.createElement("div",{className:ca.title},"\u53C2\u8003\u7B54\u6848"),wr.createElement("div",{className:"mt10",style:{fontSize:"16px"}},(Cr=ue==null?void 0:ue.answer_texts)!=null&&Cr[0]?wr.createElement(se.Z,{className:ca.content,value:(kn=ue==null?void 0:ue.answer_texts)==null?void 0:kn[0]}):wr.createElement("div",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~")),wr.createElement("div",{className:"mt20 "},wr.createElement("span",{className:ca.title,style:{color:"#3061D0"}},"\u5224\u5206\u65B9\u5F0F"),wr.createElement("span",{style:{color:"#000",marginLeft:10,fontSize:"16px"}},ue!=null&&ue.use_keywords?"\u5173\u952E\u8BCD\u81EA\u52A8\u5224\u5206":"\u624B\u52A8\u5224\u5206"))),(ue==null?void 0:ue.question_type)===5&&wr.createElement("div",{className:ca.shixunWrapper},(gn=ue==null?void 0:ue.shixun)==null?void 0:gn.map((Tr,Mi)=>{var eo,tr;return wr.createElement("div",null,wr.createElement("div",{key:Mi,className:`${ca.shixun} mb30`},wr.createElement("span",{className:ca.score},"\uFF08",Tr==null?void 0:Tr.challenge_score,"\u5206\uFF09"),wr.createElement("span",{className:ca.qtitle},(ue==null?void 0:ue.index)+"."+(Mi+1),"\u3001",Tr==null?void 0:Tr.challenge_name)),((tr=(eo=ke==null?void 0:ke.editData)==null?void 0:eo.exercise)==null?void 0:tr.show_challenge_task_pass)&&wr.createElement(se.Z,{className:ca.content,value:(Tr==null?void 0:Tr.task_pass)||"\u6682\u65E0\u5173\u5361\u63CF\u8FF0"}))})),(ue==null?void 0:ue.question_type)===6&&wr.createElement("div",{className:ca.program,style:{border:!((Ln=(Yt=ke==null?void 0:ke.editData)==null?void 0:Yt.exercise)!=null&&Ln.show_hack_sets)&&!((ln=(Ia=ke==null?void 0:ke.editData)==null?void 0:Ia.exercise)!=null&&ln.show_hack_description)&&"none"}},((un=(Wt=ke==null?void 0:ke.editData)==null?void 0:Wt.exercise)==null?void 0:un.show_hack_sets)&&wr.createElement("div",{style:{marginBottom:10,border:"1px solid #F1F4F9"}},wr.createElement("p",{style:{padding:"0px 10px",height:40,lineHeight:"40px",background:"#F1F4F9",color:"#3061D0"}},wr.createElement("i",{className:"iconfont icon-ceshiyongli"})," \u6D4B\u8BD5\u7528\u4F8B\uFF1A"),wr.createElement(ku.default,{style:{margin:10},columns:[{title:"\u5E8F\u53F7",dataIndex:"name",key:"name",width:"10%",render:(Tr,Mi,eo)=>eo+1},{title:"\u6D4B\u8BD5\u7528\u4F8B\u8F93\u5165",dataIndex:"input",key:"input",width:"40%",render:(Tr,Mi,eo)=>wr.createElement(dt.Z,{title:wr.createElement("pre",null,Tr)},wr.createElement("div",{className:ca.divname},Tr))},{title:"\u6D4B\u8BD5\u7528\u4F8B\u8F93\u51FA",dataIndex:"output",key:"output",width:"40%",render:(Tr,Mi,eo)=>wr.createElement(dt.Z,{title:wr.createElement("pre",null,Tr)}," ",wr.createElement("div",{className:ca.divname},Tr))},{title:"\u662F\u5426\u53EF\u89C1",dataIndex:"visibility_cn",key:"visibility_cn",width:"10%"}],pagination:!1,dataSource:ue==null?void 0:ue.hack_sets})),((Xn=(er=ke==null?void 0:ke.editData)==null?void 0:er.exercise)==null?void 0:Xn.show_hack_description)&&wr.createElement("div",null,wr.createElement(se.Z,{className:ca.content,value:(ue==null?void 0:ue.description)||"- -"}))),(ue==null?void 0:ue.question_type)===7&&((Zn=ue==null?void 0:ue.sub_exercise_questions)==null?void 0:Zn.map((Tr,Mi)=>{var eo,tr,yo,Lo,Io,nr;return wr.createElement("div",{key:Mi},wr.createElement("div",{className:ca.combination},wr.createElement("span",{className:ca.score},Tr==null?void 0:Tr.question_score,"\u5206"),wr.createElement("span",{className:ca.qtype},(eo=Fu.find(fi=>fi.type==Tr.question_type))==null?void 0:eo.name),wr.createElement("span",{className:ca.qtitle},Mi+1,"\u3001",Tr==null?void 0:Tr.question_title)),(Tr.question_type===0||Tr.question_type===2)&&wr.createElement("div",{className:ca.warp,style:{padding:"30px 58px",paddingBottom:0}},wr.createElement("div",null,(tr=Tr==null?void 0:Tr.question_choices)==null?void 0:tr.map((fi,ul)=>wr.createElement("div",{className:ca.redio,key:ul},!(fi!=null&&fi.standard_boolean)&&wr.createElement("span",{className:ca.redioitem}),(fi==null?void 0:fi.standard_boolean)&&wr.createElement("i",{className:`${ca.redioitemyes} icon-duigou1`}),Tr.question_type===2&&wr.createElement("span",{className:`${fi!=null&&fi.standard_boolean?ca.titleyes:ca.title} ${ca.indexTag}`},ls[ul]),wr.createElement(se.Z,{className:fi!=null&&fi.standard_boolean?ca.titleyes:ca.title,value:fi==null?void 0:fi.choice_text}),(fi==null?void 0:fi.standard_boolean)&&wr.createElement("div",{className:ca.yestag},"\u6B63\u786E\u7B54\u6848"))))),Tr.question_type===1&&wr.createElement("div",{className:ca.normalWrap},(yo=Tr==null?void 0:Tr.question_choices)==null?void 0:yo.map((fi,ul)=>wr.createElement("div",{className:ca.checkbox,key:ul},!(fi!=null&&fi.standard_boolean)&&wr.createElement("span",{className:ca.checkboxitem}),(fi==null?void 0:fi.standard_boolean)&&wr.createElement("i",{className:`${ca.checkboxitemyes} icon-duigou1`}),wr.createElement("span",{className:`${fi!=null&&fi.standard_boolean?ca.titleyes:ca.title} ${ca.indexTag}`},ls[ul]),wr.createElement(se.Z,{className:fi!=null&&fi.standard_boolean?ca.titleyes:ca.title,value:fi==null?void 0:fi.choice_text}),(fi==null?void 0:fi.standard_boolean)&&wr.createElement("div",{className:ca.yestag},"\u6B63\u786E\u7B54\u6848")))),Tr.question_type===3&&wr.createElement("div",{className:ca.completion},(Lo=Tr==null?void 0:Tr.standard_answers)==null?void 0:Lo.map((fi,ul)=>{var No;return wr.createElement(xr.Z,{align:"top"},wr.createElement("span",{className:ca.title},"\u586B\u7A7A\u9879",ul+1),wr.createElement("div",{className:ca.content},(No=fi.answer_text)==null?void 0:No.map((pi,xl)=>wr.createElement("div",{key:xl,className:ca.items},wr.createElement("pre",{className:"mb0"},pi)))))})),Tr.question_type===4&&wr.createElement("div",{className:ca.simple},wr.createElement("div",{className:ca.title},"\u53C2\u8003\u7B54\u6848"),wr.createElement("div",{className:"mt10",style:{fontSize:"16px"}},(Io=Tr==null?void 0:Tr.answer_texts)!=null&&Io[0]?wr.createElement(se.Z,{className:ca.content,value:(nr=Tr==null?void 0:Tr.answer_texts)==null?void 0:nr[0]}):wr.createElement("div",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~")),wr.createElement("div",{className:"mt20 "},wr.createElement("span",{className:ca.title,style:{color:"#3061D0"}},"\u5224\u5206\u65B9\u5F0F"),wr.createElement("span",{style:{color:"#000",marginLeft:10,fontSize:"16px"}},Tr!=null&&Tr.use_keywords?"\u5173\u952E\u8BCD\u81EA\u52A8\u5224\u5206":"\u624B\u52A8\u5224\u5206"))))})),(ue==null?void 0:ue.question_type)===8&&wr.createElement("div",null,wr.createElement(se.Z,{disabledFill:!0,className:ca.content,showProgramFill:!0,value:fs.Base64.decode(((qn=ue==null?void 0:ue.program_attr)==null?void 0:qn.code)||"")})),((ue==null?void 0:ue.question_type)<=4||[6,8].includes(ue==null?void 0:ue.question_type))&&wr.createElement("div",{className:ca.bottom},wr.createElement("div",{className:`${ca.bottomitem} mb30`},wr.createElement("span",{className:ca.left},"\u89E3\u6790"),wr.createElement("span",{className:ca.right},ue!=null&&ue.analysis?wr.createElement(se.Z,{value:ue==null?void 0:ue.analysis}):wr.createElement("span",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"))),wr.createElement("div",{className:`${ca.bottomitem} mb30`},wr.createElement("span",{className:ca.left},"\u96BE\u5EA6"),wr.createElement("span",{className:ca.right},(ue==null?void 0:ue.difficulty)===1?"\u7B80\u5355":(ue==null?void 0:ue.difficulty)===2?"\u9002\u4E2D":"\u56F0\u96BE")),wr.createElement("div",{className:ca.bottomitem},wr.createElement("span",{className:ca.left},"\u77E5\u8BC6\u70B9"),wr.createElement(dt.Z,{title:((yn=ue==null?void 0:ue.tag_discipline_names)==null?void 0:yn.length)<=0||((lr=ue==null?void 0:ue.tag_discipline_names)==null?void 0:lr.length)==1&&["-"].includes(ue==null?void 0:ue.tag_discipline_names[0])?"\u6682\u672A\u8BBE\u7F6E~":(dr=(Dr=ue==null?void 0:ue.tag_discipline_names)==null?void 0:Dr.join("\uFF1B"))==null?void 0:dr.toString()},wr.createElement("span",{className:ca.right},((ki=ue==null?void 0:ue.tag_discipline_names)==null?void 0:ki.length)<=0?wr.createElement("span",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"):((Gi=ue==null?void 0:ue.tag_discipline_names)==null?void 0:Gi.length)==1&&["-"].includes(ue==null?void 0:ue.tag_discipline_names[0])?wr.createElement("span",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"):(_o=(Ui=ue==null?void 0:ue.tag_discipline_names)==null?void 0:Ui.join("\uFF1B"))==null?void 0:_o.toString())))))},Su=ne(28696),Ns=ne(90775),il=ne(59301),Ol=Object.defineProperty,Ds=Object.defineProperties,Hs=Object.getOwnPropertyDescriptors,lu=Object.getOwnPropertySymbols,Gu=Object.prototype.hasOwnProperty,Du=Object.prototype.propertyIsEnumerable,$s=(ue,ke,Ze)=>ke in ue?Ol(ue,ke,{enumerable:!0,configurable:!0,writable:!0,value:Ze}):ue[ke]=Ze,su=(ue,ke)=>{for(var Ze in ke||(ke={}))Gu.call(ke,Ze)&&$s(ue,Ze,ke[Ze]);if(lu)for(var Ze of lu(ke))Du.call(ke,Ze)&&$s(ue,Ze,ke[Ze]);return ue},uu=(ue,ke)=>Ds(ue,Hs(ke)),cu=(ue,ke,Ze)=>new Promise((Vt,Nn)=>{var Cr=Yt=>{try{gn(Ze.next(Yt))}catch(Ln){Nn(Ln)}},kn=Yt=>{try{gn(Ze.throw(Yt))}catch(Ln){Nn(Ln)}},gn=Yt=>Yt.done?Vt(Yt.value):Promise.resolve(Yt.value).then(Cr,kn);gn((Ze=Ze.apply(ue,ke)).next())}),du=({qitem:ue,setisedit:ke,TagDiscipline:Ze,exerciseitem:Vt,seveeditor:Nn,deleteitem:Cr,getTagData:kn,init:gn,showTip:Yt=!1,saveLoading:Ln=!1})=>{var Ia,ln;const[Wt]=Pe.default.useForm(),{unified_ai_setting:un,ai_review_settings:er}=Vt==null?void 0:Vt.exercise,Xn=un?er:((Ia=ue==null?void 0:ue.ai_review_settings)==null?void 0:Ia.length)>0?ue.ai_review_settings:er;return(0,E.useEffect)(()=>{Wt.setFieldsValue(uu(su({},ue),{name:ue.question_title,answer_texts:ue.answer_texts,repeat_answer:!ue.repeat_answer,ai_review_settings:Xn}))},[ue]),il.createElement("div",null,il.createElement(Pe.default,{form:Wt,colon:!1,onFinish:Zn=>{var qn;(qn=Vt==null?void 0:Vt.exercise)!=null&&qn.is_open_ai_review&&!(0,le.BR)(Zn==null?void 0:Zn.ai_review_settings)||Nn(uu(su(su({},ue),Zn),{answer_texts:Zn==null?void 0:Zn.answer_texts,question_title:Zn==null?void 0:Zn.name}))},onFinishFailed:Zn=>cu(void 0,null,function*(){var qn,yn;Te.ZP.error(Zn.errorFields[0].errors[0]),Wt.scrollToField((yn=(qn=Zn==null?void 0:Zn.errorFields)==null?void 0:qn[0])==null?void 0:yn.name,{behavior:"smooth",block:"center"})})},il.createElement("div",{style:{display:"flex",alignItems:"center"}},il.createElement("div",{style:{flex:1}},il.createElement("span",{style:{display:"inline-flex",border:"1px solid #9096A3",borderRadius:"50%",width:10,height:10,marginRight:5,background:"#9096A3"}}),il.createElement("span",null,"\u7B80\u7B54\u9898")),((ln=Vt==null?void 0:Vt.exercise)==null?void 0:ln.exercise_status)==1&&!(ue!=null&&ue.isadd)&&il.createElement("span",{style:{marginLeft:20,marginRight:20,color:"red",cursor:"pointer"},onClick:()=>{Cr()}},il.createElement("i",{className:"iconfont icon-piliangshanchu3",style:{fontSize:14,marginRight:6}}),"\u5220\u9664"),il.createElement(We.ZP,{onClick:()=>{ue.isadd?(ke(!1),gn()):(Wt.setFieldsValue(uu(su({},ue),{name:ue==null?void 0:ue.question_title,answer_texts:ue.answer_texts||[],repeat_answer:!(ue!=null&&ue.repeat_answer)})),ke(!1))}},"\u53D6\u6D88"),il.createElement(dt.Z,{overlayClassName:he.shake,open:Yt,placement:"bottom",color:"rgba(244,156,14,0.19)",title:il.createElement("div",{style:{color:"#FF841A",fontSize:"14px"}},il.createElement("i",{className:"iconfont icon-tishi11 mr5 font14"}),"\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u8BD5\u9898\u3002")},il.createElement(We.ZP,{type:"primary",className:"ml20",onClick:()=>{Wt.submit()},loading:Ln},"\u4FDD\u5B58"))),il.createElement("div",{style:{maxHeight:"calc(100vh - 148px)",overflowY:"auto",marginTop:"10px",paddingRight:"5px"}},il.createElement(Pe.default.Item,{className:he.scoreinput,name:"question_score",label:"\u5206\u503C",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5206\u503C"}]},il.createElement(Fe.Z,{onBlur:Zn=>{Zn.target.value==="0"&&Te.ZP.error("\u5206\u503C\u5FC5\u987B\u5927\u4E8E0\u4E14\u5C0F\u4E8E\u7B49\u4E8E100")},style:{width:150},precision:1,placeholder:"\u8BF7\u8F93\u5165\u5206\u503C",max:100,min:.1})),il.createElement(Ns.W,{form:Wt,showKeywords:!0,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u7B80\u7B54\u9898\u9898\u5E72\u5185\u5BB9"}),il.createElement(Ir,{getTagData:kn,qitem:ue,exerciseitem:Vt,TagDiscipline:Ze,form:Wt}))))},Uu=ne(31691),Bu=ne(79939),Ws=ne(53420),eu=ne(31709),El={flex_box_center:"flex_box_center___aDsO9",flex_space_between:"flex_space_between___5V4Xk",flex_box_vertical_center:"flex_box_vertical_center___rNdEP",flex_box_center_end:"flex_box_center_end___cKjnr",flex_box_column:"flex_box_column___glFYD",scoremodal:"scoremodal___PfqOf",selectWrapper:"selectWrapper___Mtqcz",selectWrappers:"selectWrappers___uX2K9",allqingchu:"allqingchu___IqL8g",title:"title___UgYfD",score:"score___LjJmD",close:"close___I0jAO",content:"content___4u86F",items:"items___mK2L5",bottom:"bottom___vQTEm",yes:"yes___j81JQ",no:"no___kiUH4",titlecount:"titlecount___lliQr",add:"add___QhDj8",search:"search___QCCaL",searchIcon:"searchIcon___oXRH5",tabWrap:"tabWrap___Cu_4D",previewModal:"previewModal___BVDlS"},Mu=ne(44192),re={flex_box_center:"flex_box_center___zojHa",flex_space_between:"flex_space_between___wmLZ4",flex_box_vertical_center:"flex_box_vertical_center___DszWW",flex_box_center_end:"flex_box_center_end___mVCv5",flex_box_column:"flex_box_column___fbC9t",warp:"warp___isAcM",shixunbutton:"shixunbutton___h3Ybb",redio:"redio___xDffb",redioitem:"redioitem___FFPtq",redioitemyes:"redioitemyes___pF7ID",title:"title___mnPZc",titleyes:"titleyes___wrtWQ",yestag:"yestag___D4krY",qcount:"qcount___W5pwO",score:"score___eKQzl",qtitle:"qtitle___lb8MD",checkbox:"checkbox___QpUm4",checkboxitem:"checkboxitem___Wm2SH",checkboxitemyes:"checkboxitemyes___VVVTe",bottom:"bottom___Mn_Bw",bottomitem:"bottomitem___JTyHT",left:"left___nQqpo",right:"right___v58qy",completion:"completion___BnZSp",content:"content___MU8hZ",items:"items___a7i54",simple:"simple___GDw3K",shixun:"shixun___DGzTe",combination:"combination___AG9cr"};const ge=["A\uFF0E","B\uFF0E","C\uFF0E","D\uFF0E","E\uFF0E","F\uFF0E","G\uFF0E","H\uFF0E","I\uFF0E","J\uFF0E","K\uFF0E","L\uFF0E","M\uFF0E","N\uFF0E","O\uFF0E","P\uFF0E","Q\uFF0E","R\uFF0E","S\uFF0E","T\uFF0E","U\uFF0E","V\uFF0E","W\uFF0E","X\uFF0E","Y\uFF0E","Z\uFF0E"];var et=({qitem:ue})=>{var ke,Ze,Vt,Nn,Cr,kn,gn,Yt,Ln,Ia;return E.createElement("div",{className:re.warp},E.createElement("div",{className:re.mainPart},E.createElement("div",{className:re.qcount},(ue==null?void 0:ue.question_type)===8&&E.createElement(se.Z,{className:re.content,showProgramFill:!0,value:(ke=ue==null?void 0:ue.program_attr)==null?void 0:ke.description}),(ue==null?void 0:ue.question_type)!=8&&E.createElement(se.Z,{className:re.qtitle,value:(ue==null?void 0:ue.name)||(ue==null?void 0:ue.title)})),((ue==null?void 0:ue.question_type)===0||(ue==null?void 0:ue.question_type)===2)&&E.createElement("div",null,(Ze=ue==null?void 0:ue.choices)==null?void 0:Ze.map((ln,Wt)=>E.createElement("div",{className:re.redio},!(ln!=null&&ln.is_answer)&&E.createElement("span",{className:re.redioitem}),(ln==null?void 0:ln.is_answer)&&E.createElement("i",{className:`${re.redioitemyes} icon-duigou1`}),E.createElement(se.Z,{className:ln!=null&&ln.is_answer?re.titleyes:re.title,value:ge[Wt]+(ln==null?void 0:ln.choice_text)}),(ln==null?void 0:ln.is_answer)&&E.createElement("div",{className:re.yestag},"\u6B63\u786E\u7B54\u6848")))),(ue==null?void 0:ue.question_type)===1&&E.createElement("div",null,(Vt=ue==null?void 0:ue.choices)==null?void 0:Vt.map((ln,Wt)=>E.createElement("div",{className:re.checkbox},!(ln!=null&&ln.is_answer)&&E.createElement("span",{className:re.checkboxitem}),(ln==null?void 0:ln.is_answer)&&E.createElement("i",{className:`${re.checkboxitemyes} icon-duigou1`}),E.createElement(se.Z,{className:ln!=null&&ln.is_answer?re.titleyes:re.title,value:ge[Wt]+(ln==null?void 0:ln.choice_text)}),(ln==null?void 0:ln.is_answer)&&E.createElement("div",{className:re.yestag},"\u6B63\u786E\u7B54\u6848")))),(ue==null?void 0:ue.question_type)===3&&E.createElement("div",{className:re.completion},(Nn=ue==null?void 0:ue.standard_answer)==null?void 0:Nn.map((ln,Wt)=>{var un;return E.createElement("div",{style:{display:"flex"}},E.createElement("span",{className:re.title},"\u586B\u7A7A\u9879",Wt+1),E.createElement("div",{className:re.content},(un=ln==null?void 0:ln.answer_text)==null?void 0:un.map((er,Xn)=>E.createElement("div",{className:re.items},er))))})),(ue==null?void 0:ue.question_type)===4&&E.createElement("div",{className:re.simple},E.createElement("div",{className:re.title},"\u53C2\u8003\u7B54\u6848"),E.createElement("div",{className:"mt10",style:{fontSize:"16px"}},(Cr=ue==null?void 0:ue.answer_texts)!=null&&Cr[0]?E.createElement(se.Z,{className:re.content,value:(kn=ue==null?void 0:ue.answer_texts)==null?void 0:kn[0]}):E.createElement("div",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"))),(ue==null?void 0:ue.question_type)===5&&((gn=ue==null?void 0:ue.challenge_names)==null?void 0:gn.map((ln,Wt)=>E.createElement("div",{className:re.shixun},E.createElement("span",{className:re.qtitle},E.createElement("span",{style:{marginRight:10}},"\u7B2C",(0,le.EM)(Wt+1),"\u9898"),ln)))),(ue==null?void 0:ue.question_type)===6&&E.createElement("div",{className:re.simple},E.createElement(se.Z,{className:re.content,value:((Yt=ue==null?void 0:ue.program_attr)==null?void 0:Yt.description)||"- -"})),(ue==null?void 0:ue.question_type)===7&&((Ln=ue==null?void 0:ue.sub_item_banks)==null?void 0:Ln.map((ln,Wt)=>{var un,er,Xn,Zn,qn;return E.createElement("div",null,E.createElement("div",{className:re.combination},E.createElement("span",{className:re.qtitle},ln==null?void 0:ln.name)),E.createElement("div",{className:re.warp,style:{padding:"0px",paddingTop:20}},E.createElement("div",null,((ln==null?void 0:ln.item_type)=="SINGLE"||(ln==null?void 0:ln.item_type)=="JUDGMENT")&&((un=ln==null?void 0:ln.choices)==null?void 0:un.map((yn,lr)=>E.createElement("div",{className:re.redio},!(yn!=null&&yn.is_answer)&&E.createElement("span",{className:re.redioitem}),(yn==null?void 0:yn.is_answer)&&E.createElement("i",{className:`${re.redioitemyes} icon-duigou1`}),E.createElement(se.Z,{className:yn!=null&&yn.is_answer?re.titleyes:re.title,value:ge[lr]+(yn==null?void 0:yn.choice_text)}),(yn==null?void 0:yn.is_answer)&&E.createElement("div",{className:re.yestag},"\u6B63\u786E\u7B54\u6848")))),(ln==null?void 0:ln.item_type)=="MULTIPLE"&&((er=ln==null?void 0:ln.choices)==null?void 0:er.map((yn,lr)=>E.createElement("div",{className:re.checkbox},!(yn!=null&&yn.is_answer)&&E.createElement("span",{className:re.checkboxitem}),(yn==null?void 0:yn.is_answer)&&E.createElement("i",{className:`${re.checkboxitemyes} icon-duigou1`}),E.createElement(se.Z,{className:yn!=null&&yn.is_answer?re.titleyes:re.title,value:ge[lr]+(yn==null?void 0:yn.choice_text)}),(yn==null?void 0:yn.is_answer)&&E.createElement("div",{className:re.yestag},"\u6B63\u786E\u7B54\u6848")))),(ln==null?void 0:ln.item_type)=="COMPLETION"&&E.createElement("div",{className:re.completion},(Xn=ln==null?void 0:ln.standard_answer)==null?void 0:Xn.map((yn,lr)=>{var Dr;return E.createElement("div",{style:{display:"flex"}},E.createElement("span",{className:re.title},"\u586B\u7A7A\u9879",lr+1),E.createElement("div",{className:re.content},(Dr=yn==null?void 0:yn.answer_text)==null?void 0:Dr.map((dr,ki)=>E.createElement("div",{className:re.items},dr))))})),(ln==null?void 0:ln.item_type)=="SUBJECTIVE"&&E.createElement("div",{className:re.simple},E.createElement("div",{className:re.title},"\u53C2\u8003\u7B54\u6848"),E.createElement("div",{className:"mt10",style:{fontSize:"16px"}},(Zn=ln==null?void 0:ln.answer_texts)!=null&&Zn[0]?E.createElement(se.Z,{className:re.content,value:(qn=ln==null?void 0:ln.answer_texts)==null?void 0:qn[0]}):E.createElement("div",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"))))))})),(ue==null?void 0:ue.question_type)===8&&E.createElement("div",null,E.createElement(se.Z,{disabledFill:!0,className:re.content,showProgramFill:!0,value:fs.Base64.decode(((Ia=ue==null?void 0:ue.program_attr)==null?void 0:Ia.code)||"")})),(ue==null?void 0:ue.question_type)===5&&E.createElement("div",{style:{background:"#F6F7F9",padding:"0px 20px",height:46,lineHeight:"46px",marginTop:40,display:"flex",alignItems:"center"}},E.createElement("div",{style:{flex:1,alignItems:"center",display:"flex"}},E.createElement("div",{style:{marginRight:30}},E.createElement("span",{style:{marginRight:10,color:"#666666"}},"\u521B\u5EFA\u8005"),E.createElement("span",{style:{color:"#000000"}},(ue==null?void 0:ue.author_name)||"- -")),E.createElement("div",{style:{marginRight:30}},E.createElement("span",{style:{marginRight:10,color:"#666666"}},"\u6240\u5C5E\u5355\u4F4D"),E.createElement("span",{style:{color:"#000000"}},(ue==null?void 0:ue.author_school_name)||"- -")),E.createElement("div",{style:{marginRight:30}},E.createElement("span",{style:{marginRight:10,color:"#666666"}},"\u5B66\u4E60\u4EBA\u6570"),E.createElement("span",{style:{color:"#000000"}},(ue==null?void 0:ue.study_count)||"0"))),E.createElement("a",{className:re.shixunbutton,href:`/shixuns/${ue==null?void 0:ue.identifier}/challenges?exercise=true`,target:"_blank"},E.createElement("i",{onClick:()=>{},style:{marginRight:20},className:"iconfont icon-shixunkecheng mr5 "}),"\u5B9E\u8BAD\u8BE6\u60C5"))),((ue==null?void 0:ue.question_type)<=4||[6,8].includes(ue==null?void 0:ue.question_type))&&E.createElement("div",{className:re.bottom},E.createElement("div",{className:re.bottomitem},E.createElement("span",{className:re.left},"\u89E3\u6790"),E.createElement("span",{className:re.right},ue!=null&&ue.analysis?E.createElement(se.Z,{value:ue==null?void 0:ue.analysis}):E.createElement("span",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"))),E.createElement("div",{className:re.bottomitem},E.createElement("span",{className:re.left},"\u96BE\u5EA6"),E.createElement("span",{className:re.right},(ue==null?void 0:ue.difficulty)===1?"\u7B80\u5355":(ue==null?void 0:ue.difficulty)===2?"\u9002\u4E2D":"\u56F0\u96BE")),E.createElement("div",{className:re.bottomitem},E.createElement("span",{className:re.left},"\u77E5\u8BC6\u70B9"),E.createElement("span",{className:re.right},ue!=null&&ue.tag_discipline?ue==null?void 0:ue.tag_discipline:E.createElement("span",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~")))))},rt=ne(77264),Ft=ne(59435),Tt=ne(75284),Ht=ne(44240),mn=ne(46861),xn=ne(27878),Gt=ne(66443),Pn=ne(54533),Rt=ne(59301),Tn=Object.defineProperty,In=Object.defineProperties,zn=Object.getOwnPropertyDescriptors,Gn=Object.getOwnPropertySymbols,Un=Object.prototype.hasOwnProperty,_r=Object.prototype.propertyIsEnumerable,pr=(ue,ke,Ze)=>ke in ue?Tn(ue,ke,{enumerable:!0,configurable:!0,writable:!0,value:Ze}):ue[ke]=Ze,Bn=(ue,ke)=>{for(var Ze in ke||(ke={}))Un.call(ke,Ze)&&pr(ue,Ze,ke[Ze]);if(Gn)for(var Ze of Gn(ke))_r.call(ke,Ze)&&pr(ue,Ze,ke[Ze]);return ue},Sr=(ue,ke)=>In(ue,zn(ke)),ar=(ue,ke,Ze)=>new Promise((Vt,Nn)=>{var Cr=Yt=>{try{gn(Ze.next(Yt))}catch(Ln){Nn(Ln)}},kn=Yt=>{try{gn(Ze.throw(Yt))}catch(Ln){Nn(Ln)}},gn=Yt=>Yt.done?Vt(Yt.value):Promise.resolve(Yt.value).then(Cr,kn);gn((Ze=Ze.apply(ue,ke)).next())});const vr=({setScoreShow:ue,ScoreShow:ke,onOk:Ze,isshixuns:Vt,isloadings:Nn,dispatch:Cr,shixunsDetail:kn,exercise:gn,initFun:Yt})=>{var Ln,Ia,ln;let[Wt,un]=(0,E.useState)({type:"0",page:1,updated_at:"",quotes:"",item_type:null,per_page:10,courseid:null,tag_discipline_id:null,difficulty:null,keyword:null,group_id:[]}),[er,Xn]=(0,E.useState)([]),[Zn,qn]=(0,E.useState)([]),[yn,lr]=(0,E.useState)([]),[Dr,dr]=(0,E.useState)([]);const[ki,Gi]=(0,E.useState)(!1),[Ui]=Pe.default.useForm(),[_o,Tr]=(0,E.useState)(),[Mi,eo]=(0,E.useState)(!1);let[tr,yo]=(0,E.useState)(Vt);const[Lo,Io]=(0,E.useState)([]),[nr,fi]=(0,E.useState)(!0),[ul,No]=(0,E.useState)([]),[pi,xl]=(0,E.useState)(0),[wo,cl]=(0,E.useState)([]),Qo=[{name:"\u5168\u90E8",value:"",question_type:0},{name:"\u5355\u9009\u9898",value:"SINGLE",question_type:0},{name:"\u591A\u9009\u9898",value:"MULTIPLE",question_type:1},{name:"\u5224\u65AD\u9898",value:"JUDGMENT",question_type:2},{name:"\u586B\u7A7A\u9898",value:"COMPLETION",question_type:3},{name:"\u7B80\u7B54\u9898",value:"SUBJECTIVE",question_type:4},{name:"\u5B9E\u8BAD\u9898",value:"SHIXUN",question_type:5},{name:"\u7F16\u7A0B\u9898",value:"PROGRAM",question_type:6},{name:"\u7EC4\u5408\u9898",value:"COMBINATION",question_type:7},{name:"\u7A0B\u5E8F\u586B\u7A7A\u9898",value:"BPROGRAM",question_type:8}],[Ho,qo]=(0,E.useState)({}),[$o,Al]=(0,E.useState)(!1),[Vs,_i]=(0,E.useState)({});(0,E.useEffect)(()=>{var En,Br,ti,Na,hi,Po,al,Yo,us,Vo;(((ti=(Br=(En=gn==null?void 0:gn.editData)==null?void 0:En.exercise)==null?void 0:Br.exist_item_bank_ids)==null?void 0:ti.length)>0||((Po=(hi=(Na=gn==null?void 0:gn.editData)==null?void 0:Na.exercise)==null?void 0:hi.exist_item_bank_shixun_ids)==null?void 0:Po.length)>0)&&cl([...(Yo=(al=gn==null?void 0:gn.editData)==null?void 0:al.exercise)==null?void 0:Yo.exist_item_bank_ids,...(Vo=(us=gn==null?void 0:gn.editData)==null?void 0:us.exercise)==null?void 0:Vo.exist_item_bank_shixun_ids])},[(Ia=(Ln=gn==null?void 0:gn.editData)==null?void 0:Ln.exercise)==null?void 0:Ia.exist_item_bank_ids]);const wa=(0,E.useRef)(new Set),ml=(0,E.useRef)(new Set);let[Wo,Os]=(0,E.useState)({gg:{type:"1",page:1,updated_at:"",quotes:"",item_type:null,courseid:null,per_page:10,tag_discipline_id:null,difficulty:null,keyword:null},ttgx:{type:"3",page:1,updated_at:"",quotes:"",item_type:null,per_page:10,courseid:null,tag_discipline_id:null,difficulty:null,keyword:null,group_id:[]},scj:{type:"2",page:1,updated_at:"",quotes:"",item_type:null,per_page:10,courseid:null,tag_discipline_id:null,difficulty:null,keyword:null},wcjd:{type:"0",page:1,updated_at:"",quotes:"",item_type:null,per_page:10,courseid:null,tag_discipline_id:null,difficulty:null,keyword:null,group_id:[]},yx:{type:"5",page:1,updated_at:"",quotes:"",item_type:null,per_page:10,courseid:null,tag_discipline_id:null,difficulty:null,keyword:null,group_id:null}});const ss=[{name:"\u7B80\u5355",value:1},{name:"\u9002\u4E2D",value:2},{name:"\u56F0\u96BE",value:3}],tu=[{name:"\u521D\u7EA7",value:1},{name:"\u4E2D\u7EA7",value:2},{name:"\u4E2D\u9AD8\u7EA7",value:3},{name:"\u9AD8\u7EA7",value:4}],As=[{name:"\u672A\u53D1\u5E03",value:"unpublish"},{name:"\u9759\u9ED8\u53D1\u5E03",value:"silent_publish"},{name:"\u516C\u5F00\u53D1\u5E03",value:"public_publish"}],[Ms,qi]=(0,E.useState)(!1),Ii=Pe.default.useWatch("courseid",Ui),Yi=()=>{Ui.resetFields(),tr=!1,yo(!1),qi(!1),Ui.submit()};(0,E.useEffect)(()=>{pi>0&&setTimeout(()=>{xl(0)},2e3)},[pi]),(0,E.useEffect)(()=>{ke&&(Ui.setFieldsValue({item_type:"",courseid:null,tag_discipline_id:null,difficulty:null,keyword:null}),nr&&tr&&(Ui.setFieldsValue({item_type:"SHIXUN"}),Wt.item_type="SHIXUN",un(Bn({},Wt)),fi(!1)),La(Wt),_s(),rl({group_id:0,page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",type:"0"}))},[ke]);function La(En){return ar(this,null,function*(){var Br,ti,Na;if(Gi(!0),un(En),(yn==null?void 0:yn.length)<=0&&En.type==="5"){dr([]),Gi(!1);return}let hi=En.type==="5"?yn==null?void 0:yn.filter(us=>!Lo.includes(us)):null,Po=En.type==="5"?yn==null?void 0:yn.filter(us=>Lo.includes(us)):null,al={course_discipline_id:En==null?void 0:En.courseid};(En==null?void 0:En.type)==="1"&&(al={discipline_id:((Br=En==null?void 0:En.courseid)==null?void 0:Br[0])||null,sub_discipline_id:((ti=En==null?void 0:En.courseid)==null?void 0:ti[1])||null});let Yo=yield(0,Ke.ZP)("/api/item_banks.json",{method:"get",params:Sr(Bn(Bn({},En),al),{ids:hi,shixun_ids:Po,group_id:((Na=En.group_id)==null?void 0:Na.map(us=>us==null?void 0:us.value))||null,keyword:En.keyword?encodeURIComponent(En.keyword):En.keyword,include_shixuns:!0,type:En.type==="5"?null:En.type,clazz:En.type==="3"?"ItemBanksGroup":null})});dr(Yo),Gi(!1)})}function rl(En){return ar(this,null,function*(){var Br;let ti=yield(0,Ke.ZP)("/api/item_banks_groups/for_problemset.json",{method:"post",body:En}),Na=[{title:"\u6839\u76EE\u5F55",id:0,pid:0,value:0,key:0,isLeaf:!1,children:(Br=ti==null?void 0:ti.data)==null?void 0:Br.map(hi=>({title:hi.name,id:hi.id,pid:hi.id,value:hi.id,key:hi.id,isLeaf:!hi.have_child}))}];No(Na)})}function _s(){return ar(this,null,function*(){let En=yield(0,Ke.ZP)("/api/disciplines.json",{method:"get",params:{source:"question",group_id:0,group_type:Wt.type==="5"?null:Wt.type,clazz:"ItemBanksGroup"}});Xn((0,Mu.L)(En==null?void 0:En.disciplines))})}function ps(En){return ar(this,null,function*(){var Br,ti,Na,hi;Gi(!0);let Po=(Br=En.list)==null?void 0:Br.filter(Vo=>!Lo.includes(Vo)),al=(ti=En.list)==null?void 0:ti.filter(Vo=>Lo.includes(Vo));if(Po.length===0&&al.length===0){Gi(!1),dr([]);return}let Yo={course_discipline_id:En==null?void 0:En.courseid};(En==null?void 0:En.type)==="1"&&(Yo={discipline_id:((Na=En==null?void 0:En.courseid)==null?void 0:Na[0])||null,sub_discipline_id:((hi=En==null?void 0:En.courseid)==null?void 0:hi[1])||null});let us=yield(0,Ke.ZP)("/api/item_banks.json",{method:"get",params:Sr(Bn(Bn({},En),Yo),{ids:Po,shixun_ids:al,type:En.type==="5"?null:En.type,clazz:En.type==="3"?"ItemBanksGroup":null})});Gi(!1),dr(us)})}const $l=(0,ve.useParams)(),[Eo,Tl,vl,_l]=(0,Tt.P)(),Ll=En=>ar(void 0,null,function*(){const Br=yield Cr({type:"shixunsDetail/release",payload:{id:En}});let ti=Br==null?void 0:Br.tag_position,Na=(Br==null?void 0:Br.evaluation_set_position)||[],hi=Br.status;return hi===0?(Te.ZP.success("\u53D1\u5E03\u6210\u529F"),La(Wt),!0):(hi===2?Te.ZP.error(`\u7B2C${Na.join(",")}\u5173\u5C1A\u672A\u5B8C\u6210\uFF0C\u65E0\u6CD5\u7533\u8BF7\u53D1\u5E03`):hi===3?Te.ZP.error(`\u6BCF\u4E00\u4E2A\u5173\u5361\u81F3\u5C11\u9700\u8981\u4E00\u4E2A\u6280\u80FD\u6807\u7B7E, \u7B2C${ti.join(",")}\u5173\u5C1A\u672A\u8BBE\u7F6E\u6280\u80FD\u6807\u7B7E\uFF0C\u8BF7\u8865\u5145`):Te.ZP.error("\u5C1A\u672A\u521B\u5EFA\u4EFB\u52A1\u7684\u5B9E\u8BAD\uFF0C\u4E0D\u80FD\u7533\u8BF7\u53D1\u5E03"),!1)}),Uo=En=>(En==null?void 0:En.shixun_tag_num)===1?"\u672A\u53D1\u5E03\u7684\u5B9E\u8DF5\u9879\u76EE\u4E0D\u80FD\u88AB\u9009\u7528\uFF0C\u8BF7\u5148\u8FDB\u884C\u53D1\u5E03":"",Rl=(En,Br,ti)=>En.map(Na=>Na.key===Br?Bn(Bn({},Na),ti):Na.children?Sr(Bn({},Na),{children:Rl(Na.children,Br,ti)}):Na),dl=En=>ar(void 0,null,function*(){const{key:Br}=En;let ti=Wt.type;const Na=yield(0,mn.ex)({page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",group_id:Math.abs(Br),type:ti}),{data:hi,total_count:Po}=Na||{};Po>0&&No(al=>Rl(al,Br,{children:hi.map(Yo=>({title:Yo.name,id:Yo.id,pid:Yo.id,value:Yo.id,key:Yo.id,isLeaf:!Yo.have_child}))}))});function zs(En){console.log("----",Wt),En==="1"&&(Wo.gg=Bn({},Wt)),En==="2"&&(Wo.scj=Bn({},Wt)),En==="3"&&(Wo.ttgx=Bn({},Wt)),En==="0"&&(Wo.wcjd=Bn({},Wt)),En==="5"&&(Wo.yx=Bn({},Wt)),Os(Bn({},Wo))}function Ps(){Wt.type==="1"&&(Wt=Wo.gg),Wt.type==="2"&&(Wt=Wo.scj),Wt.type==="3"&&(Wt=Wo.ttgx),Wt.type==="0"&&(Wt=Wo.wcjd),Wt.type==="5"&&(Wt=Wo.yx),(Wt==null?void 0:Wt.item_type)==="SHIXUN"?(tr=!0,yo(!0)):(tr=!1,yo(!1)),Ui.setFieldsValue(Bn({},Wt)),un(Bn({},Wt)),La(Bn({},Wt))}return Rt.createElement("div",null,Rt.createElement($e.default,{title:!1,footer:!1,open:ke,width:1200,centered:!0,className:El.scoremodal,onCancel:()=>{ue(!1)}},Rt.createElement("div",{style:{display:"flex",alignItems:"center"}},Rt.createElement("div",{className:El.title},"\u9898\u5E93\u9009\u9898")),Rt.createElement(Uu.default,{className:El.tabWrap,activeKey:Wt.type,onChange:En=>{En==="3"?(Wt.show_all_share=!0,rl({group_id:0,page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",type:"3"})):Wt.show_all_share=null,En==="0"&&rl({group_id:0,page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",type:"0"}),zs(Wt.type),Wt.type=En,(Wt==null?void 0:Wt.item_type)==="SHIXUN"&&Wt.type!=="5"&&(tr=!0,yo(!0)),qi(!1),Wt.type==="5"&&(tr=!1,yo(!1)),Ps(),_s()},items:[{label:"\u516C\u5171",key:"1"},{label:"\u56E2\u961F\u5171\u4EAB",key:"3"},{label:"\u6536\u85CF\u5939",key:"2"},{label:"\u6211\u521B\u5EFA\u7684",key:"0"},{label:Rt.createElement("div",null,"\u5DF2\u9009",yn.length>0&&Rt.createElement("span",{className:El.titlecount},yn.length),pi>0&&Rt.createElement("span",{className:El.add},"+",pi)),key:"5"}]}),Rt.createElement(Pe.default,{layout:"inline",form:Ui,onValuesChange:(En,Br)=>{var ti,Na;const hi=Object.values(Br).some(al=>al!==null&&al!==""&&al!==void 0),Po=Br.keyword==="";if(qi(hi||!Po),Wt.page=1,Wt.keyword=(Na=(ti=Wt.keyword)==null?void 0:ti.replace)==null?void 0:Na.call(ti,/^\s+|\s+$/g,""),(Br==null?void 0:Br.item_type)==="SHIXUN"){if(Wt.type==="5"?yo(!1):yo(!0),En.keyword||En.keyword==="")return;Ui.submit()}else{if(En!=null&&En.courseid&&Ui.setFieldsValue({tag_discipline_id:null}),yo(!1),En.keyword||En.keyword==="")return;Ui.submit()}},onFinish:En=>{var Br;Wt.type==="3"&&(!En.group_id||((Br=En==null?void 0:En.group_id)==null?void 0:Br.length)===0)?Wt.show_all_share=!0:Wt.show_all_share=null,un(Bn(Bn({},Wt),En)),La(Bn(Bn({},Wt),En))}},Rt.createElement(Pe.default.Item,{name:"item_type"},Rt.createElement(st.default,{className:El.selectWrapper,placeholder:"\u9898\u578B",style:{width:110},size:"middle",allowClear:!0},Qo.map(En=>Rt.createElement(st.default.Option,{key:En.value},En.name)))),["1","2"].includes(Wt.type)?Rt.createElement(Rt.Fragment,null,Rt.createElement(Pe.default.Item,{name:"courseid"},Rt.createElement(Bu.Z,{className:El.selectWrapper,style:{width:160},size:"middle",placeholder:"\u65B9\u5411&\u8BFE\u7A0B",options:er})),!tr&&Rt.createElement(Pe.default.Item,{name:"tag_discipline_id"},Rt.createElement(st.default,{className:El.selectWrapper,placeholder:"\u77E5\u8BC6\u70B9",style:{width:160},size:"middle",allowClear:!0},(ln=Dr==null?void 0:Dr.tag_disciplines)==null?void 0:ln.map(En=>Rt.createElement(st.default.Option,{key:En.id},En.name))))):Rt.createElement(Rt.Fragment,null," ",Rt.createElement(Pe.default.Item,{name:"courseid"},Rt.createElement(Vn.q,{style:{width:160,height:38},size:"middle",showLinkButton:!1,data:{container_type:"ItemBank",type:Wt==null?void 0:Wt.type}})),!tr&&Rt.createElement(Pe.default.Item,{name:"tag_discipline_id"},Rt.createElement(Vn.i,{allowAcceptEmpty:!0,key:String(Wt.type==="3"),data:{container_type:"ItemBank",search:!0,type:Wt.type,ids:Wt.type==="5"?yn==null?void 0:yn.filter(En=>!Lo.includes(En)):null,shixun_ids:Wt.type==="5"?yn==null?void 0:yn.filter(En=>Lo.includes(En)):null},style:{width:160,height:38},size:"middle",courseDisciplineId:Ii,showLinkButton:!1}))),Rt.createElement(Pe.default.Item,{name:tr?"diff":"difficulty"},Rt.createElement(st.default,{className:El.selectWrapper,placeholder:"\u96BE\u5EA6",style:{width:118},size:"middle",allowClear:!0},ss.map(En=>Rt.createElement(st.default.Option,{key:En.value},En.name)))),tr&&Rt.createElement(Pe.default.Item,{name:"shixun_publish_status"},Rt.createElement(st.default,{className:El.selectWrapper,placeholder:"\u5168\u90E8\u72B6\u6001",style:{width:118},size:"middle",allowClear:!0},As.map(En=>Rt.createElement(st.default.Option,{key:En.value},En.name)))),(Wt.type==="3"||Wt.type==="0")&&!tr&&Rt.createElement(Pe.default.Item,{name:"group_id"},Rt.createElement(Ws.default,{treeDataSimpleMode:!0,style:{width:134},className:El.selectWrappers,multiple:!0,allowClear:!0,showSearch:!0,filterTreeNode:(En,Br)=>Br.title.toUpperCase().indexOf(En.toUpperCase())!==-1,dropdownStyle:{maxHeight:400,width:500,overflow:"auto"},placeholder:"\u8BF7\u9009\u62E9\u6587\u4EF6\u5939",treeCheckStrictly:!0,loadData:dl,treeDefaultExpandedKeys:[0],maxTagCount:0,treeCheckable:!0,treeData:ul})),Ms&&Rt.createElement("span",{className:El.allqingchu,onClick:Yi},Rt.createElement("i",{className:"iconfont icon-guanbi4"}),Rt.createElement("span",null,"\u6E05\u9664\u7B5B\u9009\u6761\u4EF6")),Rt.createElement(Pe.default.Item,{style:{flex:"0 0 auto",marginRight:0,marginLeft:"auto"},name:"keyword"},Rt.createElement(_e.default.Search,{className:El.search,placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD\u641C\u7D22",allowClear:!0,suffix:Rt.createElement("i",{className:`iconfont icon-sousuo9 font14 ${El.searchIcon}`,onClick:()=>Ui.submit()}),onSearch:En=>{Ui.submit()}}))),Rt.createElement("div",{style:{background:"#F6F7F9",display:"flex",alignItems:"center",marginTop:18,height:40,paddingLeft:10,paddingRight:20}},Rt.createElement("div",{onClick:()=>{Wt.updated_at==="asc"?Wt.updated_at="desc":Wt.updated_at="asc",un(Sr(Bn({},Wt),{page:1})),La(Sr(Bn({},Wt),{page:1}))}}," ",Wt.updated_at?Rt.createElement("img",{src:Wt.updated_at==="asc"?rt.Z:Ft.Z,style:{width:"15px",verticalAlign:"text-bottom"},className:"font14 mr5 c-light-primary"}):Rt.createElement("i",{style:{fontSize:"14px"},className:"iconfont icon-jiangxu mr5 c-light-primary"}),"\u6309\u66F4\u65B0\u65F6\u95F4\u6392\u5E8F"),Rt.createElement("div",{onClick:()=>{Wt.quotes==="asc"?Wt.quotes="desc":Wt.quotes="asc",un(Sr(Bn({},Wt),{page:1})),La(Sr(Bn({},Wt),{page:1}))},style:{marginLeft:20}}," ",Wt.quotes?Rt.createElement("img",{src:Wt.quotes==="asc"?rt.Z:Ft.Z,style:{width:"15px",verticalAlign:"text-bottom"},className:"font14 mr5 c-light-primary"}):Rt.createElement("i",{style:{fontSize:"14px"},className:"iconfont icon-jiangxu mr5 c-light-primary"}),"\u6309\u4F7F\u7528\u6B21\u6570\u6392\u5E8F")),Rt.createElement(ku.default,{style:{marginTop:2,marginBottom:20},scroll:{y:260},dataSource:(Dr==null?void 0:Dr.items)||(Dr==null?void 0:Dr.shixun_list),pagination:!1,loading:ki,rowKey:En=>En.id,rowSelection:{type:"checkbox",selectedRowKeys:[...Zn,...wo],getCheckboxProps:En=>({disabled:En.shixun_tag_num===1||(wo==null?void 0:wo.find(Br=>En.id===Br))}),onSelect(En,Br,ti){if(console.log("---",ti,Br,En),Br)(tr||En!=null&&En.challenge_names)&&Io([...Lo,En.id]),qn([...Zn,En.id]),En.identifier?wa.current.add(En.id):ml.current.add(En.id),xl(1),lr([...yn,En.id]);else{En.identifier?wa.current.delete(En.id):ml.current.delete(En.id);let Na=yn.filter(hi=>hi!==En.id);if(qn(Na),lr(Na),tr||En!=null&&En.challenge_names){let hi=Lo.filter(Po=>Po!==En.id);Io([...hi])}if(Wt.type==="5"){ps(Sr(Bn({},Wt),{list:[...Na]}));return}}},onSelectAll(En,Br,ti){var Na,hi;if(console.log("----",ti),En){const Po=ti.map(Yo=>Yo.id),al=(hi=ti==null?void 0:ti.filter(Yo=>Yo==null?void 0:Yo.challenge_names))==null?void 0:hi.map(Yo=>Yo.id);console.log("---",al),Io([...Lo,...al]),qn([...Zn,...Po]),lr([...yn,...Po]);for(const Yo of ti)Yo.identifier?wa.current.add(Yo.id):ml.current.add(Yo.id)}else{const Po=ti.map(Vo=>Vo.id),al=Zn.filter(Vo=>!Po.some(fu=>fu===Vo)),Yo=(Na=ti==null?void 0:ti.filter(Vo=>Vo==null?void 0:Vo.challenge_names))==null?void 0:Na.map(Vo=>Vo.id);qn([...al]),lr([...al]);let us=Lo.filter(Vo=>!Yo.some(fu=>fu===Vo.id));Io([...us]),Wt.type==="5"&&ps(Sr(Bn({},Wt),{list:[...al]}));for(const Vo of Po)Vo.identifier?wa.current.delete(Vo):ml.current.delete(Vo)}}},columns:[{title:"\u9898\u578B",dataIndex:"item_type",key:"item_type",render:(En,Br,ti)=>{var Na,hi;return Rt.createElement(dt.Z,{title:Uo(Br)},Rt.createElement("div",null,tr||Br!=null&&Br.challenge_names?"\u5B9E\u8BAD\u9898":(hi=(Na=Qo==null?void 0:Qo.filter(Po=>Po.value===En))==null?void 0:Na[0])==null?void 0:hi.name))}},{title:"\u8BD5\u9898\u540D\u79F0",dataIndex:"name",width:tr?"30%":"60%",key:"name",render:(En,Br,ti)=>{var Na;return Rt.createElement("div",{style:{display:"flex",alignItems:"center"}},Rt.createElement(dt.Z,{title:Uo(Br)},Rt.createElement("span",null,Rt.createElement(se.Z,{key:1,showLines:1,showTextOnly:!0,value:tr||Br!=null&&Br.challenge_names?Br!=null&&Br.title||En===null?"--":En:(Br==null?void 0:Br.item_type)=="BPROGRAM"?(Na=Br==null?void 0:Br.program_attr)==null?void 0:Na.description:En}))),(Br==null?void 0:Br.high_resources_consume)&&Rt.createElement(Ht.Z,{type:"shixun",style:{marginLeft:10}}))}},{title:"\u521B\u5EFA\u8005",dataIndex:"author_name",key:"author_name",hidden:!tr,render:(En,Br,ti)=>{var Na;return Rt.createElement(dt.Z,{title:Uo(Br)},Rt.createElement("span",null,En?(Na=En==null?void 0:En.split("\u3001"))==null?void 0:Na[0]:"- -"))}},{title:"\u6240\u5C5E\u5355\u4F4D",dataIndex:"author_school_name",key:"author_school_name",hidden:!tr,render:(En,Br,ti)=>Rt.createElement(dt.Z,{title:Uo(Br)},Rt.createElement("span",null,En||"- -"))},{title:"\u96BE\u5EA6",dataIndex:"difficulty",key:"difficulty",render:(En,Br,ti)=>{var Na,hi,Po,al;return Rt.createElement(dt.Z,{title:Uo(Br)},Rt.createElement("div",null,tr||Br!=null&&Br.challenge_names?(Br==null?void 0:Br.level)||((hi=(Na=ss==null?void 0:ss.filter(Yo=>Yo.value===En))==null?void 0:Na[0])==null?void 0:hi.name):(al=(Po=ss==null?void 0:ss.filter(Yo=>Yo.value===En))==null?void 0:Po[0])==null?void 0:al.name))}},{title:"\u5173\u5361\u6570\u91CF",dataIndex:"challenges_count",key:"challenges_count",hidden:!tr,render:(En,Br,ti)=>Rt.createElement(dt.Z,{title:Uo(Br)},Rt.createElement("div",null,En||"- -"))},{title:"\u4F7F\u7528\u6B21\u6570",dataIndex:"quotes",key:"quotes",render:(En,Br,ti)=>Rt.createElement(dt.Z,{title:Uo(Br)},Rt.createElement("div",null,tr||Br!=null&&Br.challenge_names?(Br==null?void 0:Br.study_count)||(Br==null?void 0:Br.stu_num):En))},{title:Rt.createElement("span",null,"\u53D1\u5E03\u72B6\u6001 ",Rt.createElement(dt.Z,{title:"\u672A\u53D1\u5E03\u7684\u5B9E\u8DF5\u9879\u76EE\u4E0D\u80FD\u88AB\u9009\u7528"},Rt.createElement(Jn.Z,null))),dataIndex:"shixun_tag_num_name",key:"shixun_tag_num_name",hidden:!tr,render:(En,Br,ti)=>Rt.createElement(dt.Z,{title:Uo(Br)},Rt.createElement("div",null,En||"- -"))},{title:"\u64CD\u4F5C",dataIndex:"id",key:"item_type",render:(En,Br,ti)=>Rt.createElement(dt.Z,{title:Uo(Br)},Rt.createElement("div",{style:{flex:1,textAlign:"start"}},Rt.createElement("a",{onClick:()=>{var Na,hi;Tr(Sr(Bn({},Br),{question_type:tr||Br!=null&&Br.challenge_names?5:(hi=(Na=Qo==null?void 0:Qo.filter(Po=>Po.value===(Br==null?void 0:Br.item_type)))==null?void 0:Na[0])==null?void 0:hi.question_type})),eo(!0)}},"\u67E5\u770B"),(Br==null?void 0:Br.shixun_tag_num)===1&&Rt.createElement("a",{style:{marginLeft:10},onClick:()=>{$e.default.confirm({title:"\u63D0\u793A",icon:null,centered:!0,width:400,content:Rt.createElement("div",null,"\u662F\u5426\u786E\u5B9A\u53D1\u5E03",Rt.createElement("span",{style:{cursor:"pointer",color:"#3061D0"},onClick:()=>{window.open(`/shixuns/${Br==null?void 0:Br.identifier}/challenges`)}},(Br==null?void 0:Br.shixun_name)||"--"),"\uFF1F"),onOk:()=>ar(void 0,null,function*(){if(!Ll(Br==null?void 0:Br.identifier))return new Promise((Na,hi)=>{hi()})})})}},"\u53D1\u5E03")))}].filter(En=>!En.hidden)}),Rt.createElement(eu.Z,{current:Wt.page,total:(Dr==null?void 0:Dr.items_count)||(Dr==null?void 0:Dr.shixuns_count),style:{marginBottom:20},defaultPageSize:Wt.per_page,showTotal:En=>Rt.createElement("span",null,"\u5171\xA0",Rt.createElement("span",{style:{color:"#165DFF"}},En),"\xA0\u6761\u6570\u636E"),pageSize:Wt.per_page,onChange:(En,Br)=>{Wt.page=En,Wt.per_page=Br,un(Bn({},Wt)),La(Bn({},Wt))}}),Rt.createElement("div",{className:El.bottom},Rt.createElement(We.ZP,{className:El.no,onClick:()=>{ue(!1)}},"\u53D6\u6D88"),Rt.createElement(We.ZP,{loading:Nn,style:{width:Nn&&75},className:El.yes,onClick:()=>ar(void 0,null,function*(){var En,Br;if((yn==null?void 0:yn.length)<=0){Te.ZP.info("\u5F53\u524D\u6682\u672A\u9009\u62E9\u6570\u636E");return}let ti=[...yn==null?void 0:yn.filter(hi=>Lo.includes(hi))],Na=yield(0,Gt.Tr)({id:ti,course_id:$l.coursesId,type:"shixun"});if(Na){let hi=yield Ze([...ml.current],ti,!1);if((hi==null?void 0:hi.status)===0){if((ti==null?void 0:ti.length)==0)return Yt();_i({exercise_id:(Br=(En=gn==null?void 0:gn.editData)==null?void 0:En.exercise)==null?void 0:Br.id,courseId:$l==null?void 0:$l.coursesId,shixun_info:Na==null?void 0:Na.no_use_list}),Al(!0)}}})},"\u786E\u8BA4"))),Rt.createElement($e.default,{open:Mi,title:"\u9898\u76EE\u8BE6\u60C5",footer:!1,className:El.previewModal,width:1e3,centered:!0,onCancel:()=>{eo(!1)},onOk:()=>{eo(!1)}},Rt.createElement(et,{qitem:_o})),Rt.createElement(xn.Z,{resdata:Ho,type:"exercise",okloading:Nn,oktext:(Ho==null?void 0:Ho.can_copy_num)===0?"\u786E\u5B9A":"\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362",onok:En=>ar(void 0,null,function*(){const Br=[],ti=[];for(const Na of Ho==null?void 0:Ho.can_copy_list)Br.push(Na.id);Tl(),yield Ze([...ml.current],[...wa.current].filter(Na=>!ti.includes(Na)),!0,yn==null?void 0:yn.length,Br)})}),Rt.createElement(Pn.Z,{source:"\u5B9E\u8BAD",showModal:$o,onCancel:()=>Al(!1),info:Vs,onOk:Yt}))};var Ma=(0,ve.connect)(({shixunsDetail:ue,exercise:ke})=>({shixunsDetail:ue,exercise:ke}))(vr),da=ne(9556),Zr=ne(59301),oa=Object.defineProperty,Ga=Object.defineProperties,ya=Object.getOwnPropertyDescriptors,Ur=Object.getOwnPropertySymbols,kr=Object.prototype.hasOwnProperty,$r=Object.prototype.propertyIsEnumerable,Yr=(ue,ke,Ze)=>ke in ue?oa(ue,ke,{enumerable:!0,configurable:!0,writable:!0,value:Ze}):ue[ke]=Ze,Za=(ue,ke)=>{for(var Ze in ke||(ke={}))kr.call(ke,Ze)&&Yr(ue,Ze,ke[Ze]);if(Ur)for(var Ze of Ur(ke))$r.call(ke,Ze)&&Yr(ue,Ze,ke[Ze]);return ue},Ta=(ue,ke)=>Ga(ue,ya(ke)),sa=(ue,ke,Ze)=>new Promise((Vt,Nn)=>{var Cr=Yt=>{try{gn(Ze.next(Yt))}catch(Ln){Nn(Ln)}},kn=Yt=>{try{gn(Ze.throw(Yt))}catch(Ln){Nn(Ln)}},gn=Yt=>Yt.done?Vt(Yt.value):Promise.resolve(Yt.value).then(Cr,kn);gn((Ze=Ze.apply(ue,ke)).next())}),Wr=({qitem:ue,TagDiscipline:ke,exerciseitem:Ze,setisedit:Vt,seveeditor:Nn,deleteitem:Cr,getTagData:kn,init:gn,showTip:Yt=!1,saveLoading:Ln=!1})=>{var Ia;const[ln]=Pe.default.useForm(),Wt=!0;return(0,E.useEffect)(()=>{var un,er;ln.setFieldsValue(Ta(Za({},ue),{standard_answers:ue.standard_answer,difficulty:(ue==null?void 0:ue.difficult)||2,item_banks_group_id:ue.item_banks_group_id,hack:Ta(Za({},ue),{time_limit:(ue==null?void 0:ue.time_limit)||3}),hack_codes:{language:(un=ue==null?void 0:ue.program_attr)==null?void 0:un.language,code:fs.Base64.decode(((er=ue==null?void 0:ue.program_attr)==null?void 0:er.code)||"")},repeat_answer:!ue.repeat_answer}))},[ue]),Zr.createElement("div",null,Zr.createElement(Pe.default,{form:ln,colon:!1,onValuesChange:(un,er)=>{var Xn,Zn,qn,yn;if(un!=null&&un.standard_answers){let lr=((Xn=ln.getFieldValue("standard_answers"))==null?void 0:Xn.length)>0&&((qn=(Zn=ln.getFieldValue("standard_answers"))==null?void 0:Zn.map(Dr=>Dr.score))==null?void 0:qn.filter(Dr=>Dr));(lr==null?void 0:lr.length)>0&&ln.setFieldsValue({question_score:(lr==null?void 0:lr.length)>0&&((yn=lr.reduce((Dr,dr)=>Dr+dr))==null?void 0:yn.toFixed(1))})}},onFinish:un=>{var er;Nn(Ta(Za(Za({},ue),un),{item_type:ue==null?void 0:ue.question_type,standard_answers:(er=un.standard_answers)==null?void 0:er.map((Xn,Zn)=>Ta(Za({},Xn),{position:Zn+1})),hack_codes:Ta(Za({},un.hack_codes),{code:fs.Base64.encode(un.hack_codes.code)}),standard_answer:void 0}))},onFinishFailed:un=>sa(void 0,null,function*(){var er,Xn;Te.ZP.error(un.errorFields[0].errors[0]),ln.scrollToField((Xn=(er=un==null?void 0:un.errorFields)==null?void 0:er[0])==null?void 0:Xn.name,{behavior:"smooth",block:"center"})})},Zr.createElement("div",{style:{display:"flex",alignItems:"center"}},Zr.createElement("div",{style:{flex:1}},Zr.createElement("span",{style:{display:"inline-flex",border:"1px solid #9096A3",borderRadius:"50%",width:10,height:10,marginRight:5,background:"#9096A3"}}),Zr.createElement("span",null,"\u7A0B\u5E8F\u586B\u7A7A\u9898")),((Ia=Ze==null?void 0:Ze.exercise)==null?void 0:Ia.exercise_status)==1&&!(ue!=null&&ue.isadd)&&Zr.createElement("span",{style:{marginLeft:20,marginRight:20,color:"red",cursor:"pointer"},onClick:()=>{Cr()}},Zr.createElement("i",{className:"iconfont icon-piliangshanchu3",style:{fontSize:14,marginRight:6}})," \u5220\u9664"),Zr.createElement(We.ZP,{onClick:()=>{var un,er;ue.isadd?(Vt(!1),gn()):(ln.setFieldsValue(Ta(Za({},ue),{standard_answers:ue.standard_answer,difficulty:ue.difficult,item_banks_group_id:ue.item_banks_group_id,hack:Za({},ue),hack_codes:{language:(un=ue==null?void 0:ue.program_attr)==null?void 0:un.language,code:fs.Base64.decode((er=ue==null?void 0:ue.program_attr)==null?void 0:er.code)},repeat_answer:!ue.repeat_answer})),Vt(!1))}},"\u53D6\u6D88"),Zr.createElement(dt.Z,{overlayClassName:he.shake,open:Yt,placement:"bottom",color:"rgba(244,156,14,0.19)",title:Zr.createElement("div",{style:{color:"#FF841A",fontSize:"14px"}},Zr.createElement("i",{className:"iconfont icon-tishi11 mr5 font14"}),"\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u7684\u8BD5\u9898\u3002")},Zr.createElement(We.ZP,{className:"ml20",type:"primary",onClick:()=>{ln.submit()},loading:Ln},"\u4FDD\u5B58"))),Zr.createElement("div",{style:{maxHeight:"calc(100vh - 148px)",overflowY:"auto",marginTop:"10px",paddingRight:"5px"}},Zr.createElement(wn.Z,{text:"\uFF08\u5C0F\u9898\u5206\u503C\u7B49\u4E8E\u5404\u586B\u7A7A\u9879\u5206\u503C\u4E4B\u548C\uFF09"}),Zr.createElement(da.t,{form:ln,questionTitlePlaceholder:"\u8BF7\u7F16\u8F91\u7A0B\u5E8F\u586B\u7A7A\u9898\u9898\u5E72\u5185\u5BB9",scoreByBlank:Wt,hackidentifier:ue==null?void 0:ue.hack_identifier,answerKey:"standard_answers"}),Zr.createElement(Ir,{getTagData:kn,qitem:ue,exerciseitem:Ze,TagDiscipline:ke,form:ln}))))},ba=ne(14185),va=ne(86797),ri=ne(84849),di=ne(78267),mi=ne(23513),vi=ne(32648),ei=ne(66502),Zi=ne(83161),dn=ne(59301),Oi=Object.defineProperty,ao=Object.defineProperties,xi=Object.getOwnPropertyDescriptors,io=Object.getOwnPropertySymbols,gi=Object.prototype.hasOwnProperty,oo=Object.prototype.propertyIsEnumerable,Vi=(ue,ke,Ze)=>ke in ue?Oi(ue,ke,{enumerable:!0,configurable:!0,writable:!0,value:Ze}):ue[ke]=Ze,zi=(ue,ke)=>{for(var Ze in ke||(ke={}))gi.call(ke,Ze)&&Vi(ue,Ze,ke[Ze]);if(io)for(var Ze of io(ke))oo.call(ke,Ze)&&Vi(ue,Ze,ke[Ze]);return ue},fo=(ue,ke)=>ao(ue,xi(ke)),Ca=(ue,ke,Ze)=>new Promise((Vt,Nn)=>{var Cr=Yt=>{try{gn(Ze.next(Yt))}catch(Ln){Nn(Ln)}},kn=Yt=>{try{gn(Ze.throw(Yt))}catch(Ln){Nn(Ln)}},gn=Yt=>Yt.done?Vt(Yt.value):Promise.resolve(Yt.value).then(Cr,kn);gn((Ze=Ze.apply(ue,ke)).next())});const{confirm:ka}=$e.default,Xi=[{name:"\u5355\u9009\u9898",id:0,count:"q_singles",score:"q_singles_scores",nameType:"SINGLE"},{name:"\u591A\u9009\u9898",id:1,count:"q_doubles",score:"q_doubles_scores",nameType:"MULTIPLE"},{name:"\u5224\u65AD\u9898",id:2,count:"q_judges",score:"q_judges_scores",nameType:"JUDGMENT"},{name:"\u586B\u7A7A\u9898",id:3,count:"q_nulls",score:"q_nulls_scores",nameType:"COMPLETION"},{name:"\u7B80\u7B54\u9898",id:4,count:"q_mains",score:"q_mains_scores",nameType:"SUBJECTIVE"},{name:"\u5B9E\u8BAD\u9898",id:5,count:"q_shixuns",score:"q_shixuns_scores",nameType:"PRACTICAL"},{name:"\u7F16\u7A0B\u9898",id:6,count:"q_pros",score:"q_pros_scores",nameType:"PROGRAM"},{name:"\u7EC4\u5408\u9898",id:7,count:"q_combinations",score:"q_combinations_scores",nameType:"COMBINATION"},{name:"\u7A0B\u5E8F\u586B\u7A7A\u9898",id:8,count:"q_combinations",score:"q_combinations_scores",nameType:"BPROGRAM"}],vo=({user:ue,dispatch:ke,itemid:Ze,setisedits:Vt,exercise:Nn,setitemid:Cr})=>{var kn,gn,Yt,Ln,Ia,ln,Wt,un,er,Xn,Zn,qn,yn,lr,Dr,dr,ki,Gi,Ui,_o,Tr,Mi,eo;const[tr,yo]=(0,E.useState)(),[Lo,Io]=(0,E.useState)(!1),[nr,fi]=(0,E.useState)(),[ul,No]=(0,E.useState)(),pi=(0,E.useRef)(),xl=(0,E.useRef)(),[wo,cl]=(0,E.useState)(),[Qo,Ho]=(0,E.useState)(!1),[qo,$o]=(0,E.useState)(!1),[Al,Vs]=(0,E.useState)(),[_i,wa]=(0,E.useState)(!1),[ml,Wo]=(0,E.useState)(!1),[Os,ss]=(0,E.useState)(!1),[tu,As]=(0,E.useState)(!1),[Ms,qi]=(0,E.useState)(!1),[Ii,Yi]=(0,E.useState)(!1),La=(0,ve.useParams)(),[rl,_s]=(0,E.useState)(!1),[ps]=Pe.default.useForm(),[$l,Eo]=(0,E.useState)(!1),[Tl,vl]=(0,E.useState)(!1),[_l,Ll]=(0,E.useState)(!1),[Uo,Rl]=(0,E.useState)(!1),[dl,zs]=(0,E.useState)(!1),Ps=(0,E.useRef)(),[En,Br]=(0,E.useState)(!1);(0,E.useEffect)(()=>{Ze&&Na()},[Ze]),(0,E.useEffect)(()=>{Vt(qo)},[qo]),(0,E.useEffect)(()=>{nr!=null&&nr.question_id&&(No(nr==null?void 0:nr.question_score),xl.current=nr==null?void 0:nr.question_id)},[nr]);const ti=mr=>Ca(void 0,null,function*(){});function Na(){return Ca(this,null,function*(){var mr,_a,Ki,ji;Ho(!0),Io(!0);const po=yield ke({type:"exercise/editExercise",payload:{categoryId:Ze}});Ho(!1),Io(!1),yo(po),qi(!1),fi(fo(zi({},(Ki=(_a=(mr=po==null?void 0:po.exercise_question_types)==null?void 0:mr[0])==null?void 0:_a.items)==null?void 0:Ki[0]),{index:1})),cl(fo(zi({},(ji=po==null?void 0:po.exercise_question_types)==null?void 0:ji[0]),{indexs:1}))})}function hi(mr,_a=!0){return Ca(this,null,function*(){var Ki,ji,po,bo;_a&&(Ho(!0),Io(!0));const Oo=yield ke({type:"exercise/editExercise",payload:{categoryId:Ze}});yo(Oo);let zo=[];(Ki=Oo==null?void 0:Oo.exercise_question_types)==null||Ki.map(Wl=>{var Qs;(Qs=Wl==null?void 0:Wl.items)==null||Qs.map((pu,Lu)=>{zo.push(fo(zi({},pu),{index:Lu+1}))})});let Xl=(ji=zo.filter(Wl=>Wl.question_id===(mr==null?void 0:mr.id)))==null?void 0:ji[0],ru=(bo=((po=Oo==null?void 0:Oo.exercise_question_types)==null?void 0:po.map((Wl,Qs)=>{if((Xl==null?void 0:Xl.question_type)===(Wl==null?void 0:Wl.question_type))return fo(zi({},Wl),{indexs:Qs+1})})).filter(Wl=>Wl))==null?void 0:bo[0];cl(zi({},ru)),fi(zi({},Xl)),No(Xl==null?void 0:Xl.question_score),Ho(!1),Io(!1),qi(!1)})}function Po(mr){return Ca(this,null,function*(){Br(!0);let _a=fo(zi({},mr),{repeat_answer:!mr.repeat_answer,difficulty:(mr==null?void 0:mr.difficulty)||2,item_type:mr.question_type,course_discipline_id:mr==null?void 0:mr.course_discipline_id,tag_discipline_ids:mr==null?void 0:mr.tag_discipline_ids,hack:fo(zi({},mr==null?void 0:mr.hack),{difficult:(mr==null?void 0:mr.difficulty)||2}),hack_identifier:sessionStorage.projectFill});mr.tag_discipline_ids&&(_a.tag_discipline_ids=Array.isArray(mr.tag_discipline_ids)?mr.tag_discipline_ids:[mr.tag_discipline_ids]);let Ki=Ms?`/api/exercises/${Ze}/exercise_questions`:`/api/exercise_questions/${mr==null?void 0:mr.question_id}.json`;if((mr==null?void 0:mr.is_my)===1){const ji=ka({title:"\u63D0\u793A",content:dn.createElement("div",null,dn.createElement("p",null,"\u6B64\u9898\u76EE\u5DF2\u5B58\u5728\u4E8E\u8BD5\u9898\u5E93\uFF0C\u662F\u5426\u5C06\u4FEE\u6539\u540E\u7684\u9898\u76EE\u8986\u76D6\u8BD5\u9898\u5E93\u7684\u539F\u9898\uFF1F"),dn.createElement("i",{className:"iconfont icon-guanbi",style:{position:"absolute",top:"20px",right:"20px",cursor:"pointer"},onClick:()=>{ji.destroy()}})),okText:"\u8986\u76D6\u539F\u9898",cancelText:"\u4E0D\u8986\u76D6",keyboard:!1,onOk:()=>Ca(this,null,function*(){_a.is_cover=1;let po=yield(0,Ke.ZP)(Ki,{method:Ms?"post":"PUT",body:zi({},_a)});(po==null?void 0:po.status)===0&&($o(!1),hi({id:(po==null?void 0:po.exercise_question_id)||(mr==null?void 0:mr.question_id)})),ji.destroy()}),onCancel:()=>Ca(this,null,function*(){let po=yield(0,Ke.ZP)(Ki,{method:Ms?"post":"PUT",body:zi({},_a)});(po==null?void 0:po.status)===0&&($o(!1),hi({id:(po==null?void 0:po.exercise_question_id)||(mr==null?void 0:mr.question_id)})),ji.destroy()})})}else{let ji=yield(0,Ke.ZP)(Ki,{method:Ms?"post":"PUT",body:zi({},_a)});(ji==null?void 0:ji.status)===0&&($o(!1),hi({id:(ji==null?void 0:ji.exercise_question_id)||(mr==null?void 0:mr.question_id)}))}(0,le.Vf)("#question-scroll-id"),Br(!1)})}function al(mr){return Ca(this,null,function*(){Io(!0);let _a=yield(0,Ke.ZP)(`/api/exercises/${Ze}/sort_question_type.json`,{method:"post",body:{question_type:mr}});if(Io(!1),(_a==null?void 0:_a.status)===0){const Ki=yield ke({type:"exercise/editExercise",payload:{categoryId:Ze}});yo(Ki),qi(!1)}})}const Yo=(mr,_a,Ki)=>Ca(void 0,null,function*(){var ji;if(mr.length===0){Te.ZP.warning("\u8BF7\u4E0A\u4F20\u6587\u4EF6"),Ki();return}const po={id:La==null?void 0:La.exerciseId,file:(ji=mr[0])==null?void 0:ji.file,course_discipline_id:_a};fu(po,`${ba.Z.API_SERVER}/api/courses/${La==null?void 0:La.coursesId}/exercises/import_exercise.json`,bo=>{var Oo;if((bo==null?void 0:bo.status)===0){const zo={};(Oo=bo==null?void 0:bo.fail)==null||Oo.forEach(Cs=>{var ru;((ru=Object.keys(zo))==null?void 0:ru.includes(Cs.message))?zo[Cs.message]=zo[Cs.message]+1:zo[Cs.message]=1});let Xl=`\u6210\u529F\u5BFC\u5165${bo==null?void 0:bo.success}\u6761`;Object.keys(zo).forEach(Cs=>{Xl=Xl+`,${Cs}${zo[Cs]}\u6761`}),Te.ZP.success(Xl),wa(!1),Na()}(bo==null?void 0:bo.status)===-1&&(Te.ZP.error(bo==null?void 0:bo.message),Ki())})}),us=(mr,_a)=>Ca(void 0,null,function*(){tr.exercise_types.q_scores=Number(tr.exercise_types.q_scores)+Number(mr)-Number(_a==null?void 0:_a.question_score);const Ki=yield(0,ri.zR)({score:(0,di.round)(mr,1),question_id:_a==null?void 0:_a.question_id});if((Ki==null?void 0:Ki.status)===0){Te.ZP.success("\u4FEE\u6539\u6210\u529F"),hi({id:xl.current},!1);return}(Ki==null?void 0:Ki.status)===-1&&No(_a==null?void 0:_a.question_score)}),Vo=()=>{Rl(!0)};(0,E.useEffect)(()=>{if(Uo){const mr=setTimeout(()=>{Rl(!1)},2e3);return()=>clearTimeout(mr)}},[Uo]);const fu=(mr,_a,Ki,ji,po)=>{const bo=new FormData;Object.keys(mr).forEach(zo=>{bo.append(zo,mr[zo])});const Oo=new window.XMLHttpRequest;return Oo.withCredentials=!0,Oo.addEventListener("load",function(zo){var Xl;Ki(JSON.parse((Xl=zo==null?void 0:zo.target)==null?void 0:Xl.response))},!1),Oo.addEventListener("error",function(zo){po&&po(zo)},!1),Oo.upload.onprogress=zo=>{ji&&ji(zo)},Oo.open("POST",_a),Oo.send(bo),Oo};function Ks(){return Ca(this,null,function*(){$e.default.confirm({title:"\u63D0\u793A",content:"\u786E\u5B9A\u8981\u5220\u9664\u8FD9\u4E2A\u8BD5\u9898\u5417\uFF1F",okText:"\u786E\u5B9A",centered:!0,className:he.modalconfirm,onOk:()=>Ca(this,null,function*(){var mr,_a;if(nr.question_id){let Ki=yield(0,Ke.ZP)(`/api/exercise_questions/${nr.question_id}.json`,{method:"delete"});if((Ki==null?void 0:Ki.status)===0){let ji=[];(mr=tr==null?void 0:tr.exercise_question_types)==null||mr.map(Oo=>{var zo;(zo=Oo==null?void 0:Oo.items)==null||zo.map((Xl,Cs)=>{ji.push(fo(zi({},Xl),{index:Cs+1}))})});const po=ji==null?void 0:ji.findIndex(Oo=>Oo.question_id===nr.question_id),bo=(_a=ji==null?void 0:ji[po+1])==null?void 0:_a.question_id;bo?hi({id:bo}):Na(),$o(!1)}}else fi({}),$o(!1),Na()}),cancelText:"\u53D6\u6D88"})})}const cc=mr=>Ca(void 0,null,function*(){return yield(0,Ke.ZP)(`/api/exercises/${Ze}/select_questions.json`,{method:"post",body:zi({},mr)})}),{overflow:Tu,handleMouseEnter:nc,handleMouseLeave:dc}=(0,va.I)(),rc=(mr,_a)=>dn.createElement(Zt.default,null,dn.createElement(Zt.default.Item,{key:"0",onClick:()=>Yu(mr==null?void 0:mr.question_type)},dn.createElement("span",{className:he.moreSpan},"\u65B0\u589E")),dn.createElement(Zt.default.Item,{key:"1",disabled:_a===0,onClick:()=>Ca(void 0,null,function*(){if(_a===0)return;if(qo){Vo();return}let Ki=(0,le.rz)(tr==null?void 0:tr.exercise_question_types,_a,_a-1);yield al(Ki.map(ji=>ji.name))})},dn.createElement("span",{className:he.moreSpan},"\u4E0A\u79FB")),dn.createElement(Zt.default.Item,{key:"2",disabled:_a===(tr==null?void 0:tr.exercise_question_types.length)-1,onClick:()=>Ca(void 0,null,function*(){if(_a===(tr==null?void 0:tr.exercise_question_types.length)-1)return;if(qo){Vo();return}let Ki=(0,le.rz)(tr==null?void 0:tr.exercise_question_types,_a,_a+1);yield al(Ki.map(ji=>ji.name))})},dn.createElement("span",{className:he.moreSpan},"\u4E0B\u79FB")),dn.createElement(Zt.default.Item,{key:"3",onClick:()=>{var Ki;ps.setFieldsValue({name:mr.name,item_type_en:(Ki=Xi.find(ji=>ji.id==mr.question_type))==null?void 0:Ki.nameType}),Eo(!0)}},dn.createElement("span",{className:he.moreSpan},"\u91CD\u547D\u540D"))),Yu=mr=>{var _a,Ki,ji,po,bo,Oo,zo,Xl,Cs,ru,Wl,Qs,pu,Lu;if(qo){Vo();return}if(qi(!0),mr===5){ss(!0),As(!0);return}if(mr===6){let ic=(Ki=(_a=Nn==null?void 0:Nn.editData)==null?void 0:_a.exercise)!=null&&Ki.set_question_sub_discipline?`/problems/newcreate?express_id=${(ji=tr==null?void 0:tr.exercise)==null?void 0:ji.id}&callback_url=/classrooms/${La.coursesId}/exercise/add/${Ze}?type=2&course_discipline_id=${((bo=(po=Nn==null?void 0:Nn.editData)==null?void 0:po.exercise)==null?void 0:bo.course_discipline_id)||""}`:`/problems/newcreate?express_id=${(Oo=tr==null?void 0:tr.exercise)==null?void 0:Oo.id}&callback_url=/classrooms/${La.coursesId}/exercise/add/${Ze}?type=2`;ve.history.push(ic);return}$o(!0),fi(mr===2?{question_type:mr,isadd:!0,repeat_answer:!0,choices:[{choice_text:"\u6B63\u786E",is_answer:0},{choice_text:"\u9519\u8BEF",is_answer:0}],question_choices:[{choice_text:"\u6B63\u786E",is_answer:0},{choice_text:"\u9519\u8BEF",is_answer:0}],difficulty:2,standard_answers:[],question_score:"",question_title:"",tag_discipline_ids:[],course_discipline_id:(Xl=(zo=Nn==null?void 0:Nn.editData)==null?void 0:zo.exercise)!=null&&Xl.set_question_sub_discipline?(ru=(Cs=Nn==null?void 0:Nn.editData)==null?void 0:Cs.exercise)==null?void 0:ru.course_discipline_id:null,analysis:""}:{question_type:mr,question_choices:Array.from({length:4},()=>({choice_text:"",is_answer:0})),standard_answers:[{position:1,answer_text:[""],model:1}],repeat_answer:!0,difficulty:2,isadd:!0,tag_discipline_ids:[],question_score:"",analysis:"",sub_item_banks:[],is_ordered:!0,question_title:"",use_keywords:!1,keywords:[],use_blank_score:!0,allow_student_debug:!1,submit_rule:1,hack_sets:[{input:"",output:""}],course_discipline_id:(Qs=(Wl=Nn==null?void 0:Nn.editData)==null?void 0:Wl.exercise)!=null&&Qs.set_question_sub_discipline?(Lu=(pu=Nn==null?void 0:Nn.editData)==null?void 0:pu.exercise)==null?void 0:Lu.course_discipline_id:null,downcase:!0,no_space:!0})},ac=[{key:1,label:"\u6279\u91CF\u5BFC\u5165",onClick:()=>{wa(!0)}},{key:2,label:dn.createElement("div",null,dn.createElement("img",{width:26,style:{position:"absolute",top:-2},src:vi.$}),dn.createElement("span",null,"\u667A\u80FD\u5BFC\u5165")),onClick:()=>{if(!(!(tr!=null&&tr.is_old_data_for_time)&&(0,le.Ye)(ke))){if(qo){Vo();return}vl(!0)}}}];console.log(wo==null?void 0:wo.question_type,nr==null?void 0:nr.question_type);const Ku=()=>Ca(void 0,null,function*(){const mr=yield(0,Ke.ZP)(`/api/courses/${La==null?void 0:La.coursesId}/sync_shixuns.json`,{method:"post",body:{exercise_ids:[La.exerciseId]}});if((mr==null?void 0:mr.status)===0){ke({type:"classroomList/setActionTabs",payload:{}}),Te.ZP.info("\u5B9E\u8BAD\u540C\u6B65\u4E2D\uFF0C\u8BF7\u7A0D\u540E"),Ho(!0),Io(!0);const _a=yield ke({type:"exercise/editExercise",payload:{categoryId:Ze}});Ho(!1),Io(!1),yo(_a),qi(!1)}});return dn.createElement("div",null,dn.createElement(Pt.Z,{spinning:Qo},dn.createElement("div",{className:he.bg},((kn=tr==null?void 0:tr.exercise_types)==null?void 0:kn.q_counts)===0&&!qo&&dn.createElement(ae.Z,{styles:{marginTop:180},customText:dn.createElement("span",null,"\u8FD8\u6CA1\u6709\u8BD5\u9898\uFF0C\u8BF7\u4ECE",dn.createElement("span",{className:"c-light-primary"},"\u5E95\u90E8\u64CD\u4F5C\u680F"),"\u8FDB\u884C\u6DFB\u52A0~")}),(((gn=tr==null?void 0:tr.exercise_types)==null?void 0:gn.q_counts)>0||qo)&&dn.createElement("div",{style:{textAlign:"center"}},dn.createElement("div",{style:{marginTop:20,borderTop:"1px solid #DCDCDC",display:"block",alignItems:"stretch"}},dn.createElement("div",{style:{backgroundColor:"#F6F7F9",display:"inline-block",position:"sticky",top:0}},dn.createElement("div",{className:he.left},dn.createElement("div",{className:he.leftAction},((Yt=tr==null?void 0:tr.exercise)==null?void 0:Yt.exercise_status)===1&&dn.createElement(We.ZP,{onClick:()=>{if(qo){Vo();return}Wo(!0)},className:he.Button},"\u6279\u91CF\u64CD\u4F5C")),dn.createElement("div",{className:he.scrollWrapper,style:{overflow:Tu},onMouseEnter:nc,onMouseLeave:dc},(Ln=tr==null?void 0:tr.exercise_question_types)==null?void 0:Ln.map((mr,_a)=>dn.createElement("div",{key:_a,className:"mb30"},dn.createElement("div",{className:he.title},dn.createElement("div",{className:he.titleleft},dn.createElement("span",{style:{color:"#000000",fontWeight:400,fontSize:12}}," ",(0,le.EM)(_a+1),"\u3001\u3010",mr.name,"\u3011"),dn.createElement("span",{style:{color:"#464F66",fontSize:12}},"\uFF08",mr.count,"\u5C0F\u9898\uFF0C\u5171",mr.score,"\u5206\uFF09")),dn.createElement(en.Z,{dropdownRender:()=>rc(mr,_a),placement:"bottomLeft"},dn.createElement("div",{className:he.more_style},dn.createElement("i",{className:"iconfont icon-sandian font12"})))),dn.createElement(Vr,{handleEditing:Vo,isedit:qo,setBigqitem:cl,bigitem:fo(zi({},mr),{indexs:_a+1}),setqitem:Ki=>Ca(void 0,null,function*(){var ji;(ji=pi.current)==null||ji.blur(),fi(Ki)}),qitem:nr,Itemid:Ze,getdata:hi,data:mr.items})))))),dn.createElement("div",{id:"question-scroll-id",style:{overflow:qo?"hidden":"auto"},className:he.right},!(nr!=null&&nr.isadd)&&dn.createElement("div",{className:he.title},!qo&&dn.createElement("div",{style:{flex:1}},dn.createElement("span",{style:{color:"#000000",fontWeight:600,fontSize:16}}," ",(wo==null?void 0:wo.indexs)&&(0,le.EM)(wo==null?void 0:wo.indexs),"\u3001\u3010",wo==null?void 0:wo.name,"\u3011"),dn.createElement(dt.Z,{title:"\u7F16\u8F91\u9898\u578B\u540D\u79F0"},dn.createElement("i",{className:`${he.edit} iconfont icon-bianji_Hover mr5 ml5 font18`,onClick:()=>{var mr;ps.setFieldsValue({name:wo.name,item_type_en:(mr=Xi.find(_a=>_a.id==wo.question_type))==null?void 0:mr.nameType}),Eo(!0)}})),dn.createElement("span",{style:{color:"#464F66",fontSize:16,fontWeight:400}},"\uFF08",wo==null?void 0:wo.count,"\u5C0F\u9898\uFF0C\u5171",wo==null?void 0:wo.score,"\u5206\uFF09"),(nr==null?void 0:nr.question_type)===6&&dn.createElement("span",{onClick:()=>{$e.default.destroyAll(),Ll(2)},className:"current c-light-primary font14 bold-400"},"\u6279\u91CF\u8BBE\u7F6E\u7F16\u7A0B\u8BED\u8A00"),(nr==null?void 0:nr.question_type)===5&&dn.createElement(ze.default,{defaultChecked:(ln=(Ia=Nn==null?void 0:Nn.editData)==null?void 0:Ia.exercise)==null?void 0:ln.show_challenge_task_pass,onChange:mr=>Ca(void 0,null,function*(){let _a=yield(0,Ke.ZP)(`/api/exercises/${Ze}/update_show_columns.json`,{method:"post",body:{show_challenge_task_pass:mr.target.checked}});(_a==null?void 0:_a.status)===0&&(Te.ZP.info("\u8BBE\u7F6E\u6210\u529F"),hi({id:xl.current}))}),style:{marginTop:20,marginBottom:20}},"\u5C55\u793A\u5173\u5361\u63CF\u8FF0"),(nr==null?void 0:nr.question_type)===6&&dn.createElement("span",{style:{marginLeft:20},onClick:()=>{var mr,_a,Ki,ji;$e.default.confirm({title:"\u7F16\u7A0B\u9898\u8BBE\u7F6E",icon:null,centered:!0,closable:!0,footer:null,content:dn.createElement("div",null,(nr==null?void 0:nr.question_type)===6&&dn.createElement(ze.default,{defaultChecked:(_a=(mr=Nn==null?void 0:Nn.editData)==null?void 0:mr.exercise)==null?void 0:_a.show_hack_sets,onChange:po=>Ca(void 0,null,function*(){let bo=yield(0,Ke.ZP)(`/api/exercises/${Ze}/update_show_columns.json`,{method:"post",body:{show_hack_sets:po.target.checked}});(bo==null?void 0:bo.status)===0&&(Te.ZP.info("\u8BBE\u7F6E\u6210\u529F"),$e.default.destroyAll(),hi({id:xl.current}))}),style:{marginTop:20,marginBottom:20}},"\u5C55\u793A\u6D4B\u8BD5\u7528\u4F8B"),dn.createElement("br",null),(nr==null?void 0:nr.question_type)===6&&dn.createElement(ze.default,{defaultChecked:(ji=(Ki=Nn==null?void 0:Nn.editData)==null?void 0:Ki.exercise)==null?void 0:ji.show_hack_description,onChange:po=>Ca(void 0,null,function*(){let bo=yield(0,Ke.ZP)(`/api/exercises/${Ze}/update_show_columns.json`,{method:"post",body:{show_hack_description:po.target.checked}});(bo==null?void 0:bo.status)===0&&(Te.ZP.info("\u8BBE\u7F6E\u6210\u529F"),$e.default.destroyAll(),hi({id:xl.current}))}),style:{marginBottom:10}},"\u5C55\u793A\u8BD5\u9898\u63CF\u8FF0"))})},className:"current c-light-primary font14 bold-400"},"\u7F16\u7A0B\u9898\u663E\u793A\u8BBE\u7F6E")),dn.createElement("div",{style:{display:"flex",alignItems:"center"}},(nr==null?void 0:nr.question_type)===5&&!qo&&dn.createElement("a",{className:he.shixun,href:`/shixuns/${(0,Ys.G5)()?nr.forked_shixun_identifier:nr==null?void 0:nr.shixun_identifier}/challenges?exercise=true`,target:"_blank"},dn.createElement("i",{onClick:()=>{},style:{marginRight:20},className:"iconfont icon-shixunkecheng mr5 "}),"\u5B9E\u8BAD\u8BE6\u60C5"),!qo&&((Wt=tr==null?void 0:tr.exercise)==null?void 0:Wt.exercise_status)==1&&[0,1,2,4,6].includes(nr==null?void 0:nr.question_type)&&dn.createElement(Pe.default.Item,{label:"\u5206\u503C",style:{margin:"0 20px"},required:!0},dn.createElement(Fe.Z,{precision:1,ref:pi,onChange:mr=>No(mr),value:ul,onBlur:mr=>{us(mr.target.value,nr)}})),!qo&&((un=tr==null?void 0:tr.exercise)==null?void 0:un.exercise_status)==1&&dn.createElement(dt.Z,{title:"\u5220\u9664"},dn.createElement("i",{onClick:()=>{Ks()},style:{marginRight:20},className:`${he.delete} iconfont icon-shanchu13 mr8 ml8 `})),(nr==null?void 0:nr.question_type)!==5&&!qo&&dn.createElement(dn.Fragment,null,(nr==null?void 0:nr.is_my)==1&&dn.createElement(dt.Z,{title:"\u67E5\u770B\u539F\u9898"},dn.createElement("i",{className:`${he.yuanti} iconfont icon-chakanyuanti mr8 ml8`,onClick:()=>{(nr==null?void 0:nr.question_type)==6?window.open(`/problems/newedit/${nr==null?void 0:nr.item_bank_hack_identifier}`):(nr==null?void 0:nr.question_type)==8?window.open(`/problemset/edit/${nr==null?void 0:nr.item_bank_hack_identifier}?type=1`):window.open(`/problemset/edit/${nr==null?void 0:nr.item_bank_id}`)}})),dn.createElement(dt.Z,{title:"\u52A0\u5165\u6211\u7684\u9898\u5E93"},dn.createElement("i",{className:`${he.tianjia} iconfont icon-jiarushitiku mr8 ml8`,onClick:()=>{Ps.current=[],$e.default.confirm({centered:!0,width:500,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u52A0\u5165\u6211\u7684\u9898\u5E93",maskClosable:!0,className:"custom-modal-divider",icon:null,content:dn.createElement("div",{className:`font14 ${he.overflow}`,style:{maxHeight:500,overflow:"auto"}},dn.createElement("p",{className:"c-grey-333"},"\u8BF7\u9009\u62E9\u52A0\u5165\u7684\u6587\u4EF6\u5939"),dn.createElement(Pt.Z,{spinning:!1},dn.createElement(mi.Z,{defaultValue:!0,value:Ps.current,onChange:mr=>Ps.current=mr}))),onOk:()=>Ca(void 0,null,function*(){var mr;(0,ri.$l)({id:nr==null?void 0:nr.question_id,group_id:((mr=Ps==null?void 0:Ps.current)==null?void 0:mr[0])||""}).then(_a=>{(_a==null?void 0:_a.status)==0&&(Te.ZP.success("\u52A0\u5165\u6210\u529F"),Na())})})})}}))),!qo&&(((er=tr==null?void 0:tr.exercise)==null?void 0:er.exercise_status)==1||((Xn=tr==null?void 0:tr.exercise)==null?void 0:Xn.exercise_status)==2&&((qn=(Zn=ue.userInfo)==null?void 0:Zn.course)==null?void 0:qn.course_role)!=15||((yn=tr==null?void 0:tr.exercise)==null?void 0:yn.exercise_status)==3&&((Dr=(lr=ue.userInfo)==null?void 0:lr.course)==null?void 0:Dr.course_role)!=15||((dr=tr==null?void 0:tr.exercise)==null?void 0:dr.exercise_status)==4&&((Gi=(ki=ue.userInfo)==null?void 0:ki.course)==null?void 0:Gi.course_role)!=15)&&dn.createElement(dt.Z,{title:"\u7F16\u8F91\u8BD5\u9898"},dn.createElement("i",{onClick:()=>{(nr==null?void 0:nr.question_type)===6?ve.history.push(`/problems/newedit/${nr==null?void 0:nr.hack_identifier}?type=exercises&express_id=${La.exerciseId}&question_id=${nr==null?void 0:nr.question_id}&score=${nr==null?void 0:nr.question_score}&exercise=true&callback_url=/classrooms/${La.coursesId}/exercise/add/${Ze}?type=2`):(Br(!1),$o(!0))},className:`${he.edit} iconfont icon-bianji_Hover ml8`})))),!qo&&dn.createElement("div",null,dn.createElement("div",{className:he.qcount},dn.createElement("span",{className:he.score},nr==null?void 0:nr.question_score,"\u5206"),dn.createElement(se.Z,{className:he.qtitle,value:(nr==null?void 0:nr.index)+`\u3001${(nr==null?void 0:nr.question_type)==8?(Ui=nr==null?void 0:nr.program_attr)==null?void 0:Ui.description:nr==null?void 0:nr.question_title}`}),(nr==null?void 0:nr.high_resources_consume)&&dn.createElement(Ht.Z,{type:"shixun",style:{marginLeft:10}}),(0,Ys.G5)()&&(nr==null?void 0:nr.shixun_change)&&(nr==null?void 0:nr.question_type)==5&&dn.createElement(Lt.Z,{open:dl,onOpenChange:mr=>{zs(mr)},placement:"bottomLeft",title:null,content:dn.createElement("div",{style:{width:"310px",color:"#000"}},dn.createElement("div",null,"\u5B9E\u8BAD\u7BA1\u7406\u5458\u5BF9\u8BD5\u5377\u4E2D\u4F7F\u7528\u7684\u5B9E\u8DF5\u9879\u76EE\u8FDB\u884C\u4E86\u4FEE\u6539\uFF0C\u8BF7\u68C0\u67E5\u540E\uFF0C\u786E\u8BA4\u662F\u5426\u9700\u8981\u540C\u6B65\u5230\u8BD5\u5377\u4E2D"),dn.createElement("div",{className:he.btn_warp},dn.createElement(We.ZP,{size:"small",onClick:()=>zs(!1)},"\u5FFD\u7565"),dn.createElement(We.ZP,{className:"ml20",size:"small",type:"primary",onClick:()=>{zs(!1),ke({type:"classroomList/setActionTabs",payload:{key:"\u5B9E\u8BAD\u540C\u6B65\u786E\u8BA4",onOK:()=>Ku()}})}},"\u786E\u8BA4\u540C\u6B65"),dn.createElement(We.ZP,{className:"ml20",size:"small",type:"primary",onClick:()=>(0,le.xg)(`/shixuns/${nr==null?void 0:nr.forked_shixun_identifier}/challenges?exercise=true`)},"\u524D\u5F80\u67E5\u770B")))},dn.createElement("i",{className:"iconfont icon-tongzhi1 pl10 current",style:{fontSize:"16px",color:"#F7B500"},onClick:mr=>mr.stopPropagation()}))),(nr==null?void 0:nr.question_type)===6&&dn.createElement(pe.Z,{onEdit:()=>Ll(1),className:"mt10",dataSource:(nr==null?void 0:nr.languages)||[]}),dn.createElement(Ou,{exercise:Nn,TagDiscipline:Al,qitem:nr})),qo&&dn.createElement("div",null,(nr==null?void 0:nr.question_type)<=1&&dn.createElement(cn,{saveLoading:En,deleteitem:Ks,getTagData:ti,seveeditor:Po,exerciseitem:tr,TagDiscipline:Al,setisedit:$o,qitem:nr,init:Na,showTip:Uo}),(nr==null?void 0:nr.question_type)===5&&dn.createElement(nu,{saveLoading:En,setqitem:fi,deleteitem:Ks,seveeditor:Po,exerciseitem:tr,TagDiscipline:Al,setisedit:$o,qitem:nr,showTip:Uo}),(nr==null?void 0:nr.question_type)===3&&dn.createElement(Nr,{saveLoading:En,deleteitem:Ks,getTagData:ti,seveeditor:Po,exerciseitem:tr,TagDiscipline:Al,setisedit:$o,qitem:nr,init:Na,showTip:Uo}),(nr==null?void 0:nr.question_type)===2&&dn.createElement(sr,{saveLoading:En,deleteitem:Ks,getTagData:ti,seveeditor:Po,exerciseitem:tr,TagDiscipline:Al,setisedit:$o,qitem:nr,init:Na,showTip:Uo}),(nr==null?void 0:nr.question_type)===4&&dn.createElement(du,{saveLoading:En,deleteitem:Ks,getTagData:ti,seveeditor:Po,exerciseitem:tr,TagDiscipline:Al,setisedit:$o,qitem:nr,init:Na,showTip:Uo}),(nr==null?void 0:nr.question_type)===7&&dn.createElement(qs,{saveLoading:En,deleteitem:Ks,getTagData:ti,seveeditor:Po,exerciseitem:tr,TagDiscipline:Al,setisedit:$o,qitem:nr,init:Na,showTip:Uo}),(nr==null?void 0:nr.question_type)===8&&dn.createElement(Wr,{saveLoading:En,deleteitem:Ks,getTagData:ti,seveeditor:Po,exerciseitem:tr,TagDiscipline:Al,setisedit:$o,qitem:nr,init:Na,showTip:Uo}))))))),dn.createElement("div",{className:he.bottomdiv},dn.createElement("div",{className:he.exercise_styles},((_o=tr==null?void 0:tr.exercise)==null?void 0:_o.exercise_status)==1&&dn.createElement(dn.Fragment,null,dn.createElement("span",{className:he.spanBtn,onClick:()=>{if(qo){Vo();return}ss(!0),As(!1)}},"\u9898\u5E93\u9009\u9898"),dn.createElement(en.Z,{menu:{items:ac}},dn.createElement("span",{className:he.spanBtn},"\u5BFC\u5165\u8BD5\u9898")),dn.createElement("span",{className:he.spanBtn,onClick:()=>Ca(void 0,null,function*(){var mr;if(!(tr!=null&&tr.is_old_data_for_time)&&(0,le.Ye)(ke))return;let _a=yield(0,Ke.ZP)(`/api/exercises/${La==null?void 0:La.exerciseId}/simulate_start_answer.json`,{method:"get",params:{coursesId:La==null?void 0:La.coursesId,categoryId:La==null?void 0:La.exerciseId}});(_a==null?void 0:_a.status)!=-1&&window.open(`/classrooms/${La==null?void 0:La.coursesId}/exercise/${La==null?void 0:La.exerciseId}/${(mr=ue.userInfo)==null?void 0:mr.login}/initate_answer`)})},"\u6A21\u62DF\u8003\u8BD5"),dn.createElement("span",{className:he.spanBtn,onClick:()=>{window.open(`/classrooms/${La==null?void 0:La.coursesId}/exercise/${La==null?void 0:La.exerciseId}/detail?random=false&tabs=2`)}},"\u8BD5\u5377\u9884\u89C8"),Xi==null?void 0:Xi.map(mr=>dn.createElement(We.ZP,{className:he.addQuestionBtn,key:mr.id,type:"primary",onClick:()=>{Yu(mr.id)}},mr.name))),((Tr=tr==null?void 0:tr.exercise)==null?void 0:Tr.exercise_status)!=1&&dn.createElement(dn.Fragment,null,dn.createElement("span",{style:{width:"1022px"}})),dn.createElement("span",{className:he.saveBtn,onClick:()=>Ca(void 0,null,function*(){var mr,_a,Ki;if(qo){Vo();return}const ji=Number(tr.exercise_types.q_scores);[100,120,150].includes(ji)||(yield new Promise((Oo,zo)=>{$e.default.confirm({centered:!0,icon:null,okText:"\u4FDD\u5B58",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:dn.createElement("div",{className:"c-grey-333"},"\u5F53\u524D\u8BD5\u5377\u603B\u5206\u4E3A",dn.createElement("span",{style:{color:"#FA6400",margin:"0 5px"}},ji),"\u5206\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u8FDB\u884C\u4FDD\u5B58\uFF1F"),onOk:()=>Ca(void 0,null,function*(){Oo("")}),onCancel:()=>{zo()}})}));let po=(_a=(mr=tr==null?void 0:tr.exercise_question_types)==null?void 0:mr.filter(Oo=>Oo.question_type===5)[0])==null?void 0:_a.items,bo=0;po==null||po.map(Oo=>{Oo.high_resources_consume&&(bo=bo+1)}),console.log(bo),bo>0?ke({type:"classroomList/setActionTabs",payload:{key:"\u6388\u6743\u63D0\u793A",count:bo,fn:()=>{var Oo;((Oo=tr==null?void 0:tr.exercise)==null?void 0:Oo.exercise_status)==1?(Te.ZP.success("\u4FDD\u5B58\u6210\u529F"),ve.history.push(`/classrooms/${La==null?void 0:La.coursesId}/exercise/${Ze}/detail?random=false&tabs=3`),Yi(!1)):ve.history.back()}}}):((Ki=tr==null?void 0:tr.exercise)==null?void 0:Ki.exercise_status)==1?(Te.ZP.success("\u4FDD\u5B58\u6210\u529F"),ve.history.push(`/classrooms/${La==null?void 0:La.coursesId}/exercise/${Ze}/detail?random=false&tabs=3`),Yi(!1)):ve.history.back()})},dn.createElement("i",{className:"iconfont icon-baocun1",style:{fontSize:15,marginRight:5}}),"\u4FDD\u5B58\u8BD5\u5377"))),dn.createElement(Zi.Z,{data:(tr==null?void 0:tr.exercise_question_types)||[],visible:ml,examId:Ze,isPaperlibrary:!1,onCancel:()=>Wo(!1),onOK:()=>{Wo(!1),Na()}}),Os&&dn.createElement(Ma,{setScoreShow:ss,isshixuns:tu,isloadings:rl,ScoreShow:Os,onOk:(mr,_a,Ki=!0)=>Ca(void 0,null,function*(){_s(!0);let po=yield cc({exam_id:Ze,item_bank_ids:mr,shixun_ids:_a});return _s(!1),(po==null?void 0:po.status)===0&&Ki&&$e.default.confirm({title:"\u63D0\u793A",icon:null,centered:!0,content:"\u65B0\u52FE\u9009\u7684\u8BD5\u9898\u5DF2\u7ECF\u6DFB\u52A0\u5230\u8BD5\u5377\uFF0C\u5982\u679C\u9700\u8981\u7EE7\u7EED\u6DFB\u52A0\u65B0\u8BD5\u9898\u8BF7\u70B9\u51FB\u201C\u7EE7\u7EED\u9009\u9898\u201D\uFF0C\u5C06\u56DE\u5230\u60A8\u4E0A\u6B21\u64CD\u4F5C\u7684\u9009\u9898\u9875\u9762",okText:"\u7EE7\u7EED\u9009\u9898",cancelText:"\u8FD4\u56DE\u8BD5\u5377",onOk:()=>{Na()},onCancel:()=>{ss(!1),Na()}}),po}),initFun:()=>{ss(!1),Na()}}),dn.createElement(Su.Z,{course_discipline_id:(Mi=tr==null?void 0:tr.exercise)==null?void 0:Mi.course_discipline_id,visible:_i,onCancel:()=>wa(!1),onOk:Yo}),dn.createElement($e.default,{title:"\u63D0\u793A",open:Ii,confirmLoading:!1,centered:!0,okText:"\u8BBE\u7F6E\u89C4\u5219",cancelText:"\u4FEE\u6539\u8BD5\u5377",footer:dn.createElement("div",null,dn.createElement(We.ZP,{onClick:()=>{Yi(!1),ve.history.back()}},"\u7A0D\u540E\u518D\u8BF4"),dn.createElement(We.ZP,{type:"primary",onClick:()=>{ve.history.push(`/classrooms/${La==null?void 0:La.coursesId}/exercise/${Ze}/detail?random=false&tabs=3`),Yi(!1)}},"\u8BBE\u7F6E\u89C4\u5219")),onCancel:()=>{Yi(!1)}},dn.createElement("p",null,"\u8BD5\u5377\u521B\u5EFA\u5B8C\u6210\uFF01\u76EE\u524D\u5904\u4E8E\u672A\u53D1\u5E03\u72B6\u6001\uFF0C\u662F\u5426\u8BBE\u7F6E\u8003\u8BD5\u89C4\u5219\uFF1F")),dn.createElement($e.default,{centered:!0,title:"\u7F16\u8F91\u9898\u578B\u540D\u79F0",open:$l,width:500,onOk:()=>ps.submit(),onCancel:()=>Eo(!1)},dn.createElement(Pe.default,{form:ps,initialValues:{},onFinish:mr=>Ca(void 0,null,function*(){(yield(0,ri.RK)(zi({id:Ze},mr))).status==0&&(Te.ZP.success("\u4FEE\u6539\u6210\u529F"),Na(),Eo(!1))})},dn.createElement(Pe.default.Item,{name:"name",style:{marginBottom:0},rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u9898\u578B\u540D\u79F0"},{whitespace:!0,message:"\u8BF7\u52FF\u8F93\u5165\u7A7A\u683C"},{validator(mr,_a){var Ki,ji,po,bo;const Oo=(Ki=Xi==null?void 0:Xi.find(zo=>zo.nameType==ps.getFieldValue("item_type_en")))==null?void 0:Ki.id;return(bo=(po=(ji=tr==null?void 0:tr.exercise_question_types)==null?void 0:ji.filter(zo=>zo.question_type!=Oo))==null?void 0:po.map(zo=>zo==null?void 0:zo.name))!=null&&bo.includes(_a)?Promise.reject(new Error("\u9898\u578B\u540D\u79F0\u5DF2\u5B58\u5728\uFF0C\u8BF7\u52FF\u8BBE\u7F6E\u76F8\u540C\u7684\u9898\u578B\u540D\u79F0")):Promise.resolve()}}]},dn.createElement(_e.default,{size:"large",maxLength:10,showCount:!0})),dn.createElement(Pe.default.Item,{hidden:!0,name:"item_type_en"},dn.createElement(_e.default,{size:"large"})))),dn.createElement(pn.Z,{placement:"bottom",height:"100%",closable:!1,className:"body-overflow-hidden",destroyOnClose:!0,open:Tl},dn.createElement("div",{style:{margin:"8px auto 24px auto",width:1200,fontWeight:600},className:"c-black font18"},"\u667A\u80FD\u5BFC\u5165"),dn.createElement(vi.Z,{stickyTop:-24,subDisciplineId:(eo=tr==null?void 0:tr.exercise)==null?void 0:eo.course_discipline_id,onCancel:()=>vl(!1),mode:3,gather:{exercise_id:Ze},onSuccess:()=>{vl(!1),Na()}}),dn.createElement("div",{style:{height:70}})),dn.createElement(pe.Q,{visible:!!_l,setVisible:Ll,tip:_l===2&&"\u8BBE\u7F6E\u5DF2\u6DFB\u52A0\u5728\u8BD5\u5377\u4E2D\u7684\u7F16\u7A0B\u9898\u6240\u5141\u8BB8\u4F7F\u7528\u7684\u7F16\u7A0B\u8BED\u8A00",dataSource:_l===1?nr==null?void 0:nr.languages:[],onOk:mr=>Ca(void 0,null,function*(){const _a={languages:mr};_l===1?_a.hack_id=nr==null?void 0:nr.hack_id:_a.exercise_id=Ze,(yield(0,Ke.ZP)("/api/problems/update_languages.json",{method:"post",body:_a})).status===0&&(Te.ZP.success("\u4FEE\u6539\u6210\u529F"),hi({id:xl.current}),Ll(!1))})}),dn.createElement(ei.Z,null))};var jo=(0,ve.connect)(({user:ue,exercise:ke,dispatch:Ze})=>({user:ue,exercise:ke,dispatch:Ze}))(vo),to=ne(34300),bl=ne(86899),Ji=ne(80283),lo=ne(87169),go=ne(41663),Lr=ne(59301),yi=Object.defineProperty,Kl=Object.defineProperties,Ka=Object.getOwnPropertyDescriptors,Aa=Object.getOwnPropertySymbols,no=Object.prototype.hasOwnProperty,xa=Object.prototype.propertyIsEnumerable,Va=(ue,ke,Ze)=>ke in ue?yi(ue,ke,{enumerable:!0,configurable:!0,writable:!0,value:Ze}):ue[ke]=Ze,ko=(ue,ke)=>{for(var Ze in ke||(ke={}))no.call(ke,Ze)&&Va(ue,Ze,ke[Ze]);if(Aa)for(var Ze of Aa(ke))xa.call(ke,Ze)&&Va(ue,Ze,ke[Ze]);return ue},Jo=(ue,ke)=>Kl(ue,Ka(ke)),Cl=(ue,ke)=>{var Ze={};for(var Vt in ue)no.call(ue,Vt)&&ke.indexOf(Vt)<0&&(Ze[Vt]=ue[Vt]);if(ue!=null&&Aa)for(var Vt of Aa(ue))ke.indexOf(Vt)<0&&xa.call(ue,Vt)&&(Ze[Vt]=ue[Vt]);return Ze},Ml=(ue,ke,Ze)=>new Promise((Vt,Nn)=>{var Cr=Yt=>{try{gn(Ze.next(Yt))}catch(Ln){Nn(Ln)}},kn=Yt=>{try{gn(Ze.throw(Yt))}catch(Ln){Nn(Ln)}},gn=Yt=>Yt.done?Vt(Yt.value):Promise.resolve(Yt.value).then(Cr,kn);gn((Ze=Ze.apply(ue,ke)).next())});const Ql=ue=>{var ke=ue,{classroomList:Ze,globalSetting:Vt,problemset:Nn,loading:Cr,exercise:kn,user:gn,dispatch:Yt}=ke,Ln=Cl(ke,["classroomList","globalSetting","problemset","loading","exercise","user","dispatch"]),Ia,ln,Wt,un,er,Xn,Zn,qn,yn,lr,Dr,dr,ki,Gi,Ui,_o,Tr,Mi,eo,tr,yo,Lo,Io,nr,fi,ul,No;const pi=(0,ve.useParams)(),[xl,wo]=(0,E.useState)(!1),{userInfo:cl}=gn,[Qo]=Pe.default.useForm();let[Ho,qo]=(0,E.useState)({});const[$o,Al]=(0,E.useState)(1),[Vs,_i]=(0,E.useState)(""),[wa]=(0,ve.useSearchParams)(),[ml,Wo]=(0,E.useState)(!1),[Os,ss]=(0,E.useState)(!1),[tu,As]=(0,E.useState)(!1),[Ms,qi]=(0,E.useState)(""),[Ii,Yi]=(0,E.useState)(!1),[La,rl]=(0,E.useState)(!1);(0,E.useEffect)(()=>{Yt({type:"globalSetting/footerToggle",payload:!1}),Qo.setFieldsValue({difficulty:2,course_discipline_id:null})},[]),(0,E.useEffect)(()=>{var Eo,Tl,vl,_l,Ll,Uo;pi.exerciseId&&(((Tl=(Eo=kn==null?void 0:kn.editData)==null?void 0:Eo.exercise)==null?void 0:Tl.exercise_status)===2||((_l=(vl=kn==null?void 0:kn.editData)==null?void 0:vl.exercise)==null?void 0:_l.exercise_status)===3||((Uo=(Ll=kn==null?void 0:kn.editData)==null?void 0:Ll.exercise)==null?void 0:Uo.exercise_status)===4?As(!0):As(!1))},[kn==null?void 0:kn.editData]),(0,E.useEffect)(()=>{if(pi.exerciseId){let Eo=kn.editData.exercise;rl(Eo==null?void 0:Eo.set_question_sub_discipline),Qo.setFieldsValue(Jo(ko({},Eo),{course_discipline_id:Eo==null?void 0:Eo.course_discipline_id}))}},[kn]),(0,E.useEffect)(()=>{wa.get("type")==="2"&&(_i(pi.exerciseId),Al(2))},[wa.get("type")]);function _s(Eo,Tl){return Ml(this,null,function*(){var vl,_l,Ll,Uo;yield Qo.validateFields();const Rl=Qo.getFieldsValue();Rl.is_md=!0,Rl.time=parseInt(Rl.time)>9999?9999:Rl.time;const dl=yield Yt({type:"exercise/addExercise",payload:ko(ko({},Rl),pi)});dl.status===0?(yield(0,Ke.ZP)(`/api/courses/${pi==null?void 0:pi.coursesId}/exercises/notice_at.json`,{method:"POST",body:{course_id:pi==null?void 0:pi.coursesId,id:(vl=dl==null?void 0:dl.data)==null?void 0:vl.exercise_id,time:Eo}}),$l((_l=dl.data)==null?void 0:_l.exercise_id),_i((Ll=dl==null?void 0:dl.data)==null?void 0:Ll.exercise_id),Al(2),Wo(!1),ve.history.replace(`/classrooms/${pi.coursesId}/exercise/add/${(Uo=dl.data)==null?void 0:Uo.exercise_id}?type=2`)):Te.ZP.error(dl.message),Tl()})}function ps(Eo){qo(ko({},Eo))}function $l(Eo){return Ml(this,null,function*(){if(!(Ho!=null&&Ho.ec_point_ids))return;const Tl=ko({},Ho);delete Tl.id;let vl=yield(0,Ke.ZP)(`/api/ec_courses/${Ho==null?void 0:Ho.ec_course_id}/ec_points/set_work_points.json`,{method:"post",body:ko({exercise_id:Eo},Tl)})})}return Lr.createElement("div",{style:{background:"#ffffff",marginTop:-8,padding:8,minHeight:"100vh",paddingBottom:64}},Lr.createElement("section",{className:"edu-container"},Lr.createElement("section",{className:"animated fadeIn"},Lr.createElement("aside",{className:"mt10"},cl&&Lr.createElement(He.Z,{separator:">"},Lr.createElement(He.Z.Item,null,Lr.createElement(ve.Link,{to:`/classrooms/${pi.coursesId}/exercise`},(Ia=cl==null?void 0:cl.course)==null?void 0:Ia.course_name)),Lr.createElement(He.Z.Item,null,Lr.createElement(ve.Link,{to:`/classrooms/${pi.coursesId}/exercise`},"\u8BD5\u5377\u5217\u8868")),Lr.createElement(He.Z.Item,null,pi.exerciseId?"\u7F16\u8F91\u8BD5\u5377":"\u65B0\u5EFA\u8BD5\u5377")))),pi.exerciseId&&Lr.createElement("div",{style:{display:"inline-flex",background:"rgba(233, 146, 55, 0.05)",borderRadius:4,height:40,lineHeight:"40px",width:"100%",padding:"0px 10px",alignItems:"center",marginTop:20}},Lr.createElement(lo.Z,{style:{marginRight:5,color:"#E99237"}}),Lr.createElement("span",{style:{flex:1,color:"#E99237"}},"\u53D1\u5E03\u540E\u7684\u8BD5\u5377\u4E0D\u5141\u8BB8\u8FDB\u884C\u589E\u52A0/\u5220\u9664\u8BD5\u9898\u548C\u4FEE\u6539\u5206\u503C\u7B49\u64CD\u4F5C\uFF0C\u82E5\u9700\u8981\u4E8C\u6B21\u4F7F\u7528\uFF0C\u53EF\u5C06\u8BD5\u5377\u52A0\u5165\u8BD5\u5377\u5E93\u4E2D\u8FDB\u884C\u7F16\u8F91"),Lr.createElement("span",{className:Xe.addQuestionBtn,onClick:()=>{Yt({type:"exercise/setActionTabs",payload:{key:"\u5355\u4E2A\u52A0\u5165\u8BD5\u5377\u5E93",selectArrs:[pi.exerciseId]}})}},"\u52A0\u5165\u8BD5\u5377\u5E93")),Lr.createElement(Ji.Z,{haveInit:!0,init:()=>{qi(new Date)}}),Lr.createElement("div",{className:"bg-white"},Lr.createElement("div",{style:{display:"flex",justifyContent:"center",paddingTop:20,alignItems:"center"}},Lr.createElement("div",{onClick:()=>{if(Os){Te.ZP.info("\u8BF7\u5148\u4FDD\u5B58\u6216\u53D6\u6D88\u5F53\u524D\u6B63\u5728\u7F16\u8F91\u8BD5\u9898\u3002");return}Al(1)},className:$o===1?Xe.selectdiv:Xe.divitem},Lr.createElement(to.Z,{number:1,active:$o===1,className:"mr10"}),Lr.createElement("span",null,"\u8BD5\u5377\u57FA\u7840\u4FE1\u606F")),Lr.createElement("div",{style:{width:188,border:"1px dotted #9096A3",margin:"0px 30px",height:1}}),Lr.createElement("div",{onClick:()=>{if(!pi.exerciseId&&!Vs){Te.ZP.info("\u8BF7\u5148\u4FDD\u5B58\u57FA\u7840\u4FE1\u606F\u518D\u65B0\u5EFA\u8BD5\u9898");return}Al(2),!Vs&&_i(pi.exerciseId)},className:$o!==1?Xe.selectdiv:Xe.divitem},Lr.createElement(to.Z,{number:2,active:$o!==1,className:"mr10"}),Lr.createElement("span",null,"\u7F16\u8F91\u8BD5\u9898"))),$o===2&&Lr.createElement("div",{className:"tc"},Lr.createElement(bl.Z,{defaultValue:(Wt=(ln=kn==null?void 0:kn.editData)==null?void 0:ln.exercise)==null?void 0:Wt.exercise_name,onFinish:Eo=>Ml(void 0,null,function*(){var Tl,vl,_l,Ll,Uo,Rl,dl,zs,Ps,En,Br,ti;return Eo.trim()===((vl=(Tl=kn==null?void 0:kn.editData)==null?void 0:Tl.exercise)==null?void 0:vl.exercise_name)?!0:(yield(0,ri.wy)({exercise_name:Eo,exercise_description:(Ll=(_l=kn==null?void 0:kn.editData)==null?void 0:_l.exercise)==null?void 0:Ll.exercise_description,course_discipline_id:(Rl=(Uo=kn==null?void 0:kn.editData)==null?void 0:Uo.exercise)==null?void 0:Rl.course_discipline_id,time:(zs=(dl=kn==null?void 0:kn.editData)==null?void 0:dl.exercise)==null?void 0:zs.time,exerciseId:(En=(Ps=kn.editData)==null?void 0:Ps.exercise)==null?void 0:En.id,difficulty:(ti=(Br=kn.editData)==null?void 0:Br.exercise)==null?void 0:ti.difficulty})).status===0?(Qo.setFieldValue("exercise_name",Eo),!0):!1})}),Lr.createElement("div",{style:{fontSize:14}},Lr.createElement("span",{style:{color:"#5F6368"}},"\u7B54\u9898\u65F6\u957F",Lr.createElement("span",{style:{color:"#000000",marginLeft:8}},((er=(un=kn==null?void 0:kn.editData)==null?void 0:un.exercise)==null?void 0:er.time)||"\u4E0D\u9650")),Lr.createElement("span",{style:{margin:"0px 30px",color:"#5F6368"}},"\u96BE\u5EA6",Lr.createElement("span",{style:{color:"#000000",marginLeft:8}},((Zn=(Xn=kn==null?void 0:kn.editData)==null?void 0:Xn.exercise)==null?void 0:Zn.difficulty)===1?"\u7B80\u5355":((yn=(qn=kn==null?void 0:kn.editData)==null?void 0:qn.exercise)==null?void 0:yn.difficulty)===2?"\u9002\u4E2D":"\u56F0\u96BE")),Lr.createElement("span",{style:{marginRight:30,color:"#5F6368"}},"\u8BD5\u9898\u603B\u6570",Lr.createElement("span",{style:{color:"#000000",marginLeft:8}},((Dr=(lr=kn==null?void 0:kn.editData)==null?void 0:lr.exercise_types)==null?void 0:Dr.q_counts)||0)),Lr.createElement("span",{style:{color:"#5F6368"}},"\u603B\u5206",Lr.createElement("span",{style:{color:"#000000",marginLeft:8}},(ki=(dr=kn==null?void 0:kn.editData)==null?void 0:dr.exercise_types)==null?void 0:ki.q_scores))))),$o===1&&Lr.createElement("div",null,Lr.createElement("section",{className:[Xe.bg,"mt20"].join(" "),style:{padding:"30px 120px 300px 120px"}},Lr.createElement(Pe.default,{form:Qo,colon:!1,layout:"horizontal",labelCol:{span:4},wrapperCol:{span:20},initialValues:{time:60},onFinish:Eo=>Ml(void 0,null,function*(){var Tl,vl,_l,Ll,Uo;if(wo(!0),Wo(!0),pi.exerciseId){Eo.exerciseId=(vl=(Tl=kn.editData)==null?void 0:Tl.exercise)==null?void 0:vl.id,Eo.course_discipline_id=Eo.course_discipline_id,yield(0,ri.wy)(Jo(ko({},Eo),{set_question_sub_discipline:La})),Al(2),$l(pi==null?void 0:pi.exerciseId),_i(pi.exerciseId),wo(!1),Wo(!1);return}const Rl=yield(0,Ke.ZP)(`/api/courses/${pi==null?void 0:pi.coursesId}/exercises/overload_alert.json`,{method:"get",params:{course_id:pi==null?void 0:pi.coursesId}});if(Rl!=null&&Rl.alert)Yt({type:"classroomList/setActionTabs",payload:{key:"\u9884\u7EA6\u5F39\u7A97"}});else{Eo.is_md=!0,Eo.time=parseInt(Eo.time)>9999?9999:Eo.time,Eo.set_question_sub_discipline=La;const dl=yield Yt({type:"exercise/addExercise",payload:Jo(ko(ko({},Eo),pi),{category_id:wa.get("catalogue")||null})});dl.status===0&&($l((_l=dl.data)==null?void 0:_l.exercise_id),ve.history.replace(`/classrooms/${pi.coursesId}/exercise/add/${(Ll=dl.data)==null?void 0:Ll.exercise_id}?type=2`),_i((Uo=dl==null?void 0:dl.data)==null?void 0:Uo.exercise_id),Al(2)),Wo(!1)}wo(!1)}),className:Xe.formWrap},Lr.createElement(Pe.default.Item,{name:"exercise_name",label:"\u8BD5\u5377\u540D\u79F0",className:Xe.baseLineHeight,rules:[{required:!0,validator:(Eo,Tl)=>{var vl;return((vl=Tl==null?void 0:Tl.replaceAll(" ",""))==null?void 0:vl.length)>0?Promise.resolve():Promise.reject("\u8BF7\u8F93\u5165\u8BD5\u5377\u540D\u79F0")}}]},Lr.createElement(_e.default,{maxLength:60,className:Xe.baseFormItem,placeholder:"\u8BF7\u8F93\u5165\u8BD5\u5377\u540D\u79F0",showCount:!0})),Lr.createElement(Pe.default.Item,{label:"\u6240\u5C5E\u8BFE\u7A0B",name:"course_discipline_id",className:Xe.baseLineHeight},Lr.createElement(Vn.q,{style:{height:46},showLinkButton:!1,data:{course_discipline_id:(_o=(Ui=(Gi=kn==null?void 0:kn.editData)==null?void 0:Gi.exercise)==null?void 0:Ui.course_discipline_data)==null?void 0:_o.course_discipline_id},tooltipTitle:((eo=(Mi=(Tr=kn==null?void 0:kn.editData)==null?void 0:Tr.exercise)==null?void 0:Mi.course_discipline_data)==null?void 0:eo.is_managed)===!1?`${(Lo=(yo=(tr=kn==null?void 0:kn.editData)==null?void 0:tr.exercise)==null?void 0:yo.course_discipline_data)==null?void 0:Lo.user_name}\u8001\u5E08\u521B\u5EFA\u7684\u8BFE\u7A0B\uFF0C\u8BF7\u8054\u7CFB\u521B\u5EFA\u8005\u4FEE\u6539\u6240\u5C5E\u8BFE\u7A0B`:"",disabled:((fi=(nr=(Io=kn==null?void 0:kn.editData)==null?void 0:Io.exercise)==null?void 0:nr.course_discipline_data)==null?void 0:fi.is_managed)===!1})),Lr.createElement("div",{className:Xe.concat},Lr.createElement("div",null,Lr.createElement(ze.default,{checked:La,onChange:Eo=>{rl(Eo.target.checked)},style:{color:"#000"}},"\u8BBE\u7F6E\u8BE5\u8BFE\u7A0B\u4E3A\u8BD5\u9898\u6A21\u677F\uFF08\u521B\u5EFA\u65B0\u8BD5\u9898\u65F6\u81EA\u52A8\u4F7F\u7528\u8BE5\u8BFE\u7A0B\uFF09")),Lr.createElement("div",null,"\u6CA1\u6709\u5408\u9002\u7684\u8BFE\u7A0B\uFF1F",Lr.createElement("a",{target:"_blank",href:"/knowledgeHub"},"\u7BA1\u7406\u8BFE\u7A0B"))),Lr.createElement(Pe.default.Item,{label:"\u96BE\u5EA6",name:"difficulty",className:Xe.radioBtnWrapper,rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u96BE\u5EA6"}]},Lr.createElement(nt.ZP.Group,{className:Xe.radiogroup,disabled:tu},Lr.createElement(nt.ZP.Button,{className:Xe.easy,value:1},"\u7B80\u5355"),Lr.createElement(nt.ZP.Button,{className:Xe.medium,value:2},"\u9002\u4E2D"),Lr.createElement(nt.ZP.Button,{className:Xe.hard,value:3},"\u56F0\u96BE"))),Lr.createElement(Pe.default.Item,{label:"\u7B54\u9898\u65F6\u957F",className:Xe.baseLineHeight},Lr.createElement("div",{style:{display:"flex",width:"100%"}},Lr.createElement(Pe.default.Item,{name:"time",noStyle:!0},Lr.createElement(Fe.Z,{disabled:tu,min:1,max:9999,className:Xe.baseFormItem,style:{width:220},maxLength:60,placeholder:"\u8BF7\u586B\u5199\u7B54\u9898\u65F6\u957F"})),Lr.createElement("span",{style:{marginLeft:"10px",width:"40px",lineHeight:"46px",fontSize:14}},"\u5206\u949F"))),Lr.createElement(Pe.default.Item,{label:"\u8BD5\u5377\u987B\u77E5",name:"exercise_description"},Lr.createElement(Fr.Z,{placeholder:"\u8BF7\u8F93\u5165\u8BD5\u5377\u987B\u77E5",height:260,watch:!0,defaultValue:(No=(ul=kn==null?void 0:kn.editData)==null?void 0:ul.exercise)==null?void 0:No.exercise_description}))),Lr.createElement(mt,{exercise_id:pi==null?void 0:pi.exerciseId,setitem:ps})),Lr.createElement("div",{className:Xe.bottmodiv},Lr.createElement(We.ZP,{className:`${Xe.cancelBtn}`,type:"primary",onClick:()=>{ve.history.back()}},"\u53D6\u6D88"),Lr.createElement(We.ZP,{loading:ml,onClick:()=>{Qo.validateFields(),Qo.submit()},type:"primary",className:`${Xe.confirmBtn} ml20`},"\u4E0B\u4E00\u6B65")),Lr.createElement(Ie,{setsubloading:Wo,onModalOk:_s})),$o===2&&Lr.createElement("div",null,Lr.createElement(jo,{key:Ms,setisedits:ss,setitemid:_i,itemid:Vs}))),Lr.createElement(go.Z,{open:Ii,onCancel:()=>{Yi(!1)}}))};var Bs=(0,ve.connect)(({classroomList:ue,loading:ke,user:Ze,problemset:Vt,globalSetting:Nn,exercise:Cr})=>({classroomList:ue,globalSetting:Nn,problemset:Vt,user:Ze,exercise:Cr,loading:ke.effects}))(Ql)},9202:function(It,kt,ne){"use strict";ne.d(kt,{Z:function(){return Se}});var E=ne(28284),ve=ne(6767),Pe=ne(62957),Te=ne(29787),He=ne(25399),_e=ne(47889),ze=ne(37568),nt=ne(70858),Fe=ne(59301),We=ne(44283),Xe=ne(49317),$e=ne(76406),vt={flex_box_center:"flex_box_center___FjW3J",flex_space_between:"flex_space_between___VMPG3",flex_box_vertical_center:"flex_box_vertical_center___f4bAX",flex_box_center_end:"flex_box_center_end___r_BiQ",flex_box_column:"flex_box_column___KmCaa",contentWrap:"contentWrap___JMzNd",leftWrap:"leftWrap___rYjEI",tip:"tip___Iu2px",title_con:"title_con___WF9OL",question_title:"question_title___XPCJJ",activeItem:"activeItem___yC4ry",rightWrap:"rightWrap___ut8PK",radio_con:"radio_con___cvwXd",result_con:"result_con___m5Gmr",result_title:"result_title___D7L1n",titleTooltip:"titleTooltip___eBrPv"},Ye=ne(15267),Ne=ne(39116),Be=ne(35883),be=ne(59301),Ie=Object.defineProperty,Ke=Object.defineProperties,at=Object.getOwnPropertyDescriptors,fe=Object.getOwnPropertySymbols,qe=Object.prototype.hasOwnProperty,st=Object.prototype.propertyIsEnumerable,wt=(Ve,Ae,tt)=>Ae in Ve?Ie(Ve,Ae,{enumerable:!0,configurable:!0,writable:!0,value:tt}):Ve[Ae]=tt,ft=(Ve,Ae)=>{for(var tt in Ae||(Ae={}))qe.call(Ae,tt)&&wt(Ve,tt,Ae[tt]);if(fe)for(var tt of fe(Ae))st.call(Ae,tt)&&wt(Ve,tt,Ae[tt]);return Ve},ct=(Ve,Ae)=>Ke(Ve,at(Ae)),Je=(Ve,Ae,tt)=>new Promise((Dt,lt)=>{var Qe=me=>{try{Re(tt.next(me))}catch(pt){lt(pt)}},xt=me=>{try{Re(tt.throw(me))}catch(pt){lt(pt)}},Re=me=>me.done?Dt(me.value):Promise.resolve(me.value).then(Qe,xt);Re((tt=tt.apply(Ve,Ae)).next())});const ut=({shixunHomeworks:Ve,exercise:Ae,loading:tt,dispatch:Dt})=>{var lt,Qe,xt,Re,me,pt;const{commonHeader:bt}=Ae,[it,Le]=(0,Fe.useState)([]),[Ue,mt]=(0,Fe.useState)(ct(ft({},(0,We.useParams)()),{page:1,limit:10})),[Zt,Pt]=(0,Fe.useState)([]),[en,dt]=(0,Fe.useState)(""),[Lt,pn]=(0,Fe.useState)(1),[he]=E.default.useForm(),[le,ae]=(0,Fe.useState)({}),[pe,ye]=(0,Fe.useState)(null),[se,ot]=(0,Fe.useState)(!1),[Xt,zt]=(0,Fe.useState)({combine:[],simple:[]}),[on,Kt]=(0,Fe.useState)(null),[Yn,Fn]=(0,Fe.useState)({}),[or,ra]=(0,Fe.useState)(0),[ur,rr]=(0,Fe.useState)(0),[Xr,Vr]=(0,Fe.useState)(!1),xr=[{title:"\u5E8F\u53F7",dataIndex:"1",width:80,render:(Sn,ir,Fa)=>(Ue.page-1)*Ue.limit+Fa+1},{title:"\u59D3\u540D",dataIndex:"user_name",ellipsis:!0,width:180},{title:"\u5B66\u53F7",dataIndex:"student_id",align:"left",sorter:!0,render:Sn=>Sn||"--"},{title:"\u5206\u73ED",dataIndex:"user_group_name",align:"left",render:(Sn,ir)=>be.createElement("div",{className:vt.banding,title:Sn||"--"},Sn||"--")},{title:"\u63D0\u4EA4\u72B6\u6001",width:200,dataIndex:"commit_status",render:(Sn,ir)=>Sn===0?be.createElement("span",{style:{color:"#666666"}},"\u672A\u5F00\u59CB"):Sn===1?be.createElement("span",{style:{color:"#DF3042"}},!ir.is_make_up&&"\u8003\u8BD5\u4E2D",ir.is_make_up&&"\u8003\u8BD5\u4E2D (\u8865\u8003)"):Sn===2?be.createElement("span",{style:{color:"#5AB891"}},!ir.is_make_up&&!ir.is_force_commit&&"\u5DF2\u4EA4\u5377",ir.is_make_up&&!ir.is_force_commit&&"\u5DF2\u4EA4\u5377 (\u8865\u8003)",ir.is_make_up&&ir.is_force_commit&&"\u5DF2\u4EA4\u5377 (\u8865\u8003/\u5F3A\u5236)",!ir.is_make_up&&ir.is_force_commit&&"\u5DF2\u4EA4\u5377 (\u5F3A\u5236)"):be.createElement("span",{style:{color:"#5AB891"}},!ir.is_make_up&&!ir.is_force_commit&&"\u5DF2\u4EA4\u5377/\u672A\u7B54",ir.is_make_up&&!ir.is_force_commit&&"\u5DF2\u4EA4\u5377/\u672A\u7B54 (\u8865\u8003)",ir.is_make_up&&ir.is_force_commit&&"\u5DF2\u4EA4\u5377/\u672A\u7B54 (\u8865\u8003/\u5F3A\u5236)",!ir.is_make_up&&ir.is_force_commit&&"\u5DF2\u4EA4\u5377/\u672A\u7B54 (\u5F3A\u5236)")},{title:(bt==null?void 0:bt.exercise_type)==2&&!(0,Ye.dE)()?"\u6700\u9AD8\u6210\u7EE9":"\u6700\u7EC8\u6210\u7EE9",dataIndex:"score",sorter:!0,render:(Sn,ir)=>ir.commit_status===0||ir.commit_status===1?"--":!ir.open_total_score&&(0,Ye.dE)()?"\u8001\u5E08\u5BA1\u6838\u4E2D":(Sn=typeof Sn=="number"?Number(Sn):Sn,console.log(typeof Sn),Sn||(Sn=0),Sn===100?be.createElement("span",{className:"c-green"},Sn):Sn>60?be.createElement("span",{className:"c-orange"},Sn):Sn==ur*.6?be.createElement("span",{className:"c-red"},Sn):be.createElement("span",null,Sn))}].filter(Sn=>!!Sn);(0,Fe.useEffect)(()=>{var Sn,ir,Fa;((Sn=Ae.actionTabs)==null?void 0:Sn.key)=="\u6D4B\u8BD5AI\u8BC4\u5206"&&(zt([]),Kt(((ir=Ae==null?void 0:Ae.actionTabs)==null?void 0:ir.questionId)||null),Fn(((Fa=Ae==null?void 0:Ae.actionTabs)==null?void 0:Fa.questionDetail)||{}),Dn(),Jn(Ue))},[(lt=Ae.actionTabs)==null?void 0:lt.key]);const Dn=()=>Je(void 0,null,function*(){var Sn,ir,Fa,$a,Jr,na,Qa,Kr,qa;const aa=yield(0,Xe.ZP)(`/api/exercises/${Ue==null?void 0:Ue.categoryId}.json`,{method:"get"});if(aa.status==0){const Wn=(ir=(Sn=aa==null?void 0:aa.exercise_question_types)==null?void 0:Sn.find(nn=>(nn==null?void 0:nn.question_type)==7))==null?void 0:ir.items,Rn=($a=(Fa=aa==null?void 0:aa.exercise_question_types)==null?void 0:Fa.find(nn=>(nn==null?void 0:nn.question_type)==4))==null?void 0:$a.items;let cn=[],fn=0,wn={};cn=(Jr=Wn==null?void 0:Wn.map((nn,Kn)=>{var Jt,On;return(On=(Jt=nn==null?void 0:nn.sub_exercise_questions)==null?void 0:Jt.map((hr,yr)=>(hr==null?void 0:hr.question_type)==4?ct(ft({},hr),{index:Kn+1,jdex:yr+1,parentTitle:nn==null?void 0:nn.question_title,isCombine:!0}):null))==null?void 0:On.filter(hr=>hr)}))==null?void 0:Jr.flat(),zt({combine:cn,simple:Rn}),(Rn==null?void 0:Rn.length)>0?(fn=(na=Rn==null?void 0:Rn[0])==null?void 0:na.question_id,wn=(Rn==null?void 0:Rn[0])||{}):(cn==null?void 0:cn.length)>0&&(fn=(Qa=cn==null?void 0:cn[0])==null?void 0:Qa.question_id,wn=(cn==null?void 0:cn[0])||{}),Kt(((Kr=Ae==null?void 0:Ae.actionTabs)==null?void 0:Kr.questionId)||fn),Fn(((qa=Ae==null?void 0:Ae.actionTabs)==null?void 0:qa.questionDetail)||wn)}}),pa=(Sn,ir)=>{Ue.page=Sn,Ue.limit=ir,mt(ft({},Ue)),Jn(Ue)},Jn=Sn=>Je(void 0,null,function*(){Vr(!0);const ir=yield(0,Xe.ZP)(`/api/exercises/${Ue.categoryId||(Ue==null?void 0:Ue.exerciseId)}/exercise_users.json`,{method:"get",params:Sn});ir.status==0&&(ra(ir.data.total_count),mt(ct(ft({},Ue),{total:ir.data.total_count})),Le(ir.data.exercise_users),rr(ir.data.total_score)),Vr(!1)}),Vn=Sn=>{Ue.search=Sn,Ue.page=1,he.resetFields(),ae({}),Pt([]),ye(null),mt(ft({},Ue)),Jn(Ue)},ha=Sn=>Je(void 0,null,function*(){var ir,Fa;const $a=ft({},le);if(!((ir=Sn==null?void 0:Sn.content)!=null&&ir.trim())){ve.ZP.warning("\u8BF7\u8F93\u5165\u7B54\u9898\u5185\u5BB9\uFF01");return}$a.content=Sn==null?void 0:Sn.content,$a.attachment_ids=(Fa=Sn==null?void 0:Sn.attachment_ids)==null?void 0:Fa.map(Jr=>Jr.response.id),Ti($a)}),Ti=Sn=>Je(void 0,null,function*(){ot(!0);const ir=yield(0,Xe.ZP)(`/api/exercises/${(Ue==null?void 0:Ue.categoryId)||(Ue==null?void 0:Ue.exerciseId)}/test_ai_review.json`,{method:"post",body:ct(ft({},Sn),{exercise_question_id:on,ai_review_settings:Yn==null?void 0:Yn.ai_review_settings})});if([0,-3].includes(ir.status)){ir.status==0&&ve.ZP.success("\u8BC4\u5206\u6D4B\u8BD5\u6210\u529F\uFF01"),ye(ir);const Fa=document.querySelector(".modal-ai-pfcs");if(Fa){const $a=Fa.querySelector(".ant-modal-body");$a&&($a.scrollTop=$a.scrollHeight)}}ot(!1)}),Ni=()=>{Dt({type:"exercise/setActionTabs",payload:{key:""}}),pn(1),Ir()},Ir=()=>{he.resetFields(),ae({}),Pt([]),dt(""),ye(null)};return be.createElement(Pe.default,{className:"modal-ai-pfcs",width:1200,bodyStyle:{maxHeight:"calc(100vh - 200px)",overflowY:"auto"},centered:!0,title:"\u6D4B\u8BD5AI\u8BC4\u5206",confirmLoading:se,open:((Qe=Ae.actionTabs)==null?void 0:Qe.key)==="\u6D4B\u8BD5AI\u8BC4\u5206",destroyOnClose:!0,onCancel:()=>Ni(),okText:pe?"\u91CD\u65B0\u6D4B\u8BD5":"\u5F00\u59CB\u6D4B\u8BD5",onOk:()=>{var Sn;if((Sn=Ae.actionTabs)!=null&&Sn.showSelectQuestion&&!on)return ve.ZP.warning("\u8BF7\u9009\u62E9\u9898\u76EE\uFF01");if(Lt==1){if(Zt.length==0)return ve.ZP.warning("\u8BF7\u9009\u62E9\u4E00\u4F4D\u5B66\u751F\u8BD5\u5377\u8FDB\u884C\u8BC4\u5206\u6D4B\u8BD5\uFF01");Ti({exercise_user_id:Zt[0]})}else Lt==2&&he.submit()}},be.createElement(Te.Z,{spinning:se,tip:"\u6D4B\u8BD5AI\u8BC4\u5206\u4E2D\u2026\u2026"},be.createElement("div",{className:vt.contentWrap},be.createElement("div",{className:vt.leftWrap},be.createElement("div",{className:vt.tip},be.createElement("i",{className:"iconfont icon-tishi11 font14",style:{color:"#3061D0",transform:"rotate(180deg)",marginTop:"5px"}}),be.createElement("span",{style:{marginLeft:"5px"}},"\u667A\u80FD\u8BC4\u9605\u76EE\u524D\u4EC5\u652F\u6301\u7B80\u7B54\u9898\uFF08\u542B\u7EC4\u5408\u9898\u4E2D\u7684\u7B80\u7B54\u9898\uFF09\u3002")),be.createElement("div",{style:{maxHeight:"500px",overflowY:"auto",margin:"10px 0px"}},((xt=Xt==null?void 0:Xt.simple)==null?void 0:xt.length)>0&&be.createElement(be.Fragment,null,be.createElement("div",{className:vt.title_con},"\u3010\u7B80\u7B54\u9898\u3011"),be.createElement("div",null,(Re=Xt==null?void 0:Xt.simple)==null?void 0:Re.map((Sn,ir)=>be.createElement("div",{key:Sn==null?void 0:Sn.question_id},be.createElement(He.Z,{title:be.createElement(Be.Z,{value:Sn==null?void 0:Sn.question_title}),color:"#fff",placement:"left",overlayClassName:vt.titleTooltip},be.createElement("span",{className:`${vt.question_title} ${on==(Sn==null?void 0:Sn.question_id)?vt.activeItem:""}`,onClick:()=>{var Fa,$a,Jr;Kt(Sn==null?void 0:Sn.question_id),Fn(ct(ft({},Sn||{}),{ai_review_settings:(Fa=Ae==null?void 0:Ae.actionTabs)!=null&&Fa.isUnify?(Jr=($a=Ae==null?void 0:Ae.actionTabs)==null?void 0:$a.questionDetail)==null?void 0:Jr.ai_review_settings:Sn==null?void 0:Sn.ai_review_settings}))}},be.createElement(Be.Z,{value:ir+1+"\u3001"+(Sn==null?void 0:Sn.question_title),showTextOnly:!0}))))))),((me=Xt==null?void 0:Xt.combine)==null?void 0:me.length)>0&&be.createElement(be.Fragment,null,be.createElement("div",{className:vt.title_con},"\u3010\u7EC4\u5408\u9898\u3011"),be.createElement("div",null,(pt=Xt==null?void 0:Xt.combine)==null?void 0:pt.map((Sn,ir)=>be.createElement("div",{key:Sn==null?void 0:Sn.question_id,onClick:()=>{var Fa,$a,Jr;Kt(Sn==null?void 0:Sn.question_id),Fn(ct(ft({},Sn||{}),{ai_review_settings:(Fa=Ae==null?void 0:Ae.actionTabs)!=null&&Fa.isUnify?(Jr=($a=Ae==null?void 0:Ae.actionTabs)==null?void 0:$a.questionDetail)==null?void 0:Jr.ai_review_settings:Sn==null?void 0:Sn.ai_review_settings}))}},be.createElement(He.Z,{title:be.createElement(Be.Z,{value:Sn==null?void 0:Sn.question_title}),color:"#fff",placement:"left",overlayClassName:vt.titleTooltip},be.createElement("span",{className:`${vt.question_title} ${on==(Sn==null?void 0:Sn.question_id)?vt.activeItem:""}`},be.createElement(Be.Z,{value:(Sn==null?void 0:Sn.index)+"."+(Sn==null?void 0:Sn.jdex)+"\u3001"+(Sn==null?void 0:Sn.question_title),showTextOnly:!0}))))))))),be.createElement("div",{className:vt.rightWrap},be.createElement("div",{className:vt.radio_con},be.createElement("span",{style:{marginRight:32}},"\u6D4B\u8BD5\u65B9\u5F0F"),be.createElement(_e.ZP.Group,{onChange:Sn=>{Sn.target.value==1&&pa(1,10),pn(Sn.target.value),Ir()},value:Lt,options:[{label:"\u9009\u62E9\u5B66\u751F\u7B54\u6848",value:1,style:{marginRight:30,color:"#000"}},{label:"\u8F93\u5165\u7B54\u9898\u5185\u5BB9",value:2,style:{marginRight:30,color:"#000"}}]})),Lt==1&&be.createElement(be.Fragment,null,be.createElement("div",{className:"flex justify-between item-center mb10"},be.createElement("div",{style:{fontSize:"14px",color:"#FA6400"}},"\u63D0\u793A\uFF1A","\u53EA\u80FD\u9009\u62E9\u5DF2\u63D0\u4EA4\u8BD5\u5377\u7684\u5B66\u751F\u8FDB\u884C\u8BC4\u5206\u6D4B\u8BD5"),be.createElement(ze.default.Search,{style:{width:487},size:"large",placeholder:"\u8BF7\u8F93\u5165\u59D3\u540D\u6216\u8005\u5B66\u53F7\u641C\u7D22",value:en,onChange:Sn=>dt(Sn.target.value),onSearch:Vn})),be.createElement(nt.default,{rowSelection:{type:"radio",selectedRowKeys:Zt,onChange:(Sn,ir)=>{Pt(Sn)},getCheckboxProps:Sn=>({disabled:[0,1].includes(Sn==null?void 0:Sn.commit_status)})},rowKey:"exercise_user_id",dataSource:it||[],columns:xr,pagination:{current:Ue.page,hideOnSinglePage:!0,showQuickJumper:!0,showSizeChanger:!0,pageSize:Ue.limit,className:"mb0",pageSizeOptions:["10","20","50","100","200"],total:or,size:"default",showTotal:$e.rU,onChange:pa},onChange:(Sn,ir,Fa)=>{Ue.page=1,Fa.order===void 0?(Ue.order_type=null,Ue.order=null):(Ue.order_type=Fa.order==="descend"?"desc":"asc",Ue.order=Fa.field),mt(ft({},Ue)),Jn(Ue)}})),Lt==2&&be.createElement("div",{style:{marginTop:20}},be.createElement(E.default,{form:he,className:vt.formWrap,scrollToFirstError:!0,layout:"vertical",onValuesChange:()=>{ae(ft({},he.getFieldsValue()))},onFinish:ha},be.createElement(E.default.Item,{name:"content",label:"",style:{marginBottom:0}},be.createElement(Ne.Z,{watch:!0})))),pe&&be.createElement("div",{className:vt.result_con},be.createElement("div",{className:vt.result_title},"AI\u8BC4\u5206\u7ED3\u679C"),(pe==null?void 0:pe.status)==0&&be.createElement("div",{className:"p20"},be.createElement("div",{className:"mb5"},be.createElement("span",{style:{color:"#333",fontWeight:"bold"}},"\u8BC4\u5206\uFF1A"),pe==null?void 0:pe.score),be.createElement("div",{className:"flex"},be.createElement("span",{style:{color:"#333",fontWeight:"bold",whiteSpace:"nowrap",lineHeight:"26px"}},"\u8BC4\u8BED\uFF1A"),be.createElement(Be.Z,{value:pe==null?void 0:pe.content,style:{fontSize:"14px"}}))),(pe==null?void 0:pe.status)==-3&&be.createElement("div",{className:"p20"},be.createElement(Be.Z,{value:pe==null?void 0:pe.message,style:{fontSize:"14px"}})))))))};var Se=(0,We.connect)(({shixunHomeworks:Ve,exercise:Ae,loading:tt,user:Dt})=>({shixunHomeworks:Ve,exercise:Ae,loading:tt.effects,user:Dt}))(ut)},28696:function(It,kt,ne){"use strict";ne.d(kt,{Z:function(){return vt}});var E=ne(59301),ve=ne(6767),Pe=ne(62957),Te=ne(94968),He=ne(7939),_e=ne(14185),ze=ne(76406),nt=ne(30935),Fe=ne(44283),We={customModal:"customModal___bVzUV",content:"content___oKhZq",upload:"upload___nPxEL",infoText:"infoText___gZEJF",okBtn:"okBtn___CVo2A",fileList:"fileList___tauGN",fileName:"fileName___T_8JX",selectitems:"selectitems___imW2Y"},Xe=ne(59301),vt=({visible:Ye,onOk:Ne,onCancel:Be,course_discipline_id:be})=>{const[Ie,Ke]=(0,E.useState)([]),[at,fe]=(0,E.useState)(!1),qe=(0,Fe.useParams)(),[st,wt]=(0,E.useState)(null);(0,E.useEffect)(()=>{Ye?wt(be):(wt(null),Ke([]),fe(!1))},[Ye]);const ft=()=>{if(!st)return ve.ZP.warning("\u8BF7\u9009\u62E9\u8BFE\u7A0B\uFF01");fe(!0),Ne(Ie,st,()=>{fe(!1)})},ct=()=>{Be()},Je=()=>{const Ve=`${_e.Z.API_SERVER}/api/courses/${qe.coursesId}/exercises/down_template`;(0,ze.Nd)(null,Ve)},ut=Ve=>{const Ae={name:Ve.name,uid:Ve.uid,file:Ve};return Ke([Ae]),!1},Se=()=>{Ke([])};return Xe.createElement(Pe.default,{title:"\u5BFC\u5165\u8BD5\u9898",open:Ye,onOk:ft,centered:!0,wrapClassName:We.customModal,onCancel:ct,width:663,okText:"\u786E\u8BA4",okButtonProps:{className:We.okBtn},cancelText:"\u53D6\u6D88",confirmLoading:at},Xe.createElement("div",{className:We.content},Xe.createElement("aside",null,Xe.createElement("div",{style:{fontWeight:600}},"\u6B65\u9AA41"),Xe.createElement("ul",null,Xe.createElement("li",null,Xe.createElement("span",{style:{color:"#5F6367"}},"\u6839\u636E\u6A21\u677F\u8981\u6C42\u7F16\u8F91\u9700\u8981\u4E0A\u4F20\u7684\u8BD5\u9898"),Xe.createElement("span",{style:{color:"#0152d9",cursor:"pointer",marginLeft:20},onClick:Je},"\u4E0B\u8F7D\u8003\u8BD5\u8BD5\u9898\u6A21\u677F"),Xe.createElement("i",{className:"iconfont icon-xiazai4 ml10",onClick:Je,style:{fontSize:14,cursor:"pointer",color:"#0152d9"}})),Xe.createElement("li",{style:{color:"#FA6400"},className:"mt10"},"\u63D0\u793A"),Xe.createElement("li",{className:We.infoText},"1\u3001\u76EE\u524D\u4EC5\u652F\u6301Excel\u683C\u5F0F\u6A21\u677F\uFF1B "),Xe.createElement("li",{className:We.infoText},"2\u3001\u4E0D\u652F\u6301\u7EC4\u5408\u9898\u548C\u5B9E\u8BAD\u9898\u5BFC\u5165\uFF1B"),Xe.createElement("li",{className:We.infoText},"3\u3001\u6BCF\u6B21\u6700\u591A\u5BFC\u5165300\u9898\uFF1B"),Xe.createElement("li",{className:We.infoText},"4\u3001\u586B\u7A7A\u9898\u5BFC\u5165\u6700\u591A\u652F\u63018\u4E2A\u586B\u7A7A\u9879\u3002"))),Xe.createElement("aside",{style:{marginTop:22}},Xe.createElement("div",{style:{fontWeight:600}},"\u6B65\u9AA42"),Xe.createElement("ul",{style:{flex:1}},Xe.createElement("li",{style:{color:"#5F6367"}},"\u8BF7\u9009\u62E9\u8BFE\u7A0B\uFF0C\u4E0A\u4F20\u7F16\u8F91\u597D\u7684\u8BD5\u9898\u6587\u6863\uFF0C\u786E\u5B9A\u5BFC\u5165"),Ye&&Xe.createElement(Xe.Fragment,null,Xe.createElement(nt.q,{style:{width:200,marginTop:10},size:"large",value:st,onChange:wt}),Xe.createElement("br",null),Xe.createElement(Te.default,{action:`${_e.Z.API_SERVER}/api/attachments.json`,beforeUpload:ut,onRemove:Se,withCredentials:!0,fileList:Ie,accept:".xls,.xlsx",showUploadList:!1},Xe.createElement(He.ZP,{className:We.upload,type:"primary",icon:Xe.createElement("i",{className:"iconfont icon-shangchuan3",style:{fontSize:14}})},"\u4E0A\u4F20\u6587\u4EF6"))),Ie.map((Ve,Ae)=>Xe.createElement("div",{key:Ae,className:We.fileList},Xe.createElement("span",{className:We.fileName},Ve==null?void 0:Ve.name),Xe.createElement("i",{className:"iconfont icon-shanchu12",style:{color:"#F65160",fontSize:16,cursor:"pointer"},onClick:Se})))))))}},80283:function(It,kt,ne){"use strict";var E=ne(59301),ve=ne(62957),Pe=ne(49317),Te=ne(44283),He=ne(59301),_e=(nt,Fe,We)=>new Promise((Xe,$e)=>{var vt=Be=>{try{Ne(We.next(Be))}catch(be){$e(be)}},Ye=Be=>{try{Ne(We.throw(Be))}catch(be){$e(be)}},Ne=Be=>Be.done?Xe(Be.value):Promise.resolve(Be.value).then(vt,Ye);Ne((We=We.apply(nt,Fe)).next())});const ze=({exercise:nt,dispatch:Fe,init:We,haveInit:Xe=!1})=>{const $e=(0,Te.useParams)(),[vt,Ye]=(0,E.useState)(!1);let[Ne,Be]=(0,E.useState)();const[be,Ie]=(0,E.useState)(!1),[Ke,at]=(0,E.useState)(!1);(0,E.useEffect)(()=>{nt.actionTabs.key==="\u5355\u4E2A\u52A0\u5165\u8BD5\u5377\u5E93"&&fe()},[nt.actionTabs]);function fe(){return _e(this,null,function*(){var qe,st;let wt=yield(0,Pe.ZP)(`/api/courses/${$e==null?void 0:$e.coursesId}/exercises/check_exercise_cover.json`,{method:"post",body:{check_ids:nt.actionTabs.selectArrs}});if(((qe=wt==null?void 0:wt.cover_exercises)==null?void 0:qe.length)>0)Ye(!0),Be((st=wt==null?void 0:wt.cover_exercises)==null?void 0:st[0]);else{let ft=yield(0,Pe.ZP)(`/api/courses/${$e==null?void 0:$e.coursesId}/exercises/join_examination_banks.json`,{method:"post",body:{check_ids:nt.actionTabs.selectArrs}});Fe({type:"exercise/setActionTabs",payload:{key:""}}),(ft==null?void 0:ft.status)===0&&(Xe&&We(),ve.default.confirm({title:"\u63D0\u793A",icon:null,centered:!0,content:"\u52A0\u5165\u6210\u529F\uFF01\u8BD5\u5377\u4E2D\u65B0\u5EFA\u7684\u8BD5\u9898\u5DF2\u4E3A\u60A8\u81EA\u52A8\u540C\u6B65\u81F3\u8BD5\u9898\u5E93~",okText:"\u524D\u5F80\u8BD5\u5377\u5E93",cancelText:"\u7A0D\u540E\u518D\u8BF4",onOk:()=>{Te.history.push("/paperlibrary")}}))}})}return He.createElement("div",null,He.createElement(ve.default,{open:vt,centered:!0,onCancel:qe=>_e(void 0,null,function*(){if(qe.target.outerText==="\u8986\u76D6\u539F\u6765\u7684\u8BD5\u5377"){Ie(!0);let st=yield(0,Pe.ZP)(`/api/courses/${$e==null?void 0:$e.coursesId}/exercises/join_examination_banks.json`,{method:"post",body:{check_ids:nt.actionTabs.selectArrs,update:1}});Fe({type:"exercise/setActionTabs",payload:{key:""}}),Ie(!1),(st==null?void 0:st.status)===0&&(Xe&&We(),Ye(!1),ve.default.confirm({title:"\u63D0\u793A",icon:null,centered:!0,content:"\u52A0\u5165\u6210\u529F\uFF01\u8BD5\u5377\u4E2D\u65B0\u5EFA\u7684\u8BD5\u9898\u5DF2\u4E3A\u60A8\u81EA\u52A8\u540C\u6B65\u81F3\u8BD5\u9898\u5E93~",okText:"\u524D\u5F80\u8BD5\u5377\u5E93",cancelText:"\u7A0D\u540E\u518D\u8BF4",onOk:()=>{Te.history.push("/paperlibrary")}}))}else Ye(!1)}),cancelButtonProps:{loading:be},okText:"\u5F62\u6210\u65B0\u8BD5\u5377",cancelText:"\u8986\u76D6\u539F\u6765\u7684\u8BD5\u5377",okButtonProps:{loading:Ke},onOk:()=>_e(void 0,null,function*(){at(!0);let qe=yield(0,Pe.ZP)(`/api/courses/${$e==null?void 0:$e.coursesId}/exercises/join_examination_banks.json`,{method:"post",body:{check_ids:nt.actionTabs.selectArrs}});at(!1),(qe==null?void 0:qe.status)===0&&(Xe&&We(),Fe({type:"exercise/setActionTabs",payload:{key:""}}),Ye(!1),ve.default.confirm({title:"\u63D0\u793A",icon:null,centered:!0,content:"\u52A0\u5165\u6210\u529F\uFF01\u8BD5\u5377\u4E2D\u65B0\u5EFA\u7684\u8BD5\u9898\u5DF2\u4E3A\u60A8\u81EA\u52A8\u540C\u6B65\u81F3\u8BD5\u9898\u5E93~",okText:"\u524D\u5F80\u8BD5\u5377\u5E93",cancelText:"\u7A0D\u540E\u518D\u8BF4",onOk:()=>{Te.history.push("/paperlibrary")}}))}),title:"\u52A0\u5165\u8BD5\u5377\u5E93\u63D0\u793A"},He.createElement("div",null,He.createElement("p",null,"\u8BE5\u8BD5\u5377\u5728\u8BD5\u5377\u5E93\u91CD\u590D\uFF0C\u662F\u5426\u9700\u8981\u8986\u76D6\u539F\u6765\u7684\u8BD5\u5377\uFF1F"),He.createElement("div",null,He.createElement("div",null,"\u8BD5\u5377\uFF1A",Ne==null?void 0:Ne.origin_exercise_nam),He.createElement("div",null,"\u539F\u8BD5\u5377\uFF1A",He.createElement("a",{href:`/paperlibrary/see/${Ne==null?void 0:Ne.examination_bank_id}?defaultActiveKey=0`,target:"_blank"},Ne==null?void 0:Ne.examination_bank_name))))))};kt.Z=(0,Te.connect)(({exercise:nt})=>({exercise:nt}))(ze)},30935:function(It,kt,ne){"use strict";ne.d(kt,{i:function(){return fe},q:function(){return at}});var E=ne(59301),ve={flex_box_center:"flex_box_center___yMUhy",flex_space_between:"flex_space_between___KNvG9",flex_box_vertical_center:"flex_box_vertical_center___yqWY9",flex_box_center_end:"flex_box_center_end___DJKuV",flex_box_column:"flex_box_column___NTtN1",singleSelect:"singleSelect___fU3O9",multipleSelect:"multipleSelect___LFXCB",plus:"plus___gdDhG"},Pe=ne(92310),Te=ne.n(Pe),He=ne(25399),_e=ne(82326),ze=ne(7939),nt=ne(49317),Fe=Object.defineProperty,We=Object.defineProperties,Xe=Object.getOwnPropertyDescriptors,$e=Object.getOwnPropertySymbols,vt=Object.prototype.hasOwnProperty,Ye=Object.prototype.propertyIsEnumerable,Ne=(qe,st,wt)=>st in qe?Fe(qe,st,{enumerable:!0,configurable:!0,writable:!0,value:wt}):qe[st]=wt,Be=(qe,st)=>{for(var wt in st||(st={}))vt.call(st,wt)&&Ne(qe,wt,st[wt]);if($e)for(var wt of $e(st))Ye.call(st,wt)&&Ne(qe,wt,st[wt]);return qe},be=(qe,st)=>We(qe,Xe(st)),Ie=(qe,st)=>{var wt={};for(var ft in qe)vt.call(qe,ft)&&st.indexOf(ft)<0&&(wt[ft]=qe[ft]);if(qe!=null&&$e)for(var ft of $e(qe))st.indexOf(ft)<0&&Ye.call(qe,ft)&&(wt[ft]=qe[ft]);return wt},Ke=(qe,st,wt)=>new Promise((ft,ct)=>{var Je=Ve=>{try{Se(wt.next(Ve))}catch(Ae){ct(Ae)}},ut=Ve=>{try{Se(wt.throw(Ve))}catch(Ae){ct(Ae)}},Se=Ve=>Ve.done?ft(Ve.value):Promise.resolve(Ve.value).then(Je,ut);Se((wt=wt.apply(qe,st)).next())});const at=qe=>{var st=qe,{wrapClassName:wt,wrapStyle:ft={},showLinkButton:ct=!0,tooltipTitle:Je="",loadGeneral:ut=!1,data:Se={}}=st,Ve=Ie(st,["wrapClassName","wrapStyle","showLinkButton","tooltipTitle","loadGeneral","data"]);const Ae="course_disciplines_list",[tt,Dt]=(0,E.useState)(()=>{const pt=sessionStorage.getItem(Ae);return pt?JSON.parse(pt):[]}),[lt,Qe]=(0,E.useState)(!1),[xt,Re]=(0,E.useState)(!0);(0,E.useEffect)(()=>{me()},[]);const me=()=>Ke(void 0,null,function*(){var pt,bt,it,Le;Qe(!0);const Ue=yield(0,nt.U2)("v2/course_disciplines.json",Se);if(Ue.status===0){const mt=((bt=(pt=Ue==null?void 0:Ue.data)==null?void 0:pt.list)==null?void 0:bt.map(Zt=>({value:Zt.id,label:Zt.name})))||[];if(Dt(mt),Re(!1),sessionStorage.setItem(Ae,JSON.stringify(mt)),xt){const Zt=(Le=(it=Ue==null?void 0:Ue.data)==null?void 0:it.list)==null?void 0:Le.find(Pt=>Pt.is_default);ut&&Zt&&Ve.onChange(Zt==null?void 0:Zt.id)}}Qe(!1)});return E.createElement("div",{className:Te()(ve.singleSelect,wt),style:ft},E.createElement(He.Z,{title:Je},E.createElement(_e.default,Be({allowClear:!0,placeholder:"\u8BF7\u9009\u62E9\u8BFE\u7A0B",loading:lt,options:tt,onDropdownVisibleChange:pt=>{pt&&me()}},Ve))),ct&&E.createElement(ze.ZP,{type:"link",target:"_blank",href:"/knowledgeHub"},"\u7BA1\u7406\u8BFE\u7A0B"))},fe=qe=>{var st=qe,{wrapClassName:wt,wrapStyle:ft={},showLinkButton:ct=!0,courseDisciplineId:Je="",isPlusHeight:ut=!1,tooltipTitle:Se,allowAcceptEmpty:Ve=!1,data:Ae={}}=st,tt=Ie(st,["wrapClassName","wrapStyle","showLinkButton","courseDisciplineId","isPlusHeight","tooltipTitle","allowAcceptEmpty","data"]);const[Dt,lt]=(0,E.useState)([]),[Qe,xt]=(0,E.useState)(!1);(0,E.useEffect)(()=>{Re()},[Je]);const Re=()=>Ke(void 0,null,function*(){var me,pt;if(!Ve&&!Je){lt([]);return}xt(!0);const bt=yield(0,nt.U2)(`v2/course_disciplines/${Je||"all"}.json`,Ae);if(bt.status===0){const it=((pt=(me=bt==null?void 0:bt.data)==null?void 0:me.tag_disciplines)==null?void 0:pt.map(Le=>({value:Le.id,label:Le.name})))||[];it.length&&lt(it)}xt(!1)});return E.createElement("div",{className:Te()(ve.multipleSelect,wt),style:ft},E.createElement(He.Z,{title:Se},E.createElement(_e.default,be(Be({allowClear:!0,mode:"multiple",optionFilterProp:"label",placeholder:"\u8BF7\u9009\u62E9\u77E5\u8BC6\u70B9",loading:Qe,options:Dt,maxTagCount:"responsive",onDropdownVisibleChange:me=>{me&&Re()}},tt),{className:Te()(tt.className,ut&&ve.plus)}))),ct&&E.createElement(ze.ZP,{className:ve.btn,type:"link",target:"_blank",href:"/knowledgeHub"},"\u7BA1\u7406\u77E5\u8BC6\u70B9"))}},30628:function(It,kt,ne){"use strict";ne.d(kt,{h:function(){return E}});var E=(ve=>(ve[ve.NOMATCH=-1]="NOMATCH",ve[ve.OK=0]="OK",ve[ve.TIMEOUT=2]="TIMEOUT",ve[ve.PODFAILURE=3]="PODFAILURE",ve[ve.COMPILEFAILURE=4]="COMPILEFAILURE",ve[ve.EXECUTEFAILURE=5]="EXECUTEFAILURE",ve[ve.HIDE_COMPILE_STATUS=11]="HIDE_COMPILE_STATUS",ve))(E||{})},19160:function(It,kt,ne){"use strict";ne.d(kt,{H7:function(){return Ne},MK:function(){return Ye},MU:function(){return We},X6:function(){return $e},bM:function(){return Fe},fi:function(){return Be},fu:function(){return nt},n4:function(){return be},rX:function(){return vt},vl:function(){return Ie},zO:function(){return Xe}});var E=ne(49317),ve=Object.defineProperty,Pe=Object.getOwnPropertySymbols,Te=Object.prototype.hasOwnProperty,He=Object.prototype.propertyIsEnumerable,_e=(Ke,at,fe)=>at in Ke?ve(Ke,at,{enumerable:!0,configurable:!0,writable:!0,value:fe}):Ke[at]=fe,ze=(Ke,at)=>{for(var fe in at||(at={}))Te.call(at,fe)&&_e(Ke,fe,at[fe]);if(Pe)for(var fe of Pe(at))He.call(at,fe)&&_e(Ke,fe,at[fe]);return Ke};function nt(Ke,at){return(0,E.U2)(`myproblems/${Ke}.json`,ze({hidePopLogin:!0},at||{}))}function Fe(Ke,at){return(0,E.v_)(`myproblems/${Ke}/code_submit.json`,at)}function We(Ke,at){return(0,E.v_)(`myproblems/${Ke}/code_debug.json`,at)}function Xe(Ke,at){return at.language&&(at.language=encodeURIComponent(at.language)),(0,E.U2)(`myproblems/${Ke}/submit_records.json`,at)}function $e(Ke){return(0,E.U2)("myproblems/record_detail.json",{id:Ke})}function vt(Ke,at){return(0,E.U2)(`myproblems/${Ke}/result.json`,{mode:at})}function Ye(Ke,at){return(0,E.v_)(`myproblems/${Ke}/add_notes.json`,at)}function Ne(Ke,at){return(0,E.v_)(`myproblems/${Ke}/restore_initial_code.json`,at)}function Be(Ke){return(0,E.v_)(`myproblems/${Ke}/sync_code.json`)}function be(Ke,at){return(0,E.v_)(`myproblems/${Ke}/update_code.json`,at)}function Ie(Ke,at){return(0,E.v_)(`discusses/${Ke}/plus.json`,at)}},86899:function(It,kt,ne){"use strict";var E=ne(59301),ve=ne(25399),Pe=ne(37568),Te=ne(6767),He=ne(27781),_e=ne(59301),ze=(Fe,We,Xe)=>new Promise(($e,vt)=>{var Ye=be=>{try{Be(Xe.next(be))}catch(Ie){vt(Ie)}},Ne=be=>{try{Be(Xe.throw(be))}catch(Ie){vt(Ie)}},Be=be=>be.done?$e(be.value):Promise.resolve(be.value).then(Ye,Ne);Be((Xe=Xe.apply(Fe,We)).next())});const nt=({defaultValue:Fe,onFinish:We})=>{const[Xe,$e]=(0,E.useState)(!1),[vt,Ye]=(0,E.useState)(Fe);return(0,E.useEffect)(()=>{Ye(Fe)},[Fe]),_e.createElement("div",null,Xe?_e.createElement(Pe.default,{autoFocus:!0,maxLength:60,style:{textAlign:"center",marginTop:20,marginBottom:20},value:vt,onChange:Ne=>{Ye(Ne.target.value)},onBlur:()=>ze(void 0,null,function*(){var Ne;if(((Ne=vt==null?void 0:vt.replaceAll(" ",""))==null?void 0:Ne.length)<=0){Te.ZP.error("\u8BD5\u5377\u6807\u9898\u4E0D\u80FD\u4E3A\u7A7A");return}(yield We(vt))&&$e(!1)}),onPressEnter:()=>ze(void 0,null,function*(){var Ne;if(((Ne=vt==null?void 0:vt.replaceAll(" ",""))==null?void 0:Ne.length)<=0){Te.ZP.error("\u8BD5\u5377\u6807\u9898\u4E0D\u80FD\u4E3A\u7A7A");return}(yield We(vt))&&$e(!1)})}):_e.createElement("div",{className:He.Z.title},vt,_e.createElement(ve.Z,{title:"\u7F16\u8F91\u8BD5\u5377\u540D\u79F0"},_e.createElement("i",{className:`${He.Z.editIcon} iconfont icon-bianji_Hover`,onClick:()=>$e(!0)}))))};kt.Z=nt},83161:function(It,kt,ne){"use strict";ne.d(kt,{Z:function(){return Ae}});var E=ne(78267),ve=ne(59301),Pe=ne(25399),Te=ne(62673),He=ne(6767),_e=ne(62957),ze=ne(77019),nt=ne(54265),Fe=ne(37568),We=ne(7939),Xe=ne(44104),$e=ne(4875),vt={flex_box_center:"flex_box_center___LvpOo",flex_space_between:"flex_space_between___nspow",flex_box_vertical_center:"flex_box_vertical_center___x8SwB",flex_box_center_end:"flex_box_center_end____Q_Od",flex_box_column:"flex_box_column___cr7Zl",btn:"btn___cNMEx",dragBtn:"dragBtn___HOiv_",row:"row___VPDaz",questionTitle:"questionTitle___RgXSX"},Ye=ne(43141),Ne=ne(35883),Be=ne(49317),be=ne(59301),Ie=Object.defineProperty,Ke=Object.defineProperties,at=Object.getOwnPropertyDescriptors,fe=Object.getOwnPropertySymbols,qe=Object.prototype.hasOwnProperty,st=Object.prototype.propertyIsEnumerable,wt=(tt,Dt,lt)=>Dt in tt?Ie(tt,Dt,{enumerable:!0,configurable:!0,writable:!0,value:lt}):tt[Dt]=lt,ft=(tt,Dt)=>{for(var lt in Dt||(Dt={}))qe.call(Dt,lt)&&wt(tt,lt,Dt[lt]);if(fe)for(var lt of fe(Dt))st.call(Dt,lt)&&wt(tt,lt,Dt[lt]);return tt},ct=(tt,Dt)=>Ke(tt,at(Dt)),Je=(tt,Dt,lt)=>new Promise((Qe,xt)=>{var Re=bt=>{try{pt(lt.next(bt))}catch(it){xt(it)}},me=bt=>{try{pt(lt.throw(bt))}catch(it){xt(it)}},pt=bt=>bt.done?Qe(bt.value):Promise.resolve(bt.value).then(Re,me);pt((lt=lt.apply(tt,Dt)).next())});const ut=(tt,Dt,lt)=>{const Qe=Array.from(tt),[xt]=Qe.splice(Dt,1);return Qe.splice(lt,0,xt),Qe},Se=({value:tt=[],onChange:Dt,selectIds:lt,setSelectIds:Qe})=>{const xt=Re=>{if(!Re.destination)return;const me=ut(tt,Re.source.index,Re.destination.index);Dt(me)};return be.createElement(Ye.Z5,{onDragEnd:xt},be.createElement(Ye.bK,{droppableId:"questionList"},Re=>be.createElement("div",ct(ft({},Re.droppableProps),{ref:Re.innerRef}),tt.map((me,pt)=>be.createElement(Ye._l,{key:me.id,draggableId:String(me.id),index:pt},(bt,it)=>{const Le=lt.includes(me.id);return be.createElement("div",ft({ref:bt.innerRef},bt.draggableProps),be.createElement("div",{className:vt.row,style:{paddingLeft:30}},be.createElement(Pe.Z,{title:"\u62D6\u62FD\u8C03\u6574\u987A\u5E8F"},be.createElement("div",ct(ft({},bt.dragHandleProps),{className:vt.dragBtn}),be.createElement("i",{className:"iconfont icon-tuodong3 font14"}))),be.createElement(Te.default,{checked:Le,onClick:()=>Qe(Le?lt.filter(Ue=>Ue!==me.id):[...lt,me.id]),className:"ml10 mr10"}),be.createElement(Pe.Z,{placement:"topLeft",color:"#fff",title:be.createElement(Ne.Z,{value:me.question_title})},be.createElement("div",{className:vt.questionTitle},be.createElement(Ne.Z,{showLines:1,showTextOnly:!0,value:me.question_title})))))})),Re.placeholder)))};var Ae=({isPaperlibrary:tt=!0,examId:Dt,visible:lt,onCancel:Qe,onOK:xt,data:Re})=>{const[me,pt]=(0,ve.useState)([]),[bt,it]=(0,ve.useState)([]),[Le,Ue]=(0,ve.useState)(null),[mt,Zt]=(0,ve.useState)([]),[Pt,en]=(0,ve.useState)(!1);(0,ve.useEffect)(()=>{lt&&(pt(Lt(Re)),it([]),Zt([]),Ue(null))},[lt]);const dt=(0,ve.useMemo)(()=>me.reduce((ye,se)=>{let ot=0;return se.score!==null?ot=se.score*se.items.length:ot=se.items.reduce((Xt,zt)=>{const on=parseFloat(zt.question_score)||0;return Xt+on},0),ye+ot},0),[me]),Lt=ye=>Array.isArray(ye)?ye.map((se,ot)=>{const Xt={name:se.name,question_type:se.question_type,score:null,id:ot+1,items:[]};return Array.isArray(se.items)&&(Xt.items=se.items.map(zt=>{var on;return{question_title:(zt==null?void 0:zt.question_type)===8?(on=zt==null?void 0:zt.program_attr)==null?void 0:on.description:zt.question_title,id:zt.question_id,question_score:zt.question_score}})),Xt}):(console.error("\u8F93\u5165\u6570\u636E\u5FC5\u987B\u662F\u6570\u7EC4\u7C7B\u578B"),[]),pn=ye=>{if(!ye.destination)return;const se=ut(me,ye.source.index,ye.destination.index);pt(se)},he=(ye,se,ot)=>{const Xt=(0,E.cloneDeep)(me);Xt[ye][se]=ot,pt(Xt)},le=()=>{if(!(mt!=null&&mt.length)){He.ZP.warning("\u8BF7\u9009\u62E9\u8981\u5220\u9664\u7684\u8BD5\u9898");return}const ye=(0,E.cloneDeep)(me);for(let se=ye.length-1;se>=0;se--){const ot=ye[se];ot.items&&Array.isArray(ot.items)&&(ot.items=ot.items.filter(Xt=>!mt.includes(Xt.id)),ot.items.length===0&&ye.splice(se,1))}Zt([]),Ue(null),pt(ye)},ae=ye=>{_e.default.confirm({centered:!0,icon:null,title:"\u63D0\u793A",content:"\u5220\u9664\u9898\u578B\u5C06\u5220\u9664\u8BE5\u9898\u578B\u4E0B\u7684\u6240\u6709\u8BD5\u9898\uFF0C\u786E\u5B9A\u8981\u8FDB\u884C\u8BE5\u64CD\u4F5C\u5417\uFF1F",okText:"\u786E\u8BA4",width:450,cancelText:"\u53D6\u6D88",onOk:()=>{var se;const ot=me.filter(Kt=>Kt.id!==ye),Xt=me.find(Kt=>Kt.id===ye),zt=(se=Xt==null?void 0:Xt.items)==null?void 0:se.map(Kt=>Kt.id),on=mt.filter(Kt=>!zt.includes(Kt));pt(ot),Zt(on),Ue(null)}})},pe=()=>Je(void 0,null,function*(){[100,120,150].includes(Number(dt))||(yield new Promise((ot,Xt)=>{_e.default.confirm({centered:!0,icon:null,okText:"\u4FDD\u5B58",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:be.createElement("div",{className:"c-grey-333"},"\u5F53\u524D\u8BD5\u5377\u603B\u5206\u4E3A",be.createElement("span",{style:{color:"#FA6400",margin:"0 5px"}},dt),"\u5206\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u8FDB\u884C\u4FDD\u5B58\uFF1F"),onOk:()=>Je(void 0,null,function*(){ot("")}),onCancel:()=>{Xt()}})}));const ye=me==null?void 0:me.map(ot=>{var Xt;return{question_type:ot.question_type,question_ids:(Xt=ot==null?void 0:ot.items)==null?void 0:Xt.map(zt=>zt.id),name:ot.name,score:ot.score}});en(!0);const se=yield(0,Be.ZP)(`/api/${tt?"examination_banks":"exercises"}/${Dt}/batch_question_type.json`,{method:"post",body:{question_arr:ye}});(se==null?void 0:se.status)===0&&(He.ZP.success("\u64CD\u4F5C\u6210\u529F"),xt()),en(!1)});return be.createElement(_e.default,{open:lt,title:"\u6279\u91CF\u64CD\u4F5C",width:1200,centered:!0,okText:"\u4FDD\u5B58\u64CD\u4F5C",onCancel:()=>Qe(),onOk:pe,confirmLoading:Pt},be.createElement(ze.Z,{align:"middle",className:"mb20 c-grey-666"},be.createElement("div",null,"\u53EF\u62D6\u62FD\xA0",be.createElement("i",{className:"iconfont icon-tuodong3 font12"}),"\xA0\u8C03\u6574\u9898\u578B\u6216\u8BD5\u9898\u6392\u5E8F\uFF0C\u52FE\u9009\u591A\u4E2A\u8BD5\u9898\u4E4B\u540E\u53EF\u8FDB\u884C\u6279\u91CF\u5220\u9664"),be.createElement("div",{className:"ml-auto"},"\u8BD5\u5377\u603B\u5206\xA0\xA0",be.createElement("span",{className:"c-light-primary"},dt,"\xA0\xA0"),"\u5206"),be.createElement("div",{onClick:le,className:vt.btn},"\u6279\u91CF\u5220\u9664")),be.createElement("div",{style:{maxHeight:500,overflow:"auto"}},be.createElement(Ye.Z5,{onDragEnd:pn},be.createElement(Ye.bK,{droppableId:"list"},ye=>be.createElement("div",ct(ft({},ye.droppableProps),{ref:ye.innerRef}),me.map((se,ot)=>be.createElement(Ye._l,{key:se.id,draggableId:String(se.id),index:ot},(Xt,zt)=>{var on,Kt;const Yn=bt==null?void 0:bt.includes(se.id);let Fn=se.name;const or=se.items.reduce((ur,rr)=>{const Xr=parseFloat(rr.question_score)||0;return ur+Xr},0),ra=typeof se.score=="number"?se.score*((on=se.items)==null?void 0:on.length):or;return be.createElement("div",ft({ref:Xt.innerRef},Xt.draggableProps),be.createElement("div",{className:vt.row},be.createElement(Pe.Z,{title:"\u62D6\u62FD\u8C03\u6574\u987A\u5E8F"},be.createElement("div",ct(ft({},Xt.dragHandleProps),{className:vt.dragBtn}),be.createElement("i",{className:"iconfont icon-tuodong3 font14"}))),be.createElement("div",{onClick:()=>it(Yn?bt.filter(ur=>ur!==se.id):[...bt,se.id]),className:"iconfont icon-zhankai8 current",style:{fontSize:36,transform:`rotate(${Yn?0:270}deg)`}}),Le===se.id?be.createElement(nt.Z,{align:"center"},be.createElement(Fe.default,{maxLength:10,showCount:!0,defaultValue:Fn,onChange:ur=>Fn=ur.target.value}),be.createElement(We.ZP,{onClick:()=>{var ur;if(!Fn.trim()){He.ZP.success("\u8BF7\u8F93\u5165\u5185\u5BB9");return}if(((ur=me.filter(Xr=>Xr.id!==Le))==null?void 0:ur.map(Xr=>Xr.name)).includes(Fn)){He.ZP.success("\u9898\u578B\u540D\u79F0\u91CD\u590D");return}he(ot,"name",Fn),Ue(null)},style:{padding:0,marginLeft:15},type:"link"},"\u786E\u8BA4"),be.createElement(We.ZP,{onClick:()=>Ue(null),style:{padding:0,marginLeft:15},type:"link"},"\u53D6\u6D88")):be.createElement(be.Fragment,null,be.createElement("div",{className:"c-grey-333 mr10"},se.name),be.createElement("i",{onClick:()=>Ue(se.id),className:"iconfont icon-bianji16 c-light-primary current font14"})),be.createElement(Xe.Z,{size:20,className:"ml-auto"},be.createElement(Xe.Z,{size:10},be.createElement("span",{className:"mr10"},"\u6BCF\u9898"),be.createElement($e.Z,{style:{width:100},onChange:ur=>he(ot,"score",ur),precision:1,min:.1,value:se.score,suffix:"\u5206"})),be.createElement(Xe.Z,{style:{width:145,paddingLeft:15},size:10},be.createElement("span",{className:"mr10"},"\u5C0F\u9898\u603B\u6570"),be.createElement("span",null,be.createElement("b",null,(Kt=se==null?void 0:se.items)==null?void 0:Kt.length),"\xA0\u9898")),be.createElement(Xe.Z,{style:{width:175,paddingLeft:15},size:10},be.createElement("span",{className:"mr10"},"\u9898\u578B\u603B\u5206"),be.createElement("span",null,be.createElement("b",null,ra),"\xA0\u5206")),be.createElement(We.ZP,{onClick:()=>ae(se.id),type:"link",danger:!0},"\u5220\u9664"))),Yn&&be.createElement(Se,{selectIds:mt,setSelectIds:Zt,value:(se==null?void 0:se.items)||[],onChange:ur=>he(ot,"items",ur)}))})),ye.placeholder)))))}},41663:function(It,kt,ne){"use strict";ne.d(kt,{Z:function(){return We}});var E=ne(62957),ve={ul:"ul___TdfYY"},Pe=ne(32637),Te=ne(59301),He=Object.getOwnPropertySymbols,_e=Object.prototype.hasOwnProperty,ze=Object.prototype.propertyIsEnumerable,nt=(Xe,$e)=>{var vt={};for(var Ye in Xe)_e.call(Xe,Ye)&&$e.indexOf(Ye)<0&&(vt[Ye]=Xe[Ye]);if(Xe!=null&&He)for(var Ye of He(Xe))$e.indexOf(Ye)<0&&ze.call(Xe,Ye)&&(vt[Ye]=Xe[Ye]);return vt},We=Xe=>{var $e=Xe,{open:vt,onCancel:Ye}=$e,Ne=nt($e,["open","onCancel"]);return Te.createElement(E.default,{centered:!0,open:vt,title:Te.createElement("div",{style:{fontWeight:"bold"}},"\u8054\u7CFB\u6559\u7814\u52A9\u7406"),width:"696px",onCancel:Ye,footer:null},Te.createElement("div",null,Te.createElement("div",{className:"tc"},Te.createElement("img",{className:"mt10",src:Pe,width:"182px",height:"181px",style:{borderRadius:"2px",border:"1px solid #D8E3E9"}})),Te.createElement("div",{style:{color:"#191919",fontWeight:"bold"},className:"tc font16 mt10"},"\u514D\u8D39\u6559\u7814\u52A9\u7406"),Te.createElement("div",{style:{color:"#191919",fontWeight:"bold"},className:"tc font16"},"\u5FAE\u4FE1\u626B\u4E00\u626B\u6DFB\u52A0"),Te.createElement("div",{style:{color:"#333"},className:"pt30 font14"},Te.createElement("ul",{className:ve.ul},Te.createElement("li",null,"1\u3001\u89E3\u7B54\u8001\u5E08\u7591\u60D1\u3001\u5E2E\u52A9\u8001\u5E08\u66F4\u5FEB\u719F\u6089\u548C\u4F7F\u7528\u5E73\u53F0\u6559\u5B66\u3002"),Te.createElement("li",null,"2\u3001\u534F\u52A9\u8001\u5E08\u521B\u5EFA\u8BFE\u5802\u3001\u8BFE\u7A0B\u8BBE\u8BA1\u3001\u505A\u597D\u6559\u5B66\u5DE5\u4F5C\u3002"),Te.createElement("li",null,"3\u3001\u6839\u636E\u8001\u5E08\u6559\u5B66\u65B9\u5411\uFF0C\u5206\u4EAB\u5934\u6B4C\u5E73\u53F0C9\u9662\u6821\u3001985\u9AD8\u6821\u3001211\u9AD8\u6821\u3001\u53CC\u4E00\u6D41\u9AD8\u6821\u8001\u5E08\u7ECF\u5178\u5B9E\u8DF5\u6559\u5B66\u6848\u4F8B\u3002")))))}},86797:function(It,kt,ne){"use strict";ne.d(kt,{I:function(){return ve}});var E=ne(59301);const ve=()=>{const[Pe,Te]=(0,E.useState)("hidden");return{overflow:Pe,handleMouseEnter:()=>Te("auto"),handleMouseLeave:()=>Te("hidden")}}},20047:function(It,kt,ne){"use strict";ne.d(kt,{AL:function(){return fe},Iy:function(){return Xe},Qv:function(){return Ye},ez:function(){return at},jb:function(){return $e}});var E=ne(32834),ve=ne.n(E),Pe=ne(11690),Te=ne.n(Pe);let He=1;function _e(ct,Je){const ut=ct.match(/^(\s+)(?:```)/);if(ut===null)return Je;const Se=ut[1];return Je.split(`
`).map(Ve=>{const Ae=Ve.match(/^\s+/);if(Ae===null)return Ve;const[tt]=Ae;return tt.length>=Se.length?Ve.slice(Se.length):Ve}).join(`
`)}let ze=[],nt=["<ul>"];const Fe=new(ve()).Renderer,We=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function Xe(){ze.length=0,nt=["<ul>"]}const $e={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function vt(ct,Je,ut,Se){if(Je>=ct.length||ct[Je].level<=ut)return Je;var Ve=ct[Je];Se.push("<li><a href='#"+He+Ve.anchor+"'>"+Ve.text+"</a>"),Je++;var Ae=[];return Je=vt(ct,Je,Ve.level,Ae),Ae.length>0&&(Se.push("<ul>"),Ae.forEach(function(tt){Se.push(tt)}),Se.push("</ul>")),Se.push("</li>"),Je=vt(ct,Je,ut,Se),Je}function Ye(){return vt(ze,0,0,nt),nt.push("</ul>"),nt.join("")}const Ne={heading(ct){const Je=We.exec(ct);if(He+=1,Je)return{type:"heading",raw:Je[0],depth:Je[1].length,text:Je[2]}},fences(ct){const Je=this.rules.block.fences.exec(ct);if(Je){const ut=Je[0];let Se=_e(ut,Je[3]||"");const Ve=Je[2]?Je[2].trim():Je[2];if(["latex","katex","math"].indexOf(Ve)>=0){const Ae=Ie(),tt=Se;Se=Ae,Ke[Ae]={type:"block",expression:tt}}return{type:"code",raw:ut,lang:Ve,text:Se}}}},Be=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let be=0;const Ie=()=>`__special_katext_id_${be++}__`;let Ke={};function at(){return Ke}function fe(){be=0,Ke={}}function qe(ct){return ct=ct.replace(Be,(Je,ut)=>{const Se=Ie();return Ke[Se]={type:"inline",expression:ut},Se}),ct}const st=Fe.listitem;Fe.listitem=function(ct){return st(qe(ct))};const wt=Fe.paragraph;Fe.paragraph=function(ct){return wt(qe(ct))};const ft=Fe.tablecell;Fe.tablecell=function(ct,Je){return ft(qe(ct),Je)},Fe.code=function(ct,Je,ut){const Se=(Je||"").match(/\S*/)[0];return Se?["latex","katex","math"].indexOf(Se)>=0?`<p class='editormd-tex'>${ct}</p>`:`<pre class="prettyprint linenums"><code class="language-${Je}">${ut?ct:(0,Pe.escape)(ct,!0)}</code></pre>
`:'<pre class="prettyprint linenums"><code>'+(ut?ct:(0,Pe.escape)(ct,!0))+"</code></pre>"},Fe.heading=function(ct,Je,ut){let Se=this.options.headerPrefix+ut.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return ze.push({anchor:Se,level:Je,text:ct}),"<h"+Je+' id="'+He+Se+'">'+ct+"</h"+Je+">"},ve().setOptions({silent:!0,gfm:!0,pedantic:!1}),ve().use({tokenizer:Ne,renderer:Fe}),kt.ZP=ve()},91882:function(It,kt,ne){"use strict";ne.d(kt,{Z:function(){return lt}});var E=ne(59301),ve=ne(92310),Pe=ne.n(ve),Te=ne(11592),He=ne(26112),_e=ne(22703),ze=ne(48755),nt=ne(84105),Fe=ne(19563);const We=Qe=>{let{children:xt}=Qe;const{getPrefixCls:Re}=E.useContext(ze.E_),me=Re("breadcrumb");return E.createElement("li",{className:`${me}-separator`,"aria-hidden":"true"},xt===""?xt:xt||"/")};We.__ANT_BREADCRUMB_SEPARATOR=!0;var Xe=We,$e=function(Qe,xt){var Re={};for(var me in Qe)Object.prototype.hasOwnProperty.call(Qe,me)&&xt.indexOf(me)<0&&(Re[me]=Qe[me]);if(Qe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var pt=0,me=Object.getOwnPropertySymbols(Qe);pt<me.length;pt++)xt.indexOf(me[pt])<0&&Object.prototype.propertyIsEnumerable.call(Qe,me[pt])&&(Re[me[pt]]=Qe[me[pt]]);return Re};function vt(Qe,xt){if(Qe.title===void 0||Qe.title===null)return null;const Re=Object.keys(xt).join("|");return typeof Qe.title=="object"?Qe.title:String(Qe.title).replace(new RegExp(`:(${Re})`,"g"),(me,pt)=>xt[pt]||me)}function Ye(Qe,xt,Re,me){if(Re==null)return null;const{className:pt,onClick:bt}=xt,it=$e(xt,["className","onClick"]),Le=Object.assign(Object.assign({},(0,He.Z)(it,{data:!0,aria:!0})),{onClick:bt});return me!==void 0?E.createElement("a",Object.assign({},Le,{className:Pe()(`${Qe}-link`,pt),href:me}),Re):E.createElement("span",Object.assign({},Le,{className:Pe()(`${Qe}-link`,pt)}),Re)}function Ne(Qe,xt){return(me,pt,bt,it,Le)=>{if(xt)return xt(me,pt,bt,it);const Ue=vt(me,pt);return Ye(Qe,me,Ue,Le)}}var Be=function(Qe,xt){var Re={};for(var me in Qe)Object.prototype.hasOwnProperty.call(Qe,me)&&xt.indexOf(me)<0&&(Re[me]=Qe[me]);if(Qe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var pt=0,me=Object.getOwnPropertySymbols(Qe);pt<me.length;pt++)xt.indexOf(me[pt])<0&&Object.prototype.propertyIsEnumerable.call(Qe,me[pt])&&(Re[me[pt]]=Qe[me[pt]]);return Re};const be=Qe=>{const{prefixCls:xt,separator:Re="/",children:me,menu:pt,overlay:bt,dropdownProps:it,href:Le}=Qe,mt=(Zt=>{if(pt||bt){const Pt=Object.assign({},it);if(pt){const en=pt||{},{items:dt}=en,Lt=Be(en,["items"]);Pt.menu=Object.assign(Object.assign({},Lt),{items:dt==null?void 0:dt.map((pn,he)=>{var{key:le,title:ae,label:pe,path:ye}=pn,se=Be(pn,["key","title","label","path"]);let ot=pe!=null?pe:ae;return ye&&(ot=E.createElement("a",{href:`${Le}${ye}`},ot)),Object.assign(Object.assign({},se),{key:le!=null?le:he,label:ot})})})}else bt&&(Pt.overlay=bt);return E.createElement(Fe.Z,Object.assign({placement:"bottom"},Pt),E.createElement("span",{className:`${xt}-overlay-link`},Zt,E.createElement(nt.Z,null)))}return Zt})(me);return mt!=null?E.createElement(E.Fragment,null,E.createElement("li",null,mt),Re&&E.createElement(Xe,null,Re)):null},Ie=Qe=>{const{prefixCls:xt,children:Re,href:me}=Qe,pt=Be(Qe,["prefixCls","children","href"]),{getPrefixCls:bt}=E.useContext(ze.E_),it=bt("breadcrumb",xt);return E.createElement(be,Object.assign({},pt,{prefixCls:it}),Ye(it,pt,Re,me))};Ie.__ANT_BREADCRUMB_ITEM=!0;var Ke=Ie,at=ne(36237),fe=ne(63356),qe=ne(16931),st=ne(51636);const wt=Qe=>{const{componentCls:xt,iconCls:Re,calc:me}=Qe;return{[xt]:Object.assign(Object.assign({},(0,fe.Wf)(Qe)),{color:Qe.itemColor,fontSize:Qe.fontSize,[Re]:{fontSize:Qe.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:Qe.linkColor,transition:`color ${Qe.motionDurationMid}`,padding:`0 ${(0,at.unit)(Qe.paddingXXS)}`,borderRadius:Qe.borderRadiusSM,height:Qe.fontHeight,display:"inline-block",marginInline:me(Qe.marginXXS).mul(-1).equal(),"&:hover":{color:Qe.linkHoverColor,backgroundColor:Qe.colorBgTextHover}},(0,fe.Qy)(Qe)),"li:last-child":{color:Qe.lastItemColor},[`${xt}-separator`]:{marginInline:Qe.separatorMargin,color:Qe.separatorColor},[`${xt}-link`]:{[`
> ${Re} + span,
> ${Re} + a
`]:{marginInlineStart:Qe.marginXXS}},[`${xt}-overlay-link`]:{borderRadius:Qe.borderRadiusSM,height:Qe.fontHeight,display:"inline-block",padding:`0 ${(0,at.unit)(Qe.paddingXXS)}`,marginInline:me(Qe.marginXXS).mul(-1).equal(),[`> ${Re}`]:{marginInlineStart:Qe.marginXXS,fontSize:Qe.fontSizeIcon},"&:hover":{color:Qe.linkHoverColor,backgroundColor:Qe.colorBgTextHover,a:{color:Qe.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${Qe.componentCls}-rtl`]:{direction:"rtl"}})}},ft=Qe=>({itemColor:Qe.colorTextDescription,lastItemColor:Qe.colorText,iconFontSize:Qe.fontSize,linkColor:Qe.colorTextDescription,linkHoverColor:Qe.colorText,separatorColor:Qe.colorTextDescription,separatorMargin:Qe.marginXS});var ct=(0,qe.I$)("Breadcrumb",Qe=>{const xt=(0,st.mergeToken)(Qe,{});return wt(xt)},ft),Je=function(Qe,xt){var Re={};for(var me in Qe)Object.prototype.hasOwnProperty.call(Qe,me)&&xt.indexOf(me)<0&&(Re[me]=Qe[me]);if(Qe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var pt=0,me=Object.getOwnPropertySymbols(Qe);pt<me.length;pt++)xt.indexOf(me[pt])<0&&Object.prototype.propertyIsEnumerable.call(Qe,me[pt])&&(Re[me[pt]]=Qe[me[pt]]);return Re};function ut(Qe){const{breadcrumbName:xt,children:Re}=Qe,me=Je(Qe,["breadcrumbName","children"]),pt=Object.assign({title:xt},me);return Re&&(pt.menu={items:Re.map(bt=>{var{breadcrumbName:it}=bt,Le=Je(bt,["breadcrumbName"]);return Object.assign(Object.assign({},Le),{title:it})})}),pt}function Se(Qe,xt){return(0,E.useMemo)(()=>Qe||(xt?xt.map(ut):null),[Qe,xt])}var Ve=function(Qe,xt){var Re={};for(var me in Qe)Object.prototype.hasOwnProperty.call(Qe,me)&&xt.indexOf(me)<0&&(Re[me]=Qe[me]);if(Qe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var pt=0,me=Object.getOwnPropertySymbols(Qe);pt<me.length;pt++)xt.indexOf(me[pt])<0&&Object.prototype.propertyIsEnumerable.call(Qe,me[pt])&&(Re[me[pt]]=Qe[me[pt]]);return Re};const Ae=(Qe,xt)=>{if(xt===void 0)return xt;let Re=(xt||"").replace(/^\//,"");return Object.keys(Qe).forEach(me=>{Re=Re.replace(`:${me}`,Qe[me])}),Re},tt=Qe=>{const{prefixCls:xt,separator:Re="/",style:me,className:pt,rootClassName:bt,routes:it,items:Le,children:Ue,itemRender:mt,params:Zt={}}=Qe,Pt=Ve(Qe,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:en,direction:dt,breadcrumb:Lt}=E.useContext(ze.E_);let pn;const he=en("breadcrumb",xt),[le,ae,pe]=ct(he),ye=Se(Le,it),se=Ne(he,mt);if(ye&&ye.length>0){const zt=[],on=Le||it;pn=ye.map((Kt,Yn)=>{const{path:Fn,key:or,type:ra,menu:ur,overlay:rr,onClick:Xr,className:Vr,separator:xr,dropdownProps:Dn}=Kt,pa=Ae(Zt,Fn);pa!==void 0&&zt.push(pa);const Jn=or!=null?or:Yn;if(ra==="separator")return E.createElement(Xe,{key:Jn},xr);const Vn={},ha=Yn===ye.length-1;ur?Vn.menu=ur:rr&&(Vn.overlay=rr);let{href:Ti}=Kt;return zt.length&&pa!==void 0&&(Ti=`#/${zt.join("/")}`),E.createElement(be,Object.assign({key:Jn},Vn,(0,He.Z)(Kt,{data:!0,aria:!0}),{className:Vr,dropdownProps:Dn,href:Ti,separator:ha?"":Re,onClick:Xr,prefixCls:he}),se(Kt,Zt,on,zt,Ti))})}else if(Ue){const zt=(0,Te.Z)(Ue).length;pn=(0,Te.Z)(Ue).map((on,Kt)=>{if(!on)return on;const Yn=Kt===zt-1;return(0,_e.Tm)(on,{separator:Yn?"":Re,key:Kt})})}const ot=Pe()(he,Lt==null?void 0:Lt.className,{[`${he}-rtl`]:dt==="rtl"},pt,bt,ae,pe),Xt=Object.assign(Object.assign({},Lt==null?void 0:Lt.style),me);return le(E.createElement("nav",Object.assign({className:ot,style:Xt},Pt),E.createElement("ol",null,pn)))};tt.Item=Ke,tt.Separator=Xe;var Dt=tt,lt=Dt},79939:function(It,kt,ne){"use strict";ne.d(kt,{Z:function(){return Zo}});var E=ne(77654),ve=ne(59301),Pe=ne(92310),Te=ne.n(Pe),He=ne(60499),_e=ne(85899),ze=ne(72190),nt=ne(42244),Fe=ne(37463),We=ne(6551),Xe=ne(6089),$e=ne(18929),vt=ve.createContext({}),Ye=vt,Ne=ne(43749),Be=ne(18642),be="__rc_cascader_search_mark__",Ie=function(rn,Mt,Nt){var sr=Nt.label,Hn=sr===void 0?"":sr;return Mt.some(function(vn){return String(vn[Hn]).toLowerCase().includes(rn.toLowerCase())})},Ke=function(rn,Mt,Nt,sr){return Mt.map(function(Hn){return Hn[sr.label]}).join(" / ")},at=function(rn,Mt,Nt,sr,Hn,vn){var Fr=Hn.filter,Pr=Fr===void 0?Ie:Fr,Or=Hn.render,Ha=Or===void 0?Ke:Or,ma=Hn.limit,Qr=ma===void 0?50:ma,za=Hn.sort;return ve.useMemo(function(){var Ya=[];if(!rn)return[];function jr(Wa,Li){var ui=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;Wa.forEach(function(Sa){if(!(!za&&Qr!==!1&&Qr>0&&Ya.length>=Qr)){var ia=[].concat((0,E.Z)(Li),[Sa]),$i=Sa[Nt.children],ci=ui||Sa.disabled;if((!$i||$i.length===0||vn)&&Pr(rn,ia,{label:Nt.label})){var ja;Ya.push((0,_e.Z)((0,_e.Z)({},Sa),{},(ja={disabled:ci},(0,Be.Z)(ja,Nt.label,Ha(rn,ia,sr,Nt)),(0,Be.Z)(ja,be,ia),(0,Be.Z)(ja,Nt.children,void 0),ja)))}$i&&jr(Sa[Nt.children],ia,ci)}})}return jr(Mt,[]),za&&Ya.sort(function(Wa,Li){return za(Wa[be],Li[be],rn,Nt)}),Qr!==!1&&Qr>0?Ya.slice(0,Qr):Ya},[rn,Mt,Nt,sr,Ha,vn,Pr,za,Qr])},fe=at,qe="__RC_CASCADER_SPLIT__",st="SHOW_PARENT",wt="SHOW_CHILD";function ft(Ct){return Ct.join(qe)}function ct(Ct){return Ct.map(ft)}function Je(Ct){return Ct.split(qe)}function ut(Ct){var rn=Ct||{},Mt=rn.label,Nt=rn.value,sr=rn.children,Hn=Nt||"value";return{label:Mt||"label",value:Hn,key:Hn,children:sr||"children"}}function Se(Ct,rn){var Mt,Nt;return(Mt=Ct.isLeaf)!==null&&Mt!==void 0?Mt:!((Nt=Ct[rn.children])!==null&&Nt!==void 0&&Nt.length)}function Ve(Ct){var rn=Ct.parentElement;if(rn){var Mt=Ct.offsetTop-rn.offsetTop;Mt-rn.scrollTop<0?rn.scrollTo({top:Mt}):Mt+Ct.offsetHeight-rn.scrollTop>rn.offsetHeight&&rn.scrollTo({top:Mt+Ct.offsetHeight-rn.offsetHeight})}}function Ae(Ct,rn){return Ct.map(function(Mt){var Nt;return(Nt=Mt[be])===null||Nt===void 0?void 0:Nt.map(function(sr){return sr[rn.value]})})}function tt(Ct){return Array.isArray(Ct)&&Array.isArray(Ct[0])}function Dt(Ct){return Ct?tt(Ct)?Ct:(Ct.length===0?[]:[Ct]).map(function(rn){return Array.isArray(rn)?rn:[rn]}):[]}function lt(Ct,rn,Mt){var Nt=new Set(Ct),sr=rn();return Ct.filter(function(Hn){var vn=sr[Hn],Fr=vn?vn.parent:null,Pr=vn?vn.children:null;return vn&&vn.node.disabled?!0:Mt===wt?!(Pr&&Pr.some(function(Or){return Or.key&&Nt.has(Or.key)})):!(Fr&&!Fr.node.disabled&&Nt.has(Fr.key))})}function Qe(Ct,rn,Mt){for(var Nt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,sr=rn,Hn=[],vn=function(){var Or,Ha,ma,Qr=Ct[Fr],za=(Or=sr)===null||Or===void 0?void 0:Or.findIndex(function(jr){var Wa=jr[Mt.value];return Nt?String(Wa)===String(Qr):Wa===Qr}),Ya=za!==-1?(Ha=sr)===null||Ha===void 0?void 0:Ha[za]:null;Hn.push({value:(ma=Ya==null?void 0:Ya[Mt.value])!==null&&ma!==void 0?ma:Qr,index:za,option:Ya}),sr=Ya==null?void 0:Ya[Mt.children]},Fr=0;Fr<Ct.length;Fr+=1)vn();return Hn}var xt=function(Ct,rn,Mt,Nt,sr){return ve.useMemo(function(){var Hn=sr||function(vn){var Fr=Nt?vn.slice(-1):vn,Pr=" / ";return Fr.every(function(Or){return["string","number"].includes((0,Ne.Z)(Or))})?Fr.join(Pr):Fr.reduce(function(Or,Ha,ma){var Qr=ve.isValidElement(Ha)?ve.cloneElement(Ha,{key:ma}):Ha;return ma===0?[Qr]:[].concat((0,E.Z)(Or),[Pr,Qr])},[])};return Ct.map(function(vn){var Fr,Pr=Qe(vn,rn,Mt),Or=Hn(Pr.map(function(ma){var Qr,za=ma.option,Ya=ma.value;return(Qr=za==null?void 0:za[Mt.label])!==null&&Qr!==void 0?Qr:Ya}),Pr.map(function(ma){var Qr=ma.option;return Qr})),Ha=ft(vn);return{label:Or,value:Ha,key:Ha,valueCells:vn,disabled:(Fr=Pr[Pr.length-1])===null||Fr===void 0||(Fr=Fr.option)===null||Fr===void 0?void 0:Fr.disabled}})},[Ct,rn,Mt,sr,Nt])};function Re(Ct,rn){return ve.useCallback(function(Mt){var Nt=[],sr=[];return Mt.forEach(function(Hn){var vn=Qe(Hn,Ct,rn);vn.every(function(Fr){return Fr.option})?sr.push(Hn):Nt.push(Hn)}),[sr,Nt]},[Ct,rn])}var me=ne(34061),pt=function(Ct,rn){var Mt=ve.useRef({options:[],info:{keyEntities:{},pathKeyEntities:{}}}),Nt=ve.useCallback(function(){return Mt.current.options!==Ct&&(Mt.current.options=Ct,Mt.current.info=(0,me.I8)(Ct,{fieldNames:rn,initWrapper:function(Hn){return(0,_e.Z)((0,_e.Z)({},Hn),{},{pathKeyEntities:{}})},processEntity:function(Hn,vn){var Fr=Hn.nodes.map(function(Pr){return Pr[rn.value]}).join(qe);vn.pathKeyEntities[Fr]=Hn,Hn.key=Fr}})),Mt.current.info.pathKeyEntities},[rn,Ct]);return Nt};function bt(Ct,rn){var Mt=ve.useMemo(function(){return rn||[]},[rn]),Nt=pt(Mt,Ct),sr=ve.useCallback(function(Hn){var vn=Nt();return Hn.map(function(Fr){var Pr=vn[Fr].nodes;return Pr.map(function(Or){return Or[Ct.value]})})},[Nt,Ct]);return[Mt,Nt,sr]}var it=ne(48736);function Le(Ct){return ve.useMemo(function(){if(!Ct)return[!1,{}];var rn={matchInputWidth:!0,limit:50};return Ct&&(0,Ne.Z)(Ct)==="object"&&(rn=(0,_e.Z)((0,_e.Z)({},rn),Ct)),rn.limit<=0&&(rn.limit=!1),[!0,rn]},[Ct])}var Ue=ne(34643);function mt(Ct,rn,Mt,Nt,sr,Hn,vn,Fr){return function(Pr){if(!Ct)rn(Pr);else{var Or=ft(Pr),Ha=ct(Mt),ma=ct(Nt),Qr=Ha.includes(Or),za=sr.some(function(ci){return ft(ci)===Or}),Ya=Mt,jr=sr;if(za&&!Qr)jr=sr.filter(function(ci){return ft(ci)!==Or});else{var Wa=Qr?Ha.filter(function(ci){return ci!==Or}):[].concat((0,E.Z)(Ha),[Or]),Li=Hn(),ui;if(Qr){var Sa=(0,Ue.S)(Wa,{checked:!1,halfCheckedKeys:ma},Li);ui=Sa.checkedKeys}else{var ia=(0,Ue.S)(Wa,!0,Li);ui=ia.checkedKeys}var $i=lt(ui,Hn,Fr);Ya=vn($i)}rn([].concat((0,E.Z)(jr),(0,E.Z)(Ya)))}}}function Zt(Ct,rn,Mt,Nt,sr){return ve.useMemo(function(){var Hn=sr(rn),vn=(0,ze.Z)(Hn,2),Fr=vn[0],Pr=vn[1];if(!Ct||!rn.length)return[Fr,[],Pr];var Or=ct(Fr),Ha=Mt(),ma=(0,Ue.S)(Or,!0,Ha),Qr=ma.checkedKeys,za=ma.halfCheckedKeys;return[Nt(Qr),Nt(za),Pr]},[Ct,rn,Mt,Nt,sr])}var Pt=ve.memo(function(Ct){var rn=Ct.children;return rn},function(Ct,rn){return!rn.open}),en=Pt;function dt(Ct){var rn,Mt=Ct.prefixCls,Nt=Ct.checked,sr=Ct.halfChecked,Hn=Ct.disabled,vn=Ct.onClick,Fr=Ct.disableCheckbox,Pr=ve.useContext(Ye),Or=Pr.checkable,Ha=typeof Or!="boolean"?Or:null;return ve.createElement("span",{className:Te()("".concat(Mt),(rn={},(0,Be.Z)(rn,"".concat(Mt,"-checked"),Nt),(0,Be.Z)(rn,"".concat(Mt,"-indeterminate"),!Nt&&sr),(0,Be.Z)(rn,"".concat(Mt,"-disabled"),Hn||Fr),rn)),onClick:vn},Ha)}var Lt="__cascader_fix_label__";function pn(Ct){var rn=Ct.prefixCls,Mt=Ct.multiple,Nt=Ct.options,sr=Ct.activeValue,Hn=Ct.prevValuePath,vn=Ct.onToggleOpen,Fr=Ct.onSelect,Pr=Ct.onActive,Or=Ct.checkedSet,Ha=Ct.halfCheckedSet,ma=Ct.loadingKeys,Qr=Ct.isSelectable,za=Ct.disabled,Ya="".concat(rn,"-menu"),jr="".concat(rn,"-menu-item"),Wa=ve.useContext(Ye),Li=Wa.fieldNames,ui=Wa.changeOnSelect,Sa=Wa.expandTrigger,ia=Wa.expandIcon,$i=Wa.loadingIcon,ci=Wa.dropdownMenuColumnStyle,ja=Wa.optionRender,ai=Sa==="hover",wi=function(Di){return za||Di},ii=ve.useMemo(function(){return Nt.map(function(Da){var Di,oi=Da.disabled,xo=Da.disableCheckbox,Bo=Da[be],Ei=(Di=Da[Lt])!==null&&Di!==void 0?Di:Da[Li.label],Qi=Da[Li.value],ga=Se(Da,Li),Ri=Bo?Bo.map(function(So){return So[Li.value]}):[].concat((0,E.Z)(Hn),[Qi]),Pi=ft(Ri),Fo=ma.includes(Pi),Bi=Or.has(Pi),Fi=Ha.has(Pi);return{disabled:oi,label:Ei,value:Qi,isLeaf:ga,isLoading:Fo,checked:Bi,halfChecked:Fi,option:Da,disableCheckbox:xo,fullPath:Ri,fullPathKey:Pi}})},[Nt,Or,Li,Ha,ma,Hn]);return ve.createElement("ul",{className:Ya,role:"menu"},ii.map(function(Da){var Di,oi=Da.disabled,xo=Da.label,Bo=Da.value,Ei=Da.isLeaf,Qi=Da.isLoading,ga=Da.checked,Ri=Da.halfChecked,Pi=Da.option,Fo=Da.fullPath,Bi=Da.fullPathKey,Fi=Da.disableCheckbox,So=function(){if(!wi(oi)){var Cn=(0,E.Z)(Fo);ai&&Ei&&Cn.pop(),Pr(Cn)}},De=function(){Qr(Pi)&&!wi(oi)&&Fr(Fo,Ei)},jt;return typeof Pi.title=="string"?jt=Pi.title:typeof xo=="string"&&(jt=xo),ve.createElement("li",{key:Bi,className:Te()(jr,(Di={},(0,Be.Z)(Di,"".concat(jr,"-expand"),!Ei),(0,Be.Z)(Di,"".concat(jr,"-active"),sr===Bo||sr===Bi),(0,Be.Z)(Di,"".concat(jr,"-disabled"),wi(oi)),(0,Be.Z)(Di,"".concat(jr,"-loading"),Qi),Di)),style:ci,role:"menuitemcheckbox",title:jt,"aria-checked":ga,"data-path-key":Bi,onClick:function(){So(),!Fi&&(!Mt||Ei)&&De()},onDoubleClick:function(){ui&&vn(!1)},onMouseEnter:function(){ai&&So()},onMouseDown:function(Cn){Cn.preventDefault()}},Mt&&ve.createElement(dt,{prefixCls:"".concat(rn,"-checkbox"),checked:ga,halfChecked:Ri,disabled:wi(oi)||Fi,disableCheckbox:Fi,onClick:function(Cn){Fi||(Cn.stopPropagation(),De())}}),ve.createElement("div",{className:"".concat(jr,"-content")},ja?ja(Pi):xo),!Qi&&ia&&!Ei&&ve.createElement("div",{className:"".concat(jr,"-expand-icon")},ia),Qi&&$i&&ve.createElement("div",{className:"".concat(jr,"-loading-icon")},$i))}))}var he=function(rn,Mt){var Nt=ve.useContext(Ye),sr=Nt.values,Hn=sr[0],vn=ve.useState([]),Fr=(0,ze.Z)(vn,2),Pr=Fr[0],Or=Fr[1];return ve.useEffect(function(){rn||Or(Hn||[])},[Mt,Hn]),[Pr,Or]},le=he,ae=ne(10228),pe=function(Ct,rn,Mt,Nt,sr,Hn,vn){var Fr=vn.direction,Pr=vn.searchValue,Or=vn.toggleOpen,Ha=vn.open,ma=Fr==="rtl",Qr=ve.useMemo(function(){for(var ci=-1,ja=rn,ai=[],wi=[],ii=Nt.length,Da=Ae(rn,Mt),Di=function(Qi){var ga=ja.findIndex(function(Ri,Pi){return(Da[Pi]?ft(Da[Pi]):Ri[Mt.value])===Nt[Qi]});if(ga===-1)return 1;ci=ga,ai.push(ci),wi.push(Nt[Qi]),ja=ja[ci][Mt.children]},oi=0;oi<ii&&ja&&!Di(oi);oi+=1);for(var xo=rn,Bo=0;Bo<ai.length-1;Bo+=1)xo=xo[ai[Bo]][Mt.children];return[wi,ci,xo,Da]},[Nt,Mt,rn]),za=(0,ze.Z)(Qr,4),Ya=za[0],jr=za[1],Wa=za[2],Li=za[3],ui=function(ja){sr(ja)},Sa=function(ja){var ai=Wa.length,wi=jr;wi===-1&&ja<0&&(wi=ai);for(var ii=0;ii<ai;ii+=1){wi=(wi+ja+ai)%ai;var Da=Wa[wi];if(Da&&!Da.disabled){var Di=Ya.slice(0,-1).concat(Li[wi]?ft(Li[wi]):Da[Mt.value]);ui(Di);return}}},ia=function(){if(Ya.length>1){var ja=Ya.slice(0,-1);ui(ja)}else Or(!1)},$i=function(){var ja,ai=((ja=Wa[jr])===null||ja===void 0?void 0:ja[Mt.children])||[],wi=ai.find(function(Da){return!Da.disabled});if(wi){var ii=[].concat((0,E.Z)(Ya),[wi[Mt.value]]);ui(ii)}};ve.useImperativeHandle(Ct,function(){return{onKeyDown:function(ja){var ai=ja.which;switch(ai){case ae.Z.UP:case ae.Z.DOWN:{var wi=0;ai===ae.Z.UP?wi=-1:ai===ae.Z.DOWN&&(wi=1),wi!==0&&Sa(wi);break}case ae.Z.LEFT:{if(Pr)break;ma?$i():ia();break}case ae.Z.RIGHT:{if(Pr)break;ma?ia():$i();break}case ae.Z.BACKSPACE:{Pr||ia();break}case ae.Z.ENTER:{if(Ya.length){var ii=Wa[jr],Da=(ii==null?void 0:ii[be])||[];Da.length?Hn(Da.map(function(Di){return Di[Mt.value]}),Da[Da.length-1]):Hn(Ya,Wa[jr])}break}case ae.Z.ESC:Or(!1),Ha&&ja.stopPropagation()}},onKeyUp:function(){}}})},ye=ve.forwardRef(function(Ct,rn){var Mt,Nt,sr,Hn=Ct.prefixCls,vn=Ct.multiple,Fr=Ct.searchValue,Pr=Ct.toggleOpen,Or=Ct.notFoundContent,Ha=Ct.direction,ma=Ct.open,Qr=Ct.disabled,za=ve.useRef(null),Ya=Ha==="rtl",jr=ve.useContext(Ye),Wa=jr.options,Li=jr.values,ui=jr.halfValues,Sa=jr.fieldNames,ia=jr.changeOnSelect,$i=jr.onSelect,ci=jr.searchOptions,ja=jr.dropdownPrefixCls,ai=jr.loadData,wi=jr.expandTrigger,ii=ja||Hn,Da=ve.useState([]),Di=(0,ze.Z)(Da,2),oi=Di[0],xo=Di[1],Bo=function(An){if(!(!ai||Fr)){var fr=Qe(An,Wa,Sa),cr=fr.map(function(ta){var Ba=ta.option;return Ba}),$n=cr[cr.length-1];if($n&&!Se($n,Sa)){var Pa=ft(An);xo(function(ta){return[].concat((0,E.Z)(ta),[Pa])}),ai(cr)}}};ve.useEffect(function(){oi.length&&oi.forEach(function(qt){var An=Je(qt),fr=Qe(An,Wa,Sa,!0).map(function($n){var Pa=$n.option;return Pa}),cr=fr[fr.length-1];(!cr||cr[Sa.children]||Se(cr,Sa))&&xo(function($n){return $n.filter(function(Pa){return Pa!==qt})})})},[Wa,oi,Sa]);var Ei=ve.useMemo(function(){return new Set(ct(Li))},[Li]),Qi=ve.useMemo(function(){return new Set(ct(ui))},[ui]),ga=le(vn,ma),Ri=(0,ze.Z)(ga,2),Pi=Ri[0],Fo=Ri[1],Bi=function(An){Fo(An),Bo(An)},Fi=function(An){if(Qr)return!1;var fr=An.disabled,cr=Se(An,Sa);return!fr&&(cr||ia||vn)},So=function(An,fr){var cr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;$i(An),!vn&&(fr||ia&&(wi==="hover"||cr))&&Pr(!1)},De=ve.useMemo(function(){return Fr?ci:Wa},[Fr,ci,Wa]),jt=ve.useMemo(function(){for(var qt=[{options:De}],An=De,fr=Ae(An,Sa),cr=function(){var ta=Pi[$n],Ba=An.find(function(Hi,uo){return(fr[uo]?ft(fr[uo]):Hi[Sa.value])===ta}),bi=Ba==null?void 0:Ba[Sa.children];if(!(bi!=null&&bi.length))return 1;An=bi,qt.push({options:bi})},$n=0;$n<Pi.length&&!cr();$n+=1);return qt},[De,Pi,Sa]),hn=function(An,fr){Fi(fr)&&So(An,Se(fr,Sa),!0)};pe(rn,De,Sa,Pi,Bi,hn,{direction:Ha,searchValue:Fr,toggleOpen:Pr,open:ma}),ve.useEffect(function(){if(!Fr)for(var qt=0;qt<Pi.length;qt+=1){var An,fr=Pi.slice(0,qt+1),cr=ft(fr),$n=(An=za.current)===null||An===void 0?void 0:An.querySelector('li[data-path-key="'.concat(cr.replace(/\\{0,2}"/g,'\\"'),'"]'));$n&&Ve($n)}},[Pi,Fr]);var Cn=!((Mt=jt[0])!==null&&Mt!==void 0&&(Mt=Mt.options)!==null&&Mt!==void 0&&Mt.length),_t=[(Nt={},(0,Be.Z)(Nt,Sa.value,"__EMPTY__"),(0,Be.Z)(Nt,Lt,Or),(0,Be.Z)(Nt,"disabled",!0),Nt)],$t=(0,_e.Z)((0,_e.Z)({},Ct),{},{multiple:!Cn&&vn,onSelect:So,onActive:Bi,onToggleOpen:Pr,checkedSet:Ei,halfCheckedSet:Qi,loadingKeys:oi,isSelectable:Fi}),Ut=Cn?[{options:_t}]:jt,an=Ut.map(function(qt,An){var fr=Pi.slice(0,An),cr=Pi[An];return ve.createElement(pn,(0,He.Z)({key:An},$t,{prefixCls:ii,options:qt.options,prevValuePath:fr,activeValue:cr}))});return ve.createElement(en,{open:ma},ve.createElement("div",{className:Te()("".concat(ii,"-menus"),(sr={},(0,Be.Z)(sr,"".concat(ii,"-menu-empty"),Cn),(0,Be.Z)(sr,"".concat(ii,"-rtl"),Ya),sr)),ref:za},an))}),se=ye,ot=ve.forwardRef(function(Ct,rn){var Mt=(0,Fe.lk)();return ve.createElement(se,(0,He.Z)({},Ct,Mt,{ref:rn}))}),Xt=ot,zt=ne(70425);function on(){}function Kt(Ct){var rn,Mt=Ct,Nt=Mt.prefixCls,sr=Nt===void 0?"rc-cascader":Nt,Hn=Mt.style,vn=Mt.className,Fr=Mt.options,Pr=Mt.checkable,Or=Mt.defaultValue,Ha=Mt.value,ma=Mt.fieldNames,Qr=Mt.changeOnSelect,za=Mt.onChange,Ya=Mt.showCheckedStrategy,jr=Mt.loadData,Wa=Mt.expandTrigger,Li=Mt.expandIcon,ui=Li===void 0?">":Li,Sa=Mt.loadingIcon,ia=Mt.direction,$i=Mt.notFoundContent,ci=$i===void 0?"Not Found":$i,ja=Mt.disabled,ai=!!Pr,wi=(0,zt.C8)(Or,{value:Ha,postState:Dt}),ii=(0,ze.Z)(wi,2),Da=ii[0],Di=ii[1],oi=ve.useMemo(function(){return ut(ma)},[JSON.stringify(ma)]),xo=bt(oi,Fr),Bo=(0,ze.Z)(xo,3),Ei=Bo[0],Qi=Bo[1],ga=Bo[2],Ri=Re(Ei,oi),Pi=Zt(ai,Da,Qi,ga,Ri),Fo=(0,ze.Z)(Pi,3),Bi=Fo[0],Fi=Fo[1],So=Fo[2],De=(0,zt.zX)(function(Ut){if(Di(Ut),za){var an=Dt(Ut),qt=an.map(function(cr){return Qe(cr,Ei,oi).map(function($n){return $n.option})}),An=ai?an:an[0],fr=ai?qt:qt[0];za(An,fr)}}),jt=mt(ai,De,Bi,Fi,So,Qi,ga,Ya),hn=(0,zt.zX)(function(Ut){jt(Ut)}),Cn=ve.useMemo(function(){return{options:Ei,fieldNames:oi,values:Bi,halfValues:Fi,changeOnSelect:Qr,onSelect:hn,checkable:Pr,searchOptions:[],dropdownPrefixCls:void 0,loadData:jr,expandTrigger:Wa,expandIcon:ui,loadingIcon:Sa,dropdownMenuColumnStyle:void 0}},[Ei,oi,Bi,Fi,Qr,hn,Pr,jr,Wa,ui,Sa]),_t="".concat(sr,"-panel"),$t=!Ei.length;return ve.createElement(Ye.Provider,{value:Cn},ve.createElement("div",{className:Te()(_t,(rn={},(0,Be.Z)(rn,"".concat(_t,"-rtl"),ia==="rtl"),(0,Be.Z)(rn,"".concat(_t,"-empty"),$t),rn),vn),style:Hn},$t?ci:ve.createElement(se,{prefixCls:sr,searchValue:"",multiple:ai,toggleOpen:on,open:!0,direction:ia,disabled:ja})))}function Yn(Ct){var rn=Ct.onPopupVisibleChange,Mt=Ct.popupVisible,Nt=Ct.popupClassName,sr=Ct.popupPlacement;warning(!rn,"`onPopupVisibleChange` is deprecated. Please use `onDropdownVisibleChange` instead."),warning(Mt===void 0,"`popupVisible` is deprecated. Please use `open` instead."),warning(Nt===void 0,"`popupClassName` is deprecated. Please use `dropdownClassName` instead."),warning(sr===void 0,"`popupPlacement` is deprecated. Please use `placement` instead.")}function Fn(Ct,rn){if(Ct){var Mt=function Nt(sr){for(var Hn=0;Hn<sr.length;Hn++){var vn=sr[Hn];if(vn[rn==null?void 0:rn.value]===null)return warning(!1,"`value` in Cascader options should not be `null`."),!0;if(Array.isArray(vn[rn==null?void 0:rn.children])&&Nt(vn[rn==null?void 0:rn.children]))return!0}};Mt(Ct)}}var or=null,ra=["id","prefixCls","fieldNames","defaultValue","value","changeOnSelect","onChange","displayRender","checkable","autoClearSearchValue","searchValue","onSearch","showSearch","expandTrigger","options","dropdownPrefixCls","loadData","popupVisible","open","popupClassName","dropdownClassName","dropdownMenuColumnStyle","dropdownStyle","popupPlacement","placement","onDropdownVisibleChange","onPopupVisibleChange","expandIcon","loadingIcon","children","dropdownMatchSelectWidth","showCheckedStrategy","optionRender"],ur=ve.forwardRef(function(Ct,rn){var Mt=Ct.id,Nt=Ct.prefixCls,sr=Nt===void 0?"rc-cascader":Nt,Hn=Ct.fieldNames,vn=Ct.defaultValue,Fr=Ct.value,Pr=Ct.changeOnSelect,Or=Ct.onChange,Ha=Ct.displayRender,ma=Ct.checkable,Qr=Ct.autoClearSearchValue,za=Qr===void 0?!0:Qr,Ya=Ct.searchValue,jr=Ct.onSearch,Wa=Ct.showSearch,Li=Ct.expandTrigger,ui=Ct.options,Sa=Ct.dropdownPrefixCls,ia=Ct.loadData,$i=Ct.popupVisible,ci=Ct.open,ja=Ct.popupClassName,ai=Ct.dropdownClassName,wi=Ct.dropdownMenuColumnStyle,ii=Ct.dropdownStyle,Da=Ct.popupPlacement,Di=Ct.placement,oi=Ct.onDropdownVisibleChange,xo=Ct.onPopupVisibleChange,Bo=Ct.expandIcon,Ei=Bo===void 0?">":Bo,Qi=Ct.loadingIcon,ga=Ct.children,Ri=Ct.dropdownMatchSelectWidth,Pi=Ri===void 0?!1:Ri,Fo=Ct.showCheckedStrategy,Bi=Fo===void 0?st:Fo,Fi=Ct.optionRender,So=(0,nt.Z)(Ct,ra),De=(0,We.ZP)(Mt),jt=!!ma,hn=(0,$e.Z)(vn,{value:Fr,postState:Dt}),Cn=(0,ze.Z)(hn,2),_t=Cn[0],$t=Cn[1],Ut=ve.useMemo(function(){return ut(Hn)},[JSON.stringify(Hn)]),an=bt(Ut,ui),qt=(0,ze.Z)(an,3),An=qt[0],fr=qt[1],cr=qt[2],$n=(0,$e.Z)("",{value:Ya,postState:function(Ai){return Ai||""}}),Pa=(0,ze.Z)($n,2),ta=Pa[0],Ba=Pa[1],bi=function(Ai,mo){Ba(Ai),mo.source!=="blur"&&jr&&jr(Ai)},Hi=Le(Wa),uo=(0,ze.Z)(Hi,2),pl=uo[0],ol=uo[1],ll=fe(ta,An,Ut,Sa||sr,ol,Pr||jt),nl=Re(An,Ut),Do=Zt(jt,_t,fr,cr,nl),co=(0,ze.Z)(Do,3),jl=co[0],yl=co[1],Ul=co[2],ql=ve.useMemo(function(){var Gr=ct(jl),Ai=lt(Gr,fr,Bi);return[].concat((0,E.Z)(Ul),(0,E.Z)(cr(Ai)))},[jl,fr,cr,Ul,Bi]),kl=xt(ql,An,Ut,jt,Ha),hl=(0,Xe.Z)(function(Gr){if($t(Gr),Or){var Ai=Dt(Gr),mo=Ai.map(function(Ci){return Qe(Ci,An,Ut).map(function(To){return To.option})}),Bl=jt?Ai:Ai[0],Mo=jt?mo:mo[0];Or(Bl,Mo)}}),Go=mt(jt,hl,jl,yl,Ul,fr,cr,Bi),ts=(0,Xe.Z)(function(Gr){(!jt||za)&&Ba(""),Go(Gr)}),Ts=function(Ai,mo){if(mo.type==="clear"){hl([]);return}var Bl=mo.values[0],Mo=Bl.valueCells;ts(Mo)},ns=ci!==void 0?ci:$i,vs=ai||ja,Us=Di||Da,Ls=function(Ai){oi==null||oi(Ai),xo==null||xo(Ai)},Rs=ve.useMemo(function(){return{options:An,fieldNames:Ut,values:jl,halfValues:yl,changeOnSelect:Pr,onSelect:ts,checkable:ma,searchOptions:ll,dropdownPrefixCls:Sa,loadData:ia,expandTrigger:Li,expandIcon:Ei,loadingIcon:Qi,dropdownMenuColumnStyle:wi,optionRender:Fi}},[An,Ut,jl,yl,Pr,ts,ma,ll,Sa,ia,Li,Ei,Qi,wi,Fi]),Zs=!(ta?ll:An).length,Ao=ta&&ol.matchInputWidth||Zs?{}:{minWidth:"auto"};return ve.createElement(Ye.Provider,{value:Rs},ve.createElement(Fe.Ac,(0,He.Z)({},So,{ref:rn,id:De,prefixCls:sr,autoClearSearchValue:za,dropdownMatchSelectWidth:Pi,dropdownStyle:(0,_e.Z)((0,_e.Z)({},Ao),ii),displayValues:kl,onDisplayValuesChange:Ts,mode:jt?"multiple":void 0,searchValue:ta,onSearch:bi,showSearch:pl,OptionList:Xt,emptyOptions:Zs,open:ns,dropdownClassName:vs,placement:Us,onDropdownVisibleChange:Ls,getRawInputElement:function(){return ga}})))});ur.SHOW_PARENT=st,ur.SHOW_CHILD=wt,ur.Panel=Kt;var rr=ur,Xr=rr,Vr=ne(2738),xr=ne(75030),Dn=ne(86641),pa=ne(45915),Jn=ne(82855),Vn=ne(48755),ha=ne(38406),Ti=ne(2171),Ni=ne(83397),Ir=ne(31756),Sn=ne(56553),ir=ne(24971),Fa=ne(1722),$a=ne(90376),Jr=ne(68525),na=ne(90005),Qa=ne(70045);function Kr(Ct,rn){const{getPrefixCls:Mt,direction:Nt,renderEmpty:sr}=ve.useContext(Vn.E_),Hn=rn||Nt,vn=Mt("select",Ct),Fr=Mt("cascader",Ct);return[vn,Fr,Hn,sr]}var qa=Kr;function aa(Ct,rn){return ve.useMemo(()=>rn?ve.createElement("span",{className:`${Ct}-checkbox-inner`}):!1,[rn])}var Wn=ne(33853),Rn=ne(58617),cn=ne(38819),wn=(Ct,rn,Mt)=>{let Nt=Mt;Mt||(Nt=rn?ve.createElement(Wn.Z,null):ve.createElement(cn.Z,null));const sr=ve.createElement("span",{className:`${Ct}-menu-item-loading-icon`},ve.createElement(Rn.Z,{spin:!0}));return ve.useMemo(()=>[Nt,sr],[Nt])},nn=ne(56119),Kn=ne(16931),Jt=ne(36237),On=ne(36170),hr=ne(63356),Ar=Ct=>{const{prefixCls:rn,componentCls:Mt}=Ct,Nt=`${Mt}-menu-item`,sr=`
&${Nt}-expand ${Nt}-expand-icon,
${Nt}-loading-icon
`;return[(0,On.C2)(`${rn}-checkbox`,Ct),{[Mt]:{"&-checkbox":{top:0,marginInlineEnd:Ct.paddingXS,pointerEvents:"unset"},"&-menus":{display:"flex",flexWrap:"nowrap",alignItems:"flex-start",[`&${Mt}-menu-empty`]:{[`${Mt}-menu`]:{width:"100%",height:"auto",[Nt]:{color:Ct.colorTextDisabled}}}},"&-menu":{flexGrow:1,flexShrink:0,minWidth:Ct.controlItemWidth,height:Ct.dropdownHeight,margin:0,padding:Ct.menuPadding,overflow:"auto",verticalAlign:"top",listStyle:"none","-ms-overflow-style":"-ms-autohiding-scrollbar","&:not(:last-child)":{borderInlineEnd:`${(0,Jt.unit)(Ct.lineWidth)} ${Ct.lineType} ${Ct.colorSplit}`},"&-item":Object.assign(Object.assign({},hr.vS),{display:"flex",flexWrap:"nowrap",alignItems:"center",padding:Ct.optionPadding,lineHeight:Ct.lineHeight,cursor:"pointer",transition:`all ${Ct.motionDurationMid}`,borderRadius:Ct.borderRadiusSM,"&:hover":{background:Ct.controlItemBgHover},"&-disabled":{color:Ct.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"},[sr]:{color:Ct.colorTextDisabled}},[`&-active:not(${Nt}-disabled)`]:{"&, &:hover":{color:Ct.optionSelectedColor,fontWeight:Ct.optionSelectedFontWeight,backgroundColor:Ct.optionSelectedBg}},"&-content":{flex:"auto"},[sr]:{marginInlineStart:Ct.paddingXXS,color:Ct.colorTextDescription,fontSize:Ct.fontSizeIcon},"&-keyword":{color:Ct.colorHighlight}})}}}]};const la=Ct=>{const{componentCls:rn,antCls:Mt}=Ct;return[{[rn]:{width:Ct.controlWidth}},{[`${rn}-dropdown`]:[{[`&${Mt}-select-dropdown`]:{padding:0}},Ar(Ct)]},{[`${rn}-dropdown-rtl`]:{direction:"rtl"}},(0,nn.c)(Ct)]},Er=Ct=>{const rn=Math.round((Ct.controlHeight-Ct.fontSize*Ct.lineHeight)/2);return{controlWidth:184,controlItemWidth:111,dropdownHeight:180,optionSelectedBg:Ct.controlItemBgActive,optionSelectedFontWeight:Ct.fontWeightStrong,optionPadding:`${rn}px ${Ct.paddingSM}px`,menuPadding:Ct.paddingXXS,optionSelectedColor:Ct.colorText}};var Qt=(0,Kn.I$)("Cascader",Ct=>[la(Ct)],Er);const _n=Ct=>{const{componentCls:rn}=Ct;return{[`${rn}-panel`]:[Ar(Ct),{display:"inline-flex",border:`${(0,Jt.unit)(Ct.lineWidth)} ${Ct.lineType} ${Ct.colorSplit}`,borderRadius:Ct.borderRadiusLG,overflowX:"auto",maxWidth:"100%",[`${rn}-menus`]:{alignItems:"stretch"},[`${rn}-menu`]:{height:"auto"},"&-empty":{padding:Ct.paddingXXS}}]}};var br=(0,Kn.A1)(["Cascader","Panel"],Ct=>_n(Ct),Er);function Nr(Ct){const{prefixCls:rn,className:Mt,multiple:Nt,rootClassName:sr,notFoundContent:Hn,direction:vn,expandIcon:Fr,disabled:Pr}=Ct,Or=ve.useContext(Ti.Z),Ha=Pr!=null?Pr:Or,[ma,Qr,za,Ya]=qa(rn,vn),jr=(0,Ni.Z)(Qr),[Wa,Li,ui]=Qt(Qr,jr);br(Qr);const Sa=za==="rtl",[ia,$i]=wn(ma,Sa,Fr),ci=Hn||(Ya==null?void 0:Ya("Cascader"))||ve.createElement(ha.Z,{componentName:"Cascader"}),ja=aa(Qr,Nt);return Wa(ve.createElement(Kt,Object.assign({},Ct,{checkable:ja,prefixCls:Qr,className:Te()(Mt,Li,sr,ui,jr),notFoundContent:ci,direction:za,expandIcon:ia,loadingIcon:$i,disabled:Ha})))}var qr=Nr,Xa=function(Ct,rn){var Mt={};for(var Nt in Ct)Object.prototype.hasOwnProperty.call(Ct,Nt)&&rn.indexOf(Nt)<0&&(Mt[Nt]=Ct[Nt]);if(Ct!=null&&typeof Object.getOwnPropertySymbols=="function")for(var sr=0,Nt=Object.getOwnPropertySymbols(Ct);sr<Nt.length;sr++)rn.indexOf(Nt[sr])<0&&Object.prototype.propertyIsEnumerable.call(Ct,Nt[sr])&&(Mt[Nt[sr]]=Ct[Nt[sr]]);return Mt};const{SHOW_CHILD:si,SHOW_PARENT:so}=Xr;function Mn(Ct,rn,Mt){const Nt=Ct.toLowerCase().split(rn).reduce((vn,Fr,Pr)=>Pr===0?[Fr]:[].concat((0,E.Z)(vn),[rn,Fr]),[]),sr=[];let Hn=0;return Nt.forEach((vn,Fr)=>{const Pr=Hn+vn.length;let Or=Ct.slice(Hn,Pr);Hn=Pr,Fr%2===1&&(Or=ve.createElement("span",{className:`${Mt}-menu-item-keyword`,key:`separator-${Fr}`},Or)),sr.push(Or)}),sr}const Rr=(Ct,rn,Mt,Nt)=>{const sr=[],Hn=Ct.toLowerCase();return rn.forEach((vn,Fr)=>{Fr!==0&&sr.push(" / ");let Pr=vn[Nt.label];const Or=typeof Pr;(Or==="string"||Or==="number")&&(Pr=Mn(String(Pr),Hn,Mt)),sr.push(Pr)}),sr},jn=ve.forwardRef((Ct,rn)=>{var Mt;const{prefixCls:Nt,size:sr,disabled:Hn,className:vn,rootClassName:Fr,multiple:Pr,bordered:Or=!0,transitionName:Ha,choiceTransitionName:ma="",popupClassName:Qr,dropdownClassName:za,expandIcon:Ya,placement:jr,showSearch:Wa,allowClear:Li=!0,notFoundContent:ui,direction:Sa,getPopupContainer:ia,status:$i,showArrow:ci,builtinPlacements:ja,style:ai,variant:wi}=Ct,ii=Xa(Ct,["prefixCls","size","disabled","className","rootClassName","multiple","bordered","transitionName","choiceTransitionName","popupClassName","dropdownClassName","expandIcon","placement","showSearch","allowClear","notFoundContent","direction","getPopupContainer","status","showArrow","builtinPlacements","style","variant"]),Da=(0,Vr.Z)(ii,["suffixIcon"]),{getPrefixCls:Di,getPopupContainer:oi,className:xo,style:Bo}=(0,Vn.dj)("cascader"),{popupOverflow:Ei}=ve.useContext(Vn.E_),{status:Qi,hasFeedback:ga,isFormItemInput:Ri,feedbackIcon:Pi}=ve.useContext(Sn.aM),Fo=(0,Jn.F)(Qi,$i),[Bi,Fi,So,De]=qa(Nt,Sa),jt=So==="rtl",hn=Di(),Cn=(0,Ni.Z)(Bi),[_t,$t,Ut]=(0,$a.Z)(Bi,Cn),an=(0,Ni.Z)(Fi),[qt]=Qt(Fi,an),{compactSize:An,compactItemClassnames:fr}=(0,Qa.ri)(Bi,Sa),[cr,$n]=(0,ir.Z)("cascader",wi,Or),Pa=ui||(De==null?void 0:De("Cascader"))||ve.createElement(ha.Z,{componentName:"Cascader"}),ta=Te()(Qr||za,`${Fi}-dropdown`,{[`${Fi}-dropdown-rtl`]:So==="rtl"},Fr,Cn,an,$t,Ut),Ba=ve.useMemo(()=>{if(!Wa)return Wa;let hl={render:Rr};return typeof Wa=="object"&&(hl=Object.assign(Object.assign({},hl),Wa)),hl},[Wa]),bi=(0,Ir.Z)(hl=>{var Go;return(Go=sr!=null?sr:An)!==null&&Go!==void 0?Go:hl}),Hi=ve.useContext(Ti.Z),uo=Hn!=null?Hn:Hi,[pl,ol]=wn(Bi,jt,Ya),ll=aa(Fi,Pr),nl=(0,na.Z)(Ct.suffixIcon,ci),{suffixIcon:Do,removeIcon:co,clearIcon:jl}=(0,Jr.Z)(Object.assign(Object.assign({},Ct),{hasFeedback:ga,feedbackIcon:Pi,showSuffixIcon:nl,multiple:Pr,prefixCls:Bi,componentName:"Cascader"})),yl=ve.useMemo(()=>jr!==void 0?jr:jt?"bottomRight":"bottomLeft",[jr,jt]),Ul=Li===!0?{clearIcon:jl}:Li,[ql]=(0,xr.Cn)("SelectLike",(Mt=Da.dropdownStyle)===null||Mt===void 0?void 0:Mt.zIndex),kl=ve.createElement(Xr,Object.assign({prefixCls:Bi,className:Te()(!Nt&&Fi,{[`${Bi}-lg`]:bi==="large",[`${Bi}-sm`]:bi==="small",[`${Bi}-rtl`]:jt,[`${Bi}-${cr}`]:$n,[`${Bi}-in-form-item`]:Ri},(0,Jn.Z)(Bi,Fo,ga),fr,xo,vn,Fr,Cn,an,$t,Ut),disabled:uo,style:Object.assign(Object.assign({},Bo),ai)},Da,{builtinPlacements:(0,Fa.Z)(ja,Ei),direction:So,placement:yl,notFoundContent:Pa,allowClear:Ul,showSearch:Ba,expandIcon:pl,suffixIcon:Do,removeIcon:co,loadingIcon:ol,checkable:ll,dropdownClassName:ta,dropdownPrefixCls:Nt||Fi,dropdownStyle:Object.assign(Object.assign({},Da.dropdownStyle),{zIndex:ql}),choiceTransitionName:(0,Dn.m)(hn,"",ma),transitionName:(0,Dn.m)(hn,"slide-up",Ha),getPopupContainer:ia||oi,ref:rn}));return qt(_t(kl))}),tl=(0,pa.Z)(jn,"dropdownAlign",Ct=>(0,Vr.Z)(Ct,["visible"]));jn.SHOW_PARENT=so,jn.SHOW_CHILD=si,jn.Panel=qr,jn._InternalPanelDoNotUseOrYouWillBeFired=tl;var Zo=jn},24017:function(It,kt,ne){"use strict";ne.d(kt,{default:function(){return Mu}});var E=ne(66649),ve=ne.n(E),Pe=ne(9007),Te=ne.n(Pe),He=ne(50991),_e=ne.n(He),ze=ne(9084),nt=ne.n(ze),Fe=ne(58626),We=ne.n(Fe),Xe=ne(13477),$e=ne.n(Xe),vt=ne(64796),Ye=ne.n(vt);ve().extend(Ye()),ve().extend($e()),ve().extend(Te()),ve().extend(_e()),ve().extend(nt()),ve().extend(We()),ve().extend(function(re,ge){var Me=ge.prototype,et=Me.format;Me.format=function(Ft){var Tt=(Ft||"").replace("Wo","wo");return et.bind(this)(Tt)}});var Ne={bn_BD:"bn-bd",by_BY:"be",en_GB:"en-gb",en_US:"en",fr_BE:"fr",fr_CA:"fr-ca",hy_AM:"hy-am",kmr_IQ:"ku",nl_BE:"nl-be",pt_BR:"pt-br",zh_CN:"zh-cn",zh_HK:"zh-hk",zh_TW:"zh-tw"},Be=function(ge){var Me=Ne[ge];return Me||ge.split("_")[0]},be=function(){},Ie={getNow:function(){var ge=ve()();return typeof ge.tz=="function"?ge.tz():ge},getFixedDate:function(ge){return ve()(ge,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function(ge){return ge.endOf("month")},getWeekDay:function(ge){var Me=ge.locale("en");return Me.weekday()+Me.localeData().firstDayOfWeek()},getYear:function(ge){return ge.year()},getMonth:function(ge){return ge.month()},getDate:function(ge){return ge.date()},getHour:function(ge){return ge.hour()},getMinute:function(ge){return ge.minute()},getSecond:function(ge){return ge.second()},getMillisecond:function(ge){return ge.millisecond()},addYear:function(ge,Me){return ge.add(Me,"year")},addMonth:function(ge,Me){return ge.add(Me,"month")},addDate:function(ge,Me){return ge.add(Me,"day")},setYear:function(ge,Me){return ge.year(Me)},setMonth:function(ge,Me){return ge.month(Me)},setDate:function(ge,Me){return ge.date(Me)},setHour:function(ge,Me){return ge.hour(Me)},setMinute:function(ge,Me){return ge.minute(Me)},setSecond:function(ge,Me){return ge.second(Me)},setMillisecond:function(ge,Me){return ge.millisecond(Me)},isAfter:function(ge,Me){return ge.isAfter(Me)},isValidate:function(ge){return ge.isValid()},locale:{getWeekFirstDay:function(ge){return ve()().locale(Be(ge)).localeData().firstDayOfWeek()},getWeekFirstDate:function(ge,Me){return Me.locale(Be(ge)).weekday(0)},getWeek:function(ge,Me){return Me.locale(Be(ge)).week()},getShortWeekDays:function(ge){return ve()().locale(Be(ge)).localeData().weekdaysMin()},getShortMonths:function(ge){return ve()().locale(Be(ge)).localeData().monthsShort()},format:function(ge,Me,et){return Me.locale(Be(ge)).format(et)},parse:function(ge,Me,et){for(var rt=Be(ge),Ft=0;Ft<et.length;Ft+=1){var Tt=et[Ft],Ht=Me;if(Tt.includes("wo")||Tt.includes("Wo")){for(var mn=Ht.split("-")[0],xn=Ht.split("-")[1],Gt=ve()(mn,"YYYY").startOf("year").locale(rt),Pn=0;Pn<=52;Pn+=1){var Rt=Gt.add(Pn,"week");if(Rt.format("Wo")===xn)return Rt}return be(),null}var Tn=ve()(Ht,Tt,!0).locale(rt);if(Tn.isValid())return Tn}return Me&&be(),null}}},Ke=Ie,at=ne(45915),fe=ne(59301),qe=ne(60499),st={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z"}}]},name:"calendar",theme:"outlined"},wt=st,ft=ne(7657),ct=function(ge,Me){return fe.createElement(ft.Z,(0,qe.Z)({},ge,{ref:Me,icon:wt}))},Je=fe.forwardRef(ct),ut=Je,Se={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"}}]},name:"clock-circle",theme:"outlined"},Ve=Se,Ae=function(ge,Me){return fe.createElement(ft.Z,(0,qe.Z)({},ge,{ref:Me,icon:Ve}))},tt=fe.forwardRef(Ae),Dt=tt,lt={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M873.1 596.2l-164-208A32 32 0 00684 376h-64.8c-6.7 0-10.4 7.7-6.3 13l144.3 183H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h695.9c26.8 0 41.7-30.8 25.2-51.8z"}}]},name:"swap-right",theme:"outlined"},Qe=lt,xt=function(ge,Me){return fe.createElement(ft.Z,(0,qe.Z)({},ge,{ref:Me,icon:Qe}))},Re=fe.forwardRef(xt),me=Re,pt=ne(92310),bt=ne.n(pt),it=ne(77654),Le=ne(85899),Ue=ne(72190),mt=ne(70425),Zt=ne(34280),Pt=ne(2738),en=ne(26112),dt=ne(48736),Lt=ne(18642),pn=ne(68196);function he(re,ge){return re!==void 0?re:ge?"bottomRight":"bottomLeft"}var le=fe.createContext(null),ae=le,pe={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};function ye(re){var ge=re.popupElement,Me=re.popupStyle,et=re.popupClassName,rt=re.popupAlign,Ft=re.transitionName,Tt=re.getPopupContainer,Ht=re.children,mn=re.range,xn=re.placement,Gt=re.builtinPlacements,Pn=Gt===void 0?pe:Gt,Rt=re.direction,Tn=re.visible,In=re.onClose,zn=fe.useContext(ae),Gn=zn.prefixCls,Un="".concat(Gn,"-dropdown"),_r=he(xn,Rt==="rtl");return fe.createElement(pn.Z,{showAction:[],hideAction:["click"],popupPlacement:_r,builtinPlacements:Pn,prefixCls:Un,popupTransitionName:Ft,popup:ge,popupAlign:rt,popupVisible:Tn,popupClassName:bt()(et,(0,Lt.Z)((0,Lt.Z)({},"".concat(Un,"-range"),mn),"".concat(Un,"-rtl"),Rt==="rtl")),popupStyle:Me,stretch:"minWidth",getPopupContainer:Tt,onPopupVisibleChange:function(Bn){Bn||In()}},Ht)}var se=ye;function ot(re,ge){for(var Me=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0",et=String(re);et.length<ge;)et="".concat(Me).concat(et);return et}function Xt(re){return re==null?[]:Array.isArray(re)?re:[re]}function zt(re,ge,Me){var et=(0,it.Z)(re);return et[ge]=Me,et}function on(re,ge){var Me={},et=ge||Object.keys(re);return et.forEach(function(rt){re[rt]!==void 0&&(Me[rt]=re[rt])}),Me}function Kt(re,ge,Me){if(Me)return Me;switch(re){case"time":return ge.fieldTimeFormat;case"datetime":return ge.fieldDateTimeFormat;case"month":return ge.fieldMonthFormat;case"year":return ge.fieldYearFormat;case"quarter":return ge.fieldQuarterFormat;case"week":return ge.fieldWeekFormat;default:return ge.fieldDateFormat}}function Yn(re,ge,Me){var et=Me!==void 0?Me:ge[ge.length-1],rt=ge.find(function(Ft){return re[Ft]});return et!==rt?re[rt]:void 0}function Fn(re){return on(re,["placement","builtinPlacements","popupAlign","getPopupContainer","transitionName","direction"])}function or(re,ge,Me,et){var rt=fe.useMemo(function(){return re||function(Tt,Ht){var mn=Tt;return ge&&Ht.type==="date"?ge(mn,Ht.today):Me&&Ht.type==="month"?Me(mn,Ht.locale):Ht.originNode}},[re,Me,ge]),Ft=fe.useCallback(function(Tt,Ht){return rt(Tt,(0,Le.Z)((0,Le.Z)({},Ht),{},{range:et}))},[rt,et]);return Ft}function ra(re,ge){var Me=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],et=fe.useState([!1,!1]),rt=(0,Ue.Z)(et,2),Ft=rt[0],Tt=rt[1],Ht=function(Gt,Pn){Tt(function(Rt){return zt(Rt,Pn,Gt)})},mn=fe.useMemo(function(){return Ft.map(function(xn,Gt){if(xn)return!0;var Pn=re[Gt];return Pn?!!(!Me[Gt]&&!Pn||Pn&&ge(Pn,{activeIndex:Gt})):!1})},[re,Ft,ge,Me]);return[mn,Ht]}function ur(re,ge,Me,et,rt){var Ft="",Tt=[];return re&&Tt.push(rt?"hh":"HH"),ge&&Tt.push("mm"),Me&&Tt.push("ss"),Ft=Tt.join(":"),et&&(Ft+=".SSS"),rt&&(Ft+=" A"),Ft}function rr(re,ge,Me,et,rt,Ft){var Tt=re.fieldDateTimeFormat,Ht=re.fieldDateFormat,mn=re.fieldTimeFormat,xn=re.fieldMonthFormat,Gt=re.fieldYearFormat,Pn=re.fieldWeekFormat,Rt=re.fieldQuarterFormat,Tn=re.yearFormat,In=re.cellYearFormat,zn=re.cellQuarterFormat,Gn=re.dayFormat,Un=re.cellDateFormat,_r=ur(ge,Me,et,rt,Ft);return(0,Le.Z)((0,Le.Z)({},re),{},{fieldDateTimeFormat:Tt||"YYYY-MM-DD ".concat(_r),fieldDateFormat:Ht||"YYYY-MM-DD",fieldTimeFormat:mn||_r,fieldMonthFormat:xn||"YYYY-MM",fieldYearFormat:Gt||"YYYY",fieldWeekFormat:Pn||"gggg-wo",fieldQuarterFormat:Rt||"YYYY-[Q]Q",yearFormat:Tn||"YYYY",cellYearFormat:In||"YYYY",cellQuarterFormat:zn||"[Q]Q",cellDateFormat:Un||Gn||"D"})}function Xr(re,ge){var Me=ge.showHour,et=ge.showMinute,rt=ge.showSecond,Ft=ge.showMillisecond,Tt=ge.use12Hours;return fe.useMemo(function(){return rr(re,Me,et,rt,Ft,Tt)},[re,Me,et,rt,Ft,Tt])}var Vr=ne(43749);function xr(re,ge,Me){return Me!=null?Me:ge.some(function(et){return re.includes(et)})}var Dn=["showNow","showHour","showMinute","showSecond","showMillisecond","use12Hours","hourStep","minuteStep","secondStep","millisecondStep","hideDisabledOptions","defaultValue","disabledHours","disabledMinutes","disabledSeconds","disabledMilliseconds","disabledTime","changeOnScroll","defaultOpenValue"];function pa(re){var ge=on(re,Dn),Me=re.format,et=re.picker,rt=null;return Me&&(rt=Me,Array.isArray(rt)&&(rt=rt[0]),rt=(0,Vr.Z)(rt)==="object"?rt.format:rt),et==="time"&&(ge.format=rt),[ge,rt]}function Jn(re){return re&&typeof re=="string"}function Vn(re,ge,Me,et){return[re,ge,Me,et].some(function(rt){return rt!==void 0})}function ha(re,ge,Me,et,rt){var Ft=ge,Tt=Me,Ht=et;if(!re&&!Ft&&!Tt&&!Ht&&!rt)Ft=!0,Tt=!0,Ht=!0;else if(re){var mn,xn,Gt,Pn=[Ft,Tt,Ht].some(function(In){return In===!1}),Rt=[Ft,Tt,Ht].some(function(In){return In===!0}),Tn=Pn?!0:!Rt;Ft=(mn=Ft)!==null&&mn!==void 0?mn:Tn,Tt=(xn=Tt)!==null&&xn!==void 0?xn:Tn,Ht=(Gt=Ht)!==null&&Gt!==void 0?Gt:Tn}return[Ft,Tt,Ht,rt]}function Ti(re){var ge=re.showTime,Me=pa(re),et=(0,Ue.Z)(Me,2),rt=et[0],Ft=et[1],Tt=ge&&(0,Vr.Z)(ge)==="object"?ge:{},Ht=(0,Le.Z)((0,Le.Z)({defaultOpenValue:Tt.defaultOpenValue||Tt.defaultValue},rt),Tt),mn=Ht.showMillisecond,xn=Ht.showHour,Gt=Ht.showMinute,Pn=Ht.showSecond,Rt=Vn(xn,Gt,Pn,mn),Tn=ha(Rt,xn,Gt,Pn,mn),In=(0,Ue.Z)(Tn,3);return xn=In[0],Gt=In[1],Pn=In[2],[Ht,(0,Le.Z)((0,Le.Z)({},Ht),{},{showHour:xn,showMinute:Gt,showSecond:Pn,showMillisecond:mn}),Ht.format,Ft]}function Ni(re,ge,Me,et,rt){var Ft=re==="time";if(re==="datetime"||Ft){for(var Tt=et,Ht=Kt(re,rt,null),mn=Ht,xn=[ge,Me],Gt=0;Gt<xn.length;Gt+=1){var Pn=Xt(xn[Gt])[0];if(Jn(Pn)){mn=Pn;break}}var Rt=Tt.showHour,Tn=Tt.showMinute,In=Tt.showSecond,zn=Tt.showMillisecond,Gn=Tt.use12Hours,Un=xr(mn,["a","A","LT","LLL","LTS"],Gn),_r=Vn(Rt,Tn,In,zn);_r||(Rt=xr(mn,["H","h","k","LT","LLL"]),Tn=xr(mn,["m","LT","LLL"]),In=xr(mn,["s","LTS"]),zn=xr(mn,["SSS"]));var pr=ha(_r,Rt,Tn,In,zn),Bn=(0,Ue.Z)(pr,3);Rt=Bn[0],Tn=Bn[1],In=Bn[2];var Sr=ge||ur(Rt,Tn,In,zn,Un);return(0,Le.Z)((0,Le.Z)({},Tt),{},{format:Sr,showHour:Rt,showMinute:Tn,showSecond:In,showMillisecond:zn,use12Hours:Un})}return null}function Ir(re,ge,Me){if(ge===!1)return null;var et=ge&&(0,Vr.Z)(ge)==="object"?ge:{};return et.clearIcon||Me||fe.createElement("span",{className:"".concat(re,"-clear-btn")})}var Sn=7;function ir(re,ge,Me){return!re&&!ge||re===ge?!0:!re||!ge?!1:Me()}function Fa(re,ge,Me){return ir(ge,Me,function(){var et=Math.floor(re.getYear(ge)/10),rt=Math.floor(re.getYear(Me)/10);return et===rt})}function $a(re,ge,Me){return ir(ge,Me,function(){return re.getYear(ge)===re.getYear(Me)})}function Jr(re,ge){var Me=Math.floor(re.getMonth(ge)/3);return Me+1}function na(re,ge,Me){return ir(ge,Me,function(){return $a(re,ge,Me)&&Jr(re,ge)===Jr(re,Me)})}function Qa(re,ge,Me){return ir(ge,Me,function(){return $a(re,ge,Me)&&re.getMonth(ge)===re.getMonth(Me)})}function Kr(re,ge,Me){return ir(ge,Me,function(){return $a(re,ge,Me)&&Qa(re,ge,Me)&&re.getDate(ge)===re.getDate(Me)})}function qa(re,ge,Me){return ir(ge,Me,function(){return re.getHour(ge)===re.getHour(Me)&&re.getMinute(ge)===re.getMinute(Me)&&re.getSecond(ge)===re.getSecond(Me)})}function aa(re,ge,Me){return ir(ge,Me,function(){return Kr(re,ge,Me)&&qa(re,ge,Me)&&re.getMillisecond(ge)===re.getMillisecond(Me)})}function Wn(re,ge,Me,et){return ir(Me,et,function(){var rt=re.locale.getWeekFirstDate(ge,Me),Ft=re.locale.getWeekFirstDate(ge,et);return $a(re,rt,Ft)&&re.locale.getWeek(ge,Me)===re.locale.getWeek(ge,et)})}function Rn(re,ge,Me,et,rt){switch(rt){case"date":return Kr(re,Me,et);case"week":return Wn(re,ge.locale,Me,et);case"month":return Qa(re,Me,et);case"quarter":return na(re,Me,et);case"year":return $a(re,Me,et);case"decade":return Fa(re,Me,et);case"time":return qa(re,Me,et);default:return aa(re,Me,et)}}function cn(re,ge,Me,et){return!ge||!Me||!et?!1:re.isAfter(et,ge)&&re.isAfter(Me,et)}function fn(re,ge,Me,et,rt){return Rn(re,ge,Me,et,rt)?!0:re.isAfter(Me,et)}function wn(re,ge,Me){var et=ge.locale.getWeekFirstDay(re),rt=ge.setDate(Me,1),Ft=ge.getWeekDay(rt),Tt=ge.addDate(rt,et-Ft);return ge.getMonth(Tt)===ge.getMonth(Me)&&ge.getDate(Tt)>1&&(Tt=ge.addDate(Tt,-7)),Tt}function nn(re,ge){var Me=ge.generateConfig,et=ge.locale,rt=ge.format;return re?typeof rt=="function"?rt(re):Me.locale.format(et.locale,re,rt):""}function Kn(re,ge,Me){var et=ge,rt=["getHour","getMinute","getSecond","getMillisecond"],Ft=["setHour","setMinute","setSecond","setMillisecond"];return Ft.forEach(function(Tt,Ht){Me?et=re[Tt](et,re[rt[Ht]](Me)):et=re[Tt](et,0)}),et}function Jt(re,ge,Me,et,rt){var Ft=(0,mt.zX)(function(Tt,Ht){return!!(Me&&Me(Tt,Ht)||et&&re.isAfter(et,Tt)&&!Rn(re,ge,et,Tt,Ht.type)||rt&&re.isAfter(Tt,rt)&&!Rn(re,ge,rt,Tt,Ht.type))});return Ft}function On(re,ge,Me){return fe.useMemo(function(){var et=Kt(re,ge,Me),rt=Xt(et),Ft=rt[0],Tt=(0,Vr.Z)(Ft)==="object"&&Ft.type==="mask"?Ft.format:null;return[rt.map(function(Ht){return typeof Ht=="string"||typeof Ht=="function"?Ht:Ht.format}),Tt]},[re,ge,Me])}function hr(re,ge,Me){return typeof re[0]=="function"||Me?!0:ge}function yr(re,ge,Me,et){var rt=(0,mt.zX)(function(Ft,Tt){var Ht=(0,Le.Z)({type:ge},Tt);if(delete Ht.activeIndex,!re.isValidate(Ft)||Me&&Me(Ft,Ht))return!0;if((ge==="date"||ge==="time")&&et){var mn,xn=Tt&&Tt.activeIndex===1?"end":"start",Gt=((mn=et.disabledTime)===null||mn===void 0?void 0:mn.call(et,Ft,xn,{from:Ht.from}))||{},Pn=Gt.disabledHours,Rt=Gt.disabledMinutes,Tn=Gt.disabledSeconds,In=Gt.disabledMilliseconds,zn=et.disabledHours,Gn=et.disabledMinutes,Un=et.disabledSeconds,_r=Pn||zn,pr=Rt||Gn,Bn=Tn||Un,Sr=re.getHour(Ft),ar=re.getMinute(Ft),vr=re.getSecond(Ft),Ma=re.getMillisecond(Ft);if(_r&&_r().includes(Sr)||pr&&pr(Sr).includes(ar)||Bn&&Bn(Sr,ar).includes(vr)||In&&In(Sr,ar,vr).includes(Ma))return!0}return!1});return rt}function Ar(re){var ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Me=fe.useMemo(function(){var et=re&&Xt(re);return ge&&et&&(et[1]=et[1]||et[0]),et},[re,ge]);return Me}function la(re,ge){var Me=re.generateConfig,et=re.locale,rt=re.picker,Ft=rt===void 0?"date":rt,Tt=re.prefixCls,Ht=Tt===void 0?"rc-picker":Tt,mn=re.styles,xn=mn===void 0?{}:mn,Gt=re.classNames,Pn=Gt===void 0?{}:Gt,Rt=re.order,Tn=Rt===void 0?!0:Rt,In=re.components,zn=In===void 0?{}:In,Gn=re.inputRender,Un=re.allowClear,_r=re.clearIcon,pr=re.needConfirm,Bn=re.multiple,Sr=re.format,ar=re.inputReadOnly,vr=re.disabledDate,Ma=re.minDate,da=re.maxDate,Zr=re.showTime,oa=re.value,Ga=re.defaultValue,ya=re.pickerValue,Ur=re.defaultPickerValue,kr=Ar(oa),$r=Ar(Ga),Yr=Ar(ya),Za=Ar(Ur),Ta=Ft==="date"&&Zr?"datetime":Ft,sa=Ta==="time"||Ta==="datetime",Ea=sa||Bn,Wr=pr!=null?pr:sa,ba=Ti(re),va=(0,Ue.Z)(ba,4),ri=va[0],di=va[1],mi=va[2],vi=va[3],ei=Xr(et,di),Zi=fe.useMemo(function(){return Ni(Ta,mi,vi,ri,ei)},[Ta,mi,vi,ri,ei]),dn=fe.useMemo(function(){return(0,Le.Z)((0,Le.Z)({},re),{},{prefixCls:Ht,locale:ei,picker:Ft,styles:xn,classNames:Pn,order:Tn,components:(0,Le.Z)({input:Gn},zn),clearIcon:Ir(Ht,Un,_r),showTime:Zi,value:kr,defaultValue:$r,pickerValue:Yr,defaultPickerValue:Za},ge==null?void 0:ge())},[re]),Oi=On(Ta,ei,Sr),ao=(0,Ue.Z)(Oi,2),xi=ao[0],io=ao[1],gi=hr(xi,ar,Bn),oo=Jt(Me,et,vr,Ma,da),Vi=yr(Me,Ft,oo,Zi),zi=fe.useMemo(function(){return(0,Le.Z)((0,Le.Z)({},dn),{},{needConfirm:Wr,inputReadOnly:gi,disabledDate:oo})},[dn,Wr,gi,oo]);return[zi,Ta,Ea,xi,io,Vi]}var Er=ne(16089);function Qt(re,ge,Me){var et=(0,mt.C8)(ge,{value:re}),rt=(0,Ue.Z)(et,2),Ft=rt[0],Tt=rt[1],Ht=fe.useRef(re),mn=fe.useRef(),xn=function(){Er.Z.cancel(mn.current)},Gt=(0,mt.zX)(function(){Tt(Ht.current),Me&&Ft!==Ht.current&&Me(Ht.current)}),Pn=(0,mt.zX)(function(Rt,Tn){xn(),Ht.current=Rt,Rt||Tn?Gt():mn.current=(0,Er.Z)(Gt)});return fe.useEffect(function(){return xn},[]),[Ft,Pn]}function _n(re,ge){var Me=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],et=arguments.length>3?arguments[3]:void 0,rt=Me.every(function(Gt){return Gt})?!1:re,Ft=Qt(rt,ge||!1,et),Tt=(0,Ue.Z)(Ft,2),Ht=Tt[0],mn=Tt[1];function xn(Gt){var Pn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(!Pn.inherit||Ht)&&mn(Gt,Pn.force)}return[Ht,xn]}function br(re){var ge=fe.useRef();return fe.useImperativeHandle(re,function(){var Me;return{nativeElement:(Me=ge.current)===null||Me===void 0?void 0:Me.nativeElement,focus:function(rt){var Ft;(Ft=ge.current)===null||Ft===void 0||Ft.focus(rt)},blur:function(){var rt;(rt=ge.current)===null||rt===void 0||rt.blur()}}}),ge}function Nr(re,ge){return fe.useMemo(function(){return re||(ge?((0,dt.ZP)(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(ge).map(function(Me){var et=(0,Ue.Z)(Me,2),rt=et[0],Ft=et[1];return{label:rt,value:Ft}})):[])},[re,ge])}function qr(re,ge){var Me=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,et=fe.useRef(ge);et.current=ge,(0,Zt.o)(function(){if(re)et.current(re);else{var rt=(0,Er.Z)(function(){et.current(re)},Me);return function(){Er.Z.cancel(rt)}}},[re])}function Xa(re){var ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Me=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,et=fe.useState(0),rt=(0,Ue.Z)(et,2),Ft=rt[0],Tt=rt[1],Ht=fe.useState(!1),mn=(0,Ue.Z)(Ht,2),xn=mn[0],Gt=mn[1],Pn=fe.useRef([]),Rt=fe.useRef(null),Tn=fe.useRef(null),In=function(Bn){Rt.current=Bn},zn=function(Bn){return Rt.current===Bn},Gn=function(Bn){Gt(Bn)},Un=function(Bn){return Bn&&(Tn.current=Bn),Tn.current},_r=function(Bn){var Sr=Pn.current,ar=new Set(Sr.filter(function(Ma){return Bn[Ma]||ge[Ma]})),vr=Sr[Sr.length-1]===0?1:0;return ar.size>=2||re[vr]?null:vr};return qr(xn||Me,function(){xn||(Pn.current=[],In(null))}),fe.useEffect(function(){xn&&Pn.current.push(Ft)},[xn,Ft]),[xn,Gn,Un,Ft,Tt,_r,Pn.current,In,zn]}function si(re,ge,Me,et,rt,Ft){var Tt=Me[Me.length-1],Ht=function(xn,Gt){var Pn=(0,Ue.Z)(re,2),Rt=Pn[0],Tn=Pn[1],In=(0,Le.Z)((0,Le.Z)({},Gt),{},{from:Yn(re,Me)});return Tt===1&&ge[0]&&Rt&&!Rn(et,rt,Rt,xn,In.type)&&et.isAfter(Rt,xn)||Tt===0&&ge[1]&&Tn&&!Rn(et,rt,Tn,xn,In.type)&&et.isAfter(xn,Tn)?!0:Ft==null?void 0:Ft(xn,In)};return Ht}function so(re,ge,Me,et){switch(ge){case"date":case"week":return re.addMonth(Me,et);case"month":case"quarter":return re.addYear(Me,et);case"year":return re.addYear(Me,et*10);case"decade":return re.addYear(Me,et*100);default:return Me}}var Mn=[];function Rr(re,ge,Me,et,rt,Ft,Tt,Ht){var mn=arguments.length>8&&arguments[8]!==void 0?arguments[8]:Mn,xn=arguments.length>9&&arguments[9]!==void 0?arguments[9]:Mn,Gt=arguments.length>10&&arguments[10]!==void 0?arguments[10]:Mn,Pn=arguments.length>11?arguments[11]:void 0,Rt=arguments.length>12?arguments[12]:void 0,Tn=arguments.length>13?arguments[13]:void 0,In=Tt==="time",zn=Ft||0,Gn=function(Yr){var Za=re.getNow();return In&&(Za=Kn(re,Za)),mn[Yr]||Me[Yr]||Za},Un=(0,Ue.Z)(xn,2),_r=Un[0],pr=Un[1],Bn=(0,mt.C8)(function(){return Gn(0)},{value:_r}),Sr=(0,Ue.Z)(Bn,2),ar=Sr[0],vr=Sr[1],Ma=(0,mt.C8)(function(){return Gn(1)},{value:pr}),da=(0,Ue.Z)(Ma,2),Zr=da[0],oa=da[1],Ga=fe.useMemo(function(){var $r=[ar,Zr][zn];return In?$r:Kn(re,$r,Gt[zn])},[In,ar,Zr,zn,re,Gt]),ya=function(Yr){var Za=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"panel",Ta=[vr,oa][zn];Ta(Yr);var sa=[ar,Zr];sa[zn]=Yr,Pn&&(!Rn(re,ge,ar,sa[0],Tt)||!Rn(re,ge,Zr,sa[1],Tt))&&Pn(sa,{source:Za,range:zn===1?"end":"start",mode:et})},Ur=function(Yr,Za){if(Ht){var Ta={date:"month",week:"month",month:"year",quarter:"year"},sa=Ta[Tt];if(sa&&!Rn(re,ge,Yr,Za,sa))return so(re,Tt,Za,-1);if(Tt==="year"&&Yr){var Ea=Math.floor(re.getYear(Yr)/10),Wr=Math.floor(re.getYear(Za)/10);if(Ea!==Wr)return so(re,Tt,Za,-1)}}return Za},kr=fe.useRef(null);return(0,Zt.Z)(function(){if(rt&&!mn[zn]){var $r=In?null:re.getNow();if(kr.current!==null&&kr.current!==zn?$r=[ar,Zr][zn^1]:Me[zn]?$r=zn===0?Me[0]:Ur(Me[0],Me[1]):Me[zn^1]&&($r=Me[zn^1]),$r){Rt&&re.isAfter(Rt,$r)&&($r=Rt);var Yr=Ht?so(re,Tt,$r,1):$r;Tn&&re.isAfter(Yr,Tn)&&($r=Ht?so(re,Tt,Tn,-1):Tn),ya($r,"reset")}}},[rt,zn,Me[zn]]),fe.useEffect(function(){rt?kr.current=zn:kr.current=null},[rt,zn]),(0,Zt.Z)(function(){rt&&mn&&mn[zn]&&ya(mn[zn],"reset")},[rt,zn]),[Ga,ya]}function jn(re,ge){var Me=fe.useRef(re),et=fe.useState({}),rt=(0,Ue.Z)(et,2),Ft=rt[1],Tt=function(xn){return xn&&ge!==void 0?ge:Me.current},Ht=function(xn){Me.current=xn,Ft({})};return[Tt,Ht,Tt(!0)]}var tl=[];function Zo(re,ge,Me){var et=function(Tt){return Tt.map(function(Ht){return nn(Ht,{generateConfig:re,locale:ge,format:Me[0]})})},rt=function(Tt,Ht){for(var mn=Math.max(Tt.length,Ht.length),xn=-1,Gt=0;Gt<mn;Gt+=1){var Pn=Tt[Gt]||null,Rt=Ht[Gt]||null;if(Pn!==Rt&&!aa(re,Pn,Rt)){xn=Gt;break}}return[xn<0,xn!==0]};return[et,rt]}function Ct(re,ge){return(0,it.Z)(re).sort(function(Me,et){return ge.isAfter(Me,et)?1:-1})}function rn(re){var ge=jn(re),Me=(0,Ue.Z)(ge,2),et=Me[0],rt=Me[1],Ft=(0,mt.zX)(function(){rt(re)});return fe.useEffect(function(){Ft()},[re]),[et,rt]}function Mt(re,ge,Me,et,rt,Ft,Tt,Ht,mn){var xn=(0,mt.C8)(Ft,{value:Tt}),Gt=(0,Ue.Z)(xn,2),Pn=Gt[0],Rt=Gt[1],Tn=Pn||tl,In=rn(Tn),zn=(0,Ue.Z)(In,2),Gn=zn[0],Un=zn[1],_r=Zo(re,ge,Me),pr=(0,Ue.Z)(_r,2),Bn=pr[0],Sr=pr[1],ar=(0,mt.zX)(function(Ma){var da=(0,it.Z)(Ma);if(et)for(var Zr=0;Zr<2;Zr+=1)da[Zr]=da[Zr]||null;else rt&&(da=Ct(da.filter(function($r){return $r}),re));var oa=Sr(Gn(),da),Ga=(0,Ue.Z)(oa,2),ya=Ga[0],Ur=Ga[1];if(!ya&&(Un(da),Ht)){var kr=Bn(da);Ht(da,kr,{range:Ur?"end":"start"})}}),vr=function(){mn&&mn(Gn())};return[Tn,Rt,Gn,ar,vr]}function Nt(re,ge,Me,et,rt,Ft,Tt,Ht,mn,xn){var Gt=re.generateConfig,Pn=re.locale,Rt=re.picker,Tn=re.onChange,In=re.allowEmpty,zn=re.order,Gn=Ft.some(function(ya){return ya})?!1:zn,Un=Zo(Gt,Pn,Tt),_r=(0,Ue.Z)(Un,2),pr=_r[0],Bn=_r[1],Sr=jn(ge),ar=(0,Ue.Z)(Sr,2),vr=ar[0],Ma=ar[1],da=(0,mt.zX)(function(){Ma(ge)});fe.useEffect(function(){da()},[ge]);var Zr=(0,mt.zX)(function(ya){var Ur=ya===null,kr=(0,it.Z)(ya||vr());if(Ur)for(var $r=Math.max(Ft.length,kr.length),Yr=0;Yr<$r;Yr+=1)Ft[Yr]||(kr[Yr]=null);Gn&&kr[0]&&kr[1]&&(kr=Ct(kr,Gt)),rt(kr);var Za=kr,Ta=(0,Ue.Z)(Za,2),sa=Ta[0],Ea=Ta[1],Wr=!sa,ba=!Ea,va=In?(!Wr||In[0])&&(!ba||In[1]):!0,ri=!zn||Wr||ba||Rn(Gt,Pn,sa,Ea,Rt)||Gt.isAfter(Ea,sa),di=(Ft[0]||!sa||!xn(sa,{activeIndex:0}))&&(Ft[1]||!Ea||!xn(Ea,{from:sa,activeIndex:1})),mi=Ur||va&&ri&&di;if(mi){Me(kr);var vi=Bn(kr,ge),ei=(0,Ue.Z)(vi,1),Zi=ei[0];Tn&&!Zi&&Tn(Ur&&kr.every(function(dn){return!dn})?null:kr,pr(kr))}return mi}),oa=(0,mt.zX)(function(ya,Ur){var kr=zt(vr(),ya,et()[ya]);Ma(kr),Ur&&Zr()}),Ga=!Ht&&!mn;return qr(!Ga,function(){Ga&&(Zr(),rt(ge),da())},2),[oa,Zr]}function sr(re,ge,Me,et,rt){return ge!=="date"&&ge!=="time"?!1:Me!==void 0?Me:et!==void 0?et:!rt&&(re==="date"||re==="time")}var Hn=ne(29301);function vn(re,ge,Me,et,rt,Ft){var Tt=re;function Ht(Pn,Rt,Tn){var In=Ft[Pn](Tt),zn=Tn.find(function(pr){return pr.value===In});if(!zn||zn.disabled){var Gn=Tn.filter(function(pr){return!pr.disabled}),Un=(0,it.Z)(Gn).reverse(),_r=Un.find(function(pr){return pr.value<=In})||Gn[0];_r&&(In=_r.value,Tt=Ft[Rt](Tt,In))}return In}var mn=Ht("getHour","setHour",ge()),xn=Ht("getMinute","setMinute",Me(mn)),Gt=Ht("getSecond","setSecond",et(mn,xn));return Ht("getMillisecond","setMillisecond",rt(mn,xn,Gt)),Tt}function Fr(){return[]}function Pr(re,ge){for(var Me=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,et=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,rt=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[],Ft=arguments.length>5&&arguments[5]!==void 0?arguments[5]:2,Tt=[],Ht=Me>=1?Me|0:1,mn=re;mn<=ge;mn+=Ht){var xn=rt.includes(mn);(!xn||!et)&&Tt.push({label:ot(mn,Ft),value:mn,disabled:xn})}return Tt}function Or(re){var ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Me=arguments.length>2?arguments[2]:void 0,et=ge||{},rt=et.use12Hours,Ft=et.hourStep,Tt=Ft===void 0?1:Ft,Ht=et.minuteStep,mn=Ht===void 0?1:Ht,xn=et.secondStep,Gt=xn===void 0?1:xn,Pn=et.millisecondStep,Rt=Pn===void 0?100:Pn,Tn=et.hideDisabledOptions,In=et.disabledTime,zn=et.disabledHours,Gn=et.disabledMinutes,Un=et.disabledSeconds,_r=fe.useMemo(function(){return Me||re.getNow()},[Me,re]);if(0)var pr,Bn,Sr;var ar=fe.useCallback(function(Ea){var Wr=(In==null?void 0:In(Ea))||{};return[Wr.disabledHours||zn||Fr,Wr.disabledMinutes||Gn||Fr,Wr.disabledSeconds||Un||Fr,Wr.disabledMilliseconds||Fr]},[In,zn,Gn,Un]),vr=fe.useMemo(function(){return ar(_r)},[_r,ar]),Ma=(0,Ue.Z)(vr,4),da=Ma[0],Zr=Ma[1],oa=Ma[2],Ga=Ma[3],ya=fe.useCallback(function(Ea,Wr,ba,va){var ri=Pr(0,23,Tt,Tn,Ea()),di=rt?ri.map(function(Zi){return(0,Le.Z)((0,Le.Z)({},Zi),{},{label:ot(Zi.value%12||12,2)})}):ri,mi=function(dn){return Pr(0,59,mn,Tn,Wr(dn))},vi=function(dn,Oi){return Pr(0,59,Gt,Tn,ba(dn,Oi))},ei=function(dn,Oi,ao){return Pr(0,999,Rt,Tn,va(dn,Oi,ao),3)};return[di,mi,vi,ei]},[Tn,Tt,rt,Rt,mn,Gt]),Ur=fe.useMemo(function(){return ya(da,Zr,oa,Ga)},[ya,da,Zr,oa,Ga]),kr=(0,Ue.Z)(Ur,4),$r=kr[0],Yr=kr[1],Za=kr[2],Ta=kr[3],sa=function(Wr,ba){var va=function(){return $r},ri=Yr,di=Za,mi=Ta;if(ba){var vi=ar(ba),ei=(0,Ue.Z)(vi,4),Zi=ei[0],dn=ei[1],Oi=ei[2],ao=ei[3],xi=ya(Zi,dn,Oi,ao),io=(0,Ue.Z)(xi,4),gi=io[0],oo=io[1],Vi=io[2],zi=io[3];va=function(){return gi},ri=oo,di=Vi,mi=zi}var fo=vn(Wr,va,ri,di,mi,re);return fo};return[sa,$r,Yr,Za,Ta]}function Ha(re){var ge=re.mode,Me=re.internalMode,et=re.renderExtraFooter,rt=re.showNow,Ft=re.showTime,Tt=re.onSubmit,Ht=re.onNow,mn=re.invalid,xn=re.needConfirm,Gt=re.generateConfig,Pn=re.disabledDate,Rt=fe.useContext(ae),Tn=Rt.prefixCls,In=Rt.locale,zn=Rt.button,Gn=zn===void 0?"button":zn,Un=Gt.getNow(),_r=Or(Gt,Ft,Un),pr=(0,Ue.Z)(_r,1),Bn=pr[0],Sr=et==null?void 0:et(ge),ar=Pn(Un,{type:ge}),vr=function(){if(!ar){var Ur=Bn(Un);Ht(Ur)}},Ma="".concat(Tn,"-now"),da="".concat(Ma,"-btn"),Zr=rt&&fe.createElement("li",{className:Ma},fe.createElement("a",{className:bt()(da,ar&&"".concat(da,"-disabled")),"aria-disabled":ar,onClick:vr},Me==="date"?In.today:In.now)),oa=xn&&fe.createElement("li",{className:"".concat(Tn,"-ok")},fe.createElement(Gn,{disabled:mn,onClick:Tt},In.ok)),Ga=(Zr||oa)&&fe.createElement("ul",{className:"".concat(Tn,"-ranges")},Zr,oa);return!Sr&&!Ga?null:fe.createElement("div",{className:"".concat(Tn,"-footer")},Sr&&fe.createElement("div",{className:"".concat(Tn,"-footer-extra")},Sr),Ga)}function ma(re,ge,Me){function et(rt,Ft){var Tt=rt.findIndex(function(mn){return Rn(re,ge,mn,Ft,Me)});if(Tt===-1)return[].concat((0,it.Z)(rt),[Ft]);var Ht=(0,it.Z)(rt);return Ht.splice(Tt,1),Ht}return et}var Qr=fe.createContext(null);function za(){return fe.useContext(Qr)}function Ya(re,ge){var Me=re.prefixCls,et=re.generateConfig,rt=re.locale,Ft=re.disabledDate,Tt=re.minDate,Ht=re.maxDate,mn=re.cellRender,xn=re.hoverValue,Gt=re.hoverRangeValue,Pn=re.onHover,Rt=re.values,Tn=re.pickerValue,In=re.onSelect,zn=re.prevIcon,Gn=re.nextIcon,Un=re.superPrevIcon,_r=re.superNextIcon,pr=et.getNow(),Bn={now:pr,values:Rt,pickerValue:Tn,prefixCls:Me,disabledDate:Ft,minDate:Tt,maxDate:Ht,cellRender:mn,hoverValue:xn,hoverRangeValue:Gt,onHover:Pn,locale:rt,generateConfig:et,onSelect:In,panelType:ge,prevIcon:zn,nextIcon:Gn,superPrevIcon:Un,superNextIcon:_r};return[Bn,pr]}var jr=fe.createContext({});function Wa(re){for(var ge=re.rowNum,Me=re.colNum,et=re.baseDate,rt=re.getCellDate,Ft=re.prefixColumn,Tt=re.rowClassName,Ht=re.titleFormat,mn=re.getCellText,xn=re.getCellClassName,Gt=re.headerCells,Pn=re.cellSelection,Rt=Pn===void 0?!0:Pn,Tn=re.disabledDate,In=za(),zn=In.prefixCls,Gn=In.panelType,Un=In.now,_r=In.disabledDate,pr=In.cellRender,Bn=In.onHover,Sr=In.hoverValue,ar=In.hoverRangeValue,vr=In.generateConfig,Ma=In.values,da=In.locale,Zr=In.onSelect,oa=Tn||_r,Ga="".concat(zn,"-cell"),ya=fe.useContext(jr),Ur=ya.onCellDblClick,kr=function(ba){return Ma.some(function(va){return va&&Rn(vr,da,ba,va,Gn)})},$r=[],Yr=0;Yr<ge;Yr+=1){for(var Za=[],Ta=void 0,sa=function(){var ba=Yr*Me+Ea,va=rt(et,ba),ri=oa==null?void 0:oa(va,{type:Gn});Ea===0&&(Ta=va,Ft&&Za.push(Ft(Ta)));var di=!1,mi=!1,vi=!1;if(Rt&&ar){var ei=(0,Ue.Z)(ar,2),Zi=ei[0],dn=ei[1];di=cn(vr,Zi,dn,va),mi=Rn(vr,da,va,Zi,Gn),vi=Rn(vr,da,va,dn,Gn)}var Oi=Ht?nn(va,{locale:da,format:Ht,generateConfig:vr}):void 0,ao=fe.createElement("div",{className:"".concat(Ga,"-inner")},mn(va));Za.push(fe.createElement("td",{key:Ea,title:Oi,className:bt()(Ga,(0,Le.Z)((0,Lt.Z)((0,Lt.Z)((0,Lt.Z)((0,Lt.Z)((0,Lt.Z)((0,Lt.Z)({},"".concat(Ga,"-disabled"),ri),"".concat(Ga,"-hover"),(Sr||[]).some(function(xi){return Rn(vr,da,va,xi,Gn)})),"".concat(Ga,"-in-range"),di&&!mi&&!vi),"".concat(Ga,"-range-start"),mi),"".concat(Ga,"-range-end"),vi),"".concat(zn,"-cell-selected"),!ar&&Gn!=="week"&&kr(va)),xn(va))),onClick:function(){ri||Zr(va)},onDoubleClick:function(){!ri&&Ur&&Ur()},onMouseEnter:function(){ri||Bn==null||Bn(va)},onMouseLeave:function(){ri||Bn==null||Bn(null)}},pr?pr(va,{prefixCls:zn,originNode:ao,today:Un,type:Gn,locale:da}):ao))},Ea=0;Ea<Me;Ea+=1)sa();$r.push(fe.createElement("tr",{key:Yr,className:Tt==null?void 0:Tt(Ta)},Za))}return fe.createElement("div",{className:"".concat(zn,"-body")},fe.createElement("table",{className:"".concat(zn,"-content")},Gt&&fe.createElement("thead",null,fe.createElement("tr",null,Gt)),fe.createElement("tbody",null,$r)))}var Li={visibility:"hidden"};function ui(re){var ge=re.offset,Me=re.superOffset,et=re.onChange,rt=re.getStart,Ft=re.getEnd,Tt=re.children,Ht=za(),mn=Ht.prefixCls,xn=Ht.prevIcon,Gt=xn===void 0?"\u2039":xn,Pn=Ht.nextIcon,Rt=Pn===void 0?"\u203A":Pn,Tn=Ht.superPrevIcon,In=Tn===void 0?"\xAB":Tn,zn=Ht.superNextIcon,Gn=zn===void 0?"\xBB":zn,Un=Ht.minDate,_r=Ht.maxDate,pr=Ht.generateConfig,Bn=Ht.locale,Sr=Ht.pickerValue,ar=Ht.panelType,vr="".concat(mn,"-header"),Ma=fe.useContext(jr),da=Ma.hidePrev,Zr=Ma.hideNext,oa=Ma.hideHeader,Ga=fe.useMemo(function(){if(!Un||!ge||!Ft)return!1;var Wr=Ft(ge(-1,Sr));return!fn(pr,Bn,Wr,Un,ar)},[Un,ge,Sr,Ft,pr,Bn,ar]),ya=fe.useMemo(function(){if(!Un||!Me||!Ft)return!1;var Wr=Ft(Me(-1,Sr));return!fn(pr,Bn,Wr,Un,ar)},[Un,Me,Sr,Ft,pr,Bn,ar]),Ur=fe.useMemo(function(){if(!_r||!ge||!rt)return!1;var Wr=rt(ge(1,Sr));return!fn(pr,Bn,_r,Wr,ar)},[_r,ge,Sr,rt,pr,Bn,ar]),kr=fe.useMemo(function(){if(!_r||!Me||!rt)return!1;var Wr=rt(Me(1,Sr));return!fn(pr,Bn,_r,Wr,ar)},[_r,Me,Sr,rt,pr,Bn,ar]),$r=function(ba){ge&&et(ge(ba,Sr))},Yr=function(ba){Me&&et(Me(ba,Sr))};if(oa)return null;var Za="".concat(vr,"-prev-btn"),Ta="".concat(vr,"-next-btn"),sa="".concat(vr,"-super-prev-btn"),Ea="".concat(vr,"-super-next-btn");return fe.createElement("div",{className:vr},Me&&fe.createElement("button",{type:"button","aria-label":Bn.previousYear,onClick:function(){return Yr(-1)},tabIndex:-1,className:bt()(sa,ya&&"".concat(sa,"-disabled")),disabled:ya,style:da?Li:{}},In),ge&&fe.createElement("button",{type:"button","aria-label":Bn.previousMonth,onClick:function(){return $r(-1)},tabIndex:-1,className:bt()(Za,Ga&&"".concat(Za,"-disabled")),disabled:Ga,style:da?Li:{}},Gt),fe.createElement("div",{className:"".concat(vr,"-view")},Tt),ge&&fe.createElement("button",{type:"button","aria-label":Bn.nextMonth,onClick:function(){return $r(1)},tabIndex:-1,className:bt()(Ta,Ur&&"".concat(Ta,"-disabled")),disabled:Ur,style:Zr?Li:{}},Rt),Me&&fe.createElement("button",{type:"button","aria-label":Bn.nextYear,onClick:function(){return Yr(1)},tabIndex:-1,className:bt()(Ea,kr&&"".concat(Ea,"-disabled")),disabled:kr,style:Zr?Li:{}},Gn))}var Sa=ui;function ia(re){var ge=re.prefixCls,Me=re.panelName,et=Me===void 0?"date":Me,rt=re.locale,Ft=re.generateConfig,Tt=re.pickerValue,Ht=re.onPickerValueChange,mn=re.onModeChange,xn=re.mode,Gt=xn===void 0?"date":xn,Pn=re.disabledDate,Rt=re.onSelect,Tn=re.onHover,In=re.showWeek,zn="".concat(ge,"-").concat(et,"-panel"),Gn="".concat(ge,"-cell"),Un=Gt==="week",_r=Ya(re,Gt),pr=(0,Ue.Z)(_r,2),Bn=pr[0],Sr=pr[1],ar=Ft.locale.getWeekFirstDay(rt.locale),vr=Ft.setDate(Tt,1),Ma=wn(rt.locale,Ft,vr),da=Ft.getMonth(Tt),Zr=In===void 0?Un:In,oa=Zr?function(Wr){var ba=Pn==null?void 0:Pn(Wr,{type:"week"});return fe.createElement("td",{key:"week",className:bt()(Gn,"".concat(Gn,"-week"),(0,Lt.Z)({},"".concat(Gn,"-disabled"),ba)),onClick:function(){ba||Rt(Wr)},onMouseEnter:function(){ba||Tn==null||Tn(Wr)},onMouseLeave:function(){ba||Tn==null||Tn(null)}},fe.createElement("div",{className:"".concat(Gn,"-inner")},Ft.locale.getWeek(rt.locale,Wr)))}:null,Ga=[],ya=rt.shortWeekDays||(Ft.locale.getShortWeekDays?Ft.locale.getShortWeekDays(rt.locale):[]);oa&&Ga.push(fe.createElement("th",{key:"empty"},fe.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},rt.week)));for(var Ur=0;Ur<Sn;Ur+=1)Ga.push(fe.createElement("th",{key:Ur},ya[(Ur+ar)%Sn]));var kr=function(ba,va){return Ft.addDate(ba,va)},$r=function(ba){return nn(ba,{locale:rt,format:rt.cellDateFormat,generateConfig:Ft})},Yr=function(ba){var va=(0,Lt.Z)((0,Lt.Z)({},"".concat(ge,"-cell-in-view"),Qa(Ft,ba,Tt)),"".concat(ge,"-cell-today"),Kr(Ft,ba,Sr));return va},Za=rt.shortMonths||(Ft.locale.getShortMonths?Ft.locale.getShortMonths(rt.locale):[]),Ta=fe.createElement("button",{type:"button","aria-label":rt.yearSelect,key:"year",onClick:function(){mn("year",Tt)},tabIndex:-1,className:"".concat(ge,"-year-btn")},nn(Tt,{locale:rt,format:rt.yearFormat,generateConfig:Ft})),sa=fe.createElement("button",{type:"button","aria-label":rt.monthSelect,key:"month",onClick:function(){mn("month",Tt)},tabIndex:-1,className:"".concat(ge,"-month-btn")},rt.monthFormat?nn(Tt,{locale:rt,format:rt.monthFormat,generateConfig:Ft}):Za[da]),Ea=rt.monthBeforeYear?[sa,Ta]:[Ta,sa];return fe.createElement(Qr.Provider,{value:Bn},fe.createElement("div",{className:bt()(zn,In&&"".concat(zn,"-show-week"))},fe.createElement(Sa,{offset:function(ba){return Ft.addMonth(Tt,ba)},superOffset:function(ba){return Ft.addYear(Tt,ba)},onChange:Ht,getStart:function(ba){return Ft.setDate(ba,1)},getEnd:function(ba){var va=Ft.setDate(ba,1);return va=Ft.addMonth(va,1),Ft.addDate(va,-1)}},Ea),fe.createElement(Wa,(0,qe.Z)({titleFormat:rt.fieldDateFormat},re,{colNum:Sn,rowNum:6,baseDate:Ma,headerCells:Ga,getCellDate:kr,getCellText:$r,getCellClassName:Yr,prefixColumn:oa,cellSelection:!Un}))))}var $i=ne(29194),ci=1/3;function ja(re,ge){var Me=fe.useRef(!1),et=fe.useRef(null),rt=fe.useRef(null),Ft=function(){return Me.current},Tt=function(){Er.Z.cancel(et.current),Me.current=!1},Ht=fe.useRef(),mn=function(){var Pn=re.current;if(rt.current=null,Ht.current=0,Pn){var Rt=Pn.querySelector('[data-value="'.concat(ge,'"]')),Tn=Pn.querySelector("li"),In=function zn(){Tt(),Me.current=!0,Ht.current+=1;var Gn=Pn.scrollTop,Un=Tn.offsetTop,_r=Rt.offsetTop,pr=_r-Un;if(_r===0&&Rt!==Tn||!(0,$i.Z)(Pn)){Ht.current<=5&&(et.current=(0,Er.Z)(zn));return}var Bn=Gn+(pr-Gn)*ci,Sr=Math.abs(pr-Bn);if(rt.current!==null&&rt.current<Sr){Tt();return}if(rt.current=Sr,Sr<=1){Pn.scrollTop=pr,Tt();return}Pn.scrollTop=Bn,et.current=(0,Er.Z)(zn)};Rt&&Tn&&In()}},xn=(0,mt.zX)(mn);return[xn,Tt,Ft]}var ai=300;function wi(re){return re.map(function(ge){var Me=ge.value,et=ge.label,rt=ge.disabled;return[Me,et,rt].join(",")}).join(";")}function ii(re){var ge=re.units,Me=re.value,et=re.optionalValue,rt=re.type,Ft=re.onChange,Tt=re.onHover,Ht=re.onDblClick,mn=re.changeOnScroll,xn=za(),Gt=xn.prefixCls,Pn=xn.cellRender,Rt=xn.now,Tn=xn.locale,In="".concat(Gt,"-time-panel"),zn="".concat(Gt,"-time-panel-cell"),Gn=fe.useRef(null),Un=fe.useRef(),_r=function(){clearTimeout(Un.current)},pr=ja(Gn,Me!=null?Me:et),Bn=(0,Ue.Z)(pr,3),Sr=Bn[0],ar=Bn[1],vr=Bn[2];(0,Zt.Z)(function(){return Sr(),_r(),function(){ar(),_r()}},[Me,et,wi(ge)]);var Ma=function(oa){_r();var Ga=oa.target;!vr()&&mn&&(Un.current=setTimeout(function(){var ya=Gn.current,Ur=ya.querySelector("li").offsetTop,kr=Array.from(ya.querySelectorAll("li")),$r=kr.map(function(Ea){return Ea.offsetTop-Ur}),Yr=$r.map(function(Ea,Wr){return ge[Wr].disabled?Number.MAX_SAFE_INTEGER:Math.abs(Ea-Ga.scrollTop)}),Za=Math.min.apply(Math,(0,it.Z)(Yr)),Ta=Yr.findIndex(function(Ea){return Ea===Za}),sa=ge[Ta];sa&&!sa.disabled&&Ft(sa.value)},ai))},da="".concat(In,"-column");return fe.createElement("ul",{className:da,ref:Gn,"data-type":rt,onScroll:Ma},ge.map(function(Zr){var oa=Zr.label,Ga=Zr.value,ya=Zr.disabled,Ur=fe.createElement("div",{className:"".concat(zn,"-inner")},oa);return fe.createElement("li",{key:Ga,className:bt()(zn,(0,Lt.Z)((0,Lt.Z)({},"".concat(zn,"-selected"),Me===Ga),"".concat(zn,"-disabled"),ya)),onClick:function(){ya||Ft(Ga)},onDoubleClick:function(){!ya&&Ht&&Ht()},onMouseEnter:function(){Tt(Ga)},onMouseLeave:function(){Tt(null)},"data-value":Ga},Pn?Pn(Ga,{prefixCls:Gt,originNode:Ur,today:Rt,type:"time",subType:rt,locale:Tn}):Ur)}))}function Da(re){return re<12}function Di(re){var ge=re.showHour,Me=re.showMinute,et=re.showSecond,rt=re.showMillisecond,Ft=re.use12Hours,Tt=re.changeOnScroll,Ht=za(),mn=Ht.prefixCls,xn=Ht.values,Gt=Ht.generateConfig,Pn=Ht.locale,Rt=Ht.onSelect,Tn=Ht.onHover,In=Tn===void 0?function(){}:Tn,zn=Ht.pickerValue,Gn=(xn==null?void 0:xn[0])||null,Un=fe.useContext(jr),_r=Un.onCellDblClick,pr=Or(Gt,re,Gn),Bn=(0,Ue.Z)(pr,5),Sr=Bn[0],ar=Bn[1],vr=Bn[2],Ma=Bn[3],da=Bn[4],Zr=function(Va){var ko=Gn&&Gt[Va](Gn),Jo=zn&&Gt[Va](zn);return[ko,Jo]},oa=Zr("getHour"),Ga=(0,Ue.Z)(oa,2),ya=Ga[0],Ur=Ga[1],kr=Zr("getMinute"),$r=(0,Ue.Z)(kr,2),Yr=$r[0],Za=$r[1],Ta=Zr("getSecond"),sa=(0,Ue.Z)(Ta,2),Ea=sa[0],Wr=sa[1],ba=Zr("getMillisecond"),va=(0,Ue.Z)(ba,2),ri=va[0],di=va[1],mi=ya===null?null:Da(ya)?"am":"pm",vi=fe.useMemo(function(){return Ft?Da(ya)?ar.filter(function(xa){return Da(xa.value)}):ar.filter(function(xa){return!Da(xa.value)}):ar},[ya,ar,Ft]),ei=function(Va,ko){var Jo,Cl=Va.filter(function(Ml){return!Ml.disabled});return ko!=null?ko:Cl==null||(Jo=Cl[0])===null||Jo===void 0?void 0:Jo.value},Zi=ei(ar,ya),dn=fe.useMemo(function(){return vr(Zi)},[vr,Zi]),Oi=ei(dn,Yr),ao=fe.useMemo(function(){return Ma(Zi,Oi)},[Ma,Zi,Oi]),xi=ei(ao,Ea),io=fe.useMemo(function(){return da(Zi,Oi,xi)},[da,Zi,Oi,xi]),gi=ei(io,ri),oo=fe.useMemo(function(){if(!Ft)return[];var xa=Gt.getNow(),Va=Gt.setHour(xa,6),ko=Gt.setHour(xa,18),Jo=function(Ml,Ql){var Bs=Pn.cellMeridiemFormat;return Bs?nn(Ml,{generateConfig:Gt,locale:Pn,format:Bs}):Ql};return[{label:Jo(Va,"AM"),value:"am",disabled:ar.every(function(Cl){return Cl.disabled||!Da(Cl.value)})},{label:Jo(ko,"PM"),value:"pm",disabled:ar.every(function(Cl){return Cl.disabled||Da(Cl.value)})}]},[ar,Ft,Gt,Pn]),Vi=function(Va){var ko=Sr(Va);Rt(ko)},zi=fe.useMemo(function(){var xa=Gn||zn||Gt.getNow(),Va=function(Jo){return Jo!=null};return Va(ya)?(xa=Gt.setHour(xa,ya),xa=Gt.setMinute(xa,Yr),xa=Gt.setSecond(xa,Ea),xa=Gt.setMillisecond(xa,ri)):Va(Ur)?(xa=Gt.setHour(xa,Ur),xa=Gt.setMinute(xa,Za),xa=Gt.setSecond(xa,Wr),xa=Gt.setMillisecond(xa,di)):Va(Zi)&&(xa=Gt.setHour(xa,Zi),xa=Gt.setMinute(xa,Oi),xa=Gt.setSecond(xa,xi),xa=Gt.setMillisecond(xa,gi)),xa},[Gn,zn,ya,Yr,Ea,ri,Zi,Oi,xi,gi,Ur,Za,Wr,di,Gt]),fo=function(Va,ko){return Va===null?null:Gt[ko](zi,Va)},Ca=function(Va){return fo(Va,"setHour")},ka=function(Va){return fo(Va,"setMinute")},Xi=function(Va){return fo(Va,"setSecond")},vo=function(Va){return fo(Va,"setMillisecond")},jo=function(Va){return Va===null?null:Va==="am"&&!Da(ya)?Gt.setHour(zi,ya-12):Va==="pm"&&Da(ya)?Gt.setHour(zi,ya+12):zi},to=function(Va){Vi(Ca(Va))},bl=function(Va){Vi(ka(Va))},Ji=function(Va){Vi(Xi(Va))},lo=function(Va){Vi(vo(Va))},go=function(Va){Vi(jo(Va))},Lr=function(Va){In(Ca(Va))},yi=function(Va){In(ka(Va))},Kl=function(Va){In(Xi(Va))},Ka=function(Va){In(vo(Va))},Aa=function(Va){In(jo(Va))},no={onDblClick:_r,changeOnScroll:Tt};return fe.createElement("div",{className:"".concat(mn,"-content")},ge&&fe.createElement(ii,(0,qe.Z)({units:vi,value:ya,optionalValue:Ur,type:"hour",onChange:to,onHover:Lr},no)),Me&&fe.createElement(ii,(0,qe.Z)({units:dn,value:Yr,optionalValue:Za,type:"minute",onChange:bl,onHover:yi},no)),et&&fe.createElement(ii,(0,qe.Z)({units:ao,value:Ea,optionalValue:Wr,type:"second",onChange:Ji,onHover:Kl},no)),rt&&fe.createElement(ii,(0,qe.Z)({units:io,value:ri,optionalValue:di,type:"millisecond",onChange:lo,onHover:Ka},no)),Ft&&fe.createElement(ii,(0,qe.Z)({units:oo,value:mi,type:"meridiem",onChange:go,onHover:Aa},no)))}function oi(re){var ge=re.prefixCls,Me=re.value,et=re.locale,rt=re.generateConfig,Ft=re.showTime,Tt=Ft||{},Ht=Tt.format,mn="".concat(ge,"-time-panel"),xn=Ya(re,"time"),Gt=(0,Ue.Z)(xn,1),Pn=Gt[0];return fe.createElement(Qr.Provider,{value:Pn},fe.createElement("div",{className:bt()(mn)},fe.createElement(Sa,null,Me?nn(Me,{locale:et,format:Ht,generateConfig:rt}):"\xA0"),fe.createElement(Di,Ft)))}function xo(re){var ge=re.prefixCls,Me=re.generateConfig,et=re.showTime,rt=re.onSelect,Ft=re.value,Tt=re.pickerValue,Ht=re.onHover,mn="".concat(ge,"-datetime-panel"),xn=Or(Me,et),Gt=(0,Ue.Z)(xn,1),Pn=Gt[0],Rt=function(Gn){return Ft?Kn(Me,Gn,Ft):Kn(Me,Gn,Tt)},Tn=function(Gn){Ht==null||Ht(Gn&&Rt(Gn))},In=function(Gn){var Un=Rt(Gn);rt(Pn(Un,Un))};return fe.createElement("div",{className:mn},fe.createElement(ia,(0,qe.Z)({},re,{onSelect:In,onHover:Tn})),fe.createElement(oi,re))}function Bo(re){var ge=re.prefixCls,Me=re.locale,et=re.generateConfig,rt=re.pickerValue,Ft=re.disabledDate,Tt=re.onPickerValueChange,Ht="".concat(ge,"-decade-panel"),mn=Ya(re,"decade"),xn=(0,Ue.Z)(mn,1),Gt=xn[0],Pn=function(ar){var vr=Math.floor(et.getYear(ar)/100)*100;return et.setYear(ar,vr)},Rt=function(ar){var vr=Pn(ar);return et.addYear(vr,99)},Tn=Pn(rt),In=Rt(rt),zn=et.addYear(Tn,-10),Gn=function(ar,vr){return et.addYear(ar,vr*10)},Un=function(ar){var vr=Me.cellYearFormat,Ma=nn(ar,{locale:Me,format:vr,generateConfig:et}),da=nn(et.addYear(ar,9),{locale:Me,format:vr,generateConfig:et});return"".concat(Ma,"-").concat(da)},_r=function(ar){return(0,Lt.Z)({},"".concat(ge,"-cell-in-view"),Fa(et,ar,Tn)||Fa(et,ar,In)||cn(et,Tn,In,ar))},pr=Ft?function(Sr,ar){var vr=et.setDate(Sr,1),Ma=et.setMonth(vr,0),da=et.setYear(Ma,Math.floor(et.getYear(Ma)/10)*10),Zr=et.addYear(da,10),oa=et.addDate(Zr,-1);return Ft(da,ar)&&Ft(oa,ar)}:null,Bn="".concat(nn(Tn,{locale:Me,format:Me.yearFormat,generateConfig:et}),"-").concat(nn(In,{locale:Me,format:Me.yearFormat,generateConfig:et}));return fe.createElement(Qr.Provider,{value:Gt},fe.createElement("div",{className:Ht},fe.createElement(Sa,{superOffset:function(ar){return et.addYear(rt,ar*100)},onChange:Tt,getStart:Pn,getEnd:Rt},Bn),fe.createElement(Wa,(0,qe.Z)({},re,{disabledDate:pr,colNum:3,rowNum:4,baseDate:zn,getCellDate:Gn,getCellText:Un,getCellClassName:_r}))))}function Ei(re){var ge=re.prefixCls,Me=re.locale,et=re.generateConfig,rt=re.pickerValue,Ft=re.disabledDate,Tt=re.onPickerValueChange,Ht=re.onModeChange,mn="".concat(ge,"-month-panel"),xn=Ya(re,"month"),Gt=(0,Ue.Z)(xn,1),Pn=Gt[0],Rt=et.setMonth(rt,0),Tn=Me.shortMonths||(et.locale.getShortMonths?et.locale.getShortMonths(Me.locale):[]),In=function(Bn,Sr){return et.addMonth(Bn,Sr)},zn=function(Bn){var Sr=et.getMonth(Bn);return Me.monthFormat?nn(Bn,{locale:Me,format:Me.monthFormat,generateConfig:et}):Tn[Sr]},Gn=function(){return(0,Lt.Z)({},"".concat(ge,"-cell-in-view"),!0)},Un=Ft?function(pr,Bn){var Sr=et.setDate(pr,1),ar=et.setMonth(Sr,et.getMonth(Sr)+1),vr=et.addDate(ar,-1);return Ft(Sr,Bn)&&Ft(vr,Bn)}:null,_r=fe.createElement("button",{type:"button",key:"year","aria-label":Me.yearSelect,onClick:function(){Ht("year")},tabIndex:-1,className:"".concat(ge,"-year-btn")},nn(rt,{locale:Me,format:Me.yearFormat,generateConfig:et}));return fe.createElement(Qr.Provider,{value:Pn},fe.createElement("div",{className:mn},fe.createElement(Sa,{superOffset:function(Bn){return et.addYear(rt,Bn)},onChange:Tt,getStart:function(Bn){return et.setMonth(Bn,0)},getEnd:function(Bn){return et.setMonth(Bn,11)}},_r),fe.createElement(Wa,(0,qe.Z)({},re,{disabledDate:Un,titleFormat:Me.fieldMonthFormat,colNum:3,rowNum:4,baseDate:Rt,getCellDate:In,getCellText:zn,getCellClassName:Gn}))))}function Qi(re){var ge=re.prefixCls,Me=re.locale,et=re.generateConfig,rt=re.pickerValue,Ft=re.onPickerValueChange,Tt=re.onModeChange,Ht="".concat(ge,"-quarter-panel"),mn=Ya(re,"quarter"),xn=(0,Ue.Z)(mn,1),Gt=xn[0],Pn=et.setMonth(rt,0),Rt=function(Un,_r){return et.addMonth(Un,_r*3)},Tn=function(Un){return nn(Un,{locale:Me,format:Me.cellQuarterFormat,generateConfig:et})},In=function(){return(0,Lt.Z)({},"".concat(ge,"-cell-in-view"),!0)},zn=fe.createElement("button",{type:"button",key:"year","aria-label":Me.yearSelect,onClick:function(){Tt("year")},tabIndex:-1,className:"".concat(ge,"-year-btn")},nn(rt,{locale:Me,format:Me.yearFormat,generateConfig:et}));return fe.createElement(Qr.Provider,{value:Gt},fe.createElement("div",{className:Ht},fe.createElement(Sa,{superOffset:function(Un){return et.addYear(rt,Un)},onChange:Ft,getStart:function(Un){return et.setMonth(Un,0)},getEnd:function(Un){return et.setMonth(Un,11)}},zn),fe.createElement(Wa,(0,qe.Z)({},re,{titleFormat:Me.fieldQuarterFormat,colNum:4,rowNum:1,baseDate:Pn,getCellDate:Rt,getCellText:Tn,getCellClassName:In}))))}function ga(re){var ge=re.prefixCls,Me=re.generateConfig,et=re.locale,rt=re.value,Ft=re.hoverValue,Tt=re.hoverRangeValue,Ht=et.locale,mn="".concat(ge,"-week-panel-row"),xn=function(Pn){var Rt={};if(Tt){var Tn=(0,Ue.Z)(Tt,2),In=Tn[0],zn=Tn[1],Gn=Wn(Me,Ht,In,Pn),Un=Wn(Me,Ht,zn,Pn);Rt["".concat(mn,"-range-start")]=Gn,Rt["".concat(mn,"-range-end")]=Un,Rt["".concat(mn,"-range-hover")]=!Gn&&!Un&&cn(Me,In,zn,Pn)}return Ft&&(Rt["".concat(mn,"-hover")]=Ft.some(function(_r){return Wn(Me,Ht,Pn,_r)})),bt()(mn,(0,Lt.Z)({},"".concat(mn,"-selected"),!Tt&&Wn(Me,Ht,rt,Pn)),Rt)};return fe.createElement(ia,(0,qe.Z)({},re,{mode:"week",panelName:"week",rowClassName:xn}))}function Ri(re){var ge=re.prefixCls,Me=re.locale,et=re.generateConfig,rt=re.pickerValue,Ft=re.disabledDate,Tt=re.onPickerValueChange,Ht=re.onModeChange,mn="".concat(ge,"-year-panel"),xn=Ya(re,"year"),Gt=(0,Ue.Z)(xn,1),Pn=Gt[0],Rt=function(vr){var Ma=Math.floor(et.getYear(vr)/10)*10;return et.setYear(vr,Ma)},Tn=function(vr){var Ma=Rt(vr);return et.addYear(Ma,9)},In=Rt(rt),zn=Tn(rt),Gn=et.addYear(In,-1),Un=function(vr,Ma){return et.addYear(vr,Ma)},_r=function(vr){return nn(vr,{locale:Me,format:Me.cellYearFormat,generateConfig:et})},pr=function(vr){return(0,Lt.Z)({},"".concat(ge,"-cell-in-view"),$a(et,vr,In)||$a(et,vr,zn)||cn(et,In,zn,vr))},Bn=Ft?function(ar,vr){var Ma=et.setMonth(ar,0),da=et.setDate(Ma,1),Zr=et.addYear(da,1),oa=et.addDate(Zr,-1);return Ft(da,vr)&&Ft(oa,vr)}:null,Sr=fe.createElement("button",{type:"button",key:"decade","aria-label":Me.decadeSelect,onClick:function(){Ht("decade")},tabIndex:-1,className:"".concat(ge,"-decade-btn")},nn(In,{locale:Me,format:Me.yearFormat,generateConfig:et}),"-",nn(zn,{locale:Me,format:Me.yearFormat,generateConfig:et}));return fe.createElement(Qr.Provider,{value:Pn},fe.createElement("div",{className:mn},fe.createElement(Sa,{superOffset:function(vr){return et.addYear(rt,vr*10)},onChange:Tt,getStart:Rt,getEnd:Tn},Sr),fe.createElement(Wa,(0,qe.Z)({},re,{disabledDate:Bn,titleFormat:Me.fieldYearFormat,colNum:3,rowNum:4,baseDate:Gn,getCellDate:Un,getCellText:_r,getCellClassName:pr}))))}var Pi={date:ia,datetime:xo,week:ga,month:Ei,quarter:Qi,year:Ri,decade:Bo,time:oi};function Fo(re,ge){var Me,et=re.locale,rt=re.generateConfig,Ft=re.direction,Tt=re.prefixCls,Ht=re.tabIndex,mn=Ht===void 0?0:Ht,xn=re.multiple,Gt=re.defaultValue,Pn=re.value,Rt=re.onChange,Tn=re.onSelect,In=re.defaultPickerValue,zn=re.pickerValue,Gn=re.onPickerValueChange,Un=re.mode,_r=re.onPanelChange,pr=re.picker,Bn=pr===void 0?"date":pr,Sr=re.showTime,ar=re.hoverValue,vr=re.hoverRangeValue,Ma=re.cellRender,da=re.dateRender,Zr=re.monthCellRender,oa=re.components,Ga=oa===void 0?{}:oa,ya=re.hideHeader,Ur=((Me=fe.useContext(ae))===null||Me===void 0?void 0:Me.prefixCls)||Tt||"rc-picker",kr=fe.useRef();fe.useImperativeHandle(ge,function(){return{nativeElement:kr.current}});var $r=Ti(re),Yr=(0,Ue.Z)($r,4),Za=Yr[0],Ta=Yr[1],sa=Yr[2],Ea=Yr[3],Wr=Xr(et,Ta),ba=Bn==="date"&&Sr?"datetime":Bn,va=fe.useMemo(function(){return Ni(ba,sa,Ea,Za,Wr)},[ba,sa,Ea,Za,Wr]),ri=rt.getNow(),di=(0,mt.C8)(Bn,{value:Un,postState:function(Aa){return Aa||"date"}}),mi=(0,Ue.Z)(di,2),vi=mi[0],ei=mi[1],Zi=vi==="date"&&va?"datetime":vi,dn=ma(rt,et,ba),Oi=(0,mt.C8)(Gt,{value:Pn}),ao=(0,Ue.Z)(Oi,2),xi=ao[0],io=ao[1],gi=fe.useMemo(function(){var Ka=Xt(xi).filter(function(Aa){return Aa});return xn?Ka:Ka.slice(0,1)},[xi,xn]),oo=(0,mt.zX)(function(Ka){io(Ka),Rt&&(Ka===null||gi.length!==Ka.length||gi.some(function(Aa,no){return!Rn(rt,et,Aa,Ka[no],ba)}))&&(Rt==null||Rt(xn?Ka:Ka[0]))}),Vi=(0,mt.zX)(function(Ka){if(Tn==null||Tn(Ka),vi===Bn){var Aa=xn?dn(gi,Ka):[Ka];oo(Aa)}}),zi=(0,mt.C8)(In||gi[0]||ri,{value:zn}),fo=(0,Ue.Z)(zi,2),Ca=fo[0],ka=fo[1];fe.useEffect(function(){gi[0]&&!zn&&ka(gi[0])},[gi[0]]);var Xi=function(Aa,no){_r==null||_r(Aa||zn,no||vi)},vo=function(Aa){var no=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;ka(Aa),Gn==null||Gn(Aa),no&&Xi(Aa)},jo=function(Aa,no){ei(Aa),no&&vo(no),Xi(no,Aa)},to=function(Aa){if(Vi(Aa),vo(Aa),vi!==Bn){var no=["decade","year"],xa=[].concat(no,["month"]),Va={quarter:[].concat(no,["quarter"]),week:[].concat((0,it.Z)(xa),["week"]),date:[].concat((0,it.Z)(xa),["date"])},ko=Va[Bn]||xa,Jo=ko.indexOf(vi),Cl=ko[Jo+1];Cl&&jo(Cl,Aa)}},bl=fe.useMemo(function(){var Ka,Aa;if(Array.isArray(vr)){var no=(0,Ue.Z)(vr,2);Ka=no[0],Aa=no[1]}else Ka=vr;return!Ka&&!Aa?null:(Ka=Ka||Aa,Aa=Aa||Ka,rt.isAfter(Ka,Aa)?[Aa,Ka]:[Ka,Aa])},[vr,rt]),Ji=or(Ma,da,Zr),lo=Ga[Zi]||Pi[Zi]||ia,go=fe.useContext(jr),Lr=fe.useMemo(function(){return(0,Le.Z)((0,Le.Z)({},go),{},{hideHeader:ya})},[go,ya]),yi="".concat(Ur,"-panel"),Kl=on(re,["showWeek","prevIcon","nextIcon","superPrevIcon","superNextIcon","disabledDate","minDate","maxDate","onHover"]);return fe.createElement(jr.Provider,{value:Lr},fe.createElement("div",{ref:kr,tabIndex:mn,className:bt()(yi,(0,Lt.Z)({},"".concat(yi,"-rtl"),Ft==="rtl"))},fe.createElement(lo,(0,qe.Z)({},Kl,{showTime:va,prefixCls:Ur,locale:Wr,generateConfig:rt,onModeChange:jo,pickerValue:Ca,onPickerValueChange:function(Aa){vo(Aa,!0)},value:gi[0],onSelect:to,values:gi,cellRender:Ji,hoverRangeValue:bl,hoverValue:ar}))))}var Bi=fe.memo(fe.forwardRef(Fo)),Fi=Bi;function So(re){var ge=re.picker,Me=re.multiplePanel,et=re.pickerValue,rt=re.onPickerValueChange,Ft=re.needConfirm,Tt=re.onSubmit,Ht=re.range,mn=re.hoverValue,xn=fe.useContext(ae),Gt=xn.prefixCls,Pn=xn.generateConfig,Rt=fe.useCallback(function(_r,pr){return so(Pn,ge,_r,pr)},[Pn,ge]),Tn=fe.useMemo(function(){return Rt(et,1)},[et,Rt]),In=function(pr){rt(Rt(pr,-1))},zn={onCellDblClick:function(){Ft&&Tt()}},Gn=ge==="time",Un=(0,Le.Z)((0,Le.Z)({},re),{},{hoverValue:null,hoverRangeValue:null,hideHeader:Gn});return Ht?Un.hoverRangeValue=mn:Un.hoverValue=mn,Me?fe.createElement("div",{className:"".concat(Gt,"-panels")},fe.createElement(jr.Provider,{value:(0,Le.Z)((0,Le.Z)({},zn),{},{hideNext:!0})},fe.createElement(Fi,Un)),fe.createElement(jr.Provider,{value:(0,Le.Z)((0,Le.Z)({},zn),{},{hidePrev:!0})},fe.createElement(Fi,(0,qe.Z)({},Un,{pickerValue:Tn,onPickerValueChange:In})))):fe.createElement(jr.Provider,{value:(0,Le.Z)({},zn)},fe.createElement(Fi,Un))}function De(re){return typeof re=="function"?re():re}function jt(re){var ge=re.prefixCls,Me=re.presets,et=re.onClick,rt=re.onHover;return Me.length?fe.createElement("div",{className:"".concat(ge,"-presets")},fe.createElement("ul",null,Me.map(function(Ft,Tt){var Ht=Ft.label,mn=Ft.value;return fe.createElement("li",{key:Tt,onClick:function(){et(De(mn))},onMouseEnter:function(){rt(De(mn))},onMouseLeave:function(){rt(null)}},Ht)}))):null}function hn(re){var ge=re.panelRender,Me=re.internalMode,et=re.picker,rt=re.showNow,Ft=re.range,Tt=re.multiple,Ht=re.activeInfo,mn=Ht===void 0?[0,0,0]:Ht,xn=re.presets,Gt=re.onPresetHover,Pn=re.onPresetSubmit,Rt=re.onFocus,Tn=re.onBlur,In=re.onPanelMouseDown,zn=re.direction,Gn=re.value,Un=re.onSelect,_r=re.isInvalid,pr=re.defaultOpenValue,Bn=re.onOk,Sr=re.onSubmit,ar=fe.useContext(ae),vr=ar.prefixCls,Ma="".concat(vr,"-panel"),da=zn==="rtl",Zr=fe.useRef(null),oa=fe.useRef(null),Ga=fe.useState(0),ya=(0,Ue.Z)(Ga,2),Ur=ya[0],kr=ya[1],$r=fe.useState(0),Yr=(0,Ue.Z)($r,2),Za=Yr[0],Ta=Yr[1],sa=fe.useState(0),Ea=(0,Ue.Z)(sa,2),Wr=Ea[0],ba=Ea[1],va=function(to){to.width&&kr(to.width)},ri=(0,Ue.Z)(mn,3),di=ri[0],mi=ri[1],vi=ri[2],ei=fe.useState(0),Zi=(0,Ue.Z)(ei,2),dn=Zi[0],Oi=Zi[1];fe.useEffect(function(){Oi(10)},[di]),fe.useEffect(function(){if(Ft&&oa.current){var jo,to=((jo=Zr.current)===null||jo===void 0?void 0:jo.offsetWidth)||0,bl=oa.current.getBoundingClientRect();if(!bl.height||bl.right<0){Oi(function(Lr){return Math.max(0,Lr-1)});return}var Ji=(da?mi-to:di)-bl.left;if(ba(Ji),Ur&&Ur<vi){var lo=da?bl.right-(mi-to+Ur):di+to-bl.left-Ur,go=Math.max(0,lo);Ta(go)}else Ta(0)}},[dn,da,Ur,di,mi,vi,Ft]);function ao(jo){return jo.filter(function(to){return to})}var xi=fe.useMemo(function(){return ao(Xt(Gn))},[Gn]),io=et==="time"&&!xi.length,gi=fe.useMemo(function(){return io?ao([pr]):xi},[io,xi,pr]),oo=io?pr:xi,Vi=fe.useMemo(function(){return gi.length?gi.some(function(jo){return _r(jo)}):!0},[gi,_r]),zi=function(){io&&Un(pr),Bn(),Sr()},fo=fe.createElement("div",{className:"".concat(vr,"-panel-layout")},fe.createElement(jt,{prefixCls:vr,presets:xn,onClick:Pn,onHover:Gt}),fe.createElement("div",null,fe.createElement(So,(0,qe.Z)({},re,{value:oo})),fe.createElement(Ha,(0,qe.Z)({},re,{showNow:Tt?!1:rt,invalid:Vi,onSubmit:zi}))));ge&&(fo=ge(fo));var Ca="".concat(Ma,"-container"),ka="marginLeft",Xi="marginRight",vo=fe.createElement("div",{onMouseDown:In,tabIndex:-1,className:bt()(Ca,"".concat(vr,"-").concat(Me,"-panel-container")),style:(0,Lt.Z)((0,Lt.Z)({},da?Xi:ka,Za),da?ka:Xi,"auto"),onFocus:Rt,onBlur:Tn},fo);return Ft&&(vo=fe.createElement("div",{onMouseDown:In,ref:oa,className:bt()("".concat(vr,"-range-wrapper"),"".concat(vr,"-").concat(et,"-range-wrapper"))},fe.createElement("div",{ref:Zr,className:"".concat(vr,"-range-arrow"),style:{left:Wr}}),fe.createElement(Hn.Z,{onResize:va},vo))),vo}var Cn=ne(42244);function _t(re,ge){var Me=re.format,et=re.maskFormat,rt=re.generateConfig,Ft=re.locale,Tt=re.preserveInvalidOnBlur,Ht=re.inputReadOnly,mn=re.required,xn=re["aria-required"],Gt=re.onSubmit,Pn=re.onFocus,Rt=re.onBlur,Tn=re.onInputChange,In=re.onInvalid,zn=re.open,Gn=re.onOpenChange,Un=re.onKeyDown,_r=re.onChange,pr=re.activeHelp,Bn=re.name,Sr=re.autoComplete,ar=re.id,vr=re.value,Ma=re.invalid,da=re.placeholder,Zr=re.disabled,oa=re.activeIndex,Ga=re.allHelp,ya=re.picker,Ur=function(Wr,ba){var va=rt.locale.parse(Ft.locale,Wr,[ba]);return va&&rt.isValidate(va)?va:null},kr=Me[0],$r=fe.useCallback(function(Ea){return nn(Ea,{locale:Ft,format:kr,generateConfig:rt})},[Ft,rt,kr]),Yr=fe.useMemo(function(){return vr.map($r)},[vr,$r]),Za=fe.useMemo(function(){var Ea=ya==="time"?8:10,Wr=typeof kr=="function"?kr(rt.getNow()).length:kr.length;return Math.max(Ea,Wr)+2},[kr,ya,rt]),Ta=function(Wr){for(var ba=0;ba<Me.length;ba+=1){var va=Me[ba];if(typeof va=="string"){var ri=Ur(Wr,va);if(ri)return ri}}return!1},sa=function(Wr){function ba(di){return Wr!==void 0?di[Wr]:di}var va=(0,en.Z)(re,{aria:!0,data:!0}),ri=(0,Le.Z)((0,Le.Z)({},va),{},{format:et,validateFormat:function(mi){return!!Ta(mi)},preserveInvalidOnBlur:Tt,readOnly:Ht,required:mn,"aria-required":xn,name:Bn,autoComplete:Sr,size:Za,id:ba(ar),value:ba(Yr)||"",invalid:ba(Ma),placeholder:ba(da),active:oa===Wr,helped:Ga||pr&&oa===Wr,disabled:ba(Zr),onFocus:function(mi){Pn(mi,Wr)},onBlur:function(mi){Rt(mi,Wr)},onSubmit:Gt,onChange:function(mi){Tn();var vi=Ta(mi);if(vi){In(!1,Wr),_r(vi,Wr);return}In(!!mi,Wr)},onHelp:function(){Gn(!0,{index:Wr})},onKeyDown:function(mi){var vi=!1;if(Un==null||Un(mi,function(){vi=!0}),!mi.defaultPrevented&&!vi)switch(mi.key){case"Escape":Gn(!1,{index:Wr});break;case"Enter":zn||Gn(!0);break}}},ge==null?void 0:ge({valueTexts:Yr}));return Object.keys(ri).forEach(function(di){ri[di]===void 0&&delete ri[di]}),ri};return[sa,$r]}var $t=["onMouseEnter","onMouseLeave"];function Ut(re){return fe.useMemo(function(){return on(re,$t)},[re])}var an=["icon","type"],qt=["onClear"];function An(re){var ge=re.icon,Me=re.type,et=(0,Cn.Z)(re,an),rt=fe.useContext(ae),Ft=rt.prefixCls;return ge?fe.createElement("span",(0,qe.Z)({className:"".concat(Ft,"-").concat(Me)},et),ge):null}function fr(re){var ge=re.onClear,Me=(0,Cn.Z)(re,qt);return fe.createElement(An,(0,qe.Z)({},Me,{type:"clear",role:"button",onMouseDown:function(rt){rt.preventDefault()},onClick:function(rt){rt.stopPropagation(),ge()}}))}var cr=ne(38705),$n=ne(17212),Pa=["YYYY","MM","DD","HH","mm","ss","SSS"],ta="\u9867",Ba=function(){function re(ge){(0,cr.Z)(this,re),(0,Lt.Z)(this,"format",void 0),(0,Lt.Z)(this,"maskFormat",void 0),(0,Lt.Z)(this,"cells",void 0),(0,Lt.Z)(this,"maskCells",void 0),this.format=ge;var Me=Pa.map(function(Ht){return"(".concat(Ht,")")}).join("|"),et=new RegExp(Me,"g");this.maskFormat=ge.replace(et,function(Ht){return ta.repeat(Ht.length)});var rt=new RegExp("(".concat(Pa.join("|"),")")),Ft=(ge.split(rt)||[]).filter(function(Ht){return Ht}),Tt=0;this.cells=Ft.map(function(Ht){var mn=Pa.includes(Ht),xn=Tt,Gt=Tt+Ht.length;return Tt=Gt,{text:Ht,mask:mn,start:xn,end:Gt}}),this.maskCells=this.cells.filter(function(Ht){return Ht.mask})}return(0,$n.Z)(re,[{key:"getSelection",value:function(Me){var et=this.maskCells[Me]||{},rt=et.start,Ft=et.end;return[rt||0,Ft||0]}},{key:"match",value:function(Me){for(var et=0;et<this.maskFormat.length;et+=1){var rt=this.maskFormat[et],Ft=Me[et];if(!Ft||rt!==ta&&rt!==Ft)return!1}return!0}},{key:"size",value:function(){return this.maskCells.length}},{key:"getMaskCellIndex",value:function(Me){for(var et=Number.MAX_SAFE_INTEGER,rt=0,Ft=0;Ft<this.maskCells.length;Ft+=1){var Tt=this.maskCells[Ft],Ht=Tt.start,mn=Tt.end;if(Me>=Ht&&Me<=mn)return Ft;var xn=Math.min(Math.abs(Me-Ht),Math.abs(Me-mn));xn<et&&(et=xn,rt=Ft)}return rt}}]),re}();function bi(re){var ge={YYYY:[0,9999,new Date().getFullYear()],MM:[1,12],DD:[1,31],HH:[0,23],mm:[0,59],ss:[0,59],SSS:[0,999]};return ge[re]}var Hi=["active","showActiveCls","suffixIcon","format","validateFormat","onChange","onInput","helped","onHelp","onSubmit","onKeyDown","preserveInvalidOnBlur","invalid","clearIcon"],uo=fe.forwardRef(function(re,ge){var Me=re.active,et=re.showActiveCls,rt=et===void 0?!0:et,Ft=re.suffixIcon,Tt=re.format,Ht=re.validateFormat,mn=re.onChange,xn=re.onInput,Gt=re.helped,Pn=re.onHelp,Rt=re.onSubmit,Tn=re.onKeyDown,In=re.preserveInvalidOnBlur,zn=In===void 0?!1:In,Gn=re.invalid,Un=re.clearIcon,_r=(0,Cn.Z)(re,Hi),pr=re.value,Bn=re.onFocus,Sr=re.onBlur,ar=re.onMouseUp,vr=fe.useContext(ae),Ma=vr.prefixCls,da=vr.input,Zr=da===void 0?"input":da,oa="".concat(Ma,"-input"),Ga=fe.useState(!1),ya=(0,Ue.Z)(Ga,2),Ur=ya[0],kr=ya[1],$r=fe.useState(pr),Yr=(0,Ue.Z)($r,2),Za=Yr[0],Ta=Yr[1],sa=fe.useState(""),Ea=(0,Ue.Z)(sa,2),Wr=Ea[0],ba=Ea[1],va=fe.useState(null),ri=(0,Ue.Z)(va,2),di=ri[0],mi=ri[1],vi=fe.useState(null),ei=(0,Ue.Z)(vi,2),Zi=ei[0],dn=ei[1],Oi=Za||"";fe.useEffect(function(){Ta(pr)},[pr]);var ao=fe.useRef(),xi=fe.useRef();fe.useImperativeHandle(ge,function(){return{nativeElement:ao.current,inputElement:xi.current,focus:function(Aa){xi.current.focus(Aa)},blur:function(){xi.current.blur()}}});var io=fe.useMemo(function(){return new Ba(Tt||"")},[Tt]),gi=fe.useMemo(function(){return Gt?[0,0]:io.getSelection(di)},[io,di,Gt]),oo=(0,Ue.Z)(gi,2),Vi=oo[0],zi=oo[1],fo=function(Aa){Aa&&Aa!==Tt&&Aa!==pr&&Pn()},Ca=(0,mt.zX)(function(Ka){Ht(Ka)&&mn(Ka),Ta(Ka),fo(Ka)}),ka=function(Aa){if(!Tt){var no=Aa.target.value;fo(no),Ta(no),mn(no)}},Xi=function(Aa){var no=Aa.clipboardData.getData("text");Ht(no)&&Ca(no)},vo=fe.useRef(!1),jo=function(){vo.current=!0},to=function(Aa){var no=Aa.target,xa=no.selectionStart,Va=io.getMaskCellIndex(xa);mi(Va),dn({}),ar==null||ar(Aa),vo.current=!1},bl=function(Aa){kr(!0),mi(0),ba(""),Bn(Aa)},Ji=function(Aa){Sr(Aa)},lo=function(Aa){kr(!1),Ji(Aa)};qr(Me,function(){!Me&&!zn&&Ta(pr)});var go=function(Aa){Aa.key==="Enter"&&Ht(Oi)&&Rt(),Tn==null||Tn(Aa)},Lr=function(Aa){go(Aa);var no=Aa.key,xa=null,Va=null,ko=zi-Vi,Jo=Tt.slice(Vi,zi),Cl=function(ue){mi(function(ke){var Ze=ke+ue;return Ze=Math.max(Ze,0),Ze=Math.min(Ze,io.size()-1),Ze})},Ml=function(ue){var ke=bi(Jo),Ze=(0,Ue.Z)(ke,3),Vt=Ze[0],Nn=Ze[1],Cr=Ze[2],kn=Oi.slice(Vi,zi),gn=Number(kn);if(isNaN(gn))return String(Cr||(ue>0?Vt:Nn));var Yt=gn+ue,Ln=Nn-Vt+1;return String(Vt+(Ln+Yt-Vt)%Ln)};switch(no){case"Backspace":case"Delete":xa="",Va=Jo;break;case"ArrowLeft":xa="",Cl(-1);break;case"ArrowRight":xa="",Cl(1);break;case"ArrowUp":xa="",Va=Ml(1);break;case"ArrowDown":xa="",Va=Ml(-1);break;default:isNaN(Number(no))||(xa=Wr+no,Va=xa);break}if(xa!==null&&(ba(xa),xa.length>=ko&&(Cl(1),ba(""))),Va!==null){var Ql=Oi.slice(0,Vi)+ot(Va,ko)+Oi.slice(zi);Ca(Ql.slice(0,Tt.length))}dn({})},yi=fe.useRef();(0,Zt.Z)(function(){if(!(!Ur||!Tt||vo.current)){if(!io.match(Oi)){Ca(Tt);return}return xi.current.setSelectionRange(Vi,zi),yi.current=(0,Er.Z)(function(){xi.current.setSelectionRange(Vi,zi)}),function(){Er.Z.cancel(yi.current)}}},[io,Tt,Ur,Oi,di,Vi,zi,Zi,Ca]);var Kl=Tt?{onFocus:bl,onBlur:lo,onKeyDown:Lr,onMouseDown:jo,onMouseUp:to,onPaste:Xi}:{};return fe.createElement("div",{ref:ao,className:bt()(oa,(0,Lt.Z)((0,Lt.Z)({},"".concat(oa,"-active"),Me&&rt),"".concat(oa,"-placeholder"),Gt))},fe.createElement(Zr,(0,qe.Z)({ref:xi,"aria-invalid":Gn,autoComplete:"off"},_r,{onKeyDown:go,onBlur:Ji},Kl,{value:Oi,onChange:ka})),fe.createElement(An,{type:"suffix",icon:Ft}),Un)}),pl=uo,ol=["id","prefix","clearIcon","suffixIcon","separator","activeIndex","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","value","onChange","onSubmit","onInputChange","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onActiveInfo","placement","onMouseDown","required","aria-required","autoFocus","tabIndex"],ll=["index"];function nl(re,ge){var Me=re.id,et=re.prefix,rt=re.clearIcon,Ft=re.suffixIcon,Tt=re.separator,Ht=Tt===void 0?"~":Tt,mn=re.activeIndex,xn=re.activeHelp,Gt=re.allHelp,Pn=re.focused,Rt=re.onFocus,Tn=re.onBlur,In=re.onKeyDown,zn=re.locale,Gn=re.generateConfig,Un=re.placeholder,_r=re.className,pr=re.style,Bn=re.onClick,Sr=re.onClear,ar=re.value,vr=re.onChange,Ma=re.onSubmit,da=re.onInputChange,Zr=re.format,oa=re.maskFormat,Ga=re.preserveInvalidOnBlur,ya=re.onInvalid,Ur=re.disabled,kr=re.invalid,$r=re.inputReadOnly,Yr=re.direction,Za=re.onOpenChange,Ta=re.onActiveInfo,sa=re.placement,Ea=re.onMouseDown,Wr=re.required,ba=re["aria-required"],va=re.autoFocus,ri=re.tabIndex,di=(0,Cn.Z)(re,ol),mi=Yr==="rtl",vi=fe.useContext(ae),ei=vi.prefixCls,Zi=fe.useMemo(function(){if(typeof Me=="string")return[Me];var Ji=Me||{};return[Ji.start,Ji.end]},[Me]),dn=fe.useRef(),Oi=fe.useRef(),ao=fe.useRef(),xi=function(lo){var go;return(go=[Oi,ao][lo])===null||go===void 0?void 0:go.current};fe.useImperativeHandle(ge,function(){return{nativeElement:dn.current,focus:function(lo){if((0,Vr.Z)(lo)==="object"){var go,Lr=lo||{},yi=Lr.index,Kl=yi===void 0?0:yi,Ka=(0,Cn.Z)(Lr,ll);(go=xi(Kl))===null||go===void 0||go.focus(Ka)}else{var Aa;(Aa=xi(lo!=null?lo:0))===null||Aa===void 0||Aa.focus()}},blur:function(){var lo,go;(lo=xi(0))===null||lo===void 0||lo.blur(),(go=xi(1))===null||go===void 0||go.blur()}}});var io=Ut(di),gi=fe.useMemo(function(){return Array.isArray(Un)?Un:[Un,Un]},[Un]),oo=_t((0,Le.Z)((0,Le.Z)({},re),{},{id:Zi,placeholder:gi})),Vi=(0,Ue.Z)(oo,1),zi=Vi[0],fo=fe.useState({position:"absolute",width:0}),Ca=(0,Ue.Z)(fo,2),ka=Ca[0],Xi=Ca[1],vo=(0,mt.zX)(function(){var Ji=xi(mn);if(Ji){var lo=Ji.nativeElement.getBoundingClientRect(),go=dn.current.getBoundingClientRect(),Lr=lo.left-go.left;Xi(function(yi){return(0,Le.Z)((0,Le.Z)({},yi),{},{width:lo.width,left:Lr})}),Ta([lo.left,lo.right,go.width])}});fe.useEffect(function(){vo()},[mn]);var jo=rt&&(ar[0]&&!Ur[0]||ar[1]&&!Ur[1]),to=va&&!Ur[0],bl=va&&!to&&!Ur[1];return fe.createElement(Hn.Z,{onResize:vo},fe.createElement("div",(0,qe.Z)({},io,{className:bt()(ei,"".concat(ei,"-range"),(0,Lt.Z)((0,Lt.Z)((0,Lt.Z)((0,Lt.Z)({},"".concat(ei,"-focused"),Pn),"".concat(ei,"-disabled"),Ur.every(function(Ji){return Ji})),"".concat(ei,"-invalid"),kr.some(function(Ji){return Ji})),"".concat(ei,"-rtl"),mi),_r),style:pr,ref:dn,onClick:Bn,onMouseDown:function(lo){var go=lo.target;go!==Oi.current.inputElement&&go!==ao.current.inputElement&&lo.preventDefault(),Ea==null||Ea(lo)}}),et&&fe.createElement("div",{className:"".concat(ei,"-prefix")},et),fe.createElement(pl,(0,qe.Z)({ref:Oi},zi(0),{autoFocus:to,tabIndex:ri,"date-range":"start"})),fe.createElement("div",{className:"".concat(ei,"-range-separator")},Ht),fe.createElement(pl,(0,qe.Z)({ref:ao},zi(1),{autoFocus:bl,tabIndex:ri,"date-range":"end"})),fe.createElement("div",{className:"".concat(ei,"-active-bar"),style:ka}),fe.createElement(An,{type:"suffix",icon:Ft}),jo&&fe.createElement(fr,{icon:rt,onClear:Sr})))}var Do=fe.forwardRef(nl),co=Do;function jl(re,ge){var Me=re!=null?re:ge;return Array.isArray(Me)?Me:[Me,Me]}function yl(re){return re===1?"end":"start"}function Ul(re,ge){var Me=la(re,function(){var qi=re.disabled,Ii=re.allowEmpty,Yi=jl(qi,!1),La=jl(Ii,!1);return{disabled:Yi,allowEmpty:La}}),et=(0,Ue.Z)(Me,6),rt=et[0],Ft=et[1],Tt=et[2],Ht=et[3],mn=et[4],xn=et[5],Gt=rt.prefixCls,Pn=rt.styles,Rt=rt.classNames,Tn=rt.defaultValue,In=rt.value,zn=rt.needConfirm,Gn=rt.onKeyDown,Un=rt.disabled,_r=rt.allowEmpty,pr=rt.disabledDate,Bn=rt.minDate,Sr=rt.maxDate,ar=rt.defaultOpen,vr=rt.open,Ma=rt.onOpenChange,da=rt.locale,Zr=rt.generateConfig,oa=rt.picker,Ga=rt.showNow,ya=rt.showToday,Ur=rt.showTime,kr=rt.mode,$r=rt.onPanelChange,Yr=rt.onCalendarChange,Za=rt.onOk,Ta=rt.defaultPickerValue,sa=rt.pickerValue,Ea=rt.onPickerValueChange,Wr=rt.inputReadOnly,ba=rt.suffixIcon,va=rt.onFocus,ri=rt.onBlur,di=rt.presets,mi=rt.ranges,vi=rt.components,ei=rt.cellRender,Zi=rt.dateRender,dn=rt.monthCellRender,Oi=rt.onClick,ao=br(ge),xi=_n(vr,ar,Un,Ma),io=(0,Ue.Z)(xi,2),gi=io[0],oo=io[1],Vi=function(Ii,Yi){(Un.some(function(La){return!La})||!Ii)&&oo(Ii,Yi)},zi=Mt(Zr,da,Ht,!0,!1,Tn,In,Yr,Za),fo=(0,Ue.Z)(zi,5),Ca=fo[0],ka=fo[1],Xi=fo[2],vo=fo[3],jo=fo[4],to=Xi(),bl=Xa(Un,_r,gi),Ji=(0,Ue.Z)(bl,9),lo=Ji[0],go=Ji[1],Lr=Ji[2],yi=Ji[3],Kl=Ji[4],Ka=Ji[5],Aa=Ji[6],no=Ji[7],xa=Ji[8],Va=function(Ii,Yi){go(!0),va==null||va(Ii,{range:yl(Yi!=null?Yi:yi)})},ko=function(Ii,Yi){go(!1),ri==null||ri(Ii,{range:yl(Yi!=null?Yi:yi)})},Jo=fe.useMemo(function(){if(!Ur)return null;var qi=Ur.disabledTime,Ii=qi?function(Yi){var La=yl(yi),rl=Yn(to,Aa,yi);return qi(Yi,La,{from:rl})}:void 0;return(0,Le.Z)((0,Le.Z)({},Ur),{},{disabledTime:Ii})},[Ur,yi,to,Aa]),Cl=(0,mt.C8)([oa,oa],{value:kr}),Ml=(0,Ue.Z)(Cl,2),Ql=Ml[0],Bs=Ml[1],ue=Ql[yi]||oa,ke=ue==="date"&&Jo?"datetime":ue,Ze=ke===oa&&ke!=="time",Vt=sr(oa,ue,Ga,ya,!0),Nn=Nt(rt,Ca,ka,Xi,vo,Un,Ht,lo,gi,xn),Cr=(0,Ue.Z)(Nn,2),kn=Cr[0],gn=Cr[1],Yt=si(to,Un,Aa,Zr,da,pr),Ln=ra(to,xn,_r),Ia=(0,Ue.Z)(Ln,2),ln=Ia[0],Wt=Ia[1],un=Rr(Zr,da,to,Ql,gi,yi,Ft,Ze,Ta,sa,Jo==null?void 0:Jo.defaultOpenValue,Ea,Bn,Sr),er=(0,Ue.Z)(un,2),Xn=er[0],Zn=er[1],qn=(0,mt.zX)(function(qi,Ii,Yi){var La=zt(Ql,yi,Ii);if((La[0]!==Ql[0]||La[1]!==Ql[1])&&Bs(La),$r&&Yi!==!1){var rl=(0,it.Z)(to);qi&&(rl[yi]=qi),$r(rl,La)}}),yn=function(Ii,Yi){return zt(to,Yi,Ii)},lr=function(Ii,Yi){var La=to;Ii&&(La=yn(Ii,yi)),no(yi);var rl=Ka(La);vo(La),kn(yi,rl===null),rl===null?Vi(!1,{force:!0}):Yi||ao.current.focus({index:rl})},Dr=function(Ii){var Yi,La=Ii.target.getRootNode();if(!ao.current.nativeElement.contains((Yi=La.activeElement)!==null&&Yi!==void 0?Yi:document.activeElement)){var rl=Un.findIndex(function(_s){return!_s});rl>=0&&ao.current.focus({index:rl})}Vi(!0),Oi==null||Oi(Ii)},dr=function(){gn(null),Vi(!1,{force:!0})},ki=fe.useState(null),Gi=(0,Ue.Z)(ki,2),Ui=Gi[0],_o=Gi[1],Tr=fe.useState(null),Mi=(0,Ue.Z)(Tr,2),eo=Mi[0],tr=Mi[1],yo=fe.useMemo(function(){return eo||to},[to,eo]);fe.useEffect(function(){gi||tr(null)},[gi]);var Lo=fe.useState([0,0,0]),Io=(0,Ue.Z)(Lo,2),nr=Io[0],fi=Io[1],ul=Nr(di,mi),No=function(Ii){tr(Ii),_o("preset")},pi=function(Ii){var Yi=gn(Ii);Yi&&Vi(!1,{force:!0})},xl=function(Ii){lr(Ii)},wo=function(Ii){tr(Ii?yn(Ii,yi):null),_o("cell")},cl=function(Ii){Vi(!0),Va(Ii)},Qo=function(){Lr("panel")},Ho=function(Ii){var Yi=zt(to,yi,Ii);vo(Yi),!zn&&!Tt&&Ft===ke&&lr(Ii)},qo=function(){Vi(!1)},$o=or(ei,Zi,dn,yl(yi)),Al=to[yi]||null,Vs=(0,mt.zX)(function(qi){return xn(qi,{activeIndex:yi})}),_i=fe.useMemo(function(){var qi=(0,en.Z)(rt,!1),Ii=(0,Pt.Z)(rt,[].concat((0,it.Z)(Object.keys(qi)),["onChange","onCalendarChange","style","className","onPanelChange","disabledTime"]));return Ii},[rt]),wa=fe.createElement(hn,(0,qe.Z)({},_i,{showNow:Vt,showTime:Jo,range:!0,multiplePanel:Ze,activeInfo:nr,disabledDate:Yt,onFocus:cl,onBlur:ko,onPanelMouseDown:Qo,picker:oa,mode:ue,internalMode:ke,onPanelChange:qn,format:mn,value:Al,isInvalid:Vs,onChange:null,onSelect:Ho,pickerValue:Xn,defaultOpenValue:Xt(Ur==null?void 0:Ur.defaultOpenValue)[yi],onPickerValueChange:Zn,hoverValue:yo,onHover:wo,needConfirm:zn,onSubmit:lr,onOk:jo,presets:ul,onPresetHover:No,onPresetSubmit:pi,onNow:xl,cellRender:$o})),ml=function(Ii,Yi){var La=yn(Ii,Yi);vo(La)},Wo=function(){Lr("input")},Os=function(Ii,Yi){var La=Aa.length,rl=Aa[La-1];if(La&&rl!==Yi&&zn&&!_r[rl]&&!xa(rl)&&to[rl]){ao.current.focus({index:rl});return}Lr("input"),Vi(!0,{inherit:!0}),yi!==Yi&&gi&&!zn&&Tt&&lr(null,!0),Kl(Yi),Va(Ii,Yi)},ss=function(Ii,Yi){if(Vi(!1),!zn&&Lr()==="input"){var La=Ka(to);kn(yi,La===null)}ko(Ii,Yi)},tu=function(Ii,Yi){Ii.key==="Tab"&&lr(null,!0),Gn==null||Gn(Ii,Yi)},As=fe.useMemo(function(){return{prefixCls:Gt,locale:da,generateConfig:Zr,button:vi.button,input:vi.input}},[Gt,da,Zr,vi.button,vi.input]);if((0,Zt.Z)(function(){gi&&yi!==void 0&&qn(null,oa,!1)},[gi,yi,oa]),(0,Zt.Z)(function(){var qi=Lr();!gi&&qi==="input"&&(Vi(!1),lr(null,!0)),!gi&&Tt&&!zn&&qi==="panel"&&(Vi(!0),lr())},[gi]),0)var Ms;return fe.createElement(ae.Provider,{value:As},fe.createElement(se,(0,qe.Z)({},Fn(rt),{popupElement:wa,popupStyle:Pn.popup,popupClassName:Rt.popup,visible:gi,onClose:qo,range:!0}),fe.createElement(co,(0,qe.Z)({},rt,{ref:ao,suffixIcon:ba,activeIndex:lo||gi?yi:null,activeHelp:!!eo,allHelp:!!eo&&Ui==="preset",focused:lo,onFocus:Os,onBlur:ss,onKeyDown:tu,onSubmit:lr,value:yo,maskFormat:mn,onChange:ml,onInputChange:Wo,format:Ht,inputReadOnly:Wr,disabled:Un,open:gi,onOpenChange:Vi,onClick:Dr,onClear:dr,invalid:ln,onInvalid:Wt,onActiveInfo:fi}))))}var ql=fe.forwardRef(Ul),kl=ql,hl=ne(83836);function Go(re){var ge=re.prefixCls,Me=re.value,et=re.onRemove,rt=re.removeIcon,Ft=rt===void 0?"\xD7":rt,Tt=re.formatDate,Ht=re.disabled,mn=re.maxTagCount,xn=re.placeholder,Gt="".concat(ge,"-selector"),Pn="".concat(ge,"-selection"),Rt="".concat(Pn,"-overflow");function Tn(Gn,Un){return fe.createElement("span",{className:bt()("".concat(Pn,"-item")),title:typeof Gn=="string"?Gn:null},fe.createElement("span",{className:"".concat(Pn,"-item-content")},Gn),!Ht&&Un&&fe.createElement("span",{onMouseDown:function(pr){pr.preventDefault()},onClick:Un,className:"".concat(Pn,"-item-remove")},Ft))}function In(Gn){var Un=Tt(Gn),_r=function(Bn){Bn&&Bn.stopPropagation(),et(Gn)};return Tn(Un,_r)}function zn(Gn){var Un="+ ".concat(Gn.length," ...");return Tn(Un)}return fe.createElement("div",{className:Gt},fe.createElement(hl.Z,{prefixCls:Rt,data:Me,renderItem:In,renderRest:zn,itemKey:function(Un){return Tt(Un)},maxCount:mn}),!Me.length&&fe.createElement("span",{className:"".concat(ge,"-selection-placeholder")},xn))}var ts=["id","open","prefix","clearIcon","suffixIcon","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","internalPicker","value","onChange","onSubmit","onInputChange","multiple","maxTagCount","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onMouseDown","required","aria-required","autoFocus","tabIndex","removeIcon"];function Ts(re,ge){var Me=re.id,et=re.open,rt=re.prefix,Ft=re.clearIcon,Tt=re.suffixIcon,Ht=re.activeHelp,mn=re.allHelp,xn=re.focused,Gt=re.onFocus,Pn=re.onBlur,Rt=re.onKeyDown,Tn=re.locale,In=re.generateConfig,zn=re.placeholder,Gn=re.className,Un=re.style,_r=re.onClick,pr=re.onClear,Bn=re.internalPicker,Sr=re.value,ar=re.onChange,vr=re.onSubmit,Ma=re.onInputChange,da=re.multiple,Zr=re.maxTagCount,oa=re.format,Ga=re.maskFormat,ya=re.preserveInvalidOnBlur,Ur=re.onInvalid,kr=re.disabled,$r=re.invalid,Yr=re.inputReadOnly,Za=re.direction,Ta=re.onOpenChange,sa=re.onMouseDown,Ea=re.required,Wr=re["aria-required"],ba=re.autoFocus,va=re.tabIndex,ri=re.removeIcon,di=(0,Cn.Z)(re,ts),mi=Za==="rtl",vi=fe.useContext(ae),ei=vi.prefixCls,Zi=fe.useRef(),dn=fe.useRef();fe.useImperativeHandle(ge,function(){return{nativeElement:Zi.current,focus:function(ka){var Xi;(Xi=dn.current)===null||Xi===void 0||Xi.focus(ka)},blur:function(){var ka;(ka=dn.current)===null||ka===void 0||ka.blur()}}});var Oi=Ut(di),ao=function(ka){ar([ka])},xi=function(ka){var Xi=Sr.filter(function(vo){return vo&&!Rn(In,Tn,vo,ka,Bn)});ar(Xi),et||vr()},io=_t((0,Le.Z)((0,Le.Z)({},re),{},{onChange:ao}),function(Ca){var ka=Ca.valueTexts;return{value:ka[0]||"",active:xn}}),gi=(0,Ue.Z)(io,2),oo=gi[0],Vi=gi[1],zi=!!(Ft&&Sr.length&&!kr),fo=da?fe.createElement(fe.Fragment,null,fe.createElement(Go,{prefixCls:ei,value:Sr,onRemove:xi,formatDate:Vi,maxTagCount:Zr,disabled:kr,removeIcon:ri,placeholder:zn}),fe.createElement("input",{className:"".concat(ei,"-multiple-input"),value:Sr.map(Vi).join(","),ref:dn,readOnly:!0,autoFocus:ba,tabIndex:va}),fe.createElement(An,{type:"suffix",icon:Tt}),zi&&fe.createElement(fr,{icon:Ft,onClear:pr})):fe.createElement(pl,(0,qe.Z)({ref:dn},oo(),{autoFocus:ba,tabIndex:va,suffixIcon:Tt,clearIcon:zi&&fe.createElement(fr,{icon:Ft,onClear:pr}),showActiveCls:!1}));return fe.createElement("div",(0,qe.Z)({},Oi,{className:bt()(ei,(0,Lt.Z)((0,Lt.Z)((0,Lt.Z)((0,Lt.Z)((0,Lt.Z)({},"".concat(ei,"-multiple"),da),"".concat(ei,"-focused"),xn),"".concat(ei,"-disabled"),kr),"".concat(ei,"-invalid"),$r),"".concat(ei,"-rtl"),mi),Gn),style:Un,ref:Zi,onClick:_r,onMouseDown:function(ka){var Xi,vo=ka.target;vo!==((Xi=dn.current)===null||Xi===void 0?void 0:Xi.inputElement)&&ka.preventDefault(),sa==null||sa(ka)}}),rt&&fe.createElement("div",{className:"".concat(ei,"-prefix")},rt),fo)}var ns=fe.forwardRef(Ts),vs=ns;function Us(re,ge){var Me=la(re),et=(0,Ue.Z)(Me,6),rt=et[0],Ft=et[1],Tt=et[2],Ht=et[3],mn=et[4],xn=et[5],Gt=rt,Pn=Gt.prefixCls,Rt=Gt.styles,Tn=Gt.classNames,In=Gt.order,zn=Gt.defaultValue,Gn=Gt.value,Un=Gt.needConfirm,_r=Gt.onChange,pr=Gt.onKeyDown,Bn=Gt.disabled,Sr=Gt.disabledDate,ar=Gt.minDate,vr=Gt.maxDate,Ma=Gt.defaultOpen,da=Gt.open,Zr=Gt.onOpenChange,oa=Gt.locale,Ga=Gt.generateConfig,ya=Gt.picker,Ur=Gt.showNow,kr=Gt.showToday,$r=Gt.showTime,Yr=Gt.mode,Za=Gt.onPanelChange,Ta=Gt.onCalendarChange,sa=Gt.onOk,Ea=Gt.multiple,Wr=Gt.defaultPickerValue,ba=Gt.pickerValue,va=Gt.onPickerValueChange,ri=Gt.inputReadOnly,di=Gt.suffixIcon,mi=Gt.removeIcon,vi=Gt.onFocus,ei=Gt.onBlur,Zi=Gt.presets,dn=Gt.components,Oi=Gt.cellRender,ao=Gt.dateRender,xi=Gt.monthCellRender,io=Gt.onClick,gi=br(ge);function oo(_i){return _i===null?null:Ea?_i:_i[0]}var Vi=ma(Ga,oa,Ft),zi=_n(da,Ma,[Bn],Zr),fo=(0,Ue.Z)(zi,2),Ca=fo[0],ka=fo[1],Xi=function(wa,ml,Wo){if(Ta){var Os=(0,Le.Z)({},Wo);delete Os.range,Ta(oo(wa),oo(ml),Os)}},vo=function(wa){sa==null||sa(oo(wa))},jo=Mt(Ga,oa,Ht,!1,In,zn,Gn,Xi,vo),to=(0,Ue.Z)(jo,5),bl=to[0],Ji=to[1],lo=to[2],go=to[3],Lr=to[4],yi=lo(),Kl=Xa([Bn]),Ka=(0,Ue.Z)(Kl,4),Aa=Ka[0],no=Ka[1],xa=Ka[2],Va=Ka[3],ko=function(wa){no(!0),vi==null||vi(wa,{})},Jo=function(wa){no(!1),ei==null||ei(wa,{})},Cl=(0,mt.C8)(ya,{value:Yr}),Ml=(0,Ue.Z)(Cl,2),Ql=Ml[0],Bs=Ml[1],ue=Ql==="date"&&$r?"datetime":Ql,ke=sr(ya,Ql,Ur,kr),Ze=_r&&function(_i,wa){_r(oo(_i),oo(wa))},Vt=Nt((0,Le.Z)((0,Le.Z)({},rt),{},{onChange:Ze}),bl,Ji,lo,go,[],Ht,Aa,Ca,xn),Nn=(0,Ue.Z)(Vt,2),Cr=Nn[1],kn=ra(yi,xn),gn=(0,Ue.Z)(kn,2),Yt=gn[0],Ln=gn[1],Ia=fe.useMemo(function(){return Yt.some(function(_i){return _i})},[Yt]),ln=function(wa,ml){if(va){var Wo=(0,Le.Z)((0,Le.Z)({},ml),{},{mode:ml.mode[0]});delete Wo.range,va(wa[0],Wo)}},Wt=Rr(Ga,oa,yi,[Ql],Ca,Va,Ft,!1,Wr,ba,Xt($r==null?void 0:$r.defaultOpenValue),ln,ar,vr),un=(0,Ue.Z)(Wt,2),er=un[0],Xn=un[1],Zn=(0,mt.zX)(function(_i,wa,ml){if(Bs(wa),Za&&ml!==!1){var Wo=_i||yi[yi.length-1];Za(Wo,wa)}}),qn=function(){Cr(lo()),ka(!1,{force:!0})},yn=function(wa){!Bn&&!gi.current.nativeElement.contains(document.activeElement)&&gi.current.focus(),ka(!0),io==null||io(wa)},lr=function(){Cr(null),ka(!1,{force:!0})},Dr=fe.useState(null),dr=(0,Ue.Z)(Dr,2),ki=dr[0],Gi=dr[1],Ui=fe.useState(null),_o=(0,Ue.Z)(Ui,2),Tr=_o[0],Mi=_o[1],eo=fe.useMemo(function(){var _i=[Tr].concat((0,it.Z)(yi)).filter(function(wa){return wa});return Ea?_i:_i.slice(0,1)},[yi,Tr,Ea]),tr=fe.useMemo(function(){return!Ea&&Tr?[Tr]:yi.filter(function(_i){return _i})},[yi,Tr,Ea]);fe.useEffect(function(){Ca||Mi(null)},[Ca]);var yo=Nr(Zi),Lo=function(wa){Mi(wa),Gi("preset")},Io=function(wa){var ml=Ea?Vi(lo(),wa):[wa],Wo=Cr(ml);Wo&&!Ea&&ka(!1,{force:!0})},nr=function(wa){Io(wa)},fi=function(wa){Mi(wa),Gi("cell")},ul=function(wa){ka(!0),ko(wa)},No=function(wa){if(xa("panel"),!(Ea&&ue!==ya)){var ml=Ea?Vi(lo(),wa):[wa];go(ml),!Un&&!Tt&&Ft===ue&&qn()}},pi=function(){ka(!1)},xl=or(Oi,ao,xi),wo=fe.useMemo(function(){var _i=(0,en.Z)(rt,!1),wa=(0,Pt.Z)(rt,[].concat((0,it.Z)(Object.keys(_i)),["onChange","onCalendarChange","style","className","onPanelChange"]));return(0,Le.Z)((0,Le.Z)({},wa),{},{multiple:rt.multiple})},[rt]),cl=fe.createElement(hn,(0,qe.Z)({},wo,{showNow:ke,showTime:$r,disabledDate:Sr,onFocus:ul,onBlur:Jo,picker:ya,mode:Ql,internalMode:ue,onPanelChange:Zn,format:mn,value:yi,isInvalid:xn,onChange:null,onSelect:No,pickerValue:er,defaultOpenValue:$r==null?void 0:$r.defaultOpenValue,onPickerValueChange:Xn,hoverValue:eo,onHover:fi,needConfirm:Un,onSubmit:qn,onOk:Lr,presets:yo,onPresetHover:Lo,onPresetSubmit:Io,onNow:nr,cellRender:xl})),Qo=function(wa){go(wa)},Ho=function(){xa("input")},qo=function(wa){xa("input"),ka(!0,{inherit:!0}),ko(wa)},$o=function(wa){ka(!1),Jo(wa)},Al=function(wa,ml){wa.key==="Tab"&&qn(),pr==null||pr(wa,ml)},Vs=fe.useMemo(function(){return{prefixCls:Pn,locale:oa,generateConfig:Ga,button:dn.button,input:dn.input}},[Pn,oa,Ga,dn.button,dn.input]);return(0,Zt.Z)(function(){Ca&&Va!==void 0&&Zn(null,ya,!1)},[Ca,Va,ya]),(0,Zt.Z)(function(){var _i=xa();!Ca&&_i==="input"&&(ka(!1),qn()),!Ca&&Tt&&!Un&&_i==="panel"&&qn()},[Ca]),fe.createElement(ae.Provider,{value:Vs},fe.createElement(se,(0,qe.Z)({},Fn(rt),{popupElement:cl,popupStyle:Rt.popup,popupClassName:Tn.popup,visible:Ca,onClose:pi}),fe.createElement(vs,(0,qe.Z)({},rt,{ref:gi,suffixIcon:di,removeIcon:mi,activeHelp:!!Tr,allHelp:!!Tr&&ki==="preset",focused:Aa,onFocus:qo,onBlur:$o,onKeyDown:Al,onSubmit:qn,value:tr,maskFormat:mn,onChange:Qo,onInputChange:Ho,internalPicker:Ft,format:Ht,inputReadOnly:ri,disabled:Bn,open:Ca,onOpenChange:ka,onClick:yn,onClear:lr,invalid:Ia,onInvalid:function(wa){Ln(wa,0)}}))))}var Ls=fe.forwardRef(Us),Rs=Ls,Zs=Rs,Ao=ne(62487),Gr=ne(75030),Ai=ne(82855),mo=ne(48755),Bl=ne(2171),Mo=ne(83397),Ci=ne(31756),To=ne(56553),wl=ne(24971),os=ne(9017),Il=ne(70045),Nl=ne(57428),Wi=ne(36237),Is=ne(53075),sl=ne(64910),rs=ne(63356),gs=ne(56119),js=ne(46e3),Fl=ne(93873),ys=ne(36305),Au=ne(16931),Es=ne(51636),ds=ne(26743);const bs=(re,ge)=>{const{componentCls:Me,controlHeight:et}=re,rt=ge?`${Me}-${ge}`:"",Ft=(0,ds.gp)(re);return[{[`${Me}-multiple${rt}`]:{paddingBlock:Ft.containerPadding,paddingInlineStart:Ft.basePadding,minHeight:et,[`${Me}-selection-item`]:{height:Ft.itemHeight,lineHeight:(0,Wi.unit)(Ft.itemLineHeight)}}}]};var Vu=re=>{const{componentCls:ge,calc:Me,lineWidth:et}=re,rt=(0,Es.mergeToken)(re,{fontHeight:re.fontSize,selectHeight:re.controlHeightSM,multipleSelectItemHeight:re.multipleItemHeightSM,borderRadius:re.borderRadiusSM,borderRadiusSM:re.borderRadiusXS,controlHeight:re.controlHeightSM}),Ft=(0,Es.mergeToken)(re,{fontHeight:Me(re.multipleItemHeightLG).sub(Me(et).mul(2).equal()).equal(),fontSize:re.fontSizeLG,selectHeight:re.controlHeightLG,multipleSelectItemHeight:re.multipleItemHeightLG,borderRadius:re.borderRadiusLG,borderRadiusSM:re.borderRadius,controlHeight:re.controlHeightLG});return[bs(rt,"small"),bs(re),bs(Ft,"large"),{[`${ge}${ge}-multiple`]:Object.assign(Object.assign({width:"100%",cursor:"text",[`${ge}-selector`]:{flex:"auto",padding:0,position:"relative","&:after":{margin:0},[`${ge}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:re.inputPaddingHorizontalBase,insetInlineEnd:0,transform:"translateY(-50%)",transition:`all ${re.motionDurationSlow}`,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",flex:1,color:re.colorTextPlaceholder,pointerEvents:"none"}}},(0,ds._z)(re)),{[`${ge}-multiple-input`]:{width:0,height:0,border:0,visibility:"hidden",position:"absolute",zIndex:-1}})}]},qs=ne(17835);const Ys=re=>{const{pickerCellCls:ge,pickerCellInnerCls:Me,cellHeight:et,borderRadiusSM:rt,motionDurationMid:Ft,cellHoverBg:Tt,lineWidth:Ht,lineType:mn,colorPrimary:xn,cellActiveWithRangeBg:Gt,colorTextLightSolid:Pn,colorTextDisabled:Rt,cellBgDisabled:Tn,colorFillSecondary:In}=re;return{"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:et,transform:"translateY(-50%)",content:'""',pointerEvents:"none"},[Me]:{position:"relative",zIndex:2,display:"inline-block",minWidth:et,height:et,lineHeight:(0,Wi.unit)(et),borderRadius:rt,transition:`background ${Ft}`},[`&:hover:not(${ge}-in-view):not(${ge}-disabled),
&:hover:not(${ge}-selected):not(${ge}-range-start):not(${ge}-range-end):not(${ge}-disabled)`]:{[Me]:{background:Tt}},[`&-in-view${ge}-today ${Me}`]:{"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${(0,Wi.unit)(Ht)} ${mn} ${xn}`,borderRadius:rt,content:'""'}},[`&-in-view${ge}-in-range,
&-in-view${ge}-range-start,
&-in-view${ge}-range-end`]:{position:"relative",[`&:not(${ge}-disabled):before`]:{background:Gt}},[`&-in-view${ge}-selected,
&-in-view${ge}-range-start,
&-in-view${ge}-range-end`]:{[`&:not(${ge}-disabled) ${Me}`]:{color:Pn,background:xn},[`&${ge}-disabled ${Me}`]:{background:In}},[`&-in-view${ge}-range-start:not(${ge}-disabled):before`]:{insetInlineStart:"50%"},[`&-in-view${ge}-range-end:not(${ge}-disabled):before`]:{insetInlineEnd:"50%"},[`&-in-view${ge}-range-start:not(${ge}-range-end) ${Me}`]:{borderStartStartRadius:rt,borderEndStartRadius:rt,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${ge}-range-end:not(${ge}-range-start) ${Me}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:rt,borderEndEndRadius:rt},"&-disabled":{color:Rt,cursor:"not-allowed",[Me]:{background:"transparent"},"&::before":{background:Tn}},[`&-disabled${ge}-today ${Me}::before`]:{borderColor:Rt}}},Xo=re=>{const{componentCls:ge,pickerCellCls:Me,pickerCellInnerCls:et,pickerYearMonthCellWidth:rt,pickerControlIconSize:Ft,cellWidth:Tt,paddingSM:Ht,paddingXS:mn,paddingXXS:xn,colorBgContainer:Gt,lineWidth:Pn,lineType:Rt,borderRadiusLG:Tn,colorPrimary:In,colorTextHeading:zn,colorSplit:Gn,pickerControlIconBorderWidth:Un,colorIcon:_r,textHeight:pr,motionDurationMid:Bn,colorIconHover:Sr,fontWeightStrong:ar,cellHeight:vr,pickerCellPaddingVertical:Ma,colorTextDisabled:da,colorText:Zr,fontSize:oa,motionDurationSlow:Ga,withoutTimeCellHeight:ya,pickerQuarterPanelContentHeight:Ur,borderRadiusSM:kr,colorTextLightSolid:$r,cellHoverBg:Yr,timeColumnHeight:Za,timeColumnWidth:Ta,timeCellHeight:sa,controlItemBgActive:Ea,marginXXS:Wr,pickerDatePanelPaddingHorizontal:ba,pickerControlIconMargin:va}=re,ri=re.calc(Tt).mul(7).add(re.calc(ba).mul(2)).equal();return{[ge]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:Gt,borderRadius:Tn,outline:"none","&-focused":{borderColor:In},"&-rtl":{[`${ge}-prev-icon,
${ge}-super-prev-icon`]:{transform:"rotate(45deg)"},[`${ge}-next-icon,
${ge}-super-next-icon`]:{transform:"rotate(-135deg)"},[`${ge}-time-panel`]:{[`${ge}-content`]:{direction:"ltr","> *":{direction:"rtl"}}}}},"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel,\n &-week-panel,\n &-date-panel,\n &-time-panel":{display:"flex",flexDirection:"column",width:ri},"&-header":{display:"flex",padding:`0 ${(0,Wi.unit)(mn)}`,color:zn,borderBottom:`${(0,Wi.unit)(Pn)} ${Rt} ${Gn}`,"> *":{flex:"none"},button:{padding:0,color:_r,lineHeight:(0,Wi.unit)(pr),background:"transparent",border:0,cursor:"pointer",transition:`color ${Bn}`,fontSize:"inherit",display:"inline-flex",alignItems:"center",justifyContent:"center","&:empty":{display:"none"}},"> button":{minWidth:"1.6em",fontSize:oa,"&:hover":{color:Sr},"&:disabled":{opacity:.25,pointerEvents:"none"}},"&-view":{flex:"auto",fontWeight:ar,lineHeight:(0,Wi.unit)(pr),"> button":{color:"inherit",fontWeight:"inherit",verticalAlign:"top","&:not(:first-child)":{marginInlineStart:mn},"&:hover":{color:In}}}},"&-prev-icon,\n &-next-icon,\n &-super-prev-icon,\n &-super-next-icon":{position:"relative",width:Ft,height:Ft,"&::before":{position:"absolute",top:0,insetInlineStart:0,width:Ft,height:Ft,border:"0 solid currentcolor",borderBlockStartWidth:Un,borderInlineStartWidth:Un,content:'""'}},"&-super-prev-icon,\n &-super-next-icon":{"&::after":{position:"absolute",top:va,insetInlineStart:va,display:"inline-block",width:Ft,height:Ft,border:"0 solid currentcolor",borderBlockStartWidth:Un,borderInlineStartWidth:Un,content:'""'}},"&-prev-icon, &-super-prev-icon":{transform:"rotate(-45deg)"},"&-next-icon, &-super-next-icon":{transform:"rotate(135deg)"},"&-content":{width:"100%",tableLayout:"fixed",borderCollapse:"collapse","th, td":{position:"relative",minWidth:vr,fontWeight:"normal"},th:{height:re.calc(vr).add(re.calc(Ma).mul(2)).equal(),color:Zr,verticalAlign:"middle"}},"&-cell":Object.assign({padding:`${(0,Wi.unit)(Ma)} 0`,color:da,cursor:"pointer","&-in-view":{color:Zr}},Ys(re)),"&-decade-panel,\n &-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${ge}-content`]:{height:re.calc(ya).mul(4).equal()},[et]:{padding:`0 ${(0,Wi.unit)(mn)}`}},"&-quarter-panel":{[`${ge}-content`]:{height:Ur}},"&-decade-panel":{[et]:{padding:`0 ${(0,Wi.unit)(re.calc(mn).div(2).equal())}`},[`${ge}-cell::before`]:{display:"none"}},"&-year-panel,\n &-quarter-panel,\n &-month-panel":{[`${ge}-body`]:{padding:`0 ${(0,Wi.unit)(mn)}`},[et]:{width:rt}},"&-date-panel":{[`${ge}-body`]:{padding:`${(0,Wi.unit)(mn)} ${(0,Wi.unit)(ba)}`},[`${ge}-content th`]:{boxSizing:"border-box",padding:0}},"&-week-panel":{[`${ge}-cell`]:{[`&:hover ${et},
&-selected ${et},
${et}`]:{background:"transparent !important"}},"&-row":{td:{"&:before":{transition:`background ${Bn}`},"&:first-child:before":{borderStartStartRadius:kr,borderEndStartRadius:kr},"&:last-child:before":{borderStartEndRadius:kr,borderEndEndRadius:kr}},"&:hover td:before":{background:Yr},"&-range-start td, &-range-end td, &-selected td, &-hover td":{[`&${Me}`]:{"&:before":{background:In},[`&${ge}-cell-week`]:{color:new qs.FastColor($r).setA(.5).toHexString()},[et]:{color:$r}}},"&-range-hover td:before":{background:Ea}}},"&-week-panel, &-date-panel-show-week":{[`${ge}-body`]:{padding:`${(0,Wi.unit)(mn)} ${(0,Wi.unit)(Ht)}`},[`${ge}-content th`]:{width:"auto"}},"&-datetime-panel":{display:"flex",[`${ge}-time-panel`]:{borderInlineStart:`${(0,Wi.unit)(Pn)} ${Rt} ${Gn}`},[`${ge}-date-panel,
${ge}-time-panel`]:{transition:`opacity ${Ga}`},"&-active":{[`${ge}-date-panel,
${ge}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:"auto",minWidth:"auto",[`${ge}-content`]:{display:"flex",flex:"auto",height:Za},"&-column":{flex:"1 0 auto",width:Ta,margin:`${(0,Wi.unit)(xn)} 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${Bn}`,overflowX:"hidden","&::-webkit-scrollbar":{width:8,backgroundColor:"transparent"},"&::-webkit-scrollbar-thumb":{backgroundColor:re.colorTextTertiary,borderRadius:re.borderRadiusSM},"&":{scrollbarWidth:"thin",scrollbarColor:`${re.colorTextTertiary} transparent`},"&::after":{display:"block",height:`calc(100% - ${(0,Wi.unit)(sa)})`,content:'""'},"&:not(:first-child)":{borderInlineStart:`${(0,Wi.unit)(Pn)} ${Rt} ${Gn}`},"&-active":{background:new qs.FastColor(Ea).setA(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${ge}-time-panel-cell`]:{marginInline:Wr,[`${ge}-time-panel-cell-inner`]:{display:"block",width:re.calc(Ta).sub(re.calc(Wr).mul(2)).equal(),height:sa,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:re.calc(Ta).sub(sa).div(2).equal(),color:Zr,lineHeight:(0,Wi.unit)(sa),borderRadius:kr,cursor:"pointer",transition:`background ${Bn}`,"&:hover":{background:Yr}},"&-selected":{[`${ge}-time-panel-cell-inner`]:{background:Ea}},"&-disabled":{[`${ge}-time-panel-cell-inner`]:{color:da,background:"transparent",cursor:"not-allowed"}}}}}}}}};var Cu=re=>{const{componentCls:ge,textHeight:Me,lineWidth:et,paddingSM:rt,antCls:Ft,colorPrimary:Tt,cellActiveWithRangeBg:Ht,colorPrimaryBorder:mn,lineType:xn,colorSplit:Gt}=re;return{[`${ge}-dropdown`]:{[`${ge}-footer`]:{borderTop:`${(0,Wi.unit)(et)} ${xn} ${Gt}`,"&-extra":{padding:`0 ${(0,Wi.unit)(rt)}`,lineHeight:(0,Wi.unit)(re.calc(Me).sub(re.calc(et).mul(2)).equal()),textAlign:"start","&:not(:last-child)":{borderBottom:`${(0,Wi.unit)(et)} ${xn} ${Gt}`}}},[`${ge}-panels + ${ge}-footer ${ge}-ranges`]:{justifyContent:"space-between"},[`${ge}-ranges`]:{marginBlock:0,paddingInline:(0,Wi.unit)(rt),overflow:"hidden",textAlign:"start",listStyle:"none",display:"flex",justifyContent:"center",alignItems:"center","> li":{lineHeight:(0,Wi.unit)(re.calc(Me).sub(re.calc(et).mul(2)).equal()),display:"inline-block"},[`${ge}-now-btn-disabled`]:{pointerEvents:"none",color:re.colorTextDisabled},[`${ge}-preset > ${Ft}-tag-blue`]:{color:Tt,background:Ht,borderColor:mn,cursor:"pointer"},[`${ge}-ok`]:{paddingBlock:re.calc(et).mul(2).equal(),marginInlineStart:"auto"}}}}};const iu=re=>{const{componentCls:ge,controlHeightLG:Me,paddingXXS:et,padding:rt}=re;return{pickerCellCls:`${ge}-cell`,pickerCellInnerCls:`${ge}-cell-inner`,pickerYearMonthCellWidth:re.calc(Me).mul(1.5).equal(),pickerQuarterPanelContentHeight:re.calc(Me).mul(1.4).equal(),pickerCellPaddingVertical:re.calc(et).add(re.calc(et).div(2)).equal(),pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconMargin:4,pickerControlIconBorderWidth:1.5,pickerDatePanelPaddingHorizontal:re.calc(rt).add(re.calc(et).div(2)).equal()}},xu=re=>{const{colorBgContainerDisabled:ge,controlHeight:Me,controlHeightSM:et,controlHeightLG:rt,paddingXXS:Ft,lineWidth:Tt}=re,Ht=Ft*2,mn=Tt*2,xn=Math.min(Me-Ht,Me-mn),Gt=Math.min(et-Ht,et-mn),Pn=Math.min(rt-Ht,rt-mn);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(Ft/2),cellHoverBg:re.controlItemBgHover,cellActiveWithRangeBg:re.controlItemBgActive,cellHoverWithRangeBg:new qs.FastColor(re.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new qs.FastColor(re.colorPrimary).lighten(20).toHexString(),cellBgDisabled:ge,timeColumnWidth:rt*1.4,timeColumnHeight:28*8,timeCellHeight:28,cellWidth:et*1.5,cellHeight:et,textHeight:rt,withoutTimeCellHeight:rt*1.65,multipleItemBg:re.colorFillSecondary,multipleItemBorderColor:"transparent",multipleItemHeight:xn,multipleItemHeightSM:Gt,multipleItemHeightLG:Pn,multipleSelectorBgDisabled:ge,multipleItemColorDisabled:re.colorTextDisabled,multipleItemBorderColorDisabled:"transparent"}},ou=re=>Object.assign(Object.assign(Object.assign(Object.assign({},(0,sl.T)(re)),xu(re)),(0,ys.w)(re)),{presetsWidth:120,presetsMaxWidth:200,zIndexPopup:re.zIndexPopupBase+50});var Yl=ne(39082),as=re=>{const{componentCls:ge}=re;return{[ge]:[Object.assign(Object.assign(Object.assign(Object.assign({},(0,Yl.qG)(re)),(0,Yl.vc)(re)),(0,Yl.H8)(re)),(0,Yl.Mu)(re)),{"&-outlined":{[`&${ge}-multiple ${ge}-selection-item`]:{background:re.multipleItemBg,border:`${(0,Wi.unit)(re.lineWidth)} ${re.lineType} ${re.multipleItemBorderColor}`}},"&-filled":{[`&${ge}-multiple ${ge}-selection-item`]:{background:re.colorBgContainer,border:`${(0,Wi.unit)(re.lineWidth)} ${re.lineType} ${re.colorSplit}`}},"&-borderless":{[`&${ge}-multiple ${ge}-selection-item`]:{background:re.multipleItemBg,border:`${(0,Wi.unit)(re.lineWidth)} ${re.lineType} ${re.multipleItemBorderColor}`}},"&-underlined":{[`&${ge}-multiple ${ge}-selection-item`]:{background:re.multipleItemBg,border:`${(0,Wi.unit)(re.lineWidth)} ${re.lineType} ${re.multipleItemBorderColor}`}}}]}};const Hl=(re,ge,Me,et)=>{const rt=re.calc(Me).add(2).equal(),Ft=re.max(re.calc(ge).sub(rt).div(2).equal(),0),Tt=re.max(re.calc(ge).sub(rt).sub(Ft).equal(),0);return{padding:`${(0,Wi.unit)(Ft)} ${(0,Wi.unit)(et)} ${(0,Wi.unit)(Tt)}`}},wu=re=>{const{componentCls:ge,colorError:Me,colorWarning:et}=re;return{[`${ge}:not(${ge}-disabled):not([disabled])`]:{[`&${ge}-status-error`]:{[`${ge}-active-bar`]:{background:Me}},[`&${ge}-status-warning`]:{[`${ge}-active-bar`]:{background:et}}}}},Pu=re=>{const{componentCls:ge,antCls:Me,controlHeight:et,paddingInline:rt,lineWidth:Ft,lineType:Tt,colorBorder:Ht,borderRadius:mn,motionDurationMid:xn,colorTextDisabled:Gt,colorTextPlaceholder:Pn,controlHeightLG:Rt,fontSizeLG:Tn,controlHeightSM:In,paddingInlineSM:zn,paddingXS:Gn,marginXS:Un,colorTextDescription:_r,lineWidthBold:pr,colorPrimary:Bn,motionDurationSlow:Sr,zIndexPopup:ar,paddingXXS:vr,sizePopupArrow:Ma,colorBgElevated:da,borderRadiusLG:Zr,boxShadowSecondary:oa,borderRadiusSM:Ga,colorSplit:ya,cellHoverBg:Ur,presetsWidth:kr,presetsMaxWidth:$r,boxShadowPopoverArrow:Yr,fontHeight:Za,fontHeightLG:Ta,lineHeightLG:sa}=re;return[{[ge]:Object.assign(Object.assign(Object.assign({},(0,rs.Wf)(re)),Hl(re,et,Za,rt)),{position:"relative",display:"inline-flex",alignItems:"center",lineHeight:1,borderRadius:mn,transition:`border ${xn}, box-shadow ${xn}, background ${xn}`,[`${ge}-prefix`]:{flex:"0 0 auto",marginInlineEnd:re.inputAffixPadding},[`${ge}-input`]:{position:"relative",display:"inline-flex",alignItems:"center",width:"100%","> input":Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",color:"inherit",fontSize:re.fontSize,lineHeight:re.lineHeight,transition:`all ${xn}`},(0,Is.nz)(Pn)),{flex:"auto",minWidth:1,height:"auto",padding:0,background:"transparent",border:0,fontFamily:"inherit","&:focus":{boxShadow:"none",outline:0},"&[disabled]":{background:"transparent",color:Gt,cursor:"not-allowed"}}),"&-placeholder":{"> input":{color:Pn}}},"&-large":Object.assign(Object.assign({},Hl(re,Rt,Ta,rt)),{[`${ge}-input > input`]:{fontSize:Tn,lineHeight:sa}}),"&-small":Object.assign({},Hl(re,In,Za,zn)),[`${ge}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:re.calc(Gn).div(2).equal(),color:Gt,lineHeight:1,pointerEvents:"none",transition:`opacity ${xn}, color ${xn}`,"> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:Un}}},[`${ge}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:Gt,lineHeight:1,transform:"translateY(-50%)",cursor:"pointer",opacity:0,transition:`opacity ${xn}, color ${xn}`,"> *":{verticalAlign:"top"},"&:hover":{color:_r}},"&:hover":{[`${ge}-clear`]:{opacity:1},[`${ge}-suffix:not(:last-child)`]:{opacity:0}},[`${ge}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:Tn,color:Gt,fontSize:Tn,verticalAlign:"top",cursor:"default",[`${ge}-focused &`]:{color:_r},[`${ge}-range-separator &`]:{[`${ge}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${ge}-active-bar`]:{bottom:re.calc(Ft).mul(-1).equal(),height:pr,background:Bn,opacity:0,transition:`all ${Sr} ease-out`,pointerEvents:"none"},[`&${ge}-focused`]:{[`${ge}-active-bar`]:{opacity:1}},[`${ge}-range-separator`]:{alignItems:"center",padding:`0 ${(0,Wi.unit)(Gn)}`,lineHeight:1}},"&-range, &-multiple":{[`${ge}-clear`]:{insetInlineEnd:rt},[`&${ge}-small`]:{[`${ge}-clear`]:{insetInlineEnd:zn}}},"&-dropdown":Object.assign(Object.assign(Object.assign({},(0,rs.Wf)(re)),Xo(re)),{pointerEvents:"none",position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:ar,[`&${ge}-dropdown-hidden`]:{display:"none"},"&-rtl":{direction:"rtl"},[`&${ge}-dropdown-placement-bottomLeft,
&${ge}-dropdown-placement-bottomRight`]:{[`${ge}-range-arrow`]:{top:0,display:"block",transform:"translateY(-100%)"}},[`&${ge}-dropdown-placement-topLeft,
&${ge}-dropdown-placement-topRight`]:{[`${ge}-range-arrow`]:{bottom:0,display:"block",transform:"translateY(100%) rotate(180deg)"}},[`&${Me}-slide-up-appear, &${Me}-slide-up-enter`]:{[`${ge}-range-arrow${ge}-range-arrow`]:{transition:"none"}},[`&${Me}-slide-up-enter${Me}-slide-up-enter-active${ge}-dropdown-placement-topLeft,
&${Me}-slide-up-enter${Me}-slide-up-enter-active${ge}-dropdown-placement-topRight,
&${Me}-slide-up-appear${Me}-slide-up-appear-active${ge}-dropdown-placement-topLeft,
&${Me}-slide-up-appear${Me}-slide-up-appear-active${ge}-dropdown-placement-topRight`]:{animationName:js.Qt},[`&${Me}-slide-up-enter${Me}-slide-up-enter-active${ge}-dropdown-placement-bottomLeft,
&${Me}-slide-up-enter${Me}-slide-up-enter-active${ge}-dropdown-placement-bottomRight,
&${Me}-slide-up-appear${Me}-slide-up-appear-active${ge}-dropdown-placement-bottomLeft,
&${Me}-slide-up-appear${Me}-slide-up-appear-active${ge}-dropdown-placement-bottomRight`]:{animationName:js.fJ},[`&${Me}-slide-up-leave ${ge}-panel-container`]:{pointerEvents:"none"},[`&${Me}-slide-up-leave${Me}-slide-up-leave-active${ge}-dropdown-placement-topLeft,
&${Me}-slide-up-leave${Me}-slide-up-leave-active${ge}-dropdown-placement-topRight`]:{animationName:js.ly},[`&${Me}-slide-up-leave${Me}-slide-up-leave-active${ge}-dropdown-placement-bottomLeft,
&${Me}-slide-up-leave${Me}-slide-up-leave-active${ge}-dropdown-placement-bottomRight`]:{animationName:js.Uw},[`${ge}-panel > ${ge}-time-panel`]:{paddingTop:vr},[`${ge}-range-wrapper`]:{display:"flex",position:"relative"},[`${ge}-range-arrow`]:Object.assign(Object.assign({position:"absolute",zIndex:1,display:"none",paddingInline:re.calc(rt).mul(1.5).equal(),boxSizing:"content-box",transition:`all ${Sr} ease-out`},(0,ys.W)(re,da,Yr)),{"&:before":{insetInlineStart:re.calc(rt).mul(1.5).equal()}}),[`${ge}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:da,borderRadius:Zr,boxShadow:oa,transition:`margin ${Sr}`,display:"inline-block",pointerEvents:"auto",[`${ge}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${ge}-presets`]:{display:"flex",flexDirection:"column",minWidth:kr,maxWidth:$r,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:Gn,borderInlineEnd:`${(0,Wi.unit)(Ft)} ${Tt} ${ya}`,li:Object.assign(Object.assign({},rs.vS),{borderRadius:Ga,paddingInline:Gn,paddingBlock:re.calc(In).sub(Za).div(2).equal(),cursor:"pointer",transition:`all ${Sr}`,"+ li":{marginTop:Un},"&:hover":{background:Ur}})}},[`${ge}-panels`]:{display:"inline-flex",flexWrap:"nowrap","&:last-child":{[`${ge}-panel`]:{borderWidth:0}}},[`${ge}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${ge}-content, table`]:{textAlign:"center"},"&-focused":{borderColor:Ht}}}}),"&-dropdown-range":{padding:`${(0,Wi.unit)(re.calc(Ma).mul(2).div(3).equal())} 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${ge}-separator`]:{transform:"scale(-1, 1)"},[`${ge}-footer`]:{"&-extra":{direction:"rtl"}}}})},(0,js.oN)(re,"slide-up"),(0,js.oN)(re,"slide-down"),(0,Fl.Fm)(re,"move-up"),(0,Fl.Fm)(re,"move-down")]};var nu=(0,Au.I$)("DatePicker",re=>{const ge=(0,Es.mergeToken)((0,sl.e)(re),iu(re),{inputPaddingHorizontalBase:re.calc(re.paddingSM).sub(1).equal(),multipleSelectItemHeight:re.multipleItemHeight,selectHeight:re.controlHeight});return[Cu(ge),Pu(ge),as(ge),wu(ge),Vu(ge),(0,gs.c)(re,{focusElCls:`${re.componentCls}-focused`})]},ou),ca=ne(68525);function ku(re,ge,Me){return Me!==void 0?Me:ge==="year"&&re.lang.yearPlaceholder?re.lang.yearPlaceholder:ge==="quarter"&&re.lang.quarterPlaceholder?re.lang.quarterPlaceholder:ge==="month"&&re.lang.monthPlaceholder?re.lang.monthPlaceholder:ge==="week"&&re.lang.weekPlaceholder?re.lang.weekPlaceholder:ge==="time"&&re.timePickerLocale.placeholder?re.timePickerLocale.placeholder:re.lang.placeholder}function Iu(re,ge,Me){return Me!==void 0?Me:ge==="year"&&re.lang.yearPlaceholder?re.lang.rangeYearPlaceholder:ge==="quarter"&&re.lang.quarterPlaceholder?re.lang.rangeQuarterPlaceholder:ge==="month"&&re.lang.monthPlaceholder?re.lang.rangeMonthPlaceholder:ge==="week"&&re.lang.weekPlaceholder?re.lang.rangeWeekPlaceholder:ge==="time"&&re.timePickerLocale.placeholder?re.timePickerLocale.rangePlaceholder:re.lang.rangePlaceholder}function fs(re,ge){const{allowClear:Me=!0}=re,{clearIcon:et,removeIcon:rt}=(0,ca.Z)(Object.assign(Object.assign({},re),{prefixCls:ge,componentName:"DatePicker"}));return[fe.useMemo(()=>Me===!1?!1:Object.assign({clearIcon:et},Me===!0?{}:Me),[Me,et]),rt]}const[wr,ls]=["week","WeekPicker"],[Fu,Nu]=["month","MonthPicker"],[Ou,Su]=["year","YearPicker"],[Ns,il]=["quarter","QuarterPicker"],[Ol,Ds]=["time","TimePicker"];var Hs=ne(7939),Gu=re=>fe.createElement(Hs.ZP,Object.assign({size:"small",type:"primary"},re));function Du(re){return(0,fe.useMemo)(()=>Object.assign({button:Gu},re),[re])}var $s=function(re,ge){var Me={};for(var et in re)Object.prototype.hasOwnProperty.call(re,et)&&ge.indexOf(et)<0&&(Me[et]=re[et]);if(re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var rt=0,et=Object.getOwnPropertySymbols(re);rt<et.length;rt++)ge.indexOf(et[rt])<0&&Object.prototype.propertyIsEnumerable.call(re,et[rt])&&(Me[et[rt]]=re[et[rt]]);return Me},uu=re=>(0,fe.forwardRef)((Me,et)=>{var rt;const{prefixCls:Ft,getPopupContainer:Tt,components:Ht,className:mn,style:xn,placement:Gt,size:Pn,disabled:Rt,bordered:Tn=!0,placeholder:In,popupClassName:zn,dropdownClassName:Gn,status:Un,rootClassName:_r,variant:pr,picker:Bn}=Me,Sr=$s(Me,["prefixCls","getPopupContainer","components","className","style","placement","size","disabled","bordered","placeholder","popupClassName","dropdownClassName","status","rootClassName","variant","picker"]),ar=fe.useRef(null),{getPrefixCls:vr,direction:Ma,getPopupContainer:da,rangePicker:Zr}=(0,fe.useContext)(mo.E_),oa=vr("picker",Ft),{compactSize:Ga,compactItemClassnames:ya}=(0,Il.ri)(oa,Ma),Ur=vr(),[kr,$r]=(0,wl.Z)("rangePicker",pr,Tn),Yr=(0,Mo.Z)(oa),[Za,Ta,sa]=nu(oa,Yr),[Ea]=fs(Me,oa),Wr=Du(Ht),ba=(0,Ci.Z)(xi=>{var io;return(io=Pn!=null?Pn:Ga)!==null&&io!==void 0?io:xi}),va=fe.useContext(Bl.Z),ri=Rt!=null?Rt:va,di=(0,fe.useContext)(To.aM),{hasFeedback:mi,status:vi,feedbackIcon:ei}=di,Zi=fe.createElement(fe.Fragment,null,Bn===Ol?fe.createElement(Dt,null):fe.createElement(ut,null),mi&&ei);(0,fe.useImperativeHandle)(et,()=>ar.current);const[dn]=(0,os.Z)("Calendar",Nl.Z),Oi=Object.assign(Object.assign({},dn),Me.locale),[ao]=(0,Gr.Cn)("DatePicker",(rt=Me.popupStyle)===null||rt===void 0?void 0:rt.zIndex);return Za(fe.createElement(Ao.Z,{space:!0},fe.createElement(kl,Object.assign({separator:fe.createElement("span",{"aria-label":"to",className:`${oa}-separator`},fe.createElement(me,null)),disabled:ri,ref:ar,placement:Gt,placeholder:Iu(Oi,Bn,In),suffixIcon:Zi,prevIcon:fe.createElement("span",{className:`${oa}-prev-icon`}),nextIcon:fe.createElement("span",{className:`${oa}-next-icon`}),superPrevIcon:fe.createElement("span",{className:`${oa}-super-prev-icon`}),superNextIcon:fe.createElement("span",{className:`${oa}-super-next-icon`}),transitionName:`${Ur}-slide-up`,picker:Bn},Sr,{className:bt()({[`${oa}-${ba}`]:ba,[`${oa}-${kr}`]:$r},(0,Ai.Z)(oa,(0,Ai.F)(vi,Un),mi),Ta,ya,mn,Zr==null?void 0:Zr.className,sa,Yr,_r),style:Object.assign(Object.assign({},Zr==null?void 0:Zr.style),xn),locale:Oi.lang,prefixCls:oa,getPopupContainer:Tt||da,generateConfig:re,components:Wr,direction:Ma,classNames:{popup:bt()(Ta,zn||Gn,sa,Yr,_r)},styles:{popup:Object.assign(Object.assign({},Me.popupStyle),{zIndex:ao})},allowClear:Ea}))))}),cu=function(re,ge){var Me={};for(var et in re)Object.prototype.hasOwnProperty.call(re,et)&&ge.indexOf(et)<0&&(Me[et]=re[et]);if(re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var rt=0,et=Object.getOwnPropertySymbols(re);rt<et.length;rt++)ge.indexOf(et[rt])<0&&Object.prototype.propertyIsEnumerable.call(re,et[rt])&&(Me[et[rt]]=re[et[rt]]);return Me},du=re=>{const ge=(mn,xn)=>{const Gt=xn===Ds?"timePicker":"datePicker";return(0,fe.forwardRef)((Rt,Tn)=>{var In;const{prefixCls:zn,getPopupContainer:Gn,components:Un,style:_r,className:pr,rootClassName:Bn,size:Sr,bordered:ar,placement:vr,placeholder:Ma,popupClassName:da,dropdownClassName:Zr,disabled:oa,status:Ga,variant:ya,onCalendarChange:Ur}=Rt,kr=cu(Rt,["prefixCls","getPopupContainer","components","style","className","rootClassName","size","bordered","placement","placeholder","popupClassName","dropdownClassName","disabled","status","variant","onCalendarChange"]),{getPrefixCls:$r,direction:Yr,getPopupContainer:Za,[Gt]:Ta}=(0,fe.useContext)(mo.E_),sa=$r("picker",zn),{compactSize:Ea,compactItemClassnames:Wr}=(0,Il.ri)(sa,Yr),ba=fe.useRef(null),[va,ri]=(0,wl.Z)("datePicker",ya,ar),di=(0,Mo.Z)(sa),[mi,vi,ei]=nu(sa,di);(0,fe.useImperativeHandle)(Tn,()=>ba.current);const Zi={showToday:!0},dn=mn||Rt.picker,Oi=$r(),{onSelect:ao,multiple:xi}=kr,io=ao&&mn==="time"&&!xi,gi=(Lr,yi,Kl)=>{Ur==null||Ur(Lr,yi,Kl),io&&ao(Lr)},[oo,Vi]=fs(Rt,sa),zi=Du(Un),fo=(0,Ci.Z)(Lr=>{var yi;return(yi=Sr!=null?Sr:Ea)!==null&&yi!==void 0?yi:Lr}),Ca=fe.useContext(Bl.Z),ka=oa!=null?oa:Ca,Xi=(0,fe.useContext)(To.aM),{hasFeedback:vo,status:jo,feedbackIcon:to}=Xi,bl=fe.createElement(fe.Fragment,null,dn==="time"?fe.createElement(Dt,null):fe.createElement(ut,null),vo&&to),[Ji]=(0,os.Z)("DatePicker",Nl.Z),lo=Object.assign(Object.assign({},Ji),Rt.locale),[go]=(0,Gr.Cn)("DatePicker",(In=Rt.popupStyle)===null||In===void 0?void 0:In.zIndex);return mi(fe.createElement(Ao.Z,{space:!0},fe.createElement(Zs,Object.assign({ref:ba,placeholder:ku(lo,dn,Ma),suffixIcon:bl,placement:vr,prevIcon:fe.createElement("span",{className:`${sa}-prev-icon`}),nextIcon:fe.createElement("span",{className:`${sa}-next-icon`}),superPrevIcon:fe.createElement("span",{className:`${sa}-super-prev-icon`}),superNextIcon:fe.createElement("span",{className:`${sa}-super-next-icon`}),transitionName:`${Oi}-slide-up`,picker:mn,onCalendarChange:gi},Zi,kr,{locale:lo.lang,className:bt()({[`${sa}-${fo}`]:fo,[`${sa}-${va}`]:ri},(0,Ai.Z)(sa,(0,Ai.F)(jo,Ga),vo),vi,Wr,Ta==null?void 0:Ta.className,pr,ei,di,Bn),style:Object.assign(Object.assign({},Ta==null?void 0:Ta.style),_r),prefixCls:sa,getPopupContainer:Gn||Za,generateConfig:re,components:zi,direction:Yr,disabled:ka,classNames:{popup:bt()(vi,ei,di,Bn,da||Zr)},styles:{popup:Object.assign(Object.assign({},Rt.popupStyle),{zIndex:go})},allowClear:oo,removeIcon:Vi}))))})},Me=ge(),et=ge(wr,ls),rt=ge(Fu,Nu),Ft=ge(Ou,Su),Tt=ge(Ns,il),Ht=ge(Ol,Ds);return{DatePicker:Me,WeekPicker:et,MonthPicker:rt,YearPicker:Ft,TimePicker:Ht,QuarterPicker:Tt}},Bu=re=>{const{DatePicker:ge,WeekPicker:Me,MonthPicker:et,YearPicker:rt,TimePicker:Ft,QuarterPicker:Tt}=du(re),Ht=uu(re),mn=ge;return mn.WeekPicker=Me,mn.MonthPicker=et,mn.YearPicker=rt,mn.RangePicker=Ht,mn.TimePicker=Ft,mn.QuarterPicker=Tt,mn};const Ws=Bu(Ke),eu=(0,at.Z)(Ws,"popupAlign",void 0,"picker");Ws._InternalPanelDoNotUseOrYouWillBeFired=eu;const El=(0,at.Z)(Ws.RangePicker,"popupAlign",void 0,"picker");Ws._InternalRangePanelDoNotUseOrYouWillBeFired=El,Ws.generatePicker=Bu;var Mu=Ws},37285:function(It,kt,ne){"use strict";ne.d(kt,{Z:function(){return Ye}});var E=ne(59301),ve=ne(92310),Pe=ne.n(ve),Te=ne(48755),He=ne(36237),_e=ne(63356),ze=ne(16931),nt=ne(51636);const Fe=Ne=>{const{componentCls:Be,sizePaddingEdgeHorizontal:be,colorSplit:Ie,lineWidth:Ke,textPaddingInline:at,orientationMargin:fe,verticalMarginInline:qe}=Ne;return{[Be]:Object.assign(Object.assign({},(0,_e.Wf)(Ne)),{borderBlockStart:`${(0,He.unit)(Ke)} solid ${Ie}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:qe,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${(0,He.unit)(Ke)} solid ${Ie}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${(0,He.unit)(Ne.dividerHorizontalGutterMargin)} 0`},[`&-horizontal${Be}-with-text`]:{display:"flex",alignItems:"center",margin:`${(0,He.unit)(Ne.dividerHorizontalWithTextGutterMargin)} 0`,color:Ne.colorTextHeading,fontWeight:500,fontSize:Ne.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${Ie}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${(0,He.unit)(Ke)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${Be}-with-text-start`]:{"&::before":{width:`calc(${fe} * 100%)`},"&::after":{width:`calc(100% - ${fe} * 100%)`}},[`&-horizontal${Be}-with-text-end`]:{"&::before":{width:`calc(100% - ${fe} * 100%)`},"&::after":{width:`calc(${fe} * 100%)`}},[`${Be}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:at},"&-dashed":{background:"none",borderColor:Ie,borderStyle:"dashed",borderWidth:`${(0,He.unit)(Ke)} 0 0`},[`&-horizontal${Be}-with-text${Be}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${Be}-dashed`]:{borderInlineStartWidth:Ke,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:"none",borderColor:Ie,borderStyle:"dotted",borderWidth:`${(0,He.unit)(Ke)} 0 0`},[`&-horizontal${Be}-with-text${Be}-dotted`]:{"&::before, &::after":{borderStyle:"dotted none none"}},[`&-vertical${Be}-dotted`]:{borderInlineStartWidth:Ke,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${Be}-with-text`]:{color:Ne.colorText,fontWeight:"normal",fontSize:Ne.fontSize},[`&-horizontal${Be}-with-text-start${Be}-no-default-orientation-margin-start`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${Be}-inner-text`]:{paddingInlineStart:be}},[`&-horizontal${Be}-with-text-end${Be}-no-default-orientation-margin-end`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${Be}-inner-text`]:{paddingInlineEnd:be}}})}},We=Ne=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:Ne.marginXS});var Xe=(0,ze.I$)("Divider",Ne=>{const Be=(0,nt.mergeToken)(Ne,{dividerHorizontalWithTextGutterMargin:Ne.margin,dividerHorizontalGutterMargin:Ne.marginLG,sizePaddingEdgeHorizontal:0});return[Fe(Be)]},We,{unitless:{orientationMargin:!0}}),$e=function(Ne,Be){var be={};for(var Ie in Ne)Object.prototype.hasOwnProperty.call(Ne,Ie)&&Be.indexOf(Ie)<0&&(be[Ie]=Ne[Ie]);if(Ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ke=0,Ie=Object.getOwnPropertySymbols(Ne);Ke<Ie.length;Ke++)Be.indexOf(Ie[Ke])<0&&Object.prototype.propertyIsEnumerable.call(Ne,Ie[Ke])&&(be[Ie[Ke]]=Ne[Ie[Ke]]);return be},Ye=Ne=>{const{getPrefixCls:Be,direction:be,className:Ie,style:Ke}=(0,Te.dj)("divider"),{prefixCls:at,type:fe="horizontal",orientation:qe="center",orientationMargin:st,className:wt,rootClassName:ft,children:ct,dashed:Je,variant:ut="solid",plain:Se,style:Ve}=Ne,Ae=$e(Ne,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","variant","plain","style"]),tt=Be("divider",at),[Dt,lt,Qe]=Xe(tt),xt=!!ct,Re=E.useMemo(()=>qe==="left"?be==="rtl"?"end":"start":qe==="right"?be==="rtl"?"start":"end":qe,[be,qe]),me=Re==="start"&&st!=null,pt=Re==="end"&&st!=null,bt=Pe()(tt,Ie,lt,Qe,`${tt}-${fe}`,{[`${tt}-with-text`]:xt,[`${tt}-with-text-${Re}`]:xt,[`${tt}-dashed`]:!!Je,[`${tt}-${ut}`]:ut!=="solid",[`${tt}-plain`]:!!Se,[`${tt}-rtl`]:be==="rtl",[`${tt}-no-default-orientation-margin-start`]:me,[`${tt}-no-default-orientation-margin-end`]:pt},wt,ft),it=E.useMemo(()=>typeof st=="number"?st:/^\d+$/.test(st)?Number(st):st,[st]),Le={marginInlineStart:me?it:void 0,marginInlineEnd:pt?it:void 0};return Dt(E.createElement("div",Object.assign({className:bt,style:Object.assign(Object.assign({},Ke),Ve)},Ae,{role:"separator"}),ct&&fe!=="vertical"&&E.createElement("span",{className:`${tt}-inner-text`,style:Le},ct)))}},54265:function(It,kt,ne){"use strict";ne.d(kt,{Z:function(){return ct}});var E=ne(59301),ve=ne(92310),Pe=ne.n(ve),Te=ne(2738),He=ne(99402),_e=ne(48755),ze=ne(16931),nt=ne(51636);const Fe=["wrap","nowrap","wrap-reverse"],We=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],Xe=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],$e=(Je,ut)=>{const Se=ut.wrap===!0?"wrap":ut.wrap;return{[`${Je}-wrap-${Se}`]:Se&&Fe.includes(Se)}},vt=(Je,ut)=>{const Se={};return Xe.forEach(Ve=>{Se[`${Je}-align-${Ve}`]=ut.align===Ve}),Se[`${Je}-align-stretch`]=!ut.align&&!!ut.vertical,Se},Ye=(Je,ut)=>{const Se={};return We.forEach(Ve=>{Se[`${Je}-justify-${Ve}`]=ut.justify===Ve}),Se};function Ne(Je,ut){return Pe()(Object.assign(Object.assign(Object.assign({},$e(Je,ut)),vt(Je,ut)),Ye(Je,ut)))}var Be=Ne;const be=Je=>{const{componentCls:ut}=Je;return{[ut]:{display:"flex",margin:0,padding:0,"&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},Ie=Je=>{const{componentCls:ut}=Je;return{[ut]:{"&-gap-small":{gap:Je.flexGapSM},"&-gap-middle":{gap:Je.flexGap},"&-gap-large":{gap:Je.flexGapLG}}}},Ke=Je=>{const{componentCls:ut}=Je,Se={};return Fe.forEach(Ve=>{Se[`${ut}-wrap-${Ve}`]={flexWrap:Ve}}),Se},at=Je=>{const{componentCls:ut}=Je,Se={};return Xe.forEach(Ve=>{Se[`${ut}-align-${Ve}`]={alignItems:Ve}}),Se},fe=Je=>{const{componentCls:ut}=Je,Se={};return We.forEach(Ve=>{Se[`${ut}-justify-${Ve}`]={justifyContent:Ve}}),Se},qe=()=>({});var st=(0,ze.I$)("Flex",Je=>{const{paddingXS:ut,padding:Se,paddingLG:Ve}=Je,Ae=(0,nt.mergeToken)(Je,{flexGapSM:ut,flexGap:Se,flexGapLG:Ve});return[be(Ae),Ie(Ae),Ke(Ae),at(Ae),fe(Ae)]},qe,{resetStyle:!1}),wt=function(Je,ut){var Se={};for(var Ve in Je)Object.prototype.hasOwnProperty.call(Je,Ve)&&ut.indexOf(Ve)<0&&(Se[Ve]=Je[Ve]);if(Je!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ae=0,Ve=Object.getOwnPropertySymbols(Je);Ae<Ve.length;Ae++)ut.indexOf(Ve[Ae])<0&&Object.prototype.propertyIsEnumerable.call(Je,Ve[Ae])&&(Se[Ve[Ae]]=Je[Ve[Ae]]);return Se},ct=E.forwardRef((Je,ut)=>{const{prefixCls:Se,rootClassName:Ve,className:Ae,style:tt,flex:Dt,gap:lt,children:Qe,vertical:xt=!1,component:Re="div"}=Je,me=wt(Je,["prefixCls","rootClassName","className","style","flex","gap","children","vertical","component"]),{flex:pt,direction:bt,getPrefixCls:it}=E.useContext(_e.E_),Le=it("flex",Se),[Ue,mt,Zt]=st(Le),Pt=xt!=null?xt:pt==null?void 0:pt.vertical,en=Pe()(Ae,Ve,pt==null?void 0:pt.className,Le,mt,Zt,Be(Le,Je),{[`${Le}-rtl`]:bt==="rtl",[`${Le}-gap-${lt}`]:(0,He.n)(lt),[`${Le}-vertical`]:Pt}),dt=Object.assign(Object.assign({},pt==null?void 0:pt.style),tt);return Dt&&(dt.flex=Dt),lt&&!(0,He.n)(lt)&&(dt.gap=lt),Ue(E.createElement(Re,Object.assign({ref:ut,className:en,style:dt},(0,Te.Z)(me,["justify","wrap","align"])),Qe))})},93725:function(It,kt,ne){"use strict";ne.d(kt,{Z:function(){return Je}});var E=ne(59301),ve=ne(96512),Pe=ne(92310),Te=ne.n(Pe),He=ne(18929),_e=ne(2738),ze=ne(48755),nt=ne(37639),Fe=ne(15565),We=ne(54500),Xe=ne(7939),$e=ne(61670),vt=ne(9017),Ye=ne(85981),Ne=ne(69106),Be=ne(16931);const be=ut=>{const{componentCls:Se,iconCls:Ve,antCls:Ae,zIndexPopup:tt,colorText:Dt,colorWarning:lt,marginXXS:Qe,marginXS:xt,fontSize:Re,fontWeightStrong:me,colorTextHeading:pt}=ut;return{[Se]:{zIndex:tt,[`&${Ae}-popover`]:{fontSize:Re},[`${Se}-message`]:{marginBottom:xt,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${Se}-message-icon ${Ve}`]:{color:lt,fontSize:Re,lineHeight:1,marginInlineEnd:xt},[`${Se}-title`]:{fontWeight:me,color:pt,"&:only-child":{fontWeight:"normal"}},[`${Se}-description`]:{marginTop:Qe,color:Dt}},[`${Se}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:xt}}}}},Ie=ut=>{const{zIndexPopupBase:Se}=ut;return{zIndexPopup:Se+60}};var Ke=(0,Be.I$)("Popconfirm",ut=>be(ut),Ie,{resetStyle:!1}),at=function(ut,Se){var Ve={};for(var Ae in ut)Object.prototype.hasOwnProperty.call(ut,Ae)&&Se.indexOf(Ae)<0&&(Ve[Ae]=ut[Ae]);if(ut!=null&&typeof Object.getOwnPropertySymbols=="function")for(var tt=0,Ae=Object.getOwnPropertySymbols(ut);tt<Ae.length;tt++)Se.indexOf(Ae[tt])<0&&Object.prototype.propertyIsEnumerable.call(ut,Ae[tt])&&(Ve[Ae[tt]]=ut[Ae[tt]]);return Ve};const fe=ut=>{const{prefixCls:Se,okButtonProps:Ve,cancelButtonProps:Ae,title:tt,description:Dt,cancelText:lt,okText:Qe,okType:xt="primary",icon:Re=E.createElement(ve.Z,null),showCancel:me=!0,close:pt,onConfirm:bt,onCancel:it,onPopupClick:Le}=ut,{getPrefixCls:Ue}=E.useContext(ze.E_),[mt]=(0,vt.Z)("Popconfirm",Ye.Z.Popconfirm),Zt=(0,We.Z)(tt),Pt=(0,We.Z)(Dt);return E.createElement("div",{className:`${Se}-inner-content`,onClick:Le},E.createElement("div",{className:`${Se}-message`},Re&&E.createElement("span",{className:`${Se}-message-icon`},Re),E.createElement("div",{className:`${Se}-message-text`},Zt&&E.createElement("div",{className:`${Se}-title`},Zt),Pt&&E.createElement("div",{className:`${Se}-description`},Pt))),E.createElement("div",{className:`${Se}-buttons`},me&&E.createElement(Xe.ZP,Object.assign({onClick:it,size:"small"},Ae),lt||(mt==null?void 0:mt.cancelText)),E.createElement(Fe.Z,{buttonProps:Object.assign(Object.assign({size:"small"},(0,$e.nx)(xt)),Ve),actionFn:bt,close:pt,prefixCls:Ue("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},Qe||(mt==null?void 0:mt.okText))))};var st=ut=>{const{prefixCls:Se,placement:Ve,className:Ae,style:tt}=ut,Dt=at(ut,["prefixCls","placement","className","style"]),{getPrefixCls:lt}=E.useContext(ze.E_),Qe=lt("popconfirm",Se),[xt]=Ke(Qe);return xt(E.createElement(Ne.ZP,{placement:Ve,className:Te()(Qe,Ae),style:tt,content:E.createElement(fe,Object.assign({prefixCls:Qe},Dt))}))},wt=function(ut,Se){var Ve={};for(var Ae in ut)Object.prototype.hasOwnProperty.call(ut,Ae)&&Se.indexOf(Ae)<0&&(Ve[Ae]=ut[Ae]);if(ut!=null&&typeof Object.getOwnPropertySymbols=="function")for(var tt=0,Ae=Object.getOwnPropertySymbols(ut);tt<Ae.length;tt++)Se.indexOf(Ae[tt])<0&&Object.prototype.propertyIsEnumerable.call(ut,Ae[tt])&&(Ve[Ae[tt]]=ut[Ae[tt]]);return Ve};const ct=E.forwardRef((ut,Se)=>{var Ve,Ae;const{prefixCls:tt,placement:Dt="top",trigger:lt="click",okType:Qe="primary",icon:xt=E.createElement(ve.Z,null),children:Re,overlayClassName:me,onOpenChange:pt,onVisibleChange:bt,overlayStyle:it,styles:Le,classNames:Ue}=ut,mt=wt(ut,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange","overlayStyle","styles","classNames"]),{getPrefixCls:Zt,className:Pt,style:en,classNames:dt,styles:Lt}=(0,ze.dj)("popconfirm"),[pn,he]=(0,He.Z)(!1,{value:(Ve=ut.open)!==null&&Ve!==void 0?Ve:ut.visible,defaultValue:(Ae=ut.defaultOpen)!==null&&Ae!==void 0?Ae:ut.defaultVisible}),le=(Kt,Yn)=>{he(Kt,!0),bt==null||bt(Kt),pt==null||pt(Kt,Yn)},ae=Kt=>{le(!1,Kt)},pe=Kt=>{var Yn;return(Yn=ut.onConfirm)===null||Yn===void 0?void 0:Yn.call(void 0,Kt)},ye=Kt=>{var Yn;le(!1,Kt),(Yn=ut.onCancel)===null||Yn===void 0||Yn.call(void 0,Kt)},se=(Kt,Yn)=>{const{disabled:Fn=!1}=ut;Fn||le(Kt,Yn)},ot=Zt("popconfirm",tt),Xt=Te()(ot,Pt,me,dt.root,Ue==null?void 0:Ue.root),zt=Te()(dt.body,Ue==null?void 0:Ue.body),[on]=Ke(ot);return on(E.createElement(nt.Z,Object.assign({},(0,_e.Z)(mt,["title"]),{trigger:lt,placement:Dt,onOpenChange:se,open:pn,ref:Se,classNames:{root:Xt,body:zt},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},Lt.root),en),it),Le==null?void 0:Le.root),body:Object.assign(Object.assign({},Lt.body),Le==null?void 0:Le.body)},content:E.createElement(fe,Object.assign({okType:Qe,icon:xt},ut,{prefixCls:ot,close:ae,onConfirm:pe,onCancel:ye})),"data-popover-inject":!0}),Re))});ct._InternalPanelDoNotUseOrYouWillBeFired=st;var Je=ct},58755:function(It,kt,ne){"use strict";ne.d(kt,{Z:function(){return Dt}});var E=ne(59301),ve=ne(58617),Pe=ne(92310),Te=ne.n(Pe),He=ne(60499),_e=ne(18642),ze=ne(72190),nt=ne(42244),Fe=ne(18929),We=ne(10228),Xe=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],$e=E.forwardRef(function(lt,Qe){var xt,Re=lt.prefixCls,me=Re===void 0?"rc-switch":Re,pt=lt.className,bt=lt.checked,it=lt.defaultChecked,Le=lt.disabled,Ue=lt.loadingIcon,mt=lt.checkedChildren,Zt=lt.unCheckedChildren,Pt=lt.onClick,en=lt.onChange,dt=lt.onKeyDown,Lt=(0,nt.Z)(lt,Xe),pn=(0,Fe.Z)(!1,{value:bt,defaultValue:it}),he=(0,ze.Z)(pn,2),le=he[0],ae=he[1];function pe(Xt,zt){var on=le;return Le||(on=Xt,ae(on),en==null||en(on,zt)),on}function ye(Xt){Xt.which===We.Z.LEFT?pe(!1,Xt):Xt.which===We.Z.RIGHT&&pe(!0,Xt),dt==null||dt(Xt)}function se(Xt){var zt=pe(!le,Xt);Pt==null||Pt(zt,Xt)}var ot=Te()(me,pt,(xt={},(0,_e.Z)(xt,"".concat(me,"-checked"),le),(0,_e.Z)(xt,"".concat(me,"-disabled"),Le),xt));return E.createElement("button",(0,He.Z)({},Lt,{type:"button",role:"switch","aria-checked":le,disabled:Le,className:ot,ref:Qe,onKeyDown:ye,onClick:se}),Ue,E.createElement("span",{className:"".concat(me,"-inner")},E.createElement("span",{className:"".concat(me,"-inner-checked")},mt),E.createElement("span",{className:"".concat(me,"-inner-unchecked")},Zt)))});$e.displayName="Switch";var vt=$e,Ye=ne(12919),Ne=ne(48755),Be=ne(2171),be=ne(31756),Ie=ne(36237),Ke=ne(17835),at=ne(63356),fe=ne(16931),qe=ne(51636);const st=lt=>{const{componentCls:Qe,trackHeightSM:xt,trackPadding:Re,trackMinWidthSM:me,innerMinMarginSM:pt,innerMaxMarginSM:bt,handleSizeSM:it,calc:Le}=lt,Ue=`${Qe}-inner`,mt=(0,Ie.unit)(Le(it).add(Le(Re).mul(2)).equal()),Zt=(0,Ie.unit)(Le(bt).mul(2).equal());return{[Qe]:{[`&${Qe}-small`]:{minWidth:me,height:xt,lineHeight:(0,Ie.unit)(xt),[`${Qe}-inner`]:{paddingInlineStart:bt,paddingInlineEnd:pt,[`${Ue}-checked, ${Ue}-unchecked`]:{minHeight:xt},[`${Ue}-checked`]:{marginInlineStart:`calc(-100% + ${mt} - ${Zt})`,marginInlineEnd:`calc(100% - ${mt} + ${Zt})`},[`${Ue}-unchecked`]:{marginTop:Le(xt).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${Qe}-handle`]:{width:it,height:it},[`${Qe}-loading-icon`]:{top:Le(Le(it).sub(lt.switchLoadingIconSize)).div(2).equal(),fontSize:lt.switchLoadingIconSize},[`&${Qe}-checked`]:{[`${Qe}-inner`]:{paddingInlineStart:pt,paddingInlineEnd:bt,[`${Ue}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${Ue}-unchecked`]:{marginInlineStart:`calc(100% - ${mt} + ${Zt})`,marginInlineEnd:`calc(-100% + ${mt} - ${Zt})`}},[`${Qe}-handle`]:{insetInlineStart:`calc(100% - ${(0,Ie.unit)(Le(it).add(Re).equal())})`}},[`&:not(${Qe}-disabled):active`]:{[`&:not(${Qe}-checked) ${Ue}`]:{[`${Ue}-unchecked`]:{marginInlineStart:Le(lt.marginXXS).div(2).equal(),marginInlineEnd:Le(lt.marginXXS).mul(-1).div(2).equal()}},[`&${Qe}-checked ${Ue}`]:{[`${Ue}-checked`]:{marginInlineStart:Le(lt.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:Le(lt.marginXXS).div(2).equal()}}}}}}},wt=lt=>{const{componentCls:Qe,handleSize:xt,calc:Re}=lt;return{[Qe]:{[`${Qe}-loading-icon${lt.iconCls}`]:{position:"relative",top:Re(Re(xt).sub(lt.fontSize)).div(2).equal(),color:lt.switchLoadingIconColor,verticalAlign:"top"},[`&${Qe}-checked ${Qe}-loading-icon`]:{color:lt.switchColor}}}},ft=lt=>{const{componentCls:Qe,trackPadding:xt,handleBg:Re,handleShadow:me,handleSize:pt,calc:bt}=lt,it=`${Qe}-handle`;return{[Qe]:{[it]:{position:"absolute",top:xt,insetInlineStart:xt,width:pt,height:pt,transition:`all ${lt.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:Re,borderRadius:bt(pt).div(2).equal(),boxShadow:me,transition:`all ${lt.switchDuration} ease-in-out`,content:'""'}},[`&${Qe}-checked ${it}`]:{insetInlineStart:`calc(100% - ${(0,Ie.unit)(bt(pt).add(xt).equal())})`},[`&:not(${Qe}-disabled):active`]:{[`${it}::before`]:{insetInlineEnd:lt.switchHandleActiveInset,insetInlineStart:0},[`&${Qe}-checked ${it}::before`]:{insetInlineEnd:0,insetInlineStart:lt.switchHandleActiveInset}}}}},ct=lt=>{const{componentCls:Qe,trackHeight:xt,trackPadding:Re,innerMinMargin:me,innerMaxMargin:pt,handleSize:bt,calc:it}=lt,Le=`${Qe}-inner`,Ue=(0,Ie.unit)(it(bt).add(it(Re).mul(2)).equal()),mt=(0,Ie.unit)(it(pt).mul(2).equal());return{[Qe]:{[Le]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:pt,paddingInlineEnd:me,transition:`padding-inline-start ${lt.switchDuration} ease-in-out, padding-inline-end ${lt.switchDuration} ease-in-out`,[`${Le}-checked, ${Le}-unchecked`]:{display:"block",color:lt.colorTextLightSolid,fontSize:lt.fontSizeSM,transition:`margin-inline-start ${lt.switchDuration} ease-in-out, margin-inline-end ${lt.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:xt},[`${Le}-checked`]:{marginInlineStart:`calc(-100% + ${Ue} - ${mt})`,marginInlineEnd:`calc(100% - ${Ue} + ${mt})`},[`${Le}-unchecked`]:{marginTop:it(xt).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${Qe}-checked ${Le}`]:{paddingInlineStart:me,paddingInlineEnd:pt,[`${Le}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${Le}-unchecked`]:{marginInlineStart:`calc(100% - ${Ue} + ${mt})`,marginInlineEnd:`calc(-100% + ${Ue} - ${mt})`}},[`&:not(${Qe}-disabled):active`]:{[`&:not(${Qe}-checked) ${Le}`]:{[`${Le}-unchecked`]:{marginInlineStart:it(Re).mul(2).equal(),marginInlineEnd:it(Re).mul(-1).mul(2).equal()}},[`&${Qe}-checked ${Le}`]:{[`${Le}-checked`]:{marginInlineStart:it(Re).mul(-1).mul(2).equal(),marginInlineEnd:it(Re).mul(2).equal()}}}}}},Je=lt=>{const{componentCls:Qe,trackHeight:xt,trackMinWidth:Re}=lt;return{[Qe]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,at.Wf)(lt)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:Re,height:xt,lineHeight:(0,Ie.unit)(xt),verticalAlign:"middle",background:lt.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${lt.motionDurationMid}`,userSelect:"none",[`&:hover:not(${Qe}-disabled)`]:{background:lt.colorTextTertiary}}),(0,at.Qy)(lt)),{[`&${Qe}-checked`]:{background:lt.switchColor,[`&:hover:not(${Qe}-disabled)`]:{background:lt.colorPrimaryHover}},[`&${Qe}-loading, &${Qe}-disabled`]:{cursor:"not-allowed",opacity:lt.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${Qe}-rtl`]:{direction:"rtl"}})}},ut=lt=>{const{fontSize:Qe,lineHeight:xt,controlHeight:Re,colorWhite:me}=lt,pt=Qe*xt,bt=Re/2,it=2,Le=pt-it*2,Ue=bt-it*2;return{trackHeight:pt,trackHeightSM:bt,trackMinWidth:Le*2+it*4,trackMinWidthSM:Ue*2+it*2,trackPadding:it,handleBg:me,handleSize:Le,handleSizeSM:Ue,handleShadow:`0 2px 4px 0 ${new Ke.FastColor("#00230b").setA(.2).toRgbString()}`,innerMinMargin:Le/2,innerMaxMargin:Le+it+it*2,innerMinMarginSM:Ue/2,innerMaxMarginSM:Ue+it+it*2}};var Se=(0,fe.I$)("Switch",lt=>{const Qe=(0,qe.mergeToken)(lt,{switchDuration:lt.motionDurationMid,switchColor:lt.colorPrimary,switchDisabledOpacity:lt.opacityLoading,switchLoadingIconSize:lt.calc(lt.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${lt.opacityLoading})`,switchHandleActiveInset:"-30%"});return[Je(Qe),ct(Qe),ft(Qe),wt(Qe),st(Qe)]},ut),Ve=function(lt,Qe){var xt={};for(var Re in lt)Object.prototype.hasOwnProperty.call(lt,Re)&&Qe.indexOf(Re)<0&&(xt[Re]=lt[Re]);if(lt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var me=0,Re=Object.getOwnPropertySymbols(lt);me<Re.length;me++)Qe.indexOf(Re[me])<0&&Object.prototype.propertyIsEnumerable.call(lt,Re[me])&&(xt[Re[me]]=lt[Re[me]]);return xt};const tt=E.forwardRef((lt,Qe)=>{const{prefixCls:xt,size:Re,disabled:me,loading:pt,className:bt,rootClassName:it,style:Le,checked:Ue,value:mt,defaultChecked:Zt,defaultValue:Pt,onChange:en}=lt,dt=Ve(lt,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[Lt,pn]=(0,Fe.Z)(!1,{value:Ue!=null?Ue:mt,defaultValue:Zt!=null?Zt:Pt}),{getPrefixCls:he,direction:le,switch:ae}=E.useContext(Ne.E_),pe=E.useContext(Be.Z),ye=(me!=null?me:pe)||pt,se=he("switch",xt),ot=E.createElement("div",{className:`${se}-handle`},pt&&E.createElement(ve.Z,{className:`${se}-loading-icon`})),[Xt,zt,on]=Se(se),Kt=(0,be.Z)(Re),Yn=Te()(ae==null?void 0:ae.className,{[`${se}-small`]:Kt==="small",[`${se}-loading`]:pt,[`${se}-rtl`]:le==="rtl"},bt,it,zt,on),Fn=Object.assign(Object.assign({},ae==null?void 0:ae.style),Le),or=function(){pn(arguments.length<=0?void 0:arguments[0]),en==null||en.apply(void 0,arguments)};return Xt(E.createElement(Ye.Z,{component:"Switch"},E.createElement(vt,Object.assign({},dt,{checked:Lt,onChange:or,prefixCls:se,className:Yn,style:Fn,disabled:ye,ref:Qe,loadingIcon:ot}))))});tt.__ANT_SWITCH=!0;var Dt=tt},53420:function(It,kt,ne){"use strict";ne.d(kt,{default:function(){return Kn}});var E=ne(59301),ve=ne(92310),Pe=ne.n(ve),Te=ne(60499),He=ne(77654),_e=ne(85899),ze=ne(72190),nt=ne(42244),Fe=ne(43749),We=ne(37463),Xe=ne(6551),$e=ne(34643),vt=ne(18929),Ye=ne(48736),Ne=function(Jt){var On=E.useRef({valueLabels:new Map});return E.useMemo(function(){var hr=On.current.valueLabels,yr=new Map,Ar=Jt.map(function(la){var Er=la.value,Qt=la.label,_n=Qt!=null?Qt:hr.get(Er);return yr.set(Er,_n),(0,_e.Z)((0,_e.Z)({},la),{},{label:_n})});return On.current.valueLabels=yr,[Ar]},[Jt])},Be=function(On,hr,yr,Ar){return E.useMemo(function(){var la=function(si){return si.map(function(so){var Mn=so.value;return Mn})},Er=la(On),Qt=la(hr),_n=Er.filter(function(Xa){return!Ar[Xa]}),br=Er,Nr=Qt;if(yr){var qr=(0,$e.S)(Er,!0,Ar);br=qr.checkedKeys,Nr=qr.halfCheckedKeys}return[Array.from(new Set([].concat((0,He.Z)(_n),(0,He.Z)(br)))),Nr]},[On,hr,yr,Ar])},be=Be,Ie=ne(34061),Ke=function(Jt,On){return E.useMemo(function(){var hr=(0,Ie.I8)(Jt,{fieldNames:On,initWrapper:function(Ar){return(0,_e.Z)((0,_e.Z)({},Ar),{},{valueEntities:new Map})},processEntity:function(Ar,la){var Er=Ar.node[On.value];if(0)var Qt;la.valueEntities.set(Er,Ar)}});return hr},[Jt,On])},at=ne(18642),fe=ne(11592),qe=function(){return null},st=qe,wt=["children","value"];function ft(Jt){return(0,fe.Z)(Jt).map(function(On){if(!E.isValidElement(On)||!On.type)return null;var hr=On,yr=hr.key,Ar=hr.props,la=Ar.children,Er=Ar.value,Qt=(0,nt.Z)(Ar,wt),_n=(0,_e.Z)({key:yr,value:Er},Qt),br=ft(la);return br.length&&(_n.children=br),_n}).filter(function(On){return On})}function ct(Jt){if(!Jt)return Jt;var On=(0,_e.Z)({},Jt);return"props"in On||Object.defineProperty(On,"props",{get:function(){return(0,Ye.ZP)(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),On}}),On}function Je(Jt,On,hr,yr,Ar,la){var Er=null,Qt=null;function _n(){function br(Nr){var qr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"0",Xa=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return Nr.map(function(si,so){var Mn="".concat(qr,"-").concat(so),Rr=si[la.value],jn=hr.includes(Rr),tl=br(si[la.children]||[],Mn,jn),Zo=E.createElement(st,si,tl.map(function(rn){return rn.node}));if(On===Rr&&(Er=Zo),jn){var Ct={pos:Mn,node:Zo,children:tl};return Xa||Qt.push(Ct),Ct}return null}).filter(function(si){return si})}Qt||(Qt=[],br(yr),Qt.sort(function(Nr,qr){var Xa=Nr.node.props.value,si=qr.node.props.value,so=hr.indexOf(Xa),Mn=hr.indexOf(si);return so-Mn}))}Object.defineProperty(Jt,"triggerNode",{get:function(){return(0,Ye.ZP)(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),_n(),Er}}),Object.defineProperty(Jt,"allCheckedNodes",{get:function(){return(0,Ye.ZP)(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),_n(),Ar?Qt:Qt.map(function(Nr){var qr=Nr.node;return qr})}})}var ut=function(On,hr,yr){var Ar=yr.fieldNames,la=yr.treeNodeFilterProp,Er=yr.filterTreeNode,Qt=Ar.children;return E.useMemo(function(){if(!hr||Er===!1)return On;var _n=typeof Er=="function"?Er:function(Nr,qr){return String(qr[la]).toUpperCase().includes(hr.toUpperCase())},br=function Nr(qr){var Xa=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return qr.reduce(function(si,so){var Mn=so[Qt],Rr=Xa||_n(hr,ct(so)),jn=Nr(Mn||[],Rr);return(Rr||jn.length)&&si.push((0,_e.Z)((0,_e.Z)({},so),{},(0,at.Z)({isLeaf:void 0},Qt,jn))),si},[])};return br(On)},[On,hr,Qt,la,Er])},Se=ut;function Ve(Jt){var On=E.useRef();On.current=Jt;var hr=E.useCallback(function(){return On.current.apply(On,arguments)},[]);return hr}function Ae(Jt,On){var hr=On.id,yr=On.pId,Ar=On.rootPId,la=new Map,Er=[];return Jt.forEach(function(Qt){var _n=Qt[hr],br=(0,_e.Z)((0,_e.Z)({},Qt),{},{key:Qt.key||_n});la.set(_n,br)}),la.forEach(function(Qt){var _n=Qt[yr],br=la.get(_n);br?(br.children=br.children||[],br.children.push(Qt)):(_n===Ar||Ar===null)&&Er.push(Qt)}),Er}function tt(Jt,On,hr){return E.useMemo(function(){if(Jt){if(hr){var yr=(0,_e.Z)({id:"id",pId:"pId",rootPId:null},(0,Fe.Z)(hr)==="object"?hr:{});return Ae(Jt,yr)}return Jt}return ft(On)},[On,hr,Jt])}var Dt=E.createContext(null),lt=Dt,Qe=ne(72054),xt=ne(87632),Re=ne(10228),me=ne(80547),pt=E.createContext(null),bt=pt,it=function(On){return Array.isArray(On)?On:On!==void 0?[On]:[]},Le=function(On){var hr=On||{},yr=hr.label,Ar=hr.value,la=hr.children;return{_title:yr?[yr]:["title","label"],value:Ar||"value",key:Ar||"value",children:la||"children"}},Ue=function(On){return!On||On.disabled||On.disableCheckbox||On.checkable===!1},mt=function(On,hr){var yr=[],Ar=function la(Er){Er.forEach(function(Qt){var _n=Qt[hr.children];_n&&(yr.push(Qt[hr.value]),la(_n))})};return Ar(On),yr},Zt=function(On){return On==null},Pt=ne(70425),en={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},dt=function(On,hr){var yr=(0,We.lk)(),Ar=yr.prefixCls,la=yr.multiple,Er=yr.searchValue,Qt=yr.toggleOpen,_n=yr.open,br=yr.notFoundContent,Nr=E.useContext(bt),qr=Nr.virtual,Xa=Nr.listHeight,si=Nr.listItemHeight,so=Nr.listItemScrollOffset,Mn=Nr.treeData,Rr=Nr.fieldNames,jn=Nr.onSelect,tl=Nr.dropdownMatchSelectWidth,Zo=Nr.treeExpandAction,Ct=Nr.treeTitleRender,rn=Nr.onPopupScroll,Mt=Nr.leftMaxCount,Nt=Nr.leafCountOnly,sr=Nr.valueEntities,Hn=E.useContext(lt),vn=Hn.checkable,Fr=Hn.checkedKeys,Pr=Hn.halfCheckedKeys,Or=Hn.treeExpandedKeys,Ha=Hn.treeDefaultExpandAll,ma=Hn.treeDefaultExpandedKeys,Qr=Hn.onTreeExpand,za=Hn.treeIcon,Ya=Hn.showTreeIcon,jr=Hn.switcherIcon,Wa=Hn.treeLine,Li=Hn.treeNodeFilterProp,ui=Hn.loadData,Sa=Hn.treeLoadedKeys,ia=Hn.treeMotion,$i=Hn.onTreeLoad,ci=Hn.keyEntities,ja=E.useRef(),ai=(0,me.Z)(function(){return Mn},[_n,Mn],function(ta,Ba){return Ba[0]&&ta[1]!==Ba[1]}),wi=E.useMemo(function(){return vn?{checked:Fr,halfChecked:Pr}:null},[vn,Fr,Pr]);E.useEffect(function(){if(_n&&!la&&Fr.length){var ta;(ta=ja.current)===null||ta===void 0||ta.scrollTo({key:Fr[0]})}},[_n]);var ii=function(Ba){Ba.preventDefault()},Da=function(Ba,bi){var Hi=bi.node;vn&&Ue(Hi)||(jn(Hi.key,{selected:!Fr.includes(Hi.key)}),la||Qt(!1))},Di=E.useState(ma),oi=(0,ze.Z)(Di,2),xo=oi[0],Bo=oi[1],Ei=E.useState(null),Qi=(0,ze.Z)(Ei,2),ga=Qi[0],Ri=Qi[1],Pi=E.useMemo(function(){return Or?(0,He.Z)(Or):Er?ga:xo},[xo,ga,Or,Er]),Fo=function(Ba){Bo(Ba),Ri(Ba),Qr&&Qr(Ba)},Bi=String(Er).toLowerCase(),Fi=function(Ba){return Bi?String(Ba[Li]).toLowerCase().includes(Bi):!1};E.useEffect(function(){Er&&Ri(mt(Mn,Rr))},[Er]);var So=E.useState(function(){return new Map}),De=(0,ze.Z)(So,2),jt=De[0],hn=De[1];E.useEffect(function(){Mt&&hn(new Map)},[Mt]);function Cn(ta){var Ba=ta[Rr.value];if(!jt.has(Ba)){var bi=sr.get(Ba),Hi=(bi.children||[]).length===0;if(Hi)jt.set(Ba,!1);else{var uo=bi.children.filter(function(ol){return!ol.node.disabled&&!ol.node.disableCheckbox&&!Fr.includes(ol.node[Rr.value])}),pl=uo.length;jt.set(Ba,pl>Mt)}}return jt.get(Ba)}var _t=(0,Pt.zX)(function(ta){var Ba=ta[Rr.value];return Fr.includes(Ba)||Mt===null?!1:Mt<=0?!0:Nt&&Mt?Cn(ta):!1}),$t=function ta(Ba){var bi=(0,Qe.Z)(Ba),Hi;try{for(bi.s();!(Hi=bi.n()).done;){var uo=Hi.value;if(!(uo.disabled||uo.selectable===!1)){if(Er){if(Fi(uo))return uo}else return uo;if(uo[Rr.children]){var pl=ta(uo[Rr.children]);if(pl)return pl}}}}catch(ol){bi.e(ol)}finally{bi.f()}return null},Ut=E.useState(null),an=(0,ze.Z)(Ut,2),qt=an[0],An=an[1],fr=ci[qt];E.useEffect(function(){if(_n){var ta=null,Ba=function(){var Hi=$t(ai);return Hi?Hi[Rr.value]:null};!la&&Fr.length&&!Er?ta=Fr[0]:ta=Ba(),An(ta)}},[_n,Er]),E.useImperativeHandle(hr,function(){var ta;return{scrollTo:(ta=ja.current)===null||ta===void 0?void 0:ta.scrollTo,onKeyDown:function(bi){var Hi,uo=bi.which;switch(uo){case Re.Z.UP:case Re.Z.DOWN:case Re.Z.LEFT:case Re.Z.RIGHT:(Hi=ja.current)===null||Hi===void 0||Hi.onKeyDown(bi);break;case Re.Z.ENTER:{if(fr){var pl=_t(fr.node),ol=(fr==null?void 0:fr.node)||{},ll=ol.selectable,nl=ol.value,Do=ol.disabled;ll!==!1&&!Do&&!pl&&Da(null,{node:{key:qt},selected:!Fr.includes(nl)})}break}case Re.Z.ESC:Qt(!1)}},onKeyUp:function(){}}});var cr=(0,me.Z)(function(){return!Er},[Er,Or||xo],function(ta,Ba){var bi=(0,ze.Z)(ta,1),Hi=bi[0],uo=(0,ze.Z)(Ba,2),pl=uo[0],ol=uo[1];return Hi!==pl&&!!(pl||ol)}),$n=cr?ui:null;if(ai.length===0)return E.createElement("div",{role:"listbox",className:"".concat(Ar,"-empty"),onMouseDown:ii},br);var Pa={fieldNames:Rr};return Sa&&(Pa.loadedKeys=Sa),Pi&&(Pa.expandedKeys=Pi),E.createElement("div",{onMouseDown:ii},fr&&_n&&E.createElement("span",{style:en,"aria-live":"assertive"},fr.node.value),E.createElement(xt.y6.Provider,{value:{nodeDisabled:_t}},E.createElement(xt.ZP,(0,Te.Z)({ref:ja,focusable:!1,prefixCls:"".concat(Ar,"-tree"),treeData:ai,height:Xa,itemHeight:si,itemScrollOffset:so,virtual:qr!==!1&&tl!==!1,multiple:la,icon:za,showIcon:Ya,switcherIcon:jr,showLine:Wa,loadData:$n,motion:ia,activeKey:qt,checkable:vn,checkStrictly:!0,checkedKeys:wi,selectedKeys:vn?[]:Fr,defaultExpandAll:Ha,titleRender:Ct},Pa,{onActiveChange:An,onSelect:Da,onCheck:Da,onExpand:Fo,onLoad:$i,filterTreeNode:Fi,expandAction:Zo,onScroll:rn}))))},Lt=E.forwardRef(dt),pn=Lt,he="SHOW_ALL",le="SHOW_PARENT",ae="SHOW_CHILD";function pe(Jt,On,hr,yr){var Ar=new Set(Jt);return On===ae?Jt.filter(function(la){var Er=hr[la];return!Er||!Er.children||!Er.children.some(function(Qt){var _n=Qt.node;return Ar.has(_n[yr.value])})||!Er.children.every(function(Qt){var _n=Qt.node;return Ue(_n)||Ar.has(_n[yr.value])})}):On===le?Jt.filter(function(la){var Er=hr[la],Qt=Er?Er.parent:null;return!Qt||Ue(Qt.node)||!Ar.has(Qt.key)}):Jt}function ye(Jt){var On=Jt.searchPlaceholder,hr=Jt.treeCheckStrictly,yr=Jt.treeCheckable,Ar=Jt.labelInValue,la=Jt.value,Er=Jt.multiple,Qt=Jt.showCheckedStrategy,_n=Jt.maxCount;warning(!On,"`searchPlaceholder` has been removed."),hr&&Ar===!1&&warning(!1,"`treeCheckStrictly` will force set `labelInValue` to `true`."),(Ar||hr)&&warning(toArray(la).every(function(br){return br&&_typeof(br)==="object"&&"value"in br}),"Invalid prop `value` supplied to `TreeSelect`. You should use { label: string, value: string | number } or [{ label: string, value: string | number }] instead."),hr||Er||yr?warning(!la||Array.isArray(la),"`value` should be an array when `TreeSelect` is checkable or multiple."):warning(!Array.isArray(la),"`value` should not be array when `TreeSelect` is single mode."),_n&&(Qt==="SHOW_ALL"&&!hr||Qt==="SHOW_PARENT")&&warning(!1,"`maxCount` not work with `showCheckedStrategy=SHOW_ALL` (when `treeCheckStrictly=false`) or `showCheckedStrategy=SHOW_PARENT`.")}var se=null,ot=["id","prefixCls","value","defaultValue","onChange","onSelect","onDeselect","searchValue","inputValue","onSearch","autoClearSearchValue","filterTreeNode","treeNodeFilterProp","showCheckedStrategy","treeNodeLabelProp","multiple","treeCheckable","treeCheckStrictly","labelInValue","maxCount","fieldNames","treeDataSimpleMode","treeData","children","loadData","treeLoadedKeys","onTreeLoad","treeDefaultExpandAll","treeExpandedKeys","treeDefaultExpandedKeys","onTreeExpand","treeExpandAction","virtual","listHeight","listItemHeight","listItemScrollOffset","onDropdownVisibleChange","dropdownMatchSelectWidth","treeLine","treeIcon","showTreeIcon","switcherIcon","treeMotion","treeTitleRender","onPopupScroll"];function Xt(Jt){return!Jt||(0,Fe.Z)(Jt)!=="object"}var zt=E.forwardRef(function(Jt,On){var hr=Jt.id,yr=Jt.prefixCls,Ar=yr===void 0?"rc-tree-select":yr,la=Jt.value,Er=Jt.defaultValue,Qt=Jt.onChange,_n=Jt.onSelect,br=Jt.onDeselect,Nr=Jt.searchValue,qr=Jt.inputValue,Xa=Jt.onSearch,si=Jt.autoClearSearchValue,so=si===void 0?!0:si,Mn=Jt.filterTreeNode,Rr=Jt.treeNodeFilterProp,jn=Rr===void 0?"value":Rr,tl=Jt.showCheckedStrategy,Zo=Jt.treeNodeLabelProp,Ct=Jt.multiple,rn=Jt.treeCheckable,Mt=Jt.treeCheckStrictly,Nt=Jt.labelInValue,sr=Jt.maxCount,Hn=Jt.fieldNames,vn=Jt.treeDataSimpleMode,Fr=Jt.treeData,Pr=Jt.children,Or=Jt.loadData,Ha=Jt.treeLoadedKeys,ma=Jt.onTreeLoad,Qr=Jt.treeDefaultExpandAll,za=Jt.treeExpandedKeys,Ya=Jt.treeDefaultExpandedKeys,jr=Jt.onTreeExpand,Wa=Jt.treeExpandAction,Li=Jt.virtual,ui=Jt.listHeight,Sa=ui===void 0?200:ui,ia=Jt.listItemHeight,$i=ia===void 0?20:ia,ci=Jt.listItemScrollOffset,ja=ci===void 0?0:ci,ai=Jt.onDropdownVisibleChange,wi=Jt.dropdownMatchSelectWidth,ii=wi===void 0?!0:wi,Da=Jt.treeLine,Di=Jt.treeIcon,oi=Jt.showTreeIcon,xo=Jt.switcherIcon,Bo=Jt.treeMotion,Ei=Jt.treeTitleRender,Qi=Jt.onPopupScroll,ga=(0,nt.Z)(Jt,ot),Ri=(0,Xe.ZP)(hr),Pi=rn&&!Mt,Fo=rn||Mt,Bi=Mt||Nt,Fi=Fo||Ct,So=(0,vt.Z)(Er,{value:la}),De=(0,ze.Z)(So,2),jt=De[0],hn=De[1],Cn=E.useMemo(function(){return rn?tl||ae:he},[tl,rn]),_t=E.useMemo(function(){return Le(Hn)},[JSON.stringify(Hn)]),$t=(0,vt.Z)("",{value:Nr!==void 0?Nr:qr,postState:function(Gr){return Gr||""}}),Ut=(0,ze.Z)($t,2),an=Ut[0],qt=Ut[1],An=function(Gr){qt(Gr),Xa==null||Xa(Gr)},fr=tt(Fr,Pr,vn),cr=Ke(fr,_t),$n=cr.keyEntities,Pa=cr.valueEntities,ta=E.useCallback(function(Ao){var Gr=[],Ai=[];return Ao.forEach(function(mo){Pa.has(mo)?Ai.push(mo):Gr.push(mo)}),{missingRawValues:Gr,existRawValues:Ai}},[Pa]),Ba=Se(fr,an,{fieldNames:_t,treeNodeFilterProp:jn,filterTreeNode:Mn}),bi=E.useCallback(function(Ao){if(Ao){if(Zo)return Ao[Zo];for(var Gr=_t._title,Ai=0;Ai<Gr.length;Ai+=1){var mo=Ao[Gr[Ai]];if(mo!==void 0)return mo}}},[_t,Zo]),Hi=E.useCallback(function(Ao){var Gr=it(Ao);return Gr.map(function(Ai){return Xt(Ai)?{value:Ai}:Ai})},[]),uo=E.useCallback(function(Ao){var Gr=Hi(Ao);return Gr.map(function(Ai){var mo=Ai.label,Bl=Ai.value,Mo=Ai.halfChecked,Ci,To=Pa.get(Bl);if(To){var wl;mo=Ei?Ei(To.node):(wl=mo)!==null&&wl!==void 0?wl:bi(To.node),Ci=To.node.disabled}else if(mo===void 0){var os=Hi(jt).find(function(Il){return Il.value===Bl});mo=os.label}return{label:mo,value:Bl,halfChecked:Mo,disabled:Ci}})},[Pa,bi,Hi,jt]),pl=E.useMemo(function(){return Hi(jt===null?[]:jt)},[Hi,jt]),ol=E.useMemo(function(){var Ao=[],Gr=[];return pl.forEach(function(Ai){Ai.halfChecked?Gr.push(Ai):Ao.push(Ai)}),[Ao,Gr]},[pl]),ll=(0,ze.Z)(ol,2),nl=ll[0],Do=ll[1],co=E.useMemo(function(){return nl.map(function(Ao){return Ao.value})},[nl]),jl=be(nl,Do,Pi,$n),yl=(0,ze.Z)(jl,2),Ul=yl[0],ql=yl[1],kl=E.useMemo(function(){var Ao=pe(Ul,Cn,$n,_t),Gr=Ao.map(function(Mo){var Ci,To;return(Ci=(To=$n[Mo])===null||To===void 0||(To=To.node)===null||To===void 0?void 0:To[_t.value])!==null&&Ci!==void 0?Ci:Mo}),Ai=Gr.map(function(Mo){var Ci=nl.find(function(wl){return wl.value===Mo}),To=Nt?Ci==null?void 0:Ci.label:Ei==null?void 0:Ei(Ci);return{value:Mo,label:To}}),mo=uo(Ai),Bl=mo[0];return!Fi&&Bl&&Zt(Bl.value)&&Zt(Bl.label)?[]:mo.map(function(Mo){var Ci;return(0,_e.Z)((0,_e.Z)({},Mo),{},{label:(Ci=Mo.label)!==null&&Ci!==void 0?Ci:Mo.value})})},[_t,Fi,Ul,nl,uo,Cn,$n]),hl=Ne(kl),Go=(0,ze.Z)(hl,1),ts=Go[0],Ts=E.useMemo(function(){return Fi&&(Cn==="SHOW_CHILD"||Mt||!rn)?sr:null},[sr,Fi,Mt,Cn,rn]),ns=Ve(function(Ao,Gr,Ai){var mo=pe(Ao,Cn,$n,_t);if(!(Ts&&mo.length>Ts)){var Bl=uo(Ao);if(hn(Bl),so&&qt(""),Qt){var Mo=Ao;Pi&&(Mo=mo.map(function(rs){var gs=Pa.get(rs);return gs?gs.node[_t.value]:rs}));var Ci=Gr||{triggerValue:void 0,selected:void 0},To=Ci.triggerValue,wl=Ci.selected,os=Mo;if(Mt){var Il=Do.filter(function(rs){return!Mo.includes(rs.value)});os=[].concat((0,He.Z)(os),(0,He.Z)(Il))}var Nl=uo(os),Wi={preValue:nl,triggerValue:To},Is=!0;(Mt||Ai==="selection"&&!wl)&&(Is=!1),Je(Wi,To,Ao,fr,Is,_t),Fo?Wi.checked=wl:Wi.selected=wl;var sl=Bi?Nl:Nl.map(function(rs){return rs.value});Qt(Fi?sl:sl[0],Bi?null:Nl.map(function(rs){return rs.label}),Wi)}}}),vs=E.useCallback(function(Ao,Gr){var Ai,mo=Gr.selected,Bl=Gr.source,Mo=$n[Ao],Ci=Mo==null?void 0:Mo.node,To=(Ai=Ci==null?void 0:Ci[_t.value])!==null&&Ai!==void 0?Ai:Ao;if(!Fi)ns([To],{selected:!0,triggerValue:To},"option");else{var wl=mo?[].concat((0,He.Z)(co),[To]):Ul.filter(function(gs){return gs!==To});if(Pi){var os=ta(wl),Il=os.missingRawValues,Nl=os.existRawValues,Wi=Nl.map(function(gs){return Pa.get(gs).key}),Is;if(mo){var sl=(0,$e.S)(Wi,!0,$n);Is=sl.checkedKeys}else{var rs=(0,$e.S)(Wi,{checked:!1,halfCheckedKeys:ql},$n);Is=rs.checkedKeys}wl=[].concat((0,He.Z)(Il),(0,He.Z)(Is.map(function(gs){return $n[gs].node[_t.value]})))}ns(wl,{selected:mo,triggerValue:To},Bl||"option")}mo||!Fi?_n==null||_n(To,ct(Ci)):br==null||br(To,ct(Ci))},[ta,Pa,$n,_t,Fi,co,ns,Pi,_n,br,Ul,ql,sr]),Us=E.useCallback(function(Ao){if(ai){var Gr={};Object.defineProperty(Gr,"documentClickClose",{get:function(){return(0,Ye.ZP)(!1,"Second param of `onDropdownVisibleChange` has been removed."),!1}}),ai(Ao,Gr)}},[ai]),Ls=Ve(function(Ao,Gr){var Ai=Ao.map(function(mo){return mo.value});if(Gr.type==="clear"){ns(Ai,{},"selection");return}Gr.values.length&&vs(Gr.values[0].value,{selected:!1,source:"selection"})}),Rs=E.useMemo(function(){return{virtual:Li,dropdownMatchSelectWidth:ii,listHeight:Sa,listItemHeight:$i,listItemScrollOffset:ja,treeData:Ba,fieldNames:_t,onSelect:vs,treeExpandAction:Wa,treeTitleRender:Ei,onPopupScroll:Qi,leftMaxCount:sr===void 0?null:sr-ts.length,leafCountOnly:Cn==="SHOW_CHILD"&&!Mt&&!!rn,valueEntities:Pa}},[Li,ii,Sa,$i,ja,Ba,_t,vs,Wa,Ei,Qi,sr,ts.length,Cn,Mt,rn,Pa]),Zs=E.useMemo(function(){return{checkable:Fo,loadData:Or,treeLoadedKeys:Ha,onTreeLoad:ma,checkedKeys:Ul,halfCheckedKeys:ql,treeDefaultExpandAll:Qr,treeExpandedKeys:za,treeDefaultExpandedKeys:Ya,onTreeExpand:jr,treeIcon:Di,treeMotion:Bo,showTreeIcon:oi,switcherIcon:xo,treeLine:Da,treeNodeFilterProp:jn,keyEntities:$n}},[Fo,Or,Ha,ma,Ul,ql,Qr,za,Ya,jr,Di,Bo,oi,xo,Da,jn,$n]);return E.createElement(bt.Provider,{value:Rs},E.createElement(lt.Provider,{value:Zs},E.createElement(We.Ac,(0,Te.Z)({ref:On},ga,{id:Ri,prefixCls:Ar,mode:Fi?"multiple":void 0,displayValues:ts,onDisplayValuesChange:Ls,searchValue:an,onSearch:An,OptionList:pn,emptyOptions:!fr.length,onDropdownVisibleChange:Us,dropdownMatchSelectWidth:ii}))))}),on=zt;on.TreeNode=st,on.SHOW_ALL=he,on.SHOW_PARENT=le,on.SHOW_CHILD=ae;var Kt=on,Yn=Kt,Fn=ne(2738),or=ne(75030),ra=ne(86641),ur=ne(45915),rr=ne(82855),Xr=ne(48755),Vr=ne(38406),xr=ne(2171),Dn=ne(83397),pa=ne(31756),Jn=ne(56553),Vn=ne(24971),ha=ne(1722),Ti=ne(90376),Ni=ne(68525),Ir=ne(90005),Sn=ne(70045),ir=ne(57700),Fa=ne(85278),$a=ne(36237),Jr=ne(36170),na=ne(51636),Qa=ne(16931),Kr=ne(12425);const qa=Jt=>{const{componentCls:On,treePrefixCls:hr,colorBgElevated:yr}=Jt,Ar=`.${hr}`;return[{[`${On}-dropdown`]:[{padding:`${(0,$a.unit)(Jt.paddingXS)} ${(0,$a.unit)(Jt.calc(Jt.paddingXS).div(2).equal())}`},(0,Kr.Yk)(hr,(0,na.mergeToken)(Jt,{colorBgContainer:yr}),!1),{[Ar]:{borderRadius:0,[`${Ar}-list-holder-inner`]:{alignItems:"stretch",[`${Ar}-treenode`]:{[`${Ar}-node-content-wrapper`]:{flex:"auto"}}}}},(0,Jr.C2)(`${hr}-checkbox`,Jt),{"&-rtl":{direction:"rtl",[`${Ar}-switcher${Ar}-switcher_close`]:{[`${Ar}-switcher-icon svg`]:{transform:"rotate(90deg)"}}}}]}]},aa=null;function Wn(Jt,On,hr){return(0,Qa.I$)("TreeSelect",yr=>{const Ar=(0,na.mergeToken)(yr,{treePrefixCls:On});return[qa(Ar)]},Kr.TM)(Jt,hr)}var Rn=function(Jt,On){var hr={};for(var yr in Jt)Object.prototype.hasOwnProperty.call(Jt,yr)&&On.indexOf(yr)<0&&(hr[yr]=Jt[yr]);if(Jt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ar=0,yr=Object.getOwnPropertySymbols(Jt);Ar<yr.length;Ar++)On.indexOf(yr[Ar])<0&&Object.prototype.propertyIsEnumerable.call(Jt,yr[Ar])&&(hr[yr[Ar]]=Jt[yr[Ar]]);return hr};const cn=(Jt,On)=>{var hr;const{prefixCls:yr,size:Ar,disabled:la,bordered:Er=!0,className:Qt,rootClassName:_n,treeCheckable:br,multiple:Nr,listHeight:qr=256,listItemHeight:Xa,placement:si,notFoundContent:so,switcherIcon:Mn,treeLine:Rr,getPopupContainer:jn,popupClassName:tl,dropdownClassName:Zo,treeIcon:Ct=!1,transitionName:rn,choiceTransitionName:Mt="",status:Nt,treeExpandAction:sr,builtinPlacements:Hn,dropdownMatchSelectWidth:vn,popupMatchSelectWidth:Fr,allowClear:Pr,variant:Or,dropdownStyle:Ha,tagRender:ma,maxCount:Qr,showCheckedStrategy:za,treeCheckStrictly:Ya}=Jt,jr=Rn(Jt,["prefixCls","size","disabled","bordered","className","rootClassName","treeCheckable","multiple","listHeight","listItemHeight","placement","notFoundContent","switcherIcon","treeLine","getPopupContainer","popupClassName","dropdownClassName","treeIcon","transitionName","choiceTransitionName","status","treeExpandAction","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","allowClear","variant","dropdownStyle","tagRender","maxCount","showCheckedStrategy","treeCheckStrictly"]),{getPopupContainer:Wa,getPrefixCls:Li,renderEmpty:ui,direction:Sa,virtual:ia,popupMatchSelectWidth:$i,popupOverflow:ci}=E.useContext(Xr.E_),[,ja]=(0,ir.ZP)(),ai=Xa!=null?Xa:(ja==null?void 0:ja.controlHeightSM)+(ja==null?void 0:ja.paddingXXS),wi=Li(),ii=Li("select",yr),Da=Li("select-tree",yr),Di=Li("tree-select",yr),{compactSize:oi,compactItemClassnames:xo}=(0,Sn.ri)(ii,Sa),Bo=(0,Dn.Z)(ii),Ei=(0,Dn.Z)(Di),[Qi,ga,Ri]=(0,Ti.Z)(ii,Bo),[Pi]=Wn(Di,Da,Ei),[Fo,Bi]=(0,Vn.Z)("treeSelect",Or,Er),Fi=Pe()(tl||Zo,`${Di}-dropdown`,{[`${Di}-dropdown-rtl`]:Sa==="rtl"},_n,Ri,Bo,Ei,ga),So=!!(br||Nr),De=E.useMemo(()=>{if(!(Qr&&(za==="SHOW_ALL"&&!Ya||za==="SHOW_PARENT")))return Qr},[Qr,za,Ya]),jt=(0,Ir.Z)(Jt.suffixIcon,Jt.showArrow),hn=(hr=Fr!=null?Fr:vn)!==null&&hr!==void 0?hr:$i,{status:Cn,hasFeedback:_t,isFormItemInput:$t,feedbackIcon:Ut}=E.useContext(Jn.aM),an=(0,rr.F)(Cn,Nt),{suffixIcon:qt,removeIcon:An,clearIcon:fr}=(0,Ni.Z)(Object.assign(Object.assign({},jr),{multiple:So,showSuffixIcon:jt,hasFeedback:_t,feedbackIcon:Ut,prefixCls:ii,componentName:"TreeSelect"})),cr=Pr===!0?{clearIcon:fr}:Pr;let $n;so!==void 0?$n=so:$n=(ui==null?void 0:ui("Select"))||E.createElement(Vr.Z,{componentName:"Select"});const Pa=(0,Fn.Z)(jr,["suffixIcon","removeIcon","clearIcon","itemIcon","switcherIcon"]),ta=E.useMemo(()=>si!==void 0?si:Sa==="rtl"?"bottomRight":"bottomLeft",[si,Sa]),Ba=(0,pa.Z)(nl=>{var Do;return(Do=Ar!=null?Ar:oi)!==null&&Do!==void 0?Do:nl}),bi=E.useContext(xr.Z),Hi=la!=null?la:bi,uo=Pe()(!yr&&Di,{[`${ii}-lg`]:Ba==="large",[`${ii}-sm`]:Ba==="small",[`${ii}-rtl`]:Sa==="rtl",[`${ii}-${Fo}`]:Bi,[`${ii}-in-form-item`]:$t},(0,rr.Z)(ii,an,_t),xo,Qt,_n,Ri,Bo,Ei,ga),pl=nl=>E.createElement(Fa.Z,{prefixCls:Da,switcherIcon:Mn,treeNodeProps:nl,showLine:Rr}),[ol]=(0,or.Cn)("SelectLike",Ha==null?void 0:Ha.zIndex),ll=E.createElement(Yn,Object.assign({virtual:ia,disabled:Hi},Pa,{dropdownMatchSelectWidth:hn,builtinPlacements:(0,ha.Z)(Hn,ci),ref:On,prefixCls:ii,className:uo,listHeight:qr,listItemHeight:ai,treeCheckable:br&&E.createElement("span",{className:`${ii}-tree-checkbox-inner`}),treeLine:!!Rr,suffixIcon:qt,multiple:So,placement:ta,removeIcon:An,allowClear:cr,switcherIcon:pl,showTreeIcon:Ct,notFoundContent:$n,getPopupContainer:jn||Wa,treeMotion:null,dropdownClassName:Fi,dropdownStyle:Object.assign(Object.assign({},Ha),{zIndex:ol}),choiceTransitionName:(0,ra.m)(wi,"",Mt),transitionName:(0,ra.m)(wi,"slide-up",rn),treeExpandAction:sr,tagRender:So?ma:void 0,maxCount:De,showCheckedStrategy:za,treeCheckStrictly:Ya}));return Qi(Pi(ll))},wn=E.forwardRef(cn),nn=(0,ur.Z)(wn,"dropdownAlign",Jt=>(0,Fn.Z)(Jt,["visible"]));wn.TreeNode=st,wn.SHOW_ALL=he,wn.SHOW_PARENT=le,wn.SHOW_CHILD=ae,wn._InternalPanelDoNotUseOrYouWillBeFired=nn;var Kn=wn},99498:function(It,kt,ne){(function(E){E(ne(89780))})(function(E){E.defineOption("placeholder","",function(nt,Fe,We){var Xe=We&&We!=E.Init;if(Fe&&!Xe)nt.on("blur",He),nt.on("change",_e),nt.on("swapDoc",_e),E.on(nt.getInputField(),"compositionupdate",nt.state.placeholderCompose=function(){Te(nt)}),_e(nt);else if(!Fe&&Xe){nt.off("blur",He),nt.off("change",_e),nt.off("swapDoc",_e),E.off(nt.getInputField(),"compositionupdate",nt.state.placeholderCompose),ve(nt);var $e=nt.getWrapperElement();$e.className=$e.className.replace(" CodeMirror-empty","")}Fe&&!nt.hasFocus()&&He(nt)});function ve(nt){nt.state.placeholder&&(nt.state.placeholder.parentNode.removeChild(nt.state.placeholder),nt.state.placeholder=null)}function Pe(nt){ve(nt);var Fe=nt.state.placeholder=document.createElement("pre");Fe.style.cssText="height: 0; overflow: visible",Fe.style.direction=nt.getOption("direction"),Fe.className="CodeMirror-placeholder CodeMirror-line-like";var We=nt.getOption("placeholder");typeof We=="string"&&(We=document.createTextNode(We)),Fe.appendChild(We),nt.display.lineSpace.insertBefore(Fe,nt.display.lineSpace.firstChild)}function Te(nt){setTimeout(function(){var Fe=!1,We=nt.getInputField();We.nodeName=="TEXTAREA"?Fe=!We.value:nt.lineCount()==1&&(Fe=!/[^\u200b]/.test(We.querySelector(".CodeMirror-line").textContent)),Fe?Pe(nt):ve(nt)},20)}function He(nt){ze(nt)&&Pe(nt)}function _e(nt){var Fe=nt.getWrapperElement(),We=ze(nt);Fe.className=Fe.className.replace(" CodeMirror-empty","")+(We?" CodeMirror-empty":""),We?Pe(nt):ve(nt)}function ze(nt){return nt.lineCount()===1&&nt.getLine(0)===""}})},25717:function(It,kt,ne){(function(E){E(ne(89780))})(function(E){var ve={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},Pe=E.Pos;E.defineOption("autoCloseBrackets",!1,function(Ne,Be,be){be&&be!=E.Init&&(Ne.removeKeyMap(He),Ne.state.closeBrackets=null),Be&&(_e(Te(Be,"pairs")),Ne.state.closeBrackets=Be,Ne.addKeyMap(He))});function Te(Ne,Be){return Be=="pairs"&&typeof Ne=="string"?Ne:typeof Ne=="object"&&Ne[Be]!=null?Ne[Be]:ve[Be]}var He={Backspace:Fe,Enter:We};function _e(Ne){for(var Be=0;Be<Ne.length;Be++){var be=Ne.charAt(Be),Ie="'"+be+"'";He[Ie]||(He[Ie]=ze(be))}}_e(ve.pairs+"`");function ze(Ne){return function(Be){return $e(Be,Ne)}}function nt(Ne){var Be=Ne.state.closeBrackets;if(!Be||Be.override)return Be;var be=Ne.getModeAt(Ne.getCursor());return be.closeBrackets||Be}function Fe(Ne){var Be=nt(Ne);if(!Be||Ne.getOption("disableInput"))return E.Pass;for(var be=Te(Be,"pairs"),Ie=Ne.listSelections(),Ke=0;Ke<Ie.length;Ke++){if(!Ie[Ke].empty())return E.Pass;var at=vt(Ne,Ie[Ke].head);if(!at||be.indexOf(at)%2!=0)return E.Pass}for(var Ke=Ie.length-1;Ke>=0;Ke--){var fe=Ie[Ke].head;Ne.replaceRange("",Pe(fe.line,fe.ch-1),Pe(fe.line,fe.ch+1),"+delete")}}function We(Ne){var Be=nt(Ne),be=Be&&Te(Be,"explode");if(!be||Ne.getOption("disableInput"))return E.Pass;for(var Ie=Ne.listSelections(),Ke=0;Ke<Ie.length;Ke++){if(!Ie[Ke].empty())return E.Pass;var at=vt(Ne,Ie[Ke].head);if(!at||be.indexOf(at)%2!=0)return E.Pass}Ne.operation(function(){var fe=Ne.lineSeparator()||`
`;Ne.replaceSelection(fe+fe,null),Ne.execCommand("goCharLeft"),Ie=Ne.listSelections();for(var qe=0;qe<Ie.length;qe++){var st=Ie[qe].head.line;Ne.indentLine(st,null,!0),Ne.indentLine(st+1,null,!0)}})}function Xe(Ne){var Be=E.cmpPos(Ne.anchor,Ne.head)>0;return{anchor:new Pe(Ne.anchor.line,Ne.anchor.ch+(Be?-1:1)),head:new Pe(Ne.head.line,Ne.head.ch+(Be?1:-1))}}function $e(Ne,Be){var be=nt(Ne);if(!be||Ne.getOption("disableInput"))return E.Pass;var Ie=Te(be,"pairs"),Ke=Ie.indexOf(Be);if(Ke==-1)return E.Pass;for(var at=Te(be,"closeBefore"),fe=Te(be,"triples"),qe=Ie.charAt(Ke+1)==Be,st=Ne.listSelections(),wt=Ke%2==0,ft,ct=0;ct<st.length;ct++){var Je=st[ct],ut=Je.head,Se,Ve=Ne.getRange(ut,Pe(ut.line,ut.ch+1));if(wt&&!Je.empty())Se="surround";else if((qe||!wt)&&Ve==Be)qe&&Ye(Ne,ut)?Se="both":fe.indexOf(Be)>=0&&Ne.getRange(ut,Pe(ut.line,ut.ch+3))==Be+Be+Be?Se="skipThree":Se="skip";else if(qe&&ut.ch>1&&fe.indexOf(Be)>=0&&Ne.getRange(Pe(ut.line,ut.ch-2),ut)==Be+Be){if(ut.ch>2&&/\bstring/.test(Ne.getTokenTypeAt(Pe(ut.line,ut.ch-2))))return E.Pass;Se="addFour"}else if(qe){var Ae=ut.ch==0?" ":Ne.getRange(Pe(ut.line,ut.ch-1),ut);if(!E.isWordChar(Ve)&&Ae!=Be&&!E.isWordChar(Ae))Se="both";else return E.Pass}else if(wt&&(Ve.length===0||/\s/.test(Ve)||at.indexOf(Ve)>-1))Se="both";else return E.Pass;if(!ft)ft=Se;else if(ft!=Se)return E.Pass}var tt=Ke%2?Ie.charAt(Ke-1):Be,Dt=Ke%2?Be:Ie.charAt(Ke+1);Ne.operation(function(){if(ft=="skip")Ne.execCommand("goCharRight");else if(ft=="skipThree")for(var lt=0;lt<3;lt++)Ne.execCommand("goCharRight");else if(ft=="surround"){for(var Qe=Ne.getSelections(),lt=0;lt<Qe.length;lt++)Qe[lt]=tt+Qe[lt]+Dt;Ne.replaceSelections(Qe,"around"),Qe=Ne.listSelections().slice();for(var lt=0;lt<Qe.length;lt++)Qe[lt]=Xe(Qe[lt]);Ne.setSelections(Qe)}else ft=="both"?(Ne.replaceSelection(tt+Dt,null),Ne.triggerElectric(tt+Dt),Ne.execCommand("goCharLeft")):ft=="addFour"&&(Ne.replaceSelection(tt+tt+tt+tt,"before"),Ne.execCommand("goCharRight"))})}function vt(Ne,Be){var be=Ne.getRange(Pe(Be.line,Be.ch-1),Pe(Be.line,Be.ch+1));return be.length==2?be:null}function Ye(Ne,Be){var be=Ne.getTokenAt(Pe(Be.line,Be.ch+1));return/\bstring/.test(be.type)&&be.start==Be.ch&&(Be.ch==0||!/\bstring/.test(Ne.getTokenTypeAt(Be)))}})},6313:function(It,kt,ne){(function(E){E(ne(89780),ne(32855))})(function(E){E.defineOption("autoCloseTags",!1,function(Fe,We,Xe){if(Xe!=E.Init&&Xe&&Fe.removeKeyMap("autoCloseTags"),!!We){var $e={name:"autoCloseTags"};(typeof We!="object"||We.whenClosing!==!1)&&($e["'/'"]=function(vt){return _e(vt)}),(typeof We!="object"||We.whenOpening!==!1)&&($e["'>'"]=function(vt){return Te(vt)}),Fe.addKeyMap($e)}});var ve=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],Pe=["applet","blockquote","body","button","div","dl","fieldset","form","frameset","h1","h2","h3","h4","h5","h6","head","html","iframe","layer","legend","object","ol","p","select","table","ul"];function Te(Fe){if(Fe.getOption("disableInput"))return E.Pass;for(var We=Fe.listSelections(),Xe=[],$e=Fe.getOption("autoCloseTags"),vt=0;vt<We.length;vt++){if(!We[vt].empty())return E.Pass;var Ye=We[vt].head,Ne=Fe.getTokenAt(Ye),Be=E.innerMode(Fe.getMode(),Ne.state),be=Be.state,Ie=Be.mode.xmlCurrentTag&&Be.mode.xmlCurrentTag(be),Ke=Ie&&Ie.name;if(!Ke)return E.Pass;var at=Be.mode.configuration=="html",fe=typeof $e=="object"&&$e.dontCloseTags||at&&ve,qe=typeof $e=="object"&&$e.indentTags||at&&Pe;Ne.end>Ye.ch&&(Ke=Ke.slice(0,Ke.length-Ne.end+Ye.ch));var st=Ke.toLowerCase();if(!Ke||Ne.type=="string"&&(Ne.end!=Ye.ch||!/[\"\']/.test(Ne.string.charAt(Ne.string.length-1))||Ne.string.length==1)||Ne.type=="tag"&&Ie.close||Ne.string.indexOf("/")==Ye.ch-Ne.start-1||fe&&ze(fe,st)>-1||nt(Fe,Be.mode.xmlCurrentContext&&Be.mode.xmlCurrentContext(be)||[],Ke,Ye,!0))return E.Pass;var wt=typeof $e=="object"&&$e.emptyTags;if(wt&&ze(wt,Ke)>-1){Xe[vt]={text:"/>",newPos:E.Pos(Ye.line,Ye.ch+2)};continue}var ft=qe&&ze(qe,st)>-1;Xe[vt]={indent:ft,text:">"+(ft?`
`:"")+"</"+Ke+">",newPos:ft?E.Pos(Ye.line+1,0):E.Pos(Ye.line,Ye.ch+1)}}for(var ct=typeof $e=="object"&&$e.dontIndentOnAutoClose,vt=We.length-1;vt>=0;vt--){var Je=Xe[vt];Fe.replaceRange(Je.text,We[vt].head,We[vt].anchor,"+insert");var ut=Fe.listSelections().slice(0);ut[vt]={head:Je.newPos,anchor:Je.newPos},Fe.setSelections(ut),!ct&&Je.indent&&(Fe.indentLine(Je.newPos.line,null,!0),Fe.indentLine(Je.newPos.line+1,null,!0))}}function He(Fe,We){for(var Xe=Fe.listSelections(),$e=[],vt=We?"/":"</",Ye=Fe.getOption("autoCloseTags"),Ne=typeof Ye=="object"&&Ye.dontIndentOnSlash,Be=0;Be<Xe.length;Be++){if(!Xe[Be].empty())return E.Pass;var be=Xe[Be].head,Ie=Fe.getTokenAt(be),Ke=E.innerMode(Fe.getMode(),Ie.state),at=Ke.state;if(We&&(Ie.type=="string"||Ie.string.charAt(0)!="<"||Ie.start!=be.ch-1))return E.Pass;var fe,qe=Ke.mode.name!="xml"&&Fe.getMode().name=="htmlmixed";if(qe&&Ke.mode.name=="javascript")fe=vt+"script";else if(qe&&Ke.mode.name=="css")fe=vt+"style";else{var st=Ke.mode.xmlCurrentContext&&Ke.mode.xmlCurrentContext(at);if(!st||st.length&&nt(Fe,st,st[st.length-1],be))return E.Pass;fe=vt+st[st.length-1]}Fe.getLine(be.line).charAt(Ie.end)!=">"&&(fe+=">"),$e[Be]=fe}if(Fe.replaceSelections($e),Xe=Fe.listSelections(),!Ne)for(var Be=0;Be<Xe.length;Be++)(Be==Xe.length-1||Xe[Be].head.line<Xe[Be+1].head.line)&&Fe.indentLine(Xe[Be].head.line)}function _e(Fe){return Fe.getOption("disableInput")?E.Pass:He(Fe,!0)}E.commands.closeTag=function(Fe){return He(Fe)};function ze(Fe,We){if(Fe.indexOf)return Fe.indexOf(We);for(var Xe=0,$e=Fe.length;Xe<$e;++Xe)if(Fe[Xe]==We)return Xe;return-1}function nt(Fe,We,Xe,$e,vt){if(!E.scanForClosingTag)return!1;var Ye=Math.min(Fe.lastLine()+1,$e.line+500),Ne=E.scanForClosingTag(Fe,$e,null,Ye);if(!Ne||Ne.tag!=Xe)return!1;for(var Be=vt?1:0,be=We.length-1;be>=0&&We[be]==Xe;be--)++Be;$e=Ne.to;for(var be=1;be<Be;be++){var Ie=E.scanForClosingTag(Fe,$e,null,Ye);if(!Ie||Ie.tag!=Xe)return!1;$e=Ie.to}return!0}})},32855:function(It,kt,ne){(function(E){E(ne(89780))})(function(E){"use strict";var ve=E.Pos;function Pe(be,Ie){return be.line-Ie.line||be.ch-Ie.ch}var Te="A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",He=Te+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",_e=new RegExp("<(/?)(["+Te+"]["+He+"]*)","g");function ze(be,Ie,Ke,at){this.line=Ie,this.ch=Ke,this.cm=be,this.text=be.getLine(Ie),this.min=at?Math.max(at.from,be.firstLine()):be.firstLine(),this.max=at?Math.min(at.to-1,be.lastLine()):be.lastLine()}function nt(be,Ie){var Ke=be.cm.getTokenTypeAt(ve(be.line,Ie));return Ke&&/\btag\b/.test(Ke)}function Fe(be){if(!(be.line>=be.max))return be.ch=0,be.text=be.cm.getLine(++be.line),!0}function We(be){if(!(be.line<=be.min))return be.text=be.cm.getLine(--be.line),be.ch=be.text.length,!0}function Xe(be){for(;;){var Ie=be.text.indexOf(">",be.ch);if(Ie==-1){if(Fe(be))continue;return}if(!nt(be,Ie+1)){be.ch=Ie+1;continue}var Ke=be.text.lastIndexOf("/",Ie),at=Ke>-1&&!/\S/.test(be.text.slice(Ke+1,Ie));return be.ch=Ie+1,at?"selfClose":"regular"}}function $e(be){for(;;){var Ie=be.ch?be.text.lastIndexOf("<",be.ch-1):-1;if(Ie==-1){if(We(be))continue;return}if(!nt(be,Ie+1)){be.ch=Ie;continue}_e.lastIndex=Ie,be.ch=Ie;var Ke=_e.exec(be.text);if(Ke&&Ke.index==Ie)return Ke}}function vt(be){for(;;){_e.lastIndex=be.ch;var Ie=_e.exec(be.text);if(!Ie){if(Fe(be))continue;return}if(!nt(be,Ie.index+1)){be.ch=Ie.index+1;continue}return be.ch=Ie.index+Ie[0].length,Ie}}function Ye(be){for(;;){var Ie=be.ch?be.text.lastIndexOf(">",be.ch-1):-1;if(Ie==-1){if(We(be))continue;return}if(!nt(be,Ie+1)){be.ch=Ie;continue}var Ke=be.text.lastIndexOf("/",Ie),at=Ke>-1&&!/\S/.test(be.text.slice(Ke+1,Ie));return be.ch=Ie+1,at?"selfClose":"regular"}}function Ne(be,Ie){for(var Ke=[];;){var at=vt(be),fe,qe=be.line,st=be.ch-(at?at[0].length:0);if(!at||!(fe=Xe(be)))return;if(fe!="selfClose")if(at[1]){for(var wt=Ke.length-1;wt>=0;--wt)if(Ke[wt]==at[2]){Ke.length=wt;break}if(wt<0&&(!Ie||Ie==at[2]))return{tag:at[2],from:ve(qe,st),to:ve(be.line,be.ch)}}else Ke.push(at[2])}}function Be(be,Ie){for(var Ke=[];;){var at=Ye(be);if(!at)return;if(at=="selfClose"){$e(be);continue}var fe=be.line,qe=be.ch,st=$e(be);if(!st)return;if(st[1])Ke.push(st[2]);else{for(var wt=Ke.length-1;wt>=0;--wt)if(Ke[wt]==st[2]){Ke.length=wt;break}if(wt<0&&(!Ie||Ie==st[2]))return{tag:st[2],from:ve(be.line,be.ch),to:ve(fe,qe)}}}}E.registerHelper("fold","xml",function(be,Ie){for(var Ke=new ze(be,Ie.line,0);;){var at=vt(Ke);if(!at||Ke.line!=Ie.line)return;var fe=Xe(Ke);if(!fe)return;if(!at[1]&&fe!="selfClose"){var qe=ve(Ke.line,Ke.ch),st=Ne(Ke,at[2]);return st&&Pe(st.from,qe)>0?{from:qe,to:st.from}:null}}}),E.findMatchingTag=function(be,Ie,Ke){var at=new ze(be,Ie.line,Ie.ch,Ke);if(!(at.text.indexOf(">")==-1&&at.text.indexOf("<")==-1)){var fe=Xe(at),qe=fe&&ve(at.line,at.ch),st=fe&&$e(at);if(!(!fe||!st||Pe(at,Ie)>0)){var wt={from:ve(at.line,at.ch),to:qe,tag:st[2]};return fe=="selfClose"?{open:wt,close:null,at:"open"}:st[1]?{open:Be(at,st[2]),close:wt,at:"close"}:(at=new ze(be,qe.line,qe.ch,Ke),{open:wt,close:Ne(at,st[2]),at:"open"})}}},E.findEnclosingTag=function(be,Ie,Ke,at){for(var fe=new ze(be,Ie.line,Ie.ch,Ke);;){var qe=Be(fe,at);if(!qe)break;var st=new ze(be,Ie.line,Ie.ch,Ke),wt=Ne(st,qe.tag);if(wt)return{open:qe,close:wt}}},E.scanForClosingTag=function(be,Ie,Ke,at){var fe=new ze(be,Ie.line,Ie.ch,at?{from:0,to:at}:null);return Ne(fe,Ke)}})},89780:function(It){(function(kt,ne){It.exports=ne()})(this,function(){"use strict";var kt=navigator.userAgent,ne=navigator.platform,E=/gecko\/\d/i.test(kt),ve=/MSIE \d/.test(kt),Pe=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(kt),Te=/Edge\/(\d+)/.exec(kt),He=ve||Pe||Te,_e=He&&(ve?document.documentMode||6:+(Te||Pe)[1]),ze=!Te&&/WebKit\//.test(kt),nt=ze&&/Qt\/\d+\.\d+/.test(kt),Fe=!Te&&/Chrome\//.test(kt),We=/Opera\//.test(kt),Xe=/Apple Computer/.test(navigator.vendor),$e=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(kt),vt=/PhantomJS/.test(kt),Ye=!Te&&/AppleWebKit/.test(kt)&&/Mobile\/\w+/.test(kt),Ne=/Android/.test(kt),Be=Ye||Ne||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(kt),be=Ye||/Mac/.test(ne),Ie=/\bCrOS\b/.test(kt),Ke=/win/i.test(ne),at=We&&kt.match(/Version\/(\d*\.\d*)/);at&&(at=Number(at[1])),at&&at>=15&&(We=!1,ze=!0);var fe=be&&(nt||We&&(at==null||at<12.11)),qe=E||He&&_e>=9;function st(a){return new RegExp("(^|\\s)"+a+"(?:$|\\s)\\s*")}var wt=function(a,y){var x=a.className,b=st(y).exec(x);if(b){var z=x.slice(b.index+b[0].length);a.className=x.slice(0,b.index)+(z?b[1]+z:"")}};function ft(a){for(var y=a.childNodes.length;y>0;--y)a.removeChild(a.firstChild);return a}function ct(a,y){return ft(a).appendChild(y)}function Je(a,y,x,b){var z=document.createElement(a);if(x&&(z.className=x),b&&(z.style.cssText=b),typeof y=="string")z.appendChild(document.createTextNode(y));else if(y)for(var oe=0;oe<y.length;++oe)z.appendChild(y[oe]);return z}function ut(a,y,x,b){var z=Je(a,y,x,b);return z.setAttribute("role","presentation"),z}var Se;document.createRange?Se=function(a,y,x,b){var z=document.createRange();return z.setEnd(b||a,x),z.setStart(a,y),z}:Se=function(a,y,x){var b=document.body.createTextRange();try{b.moveToElementText(a.parentNode)}catch(z){return b}return b.collapse(!0),b.moveEnd("character",x),b.moveStart("character",y),b};function Ve(a,y){if(y.nodeType==3&&(y=y.parentNode),a.contains)return a.contains(y);do if(y.nodeType==11&&(y=y.host),y==a)return!0;while(y=y.parentNode)}function Ae(){var a;try{a=document.activeElement}catch(y){a=document.body||null}for(;a&&a.shadowRoot&&a.shadowRoot.activeElement;)a=a.shadowRoot.activeElement;return a}function tt(a,y){var x=a.className;st(y).test(x)||(a.className+=(x?" ":"")+y)}function Dt(a,y){for(var x=a.split(" "),b=0;b<x.length;b++)x[b]&&!st(x[b]).test(y)&&(y+=" "+x[b]);return y}var lt=function(a){a.select()};Ye?lt=function(a){a.selectionStart=0,a.selectionEnd=a.value.length}:He&&(lt=function(a){try{a.select()}catch(y){}});function Qe(a){var y=Array.prototype.slice.call(arguments,1);return function(){return a.apply(null,y)}}function xt(a,y,x){y||(y={});for(var b in a)a.hasOwnProperty(b)&&(x!==!1||!y.hasOwnProperty(b))&&(y[b]=a[b]);return y}function Re(a,y,x,b,z){y==null&&(y=a.search(/[^\s\u00a0]/),y==-1&&(y=a.length));for(var oe=b||0,de=z||0;;){var Ee=a.indexOf(" ",oe);if(Ee<0||Ee>=y)return de+(y-oe);de+=Ee-oe,de+=x-de%x,oe=Ee+1}}var me=function(){this.id=null,this.f=null,this.time=0,this.handler=Qe(this.onTimeout,this)};me.prototype.onTimeout=function(a){a.id=0,a.time<=+new Date?a.f():setTimeout(a.handler,a.time-+new Date)},me.prototype.set=function(a,y){this.f=y;var x=+new Date+a;(!this.id||x<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,a),this.time=x)};function pt(a,y){for(var x=0;x<a.length;++x)if(a[x]==y)return x;return-1}var bt=50,it={toString:function(){return"CodeMirror.Pass"}},Le={scroll:!1},Ue={origin:"*mouse"},mt={origin:"+move"};function Zt(a,y,x){for(var b=0,z=0;;){var oe=a.indexOf(" ",b);oe==-1&&(oe=a.length);var de=oe-b;if(oe==a.length||z+de>=y)return b+Math.min(de,y-z);if(z+=oe-b,z+=x-z%x,b=oe+1,z>=y)return b}}var Pt=[""];function en(a){for(;Pt.length<=a;)Pt.push(dt(Pt)+" ");return Pt[a]}function dt(a){return a[a.length-1]}function Lt(a,y){for(var x=[],b=0;b<a.length;b++)x[b]=y(a[b],b);return x}function pn(a,y,x){for(var b=0,z=x(y);b<a.length&&x(a[b])<=z;)b++;a.splice(b,0,y)}function he(){}function le(a,y){var x;return Object.create?x=Object.create(a):(he.prototype=a,x=new he),y&&xt(y,x),x}var ae=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function pe(a){return/\w/.test(a)||a>"\x80"&&(a.toUpperCase()!=a.toLowerCase()||ae.test(a))}function ye(a,y){return y?y.source.indexOf("\\w")>-1&&pe(a)?!0:y.test(a):pe(a)}function se(a){for(var y in a)if(a.hasOwnProperty(y)&&a[y])return!1;return!0}var ot=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function Xt(a){return a.charCodeAt(0)>=768&&ot.test(a)}function zt(a,y,x){for(;(x<0?y>0:y<a.length)&&Xt(a.charAt(y));)y+=x;return y}function on(a,y,x){for(var b=y>x?-1:1;;){if(y==x)return y;var z=(y+x)/2,oe=b<0?Math.ceil(z):Math.floor(z);if(oe==y)return a(oe)?y:x;a(oe)?x=oe:y=oe+b}}function Kt(a,y,x,b){if(!a)return b(y,x,"ltr",0);for(var z=!1,oe=0;oe<a.length;++oe){var de=a[oe];(de.from<x&&de.to>y||y==x&&de.to==y)&&(b(Math.max(de.from,y),Math.min(de.to,x),de.level==1?"rtl":"ltr",oe),z=!0)}z||b(y,x,"ltr")}var Yn=null;function Fn(a,y,x){var b;Yn=null;for(var z=0;z<a.length;++z){var oe=a[z];if(oe.from<y&&oe.to>y)return z;oe.to==y&&(oe.from!=oe.to&&x=="before"?b=z:Yn=z),oe.from==y&&(oe.from!=oe.to&&x!="before"?b=z:Yn=z)}return b!=null?b:Yn}var or=function(){var a="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",y="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function x(je){return je<=247?a.charAt(je):1424<=je&&je<=1524?"R":1536<=je&&je<=1785?y.charAt(je-1536):1774<=je&&je<=2220?"r":8192<=je&&je<=8203?"w":je==8204?"b":"L"}var b=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,z=/[stwN]/,oe=/[LRr]/,de=/[Lb1n]/,Ee=/[1n]/;function we(je,yt,Bt){this.level=je,this.from=yt,this.to=Bt}return function(je,yt){var Bt=yt=="ltr"?"L":"R";if(je.length==0||yt=="ltr"&&!b.test(je))return!1;for(var sn=je.length,tn=[],Qn=0;Qn<sn;++Qn)tn.push(x(je.charCodeAt(Qn)));for(var gr=0,Hr=Bt;gr<sn;++gr){var fa=tn[gr];fa=="m"?tn[gr]=Hr:Hr=fa}for(var Ra=0,ua=Bt;Ra<sn;++Ra){var Ua=tn[Ra];Ua=="1"&&ua=="r"?tn[Ra]="n":oe.test(Ua)&&(ua=Ua,Ua=="r"&&(tn[Ra]="R"))}for(var Si=1,li=tn[0];Si<sn-1;++Si){var Co=tn[Si];Co=="+"&&li=="1"&&tn[Si+1]=="1"?tn[Si]="1":Co==","&&li==tn[Si+1]&&(li=="1"||li=="n")&&(tn[Si]=li),li=Co}for(var fl=0;fl<sn;++fl){var es=tn[fl];if(es==",")tn[fl]="N";else if(es=="%"){var Sl=void 0;for(Sl=fl+1;Sl<sn&&tn[Sl]=="%";++Sl);for(var ks=fl&&tn[fl-1]=="!"||Sl<sn&&tn[Sl]=="1"?"1":"N",xs=fl;xs<Sl;++xs)tn[xs]=ks;fl=Sl-1}}for(var Vl=0,hs=Bt;Vl<sn;++Vl){var is=tn[Vl];hs=="L"&&is=="1"?tn[Vl]="L":oe.test(is)&&(hs=is)}for(var Jl=0;Jl<sn;++Jl)if(z.test(tn[Jl])){var Pl=void 0;for(Pl=Jl+1;Pl<sn&&z.test(tn[Pl]);++Pl);for(var Dl=(Jl?tn[Jl-1]:Bt)=="L",ws=(Pl<sn?tn[Pl]:Bt)=="L",ju=Dl==ws?Dl?"L":"R":Bt,mu=Jl;mu<Pl;++mu)tn[mu]=ju;Jl=Pl-1}for(var cs=[],Xs,ee=0;ee<sn;)if(de.test(tn[ee])){var te=ee;for(++ee;ee<sn&&de.test(tn[ee]);++ee);cs.push(new we(0,te,ee))}else{var ie=ee,ce=cs.length,Ce=yt=="rtl"?1:0;for(++ee;ee<sn&&tn[ee]!="L";++ee);for(var xe=ie;xe<ee;)if(Ee.test(tn[xe])){ie<xe&&(cs.splice(ce,0,new we(1,ie,xe)),ce+=Ce);var Oe=xe;for(++xe;xe<ee&&Ee.test(tn[xe]);++xe);cs.splice(ce,0,new we(2,Oe,xe)),ce+=Ce,ie=xe}else++xe;ie<ee&&cs.splice(ce,0,new we(1,ie,ee))}return yt=="ltr"&&(cs[0].level==1&&(Xs=je.match(/^\s+/))&&(cs[0].from=Xs[0].length,cs.unshift(new we(0,0,Xs[0].length))),dt(cs).level==1&&(Xs=je.match(/\s+$/))&&(dt(cs).to-=Xs[0].length,cs.push(new we(0,sn-Xs[0].length,sn)))),yt=="rtl"?cs.reverse():cs}}();function ra(a,y){var x=a.order;return x==null&&(x=a.order=or(a.text,y)),x}var ur=[],rr=function(a,y,x){if(a.addEventListener)a.addEventListener(y,x,!1);else if(a.attachEvent)a.attachEvent("on"+y,x);else{var b=a._handlers||(a._handlers={});b[y]=(b[y]||ur).concat(x)}};function Xr(a,y){return a._handlers&&a._handlers[y]||ur}function Vr(a,y,x){if(a.removeEventListener)a.removeEventListener(y,x,!1);else if(a.detachEvent)a.detachEvent("on"+y,x);else{var b=a._handlers,z=b&&b[y];if(z){var oe=pt(z,x);oe>-1&&(b[y]=z.slice(0,oe).concat(z.slice(oe+1)))}}}function xr(a,y){var x=Xr(a,y);if(x.length)for(var b=Array.prototype.slice.call(arguments,2),z=0;z<x.length;++z)x[z].apply(null,b)}function Dn(a,y,x){return typeof y=="string"&&(y={type:y,preventDefault:function(){this.defaultPrevented=!0}}),xr(a,x||y.type,a,y),Ni(y)||y.codemirrorIgnore}function pa(a){var y=a._handlers&&a._handlers.cursorActivity;if(y)for(var x=a.curOp.cursorActivityHandlers||(a.curOp.cursorActivityHandlers=[]),b=0;b<y.length;++b)pt(x,y[b])==-1&&x.push(y[b])}function Jn(a,y){return Xr(a,y).length>0}function Vn(a){a.prototype.on=function(y,x){rr(this,y,x)},a.prototype.off=function(y,x){Vr(this,y,x)}}function ha(a){a.preventDefault?a.preventDefault():a.returnValue=!1}function Ti(a){a.stopPropagation?a.stopPropagation():a.cancelBubble=!0}function Ni(a){return a.defaultPrevented!=null?a.defaultPrevented:a.returnValue==!1}function Ir(a){ha(a),Ti(a)}function Sn(a){return a.target||a.srcElement}function ir(a){var y=a.which;return y==null&&(a.button&1?y=1:a.button&2?y=3:a.button&4&&(y=2)),be&&a.ctrlKey&&y==1&&(y=3),y}var Fa=function(){if(He&&_e<9)return!1;var a=Je("div");return"draggable"in a||"dragDrop"in a}(),$a;function Jr(a){if($a==null){var y=Je("span","\u200B");ct(a,Je("span",[y,document.createTextNode("x")])),a.firstChild.offsetHeight!=0&&($a=y.offsetWidth<=1&&y.offsetHeight>2&&!(He&&_e<8))}var x=$a?Je("span","\u200B"):Je("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return x.setAttribute("cm-text",""),x}var na;function Qa(a){if(na!=null)return na;var y=ct(a,document.createTextNode("A\u062EA")),x=Se(y,0,1).getBoundingClientRect(),b=Se(y,1,2).getBoundingClientRect();return ft(a),!x||x.left==x.right?!1:na=b.right-x.right<3}var Kr=`
b`.split(/\n/).length!=3?function(a){for(var y=0,x=[],b=a.length;y<=b;){var z=a.indexOf(`
`,y);z==-1&&(z=a.length);var oe=a.slice(y,a.charAt(z-1)=="\r"?z-1:z),de=oe.indexOf("\r");de!=-1?(x.push(oe.slice(0,de)),y+=de+1):(x.push(oe),y=z+1)}return x}:function(a){return a.split(/\r\n?|\n/)},qa=window.getSelection?function(a){try{return a.selectionStart!=a.selectionEnd}catch(y){return!1}}:function(a){var y;try{y=a.ownerDocument.selection.createRange()}catch(x){}return!y||y.parentElement()!=a?!1:y.compareEndPoints("StartToEnd",y)!=0},aa=function(){var a=Je("div");return"oncopy"in a?!0:(a.setAttribute("oncopy","return;"),typeof a.oncopy=="function")}(),Wn=null;function Rn(a){if(Wn!=null)return Wn;var y=ct(a,Je("span","x")),x=y.getBoundingClientRect(),b=Se(y,0,1).getBoundingClientRect();return Wn=Math.abs(x.left-b.left)>1}var cn={},fn={};function wn(a,y){arguments.length>2&&(y.dependencies=Array.prototype.slice.call(arguments,2)),cn[a]=y}function nn(a,y){fn[a]=y}function Kn(a){if(typeof a=="string"&&fn.hasOwnProperty(a))a=fn[a];else if(a&&typeof a.name=="string"&&fn.hasOwnProperty(a.name)){var y=fn[a.name];typeof y=="string"&&(y={name:y}),a=le(y,a),a.name=y.name}else{if(typeof a=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(a))return Kn("application/xml");if(typeof a=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(a))return Kn("application/json")}return typeof a=="string"?{name:a}:a||{name:"null"}}function Jt(a,y){y=Kn(y);var x=cn[y.name];if(!x)return Jt(a,"text/plain");var b=x(a,y);if(On.hasOwnProperty(y.name)){var z=On[y.name];for(var oe in z)z.hasOwnProperty(oe)&&(b.hasOwnProperty(oe)&&(b["_"+oe]=b[oe]),b[oe]=z[oe])}if(b.name=y.name,y.helperType&&(b.helperType=y.helperType),y.modeProps)for(var de in y.modeProps)b[de]=y.modeProps[de];return b}var On={};function hr(a,y){var x=On.hasOwnProperty(a)?On[a]:On[a]={};xt(y,x)}function yr(a,y){if(y===!0)return y;if(a.copyState)return a.copyState(y);var x={};for(var b in y){var z=y[b];z instanceof Array&&(z=z.concat([])),x[b]=z}return x}function Ar(a,y){for(var x;a.innerMode&&(x=a.innerMode(y),!(!x||x.mode==a));)y=x.state,a=x.mode;return x||{mode:a,state:y}}function la(a,y,x){return a.startState?a.startState(y,x):!0}var Er=function(a,y,x){this.pos=this.start=0,this.string=a,this.tabSize=y||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=x};Er.prototype.eol=function(){return this.pos>=this.string.length},Er.prototype.sol=function(){return this.pos==this.lineStart},Er.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Er.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Er.prototype.eat=function(a){var y=this.string.charAt(this.pos),x;if(typeof a=="string"?x=y==a:x=y&&(a.test?a.test(y):a(y)),x)return++this.pos,y},Er.prototype.eatWhile=function(a){for(var y=this.pos;this.eat(a););return this.pos>y},Er.prototype.eatSpace=function(){for(var a=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>a},Er.prototype.skipToEnd=function(){this.pos=this.string.length},Er.prototype.skipTo=function(a){var y=this.string.indexOf(a,this.pos);if(y>-1)return this.pos=y,!0},Er.prototype.backUp=function(a){this.pos-=a},Er.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Re(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Re(this.string,this.lineStart,this.tabSize):0)},Er.prototype.indentation=function(){return Re(this.string,null,this.tabSize)-(this.lineStart?Re(this.string,this.lineStart,this.tabSize):0)},Er.prototype.match=function(a,y,x){if(typeof a=="string"){var b=function(de){return x?de.toLowerCase():de},z=this.string.substr(this.pos,a.length);if(b(z)==b(a))return y!==!1&&(this.pos+=a.length),!0}else{var oe=this.string.slice(this.pos).match(a);return oe&&oe.index>0?null:(oe&&y!==!1&&(this.pos+=oe[0].length),oe)}},Er.prototype.current=function(){return this.string.slice(this.start,this.pos)},Er.prototype.hideFirstChars=function(a,y){this.lineStart+=a;try{return y()}finally{this.lineStart-=a}},Er.prototype.lookAhead=function(a){var y=this.lineOracle;return y&&y.lookAhead(a)},Er.prototype.baseToken=function(){var a=this.lineOracle;return a&&a.baseToken(this.pos)};function Qt(a,y){if(y-=a.first,y<0||y>=a.size)throw new Error("There is no line "+(y+a.first)+" in the document.");for(var x=a;!x.lines;)for(var b=0;;++b){var z=x.children[b],oe=z.chunkSize();if(y<oe){x=z;break}y-=oe}return x.lines[y]}function _n(a,y,x){var b=[],z=y.line;return a.iter(y.line,x.line+1,function(oe){var de=oe.text;z==x.line&&(de=de.slice(0,x.ch)),z==y.line&&(de=de.slice(y.ch)),b.push(de),++z}),b}function br(a,y,x){var b=[];return a.iter(y,x,function(z){b.push(z.text)}),b}function Nr(a,y){var x=y-a.height;if(x)for(var b=a;b;b=b.parent)b.height+=x}function qr(a){if(a.parent==null)return null;for(var y=a.parent,x=pt(y.lines,a),b=y.parent;b;y=b,b=b.parent)for(var z=0;b.children[z]!=y;++z)x+=b.children[z].chunkSize();return x+y.first}function Xa(a,y){var x=a.first;e:do{for(var b=0;b<a.children.length;++b){var z=a.children[b],oe=z.height;if(y<oe){a=z;continue e}y-=oe,x+=z.chunkSize()}return x}while(!a.lines);for(var de=0;de<a.lines.length;++de){var Ee=a.lines[de],we=Ee.height;if(y<we)break;y-=we}return x+de}function si(a,y){return y>=a.first&&y<a.first+a.size}function so(a,y){return String(a.lineNumberFormatter(y+a.firstLineNumber))}function Mn(a,y,x){if(x===void 0&&(x=null),!(this instanceof Mn))return new Mn(a,y,x);this.line=a,this.ch=y,this.sticky=x}function Rr(a,y){return a.line-y.line||a.ch-y.ch}function jn(a,y){return a.sticky==y.sticky&&Rr(a,y)==0}function tl(a){return Mn(a.line,a.ch)}function Zo(a,y){return Rr(a,y)<0?y:a}function Ct(a,y){return Rr(a,y)<0?a:y}function rn(a,y){return Math.max(a.first,Math.min(y,a.first+a.size-1))}function Mt(a,y){if(y.line<a.first)return Mn(a.first,0);var x=a.first+a.size-1;return y.line>x?Mn(x,Qt(a,x).text.length):Nt(y,Qt(a,y.line).text.length)}function Nt(a,y){var x=a.ch;return x==null||x>y?Mn(a.line,y):x<0?Mn(a.line,0):a}function sr(a,y){for(var x=[],b=0;b<y.length;b++)x[b]=Mt(a,y[b]);return x}var Hn=function(a,y){this.state=a,this.lookAhead=y},vn=function(a,y,x,b){this.state=y,this.doc=a,this.line=x,this.maxLookAhead=b||0,this.baseTokens=null,this.baseTokenPos=1};vn.prototype.lookAhead=function(a){var y=this.doc.getLine(this.line+a);return y!=null&&a>this.maxLookAhead&&(this.maxLookAhead=a),y},vn.prototype.baseToken=function(a){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=a;)this.baseTokenPos+=2;var y=this.baseTokens[this.baseTokenPos+1];return{type:y&&y.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-a}},vn.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},vn.fromSaved=function(a,y,x){return y instanceof Hn?new vn(a,yr(a.mode,y.state),x,y.lookAhead):new vn(a,yr(a.mode,y),x)},vn.prototype.save=function(a){var y=a!==!1?yr(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Hn(y,this.maxLookAhead):y};function Fr(a,y,x,b){var z=[a.state.modeGen],oe={};Wa(a,y.text,a.doc.mode,x,function(je,yt){return z.push(je,yt)},oe,b);for(var de=x.state,Ee=function(je){x.baseTokens=z;var yt=a.state.overlays[je],Bt=1,sn=0;x.state=!0,Wa(a,y.text,yt.mode,x,function(tn,Qn){for(var gr=Bt;sn<tn;){var Hr=z[Bt];Hr>tn&&z.splice(Bt,1,tn,z[Bt+1],Hr),Bt+=2,sn=Math.min(tn,Hr)}if(Qn)if(yt.opaque)z.splice(gr,Bt-gr,tn,"overlay "+Qn),Bt=gr+2;else for(;gr<Bt;gr+=2){var fa=z[gr+1];z[gr+1]=(fa?fa+" ":"")+"overlay "+Qn}},oe),x.state=de,x.baseTokens=null,x.baseTokenPos=1},we=0;we<a.state.overlays.length;++we)Ee(we);return{styles:z,classes:oe.bgClass||oe.textClass?oe:null}}function Pr(a,y,x){if(!y.styles||y.styles[0]!=a.state.modeGen){var b=Or(a,qr(y)),z=y.text.length>a.options.maxHighlightLength&&yr(a.doc.mode,b.state),oe=Fr(a,y,b);z&&(b.state=z),y.stateAfter=b.save(!z),y.styles=oe.styles,oe.classes?y.styleClasses=oe.classes:y.styleClasses&&(y.styleClasses=null),x===a.doc.highlightFrontier&&(a.doc.modeFrontier=Math.max(a.doc.modeFrontier,++a.doc.highlightFrontier))}return y.styles}function Or(a,y,x){var b=a.doc,z=a.display;if(!b.mode.startState)return new vn(b,!0,y);var oe=Li(a,y,x),de=oe>b.first&&Qt(b,oe-1).stateAfter,Ee=de?vn.fromSaved(b,de,oe):new vn(b,la(b.mode),oe);return b.iter(oe,y,function(we){Ha(a,we.text,Ee);var je=Ee.line;we.stateAfter=je==y-1||je%5==0||je>=z.viewFrom&&je<z.viewTo?Ee.save():null,Ee.nextLine()}),x&&(b.modeFrontier=Ee.line),Ee}function Ha(a,y,x,b){var z=a.doc.mode,oe=new Er(y,a.options.tabSize,x);for(oe.start=oe.pos=b||0,y==""&&ma(z,x.state);!oe.eol();)Qr(z,oe,x.state),oe.start=oe.pos}function ma(a,y){if(a.blankLine)return a.blankLine(y);if(a.innerMode){var x=Ar(a,y);if(x.mode.blankLine)return x.mode.blankLine(x.state)}}function Qr(a,y,x,b){for(var z=0;z<10;z++){b&&(b[0]=Ar(a,x).mode);var oe=a.token(y,x);if(y.pos>y.start)return oe}throw new Error("Mode "+a.name+" failed to advance stream.")}var za=function(a,y,x){this.start=a.start,this.end=a.pos,this.string=a.current(),this.type=y||null,this.state=x};function Ya(a,y,x,b){var z=a.doc,oe=z.mode,de;y=Mt(z,y);var Ee=Qt(z,y.line),we=Or(a,y.line,x),je=new Er(Ee.text,a.options.tabSize,we),yt;for(b&&(yt=[]);(b||je.pos<y.ch)&&!je.eol();)je.start=je.pos,de=Qr(oe,je,we.state),b&&yt.push(new za(je,de,yr(z.mode,we.state)));return b?yt:new za(je,de,we.state)}function jr(a,y){if(a)for(;;){var x=a.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!x)break;a=a.slice(0,x.index)+a.slice(x.index+x[0].length);var b=x[1]?"bgClass":"textClass";y[b]==null?y[b]=x[2]:new RegExp("(?:^|\\s)"+x[2]+"(?:$|\\s)").test(y[b])||(y[b]+=" "+x[2])}return a}function Wa(a,y,x,b,z,oe,de){var Ee=x.flattenSpans;Ee==null&&(Ee=a.options.flattenSpans);var we=0,je=null,yt=new Er(y,a.options.tabSize,b),Bt,sn=a.options.addModeClass&&[null];for(y==""&&jr(ma(x,b.state),oe);!yt.eol();){if(yt.pos>a.options.maxHighlightLength?(Ee=!1,de&&Ha(a,y,b,yt.pos),yt.pos=y.length,Bt=null):Bt=jr(Qr(x,yt,b.state,sn),oe),sn){var tn=sn[0].name;tn&&(Bt="m-"+(Bt?tn+" "+Bt:tn))}if(!Ee||je!=Bt){for(;we<yt.start;)we=Math.min(yt.start,we+5e3),z(we,je);je=Bt}yt.start=yt.pos}for(;we<yt.pos;){var Qn=Math.min(yt.pos,we+5e3);z(Qn,je),we=Qn}}function Li(a,y,x){for(var b,z,oe=a.doc,de=x?-1:y-(a.doc.mode.innerMode?1e3:100),Ee=y;Ee>de;--Ee){if(Ee<=oe.first)return oe.first;var we=Qt(oe,Ee-1),je=we.stateAfter;if(je&&(!x||Ee+(je instanceof Hn?je.lookAhead:0)<=oe.modeFrontier))return Ee;var yt=Re(we.text,null,a.options.tabSize);(z==null||b>yt)&&(z=Ee-1,b=yt)}return z}function ui(a,y){if(a.modeFrontier=Math.min(a.modeFrontier,y),!(a.highlightFrontier<y-10)){for(var x=a.first,b=y-1;b>x;b--){var z=Qt(a,b).stateAfter;if(z&&(!(z instanceof Hn)||b+z.lookAhead<y)){x=b+1;break}}a.highlightFrontier=Math.min(a.highlightFrontier,x)}}var Sa=!1,ia=!1;function $i(){Sa=!0}function ci(){ia=!0}function ja(a,y,x){this.marker=a,this.from=y,this.to=x}function ai(a,y){if(a)for(var x=0;x<a.length;++x){var b=a[x];if(b.marker==y)return b}}function wi(a,y){for(var x,b=0;b<a.length;++b)a[b]!=y&&(x||(x=[])).push(a[b]);return x}function ii(a,y){a.markedSpans=a.markedSpans?a.markedSpans.concat([y]):[y],y.marker.attachLine(a)}function Da(a,y,x){var b;if(a)for(var z=0;z<a.length;++z){var oe=a[z],de=oe.marker,Ee=oe.from==null||(de.inclusiveLeft?oe.from<=y:oe.from<y);if(Ee||oe.from==y&&de.type=="bookmark"&&(!x||!oe.marker.insertLeft)){var we=oe.to==null||(de.inclusiveRight?oe.to>=y:oe.to>y);(b||(b=[])).push(new ja(de,oe.from,we?null:oe.to))}}return b}function Di(a,y,x){var b;if(a)for(var z=0;z<a.length;++z){var oe=a[z],de=oe.marker,Ee=oe.to==null||(de.inclusiveRight?oe.to>=y:oe.to>y);if(Ee||oe.from==y&&de.type=="bookmark"&&(!x||oe.marker.insertLeft)){var we=oe.from==null||(de.inclusiveLeft?oe.from<=y:oe.from<y);(b||(b=[])).push(new ja(de,we?null:oe.from-y,oe.to==null?null:oe.to-y))}}return b}function oi(a,y){if(y.full)return null;var x=si(a,y.from.line)&&Qt(a,y.from.line).markedSpans,b=si(a,y.to.line)&&Qt(a,y.to.line).markedSpans;if(!x&&!b)return null;var z=y.from.ch,oe=y.to.ch,de=Rr(y.from,y.to)==0,Ee=Da(x,z,de),we=Di(b,oe,de),je=y.text.length==1,yt=dt(y.text).length+(je?z:0);if(Ee)for(var Bt=0;Bt<Ee.length;++Bt){var sn=Ee[Bt];if(sn.to==null){var tn=ai(we,sn.marker);tn?je&&(sn.to=tn.to==null?null:tn.to+yt):sn.to=z}}if(we)for(var Qn=0;Qn<we.length;++Qn){var gr=we[Qn];if(gr.to!=null&&(gr.to+=yt),gr.from==null){var Hr=ai(Ee,gr.marker);Hr||(gr.from=yt,je&&(Ee||(Ee=[])).push(gr))}else gr.from+=yt,je&&(Ee||(Ee=[])).push(gr)}Ee&&(Ee=xo(Ee)),we&&we!=Ee&&(we=xo(we));var fa=[Ee];if(!je){var Ra=y.text.length-2,ua;if(Ra>0&&Ee)for(var Ua=0;Ua<Ee.length;++Ua)Ee[Ua].to==null&&(ua||(ua=[])).push(new ja(Ee[Ua].marker,null,null));for(var Si=0;Si<Ra;++Si)fa.push(ua);fa.push(we)}return fa}function xo(a){for(var y=0;y<a.length;++y){var x=a[y];x.from!=null&&x.from==x.to&&x.marker.clearWhenEmpty!==!1&&a.splice(y--,1)}return a.length?a:null}function Bo(a,y,x){var b=null;if(a.iter(y.line,x.line+1,function(tn){if(tn.markedSpans)for(var Qn=0;Qn<tn.markedSpans.length;++Qn){var gr=tn.markedSpans[Qn].marker;gr.readOnly&&(!b||pt(b,gr)==-1)&&(b||(b=[])).push(gr)}}),!b)return null;for(var z=[{from:y,to:x}],oe=0;oe<b.length;++oe)for(var de=b[oe],Ee=de.find(0),we=0;we<z.length;++we){var je=z[we];if(!(Rr(je.to,Ee.from)<0||Rr(je.from,Ee.to)>0)){var yt=[we,1],Bt=Rr(je.from,Ee.from),sn=Rr(je.to,Ee.to);(Bt<0||!de.inclusiveLeft&&!Bt)&&yt.push({from:je.from,to:Ee.from}),(sn>0||!de.inclusiveRight&&!sn)&&yt.push({from:Ee.to,to:je.to}),z.splice.apply(z,yt),we+=yt.length-3}}return z}function Ei(a){var y=a.markedSpans;if(y){for(var x=0;x<y.length;++x)y[x].marker.detachLine(a);a.markedSpans=null}}function Qi(a,y){if(y){for(var x=0;x<y.length;++x)y[x].marker.attachLine(a);a.markedSpans=y}}function ga(a){return a.inclusiveLeft?-1:0}function Ri(a){return a.inclusiveRight?1:0}function Pi(a,y){var x=a.lines.length-y.lines.length;if(x!=0)return x;var b=a.find(),z=y.find(),oe=Rr(b.from,z.from)||ga(a)-ga(y);if(oe)return-oe;var de=Rr(b.to,z.to)||Ri(a)-Ri(y);return de||y.id-a.id}function Fo(a,y){var x=ia&&a.markedSpans,b;if(x)for(var z=void 0,oe=0;oe<x.length;++oe)z=x[oe],z.marker.collapsed&&(y?z.from:z.to)==null&&(!b||Pi(b,z.marker)<0)&&(b=z.marker);return b}function Bi(a){return Fo(a,!0)}function Fi(a){return Fo(a,!1)}function So(a,y){var x=ia&&a.markedSpans,b;if(x)for(var z=0;z<x.length;++z){var oe=x[z];oe.marker.collapsed&&(oe.from==null||oe.from<y)&&(oe.to==null||oe.to>y)&&(!b||Pi(b,oe.marker)<0)&&(b=oe.marker)}return b}function De(a,y,x,b,z){var oe=Qt(a,y),de=ia&&oe.markedSpans;if(de)for(var Ee=0;Ee<de.length;++Ee){var we=de[Ee];if(we.marker.collapsed){var je=we.marker.find(0),yt=Rr(je.from,x)||ga(we.marker)-ga(z),Bt=Rr(je.to,b)||Ri(we.marker)-Ri(z);if(!(yt>=0&&Bt<=0||yt<=0&&Bt>=0)&&(yt<=0&&(we.marker.inclusiveRight&&z.inclusiveLeft?Rr(je.to,x)>=0:Rr(je.to,x)>0)||yt>=0&&(we.marker.inclusiveRight&&z.inclusiveLeft?Rr(je.from,b)<=0:Rr(je.from,b)<0)))return!0}}}function jt(a){for(var y;y=Bi(a);)a=y.find(-1,!0).line;return a}function hn(a){for(var y;y=Fi(a);)a=y.find(1,!0).line;return a}function Cn(a){for(var y,x;y=Fi(a);)a=y.find(1,!0).line,(x||(x=[])).push(a);return x}function _t(a,y){var x=Qt(a,y),b=jt(x);return x==b?y:qr(b)}function $t(a,y){if(y>a.lastLine())return y;var x=Qt(a,y),b;if(!Ut(a,x))return y;for(;b=Fi(x);)x=b.find(1,!0).line;return qr(x)+1}function Ut(a,y){var x=ia&&y.markedSpans;if(x){for(var b=void 0,z=0;z<x.length;++z)if(b=x[z],!!b.marker.collapsed){if(b.from==null)return!0;if(!b.marker.widgetNode&&b.from==0&&b.marker.inclusiveLeft&&an(a,y,b))return!0}}}function an(a,y,x){if(x.to==null){var b=x.marker.find(1,!0);return an(a,b.line,ai(b.line.markedSpans,x.marker))}if(x.marker.inclusiveRight&&x.to==y.text.length)return!0;for(var z=void 0,oe=0;oe<y.markedSpans.length;++oe)if(z=y.markedSpans[oe],z.marker.collapsed&&!z.marker.widgetNode&&z.from==x.to&&(z.to==null||z.to!=x.from)&&(z.marker.inclusiveLeft||x.marker.inclusiveRight)&&an(a,y,z))return!0}function qt(a){a=jt(a);for(var y=0,x=a.parent,b=0;b<x.lines.length;++b){var z=x.lines[b];if(z==a)break;y+=z.height}for(var oe=x.parent;oe;x=oe,oe=x.parent)for(var de=0;de<oe.children.length;++de){var Ee=oe.children[de];if(Ee==x)break;y+=Ee.height}return y}function An(a){if(a.height==0)return 0;for(var y=a.text.length,x,b=a;x=Bi(b);){var z=x.find(0,!0);b=z.from.line,y+=z.from.ch-z.to.ch}for(b=a;x=Fi(b);){var oe=x.find(0,!0);y-=b.text.length-oe.from.ch,b=oe.to.line,y+=b.text.length-oe.to.ch}return y}function fr(a){var y=a.display,x=a.doc;y.maxLine=Qt(x,x.first),y.maxLineLength=An(y.maxLine),y.maxLineChanged=!0,x.iter(function(b){var z=An(b);z>y.maxLineLength&&(y.maxLineLength=z,y.maxLine=b)})}var cr=function(a,y,x){this.text=a,Qi(this,y),this.height=x?x(this):1};cr.prototype.lineNo=function(){return qr(this)},Vn(cr);function $n(a,y,x,b){a.text=y,a.stateAfter&&(a.stateAfter=null),a.styles&&(a.styles=null),a.order!=null&&(a.order=null),Ei(a),Qi(a,x);var z=b?b(a):1;z!=a.height&&Nr(a,z)}function Pa(a){a.parent=null,Ei(a)}var ta={},Ba={};function bi(a,y){if(!a||/^\s*$/.test(a))return null;var x=y.addModeClass?Ba:ta;return x[a]||(x[a]=a.replace(/\S+/g,"cm-$&"))}function Hi(a,y){var x=ut("span",null,null,ze?"padding-right: .1px":null),b={pre:ut("pre",[x],"CodeMirror-line"),content:x,col:0,pos:0,cm:a,trailingSpace:!1,splitSpaces:a.getOption("lineWrapping")};y.measure={};for(var z=0;z<=(y.rest?y.rest.length:0);z++){var oe=z?y.rest[z-1]:y.line,de=void 0;b.pos=0,b.addToken=pl,Qa(a.display.measure)&&(de=ra(oe,a.doc.direction))&&(b.addToken=ll(b.addToken,de)),b.map=[];var Ee=y!=a.display.externalMeasured&&qr(oe);Do(oe,b,Pr(a,oe,Ee)),oe.styleClasses&&(oe.styleClasses.bgClass&&(b.bgClass=Dt(oe.styleClasses.bgClass,b.bgClass||"")),oe.styleClasses.textClass&&(b.textClass=Dt(oe.styleClasses.textClass,b.textClass||""))),b.map.length==0&&b.map.push(0,0,b.content.appendChild(Jr(a.display.measure))),z==0?(y.measure.map=b.map,y.measure.cache={}):((y.measure.maps||(y.measure.maps=[])).push(b.map),(y.measure.caches||(y.measure.caches=[])).push({}))}if(ze){var we=b.content.lastChild;(/\bcm-tab\b/.test(we.className)||we.querySelector&&we.querySelector(".cm-tab"))&&(b.content.className="cm-tab-wrap-hack")}return xr(a,"renderLine",a,y.line,b.pre),b.pre.className&&(b.textClass=Dt(b.pre.className,b.textClass||"")),b}function uo(a){var y=Je("span","\u2022","cm-invalidchar");return y.title="\\u"+a.charCodeAt(0).toString(16),y.setAttribute("aria-label",y.title),y}function pl(a,y,x,b,z,oe,de){if(y){var Ee=a.splitSpaces?ol(y,a.trailingSpace):y,we=a.cm.state.specialChars,je=!1,yt;if(!we.test(y))a.col+=y.length,yt=document.createTextNode(Ee),a.map.push(a.pos,a.pos+y.length,yt),He&&_e<9&&(je=!0),a.pos+=y.length;else{yt=document.createDocumentFragment();for(var Bt=0;;){we.lastIndex=Bt;var sn=we.exec(y),tn=sn?sn.index-Bt:y.length-Bt;if(tn){var Qn=document.createTextNode(Ee.slice(Bt,Bt+tn));He&&_e<9?yt.appendChild(Je("span",[Qn])):yt.appendChild(Qn),a.map.push(a.pos,a.pos+tn,Qn),a.col+=tn,a.pos+=tn}if(!sn)break;Bt+=tn+1;var gr=void 0;if(sn[0]==" "){var Hr=a.cm.options.tabSize,fa=Hr-a.col%Hr;gr=yt.appendChild(Je("span",en(fa),"cm-tab")),gr.setAttribute("role","presentation"),gr.setAttribute("cm-text"," "),a.col+=fa}else sn[0]=="\r"||sn[0]==`
`?(gr=yt.appendChild(Je("span",sn[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),gr.setAttribute("cm-text",sn[0]),a.col+=1):(gr=a.cm.options.specialCharPlaceholder(sn[0]),gr.setAttribute("cm-text",sn[0]),He&&_e<9?yt.appendChild(Je("span",[gr])):yt.appendChild(gr),a.col+=1);a.map.push(a.pos,a.pos+1,gr),a.pos++}}if(a.trailingSpace=Ee.charCodeAt(y.length-1)==32,x||b||z||je||oe||de){var Ra=x||"";b&&(Ra+=b),z&&(Ra+=z);var ua=Je("span",[yt],Ra,oe);if(de)for(var Ua in de)de.hasOwnProperty(Ua)&&Ua!="style"&&Ua!="class"&&ua.setAttribute(Ua,de[Ua]);return a.content.appendChild(ua)}a.content.appendChild(yt)}}function ol(a,y){if(a.length>1&&!/ /.test(a))return a;for(var x=y,b="",z=0;z<a.length;z++){var oe=a.charAt(z);oe==" "&&x&&(z==a.length-1||a.charCodeAt(z+1)==32)&&(oe="\xA0"),b+=oe,x=oe==" "}return b}function ll(a,y){return function(x,b,z,oe,de,Ee,we){z=z?z+" cm-force-border":"cm-force-border";for(var je=x.pos,yt=je+b.length;;){for(var Bt=void 0,sn=0;sn<y.length&&(Bt=y[sn],!(Bt.to>je&&Bt.from<=je));sn++);if(Bt.to>=yt)return a(x,b,z,oe,de,Ee,we);a(x,b.slice(0,Bt.to-je),z,oe,null,Ee,we),oe=null,b=b.slice(Bt.to-je),je=Bt.to}}}function nl(a,y,x,b){var z=!b&&x.widgetNode;z&&a.map.push(a.pos,a.pos+y,z),!b&&a.cm.display.input.needsContentAttribute&&(z||(z=a.content.appendChild(document.createElement("span"))),z.setAttribute("cm-marker",x.id)),z&&(a.cm.display.input.setUneditable(z),a.content.appendChild(z)),a.pos+=y,a.trailingSpace=!1}function Do(a,y,x){var b=a.markedSpans,z=a.text,oe=0;if(!b){for(var de=1;de<x.length;de+=2)y.addToken(y,z.slice(oe,oe=x[de]),bi(x[de+1],y.cm.options));return}for(var Ee=z.length,we=0,je=1,yt="",Bt,sn,tn=0,Qn,gr,Hr,fa,Ra;;){if(tn==we){Qn=gr=Hr=sn="",Ra=null,fa=null,tn=1/0;for(var ua=[],Ua=void 0,Si=0;Si<b.length;++Si){var li=b[Si],Co=li.marker;if(Co.type=="bookmark"&&li.from==we&&Co.widgetNode)ua.push(Co);else if(li.from<=we&&(li.to==null||li.to>we||Co.collapsed&&li.to==we&&li.from==we)){if(li.to!=null&&li.to!=we&&tn>li.to&&(tn=li.to,gr=""),Co.className&&(Qn+=" "+Co.className),Co.css&&(sn=(sn?sn+";":"")+Co.css),Co.startStyle&&li.from==we&&(Hr+=" "+Co.startStyle),Co.endStyle&&li.to==tn&&(Ua||(Ua=[])).push(Co.endStyle,li.to),Co.title&&((Ra||(Ra={})).title=Co.title),Co.attributes)for(var fl in Co.attributes)(Ra||(Ra={}))[fl]=Co.attributes[fl];Co.collapsed&&(!fa||Pi(fa.marker,Co)<0)&&(fa=li)}else li.from>we&&tn>li.from&&(tn=li.from)}if(Ua)for(var es=0;es<Ua.length;es+=2)Ua[es+1]==tn&&(gr+=" "+Ua[es]);if(!fa||fa.from==we)for(var Sl=0;Sl<ua.length;++Sl)nl(y,0,ua[Sl]);if(fa&&(fa.from||0)==we){if(nl(y,(fa.to==null?Ee+1:fa.to)-we,fa.marker,fa.from==null),fa.to==null)return;fa.to==we&&(fa=!1)}}if(we>=Ee)break;for(var ks=Math.min(Ee,tn);;){if(yt){var xs=we+yt.length;if(!fa){var Vl=xs>ks?yt.slice(0,ks-we):yt;y.addToken(y,Vl,Bt?Bt+Qn:Qn,Hr,we+Vl.length==tn?gr:"",sn,Ra)}if(xs>=ks){yt=yt.slice(ks-we),we=ks;break}we=xs,Hr=""}yt=z.slice(oe,oe=x[je++]),Bt=bi(x[je++],y.cm.options)}}}function co(a,y,x){this.line=y,this.rest=Cn(y),this.size=this.rest?qr(dt(this.rest))-x+1:1,this.node=this.text=null,this.hidden=Ut(a,y)}function jl(a,y,x){for(var b=[],z,oe=y;oe<x;oe=z){var de=new co(a.doc,Qt(a.doc,oe),oe);z=oe+de.size,b.push(de)}return b}var yl=null;function Ul(a){yl?yl.ops.push(a):a.ownsGroup=yl={ops:[a],delayedCallbacks:[]}}function ql(a){var y=a.delayedCallbacks,x=0;do{for(;x<y.length;x++)y[x].call(null);for(var b=0;b<a.ops.length;b++){var z=a.ops[b];if(z.cursorActivityHandlers)for(;z.cursorActivityCalled<z.cursorActivityHandlers.length;)z.cursorActivityHandlers[z.cursorActivityCalled++].call(null,z.cm)}}while(x<y.length)}function kl(a,y){var x=a.ownsGroup;if(x)try{ql(x)}finally{yl=null,y(x)}}var hl=null;function Go(a,y){var x=Xr(a,y);if(x.length){var b=Array.prototype.slice.call(arguments,2),z;yl?z=yl.delayedCallbacks:hl?z=hl:(z=hl=[],setTimeout(ts,0));for(var oe=function(Ee){z.push(function(){return x[Ee].apply(null,b)})},de=0;de<x.length;++de)oe(de)}}function ts(){var a=hl;hl=null;for(var y=0;y<a.length;++y)a[y]()}function Ts(a,y,x,b){for(var z=0;z<y.changes.length;z++){var oe=y.changes[z];oe=="text"?Ls(a,y):oe=="gutter"?Zs(a,y,x,b):oe=="class"?Rs(a,y):oe=="widget"&&Ao(a,y,b)}y.changes=null}function ns(a){return a.node==a.text&&(a.node=Je("div",null,null,"position: relative"),a.text.parentNode&&a.text.parentNode.replaceChild(a.node,a.text),a.node.appendChild(a.text),He&&_e<8&&(a.node.style.zIndex=2)),a.node}function vs(a,y){var x=y.bgClass?y.bgClass+" "+(y.line.bgClass||""):y.line.bgClass;if(x&&(x+=" CodeMirror-linebackground"),y.background)x?y.background.className=x:(y.background.parentNode.removeChild(y.background),y.background=null);else if(x){var b=ns(y);y.background=b.insertBefore(Je("div",null,x),b.firstChild),a.display.input.setUneditable(y.background)}}function Us(a,y){var x=a.display.externalMeasured;return x&&x.line==y.line?(a.display.externalMeasured=null,y.measure=x.measure,x.built):Hi(a,y)}function Ls(a,y){var x=y.text.className,b=Us(a,y);y.text==y.node&&(y.node=b.pre),y.text.parentNode.replaceChild(b.pre,y.text),y.text=b.pre,b.bgClass!=y.bgClass||b.textClass!=y.textClass?(y.bgClass=b.bgClass,y.textClass=b.textClass,Rs(a,y)):x&&(y.text.className=x)}function Rs(a,y){vs(a,y),y.line.wrapClass?ns(y).className=y.line.wrapClass:y.node!=y.text&&(y.node.className="");var x=y.textClass?y.textClass+" "+(y.line.textClass||""):y.line.textClass;y.text.className=x||""}function Zs(a,y,x,b){if(y.gutter&&(y.node.removeChild(y.gutter),y.gutter=null),y.gutterBackground&&(y.node.removeChild(y.gutterBackground),y.gutterBackground=null),y.line.gutterClass){var z=ns(y);y.gutterBackground=Je("div",null,"CodeMirror-gutter-background "+y.line.gutterClass,"left: "+(a.options.fixedGutter?b.fixedPos:-b.gutterTotalWidth)+"px; width: "+b.gutterTotalWidth+"px"),a.display.input.setUneditable(y.gutterBackground),z.insertBefore(y.gutterBackground,y.text)}var oe=y.line.gutterMarkers;if(a.options.lineNumbers||oe){var de=ns(y),Ee=y.gutter=Je("div",null,"CodeMirror-gutter-wrapper","left: "+(a.options.fixedGutter?b.fixedPos:-b.gutterTotalWidth)+"px");if(a.display.input.setUneditable(Ee),de.insertBefore(Ee,y.text),y.line.gutterClass&&(Ee.className+=" "+y.line.gutterClass),a.options.lineNumbers&&(!oe||!oe["CodeMirror-linenumbers"])&&(y.lineNumber=Ee.appendChild(Je("div",so(a.options,x),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+b.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+a.display.lineNumInnerWidth+"px"))),oe)for(var we=0;we<a.display.gutterSpecs.length;++we){var je=a.display.gutterSpecs[we].className,yt=oe.hasOwnProperty(je)&&oe[je];yt&&Ee.appendChild(Je("div",[yt],"CodeMirror-gutter-elt","left: "+b.gutterLeft[je]+"px; width: "+b.gutterWidth[je]+"px"))}}}function Ao(a,y,x){y.alignable&&(y.alignable=null);for(var b=st("CodeMirror-linewidget"),z=y.node.firstChild,oe=void 0;z;z=oe)oe=z.nextSibling,b.test(z.className)&&y.node.removeChild(z);Ai(a,y,x)}function Gr(a,y,x,b){var z=Us(a,y);return y.text=y.node=z.pre,z.bgClass&&(y.bgClass=z.bgClass),z.textClass&&(y.textClass=z.textClass),Rs(a,y),Zs(a,y,x,b),Ai(a,y,b),y.node}function Ai(a,y,x){if(mo(a,y.line,y,x,!0),y.rest)for(var b=0;b<y.rest.length;b++)mo(a,y.rest[b],y,x,!1)}function mo(a,y,x,b,z){if(y.widgets)for(var oe=ns(x),de=0,Ee=y.widgets;de<Ee.length;++de){var we=Ee[de],je=Je("div",[we.node],"CodeMirror-linewidget"+(we.className?" "+we.className:""));we.handleMouseEvents||je.setAttribute("cm-ignore-events","true"),Bl(we,je,x,b),a.display.input.setUneditable(je),z&&we.above?oe.insertBefore(je,x.gutter||x.text):oe.appendChild(je),Go(we,"redraw")}}function Bl(a,y,x,b){if(a.noHScroll){(x.alignable||(x.alignable=[])).push(y);var z=b.wrapperWidth;y.style.left=b.fixedPos+"px",a.coverGutter||(z-=b.gutterTotalWidth,y.style.paddingLeft=b.gutterTotalWidth+"px"),y.style.width=z+"px"}a.coverGutter&&(y.style.zIndex=5,y.style.position="relative",a.noHScroll||(y.style.marginLeft=-b.gutterTotalWidth+"px"))}function Mo(a){if(a.height!=null)return a.height;var y=a.doc.cm;if(!y)return 0;if(!Ve(document.body,a.node)){var x="position: relative;";a.coverGutter&&(x+="margin-left: -"+y.display.gutters.offsetWidth+"px;"),a.noHScroll&&(x+="width: "+y.display.wrapper.clientWidth+"px;"),ct(y.display.measure,Je("div",[a.node],null,x))}return a.height=a.node.parentNode.offsetHeight}function Ci(a,y){for(var x=Sn(y);x!=a.wrapper;x=x.parentNode)if(!x||x.nodeType==1&&x.getAttribute("cm-ignore-events")=="true"||x.parentNode==a.sizer&&x!=a.mover)return!0}function To(a){return a.lineSpace.offsetTop}function wl(a){return a.mover.offsetHeight-a.lineSpace.offsetHeight}function os(a){if(a.cachedPaddingH)return a.cachedPaddingH;var y=ct(a.measure,Je("pre","x","CodeMirror-line-like")),x=window.getComputedStyle?window.getComputedStyle(y):y.currentStyle,b={left:parseInt(x.paddingLeft),right:parseInt(x.paddingRight)};return!isNaN(b.left)&&!isNaN(b.right)&&(a.cachedPaddingH=b),b}function Il(a){return bt-a.display.nativeBarWidth}function Nl(a){return a.display.scroller.clientWidth-Il(a)-a.display.barWidth}function Wi(a){return a.display.scroller.clientHeight-Il(a)-a.display.barHeight}function Is(a,y,x){var b=a.options.lineWrapping,z=b&&Nl(a);if(!y.measure.heights||b&&y.measure.width!=z){var oe=y.measure.heights=[];if(b){y.measure.width=z;for(var de=y.text.firstChild.getClientRects(),Ee=0;Ee<de.length-1;Ee++){var we=de[Ee],je=de[Ee+1];Math.abs(we.bottom-je.bottom)>2&&oe.push((we.bottom+je.top)/2-x.top)}}oe.push(x.bottom-x.top)}}function sl(a,y,x){if(a.line==y)return{map:a.measure.map,cache:a.measure.cache};for(var b=0;b<a.rest.length;b++)if(a.rest[b]==y)return{map:a.measure.maps[b],cache:a.measure.caches[b]};for(var z=0;z<a.rest.length;z++)if(qr(a.rest[z])>x)return{map:a.measure.maps[z],cache:a.measure.caches[z],before:!0}}function rs(a,y){y=jt(y);var x=qr(y),b=a.display.externalMeasured=new co(a.doc,y,x);b.lineN=x;var z=b.built=Hi(a,b);return b.text=z.pre,ct(a.display.lineMeasure,z.pre),b}function gs(a,y,x,b){return ys(a,Fl(a,y),x,b)}function js(a,y){if(y>=a.display.viewFrom&&y<a.display.viewTo)return a.display.view[il(a,y)];var x=a.display.externalMeasured;if(x&&y>=x.lineN&&y<x.lineN+x.size)return x}function Fl(a,y){var x=qr(y),b=js(a,x);b&&!b.text?b=null:b&&b.changes&&(Ts(a,b,x,Fu(a)),a.curOp.forceUpdate=!0),b||(b=rs(a,y));var z=sl(b,y,x);return{line:y,view:b,rect:null,map:z.map,cache:z.cache,before:z.before,hasHeights:!1}}function ys(a,y,x,b,z){y.before&&(x=-1);var oe=x+(b||""),de;return y.cache.hasOwnProperty(oe)?de=y.cache[oe]:(y.rect||(y.rect=y.view.text.getBoundingClientRect()),y.hasHeights||(Is(a,y.view,y.rect),y.hasHeights=!0),de=bs(a,y,x,b),de.bogus||(y.cache[oe]=de)),{left:de.left,right:de.right,top:z?de.rtop:de.top,bottom:z?de.rbottom:de.bottom}}var Au={left:0,right:0,top:0,bottom:0};function Es(a,y,x){for(var b,z,oe,de,Ee,we,je=0;je<a.length;je+=3)if(Ee=a[je],we=a[je+1],y<Ee?(z=0,oe=1,de="left"):y<we?(z=y-Ee,oe=z+1):(je==a.length-3||y==we&&a[je+3]>y)&&(oe=we-Ee,z=oe-1,y>=we&&(de="right")),z!=null){if(b=a[je+2],Ee==we&&x==(b.insertLeft?"left":"right")&&(de=x),x=="left"&&z==0)for(;je&&a[je-2]==a[je-3]&&a[je-1].insertLeft;)b=a[(je-=3)+2],de="left";if(x=="right"&&z==we-Ee)for(;je<a.length-3&&a[je+3]==a[je+4]&&!a[je+5].insertLeft;)b=a[(je+=3)+2],de="right";break}return{node:b,start:z,end:oe,collapse:de,coverStart:Ee,coverEnd:we}}function ds(a,y){var x=Au;if(y=="left")for(var b=0;b<a.length&&(x=a[b]).left==x.right;b++);else for(var z=a.length-1;z>=0&&(x=a[z]).left==x.right;z--);return x}function bs(a,y,x,b){var z=Es(y.map,x,b),oe=z.node,de=z.start,Ee=z.end,we=z.collapse,je;if(oe.nodeType==3){for(var yt=0;yt<4;yt++){for(;de&&Xt(y.line.text.charAt(z.coverStart+de));)--de;for(;z.coverStart+Ee<z.coverEnd&&Xt(y.line.text.charAt(z.coverStart+Ee));)++Ee;if(He&&_e<9&&de==0&&Ee==z.coverEnd-z.coverStart?je=oe.parentNode.getBoundingClientRect():je=ds(Se(oe,de,Ee).getClientRects(),b),je.left||je.right||de==0)break;Ee=de,de=de-1,we="right"}He&&_e<11&&(je=tc(a.display.measure,je))}else{de>0&&(we=b="right");var Bt;a.options.lineWrapping&&(Bt=oe.getClientRects()).length>1?je=Bt[b=="right"?Bt.length-1:0]:je=oe.getBoundingClientRect()}if(He&&_e<9&&!de&&(!je||!je.left&&!je.right)){var sn=oe.parentNode.getClientRects()[0];sn?je={left:sn.left,right:sn.left+ls(a.display),top:sn.top,bottom:sn.bottom}:je=Au}for(var tn=je.top-y.rect.top,Qn=je.bottom-y.rect.top,gr=(tn+Qn)/2,Hr=y.view.measure.heights,fa=0;fa<Hr.length-1&&!(gr<Hr[fa]);fa++);var Ra=fa?Hr[fa-1]:0,ua=Hr[fa],Ua={left:(we=="right"?je.right:je.left)-y.rect.left,right:(we=="left"?je.left:je.right)-y.rect.left,top:Ra,bottom:ua};return!je.left&&!je.right&&(Ua.bogus=!0),a.options.singleCursorHeightPerLine||(Ua.rtop=tn,Ua.rbottom=Qn),Ua}function tc(a,y){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Rn(a))return y;var x=screen.logicalXDPI/screen.deviceXDPI,b=screen.logicalYDPI/screen.deviceYDPI;return{left:y.left*x,right:y.right*x,top:y.top*b,bottom:y.bottom*b}}function Vu(a){if(a.measure&&(a.measure.cache={},a.measure.heights=null,a.rest))for(var y=0;y<a.rest.length;y++)a.measure.caches[y]={}}function qs(a){a.display.externalMeasure=null,ft(a.display.lineMeasure);for(var y=0;y<a.display.view.length;y++)Vu(a.display.view[y])}function Ys(a){qs(a),a.display.cachedCharWidth=a.display.cachedTextHeight=a.display.cachedPaddingH=null,a.options.lineWrapping||(a.display.maxLineChanged=!0),a.display.lineNumChars=null}function Xo(){return Fe&&Ne?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function zu(){return Fe&&Ne?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function Cu(a){var y=0;if(a.widgets)for(var x=0;x<a.widgets.length;++x)a.widgets[x].above&&(y+=Mo(a.widgets[x]));return y}function iu(a,y,x,b,z){if(!z){var oe=Cu(y);x.top+=oe,x.bottom+=oe}if(b=="line")return x;b||(b="local");var de=qt(y);if(b=="local"?de+=To(a.display):de-=a.display.viewOffset,b=="page"||b=="window"){var Ee=a.display.lineSpace.getBoundingClientRect();de+=Ee.top+(b=="window"?0:zu());var we=Ee.left+(b=="window"?0:Xo());x.left+=we,x.right+=we}return x.top+=de,x.bottom+=de,x}function xu(a,y,x){if(x=="div")return y;var b=y.left,z=y.top;if(x=="page")b-=Xo(),z-=zu();else if(x=="local"||!x){var oe=a.display.sizer.getBoundingClientRect();b+=oe.left,z+=oe.top}var de=a.display.lineSpace.getBoundingClientRect();return{left:b-de.left,top:z-de.top}}function ou(a,y,x,b,z){return b||(b=Qt(a.doc,y.line)),iu(a,b,gs(a,b,y.ch,z),x)}function Yl(a,y,x,b,z,oe){b=b||Qt(a.doc,y.line),z||(z=Fl(a,b));function de(Qn,gr){var Hr=ys(a,z,Qn,gr?"right":"left",oe);return gr?Hr.left=Hr.right:Hr.right=Hr.left,iu(a,b,Hr,x)}var Ee=ra(b,a.doc.direction),we=y.ch,je=y.sticky;if(we>=b.text.length?(we=b.text.length,je="before"):we<=0&&(we=0,je="after"),!Ee)return de(je=="before"?we-1:we,je=="before");function yt(Qn,gr,Hr){var fa=Ee[gr],Ra=fa.level==1;return de(Hr?Qn-1:Qn,Ra!=Hr)}var Bt=Fn(Ee,we,je),sn=Yn,tn=yt(we,Bt,je=="before");return sn!=null&&(tn.other=yt(we,sn,je!="before")),tn}function _u(a,y){var x=0;y=Mt(a.doc,y),a.options.lineWrapping||(x=ls(a.display)*y.ch);var b=Qt(a.doc,y.line),z=qt(b)+To(a.display);return{left:x,right:x,top:z,bottom:z+b.height}}function as(a,y,x,b,z){var oe=Mn(a,y,x);return oe.xRel=z,b&&(oe.outside=b),oe}function Hl(a,y,x){var b=a.doc;if(x+=a.display.viewOffset,x<0)return as(b.first,0,null,-1,-1);var z=Xa(b,x),oe=b.first+b.size-1;if(z>oe)return as(b.first+b.size-1,Qt(b,oe).text.length,null,1,1);y<0&&(y=0);for(var de=Qt(b,z);;){var Ee=ca(a,de,z,y,x),we=So(de,Ee.ch+(Ee.xRel>0||Ee.outside>0?1:0));if(!we)return Ee;var je=we.find(1);if(je.line==z)return je;de=Qt(b,z=je.line)}}function wu(a,y,x,b){b-=Cu(y);var z=y.text.length,oe=on(function(de){return ys(a,x,de-1).bottom<=b},z,0);return z=on(function(de){return ys(a,x,de).top>b},oe,z),{begin:oe,end:z}}function Pu(a,y,x,b){x||(x=Fl(a,y));var z=iu(a,y,ys(a,x,b),"line").top;return wu(a,y,x,z)}function nu(a,y,x,b){return a.bottom<=x?!1:a.top>x?!0:(b?a.left:a.right)>y}function ca(a,y,x,b,z){z-=qt(y);var oe=Fl(a,y),de=Cu(y),Ee=0,we=y.text.length,je=!0,yt=ra(y,a.doc.direction);if(yt){var Bt=(a.options.lineWrapping?Iu:ku)(a,y,x,oe,yt,b,z);je=Bt.level!=1,Ee=je?Bt.from:Bt.to-1,we=je?Bt.to:Bt.from-1}var sn=null,tn=null,Qn=on(function(Si){var li=ys(a,oe,Si);return li.top+=de,li.bottom+=de,nu(li,b,z,!1)?(li.top<=z&&li.left<=b&&(sn=Si,tn=li),!0):!1},Ee,we),gr,Hr,fa=!1;if(tn){var Ra=b-tn.left<tn.right-b,ua=Ra==je;Qn=sn+(ua?0:1),Hr=ua?"after":"before",gr=Ra?tn.left:tn.right}else{!je&&(Qn==we||Qn==Ee)&&Qn++,Hr=Qn==0?"after":Qn==y.text.length?"before":ys(a,oe,Qn-(je?1:0)).bottom+de<=z==je?"after":"before";var Ua=Yl(a,Mn(x,Qn,Hr),"line",y,oe);gr=Ua.left,fa=z<Ua.top?-1:z>=Ua.bottom?1:0}return Qn=zt(y.text,Qn,1),as(x,Qn,Hr,fa,b-gr)}function ku(a,y,x,b,z,oe,de){var Ee=on(function(Bt){var sn=z[Bt],tn=sn.level!=1;return nu(Yl(a,Mn(x,tn?sn.to:sn.from,tn?"before":"after"),"line",y,b),oe,de,!0)},0,z.length-1),we=z[Ee];if(Ee>0){var je=we.level!=1,yt=Yl(a,Mn(x,je?we.from:we.to,je?"after":"before"),"line",y,b);nu(yt,oe,de,!0)&&yt.top>de&&(we=z[Ee-1])}return we}function Iu(a,y,x,b,z,oe,de){var Ee=wu(a,y,b,de),we=Ee.begin,je=Ee.end;/\s/.test(y.text.charAt(je-1))&&je--;for(var yt=null,Bt=null,sn=0;sn<z.length;sn++){var tn=z[sn];if(!(tn.from>=je||tn.to<=we)){var Qn=tn.level!=1,gr=ys(a,b,Qn?Math.min(je,tn.to)-1:Math.max(we,tn.from)).right,Hr=gr<oe?oe-gr+1e9:gr-oe;(!yt||Bt>Hr)&&(yt=tn,Bt=Hr)}}return yt||(yt=z[z.length-1]),yt.from<we&&(yt={from:we,to:yt.to,level:yt.level}),yt.to>je&&(yt={from:yt.from,to:je,level:yt.level}),yt}var fs;function wr(a){if(a.cachedTextHeight!=null)return a.cachedTextHeight;if(fs==null){fs=Je("pre",null,"CodeMirror-line-like");for(var y=0;y<49;++y)fs.appendChild(document.createTextNode("x")),fs.appendChild(Je("br"));fs.appendChild(document.createTextNode("x"))}ct(a.measure,fs);var x=fs.offsetHeight/50;return x>3&&(a.cachedTextHeight=x),ft(a.measure),x||1}function ls(a){if(a.cachedCharWidth!=null)return a.cachedCharWidth;var y=Je("span","xxxxxxxxxx"),x=Je("pre",[y],"CodeMirror-line-like");ct(a.measure,x);var b=y.getBoundingClientRect(),z=(b.right-b.left)/10;return z>2&&(a.cachedCharWidth=z),z||10}function Fu(a){for(var y=a.display,x={},b={},z=y.gutters.clientLeft,oe=y.gutters.firstChild,de=0;oe;oe=oe.nextSibling,++de){var Ee=a.display.gutterSpecs[de].className;x[Ee]=oe.offsetLeft+oe.clientLeft+z,b[Ee]=oe.clientWidth}return{fixedPos:Nu(y),gutterTotalWidth:y.gutters.offsetWidth,gutterLeft:x,gutterWidth:b,wrapperWidth:y.wrapper.clientWidth}}function Nu(a){return a.scroller.getBoundingClientRect().left-a.sizer.getBoundingClientRect().left}function Ou(a){var y=wr(a.display),x=a.options.lineWrapping,b=x&&Math.max(5,a.display.scroller.clientWidth/ls(a.display)-3);return function(z){if(Ut(a.doc,z))return 0;var oe=0;if(z.widgets)for(var de=0;de<z.widgets.length;de++)z.widgets[de].height&&(oe+=z.widgets[de].height);return x?oe+(Math.ceil(z.text.length/b)||1)*y:oe+y}}function Su(a){var y=a.doc,x=Ou(a);y.iter(function(b){var z=x(b);z!=b.height&&Nr(b,z)})}function Ns(a,y,x,b){var z=a.display;if(!x&&Sn(y).getAttribute("cm-not-content")=="true")return null;var oe,de,Ee=z.lineSpace.getBoundingClientRect();try{oe=y.clientX-Ee.left,de=y.clientY-Ee.top}catch(Bt){return null}var we=Hl(a,oe,de),je;if(b&&we.xRel>0&&(je=Qt(a.doc,we.line).text).length==we.ch){var yt=Re(je,je.length,a.options.tabSize)-je.length;we=Mn(we.line,Math.max(0,Math.round((oe-os(a.display).left)/ls(a.display))-yt))}return we}function il(a,y){if(y>=a.display.viewTo||(y-=a.display.viewFrom,y<0))return null;for(var x=a.display.view,b=0;b<x.length;b++)if(y-=x[b].size,y<0)return b}function Ol(a,y,x,b){y==null&&(y=a.doc.first),x==null&&(x=a.doc.first+a.doc.size),b||(b=0);var z=a.display;if(b&&x<z.viewTo&&(z.updateLineNumbers==null||z.updateLineNumbers>y)&&(z.updateLineNumbers=y),a.curOp.viewChanged=!0,y>=z.viewTo)ia&&_t(a.doc,y)<z.viewTo&&Hs(a);else if(x<=z.viewFrom)ia&&$t(a.doc,x+b)>z.viewFrom?Hs(a):(z.viewFrom+=b,z.viewTo+=b);else if(y<=z.viewFrom&&x>=z.viewTo)Hs(a);else if(y<=z.viewFrom){var oe=lu(a,x,x+b,1);oe?(z.view=z.view.slice(oe.index),z.viewFrom=oe.lineN,z.viewTo+=b):Hs(a)}else if(x>=z.viewTo){var de=lu(a,y,y,-1);de?(z.view=z.view.slice(0,de.index),z.viewTo=de.lineN):Hs(a)}else{var Ee=lu(a,y,y,-1),we=lu(a,x,x+b,1);Ee&&we?(z.view=z.view.slice(0,Ee.index).concat(jl(a,Ee.lineN,we.lineN)).concat(z.view.slice(we.index)),z.viewTo+=b):Hs(a)}var je=z.externalMeasured;je&&(x<je.lineN?je.lineN+=b:y<je.lineN+je.size&&(z.externalMeasured=null))}function Ds(a,y,x){a.curOp.viewChanged=!0;var b=a.display,z=a.display.externalMeasured;if(z&&y>=z.lineN&&y<z.lineN+z.size&&(b.externalMeasured=null),!(y<b.viewFrom||y>=b.viewTo)){var oe=b.view[il(a,y)];if(oe.node!=null){var de=oe.changes||(oe.changes=[]);pt(de,x)==-1&&de.push(x)}}}function Hs(a){a.display.viewFrom=a.display.viewTo=a.doc.first,a.display.view=[],a.display.viewOffset=0}function lu(a,y,x,b){var z=il(a,y),oe,de=a.display.view;if(!ia||x==a.doc.first+a.doc.size)return{index:z,lineN:x};for(var Ee=a.display.viewFrom,we=0;we<z;we++)Ee+=de[we].size;if(Ee!=y){if(b>0){if(z==de.length-1)return null;oe=Ee+de[z].size-y,z++}else oe=Ee-y;y+=oe,x+=oe}for(;_t(a.doc,x)!=x;){if(z==(b<0?0:de.length-1))return null;x+=b*de[z-(b<0?1:0)].size,z+=b}return{index:z,lineN:x}}function Gu(a,y,x){var b=a.display,z=b.view;z.length==0||y>=b.viewTo||x<=b.viewFrom?(b.view=jl(a,y,x),b.viewFrom=y):(b.viewFrom>y?b.view=jl(a,y,b.viewFrom).concat(b.view):b.viewFrom<y&&(b.view=b.view.slice(il(a,y))),b.viewFrom=y,b.viewTo<x?b.view=b.view.concat(jl(a,b.viewTo,x)):b.viewTo>x&&(b.view=b.view.slice(0,il(a,x)))),b.viewTo=x}function Du(a){for(var y=a.display.view,x=0,b=0;b<y.length;b++){var z=y[b];!z.hidden&&(!z.node||z.changes)&&++x}return x}function $s(a){a.display.input.showSelection(a.display.input.prepareSelection())}function su(a,y){y===void 0&&(y=!0);for(var x=a.doc,b={},z=b.cursors=document.createDocumentFragment(),oe=b.selection=document.createDocumentFragment(),de=0;de<x.sel.ranges.length;de++)if(!(!y&&de==x.sel.primIndex)){var Ee=x.sel.ranges[de];if(!(Ee.from().line>=a.display.viewTo||Ee.to().line<a.display.viewFrom)){var we=Ee.empty();(we||a.options.showCursorWhenSelecting)&&uu(a,Ee.head,z),we||uc(a,Ee,oe)}}return b}function uu(a,y,x){var b=Yl(a,y,"div",null,null,!a.options.singleCursorHeightPerLine),z=x.appendChild(Je("div","\xA0","CodeMirror-cursor"));if(z.style.left=b.left+"px",z.style.top=b.top+"px",z.style.height=Math.max(0,b.bottom-b.top)*a.options.cursorHeight+"px",b.other){var oe=x.appendChild(Je("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));oe.style.display="",oe.style.left=b.other.left+"px",oe.style.top=b.other.top+"px",oe.style.height=(b.other.bottom-b.other.top)*.85+"px"}}function cu(a,y){return a.top-y.top||a.left-y.left}function uc(a,y,x){var b=a.display,z=a.doc,oe=document.createDocumentFragment(),de=os(a.display),Ee=de.left,we=Math.max(b.sizerWidth,Nl(a)-b.sizer.offsetLeft)-de.right,je=z.direction=="ltr";function yt(ua,Ua,Si,li){Ua<0&&(Ua=0),Ua=Math.round(Ua),li=Math.round(li),oe.appendChild(Je("div",null,"CodeMirror-selected","position: absolute; left: "+ua+`px;
top: `+Ua+"px; width: "+(Si==null?we-ua:Si)+`px;
height: `+(li-Ua)+"px"))}function Bt(ua,Ua,Si){var li=Qt(z,ua),Co=li.text.length,fl,es;function Sl(Vl,hs){return ou(a,Mn(ua,Vl),"div",li,hs)}function ks(Vl,hs,is){var Jl=Pu(a,li,null,Vl),Pl=hs=="ltr"==(is=="after")?"left":"right",Dl=is=="after"?Jl.begin:Jl.end-(/\s/.test(li.text.charAt(Jl.end-1))?2:1);return Sl(Dl,Pl)[Pl]}var xs=ra(li,z.direction);return Kt(xs,Ua||0,Si==null?Co:Si,function(Vl,hs,is,Jl){var Pl=is=="ltr",Dl=Sl(Vl,Pl?"left":"right"),ws=Sl(hs-1,Pl?"right":"left"),ju=Ua==null&&Vl==0,mu=Si==null&&hs==Co,cs=Jl==0,Xs=!xs||Jl==xs.length-1;if(ws.top-Dl.top<=3){var ee=(je?ju:mu)&&cs,te=(je?mu:ju)&&Xs,ie=ee?Ee:(Pl?Dl:ws).left,ce=te?we:(Pl?ws:Dl).right;yt(ie,Dl.top,ce-ie,Dl.bottom)}else{var Ce,xe,Oe,Ge;Pl?(Ce=je&&ju&&cs?Ee:Dl.left,xe=je?we:ks(Vl,is,"before"),Oe=je?Ee:ks(hs,is,"after"),Ge=je&&mu&&Xs?we:ws.right):(Ce=je?ks(Vl,is,"before"):Ee,xe=!je&&ju&&cs?we:Dl.right,Oe=!je&&mu&&Xs?Ee:ws.left,Ge=je?ks(hs,is,"after"):we),yt(Ce,Dl.top,xe-Ce,Dl.bottom),Dl.bottom<ws.top&&yt(Ee,Dl.bottom,null,ws.top),yt(Oe,ws.top,Ge-Oe,ws.bottom)}(!fl||cu(Dl,fl)<0)&&(fl=Dl),cu(ws,fl)<0&&(fl=ws),(!es||cu(Dl,es)<0)&&(es=Dl),cu(ws,es)<0&&(es=ws)}),{start:fl,end:es}}var sn=y.from(),tn=y.to();if(sn.line==tn.line)Bt(sn.line,sn.ch,tn.ch);else{var Qn=Qt(z,sn.line),gr=Qt(z,tn.line),Hr=jt(Qn)==jt(gr),fa=Bt(sn.line,sn.ch,Hr?Qn.text.length+1:null).end,Ra=Bt(tn.line,Hr?0:null,tn.ch).start;Hr&&(fa.top<Ra.top-2?(yt(fa.right,fa.top,null,fa.bottom),yt(Ee,Ra.top,Ra.left,Ra.bottom)):yt(fa.right,fa.top,Ra.left-fa.right,fa.bottom)),fa.bottom<Ra.top&&yt(Ee,fa.bottom,null,Ra.top)}x.appendChild(oe)}function du(a){if(a.state.focused){var y=a.display;clearInterval(y.blinker);var x=!0;y.cursorDiv.style.visibility="",a.options.cursorBlinkRate>0?y.blinker=setInterval(function(){a.hasFocus()||eu(a),y.cursorDiv.style.visibility=(x=!x)?"":"hidden"},a.options.cursorBlinkRate):a.options.cursorBlinkRate<0&&(y.cursorDiv.style.visibility="hidden")}}function Uu(a){a.state.focused||(a.display.input.focus(),Ws(a))}function Bu(a){a.state.delayingBlurEvent=!0,setTimeout(function(){a.state.delayingBlurEvent&&(a.state.delayingBlurEvent=!1,eu(a))},100)}function Ws(a,y){a.state.delayingBlurEvent&&(a.state.delayingBlurEvent=!1),a.options.readOnly!="nocursor"&&(a.state.focused||(xr(a,"focus",a,y),a.state.focused=!0,tt(a.display.wrapper,"CodeMirror-focused"),!a.curOp&&a.display.selForContextMenu!=a.doc.sel&&(a.display.input.reset(),ze&&setTimeout(function(){return a.display.input.reset(!0)},20)),a.display.input.receivedFocus()),du(a))}function eu(a,y){a.state.delayingBlurEvent||(a.state.focused&&(xr(a,"blur",a,y),a.state.focused=!1,wt(a.display.wrapper,"CodeMirror-focused")),clearInterval(a.display.blinker),setTimeout(function(){a.state.focused||(a.display.shift=!1)},150))}function El(a){for(var y=a.display,x=y.lineDiv.offsetTop,b=0;b<y.view.length;b++){var z=y.view[b],oe=a.options.lineWrapping,de=void 0,Ee=0;if(!z.hidden){if(He&&_e<8){var we=z.node.offsetTop+z.node.offsetHeight;de=we-x,x=we}else{var je=z.node.getBoundingClientRect();de=je.bottom-je.top,!oe&&z.text.firstChild&&(Ee=z.text.firstChild.getBoundingClientRect().right-je.left-1)}var yt=z.line.height-de;if((yt>.005||yt<-.005)&&(Nr(z.line,de),Mu(z.line),z.rest))for(var Bt=0;Bt<z.rest.length;Bt++)Mu(z.rest[Bt]);if(Ee>a.display.sizerWidth){var sn=Math.ceil(Ee/ls(a.display));sn>a.display.maxLineLength&&(a.display.maxLineLength=sn,a.display.maxLine=z.line,a.display.maxLineChanged=!0)}}}}function Mu(a){if(a.widgets)for(var y=0;y<a.widgets.length;++y){var x=a.widgets[y],b=x.node.parentNode;b&&(x.height=b.offsetHeight)}}function re(a,y,x){var b=x&&x.top!=null?Math.max(0,x.top):a.scroller.scrollTop;b=Math.floor(b-To(a));var z=x&&x.bottom!=null?x.bottom:b+a.wrapper.clientHeight,oe=Xa(y,b),de=Xa(y,z);if(x&&x.ensure){var Ee=x.ensure.from.line,we=x.ensure.to.line;Ee<oe?(oe=Ee,de=Xa(y,qt(Qt(y,Ee))+a.wrapper.clientHeight)):Math.min(we,y.lastLine())>=de&&(oe=Xa(y,qt(Qt(y,we))-a.wrapper.clientHeight),de=we)}return{from:oe,to:Math.max(de,oe+1)}}function ge(a,y){if(!Dn(a,"scrollCursorIntoView")){var x=a.display,b=x.sizer.getBoundingClientRect(),z=null;if(y.top+b.top<0?z=!0:y.bottom+b.top>(window.innerHeight||document.documentElement.clientHeight)&&(z=!1),z!=null&&!vt){var oe=Je("div","\u200B",null,`position: absolute;
top: `+(y.top-x.viewOffset-To(a.display))+`px;
height: `+(y.bottom-y.top+Il(a)+x.barHeight)+`px;
left: `+y.left+"px; width: "+Math.max(2,y.right-y.left)+"px;");a.display.lineSpace.appendChild(oe),oe.scrollIntoView(z),a.display.lineSpace.removeChild(oe)}}}function Me(a,y,x,b){b==null&&(b=0);var z;!a.options.lineWrapping&&y==x&&(y=y.ch?Mn(y.line,y.sticky=="before"?y.ch-1:y.ch,"after"):y,x=y.sticky=="before"?Mn(y.line,y.ch+1,"before"):y);for(var oe=0;oe<5;oe++){var de=!1,Ee=Yl(a,y),we=!x||x==y?Ee:Yl(a,x);z={left:Math.min(Ee.left,we.left),top:Math.min(Ee.top,we.top)-b,right:Math.max(Ee.left,we.left),bottom:Math.max(Ee.bottom,we.bottom)+b};var je=rt(a,z),yt=a.doc.scrollTop,Bt=a.doc.scrollLeft;if(je.scrollTop!=null&&(Pn(a,je.scrollTop),Math.abs(a.doc.scrollTop-yt)>1&&(de=!0)),je.scrollLeft!=null&&(Tn(a,je.scrollLeft),Math.abs(a.doc.scrollLeft-Bt)>1&&(de=!0)),!de)break}return z}function et(a,y){var x=rt(a,y);x.scrollTop!=null&&Pn(a,x.scrollTop),x.scrollLeft!=null&&Tn(a,x.scrollLeft)}function rt(a,y){var x=a.display,b=wr(a.display);y.top<0&&(y.top=0);var z=a.curOp&&a.curOp.scrollTop!=null?a.curOp.scrollTop:x.scroller.scrollTop,oe=Wi(a),de={};y.bottom-y.top>oe&&(y.bottom=y.top+oe);var Ee=a.doc.height+wl(x),we=y.top<b,je=y.bottom>Ee-b;if(y.top<z)de.scrollTop=we?0:y.top;else if(y.bottom>z+oe){var yt=Math.min(y.top,(je?Ee:y.bottom)-oe);yt!=z&&(de.scrollTop=yt)}var Bt=a.options.fixedGutter?0:x.gutters.offsetWidth,sn=a.curOp&&a.curOp.scrollLeft!=null?a.curOp.scrollLeft:x.scroller.scrollLeft-Bt,tn=Nl(a)-x.gutters.offsetWidth,Qn=y.right-y.left>tn;return Qn&&(y.right=y.left+tn),y.left<10?de.scrollLeft=0:y.left<sn?de.scrollLeft=Math.max(0,y.left+Bt-(Qn?0:10)):y.right>tn+sn-3&&(de.scrollLeft=y.right+(Qn?0:10)-tn),de}function Ft(a,y){y!=null&&(xn(a),a.curOp.scrollTop=(a.curOp.scrollTop==null?a.doc.scrollTop:a.curOp.scrollTop)+y)}function Tt(a){xn(a);var y=a.getCursor();a.curOp.scrollToPos={from:y,to:y,margin:a.options.cursorScrollMargin}}function Ht(a,y,x){(y!=null||x!=null)&&xn(a),y!=null&&(a.curOp.scrollLeft=y),x!=null&&(a.curOp.scrollTop=x)}function mn(a,y){xn(a),a.curOp.scrollToPos=y}function xn(a){var y=a.curOp.scrollToPos;if(y){a.curOp.scrollToPos=null;var x=_u(a,y.from),b=_u(a,y.to);Gt(a,x,b,y.margin)}}function Gt(a,y,x,b){var z=rt(a,{left:Math.min(y.left,x.left),top:Math.min(y.top,x.top)-b,right:Math.max(y.right,x.right),bottom:Math.max(y.bottom,x.bottom)+b});Ht(a,z.scrollLeft,z.scrollTop)}function Pn(a,y){Math.abs(a.doc.scrollTop-y)<2||(E||di(a,{top:y}),Rt(a,y,!0),E&&di(a),Za(a,100))}function Rt(a,y,x){y=Math.max(0,Math.min(a.display.scroller.scrollHeight-a.display.scroller.clientHeight,y)),!(a.display.scroller.scrollTop==y&&!x)&&(a.doc.scrollTop=y,a.display.scrollbars.setScrollTop(y),a.display.scroller.scrollTop!=y&&(a.display.scroller.scrollTop=y))}function Tn(a,y,x,b){y=Math.max(0,Math.min(y,a.display.scroller.scrollWidth-a.display.scroller.clientWidth)),!((x?y==a.doc.scrollLeft:Math.abs(a.doc.scrollLeft-y)<2)&&!b)&&(a.doc.scrollLeft=y,Zi(a),a.display.scroller.scrollLeft!=y&&(a.display.scroller.scrollLeft=y),a.display.scrollbars.setScrollLeft(y))}function In(a){var y=a.display,x=y.gutters.offsetWidth,b=Math.round(a.doc.height+wl(a.display));return{clientHeight:y.scroller.clientHeight,viewHeight:y.wrapper.clientHeight,scrollWidth:y.scroller.scrollWidth,clientWidth:y.scroller.clientWidth,viewWidth:y.wrapper.clientWidth,barLeft:a.options.fixedGutter?x:0,docHeight:b,scrollHeight:b+Il(a)+y.barHeight,nativeBarWidth:y.nativeBarWidth,gutterWidth:x}}var zn=function(a,y,x){this.cm=x;var b=this.vert=Je("div",[Je("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),z=this.horiz=Je("div",[Je("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");b.tabIndex=z.tabIndex=-1,a(b),a(z),rr(b,"scroll",function(){b.clientHeight&&y(b.scrollTop,"vertical")}),rr(z,"scroll",function(){z.clientWidth&&y(z.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,He&&_e<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};zn.prototype.update=function(a){var y=a.scrollWidth>a.clientWidth+1,x=a.scrollHeight>a.clientHeight+1,b=a.nativeBarWidth;if(x){this.vert.style.display="block",this.vert.style.bottom=y?b+"px":"0";var z=a.viewHeight-(y?b:0);this.vert.firstChild.style.height=Math.max(0,a.scrollHeight-a.clientHeight+z)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(y){this.horiz.style.display="block",this.horiz.style.right=x?b+"px":"0",this.horiz.style.left=a.barLeft+"px";var oe=a.viewWidth-a.barLeft-(x?b:0);this.horiz.firstChild.style.width=Math.max(0,a.scrollWidth-a.clientWidth+oe)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&a.clientHeight>0&&(b==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:x?b:0,bottom:y?b:0}},zn.prototype.setScrollLeft=function(a){this.horiz.scrollLeft!=a&&(this.horiz.scrollLeft=a),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},zn.prototype.setScrollTop=function(a){this.vert.scrollTop!=a&&(this.vert.scrollTop=a),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},zn.prototype.zeroWidthHack=function(){var a=be&&!$e?"12px":"18px";this.horiz.style.height=this.vert.style.width=a,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new me,this.disableVert=new me},zn.prototype.enableZeroWidthBar=function(a,y,x){a.style.pointerEvents="auto";function b(){var z=a.getBoundingClientRect(),oe=x=="vert"?document.elementFromPoint(z.right-1,(z.top+z.bottom)/2):document.elementFromPoint((z.right+z.left)/2,z.bottom-1);oe!=a?a.style.pointerEvents="none":y.set(1e3,b)}y.set(1e3,b)},zn.prototype.clear=function(){var a=this.horiz.parentNode;a.removeChild(this.horiz),a.removeChild(this.vert)};var Gn=function(){};Gn.prototype.update=function(){return{bottom:0,right:0}},Gn.prototype.setScrollLeft=function(){},Gn.prototype.setScrollTop=function(){},Gn.prototype.clear=function(){};function Un(a,y){y||(y=In(a));var x=a.display.barWidth,b=a.display.barHeight;_r(a,y);for(var z=0;z<4&&x!=a.display.barWidth||b!=a.display.barHeight;z++)x!=a.display.barWidth&&a.options.lineWrapping&&El(a),_r(a,In(a)),x=a.display.barWidth,b=a.display.barHeight}function _r(a,y){var x=a.display,b=x.scrollbars.update(y);x.sizer.style.paddingRight=(x.barWidth=b.right)+"px",x.sizer.style.paddingBottom=(x.barHeight=b.bottom)+"px",x.heightForcer.style.borderBottom=b.bottom+"px solid transparent",b.right&&b.bottom?(x.scrollbarFiller.style.display="block",x.scrollbarFiller.style.height=b.bottom+"px",x.scrollbarFiller.style.width=b.right+"px"):x.scrollbarFiller.style.display="",b.bottom&&a.options.coverGutterNextToScrollbar&&a.options.fixedGutter?(x.gutterFiller.style.display="block",x.gutterFiller.style.height=b.bottom+"px",x.gutterFiller.style.width=y.gutterWidth+"px"):x.gutterFiller.style.display=""}var pr={native:zn,null:Gn};function Bn(a){a.display.scrollbars&&(a.display.scrollbars.clear(),a.display.scrollbars.addClass&&wt(a.display.wrapper,a.display.scrollbars.addClass)),a.display.scrollbars=new pr[a.options.scrollbarStyle](function(y){a.display.wrapper.insertBefore(y,a.display.scrollbarFiller),rr(y,"mousedown",function(){a.state.focused&&setTimeout(function(){return a.display.input.focus()},0)}),y.setAttribute("cm-not-content","true")},function(y,x){x=="horizontal"?Tn(a,y):Pn(a,y)},a),a.display.scrollbars.addClass&&tt(a.display.wrapper,a.display.scrollbars.addClass)}var Sr=0;function ar(a){a.curOp={cm:a,viewChanged:!1,startHeight:a.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Sr},Ul(a.curOp)}function vr(a){var y=a.curOp;y&&kl(y,function(x){for(var b=0;b<x.ops.length;b++)x.ops[b].cm.curOp=null;Ma(x)})}function Ma(a){for(var y=a.ops,x=0;x<y.length;x++)da(y[x]);for(var b=0;b<y.length;b++)Zr(y[b]);for(var z=0;z<y.length;z++)oa(y[z]);for(var oe=0;oe<y.length;oe++)Ga(y[oe]);for(var de=0;de<y.length;de++)ya(y[de])}function da(a){var y=a.cm,x=y.display;Ea(y),a.updateMaxLine&&fr(y),a.mustUpdate=a.viewChanged||a.forceUpdate||a.scrollTop!=null||a.scrollToPos&&(a.scrollToPos.from.line<x.viewFrom||a.scrollToPos.to.line>=x.viewTo)||x.maxLineChanged&&y.options.lineWrapping,a.update=a.mustUpdate&&new sa(y,a.mustUpdate&&{top:a.scrollTop,ensure:a.scrollToPos},a.forceUpdate)}function Zr(a){a.updatedDisplay=a.mustUpdate&&va(a.cm,a.update)}function oa(a){var y=a.cm,x=y.display;a.updatedDisplay&&El(y),a.barMeasure=In(y),x.maxLineChanged&&!y.options.lineWrapping&&(a.adjustWidthTo=gs(y,x.maxLine,x.maxLine.text.length).left+3,y.display.sizerWidth=a.adjustWidthTo,a.barMeasure.scrollWidth=Math.max(x.scroller.clientWidth,x.sizer.offsetLeft+a.adjustWidthTo+Il(y)+y.display.barWidth),a.maxScrollLeft=Math.max(0,x.sizer.offsetLeft+a.adjustWidthTo-Nl(y))),(a.updatedDisplay||a.selectionChanged)&&(a.preparedSelection=x.input.prepareSelection())}function Ga(a){var y=a.cm;a.adjustWidthTo!=null&&(y.display.sizer.style.minWidth=a.adjustWidthTo+"px",a.maxScrollLeft<y.doc.scrollLeft&&Tn(y,Math.min(y.display.scroller.scrollLeft,a.maxScrollLeft),!0),y.display.maxLineChanged=!1);var x=a.focus&&a.focus==Ae();a.preparedSelection&&y.display.input.showSelection(a.preparedSelection,x),(a.updatedDisplay||a.startHeight!=y.doc.height)&&Un(y,a.barMeasure),a.updatedDisplay&&ei(y,a.barMeasure),a.selectionChanged&&du(y),y.state.focused&&a.updateInput&&y.display.input.reset(a.typing),x&&Uu(a.cm)}function ya(a){var y=a.cm,x=y.display,b=y.doc;if(a.updatedDisplay&&ri(y,a.update),x.wheelStartX!=null&&(a.scrollTop!=null||a.scrollLeft!=null||a.scrollToPos)&&(x.wheelStartX=x.wheelStartY=null),a.scrollTop!=null&&Rt(y,a.scrollTop,a.forceScroll),a.scrollLeft!=null&&Tn(y,a.scrollLeft,!0,!0),a.scrollToPos){var z=Me(y,Mt(b,a.scrollToPos.from),Mt(b,a.scrollToPos.to),a.scrollToPos.margin);ge(y,z)}var oe=a.maybeHiddenMarkers,de=a.maybeUnhiddenMarkers;if(oe)for(var Ee=0;Ee<oe.length;++Ee)oe[Ee].lines.length||xr(oe[Ee],"hide");if(de)for(var we=0;we<de.length;++we)de[we].lines.length&&xr(de[we],"unhide");x.wrapper.offsetHeight&&(b.scrollTop=y.display.scroller.scrollTop),a.changeObjs&&xr(y,"changes",y,a.changeObjs),a.update&&a.update.finish()}function Ur(a,y){if(a.curOp)return y();ar(a);try{return y()}finally{vr(a)}}function kr(a,y){return function(){if(a.curOp)return y.apply(a,arguments);ar(a);try{return y.apply(a,arguments)}finally{vr(a)}}}function $r(a){return function(){if(this.curOp)return a.apply(this,arguments);ar(this);try{return a.apply(this,arguments)}finally{vr(this)}}}function Yr(a){return function(){var y=this.cm;if(!y||y.curOp)return a.apply(this,arguments);ar(y);try{return a.apply(this,arguments)}finally{vr(y)}}}function Za(a,y){a.doc.highlightFrontier<a.display.viewTo&&a.state.highlight.set(y,Qe(Ta,a))}function Ta(a){var y=a.doc;if(!(y.highlightFrontier>=a.display.viewTo)){var x=+new Date+a.options.workTime,b=Or(a,y.highlightFrontier),z=[];y.iter(b.line,Math.min(y.first+y.size,a.display.viewTo+500),function(oe){if(b.line>=a.display.viewFrom){var de=oe.styles,Ee=oe.text.length>a.options.maxHighlightLength?yr(y.mode,b.state):null,we=Fr(a,oe,b,!0);Ee&&(b.state=Ee),oe.styles=we.styles;var je=oe.styleClasses,yt=we.classes;yt?oe.styleClasses=yt:je&&(oe.styleClasses=null);for(var Bt=!de||de.length!=oe.styles.length||je!=yt&&(!je||!yt||je.bgClass!=yt.bgClass||je.textClass!=yt.textClass),sn=0;!Bt&&sn<de.length;++sn)Bt=de[sn]!=oe.styles[sn];Bt&&z.push(b.line),oe.stateAfter=b.save(),b.nextLine()}else oe.text.length<=a.options.maxHighlightLength&&Ha(a,oe.text,b),oe.stateAfter=b.line%5==0?b.save():null,b.nextLine();if(+new Date>x)return Za(a,a.options.workDelay),!0}),y.highlightFrontier=b.line,y.modeFrontier=Math.max(y.modeFrontier,b.line),z.length&&Ur(a,function(){for(var oe=0;oe<z.length;oe++)Ds(a,z[oe],"text")})}}var sa=function(a,y,x){var b=a.display;this.viewport=y,this.visible=re(b,a.doc,y),this.editorIsHidden=!b.wrapper.offsetWidth,this.wrapperHeight=b.wrapper.clientHeight,this.wrapperWidth=b.wrapper.clientWidth,this.oldDisplayWidth=Nl(a),this.force=x,this.dims=Fu(a),this.events=[]};sa.prototype.signal=function(a,y){Jn(a,y)&&this.events.push(arguments)},sa.prototype.finish=function(){for(var a=0;a<this.events.length;a++)xr.apply(null,this.events[a])};function Ea(a){var y=a.display;!y.scrollbarsClipped&&y.scroller.offsetWidth&&(y.nativeBarWidth=y.scroller.offsetWidth-y.scroller.clientWidth,y.heightForcer.style.height=Il(a)+"px",y.sizer.style.marginBottom=-y.nativeBarWidth+"px",y.sizer.style.borderRightWidth=Il(a)+"px",y.scrollbarsClipped=!0)}function Wr(a){if(a.hasFocus())return null;var y=Ae();if(!y||!Ve(a.display.lineDiv,y))return null;var x={activeElt:y};if(window.getSelection){var b=window.getSelection();b.anchorNode&&b.extend&&Ve(a.display.lineDiv,b.anchorNode)&&(x.anchorNode=b.anchorNode,x.anchorOffset=b.anchorOffset,x.focusNode=b.focusNode,x.focusOffset=b.focusOffset)}return x}function ba(a){if(!(!a||!a.activeElt||a.activeElt==Ae())&&(a.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(a.activeElt.nodeName)&&a.anchorNode&&Ve(document.body,a.anchorNode)&&Ve(document.body,a.focusNode))){var y=window.getSelection(),x=document.createRange();x.setEnd(a.anchorNode,a.anchorOffset),x.collapse(!1),y.removeAllRanges(),y.addRange(x),y.extend(a.focusNode,a.focusOffset)}}function va(a,y){var x=a.display,b=a.doc;if(y.editorIsHidden)return Hs(a),!1;if(!y.force&&y.visible.from>=x.viewFrom&&y.visible.to<=x.viewTo&&(x.updateLineNumbers==null||x.updateLineNumbers>=x.viewTo)&&x.renderedView==x.view&&Du(a)==0)return!1;dn(a)&&(Hs(a),y.dims=Fu(a));var z=b.first+b.size,oe=Math.max(y.visible.from-a.options.viewportMargin,b.first),de=Math.min(z,y.visible.to+a.options.viewportMargin);x.viewFrom<oe&&oe-x.viewFrom<20&&(oe=Math.max(b.first,x.viewFrom)),x.viewTo>de&&x.viewTo-de<20&&(de=Math.min(z,x.viewTo)),ia&&(oe=_t(a.doc,oe),de=$t(a.doc,de));var Ee=oe!=x.viewFrom||de!=x.viewTo||x.lastWrapHeight!=y.wrapperHeight||x.lastWrapWidth!=y.wrapperWidth;Gu(a,oe,de),x.viewOffset=qt(Qt(a.doc,x.viewFrom)),a.display.mover.style.top=x.viewOffset+"px";var we=Du(a);if(!Ee&&we==0&&!y.force&&x.renderedView==x.view&&(x.updateLineNumbers==null||x.updateLineNumbers>=x.viewTo))return!1;var je=Wr(a);return we>4&&(x.lineDiv.style.display="none"),mi(a,x.updateLineNumbers,y.dims),we>4&&(x.lineDiv.style.display=""),x.renderedView=x.view,ba(je),ft(x.cursorDiv),ft(x.selectionDiv),x.gutters.style.height=x.sizer.style.minHeight=0,Ee&&(x.lastWrapHeight=y.wrapperHeight,x.lastWrapWidth=y.wrapperWidth,Za(a,400)),x.updateLineNumbers=null,!0}function ri(a,y){for(var x=y.viewport,b=!0;;b=!1){if(!b||!a.options.lineWrapping||y.oldDisplayWidth==Nl(a)){if(x&&x.top!=null&&(x={top:Math.min(a.doc.height+wl(a.display)-Wi(a),x.top)}),y.visible=re(a.display,a.doc,x),y.visible.from>=a.display.viewFrom&&y.visible.to<=a.display.viewTo)break}else b&&(y.visible=re(a.display,a.doc,x));if(!va(a,y))break;El(a);var z=In(a);$s(a),Un(a,z),ei(a,z),y.force=!1}y.signal(a,"update",a),(a.display.viewFrom!=a.display.reportedViewFrom||a.display.viewTo!=a.display.reportedViewTo)&&(y.signal(a,"viewportChange",a,a.display.viewFrom,a.display.viewTo),a.display.reportedViewFrom=a.display.viewFrom,a.display.reportedViewTo=a.display.viewTo)}function di(a,y){var x=new sa(a,y);if(va(a,x)){El(a),ri(a,x);var b=In(a);$s(a),Un(a,b),ei(a,b),x.finish()}}function mi(a,y,x){var b=a.display,z=a.options.lineNumbers,oe=b.lineDiv,de=oe.firstChild;function Ee(Qn){var gr=Qn.nextSibling;return ze&&be&&a.display.currentWheelTarget==Qn?Qn.style.display="none":Qn.parentNode.removeChild(Qn),gr}for(var we=b.view,je=b.viewFrom,yt=0;yt<we.length;yt++){var Bt=we[yt];if(!Bt.hidden)if(!Bt.node||Bt.node.parentNode!=oe){var sn=Gr(a,Bt,je,x);oe.insertBefore(sn,de)}else{for(;de!=Bt.node;)de=Ee(de);var tn=z&&y!=null&&y<=je&&Bt.lineNumber;Bt.changes&&(pt(Bt.changes,"gutter")>-1&&(tn=!1),Ts(a,Bt,je,x)),tn&&(ft(Bt.lineNumber),Bt.lineNumber.appendChild(document.createTextNode(so(a.options,je)))),de=Bt.node.nextSibling}je+=Bt.size}for(;de;)de=Ee(de)}function vi(a){var y=a.gutters.offsetWidth;a.sizer.style.marginLeft=y+"px"}function ei(a,y){a.display.sizer.style.minHeight=y.docHeight+"px",a.display.heightForcer.style.top=y.docHeight+"px",a.display.gutters.style.height=y.docHeight+a.display.barHeight+Il(a)+"px"}function Zi(a){var y=a.display,x=y.view;if(!(!y.alignWidgets&&(!y.gutters.firstChild||!a.options.fixedGutter))){for(var b=Nu(y)-y.scroller.scrollLeft+a.doc.scrollLeft,z=y.gutters.offsetWidth,oe=b+"px",de=0;de<x.length;de++)if(!x[de].hidden){a.options.fixedGutter&&(x[de].gutter&&(x[de].gutter.style.left=oe),x[de].gutterBackground&&(x[de].gutterBackground.style.left=oe));var Ee=x[de].alignable;if(Ee)for(var we=0;we<Ee.length;we++)Ee[we].style.left=oe}a.options.fixedGutter&&(y.gutters.style.left=b+z+"px")}}function dn(a){if(!a.options.lineNumbers)return!1;var y=a.doc,x=so(a.options,y.first+y.size-1),b=a.display;if(x.length!=b.lineNumChars){var z=b.measure.appendChild(Je("div",[Je("div",x)],"CodeMirror-linenumber CodeMirror-gutter-elt")),oe=z.firstChild.offsetWidth,de=z.offsetWidth-oe;return b.lineGutter.style.width="",b.lineNumInnerWidth=Math.max(oe,b.lineGutter.offsetWidth-de)+1,b.lineNumWidth=b.lineNumInnerWidth+de,b.lineNumChars=b.lineNumInnerWidth?x.length:-1,b.lineGutter.style.width=b.lineNumWidth+"px",vi(a.display),!0}return!1}function Oi(a,y){for(var x=[],b=!1,z=0;z<a.length;z++){var oe=a[z],de=null;if(typeof oe!="string"&&(de=oe.style,oe=oe.className),oe=="CodeMirror-linenumbers")if(y)b=!0;else continue;x.push({className:oe,style:de})}return y&&!b&&x.push({className:"CodeMirror-linenumbers",style:null}),x}function ao(a){var y=a.gutters,x=a.gutterSpecs;ft(y),a.lineGutter=null;for(var b=0;b<x.length;++b){var z=x[b],oe=z.className,de=z.style,Ee=y.appendChild(Je("div",null,"CodeMirror-gutter "+oe));de&&(Ee.style.cssText=de),oe=="CodeMirror-linenumbers"&&(a.lineGutter=Ee,Ee.style.width=(a.lineNumWidth||1)+"px")}y.style.display=x.length?"":"none",vi(a)}function xi(a){ao(a.display),Ol(a),Zi(a)}function io(a,y,x,b){var z=this;this.input=x,z.scrollbarFiller=Je("div",null,"CodeMirror-scrollbar-filler"),z.scrollbarFiller.setAttribute("cm-not-content","true"),z.gutterFiller=Je("div",null,"CodeMirror-gutter-filler"),z.gutterFiller.setAttribute("cm-not-content","true"),z.lineDiv=ut("div",null,"CodeMirror-code"),z.selectionDiv=Je("div",null,null,"position: relative; z-index: 1"),z.cursorDiv=Je("div",null,"CodeMirror-cursors"),z.measure=Je("div",null,"CodeMirror-measure"),z.lineMeasure=Je("div",null,"CodeMirror-measure"),z.lineSpace=ut("div",[z.measure,z.lineMeasure,z.selectionDiv,z.cursorDiv,z.lineDiv],null,"position: relative; outline: none");var oe=ut("div",[z.lineSpace],"CodeMirror-lines");z.mover=Je("div",[oe],null,"position: relative"),z.sizer=Je("div",[z.mover],"CodeMirror-sizer"),z.sizerWidth=null,z.heightForcer=Je("div",null,null,"position: absolute; height: "+bt+"px; width: 1px;"),z.gutters=Je("div",null,"CodeMirror-gutters"),z.lineGutter=null,z.scroller=Je("div",[z.sizer,z.heightForcer,z.gutters],"CodeMirror-scroll"),z.scroller.setAttribute("tabIndex","-1"),z.wrapper=Je("div",[z.scrollbarFiller,z.gutterFiller,z.scroller],"CodeMirror"),He&&_e<8&&(z.gutters.style.zIndex=-1,z.scroller.style.paddingRight=0),!ze&&!(E&&Be)&&(z.scroller.draggable=!0),a&&(a.appendChild?a.appendChild(z.wrapper):a(z.wrapper)),z.viewFrom=z.viewTo=y.first,z.reportedViewFrom=z.reportedViewTo=y.first,z.view=[],z.renderedView=null,z.externalMeasured=null,z.viewOffset=0,z.lastWrapHeight=z.lastWrapWidth=0,z.updateLineNumbers=null,z.nativeBarWidth=z.barHeight=z.barWidth=0,z.scrollbarsClipped=!1,z.lineNumWidth=z.lineNumInnerWidth=z.lineNumChars=null,z.alignWidgets=!1,z.cachedCharWidth=z.cachedTextHeight=z.cachedPaddingH=null,z.maxLine=null,z.maxLineLength=0,z.maxLineChanged=!1,z.wheelDX=z.wheelDY=z.wheelStartX=z.wheelStartY=null,z.shift=!1,z.selForContextMenu=null,z.activeTouch=null,z.gutterSpecs=Oi(b.gutters,b.lineNumbers),ao(z),x.init(z)}var gi=0,oo=null;He?oo=-.53:E?oo=15:Fe?oo=-.7:Xe&&(oo=-1/3);function Vi(a){var y=a.wheelDeltaX,x=a.wheelDeltaY;return y==null&&a.detail&&a.axis==a.HORIZONTAL_AXIS&&(y=a.detail),x==null&&a.detail&&a.axis==a.VERTICAL_AXIS?x=a.detail:x==null&&(x=a.wheelDelta),{x:y,y:x}}function zi(a){var y=Vi(a);return y.x*=oo,y.y*=oo,y}function fo(a,y){var x=Vi(y),b=x.x,z=x.y,oe=a.display,de=oe.scroller,Ee=de.scrollWidth>de.clientWidth,we=de.scrollHeight>de.clientHeight;if(b&&Ee||z&&we){if(z&&be&&ze){e:for(var je=y.target,yt=oe.view;je!=de;je=je.parentNode)for(var Bt=0;Bt<yt.length;Bt++)if(yt[Bt].node==je){a.display.currentWheelTarget=je;break e}}if(b&&!E&&!We&&oo!=null){z&&we&&Pn(a,Math.max(0,de.scrollTop+z*oo)),Tn(a,Math.max(0,de.scrollLeft+b*oo)),(!z||z&&we)&&ha(y),oe.wheelStartX=null;return}if(z&&oo!=null){var sn=z*oo,tn=a.doc.scrollTop,Qn=tn+oe.wrapper.clientHeight;sn<0?tn=Math.max(0,tn+sn-50):Qn=Math.min(a.doc.height,Qn+sn+50),di(a,{top:tn,bottom:Qn})}gi<20&&(oe.wheelStartX==null?(oe.wheelStartX=de.scrollLeft,oe.wheelStartY=de.scrollTop,oe.wheelDX=b,oe.wheelDY=z,setTimeout(function(){if(oe.wheelStartX!=null){var gr=de.scrollLeft-oe.wheelStartX,Hr=de.scrollTop-oe.wheelStartY,fa=Hr&&oe.wheelDY&&Hr/oe.wheelDY||gr&&oe.wheelDX&&gr/oe.wheelDX;oe.wheelStartX=oe.wheelStartY=null,fa&&(oo=(oo*gi+fa)/(gi+1),++gi)}},200)):(oe.wheelDX+=b,oe.wheelDY+=z))}}var Ca=function(a,y){this.ranges=a,this.primIndex=y};Ca.prototype.primary=function(){return this.ranges[this.primIndex]},Ca.prototype.equals=function(a){if(a==this)return!0;if(a.primIndex!=this.primIndex||a.ranges.length!=this.ranges.length)return!1;for(var y=0;y<this.ranges.length;y++){var x=this.ranges[y],b=a.ranges[y];if(!jn(x.anchor,b.anchor)||!jn(x.head,b.head))return!1}return!0},Ca.prototype.deepCopy=function(){for(var a=[],y=0;y<this.ranges.length;y++)a[y]=new ka(tl(this.ranges[y].anchor),tl(this.ranges[y].head));return new Ca(a,this.primIndex)},Ca.prototype.somethingSelected=function(){for(var a=0;a<this.ranges.length;a++)if(!this.ranges[a].empty())return!0;return!1},Ca.prototype.contains=function(a,y){y||(y=a);for(var x=0;x<this.ranges.length;x++){var b=this.ranges[x];if(Rr(y,b.from())>=0&&Rr(a,b.to())<=0)return x}return-1};var ka=function(a,y){this.anchor=a,this.head=y};ka.prototype.from=function(){return Ct(this.anchor,this.head)},ka.prototype.to=function(){return Zo(this.anchor,this.head)},ka.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Xi(a,y,x){var b=a&&a.options.selectionsMayTouch,z=y[x];y.sort(function(sn,tn){return Rr(sn.from(),tn.from())}),x=pt(y,z);for(var oe=1;oe<y.length;oe++){var de=y[oe],Ee=y[oe-1],we=Rr(Ee.to(),de.from());if(b&&!de.empty()?we>0:we>=0){var je=Ct(Ee.from(),de.from()),yt=Zo(Ee.to(),de.to()),Bt=Ee.empty()?de.from()==de.head:Ee.from()==Ee.head;oe<=x&&--x,y.splice(--oe,2,new ka(Bt?yt:je,Bt?je:yt))}}return new Ca(y,x)}function vo(a,y){return new Ca([new ka(a,y||a)],0)}function jo(a){return a.text?Mn(a.from.line+a.text.length-1,dt(a.text).length+(a.text.length==1?a.from.ch:0)):a.to}function to(a,y){if(Rr(a,y.from)<0)return a;if(Rr(a,y.to)<=0)return jo(y);var x=a.line+y.text.length-(y.to.line-y.from.line)-1,b=a.ch;return a.line==y.to.line&&(b+=jo(y).ch-y.to.ch),Mn(x,b)}function bl(a,y){for(var x=[],b=0;b<a.sel.ranges.length;b++){var z=a.sel.ranges[b];x.push(new ka(to(z.anchor,y),to(z.head,y)))}return Xi(a.cm,x,a.sel.primIndex)}function Ji(a,y,x){return a.line==y.line?Mn(x.line,a.ch-y.ch+x.ch):Mn(x.line+(a.line-y.line),a.ch)}function lo(a,y,x){for(var b=[],z=Mn(a.first,0),oe=z,de=0;de<y.length;de++){var Ee=y[de],we=Ji(Ee.from,z,oe),je=Ji(jo(Ee),z,oe);if(z=Ee.to,oe=je,x=="around"){var yt=a.sel.ranges[de],Bt=Rr(yt.head,yt.anchor)<0;b[de]=new ka(Bt?je:we,Bt?we:je)}else b[de]=new ka(we,we)}return new Ca(b,a.sel.primIndex)}function go(a){a.doc.mode=Jt(a.options,a.doc.modeOption),Lr(a)}function Lr(a){a.doc.iter(function(y){y.stateAfter&&(y.stateAfter=null),y.styles&&(y.styles=null)}),a.doc.modeFrontier=a.doc.highlightFrontier=a.doc.first,Za(a,100),a.state.modeGen++,a.curOp&&Ol(a)}function yi(a,y){return y.from.ch==0&&y.to.ch==0&&dt(y.text)==""&&(!a.cm||a.cm.options.wholeLineUpdateBefore)}function Kl(a,y,x,b){function z(Ra){return x?x[Ra]:null}function oe(Ra,ua,Ua){$n(Ra,ua,Ua,b),Go(Ra,"change",Ra,y)}function de(Ra,ua){for(var Ua=[],Si=Ra;Si<ua;++Si)Ua.push(new cr(je[Si],z(Si),b));return Ua}var Ee=y.from,we=y.to,je=y.text,yt=Qt(a,Ee.line),Bt=Qt(a,we.line),sn=dt(je),tn=z(je.length-1),Qn=we.line-Ee.line;if(y.full)a.insert(0,de(0,je.length)),a.remove(je.length,a.size-je.length);else if(yi(a,y)){var gr=de(0,je.length-1);oe(Bt,Bt.text,tn),Qn&&a.remove(Ee.line,Qn),gr.length&&a.insert(Ee.line,gr)}else if(yt==Bt)if(je.length==1)oe(yt,yt.text.slice(0,Ee.ch)+sn+yt.text.slice(we.ch),tn);else{var Hr=de(1,je.length-1);Hr.push(new cr(sn+yt.text.slice(we.ch),tn,b)),oe(yt,yt.text.slice(0,Ee.ch)+je[0],z(0)),a.insert(Ee.line+1,Hr)}else if(je.length==1)oe(yt,yt.text.slice(0,Ee.ch)+je[0]+Bt.text.slice(we.ch),z(0)),a.remove(Ee.line+1,Qn);else{oe(yt,yt.text.slice(0,Ee.ch)+je[0],z(0)),oe(Bt,sn+Bt.text.slice(we.ch),tn);var fa=de(1,je.length-1);Qn>1&&a.remove(Ee.line+1,Qn-1),a.insert(Ee.line+1,fa)}Go(a,"change",a,y)}function Ka(a,y,x){function b(z,oe,de){if(z.linked)for(var Ee=0;Ee<z.linked.length;++Ee){var we=z.linked[Ee];if(we.doc!=oe){var je=de&&we.sharedHist;x&&!je||(y(we.doc,je),b(we.doc,z,je))}}}b(a,null,!0)}function Aa(a,y){if(y.cm)throw new Error("This document is already in use.");a.doc=y,y.cm=a,Su(a),go(a),no(a),a.options.lineWrapping||fr(a),a.options.mode=y.modeOption,Ol(a)}function no(a){(a.doc.direction=="rtl"?tt:wt)(a.display.lineDiv,"CodeMirror-rtl")}function xa(a){Ur(a,function(){no(a),Ol(a)})}function Va(a){this.done=[],this.undone=[],this.undoDepth=1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=a||1}function ko(a,y){var x={from:tl(y.from),to:jo(y),text:_n(a,y.from,y.to)};return ke(a,x,y.from.line,y.to.line+1),Ka(a,function(b){return ke(b,x,y.from.line,y.to.line+1)},!0),x}function Jo(a){for(;a.length;){var y=dt(a);if(y.ranges)a.pop();else break}}function Cl(a,y){if(y)return Jo(a.done),dt(a.done);if(a.done.length&&!dt(a.done).ranges)return dt(a.done);if(a.done.length>1&&!a.done[a.done.length-2].ranges)return a.done.pop(),dt(a.done)}function Ml(a,y,x,b){var z=a.history;z.undone.length=0;var oe=+new Date,de,Ee;if((z.lastOp==b||z.lastOrigin==y.origin&&y.origin&&(y.origin.charAt(0)=="+"&&z.lastModTime>oe-(a.cm?a.cm.options.historyEventDelay:500)||y.origin.charAt(0)=="*"))&&(de=Cl(z,z.lastOp==b)))Ee=dt(de.changes),Rr(y.from,y.to)==0&&Rr(y.from,Ee.to)==0?Ee.to=jo(y):de.changes.push(ko(a,y));else{var we=dt(z.done);for((!we||!we.ranges)&&ue(a.sel,z.done),de={changes:[ko(a,y)],generation:z.generation},z.done.push(de);z.done.length>z.undoDepth;)z.done.shift(),z.done[0].ranges||z.done.shift()}z.done.push(x),z.generation=++z.maxGeneration,z.lastModTime=z.lastSelTime=oe,z.lastOp=z.lastSelOp=b,z.lastOrigin=z.lastSelOrigin=y.origin,Ee||xr(a,"historyAdded")}function Ql(a,y,x,b){var z=y.charAt(0);return z=="*"||z=="+"&&x.ranges.length==b.ranges.length&&x.somethingSelected()==b.somethingSelected()&&new Date-a.history.lastSelTime<=(a.cm?a.cm.options.historyEventDelay:500)}function Bs(a,y,x,b){var z=a.history,oe=b&&b.origin;x==z.lastSelOp||oe&&z.lastSelOrigin==oe&&(z.lastModTime==z.lastSelTime&&z.lastOrigin==oe||Ql(a,oe,dt(z.done),y))?z.done[z.done.length-1]=y:ue(y,z.done),z.lastSelTime=+new Date,z.lastSelOrigin=oe,z.lastSelOp=x,b&&b.clearRedo!==!1&&Jo(z.undone)}function ue(a,y){var x=dt(y);x&&x.ranges&&x.equals(a)||y.push(a)}function ke(a,y,x,b){var z=y["spans_"+a.id],oe=0;a.iter(Math.max(a.first,x),Math.min(a.first+a.size,b),function(de){de.markedSpans&&((z||(z=y["spans_"+a.id]={}))[oe]=de.markedSpans),++oe})}function Ze(a){if(!a)return null;for(var y,x=0;x<a.length;++x)a[x].marker.explicitlyCleared?y||(y=a.slice(0,x)):y&&y.push(a[x]);return y?y.length?y:null:a}function Vt(a,y){var x=y["spans_"+a.id];if(!x)return null;for(var b=[],z=0;z<y.text.length;++z)b.push(Ze(x[z]));return b}function Nn(a,y){var x=Vt(a,y),b=oi(a,y);if(!x)return b;if(!b)return x;for(var z=0;z<x.length;++z){var oe=x[z],de=b[z];if(oe&&de)e:for(var Ee=0;Ee<de.length;++Ee){for(var we=de[Ee],je=0;je<oe.length;++je)if(oe[je].marker==we.marker)continue e;oe.push(we)}else de&&(x[z]=de)}return x}function Cr(a,y,x){for(var b=[],z=0;z<a.length;++z){var oe=a[z];if(oe.ranges){b.push(x?Ca.prototype.deepCopy.call(oe):oe);continue}var de=oe.changes,Ee=[];b.push({changes:Ee});for(var we=0;we<de.length;++we){var je=de[we],yt=void 0;if(Ee.push({from:je.from,to:je.to,text:je.text}),y)for(var Bt in je)(yt=Bt.match(/^spans_(\d+)$/))&&pt(y,Number(yt[1]))>-1&&(dt(Ee)[Bt]=je[Bt],delete je[Bt])}}return b}function kn(a,y,x,b){if(b){var z=a.anchor;if(x){var oe=Rr(y,z)<0;oe!=Rr(x,z)<0?(z=y,y=x):oe!=Rr(y,x)<0&&(y=x)}return new ka(z,y)}else return new ka(x||y,y)}function gn(a,y,x,b,z){z==null&&(z=a.cm&&(a.cm.display.shift||a.extend)),un(a,new Ca([kn(a.sel.primary(),y,x,z)],0),b)}function Yt(a,y,x){for(var b=[],z=a.cm&&(a.cm.display.shift||a.extend),oe=0;oe<a.sel.ranges.length;oe++)b[oe]=kn(a.sel.ranges[oe],y[oe],null,z);var de=Xi(a.cm,b,a.sel.primIndex);un(a,de,x)}function Ln(a,y,x,b){var z=a.sel.ranges.slice(0);z[y]=x,un(a,Xi(a.cm,z,a.sel.primIndex),b)}function Ia(a,y,x,b){un(a,vo(y,x),b)}function ln(a,y,x){var b={ranges:y.ranges,update:function(z){this.ranges=[];for(var oe=0;oe<z.length;oe++)this.ranges[oe]=new ka(Mt(a,z[oe].anchor),Mt(a,z[oe].head))},origin:x&&x.origin};return xr(a,"beforeSelectionChange",a,b),a.cm&&xr(a.cm,"beforeSelectionChange",a.cm,b),b.ranges!=y.ranges?Xi(a.cm,b.ranges,b.ranges.length-1):y}function Wt(a,y,x){var b=a.history.done,z=dt(b);z&&z.ranges?(b[b.length-1]=y,er(a,y,x)):un(a,y,x)}function un(a,y,x){er(a,y,x),Bs(a,a.sel,a.cm?a.cm.curOp.id:NaN,x)}function er(a,y,x){(Jn(a,"beforeSelectionChange")||a.cm&&Jn(a.cm,"beforeSelectionChange"))&&(y=ln(a,y,x));var b=x&&x.bias||(Rr(y.primary().head,a.sel.primary().head)<0?-1:1);Xn(a,qn(a,y,b,!0)),!(x&&x.scroll===!1)&&a.cm&&Tt(a.cm)}function Xn(a,y){y.equals(a.sel)||(a.sel=y,a.cm&&(a.cm.curOp.updateInput=1,a.cm.curOp.selectionChanged=!0,pa(a.cm)),Go(a,"cursorActivity",a))}function Zn(a){Xn(a,qn(a,a.sel,null,!1))}function qn(a,y,x,b){for(var z,oe=0;oe<y.ranges.length;oe++){var de=y.ranges[oe],Ee=y.ranges.length==a.sel.ranges.length&&a.sel.ranges[oe],we=lr(a,de.anchor,Ee&&Ee.anchor,x,b),je=lr(a,de.head,Ee&&Ee.head,x,b);(z||we!=de.anchor||je!=de.head)&&(z||(z=y.ranges.slice(0,oe)),z[oe]=new ka(we,je))}return z?Xi(a.cm,z,y.primIndex):y}function yn(a,y,x,b,z){var oe=Qt(a,y.line);if(oe.markedSpans)for(var de=0;de<oe.markedSpans.length;++de){var Ee=oe.markedSpans[de],we=Ee.marker,je="selectLeft"in we?!we.selectLeft:we.inclusiveLeft,yt="selectRight"in we?!we.selectRight:we.inclusiveRight;if((Ee.from==null||(je?Ee.from<=y.ch:Ee.from<y.ch))&&(Ee.to==null||(yt?Ee.to>=y.ch:Ee.to>y.ch))){if(z&&(xr(we,"beforeCursorEnter"),we.explicitlyCleared))if(oe.markedSpans){--de;continue}else break;if(!we.atomic)continue;if(x){var Bt=we.find(b<0?1:-1),sn=void 0;if((b<0?yt:je)&&(Bt=Dr(a,Bt,-b,Bt&&Bt.line==y.line?oe:null)),Bt&&Bt.line==y.line&&(sn=Rr(Bt,x))&&(b<0?sn<0:sn>0))return yn(a,Bt,y,b,z)}var tn=we.find(b<0?-1:1);return(b<0?je:yt)&&(tn=Dr(a,tn,b,tn.line==y.line?oe:null)),tn?yn(a,tn,y,b,z):null}}return y}function lr(a,y,x,b,z){var oe=b||1,de=yn(a,y,x,oe,z)||!z&&yn(a,y,x,oe,!0)||yn(a,y,x,-oe,z)||!z&&yn(a,y,x,-oe,!0);return de||(a.cantEdit=!0,Mn(a.first,0))}function Dr(a,y,x,b){return x<0&&y.ch==0?y.line>a.first?Mt(a,Mn(y.line-1)):null:x>0&&y.ch==(b||Qt(a,y.line)).text.length?y.line<a.first+a.size-1?Mn(y.line+1,0):null:new Mn(y.line,y.ch+x)}function dr(a){a.setSelection(Mn(a.firstLine(),0),Mn(a.lastLine()),Le)}function ki(a,y,x){var b={canceled:!1,from:y.from,to:y.to,text:y.text,origin:y.origin,cancel:function(){return b.canceled=!0}};return x&&(b.update=function(z,oe,de,Ee){z&&(b.from=Mt(a,z)),oe&&(b.to=Mt(a,oe)),de&&(b.text=de),Ee!==void 0&&(b.origin=Ee)}),xr(a,"beforeChange",a,b),a.cm&&xr(a.cm,"beforeChange",a.cm,b),b.canceled?(a.cm&&(a.cm.curOp.updateInput=2),null):{from:b.from,to:b.to,text:b.text,origin:b.origin}}function Gi(a,y,x){if(a.cm){if(!a.cm.curOp)return kr(a.cm,Gi)(a,y,x);if(a.cm.state.suppressEdits)return}if(!((Jn(a,"beforeChange")||a.cm&&Jn(a.cm,"beforeChange"))&&(y=ki(a,y,!0),!y))){var b=Sa&&!x&&Bo(a,y.from,y.to);if(b)for(var z=b.length-1;z>=0;--z)Ui(a,{from:b[z].from,to:b[z].to,text:z?[""]:y.text,origin:y.origin});else Ui(a,y)}}function Ui(a,y){if(!(y.text.length==1&&y.text[0]==""&&Rr(y.from,y.to)==0)){var x=bl(a,y);Ml(a,y,x,a.cm?a.cm.curOp.id:NaN),Mi(a,y,x,oi(a,y));var b=[];Ka(a,function(z,oe){!oe&&pt(b,z.history)==-1&&(Io(z.history,y),b.push(z.history)),Mi(z,y,null,oi(z,y))})}}function _o(a,y,x){var b=a.cm&&a.cm.state.suppressEdits;if(!(b&&!x)){for(var z=a.history,oe,de=a.sel,Ee=y=="undo"?z.done:z.undone,we=y=="undo"?z.undone:z.done,je=0;je<Ee.length&&(oe=Ee[je],!(x?oe.ranges&&!oe.equals(a.sel):!oe.ranges));je++);if(je!=Ee.length){for(z.lastOrigin=z.lastSelOrigin=null;;)if(oe=Ee.pop(),oe.ranges){if(ue(oe,we),x&&!oe.equals(a.sel)){un(a,oe,{clearRedo:!1});return}de=oe}else if(b){Ee.push(oe);return}else break;var yt=[];ue(de,we),we.push({changes:yt,generation:z.generation}),z.generation=oe.generation||++z.maxGeneration;for(var Bt=Jn(a,"beforeChange")||a.cm&&Jn(a.cm,"beforeChange"),sn=function(gr){var Hr=oe.changes[gr];if(Hr.origin=y,Bt&&!ki(a,Hr,!1))return Ee.length=0,{};yt.push(ko(a,Hr));var fa=gr?bl(a,Hr):dt(Ee);Mi(a,Hr,fa,Nn(a,Hr)),!gr&&a.cm&&a.cm.scrollIntoView({from:Hr.from,to:jo(Hr)});var Ra=[];Ka(a,function(ua,Ua){!Ua&&pt(Ra,ua.history)==-1&&(Io(ua.history,Hr),Ra.push(ua.history)),Mi(ua,Hr,null,Nn(ua,Hr))})},tn=oe.changes.length-1;tn>=0;--tn){var Qn=sn(tn);if(Qn)return Qn.v}}}}function Tr(a,y){if(y!=0&&(a.first+=y,a.sel=new Ca(Lt(a.sel.ranges,function(z){return new ka(Mn(z.anchor.line+y,z.anchor.ch),Mn(z.head.line+y,z.head.ch))}),a.sel.primIndex),a.cm)){Ol(a.cm,a.first,a.first-y,y);for(var x=a.cm.display,b=x.viewFrom;b<x.viewTo;b++)Ds(a.cm,b,"gutter")}}function Mi(a,y,x,b){if(a.cm&&!a.cm.curOp)return kr(a.cm,Mi)(a,y,x,b);if(y.to.line<a.first){Tr(a,y.text.length-1-(y.to.line-y.from.line));return}if(!(y.from.line>a.lastLine())){if(y.from.line<a.first){var z=y.text.length-1-(a.first-y.from.line);Tr(a,z),y={from:Mn(a.first,0),to:Mn(y.to.line+z,y.to.ch),text:[dt(y.text)],origin:y.origin}}var oe=a.lastLine();y.to.line>oe&&(y={from:y.from,to:Mn(oe,Qt(a,oe).text.length),text:[y.text[0]],origin:y.origin}),y.removed=_n(a,y.from,y.to),x||(x=bl(a,y)),a.cm?eo(a.cm,y,b):Kl(a,y,b),er(a,x,Le),a.cantEdit&&lr(a,Mn(a.firstLine(),0))&&(a.cantEdit=!1)}}function eo(a,y,x){var b=a.doc,z=a.display,oe=y.from,de=y.to,Ee=!1,we=oe.line;a.options.lineWrapping||(we=qr(jt(Qt(b,oe.line))),b.iter(we,de.line+1,function(tn){if(tn==z.maxLine)return Ee=!0,!0})),b.sel.contains(y.from,y.to)>-1&&pa(a),Kl(b,y,x,Ou(a)),a.options.lineWrapping||(b.iter(we,oe.line+y.text.length,function(tn){var Qn=An(tn);Qn>z.maxLineLength&&(z.maxLine=tn,z.maxLineLength=Qn,z.maxLineChanged=!0,Ee=!1)}),Ee&&(a.curOp.updateMaxLine=!0)),ui(b,oe.line),Za(a,400);var je=y.text.length-(de.line-oe.line)-1;y.full?Ol(a):oe.line==de.line&&y.text.length==1&&!yi(a.doc,y)?Ds(a,oe.line,"text"):Ol(a,oe.line,de.line+1,je);var yt=Jn(a,"changes"),Bt=Jn(a,"change");if(Bt||yt){var sn={from:oe,to:de,text:y.text,removed:y.removed,origin:y.origin};Bt&&Go(a,"change",a,sn),yt&&(a.curOp.changeObjs||(a.curOp.changeObjs=[])).push(sn)}a.display.selForContextMenu=null}function tr(a,y,x,b,z){var oe;b||(b=x),Rr(b,x)<0&&(oe=[b,x],x=oe[0],b=oe[1]),typeof y=="string"&&(y=a.splitLines(y)),Gi(a,{from:x,to:b,text:y,origin:z})}function yo(a,y,x,b){x<a.line?a.line+=b:y<a.line&&(a.line=y,a.ch=0)}function Lo(a,y,x,b){for(var z=0;z<a.length;++z){var oe=a[z],de=!0;if(oe.ranges){oe.copied||(oe=a[z]=oe.deepCopy(),oe.copied=!0);for(var Ee=0;Ee<oe.ranges.length;Ee++)yo(oe.ranges[Ee].anchor,y,x,b),yo(oe.ranges[Ee].head,y,x,b);continue}for(var we=0;we<oe.changes.length;++we){var je=oe.changes[we];if(x<je.from.line)je.from=Mn(je.from.line+b,je.from.ch),je.to=Mn(je.to.line+b,je.to.ch);else if(y<=je.to.line){de=!1;break}}de||(a.splice(0,z+1),z=0)}}function Io(a,y){var x=y.from.line,b=y.to.line,z=y.text.length-(b-x)-1;Lo(a.done,x,b,z),Lo(a.undone,x,b,z)}function nr(a,y,x,b){var z=y,oe=y;return typeof y=="number"?oe=Qt(a,rn(a,y)):z=qr(y),z==null?null:(b(oe,z)&&a.cm&&Ds(a.cm,z,x),oe)}function fi(a){this.lines=a,this.parent=null;for(var y=0,x=0;x<a.length;++x)a[x].parent=this,y+=a[x].height;this.height=y}fi.prototype={chunkSize:function(){return this.lines.length},removeInner:function(a,y){for(var x=a,b=a+y;x<b;++x){var z=this.lines[x];this.height-=z.height,Pa(z),Go(z,"delete")}this.lines.splice(a,y)},collapse:function(a){a.push.apply(a,this.lines)},insertInner:function(a,y,x){this.height+=x,this.lines=this.lines.slice(0,a).concat(y).concat(this.lines.slice(a));for(var b=0;b<y.length;++b)y[b].parent=this},iterN:function(a,y,x){for(var b=a+y;a<b;++a)if(x(this.lines[a]))return!0}};function ul(a){this.children=a;for(var y=0,x=0,b=0;b<a.length;++b){var z=a[b];y+=z.chunkSize(),x+=z.height,z.parent=this}this.size=y,this.height=x,this.parent=null}ul.prototype={chunkSize:function(){return this.size},removeInner:function(a,y){this.size-=y;for(var x=0;x<this.children.length;++x){var b=this.children[x],z=b.chunkSize();if(a<z){var oe=Math.min(y,z-a),de=b.height;if(b.removeInner(a,oe),this.height-=de-b.height,z==oe&&(this.children.splice(x--,1),b.parent=null),(y-=oe)==0)break;a=0}else a-=z}if(this.size-y<25&&(this.children.length>1||!(this.children[0]instanceof fi))){var Ee=[];this.collapse(Ee),this.children=[new fi(Ee)],this.children[0].parent=this}},collapse:function(a){for(var y=0;y<this.children.length;++y)this.children[y].collapse(a)},insertInner:function(a,y,x){this.size+=y.length,this.height+=x;for(var b=0;b<this.children.length;++b){var z=this.children[b],oe=z.chunkSize();if(a<=oe){if(z.insertInner(a,y,x),z.lines&&z.lines.length>50){for(var de=z.lines.length%25+25,Ee=de;Ee<z.lines.length;){var we=new fi(z.lines.slice(Ee,Ee+=25));z.height-=we.height,this.children.splice(++b,0,we),we.parent=this}z.lines=z.lines.slice(0,de),this.maybeSpill()}break}a-=oe}},maybeSpill:function(){if(!(this.children.length<=10)){var a=this;do{var y=a.children.splice(a.children.length-5,5),x=new ul(y);if(a.parent){a.size-=x.size,a.height-=x.height;var z=pt(a.parent.children,a);a.parent.children.splice(z+1,0,x)}else{var b=new ul(a.children);b.parent=a,a.children=[b,x],a=b}x.parent=a.parent}while(a.children.length>10);a.parent.maybeSpill()}},iterN:function(a,y,x){for(var b=0;b<this.children.length;++b){var z=this.children[b],oe=z.chunkSize();if(a<oe){var de=Math.min(y,oe-a);if(z.iterN(a,de,x))return!0;if((y-=de)==0)break;a=0}else a-=oe}}};var No=function(a,y,x){if(x)for(var b in x)x.hasOwnProperty(b)&&(this[b]=x[b]);this.doc=a,this.node=y};No.prototype.clear=function(){var a=this.doc.cm,y=this.line.widgets,x=this.line,b=qr(x);if(!(b==null||!y)){for(var z=0;z<y.length;++z)y[z]==this&&y.splice(z--,1);y.length||(x.widgets=null);var oe=Mo(this);Nr(x,Math.max(0,x.height-oe)),a&&(Ur(a,function(){pi(a,x,-oe),Ds(a,b,"widget")}),Go(a,"lineWidgetCleared",a,this,b))}},No.prototype.changed=function(){var a=this,y=this.height,x=this.doc.cm,b=this.line;this.height=null;var z=Mo(this)-y;z&&(Ut(this.doc,b)||Nr(b,b.height+z),x&&Ur(x,function(){x.curOp.forceUpdate=!0,pi(x,b,z),Go(x,"lineWidgetChanged",x,a,qr(b))}))},Vn(No);function pi(a,y,x){qt(y)<(a.curOp&&a.curOp.scrollTop||a.doc.scrollTop)&&Ft(a,x)}function xl(a,y,x,b){var z=new No(a,x,b),oe=a.cm;return oe&&z.noHScroll&&(oe.display.alignWidgets=!0),nr(a,y,"widget",function(de){var Ee=de.widgets||(de.widgets=[]);if(z.insertAt==null?Ee.push(z):Ee.splice(Math.min(Ee.length-1,Math.max(0,z.insertAt)),0,z),z.line=de,oe&&!Ut(a,de)){var we=qt(de)<a.scrollTop;Nr(de,de.height+Mo(z)),we&&Ft(oe,z.height),oe.curOp.forceUpdate=!0}return!0}),oe&&Go(oe,"lineWidgetAdded",oe,z,typeof y=="number"?y:qr(y)),z}var wo=0,cl=function(a,y){this.lines=[],this.type=y,this.doc=a,this.id=++wo};cl.prototype.clear=function(){if(!this.explicitlyCleared){var a=this.doc.cm,y=a&&!a.curOp;if(y&&ar(a),Jn(this,"clear")){var x=this.find();x&&Go(this,"clear",x.from,x.to)}for(var b=null,z=null,oe=0;oe<this.lines.length;++oe){var de=this.lines[oe],Ee=ai(de.markedSpans,this);a&&!this.collapsed?Ds(a,qr(de),"text"):a&&(Ee.to!=null&&(z=qr(de)),Ee.from!=null&&(b=qr(de))),de.markedSpans=wi(de.markedSpans,Ee),Ee.from==null&&this.collapsed&&!Ut(this.doc,de)&&a&&Nr(de,wr(a.display))}if(a&&this.collapsed&&!a.options.lineWrapping)for(var we=0;we<this.lines.length;++we){var je=jt(this.lines[we]),yt=An(je);yt>a.display.maxLineLength&&(a.display.maxLine=je,a.display.maxLineLength=yt,a.display.maxLineChanged=!0)}b!=null&&a&&this.collapsed&&Ol(a,b,z+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,a&&Zn(a.doc)),a&&Go(a,"markerCleared",a,this,b,z),y&&vr(a),this.parent&&this.parent.clear()}},cl.prototype.find=function(a,y){a==null&&this.type=="bookmark"&&(a=1);for(var x,b,z=0;z<this.lines.length;++z){var oe=this.lines[z],de=ai(oe.markedSpans,this);if(de.from!=null&&(x=Mn(y?oe:qr(oe),de.from),a==-1))return x;if(de.to!=null&&(b=Mn(y?oe:qr(oe),de.to),a==1))return b}return x&&{from:x,to:b}},cl.prototype.changed=function(){var a=this,y=this.find(-1,!0),x=this,b=this.doc.cm;!y||!b||Ur(b,function(){var z=y.line,oe=qr(y.line),de=js(b,oe);if(de&&(Vu(de),b.curOp.selectionChanged=b.curOp.forceUpdate=!0),b.curOp.updateMaxLine=!0,!Ut(x.doc,z)&&x.height!=null){var Ee=x.height;x.height=null;var we=Mo(x)-Ee;we&&Nr(z,z.height+we)}Go(b,"markerChanged",b,a)})},cl.prototype.attachLine=function(a){if(!this.lines.length&&this.doc.cm){var y=this.doc.cm.curOp;(!y.maybeHiddenMarkers||pt(y.maybeHiddenMarkers,this)==-1)&&(y.maybeUnhiddenMarkers||(y.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(a)},cl.prototype.detachLine=function(a){if(this.lines.splice(pt(this.lines,a),1),!this.lines.length&&this.doc.cm){var y=this.doc.cm.curOp;(y.maybeHiddenMarkers||(y.maybeHiddenMarkers=[])).push(this)}},Vn(cl);function Qo(a,y,x,b,z){if(b&&b.shared)return qo(a,y,x,b,z);if(a.cm&&!a.cm.curOp)return kr(a.cm,Qo)(a,y,x,b,z);var oe=new cl(a,z),de=Rr(y,x);if(b&&xt(b,oe,!1),de>0||de==0&&oe.clearWhenEmpty!==!1)return oe;if(oe.replacedWith&&(oe.collapsed=!0,oe.widgetNode=ut("span",[oe.replacedWith],"CodeMirror-widget"),b.handleMouseEvents||oe.widgetNode.setAttribute("cm-ignore-events","true"),b.insertLeft&&(oe.widgetNode.insertLeft=!0)),oe.collapsed){if(De(a,y.line,y,x,oe)||y.line!=x.line&&De(a,x.line,y,x,oe))throw new Error("Inserting collapsed marker partially overlapping an existing one");ci()}oe.addToHistory&&Ml(a,{from:y,to:x,origin:"markText"},a.sel,NaN);var Ee=y.line,we=a.cm,je;if(a.iter(Ee,x.line+1,function(Bt){we&&oe.collapsed&&!we.options.lineWrapping&&jt(Bt)==we.display.maxLine&&(je=!0),oe.collapsed&&Ee!=y.line&&Nr(Bt,0),ii(Bt,new ja(oe,Ee==y.line?y.ch:null,Ee==x.line?x.ch:null)),++Ee}),oe.collapsed&&a.iter(y.line,x.line+1,function(Bt){Ut(a,Bt)&&Nr(Bt,0)}),oe.clearOnEnter&&rr(oe,"beforeCursorEnter",function(){return oe.clear()}),oe.readOnly&&($i(),(a.history.done.length||a.history.undone.length)&&a.clearHistory()),oe.collapsed&&(oe.id=++wo,oe.atomic=!0),we){if(je&&(we.curOp.updateMaxLine=!0),oe.collapsed)Ol(we,y.line,x.line+1);else if(oe.className||oe.startStyle||oe.endStyle||oe.css||oe.attributes||oe.title)for(var yt=y.line;yt<=x.line;yt++)Ds(we,yt,"text");oe.atomic&&Zn(we.doc),Go(we,"markerAdded",we,oe)}return oe}var Ho=function(a,y){this.markers=a,this.primary=y;for(var x=0;x<a.length;++x)a[x].parent=this};Ho.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var a=0;a<this.markers.length;++a)this.markers[a].clear();Go(this,"clear")}},Ho.prototype.find=function(a,y){return this.primary.find(a,y)},Vn(Ho);function qo(a,y,x,b,z){b=xt(b),b.shared=!1;var oe=[Qo(a,y,x,b,z)],de=oe[0],Ee=b.widgetNode;return Ka(a,function(we){Ee&&(b.widgetNode=Ee.cloneNode(!0)),oe.push(Qo(we,Mt(we,y),Mt(we,x),b,z));for(var je=0;je<we.linked.length;++je)if(we.linked[je].isParent)return;de=dt(oe)}),new Ho(oe,de)}function $o(a){return a.findMarks(Mn(a.first,0),a.clipPos(Mn(a.lastLine())),function(y){return y.parent})}function Al(a,y){for(var x=0;x<y.length;x++){var b=y[x],z=b.find(),oe=a.clipPos(z.from),de=a.clipPos(z.to);if(Rr(oe,de)){var Ee=Qo(a,oe,de,b.primary,b.primary.type);b.markers.push(Ee),Ee.parent=b}}}function Vs(a){for(var y=function(b){var z=a[b],oe=[z.primary.doc];Ka(z.primary.doc,function(we){return oe.push(we)});for(var de=0;de<z.markers.length;de++){var Ee=z.markers[de];pt(oe,Ee.doc)==-1&&(Ee.parent=null,z.markers.splice(de--,1))}},x=0;x<a.length;x++)y(x)}var _i=0,wa=function(a,y,x,b,z){if(!(this instanceof wa))return new wa(a,y,x,b,z);x==null&&(x=0),ul.call(this,[new fi([new cr("",null)])]),this.first=x,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=x;var oe=Mn(x,0);this.sel=vo(oe),this.history=new Va(null),this.id=++_i,this.modeOption=y,this.lineSep=b,this.direction=z=="rtl"?"rtl":"ltr",this.extend=!1,typeof a=="string"&&(a=this.splitLines(a)),Kl(this,{from:oe,to:oe,text:a}),un(this,vo(oe),Le)};wa.prototype=le(ul.prototype,{constructor:wa,iter:function(a,y,x){x?this.iterN(a-this.first,y-a,x):this.iterN(this.first,this.first+this.size,a)},insert:function(a,y){for(var x=0,b=0;b<y.length;++b)x+=y[b].height;this.insertInner(a-this.first,y,x)},remove:function(a,y){this.removeInner(a-this.first,y)},getValue:function(a){var y=br(this,this.first,this.first+this.size);return a===!1?y:y.join(a||this.lineSeparator())},setValue:Yr(function(a){var y=Mn(this.first,0),x=this.first+this.size-1;Gi(this,{from:y,to:Mn(x,Qt(this,x).text.length),text:this.splitLines(a),origin:"setValue",full:!0},!0),this.cm&&Ht(this.cm,0,0),un(this,vo(y),Le)}),replaceRange:function(a,y,x,b){y=Mt(this,y),x=x?Mt(this,x):y,tr(this,a,y,x,b)},getRange:function(a,y,x){var b=_n(this,Mt(this,a),Mt(this,y));return x===!1?b:b.join(x||this.lineSeparator())},getLine:function(a){var y=this.getLineHandle(a);return y&&y.text},getLineHandle:function(a){if(si(this,a))return Qt(this,a)},getLineNumber:function(a){return qr(a)},getLineHandleVisualStart:function(a){return typeof a=="number"&&(a=Qt(this,a)),jt(a)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(a){return Mt(this,a)},getCursor:function(a){var y=this.sel.primary(),x;return a==null||a=="head"?x=y.head:a=="anchor"?x=y.anchor:a=="end"||a=="to"||a===!1?x=y.to():x=y.from(),x},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Yr(function(a,y,x){Ia(this,Mt(this,typeof a=="number"?Mn(a,y||0):a),null,x)}),setSelection:Yr(function(a,y,x){Ia(this,Mt(this,a),Mt(this,y||a),x)}),extendSelection:Yr(function(a,y,x){gn(this,Mt(this,a),y&&Mt(this,y),x)}),extendSelections:Yr(function(a,y){Yt(this,sr(this,a),y)}),extendSelectionsBy:Yr(function(a,y){var x=Lt(this.sel.ranges,a);Yt(this,sr(this,x),y)}),setSelections:Yr(function(a,y,x){if(a.length){for(var b=[],z=0;z<a.length;z++)b[z]=new ka(Mt(this,a[z].anchor),Mt(this,a[z].head));y==null&&(y=Math.min(a.length-1,this.sel.primIndex)),un(this,Xi(this.cm,b,y),x)}}),addSelection:Yr(function(a,y,x){var b=this.sel.ranges.slice(0);b.push(new ka(Mt(this,a),Mt(this,y||a))),un(this,Xi(this.cm,b,b.length-1),x)}),getSelection:function(a){for(var y=this.sel.ranges,x,b=0;b<y.length;b++){var z=_n(this,y[b].from(),y[b].to());x=x?x.concat(z):z}return a===!1?x:x.join(a||this.lineSeparator())},getSelections:function(a){for(var y=[],x=this.sel.ranges,b=0;b<x.length;b++){var z=_n(this,x[b].from(),x[b].to());a!==!1&&(z=z.join(a||this.lineSeparator())),y[b]=z}return y},replaceSelection:function(a,y,x){for(var b=[],z=0;z<this.sel.ranges.length;z++)b[z]=a;this.replaceSelections(b,y,x||"+input")},replaceSelections:Yr(function(a,y,x){for(var b=[],z=this.sel,oe=0;oe<z.ranges.length;oe++){var de=z.ranges[oe];b[oe]={from:de.from(),to:de.to(),text:this.splitLines(a[oe]),origin:x}}for(var Ee=y&&y!="end"&&lo(this,b,y),we=b.length-1;we>=0;we--)Gi(this,b[we]);Ee?Wt(this,Ee):this.cm&&Tt(this.cm)}),undo:Yr(function(){_o(this,"undo")}),redo:Yr(function(){_o(this,"redo")}),undoSelection:Yr(function(){_o(this,"undo",!0)}),redoSelection:Yr(function(){_o(this,"redo",!0)}),setExtending:function(a){this.extend=a},getExtending:function(){return this.extend},historySize:function(){for(var a=this.history,y=0,x=0,b=0;b<a.done.length;b++)a.done[b].ranges||++y;for(var z=0;z<a.undone.length;z++)a.undone[z].ranges||++x;return{undo:y,redo:x}},clearHistory:function(){var a=this;this.history=new Va(this.history.maxGeneration),Ka(this,function(y){return y.history=a.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(a){return a&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(a){return this.history.generation==(a||this.cleanGeneration)},getHistory:function(){return{done:Cr(this.history.done),undone:Cr(this.history.undone)}},setHistory:function(a){var y=this.history=new Va(this.history.maxGeneration);y.done=Cr(a.done.slice(0),null,!0),y.undone=Cr(a.undone.slice(0),null,!0)},setGutterMarker:Yr(function(a,y,x){return nr(this,a,"gutter",function(b){var z=b.gutterMarkers||(b.gutterMarkers={});return z[y]=x,!x&&se(z)&&(b.gutterMarkers=null),!0})}),clearGutter:Yr(function(a){var y=this;this.iter(function(x){x.gutterMarkers&&x.gutterMarkers[a]&&nr(y,x,"gutter",function(){return x.gutterMarkers[a]=null,se(x.gutterMarkers)&&(x.gutterMarkers=null),!0})})}),lineInfo:function(a){var y;if(typeof a=="number"){if(!si(this,a)||(y=a,a=Qt(this,a),!a))return null}else if(y=qr(a),y==null)return null;return{line:y,handle:a,text:a.text,gutterMarkers:a.gutterMarkers,textClass:a.textClass,bgClass:a.bgClass,wrapClass:a.wrapClass,widgets:a.widgets}},addLineClass:Yr(function(a,y,x){return nr(this,a,y=="gutter"?"gutter":"class",function(b){var z=y=="text"?"textClass":y=="background"?"bgClass":y=="gutter"?"gutterClass":"wrapClass";if(!b[z])b[z]=x;else{if(st(x).test(b[z]))return!1;b[z]+=" "+x}return!0})}),removeLineClass:Yr(function(a,y,x){return nr(this,a,y=="gutter"?"gutter":"class",function(b){var z=y=="text"?"textClass":y=="background"?"bgClass":y=="gutter"?"gutterClass":"wrapClass",oe=b[z];if(oe)if(x==null)b[z]=null;else{var de=oe.match(st(x));if(!de)return!1;var Ee=de.index+de[0].length;b[z]=oe.slice(0,de.index)+(!de.index||Ee==oe.length?"":" ")+oe.slice(Ee)||null}else return!1;return!0})}),addLineWidget:Yr(function(a,y,x){return xl(this,a,y,x)}),removeLineWidget:function(a){a.clear()},markText:function(a,y,x){return Qo(this,Mt(this,a),Mt(this,y),x,x&&x.type||"range")},setBookmark:function(a,y){var x={replacedWith:y&&(y.nodeType==null?y.widget:y),insertLeft:y&&y.insertLeft,clearWhenEmpty:!1,shared:y&&y.shared,handleMouseEvents:y&&y.handleMouseEvents};return a=Mt(this,a),Qo(this,a,a,x,"bookmark")},findMarksAt:function(a){a=Mt(this,a);var y=[],x=Qt(this,a.line).markedSpans;if(x)for(var b=0;b<x.length;++b){var z=x[b];(z.from==null||z.from<=a.ch)&&(z.to==null||z.to>=a.ch)&&y.push(z.marker.parent||z.marker)}return y},findMarks:function(a,y,x){a=Mt(this,a),y=Mt(this,y);var b=[],z=a.line;return this.iter(a.line,y.line+1,function(oe){var de=oe.markedSpans;if(de)for(var Ee=0;Ee<de.length;Ee++){var we=de[Ee];!(we.to!=null&&z==a.line&&a.ch>=we.to||we.from==null&&z!=a.line||we.from!=null&&z==y.line&&we.from>=y.ch)&&(!x||x(we.marker))&&b.push(we.marker.parent||we.marker)}++z}),b},getAllMarks:function(){var a=[];return this.iter(function(y){var x=y.markedSpans;if(x)for(var b=0;b<x.length;++b)x[b].from!=null&&a.push(x[b].marker)}),a},posFromIndex:function(a){var y,x=this.first,b=this.lineSeparator().length;return this.iter(function(z){var oe=z.text.length+b;if(oe>a)return y=a,!0;a-=oe,++x}),Mt(this,Mn(x,y))},indexFromPos:function(a){a=Mt(this,a);var y=a.ch;if(a.line<this.first||a.ch<0)return 0;var x=this.lineSeparator().length;return this.iter(this.first,a.line,function(b){y+=b.text.length+x}),y},copy:function(a){var y=new wa(br(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return y.scrollTop=this.scrollTop,y.scrollLeft=this.scrollLeft,y.sel=this.sel,y.extend=!1,a&&(y.history.undoDepth=this.history.undoDepth,y.setHistory(this.getHistory())),y},linkedDoc:function(a){a||(a={});var y=this.first,x=this.first+this.size;a.from!=null&&a.from>y&&(y=a.from),a.to!=null&&a.to<x&&(x=a.to);var b=new wa(br(this,y,x),a.mode||this.modeOption,y,this.lineSep,this.direction);return a.sharedHist&&(b.history=this.history),(this.linked||(this.linked=[])).push({doc:b,sharedHist:a.sharedHist}),b.linked=[{doc:this,isParent:!0,sharedHist:a.sharedHist}],Al(b,$o(this)),b},unlinkDoc:function(a){if(a instanceof gl&&(a=a.doc),this.linked)for(var y=0;y<this.linked.length;++y){var x=this.linked[y];if(x.doc==a){this.linked.splice(y,1),a.unlinkDoc(this),Vs($o(this));break}}if(a.history==this.history){var b=[a.id];Ka(a,function(z){return b.push(z.id)},!0),a.history=new Va(null),a.history.done=Cr(this.history.done,b),a.history.undone=Cr(this.history.undone,b)}},iterLinkedDocs:function(a){Ka(this,a)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(a){return this.lineSep?a.split(this.lineSep):Kr(a)},lineSeparator:function(){return this.lineSep||`
`},setDirection:Yr(function(a){a!="rtl"&&(a="ltr"),a!=this.direction&&(this.direction=a,this.iter(function(y){return y.order=null}),this.cm&&xa(this.cm))})}),wa.prototype.eachLine=wa.prototype.iter;var ml=0;function Wo(a){var y=this;if(tu(y),!(Dn(y,a)||Ci(y.display,a))){ha(a),He&&(ml=+new Date);var x=Ns(y,a,!0),b=a.dataTransfer.files;if(!(!x||y.isReadOnly()))if(b&&b.length&&window.FileReader&&window.File)for(var z=b.length,oe=Array(z),de=0,Ee=function(){++de==z&&kr(y,function(){x=Mt(y.doc,x);var tn={from:x,to:x,text:y.doc.splitLines(oe.filter(function(Qn){return Qn!=null}).join(y.doc.lineSeparator())),origin:"paste"};Gi(y.doc,tn),Wt(y.doc,vo(Mt(y.doc,x),Mt(y.doc,jo(tn))))})()},we=function(tn,Qn){if(y.options.allowDropFileTypes&&pt(y.options.allowDropFileTypes,tn.type)==-1){Ee();return}var gr=new FileReader;gr.onerror=function(){return Ee()},gr.onload=function(){var Hr=gr.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Hr)){Ee();return}oe[Qn]=Hr,Ee()},gr.readAsText(tn)},je=0;je<b.length;je++)we(b[je],je);else{if(y.state.draggingText&&y.doc.sel.contains(x)>-1){y.state.draggingText(a),setTimeout(function(){return y.display.input.focus()},20);return}try{var yt=a.dataTransfer.getData("Text");if(yt){var Bt;if(y.state.draggingText&&!y.state.draggingText.copy&&(Bt=y.listSelections()),er(y.doc,vo(x,x)),Bt)for(var sn=0;sn<Bt.length;++sn)tr(y.doc,"",Bt[sn].anchor,Bt[sn].head,"drag");y.replaceSelection(yt,"around","paste"),y.display.input.focus()}}catch(tn){}}}}function Os(a,y){if(He&&(!a.state.draggingText||+new Date-ml<100)){Ir(y);return}if(!(Dn(a,y)||Ci(a.display,y))&&(y.dataTransfer.setData("Text",a.getSelection()),y.dataTransfer.effectAllowed="copyMove",y.dataTransfer.setDragImage&&!Xe)){var x=Je("img",null,null,"position: fixed; left: 0; top: 0;");x.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",We&&(x.width=x.height=1,a.display.wrapper.appendChild(x),x._top=x.offsetTop),y.dataTransfer.setDragImage(x,0,0),We&&x.parentNode.removeChild(x)}}function ss(a,y){var x=Ns(a,y);if(x){var b=document.createDocumentFragment();uu(a,x,b),a.display.dragCursor||(a.display.dragCursor=Je("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),a.display.lineSpace.insertBefore(a.display.dragCursor,a.display.cursorDiv)),ct(a.display.dragCursor,b)}}function tu(a){a.display.dragCursor&&(a.display.lineSpace.removeChild(a.display.dragCursor),a.display.dragCursor=null)}function As(a){if(document.getElementsByClassName){for(var y=document.getElementsByClassName("CodeMirror"),x=[],b=0;b<y.length;b++){var z=y[b].CodeMirror;z&&x.push(z)}x.length&&x[0].operation(function(){for(var oe=0;oe<x.length;oe++)a(x[oe])})}}var Ms=!1;function qi(){Ms||(Ii(),Ms=!0)}function Ii(){var a;rr(window,"resize",function(){a==null&&(a=setTimeout(function(){a=null,As(Yi)},100))}),rr(window,"blur",function(){return As(eu)})}function Yi(a){var y=a.display;y.cachedCharWidth=y.cachedTextHeight=y.cachedPaddingH=null,y.scrollbarsClipped=!1,a.setSize()}for(var La={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},rl=0;rl<10;rl++)La[rl+48]=La[rl+96]=String(rl);for(var _s=65;_s<=90;_s++)La[_s]=String.fromCharCode(_s);for(var ps=1;ps<=12;ps++)La[ps+111]=La[ps+63235]="F"+ps;var $l={};$l.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},$l.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},$l.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},$l.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},$l.default=be?$l.macDefault:$l.pcDefault;function Eo(a){var y=a.split(/-(?!$)/);a=y[y.length-1];for(var x,b,z,oe,de=0;de<y.length-1;de++){var Ee=y[de];if(/^(cmd|meta|m)$/i.test(Ee))oe=!0;else if(/^a(lt)?$/i.test(Ee))x=!0;else if(/^(c|ctrl|control)$/i.test(Ee))b=!0;else if(/^s(hift)?$/i.test(Ee))z=!0;else throw new Error("Unrecognized modifier name: "+Ee)}return x&&(a="Alt-"+a),b&&(a="Ctrl-"+a),oe&&(a="Cmd-"+a),z&&(a="Shift-"+a),a}function Tl(a){var y={};for(var x in a)if(a.hasOwnProperty(x)){var b=a[x];if(/^(name|fallthrough|(de|at)tach)$/.test(x))continue;if(b=="..."){delete a[x];continue}for(var z=Lt(x.split(" "),Eo),oe=0;oe<z.length;oe++){var de=void 0,Ee=void 0;oe==z.length-1?(Ee=z.join(" "),de=b):(Ee=z.slice(0,oe+1).join(" "),de="...");var we=y[Ee];if(!we)y[Ee]=de;else if(we!=de)throw new Error("Inconsistent bindings for "+Ee)}delete a[x]}for(var je in y)a[je]=y[je];return a}function vl(a,y,x,b){y=Rl(y);var z=y.call?y.call(a,b):y[a];if(z===!1)return"nothing";if(z==="...")return"multi";if(z!=null&&x(z))return"handled";if(y.fallthrough){if(Object.prototype.toString.call(y.fallthrough)!="[object Array]")return vl(a,y.fallthrough,x,b);for(var oe=0;oe<y.fallthrough.length;oe++){var de=vl(a,y.fallthrough[oe],x,b);if(de)return de}}}function _l(a){var y=typeof a=="string"?a:La[a.keyCode];return y=="Ctrl"||y=="Alt"||y=="Shift"||y=="Mod"}function Ll(a,y,x){var b=a;return y.altKey&&b!="Alt"&&(a="Alt-"+a),(fe?y.metaKey:y.ctrlKey)&&b!="Ctrl"&&(a="Ctrl-"+a),(fe?y.ctrlKey:y.metaKey)&&b!="Mod"&&(a="Cmd-"+a),!x&&y.shiftKey&&b!="Shift"&&(a="Shift-"+a),a}function Uo(a,y){if(We&&a.keyCode==34&&a.char)return!1;var x=La[a.keyCode];return x==null||a.altGraphKey?!1:(a.keyCode==3&&a.code&&(x=a.code),Ll(x,a,y))}function Rl(a){return typeof a=="string"?$l[a]:a}function dl(a,y){for(var x=a.doc.sel.ranges,b=[],z=0;z<x.length;z++){for(var oe=y(x[z]);b.length&&Rr(oe.from,dt(b).to)<=0;){var de=b.pop();if(Rr(de.from,oe.from)<0){oe.from=de.from;break}}b.push(oe)}Ur(a,function(){for(var Ee=b.length-1;Ee>=0;Ee--)tr(a.doc,"",b[Ee].from,b[Ee].to,"+delete");Tt(a)})}function zs(a,y,x){var b=zt(a.text,y+x,x);return b<0||b>a.text.length?null:b}function Ps(a,y,x){var b=zs(a,y.ch,x);return b==null?null:new Mn(y.line,b,x<0?"after":"before")}function En(a,y,x,b,z){if(a){y.doc.direction=="rtl"&&(z=-z);var oe=ra(x,y.doc.direction);if(oe){var de=z<0?dt(oe):oe[0],Ee=z<0==(de.level==1),we=Ee?"after":"before",je;if(de.level>0||y.doc.direction=="rtl"){var yt=Fl(y,x);je=z<0?x.text.length-1:0;var Bt=ys(y,yt,je).top;je=on(function(sn){return ys(y,yt,sn).top==Bt},z<0==(de.level==1)?de.from:de.to-1,je),we=="before"&&(je=zs(x,je,1))}else je=z<0?de.to:de.from;return new Mn(b,je,we)}}return new Mn(b,z<0?x.text.length:0,z<0?"before":"after")}function Br(a,y,x,b){var z=ra(y,a.doc.direction);if(!z)return Ps(y,x,b);x.ch>=y.text.length?(x.ch=y.text.length,x.sticky="before"):x.ch<=0&&(x.ch=0,x.sticky="after");var oe=Fn(z,x.ch,x.sticky),de=z[oe];if(a.doc.direction=="ltr"&&de.level%2==0&&(b>0?de.to>x.ch:de.from<x.ch))return Ps(y,x,b);var Ee=function(fa,Ra){return zs(y,fa instanceof Mn?fa.ch:fa,Ra)},we,je=function(fa){return a.options.lineWrapping?(we=we||Fl(a,y),Pu(a,y,we,fa)):{begin:0,end:y.text.length}},yt=je(x.sticky=="before"?Ee(x,-1):x.ch);if(a.doc.direction=="rtl"||de.level==1){var Bt=de.level==1==b<0,sn=Ee(x,Bt?1:-1);if(sn!=null&&(Bt?sn<=de.to&&sn<=yt.end:sn>=de.from&&sn>=yt.begin)){var tn=Bt?"before":"after";return new Mn(x.line,sn,tn)}}var Qn=function(fa,Ra,ua){for(var Ua=function(fl,es){return es?new Mn(x.line,Ee(fl,1),"before"):new Mn(x.line,fl,"after")};fa>=0&&fa<z.length;fa+=Ra){var Si=z[fa],li=Ra>0==(Si.level!=1),Co=li?ua.begin:Ee(ua.end,-1);if(Si.from<=Co&&Co<Si.to||(Co=li?Si.from:Ee(Si.to,-1),ua.begin<=Co&&Co<ua.end))return Ua(Co,li)}},gr=Qn(oe+b,b,yt);if(gr)return gr;var Hr=b>0?yt.end:Ee(yt.begin,-1);return Hr!=null&&!(b>0&&Hr==y.text.length)&&(gr=Qn(b>0?0:z.length-1,b,je(Hr)),gr)?gr:null}var ti={selectAll:dr,singleSelection:function(a){return a.setSelection(a.getCursor("anchor"),a.getCursor("head"),Le)},killLine:function(a){return dl(a,function(y){if(y.empty()){var x=Qt(a.doc,y.head.line).text.length;return y.head.ch==x&&y.head.line<a.lastLine()?{from:y.head,to:Mn(y.head.line+1,0)}:{from:y.head,to:Mn(y.head.line,x)}}else return{from:y.from(),to:y.to()}})},deleteLine:function(a){return dl(a,function(y){return{from:Mn(y.from().line,0),to:Mt(a.doc,Mn(y.to().line+1,0))}})},delLineLeft:function(a){return dl(a,function(y){return{from:Mn(y.from().line,0),to:y.from()}})},delWrappedLineLeft:function(a){return dl(a,function(y){var x=a.charCoords(y.head,"div").top+5,b=a.coordsChar({left:0,top:x},"div");return{from:b,to:y.from()}})},delWrappedLineRight:function(a){return dl(a,function(y){var x=a.charCoords(y.head,"div").top+5,b=a.coordsChar({left:a.display.lineDiv.offsetWidth+100,top:x},"div");return{from:y.from(),to:b}})},undo:function(a){return a.undo()},redo:function(a){return a.redo()},undoSelection:function(a){return a.undoSelection()},redoSelection:function(a){return a.redoSelection()},goDocStart:function(a){return a.extendSelection(Mn(a.firstLine(),0))},goDocEnd:function(a){return a.extendSelection(Mn(a.lastLine()))},goLineStart:function(a){return a.extendSelectionsBy(function(y){return Na(a,y.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(a){return a.extendSelectionsBy(function(y){return Po(a,y.head)},{origin:"+move",bias:1})},goLineEnd:function(a){return a.extendSelectionsBy(function(y){return hi(a,y.head.line)},{origin:"+move",bias:-1})},goLineRight:function(a){return a.extendSelectionsBy(function(y){var x=a.cursorCoords(y.head,"div").top+5;return a.coordsChar({left:a.display.lineDiv.offsetWidth+100,top:x},"div")},mt)},goLineLeft:function(a){return a.extendSelectionsBy(function(y){var x=a.cursorCoords(y.head,"div").top+5;return a.coordsChar({left:0,top:x},"div")},mt)},goLineLeftSmart:function(a){return a.extendSelectionsBy(function(y){var x=a.cursorCoords(y.head,"div").top+5,b=a.coordsChar({left:0,top:x},"div");return b.ch<a.getLine(b.line).search(/\S/)?Po(a,y.head):b},mt)},goLineUp:function(a){return a.moveV(-1,"line")},goLineDown:function(a){return a.moveV(1,"line")},goPageUp:function(a){return a.moveV(-1,"page")},goPageDown:function(a){return a.moveV(1,"page")},goCharLeft:function(a){return a.moveH(-1,"char")},goCharRight:function(a){return a.moveH(1,"char")},goColumnLeft:function(a){return a.moveH(-1,"column")},goColumnRight:function(a){return a.moveH(1,"column")},goWordLeft:function(a){return a.moveH(-1,"word")},goGroupRight:function(a){return a.moveH(1,"group")},goGroupLeft:function(a){return a.moveH(-1,"group")},goWordRight:function(a){return a.moveH(1,"word")},delCharBefore:function(a){return a.deleteH(-1,"codepoint")},delCharAfter:function(a){return a.deleteH(1,"char")},delWordBefore:function(a){return a.deleteH(-1,"word")},delWordAfter:function(a){return a.deleteH(1,"word")},delGroupBefore:function(a){return a.deleteH(-1,"group")},delGroupAfter:function(a){return a.deleteH(1,"group")},indentAuto:function(a){return a.indentSelection("smart")},indentMore:function(a){return a.indentSelection("add")},indentLess:function(a){return a.indentSelection("subtract")},insertTab:function(a){return a.replaceSelection(" ")},insertSoftTab:function(a){for(var y=[],x=a.listSelections(),b=a.options.tabSize,z=0;z<x.length;z++){var oe=x[z].from(),de=Re(a.getLine(oe.line),oe.ch,b);y.push(en(b-de%b))}a.replaceSelections(y)},defaultTab:function(a){a.somethingSelected()?a.indentSelection("add"):a.execCommand("insertTab")},transposeChars:function(a){return Ur(a,function(){for(var y=a.listSelections(),x=[],b=0;b<y.length;b++)if(y[b].empty()){var z=y[b].head,oe=Qt(a.doc,z.line).text;if(oe){if(z.ch==oe.length&&(z=new Mn(z.line,z.ch-1)),z.ch>0)z=new Mn(z.line,z.ch+1),a.replaceRange(oe.charAt(z.ch-1)+oe.charAt(z.ch-2),Mn(z.line,z.ch-2),z,"+transpose");else if(z.line>a.doc.first){var de=Qt(a.doc,z.line-1).text;de&&(z=new Mn(z.line,1),a.replaceRange(oe.charAt(0)+a.doc.lineSeparator()+de.charAt(de.length-1),Mn(z.line-1,de.length-1),z,"+transpose"))}}x.push(new ka(z,z))}a.setSelections(x)})},newlineAndIndent:function(a){return Ur(a,function(){for(var y=a.listSelections(),x=y.length-1;x>=0;x--)a.replaceRange(a.doc.lineSeparator(),y[x].anchor,y[x].head,"+input");y=a.listSelections();for(var b=0;b<y.length;b++)a.indentLine(y[b].from().line,null,!0);Tt(a)})},openLine:function(a){return a.replaceSelection(`
`,"start")},toggleOverwrite:function(a){return a.toggleOverwrite()}};function Na(a,y){var x=Qt(a.doc,y),b=jt(x);return b!=x&&(y=qr(b)),En(!0,a,b,y,1)}function hi(a,y){var x=Qt(a.doc,y),b=hn(x);return b!=x&&(y=qr(b)),En(!0,a,x,y,-1)}function Po(a,y){var x=Na(a,y.line),b=Qt(a.doc,x.line),z=ra(b,a.doc.direction);if(!z||z[0].level==0){var oe=Math.max(x.ch,b.text.search(/\S/)),de=y.line==x.line&&y.ch<=oe&&y.ch;return Mn(x.line,de?0:oe,x.sticky)}return x}function al(a,y,x){if(typeof y=="string"&&(y=ti[y],!y))return!1;a.display.input.ensurePolled();var b=a.display.shift,z=!1;try{a.isReadOnly()&&(a.state.suppressEdits=!0),x&&(a.display.shift=!1),z=y(a)!=it}finally{a.display.shift=b,a.state.suppressEdits=!1}return z}function Yo(a,y,x){for(var b=0;b<a.state.keyMaps.length;b++){var z=vl(y,a.state.keyMaps[b],x,a);if(z)return z}return a.options.extraKeys&&vl(y,a.options.extraKeys,x,a)||vl(y,a.options.keyMap,x,a)}var us=new me;function Vo(a,y,x,b){var z=a.state.keySeq;if(z){if(_l(y))return"handled";if(/\'$/.test(y)?a.state.keySeq=null:us.set(50,function(){a.state.keySeq==z&&(a.state.keySeq=null,a.display.input.reset())}),fu(a,z+" "+y,x,b))return!0}return fu(a,y,x,b)}function fu(a,y,x,b){var z=Yo(a,y,b);return z=="multi"&&(a.state.keySeq=y),z=="handled"&&Go(a,"keyHandled",a,y,x),(z=="handled"||z=="multi")&&(ha(x),du(a)),!!z}function Ks(a,y){var x=Uo(y,!0);return x?y.shiftKey&&!a.state.keySeq?Vo(a,"Shift-"+x,y,function(b){return al(a,b,!0)})||Vo(a,x,y,function(b){if(typeof b=="string"?/^go[A-Z]/.test(b):b.motion)return al(a,b)}):Vo(a,x,y,function(b){return al(a,b)}):!1}function cc(a,y,x){return Vo(a,"'"+x+"'",y,function(b){return al(a,b,!0)})}var Tu=null;function nc(a){var y=this;if(!(a.target&&a.target!=y.display.input.getField())&&(y.curOp.focus=Ae(),!Dn(y,a))){He&&_e<11&&a.keyCode==27&&(a.returnValue=!1);var x=a.keyCode;y.display.shift=x==16||a.shiftKey;var b=Ks(y,a);We&&(Tu=b?x:null,!b&&x==88&&!aa&&(be?a.metaKey:a.ctrlKey)&&y.replaceSelection("",null,"cut")),E&&!be&&!b&&x==46&&a.shiftKey&&!a.ctrlKey&&document.execCommand&&document.execCommand("cut"),x==18&&!/\bCodeMirror-crosshair\b/.test(y.display.lineDiv.className)&&dc(y)}}function dc(a){var y=a.display.lineDiv;tt(y,"CodeMirror-crosshair");function x(b){(b.keyCode==18||!b.altKey)&&(wt(y,"CodeMirror-crosshair"),Vr(document,"keyup",x),Vr(document,"mouseover",x))}rr(document,"keyup",x),rr(document,"mouseover",x)}function rc(a){a.keyCode==16&&(this.doc.sel.shift=!1),Dn(this,a)}function Yu(a){var y=this;if(!(a.target&&a.target!=y.display.input.getField())&&!(Ci(y.display,a)||Dn(y,a)||a.ctrlKey&&!a.altKey||be&&a.metaKey)){var x=a.keyCode,b=a.charCode;if(We&&x==Tu){Tu=null,ha(a);return}if(!(We&&(!a.which||a.which<10)&&Ks(y,a))){var z=String.fromCharCode(b==null?x:b);z!="\b"&&(cc(y,a,z)||y.display.input.onKeyPress(a))}}}var ac=400,Ku=function(a,y,x){this.time=a,this.pos=y,this.button=x};Ku.prototype.compare=function(a,y,x){return this.time+ac>a&&Rr(y,this.pos)==0&&x==this.button};var mr,_a;function Ki(a,y){var x=+new Date;return _a&&_a.compare(x,a,y)?(mr=_a=null,"triple"):mr&&mr.compare(x,a,y)?(_a=new Ku(x,a,y),mr=null,"double"):(mr=new Ku(x,a,y),_a=null,"single")}function ji(a){var y=this,x=y.display;if(!(Dn(y,a)||x.activeTouch&&x.input.supportsTouch())){if(x.input.ensurePolled(),x.shift=a.shiftKey,Ci(x,a)){ze||(x.scroller.draggable=!1,setTimeout(function(){return x.scroller.draggable=!0},100));return}if(!Qs(y,a)){var b=Ns(y,a),z=ir(a),oe=b?Ki(b,z):"single";window.focus(),z==1&&y.state.selectingText&&y.state.selectingText(a),!(b&&po(y,z,b,oe,a))&&(z==1?b?Oo(y,b,oe,a):Sn(a)==x.scroller&&ha(a):z==2?(b&&gn(y.doc,b),setTimeout(function(){return x.input.focus()},20)):z==3&&(qe?y.display.input.onContextMenu(a):Bu(y)))}}}function po(a,y,x,b,z){var oe="Click";return b=="double"?oe="Double"+oe:b=="triple"&&(oe="Triple"+oe),oe=(y==1?"Left":y==2?"Middle":"Right")+oe,Vo(a,Ll(oe,z),z,function(de){if(typeof de=="string"&&(de=ti[de]),!de)return!1;var Ee=!1;try{a.isReadOnly()&&(a.state.suppressEdits=!0),Ee=de(a,x)!=it}finally{a.state.suppressEdits=!1}return Ee})}function bo(a,y,x){var b=a.getOption("configureMouse"),z=b?b(a,y,x):{};if(z.unit==null){var oe=Ie?x.shiftKey&&x.metaKey:x.altKey;z.unit=oe?"rectangle":y=="single"?"char":y=="double"?"word":"line"}return(z.extend==null||a.doc.extend)&&(z.extend=a.doc.extend||x.shiftKey),z.addNew==null&&(z.addNew=be?x.metaKey:x.ctrlKey),z.moveOnDrag==null&&(z.moveOnDrag=!(be?x.altKey:x.ctrlKey)),z}function Oo(a,y,x,b){He?setTimeout(Qe(Uu,a),0):a.curOp.focus=Ae();var z=bo(a,x,b),oe=a.doc.sel,de;a.options.dragDrop&&Fa&&!a.isReadOnly()&&x=="single"&&(de=oe.contains(y))>-1&&(Rr((de=oe.ranges[de]).from(),y)<0||y.xRel>0)&&(Rr(de.to(),y)>0||y.xRel<0)?zo(a,b,y,z):Cs(a,b,y,z)}function zo(a,y,x,b){var z=a.display,oe=!1,de=kr(a,function(je){ze&&(z.scroller.draggable=!1),a.state.draggingText=!1,Vr(z.wrapper.ownerDocument,"mouseup",de),Vr(z.wrapper.ownerDocument,"mousemove",Ee),Vr(z.scroller,"dragstart",we),Vr(z.scroller,"drop",de),oe||(ha(je),b.addNew||gn(a.doc,x,null,null,b.extend),ze&&!Xe||He&&_e==9?setTimeout(function(){z.wrapper.ownerDocument.body.focus({preventScroll:!0}),z.input.focus()},20):z.input.focus())}),Ee=function(je){oe=oe||Math.abs(y.clientX-je.clientX)+Math.abs(y.clientY-je.clientY)>=10},we=function(){return oe=!0};ze&&(z.scroller.draggable=!0),a.state.draggingText=de,de.copy=!b.moveOnDrag,z.scroller.dragDrop&&z.scroller.dragDrop(),rr(z.wrapper.ownerDocument,"mouseup",de),rr(z.wrapper.ownerDocument,"mousemove",Ee),rr(z.scroller,"dragstart",we),rr(z.scroller,"drop",de),Bu(a),setTimeout(function(){return z.input.focus()},20)}function Xl(a,y,x){if(x=="char")return new ka(y,y);if(x=="word")return a.findWordAt(y);if(x=="line")return new ka(Mn(y.line,0),Mt(a.doc,Mn(y.line+1,0)));var b=x(a,y);return new ka(b.from,b.to)}function Cs(a,y,x,b){var z=a.display,oe=a.doc;ha(y);var de,Ee,we=oe.sel,je=we.ranges;if(b.addNew&&!b.extend?(Ee=oe.sel.contains(x),Ee>-1?de=je[Ee]:de=new ka(x,x)):(de=oe.sel.primary(),Ee=oe.sel.primIndex),b.unit=="rectangle")b.addNew||(de=new ka(x,x)),x=Ns(a,y,!0,!0),Ee=-1;else{var yt=Xl(a,x,b.unit);b.extend?de=kn(de,yt.anchor,yt.head,b.extend):de=yt}b.addNew?Ee==-1?(Ee=je.length,un(oe,Xi(a,je.concat([de]),Ee),{scroll:!1,origin:"*mouse"})):je.length>1&&je[Ee].empty()&&b.unit=="char"&&!b.extend?(un(oe,Xi(a,je.slice(0,Ee).concat(je.slice(Ee+1)),0),{scroll:!1,origin:"*mouse"}),we=oe.sel):Ln(oe,Ee,de,Ue):(Ee=0,un(oe,new Ca([de],0),Ue),we=oe.sel);var Bt=x;function sn(ua){if(Rr(Bt,ua)!=0)if(Bt=ua,b.unit=="rectangle"){for(var Ua=[],Si=a.options.tabSize,li=Re(Qt(oe,x.line).text,x.ch,Si),Co=Re(Qt(oe,ua.line).text,ua.ch,Si),fl=Math.min(li,Co),es=Math.max(li,Co),Sl=Math.min(x.line,ua.line),ks=Math.min(a.lastLine(),Math.max(x.line,ua.line));Sl<=ks;Sl++){var xs=Qt(oe,Sl).text,Vl=Zt(xs,fl,Si);fl==es?Ua.push(new ka(Mn(Sl,Vl),Mn(Sl,Vl))):xs.length>Vl&&Ua.push(new ka(Mn(Sl,Vl),Mn(Sl,Zt(xs,es,Si))))}Ua.length||Ua.push(new ka(x,x)),un(oe,Xi(a,we.ranges.slice(0,Ee).concat(Ua),Ee),{origin:"*mouse",scroll:!1}),a.scrollIntoView(ua)}else{var hs=de,is=Xl(a,ua,b.unit),Jl=hs.anchor,Pl;Rr(is.anchor,Jl)>0?(Pl=is.head,Jl=Ct(hs.from(),is.anchor)):(Pl=is.anchor,Jl=Zo(hs.to(),is.head));var Dl=we.ranges.slice(0);Dl[Ee]=ru(a,new ka(Mt(oe,Jl),Pl)),un(oe,Xi(a,Dl,Ee),Ue)}}var tn=z.wrapper.getBoundingClientRect(),Qn=0;function gr(ua){var Ua=++Qn,Si=Ns(a,ua,!0,b.unit=="rectangle");if(Si)if(Rr(Si,Bt)!=0){a.curOp.focus=Ae(),sn(Si);var li=re(z,oe);(Si.line>=li.to||Si.line<li.from)&&setTimeout(kr(a,function(){Qn==Ua&&gr(ua)}),150)}else{var Co=ua.clientY<tn.top?-20:ua.clientY>tn.bottom?20:0;Co&&setTimeout(kr(a,function(){Qn==Ua&&(z.scroller.scrollTop+=Co,gr(ua))}),50)}}function Hr(ua){a.state.selectingText=!1,Qn=1/0,ua&&(ha(ua),z.input.focus()),Vr(z.wrapper.ownerDocument,"mousemove",fa),Vr(z.wrapper.ownerDocument,"mouseup",Ra),oe.history.lastSelOrigin=null}var fa=kr(a,function(ua){ua.buttons===0||!ir(ua)?Hr(ua):gr(ua)}),Ra=kr(a,Hr);a.state.selectingText=Ra,rr(z.wrapper.ownerDocument,"mousemove",fa),rr(z.wrapper.ownerDocument,"mouseup",Ra)}function ru(a,y){var x=y.anchor,b=y.head,z=Qt(a.doc,x.line);if(Rr(x,b)==0&&x.sticky==b.sticky)return y;var oe=ra(z);if(!oe)return y;var de=Fn(oe,x.ch,x.sticky),Ee=oe[de];if(Ee.from!=x.ch&&Ee.to!=x.ch)return y;var we=de+(Ee.from==x.ch==(Ee.level!=1)?0:1);if(we==0||we==oe.length)return y;var je;if(b.line!=x.line)je=(b.line-x.line)*(a.doc.direction=="ltr"?1:-1)>0;else{var yt=Fn(oe,b.ch,b.sticky),Bt=yt-de||(b.ch-x.ch)*(Ee.level==1?-1:1);yt==we-1||yt==we?je=Bt<0:je=Bt>0}var sn=oe[we+(je?-1:0)],tn=je==(sn.level==1),Qn=tn?sn.from:sn.to,gr=tn?"after":"before";return x.ch==Qn&&x.sticky==gr?y:new ka(new Mn(x.line,Qn,gr),b)}function Wl(a,y,x,b){var z,oe;if(y.touches)z=y.touches[0].clientX,oe=y.touches[0].clientY;else try{z=y.clientX,oe=y.clientY}catch(sn){return!1}if(z>=Math.floor(a.display.gutters.getBoundingClientRect().right))return!1;b&&ha(y);var de=a.display,Ee=de.lineDiv.getBoundingClientRect();if(oe>Ee.bottom||!Jn(a,x))return Ni(y);oe-=Ee.top-de.viewOffset;for(var we=0;we<a.display.gutterSpecs.length;++we){var je=de.gutters.childNodes[we];if(je&&je.getBoundingClientRect().right>=z){var yt=Xa(a.doc,oe),Bt=a.display.gutterSpecs[we];return xr(a,x,a,yt,Bt.className,y),Ni(y)}}}function Qs(a,y){return Wl(a,y,"gutterClick",!0)}function pu(a,y){Ci(a.display,y)||Lu(a,y)||Dn(a,y,"contextmenu")||qe||a.display.input.onContextMenu(y)}function Lu(a,y){return Jn(a,"gutterContextMenu")?Wl(a,y,"gutterContextMenu",!1):!1}function ic(a){a.display.wrapper.className=a.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+a.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Ys(a)}var Qu={toString:function(){return"CodeMirror.Init"}},Ec={},Ru={};function Nc(a){var y=a.optionHandlers;function x(b,z,oe,de){a.defaults[b]=z,oe&&(y[b]=de?function(Ee,we,je){je!=Qu&&oe(Ee,we,je)}:oe)}a.defineOption=x,a.Init=Qu,x("value","",function(b,z){return b.setValue(z)},!0),x("mode",null,function(b,z){b.doc.modeOption=z,go(b)},!0),x("indentUnit",2,go,!0),x("indentWithTabs",!1),x("smartIndent",!0),x("tabSize",4,function(b){Lr(b),Ys(b),Ol(b)},!0),x("lineSeparator",null,function(b,z){if(b.doc.lineSep=z,!!z){var oe=[],de=b.doc.first;b.doc.iter(function(we){for(var je=0;;){var yt=we.text.indexOf(z,je);if(yt==-1)break;je=yt+z.length,oe.push(Mn(de,yt))}de++});for(var Ee=oe.length-1;Ee>=0;Ee--)tr(b.doc,z,oe[Ee],Mn(oe[Ee].line,oe[Ee].ch+z.length))}}),x("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(b,z,oe){b.state.specialChars=new RegExp(z.source+(z.test(" ")?"":"| "),"g"),oe!=Qu&&b.refresh()}),x("specialCharPlaceholder",uo,function(b){return b.refresh()},!0),x("electricChars",!0),x("inputStyle",Be?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),x("spellcheck",!1,function(b,z){return b.getInputField().spellcheck=z},!0),x("autocorrect",!1,function(b,z){return b.getInputField().autocorrect=z},!0),x("autocapitalize",!1,function(b,z){return b.getInputField().autocapitalize=z},!0),x("rtlMoveVisually",!Ke),x("wholeLineUpdateBefore",!0),x("theme","default",function(b){ic(b),xi(b)},!0),x("keyMap","default",function(b,z,oe){var de=Rl(z),Ee=oe!=Qu&&Rl(oe);Ee&&Ee.detach&&Ee.detach(b,de),de.attach&&de.attach(b,Ee||null)}),x("extraKeys",null),x("configureMouse",null),x("lineWrapping",!1,Mc,!0),x("gutters",[],function(b,z){b.display.gutterSpecs=Oi(z,b.options.lineNumbers),xi(b)},!0),x("fixedGutter",!0,function(b,z){b.display.gutters.style.left=z?Nu(b.display)+"px":"0",b.refresh()},!0),x("coverGutterNextToScrollbar",!1,function(b){return Un(b)},!0),x("scrollbarStyle","native",function(b){Bn(b),Un(b),b.display.scrollbars.setScrollTop(b.doc.scrollTop),b.display.scrollbars.setScrollLeft(b.doc.scrollLeft)},!0),x("lineNumbers",!1,function(b,z){b.display.gutterSpecs=Oi(b.options.gutters,z),xi(b)},!0),x("firstLineNumber",1,xi,!0),x("lineNumberFormatter",function(b){return b},xi,!0),x("showCursorWhenSelecting",!1,$s,!0),x("resetSelectionOnContextMenu",!0),x("lineWiseCopyCut",!0),x("pasteLinesPerSelection",!0),x("selectionsMayTouch",!1),x("readOnly",!1,function(b,z){z=="nocursor"&&(eu(b),b.display.input.blur()),b.display.input.readOnlyChanged(z)}),x("screenReaderLabel",null,function(b,z){z=z===""?null:z,b.display.input.screenReaderLabelChanged(z)}),x("disableInput",!1,function(b,z){z||b.display.input.reset()},!0),x("dragDrop",!0,Oc),x("allowDropFileTypes",null),x("cursorBlinkRate",530),x("cursorScrollMargin",0),x("cursorHeight",1,$s,!0),x("singleCursorHeightPerLine",!0,$s,!0),x("workTime",100),x("workDelay",100),x("flattenSpans",!0,Lr,!0),x("addModeClass",!1,Lr,!0),x("pollInterval",100),x("undoDepth",200,function(b,z){return b.doc.history.undoDepth=z}),x("historyEventDelay",1250),x("viewportMargin",10,function(b){return b.refresh()},!0),x("maxHighlightLength",1e4,Lr,!0),x("moveInputWithCursor",!0,function(b,z){z||b.display.input.resetPosition()}),x("tabindex",null,function(b,z){return b.display.input.getField().tabIndex=z||""}),x("autofocus",null),x("direction","ltr",function(b,z){return b.doc.setDirection(z)},!0),x("phrases",null)}function Oc(a,y,x){var b=x&&x!=Qu;if(!y!=!b){var z=a.display.dragFunctions,oe=y?rr:Vr;oe(a.display.scroller,"dragstart",z.start),oe(a.display.scroller,"dragenter",z.enter),oe(a.display.scroller,"dragover",z.over),oe(a.display.scroller,"dragleave",z.leave),oe(a.display.scroller,"drop",z.drop)}}function Mc(a){a.options.lineWrapping?(tt(a.display.wrapper,"CodeMirror-wrap"),a.display.sizer.style.minWidth="",a.display.sizerWidth=null):(wt(a.display.wrapper,"CodeMirror-wrap"),fr(a)),Su(a),Ol(a),Ys(a),setTimeout(function(){return Un(a)},100)}function gl(a,y){var x=this;if(!(this instanceof gl))return new gl(a,y);this.options=y=y?xt(y):{},xt(Ec,y,!1);var b=y.value;typeof b=="string"?b=new wa(b,y.mode,null,y.lineSeparator,y.direction):y.mode&&(b.modeOption=y.mode),this.doc=b;var z=new gl.inputStyles[y.inputStyle](this),oe=this.display=new io(a,b,z,y);oe.wrapper.CodeMirror=this,ic(this),y.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Bn(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new me,keySeq:null,specialChars:null},y.autofocus&&!Be&&oe.input.focus(),He&&_e<11&&setTimeout(function(){return x.display.input.reset(!0)},20),Tc(this),qi(),ar(this),this.curOp.forceUpdate=!0,Aa(this,b),y.autofocus&&!Be||this.hasFocus()?setTimeout(function(){x.hasFocus()&&!x.state.focused&&Ws(x)},20):eu(this);for(var de in Ru)Ru.hasOwnProperty(de)&&Ru[de](this,y[de],Qu);dn(this),y.finishInit&&y.finishInit(this);for(var Ee=0;Ee<oc.length;++Ee)oc[Ee](this);vr(this),ze&&y.lineWrapping&&getComputedStyle(oe.lineDiv).textRendering=="optimizelegibility"&&(oe.lineDiv.style.textRendering="auto")}gl.defaults=Ec,gl.optionHandlers=Ru;function Tc(a){var y=a.display;rr(y.scroller,"mousedown",kr(a,ji)),He&&_e<11?rr(y.scroller,"dblclick",kr(a,function(we){if(!Dn(a,we)){var je=Ns(a,we);if(!(!je||Qs(a,we)||Ci(a.display,we))){ha(we);var yt=a.findWordAt(je);gn(a.doc,yt.anchor,yt.head)}}})):rr(y.scroller,"dblclick",function(we){return Dn(a,we)||ha(we)}),rr(y.scroller,"contextmenu",function(we){return pu(a,we)}),rr(y.input.getField(),"contextmenu",function(we){y.scroller.contains(we.target)||pu(a,we)});var x,b={end:0};function z(){y.activeTouch&&(x=setTimeout(function(){return y.activeTouch=null},1e3),b=y.activeTouch,b.end=+new Date)}function oe(we){if(we.touches.length!=1)return!1;var je=we.touches[0];return je.radiusX<=1&&je.radiusY<=1}function de(we,je){if(je.left==null)return!0;var yt=je.left-we.left,Bt=je.top-we.top;return yt*yt+Bt*Bt>20*20}rr(y.scroller,"touchstart",function(we){if(!Dn(a,we)&&!oe(we)&&!Qs(a,we)){y.input.ensurePolled(),clearTimeout(x);var je=+new Date;y.activeTouch={start:je,moved:!1,prev:je-b.end<=300?b:null},we.touches.length==1&&(y.activeTouch.left=we.touches[0].pageX,y.activeTouch.top=we.touches[0].pageY)}}),rr(y.scroller,"touchmove",function(){y.activeTouch&&(y.activeTouch.moved=!0)}),rr(y.scroller,"touchend",function(we){var je=y.activeTouch;if(je&&!Ci(y,we)&&je.left!=null&&!je.moved&&new Date-je.start<300){var yt=a.coordsChar(y.activeTouch,"page"),Bt;!je.prev||de(je,je.prev)?Bt=new ka(yt,yt):!je.prev.prev||de(je,je.prev.prev)?Bt=a.findWordAt(yt):Bt=new ka(Mn(yt.line,0),Mt(a.doc,Mn(yt.line+1,0))),a.setSelection(Bt.anchor,Bt.head),a.focus(),ha(we)}z()}),rr(y.scroller,"touchcancel",z),rr(y.scroller,"scroll",function(){y.scroller.clientHeight&&(Pn(a,y.scroller.scrollTop),Tn(a,y.scroller.scrollLeft,!0),xr(a,"scroll",a))}),rr(y.scroller,"mousewheel",function(we){return fo(a,we)}),rr(y.scroller,"DOMMouseScroll",function(we){return fo(a,we)}),rr(y.wrapper,"scroll",function(){return y.wrapper.scrollTop=y.wrapper.scrollLeft=0}),y.dragFunctions={enter:function(we){Dn(a,we)||Ir(we)},over:function(we){Dn(a,we)||(ss(a,we),Ir(we))},start:function(we){return Os(a,we)},drop:kr(a,Wo),leave:function(we){Dn(a,we)||tu(a)}};var Ee=y.input.getField();rr(Ee,"keyup",function(we){return rc.call(a,we)}),rr(Ee,"keydown",kr(a,nc)),rr(Ee,"keypress",kr(a,Yu)),rr(Ee,"focus",function(we){return Ws(a,we)}),rr(Ee,"blur",function(we){return eu(a,we)})}var oc=[];gl.defineInitHook=function(a){return oc.push(a)};function Xu(a,y,x,b){var z=a.doc,oe;x==null&&(x="add"),x=="smart"&&(z.mode.indent?oe=Or(a,y).state:x="prev");var de=a.options.tabSize,Ee=Qt(z,y),we=Re(Ee.text,null,de);Ee.stateAfter&&(Ee.stateAfter=null);var je=Ee.text.match(/^\s*/)[0],yt;if(!b&&!/\S/.test(Ee.text))yt=0,x="not";else if(x=="smart"&&(yt=z.mode.indent(oe,Ee.text.slice(je.length),Ee.text),yt==it||yt>150)){if(!b)return;x="prev"}x=="prev"?y>z.first?yt=Re(Qt(z,y-1).text,null,de):yt=0:x=="add"?yt=we+a.options.indentUnit:x=="subtract"?yt=we-a.options.indentUnit:typeof x=="number"&&(yt=we+x),yt=Math.max(0,yt);var Bt="",sn=0;if(a.options.indentWithTabs)for(var tn=Math.floor(yt/de);tn;--tn)sn+=de,Bt+=" ";if(sn<yt&&(Bt+=en(yt-sn)),Bt!=je)return tr(z,Bt,Mn(y,0),Mn(y,je.length),"+input"),Ee.stateAfter=null,!0;for(var Qn=0;Qn<z.sel.ranges.length;Qn++){var gr=z.sel.ranges[Qn];if(gr.head.line==y&&gr.head.ch<je.length){var Hr=Mn(y,je.length);Ln(z,Qn,new ka(Hr,Hr));break}}}var Gs=null;function fc(a){Gs=a}function Ju(a,y,x,b,z){var oe=a.doc;a.display.shift=!1,b||(b=oe.sel);var de=+new Date-200,Ee=z=="paste"||a.state.pasteIncoming>de,we=Kr(y),je=null;if(Ee&&b.ranges.length>1)if(Gs&&Gs.text.join(`
`)==y){if(b.ranges.length%Gs.text.length==0){je=[];for(var yt=0;yt<Gs.text.length;yt++)je.push(oe.splitLines(Gs.text[yt]))}}else we.length==b.ranges.length&&a.options.pasteLinesPerSelection&&(je=Lt(we,function(fa){return[fa]}));for(var Bt=a.curOp.updateInput,sn=b.ranges.length-1;sn>=0;sn--){var tn=b.ranges[sn],Qn=tn.from(),gr=tn.to();tn.empty()&&(x&&x>0?Qn=Mn(Qn.line,Qn.ch-x):a.state.overwrite&&!Ee?gr=Mn(gr.line,Math.min(Qt(oe,gr.line).text.length,gr.ch+dt(we).length)):Ee&&Gs&&Gs.lineWise&&Gs.text.join(`
`)==we.join(`
`)&&(Qn=gr=Mn(Qn.line,0)));var Hr={from:Qn,to:gr,text:je?je[sn%je.length]:we,origin:z||(Ee?"paste":a.state.cutIncoming>de?"cut":"+input")};Gi(a.doc,Hr),Go(a,"inputRead",a,Hr)}y&&!Ee&&Cc(a,y),Tt(a),a.curOp.updateInput<2&&(a.curOp.updateInput=Bt),a.curOp.typing=!0,a.state.pasteIncoming=a.state.cutIncoming=-1}function bc(a,y){var x=a.clipboardData&&a.clipboardData.getData("Text");if(x)return a.preventDefault(),!y.isReadOnly()&&!y.options.disableInput&&Ur(y,function(){return Ju(y,x,0,null,"paste")}),!0}function Cc(a,y){if(!(!a.options.electricChars||!a.options.smartIndent))for(var x=a.doc.sel,b=x.ranges.length-1;b>=0;b--){var z=x.ranges[b];if(!(z.head.ch>100||b&&x.ranges[b-1].head.line==z.head.line)){var oe=a.getModeAt(z.head),de=!1;if(oe.electricChars){for(var Ee=0;Ee<oe.electricChars.length;Ee++)if(y.indexOf(oe.electricChars.charAt(Ee))>-1){de=Xu(a,z.head.line,"smart");break}}else oe.electricInput&&oe.electricInput.test(Qt(a.doc,z.head.line).text.slice(0,z.head.ch))&&(de=Xu(a,z.head.line,"smart"));de&&Go(a,"electricInput",a,z.head.line)}}}function xc(a){for(var y=[],x=[],b=0;b<a.doc.sel.ranges.length;b++){var z=a.doc.sel.ranges[b].head.line,oe={anchor:Mn(z,0),head:Mn(z+1,0)};x.push(oe),y.push(a.getRange(oe.anchor,oe.head))}return{text:y,ranges:x}}function wc(a,y,x,b){a.setAttribute("autocorrect",x?"":"off"),a.setAttribute("autocapitalize",b?"":"off"),a.setAttribute("spellcheck",!!y)}function Fc(){var a=Je("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),y=Je("div",[a],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return ze?a.style.width="1000px":a.setAttribute("wrap","off"),Ye&&(a.style.border="1px solid black"),wc(a),y}function Lc(a){var y=a.optionHandlers,x=a.helpers={};a.prototype={constructor:a,focus:function(){window.focus(),this.display.input.focus()},setOption:function(b,z){var oe=this.options,de=oe[b];oe[b]==z&&b!="mode"||(oe[b]=z,y.hasOwnProperty(b)&&kr(this,y[b])(this,z,de),xr(this,"optionChange",this,b))},getOption:function(b){return this.options[b]},getDoc:function(){return this.doc},addKeyMap:function(b,z){this.state.keyMaps[z?"push":"unshift"](Rl(b))},removeKeyMap:function(b){for(var z=this.state.keyMaps,oe=0;oe<z.length;++oe)if(z[oe]==b||z[oe].name==b)return z.splice(oe,1),!0},addOverlay:$r(function(b,z){var oe=b.token?b:a.getMode(this.options,b);if(oe.startState)throw new Error("Overlays may not be stateful.");pn(this.state.overlays,{mode:oe,modeSpec:b,opaque:z&&z.opaque,priority:z&&z.priority||0},function(de){return de.priority}),this.state.modeGen++,Ol(this)}),removeOverlay:$r(function(b){for(var z=this.state.overlays,oe=0;oe<z.length;++oe){var de=z[oe].modeSpec;if(de==b||typeof b=="string"&&de.name==b){z.splice(oe,1),this.state.modeGen++,Ol(this);return}}}),indentLine:$r(function(b,z,oe){typeof z!="string"&&typeof z!="number"&&(z==null?z=this.options.smartIndent?"smart":"prev":z=z?"add":"subtract"),si(this.doc,b)&&Xu(this,b,z,oe)}),indentSelection:$r(function(b){for(var z=this.doc.sel.ranges,oe=-1,de=0;de<z.length;de++){var Ee=z[de];if(Ee.empty())Ee.head.line>oe&&(Xu(this,Ee.head.line,b,!0),oe=Ee.head.line,de==this.doc.sel.primIndex&&Tt(this));else{var we=Ee.from(),je=Ee.to(),yt=Math.max(oe,we.line);oe=Math.min(this.lastLine(),je.line-(je.ch?0:1))+1;for(var Bt=yt;Bt<oe;++Bt)Xu(this,Bt,b);var sn=this.doc.sel.ranges;we.ch==0&&z.length==sn.length&&sn[de].from().ch>0&&Ln(this.doc,de,new ka(we,sn[de].to()),Le)}}}),getTokenAt:function(b,z){return Ya(this,b,z)},getLineTokens:function(b,z){return Ya(this,Mn(b),z,!0)},getTokenTypeAt:function(b){b=Mt(this.doc,b);var z=Pr(this,Qt(this.doc,b.line)),oe=0,de=(z.length-1)/2,Ee=b.ch,we;if(Ee==0)we=z[2];else for(;;){var je=oe+de>>1;if((je?z[je*2-1]:0)>=Ee)de=je;else if(z[je*2+1]<Ee)oe=je+1;else{we=z[je*2+2];break}}var yt=we?we.indexOf("overlay "):-1;return yt<0?we:yt==0?null:we.slice(0,yt-1)},getModeAt:function(b){var z=this.doc.mode;return z.innerMode?a.innerMode(z,this.getTokenAt(b).state).mode:z},getHelper:function(b,z){return this.getHelpers(b,z)[0]},getHelpers:function(b,z){var oe=[];if(!x.hasOwnProperty(z))return oe;var de=x[z],Ee=this.getModeAt(b);if(typeof Ee[z]=="string")de[Ee[z]]&&oe.push(de[Ee[z]]);else if(Ee[z])for(var we=0;we<Ee[z].length;we++){var je=de[Ee[z][we]];je&&oe.push(je)}else Ee.helperType&&de[Ee.helperType]?oe.push(de[Ee.helperType]):de[Ee.name]&&oe.push(de[Ee.name]);for(var yt=0;yt<de._global.length;yt++){var Bt=de._global[yt];Bt.pred(Ee,this)&&pt(oe,Bt.val)==-1&&oe.push(Bt.val)}return oe},getStateAfter:function(b,z){var oe=this.doc;return b=rn(oe,b==null?oe.first+oe.size-1:b),Or(this,b+1,z).state},cursorCoords:function(b,z){var oe,de=this.doc.sel.primary();return b==null?oe=de.head:typeof b=="object"?oe=Mt(this.doc,b):oe=b?de.from():de.to(),Yl(this,oe,z||"page")},charCoords:function(b,z){return ou(this,Mt(this.doc,b),z||"page")},coordsChar:function(b,z){return b=xu(this,b,z||"page"),Hl(this,b.left,b.top)},lineAtHeight:function(b,z){return b=xu(this,{top:b,left:0},z||"page").top,Xa(this.doc,b+this.display.viewOffset)},heightAtLine:function(b,z,oe){var de=!1,Ee;if(typeof b=="number"){var we=this.doc.first+this.doc.size-1;b<this.doc.first?b=this.doc.first:b>we&&(b=we,de=!0),Ee=Qt(this.doc,b)}else Ee=b;return iu(this,Ee,{top:0,left:0},z||"page",oe||de).top+(de?this.doc.height-qt(Ee):0)},defaultTextHeight:function(){return wr(this.display)},defaultCharWidth:function(){return ls(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(b,z,oe,de,Ee){var we=this.display;b=Yl(this,Mt(this.doc,b));var je=b.bottom,yt=b.left;if(z.style.position="absolute",z.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(z),we.sizer.appendChild(z),de=="over")je=b.top;else if(de=="above"||de=="near"){var Bt=Math.max(we.wrapper.clientHeight,this.doc.height),sn=Math.max(we.sizer.clientWidth,we.lineSpace.clientWidth);(de=="above"||b.bottom+z.offsetHeight>Bt)&&b.top>z.offsetHeight?je=b.top-z.offsetHeight:b.bottom+z.offsetHeight<=Bt&&(je=b.bottom),yt+z.offsetWidth>sn&&(yt=sn-z.offsetWidth)}z.style.top=je+"px",z.style.left=z.style.right="",Ee=="right"?(yt=we.sizer.clientWidth-z.offsetWidth,z.style.right="0px"):(Ee=="left"?yt=0:Ee=="middle"&&(yt=(we.sizer.clientWidth-z.offsetWidth)/2),z.style.left=yt+"px"),oe&&et(this,{left:yt,top:je,right:yt+z.offsetWidth,bottom:je+z.offsetHeight})},triggerOnKeyDown:$r(nc),triggerOnKeyPress:$r(Yu),triggerOnKeyUp:rc,triggerOnMouseDown:$r(ji),execCommand:function(b){if(ti.hasOwnProperty(b))return ti[b].call(null,this)},triggerElectric:$r(function(b){Cc(this,b)}),findPosH:function(b,z,oe,de){var Ee=1;z<0&&(Ee=-1,z=-z);for(var we=Mt(this.doc,b),je=0;je<z&&(we=pc(this.doc,we,Ee,oe,de),!we.hitSide);++je);return we},moveH:$r(function(b,z){var oe=this;this.extendSelectionsBy(function(de){return oe.display.shift||oe.doc.extend||de.empty()?pc(oe.doc,de.head,b,z,oe.options.rtlMoveVisually):b<0?de.from():de.to()},mt)}),deleteH:$r(function(b,z){var oe=this.doc.sel,de=this.doc;oe.somethingSelected()?de.replaceSelection("",null,"+delete"):dl(this,function(Ee){var we=pc(de,Ee.head,b,z,!1);return b<0?{from:we,to:Ee.head}:{from:Ee.head,to:we}})}),findPosV:function(b,z,oe,de){var Ee=1,we=de;z<0&&(Ee=-1,z=-z);for(var je=Mt(this.doc,b),yt=0;yt<z;++yt){var Bt=Yl(this,je,"div");if(we==null?we=Bt.left:Bt.left=we,je=hc(this,Bt,Ee,oe),je.hitSide)break}return je},moveV:$r(function(b,z){var oe=this,de=this.doc,Ee=[],we=!this.display.shift&&!de.extend&&de.sel.somethingSelected();if(de.extendSelectionsBy(function(yt){if(we)return b<0?yt.from():yt.to();var Bt=Yl(oe,yt.head,"div");yt.goalColumn!=null&&(Bt.left=yt.goalColumn),Ee.push(Bt.left);var sn=hc(oe,Bt,b,z);return z=="page"&&yt==de.sel.primary()&&Ft(oe,ou(oe,sn,"div").top-Bt.top),sn},mt),Ee.length)for(var je=0;je<de.sel.ranges.length;je++)de.sel.ranges[je].goalColumn=Ee[je]}),findWordAt:function(b){var z=this.doc,oe=Qt(z,b.line).text,de=b.ch,Ee=b.ch;if(oe){var we=this.getHelper(b,"wordChars");(b.sticky=="before"||Ee==oe.length)&&de?--de:++Ee;for(var je=oe.charAt(de),yt=ye(je,we)?function(Bt){return ye(Bt,we)}:/\s/.test(je)?function(Bt){return/\s/.test(Bt)}:function(Bt){return!/\s/.test(Bt)&&!ye(Bt)};de>0&&yt(oe.charAt(de-1));)--de;for(;Ee<oe.length&&yt(oe.charAt(Ee));)++Ee}return new ka(Mn(b.line,de),Mn(b.line,Ee))},toggleOverwrite:function(b){b!=null&&b==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?tt(this.display.cursorDiv,"CodeMirror-overwrite"):wt(this.display.cursorDiv,"CodeMirror-overwrite"),xr(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==Ae()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:$r(function(b,z){Ht(this,b,z)}),getScrollInfo:function(){var b=this.display.scroller;return{left:b.scrollLeft,top:b.scrollTop,height:b.scrollHeight-Il(this)-this.display.barHeight,width:b.scrollWidth-Il(this)-this.display.barWidth,clientHeight:Wi(this),clientWidth:Nl(this)}},scrollIntoView:$r(function(b,z){b==null?(b={from:this.doc.sel.primary().head,to:null},z==null&&(z=this.options.cursorScrollMargin)):typeof b=="number"?b={from:Mn(b,0),to:null}:b.from==null&&(b={from:b,to:null}),b.to||(b.to=b.from),b.margin=z||0,b.from.line!=null?mn(this,b):Gt(this,b.from,b.to,b.margin)}),setSize:$r(function(b,z){var oe=this,de=function(we){return typeof we=="number"||/^\d+$/.test(String(we))?we+"px":we};b!=null&&(this.display.wrapper.style.width=de(b)),z!=null&&(this.display.wrapper.style.height=de(z)),this.options.lineWrapping&&qs(this);var Ee=this.display.viewFrom;this.doc.iter(Ee,this.display.viewTo,function(we){if(we.widgets){for(var je=0;je<we.widgets.length;je++)if(we.widgets[je].noHScroll){Ds(oe,Ee,"widget");break}}++Ee}),this.curOp.forceUpdate=!0,xr(this,"refresh",this)}),operation:function(b){return Ur(this,b)},startOperation:function(){return ar(this)},endOperation:function(){return vr(this)},refresh:$r(function(){var b=this.display.cachedTextHeight;Ol(this),this.curOp.forceUpdate=!0,Ys(this),Ht(this,this.doc.scrollLeft,this.doc.scrollTop),vi(this.display),(b==null||Math.abs(b-wr(this.display))>.5||this.options.lineWrapping)&&Su(this),xr(this,"refresh",this)}),swapDoc:$r(function(b){var z=this.doc;return z.cm=null,this.state.selectingText&&this.state.selectingText(),Aa(this,b),Ys(this),this.display.input.reset(),Ht(this,b.scrollLeft,b.scrollTop),this.curOp.forceScroll=!0,Go(this,"swapDoc",this,z),z}),phrase:function(b){var z=this.options.phrases;return z&&Object.prototype.hasOwnProperty.call(z,b)?z[b]:b},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Vn(a),a.registerHelper=function(b,z,oe){x.hasOwnProperty(b)||(x[b]=a[b]={_global:[]}),x[b][z]=oe},a.registerGlobalHelper=function(b,z,oe,de){a.registerHelper(b,z,de),x[b]._global.push({pred:oe,val:de})}}function pc(a,y,x,b,z){var oe=y,de=x,Ee=Qt(a,y.line),we=z&&a.direction=="rtl"?-x:x;function je(){var Ra=y.line+we;return Ra<a.first||Ra>=a.first+a.size?!1:(y=new Mn(Ra,y.ch,y.sticky),Ee=Qt(a,Ra))}function yt(Ra){var ua;if(b=="codepoint"){var Ua=Ee.text.charCodeAt(y.ch+(b>0?0:-1));isNaN(Ua)?ua=null:ua=new Mn(y.line,Math.max(0,Math.min(Ee.text.length,y.ch+x*(Ua>=55296&&Ua<56320?2:1))),-x)}else z?ua=Br(a.cm,Ee,y,x):ua=Ps(Ee,y,x);if(ua==null)if(!Ra&&je())y=En(z,a.cm,Ee,y.line,we);else return!1;else y=ua;return!0}if(b=="char"||b=="codepoint")yt();else if(b=="column")yt(!0);else if(b=="word"||b=="group")for(var Bt=null,sn=b=="group",tn=a.cm&&a.cm.getHelper(y,"wordChars"),Qn=!0;!(x<0&&!yt(!Qn));Qn=!1){var gr=Ee.text.charAt(y.ch)||`
`,Hr=ye(gr,tn)?"w":sn&&gr==`
`?"n":!sn||/\s/.test(gr)?null:"p";if(sn&&!Qn&&!Hr&&(Hr="s"),Bt&&Bt!=Hr){x<0&&(x=1,yt(),y.sticky="after");break}if(Hr&&(Bt=Hr),x>0&&!yt(!Qn))break}var fa=lr(a,y,oe,de,!0);return jn(oe,fa)&&(fa.hitSide=!0),fa}function hc(a,y,x,b){var z=a.doc,oe=y.left,de;if(b=="page"){var Ee=Math.min(a.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),we=Math.max(Ee-.5*wr(a.display),3);de=(x>0?y.bottom:y.top)+x*we}else b=="line"&&(de=x>0?y.bottom+3:y.top-3);for(var je;je=Hl(a,oe,de),!!je.outside;){if(x<0?de<=0:de>=z.height){je.hitSide=!0;break}de+=x*5}return je}var el=function(a){this.cm=a,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new me,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};el.prototype.init=function(a){var y=this,x=this,b=x.cm,z=x.div=a.lineDiv;wc(z,b.options.spellcheck,b.options.autocorrect,b.options.autocapitalize);function oe(Ee){for(var we=Ee.target;we;we=we.parentNode){if(we==z)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(we.className))break}return!1}rr(z,"paste",function(Ee){!oe(Ee)||Dn(b,Ee)||bc(Ee,b)||_e<=11&&setTimeout(kr(b,function(){return y.updateFromDOM()}),20)}),rr(z,"compositionstart",function(Ee){y.composing={data:Ee.data,done:!1}}),rr(z,"compositionupdate",function(Ee){y.composing||(y.composing={data:Ee.data,done:!1})}),rr(z,"compositionend",function(Ee){y.composing&&(Ee.data!=y.composing.data&&y.readFromDOMSoon(),y.composing.done=!0)}),rr(z,"touchstart",function(){return x.forceCompositionEnd()}),rr(z,"input",function(){y.composing||y.readFromDOMSoon()});function de(Ee){if(!(!oe(Ee)||Dn(b,Ee))){if(b.somethingSelected())fc({lineWise:!1,text:b.getSelections()}),Ee.type=="cut"&&b.replaceSelection("",null,"cut");else if(b.options.lineWiseCopyCut){var we=xc(b);fc({lineWise:!0,text:we.text}),Ee.type=="cut"&&b.operation(function(){b.setSelections(we.ranges,0,Le),b.replaceSelection("",null,"cut")})}else return;if(Ee.clipboardData){Ee.clipboardData.clearData();var je=Gs.text.join(`
`);if(Ee.clipboardData.setData("Text",je),Ee.clipboardData.getData("Text")==je){Ee.preventDefault();return}}var yt=Fc(),Bt=yt.firstChild;b.display.lineSpace.insertBefore(yt,b.display.lineSpace.firstChild),Bt.value=Gs.text.join(`
`);var sn=document.activeElement;lt(Bt),setTimeout(function(){b.display.lineSpace.removeChild(yt),sn.focus(),sn==z&&x.showPrimarySelection()},50)}}rr(z,"copy",de),rr(z,"cut",de)},el.prototype.screenReaderLabelChanged=function(a){a?this.div.setAttribute("aria-label",a):this.div.removeAttribute("aria-label")},el.prototype.prepareSelection=function(){var a=su(this.cm,!1);return a.focus=document.activeElement==this.div,a},el.prototype.showSelection=function(a,y){!a||!this.cm.display.view.length||((a.focus||y)&&this.showPrimarySelection(),this.showMultipleSelections(a))},el.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},el.prototype.showPrimarySelection=function(){var a=this.getSelection(),y=this.cm,x=y.doc.sel.primary(),b=x.from(),z=x.to();if(y.display.viewTo==y.display.viewFrom||b.line>=y.display.viewTo||z.line<y.display.viewFrom){a.removeAllRanges();return}var oe=lc(y,a.anchorNode,a.anchorOffset),de=lc(y,a.focusNode,a.focusOffset);if(!(oe&&!oe.bad&&de&&!de.bad&&Rr(Ct(oe,de),b)==0&&Rr(Zo(oe,de),z)==0)){var Ee=y.display.view,we=b.line>=y.display.viewFrom&&qu(y,b)||{node:Ee[0].measure.map[2],offset:0},je=z.line<y.display.viewTo&&qu(y,z);if(!je){var yt=Ee[Ee.length-1].measure,Bt=yt.maps?yt.maps[yt.maps.length-1]:yt.map;je={node:Bt[Bt.length-1],offset:Bt[Bt.length-2]-Bt[Bt.length-3]}}if(!we||!je){a.removeAllRanges();return}var sn=a.rangeCount&&a.getRangeAt(0),tn;try{tn=Se(we.node,we.offset,je.offset,je.node)}catch(Qn){}tn&&(!E&&y.state.focused?(a.collapse(we.node,we.offset),tn.collapsed||(a.removeAllRanges(),a.addRange(tn))):(a.removeAllRanges(),a.addRange(tn)),sn&&a.anchorNode==null?a.addRange(sn):E&&this.startGracePeriod()),this.rememberSelection()}},el.prototype.startGracePeriod=function(){var a=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){a.gracePeriod=!1,a.selectionChanged()&&a.cm.operation(function(){return a.cm.curOp.selectionChanged=!0})},20)},el.prototype.showMultipleSelections=function(a){ct(this.cm.display.cursorDiv,a.cursors),ct(this.cm.display.selectionDiv,a.selection)},el.prototype.rememberSelection=function(){var a=this.getSelection();this.lastAnchorNode=a.anchorNode,this.lastAnchorOffset=a.anchorOffset,this.lastFocusNode=a.focusNode,this.lastFocusOffset=a.focusOffset},el.prototype.selectionInEditor=function(){var a=this.getSelection();if(!a.rangeCount)return!1;var y=a.getRangeAt(0).commonAncestorContainer;return Ve(this.div,y)},el.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},el.prototype.blur=function(){this.div.blur()},el.prototype.getField=function(){return this.div},el.prototype.supportsTouch=function(){return!0},el.prototype.receivedFocus=function(){var a=this;this.selectionInEditor()?this.pollSelection():Ur(this.cm,function(){return a.cm.curOp.selectionChanged=!0});function y(){a.cm.state.focused&&(a.pollSelection(),a.polling.set(a.cm.options.pollInterval,y))}this.polling.set(this.cm.options.pollInterval,y)},el.prototype.selectionChanged=function(){var a=this.getSelection();return a.anchorNode!=this.lastAnchorNode||a.anchorOffset!=this.lastAnchorOffset||a.focusNode!=this.lastFocusNode||a.focusOffset!=this.lastFocusOffset},el.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var a=this.getSelection(),y=this.cm;if(Ne&&Fe&&this.cm.display.gutterSpecs.length&&Rc(a.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var x=lc(y,a.anchorNode,a.anchorOffset),b=lc(y,a.focusNode,a.focusOffset);x&&b&&Ur(y,function(){un(y.doc,vo(x,b),Le),(x.bad||b.bad)&&(y.curOp.selectionChanged=!0)})}}},el.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var a=this.cm,y=a.display,x=a.doc.sel.primary(),b=x.from(),z=x.to();if(b.ch==0&&b.line>a.firstLine()&&(b=Mn(b.line-1,Qt(a.doc,b.line-1).length)),z.ch==Qt(a.doc,z.line).text.length&&z.line<a.lastLine()&&(z=Mn(z.line+1,0)),b.line<y.viewFrom||z.line>y.viewTo-1)return!1;var oe,de,Ee;b.line==y.viewFrom||(oe=il(a,b.line))==0?(de=qr(y.view[0].line),Ee=y.view[0].node):(de=qr(y.view[oe].line),Ee=y.view[oe-1].node.nextSibling);var we=il(a,z.line),je,yt;if(we==y.view.length-1?(je=y.viewTo-1,yt=y.lineDiv.lastChild):(je=qr(y.view[we+1].line)-1,yt=y.view[we+1].node.previousSibling),!Ee)return!1;for(var Bt=a.doc.splitLines(Sc(a,Ee,yt,de,je)),sn=_n(a.doc,Mn(de,0),Mn(je,Qt(a.doc,je).text.length));Bt.length>1&&sn.length>1;)if(dt(Bt)==dt(sn))Bt.pop(),sn.pop(),je--;else if(Bt[0]==sn[0])Bt.shift(),sn.shift(),de++;else break;for(var tn=0,Qn=0,gr=Bt[0],Hr=sn[0],fa=Math.min(gr.length,Hr.length);tn<fa&&gr.charCodeAt(tn)==Hr.charCodeAt(tn);)++tn;for(var Ra=dt(Bt),ua=dt(sn),Ua=Math.min(Ra.length-(Bt.length==1?tn:0),ua.length-(sn.length==1?tn:0));Qn<Ua&&Ra.charCodeAt(Ra.length-Qn-1)==ua.charCodeAt(ua.length-Qn-1);)++Qn;if(Bt.length==1&&sn.length==1&&de==b.line)for(;tn&&tn>b.ch&&Ra.charCodeAt(Ra.length-Qn-1)==ua.charCodeAt(ua.length-Qn-1);)tn--,Qn++;Bt[Bt.length-1]=Ra.slice(0,Ra.length-Qn).replace(/^\u200b+/,""),Bt[0]=Bt[0].slice(tn).replace(/\u200b+$/,"");var Si=Mn(de,tn),li=Mn(je,sn.length?dt(sn).length-Qn:0);if(Bt.length>1||Bt[0]||Rr(Si,li))return tr(a.doc,Bt,Si,li,"+input"),!0},el.prototype.ensurePolled=function(){this.forceCompositionEnd()},el.prototype.reset=function(){this.forceCompositionEnd()},el.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},el.prototype.readFromDOMSoon=function(){var a=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(a.readDOMTimeout=null,a.composing)if(a.composing.done)a.composing=null;else return;a.updateFromDOM()},80))},el.prototype.updateFromDOM=function(){var a=this;(this.cm.isReadOnly()||!this.pollContent())&&Ur(this.cm,function(){return Ol(a.cm)})},el.prototype.setUneditable=function(a){a.contentEditable="false"},el.prototype.onKeyPress=function(a){a.charCode==0||this.composing||(a.preventDefault(),this.cm.isReadOnly()||kr(this.cm,Ju)(this.cm,String.fromCharCode(a.charCode==null?a.keyCode:a.charCode),0))},el.prototype.readOnlyChanged=function(a){this.div.contentEditable=String(a!="nocursor")},el.prototype.onContextMenu=function(){},el.prototype.resetPosition=function(){},el.prototype.needsContentAttribute=!0;function qu(a,y){var x=js(a,y.line);if(!x||x.hidden)return null;var b=Qt(a.doc,y.line),z=sl(x,b,y.line),oe=ra(b,a.doc.direction),de="left";if(oe){var Ee=Fn(oe,y.ch);de=Ee%2?"right":"left"}var we=Es(z.map,y.ch,de);return we.offset=we.collapse=="right"?we.end:we.start,we}function Rc(a){for(var y=a;y;y=y.parentNode)if(/CodeMirror-gutter-wrapper/.test(y.className))return!0;return!1}function hu(a,y){return y&&(a.bad=!0),a}function Sc(a,y,x,b,z){var oe="",de=!1,Ee=a.doc.lineSeparator(),we=!1;function je(tn){return function(Qn){return Qn.id==tn}}function yt(){de&&(oe+=Ee,we&&(oe+=Ee),de=we=!1)}function Bt(tn){tn&&(yt(),oe+=tn)}function sn(tn){if(tn.nodeType==1){var Qn=tn.getAttribute("cm-text");if(Qn){Bt(Qn);return}var gr=tn.getAttribute("cm-marker"),Hr;if(gr){var fa=a.findMarks(Mn(b,0),Mn(z+1,0),je(+gr));fa.length&&(Hr=fa[0].find(0))&&Bt(_n(a.doc,Hr.from,Hr.to).join(Ee));return}if(tn.getAttribute("contenteditable")=="false")return;var Ra=/^(pre|div|p|li|table|br)$/i.test(tn.nodeName);if(!/^br$/i.test(tn.nodeName)&&tn.textContent.length==0)return;Ra&&yt();for(var ua=0;ua<tn.childNodes.length;ua++)sn(tn.childNodes[ua]);/^(pre|p)$/i.test(tn.nodeName)&&(we=!0),Ra&&(de=!0)}else tn.nodeType==3&&Bt(tn.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;sn(y),y!=x;)y=y.nextSibling,we=!1;return oe}function lc(a,y,x){var b;if(y==a.display.lineDiv){if(b=a.display.lineDiv.childNodes[x],!b)return hu(a.clipPos(Mn(a.display.viewTo-1)),!0);y=null,x=0}else for(b=y;;b=b.parentNode){if(!b||b==a.display.lineDiv)return null;if(b.parentNode&&b.parentNode==a.display.lineDiv)break}for(var z=0;z<a.display.view.length;z++){var oe=a.display.view[z];if(oe.node==b)return Zc(oe,y,x)}}function Zc(a,y,x){var b=a.text.firstChild,z=!1;if(!y||!Ve(b,y))return hu(Mn(qr(a.line),0),!0);if(y==b&&(z=!0,y=b.childNodes[x],x=0,!y)){var oe=a.rest?dt(a.rest):a.line;return hu(Mn(qr(oe),oe.text.length),z)}var de=y.nodeType==3?y:null,Ee=y;for(!de&&y.childNodes.length==1&&y.firstChild.nodeType==3&&(de=y.firstChild,x&&(x=de.nodeValue.length));Ee.parentNode!=b;)Ee=Ee.parentNode;var we=a.measure,je=we.maps;function yt(Hr,fa,Ra){for(var ua=-1;ua<(je?je.length:0);ua++)for(var Ua=ua<0?we.map:je[ua],Si=0;Si<Ua.length;Si+=3){var li=Ua[Si+2];if(li==Hr||li==fa){var Co=qr(ua<0?a.line:a.rest[ua]),fl=Ua[Si]+Ra;return(Ra<0||li!=Hr)&&(fl=Ua[Si+(Ra?1:0)]),Mn(Co,fl)}}}var Bt=yt(de,Ee,x);if(Bt)return hu(Bt,z);for(var sn=Ee.nextSibling,tn=de?de.nodeValue.length-x:0;sn;sn=sn.nextSibling){if(Bt=yt(sn,sn.firstChild,0),Bt)return hu(Mn(Bt.line,Bt.ch-tn),z);tn+=sn.textContent.length}for(var Qn=Ee.previousSibling,gr=x;Qn;Qn=Qn.previousSibling){if(Bt=yt(Qn,Qn.firstChild,-1),Bt)return hu(Mn(Bt.line,Bt.ch+gr),z);gr+=Qn.textContent.length}}var Zl=function(a){this.cm=a,this.prevInput="",this.pollingFast=!1,this.polling=new me,this.hasSelection=!1,this.composing=null};Zl.prototype.init=function(a){var y=this,x=this,b=this.cm;this.createField(a);var z=this.textarea;a.wrapper.insertBefore(this.wrapper,a.wrapper.firstChild),Ye&&(z.style.width="0px"),rr(z,"input",function(){He&&_e>=9&&y.hasSelection&&(y.hasSelection=null),x.poll()}),rr(z,"paste",function(de){Dn(b,de)||bc(de,b)||(b.state.pasteIncoming=+new Date,x.fastPoll())});function oe(de){if(!Dn(b,de)){if(b.somethingSelected())fc({lineWise:!1,text:b.getSelections()});else if(b.options.lineWiseCopyCut){var Ee=xc(b);fc({lineWise:!0,text:Ee.text}),de.type=="cut"?b.setSelections(Ee.ranges,null,Le):(x.prevInput="",z.value=Ee.text.join(`
`),lt(z))}else return;de.type=="cut"&&(b.state.cutIncoming=+new Date)}}rr(z,"cut",oe),rr(z,"copy",oe),rr(a.scroller,"paste",function(de){if(!(Ci(a,de)||Dn(b,de))){if(!z.dispatchEvent){b.state.pasteIncoming=+new Date,x.focus();return}var Ee=new Event("paste");Ee.clipboardData=de.clipboardData,z.dispatchEvent(Ee)}}),rr(a.lineSpace,"selectstart",function(de){Ci(a,de)||ha(de)}),rr(z,"compositionstart",function(){var de=b.getCursor("from");x.composing&&x.composing.range.clear(),x.composing={start:de,range:b.markText(de,b.getCursor("to"),{className:"CodeMirror-composing"})}}),rr(z,"compositionend",function(){x.composing&&(x.poll(),x.composing.range.clear(),x.composing=null)})},Zl.prototype.createField=function(a){this.wrapper=Fc(),this.textarea=this.wrapper.firstChild},Zl.prototype.screenReaderLabelChanged=function(a){a?this.textarea.setAttribute("aria-label",a):this.textarea.removeAttribute("aria-label")},Zl.prototype.prepareSelection=function(){var a=this.cm,y=a.display,x=a.doc,b=su(a);if(a.options.moveInputWithCursor){var z=Yl(a,x.sel.primary().head,"div"),oe=y.wrapper.getBoundingClientRect(),de=y.lineDiv.getBoundingClientRect();b.teTop=Math.max(0,Math.min(y.wrapper.clientHeight-10,z.top+de.top-oe.top)),b.teLeft=Math.max(0,Math.min(y.wrapper.clientWidth-10,z.left+de.left-oe.left))}return b},Zl.prototype.showSelection=function(a){var y=this.cm,x=y.display;ct(x.cursorDiv,a.cursors),ct(x.selectionDiv,a.selection),a.teTop!=null&&(this.wrapper.style.top=a.teTop+"px",this.wrapper.style.left=a.teLeft+"px")},Zl.prototype.reset=function(a){if(!(this.contextMenuPending||this.composing)){var y=this.cm;if(y.somethingSelected()){this.prevInput="";var x=y.getSelection();this.textarea.value=x,y.state.focused&&lt(this.textarea),He&&_e>=9&&(this.hasSelection=x)}else a||(this.prevInput=this.textarea.value="",He&&_e>=9&&(this.hasSelection=null))}},Zl.prototype.getField=function(){return this.textarea},Zl.prototype.supportsTouch=function(){return!1},Zl.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!Be||Ae()!=this.textarea))try{this.textarea.focus()}catch(a){}},Zl.prototype.blur=function(){this.textarea.blur()},Zl.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Zl.prototype.receivedFocus=function(){this.slowPoll()},Zl.prototype.slowPoll=function(){var a=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){a.poll(),a.cm.state.focused&&a.slowPoll()})},Zl.prototype.fastPoll=function(){var a=!1,y=this;y.pollingFast=!0;function x(){var b=y.poll();!b&&!a?(a=!0,y.polling.set(60,x)):(y.pollingFast=!1,y.slowPoll())}y.polling.set(20,x)},Zl.prototype.poll=function(){var a=this,y=this.cm,x=this.textarea,b=this.prevInput;if(this.contextMenuPending||!y.state.focused||qa(x)&&!b&&!this.composing||y.isReadOnly()||y.options.disableInput||y.state.keySeq)return!1;var z=x.value;if(z==b&&!y.somethingSelected())return!1;if(He&&_e>=9&&this.hasSelection===z||be&&/[\uf700-\uf7ff]/.test(z))return y.display.input.reset(),!1;if(y.doc.sel==y.display.selForContextMenu){var oe=z.charCodeAt(0);if(oe==8203&&!b&&(b="\u200B"),oe==8666)return this.reset(),this.cm.execCommand("undo")}for(var de=0,Ee=Math.min(b.length,z.length);de<Ee&&b.charCodeAt(de)==z.charCodeAt(de);)++de;return Ur(y,function(){Ju(y,z.slice(de),b.length-de,null,a.composing?"*compose":null),z.length>1e3||z.indexOf(`
`)>-1?x.value=a.prevInput="":a.prevInput=z,a.composing&&(a.composing.range.clear(),a.composing.range=y.markText(a.composing.start,y.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Zl.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Zl.prototype.onKeyPress=function(){He&&_e>=9&&(this.hasSelection=null),this.fastPoll()},Zl.prototype.onContextMenu=function(a){var y=this,x=y.cm,b=x.display,z=y.textarea;y.contextMenuPending&&y.contextMenuPending();var oe=Ns(x,a),de=b.scroller.scrollTop;if(!oe||We)return;var Ee=x.options.resetSelectionOnContextMenu;Ee&&x.doc.sel.contains(oe)==-1&&kr(x,un)(x.doc,vo(oe),Le);var we=z.style.cssText,je=y.wrapper.style.cssText,yt=y.wrapper.offsetParent.getBoundingClientRect();y.wrapper.style.cssText="position: static",z.style.cssText=`position: absolute; width: 30px; height: 30px;
top: `+(a.clientY-yt.top-5)+"px; left: "+(a.clientX-yt.left-5)+`px;
z-index: 1000; background: `+(He?"rgba(255, 255, 255, .05)":"transparent")+`;
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var Bt;ze&&(Bt=window.scrollY),b.input.focus(),ze&&window.scrollTo(null,Bt),b.input.reset(),x.somethingSelected()||(z.value=y.prevInput=" "),y.contextMenuPending=tn,b.selForContextMenu=x.doc.sel,clearTimeout(b.detectingSelectAll);function sn(){if(z.selectionStart!=null){var gr=x.somethingSelected(),Hr="\u200B"+(gr?z.value:"");z.value="\u21DA",z.value=Hr,y.prevInput=gr?"":"\u200B",z.selectionStart=1,z.selectionEnd=Hr.length,b.selForContextMenu=x.doc.sel}}function tn(){if(y.contextMenuPending==tn&&(y.contextMenuPending=!1,y.wrapper.style.cssText=je,z.style.cssText=we,He&&_e<9&&b.scrollbars.setScrollTop(b.scroller.scrollTop=de),z.selectionStart!=null)){(!He||He&&_e<9)&&sn();var gr=0,Hr=function(){b.selForContextMenu==x.doc.sel&&z.selectionStart==0&&z.selectionEnd>0&&y.prevInput=="\u200B"?kr(x,dr)(x):gr++<10?b.detectingSelectAll=setTimeout(Hr,500):(b.selForContextMenu=null,b.input.reset())};b.detectingSelectAll=setTimeout(Hr,200)}}if(He&&_e>=9&&sn(),qe){Ir(a);var Qn=function(){Vr(window,"mouseup",Qn),setTimeout(tn,20)};rr(window,"mouseup",Qn)}else setTimeout(tn,50)},Zl.prototype.readOnlyChanged=function(a){a||this.reset(),this.textarea.disabled=a=="nocursor",this.textarea.readOnly=!!a},Zl.prototype.setUneditable=function(){},Zl.prototype.needsContentAttribute=!1;function jc(a,y){if(y=y?xt(y):{},y.value=a.value,!y.tabindex&&a.tabIndex&&(y.tabindex=a.tabIndex),!y.placeholder&&a.placeholder&&(y.placeholder=a.placeholder),y.autofocus==null){var x=Ae();y.autofocus=x==a||a.getAttribute("autofocus")!=null&&x==document.body}function b(){a.value=Ee.getValue()}var z;if(a.form&&(rr(a.form,"submit",b),!y.leaveSubmitMethodAlone)){var oe=a.form;z=oe.submit;try{var de=oe.submit=function(){b(),oe.submit=z,oe.submit(),oe.submit=de}}catch(we){}}y.finishInit=function(we){we.save=b,we.getTextArea=function(){return a},we.toTextArea=function(){we.toTextArea=isNaN,b(),a.parentNode.removeChild(we.getWrapperElement()),a.style.display="",a.form&&(Vr(a.form,"submit",b),!y.leaveSubmitMethodAlone&&typeof a.form.submit=="function"&&(a.form.submit=z))}},a.style.display="none";var Ee=gl(function(we){return a.parentNode.insertBefore(we,a.nextSibling)},y);return Ee}function mc(a){a.off=Vr,a.on=rr,a.wheelEventPixels=zi,a.Doc=wa,a.splitLines=Kr,a.countColumn=Re,a.findColumn=Zt,a.isWordChar=pe,a.Pass=it,a.signal=xr,a.Line=cr,a.changeEnd=jo,a.scrollbarModel=pr,a.Pos=Mn,a.cmpPos=Rr,a.modes=cn,a.mimeModes=fn,a.resolveMode=Kn,a.getMode=Jt,a.modeExtensions=On,a.extendMode=hr,a.copyState=yr,a.startState=la,a.innerMode=Ar,a.commands=ti,a.keyMap=$l,a.keyName=Uo,a.isModifierKey=_l,a.lookupKey=vl,a.normalizeKeyMap=Tl,a.StringStream=Er,a.SharedTextMarker=Ho,a.TextMarker=cl,a.LineWidget=No,a.e_preventDefault=ha,a.e_stopPropagation=Ti,a.e_stop=Ir,a.addClass=tt,a.contains=Ve,a.rmClass=wt,a.keyNames=La}Nc(gl),Lc(gl);var Dc="iter insert remove copy getEditor constructor".split(" ");for(var Zu in wa.prototype)wa.prototype.hasOwnProperty(Zu)&&pt(Dc,Zu)<0&&(gl.prototype[Zu]=function(a){return function(){return a.apply(this.doc,arguments)}}(wa.prototype[Zu]));return Vn(wa),gl.inputStyles={textarea:Zl,contenteditable:el},gl.defineMode=function(a){!gl.defaults.mode&&a!="null"&&(gl.defaults.mode=a),wn.apply(this,arguments)},gl.defineMIME=nn,gl.defineMode("null",function(){return{token:function(a){return a.skipToEnd()}}}),gl.defineMIME("text/plain","null"),gl.defineExtension=function(a,y){gl.prototype[a]=y},gl.defineDocExtension=function(a,y){wa.prototype[a]=y},gl.fromTextArea=jc,mc(gl),gl.version="5.58.2",gl})},25419:function(It,kt,ne){(function(E){E(ne(89780),ne(15525),ne(98101))})(function(E){"use strict";E.defineMode("markdown",function(ve,Pe){var Te=E.getMode(ve,"text/html"),He=Te.name=="null";function _e(Re){if(E.findModeByName){var me=E.findModeByName(Re);me&&(Re=me.mime||me.mimes[0])}var pt=E.getMode(ve,Re);return pt.name=="null"?null:pt}Pe.highlightFormatting===void 0&&(Pe.highlightFormatting=!1),Pe.maxBlockquoteDepth===void 0&&(Pe.maxBlockquoteDepth=0),Pe.taskLists===void 0&&(Pe.taskLists=!1),Pe.strikethrough===void 0&&(Pe.strikethrough=!1),Pe.emoji===void 0&&(Pe.emoji=!1),Pe.fencedCodeBlockHighlighting===void 0&&(Pe.fencedCodeBlockHighlighting=!0),Pe.fencedCodeBlockDefaultMode===void 0&&(Pe.fencedCodeBlockDefaultMode="text/plain"),Pe.xml===void 0&&(Pe.xml=!0),Pe.tokenTypeOverrides===void 0&&(Pe.tokenTypeOverrides={});var ze={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var nt in ze)ze.hasOwnProperty(nt)&&Pe.tokenTypeOverrides[nt]&&(ze[nt]=Pe.tokenTypeOverrides[nt]);var Fe=/^([*\-_])(?:\s*\1){2,}\s*$/,We=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,Xe=/^\[(x| )\](?=\s)/i,$e=Pe.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,vt=/^ {0,3}(?:\={1,}|-{2,})\s*$/,Ye=/^[^#!\[\]*_\\<>` "'(~:]+/,Ne=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,Be=/^\s*\[[^\]]+?\]:.*$/,be=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,Ie=" ";function Ke(Re,me,pt){return me.f=me.inline=pt,pt(Re,me)}function at(Re,me,pt){return me.f=me.block=pt,pt(Re,me)}function fe(Re){return!Re||!/\S/.test(Re.string)}function qe(Re){if(Re.linkTitle=!1,Re.linkHref=!1,Re.linkText=!1,Re.em=!1,Re.strong=!1,Re.strikethrough=!1,Re.quote=0,Re.indentedCode=!1,Re.f==wt){var me=He;if(!me){var pt=E.innerMode(Te,Re.htmlState);me=pt.mode.name=="xml"&&pt.state.tagStart===null&&!pt.state.context&&pt.state.tokenize.isInText}me&&(Re.f=ut,Re.block=st,Re.htmlState=null)}return Re.trailingSpace=0,Re.trailingSpaceNewLine=!1,Re.prevLine=Re.thisLine,Re.thisLine={stream:null},null}function st(Re,me){var pt=Re.column()===me.indentation,bt=fe(me.prevLine.stream),it=me.indentedCode,Le=me.prevLine.hr,Ue=me.list!==!1,mt=(me.listStack[me.listStack.length-1]||0)+3;me.indentedCode=!1;var Zt=me.indentation;if(me.indentationDiff===null&&(me.indentationDiff=me.indentation,Ue)){for(me.list=null;Zt<me.listStack[me.listStack.length-1];)me.listStack.pop(),me.listStack.length?me.indentation=me.listStack[me.listStack.length-1]:me.list=!1;me.list!==!1&&(me.indentationDiff=Zt-me.listStack[me.listStack.length-1])}var Pt=!bt&&!Le&&!me.prevLine.header&&(!Ue||!it)&&!me.prevLine.fencedCodeEnd,en=(me.list===!1||Le||bt)&&me.indentation<=mt&&Re.match(Fe),dt=null;if(me.indentationDiff>=4&&(it||me.prevLine.fencedCodeEnd||me.prevLine.header||bt))return Re.skipToEnd(),me.indentedCode=!0,ze.code;if(Re.eatSpace())return null;if(pt&&me.indentation<=mt&&(dt=Re.match($e))&&dt[1].length<=6)return me.quote=0,me.header=dt[1].length,me.thisLine.header=!0,Pe.highlightFormatting&&(me.formatting="header"),me.f=me.inline,ct(me);if(me.indentation<=mt&&Re.eat(">"))return me.quote=pt?1:me.quote+1,Pe.highlightFormatting&&(me.formatting="quote"),Re.eatSpace(),ct(me);if(!en&&!me.setext&&pt&&me.indentation<=mt&&(dt=Re.match(We))){var Lt=dt[1]?"ol":"ul";return me.indentation=Zt+Re.current().length,me.list=!0,me.quote=0,me.listStack.push(me.indentation),me.em=!1,me.strong=!1,me.code=!1,me.strikethrough=!1,Pe.taskLists&&Re.match(Xe,!1)&&(me.taskList=!0),me.f=me.inline,Pe.highlightFormatting&&(me.formatting=["list","list-"+Lt]),ct(me)}else{if(pt&&me.indentation<=mt&&(dt=Re.match(Ne,!0)))return me.quote=0,me.fencedEndRE=new RegExp(dt[1]+"+ *$"),me.localMode=Pe.fencedCodeBlockHighlighting&&_e(dt[2]||Pe.fencedCodeBlockDefaultMode),me.localMode&&(me.localState=E.startState(me.localMode)),me.f=me.block=ft,Pe.highlightFormatting&&(me.formatting="code-block"),me.code=-1,ct(me);if(me.setext||(!Pt||!Ue)&&!me.quote&&me.list===!1&&!me.code&&!en&&!Be.test(Re.string)&&(dt=Re.lookAhead(1))&&(dt=dt.match(vt)))return me.setext?(me.header=me.setext,me.setext=0,Re.skipToEnd(),Pe.highlightFormatting&&(me.formatting="header")):(me.header=dt[0].charAt(0)=="="?1:2,me.setext=me.header),me.thisLine.header=!0,me.f=me.inline,ct(me);if(en)return Re.skipToEnd(),me.hr=!0,me.thisLine.hr=!0,ze.hr;if(Re.peek()==="[")return Ke(Re,me,Dt)}return Ke(Re,me,me.inline)}function wt(Re,me){var pt=Te.token(Re,me.htmlState);if(!He){var bt=E.innerMode(Te,me.htmlState);(bt.mode.name=="xml"&&bt.state.tagStart===null&&!bt.state.context&&bt.state.tokenize.isInText||me.md_inside&&Re.current().indexOf(">")>-1)&&(me.f=ut,me.block=st,me.htmlState=null)}return pt}function ft(Re,me){var pt=me.listStack[me.listStack.length-1]||0,bt=me.indentation<pt,it=pt+3;if(me.fencedEndRE&&me.indentation<=it&&(bt||Re.match(me.fencedEndRE))){Pe.highlightFormatting&&(me.formatting="code-block");var Le;return bt||(Le=ct(me)),me.localMode=me.localState=null,me.block=st,me.f=ut,me.fencedEndRE=null,me.code=0,me.thisLine.fencedCodeEnd=!0,bt?at(Re,me,me.block):Le}else return me.localMode?me.localMode.token(Re,me.localState):(Re.skipToEnd(),ze.code)}function ct(Re){var me=[];if(Re.formatting){me.push(ze.formatting),typeof Re.formatting=="string"&&(Re.formatting=[Re.formatting]);for(var pt=0;pt<Re.formatting.length;pt++)me.push(ze.formatting+"-"+Re.formatting[pt]),Re.formatting[pt]==="header"&&me.push(ze.formatting+"-"+Re.formatting[pt]+"-"+Re.header),Re.formatting[pt]==="quote"&&(!Pe.maxBlockquoteDepth||Pe.maxBlockquoteDepth>=Re.quote?me.push(ze.formatting+"-"+Re.formatting[pt]+"-"+Re.quote):me.push("error"))}if(Re.taskOpen)return me.push("meta"),me.length?me.join(" "):null;if(Re.taskClosed)return me.push("property"),me.length?me.join(" "):null;if(Re.linkHref?me.push(ze.linkHref,"url"):(Re.strong&&me.push(ze.strong),Re.em&&me.push(ze.em),Re.strikethrough&&me.push(ze.strikethrough),Re.emoji&&me.push(ze.emoji),Re.linkText&&me.push(ze.linkText),Re.code&&me.push(ze.code),Re.image&&me.push(ze.image),Re.imageAltText&&me.push(ze.imageAltText,"link"),Re.imageMarker&&me.push(ze.imageMarker)),Re.header&&me.push(ze.header,ze.header+"-"+Re.header),Re.quote&&(me.push(ze.quote),!Pe.maxBlockquoteDepth||Pe.maxBlockquoteDepth>=Re.quote?me.push(ze.quote+"-"+Re.quote):me.push(ze.quote+"-"+Pe.maxBlockquoteDepth)),Re.list!==!1){var bt=(Re.listStack.length-1)%3;bt?bt===1?me.push(ze.list2):me.push(ze.list3):me.push(ze.list1)}return Re.trailingSpaceNewLine?me.push("trailing-space-new-line"):Re.trailingSpace&&me.push("trailing-space-"+(Re.trailingSpace%2?"a":"b")),me.length?me.join(" "):null}function Je(Re,me){if(Re.match(Ye,!0))return ct(me)}function ut(Re,me){var pt=me.text(Re,me);if(typeof pt!="undefined")return pt;if(me.list)return me.list=null,ct(me);if(me.taskList){var bt=Re.match(Xe,!0)[1]===" ";return bt?me.taskOpen=!0:me.taskClosed=!0,Pe.highlightFormatting&&(me.formatting="task"),me.taskList=!1,ct(me)}if(me.taskOpen=!1,me.taskClosed=!1,me.header&&Re.match(/^#+$/,!0))return Pe.highlightFormatting&&(me.formatting="header"),ct(me);var it=Re.next();if(me.linkTitle){me.linkTitle=!1;var Le=it;it==="("&&(Le=")"),Le=(Le+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var Ue="^\\s*(?:[^"+Le+"\\\\]+|\\\\\\\\|\\\\.)"+Le;if(Re.match(new RegExp(Ue),!0))return ze.linkHref}if(it==="`"){var mt=me.formatting;Pe.highlightFormatting&&(me.formatting="code"),Re.eatWhile("`");var Zt=Re.current().length;if(me.code==0&&(!me.quote||Zt==1))return me.code=Zt,ct(me);if(Zt==me.code){var Pt=ct(me);return me.code=0,Pt}else return me.formatting=mt,ct(me)}else if(me.code)return ct(me);if(it==="\\"&&(Re.next(),Pe.highlightFormatting)){var en=ct(me),dt=ze.formatting+"-escape";return en?en+" "+dt:dt}if(it==="!"&&Re.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return me.imageMarker=!0,me.image=!0,Pe.highlightFormatting&&(me.formatting="image"),ct(me);if(it==="["&&me.imageMarker&&Re.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return me.imageMarker=!1,me.imageAltText=!0,Pe.highlightFormatting&&(me.formatting="image"),ct(me);if(it==="]"&&me.imageAltText){Pe.highlightFormatting&&(me.formatting="image");var en=ct(me);return me.imageAltText=!1,me.image=!1,me.inline=me.f=Ve,en}if(it==="["&&!me.image)return me.linkText&&Re.match(/^.*?\]/)||(me.linkText=!0,Pe.highlightFormatting&&(me.formatting="link")),ct(me);if(it==="]"&&me.linkText){Pe.highlightFormatting&&(me.formatting="link");var en=ct(me);return me.linkText=!1,me.inline=me.f=Re.match(/\(.*?\)| ?\[.*?\]/,!1)?Ve:ut,en}if(it==="<"&&Re.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){me.f=me.inline=Se,Pe.highlightFormatting&&(me.formatting="link");var en=ct(me);return en?en+=" ":en="",en+ze.linkInline}if(it==="<"&&Re.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){me.f=me.inline=Se,Pe.highlightFormatting&&(me.formatting="link");var en=ct(me);return en?en+=" ":en="",en+ze.linkEmail}if(Pe.xml&&it==="<"&&Re.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var Lt=Re.string.indexOf(">",Re.pos);if(Lt!=-1){var pn=Re.string.substring(Re.start,Lt);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(pn)&&(me.md_inside=!0)}return Re.backUp(1),me.htmlState=E.startState(Te),at(Re,me,wt)}if(Pe.xml&&it==="<"&&Re.match(/^\/\w*?>/))return me.md_inside=!1,"tag";if(it==="*"||it==="_"){for(var he=1,le=Re.pos==1?" ":Re.string.charAt(Re.pos-2);he<3&&Re.eat(it);)he++;var ae=Re.peek()||" ",pe=!/\s/.test(ae)&&(!be.test(ae)||/\s/.test(le)||be.test(le)),ye=!/\s/.test(le)&&(!be.test(le)||/\s/.test(ae)||be.test(ae)),se=null,ot=null;if(he%2&&(!me.em&&pe&&(it==="*"||!ye||be.test(le))?se=!0:me.em==it&&ye&&(it==="*"||!pe||be.test(ae))&&(se=!1)),he>1&&(!me.strong&&pe&&(it==="*"||!ye||be.test(le))?ot=!0:me.strong==it&&ye&&(it==="*"||!pe||be.test(ae))&&(ot=!1)),ot!=null||se!=null){Pe.highlightFormatting&&(me.formatting=se==null?"strong":ot==null?"em":"strong em"),se===!0&&(me.em=it),ot===!0&&(me.strong=it);var Pt=ct(me);return se===!1&&(me.em=!1),ot===!1&&(me.strong=!1),Pt}}else if(it===" "&&(Re.eat("*")||Re.eat("_"))){if(Re.peek()===" ")return ct(me);Re.backUp(1)}if(Pe.strikethrough){if(it==="~"&&Re.eatWhile(it)){if(me.strikethrough){Pe.highlightFormatting&&(me.formatting="strikethrough");var Pt=ct(me);return me.strikethrough=!1,Pt}else if(Re.match(/^[^\s]/,!1))return me.strikethrough=!0,Pe.highlightFormatting&&(me.formatting="strikethrough"),ct(me)}else if(it===" "&&Re.match(/^~~/,!0)){if(Re.peek()===" ")return ct(me);Re.backUp(2)}}if(Pe.emoji&&it===":"&&Re.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){me.emoji=!0,Pe.highlightFormatting&&(me.formatting="emoji");var Xt=ct(me);return me.emoji=!1,Xt}return it===" "&&(Re.match(/^ +$/,!1)?me.trailingSpace++:me.trailingSpace&&(me.trailingSpaceNewLine=!0)),ct(me)}function Se(Re,me){var pt=Re.next();if(pt===">"){me.f=me.inline=ut,Pe.highlightFormatting&&(me.formatting="link");var bt=ct(me);return bt?bt+=" ":bt="",bt+ze.linkInline}return Re.match(/^[^>]+/,!0),ze.linkInline}function Ve(Re,me){if(Re.eatSpace())return null;var pt=Re.next();return pt==="("||pt==="["?(me.f=me.inline=tt(pt==="("?")":"]"),Pe.highlightFormatting&&(me.formatting="link-string"),me.linkHref=!0,ct(me)):"error"}var Ae={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function tt(Re){return function(me,pt){var bt=me.next();if(bt===Re){pt.f=pt.inline=ut,Pe.highlightFormatting&&(pt.formatting="link-string");var it=ct(pt);return pt.linkHref=!1,it}return me.match(Ae[Re]),pt.linkHref=!0,ct(pt)}}function Dt(Re,me){return Re.match(/^([^\]\\]|\\.)*\]:/,!1)?(me.f=lt,Re.next(),Pe.highlightFormatting&&(me.formatting="link"),me.linkText=!0,ct(me)):Ke(Re,me,ut)}function lt(Re,me){if(Re.match(/^\]:/,!0)){me.f=me.inline=Qe,Pe.highlightFormatting&&(me.formatting="link");var pt=ct(me);return me.linkText=!1,pt}return Re.match(/^([^\]\\]|\\.)+/,!0),ze.linkText}function Qe(Re,me){return Re.eatSpace()?null:(Re.match(/^[^\s]+/,!0),Re.peek()===void 0?me.linkTitle=!0:Re.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),me.f=me.inline=ut,ze.linkHref+" url")}var xt={startState:function(){return{f:st,prevLine:{stream:null},thisLine:{stream:null},block:st,htmlState:null,indentation:0,inline:ut,text:Je,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(Re){return{f:Re.f,prevLine:Re.prevLine,thisLine:Re.thisLine,block:Re.block,htmlState:Re.htmlState&&E.copyState(Te,Re.htmlState),indentation:Re.indentation,localMode:Re.localMode,localState:Re.localMode?E.copyState(Re.localMode,Re.localState):null,inline:Re.inline,text:Re.text,formatting:!1,linkText:Re.linkText,linkTitle:Re.linkTitle,linkHref:Re.linkHref,code:Re.code,em:Re.em,strong:Re.strong,strikethrough:Re.strikethrough,emoji:Re.emoji,header:Re.header,setext:Re.setext,hr:Re.hr,taskList:Re.taskList,list:Re.list,listStack:Re.listStack.slice(0),quote:Re.quote,indentedCode:Re.indentedCode,trailingSpace:Re.trailingSpace,trailingSpaceNewLine:Re.trailingSpaceNewLine,md_inside:Re.md_inside,fencedEndRE:Re.fencedEndRE}},token:function(Re,me){if(me.formatting=!1,Re!=me.thisLine.stream){if(me.header=0,me.hr=!1,Re.match(/^\s*$/,!0))return qe(me),null;if(me.prevLine=me.thisLine,me.thisLine={stream:Re},me.taskList=!1,me.trailingSpace=0,me.trailingSpaceNewLine=!1,!me.localState&&(me.f=me.block,me.f!=wt)){var pt=Re.match(/^\s*/,!0)[0].replace(/\t/g,Ie).length;if(me.indentation=pt,me.indentationDiff=null,pt>0)return null}}return me.f(Re,me)},innerMode:function(Re){return Re.block==wt?{state:Re.htmlState,mode:Te}:Re.localState?{state:Re.localState,mode:Re.localMode}:{state:Re,mode:xt}},indent:function(Re,me,pt){return Re.block==wt&&Te.indent?Te.indent(Re.htmlState,me,pt):Re.localState&&Re.localMode.indent?Re.localMode.indent(Re.localState,me,pt):E.Pass},blankLine:qe,getType:ct,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return xt},"xml"),E.defineMIME("text/markdown","markdown"),E.defineMIME("text/x-markdown","markdown")})},98101:function(It,kt,ne){(function(E){E(ne(89780))})(function(E){"use strict";E.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded Javascript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var ve=0;ve<E.modeInfo.length;ve++){var Pe=E.modeInfo[ve];Pe.mimes&&(Pe.mime=Pe.mimes[0])}E.findModeByMIME=function(Te){Te=Te.toLowerCase();for(var He=0;He<E.modeInfo.length;He++){var _e=E.modeInfo[He];if(_e.mime==Te)return _e;if(_e.mimes){for(var ze=0;ze<_e.mimes.length;ze++)if(_e.mimes[ze]==Te)return _e}}if(/\+xml$/.test(Te))return E.findModeByMIME("application/xml");if(/\+json$/.test(Te))return E.findModeByMIME("application/json")},E.findModeByExtension=function(Te){Te=Te.toLowerCase();for(var He=0;He<E.modeInfo.length;He++){var _e=E.modeInfo[He];if(_e.ext){for(var ze=0;ze<_e.ext.length;ze++)if(_e.ext[ze]==Te)return _e}}},E.findModeByFileName=function(Te){for(var He=0;He<E.modeInfo.length;He++){var _e=E.modeInfo[He];if(_e.file&&_e.file.test(Te))return _e}var ze=Te.lastIndexOf("."),nt=ze>-1&&Te.substring(ze+1,Te.length);if(nt)return E.findModeByExtension(nt)},E.findModeByName=function(Te){Te=Te.toLowerCase();for(var He=0;He<E.modeInfo.length;He++){var _e=E.modeInfo[He];if(_e.name.toLowerCase()==Te)return _e;if(_e.alias){for(var ze=0;ze<_e.alias.length;ze++)if(_e.alias[ze].toLowerCase()==Te)return _e}}}})},67549:function(It,kt,ne){(function(E){E(ne(89780))})(function(E){"use strict";E.defineMode("stex",function(ve,Pe){"use strict";function Te(Ye,Ne){Ye.cmdState.push(Ne)}function He(Ye){return Ye.cmdState.length>0?Ye.cmdState[Ye.cmdState.length-1]:null}function _e(Ye){var Ne=Ye.cmdState.pop();Ne&&Ne.closeBracket()}function ze(Ye){for(var Ne=Ye.cmdState,Be=Ne.length-1;Be>=0;Be--){var be=Ne[Be];if(be.name!="DEFAULT")return be}return{styleIdentifier:function(){return null}}}function nt(Ye,Ne,Be){return function(){this.name=Ye,this.bracketNo=0,this.style=Ne,this.styles=Be,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var Fe={};Fe.importmodule=nt("importmodule","tag",["string","builtin"]),Fe.documentclass=nt("documentclass","tag",["","atom"]),Fe.usepackage=nt("usepackage","tag",["atom"]),Fe.begin=nt("begin","tag",["atom"]),Fe.end=nt("end","tag",["atom"]),Fe.label=nt("label","tag",["atom"]),Fe.ref=nt("ref","tag",["atom"]),Fe.eqref=nt("eqref","tag",["atom"]),Fe.cite=nt("cite","tag",["atom"]),Fe.bibitem=nt("bibitem","tag",["atom"]),Fe.Bibitem=nt("Bibitem","tag",["atom"]),Fe.RBibitem=nt("RBibitem","tag",["atom"]),Fe.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function We(Ye,Ne){Ye.f=Ne}function Xe(Ye,Ne){var Be;if(Ye.match(/^\\[a-zA-Z@]+/)){var be=Ye.current().slice(1);return Be=Fe.hasOwnProperty(be)?Fe[be]:Fe.DEFAULT,Be=new Be,Te(Ne,Be),We(Ne,vt),Be.style}if(Ye.match(/^\\[$&%#{}_]/)||Ye.match(/^\\[,;!\/\\]/))return"tag";if(Ye.match("\\["))return We(Ne,function(Ke,at){return $e(Ke,at,"\\]")}),"keyword";if(Ye.match("\\("))return We(Ne,function(Ke,at){return $e(Ke,at,"\\)")}),"keyword";if(Ye.match("$$"))return We(Ne,function(Ke,at){return $e(Ke,at,"$$")}),"keyword";if(Ye.match("$"))return We(Ne,function(Ke,at){return $e(Ke,at,"$")}),"keyword";var Ie=Ye.next();if(Ie=="%")return Ye.skipToEnd(),"comment";if(Ie=="}"||Ie=="]"){if(Be=He(Ne),Be)Be.closeBracket(Ie),We(Ne,vt);else return"error";return"bracket"}else return Ie=="{"||Ie=="["?(Be=Fe.DEFAULT,Be=new Be,Te(Ne,Be),"bracket"):/\d/.test(Ie)?(Ye.eatWhile(/[\w.%]/),"atom"):(Ye.eatWhile(/[\w\-_]/),Be=ze(Ne),Be.name=="begin"&&(Be.argument=Ye.current()),Be.styleIdentifier())}function $e(Ye,Ne,Be){if(Ye.eatSpace())return null;if(Be&&Ye.match(Be))return We(Ne,Xe),"keyword";if(Ye.match(/^\\[a-zA-Z@]+/))return"tag";if(Ye.match(/^[a-zA-Z]+/))return"variable-2";if(Ye.match(/^\\[$&%#{}_]/)||Ye.match(/^\\[,;!\/]/)||Ye.match(/^[\^_&]/))return"tag";if(Ye.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(Ye.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var be=Ye.next();return be=="{"||be=="}"||be=="["||be=="]"||be=="("||be==")"?"bracket":be=="%"?(Ye.skipToEnd(),"comment"):"error"}function vt(Ye,Ne){var Be=Ye.peek(),be;return Be=="{"||Be=="["?(be=He(Ne),be.openBracket(Be),Ye.eat(Be),We(Ne,Xe),"bracket"):/[ \t\r]/.test(Be)?(Ye.eat(Be),null):(We(Ne,Xe),_e(Ne),Xe(Ye,Ne))}return{startState:function(){var Ye=Pe.inMathMode?function(Ne,Be){return $e(Ne,Be)}:Xe;return{cmdState:[],f:Ye}},copyState:function(Ye){return{cmdState:Ye.cmdState.slice(),f:Ye.f}},token:function(Ye,Ne){return Ne.f(Ye,Ne)},blankLine:function(Ye){Ye.f=Xe,Ye.cmdState.length=0},lineComment:"%"}}),E.defineMIME("text/x-stex","stex"),E.defineMIME("text/x-latex","stex")})},15525:function(It,kt,ne){(function(E){E(ne(89780))})(function(E){"use strict";var ve={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},Pe={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};E.defineMode("xml",function(Te,He){var _e=Te.indentUnit,ze={},nt=He.htmlMode?ve:Pe;for(var Fe in nt)ze[Fe]=nt[Fe];for(var Fe in He)ze[Fe]=He[Fe];var We,Xe;function $e(Se,Ve){function Ae(lt){return Ve.tokenize=lt,lt(Se,Ve)}var tt=Se.next();if(tt=="<")return Se.eat("!")?Se.eat("[")?Se.match("CDATA[")?Ae(Ne("atom","]]>")):null:Se.match("--")?Ae(Ne("comment","-->")):Se.match("DOCTYPE",!0,!0)?(Se.eatWhile(/[\w\._\-]/),Ae(Be(1))):null:Se.eat("?")?(Se.eatWhile(/[\w\._\-]/),Ve.tokenize=Ne("meta","?>"),"meta"):(We=Se.eat("/")?"closeTag":"openTag",Ve.tokenize=vt,"tag bracket");if(tt=="&"){var Dt;return Se.eat("#")?Se.eat("x")?Dt=Se.eatWhile(/[a-fA-F\d]/)&&Se.eat(";"):Dt=Se.eatWhile(/[\d]/)&&Se.eat(";"):Dt=Se.eatWhile(/[\w\.\-:]/)&&Se.eat(";"),Dt?"atom":"error"}else return Se.eatWhile(/[^&<]/),null}$e.isInText=!0;function vt(Se,Ve){var Ae=Se.next();if(Ae==">"||Ae=="/"&&Se.eat(">"))return Ve.tokenize=$e,We=Ae==">"?"endTag":"selfcloseTag","tag bracket";if(Ae=="=")return We="equals",null;if(Ae=="<"){Ve.tokenize=$e,Ve.state=at,Ve.tagName=Ve.tagStart=null;var tt=Ve.tokenize(Se,Ve);return tt?tt+" tag error":"tag error"}else return/[\'\"]/.test(Ae)?(Ve.tokenize=Ye(Ae),Ve.stringStartCol=Se.column(),Ve.tokenize(Se,Ve)):(Se.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function Ye(Se){var Ve=function(Ae,tt){for(;!Ae.eol();)if(Ae.next()==Se){tt.tokenize=vt;break}return"string"};return Ve.isInAttribute=!0,Ve}function Ne(Se,Ve){return function(Ae,tt){for(;!Ae.eol();){if(Ae.match(Ve)){tt.tokenize=$e;break}Ae.next()}return Se}}function Be(Se){return function(Ve,Ae){for(var tt;(tt=Ve.next())!=null;){if(tt=="<")return Ae.tokenize=Be(Se+1),Ae.tokenize(Ve,Ae);if(tt==">")if(Se==1){Ae.tokenize=$e;break}else return Ae.tokenize=Be(Se-1),Ae.tokenize(Ve,Ae)}return"meta"}}function be(Se,Ve,Ae){this.prev=Se.context,this.tagName=Ve,this.indent=Se.indented,this.startOfLine=Ae,(ze.doNotIndent.hasOwnProperty(Ve)||Se.context&&Se.context.noIndent)&&(this.noIndent=!0)}function Ie(Se){Se.context&&(Se.context=Se.context.prev)}function Ke(Se,Ve){for(var Ae;;){if(!Se.context||(Ae=Se.context.tagName,!ze.contextGrabbers.hasOwnProperty(Ae)||!ze.contextGrabbers[Ae].hasOwnProperty(Ve)))return;Ie(Se)}}function at(Se,Ve,Ae){return Se=="openTag"?(Ae.tagStart=Ve.column(),fe):Se=="closeTag"?qe:at}function fe(Se,Ve,Ae){return Se=="word"?(Ae.tagName=Ve.current(),Xe="tag",ft):ze.allowMissingTagName&&Se=="endTag"?(Xe="tag bracket",ft(Se,Ve,Ae)):(Xe="error",fe)}function qe(Se,Ve,Ae){if(Se=="word"){var tt=Ve.current();return Ae.context&&Ae.context.tagName!=tt&&ze.implicitlyClosed.hasOwnProperty(Ae.context.tagName)&&Ie(Ae),Ae.context&&Ae.context.tagName==tt||ze.matchClosing===!1?(Xe="tag",st):(Xe="tag error",wt)}else return ze.allowMissingTagName&&Se=="endTag"?(Xe="tag bracket",st(Se,Ve,Ae)):(Xe="error",wt)}function st(Se,Ve,Ae){return Se!="endTag"?(Xe="error",st):(Ie(Ae),at)}function wt(Se,Ve,Ae){return Xe="error",st(Se,Ve,Ae)}function ft(Se,Ve,Ae){if(Se=="word")return Xe="attribute",ct;if(Se=="endTag"||Se=="selfcloseTag"){var tt=Ae.tagName,Dt=Ae.tagStart;return Ae.tagName=Ae.tagStart=null,Se=="selfcloseTag"||ze.autoSelfClosers.hasOwnProperty(tt)?Ke(Ae,tt):(Ke(Ae,tt),Ae.context=new be(Ae,tt,Dt==Ae.indented)),at}return Xe="error",ft}function ct(Se,Ve,Ae){return Se=="equals"?Je:(ze.allowMissing||(Xe="error"),ft(Se,Ve,Ae))}function Je(Se,Ve,Ae){return Se=="string"?ut:Se=="word"&&ze.allowUnquoted?(Xe="string",ft):(Xe="error",ft(Se,Ve,Ae))}function ut(Se,Ve,Ae){return Se=="string"?ut:ft(Se,Ve,Ae)}return{startState:function(Se){var Ve={tokenize:$e,state:at,indented:Se||0,tagName:null,tagStart:null,context:null};return Se!=null&&(Ve.baseIndent=Se),Ve},token:function(Se,Ve){if(!Ve.tagName&&Se.sol()&&(Ve.indented=Se.indentation()),Se.eatSpace())return null;We=null;var Ae=Ve.tokenize(Se,Ve);return(Ae||We)&&Ae!="comment"&&(Xe=null,Ve.state=Ve.state(We||Ae,Se,Ve),Xe&&(Ae=Xe=="error"?Ae+" error":Xe)),Ae},indent:function(Se,Ve,Ae){var tt=Se.context;if(Se.tokenize.isInAttribute)return Se.tagStart==Se.indented?Se.stringStartCol+1:Se.indented+_e;if(tt&&tt.noIndent)return E.Pass;if(Se.tokenize!=vt&&Se.tokenize!=$e)return Ae?Ae.match(/^(\s*)/)[0].length:0;if(Se.tagName)return ze.multilineTagIndentPastTag!==!1?Se.tagStart+Se.tagName.length+2:Se.tagStart+_e*(ze.multilineTagIndentFactor||1);if(ze.alignCDATA&&/<!\[CDATA\[/.test(Ve))return 0;var Dt=Ve&&/^<(\/)?([\w_:\.-]*)/.exec(Ve);if(Dt&&Dt[1])for(;tt;)if(tt.tagName==Dt[2]){tt=tt.prev;break}else if(ze.implicitlyClosed.hasOwnProperty(tt.tagName))tt=tt.prev;else break;else if(Dt)for(;tt;){var lt=ze.contextGrabbers[tt.tagName];if(lt&&lt.hasOwnProperty(Dt[2]))tt=tt.prev;else break}for(;tt&&tt.prev&&!tt.startOfLine;)tt=tt.prev;return tt?tt.indent+_e:Se.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:ze.htmlMode?"html":"xml",helperType:ze.htmlMode?"html":"xml",skipAttribute:function(Se){Se.state==Je&&(Se.state=ft)},xmlCurrentTag:function(Se){return Se.tagName?{name:Se.tagName,close:Se.type=="closeTag"}:null},xmlCurrentContext:function(Se){for(var Ve=[],Ae=Se.context;Ae;Ae=Ae.prev)Ae.tagName&&Ve.push(Ae.tagName);return Ve.reverse()}}}),E.defineMIME("text/xml","xml"),E.defineMIME("application/xml","xml"),E.mimeModes.hasOwnProperty("text/html")||E.defineMIME("text/html",{name:"xml",htmlMode:!0})})},24334:function(It,kt,ne){var E,ve;(function(Pe,Te){It.exports=Te(Pe)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof ne.g!="undefined"?ne.g:this,function(Pe){"use strict";Pe=Pe||{};var Te=Pe.Base64,He="2.6.4",_e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ze=function(Ae){for(var tt={},Dt=0,lt=Ae.length;Dt<lt;Dt++)tt[Ae.charAt(Dt)]=Dt;return tt}(_e),nt=String.fromCharCode,Fe=function(Ae){if(Ae.length<2){var tt=Ae.charCodeAt(0);return tt<128?Ae:tt<2048?nt(192|tt>>>6)+nt(128|tt&63):nt(224|tt>>>12&15)+nt(128|tt>>>6&63)+nt(128|tt&63)}else{var tt=65536+(Ae.charCodeAt(0)-55296)*1024+(Ae.charCodeAt(1)-56320);return nt(240|tt>>>18&7)+nt(128|tt>>>12&63)+nt(128|tt>>>6&63)+nt(128|tt&63)}},We=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,Xe=function(Ae){return Ae.replace(We,Fe)},$e=function(Ae){var tt=[0,2,1][Ae.length%3],Dt=Ae.charCodeAt(0)<<16|(Ae.length>1?Ae.charCodeAt(1):0)<<8|(Ae.length>2?Ae.charCodeAt(2):0),lt=[_e.charAt(Dt>>>18),_e.charAt(Dt>>>12&63),tt>=2?"=":_e.charAt(Dt>>>6&63),tt>=1?"=":_e.charAt(Dt&63)];return lt.join("")},vt=Pe.btoa&&typeof Pe.btoa=="function"?function(Ae){return Pe.btoa(Ae)}:function(Ae){if(Ae.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return Ae.replace(/[\s\S]{1,3}/g,$e)},Ye=function(Ae){return vt(Xe(String(Ae)))},Ne=function(Ae){return Ae.replace(/[+\/]/g,function(tt){return tt=="+"?"-":"_"}).replace(/=/g,"")},Be=function(Ae,tt){return tt?Ne(Ye(Ae)):Ye(Ae)},be=function(Ae){return Be(Ae,!0)},Ie;Pe.Uint8Array&&(Ie=function(Ae,tt){for(var Dt="",lt=0,Qe=Ae.length;lt<Qe;lt+=3){var xt=Ae[lt],Re=Ae[lt+1],me=Ae[lt+2],pt=xt<<16|Re<<8|me;Dt+=_e.charAt(pt>>>18)+_e.charAt(pt>>>12&63)+(typeof Re!="undefined"?_e.charAt(pt>>>6&63):"=")+(typeof me!="undefined"?_e.charAt(pt&63):"=")}return tt?Ne(Dt):Dt});var Ke=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,at=function(Ae){switch(Ae.length){case 4:var tt=(7&Ae.charCodeAt(0))<<18|(63&Ae.charCodeAt(1))<<12|(63&Ae.charCodeAt(2))<<6|63&Ae.charCodeAt(3),Dt=tt-65536;return nt((Dt>>>10)+55296)+nt((Dt&1023)+56320);case 3:return nt((15&Ae.charCodeAt(0))<<12|(63&Ae.charCodeAt(1))<<6|63&Ae.charCodeAt(2));default:return nt((31&Ae.charCodeAt(0))<<6|63&Ae.charCodeAt(1))}},fe=function(Ae){return Ae.replace(Ke,at)},qe=function(Ae){var tt=Ae.length,Dt=tt%4,lt=(tt>0?ze[Ae.charAt(0)]<<18:0)|(tt>1?ze[Ae.charAt(1)]<<12:0)|(tt>2?ze[Ae.charAt(2)]<<6:0)|(tt>3?ze[Ae.charAt(3)]:0),Qe=[nt(lt>>>16),nt(lt>>>8&255),nt(lt&255)];return Qe.length-=[0,0,2,1][Dt],Qe.join("")},st=Pe.atob&&typeof Pe.atob=="function"?function(Ae){return Pe.atob(Ae)}:function(Ae){return Ae.replace(/\S{1,4}/g,qe)},wt=function(Ae){return st(String(Ae).replace(/[^A-Za-z0-9\+\/]/g,""))},ft=function(Ae){return fe(st(Ae))},ct=function(Ae){return String(Ae).replace(/[-_]/g,function(tt){return tt=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},Je=function(Ae){return ft(ct(Ae))},ut;Pe.Uint8Array&&(ut=function(Ae){return Uint8Array.from(wt(ct(Ae)),function(tt){return tt.charCodeAt(0)})});var Se=function(){var Ae=Pe.Base64;return Pe.Base64=Te,Ae};if(Pe.Base64={VERSION:He,atob:wt,btoa:vt,fromBase64:Je,toBase64:Be,utob:Xe,encode:Be,encodeURI:be,btou:fe,decode:Je,noConflict:Se,fromUint8Array:Ie,toUint8Array:ut},typeof Object.defineProperty=="function"){var Ve=function(Ae){return{value:Ae,enumerable:!1,writable:!0,configurable:!0}};Pe.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",Ve(function(){return Je(this)})),Object.defineProperty(String.prototype,"toBase64",Ve(function(Ae){return Be(this,Ae)})),Object.defineProperty(String.prototype,"toBase64URI",Ve(function(){return Be(this,!0)}))}}return Pe.Meteor&&(Base64=Pe.Base64),It.exports?It.exports.Base64=Pe.Base64:(E=[],ve=function(){return Pe.Base64}.apply(kt,E),ve!==void 0&&(It.exports=ve)),{Base64:Pe.Base64}})},2859:function(It,kt,ne){"use strict";ne.d(kt,{hP:function(){return pn}});var E=function(he,le){return(E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ae,pe){ae.__proto__=pe}||function(ae,pe){for(var ye in pe)Object.prototype.hasOwnProperty.call(pe,ye)&&(ae[ye]=pe[ye])})(he,le)};function ve(he,le){function ae(){this.constructor=he}E(he,le),he.prototype=le===null?Object.create(le):(ae.prototype=le.prototype,new ae)}function Pe(he,le,ae,pe){return new(ae||(ae=Promise))(function(ye,se){function ot(on){try{zt(pe.next(on))}catch(Kt){se(Kt)}}function Xt(on){try{zt(pe.throw(on))}catch(Kt){se(Kt)}}function zt(on){var Kt;on.done?ye(on.value):(Kt=on.value,Kt instanceof ae?Kt:new ae(function(Yn){Yn(Kt)})).then(ot,Xt)}zt((pe=pe.apply(he,le||[])).next())})}function Te(he,le){var ae,pe,ye,se,ot={label:0,sent:function(){if(1&ye[0])throw ye[1];return ye[1]},trys:[],ops:[]};return se={next:Xt(0),throw:Xt(1),return:Xt(2)},typeof Symbol=="function"&&(se[Symbol.iterator]=function(){return this}),se;function Xt(zt){return function(on){return function(Kt){if(ae)throw new TypeError("Generator is already executing.");for(;ot;)try{if(ae=1,pe&&(ye=2&Kt[0]?pe.return:Kt[0]?pe.throw||((ye=pe.return)&&ye.call(pe),0):pe.next)&&!(ye=ye.call(pe,Kt[1])).done)return ye;switch(pe=0,ye&&(Kt=[2&Kt[0],ye.value]),Kt[0]){case 0:case 1:ye=Kt;break;case 4:return ot.label++,{value:Kt[1],done:!1};case 5:ot.label++,pe=Kt[1],Kt=[0];continue;case 7:Kt=ot.ops.pop(),ot.trys.pop();continue;default:if(ye=ot.trys,!((ye=ye.length>0&&ye[ye.length-1])||Kt[0]!==6&&Kt[0]!==2)){ot=0;continue}if(Kt[0]===3&&(!ye||Kt[1]>ye[0]&&Kt[1]<ye[3])){ot.label=Kt[1];break}if(Kt[0]===6&&ot.label<ye[1]){ot.label=ye[1],ye=Kt;break}if(ye&&ot.label<ye[2]){ot.label=ye[2],ot.ops.push(Kt);break}ye[2]&&ot.ops.pop(),ot.trys.pop();continue}Kt=le.call(he,ot)}catch(Yn){Kt=[6,Yn],pe=0}finally{ae=ye=0}if(5&Kt[0])throw Kt[1];return{value:Kt[0]?Kt[1]:void 0,done:!0}}([zt,on])}}}function He(){for(var he=0,le=0,ae=arguments.length;le<ae;le++)he+=arguments[le].length;var pe=Array(he),ye=0;for(le=0;le<ae;le++)for(var se=arguments[le],ot=0,Xt=se.length;ot<Xt;ot++,ye++)pe[ye]=se[ot];return pe}var _e=function(){function he(){}return he.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},he.setAttributes=function(le,ae){for(var pe=0,ye=ae;pe<ye.length;pe++){var se=ye[pe],ot=se[0],Xt=se[1];le.setAttribute(ot,Xt)}},he.createRect=function(le,ae,pe){var ye=document.createElementNS("http://www.w3.org/2000/svg","rect");return ye.setAttribute("width",le.toString()),ye.setAttribute("height",ae.toString()),pe&&he.setAttributes(ye,pe),ye},he.createLine=function(le,ae,pe,ye,se){var ot=document.createElementNS("http://www.w3.org/2000/svg","line");return ot.setAttribute("x1",le.toString()),ot.setAttribute("y1",ae.toString()),ot.setAttribute("x2",pe.toString()),ot.setAttribute("y2",ye.toString()),se&&he.setAttributes(ot,se),ot},he.createPolygon=function(le,ae){var pe=document.createElementNS("http://www.w3.org/2000/svg","polygon");return pe.setAttribute("points",le),ae&&he.setAttributes(pe,ae),pe},he.createCircle=function(le,ae){var pe=document.createElementNS("http://www.w3.org/2000/svg","circle");return pe.setAttribute("cx",(le/2).toString()),pe.setAttribute("cy",(le/2).toString()),pe.setAttribute("r",le.toString()),ae&&he.setAttributes(pe,ae),pe},he.createEllipse=function(le,ae,pe){var ye=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return ye.setAttribute("cx",(le/2).toString()),ye.setAttribute("cy",(ae/2).toString()),ye.setAttribute("rx",(le/2).toString()),ye.setAttribute("ry",(ae/2).toString()),pe&&he.setAttributes(ye,pe),ye},he.createGroup=function(le){var ae=document.createElementNS("http://www.w3.org/2000/svg","g");return le&&he.setAttributes(ae,le),ae},he.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},he.createMarker=function(le,ae,pe,ye,se,ot,Xt){var zt=document.createElementNS("http://www.w3.org/2000/svg","marker");return he.setAttributes(zt,[["id",le],["orient",ae],["markerWidth",pe.toString()],["markerHeight",ye.toString()],["refX",se.toString()],["refY",ot.toString()]]),zt.appendChild(Xt),zt},he.createText=function(le){var ae=document.createElementNS("http://www.w3.org/2000/svg","text");return ae.setAttribute("x","0"),ae.setAttribute("y","0"),le&&he.setAttributes(ae,le),ae},he.createTSpan=function(le,ae){var pe=document.createElementNS("http://www.w3.org/2000/svg","tspan");return pe.textContent=le,ae&&he.setAttributes(pe,ae),pe},he.createImage=function(le){var ae=document.createElementNS("http://www.w3.org/2000/svg","image");return le&&he.setAttributes(ae,le),ae},he.createPoint=function(le,ae){var pe=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return pe.x=le,pe.y=ae,pe},he.createPath=function(le,ae){var pe=document.createElementNS("http://www.w3.org/2000/svg","path");return pe.setAttribute("d",le),ae&&he.setAttributes(pe,ae),pe},he}(),ze=function(){function he(){}return he.addKey=function(le){he.key=le},Object.defineProperty(he,"isLicensed",{get:function(){return!!he.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(he.key)},enumerable:!1,configurable:!0}),he}(),nt=function(){function he(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return he.prototype.rasterize=function(le,ae,pe){var ye=this;return new Promise(function(se){var ot=pe!==void 0?pe:document.createElement("canvas");le===null&&(ye.markersOnly=!0,ye.naturalSize=!1);var Xt=document.createElementNS("http://www.w3.org/2000/svg","svg");Xt.setAttribute("xmlns","http://www.w3.org/2000/svg"),Xt.setAttribute("width",ae.width.baseVal.valueAsString),Xt.setAttribute("height",ae.height.baseVal.valueAsString),Xt.setAttribute("viewBox","0 0 "+ae.viewBox.baseVal.width.toString()+" "+ae.viewBox.baseVal.height.toString()),Xt.innerHTML=ae.innerHTML,ye.naturalSize===!0?(Xt.width.baseVal.value=le.naturalWidth,Xt.height.baseVal.value=le.naturalHeight):ye.width!==void 0&&ye.height!==void 0&&(Xt.width.baseVal.value=ye.width,Xt.height.baseVal.value=ye.height),ot.width=Xt.width.baseVal.value,ot.height=Xt.height.baseVal.value;var zt=Xt.outerHTML,on=ot.getContext("2d");ye.markersOnly!==!0&&on.drawImage(le,0,0,ot.width,ot.height);var Kt=window.URL,Yn=new Image(ot.width,ot.height);Yn.setAttribute("crossOrigin","anonymous");var Fn=new Blob([zt],{type:"image/svg+xml"}),or=Kt.createObjectURL(Fn);Yn.onload=function(){on.drawImage(Yn,0,0),Kt.revokeObjectURL(or);var ra=ot.toDataURL(ye.imageType,ye.imageQuality);se(ra)},Yn.src=or})},he}(),Fe=function(){},We=function(){function he(le){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+le+"_"}return Object.defineProperty(he.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(he.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(he.prototype,"defaultSettings",{get:function(){return{canvasBackgroundColor:"#ffffff",toolbarBackgroundColor:"#111111",toolbarBackgroundHoverColor:"#333333",toolbarColor:"#eeeeee",toolbarHeight:40,toolboxColor:"#eeeeee",toolboxAccentColor:"#3080c3",undoButtonVisible:!0,redoButtonVisible:!1,zoomButtonVisible:!1,zoomOutButtonVisible:!1,clearButtonVisible:!1,resultButtonBlockVisible:!0,logoPosition:"left"}},enumerable:!1,configurable:!0}),Object.defineProperty(he.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(he.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),he.prototype.addClass=function(le){return this.styleSheet===void 0&&this.addStyleSheet(),le.name=""+this.classNamePrefix+le.localName,this.classes.push(le),this.styleSheet.sheet.insertRule("."+le.name+" {"+le.style+"}",this.styleSheet.sheet.cssRules.length),le},he.prototype.addRule=function(le){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(le),this.styleSheet.sheet.insertRule(le.selector+" {"+le.style+"}",this.styleSheet.sheet.cssRules.length)},he.prototype.addStyleSheet=function(){var le;this.styleSheet=document.createElement("style"),((le=this.styleSheetRoot)!==null&&le!==void 0?le:document.head).appendChild(this.styleSheet),this.addRule(new Xe("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new Xe("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
from {
opacity: 0;
}
to {
opacity: 1;
}
`)),this.addRule(new Xe("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
from {
opacity: 1;
}
to {
opacity: 0;
}
`)),this.addClass(new $e("fade_in",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
`)),this.addClass(new $e("fade_out",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
`))},he.prototype.removeStyleSheet=function(){var le;this.styleSheet&&(((le=this.styleSheetRoot)!==null&&le!==void 0?le:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},he}(),Xe=function(he,le){this.selector=he,this.style=le},$e=function(he,le){this.localName=he,this.style=le},vt=function(){function he(le,ae,pe,ye,se){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=le,this.displayMode=ae,this.markerItems=pe,this.uiStyleSettings=ye,this.styles=se,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return he.prototype.show=function(le){var ae=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=le,this.uiContainer.className=this.toolbarStyleClass.name+" "+this.styles.fadeInAnimationClassName+" "+(this.uiStyleSettings.toolbarStyleColorsClassName?this.uiStyleSettings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name);var pe=document.createElement("div");pe.className=this.toolbarBlockStyleClass.name,pe.style.whiteSpace="nowrap",this.uiContainer.appendChild(pe),this.addActionButton(pe,'<svg viewBox="0 0 24 24"><path d="M10.07 14.27a.997.997 0 011.33.48l2.3 4.99 1.8-.85-2.31-4.98c-.24-.5-.02-1.1.48-1.33l.28-.08 2.3-.45L8 5.12V15.9l1.82-1.47.25-.16m3.57 7.7a.99.99 0 01-1.33-.47l-2.18-4.74-2.51 2.02c-.17.14-.38.22-.62.22a1 1 0 01-1-1V3a1 1 0 011-1c.24 0 .47.09.64.23l.01-.01 11.49 9.64a1.001 1.001 0 01-.44 1.75l-3.16.62 2.2 4.73c.26.5.02 1.09-.48 1.32l-3.62 1.69z"/></svg>',"select"),this.addActionButton(pe,'<svg viewBox="0 0 24 24"><path d="M9 3v1H4v2h1v13a2 2 0 002 2h10a2 2 0 002-2V6h1V4h-5V3H9M7 6h10v13H7V6m2 2v9h2V8H9m4 0v9h2V8h-2z"/></svg>',"delete"),this.uiStyleSettings.clearButtonVisible&&this.addActionButton(pe,'<svg viewBox="0 0 24 24"><path d="M19.36 2.72l1.42 1.42-5.72 5.71c1.07 1.54 1.22 3.39.32 4.59L9.06 8.12c1.2-.9 3.05-.75 4.59.32l5.71-5.72M5.93 17.57c-2.01-2.01-3.24-4.41-3.58-6.65l4.88-2.09 7.44 7.44-2.09 4.88c-2.24-.34-4.64-1.57-6.65-3.58z"/></svg>',"clear"),this.uiStyleSettings.undoButtonVisible&&this.addActionButton(pe,'<svg viewBox="0 0 24 24"><path d="M12.5 8c-2.65 0-5.05 1-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8z"/></svg>',"undo"),this.uiStyleSettings.redoButtonVisible&&this.addActionButton(pe,'<svg viewBox="0 0 24 24"><path d="M18.4 10.6C16.55 9 14.15 8 11.5 8c-4.65 0-8.58 3.03-9.96 7.22L3.9 16a8.002 8.002 0 017.6-5.5c1.95 0 3.73.72 5.12 1.88L13 16h9V7l-3.6 3.6z"/></svg>',"redo"),this.uiStyleSettings.zoomButtonVisible&&this.addActionButton(pe,'<svg viewBox="0 0 24 24"><path d="M15.5 14l5 5-1.5 1.5-5-5v-.79l-.27-.28A6.471 6.471 0 019.5 16 6.5 6.5 0 013 9.5 6.5 6.5 0 019.5 3 6.5 6.5 0 0116 9.5c0 1.61-.59 3.09-1.57 4.23l.28.27h.79m-6 0C12 14 14 12 14 9.5S12 5 9.5 5 5 7 5 9.5 7 14 9.5 14m2.5-4h-2v2H9v-2H7V9h2V7h1v2h2v1z"/></svg>',"zoom"),this.uiStyleSettings.zoomButtonVisible&&this.uiStyleSettings.zoomOutButtonVisible&&this.addActionButton(pe,'<svg viewBox="0 0 24 24"><path d="M15.5 14h-.79l-.28-.27A6.471 6.471 0 0016 9.5 6.5 6.5 0 009.5 3 6.5 6.5 0 003 9.5 6.5 6.5 0 009.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 5 1.5-1.5-5-5m-6 0C7 14 5 12 5 9.5S7 5 9.5 5 14 7 14 9.5 12 14 9.5 14M7 9h5v1H7V9z"/></svg>',"zoom-out"),this.uiStyleSettings.notesButtonVisible&&this.addActionButton(pe,'<svg viewBox="0 0 24 24"><path d="M18.13 12l1.26-1.26c.44-.44 1-.68 1.61-.74V9l-6-6H5c-1.11 0-2 .89-2 2v14a2 2 0 002 2h6v-1.87l.13-.13H5V5h7v7h6.13M14 4.5l5.5 5.5H14V4.5m5.13 9.33l2.04 2.04L15.04 22H13v-2.04l6.13-6.13m3.72.36l-.98.98-2.04-2.04.98-.98c.19-.2.52-.2.72 0l1.32 1.32c.2.2.2.53 0 .72z"/></svg>',"notes"),this.markerButtonBlock=document.createElement("div"),this.markerButtonBlock.className=this.toolbarBlockStyleClass.name,this.markerButtonBlock.style.flexGrow="2",this.markerButtonBlock.style.textAlign="center",this.uiContainer.appendChild(this.markerButtonBlock),this.markerButtonOverflowBlock=document.createElement("div"),this.markerButtonOverflowBlock.className=this.toolbarOverflowBlockStyleClass.name+" "+(this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName?this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName:this.toolbarOverflowBlockStyleColorsClass.name),this.markerButtonOverflowBlock.style.display="none",this.uiContainer.appendChild(this.markerButtonOverflowBlock),this.markerItems&&(this.markerItems.forEach(function(se){var ot=document.createElement("div");ot.className=""+ae.toolbarButtonStyleClass.name,ot.setAttribute("data-type-name",se.typeName),ot.innerHTML=se.icon,ot.addEventListener("click",function(){ae.markerToolbarButtonClicked(ot,se)}),ae.buttons.push(ot),ae.markerButtons.push(ot)}),this.overflowButton=document.createElement("div"),this.overflowButton.className=this.toolbarButtonStyleClass.name+" "+(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name),this.overflowButton.innerHTML='<svg viewBox="0 0 24 24"><path d="M12 16a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2m0-6a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2m0-6a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2z"/></svg>',this.overflowButton.addEventListener("click",this.overflowButtonClicked),this.markerButtonBlock.appendChild(this.overflowButton));var ye=document.createElement("div");ye.className=this.toolbarBlockStyleClass.name,ye.style.whiteSpace="nowrap",ye.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(ye),this.addActionButton(ye,'<svg viewBox="0 0 24 24"><path d="M9 20.42l-6.21-6.21 2.83-2.83L9 14.77l9.88-9.89 2.83 2.83L9 20.42z"/></svg>',"render"),this.addActionButton(ye,'<svg viewBox="0 0 24 24"><path d="M20 6.91L17.09 4 12 9.09 6.91 4 4 6.91 9.09 12 4 17.09 6.91 20 12 14.91 17.09 20 20 17.09 14.91 12 20 6.91z"/></svg>',"close"),this.markerjsContainer.appendChild(this.uiContainer),this.setSelectMode(),this.setCurrentMarker(),this.adjustLayout()},he.prototype.addButtonClickListener=function(le){this.buttonClickListeners.push(le)},he.prototype.removeButtonClickListener=function(le){this.buttonClickListeners.indexOf(le)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(le),1)},he.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},he.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var le=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var ae=0;ae<this.markerButtons.length;ae++)ae<le||ae===le&&this.markerButtons.length-1===le?this.markerButtonBlock.appendChild(this.markerButtons[ae]):(ae===le&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[ae]))}},he.prototype.overflowButtonClicked=function(){this.markerButtonOverflowBlock.style.display!=="none"?(this.markerButtonOverflowBlock.className=this.markerButtonOverflowBlock.className.replace(this.styles.fadeInAnimationClassName,""),this.markerButtonOverflowBlock.style.display="none"):(this.markerButtonOverflowBlock.className+=" "+this.styles.fadeInAnimationClassName,this.markerButtonOverflowBlock.style.top=this.uiContainer.offsetTop+this.overflowButton.offsetHeight+"px",this.markerButtonOverflowBlock.style.right=this.uiContainer.offsetWidth-this.overflowButton.offsetLeft-this.overflowButton.offsetWidth+2*this.uiContainer.offsetLeft+"px",this.markerButtonOverflowBlock.style.display="inline-block")},he.prototype.resetButtonStyles=function(){var le=this;this.buttons.forEach(function(ae){ae.className=ae.className.replace(le.uiStyleSettings.toolbarButtonStyleColorsClassName?le.uiStyleSettings.toolbarButtonStyleColorsClassName:le.toolbarButtonStyleColorsClass.name,"").trim(),ae.className=ae.className.replace(le.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?le.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:le.toolbarActiveButtonStyleColorsClass.name,"").trim(),ae.className+=" "+(le.uiStyleSettings.toolbarButtonStyleColorsClassName?le.uiStyleSettings.toolbarButtonStyleColorsClassName:le.toolbarButtonStyleColorsClass.name)})},he.prototype.addActionButton=function(le,ae,pe){var ye=this,se=document.createElement("div");switch(se.className=""+this.toolbarButtonStyleClass.name,se.innerHTML=ae,se.setAttribute("data-action",pe),se.addEventListener("click",function(){ye.actionToolbarButtonClicked(se,pe)}),pe){case"select":se.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":se.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":se.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":se.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":se.style.fill=this.uiStyleSettings.closeButtonColor}le.appendChild(se),this.buttons.push(se)},he.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new $e("toolbar",`
width: 100%;
flex-shrink: 0;
display: flex;
flex-direction: row;
justify-content: space-between;
height: `+this.uiStyleSettings.toolbarHeight+`px;
box-sizing: content-box;
`+(this.displayMode==="inline"?"border-top-left-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
`+(this.displayMode==="inline"?"border-top-right-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
overflow: hidden;
`)),this.toolbarStyleColorsClass=this.styles.addClass(new $e("toolbar_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
`)),this.toolbarBlockStyleClass=this.styles.addClass(new $e("toolbar-block",`
display: inline-block;
box-sizing: content-box;
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new $e("toolbar-overflow-block",`
position: absolute;
top: `+this.uiStyleSettings.toolbarHeight+`px;
max-width: `+2*this.uiStyleSettings.toolbarHeight+`px;
z-index: 10;
box-sizing: content-box;
`)),this.toolbarOverflowBlockStyleColorsClass=this.styles.addClass(new $e("toolbar-overflow-block_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`));var le=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new $e("toolbar_button",`
display: inline-block;
width: `+(this.uiStyleSettings.toolbarHeight-2*le)+`px;
height: `+(this.uiStyleSettings.toolbarHeight-2*le)+`px;
padding: `+le+`px;
box-sizing: content-box;
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new $e("toolbar_button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new $e("toolbar_active_button",`
fill: `+this.uiStyleSettings.toolbarColor+`;
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new Xe("."+this.toolbarButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`)),this.styles.addRule(new Xe("."+this.toolbarButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`))},he.prototype.markerToolbarButtonClicked=function(le,ae){this.setActiveButton(le),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(pe){return pe("marker",ae)}),this.markerButtonOverflowBlock.style.display="none"},he.prototype.actionToolbarButtonClicked=function(le,ae){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(pe){return pe("action",ae)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},he.prototype.setActiveButton=function(le){this.resetButtonStyles(),le.className=le.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),le.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},he.prototype.setActiveMarkerButton=function(le){var ae=this.markerButtons.find(function(pe){return pe.getAttribute("data-type-name")===le});ae&&this.setActiveButton(ae)},he.prototype.setCurrentMarker=function(le){var ae=this;this.currentMarker=le,this.buttons.filter(function(pe){return/delete|notes/.test(pe.getAttribute("data-action"))}).forEach(function(pe){ae.currentMarker===void 0?(pe.style.fillOpacity="0.4",pe.style.pointerEvents="none"):(pe.style.fillOpacity="1",pe.style.pointerEvents="all")})},he}(),Ye=function(){function he(le,ae,pe,ye){this.panels=[],this.panelButtons=[],this.markerjsContainer=le,this.displayMode=ae,this.uiStyleSettings=pe,this.styles=ye,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return he.prototype.addStyles=function(){var le;this.toolboxStyleClass=this.styles.addClass(new $e("toolbox",`
width: 100%;
flex-shrink: 0;
display: flex;
flex-direction: column;
font-family: sans-serif;
`+(this.displayMode==="popup"?"height:"+2.5*this.uiStyleSettings.toolbarHeight+"px;":"")+`
box-sizing: content-box;
`+(this.displayMode==="popup"?"background-color: "+this.uiStyleSettings.canvasBackgroundColor+";":"")+`
`+(this.displayMode==="inline"?"border-bottom-left-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
`+(this.displayMode==="inline"?"border-bottom-right-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
overflow: hidden;
`)),this.toolboxStyleColorsClass=this.styles.addClass(new $e("toolbox_colors",`
color: `+this.uiStyleSettings.toolboxColor+`;
`));var ae=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new $e("toolbox-button-row",`
display: flex;
cursor: default;
box-sizing: content-box;
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new $e("toolbox-button-row_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new $e("toolbox-panel-row",`
display: flex;
`+(this.displayMode==="inline"?"position: absolute;":"")+`
`+(this.displayMode==="inline"?"bottom: "+this.uiStyleSettings.toolbarHeight+"px;":"")+`
cursor: default;
height: `+1.5*this.uiStyleSettings.toolbarHeight+`px;
`+(this.displayMode==="inline"?"width: 100%;":"")+`
box-sizing: content-box;
`)),this.toolboxPanelRowStyleColorsClass=this.styles.addClass(new $e("toolbox-panel-row_colors",`
background-color: `+((le=this.uiStyleSettings.toolboxBackgroundColor)!==null&&le!==void 0?le:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
`)),this.toolboxButtonStyleClass=this.styles.addClass(new $e("toolbox_button",`
display: inline-block;
width: `+(this.uiStyleSettings.toolbarHeight-2*ae)+`px;
height: `+(this.uiStyleSettings.toolbarHeight-2*ae)+`px;
padding: `+ae+`px;
box-sizing: content-box;
`)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new $e("toolbox-button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new $e("toolbox-active-button_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.styles.addRule(new Xe("."+this.toolboxButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new Xe("."+this.toolboxButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`))},he.prototype.show=function(le){var ae;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=le,this.uiContainer.className=this.toolboxStyleClass.name+" "+((ae=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&ae!==void 0?ae:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},he.prototype.setPanelButtons=function(le){var ae,pe,ye=this;this.panels=le,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((ae=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&ae!==void 0?ae:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((pe=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&pe!==void 0?pe:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(se){var ot;se.uiStyleSettings=ye.uiStyleSettings;var Xt=document.createElement("div");Xt.className=ye.toolboxButtonStyleClass.name+" "+((ot=ye.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&ot!==void 0?ot:ye.toolboxButtonStyleColorsClass.name),Xt.innerHTML=se.icon,Xt.title=se.title,Xt.addEventListener("click",function(){ye.panelButtonClick(se)}),ye.panelButtons.push(Xt),ye.buttonRow.appendChild(Xt)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},he.prototype.panelButtonClick=function(le){var ae=this,pe=-1;if(le!==this.activePanel){pe=this.panels.indexOf(le),this.panelRow.innerHTML="";var ye=le.getUi();ye.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(ye),this.panelRow.style.display="flex",this.panelRow.style.visibility="visible",this.panelRow.className=this.panelRow.className.replace(this.styles.fadeOutAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeInAnimationClassName,this.activePanel=le}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){ae.displayMode==="inline"?ae.panelRow.style.display="none":ae.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(se,ot){var Xt,zt;se.className=ae.toolboxButtonStyleClass.name+" "+(ot===pe?""+((Xt=ae.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&Xt!==void 0?Xt:ae.toolboxActiveButtonStyleColorsClass.name):""+((zt=ae.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&zt!==void 0?zt:ae.toolboxButtonStyleColorsClass.name))})},he}(),Ne=function(he,le){this.title=he,this.icon=le},Be=function(he){function le(ae,pe,ye,se){var ot=he.call(this,ae,se||'<svg viewBox="0 0 24 24"><path d="M17.5 12a1.5 1.5 0 01-1.5-1.5A1.5 1.5 0 0117.5 9a1.5 1.5 0 011.5 1.5 1.5 1.5 0 01-1.5 1.5m-3-4A1.5 1.5 0 0113 6.5 1.5 1.5 0 0114.5 5 1.5 1.5 0 0116 6.5 1.5 1.5 0 0114.5 8m-5 0A1.5 1.5 0 018 6.5 1.5 1.5 0 019.5 5 1.5 1.5 0 0111 6.5 1.5 1.5 0 019.5 8m-3 4A1.5 1.5 0 015 10.5 1.5 1.5 0 016.5 9 1.5 1.5 0 018 10.5 1.5 1.5 0 016.5 12M12 3a9 9 0 00-9 9 9 9 0 009 9 1.5 1.5 0 001.5-1.5c0-.39-.15-.74-.39-1-.23-.27-.38-.62-.38-1a1.5 1.5 0 011.5-1.5H16a5 5 0 005-5c0-4.42-4.03-8-9-8z"/></svg>')||this;return ot.colors=[],ot.addTransparent=!1,ot.colorBoxes=[],ot.colors=pe,ot.currentColor=ye,ot.setCurrentColor=ot.setCurrentColor.bind(ot),ot.getColorBox=ot.getColorBox.bind(ot),ot}return ve(le,he),le.prototype.getUi=function(){var ae=this,pe=document.createElement("div");return pe.style.overflow="hidden",pe.style.whiteSpace="nowrap",this.colors.forEach(function(ye){var se=ae.getColorBox(ye);pe.appendChild(se),ae.colorBoxes.push(se)}),pe},le.prototype.getColorBox=function(ae){var pe=this,ye=this.uiStyleSettings.toolbarHeight/4,se=this.uiStyleSettings.toolbarHeight-ye,ot=document.createElement("div");ot.style.display="inline-block",ot.style.boxSizing="content-box",ot.style.width=se-2+"px",ot.style.height=se-2+"px",ot.style.padding="1px",ot.style.marginRight="2px",ot.style.marginBottom="2px",ot.style.borderWidth="2px",ot.style.borderStyle="solid",ot.style.borderRadius=(se+2)/2+"px",ot.style.borderColor=ae===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",ot.addEventListener("click",function(){pe.setCurrentColor(ae,ot)});var Xt=document.createElement("div");return Xt.style.display="inline-block",Xt.style.width=se-2+"px",Xt.style.height=se-2+"px",Xt.style.backgroundColor=ae,Xt.style.borderRadius=se/2+"px",ae==="transparent"&&(Xt.style.fill=this.uiStyleSettings.toolboxAccentColor,Xt.innerHTML=`<svg viewBox="0 0 24 24">
<path d="M2,5.27L3.28,4L20,20.72L18.73,22L15.65,18.92C14.5,19.3 13.28,19.5 12,19.5C7,19.5 2.73,16.39 1,12C1.69,10.24 2.79,8.69 4.19,7.46L2,5.27M12,9A3,3 0 0,1 15,12C15,12.35 14.94,12.69 14.83,13L11,9.17C11.31,9.06 11.65,9 12,9M12,4.5C17,4.5 21.27,7.61 23,12C22.18,14.08 20.79,15.88 19,17.19L17.58,15.76C18.94,14.82 20.06,13.54 20.82,12C19.17,8.64 15.76,6.5 12,6.5C10.91,6.5 9.84,6.68 8.84,7L7.3,5.47C8.74,4.85 10.33,4.5 12,4.5M3.18,12C4.83,15.36 8.24,17.5 12,17.5C12.69,17.5 13.37,17.43 14,17.29L11.72,15C10.29,14.85 9.15,13.71 9,12.28L5.6,8.87C4.61,9.72 3.78,10.78 3.18,12Z" />
</svg>`),ot.appendChild(Xt),ot},le.prototype.setCurrentColor=function(ae,pe){var ye=this;this.currentColor=ae,this.colorBoxes.forEach(function(se){se.style.borderColor=se===pe?ye.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(ae)},le}(Ne),be=function(){function he(le,ae,pe){this._state="new",this._isSelected=!1,this._container=le,this._overlayContainer=ae,this.globalSettings=pe,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(he.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(he.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(he.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(he.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(he.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),he.prototype.ownsTarget=function(le){return!1},Object.defineProperty(he.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),he.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},he.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},he.prototype.pointerDown=function(le,ae){},he.prototype.dblClick=function(le,ae){},he.prototype.manipulate=function(le){},he.prototype.pointerUp=function(le){this.stateChanged()},he.prototype.dispose=function(){},he.prototype.addMarkerVisualToContainer=function(le){this.container.childNodes.length>0?this.container.insertBefore(le,this.container.childNodes[0]):this.container.appendChild(le)},he.prototype.getState=function(){return{typeName:he.typeName,state:this.state,notes:this.notes}},he.prototype.restoreState=function(le){this._state=le.state,this.notes=le.notes},he.prototype.scale=function(le,ae){},he.prototype.colorChanged=function(le){this.onColorChanged&&this.onColorChanged(le),this.stateChanged()},he.prototype.fillColorChanged=function(le){this.onFillColorChanged&&this.onFillColorChanged(le),this.stateChanged()},he.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var le=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),le.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(le)&&this.onStateChanged(this)}},he.typeName="MarkerBase",he}(),Ie=function(){function he(){this.findGripByVisual=this.findGripByVisual.bind(this)}return he.prototype.findGripByVisual=function(le){return this.topLeft.ownsTarget(le)?this.topLeft:this.topCenter.ownsTarget(le)?this.topCenter:this.topRight.ownsTarget(le)?this.topRight:this.centerLeft.ownsTarget(le)?this.centerLeft:this.centerRight.ownsTarget(le)?this.centerRight:this.bottomLeft.ownsTarget(le)?this.bottomLeft:this.bottomCenter.ownsTarget(le)?this.bottomCenter:this.bottomRight.ownsTarget(le)?this.bottomRight:void 0},he}(),Ke=function(){function he(){this.GRIP_SIZE=10,this.visual=_e.createGroup(),this.visual.appendChild(_e.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(_e.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return he.prototype.ownsTarget=function(le){return le===this.visual||le===this.visual.childNodes[0]||le===this.visual.childNodes[1]},he}(),at=function(){function he(){}return he.toITransformMatrix=function(le){return{a:le.a,b:le.b,c:le.c,d:le.d,e:le.e,f:le.f}},he.toSVGMatrix=function(le,ae){return le.a=ae.a,le.b=ae.b,le.c=ae.c,le.d=ae.d,le.e=ae.e,le.f=ae.f,le},he}(),fe=function(he){function le(ae,pe,ye){var se=he.call(this,ae,pe,ye)||this;return se.left=0,se.top=0,se.width=0,se.height=0,se.defaultSize={x:50,y:20},se.offsetX=0,se.offsetY=0,se.rotationAngle=0,se.CB_DISTANCE=10,se._suppressMarkerCreateEvent=!1,se.container.transform.baseVal.appendItem(_e.createTransform()),se.setupControlBox(),se}return ve(le,he),Object.defineProperty(le.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(le.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(le.prototype,"visual",{get:function(){return this._visual},set:function(ae){this._visual=ae;var pe=_e.createTransform();this._visual.transform.baseVal.appendItem(pe)},enumerable:!1,configurable:!0}),le.prototype.ownsTarget=function(ae){return!!he.prototype.ownsTarget.call(this,ae)||!!(this.controlGrips.findGripByVisual(ae)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(ae))},le.prototype.pointerDown=function(ae,pe){he.prototype.pointerDown.call(this,ae,pe),this.state==="new"&&(this.left=ae.x,this.top=ae.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var ye=this.unrotatePoint(ae);if(this.manipulationStartX=ye.x,this.manipulationStartY=ye.y,this.offsetX=ye.x-this.left,this.offsetY=ye.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(pe),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(pe)){this.activeGrip=this.rotatorGrip;var se=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=se.x-this.width/2,this.top=se.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var ot=this.container.transform.baseVal.getItem(0);ot.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(ot,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},le.prototype.pointerUp=function(ae){var pe=this.state;he.prototype.pointerUp.call(this,ae),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(ae),this._state="select",pe==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},le.prototype.moveVisual=function(ae){this.visual.style.transform="translate("+ae.x+"px, "+ae.y+"px)"},le.prototype.manipulate=function(ae){var pe=this.unrotatePoint(ae);this.state==="creating"?this.resize(ae):this.state==="move"?(this.left=this.manipulationStartLeft+(pe.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(pe.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(pe):this.state==="rotate"&&this.rotate(ae)},le.prototype.resize=function(ae){var pe=this.manipulationStartLeft,ye=this.manipulationStartWidth,se=this.manipulationStartTop,ot=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:pe=this.manipulationStartLeft+ae.x-this.manipulationStartX,ye=this.manipulationStartWidth+this.manipulationStartLeft-pe;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:ye=this.manipulationStartWidth+ae.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:se=this.manipulationStartTop+ae.y-this.manipulationStartY,ot=this.manipulationStartHeight+this.manipulationStartTop-se;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:ot=this.manipulationStartHeight+ae.y-this.manipulationStartY}ye>=0?(this.left=pe,this.width=ye):(this.left=pe+ye,this.width=-ye),ot>=0?(this.top=se,this.height=ot):(this.top=se+ot,this.height=-ot),this.setSize()},le.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},le.prototype.rotate=function(ae){if(Math.abs(ae.x-this.centerX)>.1){var pe=Math.sign(ae.x-this.centerX);this.rotationAngle=180*Math.atan((ae.y-this.centerY)/(ae.x-this.centerX))/Math.PI+90*pe,this.applyRotation()}},le.prototype.applyRotation=function(){var ae=this.container.transform.baseVal.getItem(0);ae.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(ae,0)},le.prototype.rotatePoint=function(ae){if(this.rotationAngle===0)return ae;var pe=this.container.getCTM(),ye=_e.createPoint(ae.x,ae.y);return{x:(ye=ye.matrixTransform(pe)).x,y:ye.y}},le.prototype.unrotatePoint=function(ae){if(this.rotationAngle===0)return ae;var pe=this.container.getCTM();pe=pe.inverse();var ye=_e.createPoint(ae.x,ae.y);return{x:(ye=ye.matrixTransform(pe)).x,y:ye.y}},le.prototype.select=function(){he.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},le.prototype.deselect=function(){he.prototype.deselect.call(this),this.controlBox.style.display="none"},le.prototype.setupControlBox=function(){this.controlBox=_e.createGroup();var ae=_e.createTransform();ae.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(ae),this.container.appendChild(this.controlBox),this.controlRect=_e.createRect(this.width+this.CB_DISTANCE,this.height+this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"],["fill","transparent"],["pointer-events","none"]]),this.controlBox.appendChild(this.controlRect),this.globalSettings.disableRotation!==!0&&(this.rotatorGripLine=_e.createLine((this.width+2*this.CB_DISTANCE)/2,this.top-this.CB_DISTANCE,(this.width+2*this.CB_DISTANCE)/2,this.top-3*this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.appendChild(this.rotatorGripLine)),this.controlGrips=new Ie,this.addControlGrips(),this.controlBox.style.display="none"},le.prototype.adjustControlBox=function(){var ae=this.controlBox.transform.baseVal.getItem(0);ae.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(ae,0),this.controlRect.setAttribute("width",(this.width+this.CB_DISTANCE).toString()),this.controlRect.setAttribute("height",(this.height+this.CB_DISTANCE).toString()),this.rotatorGripLine!==void 0&&(this.rotatorGripLine.setAttribute("x1",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y1",(-this.CB_DISTANCE/2).toString()),this.rotatorGripLine.setAttribute("x2",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y2",(3*-this.CB_DISTANCE).toString())),this.positionGrips()},le.prototype.addControlGrips=function(){this.controlGrips.topLeft=this.createGrip(),this.controlGrips.topCenter=this.createGrip(),this.controlGrips.topRight=this.createGrip(),this.controlGrips.centerLeft=this.createGrip(),this.controlGrips.centerRight=this.createGrip(),this.controlGrips.bottomLeft=this.createGrip(),this.controlGrips.bottomCenter=this.createGrip(),this.controlGrips.bottomRight=this.createGrip(),this.globalSettings.disableRotation!==!0&&(this.rotatorGrip=this.createGrip()),this.positionGrips()},le.prototype.createGrip=function(){var ae=new Ke;return ae.visual.transform.baseVal.appendItem(_e.createTransform()),this.controlBox.appendChild(ae.visual),ae},le.prototype.positionGrips=function(){var ae=this.controlGrips.topLeft.GRIP_SIZE,pe=-ae/2,ye=pe,se=(this.width+this.CB_DISTANCE)/2-ae/2,ot=(this.height+this.CB_DISTANCE)/2-ae/2,Xt=this.height+this.CB_DISTANCE-ae/2,zt=this.width+this.CB_DISTANCE-ae/2;this.positionGrip(this.controlGrips.topLeft.visual,pe,ye),this.positionGrip(this.controlGrips.topCenter.visual,se,ye),this.positionGrip(this.controlGrips.topRight.visual,zt,ye),this.positionGrip(this.controlGrips.centerLeft.visual,pe,ot),this.positionGrip(this.controlGrips.centerRight.visual,zt,ot),this.positionGrip(this.controlGrips.bottomLeft.visual,pe,Xt),this.positionGrip(this.controlGrips.bottomCenter.visual,se,Xt),this.positionGrip(this.controlGrips.bottomRight.visual,zt,Xt),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,se,ye-3*this.CB_DISTANCE)},le.prototype.positionGrip=function(ae,pe,ye){var se=ae.transform.baseVal.getItem(0);se.setTranslate(pe,ye),ae.transform.baseVal.replaceItem(se,0)},le.prototype.hideControlBox=function(){this.controlBox.style.display="none"},le.prototype.showControlBox=function(){this.controlBox.style.display=""},le.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:at.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:at.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},he.prototype.getState.call(this))},le.prototype.restoreState=function(ae){he.prototype.restoreState.call(this,ae);var pe=ae;this.left=pe.left,this.top=pe.top,this.width=pe.width,this.height=pe.height,this.rotationAngle=pe.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(at.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,pe.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(at.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,pe.containerTransformMatrix))},le.prototype.scale=function(ae,pe){he.prototype.scale.call(this,ae,pe);var ye=this.rotatePoint({x:this.left,y:this.top}),se=this.unrotatePoint({x:ye.x*ae,y:ye.y*pe});this.left=se.x,this.top=se.y,this.width=this.width*ae,this.height=this.height*pe,this.adjustControlBox()},le}(be),qe=function(he){function le(ae,pe,ye){var se=he.call(this,ae,pe,ye)||this;return se.fillColor="transparent",se.strokeColor="transparent",se.strokeWidth=0,se.strokeDasharray="",se.opacity=1,se.setStrokeColor=se.setStrokeColor.bind(se),se.setFillColor=se.setFillColor.bind(se),se.setStrokeWidth=se.setStrokeWidth.bind(se),se.setStrokeDasharray=se.setStrokeDasharray.bind(se),se.createVisual=se.createVisual.bind(se),se}return ve(le,he),le.prototype.ownsTarget=function(ae){return!(!he.prototype.ownsTarget.call(this,ae)&&ae!==this.visual)},le.prototype.createVisual=function(){this.visual=_e.createRect(1,1,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},le.prototype.pointerDown=function(ae,pe){he.prototype.pointerDown.call(this,ae,pe),this.state==="new"&&(this.createVisual(),this.moveVisual(ae),this._state="creating")},le.prototype.manipulate=function(ae){he.prototype.manipulate.call(this,ae)},le.prototype.resize=function(ae){he.prototype.resize.call(this,ae),this.setSize()},le.prototype.setSize=function(){he.prototype.setSize.call(this),_e.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},le.prototype.pointerUp=function(ae){he.prototype.pointerUp.call(this,ae),this.setSize()},le.prototype.setStrokeColor=function(ae){this.strokeColor=ae,this.visual&&_e.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(ae),this.stateChanged()},le.prototype.setFillColor=function(ae){this.fillColor=ae,this.visual&&_e.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},le.prototype.setStrokeWidth=function(ae){this.strokeWidth=ae,this.visual&&_e.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},le.prototype.setStrokeDasharray=function(ae){this.strokeDasharray=ae,this.visual&&_e.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},le.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},he.prototype.getState.call(this))},le.prototype.restoreState=function(ae){var pe=ae;this.fillColor=pe.fillColor,this.strokeColor=pe.strokeColor,this.strokeWidth=pe.strokeWidth,this.strokeDasharray=pe.strokeDasharray,this.opacity=pe.opacity,this.createVisual(),he.prototype.restoreState.call(this,ae),this.setSize()},le.prototype.scale=function(ae,pe){he.prototype.scale.call(this,ae,pe),this.setSize()},le.title="Rectangle marker",le}(fe),st=function(he){function le(ae,pe,ye,se){var ot=he.call(this,ae,se||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return ot.widths=[],ot.widthBoxes=[],ot.widths=pe,ot.currentWidth=ye,ot.setCurrentWidth=ot.setCurrentWidth.bind(ot),ot}return ve(le,he),le.prototype.getUi=function(){var ae=this,pe=document.createElement("div");return pe.style.display="flex",pe.style.overflow="hidden",pe.style.flexGrow="2",this.widths.forEach(function(ye){var se=document.createElement("div");se.style.display="flex",se.style.flexGrow="2",se.style.alignItems="center",se.style.justifyContent="space-between",se.style.padding="5px",se.style.borderWidth="2px",se.style.borderStyle="solid",se.style.borderColor=ye===ae.currentWidth?ae.uiStyleSettings.toolboxAccentColor:"transparent",se.addEventListener("click",function(){ae.setCurrentWidth(ye,se)}),pe.appendChild(se);var ot=document.createElement("div");ot.innerText=ye.toString(),ot.style.marginRight="5px",se.appendChild(ot);var Xt=document.createElement("div");Xt.style.minHeight="20px",Xt.style.flexGrow="2",Xt.style.display="flex",Xt.style.alignItems="center";var zt=document.createElement("hr");zt.style.minWidth="20px",zt.style.border="0px",zt.style.borderTop=ye+"px solid "+ae.uiStyleSettings.toolboxColor,zt.style.flexGrow="2",Xt.appendChild(zt),se.appendChild(Xt),ae.widthBoxes.push(se)}),pe},le.prototype.setCurrentWidth=function(ae,pe){var ye=this;this.currentWidth=ae,this.widthBoxes.forEach(function(se){se.style.borderColor=se===pe?ye.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},le}(Ne),wt=function(he){function le(ae,pe,ye,se){var ot=he.call(this,ae,se||'<svg viewBox="0 0 24 24"><path d="M3 16h5v-2H3v2m6.5 0h5v-2h-5v2m6.5 0h5v-2h-5v2M3 20h2v-2H3v2m4 0h2v-2H7v2m4 0h2v-2h-2v2m4 0h2v-2h-2v2m4 0h2v-2h-2v2M3 12h8v-2H3v2m10 0h8v-2h-8v2M3 4v4h18V4H3z"/></svg>')||this;return ot.styles=[],ot.styleBoxes=[],ot.styles=pe,ot.currentStyle=ye,ot.setCurrentStyle=ot.setCurrentStyle.bind(ot),ot}return ve(le,he),le.prototype.getUi=function(){var ae=this,pe=document.createElement("div");return pe.style.display="flex",pe.style.overflow="hidden",pe.style.flexGrow="2",this.styles.forEach(function(ye){var se=document.createElement("div");se.style.display="flex",se.style.alignItems="center",se.style.justifyContent="space-between",se.style.padding="5px",se.style.borderWidth="2px",se.style.borderStyle="solid",se.style.overflow="hidden",se.style.maxWidth=100/ae.styles.length-5+"%",se.style.borderColor=ye===ae.currentStyle?ae.uiStyleSettings.toolboxAccentColor:"transparent",se.addEventListener("click",function(){ae.setCurrentStyle(ye,se)}),pe.appendChild(se);var ot=document.createElement("div");ot.style.minHeight="20px",ot.style.flexGrow="2",ot.style.overflow="hidden";var Xt=`<svg width="100" height="20">
<line x1="0" y1="10" x2="100" y2="10" stroke="`+ae.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(ye!==""?'stroke-dasharray="'+ye+'"':"")+` />
</svg>`;ot.innerHTML=Xt,se.appendChild(ot),ae.styleBoxes.push(se)}),pe},le.prototype.setCurrentStyle=function(ae,pe){var ye=this;this.currentStyle=ae,this.styleBoxes.forEach(function(se){se.style.borderColor=se===pe?ye.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},le}(Ne),ft=function(he){function le(ae,pe,ye){var se=he.call(this,ae,pe,ye)||this;return se.strokeColor=ye.defaultColor,se.strokeWidth=ye.defaultStrokeWidth,se.strokeDasharray=ye.defaultStrokeDasharray,se.strokePanel=new Be("Line color",ye.defaultColorSet,ye.defaultColor),se.strokePanel.onColorChanged=se.setStrokeColor,se.strokeWidthPanel=new st("Line width",ye.defaultStrokeWidths,ye.defaultStrokeWidth),se.strokeWidthPanel.onWidthChanged=se.setStrokeWidth,se.strokeStylePanel=new wt("Line style",ye.defaultStrokeDasharrays,ye.defaultStrokeDasharray),se.strokeStylePanel.onStyleChanged=se.setStrokeDasharray,se}return ve(le,he),Object.defineProperty(le.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),le.prototype.getState=function(){var ae=he.prototype.getState.call(this);return ae.typeName=le.typeName,ae},le.typeName="FrameMarker",le.title="Frame marker",le.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',le}(qe),ct=function(){this.defaultColorSet=["#EF4444","#10B981","#2563EB","#FFFF00","#7C3AED","#F472B6","#000000","#FFFFFF"],this.defaultColor=this.defaultColorSet[0],this.defaultFillColor=this.defaultColorSet[0],this.defaultStrokeColor=this.defaultColorSet[7],this.defaultHighlightColor=this.defaultColorSet[3],this.defaultStrokeWidth=3,this.defaultStrokeDasharray="",this.defaultHighlightOpacity=.5,this.defaultFontFamily="Helvetica, Arial, sans-serif",this.defaultStrokeWidths=[1,2,3,5,10],this.defaultStrokeDasharrays=["","3","12 3","9 6 3 6"],this.defaultOpacitySteps=[.1,.25,.5,.75,1],this.displayMode="inline",this.defaultFontFamilies=['Times, "Times New Roman", serif',"Helvetica, Arial, sans-serif",'Courier, "Courier New", monospace',"cursive","fantasy"],this.popupMargin=30,this.newFreehandMarkerOnPointerUp=!1,this.defaultColorsFollowCurrentColors=!1,this.freehandPixelRatio=1,this.disableRotation=!1,this.defaultCaptionFontSize="1rem",this.defaultCaptionText="Text"},Je=function(he){function le(ae,pe,ye){var se=he.call(this,ae,pe,ye)||this;return se.x1=0,se.y1=0,se.x2=0,se.y2=0,se.defaultLength=50,se.manipulationStartX=0,se.manipulationStartY=0,se.manipulationStartX1=0,se.manipulationStartY1=0,se.manipulationStartX2=0,se.manipulationStartY2=0,se.setupControlBox(),se}return ve(le,he),le.prototype.ownsTarget=function(ae){return!!he.prototype.ownsTarget.call(this,ae)||!(!this.grip1.ownsTarget(ae)&&!this.grip2.ownsTarget(ae))},le.prototype.pointerDown=function(ae,pe){he.prototype.pointerDown.call(this,ae,pe),this.manipulationStartX=ae.x,this.manipulationStartY=ae.y,this.state==="new"&&(this.x1=ae.x,this.y1=ae.y,this.x2=ae.x,this.y2=ae.y),this.manipulationStartX1=this.x1,this.manipulationStartY1=this.y1,this.manipulationStartX2=this.x2,this.manipulationStartY2=this.y2,this.state!=="new"&&(this.select(),this.grip1.ownsTarget(pe)?this.activeGrip=this.grip1:this.grip2.ownsTarget(pe)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},le.prototype.pointerUp=function(ae){var pe=this.state;he.prototype.pointerUp.call(this,ae),this.state==="creating"&&Math.abs(this.x1-this.x2)<10&&Math.abs(this.y1-this.y2)<10?(this.x2=this.x1+this.defaultLength,this.adjustVisual(),this.adjustControlBox()):this.manipulate(ae),this._state="select",pe==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},le.prototype.adjustVisual=function(){},le.prototype.manipulate=function(ae){this.state==="creating"?this.resize(ae):this.state==="move"?(this.x1=this.manipulationStartX1+ae.x-this.manipulationStartX,this.y1=this.manipulationStartY1+ae.y-this.manipulationStartY,this.x2=this.manipulationStartX2+ae.x-this.manipulationStartX,this.y2=this.manipulationStartY2+ae.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(ae)},le.prototype.resize=function(ae){switch(this.activeGrip){case this.grip1:this.x1=ae.x,this.y1=ae.y;break;case this.grip2:case void 0:this.x2=ae.x,this.y2=ae.y}this.adjustVisual(),this.adjustControlBox()},le.prototype.select=function(){he.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},le.prototype.deselect=function(){he.prototype.deselect.call(this),this.controlBox.style.display="none"},le.prototype.setupControlBox=function(){this.controlBox=_e.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},le.prototype.adjustControlBox=function(){this.positionGrips()},le.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},le.prototype.createGrip=function(){var ae=new Ke;return ae.visual.transform.baseVal.appendItem(_e.createTransform()),this.controlBox.appendChild(ae.visual),ae},le.prototype.positionGrips=function(){var ae=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-ae/2,this.y1-ae/2),this.positionGrip(this.grip2.visual,this.x2-ae/2,this.y2-ae/2)},le.prototype.positionGrip=function(ae,pe,ye){var se=ae.transform.baseVal.getItem(0);se.setTranslate(pe,ye),ae.transform.baseVal.replaceItem(se,0)},le.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},he.prototype.getState.call(this))},le.prototype.restoreState=function(ae){he.prototype.restoreState.call(this,ae);var pe=ae;this.x1=pe.x1,this.y1=pe.y1,this.x2=pe.x2,this.y2=pe.y2},le.prototype.scale=function(ae,pe){he.prototype.scale.call(this,ae,pe),this.x1=this.x1*ae,this.y1=this.y1*pe,this.x2=this.x2*ae,this.y2=this.y2*pe,this.adjustVisual(),this.adjustControlBox()},le}(be),ut=function(he){function le(ae,pe,ye){var se=he.call(this,ae,pe,ye)||this;return se.strokeColor="transparent",se.strokeWidth=0,se.strokeDasharray="",se.setStrokeColor=se.setStrokeColor.bind(se),se.setStrokeWidth=se.setStrokeWidth.bind(se),se.setStrokeDasharray=se.setStrokeDasharray.bind(se),se.strokeColor=ye.defaultColor,se.strokeWidth=ye.defaultStrokeWidth,se.strokeDasharray=ye.defaultStrokeDasharray,se.strokePanel=new Be("Line color",ye.defaultColorSet,ye.defaultColor),se.strokePanel.onColorChanged=se.setStrokeColor,se.strokeWidthPanel=new st("Line width",ye.defaultStrokeWidths,ye.defaultStrokeWidth),se.strokeWidthPanel.onWidthChanged=se.setStrokeWidth,se.strokeStylePanel=new wt("Line style",ye.defaultStrokeDasharrays,ye.defaultStrokeDasharray),se.strokeStylePanel.onStyleChanged=se.setStrokeDasharray,se}return ve(le,he),le.prototype.ownsTarget=function(ae){return!(!he.prototype.ownsTarget.call(this,ae)&&ae!==this.visual&&ae!==this.selectorLine&&ae!==this.visibleLine)},le.prototype.createVisual=function(){this.visual=_e.createGroup(),this.selectorLine=_e.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=_e.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.visual.appendChild(this.selectorLine),this.visual.appendChild(this.visibleLine),this.addMarkerVisualToContainer(this.visual)},le.prototype.pointerDown=function(ae,pe){he.prototype.pointerDown.call(this,ae,pe),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},le.prototype.adjustVisual=function(){this.selectorLine&&this.visibleLine&&(this.selectorLine.setAttribute("x1",this.x1.toString()),this.selectorLine.setAttribute("y1",this.y1.toString()),this.selectorLine.setAttribute("x2",this.x2.toString()),this.selectorLine.setAttribute("y2",this.y2.toString()),this.visibleLine.setAttribute("x1",this.x1.toString()),this.visibleLine.setAttribute("y1",this.y1.toString()),this.visibleLine.setAttribute("x2",this.x2.toString()),this.visibleLine.setAttribute("y2",this.y2.toString()),_e.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),_e.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),_e.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},le.prototype.setStrokeColor=function(ae){this.strokeColor=ae,this.adjustVisual(),this.colorChanged(ae)},le.prototype.setStrokeWidth=function(ae){this.strokeWidth=ae,this.adjustVisual()},le.prototype.setStrokeDasharray=function(ae){this.strokeDasharray=ae,this.adjustVisual(),this.stateChanged()},Object.defineProperty(le.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),le.prototype.getState=function(){var ae=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},he.prototype.getState.call(this));return ae.typeName=le.typeName,ae},le.prototype.restoreState=function(ae){he.prototype.restoreState.call(this,ae);var pe=ae;this.strokeColor=pe.strokeColor,this.strokeWidth=pe.strokeWidth,this.strokeDasharray=pe.strokeDasharray,this.createVisual(),this.adjustVisual()},le.typeName="LineMarker",le.title="Line marker",le.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',le}(Je),Se=function(he){function le(ae,pe,ye,se){var ot=he.call(this,ae,se||'<svg viewBox="0 0 24 24"><path d="M17 8h3v12h1v1h-4v-1h1v-3h-4l-1.5 3H14v1h-4v-1h1l6-12m1 1l-3.5 7H18V9M5 3h5c1.11 0 2 .89 2 2v11H9v-5H6v5H3V5c0-1.11.89-2 2-2m1 2v4h3V5H6z"/></svg>')||this;return ot.fonts=[],ot.fontBoxes=[],ot.fonts=pe,ot.currentFont=ye,ot.setCurrentFont=ot.setCurrentFont.bind(ot),ot}return ve(le,he),le.prototype.getUi=function(){var ae=this,pe=document.createElement("div");return pe.style.overflow="hidden",pe.style.flexGrow="2",this.fonts.forEach(function(ye){var se=document.createElement("div");se.style.display="inline-block",se.style.alignItems="center",se.style.justifyContent="space-between",se.style.padding="5px",se.style.borderWidth="2px",se.style.borderStyle="solid",se.style.overflow="hidden",se.style.maxWidth=100/ae.fonts.length-5+"%",se.style.borderColor=ye===ae.currentFont?ae.uiStyleSettings.toolboxAccentColor:"transparent",se.addEventListener("click",function(){ae.setCurrentFont(ye,se)}),pe.appendChild(se);var ot=document.createElement("div");ot.style.display="flex",ot.style.minHeight="20px",ot.style.flexGrow="2",ot.style.fontFamily=ye,ot.style.overflow="hidden";var Xt=document.createElement("div");Xt.style.whiteSpace="nowrap",Xt.style.overflow="hidden",Xt.style.textOverflow="ellipsis",Xt.innerHTML="The quick brown fox jumps over the lazy dog",ot.appendChild(Xt),se.appendChild(ot),ae.fontBoxes.push(se)}),pe},le.prototype.setCurrentFont=function(ae,pe){var ye=this;this.currentFont=ae,this.fontBoxes.forEach(function(se){se.style.borderColor=se===pe?ye.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},le}(Ne),Ve=function(he){function le(ae,pe,ye){var se=he.call(this,ae,pe,ye)||this;return se.color="transparent",se.padding=5,se.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",se.text=se.DEFAULT_TEXT,se.isMoved=!1,se.color=ye.defaultColor,se.fontFamily=ye.defaultFontFamily,se.defaultSize={x:100,y:30},se.setColor=se.setColor.bind(se),se.setFont=se.setFont.bind(se),se.renderText=se.renderText.bind(se),se.sizeText=se.sizeText.bind(se),se.textEditDivClicked=se.textEditDivClicked.bind(se),se.showTextEditor=se.showTextEditor.bind(se),se.setSize=se.setSize.bind(se),se.positionTextEditor=se.positionTextEditor.bind(se),se.colorPanel=new Be("Color",ye.defaultColorSet,ye.defaultColor),se.colorPanel.onColorChanged=se.setColor,se.fontFamilyPanel=new Se("Font",ye.defaultFontFamilies,ye.defaultFontFamily),se.fontFamilyPanel.onFontChanged=se.setFont,se}return ve(le,he),le.prototype.ownsTarget=function(ae){if(he.prototype.ownsTarget.call(this,ae)||ae===this.visual||ae===this.textElement||ae===this.bgRectangle)return!0;var pe=!1;return this.textElement.childNodes.forEach(function(ye){ye===ae&&(pe=!0)}),pe},le.prototype.createVisual=function(){this.visual=_e.createGroup(),this.bgRectangle=_e.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=_e.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(_e.createTransform()),this.textElement.transform.baseVal.appendItem(_e.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},le.prototype.pointerDown=function(ae,pe){he.prototype.pointerDown.call(this,ae,pe),this.isMoved=!1,this.pointerDownPoint=ae,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(ae),this._state="creating")},le.prototype.renderText=function(){var ae=this;if(this.textElement){for(;this.textElement.lastChild;)this.textElement.removeChild(this.textElement.lastChild);this.text.split(/\r\n|[\n\v\f\r\x85\u2028\u2029]/).forEach(function(pe){ae.textElement.appendChild(_e.createTSpan(pe.trim()===""?" ":pe.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},le.prototype.getTextScale=function(){var ae=this.textElement.getBBox(),pe=1;if(ae.width>0&&ae.height>0){var ye=(1*this.width-this.width*this.padding*2/100)/ae.width,se=(1*this.height-this.height*this.padding*2/100)/ae.height;pe=Math.min(ye,se)}return pe},le.prototype.getTextPosition=function(ae){var pe=this.textElement.getBBox(),ye=0,se=0;return pe.width>0&&pe.height>0&&(ye=(this.width-pe.width*ae)/2,se=this.height/2-pe.height*ae/2),{x:ye,y:se}},le.prototype.sizeText=function(){var ae=this.textElement.getBBox(),pe=this.getTextScale(),ye=this.getTextPosition(pe);ye.y-=ae.y*pe,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+ye.x+"px, "+ye.y+"px) scale("+pe+", "+pe+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(ye.x,ye.y),this.textElement.transform.baseVal.getItem(1).setScale(pe,pe))},le.prototype.manipulate=function(ae){he.prototype.manipulate.call(this,ae),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(ae.x-this.pointerDownPoint.x)>5||Math.abs(ae.y-this.pointerDownPoint.y)>5)},le.prototype.resize=function(ae){he.prototype.resize.call(this,ae),this.isMoved=!0,this.setSize(),this.sizeText()},le.prototype.setSize=function(){he.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(_e.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),_e.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},le.prototype.pointerUp=function(ae){var pe=this.state;pe==="creating"&&(this._suppressMarkerCreateEvent=!0),he.prototype.pointerUp.call(this,ae),this.setSize(),(pe==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},le.prototype.showTextEditor=function(){var ae=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditor=document.createElement("div"),this.textEditor.style.position="absolute",this.textEditor.style.fontFamily=this.fontFamily,this.textEditor.style.lineHeight="1em",this.textEditor.innerText=this.text,this.textEditor.contentEditable="true",this.textEditor.style.color=this.color,this.textEditor.style.whiteSpace="pre",this.positionTextEditor(),this.textEditor.addEventListener("pointerup",function(pe){pe.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var pe=Number.parseFloat(ae.textEditor.style.fontSize);ae.textEditor.clientWidth>=Number.parseInt(ae.textEditor.style.maxWidth)&&pe>.9;)pe-=.1,ae.textEditor.style.fontSize=Math.max(pe,.9)+"em"}),this.textEditor.addEventListener("keyup",function(pe){pe.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(pe){if(pe.clipboardData){var ye=pe.clipboardData.getData("text"),se=window.getSelection();if(!se.rangeCount)return!1;se.deleteFromDocument(),se.getRangeAt(0).insertNode(document.createTextNode(ye)),pe.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){ae.textEditDivClicked(ae.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},le.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var ae=this.getTextScale(),pe=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),ye=this.textElement.getBBox(),se={x:ye.width*ae,y:ye.height*ae};pe.x-=se.x/2,pe.y-=se.y/2,this.textEditor.style.top=pe.y+"px",this.textEditor.style.left=pe.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-pe.x+"px",this.textEditor.style.fontSize=Math.max(16*ae,12)+"px",this.textElement.style.display="none"}},le.prototype.textEditDivClicked=function(ae){this.text=ae.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},le.prototype.select=function(){he.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},le.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),he.prototype.deselect.call(this)},le.prototype.dblClick=function(ae,pe){he.prototype.dblClick.call(this,ae,pe),this.showTextEditor()},le.prototype.setColor=function(ae){this.textElement&&_e.setAttributes(this.textElement,[["fill",ae]]),this.color=ae,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(ae)},le.prototype.setFont=function(ae){this.textElement&&_e.setAttributes(this.textElement,[["font-family",ae]]),this.fontFamily=ae,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},le.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},le.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(le.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),le.prototype.getState=function(){var ae=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},he.prototype.getState.call(this));return ae.typeName=le.typeName,ae},le.prototype.restoreState=function(ae){var pe=ae;this.color=pe.color,this.fontFamily=pe.fontFamily,this.padding=pe.padding,this.text=pe.text,this.createVisual(),he.prototype.restoreState.call(this,ae),this.setSize()},le.prototype.scale=function(ae,pe){he.prototype.scale.call(this,ae,pe),this.setSize(),this.sizeText(),this.positionTextEditor()},le.typeName="TextMarker",le.title="Text marker",le.icon='<svg viewBox="0 0 24 24"><path d="M9.6 14L12 7.7l2.4 6.3M11 5L5.5 19h2.2l1.1-3H15l1.1 3h2.2L13 5h-2z"/></svg>',le}(fe),Ae=function(he){function le(ae,pe,ye){var se=he.call(this,ae,pe,ye)||this;return se.color="transparent",se.lineWidth=3,se.drawing=!1,se.pixelRatio=1,se.color=ye.defaultColor,se.lineWidth=ye.defaultStrokeWidth,se.pixelRatio=ye.freehandPixelRatio,se.setColor=se.setColor.bind(se),se.addCanvas=se.addCanvas.bind(se),se.finishCreation=se.finishCreation.bind(se),se.setLineWidth=se.setLineWidth.bind(se),se.colorPanel=new Be("Color",ye.defaultColorSet,ye.defaultColor),se.colorPanel.onColorChanged=se.setColor,se.lineWidthPanel=new st("Line width",ye.defaultStrokeWidths,ye.defaultStrokeWidth),se.lineWidthPanel.onWidthChanged=se.setLineWidth,se}return ve(le,he),le.prototype.ownsTarget=function(ae){return!(!he.prototype.ownsTarget.call(this,ae)&&ae!==this.visual&&ae!==this.drawingImage)},le.prototype.createVisual=function(){this.visual=_e.createGroup(),this.drawingImage=_e.createImage(),this.visual.appendChild(this.drawingImage);var ae=_e.createTransform();this.visual.transform.baseVal.appendItem(ae),this.addMarkerVisualToContainer(this.visual)},le.prototype.pointerDown=function(ae,pe){this.state==="new"&&(this.addCanvas(),this.createVisual(),this._state="creating"),this.state==="creating"?(this.canvasContext.strokeStyle=this.color,this.canvasContext.lineWidth=this.lineWidth,this.canvasContext.beginPath(),this.canvasContext.moveTo(ae.x,ae.y),this.drawing=!0):he.prototype.pointerDown.call(this,ae,pe)},le.prototype.manipulate=function(ae){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(ae.x,ae.y),this.canvasContext.stroke()):he.prototype.manipulate.call(this,ae)},le.prototype.resize=function(ae){he.prototype.resize.call(this,ae),_e.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),_e.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},le.prototype.pointerUp=function(ae){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):he.prototype.pointerUp.call(this,ae)},le.prototype.addCanvas=function(){this.overlayContainer.innerHTML="",this.canvasElement=document.createElement("canvas"),this.canvasElement.width=this.overlayContainer.clientWidth*this.pixelRatio,this.canvasElement.height=this.overlayContainer.clientHeight*this.pixelRatio,this.canvasContext=this.canvasElement.getContext("2d"),this.canvasContext.scale(this.pixelRatio,this.pixelRatio),this.overlayContainer.appendChild(this.canvasElement)},le.prototype.select=function(){this.state==="creating"&&this.finishCreation(),he.prototype.select.call(this)},le.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),he.prototype.deselect.call(this)},le.prototype.finishCreation=function(){for(var ae=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),pe=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],ye=pe[0],se=pe[1],ot=pe[2],Xt=pe[3],zt=!1,on=0;on<this.canvasElement.height;on++)for(var Kt=0;Kt<this.canvasElement.width;Kt++)ae.data[on*this.canvasElement.width*4+4*Kt+3]>0&&(zt=!0,on<se&&(se=on),Kt<ye&&(ye=Kt),on>Xt&&(Xt=on),Kt>ot&&(ot=Kt));if(zt){this.left=ye/this.pixelRatio,this.top=se/this.pixelRatio,this.width=(ot-ye)/this.pixelRatio,this.height=(Xt-se)/this.pixelRatio;var Yn=document.createElement("canvas");Yn.width=ot-ye,Yn.height=Xt-se,Yn.getContext("2d").putImageData(this.canvasContext.getImageData(ye,se,ot-ye,Xt-se),0,0),this.drawingImgUrl=Yn.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},le.prototype.setDrawingImage=function(){_e.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),_e.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},le.prototype.setColor=function(ae){this.color=ae,this.colorChanged(ae)},le.prototype.setLineWidth=function(ae){this.lineWidth=ae},Object.defineProperty(le.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),le.prototype.getState=function(){var ae=Object.assign({drawingImgUrl:this.drawingImgUrl},he.prototype.getState.call(this));return ae.typeName=le.typeName,ae},le.prototype.restoreState=function(ae){this.createVisual(),he.prototype.restoreState.call(this,ae),this.drawingImgUrl=ae.drawingImgUrl,this.setDrawingImage()},le.prototype.scale=function(ae,pe){he.prototype.scale.call(this,ae,pe),this.setDrawingImage()},le.typeName="FreehandMarker",le.title="Freehand marker",le.icon='<svg viewBox="0 0 24 24"><path d="M9.75 20.85c1.78-.7 1.39-2.63.49-3.85-.89-1.25-2.12-2.11-3.36-2.94A9.817 9.817 0 014.54 12c-.28-.33-.85-.94-.27-1.06.59-.12 1.61.46 2.13.68.91.38 1.81.82 2.65 1.34l1.01-1.7C8.5 10.23 6.5 9.32 4.64 9.05c-1.06-.16-2.18.06-2.54 1.21-.32.99.19 1.99.77 2.77 1.37 1.83 3.5 2.71 5.09 4.29.34.33.75.72.95 1.18.21.44.16.47-.31.47-1.24 0-2.79-.97-3.8-1.61l-1.01 1.7c1.53.94 4.09 2.41 5.96 1.79m11.09-15.6c.22-.22.22-.58 0-.79l-1.3-1.3a.562.562 0 00-.78 0l-1.02 1.02 2.08 2.08M11 10.92V13h2.08l6.15-6.15-2.08-2.08L11 10.92z"/></svg>',le}(fe),tt=function(he){function le(ae,pe,ye){var se=he.call(this,ae,ye||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return se.typeBoxes=[],se.currentType=pe,se.setCurrentType=se.setCurrentType.bind(se),se}return ve(le,he),le.prototype.getUi=function(){var ae=this,pe=document.createElement("div");pe.style.display="flex",pe.style.overflow="hidden",pe.style.flexGrow="2";for(var ye=function(Xt){var zt="both";switch(Xt){case 0:zt="both";break;case 1:zt="start";break;case 2:zt="end";break;case 3:zt="none"}var on=document.createElement("div");if(on.style.display="flex",on.style.flexGrow="2",on.style.alignItems="center",on.style.justifyContent="space-between",on.style.padding="5px",on.style.borderWidth="2px",on.style.borderStyle="solid",on.style.borderColor=zt===se.currentType?se.uiStyleSettings.toolboxAccentColor:"transparent",on.addEventListener("click",function(){ae.setCurrentType(zt,on)}),pe.appendChild(on),zt==="both"||zt==="start"){var Kt=document.createElement("div");Kt.style.display="flex",Kt.style.alignItems="center",Kt.style.minHeight="20px",Kt.innerHTML=`<svg viewBox="0 0 10 10" width="10" height="10" xmlns="http://www.w3.org/2000/svg">
<polygon points="0,5 10,0 10,10" fill="`+(se.uiStyleSettings!==void 0?se.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,Kt.style.marginLeft="5px",on.appendChild(Kt)}var Yn=document.createElement("div");Yn.style.display="flex",Yn.style.alignItems="center",Yn.style.minHeight="20px",Yn.style.flexGrow="2";var Fn=document.createElement("hr");if(Fn.style.minWidth="20px",Fn.style.border="0px",Fn.style.borderTop="3px solid "+(se.uiStyleSettings!==void 0?se.uiStyleSettings.toolboxColor:"#eeeeee"),Fn.style.flexGrow="2",Yn.appendChild(Fn),on.appendChild(Yn),zt==="both"||zt==="end"){var or=document.createElement("div");or.style.display="flex",or.style.alignItems="center",or.style.minHeight="20px",or.innerHTML=`<svg viewBox="0 0 10 10" width="10" height="10" xmlns="http://www.w3.org/2000/svg">
<polygon points="0,0 10,5 0,10" fill="`+(se.uiStyleSettings!==void 0?se.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,or.style.marginRight="5px",on.appendChild(or)}se.typeBoxes.push(on)},se=this,ot=0;ot<4;ot++)ye(ot);return pe},le.prototype.setCurrentType=function(ae,pe){var ye=this;this.currentType=ae,this.typeBoxes.forEach(function(se){se.style.borderColor=se===pe?ye.uiStyleSettings!==void 0?ye.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},le}(Ne),Dt=function(he){function le(ae,pe,ye){var se=he.call(this,ae,pe,ye)||this;return se.arrowType="end",se.arrowBaseHeight=10,se.arrowBaseWidth=10,se.getArrowPoints=se.getArrowPoints.bind(se),se.setArrowType=se.setArrowType.bind(se),se.arrowTypePanel=new tt("Arrow type","end"),se.arrowTypePanel.onArrowTypeChanged=se.setArrowType,se}return ve(le,he),le.prototype.ownsTarget=function(ae){return!(!he.prototype.ownsTarget.call(this,ae)&&ae!==this.arrow1&&ae!==this.arrow2)},le.prototype.getArrowPoints=function(ae,pe){var ye=this.arrowBaseWidth+2*this.strokeWidth,se=this.arrowBaseHeight+2*this.strokeWidth;return ae-ye/2+","+(pe+se/2)+" "+ae+","+(pe-se/2)+" "+(ae+ye/2)+","+(pe+se/2)},le.prototype.createTips=function(){this.arrow1=_e.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(_e.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=_e.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(_e.createTransform()),this.visual.appendChild(this.arrow2)},le.prototype.pointerDown=function(ae,pe){he.prototype.pointerDown.call(this,ae,pe),this.state==="creating"&&this.createTips()},le.prototype.adjustVisual=function(){if(he.prototype.adjustVisual.call(this),this.arrow1&&this.arrow2){this.arrow1.style.display=this.arrowType==="both"||this.arrowType==="start"?"":"none",this.arrow2.style.display=this.arrowType==="both"||this.arrowType==="end"?"":"none",_e.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),_e.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var ae=0;Math.abs(this.x1-this.x2)>.1&&(ae=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var pe=this.arrow1.transform.baseVal.getItem(0);pe.setRotate(ae,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(pe,0);var ye=this.arrow2.transform.baseVal.getItem(0);ye.setRotate(ae+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(ye,0)}},le.prototype.setArrowType=function(ae){this.arrowType=ae,this.adjustVisual(),this.stateChanged()},Object.defineProperty(le.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),le.prototype.getState=function(){var ae=Object.assign({arrowType:this.arrowType},he.prototype.getState.call(this));return ae.typeName=le.typeName,ae},le.prototype.restoreState=function(ae){he.prototype.restoreState.call(this,ae);var pe=ae;this.arrowType=pe.arrowType,this.createTips(),this.adjustVisual()},le.typeName="ArrowMarker",le.title="Arrow marker",le.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',le}(ut),lt=function(he){function le(ae,pe,ye){var se=he.call(this,ae,pe,ye)||this;return se.fillColor=ye.defaultFillColor,se.strokeWidth=0,se.fillPanel=new Be("Color",ye.defaultColorSet,ye.defaultFillColor),se.fillPanel.onColorChanged=se.setFillColor,se}return ve(le,he),Object.defineProperty(le.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),le.prototype.getState=function(){var ae=he.prototype.getState.call(this);return ae.typeName=le.typeName,ae},le.typeName="CoverMarker",le.title="Cover marker",le.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',le}(qe),Qe=function(he){function le(ae,pe,ye,se){var ot=he.call(this,ae,se||'<svg viewBox="0 0 24 24"><path d="M17.66 8L12 2.35 6.34 8A8.02 8.02 0 004 13.64c0 2 .78 4.11 2.34 5.67a7.99 7.99 0 0011.32 0c1.56-1.56 2.34-3.67 2.34-5.67S19.22 9.56 17.66 8M6 14c0-2 .62-3.27 1.76-4.4L12 5.27l4.24 4.38C17.38 10.77 18 12 18 14H6z"/></svg>')||this;return ot.opacities=[],ot.opacityBoxes=[],ot.opacities=pe,ot.currentOpacity=ye,ot.setCurrentOpacity=ot.setCurrentOpacity.bind(ot),ot}return ve(le,he),le.prototype.getUi=function(){var ae=this,pe=document.createElement("div");return pe.style.display="flex",pe.style.overflow="hidden",pe.style.flexGrow="2",pe.style.justifyContent="space-between",this.opacities.forEach(function(ye){var se=document.createElement("div");se.style.display="flex",se.style.alignItems="center",se.style.justifyContent="center",se.style.padding="5px",se.style.borderWidth="2px",se.style.borderStyle="solid",se.style.borderColor=ye===ae.currentOpacity?ae.uiStyleSettings.toolboxAccentColor:"transparent",se.addEventListener("click",function(){ae.setCurrentOpacity(ye,se)}),pe.appendChild(se);var ot=document.createElement("div");ot.innerText=100*ye+"%",se.appendChild(ot),ae.opacityBoxes.push(se)}),pe},le.prototype.setCurrentOpacity=function(ae,pe){var ye=this;this.currentOpacity=ae,this.opacityBoxes.forEach(function(se){se.style.borderColor=se===pe?ye.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},le}(Ne),xt=function(he){function le(ae,pe,ye){var se=he.call(this,ae,pe,ye)||this;return se.setOpacity=se.setOpacity.bind(se),se.fillColor=ye.defaultHighlightColor,se.strokeWidth=0,se.opacity=ye.defaultHighlightOpacity,se.fillPanel=new Be("Color",ye.defaultColorSet,se.fillColor),se.fillPanel.onColorChanged=se.setFillColor,se.opacityPanel=new Qe("Opacity",ye.defaultOpacitySteps,se.opacity),se.opacityPanel.onOpacityChanged=se.setOpacity,se}return ve(le,he),le.prototype.setOpacity=function(ae){this.opacity=ae,this.visual&&_e.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(le.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),le.prototype.getState=function(){var ae=he.prototype.getState.call(this);return ae.typeName=le.typeName,ae},le.typeName="HighlightMarker",le.title="Highlight marker",le.icon='<svg viewBox="0 0 24 24"><path d="M18.5 1.15c-.53 0-1.04.19-1.43.58l-5.81 5.82 5.65 5.65 5.82-5.81c.77-.78.77-2.04 0-2.83l-2.84-2.83c-.39-.39-.89-.58-1.39-.58M10.3 8.5l-5.96 5.96c-.78.78-.78 2.04.02 2.85C3.14 18.54 1.9 19.77.67 21h5.66l.86-.86c.78.76 2.03.75 2.81-.02l5.95-5.96"/></svg>',le}(lt),Re='<svg viewBox="0 0 24 24"><path d="M9.62 12L12 5.67 14.37 12M11 3L5.5 17h2.25l1.12-3h6.25l1.13 3h2.25L13 3h-2z"/></svg>',me='<svg viewBox="0 0 24 24"><path d="M19 11.5s-2 2.17-2 3.5a2 2 0 002 2 2 2 0 002-2c0-1.33-2-3.5-2-3.5M5.21 10L10 5.21 14.79 10m1.77-1.06L7.62 0 6.21 1.41l2.38 2.38-5.15 5.15c-.59.56-.59 1.53 0 2.12l5.5 5.5c.29.29.68.44 1.06.44s.77-.15 1.06-.44l5.5-5.5c.59-.59.59-1.56 0-2.12z"/></svg>',pt=function(he){function le(ae,pe,ye){var se=he.call(this,ae,pe,ye)||this;return se.bgColor="transparent",se.tipPosition={x:0,y:0},se.tipBase1Position={x:0,y:0},se.tipBase2Position={x:0,y:0},se.tipMoving=!1,se.color=ye.defaultStrokeColor,se.bgColor=ye.defaultFillColor,se.fontFamily=ye.defaultFontFamily,se.defaultSize={x:100,y:30},se.setBgColor=se.setBgColor.bind(se),se.getTipPoints=se.getTipPoints.bind(se),se.positionTip=se.positionTip.bind(se),se.setTipPoints=se.setTipPoints.bind(se),se.colorPanel=new Be("Text color",ye.defaultColorSet,se.color,Re),se.colorPanel.onColorChanged=se.setColor,se.bgColorPanel=new Be("Fill color",ye.defaultColorSet,se.bgColor,me),se.bgColorPanel.onColorChanged=se.setBgColor,se.fontFamilyPanel=new Se("Font",ye.defaultFontFamilies,ye.defaultFontFamily),se.fontFamilyPanel.onFontChanged=se.setFont,se.tipGrip=new Ke,se.tipGrip.visual.transform.baseVal.appendItem(_e.createTransform()),se.controlBox.appendChild(se.tipGrip.visual),se}return ve(le,he),le.prototype.ownsTarget=function(ae){return he.prototype.ownsTarget.call(this,ae)||this.tipGrip.ownsTarget(ae)||this.tip===ae},le.prototype.createTip=function(){_e.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=_e.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},le.prototype.pointerDown=function(ae,pe){this.state==="new"&&he.prototype.pointerDown.call(this,ae,pe),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(pe)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):he.prototype.pointerDown.call(this,ae,pe)},le.prototype.pointerUp=function(ae){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,he.prototype.pointerUp.call(this,ae);else{var pe=this.state==="creating";he.prototype.pointerUp.call(this,ae),this.setTipPoints(pe),this.positionTip()}},le.prototype.manipulate=function(ae){if(this.tipMoving){var pe=this.unrotatePoint(ae);this.tipPosition={x:pe.x-this.manipulationStartLeft,y:pe.y-this.manipulationStartTop},this.positionTip()}else he.prototype.manipulate.call(this,ae)},le.prototype.setBgColor=function(ae){this.bgRectangle&&this.tip&&(_e.setAttributes(this.bgRectangle,[["fill",ae]]),_e.setAttributes(this.tip,[["fill",ae]])),this.bgColor=ae,this.fillColorChanged(ae)},le.prototype.getTipPoints=function(){return this.setTipPoints(this.state==="creating"),this.tipBase1Position.x+","+this.tipBase1Position.y+" "+this.tipBase2Position.x+","+this.tipBase2Position.y+" "+this.tipPosition.x+","+this.tipPosition.y},le.prototype.setTipPoints=function(ae){ae===void 0&&(ae=!1);var pe=Math.min(this.height/2,15),ye=this.height/5;ae&&(this.tipPosition={x:pe+ye/2,y:this.height+20});var se=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?se<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(ye=this.width/5,pe=Math.min(this.width/2,15),this.tipBase1Position={x:pe,y:0},this.tipBase2Position={x:pe+ye,y:0}):(this.tipBase1Position={x:0,y:pe},this.tipBase2Position={x:0,y:pe+ye}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?se<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(ye=this.width/5,pe=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-pe-ye,y:0},this.tipBase2Position={x:this.width-pe,y:0}):(this.tipBase1Position={x:this.width,y:pe},this.tipBase2Position={x:this.width,y:pe+ye}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?se<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(ye=this.width/5,pe=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-pe-ye,y:this.height},this.tipBase2Position={x:this.width-pe,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-pe-ye},this.tipBase2Position={x:this.width,y:this.height-pe}):se<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(ye=this.width/5,pe=Math.min(this.width/2,15),this.tipBase1Position={x:pe,y:this.height},this.tipBase2Position={x:pe+ye,y:this.height}):(this.tipBase1Position={x:0,y:this.height-pe},this.tipBase2Position={x:0,y:this.height-pe-ye})},le.prototype.resize=function(ae){he.prototype.resize.call(this,ae),this.positionTip()},le.prototype.positionTip=function(){_e.setAttributes(this.tip,[["points",this.getTipPoints()]]);var ae=this.tipGrip.visual.transform.baseVal.getItem(0);ae.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(ae,0)},Object.defineProperty(le.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),le.prototype.select=function(){this.positionTip(),he.prototype.select.call(this)},le.prototype.getState=function(){var ae=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},he.prototype.getState.call(this));return ae.typeName=le.typeName,ae},le.prototype.restoreState=function(ae){var pe=ae;this.bgColor=pe.bgColor,this.tipPosition=pe.tipPosition,he.prototype.restoreState.call(this,ae),this.createTip(),this.setTipPoints()},le.prototype.scale=function(ae,pe){he.prototype.scale.call(this,ae,pe),this.tipPosition={x:this.tipPosition.x*ae,y:this.tipPosition.y*pe},this.positionTip()},le.typeName="CalloutMarker",le.title="Callout marker",le.icon='<svg viewBox="0 0 24 24"><path d="M4 2h16a2 2 0 012 2v12a2 2 0 01-2 2h-4l-4 4-4-4H4a2 2 0 01-2-2V4a2 2 0 012-2m0 2v12h4.83L12 19.17 15.17 16H20V4H4m2 3h12v2H6V7m0 4h10v2H6v-2z"/></svg>',le}(Ve),bt=function(he){function le(ae,pe,ye){var se=he.call(this,ae,pe,ye)||this;return se.fillColor="transparent",se.strokeColor="transparent",se.strokeWidth=0,se.strokeDasharray="",se.opacity=1,se.strokeColor=ye.defaultColor,se.strokeWidth=ye.defaultStrokeWidth,se.strokeDasharray=ye.defaultStrokeDasharray,se.fillColor=ye.defaultFillColor,se.setStrokeColor=se.setStrokeColor.bind(se),se.setFillColor=se.setFillColor.bind(se),se.setStrokeWidth=se.setStrokeWidth.bind(se),se.setStrokeDasharray=se.setStrokeDasharray.bind(se),se.setOpacity=se.setOpacity.bind(se),se.createVisual=se.createVisual.bind(se),se.strokePanel=new Be("Line color",He(ye.defaultColorSet,["transparent"]),ye.defaultColor),se.strokePanel.onColorChanged=se.setStrokeColor,se.fillPanel=new Be("Fill color",He(ye.defaultColorSet,["transparent"]),se.fillColor,me),se.fillPanel.onColorChanged=se.setFillColor,se.strokeWidthPanel=new st("Line width",ye.defaultStrokeWidths,ye.defaultStrokeWidth),se.strokeWidthPanel.onWidthChanged=se.setStrokeWidth,se.strokeStylePanel=new wt("Line style",ye.defaultStrokeDasharrays,ye.defaultStrokeDasharray),se.strokeStylePanel.onStyleChanged=se.setStrokeDasharray,se.opacityPanel=new Qe("Opacity",ye.defaultOpacitySteps,se.opacity),se.opacityPanel.onOpacityChanged=se.setOpacity,se}return ve(le,he),le.prototype.ownsTarget=function(ae){return!(!he.prototype.ownsTarget.call(this,ae)&&ae!==this.visual)},le.prototype.createVisual=function(){this.visual=_e.createEllipse(this.width/2,this.height/2,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},le.prototype.pointerDown=function(ae,pe){he.prototype.pointerDown.call(this,ae,pe),this.state==="new"&&(this.createVisual(),this.moveVisual(ae),this._state="creating")},le.prototype.manipulate=function(ae){he.prototype.manipulate.call(this,ae)},le.prototype.resize=function(ae){he.prototype.resize.call(this,ae),this.setSize()},le.prototype.setSize=function(){he.prototype.setSize.call(this),_e.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},le.prototype.pointerUp=function(ae){he.prototype.pointerUp.call(this,ae),this.setSize()},le.prototype.setStrokeColor=function(ae){this.strokeColor=ae,this.visual&&_e.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(ae),this.stateChanged()},le.prototype.setFillColor=function(ae){this.fillColor=ae,this.visual&&_e.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(ae),this.stateChanged()},le.prototype.setStrokeWidth=function(ae){this.strokeWidth=ae,this.visual&&_e.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},le.prototype.setStrokeDasharray=function(ae){this.strokeDasharray=ae,this.visual&&_e.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},le.prototype.setOpacity=function(ae){this.opacity=ae,this.visual&&_e.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(le.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),le.prototype.getState=function(){var ae=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},he.prototype.getState.call(this));return ae.typeName=le.typeName,ae},le.prototype.restoreState=function(ae){var pe=ae;this.fillColor=pe.fillColor,this.strokeColor=pe.strokeColor,this.strokeWidth=pe.strokeWidth,this.strokeDasharray=pe.strokeDasharray,this.opacity=pe.opacity,this.createVisual(),he.prototype.restoreState.call(this,ae),this.setSize()},le.prototype.scale=function(ae,pe){he.prototype.scale.call(this,ae,pe),this.setSize()},le.typeName="EllipseMarker",le.title="Ellipse marker",le.icon='<svg viewBox="0 0 24 24"><path d="M12 4C6.5 4 2 7.58 2 12s4.5 8 10 8 10-3.58 10-8-4.5-8-10-8z"/></svg>',le}(fe),it=function(he){function le(ae,pe,ye){return he.call(this,ae,pe,ye)||this}return ve(le,he),Object.defineProperty(le.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),le.prototype.ownsTarget=function(ae){return!(!he.prototype.ownsTarget.call(this,ae)&&ae!==this.tip1&&ae!==this.tip2)},le.prototype.createTips=function(){this.tip1=_e.createLine(this.x1-this.tipLength/2,this.y1,this.x1+this.tipLength/2,this.y1,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.tip1.transform.baseVal.appendItem(_e.createTransform()),this.visual.appendChild(this.tip1),this.tip2=_e.createLine(this.x2-this.tipLength/2,this.y2,this.x2+this.tipLength/2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.tip2.transform.baseVal.appendItem(_e.createTransform()),this.visual.appendChild(this.tip2)},le.prototype.pointerDown=function(ae,pe){he.prototype.pointerDown.call(this,ae,pe),this.state==="creating"&&this.createTips()},le.prototype.adjustVisual=function(){if(he.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(_e.setAttributes(this.tip1,[["x1",(this.x1-this.tipLength/2).toString()],["y1",this.y1.toString()],["x2",(this.x1+this.tipLength/2).toString()],["y2",this.y1.toString()],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),_e.setAttributes(this.tip2,[["x1",(this.x2-this.tipLength/2).toString()],["y1",this.y2.toString()],["x2",(this.x2+this.tipLength/2).toString()],["y2",this.y2.toString()],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),Math.abs(this.x1-this.x2)>.1)){var ae=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),pe=this.tip1.transform.baseVal.getItem(0);pe.setRotate(ae,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(pe,0);var ye=this.tip2.transform.baseVal.getItem(0);ye.setRotate(ae+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(ye,0)}},Object.defineProperty(le.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),le.prototype.getState=function(){var ae=he.prototype.getState.call(this);return ae.typeName=le.typeName,ae},le.prototype.restoreState=function(ae){he.prototype.restoreState.call(this,ae),this.createTips(),this.adjustVisual()},le.typeName="MeasurementMarker",le.title="Measurement marker",le.icon='<svg viewBox="0 0 24 24"><path d="M1.39 18.36l1.77-1.76L4.58 18l1.06-1.05-1.42-1.41 1.42-1.42 2.47 2.48 1.06-1.06-2.47-2.48 1.41-1.41 1.42 1.41L10.59 12l-1.42-1.41 1.42-1.42 2.47 2.48 1.06-1.06-2.47-2.48 1.41-1.41 1.41 1.41 1.07-1.06-1.42-1.41 1.42-1.42L18 6.7l1.07-1.06-2.47-2.48 1.76-1.77 4.25 4.25L5.64 22.61l-4.25-4.25z"/></svg>',le}(ut),Le=function(he){function le(ae,pe,ye){var se=he.call(this,ae,pe,ye)||this;return se.strokePanel.colors=ye.defaultColorSet,se.fillColor="transparent",se}return ve(le,he),Object.defineProperty(le.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),le.prototype.getState=function(){var ae=he.prototype.getState.call(this);return ae.typeName=le.typeName,ae},le.typeName="EllipseFrameMarker",le.title="Ellipse frame marker",le.icon='<svg viewBox="0 0 24 24"><path d="M12 6c4.41 0 8 2.69 8 6s-3.59 6-8 6-8-2.69-8-6 3.59-6 8-6m0-2C6.5 4 2 7.58 2 12s4.5 8 10 8 10-3.58 10-8-4.5-8-10-8z"/></svg>',le}(bt),Ue=function(){function he(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(he.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(he.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(he.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(he.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),he.prototype.addUndoStep=function(le){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(le)||(this.undoStack.push(le),JSON.stringify(this.lastRedoStep)!==JSON.stringify(le)&&this.redoStack.splice(0,this.redoStack.length))},he.prototype.replaceLastUndoStep=function(le){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=le)},he.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},he.prototype.undo=function(){if(this.undoStack.length>1){var le=this.undoStack.pop();return le!==void 0&&this.redoStack.push(le),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},he.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},he}(),mt=function(he){function le(ae,pe,ye){var se=he.call(this,ae,pe,ye)||this;return se.strokeColor="transparent",se.strokeWidth=0,se.strokeDasharray="",se.curveX=0,se.curveY=0,se.manipulationStartCurveX=0,se.manipulationStartCurveY=0,se.setStrokeColor=se.setStrokeColor.bind(se),se.setStrokeWidth=se.setStrokeWidth.bind(se),se.setStrokeDasharray=se.setStrokeDasharray.bind(se),se.positionGrips=se.positionGrips.bind(se),se.addControlGrips=se.addControlGrips.bind(se),se.adjustVisual=se.adjustVisual.bind(se),se.setupControlBox=se.setupControlBox.bind(se),se.resize=se.resize.bind(se),se.strokeColor=ye.defaultColor,se.strokeWidth=ye.defaultStrokeWidth,se.strokeDasharray=ye.defaultStrokeDasharray,se.strokePanel=new Be("Line color",ye.defaultColorSet,ye.defaultColor),se.strokePanel.onColorChanged=se.setStrokeColor,se.strokeWidthPanel=new st("Line width",ye.defaultStrokeWidths,ye.defaultStrokeWidth),se.strokeWidthPanel.onWidthChanged=se.setStrokeWidth,se.strokeStylePanel=new wt("Line style",ye.defaultStrokeDasharrays,ye.defaultStrokeDasharray),se.strokeStylePanel.onStyleChanged=se.setStrokeDasharray,se}return ve(le,he),le.prototype.ownsTarget=function(ae){return!(!he.prototype.ownsTarget.call(this,ae)&&ae!==this.visual&&ae!==this.selectorCurve&&ae!==this.visibleCurve&&!this.curveGrip.ownsTarget(ae))},le.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},le.prototype.createVisual=function(){this.visual=_e.createGroup(),this.selectorCurve=_e.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=_e.createPath(this.getPathD(),[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["fill","transparent"]]),this.visual.appendChild(this.selectorCurve),this.visual.appendChild(this.visibleCurve),this.addMarkerVisualToContainer(this.visual)},le.prototype.pointerDown=function(ae,pe){he.prototype.pointerDown.call(this,ae,pe),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=ae.x,this.curveY=ae.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(pe)&&(this.activeGrip=this.curveGrip,this._state="resize")},le.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),_e.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),_e.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),_e.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},le.prototype.setupControlBox=function(){he.prototype.setupControlBox.call(this),this.curveControlLine1=_e.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=_e.createLine(this.x2,this.y2,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.insertBefore(this.curveControlLine1,this.controlBox.firstChild),this.controlBox.insertBefore(this.curveControlLine2,this.controlBox.firstChild)},le.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,he.prototype.addControlGrips.call(this)},le.prototype.positionGrips=function(){he.prototype.positionGrips.call(this);var ae=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-ae/2,this.curveY-ae/2),this.curveControlLine1&&this.curveControlLine2&&(this.curveControlLine1.setAttribute("x1",this.x1.toString()),this.curveControlLine1.setAttribute("y1",this.y1.toString()),this.curveControlLine1.setAttribute("x2",this.curveX.toString()),this.curveControlLine1.setAttribute("y2",this.curveY.toString()),this.curveControlLine2.setAttribute("x1",this.x2.toString()),this.curveControlLine2.setAttribute("y1",this.y2.toString()),this.curveControlLine2.setAttribute("x2",this.curveX.toString()),this.curveControlLine2.setAttribute("y2",this.curveY.toString()))},le.prototype.manipulate=function(ae){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+ae.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+ae.y-this.manipulationStartY),he.prototype.manipulate.call(this,ae)},le.prototype.resize=function(ae){this.activeGrip===this.curveGrip&&(this.curveX=ae.x,this.curveY=ae.y),he.prototype.resize.call(this,ae),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},le.prototype.setStrokeColor=function(ae){this.strokeColor=ae,this.adjustVisual(),this.colorChanged(ae)},le.prototype.setStrokeWidth=function(ae){this.strokeWidth=ae,this.adjustVisual()},le.prototype.setStrokeDasharray=function(ae){this.strokeDasharray=ae,this.adjustVisual()},le.prototype.scale=function(ae,pe){this.curveX=this.curveX*ae,this.curveY=this.curveY*pe,he.prototype.scale.call(this,ae,pe)},Object.defineProperty(le.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),le.prototype.getState=function(){var ae=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},he.prototype.getState.call(this));return ae.typeName=le.typeName,ae},le.prototype.restoreState=function(ae){he.prototype.restoreState.call(this,ae);var pe=ae;this.strokeColor=pe.strokeColor,this.strokeWidth=pe.strokeWidth,this.strokeDasharray=pe.strokeDasharray,this.curveX=pe.curveX,this.curveY=pe.curveY,this.createVisual(),this.adjustVisual()},le.typeName="CurveMarker",le.title="Curve marker",le.icon='<svg viewBox="0 0 24 24"><path d="M18.5 2A1.5 1.5 0 0120 3.5 1.5 1.5 0 0118.5 5c-.23 0-.45-.05-.65-.15l-3.69 3.7.34.45c2.19-1.26 4.76-2 7.5-2l1 .03v2.01L22 9c-2.58 0-5 .75-7 2.04A3.96 3.96 0 0111.04 15C9.75 17 9 19.42 9 22l.04 1H7.03L7 22c0-2.74.74-5.31 2-7.5l-.45-.34-3.7 3.69c.1.2.15.42.15.65A1.5 1.5 0 013.5 20 1.5 1.5 0 012 18.5 1.5 1.5 0 013.5 17c.23 0 .45.05.65.15l3.69-3.7C7.31 12.78 7 11.92 7 11a4 4 0 014-4c.92 0 1.78.31 2.45.84l3.7-3.69c-.1-.2-.15-.42-.15-.65A1.5 1.5 0 0118.5 2M11 9a2 2 0 00-2 2 2 2 0 002 2 2 2 0 002-2 2 2 0 00-2-2z"/></svg>',le}(Je),Zt=function(he){function le(ae,pe,ye){var se=he.call(this,ae,pe,ye)||this;return se.fillColor="transparent",se.strokeColor="transparent",se.strokeWidth=0,se.strokeDasharray="",se.textColor="transparent",se.fontSize="1rem",se.isMoved=!1,se.captionText="Caption",se.PADDING=5,se.captionBoxWidth=0,se.captionBoxHeight=0,se.strokeColor=ye.defaultColor,se.strokeWidth=ye.defaultStrokeWidth,se.strokeDasharray=ye.defaultStrokeDasharray,se.fillColor=ye.defaultFillColor,se.textColor=ye.defaultStrokeColor,se.fontFamily=ye.defaultFontFamily,se.fontSize=ye.defaultCaptionFontSize,se.captionText=ye.defaultCaptionText,se.setStrokeColor=se.setStrokeColor.bind(se),se.setFillColor=se.setFillColor.bind(se),se.setStrokeWidth=se.setStrokeWidth.bind(se),se.setStrokeDasharray=se.setStrokeDasharray.bind(se),se.createVisual=se.createVisual.bind(se),se.sizeCaption=se.sizeCaption.bind(se),se.setCaptionText=se.setCaptionText.bind(se),se.showTextEditor=se.showTextEditor.bind(se),se.positionTextEditor=se.positionTextEditor.bind(se),se.finishTextEditing=se.finishTextEditing.bind(se),se.setFont=se.setFont.bind(se),se.setTextColor=se.setTextColor.bind(se),se.strokePanel=new Be("Line color",He(ye.defaultColorSet,["transparent"]),se.strokeColor),se.strokePanel.onColorChanged=se.setStrokeColor,se.fillPanel=new Be("Fill color",He(ye.defaultColorSet,["transparent"]),se.fillColor,me),se.fillPanel.onColorChanged=se.setFillColor,se.strokeWidthPanel=new st("Line width",ye.defaultStrokeWidths,ye.defaultStrokeWidth),se.strokeWidthPanel.onWidthChanged=se.setStrokeWidth,se.strokeStylePanel=new wt("Line style",ye.defaultStrokeDasharrays,ye.defaultStrokeDasharray),se.strokeStylePanel.onStyleChanged=se.setStrokeDasharray,se.fontFamilyPanel=new Se("Font",ye.defaultFontFamilies,ye.defaultFontFamily),se.fontFamilyPanel.onFontChanged=se.setFont,se.textColorPanel=new Be("Text color",ye.defaultColorSet,se.textColor,Re),se.textColorPanel.onColorChanged=se.setTextColor,se}return ve(le,he),le.prototype.ownsTarget=function(ae){return!(!he.prototype.ownsTarget.call(this,ae)&&ae!==this.visual&&ae!==this.frame&&ae!==this.captionBg&&ae!==this.captionElement)},le.prototype.createVisual=function(){this.visual=_e.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=_e.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=_e.createText([["fill",this.textColor],["font-family",this.fontFamily]]),this.captionElement.style.fontSize=this.fontSize,this.captionElement.style.textAnchor="start",this.captionElement.style.dominantBaseline="text-before-edge",this.captionElement.textContent=this.captionText,this.visual.appendChild(this.captionElement),this.frame=_e.createRect(this.width,this.height,[["fill","transparent"],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray]]),this.visual.appendChild(this.frame),this.sizeCaption()},le.prototype.setCaptionText=function(ae){this.captionText=ae,this.captionElement.textContent=this.captionText,this.sizeCaption()},le.prototype.pointerDown=function(ae,pe){he.prototype.pointerDown.call(this,ae,pe),this.isMoved=!1,this.pointerDownPoint=ae,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(ae),this._state="creating")},le.prototype.manipulate=function(ae){he.prototype.manipulate.call(this,ae),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(ae.x-this.pointerDownPoint.x)>5||Math.abs(ae.y-this.pointerDownPoint.y)>5)},le.prototype.resize=function(ae){he.prototype.resize.call(this,ae),this.setSize()},le.prototype.sizeCaption=function(){var ae=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=ae.width+2*this.PADDING,this.captionBoxHeight=ae.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),_e.setAttributes(this.captionBg,[["width",this.captionBoxWidth.toString()],["height",this.captionBoxHeight.toString()],["clip-path","path('M0,0 H"+this.width+" V"+this.height+" H"+-this.width+" Z')"]]),_e.setAttributes(this.captionElement,[["x",this.PADDING.toString()],["y",this.PADDING.toString()],["clip-path","path('M0,0 H"+(this.width-this.PADDING)+" V"+this.height+" H"+(-this.width-this.PADDING)+" Z')"]])},le.prototype.showTextEditor=function(){var ae=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditBox=document.createElement("input"),this.textEditBox.style.position="absolute",this.textEditBox.style.width=this.width+"px",this.captionBoxHeight>0&&(this.textEditBox.style.height=this.captionBoxHeight+"px"),this.textEditBox.style.fontSize=this.fontSize,this.textEditBox.style.fontFamily=this.fontFamily,this.textEditBox.style.backgroundColor=this.fillColor,this.textEditBox.style.color=this.textColor,this.textEditBox.style.borderWidth="0",this.textEditBox.setAttribute("value",this.captionText),this.textEditBox.select(),this.textEditDiv.appendChild(this.textEditBox),this.overlayContainer.appendChild(this.textEditDiv),this.textEditBox.addEventListener("pointerup",function(pe){pe.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(pe){pe.key==="Enter"&&ae.finishTextEditing(ae.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(pe){pe.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){ae.finishTextEditing(ae.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){ae.finishTextEditing(ae.textEditBox.value)}),this.positionTextEditor(),this.textEditBox.focus()},le.prototype.positionTextEditor=function(){this.state==="edit"&&(this.textEditBox===void 0?this.showTextEditor():(this.textEditBox.style.left=this.left+"px",this.textEditBox.style.top=this.top+"px",this.textEditBox.style.transform="rotate("+this.rotationAngle+"deg)",this.textEditBox.style.transformOrigin=this.width/2+"px "+this.height/2+"px"))},le.prototype.finishTextEditing=function(ae){this.setCaptionText(ae.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},le.prototype.setFont=function(ae){this.captionElement&&_e.setAttributes(this.captionElement,[["font-family",ae]]),this.fontFamily=ae,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},le.prototype.setTextColor=function(ae){this.captionElement&&_e.setAttributes(this.captionElement,[["fill",ae]]),this.textColor=ae,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},le.prototype.setSize=function(){he.prototype.setSize.call(this),_e.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},le.prototype.pointerUp=function(ae){he.prototype.pointerUp.call(this,ae),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},le.prototype.dblClick=function(ae,pe){he.prototype.dblClick.call(this,ae,pe),this.showTextEditor()},le.prototype.setStrokeColor=function(ae){this.strokeColor=ae,this.frame&&_e.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(ae),this.stateChanged()},le.prototype.setFillColor=function(ae){this.fillColor=ae,this.captionBg&&_e.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(ae),this.stateChanged()},le.prototype.setStrokeWidth=function(ae){this.strokeWidth=ae,this.frame&&_e.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},le.prototype.setStrokeDasharray=function(ae){this.strokeDasharray=ae,this.frame&&_e.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(le.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),le.prototype.getState=function(){var ae=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:1,textColor:this.textColor,fontFamily:this.fontFamily,fontSize:this.fontSize,captionText:this.captionText},he.prototype.getState.call(this));return ae.typeName=this.typeName,ae},le.prototype.restoreState=function(ae){var pe=ae;this.fillColor=pe.fillColor,this.strokeColor=pe.strokeColor,this.strokeWidth=pe.strokeWidth,this.strokeDasharray=pe.strokeDasharray,this.textColor=pe.textColor,this.fontFamily=pe.fontFamily,this.captionText=pe.captionText,this.fontSize=pe.fontSize,this.createVisual(),he.prototype.restoreState.call(this,ae),this.setSize()},le.prototype.scale=function(ae,pe){he.prototype.scale.call(this,ae,pe),this.setSize()},le.typeName="CaptionFrameMarker",le.title="Caption frame marker",le.icon='<svg viewBox="0 0 24 24"><path d="M5 3c-1.11 0-2 .89-2 2v14c0 1.11.89 2 2 2h14c1.11 0 2-.89 2-2V5c0-1.11-.89-2-2-2H5m0 2h14v14H5V5m2 2v2h10V7H7z"/></svg>',le}(fe),Pt=function(){function he(le,ae){ae===void 0&&(ae=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=le,this.cancelable=ae}return Object.defineProperty(he.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),he.prototype.preventDefault=function(){this._defaultPrevented=!0},he}(),en=function(he){function le(ae,pe,ye){var se=he.call(this,ae,!1)||this;return se.dataUrl=pe,se.state=ye,se}return ve(le,he),le}(Pt),dt=function(he){function le(ae,pe,ye){ye===void 0&&(ye=!1);var se=he.call(this,ae,ye)||this;return se.marker=pe,se}return ve(le,he),le}(Pt),Lt=function(){function he(){this.render=[],this.beforeclose=[],this.close=[],this.show=[],this.restorestate=[],this.statechange=[],this.markerselect=[],this.markerdeselect=[],this.markercreating=[],this.markercreate=[],this.markerbeforedelete=[],this.markerdelete=[],this.markerchange=[],this.focus=[],this.blur=[]}return he.prototype.addEventListener=function(le,ae){this[le].push(ae)},he.prototype.removeEventListener=function(le,ae){var pe=this[le].indexOf(ae);pe>-1&&this[le].splice(pe,1)},he}(),pn=function(){function he(le){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new ct,this._isOpen=!1,this.undoRedoManager=new Ue,this.renderAtNaturalSize=!1,this.renderImageType="image/png",this.renderMarkersOnly=!1,this.zoomSteps=[1,1.5,2,4],this._zoomLevel=1,this._isResizing=!1,this.prevPanPoint={x:0,y:0},this.eventListeners=new Lt,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=he.instanceCounter++,this.styles=new We(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=le,this.targetRoot=document.body,this.width=le.clientWidth,this.height=le.clientHeight,this.styles.removeStyleSheet(),this.open=this.open.bind(this),this.setTopLeft=this.setTopLeft.bind(this),this.toolbarButtonClicked=this.toolbarButtonClicked.bind(this),this.createNewMarker=this.createNewMarker.bind(this),this.addNewMarker=this.addNewMarker.bind(this),this.markerCreated=this.markerCreated.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onDblClick=this.onDblClick.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.onPointerOut=this.onPointerOut.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.overrideOverflow=this.overrideOverflow.bind(this),this.restoreOverflow=this.restoreOverflow.bind(this),this.close=this.close.bind(this),this.closeUI=this.closeUI.bind(this),this.addCloseEventListener=this.addCloseEventListener.bind(this),this.removeCloseEventListener=this.removeCloseEventListener.bind(this),this.addRenderEventListener=this.addRenderEventListener.bind(this),this.removeRenderEventListener=this.removeRenderEventListener.bind(this),this.clientToLocalCoordinates=this.clientToLocalCoordinates.bind(this),this.onWindowResize=this.onWindowResize.bind(this),this.deleteSelectedMarker=this.deleteSelectedMarker.bind(this),this.setWindowHeight=this.setWindowHeight.bind(this),this.removeMarker=this.removeMarker.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this),this.onPopupTargetResize=this.onPopupTargetResize.bind(this),this.showNotesEditor=this.showNotesEditor.bind(this),this.hideNotesEditor=this.hideNotesEditor.bind(this),this.stepZoom=this.stepZoom.bind(this),this.focus=this.focus.bind(this),this.blur=this.blur.bind(this),this.markerStateChanged=this.markerStateChanged.bind(this),this.switchToSelectMode=this.switchToSelectMode.bind(this),this.addDefs=this.addDefs.bind(this),this.addDefsToImage=this.addDefsToImage.bind(this)}return Object.defineProperty(he.prototype,"ALL_MARKER_TYPES",{get:function(){return[ft,Ae,Dt,Ve,Le,bt,xt,pt,it,lt,ut,mt,Zt]},enumerable:!1,configurable:!0}),Object.defineProperty(he.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[ft,Ae,Dt,Ve,bt,xt,pt]},enumerable:!1,configurable:!0}),Object.defineProperty(he.prototype,"BASIC_MARKER_TYPES",{get:function(){return[ft,Ae,Dt,Ve,xt]},enumerable:!1,configurable:!0}),Object.defineProperty(he.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(le){var ae=this;this._availableMarkerTypes.splice(0),le.forEach(function(pe){if(typeof pe=="string"){var ye=ae.ALL_MARKER_TYPES.find(function(se){return se.typeName===pe});ye!==void 0&&ae._availableMarkerTypes.push(ye)}else ae._availableMarkerTypes.push(pe)})},enumerable:!1,configurable:!0}),Object.defineProperty(he.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(he.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(he.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(he.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(he.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(le){this._zoomLevel=le,this.editorCanvas&&this.contentDiv&&(this.editorCanvas.style.transform="scale("+this._zoomLevel+")",this.contentDiv.scrollTo({left:(this.editorCanvas.clientWidth*this._zoomLevel-this.contentDiv.clientWidth)/2,top:(this.editorCanvas.clientHeight*this._zoomLevel-this.contentDiv.clientHeight)/2}))},enumerable:!1,configurable:!0}),Object.defineProperty(he.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),he.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),ze.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},he.prototype.show=function(){var le=this;this.styles.styleSheetRoot===void 0&&Fe.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=Fe.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(ae){return ae(new Pt(le))})},he.prototype.render=function(){return Pe(this,void 0,void 0,function(){var le;return Te(this,function(ae){switch(ae.label){case 0:return this.setCurrentMarker(),(le=new nt).naturalSize=this.renderAtNaturalSize,le.imageType=this.renderImageType,le.imageQuality=this.renderImageQuality,le.markersOnly=this.renderMarkersOnly,le.width=this.renderWidth,le.height=this.renderHeight,[4,le.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return ae.sent(),[4,le.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,ae.sent()]}})})},he.prototype.close=function(le){var ae=this;if(le===void 0&&(le=!1),this.isOpen){var pe=!1;le||this.eventListeners.beforeclose.forEach(function(ye){var se=new Pt(ae,!0);ye(se),se.defaultPrevented&&(pe=!0)}),pe||(this.coverDiv&&this.closeUI(),this.targetObserver&&(this.targetObserver.unobserve(this.target),this.targetObserver.unobserve(this.editorCanvas)),this.settings.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),this.eventListeners.close.forEach(function(ye){return ye(new Pt(ae))}),this.detachEvents(),this._isOpen=!1)}},he.prototype.addMarkersToToolbar=function(){for(var le,ae=[],pe=0;pe<arguments.length;pe++)ae[pe]=arguments[pe];(le=this._availableMarkerTypes).push.apply(le,ae)},he.prototype.addRenderEventListener=function(le){this.addEventListener("render",function(ae){le(ae.dataUrl,ae.state)})},he.prototype.removeRenderEventListener=function(le){},he.prototype.addCloseEventListener=function(le){this.addEventListener("close",function(){le()})},he.prototype.removeCloseEventListener=function(le){},he.prototype.setupResizeObserver=function(){var le=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){le.resize(le.target.clientWidth,le.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return le.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},he.prototype.onPopupTargetResize=function(){var le=1*this.target.clientWidth/this.target.clientHeight,ae=this.editorCanvas.clientWidth/le>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*le:this.editorCanvas.clientWidth,pe=ae<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/le;this.resize(ae,pe)},he.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},he.prototype.resize=function(le,ae){this._isResizing=!0;var pe=le/this.imageWidth,ye=ae/this.imageHeight;this.imageWidth=Math.round(le),this.imageHeight=Math.round(ae),this.target instanceof HTMLImageElement&&this.editingTarget instanceof HTMLImageElement&&(this.editingTarget.src=this.target.src),this.editingTarget.width=this.imageWidth,this.editingTarget.height=this.imageHeight,this.editingTarget.style.width=this.imageWidth+"px",this.editingTarget.style.height=this.imageHeight+"px",this.markerImage.setAttribute("width",this.imageWidth.toString()),this.markerImage.setAttribute("height",this.imageHeight.toString()),this.markerImage.setAttribute("viewBox","0 0 "+this.imageWidth.toString()+" "+this.imageHeight.toString()),this.markerImageHolder.style.width=this.imageWidth+"px",this.markerImageHolder.style.height=this.imageHeight+"px",this.overlayContainer.style.width=this.imageWidth+"px",this.overlayContainer.style.height=this.imageHeight+"px",this.settings.displayMode!=="popup"?this.coverDiv.style.width=this.imageWidth.toString()+"px":(this.setTopLeft(),this.positionMarkerImage()),this.toolbar!==void 0&&this.toolbar.adjustLayout(),this.positionLogo(),this.scaleMarkers(pe,ye),this._isResizing=!1},he.prototype.scaleMarkers=function(le,ae){var pe,ye=this;this._currentMarker&&this._currentMarker instanceof Ve?this._currentMarker.scale(le,ae):(pe=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(se){se!==ye._currentMarker&&se.scale(le,ae)}),pe!==void 0&&this.setCurrentMarker(pe)},he.prototype.setEditingTarget=function(){this.imageWidth=Math.round(this.target.clientWidth),this.imageHeight=Math.round(this.target.clientHeight),this.target instanceof HTMLImageElement&&this.editingTarget instanceof HTMLImageElement&&(this.editingTarget.src=this.target.src),this.editingTarget.width=this.imageWidth,this.editingTarget.height=this.imageHeight,this.editingTarget.style.width=this.imageWidth+"px",this.editingTarget.style.height=this.imageHeight+"px"},he.prototype.setTopLeft=function(){var le=this.editingTarget.getBoundingClientRect(),ae=this.editorCanvas.getBoundingClientRect();this.left=le.left-ae.left,this.top=le.top-ae.top},he.prototype.initMarkerCanvas=function(){this.markerImageHolder=document.createElement("div"),this.markerImageHolder.style.setProperty("touch-action","pinch-zoom"),this.markerImage=document.createElementNS("http://www.w3.org/2000/svg","svg"),this.markerImage.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.markerImage.setAttribute("width",this.imageWidth.toString()),this.markerImage.setAttribute("height",this.imageHeight.toString()),this.markerImage.setAttribute("viewBox","0 0 "+this.imageWidth.toString()+" "+this.imageHeight.toString()),this.markerImage.style.pointerEvents="auto",this.markerImageHolder.style.position="absolute",this.markerImageHolder.style.width=this.imageWidth+"px",this.markerImageHolder.style.height=this.imageHeight+"px",this.markerImageHolder.style.transformOrigin="top left",this.positionMarkerImage(),this.markerImageHolder.appendChild(this.markerImage),this.editorCanvas.appendChild(this.markerImageHolder)},he.prototype.addDefs=function(){for(var le,ae=[],pe=0;pe<arguments.length;pe++)ae[pe]=arguments[pe];this.defs=_e.createDefs(),this.addDefsToImage(),(le=this.defs).append.apply(le,ae)},he.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},he.prototype.initOverlay=function(){this.overlayContainer=document.createElement("div"),this.overlayContainer.style.position="absolute",this.overlayContainer.style.left="0px",this.overlayContainer.style.top="0px",this.overlayContainer.style.width=this.imageWidth+"px",this.overlayContainer.style.height=this.imageHeight+"px",this.overlayContainer.style.display="flex",this.markerImageHolder.appendChild(this.overlayContainer)},he.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},he.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},he.prototype.attachWindowEvents=function(){window.addEventListener("pointermove",this.onPointerMove),window.addEventListener("pointerup",this.onPointerUp),window.addEventListener("pointercancel",this.onPointerOut),window.addEventListener("pointerout",this.onPointerOut),window.addEventListener("pointerleave",this.onPointerUp),window.addEventListener("resize",this.onWindowResize),window.addEventListener("keyup",this.onKeyUp)},he.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},he.prototype.detachWindowEvents=function(){window.removeEventListener("pointermove",this.onPointerMove),window.removeEventListener("pointerup",this.onPointerUp),window.removeEventListener("pointercancel",this.onPointerOut),window.removeEventListener("pointerout",this.onPointerOut),window.removeEventListener("pointerleave",this.onPointerUp),window.removeEventListener("resize",this.onWindowResize),window.removeEventListener("keyup",this.onKeyUp)},he.prototype.addLogo=function(){this.logoUI=document.createElement("div"),this.logoUI.style.display="inline-block",this.logoUI.style.margin="0px",this.logoUI.style.padding="0px",this.logoUI.style.fill="#333333";var le=document.createElement("a");le.href="https://markerjs.com/",le.target="_blank",le.innerHTML='<svg viewBox="0 0 112 96" xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="1.414"><path fill="#e5f20d" fill-opacity=".647" d="M0 40.386h111.96V95.62H0z"/><path d="M93.61 61.452c0 .987-.328 1.831-.987 2.53-.657.7-1.52 1.048-2.591 1.048-1.481 0-2.222-.74-2.222-2.22 0-16.617-.533-29.347-1.604-38.192-1.068-8.842-2.92-13.265-5.552-13.265-4.443 0-10.94 15.509-19.497 46.52v.124c0 .987-.328 1.831-.987 2.53-.657.7-1.52 1.048-2.592 1.048-1.48 0-2.22-.74-2.22-2.22 0-3.29.165-8.392.493-15.302.33-7.732.494-13.82.494-18.262 0-6.17-.186-10.55-.556-13.142-.37-2.591-1.172-3.887-2.406-3.887-2.796 0-6.333 5.12-10.612 15.363C38.494 34.367 34.01 46.44 29.32 60.34l-1.11 3.209a5.714 5.714 0 01-1.42 2.097c-.617.578-1.295.864-2.036.864-.987 0-1.644-.081-1.974-.247-.328-.162-.533-.656-.617-1.48-.41-4.03-.74-9.418-.987-16.165-.163-1.728-.329-4.566-.494-8.515-.822-13.901-1.562-23.3-2.221-28.196-.657-4.893-.987-7.628-.987-8.205 0-.657.33-1.44.987-2.345.659-.903 1.276-1.357 1.85-1.357 1.319 0 2.387.947 3.21 2.838.411.906.863 4.526 1.357 10.859.493 6.335.905 14.19 1.233 23.568l.617 18.88c4.527-13.983 9.216-26.673 14.068-38.068C45.65 6.686 50.093.988 54.123.988c2.715 0 4.566 1.974 5.553 5.923.987 3.949 1.481 9.667 1.481 17.152 0 3.949-.081 9.625-.247 17.029l-.123 5.676c3.373-11.762 6.725-21.634 10.057-29.615 3.331-7.979 6.685-11.97 10.056-11.97 8.475 0 12.71 18.757 12.71 56.269z" fill-rule="nonzero"/></svg>',le.title="Powered by marker.js",le.style.display="grid",le.style.alignItems="center",le.style.justifyItems="center",le.style.padding="3px",le.style.width="20px",le.style.height="20px",this.logoUI.appendChild(le),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},he.prototype.positionLogo=function(){this.logoUI&&(this.uiStyleSettings.logoPosition!=="right"?this.logoUI.style.left=this.markerImageHolder.offsetLeft+10+"px":this.logoUI.style.left=this.markerImageHolder.offsetLeft+this.markerImageHolder.offsetWidth-this.logoUI.clientWidth-10+"px",this.logoUI.style.top=this.markerImageHolder.offsetTop+this.markerImageHolder.offsetHeight-this.logoUI.clientHeight-10+"px")},he.prototype.overrideOverflow=function(){this.scrollXState=window.scrollX,this.scrollYState=window.scrollY,this.bodyOverflowState=document.body.style.overflow,window.scroll({top:0,left:0}),document.body.style.overflow="hidden"},he.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},he.prototype.showUI=function(){switch(this.settings.displayMode==="popup"&&this.overrideOverflow(),this.coverDiv=document.createElement("div"),this.coverDiv.style.visibility=this._silentRenderMode?"hidden":"visible",this.coverDiv.className=this.styles.classNamePrefixBase+" "+this.styles.classNamePrefix,this.coverDiv.style.fontSize="16px",this.coverDiv.style.userSelect="none",this.settings.displayMode){case"inline":this.coverDiv.style.position="absolute";var le=this.settings.uiOffsetTop!==void 0?this.target.offsetTop+this.settings.uiOffsetTop:this.target.offsetTop>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=le+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px",this.coverDiv.style.width=this.target.offsetWidth.toString()+"px",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"5";break;case"popup":this.coverDiv.style.position="absolute",this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=window.innerHeight+"px",this.coverDiv.style.backgroundColor="rgba(0, 0, 0, 0.75)",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"1000",this.coverDiv.style.display="flex"}this.targetRoot.appendChild(this.coverDiv),this.uiDiv=document.createElement("div"),this.uiDiv.style.display="flex",this.uiDiv.style.flexDirection="column",this.uiDiv.style.flexGrow="2",this.uiDiv.style.margin=this.settings.displayMode==="popup"?this.settings.popupMargin+"px":"0px",this.uiDiv.style.border="0px",this.coverDiv.appendChild(this.uiDiv),this.toolbar=new vt(this.uiDiv,this.settings.displayMode,this._availableMarkerTypes,this.uiStyleSettings,this.styles),this.toolbar.addButtonClickListener(this.toolbarButtonClicked),this.toolbar.show(this._silentRenderMode||this.uiStyleSettings.hideToolbar?"hidden":"visible"),this.contentDiv=document.createElement("div"),this.contentDiv.style.display="flex",this.contentDiv.style.flexDirection="row",this.contentDiv.style.flexGrow="2",this.contentDiv.style.flexShrink="1",this.settings.displayMode==="popup"&&(this.contentDiv.style.backgroundColor=this.uiStyleSettings.canvasBackgroundColor,this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.uiStyleSettings.toolbarHeight+"px",this.contentDiv.style.maxWidth="calc(100vw - "+2*this.settings.popupMargin+"px)"),this.contentDiv.style.overflow="auto",this.uiDiv.appendChild(this.contentDiv),this.editorCanvas=document.createElement("div"),this.editorCanvas.style.flexGrow="2",this.editorCanvas.style.flexShrink="1",this.editorCanvas.style.position="relative",this.editorCanvas.style.overflow="hidden",this.editorCanvas.style.display="flex",this.settings.displayMode==="popup"&&(this.editorCanvas.style.alignItems="center",this.editorCanvas.style.justifyContent="center"),this.editorCanvas.style.pointerEvents="none",this.editorCanvas.style.transformOrigin="left top",this.editorCanvas.style.transform="scale("+this.zoomLevel+")",this.contentDiv.appendChild(this.editorCanvas),this.editingTarget=this.target instanceof HTMLImageElement?document.createElement("img"):document.createElement("canvas"),this.settings.uiOffsetTop===void 0&&this.target.offsetTop<this.styles.settings.toolbarHeight&&(this.editingTarget.style.marginTop=this.target.offsetTop-this.styles.settings.toolbarHeight+"px"),this.editorCanvas.appendChild(this.editingTarget),this.toolbox=new Ye(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},he.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},he.prototype.removeMarker=function(le){this.markerImage.removeChild(le.container),this.markers.indexOf(le)>-1&&this.markers.splice(this.markers.indexOf(le),1),le.dispose()},he.prototype.switchToSelectMode=function(){this.mode="select",this.hideNotesEditor(),this._currentMarker!==void 0&&(this._currentMarker.state!=="new"?this._currentMarker.select():(this.removeMarker(this._currentMarker),this.setCurrentMarker(),this.markerImage.style.cursor="default"),this.addUndoStep())},he.prototype.toolbarButtonClicked=function(le,ae){if(le==="marker"&&ae!==void 0)this.createNewMarker(ae);else if(le==="action")switch(ae){case"select":this.switchToSelectMode(),this.switchToSelectMode();break;case"delete":this.deleteSelectedMarker();break;case"clear":this.clear();break;case"undo":this.undo();break;case"redo":this.redo();break;case"zoom":this.stepZoom();break;case"zoom-out":this.zoomLevel=1;break;case"notes":this.notesArea===void 0?(this.switchToSelectMode(),this.zoomLevel=1,this.showNotesEditor()):this.switchToSelectMode();break;case"close":this.close();break;case"render":this.switchToSelectMode(),this.startRenderAndClose()}},he.prototype.deleteSelectedMarker=function(){var le=this;if(this._currentMarker!==void 0){var ae=!1;if(this.eventListeners.markerbeforedelete.forEach(function(ye){var se=new dt(le,le._currentMarker,!0);ye(se),se.defaultPrevented&&(ae=!0)}),!ae){var pe=this._currentMarker;this._currentMarker.dispose(),this.markerImage.removeChild(this._currentMarker.container),this.markers.splice(this.markers.indexOf(this._currentMarker),1),this.setCurrentMarker(),this.addUndoStep(),this.eventListeners.markerdelete.forEach(function(ye){return ye(new dt(le,pe))})}}},he.prototype.clear=function(){var le=this,ae=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(ot){var Xt=new dt(le,void 0,!0);ot(Xt),Xt.defaultPrevented&&(ae=!0)}),!ae)){this.setCurrentMarker();for(var pe=function(ot){var Xt=ye.markers[ot];ye.setCurrentMarker(ye.markers[ot]),ye._currentMarker.dispose(),ye.markerImage.removeChild(ye._currentMarker.container),ye.markers.splice(ye.markers.indexOf(ye._currentMarker),1),ye.eventListeners.markerdelete.forEach(function(zt){return zt(new dt(le,Xt))})},ye=this,se=this.markers.length-1;se>=0;se--)pe(se);this.addUndoStep()}},Object.defineProperty(he.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),he.prototype.showNotesEditor=function(){var le;this._currentMarker!==void 0&&(this.overlayContainer.innerHTML="",this.notesArea=document.createElement("textarea"),this.notesArea.className=this.uiStyleSettings.notesAreaStyleClassName,this.notesArea.style.pointerEvents="auto",this.notesArea.style.alignSelf="stretch",this.notesArea.style.width="100%",this.notesArea.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.notesArea.value=(le=this._currentMarker.notes)!==null&&le!==void 0?le:"",this.overlayContainer.appendChild(this.notesArea))},he.prototype.hideNotesEditor=function(){this.isNotesAreaOpen&&(this._currentMarker!==void 0&&(this._currentMarker.notes=this.notesArea.value.trim()!==""?this.notesArea.value:void 0),this.overlayContainer.removeChild(this.notesArea),this.notesArea=void 0)},he.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},he.prototype.addUndoStep=function(){var le=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var ae=this.getState(),pe=this.undoRedoManager.getLastUndoStep();if(!pe||pe.width===ae.width&&pe.height===ae.height){var ye=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(ae),ye<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(se){return se(new Pt(le))})}else this.undoRedoManager.replaceLastUndoStep(ae),this.eventListeners.statechange.forEach(function(se){return se(new Pt(le))})}},he.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},he.prototype.undoStep=function(){var le=this,ae=this.undoRedoManager.undo();ae!==void 0&&(this.restoreState(ae),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(pe){return pe(new Pt(le))}))},he.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},he.prototype.redoStep=function(){var le=this,ae=this.undoRedoManager.redo();ae!==void 0&&(this.restoreState(ae),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(pe){return pe(new Pt(le))}))},he.prototype.stepZoom=function(){var le=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=le<this.zoomSteps.length-1?this.zoomSteps[le+1]:this.zoomSteps[0]},he.prototype.panTo=function(le){this.contentDiv.scrollBy({left:this.prevPanPoint.x-le.x,top:this.prevPanPoint.y-le.y}),this.prevPanPoint=le},he.prototype.startRenderAndClose=function(){return Pe(this,void 0,void 0,function(){var le,ae,pe=this;return Te(this,function(ye){switch(ye.label){case 0:return[4,this.render()];case 1:return le=ye.sent(),ae=this.getState(),this.eventListeners.render.forEach(function(se){return se(new en(pe,le,ae))}),this.close(!0),[2]}})})},he.prototype.getState=function(le){le===!0&&this.setCurrentMarker();var ae={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(pe){return ae.markers.push(pe.getState())}),ae},he.prototype.restoreState=function(le){var ae=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);le.markers.forEach(function(pe){var ye=ae._availableMarkerTypes.find(function(ot){return ot.typeName===pe.typeName});if(ye!==void 0){var se=ae.addNewMarker(ye);se.restoreState(pe),ae.markers.push(se)}}),le.width&&le.height&&(le.width!==this.imageWidth||le.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/le.width,this.imageHeight/le.height),this.eventListeners.restorestate.forEach(function(pe){return pe(new Pt(ae))})},he.prototype.addNewMarker=function(le){var ae=_e.createGroup();return this.markerImage.appendChild(ae),new le(ae,this.overlayContainer,this.settings)},he.prototype.createNewMarker=function(le){var ae,pe=this;(ae=typeof le=="string"?this._availableMarkerTypes.find(function(ye){return ye.typeName===le}):le)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(ae),this._currentMarker.onMarkerCreated=this.markerCreated,this._currentMarker.onColorChanged=this.colorChanged,this._currentMarker.onFillColorChanged=this.fillColorChanged,this._currentMarker.onStateChanged=this.markerStateChanged,this.markerImage.style.cursor="crosshair",this.toolbar.setActiveMarkerButton(ae.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach(function(ye){return ye(new dt(pe,pe._currentMarker))}))},he.prototype.markerCreated=function(le){var ae=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(le),this.setCurrentMarker(le),le instanceof Ae&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(Ae):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(pe){return pe(new dt(ae,ae._currentMarker))})},he.prototype.colorChanged=function(le){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=le,this.settings.defaultStrokeColor=le)},he.prototype.fillColorChanged=function(le){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=le)},he.prototype.markerStateChanged=function(le){var ae=this;this.eventListeners.markerchange.forEach(function(pe){return pe(new dt(ae,le))})},he.prototype.setCurrentMarker=function(le){var ae=this;this._currentMarker!==le&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(pe){return pe(new dt(ae,ae._currentMarker))})),this._currentMarker=le,this._currentMarker===void 0||this._currentMarker.isSelected||(this._currentMarker.state!=="new"&&this._currentMarker.select(),this.toolbar.setCurrentMarker(this._currentMarker),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this._isResizing||this.eventListeners.markerselect.forEach(function(pe){return pe(new dt(ae,ae._currentMarker))}))},he.prototype.onPointerDown=function(le){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||le.pointerType!=="touch")if(this._currentMarker===void 0||this._currentMarker.state!=="new"&&this._currentMarker.state!=="creating"){if(this.mode==="select"){var ae=this.markers.find(function(pe){return pe.ownsTarget(le.target)});ae!==void 0?(this.setCurrentMarker(ae),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(le.clientX,le.clientY),le.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:le.clientX,y:le.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(le.clientX,le.clientY))},he.prototype.onDblClick=function(le){if(this._isFocused||this.focus(),this.mode==="select"){var ae=this.markers.find(function(pe){return pe.ownsTarget(le.target)});ae!==void 0&&ae!==this._currentMarker&&this.setCurrentMarker(ae),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(le.clientX,le.clientY),le.target):this.setCurrentMarker()}},he.prototype.onPointerMove=function(le){this.touchPoints!==1&&le.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||le.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(le.clientX,le.clientY)):this.zoomLevel>1&&this.panTo({x:le.clientX,y:le.clientY}))},he.prototype.onPointerUp=function(le){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(le.clientX,le.clientY)),this.isDragging=!1,this.addUndoStep()},he.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},he.prototype.onKeyUp=function(le){this._currentMarker===void 0||this.notesArea!==void 0||le.key!=="Delete"&&le.key!=="Backspace"||this.deleteSelectedMarker()},he.prototype.clientToLocalCoordinates=function(le,ae){var pe=this.markerImage.getBoundingClientRect();return{x:(le-pe.left)/this.zoomLevel,y:(ae-pe.top)/this.zoomLevel}},he.prototype.onWindowResize=function(){this.positionUI()},he.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var le=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=le+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px";break;case"popup":this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=this.windowHeight+"px",this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.styles.settings.toolbarHeight+"px"}this.positionMarkerImage(),this.positionLogo()},he.prototype.addLicenseKey=function(le){ze.addKey(le)},he.prototype.addEventListener=function(le,ae){this.eventListeners.addEventListener(le,ae)},he.prototype.removeEventListener=function(le,ae){this.eventListeners.removeEventListener(le,ae)},he.prototype.renderState=function(le){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(le),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(he.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),he.prototype.focus=function(){var le=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(ae){return ae(new Pt(le))}))},he.prototype.blur=function(){var le=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(ae){return ae(new Pt(le))}))},he.instanceCounter=0,he}()},43141:function(It,kt,ne){"use strict";ne.d(kt,{Z5:function(){return Ec},_l:function(){return is},bK:function(){return Xs}});var E=ne(59301),ve=ne(29658);function Pe(ee,te){ee.prototype=Object.create(te.prototype),ee.prototype.constructor=ee,(0,ve.Z)(ee,te)}var Te=ne(60499),He=ne(59781),_e=E.createContext(null),ze=null;function nt(ee){ee()}var Fe=nt,We=function(te){return Fe=te},Xe=function(){return Fe};function $e(){var ee=Xe(),te=null,ie=null;return{clear:function(){te=null,ie=null},notify:function(){ee(function(){for(var Ce=te;Ce;)Ce.callback(),Ce=Ce.next})},get:function(){for(var Ce=[],xe=te;xe;)Ce.push(xe),xe=xe.next;return Ce},subscribe:function(Ce){var xe=!0,Oe=ie={callback:Ce,next:null,prev:ie};return Oe.prev?Oe.prev.next=Oe:te=Oe,function(){!xe||te===null||(xe=!1,Oe.next?Oe.next.prev=Oe.prev:ie=Oe.prev,Oe.prev?Oe.prev.next=Oe.next:te=Oe.next)}}}}var vt={notify:function(){},get:function(){return[]}};function Ye(ee,te){var ie,ce=vt;function Ce(gt){return ht(),ce.subscribe(gt)}function xe(){ce.notify()}function Oe(){St.onStateChange&&St.onStateChange()}function Ge(){return!!ie}function ht(){ie||(ie=te?te.addNestedSub(Oe):ee.subscribe(Oe),ce=$e())}function At(){ie&&(ie(),ie=void 0,ce.clear(),ce=vt)}var St={addNestedSub:Ce,notifyNestedSubs:xe,handleChangeWrapper:Oe,isSubscribed:Ge,trySubscribe:ht,tryUnsubscribe:At,getListeners:function(){return ce}};return St}var Ne=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?E.useLayoutEffect:E.useEffect;function Be(ee){var te=ee.store,ie=ee.context,ce=ee.children,Ce=(0,E.useMemo)(function(){var Ge=Ye(te);return{store:te,subscription:Ge}},[te]),xe=(0,E.useMemo)(function(){return te.getState()},[te]);Ne(function(){var Ge=Ce.subscription;return Ge.onStateChange=Ge.notifyNestedSubs,Ge.trySubscribe(),xe!==te.getState()&&Ge.notifyNestedSubs(),function(){Ge.tryUnsubscribe(),Ge.onStateChange=null}},[Ce,xe]);var Oe=ie||_e;return E.createElement(Oe.Provider,{value:Ce},ce)}var be=Be,Ie=ne(69010),Ke=ne(94266),at=ne.n(Ke),fe=ne(53410),qe=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],st=["reactReduxForwardedRef"],wt=[],ft=[null,null],ct=function(te){try{return JSON.stringify(te)}catch(ie){return String(te)}};function Je(ee,te){var ie=ee[1];return[te.payload,ie+1]}function ut(ee,te,ie){Ne(function(){return ee.apply(void 0,te)},ie)}function Se(ee,te,ie,ce,Ce,xe,Oe){ee.current=ce,te.current=Ce,ie.current=!1,xe.current&&(xe.current=null,Oe())}function Ve(ee,te,ie,ce,Ce,xe,Oe,Ge,ht,At){if(ee){var St=!1,gt=null,Et=function(){if(!St){var Mr=te.getState(),zr,ea;try{zr=ce(Mr,Ce.current)}catch(Oa){ea=Oa,gt=Oa}ea||(gt=null),zr===xe.current?Oe.current||ht():(xe.current=zr,Ge.current=zr,Oe.current=!0,At({type:"STORE_UPDATED",payload:{error:ea}}))}};ie.onStateChange=Et,ie.trySubscribe(),Et();var Ot=function(){if(St=!0,ie.tryUnsubscribe(),ie.onStateChange=null,gt)throw gt};return Ot}}var Ae=function(){return[null,0]};function tt(ee,te){te===void 0&&(te={});var ie=te,ce=ie.getDisplayName,Ce=ce===void 0?function(ro){return"ConnectAdvanced("+ro+")"}:ce,xe=ie.methodName,Oe=xe===void 0?"connectAdvanced":xe,Ge=ie.renderCountProp,ht=Ge===void 0?void 0:Ge,At=ie.shouldHandleStateChanges,St=At===void 0?!0:At,gt=ie.storeKey,Et=gt===void 0?"store":gt,Ot=ie.withRef,bn=Ot===void 0?!1:Ot,Mr=ie.forwardRef,zr=Mr===void 0?!1:Mr,ea=ie.context,Oa=ea===void 0?_e:ea,Ja=(0,Ie.Z)(ie,qe);if(0)var ni;var ho=Oa;return function(Ro){var zl=Ro.displayName||Ro.name||"Component",Ko=Ce(zl),Gl=(0,Te.Z)({},Ja,{getDisplayName:Ce,methodName:Oe,renderCountProp:ht,shouldHandleStateChanges:St,storeKey:Et,displayName:Ko,wrappedComponentName:zl,WrappedComponent:Ro}),ms=Ja.pure;function Fs(Ss){return ee(Ss.dispatch,Gl)}var vu=ms?E.useMemo:function(Ss){return Ss()};function au(Ss){var Hu=(0,E.useMemo)(function(){var yc=Ss.reactReduxForwardedRef,zc=(0,Ie.Z)(Ss,st);return[Ss.context,yc,zc]},[Ss]),yu=Hu[0],vc=Hu[1],$u=Hu[2],Wu=(0,E.useMemo)(function(){return yu&&yu.Consumer&&(0,fe.isContextConsumer)(E.createElement(yu.Consumer,null))?yu:ho},[yu,ho]),Eu=(0,E.useContext)(Wu),ec=!!Ss.store&&!!Ss.store.getState&&!!Ss.store.dispatch,Bc=!!Eu&&!!Eu.store,bu=ec?Ss.store:Eu.store,gc=(0,E.useMemo)(function(){return Fs(bu)},[bu]),Ac=(0,E.useMemo)(function(){if(!St)return ft;var yc=Ye(bu,ec?null:Eu.subscription),zc=yc.notifyNestedSubs.bind(yc);return[yc,zc]},[bu,ec,Eu]),sc=Ac[0],_c=Ac[1],Pc=(0,E.useMemo)(function(){return ec?Eu:(0,Te.Z)({},Eu,{subscription:sc})},[ec,Eu,sc]),Gc=(0,E.useReducer)(Je,wt,Ae),Qc=Gc[0],kc=Qc[0],Xc=Gc[1];if(kc&&kc.error)throw kc.error;var Uc=(0,E.useRef)(),Hc=(0,E.useRef)($u),Ic=(0,E.useRef)(),Yc=(0,E.useRef)(!1),Wc=vu(function(){return Ic.current&&$u===Hc.current?Ic.current:gc(bu.getState(),$u)},[bu,kc,$u]);ut(Se,[Hc,Uc,Yc,$u,Wc,Ic,_c]),ut(Ve,[St,bu,sc,gc,Hc,Uc,Yc,Ic,_c,Xc],[bu,sc,gc]);var Vc=(0,E.useMemo)(function(){return E.createElement(Ro,(0,Te.Z)({},Wc,{ref:vc}))},[vc,Ro,Wc]),Jc=(0,E.useMemo)(function(){return St?E.createElement(Wu.Provider,{value:Pc},Vc):Vc},[Wu,Vc,Pc]);return Jc}var Js=ms?E.memo(au):au;if(Js.WrappedComponent=Ro,Js.displayName=au.displayName=Ko,zr){var gu=E.forwardRef(function(Hu,yu){return E.createElement(Js,(0,Te.Z)({},Hu,{reactReduxForwardedRef:yu}))});return gu.displayName=Ko,gu.WrappedComponent=Ro,at()(gu,Ro)}return at()(Js,Ro)}}function Dt(ee,te){return ee===te?ee!==0||te!==0||1/ee===1/te:ee!==ee&&te!==te}function lt(ee,te){if(Dt(ee,te))return!0;if(typeof ee!="object"||ee===null||typeof te!="object"||te===null)return!1;var ie=Object.keys(ee),ce=Object.keys(te);if(ie.length!==ce.length)return!1;for(var Ce=0;Ce<ie.length;Ce++)if(!Object.prototype.hasOwnProperty.call(te,ie[Ce])||!Dt(ee[ie[Ce]],te[ie[Ce]]))return!1;return!0}function Qe(ee,te){var ie={},ce=function(Oe){var Ge=ee[Oe];typeof Ge=="function"&&(ie[Oe]=function(){return te(Ge.apply(void 0,arguments))})};for(var Ce in ee)ce(Ce);return ie}function xt(ee){return function(ie,ce){var Ce=ee(ie,ce);function xe(){return Ce}return xe.dependsOnOwnProps=!1,xe}}function Re(ee){return ee.dependsOnOwnProps!==null&&ee.dependsOnOwnProps!==void 0?!!ee.dependsOnOwnProps:ee.length!==1}function me(ee,te){return function(ce,Ce){var xe=Ce.displayName,Oe=function(ht,At){return Oe.dependsOnOwnProps?Oe.mapToProps(ht,At):Oe.mapToProps(ht)};return Oe.dependsOnOwnProps=!0,Oe.mapToProps=function(ht,At){Oe.mapToProps=ee,Oe.dependsOnOwnProps=Re(ee);var St=Oe(ht,At);return typeof St=="function"&&(Oe.mapToProps=St,Oe.dependsOnOwnProps=Re(St),St=Oe(ht,At)),St},Oe}}function pt(ee){return typeof ee=="function"?me(ee,"mapDispatchToProps"):void 0}function bt(ee){return ee?void 0:xt(function(te){return{dispatch:te}})}function it(ee){return ee&&typeof ee=="object"?xt(function(te){return Qe(ee,te)}):void 0}var Le=[pt,bt,it];function Ue(ee){return typeof ee=="function"?me(ee,"mapStateToProps"):void 0}function mt(ee){return ee?void 0:xt(function(){return{}})}var Zt=[Ue,mt];function Pt(ee,te,ie){return(0,Te.Z)({},ie,ee,te)}function en(ee){return function(ie,ce){var Ce=ce.displayName,xe=ce.pure,Oe=ce.areMergedPropsEqual,Ge=!1,ht;return function(St,gt,Et){var Ot=ee(St,gt,Et);return Ge?(!xe||!Oe(Ot,ht))&&(ht=Ot):(Ge=!0,ht=Ot),ht}}}function dt(ee){return typeof ee=="function"?en(ee):void 0}function Lt(ee){return ee?void 0:function(){return Pt}}var pn=[dt,Lt],he=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function le(ee,te,ie,ce){return function(xe,Oe){return ie(ee(xe,Oe),te(ce,Oe),Oe)}}function ae(ee,te,ie,ce,Ce){var xe=Ce.areStatesEqual,Oe=Ce.areOwnPropsEqual,Ge=Ce.areStatePropsEqual,ht=!1,At,St,gt,Et,Ot;function bn(Ja,ni){return At=Ja,St=ni,gt=ee(At,St),Et=te(ce,St),Ot=ie(gt,Et,St),ht=!0,Ot}function Mr(){return gt=ee(At,St),te.dependsOnOwnProps&&(Et=te(ce,St)),Ot=ie(gt,Et,St),Ot}function zr(){return ee.dependsOnOwnProps&&(gt=ee(At,St)),te.dependsOnOwnProps&&(Et=te(ce,St)),Ot=ie(gt,Et,St),Ot}function ea(){var Ja=ee(At,St),ni=!Ge(Ja,gt);return gt=Ja,ni&&(Ot=ie(gt,Et,St)),Ot}function Oa(Ja,ni){var ho=!Oe(ni,St),ro=!xe(Ja,At,ni,St);return At=Ja,St=ni,ho&&ro?Mr():ho?zr():ro?ea():Ot}return function(ni,ho){return ht?Oa(ni,ho):bn(ni,ho)}}function pe(ee,te){var ie=te.initMapStateToProps,ce=te.initMapDispatchToProps,Ce=te.initMergeProps,xe=(0,Ie.Z)(te,he),Oe=ie(ee,xe),Ge=ce(ee,xe),ht=Ce(ee,xe),At=xe.pure?ae:le;return At(Oe,Ge,ht,ee,xe)}var ye=["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"];function se(ee,te,ie){for(var ce=te.length-1;ce>=0;ce--){var Ce=te[ce](ee);if(Ce)return Ce}return function(xe,Oe){throw new Error("Invalid value of type "+typeof ee+" for "+ie+" argument when connecting component "+Oe.wrappedComponentName+".")}}function ot(ee,te){return ee===te}function Xt(ee){var te=ee===void 0?{}:ee,ie=te.connectHOC,ce=ie===void 0?tt:ie,Ce=te.mapStateToPropsFactories,xe=Ce===void 0?Zt:Ce,Oe=te.mapDispatchToPropsFactories,Ge=Oe===void 0?Le:Oe,ht=te.mergePropsFactories,At=ht===void 0?pn:ht,St=te.selectorFactory,gt=St===void 0?pe:St;return function(Ot,bn,Mr,zr){zr===void 0&&(zr={});var ea=zr,Oa=ea.pure,Ja=Oa===void 0?!0:Oa,ni=ea.areStatesEqual,ho=ni===void 0?ot:ni,ro=ea.areOwnPropsEqual,Ro=ro===void 0?lt:ro,zl=ea.areStatePropsEqual,Ko=zl===void 0?lt:zl,Gl=ea.areMergedPropsEqual,ms=Gl===void 0?lt:Gl,Fs=(0,Ie.Z)(ea,ye),vu=se(Ot,xe,"mapStateToProps"),au=se(bn,Ge,"mapDispatchToProps"),Js=se(Mr,At,"mergeProps");return ce(gt,(0,Te.Z)({methodName:"connect",getDisplayName:function(Ss){return"Connect("+Ss+")"},shouldHandleStateChanges:!!Ot,initMapStateToProps:vu,initMapDispatchToProps:au,initMergeProps:Js,pure:Ja,areStatesEqual:ho,areOwnPropsEqual:Ro,areStatePropsEqual:Ko,areMergedPropsEqual:ms},Fs))}}var zt=Xt();function on(){var ee=useContext(ReactReduxContext);return ee}function Kt(ee){ee===void 0&&(ee=ReactReduxContext);var te=ee===ReactReduxContext?useDefaultReduxContext:function(){return useContext(ee)};return function(){var ce=te(),Ce=ce.store;return Ce}}var Yn=null;function Fn(ee){ee===void 0&&(ee=ReactReduxContext);var te=ee===ReactReduxContext?useDefaultStore:createStoreHook(ee);return function(){var ce=te();return ce.dispatch}}var or=null,ra=function(te,ie){return te===ie};function ur(ee,te,ie,ce){var Ce=useReducer(function(bn){return bn+1},0),xe=Ce[1],Oe=useMemo(function(){return createSubscription(ie,ce)},[ie,ce]),Ge=useRef(),ht=useRef(),At=useRef(),St=useRef(),gt=ie.getState(),Et;try{if(ee!==ht.current||gt!==At.current||Ge.current){var Ot=ee(gt);St.current===void 0||!te(Ot,St.current)?Et=Ot:Et=St.current}else Et=St.current}catch(bn){throw Ge.current&&(bn.message+=`
The error may be correlated with this previous error:
`+Ge.current.stack+`
`),bn}return useIsomorphicLayoutEffect(function(){ht.current=ee,At.current=gt,St.current=Et,Ge.current=void 0}),useIsomorphicLayoutEffect(function(){function bn(){try{var Mr=ie.getState();if(Mr===At.current)return;var zr=ht.current(Mr);if(te(zr,St.current))return;St.current=zr,At.current=Mr}catch(ea){Ge.current=ea}xe()}return Oe.onStateChange=bn,Oe.trySubscribe(),bn(),function(){return Oe.tryUnsubscribe()}},[ie,Oe]),Et}function rr(ee){ee===void 0&&(ee=ReactReduxContext);var te=ee===ReactReduxContext?useDefaultReduxContext:function(){return useContext(ee)};return function(ce,Ce){Ce===void 0&&(Ce=ra);var xe=te(),Oe=xe.store,Ge=xe.subscription,ht=ur(ce,Ce,Oe,Ge);return useDebugValue(ht),ht}}var Xr=null,Vr=ne(4676);We(Vr.unstable_batchedUpdates);function xr(ee,te){if(ee.length!==te.length)return!1;for(var ie=0;ie<ee.length;ie++)if(ee[ie]!==te[ie])return!1;return!0}function Dn(ee,te){var ie=(0,E.useState)(function(){return{inputs:te,result:ee()}})[0],ce=(0,E.useRef)(!0),Ce=(0,E.useRef)(ie),xe=ce.current||!!(te&&Ce.current.inputs&&xr(te,Ce.current.inputs)),Oe=xe?Ce.current:{inputs:te,result:ee()};return(0,E.useEffect)(function(){ce.current=!1,Ce.current=Oe},[Oe]),Oe.result}function pa(ee,te){return Dn(function(){return ee},te)}var Jn=Dn,Vn=pa,ha=!0,Ti="Invariant failed";function Ni(ee,te){if(!ee){if(ha)throw new Error(Ti);var ie=typeof te=="function"?te():te,ce=ie?"".concat(Ti,": ").concat(ie):Ti;throw new Error(ce)}}var Ir=function(te){var ie=te.top,ce=te.right,Ce=te.bottom,xe=te.left,Oe=ce-xe,Ge=Ce-ie,ht={top:ie,right:ce,bottom:Ce,left:xe,width:Oe,height:Ge,x:xe,y:ie,center:{x:(ce+xe)/2,y:(Ce+ie)/2}};return ht},Sn=function(te,ie){return{top:te.top-ie.top,left:te.left-ie.left,bottom:te.bottom+ie.bottom,right:te.right+ie.right}},ir=function(te,ie){return{top:te.top+ie.top,left:te.left+ie.left,bottom:te.bottom-ie.bottom,right:te.right-ie.right}},Fa=function(te,ie){return{top:te.top+ie.y,left:te.left+ie.x,bottom:te.bottom+ie.y,right:te.right+ie.x}},$a={top:0,right:0,bottom:0,left:0},Jr=function(te){var ie=te.borderBox,ce=te.margin,Ce=ce===void 0?$a:ce,xe=te.border,Oe=xe===void 0?$a:xe,Ge=te.padding,ht=Ge===void 0?$a:Ge,At=Ir(Sn(ie,Ce)),St=Ir(ir(ie,Oe)),gt=Ir(ir(St,ht));return{marginBox:At,borderBox:Ir(ie),paddingBox:St,contentBox:gt,margin:Ce,border:Oe,padding:ht}},na=function(te){var ie=te.slice(0,-2),ce=te.slice(-2);if(ce!=="px")return 0;var Ce=Number(ie);return isNaN(Ce)&&Ni(!1),Ce},Qa=function(){return{x:window.pageXOffset,y:window.pageYOffset}},Kr=function(te,ie){var ce=te.borderBox,Ce=te.border,xe=te.margin,Oe=te.padding,Ge=Fa(ce,ie);return Jr({borderBox:Ge,border:Ce,margin:xe,padding:Oe})},qa=function(te,ie){return ie===void 0&&(ie=Qa()),Kr(te,ie)},aa=function(te,ie){var ce={top:na(ie.marginTop),right:na(ie.marginRight),bottom:na(ie.marginBottom),left:na(ie.marginLeft)},Ce={top:na(ie.paddingTop),right:na(ie.paddingRight),bottom:na(ie.paddingBottom),left:na(ie.paddingLeft)},xe={top:na(ie.borderTopWidth),right:na(ie.borderRightWidth),bottom:na(ie.borderBottomWidth),left:na(ie.borderLeftWidth)};return Jr({borderBox:te,margin:ce,padding:Ce,border:xe})},Wn=function(te){var ie=te.getBoundingClientRect(),ce=window.getComputedStyle(te);return aa(ie,ce)},Rn=Number.isNaN||function(te){return typeof te=="number"&&te!==te};function cn(ee,te){return!!(ee===te||Rn(ee)&&Rn(te))}function fn(ee,te){if(ee.length!==te.length)return!1;for(var ie=0;ie<ee.length;ie++)if(!cn(ee[ie],te[ie]))return!1;return!0}function wn(ee,te){te===void 0&&(te=fn);var ie,ce=[],Ce,xe=!1;function Oe(){for(var Ge=[],ht=0;ht<arguments.length;ht++)Ge[ht]=arguments[ht];return xe&&ie===this&&te(Ge,ce)||(Ce=ee.apply(this,Ge),xe=!0,ie=this,ce=Ge),Ce}return Oe}var nn=wn,Kn=function(te){var ie=[],ce=null,Ce=function(){for(var Oe=arguments.length,Ge=new Array(Oe),ht=0;ht<Oe;ht++)Ge[ht]=arguments[ht];ie=Ge,!ce&&(ce=requestAnimationFrame(function(){ce=null,te.apply(void 0,ie)}))};return Ce.cancel=function(){ce&&(cancelAnimationFrame(ce),ce=null)},Ce},Jt=Kn,On=!0,hr=/[ \t]{2,}/g,yr=/^[ \t]*/gm,Ar=function(te){return te.replace(hr," ").replace(yr,"").trim()},la=function(te){return Ar(`
%creact-beautiful-dnd
%c`+Ar(te)+`
%c\u{1F477}\u200D This is a development only message. It will be removed in production builds.
`)},Er=function(te){return[la(te),"color: #00C584; font-size: 1.2em; font-weight: bold;","line-height: 1.5","color: #723874;"]},Qt="__react-beautiful-dnd-disable-dev-warnings";function _n(ee,te){var ie;On||typeof window!="undefined"&&window[Qt]||(ie=console)[ee].apply(ie,Er(te))}var br=_n.bind(null,"warn"),Nr=_n.bind(null,"error");function qr(){}function Xa(ee,te){return(0,Te.Z)({},ee,{},te)}function si(ee,te,ie){var ce=te.map(function(Ce){var xe=Xa(ie,Ce.options);return ee.addEventListener(Ce.eventName,Ce.fn,xe),function(){ee.removeEventListener(Ce.eventName,Ce.fn,xe)}});return function(){ce.forEach(function(xe){xe()})}}var so=!0,Mn="Invariant failed";function Rr(ee){this.message=ee}Rr.prototype.toString=function(){return this.message};function jn(ee,te){if(!ee)throw so?new Rr(Mn):new Rr(Mn+": "+(te||""))}var tl=function(ee){Pe(te,ee);function te(){for(var ce,Ce=arguments.length,xe=new Array(Ce),Oe=0;Oe<Ce;Oe++)xe[Oe]=arguments[Oe];return ce=ee.call.apply(ee,[this].concat(xe))||this,ce.callbacks=null,ce.unbind=qr,ce.onWindowError=function(Ge){var ht=ce.getCallbacks();ht.isDragging()&&ht.tryAbort();var At=Ge.error;At instanceof Rr&&Ge.preventDefault()},ce.getCallbacks=function(){if(!ce.callbacks)throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");return ce.callbacks},ce.setCallbacks=function(Ge){ce.callbacks=Ge},ce}var ie=te.prototype;return ie.componentDidMount=function(){this.unbind=si(window,[{eventName:"error",fn:this.onWindowError}])},ie.componentWillUnmount=function(){this.unbind()},ie.componentDidCatch=function(Ce){if(Ce instanceof Rr){this.setState({});return}throw Ce},ie.render=function(){return this.props.children(this.setCallbacks)},te}(E.Component),Zo=`
Press space bar to start a drag.
When dragging you can use the arrow keys to move the item around and escape to cancel.
Some screen readers may require you to be in focus mode or to use your pass through key
`,Ct=function(te){return te+1},rn=function(te){return`
You have lifted an item in position `+Ct(te.source.index)+`
`},Mt=function(te,ie){var ce=te.droppableId===ie.droppableId,Ce=Ct(te.index),xe=Ct(ie.index);return ce?`
You have moved the item from position `+Ce+`
to position `+xe+`
`:`
You have moved the item from position `+Ce+`
in list `+te.droppableId+`
to list `+ie.droppableId+`
in position `+xe+`
`},Nt=function(te,ie,ce){var Ce=ie.droppableId===ce.droppableId;return Ce?`
The item `+te+`
has been combined with `+ce.draggableId:`
The item `+te+`
in list `+ie.droppableId+`
has been combined with `+ce.draggableId+`
in list `+ce.droppableId+`
`},sr=function(te){var ie=te.destination;if(ie)return Mt(te.source,ie);var ce=te.combine;return ce?Nt(te.draggableId,te.source,ce):"You are over an area that cannot be dropped on"},Hn=function(te){return`
The item has returned to its starting position
of `+Ct(te.index)+`
`},vn=function(te){if(te.reason==="CANCEL")return`
Movement cancelled.
`+Hn(te.source)+`
`;var ie=te.destination,ce=te.combine;return ie?`
You have dropped the item.
`+Mt(te.source,ie)+`
`:ce?`
You have dropped the item.
`+Nt(te.draggableId,te.source,ce)+`
`:`
The item has been dropped while not over a drop area.
`+Hn(te.source)+`
`},Fr={dragHandleUsageInstructions:Zo,onDragStart:rn,onDragUpdate:sr,onDragEnd:vn},Pr={x:0,y:0},Or=function(te,ie){return{x:te.x+ie.x,y:te.y+ie.y}},Ha=function(te,ie){return{x:te.x-ie.x,y:te.y-ie.y}},ma=function(te,ie){return te.x===ie.x&&te.y===ie.y},Qr=function(te){return{x:te.x!==0?-te.x:0,y:te.y!==0?-te.y:0}},za=function(te,ie,ce){var Ce;return ce===void 0&&(ce=0),Ce={},Ce[te]=ie,Ce[te==="x"?"y":"x"]=ce,Ce},Ya=function(te,ie){return Math.sqrt(Math.pow(ie.x-te.x,2)+Math.pow(ie.y-te.y,2))},jr=function(te,ie){return Math.min.apply(Math,ie.map(function(ce){return Ya(te,ce)}))},Wa=function(te){return function(ie){return{x:te(ie.x),y:te(ie.y)}}},Li=function(ee,te){var ie=Ir({top:Math.max(te.top,ee.top),right:Math.min(te.right,ee.right),bottom:Math.min(te.bottom,ee.bottom),left:Math.max(te.left,ee.left)});return ie.width<=0||ie.height<=0?null:ie},ui=function(te,ie){return{top:te.top+ie.y,left:te.left+ie.x,bottom:te.bottom+ie.y,right:te.right+ie.x}},Sa=function(te){return[{x:te.left,y:te.top},{x:te.right,y:te.top},{x:te.left,y:te.bottom},{x:te.right,y:te.bottom}]},ia={top:0,right:0,bottom:0,left:0},$i=function(te,ie){return ie?ui(te,ie.scroll.diff.displacement):te},ci=function(te,ie,ce){if(ce&&ce.increasedBy){var Ce;return(0,Te.Z)({},te,(Ce={},Ce[ie.end]=te[ie.end]+ce.increasedBy[ie.line],Ce))}return te},ja=function(te,ie){return ie&&ie.shouldClipSubject?Li(ie.pageMarginBox,te):Ir(te)},ai=function(ee){var te=ee.page,ie=ee.withPlaceholder,ce=ee.axis,Ce=ee.frame,xe=$i(te.marginBox,Ce),Oe=ci(xe,ce,ie),Ge=ja(Oe,Ce);return{page:te,withPlaceholder:ie,active:Ge}},wi=function(ee,te){ee.frame||jn(!1);var ie=ee.frame,ce=Ha(te,ie.scroll.initial),Ce=Qr(ce),xe=(0,Te.Z)({},ie,{scroll:{initial:ie.scroll.initial,current:te,diff:{value:ce,displacement:Ce},max:ie.scroll.max}}),Oe=ai({page:ee.subject.page,withPlaceholder:ee.subject.withPlaceholder,axis:ee.axis,frame:xe}),Ge=(0,Te.Z)({},ee,{frame:xe,subject:Oe});return Ge};function ii(ee){return Number.isInteger?Number.isInteger(ee):typeof ee=="number"&&isFinite(ee)&&Math.floor(ee)===ee}function Da(ee){return Object.values?Object.values(ee):Object.keys(ee).map(function(te){return ee[te]})}function Di(ee,te){if(ee.findIndex)return ee.findIndex(te);for(var ie=0;ie<ee.length;ie++)if(te(ee[ie]))return ie;return-1}function oi(ee,te){if(ee.find)return ee.find(te);var ie=Di(ee,te);if(ie!==-1)return ee[ie]}function xo(ee){return Array.prototype.slice.call(ee)}var Bo=nn(function(ee){return ee.reduce(function(te,ie){return te[ie.descriptor.id]=ie,te},{})}),Ei=nn(function(ee){return ee.reduce(function(te,ie){return te[ie.descriptor.id]=ie,te},{})}),Qi=nn(function(ee){return Da(ee)}),ga=nn(function(ee){return Da(ee)}),Ri=nn(function(ee,te){var ie=ga(te).filter(function(ce){return ee===ce.descriptor.droppableId}).sort(function(ce,Ce){return ce.descriptor.index-Ce.descriptor.index});return ie});function Pi(ee){return ee.at&&ee.at.type==="REORDER"?ee.at.destination:null}function Fo(ee){return ee.at&&ee.at.type==="COMBINE"?ee.at.combine:null}var Bi=nn(function(ee,te){return te.filter(function(ie){return ie.descriptor.id!==ee.descriptor.id})}),Fi=function(ee){var te=ee.isMovingForward,ie=ee.draggable,ce=ee.destination,Ce=ee.insideDestination,xe=ee.previousImpact;if(!ce.isCombineEnabled)return null;var Oe=Pi(xe);if(!Oe)return null;function Ge(Mr){var zr={type:"COMBINE",combine:{draggableId:Mr,droppableId:ce.descriptor.id}};return(0,Te.Z)({},xe,{at:zr})}var ht=xe.displaced.all,At=ht.length?ht[0]:null;if(te)return At?Ge(At):null;var St=Bi(ie,Ce);if(!At){if(!St.length)return null;var gt=St[St.length-1];return Ge(gt.descriptor.id)}var Et=Di(St,function(Mr){return Mr.descriptor.id===At});Et===-1&&jn(!1);var Ot=Et-1;if(Ot<0)return null;var bn=St[Ot];return Ge(bn.descriptor.id)},So=function(ee,te){return ee.descriptor.droppableId===te.descriptor.id},De={point:Pr,value:0},jt={invisible:{},visible:{},all:[]},hn={displaced:jt,displacedBy:De,at:null},Cn=function(ee,te){return function(ie){return ee<=ie&&ie<=te}},_t=function(ee){var te=Cn(ee.top,ee.bottom),ie=Cn(ee.left,ee.right);return function(ce){var Ce=te(ce.top)&&te(ce.bottom)&&ie(ce.left)&&ie(ce.right);if(Ce)return!0;var xe=te(ce.top)||te(ce.bottom),Oe=ie(ce.left)||ie(ce.right),Ge=xe&&Oe;if(Ge)return!0;var ht=ce.top<ee.top&&ce.bottom>ee.bottom,At=ce.left<ee.left&&ce.right>ee.right,St=ht&&At;if(St)return!0;var gt=ht&&Oe||At&&xe;return gt}},$t=function(ee){var te=Cn(ee.top,ee.bottom),ie=Cn(ee.left,ee.right);return function(ce){var Ce=te(ce.top)&&te(ce.bottom)&&ie(ce.left)&&ie(ce.right);return Ce}},Ut={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},an={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},qt=function(ee){return function(te){var ie=Cn(te.top,te.bottom),ce=Cn(te.left,te.right);return function(Ce){return ee===Ut?ie(Ce.top)&&ie(Ce.bottom):ce(Ce.left)&&ce(Ce.right)}}},An=function(te,ie){var ce=ie.frame?ie.frame.scroll.diff.displacement:Pr;return ui(te,ce)},fr=function(te,ie,ce){return ie.subject.active?ce(ie.subject.active)(te):!1},cr=function(te,ie,ce){return ce(ie)(te)},$n=function(te){var ie=te.target,ce=te.destination,Ce=te.viewport,xe=te.withDroppableDisplacement,Oe=te.isVisibleThroughFrameFn,Ge=xe?An(ie,ce):ie;return fr(Ge,ce,Oe)&&cr(Ge,Ce,Oe)},Pa=function(te){return $n((0,Te.Z)({},te,{isVisibleThroughFrameFn:_t}))},ta=function(te){return $n((0,Te.Z)({},te,{isVisibleThroughFrameFn:$t}))},Ba=function(te){return $n((0,Te.Z)({},te,{isVisibleThroughFrameFn:qt(te.destination.axis)}))},bi=function(te,ie,ce){if(typeof ce=="boolean")return ce;if(!ie)return!0;var Ce=ie.invisible,xe=ie.visible;if(Ce[te])return!1;var Oe=xe[te];return Oe?Oe.shouldAnimate:!0};function Hi(ee,te){var ie=ee.page.marginBox,ce={top:te.point.y,right:0,bottom:0,left:te.point.x};return Ir(Sn(ie,ce))}function uo(ee){var te=ee.afterDragging,ie=ee.destination,ce=ee.displacedBy,Ce=ee.viewport,xe=ee.forceShouldAnimate,Oe=ee.last;return te.reduce(function(ht,At){var St=Hi(At,ce),gt=At.descriptor.id;ht.all.push(gt);var Et=Pa({target:St,destination:ie,viewport:Ce,withDroppableDisplacement:!0});if(!Et)return ht.invisible[At.descriptor.id]=!0,ht;var Ot=bi(gt,Oe,xe),bn={draggableId:gt,shouldAnimate:Ot};return ht.visible[gt]=bn,ht},{all:[],visible:{},invisible:{}})}function pl(ee,te){if(!ee.length)return 0;var ie=ee[ee.length-1].descriptor.index;return te.inHomeList?ie:ie+1}function ol(ee){var te=ee.insideDestination,ie=ee.inHomeList,ce=ee.displacedBy,Ce=ee.destination,xe=pl(te,{inHomeList:ie});return{displaced:jt,displacedBy:ce,at:{type:"REORDER",destination:{droppableId:Ce.descriptor.id,index:xe}}}}function ll(ee){var te=ee.draggable,ie=ee.insideDestination,ce=ee.destination,Ce=ee.viewport,xe=ee.displacedBy,Oe=ee.last,Ge=ee.index,ht=ee.forceShouldAnimate,At=So(te,ce);if(Ge==null)return ol({insideDestination:ie,inHomeList:At,displacedBy:xe,destination:ce});var St=oi(ie,function(Mr){return Mr.descriptor.index===Ge});if(!St)return ol({insideDestination:ie,inHomeList:At,displacedBy:xe,destination:ce});var gt=Bi(te,ie),Et=ie.indexOf(St),Ot=gt.slice(Et),bn=uo({afterDragging:Ot,destination:ce,displacedBy:xe,last:Oe,viewport:Ce.frame,forceShouldAnimate:ht});return{displaced:bn,displacedBy:xe,at:{type:"REORDER",destination:{droppableId:ce.descriptor.id,index:Ge}}}}function nl(ee,te){return!!te.effected[ee]}var Do=function(ee){var te=ee.isMovingForward,ie=ee.destination,ce=ee.draggables,Ce=ee.combine,xe=ee.afterCritical;if(!ie.isCombineEnabled)return null;var Oe=Ce.draggableId,Ge=ce[Oe],ht=Ge.descriptor.index,At=nl(Oe,xe);return At?te?ht:ht-1:te?ht+1:ht},co=function(ee){var te=ee.isMovingForward,ie=ee.isInHomeList,ce=ee.insideDestination,Ce=ee.location;if(!ce.length)return null;var xe=Ce.index,Oe=te?xe+1:xe-1,Ge=ce[0].descriptor.index,ht=ce[ce.length-1].descriptor.index,At=ie?ht:ht+1;return Oe<Ge||Oe>At?null:Oe},jl=function(ee){var te=ee.isMovingForward,ie=ee.isInHomeList,ce=ee.draggable,Ce=ee.draggables,xe=ee.destination,Oe=ee.insideDestination,Ge=ee.previousImpact,ht=ee.viewport,At=ee.afterCritical,St=Ge.at;if(St||jn(!1),St.type==="REORDER"){var gt=co({isMovingForward:te,isInHomeList:ie,location:St.destination,insideDestination:Oe});return gt==null?null:ll({draggable:ce,insideDestination:Oe,destination:xe,viewport:ht,last:Ge.displaced,displacedBy:Ge.displacedBy,index:gt})}var Et=Do({isMovingForward:te,destination:xe,displaced:Ge.displaced,draggables:Ce,combine:St.combine,afterCritical:At});return Et==null?null:ll({draggable:ce,insideDestination:Oe,destination:xe,viewport:ht,last:Ge.displaced,displacedBy:Ge.displacedBy,index:Et})},yl=function(ee){var te=ee.displaced,ie=ee.afterCritical,ce=ee.combineWith,Ce=ee.displacedBy,xe=!!(te.visible[ce]||te.invisible[ce]);return nl(ce,ie)?xe?Pr:Qr(Ce.point):xe?Ce.point:Pr},Ul=function(ee){var te=ee.afterCritical,ie=ee.impact,ce=ee.draggables,Ce=Fo(ie);Ce||jn(!1);var xe=Ce.draggableId,Oe=ce[xe].page.borderBox.center,Ge=yl({displaced:ie.displaced,afterCritical:te,combineWith:xe,displacedBy:ie.displacedBy});return Or(Oe,Ge)},ql=function(te,ie){return ie.margin[te.start]+ie.borderBox[te.size]/2},kl=function(te,ie){return ie.margin[te.end]+ie.borderBox[te.size]/2},hl=function(te,ie,ce){return ie[te.crossAxisStart]+ce.margin[te.crossAxisStart]+ce.borderBox[te.crossAxisSize]/2},Go=function(te){var ie=te.axis,ce=te.moveRelativeTo,Ce=te.isMoving;return za(ie.line,ce.marginBox[ie.end]+ql(ie,Ce),hl(ie,ce.marginBox,Ce))},ts=function(te){var ie=te.axis,ce=te.moveRelativeTo,Ce=te.isMoving;return za(ie.line,ce.marginBox[ie.start]-kl(ie,Ce),hl(ie,ce.marginBox,Ce))},Ts=function(te){var ie=te.axis,ce=te.moveInto,Ce=te.isMoving;return za(ie.line,ce.contentBox[ie.start]+ql(ie,Ce),hl(ie,ce.contentBox,Ce))},ns=function(ee){var te=ee.impact,ie=ee.draggable,ce=ee.draggables,Ce=ee.droppable,xe=ee.afterCritical,Oe=Ri(Ce.descriptor.id,ce),Ge=ie.page,ht=Ce.axis;if(!Oe.length)return Ts({axis:ht,moveInto:Ce.page,isMoving:Ge});var At=te.displaced,St=te.displacedBy,gt=At.all[0];if(gt){var Et=ce[gt];if(nl(gt,xe))return ts({axis:ht,moveRelativeTo:Et.page,isMoving:Ge});var Ot=Kr(Et.page,St.point);return ts({axis:ht,moveRelativeTo:Ot,isMoving:Ge})}var bn=Oe[Oe.length-1];if(bn.descriptor.id===ie.descriptor.id)return Ge.borderBox.center;if(nl(bn.descriptor.id,xe)){var Mr=Kr(bn.page,Qr(xe.displacedBy.point));return Go({axis:ht,moveRelativeTo:Mr,isMoving:Ge})}return Go({axis:ht,moveRelativeTo:bn.page,isMoving:Ge})},vs=function(ee,te){var ie=ee.frame;return ie?Or(te,ie.scroll.diff.displacement):te},Us=function(te){var ie=te.impact,ce=te.draggable,Ce=te.droppable,xe=te.draggables,Oe=te.afterCritical,Ge=ce.page.borderBox.center,ht=ie.at;return!Ce||!ht?Ge:ht.type==="REORDER"?ns({impact:ie,draggable:ce,draggables:xe,droppable:Ce,afterCritical:Oe}):Ul({impact:ie,draggables:xe,afterCritical:Oe})},Ls=function(ee){var te=Us(ee),ie=ee.droppable,ce=ie?vs(ie,te):te;return ce},Rs=function(ee,te){var ie=Ha(te,ee.scroll.initial),ce=Qr(ie),Ce=Ir({top:te.y,bottom:te.y+ee.frame.height,left:te.x,right:te.x+ee.frame.width}),xe={frame:Ce,scroll:{initial:ee.scroll.initial,max:ee.scroll.max,current:te,diff:{value:ie,displacement:ce}}};return xe};function Zs(ee,te){return ee.map(function(ie){return te[ie]})}function Ao(ee,te){for(var ie=0;ie<te.length;ie++){var ce=te[ie].visible[ee];if(ce)return ce}return null}var Gr=function(ee){var te=ee.impact,ie=ee.viewport,ce=ee.destination,Ce=ee.draggables,xe=ee.maxScrollChange,Oe=Rs(ie,Or(ie.scroll.current,xe)),Ge=ce.frame?wi(ce,Or(ce.frame.scroll.current,xe)):ce,ht=te.displaced,At=uo({afterDragging:Zs(ht.all,Ce),destination:ce,displacedBy:te.displacedBy,viewport:Oe.frame,last:ht,forceShouldAnimate:!1}),St=uo({afterDragging:Zs(ht.all,Ce),destination:Ge,displacedBy:te.displacedBy,viewport:ie.frame,last:ht,forceShouldAnimate:!1}),gt={},Et={},Ot=[ht,At,St];ht.all.forEach(function(Mr){var zr=Ao(Mr,Ot);if(zr){Et[Mr]=zr;return}gt[Mr]=!0});var bn=(0,Te.Z)({},te,{displaced:{all:ht.all,invisible:gt,visible:Et}});return bn},Ai=function(ee,te){return Or(ee.scroll.diff.displacement,te)},mo=function(ee){var te=ee.pageBorderBoxCenter,ie=ee.draggable,ce=ee.viewport,Ce=Ai(ce,te),xe=Ha(Ce,ie.page.borderBox.center);return Or(ie.client.borderBox.center,xe)},Bl=function(ee){var te=ee.draggable,ie=ee.destination,ce=ee.newPageBorderBoxCenter,Ce=ee.viewport,xe=ee.withDroppableDisplacement,Oe=ee.onlyOnMainAxis,Ge=Oe===void 0?!1:Oe,ht=Ha(ce,te.page.borderBox.center),At=ui(te.page.borderBox,ht),St={target:At,destination:ie,withDroppableDisplacement:xe,viewport:Ce};return Ge?Ba(St):ta(St)},Mo=function(ee){var te=ee.isMovingForward,ie=ee.draggable,ce=ee.destination,Ce=ee.draggables,xe=ee.previousImpact,Oe=ee.viewport,Ge=ee.previousPageBorderBoxCenter,ht=ee.previousClientSelection,At=ee.afterCritical;if(!ce.isEnabled)return null;var St=Ri(ce.descriptor.id,Ce),gt=So(ie,ce),Et=Fi({isMovingForward:te,draggable:ie,destination:ce,insideDestination:St,previousImpact:xe})||jl({isMovingForward:te,isInHomeList:gt,draggable:ie,draggables:Ce,destination:ce,insideDestination:St,previousImpact:xe,viewport:Oe,afterCritical:At});if(!Et)return null;var Ot=Ls({impact:Et,draggable:ie,droppable:ce,draggables:Ce,afterCritical:At}),bn=Bl({draggable:ie,destination:ce,newPageBorderBoxCenter:Ot,viewport:Oe.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0});if(bn){var Mr=mo({pageBorderBoxCenter:Ot,draggable:ie,viewport:Oe});return{clientSelection:Mr,impact:Et,scrollJumpRequest:null}}var zr=Ha(Ot,Ge),ea=Gr({impact:Et,viewport:Oe,destination:ce,draggables:Ce,maxScrollChange:zr});return{clientSelection:ht,impact:ea,scrollJumpRequest:zr}},Ci=function(te){var ie=te.subject.active;return ie||jn(!1),ie},To=function(ee){var te=ee.isMovingForward,ie=ee.pageBorderBoxCenter,ce=ee.source,Ce=ee.droppables,xe=ee.viewport,Oe=ce.subject.active;if(!Oe)return null;var Ge=ce.axis,ht=Cn(Oe[Ge.start],Oe[Ge.end]),At=Qi(Ce).filter(function(gt){return gt!==ce}).filter(function(gt){return gt.isEnabled}).filter(function(gt){return!!gt.subject.active}).filter(function(gt){return _t(xe.frame)(Ci(gt))}).filter(function(gt){var Et=Ci(gt);return te?Oe[Ge.crossAxisEnd]<Et[Ge.crossAxisEnd]:Et[Ge.crossAxisStart]<Oe[Ge.crossAxisStart]}).filter(function(gt){var Et=Ci(gt),Ot=Cn(Et[Ge.start],Et[Ge.end]);return ht(Et[Ge.start])||ht(Et[Ge.end])||Ot(Oe[Ge.start])||Ot(Oe[Ge.end])}).sort(function(gt,Et){var Ot=Ci(gt)[Ge.crossAxisStart],bn=Ci(Et)[Ge.crossAxisStart];return te?Ot-bn:bn-Ot}).filter(function(gt,Et,Ot){return Ci(gt)[Ge.crossAxisStart]===Ci(Ot[0])[Ge.crossAxisStart]});if(!At.length)return null;if(At.length===1)return At[0];var St=At.filter(function(gt){var Et=Cn(Ci(gt)[Ge.start],Ci(gt)[Ge.end]);return Et(ie[Ge.line])});return St.length===1?St[0]:St.length>1?St.sort(function(gt,Et){return Ci(gt)[Ge.start]-Ci(Et)[Ge.start]})[0]:At.sort(function(gt,Et){var Ot=jr(ie,Sa(Ci(gt))),bn=jr(ie,Sa(Ci(Et)));return Ot!==bn?Ot-bn:Ci(gt)[Ge.start]-Ci(Et)[Ge.start]})[0]},wl=function(te,ie){var ce=te.page.borderBox.center;return nl(te.descriptor.id,ie)?Ha(ce,ie.displacedBy.point):ce},os=function(te,ie){var ce=te.page.borderBox;return nl(te.descriptor.id,ie)?ui(ce,Qr(ie.displacedBy.point)):ce},Il=function(ee){var te=ee.pageBorderBoxCenter,ie=ee.viewport,ce=ee.destination,Ce=ee.insideDestination,xe=ee.afterCritical,Oe=Ce.filter(function(Ge){return ta({target:os(Ge,xe),destination:ce,viewport:ie.frame,withDroppableDisplacement:!0})}).sort(function(Ge,ht){var At=Ya(te,vs(ce,wl(Ge,xe))),St=Ya(te,vs(ce,wl(ht,xe)));return At<St?-1:St<At?1:Ge.descriptor.index-ht.descriptor.index});return Oe[0]||null},Nl=nn(function(te,ie){var ce=ie[te.line];return{value:ce,point:za(te.line,ce)}}),Wi=function(te,ie,ce){var Ce=te.axis;if(te.descriptor.mode==="virtual")return za(Ce.line,ie[Ce.line]);var xe=te.subject.page.contentBox[Ce.size],Oe=Ri(te.descriptor.id,ce),Ge=Oe.reduce(function(St,gt){return St+gt.client.marginBox[Ce.size]},0),ht=Ge+ie[Ce.line],At=ht-xe;return At<=0?null:za(Ce.line,At)},Is=function(te,ie){return(0,Te.Z)({},te,{scroll:(0,Te.Z)({},te.scroll,{max:ie})})},sl=function(te,ie,ce){var Ce=te.frame;So(ie,te)&&jn(!1),te.subject.withPlaceholder&&jn(!1);var xe=Nl(te.axis,ie.displaceBy).point,Oe=Wi(te,xe,ce),Ge={placeholderSize:xe,increasedBy:Oe,oldFrameMaxScroll:te.frame?te.frame.scroll.max:null};if(!Ce){var ht=ai({page:te.subject.page,withPlaceholder:Ge,axis:te.axis,frame:te.frame});return(0,Te.Z)({},te,{subject:ht})}var At=Oe?Or(Ce.scroll.max,Oe):Ce.scroll.max,St=Is(Ce,At),gt=ai({page:te.subject.page,withPlaceholder:Ge,axis:te.axis,frame:St});return(0,Te.Z)({},te,{subject:gt,frame:St})},rs=function(te){var ie=te.subject.withPlaceholder;ie||jn(!1);var ce=te.frame;if(!ce){var Ce=ai({page:te.subject.page,axis:te.axis,frame:null,withPlaceholder:null});return(0,Te.Z)({},te,{subject:Ce})}var xe=ie.oldFrameMaxScroll;xe||jn(!1);var Oe=Is(ce,xe),Ge=ai({page:te.subject.page,axis:te.axis,frame:Oe,withPlaceholder:null});return(0,Te.Z)({},te,{subject:Ge,frame:Oe})},gs=function(ee){var te=ee.previousPageBorderBoxCenter,ie=ee.moveRelativeTo,ce=ee.insideDestination,Ce=ee.draggable,xe=ee.draggables,Oe=ee.destination,Ge=ee.viewport,ht=ee.afterCritical;if(!ie){if(ce.length)return null;var At={displaced:jt,displacedBy:De,at:{type:"REORDER",destination:{droppableId:Oe.descriptor.id,index:0}}},St=Ls({impact:At,draggable:Ce,droppable:Oe,draggables:xe,afterCritical:ht}),gt=So(Ce,Oe)?Oe:sl(Oe,Ce,xe),Et=Bl({draggable:Ce,destination:gt,newPageBorderBoxCenter:St,viewport:Ge.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0});return Et?At:null}var Ot=te[Oe.axis.line]<=ie.page.borderBox.center[Oe.axis.line],bn=function(){var zr=ie.descriptor.index;return ie.descriptor.id===Ce.descriptor.id||Ot?zr:zr+1}(),Mr=Nl(Oe.axis,Ce.displaceBy);return ll({draggable:Ce,insideDestination:ce,destination:Oe,viewport:Ge,displacedBy:Mr,last:jt,index:bn})},js=function(ee){var te=ee.isMovingForward,ie=ee.previousPageBorderBoxCenter,ce=ee.draggable,Ce=ee.isOver,xe=ee.draggables,Oe=ee.droppables,Ge=ee.viewport,ht=ee.afterCritical,At=To({isMovingForward:te,pageBorderBoxCenter:ie,source:Ce,droppables:Oe,viewport:Ge});if(!At)return null;var St=Ri(At.descriptor.id,xe),gt=Il({pageBorderBoxCenter:ie,viewport:Ge,destination:At,insideDestination:St,afterCritical:ht}),Et=gs({previousPageBorderBoxCenter:ie,destination:At,draggable:ce,draggables:xe,moveRelativeTo:gt,insideDestination:St,viewport:Ge,afterCritical:ht});if(!Et)return null;var Ot=Ls({impact:Et,draggable:ce,droppable:At,draggables:xe,afterCritical:ht}),bn=mo({pageBorderBoxCenter:Ot,draggable:ce,viewport:Ge});return{clientSelection:bn,impact:Et,scrollJumpRequest:null}},Fl=function(ee){var te=ee.at;return te?te.type==="REORDER"?te.destination.droppableId:te.combine.droppableId:null},ys=function(te,ie){var ce=Fl(te);return ce?ie[ce]:null},Au=function(ee){var te=ee.state,ie=ee.type,ce=ys(te.impact,te.dimensions.droppables),Ce=!!ce,xe=te.dimensions.droppables[te.critical.droppable.id],Oe=ce||xe,Ge=Oe.axis.direction,ht=Ge==="vertical"&&(ie==="MOVE_UP"||ie==="MOVE_DOWN")||Ge==="horizontal"&&(ie==="MOVE_LEFT"||ie==="MOVE_RIGHT");if(ht&&!Ce)return null;var At=ie==="MOVE_DOWN"||ie==="MOVE_RIGHT",St=te.dimensions.draggables[te.critical.draggable.id],gt=te.current.page.borderBoxCenter,Et=te.dimensions,Ot=Et.draggables,bn=Et.droppables;return ht?Mo({isMovingForward:At,previousPageBorderBoxCenter:gt,draggable:St,destination:Oe,draggables:Ot,viewport:te.viewport,previousClientSelection:te.current.client.selection,previousImpact:te.impact,afterCritical:te.afterCritical}):js({isMovingForward:At,previousPageBorderBoxCenter:gt,draggable:St,isOver:Oe,draggables:Ot,droppables:bn,viewport:te.viewport,afterCritical:te.afterCritical})};function Es(ee){return ee.phase==="DRAGGING"||ee.phase==="COLLECTING"}function ds(ee){var te=Cn(ee.top,ee.bottom),ie=Cn(ee.left,ee.right);return function(Ce){return te(Ce.y)&&ie(Ce.x)}}function bs(ee,te){return ee.left<te.right&&ee.right>te.left&&ee.top<te.bottom&&ee.bottom>te.top}function tc(ee){var te=ee.pageBorderBox,ie=ee.draggable,ce=ee.candidates,Ce=ie.page.borderBox.center,xe=ce.map(function(Oe){var Ge=Oe.axis,ht=za(Oe.axis.line,te.center[Ge.line],Oe.page.borderBox.center[Ge.crossAxisLine]);return{id:Oe.descriptor.id,distance:Ya(Ce,ht)}}).sort(function(Oe,Ge){return Ge.distance-Oe.distance});return xe[0]?xe[0].id:null}function Vu(ee){var te=ee.pageBorderBox,ie=ee.draggable,ce=ee.droppables,Ce=Qi(ce).filter(function(xe){if(!xe.isEnabled)return!1;var Oe=xe.subject.active;if(!Oe||!bs(te,Oe))return!1;if(ds(Oe)(te.center))return!0;var Ge=xe.axis,ht=Oe.center[Ge.crossAxisLine],At=te[Ge.crossAxisStart],St=te[Ge.crossAxisEnd],gt=Cn(Oe[Ge.crossAxisStart],Oe[Ge.crossAxisEnd]),Et=gt(At),Ot=gt(St);return!Et&&!Ot?!0:Et?At<ht:St>ht});return Ce.length?Ce.length===1?Ce[0].descriptor.id:tc({pageBorderBox:te,draggable:ie,candidates:Ce}):null}var qs=function(te,ie){return Ir(ui(te,ie))},Ys=function(ee,te){var ie=ee.frame;return ie?qs(te,ie.scroll.diff.value):te};function Xo(ee){var te=ee.displaced,ie=ee.id;return!!(te.visible[ie]||te.invisible[ie])}function zu(ee){var te=ee.draggable,ie=ee.closest,ce=ee.inHomeList;return ie?ce&&ie.descriptor.index>te.descriptor.index?ie.descriptor.index-1:ie.descriptor.index:null}var Cu=function(ee){var te=ee.pageBorderBoxWithDroppableScroll,ie=ee.draggable,ce=ee.destination,Ce=ee.insideDestination,xe=ee.last,Oe=ee.viewport,Ge=ee.afterCritical,ht=ce.axis,At=Nl(ce.axis,ie.displaceBy),St=At.value,gt=te[ht.start],Et=te[ht.end],Ot=Bi(ie,Ce),bn=oi(Ot,function(zr){var ea=zr.descriptor.id,Oa=zr.page.borderBox.center[ht.line],Ja=nl(ea,Ge),ni=Xo({displaced:xe,id:ea});return Ja?ni?Et<=Oa:gt<Oa-St:ni?Et<=Oa+St:gt<Oa}),Mr=zu({draggable:ie,closest:bn,inHomeList:So(ie,ce)});return ll({draggable:ie,insideDestination:Ce,destination:ce,viewport:Oe,last:xe,displacedBy:At,index:Mr})},iu=4,xu=function(ee){var te=ee.draggable,ie=ee.pageBorderBoxWithDroppableScroll,ce=ee.previousImpact,Ce=ee.destination,xe=ee.insideDestination,Oe=ee.afterCritical;if(!Ce.isCombineEnabled)return null;var Ge=Ce.axis,ht=Nl(Ce.axis,te.displaceBy),At=ht.value,St=ie[Ge.start],gt=ie[Ge.end],Et=Bi(te,xe),Ot=oi(Et,function(Mr){var zr=Mr.descriptor.id,ea=Mr.page.borderBox,Oa=ea[Ge.size],Ja=Oa/iu,ni=nl(zr,Oe),ho=Xo({displaced:ce.displaced,id:zr});return ni?ho?gt>ea[Ge.start]+Ja&&gt<ea[Ge.end]-Ja:St>ea[Ge.start]-At+Ja&&St<ea[Ge.end]-At-Ja:ho?gt>ea[Ge.start]+At+Ja&&gt<ea[Ge.end]+At-Ja:St>ea[Ge.start]+Ja&&St<ea[Ge.end]-Ja});if(!Ot)return null;var bn={displacedBy:ht,displaced:ce.displaced,at:{type:"COMBINE",combine:{draggableId:Ot.descriptor.id,droppableId:Ce.descriptor.id}}};return bn},ou=function(ee){var te=ee.pageOffset,ie=ee.draggable,ce=ee.draggables,Ce=ee.droppables,xe=ee.previousImpact,Oe=ee.viewport,Ge=ee.afterCritical,ht=qs(ie.page.borderBox,te),At=Vu({pageBorderBox:ht,draggable:ie,droppables:Ce});if(!At)return hn;var St=Ce[At],gt=Ri(St.descriptor.id,ce),Et=Ys(St,ht);return xu({pageBorderBoxWithDroppableScroll:Et,draggable:ie,previousImpact:xe,destination:St,insideDestination:gt,afterCritical:Ge})||Cu({pageBorderBoxWithDroppableScroll:Et,draggable:ie,destination:St,insideDestination:gt,last:xe.displaced,viewport:Oe,afterCritical:Ge})},Yl=function(ee,te){var ie;return(0,Te.Z)({},ee,(ie={},ie[te.descriptor.id]=te,ie))},_u=function(te){var ie=te.previousImpact,ce=te.impact,Ce=te.droppables,xe=Fl(ie),Oe=Fl(ce);if(!xe||xe===Oe)return Ce;var Ge=Ce[xe];if(!Ge.subject.withPlaceholder)return Ce;var ht=rs(Ge);return Yl(Ce,ht)},as=function(ee){var te=ee.draggable,ie=ee.draggables,ce=ee.droppables,Ce=ee.previousImpact,xe=ee.impact,Oe=_u({previousImpact:Ce,impact:xe,droppables:ce}),Ge=Fl(xe);if(!Ge)return Oe;var ht=ce[Ge];if(So(te,ht)||ht.subject.withPlaceholder)return Oe;var At=sl(ht,te,ie);return Yl(Oe,At)},Hl=function(ee){var te=ee.state,ie=ee.clientSelection,ce=ee.dimensions,Ce=ee.viewport,xe=ee.impact,Oe=ee.scrollJumpRequest,Ge=Ce||te.viewport,ht=ce||te.dimensions,At=ie||te.current.client.selection,St=Ha(At,te.initial.client.selection),gt={offset:St,selection:At,borderBoxCenter:Or(te.initial.client.borderBoxCenter,St)},Et={selection:Or(gt.selection,Ge.scroll.current),borderBoxCenter:Or(gt.borderBoxCenter,Ge.scroll.current),offset:Or(gt.offset,Ge.scroll.diff.value)},Ot={client:gt,page:Et};if(te.phase==="COLLECTING")return(0,Te.Z)({phase:"COLLECTING"},te,{dimensions:ht,viewport:Ge,current:Ot});var bn=ht.draggables[te.critical.draggable.id],Mr=xe||ou({pageOffset:Et.offset,draggable:bn,draggables:ht.draggables,droppables:ht.droppables,previousImpact:te.impact,viewport:Ge,afterCritical:te.afterCritical}),zr=as({draggable:bn,impact:Mr,previousImpact:te.impact,draggables:ht.draggables,droppables:ht.droppables}),ea=(0,Te.Z)({},te,{current:Ot,dimensions:{draggables:ht.draggables,droppables:zr},impact:Mr,viewport:Ge,scrollJumpRequest:Oe||null,forceShouldAnimate:Oe?!1:null});return ea};function wu(ee,te){return ee.map(function(ie){return te[ie]})}var Pu=function(ee){var te=ee.impact,ie=ee.viewport,ce=ee.draggables,Ce=ee.destination,xe=ee.forceShouldAnimate,Oe=te.displaced,Ge=wu(Oe.all,ce),ht=uo({afterDragging:Ge,destination:Ce,displacedBy:te.displacedBy,viewport:ie.frame,forceShouldAnimate:xe,last:Oe});return(0,Te.Z)({},te,{displaced:ht})},nu=function(ee){var te=ee.impact,ie=ee.draggable,ce=ee.droppable,Ce=ee.draggables,xe=ee.viewport,Oe=ee.afterCritical,Ge=Ls({impact:te,draggable:ie,draggables:Ce,droppable:ce,afterCritical:Oe});return mo({pageBorderBoxCenter:Ge,draggable:ie,viewport:xe})},ca=function(ee){var te=ee.state,ie=ee.dimensions,ce=ee.viewport;te.movementMode!=="SNAP"&&jn(!1);var Ce=te.impact,xe=ce||te.viewport,Oe=ie||te.dimensions,Ge=Oe.draggables,ht=Oe.droppables,At=Ge[te.critical.draggable.id],St=Fl(Ce);St||jn(!1);var gt=ht[St],Et=Pu({impact:Ce,viewport:xe,destination:gt,draggables:Ge}),Ot=nu({impact:Et,draggable:At,droppable:gt,draggables:Ge,viewport:xe,afterCritical:te.afterCritical});return Hl({impact:Et,clientSelection:Ot,state:te,dimensions:Oe,viewport:xe})},ku=function(ee){return{index:ee.index,droppableId:ee.droppableId}},Iu=function(ee){var te=ee.draggable,ie=ee.home,ce=ee.draggables,Ce=ee.viewport,xe=Nl(ie.axis,te.displaceBy),Oe=Ri(ie.descriptor.id,ce),Ge=Oe.indexOf(te);Ge===-1&&jn(!1);var ht=Oe.slice(Ge+1),At=ht.reduce(function(Ot,bn){return Ot[bn.descriptor.id]=!0,Ot},{}),St={inVirtualList:ie.descriptor.mode==="virtual",displacedBy:xe,effected:At},gt=uo({afterDragging:ht,destination:ie,displacedBy:xe,last:null,viewport:Ce.frame,forceShouldAnimate:!1}),Et={displaced:gt,displacedBy:xe,at:{type:"REORDER",destination:ku(te.descriptor)}};return{impact:Et,afterCritical:St}},fs=function(ee,te){return{draggables:ee.draggables,droppables:Yl(ee.droppables,te)}},wr=function(te){},ls=function(te){},Fu=function(ee){var te=ee.draggable,ie=ee.offset,ce=ee.initialWindowScroll,Ce=Kr(te.client,ie),xe=qa(Ce,ce),Oe=(0,Te.Z)({},te,{placeholder:(0,Te.Z)({},te.placeholder,{client:Ce}),client:Ce,page:xe});return Oe},Nu=function(ee){var te=ee.frame;return te||jn(!1),te},Ou=function(ee){var te=ee.additions,ie=ee.updatedDroppables,ce=ee.viewport,Ce=ce.scroll.diff.value;return te.map(function(xe){var Oe=xe.descriptor.droppableId,Ge=ie[Oe],ht=Nu(Ge),At=ht.scroll.diff.value,St=Or(Ce,At),gt=Fu({draggable:xe,offset:St,initialWindowScroll:ce.scroll.initial});return gt})},Su=function(ee){var te=ee.state,ie=ee.published;wr();var ce=ie.modified.map(function(Ja){var ni=te.dimensions.droppables[Ja.droppableId],ho=wi(ni,Ja.scroll);return ho}),Ce=(0,Te.Z)({},te.dimensions.droppables,{},Bo(ce)),xe=Ei(Ou({additions:ie.additions,updatedDroppables:Ce,viewport:te.viewport})),Oe=(0,Te.Z)({},te.dimensions.draggables,{},xe);ie.removals.forEach(function(Ja){delete Oe[Ja]});var Ge={droppables:Ce,draggables:Oe},ht=Fl(te.impact),At=ht?Ge.droppables[ht]:null,St=Ge.draggables[te.critical.draggable.id],gt=Ge.droppables[te.critical.droppable.id],Et=Iu({draggable:St,home:gt,draggables:Oe,viewport:te.viewport}),Ot=Et.impact,bn=Et.afterCritical,Mr=At&&At.isCombineEnabled?te.impact:Ot,zr=ou({pageOffset:te.current.page.offset,draggable:Ge.draggables[te.critical.draggable.id],draggables:Ge.draggables,droppables:Ge.droppables,previousImpact:Mr,viewport:te.viewport,afterCritical:bn});ls();var ea=(0,Te.Z)({phase:"DRAGGING"},te,{phase:"DRAGGING",impact:zr,onLiftImpact:Ot,dimensions:Ge,afterCritical:bn,forceShouldAnimate:!1});if(te.phase==="COLLECTING")return ea;var Oa=(0,Te.Z)({phase:"DROP_PENDING"},ea,{phase:"DROP_PENDING",reason:te.reason,isWaiting:!1});return Oa},Ns=function(te){return te.movementMode==="SNAP"},il=function(te,ie,ce){var Ce=fs(te.dimensions,ie);return!Ns(te)||ce?Hl({state:te,dimensions:Ce}):ca({state:te,dimensions:Ce})};function Ol(ee){return ee.isDragging&&ee.movementMode==="SNAP"?(0,Te.Z)({phase:"DRAGGING"},ee,{scrollJumpRequest:null}):ee}var Ds={phase:"IDLE",completed:null,shouldFlush:!1},Hs=function(ee,te){if(ee===void 0&&(ee=Ds),te.type==="FLUSH")return(0,Te.Z)({},Ds,{shouldFlush:!0});if(te.type==="INITIAL_PUBLISH"){ee.phase!=="IDLE"&&jn(!1);var ie=te.payload,ce=ie.critical,Ce=ie.clientSelection,xe=ie.viewport,Oe=ie.dimensions,Ge=ie.movementMode,ht=Oe.draggables[ce.draggable.id],At=Oe.droppables[ce.droppable.id],St={selection:Ce,borderBoxCenter:ht.client.borderBox.center,offset:Pr},gt={client:St,page:{selection:Or(St.selection,xe.scroll.initial),borderBoxCenter:Or(St.selection,xe.scroll.initial),offset:Or(St.selection,xe.scroll.diff.value)}},Et=Qi(Oe.droppables).every(function(Pc){return!Pc.isFixedOnPage}),Ot=Iu({draggable:ht,home:At,draggables:Oe.draggables,viewport:xe}),bn=Ot.impact,Mr=Ot.afterCritical,zr={phase:"DRAGGING",isDragging:!0,critical:ce,movementMode:Ge,dimensions:Oe,initial:gt,current:gt,isWindowScrollAllowed:Et,impact:bn,afterCritical:Mr,onLiftImpact:bn,viewport:xe,scrollJumpRequest:null,forceShouldAnimate:null};return zr}if(te.type==="COLLECTION_STARTING"){if(ee.phase==="COLLECTING"||ee.phase==="DROP_PENDING")return ee;ee.phase!=="DRAGGING"&&jn(!1);var ea=(0,Te.Z)({phase:"COLLECTING"},ee,{phase:"COLLECTING"});return ea}if(te.type==="PUBLISH_WHILE_DRAGGING")return ee.phase==="COLLECTING"||ee.phase==="DROP_PENDING"||jn(!1),Su({state:ee,published:te.payload});if(te.type==="MOVE"){if(ee.phase==="DROP_PENDING")return ee;Es(ee)||jn(!1);var Oa=te.payload.client;return ma(Oa,ee.current.client.selection)?ee:Hl({state:ee,clientSelection:Oa,impact:Ns(ee)?ee.impact:null})}if(te.type==="UPDATE_DROPPABLE_SCROLL"){if(ee.phase==="DROP_PENDING"||ee.phase==="COLLECTING")return Ol(ee);Es(ee)||jn(!1);var Ja=te.payload,ni=Ja.id,ho=Ja.newScroll,ro=ee.dimensions.droppables[ni];if(!ro)return ee;var Ro=wi(ro,ho);return il(ee,Ro,!1)}if(te.type==="UPDATE_DROPPABLE_IS_ENABLED"){if(ee.phase==="DROP_PENDING")return ee;Es(ee)||jn(!1);var zl=te.payload,Ko=zl.id,Gl=zl.isEnabled,ms=ee.dimensions.droppables[Ko];ms||jn(!1),ms.isEnabled===Gl&&jn(!1);var Fs=(0,Te.Z)({},ms,{isEnabled:Gl});return il(ee,Fs,!0)}if(te.type==="UPDATE_DROPPABLE_IS_COMBINE_ENABLED"){if(ee.phase==="DROP_PENDING")return ee;Es(ee)||jn(!1);var vu=te.payload,au=vu.id,Js=vu.isCombineEnabled,gu=ee.dimensions.droppables[au];gu||jn(!1),gu.isCombineEnabled===Js&&jn(!1);var Ss=(0,Te.Z)({},gu,{isCombineEnabled:Js});return il(ee,Ss,!0)}if(te.type==="MOVE_BY_WINDOW_SCROLL"){if(ee.phase==="DROP_PENDING"||ee.phase==="DROP_ANIMATING")return ee;Es(ee)||jn(!1),ee.isWindowScrollAllowed||jn(!1);var Hu=te.payload.newScroll;if(ma(ee.viewport.scroll.current,Hu))return Ol(ee);var yu=Rs(ee.viewport,Hu);return Ns(ee)?ca({state:ee,viewport:yu}):Hl({state:ee,viewport:yu})}if(te.type==="UPDATE_VIEWPORT_MAX_SCROLL"){if(!Es(ee))return ee;var vc=te.payload.maxScroll;if(ma(vc,ee.viewport.scroll.max))return ee;var $u=(0,Te.Z)({},ee.viewport,{scroll:(0,Te.Z)({},ee.viewport.scroll,{max:vc})});return(0,Te.Z)({phase:"DRAGGING"},ee,{viewport:$u})}if(te.type==="MOVE_UP"||te.type==="MOVE_DOWN"||te.type==="MOVE_LEFT"||te.type==="MOVE_RIGHT"){if(ee.phase==="COLLECTING"||ee.phase==="DROP_PENDING")return ee;ee.phase!=="DRAGGING"&&jn(!1);var Wu=Au({state:ee,type:te.type});return Wu?Hl({state:ee,impact:Wu.impact,clientSelection:Wu.clientSelection,scrollJumpRequest:Wu.scrollJumpRequest}):ee}if(te.type==="DROP_PENDING"){var Eu=te.payload.reason;ee.phase!=="COLLECTING"&&jn(!1);var ec=(0,Te.Z)({phase:"DROP_PENDING"},ee,{phase:"DROP_PENDING",isWaiting:!0,reason:Eu});return ec}if(te.type==="DROP_ANIMATE"){var Bc=te.payload,bu=Bc.completed,gc=Bc.dropDuration,Ac=Bc.newHomeClientOffset;ee.phase==="DRAGGING"||ee.phase==="DROP_PENDING"||jn(!1);var sc={phase:"DROP_ANIMATING",completed:bu,dropDuration:gc,newHomeClientOffset:Ac,dimensions:ee.dimensions};return sc}if(te.type==="DROP_COMPLETE"){var _c=te.payload.completed;return{phase:"IDLE",completed:_c,shouldFlush:!1}}return ee},lu=function(te){return{type:"BEFORE_INITIAL_CAPTURE",payload:te}},Gu=function(te){return{type:"LIFT",payload:te}},Du=function(te){return{type:"INITIAL_PUBLISH",payload:te}},$s=function(te){return{type:"PUBLISH_WHILE_DRAGGING",payload:te}},su=function(){return{type:"COLLECTION_STARTING",payload:null}},uu=function(te){return{type:"UPDATE_DROPPABLE_SCROLL",payload:te}},cu=function(te){return{type:"UPDATE_DROPPABLE_IS_ENABLED",payload:te}},uc=function(te){return{type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:te}},du=function(te){return{type:"MOVE",payload:te}},Uu=function(te){return{type:"MOVE_BY_WINDOW_SCROLL",payload:te}},Bu=function(te){return{type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:te}},Ws=function(){return{type:"MOVE_UP",payload:null}},eu=function(){return{type:"MOVE_DOWN",payload:null}},El=function(){return{type:"MOVE_RIGHT",payload:null}},Mu=function(){return{type:"MOVE_LEFT",payload:null}},re=function(){return{type:"FLUSH",payload:null}},ge=function(te){return{type:"DROP_ANIMATE",payload:te}},Me=function(te){return{type:"DROP_COMPLETE",payload:te}},et=function(te){return{type:"DROP",payload:te}},rt=function(te){return{type:"DROP_PENDING",payload:te}},Ft=function(){return{type:"DROP_ANIMATION_FINISHED",payload:null}};function Tt(ee){if(!(ee.length<=1)){for(var te=ee.map(function(Ge){return Ge.descriptor.index}),ie={},ce=1;ce<te.length;ce++){var Ce=te[ce],xe=te[ce-1];Ce!==xe+1&&(ie[Ce]=!0)}if(Object.keys(ie).length)var Oe=te.map(function(Ge){var ht=!!ie[Ge];return ht?"[\u{1F525}"+Ge+"]":""+Ge}).join(", ")}}function Ht(ee,te){if(0)var ie}var mn=function(ee){return function(te){var ie=te.getState,ce=te.dispatch;return function(Ce){return function(xe){if(xe.type!=="LIFT"){Ce(xe);return}var Oe=xe.payload,Ge=Oe.id,ht=Oe.clientSelection,At=Oe.movementMode,St=ie();St.phase==="DROP_ANIMATING"&&ce(Me({completed:St.completed})),ie().phase!=="IDLE"&&jn(!1),ce(re()),ce(lu({draggableId:Ge,movementMode:At}));var gt={shouldPublishImmediately:At==="SNAP"},Et={draggableId:Ge,scrollOptions:gt},Ot=ee.startPublishing(Et),bn=Ot.critical,Mr=Ot.dimensions,zr=Ot.viewport;Ht(bn,Mr),ce(Du({critical:bn,dimensions:Mr,clientSelection:ht,movementMode:At,viewport:zr}))}}}},xn=function(ee){return function(){return function(te){return function(ie){ie.type==="INITIAL_PUBLISH"&&ee.dragging(),ie.type==="DROP_ANIMATE"&&ee.dropping(ie.payload.completed.result.reason),(ie.type==="FLUSH"||ie.type==="DROP_COMPLETE")&&ee.resting(),te(ie)}}}},Gt={outOfTheWay:"cubic-bezier(0.2, 0, 0, 1)",drop:"cubic-bezier(.2,1,.1,1)"},Pn={opacity:{drop:0,combining:.7},scale:{drop:.75}},Rt={outOfTheWay:.2,minDropTime:.33,maxDropTime:.55},Tn=Rt.outOfTheWay+"s "+Gt.outOfTheWay,In={fluid:"opacity "+Tn,snap:"transform "+Tn+", opacity "+Tn,drop:function(te){var ie=te+"s "+Gt.drop;return"transform "+ie+", opacity "+ie},outOfTheWay:"transform "+Tn,placeholder:"height "+Tn+", width "+Tn+", margin "+Tn},zn=function(te){return ma(te,Pr)?null:"translate("+te.x+"px, "+te.y+"px)"},Gn={moveTo:zn,drop:function(te,ie){var ce=zn(te);return ce?ie?ce+" scale("+Pn.scale.drop+")":ce:null}},Un=Rt.minDropTime,_r=Rt.maxDropTime,pr=_r-Un,Bn=1500,Sr=.6,ar=function(ee){var te=ee.current,ie=ee.destination,ce=ee.reason,Ce=Ya(te,ie);if(Ce<=0)return Un;if(Ce>=Bn)return _r;var xe=Ce/Bn,Oe=Un+pr*xe,Ge=ce==="CANCEL"?Oe*Sr:Oe;return Number(Ge.toFixed(2))},vr=function(ee){var te=ee.impact,ie=ee.draggable,ce=ee.dimensions,Ce=ee.viewport,xe=ee.afterCritical,Oe=ce.draggables,Ge=ce.droppables,ht=Fl(te),At=ht?Ge[ht]:null,St=Ge[ie.descriptor.droppableId],gt=nu({impact:te,draggable:ie,draggables:Oe,afterCritical:xe,droppable:At||St,viewport:Ce}),Et=Ha(gt,ie.client.borderBox.center);return Et},Ma=function(ee){var te=ee.draggables,ie=ee.reason,ce=ee.lastImpact,Ce=ee.home,xe=ee.viewport,Oe=ee.onLiftImpact;if(!ce.at||ie!=="DROP"){var Ge=Pu({draggables:te,impact:Oe,destination:Ce,viewport:xe,forceShouldAnimate:!0});return{impact:Ge,didDropInsideDroppable:!1}}if(ce.at.type==="REORDER")return{impact:ce,didDropInsideDroppable:!0};var ht=(0,Te.Z)({},ce,{displaced:jt});return{impact:ht,didDropInsideDroppable:!0}},da=function(ee){var te=ee.getState,ie=ee.dispatch;return function(ce){return function(Ce){if(Ce.type!=="DROP"){ce(Ce);return}var xe=te(),Oe=Ce.payload.reason;if(xe.phase==="COLLECTING"){ie(rt({reason:Oe}));return}if(xe.phase!=="IDLE"){var Ge=xe.phase==="DROP_PENDING"&&xe.isWaiting;Ge&&jn(!1),xe.phase==="DRAGGING"||xe.phase==="DROP_PENDING"||jn(!1);var ht=xe.critical,At=xe.dimensions,St=At.draggables[xe.critical.draggable.id],gt=Ma({reason:Oe,lastImpact:xe.impact,afterCritical:xe.afterCritical,onLiftImpact:xe.onLiftImpact,home:xe.dimensions.droppables[xe.critical.droppable.id],viewport:xe.viewport,draggables:xe.dimensions.draggables}),Et=gt.impact,Ot=gt.didDropInsideDroppable,bn=Ot?Pi(Et):null,Mr=Ot?Fo(Et):null,zr={index:ht.draggable.index,droppableId:ht.droppable.id},ea={draggableId:St.descriptor.id,type:St.descriptor.type,source:zr,reason:Oe,mode:xe.movementMode,destination:bn,combine:Mr},Oa=vr({impact:Et,draggable:St,dimensions:At,viewport:xe.viewport,afterCritical:xe.afterCritical}),Ja={critical:xe.critical,afterCritical:xe.afterCritical,result:ea,impact:Et},ni=!ma(xe.current.client.offset,Oa)||!!ea.combine;if(!ni){ie(Me({completed:Ja}));return}var ho=ar({current:xe.current.client.offset,destination:Oa,reason:Oe}),ro={newHomeClientOffset:Oa,dropDuration:ho,completed:Ja};ie(ge(ro))}}}},Zr=function(){return{x:window.pageXOffset,y:window.pageYOffset}};function oa(ee){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(ie){ie.target!==window&&ie.target!==window.document||ee()}}}function Ga(ee){var te=ee.onWindowScroll;function ie(){te(Zr())}var ce=Jt(ie),Ce=oa(ce),xe=qr;function Oe(){return xe!==qr}function Ge(){Oe()&&jn(!1),xe=si(window,[Ce])}function ht(){Oe()||jn(!1),ce.cancel(),xe(),xe=qr}return{start:Ge,stop:ht,isActive:Oe}}var ya=function(te){return te.type==="DROP_COMPLETE"||te.type==="DROP_ANIMATE"||te.type==="FLUSH"},Ur=function(ee){var te=Ga({onWindowScroll:function(ce){ee.dispatch(Uu({newScroll:ce}))}});return function(ie){return function(ce){!te.isActive()&&ce.type==="INITIAL_PUBLISH"&&te.start(),te.isActive()&&ya(ce)&&te.stop(),ie(ce)}}},kr=function(ee){var te=!1,ie=!1,ce=setTimeout(function(){ie=!0}),Ce=function(Oe){te||ie||(te=!0,ee(Oe),clearTimeout(ce))};return Ce.wasCalled=function(){return te},Ce},$r=function(){var ee=[],te=function(xe){var Oe=Di(ee,function(At){return At.timerId===xe});Oe===-1&&jn(!1);var Ge=ee.splice(Oe,1),ht=Ge[0];ht.callback()},ie=function(xe){var Oe=setTimeout(function(){return te(Oe)}),Ge={timerId:Oe,callback:xe};ee.push(Ge)},ce=function(){if(ee.length){var xe=[].concat(ee);ee.length=0,xe.forEach(function(Oe){clearTimeout(Oe.timerId),Oe.callback()})}};return{add:ie,flush:ce}},Yr=function(te,ie){return te==null&&ie==null?!0:te==null||ie==null?!1:te.droppableId===ie.droppableId&&te.index===ie.index},Za=function(te,ie){return te==null&&ie==null?!0:te==null||ie==null?!1:te.draggableId===ie.draggableId&&te.droppableId===ie.droppableId},Ta=function(te,ie){if(te===ie)return!0;var ce=te.draggable.id===ie.draggable.id&&te.draggable.droppableId===ie.draggable.droppableId&&te.draggable.type===ie.draggable.type&&te.draggable.index===ie.draggable.index,Ce=te.droppable.id===ie.droppable.id&&te.droppable.type===ie.droppable.type;return ce&&Ce},sa=function(te,ie){wr(),ie(),ls()},Ea=function(te,ie){return{draggableId:te.draggable.id,type:te.droppable.type,source:{droppableId:te.droppable.id,index:te.draggable.index},mode:ie}},Wr=function(te,ie,ce,Ce){if(!te){ce(Ce(ie));return}var xe=kr(ce),Oe={announce:xe};te(ie,Oe),xe.wasCalled()||ce(Ce(ie))},ba=function(ee,te){var ie=$r(),ce=null,Ce=function(Et,Ot){ce&&jn(!1),sa("onBeforeCapture",function(){var bn=ee().onBeforeCapture;if(bn){var Mr={draggableId:Et,mode:Ot};bn(Mr)}})},xe=function(Et,Ot){ce&&jn(!1),sa("onBeforeDragStart",function(){var bn=ee().onBeforeDragStart;bn&&bn(Ea(Et,Ot))})},Oe=function(Et,Ot){ce&&jn(!1);var bn=Ea(Et,Ot);ce={mode:Ot,lastCritical:Et,lastLocation:bn.source,lastCombine:null},ie.add(function(){sa("onDragStart",function(){return Wr(ee().onDragStart,bn,te,Fr.onDragStart)})})},Ge=function(Et,Ot){var bn=Pi(Ot),Mr=Fo(Ot);ce||jn(!1);var zr=!Ta(Et,ce.lastCritical);zr&&(ce.lastCritical=Et);var ea=!Yr(ce.lastLocation,bn);ea&&(ce.lastLocation=bn);var Oa=!Za(ce.lastCombine,Mr);if(Oa&&(ce.lastCombine=Mr),!(!zr&&!ea&&!Oa)){var Ja=(0,Te.Z)({},Ea(Et,ce.mode),{combine:Mr,destination:bn});ie.add(function(){sa("onDragUpdate",function(){return Wr(ee().onDragUpdate,Ja,te,Fr.onDragUpdate)})})}},ht=function(){ce||jn(!1),ie.flush()},At=function(Et){ce||jn(!1),ce=null,sa("onDragEnd",function(){return Wr(ee().onDragEnd,Et,te,Fr.onDragEnd)})},St=function(){if(ce){var Et=(0,Te.Z)({},Ea(ce.lastCritical,ce.mode),{combine:null,destination:null,reason:"CANCEL"});At(Et)}};return{beforeCapture:Ce,beforeStart:xe,start:Oe,update:Ge,flush:ht,drop:At,abort:St}},va=function(ee,te){var ie=ba(ee,te);return function(ce){return function(Ce){return function(xe){if(xe.type==="BEFORE_INITIAL_CAPTURE"){ie.beforeCapture(xe.payload.draggableId,xe.payload.movementMode);return}if(xe.type==="INITIAL_PUBLISH"){var Oe=xe.payload.critical;ie.beforeStart(Oe,xe.payload.movementMode),Ce(xe),ie.start(Oe,xe.payload.movementMode);return}if(xe.type==="DROP_COMPLETE"){var Ge=xe.payload.completed.result;ie.flush(),Ce(xe),ie.drop(Ge);return}if(Ce(xe),xe.type==="FLUSH"){ie.abort();return}var ht=ce.getState();ht.phase==="DRAGGING"&&ie.update(ht.critical,ht.impact)}}}},ri=function(ee){return function(te){return function(ie){if(ie.type!=="DROP_ANIMATION_FINISHED"){te(ie);return}var ce=ee.getState();ce.phase!=="DROP_ANIMATING"&&jn(!1),ee.dispatch(Me({completed:ce.completed}))}}},di=function(ee){var te=null,ie=null;function ce(){ie&&(cancelAnimationFrame(ie),ie=null),te&&(te(),te=null)}return function(Ce){return function(xe){if((xe.type==="FLUSH"||xe.type==="DROP_COMPLETE"||xe.type==="DROP_ANIMATION_FINISHED")&&ce(),Ce(xe),xe.type==="DROP_ANIMATE"){var Oe={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){var ht=ee.getState();ht.phase==="DROP_ANIMATING"&&ee.dispatch(Ft())}};ie=requestAnimationFrame(function(){ie=null,te=si(window,[Oe])})}}}},mi=function(ee){return function(){return function(te){return function(ie){(ie.type==="DROP_COMPLETE"||ie.type==="FLUSH"||ie.type==="DROP_ANIMATE")&&ee.stopPublishing(),te(ie)}}}},vi=function(ee){var te=!1;return function(){return function(ie){return function(ce){if(ce.type==="INITIAL_PUBLISH"){te=!0,ee.tryRecordFocus(ce.payload.critical.draggable.id),ie(ce),ee.tryRestoreFocusRecorded();return}if(ie(ce),!!te){if(ce.type==="FLUSH"){te=!1,ee.tryRestoreFocusRecorded();return}if(ce.type==="DROP_COMPLETE"){te=!1;var Ce=ce.payload.completed.result;Ce.combine&&ee.tryShiftRecord(Ce.draggableId,Ce.combine.draggableId),ee.tryRestoreFocusRecorded()}}}}}},ei=function(te){return te.type==="DROP_COMPLETE"||te.type==="DROP_ANIMATE"||te.type==="FLUSH"},Zi=function(ee){return function(te){return function(ie){return function(ce){if(ei(ce)){ee.stop(),ie(ce);return}if(ce.type==="INITIAL_PUBLISH"){ie(ce);var Ce=te.getState();Ce.phase!=="DRAGGING"&&jn(!1),ee.start(Ce);return}ie(ce),ee.scroll(te.getState())}}}},dn=function(ee){return function(te){return function(ie){if(te(ie),ie.type==="PUBLISH_WHILE_DRAGGING"){var ce=ee.getState();ce.phase==="DROP_PENDING"&&(ce.isWaiting||ee.dispatch(et({reason:ce.reason})))}}}},Oi=He.qC,ao=function(ee){var te=ee.dimensionMarshal,ie=ee.focusMarshal,ce=ee.styleMarshal,Ce=ee.getResponders,xe=ee.announce,Oe=ee.autoScroller;return(0,He.MT)(Hs,Oi((0,He.md)(xn(ce),mi(te),mn(te),da,ri,di,dn,Zi(Oe),Ur,vi(ie),va(Ce,xe))))},xi=function(){return{additions:{},removals:{},modified:{}}};function io(ee){var te=ee.registry,ie=ee.callbacks,ce=xi(),Ce=null,xe=function(){Ce||(ie.collectionStarting(),Ce=requestAnimationFrame(function(){Ce=null,wr();var St=ce,gt=St.additions,Et=St.removals,Ot=St.modified,bn=Object.keys(gt).map(function(ea){return te.draggable.getById(ea).getDimension(Pr)}).sort(function(ea,Oa){return ea.descriptor.index-Oa.descriptor.index}),Mr=Object.keys(Ot).map(function(ea){var Oa=te.droppable.getById(ea),Ja=Oa.callbacks.getScrollWhileDragging();return{droppableId:ea,scroll:Ja}}),zr={additions:bn,removals:Object.keys(Et),modified:Mr};ce=xi(),ls(),ie.publish(zr)}))},Oe=function(St){var gt=St.descriptor.id;ce.additions[gt]=St,ce.modified[St.descriptor.droppableId]=!0,ce.removals[gt]&&delete ce.removals[gt],xe()},Ge=function(St){var gt=St.descriptor;ce.removals[gt.id]=!0,ce.modified[gt.droppableId]=!0,ce.additions[gt.id]&&delete ce.additions[gt.id],xe()},ht=function(){Ce&&(cancelAnimationFrame(Ce),Ce=null,ce=xi())};return{add:Oe,remove:Ge,stop:ht}}var gi=function(ee){var te=ee.scrollHeight,ie=ee.scrollWidth,ce=ee.height,Ce=ee.width,xe=Ha({x:ie,y:te},{x:Ce,y:ce}),Oe={x:Math.max(0,xe.x),y:Math.max(0,xe.y)};return Oe},oo=function(){var ee=document.documentElement;return ee||jn(!1),ee},Vi=function(){var ee=oo(),te=gi({scrollHeight:ee.scrollHeight,scrollWidth:ee.scrollWidth,width:ee.clientWidth,height:ee.clientHeight});return te},zi=function(){var ee=Zr(),te=Vi(),ie=ee.y,ce=ee.x,Ce=oo(),xe=Ce.clientWidth,Oe=Ce.clientHeight,Ge=ce+xe,ht=ie+Oe,At=Ir({top:ie,left:ce,right:Ge,bottom:ht}),St={frame:At,scroll:{initial:ee,current:ee,max:te,diff:{value:Pr,displacement:Pr}}};return St},fo=function(ee){var te=ee.critical,ie=ee.scrollOptions,ce=ee.registry;wr();var Ce=zi(),xe=Ce.scroll.current,Oe=te.droppable,Ge=ce.droppable.getAllByType(Oe.type).map(function(gt){return gt.callbacks.getDimensionAndWatchScroll(xe,ie)}),ht=ce.draggable.getAllByType(te.draggable.type).map(function(gt){return gt.getDimension(xe)}),At={draggables:Ei(ht),droppables:Bo(Ge)};ls();var St={dimensions:At,critical:te,viewport:Ce};return St};function Ca(ee,te,ie){if(ie.descriptor.id===te.id||ie.descriptor.type!==te.type)return!1;var ce=ee.droppable.getById(ie.descriptor.droppableId);return ce.descriptor.mode==="virtual"}var ka=function(ee,te){var ie=null,ce=io({callbacks:{publish:te.publishWhileDragging,collectionStarting:te.collectionStarting},registry:ee}),Ce=function(Ot,bn){ee.droppable.exists(Ot)||jn(!1),ie&&te.updateDroppableIsEnabled({id:Ot,isEnabled:bn})},xe=function(Ot,bn){ie&&(ee.droppable.exists(Ot)||jn(!1),te.updateDroppableIsCombineEnabled({id:Ot,isCombineEnabled:bn}))},Oe=function(Ot,bn){ie&&(ee.droppable.exists(Ot)||jn(!1),te.updateDroppableScroll({id:Ot,newScroll:bn}))},Ge=function(Ot,bn){ie&&ee.droppable.getById(Ot).callbacks.scroll(bn)},ht=function(){if(ie){ce.stop();var Ot=ie.critical.droppable;ee.droppable.getAllByType(Ot.type).forEach(function(bn){return bn.callbacks.dragStopped()}),ie.unsubscribe(),ie=null}},At=function(Ot){ie||jn(!1);var bn=ie.critical.draggable;Ot.type==="ADDITION"&&Ca(ee,bn,Ot.value)&&ce.add(Ot.value),Ot.type==="REMOVAL"&&Ca(ee,bn,Ot.value)&&ce.remove(Ot.value)},St=function(Ot){ie&&jn(!1);var bn=ee.draggable.getById(Ot.draggableId),Mr=ee.droppable.getById(bn.descriptor.droppableId),zr={draggable:bn.descriptor,droppable:Mr.descriptor},ea=ee.subscribe(At);return ie={critical:zr,unsubscribe:ea},fo({critical:zr,registry:ee,scrollOptions:Ot.scrollOptions})},gt={updateDroppableIsEnabled:Ce,updateDroppableIsCombineEnabled:xe,scrollDroppable:Ge,updateDroppableScroll:Oe,startPublishing:St,stopPublishing:ht};return gt},Xi=function(ee,te){return ee.phase==="IDLE"?!0:ee.phase!=="DROP_ANIMATING"||ee.completed.result.draggableId===te?!1:ee.completed.result.reason==="DROP"},vo=function(ee){window.scrollBy(ee.x,ee.y)},jo=nn(function(ee){return Qi(ee).filter(function(te){return!(!te.isEnabled||!te.frame)})}),to=function(te,ie){var ce=oi(jo(ie),function(Ce){return Ce.frame||jn(!1),ds(Ce.frame.pageMarginBox)(te)});return ce},bl=function(ee){var te=ee.center,ie=ee.destination,ce=ee.droppables;if(ie){var Ce=ce[ie];return Ce.frame?Ce:null}var xe=to(te,ce);return xe},Ji={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:function(te){return Math.pow(te,2)},durationDampening:{stopDampeningAt:1200,accelerateAt:360}},lo=function(ee,te){var ie=ee[te.size]*Ji.startFromPercentage,ce=ee[te.size]*Ji.maxScrollAtPercentage,Ce={startScrollingFrom:ie,maxScrollValueAt:ce};return Ce},go=function(ee){var te=ee.startOfRange,ie=ee.endOfRange,ce=ee.current,Ce=ie-te;if(Ce===0)return 0;var xe=ce-te,Oe=xe/Ce;return Oe},Lr=1,yi=function(ee,te){if(ee>te.startScrollingFrom)return 0;if(ee<=te.maxScrollValueAt)return Ji.maxPixelScroll;if(ee===te.startScrollingFrom)return Lr;var ie=go({startOfRange:te.maxScrollValueAt,endOfRange:te.startScrollingFrom,current:ee}),ce=1-ie,Ce=Ji.maxPixelScroll*Ji.ease(ce);return Math.ceil(Ce)},Kl=Ji.durationDampening.accelerateAt,Ka=Ji.durationDampening.stopDampeningAt,Aa=function(ee,te){var ie=te,ce=Ka,Ce=Date.now(),xe=Ce-ie;if(xe>=Ka)return ee;if(xe<Kl)return Lr;var Oe=go({startOfRange:Kl,endOfRange:ce,current:xe}),Ge=ee*Ji.ease(Oe);return Math.ceil(Ge)},no=function(ee){var te=ee.distanceToEdge,ie=ee.thresholds,ce=ee.dragStartTime,Ce=ee.shouldUseTimeDampening,xe=yi(te,ie);return xe===0?0:Ce?Math.max(Aa(xe,ce),Lr):xe},xa=function(ee){var te=ee.container,ie=ee.distanceToEdges,ce=ee.dragStartTime,Ce=ee.axis,xe=ee.shouldUseTimeDampening,Oe=lo(te,Ce),Ge=ie[Ce.end]<ie[Ce.start];return Ge?no({distanceToEdge:ie[Ce.end],thresholds:Oe,dragStartTime:ce,shouldUseTimeDampening:xe}):-1*no({distanceToEdge:ie[Ce.start],thresholds:Oe,dragStartTime:ce,shouldUseTimeDampening:xe})},Va=function(ee){var te=ee.container,ie=ee.subject,ce=ee.proposedScroll,Ce=ie.height>te.height,xe=ie.width>te.width;return!xe&&!Ce?ce:xe&&Ce?null:{x:xe?0:ce.x,y:Ce?0:ce.y}},ko=Wa(function(ee){return ee===0?0:ee}),Jo=function(ee){var te=ee.dragStartTime,ie=ee.container,ce=ee.subject,Ce=ee.center,xe=ee.shouldUseTimeDampening,Oe={top:Ce.y-ie.top,right:ie.right-Ce.x,bottom:ie.bottom-Ce.y,left:Ce.x-ie.left},Ge=xa({container:ie,distanceToEdges:Oe,dragStartTime:te,axis:Ut,shouldUseTimeDampening:xe}),ht=xa({container:ie,distanceToEdges:Oe,dragStartTime:te,axis:an,shouldUseTimeDampening:xe}),At=ko({x:ht,y:Ge});if(ma(At,Pr))return null;var St=Va({container:ie,subject:ce,proposedScroll:At});return St?ma(St,Pr)?null:St:null},Cl=Wa(function(ee){return ee===0?0:ee>0?1:-1}),Ml=function(){var ee=function(ie,ce){return ie<0?ie:ie>ce?ie-ce:0};return function(te){var ie=te.current,ce=te.max,Ce=te.change,xe=Or(ie,Ce),Oe={x:ee(xe.x,ce.x),y:ee(xe.y,ce.y)};return ma(Oe,Pr)?null:Oe}}(),Ql=function(te){var ie=te.max,ce=te.current,Ce=te.change,xe={x:Math.max(ce.x,ie.x),y:Math.max(ce.y,ie.y)},Oe=Cl(Ce),Ge=Ml({max:xe,current:ce,change:Oe});return!Ge||Oe.x!==0&&Ge.x===0||Oe.y!==0&&Ge.y===0},Bs=function(te,ie){return Ql({current:te.scroll.current,max:te.scroll.max,change:ie})},ue=function(te,ie){if(!Bs(te,ie))return null;var ce=te.scroll.max,Ce=te.scroll.current;return Ml({current:Ce,max:ce,change:ie})},ke=function(te,ie){var ce=te.frame;return ce?Ql({current:ce.scroll.current,max:ce.scroll.max,change:ie}):!1},Ze=function(te,ie){var ce=te.frame;return!ce||!ke(te,ie)?null:Ml({current:ce.scroll.current,max:ce.scroll.max,change:ie})},Vt=function(ee){var te=ee.viewport,ie=ee.subject,ce=ee.center,Ce=ee.dragStartTime,xe=ee.shouldUseTimeDampening,Oe=Jo({dragStartTime:Ce,container:te.frame,subject:ie,center:ce,shouldUseTimeDampening:xe});return Oe&&Bs(te,Oe)?Oe:null},Nn=function(ee){var te=ee.droppable,ie=ee.subject,ce=ee.center,Ce=ee.dragStartTime,xe=ee.shouldUseTimeDampening,Oe=te.frame;if(!Oe)return null;var Ge=Jo({dragStartTime:Ce,container:Oe.pageMarginBox,subject:ie,center:ce,shouldUseTimeDampening:xe});return Ge&&ke(te,Ge)?Ge:null},Cr=function(ee){var te=ee.state,ie=ee.dragStartTime,ce=ee.shouldUseTimeDampening,Ce=ee.scrollWindow,xe=ee.scrollDroppable,Oe=te.current.page.borderBoxCenter,Ge=te.dimensions.draggables[te.critical.draggable.id],ht=Ge.page.marginBox;if(te.isWindowScrollAllowed){var At=te.viewport,St=Vt({dragStartTime:ie,viewport:At,subject:ht,center:Oe,shouldUseTimeDampening:ce});if(St){Ce(St);return}}var gt=bl({center:Oe,destination:Fl(te.impact),droppables:te.dimensions.droppables});if(gt){var Et=Nn({dragStartTime:ie,droppable:gt,subject:ht,center:Oe,shouldUseTimeDampening:ce});Et&&xe(gt.descriptor.id,Et)}},kn=function(ee){var te=ee.scrollWindow,ie=ee.scrollDroppable,ce=Jt(te),Ce=Jt(ie),xe=null,Oe=function(St){xe||jn(!1);var gt=xe,Et=gt.shouldUseTimeDampening,Ot=gt.dragStartTime;Cr({state:St,scrollWindow:ce,scrollDroppable:Ce,dragStartTime:Ot,shouldUseTimeDampening:Et})},Ge=function(St){wr(),xe&&jn(!1);var gt=Date.now(),Et=!1,Ot=function(){Et=!0};Cr({state:St,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:Ot,scrollDroppable:Ot}),xe={dragStartTime:gt,shouldUseTimeDampening:Et},ls(),Et&&Oe(St)},ht=function(){xe&&(ce.cancel(),Ce.cancel(),xe=null)};return{start:Ge,stop:ht,scroll:Oe}},gn=function(ee){var te=ee.move,ie=ee.scrollDroppable,ce=ee.scrollWindow,Ce=function(At,St){var gt=Or(At.current.client.selection,St);te({client:gt})},xe=function(At,St){if(!ke(At,St))return St;var gt=Ze(At,St);if(!gt)return ie(At.descriptor.id,St),null;var Et=Ha(St,gt);ie(At.descriptor.id,Et);var Ot=Ha(St,Et);return Ot},Oe=function(At,St,gt){if(!At||!Bs(St,gt))return gt;var Et=ue(St,gt);if(!Et)return ce(gt),null;var Ot=Ha(gt,Et);ce(Ot);var bn=Ha(gt,Ot);return bn},Ge=function(At){var St=At.scrollJumpRequest;if(St){var gt=Fl(At.impact);gt||jn(!1);var Et=xe(At.dimensions.droppables[gt],St);if(Et){var Ot=At.viewport,bn=Oe(At.isWindowScrollAllowed,Ot,Et);bn&&Ce(At,bn)}}};return Ge},Yt=function(ee){var te=ee.scrollDroppable,ie=ee.scrollWindow,ce=ee.move,Ce=kn({scrollWindow:ie,scrollDroppable:te}),xe=gn({move:ce,scrollWindow:ie,scrollDroppable:te}),Oe=function(At){if(At.phase==="DRAGGING"){if(At.movementMode==="FLUID"){Ce.scroll(At);return}At.scrollJumpRequest&&xe(At)}},Ge={scroll:Oe,start:Ce.start,stop:Ce.stop};return Ge},Ln="data-rbd",Ia=function(){var ee=Ln+"-drag-handle";return{base:ee,draggableId:ee+"-draggable-id",contextId:ee+"-context-id"}}(),ln=function(){var ee=Ln+"-draggable";return{base:ee,contextId:ee+"-context-id",id:ee+"-id"}}(),Wt=function(){var ee=Ln+"-droppable";return{base:ee,contextId:ee+"-context-id",id:ee+"-id"}}(),un={contextId:Ln+"-scroll-container-context-id"},er=function(te){return function(ie){return"["+ie+'="'+te+'"]'}},Xn=function(te,ie){return te.map(function(ce){var Ce=ce.styles[ie];return Ce?ce.selector+" { "+Ce+" }":""}).join(" ")},Zn="pointer-events: none;",qn=function(ee){var te=er(ee),ie=function(){var Ge=`
cursor: -webkit-grab;
cursor: grab;
`;return{selector:te(Ia.contextId),styles:{always:`
-webkit-touch-callout: none;
-webkit-tap-highlight-color: rgba(0,0,0,0);
touch-action: manipulation;
`,resting:Ge,dragging:Zn,dropAnimating:Ge}}}(),ce=function(){var Ge=`
transition: `+In.outOfTheWay+`;
`;return{selector:te(ln.contextId),styles:{dragging:Ge,dropAnimating:Ge,userCancel:Ge}}}(),Ce={selector:te(Wt.contextId),styles:{always:"overflow-anchor: none;"}},xe={selector:"body",styles:{dragging:`
cursor: grabbing;
cursor: -webkit-grabbing;
user-select: none;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
overflow-anchor: none;
`}},Oe=[ce,ie,Ce,xe];return{always:Xn(Oe,"always"),resting:Xn(Oe,"resting"),dragging:Xn(Oe,"dragging"),dropAnimating:Xn(Oe,"dropAnimating"),userCancel:Xn(Oe,"userCancel")}},yn=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?E.useLayoutEffect:E.useEffect,lr=function(){var te=document.querySelector("head");return te||jn(!1),te},Dr=function(te){var ie=document.createElement("style");return te&&ie.setAttribute("nonce",te),ie.type="text/css",ie};function dr(ee,te){var ie=Jn(function(){return qn(ee)},[ee]),ce=(0,E.useRef)(null),Ce=(0,E.useRef)(null),xe=Vn(nn(function(gt){var Et=Ce.current;Et||jn(!1),Et.textContent=gt}),[]),Oe=Vn(function(gt){var Et=ce.current;Et||jn(!1),Et.textContent=gt},[]);yn(function(){!ce.current&&!Ce.current||jn(!1);var gt=Dr(te),Et=Dr(te);return ce.current=gt,Ce.current=Et,gt.setAttribute(Ln+"-always",ee),Et.setAttribute(Ln+"-dynamic",ee),lr().appendChild(gt),lr().appendChild(Et),Oe(ie.always),xe(ie.resting),function(){var Ot=function(Mr){var zr=Mr.current;zr||jn(!1),lr().removeChild(zr),Mr.current=null};Ot(ce),Ot(Ce)}},[te,Oe,xe,ie.always,ie.resting,ee]);var Ge=Vn(function(){return xe(ie.dragging)},[xe,ie.dragging]),ht=Vn(function(gt){if(gt==="DROP"){xe(ie.dropAnimating);return}xe(ie.userCancel)},[xe,ie.dropAnimating,ie.userCancel]),At=Vn(function(){Ce.current&&xe(ie.resting)},[xe,ie.resting]),St=Jn(function(){return{dragging:Ge,dropping:ht,resting:At}},[Ge,ht,At]);return St}var ki=function(ee){return ee&&ee.ownerDocument?ee.ownerDocument.defaultView:window};function Gi(ee){return ee instanceof ki(ee).HTMLElement}function Ui(ee,te){var ie="["+Ia.contextId+'="'+ee+'"]',ce=xo(document.querySelectorAll(ie));if(!ce.length)return null;var Ce=oi(ce,function(xe){return xe.getAttribute(Ia.draggableId)===te});return!Ce||!Gi(Ce)?null:Ce}function _o(ee){var te=(0,E.useRef)({}),ie=(0,E.useRef)(null),ce=(0,E.useRef)(null),Ce=(0,E.useRef)(!1),xe=Vn(function(Et,Ot){var bn={id:Et,focus:Ot};return te.current[Et]=bn,function(){var zr=te.current,ea=zr[Et];ea!==bn&&delete zr[Et]}},[]),Oe=Vn(function(Et){var Ot=Ui(ee,Et);Ot&&Ot!==document.activeElement&&Ot.focus()},[ee]),Ge=Vn(function(Et,Ot){ie.current===Et&&(ie.current=Ot)},[]),ht=Vn(function(){ce.current||Ce.current&&(ce.current=requestAnimationFrame(function(){ce.current=null;var Et=ie.current;Et&&Oe(Et)}))},[Oe]),At=Vn(function(Et){ie.current=null;var Ot=document.activeElement;Ot&&Ot.getAttribute(Ia.draggableId)===Et&&(ie.current=Et)},[]);yn(function(){return Ce.current=!0,function(){Ce.current=!1;var Et=ce.current;Et&&cancelAnimationFrame(Et)}},[]);var St=Jn(function(){return{register:xe,tryRecordFocus:At,tryRestoreFocusRecorded:ht,tryShiftRecord:Ge}},[xe,At,ht,Ge]);return St}function Tr(){var ee={draggables:{},droppables:{}},te=[];function ie(gt){return te.push(gt),function(){var Ot=te.indexOf(gt);Ot!==-1&&te.splice(Ot,1)}}function ce(gt){te.length&&te.forEach(function(Et){return Et(gt)})}function Ce(gt){return ee.draggables[gt]||null}function xe(gt){var Et=Ce(gt);return Et||jn(!1),Et}var Oe={register:function(Et){ee.draggables[Et.descriptor.id]=Et,ce({type:"ADDITION",value:Et})},update:function(Et,Ot){var bn=ee.draggables[Ot.descriptor.id];bn&&bn.uniqueId===Et.uniqueId&&(delete ee.draggables[Ot.descriptor.id],ee.draggables[Et.descriptor.id]=Et)},unregister:function(Et){var Ot=Et.descriptor.id,bn=Ce(Ot);bn&&Et.uniqueId===bn.uniqueId&&(delete ee.draggables[Ot],ce({type:"REMOVAL",value:Et}))},getById:xe,findById:Ce,exists:function(Et){return!!Ce(Et)},getAllByType:function(Et){return Da(ee.draggables).filter(function(Ot){return Ot.descriptor.type===Et})}};function Ge(gt){return ee.droppables[gt]||null}function ht(gt){var Et=Ge(gt);return Et||jn(!1),Et}var At={register:function(Et){ee.droppables[Et.descriptor.id]=Et},unregister:function(Et){var Ot=Ge(Et.descriptor.id);Ot&&Et.uniqueId===Ot.uniqueId&&delete ee.droppables[Et.descriptor.id]},getById:ht,findById:Ge,exists:function(Et){return!!Ge(Et)},getAllByType:function(Et){return Da(ee.droppables).filter(function(Ot){return Ot.descriptor.type===Et})}};function St(){ee.draggables={},ee.droppables={},te.length=0}return{draggable:Oe,droppable:At,subscribe:ie,clean:St}}function Mi(){var ee=Jn(Tr,[]);return(0,E.useEffect)(function(){return function(){requestAnimationFrame(ee.clean)}},[ee]),ee}var eo=E.createContext(null),tr=function(){var ee=document.body;return ee||jn(!1),ee},yo={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},Lo=function(te){return"rbd-announcement-"+te};function Io(ee){var te=Jn(function(){return Lo(ee)},[ee]),ie=(0,E.useRef)(null);(0,E.useEffect)(function(){var xe=document.createElement("div");return ie.current=xe,xe.id=te,xe.setAttribute("aria-live","assertive"),xe.setAttribute("aria-atomic","true"),(0,Te.Z)(xe.style,yo),tr().appendChild(xe),function(){setTimeout(function(){var ht=tr();ht.contains(xe)&&ht.removeChild(xe),xe===ie.current&&(ie.current=null)})}},[te]);var ce=Vn(function(Ce){var xe=ie.current;if(xe){xe.textContent=Ce;return}},[]);return ce}var nr=0,fi={separator:"::"};function ul(){nr=0}function No(ee,te){return te===void 0&&(te=fi),Jn(function(){return""+ee+te.separator+nr++},[te.separator,ee])}function pi(ee){var te=ee.contextId,ie=ee.uniqueId;return"rbd-hidden-text-"+te+"-"+ie}function xl(ee){var te=ee.contextId,ie=ee.text,ce=No("hidden-text",{separator:"-"}),Ce=Jn(function(){return pi({contextId:te,uniqueId:ce})},[ce,te]);return(0,E.useEffect)(function(){var Oe=document.createElement("div");return Oe.id=Ce,Oe.textContent=ie,Oe.style.display="none",tr().appendChild(Oe),function(){var ht=tr();ht.contains(Oe)&&ht.removeChild(Oe)}},[Ce,ie]),Ce}var wo=E.createContext(null),cl={react:"^16.8.5","react-dom":"^16.8.5"},Qo=/(\d+)\.(\d+)\.(\d+)/,Ho=function(te){var ie=Qo.exec(te);ie==null&&jn(!1);var ce=Number(ie[1]),Ce=Number(ie[2]),xe=Number(ie[3]);return{major:ce,minor:Ce,patch:xe,raw:te}},qo=function(te,ie){return ie.major>te.major?!0:ie.major<te.major?!1:ie.minor>te.minor?!0:ie.minor<te.minor?!1:ie.patch>=te.patch},$o=function(ee,te){var ie=Ho(ee),ce=Ho(te);qo(ie,ce)},Al=`
We expect a html5 doctype: <!doctype html>
This is to ensure consistent browser layout and measurement
More information: https://github.com/atlassian/react-beautiful-dnd/blob/master/docs/guides/doctype.md
`,Vs=function(ee){var te=ee.doctype;te&&(te.name.toLowerCase(),te.publicId)};function _i(ee){}function wa(ee,te){}function ml(){wa(function(){$o(cl.react,E.version),Vs(document)},[])}function Wo(ee){var te=(0,E.useRef)(ee);return(0,E.useEffect)(function(){te.current=ee}),te}function Os(){var ee=null;function te(){return!!ee}function ie(Oe){return Oe===ee}function ce(Oe){ee&&jn(!1);var Ge={abandon:Oe};return ee=Ge,Ge}function Ce(){ee||jn(!1),ee=null}function xe(){ee&&(ee.abandon(),Ce())}return{isClaimed:te,isActive:ie,claim:ce,release:Ce,tryAbandon:xe}}var ss=9,tu=13,As=27,Ms=32,qi=33,Ii=34,Yi=35,La=36,rl=37,_s=38,ps=39,$l=40,Eo,Tl=(Eo={},Eo[tu]=!0,Eo[ss]=!0,Eo),vl=function(ee){Tl[ee.keyCode]&&ee.preventDefault()},_l=function(){var ee="visibilitychange";if(typeof document=="undefined")return ee;var te=[ee,"ms"+ee,"webkit"+ee,"moz"+ee,"o"+ee],ie=oi(te,function(ce){return"on"+ce in document});return ie||ee}(),Ll=0,Uo=5;function Rl(ee,te){return Math.abs(te.x-ee.x)>=Uo||Math.abs(te.y-ee.y)>=Uo}var dl={type:"IDLE"};function zs(ee){var te=ee.cancel,ie=ee.completed,ce=ee.getPhase,Ce=ee.setPhase;return[{eventName:"mousemove",fn:function(Oe){var Ge=Oe.button,ht=Oe.clientX,At=Oe.clientY;if(Ge===Ll){var St={x:ht,y:At},gt=ce();if(gt.type==="DRAGGING"){Oe.preventDefault(),gt.actions.move(St);return}gt.type!=="PENDING"&&jn(!1);var Et=gt.point;if(Rl(Et,St)){Oe.preventDefault();var Ot=gt.actions.fluidLift(St);Ce({type:"DRAGGING",actions:Ot})}}}},{eventName:"mouseup",fn:function(Oe){var Ge=ce();if(Ge.type!=="DRAGGING"){te();return}Oe.preventDefault(),Ge.actions.drop({shouldBlockNextClick:!0}),ie()}},{eventName:"mousedown",fn:function(Oe){ce().type==="DRAGGING"&&Oe.preventDefault(),te()}},{eventName:"keydown",fn:function(Oe){var Ge=ce();if(Ge.type==="PENDING"){te();return}if(Oe.keyCode===As){Oe.preventDefault(),te();return}vl(Oe)}},{eventName:"resize",fn:te},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){ce().type==="PENDING"&&te()}},{eventName:"webkitmouseforcedown",fn:function(Oe){var Ge=ce();if(Ge.type==="IDLE"&&jn(!1),Ge.actions.shouldRespectForcePress()){te();return}Oe.preventDefault()}},{eventName:_l,fn:te}]}function Ps(ee){var te=(0,E.useRef)(dl),ie=(0,E.useRef)(qr),ce=Jn(function(){return{eventName:"mousedown",fn:function(gt){if(!gt.defaultPrevented&&gt.button===Ll&&!(gt.ctrlKey||gt.metaKey||gt.shiftKey||gt.altKey)){var Et=ee.findClosestDraggableId(gt);if(Et){var Ot=ee.tryGetLock(Et,Oe,{sourceEvent:gt});if(Ot){gt.preventDefault();var bn={x:gt.clientX,y:gt.clientY};ie.current(),At(Ot,bn)}}}}}},[ee]),Ce=Jn(function(){return{eventName:"webkitmouseforcewillbegin",fn:function(gt){if(!gt.defaultPrevented){var Et=ee.findClosestDraggableId(gt);if(Et){var Ot=ee.findOptionsForDraggable(Et);Ot&&(Ot.shouldRespectForcePress||ee.canGetLock(Et)&&gt.preventDefault())}}}}},[ee]),xe=Vn(function(){var gt={passive:!1,capture:!0};ie.current=si(window,[Ce,ce],gt)},[Ce,ce]),Oe=Vn(function(){var St=te.current;St.type!=="IDLE"&&(te.current=dl,ie.current(),xe())},[xe]),Ge=Vn(function(){var St=te.current;Oe(),St.type==="DRAGGING"&&St.actions.cancel({shouldBlockNextClick:!0}),St.type==="PENDING"&&St.actions.abort()},[Oe]),ht=Vn(function(){var gt={capture:!0,passive:!1},Et=zs({cancel:Ge,completed:Oe,getPhase:function(){return te.current},setPhase:function(bn){te.current=bn}});ie.current=si(window,Et,gt)},[Ge,Oe]),At=Vn(function(gt,Et){te.current.type!=="IDLE"&&jn(!1),te.current={type:"PENDING",point:Et,actions:gt},ht()},[ht]);yn(function(){return xe(),function(){ie.current()}},[xe])}var En;function Br(){}var ti=(En={},En[Ii]=!0,En[qi]=!0,En[La]=!0,En[Yi]=!0,En);function Na(ee,te){function ie(){te(),ee.cancel()}function ce(){te(),ee.drop()}return[{eventName:"keydown",fn:function(xe){if(xe.keyCode===As){xe.preventDefault(),ie();return}if(xe.keyCode===Ms){xe.preventDefault(),ce();return}if(xe.keyCode===$l){xe.preventDefault(),ee.moveDown();return}if(xe.keyCode===_s){xe.preventDefault(),ee.moveUp();return}if(xe.keyCode===ps){xe.preventDefault(),ee.moveRight();return}if(xe.keyCode===rl){xe.preventDefault(),ee.moveLeft();return}if(ti[xe.keyCode]){xe.preventDefault();return}vl(xe)}},{eventName:"mousedown",fn:ie},{eventName:"mouseup",fn:ie},{eventName:"click",fn:ie},{eventName:"touchstart",fn:ie},{eventName:"resize",fn:ie},{eventName:"wheel",fn:ie,options:{passive:!0}},{eventName:_l,fn:ie}]}function hi(ee){var te=(0,E.useRef)(Br),ie=Jn(function(){return{eventName:"keydown",fn:function(xe){if(xe.defaultPrevented||xe.keyCode!==Ms)return;var Oe=ee.findClosestDraggableId(xe);if(!Oe)return;var Ge=ee.tryGetLock(Oe,St,{sourceEvent:xe});if(!Ge)return;xe.preventDefault();var ht=!0,At=Ge.snapLift();te.current();function St(){ht||jn(!1),ht=!1,te.current(),ce()}te.current=si(window,Na(At,St),{capture:!0,passive:!1})}}},[ee]),ce=Vn(function(){var xe={passive:!1,capture:!0};te.current=si(window,[ie],xe)},[ie]);yn(function(){return ce(),function(){te.current()}},[ce])}var Po={type:"IDLE"},al=120,Yo=.15;function us(ee){var te=ee.cancel,ie=ee.getPhase;return[{eventName:"orientationchange",fn:te},{eventName:"resize",fn:te},{eventName:"contextmenu",fn:function(Ce){Ce.preventDefault()}},{eventName:"keydown",fn:function(Ce){if(ie().type!=="DRAGGING"){te();return}Ce.keyCode===As&&Ce.preventDefault(),te()}},{eventName:_l,fn:te}]}function Vo(ee){var te=ee.cancel,ie=ee.completed,ce=ee.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(xe){var Oe=ce();if(Oe.type!=="DRAGGING"){te();return}Oe.hasMoved=!0;var Ge=xe.touches[0],ht=Ge.clientX,At=Ge.clientY,St={x:ht,y:At};xe.preventDefault(),Oe.actions.move(St)}},{eventName:"touchend",fn:function(xe){var Oe=ce();if(Oe.type!=="DRAGGING"){te();return}xe.preventDefault(),Oe.actions.drop({shouldBlockNextClick:!0}),ie()}},{eventName:"touchcancel",fn:function(xe){if(ce().type!=="DRAGGING"){te();return}xe.preventDefault(),te()}},{eventName:"touchforcechange",fn:function(xe){var Oe=ce();Oe.type==="IDLE"&&jn(!1);var Ge=xe.touches[0];if(Ge){var ht=Ge.force>=Yo;if(ht){var At=Oe.actions.shouldRespectForcePress();if(Oe.type==="PENDING"){At&&te();return}if(At){if(Oe.hasMoved){xe.preventDefault();return}te();return}xe.preventDefault()}}}},{eventName:_l,fn:te}]}function fu(ee){var te=(0,E.useRef)(Po),ie=(0,E.useRef)(qr),ce=Vn(function(){return te.current},[]),Ce=Vn(function(Ot){te.current=Ot},[]),xe=Jn(function(){return{eventName:"touchstart",fn:function(Ot){if(!Ot.defaultPrevented){var bn=ee.findClosestDraggableId(Ot);if(bn){var Mr=ee.tryGetLock(bn,Ge,{sourceEvent:Ot});if(Mr){var zr=Ot.touches[0],ea=zr.clientX,Oa=zr.clientY,Ja={x:ea,y:Oa};ie.current(),gt(Mr,Ja)}}}}}},[ee]),Oe=Vn(function(){var Ot={capture:!0,passive:!1};ie.current=si(window,[xe],Ot)},[xe]),Ge=Vn(function(){var Et=te.current;Et.type!=="IDLE"&&(Et.type==="PENDING"&&clearTimeout(Et.longPressTimerId),Ce(Po),ie.current(),Oe())},[Oe,Ce]),ht=Vn(function(){var Et=te.current;Ge(),Et.type==="DRAGGING"&&Et.actions.cancel({shouldBlockNextClick:!0}),Et.type==="PENDING"&&Et.actions.abort()},[Ge]),At=Vn(function(){var Ot={capture:!0,passive:!1},bn={cancel:ht,completed:Ge,getPhase:ce},Mr=si(window,Vo(bn),Ot),zr=si(window,us(bn),Ot);ie.current=function(){Mr(),zr()}},[ht,ce,Ge]),St=Vn(function(){var Ot=ce();Ot.type!=="PENDING"&&jn(!1);var bn=Ot.actions.fluidLift(Ot.point);Ce({type:"DRAGGING",actions:bn,hasMoved:!1})},[ce,Ce]),gt=Vn(function(Ot,bn){ce().type!=="IDLE"&&jn(!1);var Mr=setTimeout(St,al);Ce({type:"PENDING",point:bn,actions:Ot,longPressTimerId:Mr}),At()},[At,ce,Ce,St]);yn(function(){return Oe(),function(){ie.current();var bn=ce();bn.type==="PENDING"&&(clearTimeout(bn.longPressTimerId),Ce(Po))}},[ce,Oe,Ce]),yn(function(){var Ot=si(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}]);return Ot},[])}function Ks(ee){}var cc={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function Tu(ee,te){if(te==null)return!1;var ie=!!cc[te.tagName.toLowerCase()];if(ie)return!0;var ce=te.getAttribute("contenteditable");return ce==="true"||ce===""?!0:te===ee?!1:Tu(ee,te.parentElement)}function nc(ee,te){var ie=te.target;return Gi(ie)?Tu(ee,ie):!1}var dc=function(ee){return Ir(ee.getBoundingClientRect()).center};function rc(ee){return ee instanceof ki(ee).Element}var Yu=function(){var ee="matches";if(typeof document=="undefined")return ee;var te=[ee,"msMatchesSelector","webkitMatchesSelector"],ie=oi(te,function(ce){return ce in Element.prototype});return ie||ee}();function ac(ee,te){return ee==null?null:ee[Yu](te)?ee:ac(ee.parentElement,te)}function Ku(ee,te){return ee.closest?ee.closest(te):ac(ee,te)}function mr(ee){return"["+Ia.contextId+'="'+ee+'"]'}function _a(ee,te){var ie=te.target;if(!rc(ie))return null;var ce=mr(ee),Ce=Ku(ie,ce);return!Ce||!Gi(Ce)?null:Ce}function Ki(ee,te){var ie=_a(ee,te);return ie?ie.getAttribute(Ia.draggableId):null}function ji(ee,te){var ie="["+ln.contextId+'="'+ee+'"]',ce=xo(document.querySelectorAll(ie)),Ce=oi(ce,function(xe){return xe.getAttribute(ln.id)===te});return!Ce||!Gi(Ce)?null:Ce}function po(ee){ee.preventDefault()}function bo(ee){var te=ee.expected,ie=ee.phase,ce=ee.isLockActive,Ce=ee.shouldWarn;return!(!ce()||te!==ie)}function Oo(ee){var te=ee.lockAPI,ie=ee.store,ce=ee.registry,Ce=ee.draggableId;if(te.isClaimed())return!1;var xe=ce.draggable.findById(Ce);return!(!xe||!xe.options.isEnabled||!Xi(ie.getState(),Ce))}function zo(ee){var te=ee.lockAPI,ie=ee.contextId,ce=ee.store,Ce=ee.registry,xe=ee.draggableId,Oe=ee.forceSensorStop,Ge=ee.sourceEvent,ht=Oo({lockAPI:te,store:ce,registry:Ce,draggableId:xe});if(!ht)return null;var At=Ce.draggable.getById(xe),St=ji(ie,At.descriptor.id);if(!St||Ge&&!At.options.canDragInteractiveElements&&nc(St,Ge))return null;var gt=te.claim(Oe||qr),Et="PRE_DRAG";function Ot(){return At.options.shouldRespectForcePress}function bn(){return te.isActive(gt)}function Mr(ro,Ro){bo({expected:ro,phase:Et,isLockActive:bn,shouldWarn:!0})&&ce.dispatch(Ro())}var zr=Mr.bind(null,"DRAGGING");function ea(ro){function Ro(){te.release(),Et="COMPLETED"}Et!=="PRE_DRAG"&&(Ro(),Et!=="PRE_DRAG"&&jn(!1)),ce.dispatch(Gu(ro.liftActionArgs)),Et="DRAGGING";function zl(Ko,Gl){if(Gl===void 0&&(Gl={shouldBlockNextClick:!1}),ro.cleanup(),Gl.shouldBlockNextClick){var ms=si(window,[{eventName:"click",fn:po,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(ms)}Ro(),ce.dispatch(et({reason:Ko}))}return(0,Te.Z)({isActive:function(){return bo({expected:"DRAGGING",phase:Et,isLockActive:bn,shouldWarn:!1})},shouldRespectForcePress:Ot,drop:function(Gl){return zl("DROP",Gl)},cancel:function(Gl){return zl("CANCEL",Gl)}},ro.actions)}function Oa(ro){var Ro=Jt(function(Ko){zr(function(){return du({client:Ko})})}),zl=ea({liftActionArgs:{id:xe,clientSelection:ro,movementMode:"FLUID"},cleanup:function(){return Ro.cancel()},actions:{move:Ro}});return(0,Te.Z)({},zl,{move:Ro})}function Ja(){var ro={moveUp:function(){return zr(Ws)},moveRight:function(){return zr(El)},moveDown:function(){return zr(eu)},moveLeft:function(){return zr(Mu)}};return ea({liftActionArgs:{id:xe,clientSelection:dc(St),movementMode:"SNAP"},cleanup:qr,actions:ro})}function ni(){var ro=bo({expected:"PRE_DRAG",phase:Et,isLockActive:bn,shouldWarn:!0});ro&&te.release()}var ho={isActive:function(){return bo({expected:"PRE_DRAG",phase:Et,isLockActive:bn,shouldWarn:!1})},shouldRespectForcePress:Ot,fluidLift:Oa,snapLift:Ja,abort:ni};return ho}var Xl=[Ps,hi,fu];function Cs(ee){var te=ee.contextId,ie=ee.store,ce=ee.registry,Ce=ee.customSensors,xe=ee.enableDefaultSensors,Oe=[].concat(xe?Xl:[],Ce||[]),Ge=(0,E.useState)(function(){return Os()})[0],ht=Vn(function(Oa,Ja){Oa.isDragging&&!Ja.isDragging&&Ge.tryAbandon()},[Ge]);yn(function(){var Oa=ie.getState(),Ja=ie.subscribe(function(){var ni=ie.getState();ht(Oa,ni),Oa=ni});return Ja},[Ge,ie,ht]),yn(function(){return Ge.tryAbandon},[Ge.tryAbandon]);var At=Vn(function(ea){return Oo({lockAPI:Ge,registry:ce,store:ie,draggableId:ea})},[Ge,ce,ie]),St=Vn(function(ea,Oa,Ja){return zo({lockAPI:Ge,registry:ce,contextId:te,store:ie,draggableId:ea,forceSensorStop:Oa,sourceEvent:Ja&&Ja.sourceEvent?Ja.sourceEvent:null})},[te,Ge,ce,ie]),gt=Vn(function(ea){return Ki(te,ea)},[te]),Et=Vn(function(ea){var Oa=ce.draggable.findById(ea);return Oa?Oa.options:null},[ce.draggable]),Ot=Vn(function(){Ge.isClaimed()&&(Ge.tryAbandon(),ie.getState().phase!=="IDLE"&&ie.dispatch(re()))},[Ge,ie]),bn=Vn(Ge.isClaimed,[Ge]),Mr=Jn(function(){return{canGetLock:At,tryGetLock:St,findClosestDraggableId:gt,findOptionsForDraggable:Et,tryReleaseLock:Ot,isLockClaimed:bn}},[At,St,gt,Et,Ot,bn]);Ks(Oe);for(var zr=0;zr<Oe.length;zr++)Oe[zr](Mr)}var ru=function(te){return{onBeforeCapture:te.onBeforeCapture,onBeforeDragStart:te.onBeforeDragStart,onDragStart:te.onDragStart,onDragEnd:te.onDragEnd,onDragUpdate:te.onDragUpdate}};function Wl(ee){return ee.current||jn(!1),ee.current}function Qs(ee){var te=ee.contextId,ie=ee.setCallbacks,ce=ee.sensors,Ce=ee.nonce,xe=ee.dragHandleUsageInstructions,Oe=(0,E.useRef)(null);ml();var Ge=Wo(ee),ht=Vn(function(){return ru(Ge.current)},[Ge]),At=Io(te),St=xl({contextId:te,text:xe}),gt=dr(te,Ce),Et=Vn(function(Ko){Wl(Oe).dispatch(Ko)},[]),Ot=Jn(function(){return(0,He.DE)({publishWhileDragging:$s,updateDroppableScroll:uu,updateDroppableIsEnabled:cu,updateDroppableIsCombineEnabled:uc,collectionStarting:su},Et)},[Et]),bn=Mi(),Mr=Jn(function(){return ka(bn,Ot)},[bn,Ot]),zr=Jn(function(){return Yt((0,Te.Z)({scrollWindow:vo,scrollDroppable:Mr.scrollDroppable},(0,He.DE)({move:du},Et)))},[Mr.scrollDroppable,Et]),ea=_o(te),Oa=Jn(function(){return ao({announce:At,autoScroller:zr,dimensionMarshal:Mr,focusMarshal:ea,getResponders:ht,styleMarshal:gt})},[At,zr,Mr,ea,ht,gt]);Oe.current=Oa;var Ja=Vn(function(){var Ko=Wl(Oe),Gl=Ko.getState();Gl.phase!=="IDLE"&&Ko.dispatch(re())},[]),ni=Vn(function(){var Ko=Wl(Oe).getState();return Ko.isDragging||Ko.phase==="DROP_ANIMATING"},[]),ho=Jn(function(){return{isDragging:ni,tryAbort:Ja}},[ni,Ja]);ie(ho);var ro=Vn(function(Ko){return Xi(Wl(Oe).getState(),Ko)},[]),Ro=Vn(function(){return Es(Wl(Oe).getState())},[]),zl=Jn(function(){return{marshal:Mr,focus:ea,contextId:te,canLift:ro,isMovementAllowed:Ro,dragHandleUsageInstructionsId:St,registry:bn}},[te,Mr,St,ea,ro,Ro,bn]);return Cs({contextId:te,store:Oa,registry:bn,customSensors:ce,enableDefaultSensors:ee.enableDefaultSensors!==!1}),(0,E.useEffect)(function(){return Ja},[Ja]),E.createElement(wo.Provider,{value:zl},E.createElement(be,{context:eo,store:Oa},ee.children))}var pu=0;function Lu(){pu=0}function ic(){return Jn(function(){return""+pu++},[])}function Qu(){Lu(),ul()}function Ec(ee){var te=ic(),ie=ee.dragHandleUsageInstructions||Fr.dragHandleUsageInstructions;return E.createElement(tl,null,function(ce){return E.createElement(Qs,{nonce:ee.nonce,contextId:te,setCallbacks:ce,dragHandleUsageInstructions:ie,enableDefaultSensors:ee.enableDefaultSensors,sensors:ee.sensors,onBeforeCapture:ee.onBeforeCapture,onBeforeDragStart:ee.onBeforeDragStart,onDragStart:ee.onDragStart,onDragUpdate:ee.onDragUpdate,onDragEnd:ee.onDragEnd},ee.children)})}var Ru=function(te){return function(ie){return te===ie}},Nc=Ru("scroll"),Oc=Ru("auto"),Mc=Ru("visible"),gl=function(te,ie){return ie(te.overflowX)||ie(te.overflowY)},Tc=function(te,ie){return ie(te.overflowX)&&ie(te.overflowY)},oc=function(te){var ie=window.getComputedStyle(te),ce={overflowX:ie.overflowX,overflowY:ie.overflowY};return gl(ce,Nc)||gl(ce,Oc)},Xu=function(){return!1;var te,ie,ce,Ce},Gs=function ee(te){return te==null?null:te===document.body?Xu()?te:null:te===document.documentElement?null:oc(te)?te:ee(te.parentElement)},fc=function(ee){if(ee)var te=Gs(ee.parentElement)},Ju=function(ee){return{x:ee.scrollLeft,y:ee.scrollTop}},bc=function ee(te){if(!te)return!1;var ie=window.getComputedStyle(te);return ie.position==="fixed"?!0:ee(te.parentElement)},Cc=function(ee){var te=Gs(ee),ie=bc(ee);return{closestScrollable:te,isFixedOnPage:ie}},xc=function(ee){var te=ee.descriptor,ie=ee.isEnabled,ce=ee.isCombineEnabled,Ce=ee.isFixedOnPage,xe=ee.direction,Oe=ee.client,Ge=ee.page,ht=ee.closest,At=function(){if(!ht)return null;var Ot=ht.scrollSize,bn=ht.client,Mr=gi({scrollHeight:Ot.scrollHeight,scrollWidth:Ot.scrollWidth,height:bn.paddingBox.height,width:bn.paddingBox.width});return{pageMarginBox:ht.page.marginBox,frameClient:bn,scrollSize:Ot,shouldClipSubject:ht.shouldClipSubject,scroll:{initial:ht.scroll,current:ht.scroll,max:Mr,diff:{value:Pr,displacement:Pr}}}}(),St=xe==="vertical"?Ut:an,gt=ai({page:Ge,withPlaceholder:null,axis:St,frame:At}),Et={descriptor:te,isCombineEnabled:ce,isFixedOnPage:Ce,axis:St,isEnabled:ie,client:Oe,page:Ge,frame:At,subject:gt};return Et},wc=function(te,ie){var ce=Wn(te);if(!ie||te!==ie)return ce;var Ce=ce.paddingBox.top-ie.scrollTop,xe=ce.paddingBox.left-ie.scrollLeft,Oe=Ce+ie.scrollHeight,Ge=xe+ie.scrollWidth,ht={top:Ce,right:Ge,bottom:Oe,left:xe},At=Sn(ht,ce.border),St=Jr({borderBox:At,margin:ce.margin,border:ce.border,padding:ce.padding});return St},Fc=function(ee){var te=ee.ref,ie=ee.descriptor,ce=ee.env,Ce=ee.windowScroll,xe=ee.direction,Oe=ee.isDropDisabled,Ge=ee.isCombineEnabled,ht=ee.shouldClipSubject,At=ce.closestScrollable,St=wc(te,At),gt=qa(St,Ce),Et=function(){if(!At)return null;var bn=Wn(At),Mr={scrollHeight:At.scrollHeight,scrollWidth:At.scrollWidth};return{client:bn,page:qa(bn,Ce),scroll:Ju(At),scrollSize:Mr,shouldClipSubject:ht}}(),Ot=xc({descriptor:ie,isEnabled:!Oe,isCombineEnabled:Ge,isFixedOnPage:ce.isFixedOnPage,direction:xe,client:St,page:gt,closest:Et});return Ot},Lc={passive:!1},pc={passive:!0},hc=function(ee){return ee.shouldPublishImmediately?Lc:pc};function el(ee){var te=(0,E.useContext)(ee);return te||jn(!1),te}var qu=function(te){return te&&te.env.closestScrollable||null};function Rc(ee){var te=(0,E.useRef)(null),ie=el(wo),ce=No("droppable"),Ce=ie.registry,xe=ie.marshal,Oe=Wo(ee),Ge=Jn(function(){return{id:ee.droppableId,type:ee.type,mode:ee.mode}},[ee.droppableId,ee.mode,ee.type]),ht=(0,E.useRef)(Ge),At=Jn(function(){return nn(function(ni,ho){te.current||jn(!1);var ro={x:ni,y:ho};xe.updateDroppableScroll(Ge.id,ro)})},[Ge.id,xe]),St=Vn(function(){var ni=te.current;return!ni||!ni.env.closestScrollable?Pr:Ju(ni.env.closestScrollable)},[]),gt=Vn(function(){var ni=St();At(ni.x,ni.y)},[St,At]),Et=Jn(function(){return Jt(gt)},[gt]),Ot=Vn(function(){var ni=te.current,ho=qu(ni);ni&&ho||jn(!1);var ro=ni.scrollOptions;if(ro.shouldPublishImmediately){gt();return}Et()},[Et,gt]),bn=Vn(function(ni,ho){te.current&&jn(!1);var ro=Oe.current,Ro=ro.getDroppableRef();Ro||jn(!1);var zl=Cc(Ro),Ko={ref:Ro,descriptor:Ge,env:zl,scrollOptions:ho};te.current=Ko;var Gl=Fc({ref:Ro,descriptor:Ge,env:zl,windowScroll:ni,direction:ro.direction,isDropDisabled:ro.isDropDisabled,isCombineEnabled:ro.isCombineEnabled,shouldClipSubject:!ro.ignoreContainerClipping}),ms=zl.closestScrollable;return ms&&(ms.setAttribute(un.contextId,ie.contextId),ms.addEventListener("scroll",Ot,hc(Ko.scrollOptions))),Gl},[ie.contextId,Ge,Ot,Oe]),Mr=Vn(function(){var ni=te.current,ho=qu(ni);return ni&&ho||jn(!1),Ju(ho)},[]),zr=Vn(function(){var ni=te.current;ni||jn(!1);var ho=qu(ni);te.current=null,ho&&(Et.cancel(),ho.removeAttribute(un.contextId),ho.removeEventListener("scroll",Ot,hc(ni.scrollOptions)))},[Ot,Et]),ea=Vn(function(ni){var ho=te.current;ho||jn(!1);var ro=qu(ho);ro||jn(!1),ro.scrollTop+=ni.y,ro.scrollLeft+=ni.x},[]),Oa=Jn(function(){return{getDimensionAndWatchScroll:bn,getScrollWhileDragging:Mr,dragStopped:zr,scroll:ea}},[zr,bn,Mr,ea]),Ja=Jn(function(){return{uniqueId:ce,descriptor:Ge,callbacks:Oa}},[Oa,Ge,ce]);yn(function(){return ht.current=Ja.descriptor,Ce.droppable.register(Ja),function(){te.current&&zr(),Ce.droppable.unregister(Ja)}},[Oa,Ge,zr,Ja,xe,Ce.droppable]),yn(function(){te.current&&xe.updateDroppableIsEnabled(ht.current.id,!ee.isDropDisabled)},[ee.isDropDisabled,xe]),yn(function(){te.current&&xe.updateDroppableIsCombineEnabled(ht.current.id,ee.isCombineEnabled)},[ee.isCombineEnabled,xe])}function hu(){}var Sc={width:0,height:0,margin:ia},lc=function(te){var ie=te.isAnimatingOpenOnMount,ce=te.placeholder,Ce=te.animate;return ie||Ce==="close"?Sc:{height:ce.client.borderBox.height,width:ce.client.borderBox.width,margin:ce.client.margin}},Zc=function(te){var ie=te.isAnimatingOpenOnMount,ce=te.placeholder,Ce=te.animate,xe=lc({isAnimatingOpenOnMount:ie,placeholder:ce,animate:Ce});return{display:ce.display,boxSizing:"border-box",width:xe.width,height:xe.height,marginTop:xe.margin.top,marginRight:xe.margin.right,marginBottom:xe.margin.bottom,marginLeft:xe.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:Ce!=="none"?In.placeholder:null}};function Zl(ee){var te=(0,E.useRef)(null),ie=Vn(function(){te.current&&(clearTimeout(te.current),te.current=null)},[]),ce=ee.animate,Ce=ee.onTransitionEnd,xe=ee.onClose,Oe=ee.contextId,Ge=(0,E.useState)(ee.animate==="open"),ht=Ge[0],At=Ge[1];(0,E.useEffect)(function(){return ht?ce!=="open"?(ie(),At(!1),hu):te.current?hu:(te.current=setTimeout(function(){te.current=null,At(!1)}),ie):hu},[ce,ht,ie]);var St=Vn(function(Et){Et.propertyName==="height"&&(Ce(),ce==="close"&&xe())},[ce,xe,Ce]),gt=Zc({isAnimatingOpenOnMount:ht,animate:ee.animate,placeholder:ee.placeholder});return E.createElement(ee.placeholder.tagName,{style:gt,"data-rbd-placeholder-context-id":Oe,onTransitionEnd:St,ref:ee.innerRef})}var jc=E.memo(Zl),mc=E.createContext(null);function Dc(ee){ee&&Gi(ee)||jn(!1)}function Zu(ee){return typeof ee=="boolean"}function a(ee,te){te.forEach(function(ie){return ie(ee)})}var y=[function(te){var ie=te.props;ie.droppableId||jn(!1),typeof ie.droppableId!="string"&&jn(!1)},function(te){var ie=te.props;Zu(ie.isDropDisabled)||jn(!1),Zu(ie.isCombineEnabled)||jn(!1),Zu(ie.ignoreContainerClipping)||jn(!1)},function(te){var ie=te.getDroppableRef;Dc(ie())}],x=[function(te){var ie=te.props,ce=te.getPlaceholderRef;if(ie.placeholder)var Ce=ce()}],b=[function(te){var ie=te.props;ie.renderClone||jn(!1)},function(te){var ie=te.getPlaceholderRef;ie()&&jn(!1)}];function z(ee){wa(function(){a(ee,y),ee.props.mode==="standard"&&a(ee,x),ee.props.mode==="virtual"&&a(ee,b)})}var oe=function(ee){Pe(te,ee);function te(){for(var ce,Ce=arguments.length,xe=new Array(Ce),Oe=0;Oe<Ce;Oe++)xe[Oe]=arguments[Oe];return ce=ee.call.apply(ee,[this].concat(xe))||this,ce.state={isVisible:!!ce.props.on,data:ce.props.on,animate:ce.props.shouldAnimate&&ce.props.on?"open":"none"},ce.onClose=function(){ce.state.animate==="close"&&ce.setState({isVisible:!1})},ce}te.getDerivedStateFromProps=function(Ce,xe){return Ce.shouldAnimate?Ce.on?{isVisible:!0,data:Ce.on,animate:"open"}:xe.isVisible?{isVisible:!0,data:xe.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:!!Ce.on,data:Ce.on,animate:"none"}};var ie=te.prototype;return ie.render=function(){if(!this.state.isVisible)return null;var Ce={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(Ce)},te}(E.PureComponent),de={dragging:5e3,dropAnimating:4500},Ee=function(te,ie){return ie?In.drop(ie.duration):te?In.snap:In.fluid},we=function(te,ie){return te?ie?Pn.opacity.drop:Pn.opacity.combining:null},je=function(te){return te.forceShouldAnimate!=null?te.forceShouldAnimate:te.mode==="SNAP"};function yt(ee){var te=ee.dimension,ie=te.client,ce=ee.offset,Ce=ee.combineWith,xe=ee.dropping,Oe=!!Ce,Ge=je(ee),ht=!!xe,At=ht?Gn.drop(ce,Oe):Gn.moveTo(ce),St={position:"fixed",top:ie.marginBox.top,left:ie.marginBox.left,boxSizing:"border-box",width:ie.borderBox.width,height:ie.borderBox.height,transition:Ee(Ge,xe),transform:At,opacity:we(Oe,ht),zIndex:ht?de.dropAnimating:de.dragging,pointerEvents:"none"};return St}function Bt(ee){return{transform:Gn.moveTo(ee.offset),transition:ee.shouldAnimateDisplacement?null:"none"}}function sn(ee){return ee.type==="DRAGGING"?yt(ee):Bt(ee)}function tn(ee,te,ie){ie===void 0&&(ie=Pr);var ce=window.getComputedStyle(te),Ce=te.getBoundingClientRect(),xe=aa(Ce,ce),Oe=qa(xe,ie),Ge={client:xe,tagName:te.tagName.toLowerCase(),display:ce.display},ht={x:xe.marginBox.width,y:xe.marginBox.height},At={descriptor:ee,placeholder:Ge,displaceBy:ht,client:xe,page:Oe};return At}function Qn(ee){var te=No("draggable"),ie=ee.descriptor,ce=ee.registry,Ce=ee.getDraggableRef,xe=ee.canDragInteractiveElements,Oe=ee.shouldRespectForcePress,Ge=ee.isEnabled,ht=Jn(function(){return{canDragInteractiveElements:xe,shouldRespectForcePress:Oe,isEnabled:Ge}},[xe,Ge,Oe]),At=Vn(function(Ot){var bn=Ce();return bn||jn(!1),tn(ie,bn,Ot)},[ie,Ce]),St=Jn(function(){return{uniqueId:te,descriptor:ie,options:ht,getDimension:At}},[ie,At,ht,te]),gt=(0,E.useRef)(St),Et=(0,E.useRef)(!0);yn(function(){return ce.draggable.register(gt.current),function(){return ce.draggable.unregister(gt.current)}},[ce.draggable]),yn(function(){if(Et.current){Et.current=!1;return}var Ot=gt.current;gt.current=St,ce.draggable.update(St,Ot)},[St,ce.draggable])}function gr(ee,te,ie){wa(function(){function ce(xe){return"Draggable[id: "+xe+"]: "}var Ce=ee.draggableId;Ce||jn(!1),typeof Ce!="string"&&jn(!1),ii(ee.index)||jn(!1),ee.mapped.type!=="DRAGGING"&&(Dc(ie()),ee.isEnabled&&(Ui(te,Ce)||jn(!1)))})}function Hr(ee){}function fa(ee){ee.preventDefault()}function Ra(ee){var te=(0,E.useRef)(null),ie=Vn(function(Ko){te.current=Ko},[]),ce=Vn(function(){return te.current},[]),Ce=el(wo),xe=Ce.contextId,Oe=Ce.dragHandleUsageInstructionsId,Ge=Ce.registry,ht=el(mc),At=ht.type,St=ht.droppableId,gt=Jn(function(){return{id:ee.draggableId,index:ee.index,type:At,droppableId:St}},[ee.draggableId,ee.index,At,St]),Et=ee.children,Ot=ee.draggableId,bn=ee.isEnabled,Mr=ee.shouldRespectForcePress,zr=ee.canDragInteractiveElements,ea=ee.isClone,Oa=ee.mapped,Ja=ee.dropAnimationFinished;if(gr(ee,xe,ce),Hr(ea),!ea){var ni=Jn(function(){return{descriptor:gt,registry:Ge,getDraggableRef:ce,canDragInteractiveElements:zr,shouldRespectForcePress:Mr,isEnabled:bn}},[gt,Ge,ce,zr,Mr,bn]);Qn(ni)}var ho=Jn(function(){return bn?{tabIndex:0,role:"button","aria-describedby":Oe,"data-rbd-drag-handle-draggable-id":Ot,"data-rbd-drag-handle-context-id":xe,draggable:!1,onDragStart:fa}:null},[xe,Oe,Ot,bn]),ro=Vn(function(Ko){Oa.type==="DRAGGING"&&Oa.dropping&&Ko.propertyName==="transform"&&Ja()},[Ja,Oa]),Ro=Jn(function(){var Ko=sn(Oa),Gl=Oa.type==="DRAGGING"&&Oa.dropping?ro:null,ms={innerRef:ie,draggableProps:{"data-rbd-draggable-context-id":xe,"data-rbd-draggable-id":Ot,style:Ko,onTransitionEnd:Gl},dragHandleProps:ho};return ms},[xe,ho,Ot,Oa,ro,ie]),zl=Jn(function(){return{draggableId:gt.id,type:gt.type,source:{index:gt.index,droppableId:gt.droppableId}}},[gt.droppableId,gt.id,gt.index,gt.type]);return Et(Ro,Oa.snapshot,zl)}var ua=function(ee,te){return ee===te},Ua=function(ee){var te=ee.combine,ie=ee.destination;return ie?ie.droppableId:te?te.droppableId:null},Si=function(te){return te.combine?te.combine.draggableId:null},li=function(te){return te.at&&te.at.type==="COMBINE"?te.at.combine.draggableId:null};function Co(){var ee=nn(function(Ce,xe){return{x:Ce,y:xe}}),te=nn(function(Ce,xe,Oe,Ge,ht){return{isDragging:!0,isClone:xe,isDropAnimating:!!ht,dropAnimation:ht,mode:Ce,draggingOver:Oe,combineWith:Ge,combineTargetFor:null}}),ie=nn(function(Ce,xe,Oe,Ge,ht,At,St){return{mapped:{type:"DRAGGING",dropping:null,draggingOver:ht,combineWith:At,mode:xe,offset:Ce,dimension:Oe,forceShouldAnimate:St,snapshot:te(xe,Ge,ht,At,null)}}}),ce=function(xe,Oe){if(xe.isDragging){if(xe.critical.draggable.id!==Oe.draggableId)return null;var Ge=xe.current.client.offset,ht=xe.dimensions.draggables[Oe.draggableId],At=Fl(xe.impact),St=li(xe.impact),gt=xe.forceShouldAnimate;return ie(ee(Ge.x,Ge.y),xe.movementMode,ht,Oe.isClone,At,St,gt)}if(xe.phase==="DROP_ANIMATING"){var Et=xe.completed;if(Et.result.draggableId!==Oe.draggableId)return null;var Ot=Oe.isClone,bn=xe.dimensions.draggables[Oe.draggableId],Mr=Et.result,zr=Mr.mode,ea=Ua(Mr),Oa=Si(Mr),Ja=xe.dropDuration,ni={duration:Ja,curve:Gt.drop,moveTo:xe.newHomeClientOffset,opacity:Oa?Pn.opacity.drop:null,scale:Oa?Pn.scale.drop:null};return{mapped:{type:"DRAGGING",offset:xe.newHomeClientOffset,dimension:bn,dropping:ni,draggingOver:ea,combineWith:Oa,mode:zr,forceShouldAnimate:null,snapshot:te(zr,Ot,ea,Oa,ni)}}}return null};return ce}function fl(ee){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:ee,combineWith:null}}var es={mapped:{type:"SECONDARY",offset:Pr,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:fl(null)}};function Sl(){var ee=nn(function(Oe,Ge){return{x:Oe,y:Ge}}),te=nn(fl),ie=nn(function(Oe,Ge,ht){return Ge===void 0&&(Ge=null),{mapped:{type:"SECONDARY",offset:Oe,combineTargetFor:Ge,shouldAnimateDisplacement:ht,snapshot:te(Ge)}}}),ce=function(Ge){return Ge?ie(Pr,Ge,!0):null},Ce=function(Ge,ht,At,St){var gt=At.displaced.visible[Ge],Et=!!(St.inVirtualList&&St.effected[Ge]),Ot=Fo(At),bn=Ot&&Ot.draggableId===Ge?ht:null;if(!gt){if(!Et)return ce(bn);if(At.displaced.invisible[Ge])return null;var Mr=Qr(St.displacedBy.point),zr=ee(Mr.x,Mr.y);return ie(zr,bn,!0)}if(Et)return ce(bn);var ea=At.displacedBy.point,Oa=ee(ea.x,ea.y);return ie(Oa,bn,gt.shouldAnimate)},xe=function(Ge,ht){if(Ge.isDragging)return Ge.critical.draggable.id===ht.draggableId?null:Ce(ht.draggableId,Ge.critical.draggable.id,Ge.impact,Ge.afterCritical);if(Ge.phase==="DROP_ANIMATING"){var At=Ge.completed;return At.result.draggableId===ht.draggableId?null:Ce(ht.draggableId,At.result.draggableId,At.impact,At.afterCritical)}return null};return xe}var ks=function(){var te=Co(),ie=Sl(),ce=function(xe,Oe){return te(xe,Oe)||ie(xe,Oe)||es};return ce},xs={dropAnimationFinished:Ft},Vl=zt(ks,xs,null,{context:eo,pure:!0,areStatePropsEqual:ua})(Ra);function hs(ee){var te=el(mc),ie=te.isUsingCloneFor;return ie===ee.draggableId&&!ee.isClone?null:E.createElement(Vl,ee)}function is(ee){var te=typeof ee.isDragDisabled=="boolean"?!ee.isDragDisabled:!0,ie=!!ee.disableInteractiveElementBlocking,ce=!!ee.shouldRespectForcePress;return E.createElement(hs,(0,Te.Z)({},ee,{isClone:!1,isEnabled:te,canDragInteractiveElements:ie,shouldRespectForcePress:ce}))}function Jl(ee){var te=(0,E.useContext)(wo);te||jn(!1);var ie=te.contextId,ce=te.isMovementAllowed,Ce=(0,E.useRef)(null),xe=(0,E.useRef)(null),Oe=ee.children,Ge=ee.droppableId,ht=ee.type,At=ee.mode,St=ee.direction,gt=ee.ignoreContainerClipping,Et=ee.isDropDisabled,Ot=ee.isCombineEnabled,bn=ee.snapshot,Mr=ee.useClone,zr=ee.updateViewportMaxScroll,ea=ee.getContainerForClone,Oa=Vn(function(){return Ce.current},[]),Ja=Vn(function(Fs){Ce.current=Fs},[]),ni=Vn(function(){return xe.current},[]),ho=Vn(function(Fs){xe.current=Fs},[]);z({props:ee,getDroppableRef:Oa,getPlaceholderRef:ni});var ro=Vn(function(){ce()&&zr({maxScroll:Vi()})},[ce,zr]);Rc({droppableId:Ge,type:ht,mode:At,direction:St,isDropDisabled:Et,isCombineEnabled:Ot,ignoreContainerClipping:gt,getDroppableRef:Oa});var Ro=E.createElement(oe,{on:ee.placeholder,shouldAnimate:ee.shouldAnimatePlaceholder},function(Fs){var vu=Fs.onClose,au=Fs.data,Js=Fs.animate;return E.createElement(jc,{placeholder:au,onClose:vu,innerRef:ho,animate:Js,contextId:ie,onTransitionEnd:ro})}),zl=Jn(function(){return{innerRef:Ja,placeholder:Ro,droppableProps:{"data-rbd-droppable-id":Ge,"data-rbd-droppable-context-id":ie}}},[ie,Ge,Ro,Ja]),Ko=Mr?Mr.dragging.draggableId:null,Gl=Jn(function(){return{droppableId:Ge,type:ht,isUsingCloneFor:Ko}},[Ge,Ko,ht]);function ms(){if(!Mr)return null;var Fs=Mr.dragging,vu=Mr.render,au=E.createElement(hs,{draggableId:Fs.draggableId,index:Fs.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},function(Js,gu){return vu(Js,gu,Fs)});return Vr.createPortal(au,ea())}return E.createElement(mc.Provider,{value:Gl},Oe(zl,bn),ms())}var Pl=function(te,ie){return te===ie.droppable.type},Dl=function(te,ie){return ie.draggables[te.draggable.id]},ws=function(){var te={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},ie=(0,Te.Z)({},te,{shouldAnimatePlaceholder:!1}),ce=nn(function(Oe){return{draggableId:Oe.id,type:Oe.type,source:{index:Oe.index,droppableId:Oe.droppableId}}}),Ce=nn(function(Oe,Ge,ht,At,St,gt){var Et=St.descriptor.id,Ot=St.descriptor.droppableId===Oe;if(Ot){var bn=gt?{render:gt,dragging:ce(St.descriptor)}:null,Mr={isDraggingOver:ht,draggingOverWith:ht?Et:null,draggingFromThisWith:Et,isUsingPlaceholder:!0};return{placeholder:St.placeholder,shouldAnimatePlaceholder:!1,snapshot:Mr,useClone:bn}}if(!Ge)return ie;if(!At)return te;var zr={isDraggingOver:ht,draggingOverWith:Et,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:St.placeholder,shouldAnimatePlaceholder:!0,snapshot:zr,useClone:null}}),xe=function(Ge,ht){var At=ht.droppableId,St=ht.type,gt=!ht.isDropDisabled,Et=ht.renderClone;if(Ge.isDragging){var Ot=Ge.critical;if(!Pl(St,Ot))return ie;var bn=Dl(Ot,Ge.dimensions),Mr=Fl(Ge.impact)===At;return Ce(At,gt,Mr,Mr,bn,Et)}if(Ge.phase==="DROP_ANIMATING"){var zr=Ge.completed;if(!Pl(St,zr.critical))return ie;var ea=Dl(zr.critical,Ge.dimensions);return Ce(At,gt,Ua(zr.result)===At,Fl(zr.impact)===At,ea,Et)}if(Ge.phase==="IDLE"&&Ge.completed&&!Ge.shouldFlush){var Oa=Ge.completed;if(!Pl(St,Oa.critical))return ie;var Ja=Fl(Oa.impact)===At,ni=!!(Oa.impact.at&&Oa.impact.at.type==="COMBINE"),ho=Oa.critical.droppable.id===At;return Ja?ni?te:ie:ho?te:ie}return ie};return xe},ju={updateViewportMaxScroll:Bu};function mu(){return document.body||jn(!1),document.body}var cs={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:mu},Xs=zt(ws,ju,null,{context:eo,pure:!0,areStatePropsEqual:ua})(Jl);Xs.defaultProps=cs},38486:function(It,kt){"use strict";var ne;var E=60103,ve=60106,Pe=60107,Te=60108,He=60114,_e=60109,ze=60110,nt=60112,Fe=60113,We=60120,Xe=60115,$e=60116,vt=60121,Ye=60122,Ne=60117,Be=60129,be=60131;if(typeof Symbol=="function"&&Symbol.for){var Ie=Symbol.for;E=Ie("react.element"),ve=Ie("react.portal"),Pe=Ie("react.fragment"),Te=Ie("react.strict_mode"),He=Ie("react.profiler"),_e=Ie("react.provider"),ze=Ie("react.context"),nt=Ie("react.forward_ref"),Fe=Ie("react.suspense"),We=Ie("react.suspense_list"),Xe=Ie("react.memo"),$e=Ie("react.lazy"),vt=Ie("react.block"),Ye=Ie("react.server.block"),Ne=Ie("react.fundamental"),Be=Ie("react.debug_trace_mode"),be=Ie("react.legacy_hidden")}function Ke(Ve){if(typeof Ve=="object"&&Ve!==null){var Ae=Ve.$$typeof;switch(Ae){case E:switch(Ve=Ve.type,Ve){case Pe:case He:case Te:case Fe:case We:return Ve;default:switch(Ve=Ve&&Ve.$$typeof,Ve){case ze:case nt:case $e:case Xe:case _e:return Ve;default:return Ae}}case ve:return Ae}}}var at=_e,fe=E,qe=nt,st=Pe,wt=$e,ft=Xe,ct=ve,Je=He,ut=Te,Se=Fe;ne=ze,ne=at,ne=fe,ne=qe,ne=st,ne=wt,ne=ft,ne=ct,ne=Je,ne=ut,ne=Se,ne=function(){return!1},ne=function(){return!1},kt.isContextConsumer=function(Ve){return Ke(Ve)===ze},ne=function(Ve){return Ke(Ve)===_e},ne=function(Ve){return typeof Ve=="object"&&Ve!==null&&Ve.$$typeof===E},ne=function(Ve){return Ke(Ve)===nt},ne=function(Ve){return Ke(Ve)===Pe},ne=function(Ve){return Ke(Ve)===$e},ne=function(Ve){return Ke(Ve)===Xe},ne=function(Ve){return Ke(Ve)===ve},ne=function(Ve){return Ke(Ve)===He},ne=function(Ve){return Ke(Ve)===Te},ne=function(Ve){return Ke(Ve)===Fe},ne=function(Ve){return typeof Ve=="string"||typeof Ve=="function"||Ve===Pe||Ve===He||Ve===Be||Ve===Te||Ve===Fe||Ve===We||Ve===be||typeof Ve=="object"&&Ve!==null&&(Ve.$$typeof===$e||Ve.$$typeof===Xe||Ve.$$typeof===_e||Ve.$$typeof===ze||Ve.$$typeof===nt||Ve.$$typeof===Ne||Ve.$$typeof===vt||Ve[0]===Ye)},ne=Ke},53410:function(It,kt,ne){"use strict";It.exports=ne(38486)},20441:function(It,kt,ne){var E={"./aac.svg":25447,"./amr.svg":3368,"./avi.svg":46703,"./bmp.svg":65650,"./default.svg":3448,"./doc.svg":71486,"./docx.svg":13607,"./flv.svg":56019,"./gif.svg":12397,"./jpeg.svg":17090,"./jpg.svg":39316,"./m4a.svg":88091,"./md.svg":18314,"./mkv.svg":79722,"./mov.svg":33399,"./mp3.svg":64734,"./mp4.svg":9358,"./mpeg.svg":81897,"./ogg.svg":81071,"./opus.svg":11161,"./pdf.svg":54240,"./png.svg":22976,"./ppt.svg":20820,"./pptx.svg":661,"./txt.svg":20421,"./wav.svg":33506,"./webm.svg":25833,"./wma.svg":16078,"./wmv.svg":36699,"./wps.svg":47621,"./xls.svg":9367,"./xlsx.svg":42872};function ve(Te){var He=Pe(Te);return ne(He)}function Pe(Te){if(!ne.o(E,Te)){var He=new Error("Cannot find module '"+Te+"'");throw He.code="MODULE_NOT_FOUND",He}return E[Te]}ve.keys=function(){return Object.keys(E)},ve.resolve=Pe,It.exports=ve,ve.id=20441},25447:function(It,kt,ne){"use strict";It.exports=ne.p+"static/aac.b3e9a3ba.svg"},3368:function(It,kt,ne){"use strict";It.exports=ne.p+"static/amr.ce411d51.svg"},46703:function(It,kt,ne){"use strict";It.exports=ne.p+"static/avi.d7b8adf7.svg"},65650:function(It,kt,ne){"use strict";It.exports=ne.p+"static/bmp.c62f88c4.svg"},3448:function(It,kt,ne){"use strict";It.exports=ne.p+"static/default.f48aef2c.svg"},71486:function(It,kt,ne){"use strict";It.exports=ne.p+"static/doc.e6c75d4c.svg"},13607:function(It,kt,ne){"use strict";It.exports=ne.p+"static/docx.150535e3.svg"},56019:function(It,kt,ne){"use strict";It.exports=ne.p+"static/flv.43967063.svg"},12397:function(It,kt,ne){"use strict";It.exports=ne.p+"static/gif.b2122741.svg"},17090:function(It,kt,ne){"use strict";It.exports=ne.p+"static/jpeg.fffee469.svg"},39316:function(It,kt,ne){"use strict";It.exports=ne.p+"static/jpg.2fb4a360.svg"},88091:function(It,kt,ne){"use strict";It.exports=ne.p+"static/m4a.7994dbc0.svg"},18314:function(It,kt,ne){"use strict";It.exports=ne.p+"static/md.1f56aa84.svg"},79722:function(It,kt,ne){"use strict";It.exports=ne.p+"static/mkv.f43ec502.svg"},33399:function(It,kt,ne){"use strict";It.exports=ne.p+"static/mov.1e1eebb7.svg"},64734:function(It,kt,ne){"use strict";It.exports=ne.p+"static/mp3.a7e45c91.svg"},9358:function(It,kt,ne){"use strict";It.exports=ne.p+"static/mp4.31a2d9d7.svg"},81897:function(It,kt,ne){"use strict";It.exports=ne.p+"static/mpeg.9a0dfa86.svg"},81071:function(It,kt,ne){"use strict";It.exports=ne.p+"static/ogg.0394dc54.svg"},11161:function(It,kt,ne){"use strict";It.exports=ne.p+"static/opus.faad335c.svg"},54240:function(It,kt,ne){"use strict";It.exports=ne.p+"static/pdf.5d12b224.svg"},22976:function(It,kt,ne){"use strict";It.exports=ne.p+"static/png.eacc8c1c.svg"},20820:function(It,kt,ne){"use strict";It.exports=ne.p+"static/ppt.d710530e.svg"},661:function(It,kt,ne){"use strict";It.exports=ne.p+"static/pptx.d78add0d.svg"},20421:function(It,kt,ne){"use strict";It.exports=ne.p+"static/txt.53f7213d.svg"},33506:function(It,kt,ne){"use strict";It.exports=ne.p+"static/wav.a76e7dde.svg"},25833:function(It,kt,ne){"use strict";It.exports=ne.p+"static/webm.3a7e6ebc.svg"},16078:function(It,kt,ne){"use strict";It.exports=ne.p+"static/wma.a57b430b.svg"},36699:function(It,kt,ne){"use strict";It.exports=ne.p+"static/wmv.f22ee4a1.svg"},47621:function(It,kt,ne){"use strict";It.exports=ne.p+"static/wps.f48aef2c.svg"},9367:function(It,kt,ne){"use strict";It.exports=ne.p+"static/xls.0db636e2.svg"},42872:function(It,kt,ne){"use strict";It.exports=ne.p+"static/xlsx.5d09490a.svg"},4977:function(It){"use strict";It.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMwAAACaCAYAAADl9acYAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXQd4U1Ubfs/NaJtO9kzLahFQEJkiUBBFUFFkCCjiAAVFERT5FREQQQXBBcpysWRP2RtkKRsEOphNodCZdDfjnv85CU2TZt2bhABNDw9PmtzvrO+c957xLQIP0pkz1yrQIEmwwcDzHhTj91klEo7jpcG5zetWUJdmRjmPvTM9GI9JgSGvadOoLE9KJJ5kPp2YXLtZdO1kT8ooz2vigCNelvPYezPEG7z0CDAn4pJqPvJA5A3vdcl/S3LEy3Iee29OeIOX5YDx3nh4VFI5YDxin6DM5YARxKb7g6gcMHd+nMoBc+d57LKGhCQ1ZURBCoVL2nKCO8sBZWW50x1TOWDuLP8FlV4OGEFs8glROWB8wmbPKikHjGf882bucsB4k5t3qKxywNwhxrpRbJkGTOx0ehlA3d9e5VEtzA3ulGe55zmg1QOfrCVo34BgQGvr5rLDRl4RRZG+5NjBESBc4FHw1LlrCAuPsCo0JjKi7J5hY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use strict";It.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAAZxJREFUOBGtlL1Ow0AMgH2XUIkOLFXVASgTsDHxBIAEzAwMPBQjT8AATGVBgEBCYmHmFcICYmBogCbNYSe52HUTVZWwFJ3PP599Z+WMcy6Af5SwYkWnLYifTyBzq5XNK8YNwbbvYP381ZuaVlN1+HJwAc4d1QYaA+gDsHYANrhGHTdCMtSDMILtwSMDn7ZiANPKwyjeQ0Reo4r1gEoEwRkDb7spdPcBeocMk1Cv00oii5L+fgPwcR/zHfb3AJY2sEpUVLOUhB/l+w7I1iS9TYDFrM3AzhqGDstPZ3li2Z12U2WLvk4fGJh+F0elYN8ZrbWiA7igAP4WR6sFzDAKPgPHP0VnlMsFS5IyyIGoeAamCKybYI5UQLWVE2fgGI/s72wqQXRd9jyxiHgGJtihFxGQm8Qd5XvtF3fEQOrQH9mDm1Z9hyJuEphXIq9uSWSQqv8a4RbAUTFdcs7gifwplYGjT3wzbPFz6Q70EZv8WZoxMP66ApMc86inirNBA8njcFIuvOTXhowPyzuQJiukzi3hQgS7b+I9nJtQn/AHsLGsvlcPPWsAAAAASUVORK5CYII="},5623:function(It){"use strict";It.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IArs4c6QAAAedJREFUOBGtVDtLA0EQ/jY5z7dgEBVJLHyAitpYWQqKjVZa5BfEKpWlWPgrLG0UEdTexkILRUQiSBBBCAhGUINFHia53Dm7ufXcvfgIOHA3O69vvtnbPeY4ThD/KIF/xBJQhg/wbmkZtj0KMKbEGNIweg4xuPmq+DWDKSOfz2/AqaxpOVWzip8HC2xTsydfjoMHhMd2VMDjkSswTPqSucOhh3PmupaIediBOnL52UTLENC7QCV1bC9vkjkF3i4WVUDeORIF2sf5ymOk7mY1pr87hoHEhekHDLYQOfck8c6c6OeYfPHN3LyOxEB2KwQru0LrBvTPdaG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CGCYWbZ5SAAAAAAElFTkSuQmCC"},72054:function(It,kt,ne){"use strict";ne.d(kt,{Z:function(){return ve}});var E=ne(68688);function ve(Pe,Te){var He=typeof Symbol!="undefined"&&Pe[Symbol.iterator]||Pe["@@iterator"];if(!He){if(Array.isArray(Pe)||(He=(0,E.Z)(Pe))||Te&&Pe&&typeof Pe.length=="number"){He&&(Pe=He);var _e=0,ze=function(){};return{s:ze,n:function(){return _e>=Pe.length?{done:!0}:{done:!1,value:Pe[_e++]}},e:function($e){throw $e},f:ze}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var nt,Fe=!0,We=!1;return{s:function(){He=He.call(Pe)},n:function(){var $e=He.next();return Fe=$e.done,$e},e:function($e){We=!0,nt=$e},f:function(){try{Fe||He.return==null||He.return()}finally{if(We)throw nt}}}}}}]);