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.
1106 lines
835 KiB
1106 lines
835 KiB
(self.webpackChunk=self.webpackChunk||[]).push([[1461],{2018:function(){"use strict"},40862:function(rn,$t){"use strict";$t.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},86787:function(rn,$t){"use strict";$t.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"}},75544: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 rn={},$t="5.0",le={},re=null,$e=!1,je=!1,Qe=null,Ce=!1,he=null,Ne=null,Ve=0;Ve<arguments.length;Ve++){var we=arguments[Ve];if(we!==null)switch(typeof we){case"number":$t=we.toFixed(1);break;case"string":we.match(new RegExp("^[0-9]\\.[0-9]+$"))?$t=we:Qe=we;break;case"object":typeof we.is3D!="undefined"?re=we:le=we;break;case"boolean":$e=we,je=!0;break}}re===null&&(re={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},le.material_id!==void 0&&!je&&($e=!0)),Qe!==null&&le.id===void 0&&(le.id=Qe);var de="",Oe="",xe=!1,wt=null,Xe=null,Pe=null,ke=!1,Ee=null,qe=null,lt=null,xt=null,Ae=null;le.height!==void 0&&(le.height=Math.round(le.height)),le.width!==void 0&&(le.width=Math.round(le.width));var me=function(Te){return parseFloat(Te)>4?parseFloat(Te):5};rn.setHTML5Codebase=function(Te,ut){Ne=Te,Ge(Te,ut)},rn.setJavaCodebase=rn.setJavaCodebaseVersion=rn.isCompiledInstalled=rn.setPreCompiledScriptPath=rn.setPreCompiledResourcePath=function(){},rn.setHTML5CodebaseVersion=function(Te,ut){var at=parseFloat(Te);if(at!==NaN&&at<5){console.log("The GeoGebra HTML5 codebase version "+at+" is deprecated. Using version latest instead.");return}he=Te,ce(Te,ut)},rn.getHTML5CodebaseVersion=function(){return Xe},rn.getParameters=function(){return le},rn.setFontsCSSURL=function(Te){xt=Te},rn.setGiacJSURL=function(Te){},rn.setJNLPFile=function(Te){de=Te},rn.setJNLPBaseDir=function(Te){},rn.inject=function(){function Te(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var ut="auto",at=le.id,_t,He=!1,De=0;De<arguments.length;De++){var Se=arguments[De];typeof Se=="string"?(Se=Se.toLowerCase(),Se.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?ut=Se:at=arguments[De]):typeof Se=="boolean"?He=Se:Se instanceof HTMLElement&&(_t=Se)}ze();function ze(){if(!Ce){setTimeout(ze,200);return}ut=ft(ut);var st=_t||document.getElementById(at);if(!st){console.log("possibly bug on ajax loading? ");return}if(rn.removeExistingApplet(st,!1),le.width===void 0&&st.clientWidth&&(le.width=st.clientWidth),le.height===void 0&&st.clientHeight&&(le.height=st.clientHeight),!(le.width&&le.height)&&ut==="html5"&&(delete le.width,delete le.height),wt=ut,ut==="screenshot")_e(st,le);else{var Be=!1;le.hasOwnProperty("playButton")&&le.playButton||le.hasOwnProperty("clickToLoad")&&le.clickToLoad?Be=!0:le.hasOwnProperty("playButtonAutoDecide")&&le.playButtonAutoDecide&&(Be=(!Re()||Te())&&We()),Be?(wt="screenshot",Kt(st,le,He,ut)):Je(st,le,He)}}};function Re(){try{return window.self!==window.top}catch(Te){return!0}}function We(){return le.hasOwnProperty("screenshotGenerator")&&le.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}rn.getViews=function(){return re},rn.isJavaInstalled=function(){return!1};var Nt=function(Te){var ut=function(De){var Se=JSON.parse(De),ze=function(it){return it.type=="G"||it.type=="E"},st=Se.elements?Se.elements.filter(ze)[0]:Se;if(!st||!st.url){at();return}le.fileName=st.url,ye(st.settings||{}),re.is3D=!0;var Be="https://www.geogebra.org/images/";rn.setPreviewImage(Ee||st.previewUrl,Be+"GeoGebra_loading.png",Be+"applet_play.png"),Te()},at=function(){le.onError&&le.onError(),vt("Error: Fetching material (id "+le.material_id+") failed.",le)},_t=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",He="/materials/"+le.material_id+"?scope=basic";Le("https://"+_t+"/api/proxy.php?path="+encodeURIComponent(He),ut,at)};function ye(Te){var ut=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(at){Te[at]=!!Te[at]}),ut.forEach(function(at){le[at]===void 0&&Te[at]!==void 0&&(le[at]=Te[at])}),le.showToolBarHelp===void 0&&(le.showToolBarHelp=le.showToolBar)}function Le(Te,ut,at){var _t=new XMLHttpRequest;_t.open("GET",Te),_t.onload=function(){ut(_t.responseText)},_t.onerror=at,_t.send()}rn.isHTML5Installed=function(){return!0},rn.getLoadedAppletType=function(){return wt},rn.setPreviewImage=function(Te,ut,at){Ee=Te,qe=ut,lt=at},rn.removeExistingApplet=function(Te,ut){var at;typeof Te=="string"&&(Te=document.getElementById(Te)),wt=null;var _t=null;for(at=0;at<Te.childNodes.length;at++){var He=Te.childNodes[at],De=He.className;De==="applet_screenshot"?ut?(He.style.display="block",wt="screenshot"):He.style.display="none":De!=="applet_scaler prerender"&&(Te.removeChild(He),_t=De&&De.indexOf("appletParameters")!=-1?He.id:null,at--)}var Se=le.id!==void 0?le.id:_t,ze=window[Se];ze&&typeof ze.getBase64=="function"&&(ze.remove(),window[Se]=null)},rn.refreshHitPoints=function(){if(me(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var Te=rn.getAppletObject();return Te&&typeof Te.recalculateEnvironments=="function"?(Te.recalculateEnvironments(),!0):!1},rn.startAnimation=function(){var Te=rn.getAppletObject();return Te&&typeof Te.startAnimation=="function"?(Te.startAnimation(),!0):!1},rn.stopAnimation=function(){var Te=rn.getAppletObject();return Te&&typeof Te.stopAnimation=="function"?(Te.stopAnimation(),!0):!1},rn.getAppletObject=function(){var Te=le.id!==void 0?le.id:"ggbApplet";return window[Te]},rn.resize=function(){};var Ie=function(Te,ut,at){var _t=document.createElement("param");_t.setAttribute("name",ut),_t.setAttribute("value",at),Te.appendChild(_t)},Me=function(Te){return Te&&Te!=="false"},Je=function(Te,ut,at){me(Xe)<=4.2&&(at=!0);var _t=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==Xe||ggbHTML5LoadedCodebaseIsWebSimple&&!ke)&&(_t=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var He=document.createElement("div");He.classList.add("appletParameters","notranslate");var De=ut.width,Se=ut.height;if(ut.disableAutoScale=ut.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():ut.disableAutoScale,ut.width!==void 0)if(me(Xe)<=4.4)Me(ut.showToolBar)&&(ut.height-=7),Me(ut.showAlgebraInput)&&(ut.height-=37),ut.width<605&&Me(ut.showToolBar)&&(ut.width=605,De=605);else{var ze=100;(Me(ut.showToolBar)||Me(ut.showMenuBar))&&(ut.hasOwnProperty("customToolBar")&&(ut.customToolbar=ut.customToolBar),ze=Me(ut.showMenuBar)?245:155),De<ze&&(ut.width=ze,De=ze)}He.style.border="none",He.style.display="inline-block";for(var st in ut)ut.hasOwnProperty(st)&&st!=="appletOnLoad"&&He.setAttribute("data-param-"+st,ut[st]);xt&&He.setAttribute("data-param-fontscssurl",xt),rn.resize=function(){GGBAppletUtils.responsiveResize(Te,ut)},window.addEventListener("resize",function(z){rn.resize()});var Be=typeof ut.appletOnLoad=="function"?ut.appletOnLoad:function(){};if(!at&&ut.width!==void 0){ut.hasOwnProperty("showSplash")||He.setAttribute("data-param-showSplash","false");var it=Te.querySelector(".applet_scaler.prerender"),tt=it!==null;if(tt)var Fe=it.querySelector(".ggb_preview");else{var Fe=Ct(De,Se,ut.borderColor,!1);it=document.createElement("div"),it.className="applet_scaler",it.style.position="relative",it.style.display="block",it.style.width=De+"px",it.style.height=Se+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(it,"66%"),me(Xe)>=5?(ut.appletOnLoad=function(z){var ie=Te.querySelector(".ggb_preview");ie&&ie.parentNode.removeChild(ie),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(it),window.GGBT_wsf_view&&$(window).trigger("resize"),Be(z)},tt||it.appendChild(Fe)):He.appendChild(Fe),it.appendChild(He),tt||Te.appendChild(it),setTimeout(function(){rn.resize()},1)}else{var pt=document.createElement("div");pt.className="applet_scaler",pt.style.position="relative",pt.style.display="block",pt.appendChild(He),Te.appendChild(pt),ut.appletOnLoad=function(z){rn.resize(),Be(z)}}function Ye(z,ie){ie&&typeof ie.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(z,ie.appletOnLoad):renderGGBElement(z),vt("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",ie)}function ge(z,ie){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:z,params:ie}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(se){Ye(se.article,se.params)}),html5AppletsToProcess=null)},me(Xe)<5&&(z.className+=" geogebraweb")):Ye(z,ie)}if(_t){scriptLoadStarted=!0;for(var ct=0;ct<He.childNodes.length;ct++){var jt=He.childNodes[ct].tagName;jt==="TABLE"&&(He.removeChild(He.childNodes[ct]),ct--)}if(ggbHTML5LoadedScript!==null){var Wt=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');Wt!=null&&Wt.parentNode.removeChild(Wt)}var ae=document.createElement("script"),ee=function(){ge(He,ut)};ae.src=Oe+Pe,ggbHTML5LoadedCodebaseIsWebSimple=ke,ggbHTML5LoadedCodebaseVersion=Xe,ggbHTML5LoadedScript=ae.src,vt("GeoGebra HTML5 codebase loaded: '"+Oe+"'.",ut),!Ne&&(!he||he=="5.0")?(ke?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),ee()):Oe.requirejs?__webpack_require__.e(7989).then(function(){var z=[__webpack_require__(87989)];ee.apply(null,z)}.bind(this)).catch(__webpack_require__.oe):(ae.onload=ee,Te.appendChild(ae))}else ge(He,ut);ut.height=Se,ut.width=De},_e=function(Te,ut,at){var _t=Ct(ut.width,ut.height,ut.borderColor,at),He=document.createElement("div");He.style.position="relative",He.style.display="block",He.style.width=ut.width+"px",He.style.height=ut.height+"px",He.className="applet_screenshot applet_scaler"+(at?" applet_screenshot_play":""),He.appendChild(_t);var De=GGBAppletUtils.getScale(ut,Te,at);at?(Te.appendChild(Et()),window.GGBT_wsf_view||(Te.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(He,"66%"),Te.appendChild(He),De!==1&&!isNaN(De)&&(GGBAppletUtils.scaleElement(He,De),He.style.width=ut.width+"px",He.style.height=ut.height+"px",He.parentNode.style.width=ut.width*De+"px",He.parentNode.style.height=ut.height*De+"px"),rn.resize=function(){et(Te,_t,He,at)},window.addEventListener("resize",function(Se){rn.resize()}),rn.resize()};function et(Te,ut,at,_t){if(Te.contains(ut)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Te.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(Te)}var He=GGBAppletUtils.getScale(le,Te,_t);at.parentNode!==null&&(!isNaN(He)&&He!==1?(GGBAppletUtils.scaleElement(at,He),at.parentNode.style.width=le.width*He+"px",at.parentNode.style.height=le.height*He+"px"):(GGBAppletUtils.scaleElement(at,1),at.parentNode.style.width=le.width+"px",at.parentNode.style.height=le.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(Te),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}rn.onExitFullscreen=function(Te,ut){ut.appendChild(Te)};var Kt=function(Te,ut,at,_t){_e(Te,ut,!0);for(var He=function(){var ze=[];for(Se=0;Se<Te.childNodes.length;Se++)ze.push(Te.childNodes[Se]);if(window.GGBT_wsf_view){var st=window.GGBT_wsf_view.renderFullScreen(Te,ut.id),Be=document.getElementById("fullscreencontainer"),it=jQuery(Te).find(".fullscreencontent");it.length>0?(st.remove(),it.attr("id","fullscreencontent").show(),jQuery(Be).append(it),window.dispatchEvent(new Event("resize"))):Je(st,ut,!1),window.GGBT_wsf_view.launchFullScreen(Be)}else wt=_t,Je(Te,ut,!1);if(!window.GGBT_wsf_view)for(Se=0;Se<ze.length;Se++)Te.removeChild(ze[Se])},De=Te.getElementsByClassName("ggb_preview_play"),Se=0;Se<De.length;Se++)De[Se].addEventListener("click",He,!1),De[Se].addEventListener("ontouchstart",He,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(Te),We()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},Et=function(){var Te=document.createElement("div");if(Te.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var ut='.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");}',at=document.createElement("style");at.styleSheet?at.styleSheet.cssText=ut:at.appendChild(document.createTextNode(ut)),document.getElementsByTagName("head")[0].appendChild(at)}return Te},Ct=function(Te,ut,at,_t){var He=document.createElement("div");He.className="ggb_preview",He.style.position="absolute",He.style.zIndex="90",He.style.width=Te-2+"px",He.style.height=ut-2+"px",He.style.top="0px",He.style.left="0px",He.style.overflow="hidden",He.style.backgroundColor="white";var De="lightgrey";at!==void 0&&(at==="none"?De="transparent":De=at),He.style.border="1px solid "+De;var Se=document.createElement("img");if(Se.style.position="relative",Se.style.zIndex="1000",Se.style.top="-1px",Se.style.left="-1px",Ee!==null&&Se.setAttribute("src",Ee),Se.style.opacity=.7,qe!==null){var ze,st,Be;if(!_t){ze=document.createElement("img"),ze.style.position="absolute",ze.style.zIndex="1001",ze.style.opacity=1,Se.style.opacity=.3,st=360,st>Te/4*3&&(st=Te/4*3),Be=st/5.8,ze.setAttribute("src",qe),ze.setAttribute("width",st),ze.setAttribute("height",Be);var it=(Te-st)/2,tt=(ut-Be)/2;ze.style.left=it+"px",ze.style.top=tt+"px",He.appendChild(ze)}}return He.appendChild(Se),He},ft=function(Te){return Te=Te.toLowerCase(),Te==="html5"||Te==="screenshot"?Te:"html5"},ve=["web","webSimple","web3d","tablet","tablet3d","phone"],ce=function(Te,ut){if(Xe=Te,ut){Ge(Xe,!0);return}var at=!$e;if(at){var _t=me(Xe);!isNaN(_t)&&_t<4.4&&(at=!1)}var He,De;window.location.protocol.substr(0,4)==="http"?He=window.location.protocol:He="http:";var Se=Xe.indexOf("//");Se>0?De=Xe:Se===0?De=He+Xe:De="https://www.geogebra.org/apps/5.2.814.0/";for(var ze in ve)if(Xe.slice(ve[ze].length*-1)===ve[ze]||Xe.slice((ve[ze].length+1)*-1)===ve[ze]+"/"){Ge(De,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&at&&!re.is3D&&!re.AV&&!re.SV&&!re.CV&&!re.EV2&&!re.CP&&!re.PC&&!re.DA&&!re.FI&&!re.PV&&!Me(le.showToolBar)&&!Me(le.showMenuBar)&&!Me(le.showAlgebraInput)&&!Me(le.enableRightClick)&&(!le.appName||le.appName=="classic")?De+="webSimple/":De+="web3d/",Ge(De,!1)},Ge=function(Te,ut){if(Te.requirejs){Oe=Te;return}Te.slice(-1)!=="/"&&(Te+="/"),Oe=Te,ut===null&&(ut=Te.indexOf("http")===-1),xe=ut,Pe="web.nocache.js",ke=!1;var at=Oe.split("/");at.length>1&&(!ut&&at[at.length-2]==="webSimple"?(Pe="webSimple.nocache.js",ke=!0):ve.indexOf(at[at.length-2])>=0&&(Pe=at[at.length-2]+".nocache.js")),at=Te.split("/"),Xe=at[at.length-3],Xe.substr(0,4)==="test"?Xe=Xe.substr(4,1)+"."+Xe.substr(5,1):(Xe.substr(0,3)==="war"||Xe.substr(0,4)==="beta")&&(Xe="5.0");var _t=parseFloat(Xe);_t!==NaN&&_t<5&&Te.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+_t+" is deprecated. Using version latest instead."),ce("5.0",ut))},vt=function(Te,ut){window.console&&window.console.log&&(!ut||typeof ut.showLogging=="undefined"||ut.showLogging&&ut.showLogging!=="false")&&console.log(Te)};le.material_id!==void 0?Nt(dt):dt();function dt(){var Te=$t;he!==null?Te=he:parseFloat(Te)<5&&(Te="5.0"),ce(Te,!1),Ne!==null&&Ge(Ne,xe),Ce=!0}return rn},GGBAppletUtils=function(){"use strict";function rn(){return window.GGBT_wsf_edit!==void 0}function $t(Ce,he){he!=1?(Ce.style.transformOrigin="0% 0% 0px",Ce.style.webkitTransformOrigin="0% 0% 0px",Ce.style.transform="scale("+he+","+he+")",Ce.style.webkitTransform="scale("+he+","+he+")",Ce.style.maxWidth="initial",Ce.querySelector(".ggb_preview")!==null&&(Ce.querySelector(".ggb_preview").style.maxWidth="initial"),Ce.querySelectorAll(".ggb_preview img")[0]!==void 0&&(Ce.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),Ce.querySelectorAll(".ggb_preview img")[1]!==void 0&&(Ce.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(Ce.style.transform="none",Ce.style.webkitTransform="none")}function le(Ce,he,Ne,Ve,we,de){var Oe=null;if(de!=null&&de!="")for(var xe=Ce.parentNode;xe!=null;)if((" "+xe.className+" ").indexOf(" "+de+" ")>-1){Oe=xe;break}else xe=xe.parentNode;var wt=0,Xe=0,Pe=0,ke=0,Ee=0,qe=0,lt=0;if(Oe)wt=Oe.offsetWidth,Xe=Math.max(Ve?Oe.offsetWidth:0,Oe.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(wt=Math.min(window.innerWidth,document.documentElement.clientWidth),Xe=Math.min(window.innerHeight,document.documentElement.clientHeight),Pe=wt):(wt=window.innerWidth,Xe=window.innerHeight,Pe=window.innerWidth),Ce){var xt=Ce.getBoundingClientRect();xt.left>0&&xt.left<=wt&&(we===void 0||!we)&&(document.dir==="rtl"?(Ee=wt-xt.width-xt.left,qe=Pe<=480?10:30):(qe=xt.left,Ee=Pe<=480?10:30),ke=qe+Ee)}if(Ce&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var Ae=Ce.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(ke=40,lt=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(ke=0,lt=40)}}return Ce&&((Ne===void 0||!Ne)&&he>0&&he+ke<wt?wt=he:wt-=ke,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Ne===void 0||!Ne)&&(Xe-=lt)),{width:wt,height:Xe}}function re(Ce,he,Ne,Ve,we){if(Ce.isScreenshoGenerator)return 1;var de=Ve!==void 0&&Ve,Oe=Ce.noScaleMargin!=null&&Ce.noScaleMargin,xe=function(Ae){return Ae&&Ae!=="false"},wt=xe(Ce.autoHeight),Xe=le(he,Ce.width,Ne,wt,de&&window.GGBT_wsf_view||Oe,we),Pe=parseInt(Xe.width),ke=Ce.width,Ee=Ce.height;if(ke===void 0){var qe=he.querySelector(".appletParameters");qe&&(ke=qe.offsetWidth,Ee=qe.offsetHeight)}var lt=Pe/ke,xt=de?1:Xe.height/Ee;return Ne!==void 0&&!Ne&&(lt=Math.min(1,lt),xt=Math.min(1,xt)),Math.min(lt,xt)}function $e(Ce,he,Ne){var Ve=1,we,de=!1;if(Ce.hasOwnProperty("allowUpscale")&&(de=Ce.allowUpscale),Ce.hasOwnProperty("scale")&&(Ve=parseFloat(Ce.scale),(isNaN(Ve)||Ve===null||Ve===0)&&(Ve=1),Ve>1&&(de=!0)),he&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(de=!0),!(Ce.hasOwnProperty("disableAutoScale")&&Ce.disableAutoScale))we=re(Ce,he,de,Ne,Ce.scaleContainerClass);else return Ve;return de&&(!Ce.hasOwnProperty("scale")||Ve===1)?we:Math.min(Ve,we)}function je(Ce){var he=Math.min(window.innerWidth,document.documentElement.clientWidth),Ne=Math.min(window.innerHeight,document.documentElement.clientHeight),Ve=Ce.getBoundingClientRect(),we=(he-Ve.width)/2,de=(Ne-Ve.height)/2;de<0&&(de=0),Ce.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(we<40?Ce.style.left="40px":Ce.style.left=we+"px",Ce.style.top=de+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(de<40?Ce.style.top="40px":Ce.style.top=de+"px",Ce.style.left=we+"px")}function Qe(Ce,he){var Ne=Ce.querySelector(".appletParameters");if(Ne){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(he.id!==Ne.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(Ce)}if(Ne.parentElement&&/fullscreen/.test(Ne.parentElement.className))return;var Ve=$e(he,Ce);rn()&&Ne.setAttribute("data-param-scale",Ve);for(var we=null,de=0;de<Ce.childNodes.length;de++)if(Ce.childNodes[de].className!==void 0&&Ce.childNodes[de].className.match(/^applet_scaler/)){we=Ce.childNodes[de];break}if(we!==null&&we.querySelector(".noscale")!==null)return;var Oe=he.id!==void 0?he.id:"ggbApplet",xe=window[Oe];(xe==null||!xe.recalculateEnvironments)&&we!==null&&!we.className.match(/fullscreen/)&&(we.parentNode.style.transform="",!isNaN(Ve)&&Ve!==1?(we.parentNode.style.width=he.width*Ve+"px",we.parentNode.style.height=he.height*Ve+"px",$t(we,Ve)):($t(we,1),we.parentNode.style.width=he.width+"px",we.parentNode.style.height=he.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&je(Ce),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(Ne).parents(".content-added-content"))}}return{responsiveResize:Qe,isFlexibleWorksheetEditor:rn,positionCenter:je,getScale:$e,scaleElement:$t}}();__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 rn=n.location.search;return rn.indexOf(J)!=-1||rn.indexOf(K)!=-1}function q(rn,$t){}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(rn){var $t=s[L].bindings;s[L].bindings=function(){for(var le=$t?$t():{},re=rn[webModule.__softPermutationId],$e=O;$e<re.length;$e++){var je=re[$e];le[je[O]]=je[P]}return le}};var t;function u(){return v(),t}function v(){if(!t){var rn=o.createElement(Q);if(rn.id=L,rn.style.cssText=R+S,rn.tabIndex=-1,o.body.appendChild(rn),t=rn.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var $t=document.compatMode==U?V:W;t.write($t+X),t.close()}}}function w(rn){function $t(re){function $e(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var je=$e();if(je){re();return}function Qe(){if(!je){if(!$e())return;je=!0,re(),o.removeEventListener&&o.removeEventListener(Z,Qe,!1),Ce&&clearInterval(Ce)}}o.addEventListener&&o.addEventListener(Z,Qe,!1);var Ce=setInterval(function(){Qe()},$)}function le(re){var $e=u(),je=$e.body,Qe=$e.createElement(_);Qe.language=ab,Qe.crossOrigin=W,Qe.src=re,webModule.__errFn&&(Qe.onerror=function(){webModule.__errFn(L,new Error(bb+re))}),je.appendChild(Qe)}$t(function(){le(rn)})}webModule.__startLoadingFragment=function(rn){return C(rn)},webModule.__installRunAsyncCode=function(rn){var $t=u(),le=$t.body,re=$t.createElement(_);re.language=ab,re.text=rn,le.appendChild(re),le.removeChild(re)};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(rn){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(rn){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(rn){var $t=c[rn];return $t==null?null:$t},r=d,webModule.__errFn=e}function B(){function rn(Ce){var he=Ce.lastIndexOf(rb);he==-1&&(he=Ce.length);var Ne=Ce.indexOf(sb);Ne==-1&&(Ne=Ce.length);var Ve=Ce.lastIndexOf(tb,Math.min(Ne,he));return Ve>=O?Ce.substring(O,Ve+P):W}function $t(Ce){if(!Ce.match(/^\w+:\/\//)){var he=o.createElement(ub);he.src=Ce+vb,Ce=rn(he.src)}return Ce}function le(){var Ce=__gwt_getMetaProperty(wb);return Ce!=null?Ce:W}function re(){for(var Ce=o.getElementsByTagName(_),he=O;he<Ce.length;++he)if(Ce[he].src.indexOf(xb)!=-1)return rn(Ce[he].src);return W}function $e(){var Ce=o.getElementsByTagName(yb);return Ce.length>O?Ce[Ce.length-P].href:W}function je(){var Ce=o.location;return Ce.href==Ce.protocol+zb+Ce.host+Ce.pathname+Ce.search+Ce.hash}var Qe=le();return Qe==W&&(Qe=re()),Qe==W&&(Qe=$e()),Qe==W&&je()&&(Qe=rn(o.location.href)),Qe=$t(Qe),Qe}function C(rn){return rn.match(/^\//)||rn.match(/^[a-zA-Z]+:\/\//)?rn:webModule.__moduleBase+rn}function D(){var rn=[],$t=O,le=[],re=[];function $e(Ce){var he=re[Ce](),Ne=le[Ce];if(he in Ne)return he;var Ve=[];for(var we in Ne)Ve[Ne[we]]=we;throw r&&r(Ce,Ve,he),null}if(__gwt_isKnownPropertyValue=function(Ce,he){return he in le[Ce]},webModule.__getPropMap=function(){var Ce={};for(var he in le)le.hasOwnProperty(he)&&(Ce[he]=$e(he));return Ce},webModule.__computePropValue=$e,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var je;try{je=Cb;var Qe=je.indexOf(Db);Qe!=-1&&($t=parseInt(je.substring(Qe+P),$),je=je.substring(O,Qe))}catch(Ce){}return webModule.__softPermutationId=$t,C(je+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})()},52882:function(rn,$t,le){"use strict";le.d($t,{Ax:function(){return Qe},Ds:function(){return Ce},KI:function(){return Ne},SI:function(){return je},f1:function(){return $e}});var re=le(26869);function $e(Ve){let we=!0;if(Ve.length>0){for(let de=0;de<Ve.length;de++)if(Ve[de].compile_success==0||!Ve[de].compile_success){we=!1;break}}else we=!1;return we}function je(Ve,we=""){let de=[];for(let Oe=0;Oe<Ve.length;Oe++){let xe=Ve[Oe],wt=we?`${we}/${xe.name}`:`${xe.name}`;de.push({title:xe.name,type:xe.type,isLeaf:xe.type!=="tree",key:wt})}return de}function Qe(Ve,we,de){for(let Oe=0;Oe<Ve.length;Oe++){let xe=Ve[Oe];if(xe.key===we){xe.children=de;break}xe.children&&Qe(xe.children,we,de)}return Ve}function Ce(Ve,we,de){let Oe;return function(){let xe=this,wt=arguments,Xe=function(){Oe=null,de||Ve.apply(xe,wt)},Pe=de&&!Oe;clearTimeout(Oe),Oe=setTimeout(Xe,we),Pe&&Ve.apply(xe,wt)}}const he=!0,Ne=re.Z.API_SERVER},50388:function(rn,$t,le){"use strict";le.d($t,{Z:function(){return Xe}});var re=le(7939),$e=le(59301),je=Object.defineProperty,Qe=Object.defineProperties,Ce=Object.getOwnPropertyDescriptors,he=Object.getOwnPropertySymbols,Ne=Object.prototype.hasOwnProperty,Ve=Object.prototype.propertyIsEnumerable,we=(Pe,ke,Ee)=>ke in Pe?je(Pe,ke,{enumerable:!0,configurable:!0,writable:!0,value:Ee}):Pe[ke]=Ee,de=(Pe,ke)=>{for(var Ee in ke||(ke={}))Ne.call(ke,Ee)&&we(Pe,Ee,ke[Ee]);if(he)for(var Ee of he(ke))Ve.call(ke,Ee)&&we(Pe,Ee,ke[Ee]);return Pe},Oe=(Pe,ke)=>Qe(Pe,Ce(ke)),xe=(Pe,ke)=>{var Ee={};for(var qe in Pe)Ne.call(Pe,qe)&&ke.indexOf(qe)<0&&(Ee[qe]=Pe[qe]);if(Pe!=null&&he)for(var qe of he(Pe))ke.indexOf(qe)<0&&Ve.call(Pe,qe)&&(Ee[qe]=Pe[qe]);return Ee},wt=(Pe,ke,Ee)=>new Promise((qe,lt)=>{var xt=Re=>{try{me(Ee.next(Re))}catch(We){lt(We)}},Ae=Re=>{try{me(Ee.throw(Re))}catch(We){lt(We)}},me=Re=>Re.done?qe(Re.value):Promise.resolve(Re.value).then(xt,Ae);me((Ee=Ee.apply(Pe,ke)).next())});const Xe=Pe=>{var ke=Pe,{children:Ee}=ke,qe=xe(ke,["children"]);const[lt,xt]=(0,$e.useState)(!1);return $e.createElement(re.ZP,Oe(de({},qe),{loading:lt,onClick:Ae=>wt(void 0,null,function*(){try{xt(!0),yield qe.onClick(Ae),xt(!1)}catch(me){console.error(me),xt(!1)}})}),Ee)}},32062:function(rn,$t,le){"use strict";le.d($t,{Z:function(){return wt}});var re=le(59301),$e=le(6767),je=le(37568),Qe={codeBox:"codeBox___WpkVl"},Ce=le(92310),he=le.n(Ce),Ne=Object.defineProperty,Ve=(Xe,Pe,ke)=>Pe in Xe?Ne(Xe,Pe,{enumerable:!0,configurable:!0,writable:!0,value:ke}):Xe[Pe]=ke,we=(Xe,Pe,ke)=>Ve(Xe,typeof Pe!="symbol"?Pe+"":Pe,ke),de=(Xe,Pe,ke)=>new Promise((Ee,qe)=>{var lt=me=>{try{Ae(ke.next(me))}catch(Re){qe(Re)}},xt=me=>{try{Ae(ke.throw(me))}catch(Re){qe(Re)}},Ae=me=>me.done?Ee(me.value):Promise.resolve(me.value).then(lt,xt);Ae((ke=ke.apply(Xe,Pe)).next())});class Oe extends re.Component{constructor(Pe){super(Pe),we(this,"canvas"),we(this,"randomNum",(ke,Ee)=>Math.floor(Math.random()*(Ee-ke)+ke)),we(this,"drawPic",()=>{this.randomCode()}),we(this,"reloadPic",()=>{this.drawPic()}),we(this,"changeCode",ke=>{console.log(ke.target.value,222),this.setState({value:ke.target.value,showError:!1})}),we(this,"onVerify",()=>{let ke;return this.state.value.toLowerCase()!==""&&this.state.value.toLowerCase()!==this.state.code.toLowerCase()?(ke=!0,$e.ZP.error("\u8BF7\u8F93\u5165\u6B63\u786E\u7684\u9A8C\u8BC1\u7801"),this.reloadPic()):this.state.value.toLowerCase()===""?(ke=!0,$e.ZP.error("\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801")):this.state.value.toLowerCase()===this.state.code.toLowerCase()&&(ke=!1),this.setState({showError:ke}),ke}),this.canvas=re.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(Pe,ke){const Ee=this.randomNum(Pe,ke),qe=this.randomNum(Pe,ke),lt=this.randomNum(Pe,ke);return`rgb(${Ee}, ${qe}, ${lt})`}drawText(Pe,ke,Ee){Pe.fillStyle=this.randomColor(this.state.colorMin,this.state.colorMax);const qe=this.randomNum(this.state.fontSizeMin,this.state.fontSizeMax);Pe.font=qe+"px SimHei";const lt=10,xt=(this.state.contentWidth-40)/(this.state.code.length-1);let Ae=lt;Ee>0&&(Ae=lt+Ee*xt);let me=this.randomNum(this.state.fontSizeMax,this.state.contentHeight-5);qe>40&&(me=40);const Re=this.randomNum(-10,10);Pe.translate(Ae,me),Pe.rotate(Re*Math.PI/180),Pe.fillText(ke,0,0),Pe.rotate(-Re*Math.PI/180),Pe.translate(-Ae,-me)}drawLine(Pe){for(let ke=0;ke<1;ke++)Pe.strokeStyle=this.randomColor(this.state.lineColorMin,this.state.lineColorMax),Pe.beginPath(),Pe.moveTo(this.randomNum(0,this.state.contentWidth),this.randomNum(0,this.state.contentHeight)),Pe.lineTo(this.randomNum(0,this.state.contentWidth),this.randomNum(0,this.state.contentHeight)),Pe.stroke()}drawDot(Pe){for(let ke=0;ke<100;ke++)Pe.fillStyle=this.randomColor(0,255),Pe.beginPath(),Pe.arc(this.randomNum(0,this.state.contentWidth),this.randomNum(0,this.state.contentHeight),1,0,2*Math.PI),Pe.fill()}randomCode(){let Pe="";const ke="QWERTYUPLKJHGFDSAZXCVBNMqwertyupkjhgfdsazxcvbnm1234567890";for(let Ee=0;Ee<this.state.codeLength;Ee++){const qe=Math.floor(Math.random()*57);Pe+=ke[qe]}this.setState({code:Pe},()=>{const qe=this.canvas.current.getContext("2d");qe.textBaseline="bottom",qe.fillStyle=this.randomColor(this.state.backgroundColorMin,this.state.backgroundColorMax),qe.fillRect(0,0,this.state.contentWidth,this.state.contentHeight);for(let lt=0;lt<this.state.code.length;lt++)this.drawText(qe,this.state.code[lt],lt);this.drawLine(qe),this.drawDot(qe)})}render(){const{className:Pe,width:ke=300}=this.props;return re.createElement("div",{className:he()(Qe.codeBox,Pe),style:{width:ke}},re.createElement("aside",null,re.createElement(je.default,{value:this.state.value,onChange:this.changeCode,placeholder:"\u8BF7\u8F93\u5165\u56FE\u7247\u4E2D\u7684\u9A8C\u8BC1\u7801"})),re.createElement("div",null,re.createElement("canvas",{onClick:this.reloadPic,ref:this.canvas,width:"100",height:"30"}),re.createElement("div",{className:"current",onClick:this.reloadPic},"\u770B\u4E0D\u6E05\uFF1F\u6362\u4E00\u5F20")))}}const xe=(Xe,Pe)=>{let ke;Modal.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:React.createElement("div",null,React.createElement("p",null,Pe),React.createElement(Oe,{ref:Ee=>ke=Ee})),onOk:()=>de(void 0,null,function*(){if(ke.onVerify())return Promise.reject();Xe()})})};var wt=Oe},1986:function(rn,$t,le){"use strict";le.d($t,{Z:function(){return Wt}});var re=le(59301),$e={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},je=le(92310),Qe=le.n(je),Ce=le(29787);var he=function(ae,ee){return(he=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(z,ie){z.__proto__=ie}||function(z,ie){for(var se in ie)Object.prototype.hasOwnProperty.call(ie,se)&&(z[se]=ie[se])})(ae,ee)};function Ne(ae,ee){function z(){this.constructor=ae}he(ae,ee),ae.prototype=ee===null?Object.create(ee):(z.prototype=ee.prototype,new z)}function Ve(ae,ee,z,ie){return new(z||(z=Promise))(function(se,ne){function be(ht){try{kt(ie.next(ht))}catch(Ze){ne(Ze)}}function gt(ht){try{kt(ie.throw(ht))}catch(Ze){ne(Ze)}}function kt(ht){var Ze;ht.done?se(ht.value):(Ze=ht.value,Ze instanceof z?Ze:new z(function(Vt){Vt(Ze)})).then(be,gt)}kt((ie=ie.apply(ae,ee||[])).next())})}function we(ae,ee){var z,ie,se,ne,be={label:0,sent:function(){if(1&se[0])throw se[1];return se[1]},trys:[],ops:[]};return ne={next:gt(0),throw:gt(1),return:gt(2)},typeof Symbol=="function"&&(ne[Symbol.iterator]=function(){return this}),ne;function gt(kt){return function(ht){return function(Ze){if(z)throw new TypeError("Generator is already executing.");for(;be;)try{if(z=1,ie&&(se=2&Ze[0]?ie.return:Ze[0]?ie.throw||((se=ie.return)&&se.call(ie),0):ie.next)&&!(se=se.call(ie,Ze[1])).done)return se;switch(ie=0,se&&(Ze=[2&Ze[0],se.value]),Ze[0]){case 0:case 1:se=Ze;break;case 4:return be.label++,{value:Ze[1],done:!1};case 5:be.label++,ie=Ze[1],Ze=[0];continue;case 7:Ze=be.ops.pop(),be.trys.pop();continue;default:if(se=be.trys,!((se=se.length>0&&se[se.length-1])||Ze[0]!==6&&Ze[0]!==2)){be=0;continue}if(Ze[0]===3&&(!se||Ze[1]>se[0]&&Ze[1]<se[3])){be.label=Ze[1];break}if(Ze[0]===6&&be.label<se[1]){be.label=se[1],se=Ze;break}if(se&&be.label<se[2]){be.label=se[2],be.ops.push(Ze);break}se[2]&&be.ops.pop(),be.trys.pop();continue}Ze=ee.call(ae,be)}catch(Vt){Ze=[6,Vt],ie=0}finally{z=se=0}if(5&Ze[0])throw Ze[1];return{value:Ze[0]?Ze[1]:void 0,done:!0}}([kt,ht])}}}function de(){for(var ae=0,ee=0,z=arguments.length;ee<z;ee++)ae+=arguments[ee].length;var ie=Array(ae),se=0;for(ee=0;ee<z;ee++)for(var ne=arguments[ee],be=0,gt=ne.length;be<gt;be++,se++)ie[se]=ne[be];return ie}var Oe=function(){function ae(){}return ae.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},ae.setAttributes=function(ee,z){for(var ie=0,se=z;ie<se.length;ie++){var ne=se[ie],be=ne[0],gt=ne[1];ee.setAttribute(be,gt)}},ae.createRect=function(ee,z,ie){var se=document.createElementNS("http://www.w3.org/2000/svg","rect");return se.setAttribute("width",ee.toString()),se.setAttribute("height",z.toString()),ie&&ae.setAttributes(se,ie),se},ae.createLine=function(ee,z,ie,se,ne){var be=document.createElementNS("http://www.w3.org/2000/svg","line");return be.setAttribute("x1",ee.toString()),be.setAttribute("y1",z.toString()),be.setAttribute("x2",ie.toString()),be.setAttribute("y2",se.toString()),ne&&ae.setAttributes(be,ne),be},ae.createPolygon=function(ee,z){var ie=document.createElementNS("http://www.w3.org/2000/svg","polygon");return ie.setAttribute("points",ee),z&&ae.setAttributes(ie,z),ie},ae.createCircle=function(ee,z){var ie=document.createElementNS("http://www.w3.org/2000/svg","circle");return ie.setAttribute("cx",(ee/2).toString()),ie.setAttribute("cy",(ee/2).toString()),ie.setAttribute("r",ee.toString()),z&&ae.setAttributes(ie,z),ie},ae.createEllipse=function(ee,z,ie){var se=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return se.setAttribute("cx",(ee/2).toString()),se.setAttribute("cy",(z/2).toString()),se.setAttribute("rx",(ee/2).toString()),se.setAttribute("ry",(z/2).toString()),ie&&ae.setAttributes(se,ie),se},ae.createGroup=function(ee){var z=document.createElementNS("http://www.w3.org/2000/svg","g");return ee&&ae.setAttributes(z,ee),z},ae.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},ae.createMarker=function(ee,z,ie,se,ne,be,gt){var kt=document.createElementNS("http://www.w3.org/2000/svg","marker");return ae.setAttributes(kt,[["id",ee],["orient",z],["markerWidth",ie.toString()],["markerHeight",se.toString()],["refX",ne.toString()],["refY",be.toString()]]),kt.appendChild(gt),kt},ae.createText=function(ee){var z=document.createElementNS("http://www.w3.org/2000/svg","text");return z.setAttribute("x","0"),z.setAttribute("y","0"),ee&&ae.setAttributes(z,ee),z},ae.createTSpan=function(ee,z){var ie=document.createElementNS("http://www.w3.org/2000/svg","tspan");return ie.textContent=ee,z&&ae.setAttributes(ie,z),ie},ae.createImage=function(ee){var z=document.createElementNS("http://www.w3.org/2000/svg","image");return ee&&ae.setAttributes(z,ee),z},ae.createPoint=function(ee,z){var ie=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return ie.x=ee,ie.y=z,ie},ae.createPath=function(ee,z){var ie=document.createElementNS("http://www.w3.org/2000/svg","path");return ie.setAttribute("d",ee),z&&ae.setAttributes(ie,z),ie},ae}(),xe=function(){function ae(){}return ae.addKey=function(ee){ae.key=ee},Object.defineProperty(ae,"isLicensed",{get:function(){return!!ae.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(ae.key)},enumerable:!1,configurable:!0}),ae}(),wt=function(){function ae(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return ae.prototype.rasterize=function(ee,z,ie){var se=this;return new Promise(function(ne){var be=ie!==void 0?ie:document.createElement("canvas");ee===null&&(se.markersOnly=!0,se.naturalSize=!1);var gt=document.createElementNS("http://www.w3.org/2000/svg","svg");gt.setAttribute("xmlns","http://www.w3.org/2000/svg"),gt.setAttribute("width",z.width.baseVal.valueAsString),gt.setAttribute("height",z.height.baseVal.valueAsString),gt.setAttribute("viewBox","0 0 "+z.viewBox.baseVal.width.toString()+" "+z.viewBox.baseVal.height.toString()),gt.innerHTML=z.innerHTML,se.naturalSize===!0?(gt.width.baseVal.value=ee.naturalWidth,gt.height.baseVal.value=ee.naturalHeight):se.width!==void 0&&se.height!==void 0&&(gt.width.baseVal.value=se.width,gt.height.baseVal.value=se.height),be.width=gt.width.baseVal.value,be.height=gt.height.baseVal.value;var kt=gt.outerHTML,ht=be.getContext("2d");se.markersOnly!==!0&&ht.drawImage(ee,0,0,be.width,be.height);var Ze=window.URL,Vt=new Image(be.width,be.height);Vt.setAttribute("crossOrigin","anonymous");var Bt=new Blob([kt],{type:"image/svg+xml"}),Ht=Ze.createObjectURL(Bt);Vt.onload=function(){ht.drawImage(Vt,0,0),Ze.revokeObjectURL(Ht);var un=be.toDataURL(se.imageType,se.imageQuality);ne(un)},Vt.src=Ht})},ae}(),Xe=function(){},Pe=function(){function ae(ee){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+ee+"_"}return Object.defineProperty(ae.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(ae.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(ae.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),ae.prototype.addClass=function(ee){return this.styleSheet===void 0&&this.addStyleSheet(),ee.name=""+this.classNamePrefix+ee.localName,this.classes.push(ee),this.styleSheet.sheet.insertRule("."+ee.name+" {"+ee.style+"}",this.styleSheet.sheet.cssRules.length),ee},ae.prototype.addRule=function(ee){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(ee),this.styleSheet.sheet.insertRule(ee.selector+" {"+ee.style+"}",this.styleSheet.sheet.cssRules.length)},ae.prototype.addStyleSheet=function(){var ee;this.styleSheet=document.createElement("style"),((ee=this.styleSheetRoot)!==null&&ee!==void 0?ee:document.head).appendChild(this.styleSheet),this.addRule(new ke("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new ke("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
|
|
from {
|
|
opacity: 0;
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
}
|
|
`)),this.addRule(new ke("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
|
|
from {
|
|
opacity: 1;
|
|
}
|
|
to {
|
|
opacity: 0;
|
|
}
|
|
`)),this.addClass(new Ee("fade_in",`
|
|
animation-duration: 0.3s;
|
|
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
|
|
`)),this.addClass(new Ee("fade_out",`
|
|
animation-duration: 0.3s;
|
|
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
|
|
`))},ae.prototype.removeStyleSheet=function(){var ee;this.styleSheet&&(((ee=this.styleSheetRoot)!==null&&ee!==void 0?ee:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},ae}(),ke=function(ae,ee){this.selector=ae,this.style=ee},Ee=function(ae,ee){this.localName=ae,this.style=ee},qe=function(){function ae(ee,z,ie,se,ne){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=ee,this.displayMode=z,this.markerItems=ie,this.uiStyleSettings=se,this.styles=ne,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return ae.prototype.show=function(ee){var z=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=ee,this.uiContainer.className=this.toolbarStyleClass.name+" "+this.styles.fadeInAnimationClassName+" "+(this.uiStyleSettings.toolbarStyleColorsClassName?this.uiStyleSettings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name);var ie=document.createElement("div");ie.className=this.toolbarBlockStyleClass.name,ie.style.whiteSpace="nowrap",this.uiContainer.appendChild(ie),this.addActionButton(ie,'<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(ie,'<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(ie,'<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(ie,'<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(ie,'<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(ie,'<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(ie,'<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(ie,'<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(ne){var be=document.createElement("div");be.className=""+z.toolbarButtonStyleClass.name,be.setAttribute("data-type-name",ne.typeName),be.innerHTML=ne.icon,be.addEventListener("click",function(){z.markerToolbarButtonClicked(be,ne)}),z.buttons.push(be),z.markerButtons.push(be)}),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 se=document.createElement("div");se.className=this.toolbarBlockStyleClass.name,se.style.whiteSpace="nowrap",se.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(se),this.addActionButton(se,'<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(se,'<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()},ae.prototype.addButtonClickListener=function(ee){this.buttonClickListeners.push(ee)},ae.prototype.removeButtonClickListener=function(ee){this.buttonClickListeners.indexOf(ee)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(ee),1)},ae.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},ae.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var ee=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var z=0;z<this.markerButtons.length;z++)z<ee||z===ee&&this.markerButtons.length-1===ee?this.markerButtonBlock.appendChild(this.markerButtons[z]):(z===ee&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[z]))}},ae.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")},ae.prototype.resetButtonStyles=function(){var ee=this;this.buttons.forEach(function(z){z.className=z.className.replace(ee.uiStyleSettings.toolbarButtonStyleColorsClassName?ee.uiStyleSettings.toolbarButtonStyleColorsClassName:ee.toolbarButtonStyleColorsClass.name,"").trim(),z.className=z.className.replace(ee.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?ee.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:ee.toolbarActiveButtonStyleColorsClass.name,"").trim(),z.className+=" "+(ee.uiStyleSettings.toolbarButtonStyleColorsClassName?ee.uiStyleSettings.toolbarButtonStyleColorsClassName:ee.toolbarButtonStyleColorsClass.name)})},ae.prototype.addActionButton=function(ee,z,ie){var se=this,ne=document.createElement("div");switch(ne.className=""+this.toolbarButtonStyleClass.name,ne.innerHTML=z,ne.setAttribute("data-action",ie),ne.addEventListener("click",function(){se.actionToolbarButtonClicked(ne,ie)}),ie){case"select":ne.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":ne.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":ne.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":ne.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":ne.style.fill=this.uiStyleSettings.closeButtonColor}ee.appendChild(ne),this.buttons.push(ne)},ae.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new Ee("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 Ee("toolbar_colors",`
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
|
|
`)),this.toolbarBlockStyleClass=this.styles.addClass(new Ee("toolbar-block",`
|
|
display: inline-block;
|
|
box-sizing: content-box;
|
|
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new Ee("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 Ee("toolbar-overflow-block_colors",`
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
`));var ee=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new Ee("toolbar_button",`
|
|
display: inline-block;
|
|
width: `+(this.uiStyleSettings.toolbarHeight-2*ee)+`px;
|
|
height: `+(this.uiStyleSettings.toolbarHeight-2*ee)+`px;
|
|
padding: `+ee+`px;
|
|
box-sizing: content-box;
|
|
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new Ee("toolbar_button_colors",`
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new Ee("toolbar_active_button",`
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
`)),this.styles.addRule(new ke("."+this.toolbarButtonStyleClass.name+" svg",`
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
`)),this.styles.addRule(new ke("."+this.toolbarButtonStyleColorsClass.name+":hover",`
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
`))},ae.prototype.markerToolbarButtonClicked=function(ee,z){this.setActiveButton(ee),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(ie){return ie("marker",z)}),this.markerButtonOverflowBlock.style.display="none"},ae.prototype.actionToolbarButtonClicked=function(ee,z){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(ie){return ie("action",z)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},ae.prototype.setActiveButton=function(ee){this.resetButtonStyles(),ee.className=ee.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),ee.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},ae.prototype.setActiveMarkerButton=function(ee){var z=this.markerButtons.find(function(ie){return ie.getAttribute("data-type-name")===ee});z&&this.setActiveButton(z)},ae.prototype.setCurrentMarker=function(ee){var z=this;this.currentMarker=ee,this.buttons.filter(function(ie){return/delete|notes/.test(ie.getAttribute("data-action"))}).forEach(function(ie){z.currentMarker===void 0?(ie.style.fillOpacity="0.4",ie.style.pointerEvents="none"):(ie.style.fillOpacity="1",ie.style.pointerEvents="all")})},ae}(),lt=function(){function ae(ee,z,ie,se){this.panels=[],this.panelButtons=[],this.markerjsContainer=ee,this.displayMode=z,this.uiStyleSettings=ie,this.styles=se,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return ae.prototype.addStyles=function(){var ee;this.toolboxStyleClass=this.styles.addClass(new Ee("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 Ee("toolbox_colors",`
|
|
color: `+this.uiStyleSettings.toolboxColor+`;
|
|
`));var z=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new Ee("toolbox-button-row",`
|
|
display: flex;
|
|
cursor: default;
|
|
box-sizing: content-box;
|
|
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new Ee("toolbox-button-row_colors",`
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new Ee("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 Ee("toolbox-panel-row_colors",`
|
|
background-color: `+((ee=this.uiStyleSettings.toolboxBackgroundColor)!==null&&ee!==void 0?ee:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
|
|
`)),this.toolboxButtonStyleClass=this.styles.addClass(new Ee("toolbox_button",`
|
|
display: inline-block;
|
|
width: `+(this.uiStyleSettings.toolbarHeight-2*z)+`px;
|
|
height: `+(this.uiStyleSettings.toolbarHeight-2*z)+`px;
|
|
padding: `+z+`px;
|
|
box-sizing: content-box;
|
|
`)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new Ee("toolbox-button_colors",`
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new Ee("toolbox-active-button_colors",`
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
`)),this.styles.addRule(new ke("."+this.toolboxButtonStyleColorsClass.name+":hover",`
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
`)),this.styles.addRule(new ke("."+this.toolboxButtonStyleClass.name+" svg",`
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
`))},ae.prototype.show=function(ee){var z;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=ee,this.uiContainer.className=this.toolboxStyleClass.name+" "+((z=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&z!==void 0?z:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},ae.prototype.setPanelButtons=function(ee){var z,ie,se=this;this.panels=ee,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((z=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&z!==void 0?z:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((ie=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&ie!==void 0?ie:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(ne){var be;ne.uiStyleSettings=se.uiStyleSettings;var gt=document.createElement("div");gt.className=se.toolboxButtonStyleClass.name+" "+((be=se.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&be!==void 0?be:se.toolboxButtonStyleColorsClass.name),gt.innerHTML=ne.icon,gt.title=ne.title,gt.addEventListener("click",function(){se.panelButtonClick(ne)}),se.panelButtons.push(gt),se.buttonRow.appendChild(gt)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},ae.prototype.panelButtonClick=function(ee){var z=this,ie=-1;if(ee!==this.activePanel){ie=this.panels.indexOf(ee),this.panelRow.innerHTML="";var se=ee.getUi();se.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(se),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=ee}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){z.displayMode==="inline"?z.panelRow.style.display="none":z.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(ne,be){var gt,kt;ne.className=z.toolboxButtonStyleClass.name+" "+(be===ie?""+((gt=z.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&>!==void 0?gt:z.toolboxActiveButtonStyleColorsClass.name):""+((kt=z.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&kt!==void 0?kt:z.toolboxButtonStyleColorsClass.name))})},ae}(),xt=function(ae,ee){this.title=ae,this.icon=ee},Ae=function(ae){function ee(z,ie,se,ne){var be=ae.call(this,z,ne||'<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 be.colors=[],be.addTransparent=!1,be.colorBoxes=[],be.colors=ie,be.currentColor=se,be.setCurrentColor=be.setCurrentColor.bind(be),be.getColorBox=be.getColorBox.bind(be),be}return Ne(ee,ae),ee.prototype.getUi=function(){var z=this,ie=document.createElement("div");return ie.style.overflow="hidden",ie.style.whiteSpace="nowrap",this.colors.forEach(function(se){var ne=z.getColorBox(se);ie.appendChild(ne),z.colorBoxes.push(ne)}),ie},ee.prototype.getColorBox=function(z){var ie=this,se=this.uiStyleSettings.toolbarHeight/4,ne=this.uiStyleSettings.toolbarHeight-se,be=document.createElement("div");be.style.display="inline-block",be.style.boxSizing="content-box",be.style.width=ne-2+"px",be.style.height=ne-2+"px",be.style.padding="1px",be.style.marginRight="2px",be.style.marginBottom="2px",be.style.borderWidth="2px",be.style.borderStyle="solid",be.style.borderRadius=(ne+2)/2+"px",be.style.borderColor=z===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",be.addEventListener("click",function(){ie.setCurrentColor(z,be)});var gt=document.createElement("div");return gt.style.display="inline-block",gt.style.width=ne-2+"px",gt.style.height=ne-2+"px",gt.style.backgroundColor=z,gt.style.borderRadius=ne/2+"px",z==="transparent"&&(gt.style.fill=this.uiStyleSettings.toolboxAccentColor,gt.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>`),be.appendChild(gt),be},ee.prototype.setCurrentColor=function(z,ie){var se=this;this.currentColor=z,this.colorBoxes.forEach(function(ne){ne.style.borderColor=ne===ie?se.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(z)},ee}(xt),me=function(){function ae(ee,z,ie){this._state="new",this._isSelected=!1,this._container=ee,this._overlayContainer=z,this.globalSettings=ie,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(ae.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),ae.prototype.ownsTarget=function(ee){return!1},Object.defineProperty(ae.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),ae.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},ae.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},ae.prototype.pointerDown=function(ee,z){},ae.prototype.dblClick=function(ee,z){},ae.prototype.manipulate=function(ee){},ae.prototype.pointerUp=function(ee){this.stateChanged()},ae.prototype.dispose=function(){},ae.prototype.addMarkerVisualToContainer=function(ee){this.container.childNodes.length>0?this.container.insertBefore(ee,this.container.childNodes[0]):this.container.appendChild(ee)},ae.prototype.getState=function(){return{typeName:ae.typeName,state:this.state,notes:this.notes}},ae.prototype.restoreState=function(ee){this._state=ee.state,this.notes=ee.notes},ae.prototype.scale=function(ee,z){},ae.prototype.colorChanged=function(ee){this.onColorChanged&&this.onColorChanged(ee),this.stateChanged()},ae.prototype.fillColorChanged=function(ee){this.onFillColorChanged&&this.onFillColorChanged(ee),this.stateChanged()},ae.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var ee=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),ee.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(ee)&&this.onStateChanged(this)}},ae.typeName="MarkerBase",ae}(),Re=function(){function ae(){this.findGripByVisual=this.findGripByVisual.bind(this)}return ae.prototype.findGripByVisual=function(ee){return this.topLeft.ownsTarget(ee)?this.topLeft:this.topCenter.ownsTarget(ee)?this.topCenter:this.topRight.ownsTarget(ee)?this.topRight:this.centerLeft.ownsTarget(ee)?this.centerLeft:this.centerRight.ownsTarget(ee)?this.centerRight:this.bottomLeft.ownsTarget(ee)?this.bottomLeft:this.bottomCenter.ownsTarget(ee)?this.bottomCenter:this.bottomRight.ownsTarget(ee)?this.bottomRight:void 0},ae}(),We=function(){function ae(){this.GRIP_SIZE=10,this.visual=Oe.createGroup(),this.visual.appendChild(Oe.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(Oe.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return ae.prototype.ownsTarget=function(ee){return ee===this.visual||ee===this.visual.childNodes[0]||ee===this.visual.childNodes[1]},ae}(),Nt=function(){function ae(){}return ae.toITransformMatrix=function(ee){return{a:ee.a,b:ee.b,c:ee.c,d:ee.d,e:ee.e,f:ee.f}},ae.toSVGMatrix=function(ee,z){return ee.a=z.a,ee.b=z.b,ee.c=z.c,ee.d=z.d,ee.e=z.e,ee.f=z.f,ee},ae}(),ye=function(ae){function ee(z,ie,se){var ne=ae.call(this,z,ie,se)||this;return ne.left=0,ne.top=0,ne.width=0,ne.height=0,ne.defaultSize={x:50,y:20},ne.offsetX=0,ne.offsetY=0,ne.rotationAngle=0,ne.CB_DISTANCE=10,ne._suppressMarkerCreateEvent=!1,ne.container.transform.baseVal.appendItem(Oe.createTransform()),ne.setupControlBox(),ne}return Ne(ee,ae),Object.defineProperty(ee.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(ee.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(ee.prototype,"visual",{get:function(){return this._visual},set:function(z){this._visual=z;var ie=Oe.createTransform();this._visual.transform.baseVal.appendItem(ie)},enumerable:!1,configurable:!0}),ee.prototype.ownsTarget=function(z){return!!ae.prototype.ownsTarget.call(this,z)||!!(this.controlGrips.findGripByVisual(z)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(z))},ee.prototype.pointerDown=function(z,ie){ae.prototype.pointerDown.call(this,z,ie),this.state==="new"&&(this.left=z.x,this.top=z.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var se=this.unrotatePoint(z);if(this.manipulationStartX=se.x,this.manipulationStartY=se.y,this.offsetX=se.x-this.left,this.offsetY=se.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(ie),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(ie)){this.activeGrip=this.rotatorGrip;var ne=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=ne.x-this.width/2,this.top=ne.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var be=this.container.transform.baseVal.getItem(0);be.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(be,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},ee.prototype.pointerUp=function(z){var ie=this.state;ae.prototype.pointerUp.call(this,z),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(z),this._state="select",ie==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},ee.prototype.moveVisual=function(z){this.visual.style.transform="translate("+z.x+"px, "+z.y+"px)"},ee.prototype.manipulate=function(z){var ie=this.unrotatePoint(z);this.state==="creating"?this.resize(z):this.state==="move"?(this.left=this.manipulationStartLeft+(ie.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(ie.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(ie):this.state==="rotate"&&this.rotate(z)},ee.prototype.resize=function(z){var ie=this.manipulationStartLeft,se=this.manipulationStartWidth,ne=this.manipulationStartTop,be=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:ie=this.manipulationStartLeft+z.x-this.manipulationStartX,se=this.manipulationStartWidth+this.manipulationStartLeft-ie;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:se=this.manipulationStartWidth+z.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:ne=this.manipulationStartTop+z.y-this.manipulationStartY,be=this.manipulationStartHeight+this.manipulationStartTop-ne;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:be=this.manipulationStartHeight+z.y-this.manipulationStartY}se>=0?(this.left=ie,this.width=se):(this.left=ie+se,this.width=-se),be>=0?(this.top=ne,this.height=be):(this.top=ne+be,this.height=-be),this.setSize()},ee.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},ee.prototype.rotate=function(z){if(Math.abs(z.x-this.centerX)>.1){var ie=Math.sign(z.x-this.centerX);this.rotationAngle=180*Math.atan((z.y-this.centerY)/(z.x-this.centerX))/Math.PI+90*ie,this.applyRotation()}},ee.prototype.applyRotation=function(){var z=this.container.transform.baseVal.getItem(0);z.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(z,0)},ee.prototype.rotatePoint=function(z){if(this.rotationAngle===0)return z;var ie=this.container.getCTM(),se=Oe.createPoint(z.x,z.y);return{x:(se=se.matrixTransform(ie)).x,y:se.y}},ee.prototype.unrotatePoint=function(z){if(this.rotationAngle===0)return z;var ie=this.container.getCTM();ie=ie.inverse();var se=Oe.createPoint(z.x,z.y);return{x:(se=se.matrixTransform(ie)).x,y:se.y}},ee.prototype.select=function(){ae.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},ee.prototype.deselect=function(){ae.prototype.deselect.call(this),this.controlBox.style.display="none"},ee.prototype.setupControlBox=function(){this.controlBox=Oe.createGroup();var z=Oe.createTransform();z.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(z),this.container.appendChild(this.controlBox),this.controlRect=Oe.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=Oe.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 Re,this.addControlGrips(),this.controlBox.style.display="none"},ee.prototype.adjustControlBox=function(){var z=this.controlBox.transform.baseVal.getItem(0);z.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(z,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()},ee.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()},ee.prototype.createGrip=function(){var z=new We;return z.visual.transform.baseVal.appendItem(Oe.createTransform()),this.controlBox.appendChild(z.visual),z},ee.prototype.positionGrips=function(){var z=this.controlGrips.topLeft.GRIP_SIZE,ie=-z/2,se=ie,ne=(this.width+this.CB_DISTANCE)/2-z/2,be=(this.height+this.CB_DISTANCE)/2-z/2,gt=this.height+this.CB_DISTANCE-z/2,kt=this.width+this.CB_DISTANCE-z/2;this.positionGrip(this.controlGrips.topLeft.visual,ie,se),this.positionGrip(this.controlGrips.topCenter.visual,ne,se),this.positionGrip(this.controlGrips.topRight.visual,kt,se),this.positionGrip(this.controlGrips.centerLeft.visual,ie,be),this.positionGrip(this.controlGrips.centerRight.visual,kt,be),this.positionGrip(this.controlGrips.bottomLeft.visual,ie,gt),this.positionGrip(this.controlGrips.bottomCenter.visual,ne,gt),this.positionGrip(this.controlGrips.bottomRight.visual,kt,gt),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,ne,se-3*this.CB_DISTANCE)},ee.prototype.positionGrip=function(z,ie,se){var ne=z.transform.baseVal.getItem(0);ne.setTranslate(ie,se),z.transform.baseVal.replaceItem(ne,0)},ee.prototype.hideControlBox=function(){this.controlBox.style.display="none"},ee.prototype.showControlBox=function(){this.controlBox.style.display=""},ee.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:Nt.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:Nt.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},ae.prototype.getState.call(this))},ee.prototype.restoreState=function(z){ae.prototype.restoreState.call(this,z);var ie=z;this.left=ie.left,this.top=ie.top,this.width=ie.width,this.height=ie.height,this.rotationAngle=ie.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(Nt.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,ie.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(Nt.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,ie.containerTransformMatrix))},ee.prototype.scale=function(z,ie){ae.prototype.scale.call(this,z,ie);var se=this.rotatePoint({x:this.left,y:this.top}),ne=this.unrotatePoint({x:se.x*z,y:se.y*ie});this.left=ne.x,this.top=ne.y,this.width=this.width*z,this.height=this.height*ie,this.adjustControlBox()},ee}(me),Le=function(ae){function ee(z,ie,se){var ne=ae.call(this,z,ie,se)||this;return ne.fillColor="transparent",ne.strokeColor="transparent",ne.strokeWidth=0,ne.strokeDasharray="",ne.opacity=1,ne.setStrokeColor=ne.setStrokeColor.bind(ne),ne.setFillColor=ne.setFillColor.bind(ne),ne.setStrokeWidth=ne.setStrokeWidth.bind(ne),ne.setStrokeDasharray=ne.setStrokeDasharray.bind(ne),ne.createVisual=ne.createVisual.bind(ne),ne}return Ne(ee,ae),ee.prototype.ownsTarget=function(z){return!(!ae.prototype.ownsTarget.call(this,z)&&z!==this.visual)},ee.prototype.createVisual=function(){this.visual=Oe.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)},ee.prototype.pointerDown=function(z,ie){ae.prototype.pointerDown.call(this,z,ie),this.state==="new"&&(this.createVisual(),this.moveVisual(z),this._state="creating")},ee.prototype.manipulate=function(z){ae.prototype.manipulate.call(this,z)},ee.prototype.resize=function(z){ae.prototype.resize.call(this,z),this.setSize()},ee.prototype.setSize=function(){ae.prototype.setSize.call(this),Oe.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},ee.prototype.pointerUp=function(z){ae.prototype.pointerUp.call(this,z),this.setSize()},ee.prototype.setStrokeColor=function(z){this.strokeColor=z,this.visual&&Oe.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(z),this.stateChanged()},ee.prototype.setFillColor=function(z){this.fillColor=z,this.visual&&Oe.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},ee.prototype.setStrokeWidth=function(z){this.strokeWidth=z,this.visual&&Oe.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},ee.prototype.setStrokeDasharray=function(z){this.strokeDasharray=z,this.visual&&Oe.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},ee.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},ae.prototype.getState.call(this))},ee.prototype.restoreState=function(z){var ie=z;this.fillColor=ie.fillColor,this.strokeColor=ie.strokeColor,this.strokeWidth=ie.strokeWidth,this.strokeDasharray=ie.strokeDasharray,this.opacity=ie.opacity,this.createVisual(),ae.prototype.restoreState.call(this,z),this.setSize()},ee.prototype.scale=function(z,ie){ae.prototype.scale.call(this,z,ie),this.setSize()},ee.title="Rectangle marker",ee}(ye),Ie=function(ae){function ee(z,ie,se,ne){var be=ae.call(this,z,ne||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return be.widths=[],be.widthBoxes=[],be.widths=ie,be.currentWidth=se,be.setCurrentWidth=be.setCurrentWidth.bind(be),be}return Ne(ee,ae),ee.prototype.getUi=function(){var z=this,ie=document.createElement("div");return ie.style.display="flex",ie.style.overflow="hidden",ie.style.flexGrow="2",this.widths.forEach(function(se){var ne=document.createElement("div");ne.style.display="flex",ne.style.flexGrow="2",ne.style.alignItems="center",ne.style.justifyContent="space-between",ne.style.padding="5px",ne.style.borderWidth="2px",ne.style.borderStyle="solid",ne.style.borderColor=se===z.currentWidth?z.uiStyleSettings.toolboxAccentColor:"transparent",ne.addEventListener("click",function(){z.setCurrentWidth(se,ne)}),ie.appendChild(ne);var be=document.createElement("div");be.innerText=se.toString(),be.style.marginRight="5px",ne.appendChild(be);var gt=document.createElement("div");gt.style.minHeight="20px",gt.style.flexGrow="2",gt.style.display="flex",gt.style.alignItems="center";var kt=document.createElement("hr");kt.style.minWidth="20px",kt.style.border="0px",kt.style.borderTop=se+"px solid "+z.uiStyleSettings.toolboxColor,kt.style.flexGrow="2",gt.appendChild(kt),ne.appendChild(gt),z.widthBoxes.push(ne)}),ie},ee.prototype.setCurrentWidth=function(z,ie){var se=this;this.currentWidth=z,this.widthBoxes.forEach(function(ne){ne.style.borderColor=ne===ie?se.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},ee}(xt),Me=function(ae){function ee(z,ie,se,ne){var be=ae.call(this,z,ne||'<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 be.styles=[],be.styleBoxes=[],be.styles=ie,be.currentStyle=se,be.setCurrentStyle=be.setCurrentStyle.bind(be),be}return Ne(ee,ae),ee.prototype.getUi=function(){var z=this,ie=document.createElement("div");return ie.style.display="flex",ie.style.overflow="hidden",ie.style.flexGrow="2",this.styles.forEach(function(se){var ne=document.createElement("div");ne.style.display="flex",ne.style.alignItems="center",ne.style.justifyContent="space-between",ne.style.padding="5px",ne.style.borderWidth="2px",ne.style.borderStyle="solid",ne.style.overflow="hidden",ne.style.maxWidth=100/z.styles.length-5+"%",ne.style.borderColor=se===z.currentStyle?z.uiStyleSettings.toolboxAccentColor:"transparent",ne.addEventListener("click",function(){z.setCurrentStyle(se,ne)}),ie.appendChild(ne);var be=document.createElement("div");be.style.minHeight="20px",be.style.flexGrow="2",be.style.overflow="hidden";var gt=`<svg width="100" height="20">
|
|
<line x1="0" y1="10" x2="100" y2="10" stroke="`+z.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(se!==""?'stroke-dasharray="'+se+'"':"")+` />
|
|
</svg>`;be.innerHTML=gt,ne.appendChild(be),z.styleBoxes.push(ne)}),ie},ee.prototype.setCurrentStyle=function(z,ie){var se=this;this.currentStyle=z,this.styleBoxes.forEach(function(ne){ne.style.borderColor=ne===ie?se.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},ee}(xt),Je=function(ae){function ee(z,ie,se){var ne=ae.call(this,z,ie,se)||this;return ne.strokeColor=se.defaultColor,ne.strokeWidth=se.defaultStrokeWidth,ne.strokeDasharray=se.defaultStrokeDasharray,ne.strokePanel=new Ae("Line color",se.defaultColorSet,se.defaultColor),ne.strokePanel.onColorChanged=ne.setStrokeColor,ne.strokeWidthPanel=new Ie("Line width",se.defaultStrokeWidths,se.defaultStrokeWidth),ne.strokeWidthPanel.onWidthChanged=ne.setStrokeWidth,ne.strokeStylePanel=new Me("Line style",se.defaultStrokeDasharrays,se.defaultStrokeDasharray),ne.strokeStylePanel.onStyleChanged=ne.setStrokeDasharray,ne}return Ne(ee,ae),Object.defineProperty(ee.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ee.prototype.getState=function(){var z=ae.prototype.getState.call(this);return z.typeName=ee.typeName,z},ee.typeName="FrameMarker",ee.title="Frame marker",ee.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',ee}(Le),_e=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"},et=function(ae){function ee(z,ie,se){var ne=ae.call(this,z,ie,se)||this;return ne.x1=0,ne.y1=0,ne.x2=0,ne.y2=0,ne.defaultLength=50,ne.manipulationStartX=0,ne.manipulationStartY=0,ne.manipulationStartX1=0,ne.manipulationStartY1=0,ne.manipulationStartX2=0,ne.manipulationStartY2=0,ne.setupControlBox(),ne}return Ne(ee,ae),ee.prototype.ownsTarget=function(z){return!!ae.prototype.ownsTarget.call(this,z)||!(!this.grip1.ownsTarget(z)&&!this.grip2.ownsTarget(z))},ee.prototype.pointerDown=function(z,ie){ae.prototype.pointerDown.call(this,z,ie),this.manipulationStartX=z.x,this.manipulationStartY=z.y,this.state==="new"&&(this.x1=z.x,this.y1=z.y,this.x2=z.x,this.y2=z.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(ie)?this.activeGrip=this.grip1:this.grip2.ownsTarget(ie)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},ee.prototype.pointerUp=function(z){var ie=this.state;ae.prototype.pointerUp.call(this,z),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(z),this._state="select",ie==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},ee.prototype.adjustVisual=function(){},ee.prototype.manipulate=function(z){this.state==="creating"?this.resize(z):this.state==="move"?(this.x1=this.manipulationStartX1+z.x-this.manipulationStartX,this.y1=this.manipulationStartY1+z.y-this.manipulationStartY,this.x2=this.manipulationStartX2+z.x-this.manipulationStartX,this.y2=this.manipulationStartY2+z.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(z)},ee.prototype.resize=function(z){switch(this.activeGrip){case this.grip1:this.x1=z.x,this.y1=z.y;break;case this.grip2:case void 0:this.x2=z.x,this.y2=z.y}this.adjustVisual(),this.adjustControlBox()},ee.prototype.select=function(){ae.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},ee.prototype.deselect=function(){ae.prototype.deselect.call(this),this.controlBox.style.display="none"},ee.prototype.setupControlBox=function(){this.controlBox=Oe.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},ee.prototype.adjustControlBox=function(){this.positionGrips()},ee.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},ee.prototype.createGrip=function(){var z=new We;return z.visual.transform.baseVal.appendItem(Oe.createTransform()),this.controlBox.appendChild(z.visual),z},ee.prototype.positionGrips=function(){var z=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-z/2,this.y1-z/2),this.positionGrip(this.grip2.visual,this.x2-z/2,this.y2-z/2)},ee.prototype.positionGrip=function(z,ie,se){var ne=z.transform.baseVal.getItem(0);ne.setTranslate(ie,se),z.transform.baseVal.replaceItem(ne,0)},ee.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},ae.prototype.getState.call(this))},ee.prototype.restoreState=function(z){ae.prototype.restoreState.call(this,z);var ie=z;this.x1=ie.x1,this.y1=ie.y1,this.x2=ie.x2,this.y2=ie.y2},ee.prototype.scale=function(z,ie){ae.prototype.scale.call(this,z,ie),this.x1=this.x1*z,this.y1=this.y1*ie,this.x2=this.x2*z,this.y2=this.y2*ie,this.adjustVisual(),this.adjustControlBox()},ee}(me),Kt=function(ae){function ee(z,ie,se){var ne=ae.call(this,z,ie,se)||this;return ne.strokeColor="transparent",ne.strokeWidth=0,ne.strokeDasharray="",ne.setStrokeColor=ne.setStrokeColor.bind(ne),ne.setStrokeWidth=ne.setStrokeWidth.bind(ne),ne.setStrokeDasharray=ne.setStrokeDasharray.bind(ne),ne.strokeColor=se.defaultColor,ne.strokeWidth=se.defaultStrokeWidth,ne.strokeDasharray=se.defaultStrokeDasharray,ne.strokePanel=new Ae("Line color",se.defaultColorSet,se.defaultColor),ne.strokePanel.onColorChanged=ne.setStrokeColor,ne.strokeWidthPanel=new Ie("Line width",se.defaultStrokeWidths,se.defaultStrokeWidth),ne.strokeWidthPanel.onWidthChanged=ne.setStrokeWidth,ne.strokeStylePanel=new Me("Line style",se.defaultStrokeDasharrays,se.defaultStrokeDasharray),ne.strokeStylePanel.onStyleChanged=ne.setStrokeDasharray,ne}return Ne(ee,ae),ee.prototype.ownsTarget=function(z){return!(!ae.prototype.ownsTarget.call(this,z)&&z!==this.visual&&z!==this.selectorLine&&z!==this.visibleLine)},ee.prototype.createVisual=function(){this.visual=Oe.createGroup(),this.selectorLine=Oe.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=Oe.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)},ee.prototype.pointerDown=function(z,ie){ae.prototype.pointerDown.call(this,z,ie),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},ee.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()),Oe.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),Oe.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),Oe.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},ee.prototype.setStrokeColor=function(z){this.strokeColor=z,this.adjustVisual(),this.colorChanged(z)},ee.prototype.setStrokeWidth=function(z){this.strokeWidth=z,this.adjustVisual()},ee.prototype.setStrokeDasharray=function(z){this.strokeDasharray=z,this.adjustVisual(),this.stateChanged()},Object.defineProperty(ee.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ee.prototype.getState=function(){var z=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},ae.prototype.getState.call(this));return z.typeName=ee.typeName,z},ee.prototype.restoreState=function(z){ae.prototype.restoreState.call(this,z);var ie=z;this.strokeColor=ie.strokeColor,this.strokeWidth=ie.strokeWidth,this.strokeDasharray=ie.strokeDasharray,this.createVisual(),this.adjustVisual()},ee.typeName="LineMarker",ee.title="Line marker",ee.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',ee}(et),Et=function(ae){function ee(z,ie,se,ne){var be=ae.call(this,z,ne||'<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 be.fonts=[],be.fontBoxes=[],be.fonts=ie,be.currentFont=se,be.setCurrentFont=be.setCurrentFont.bind(be),be}return Ne(ee,ae),ee.prototype.getUi=function(){var z=this,ie=document.createElement("div");return ie.style.overflow="hidden",ie.style.flexGrow="2",this.fonts.forEach(function(se){var ne=document.createElement("div");ne.style.display="inline-block",ne.style.alignItems="center",ne.style.justifyContent="space-between",ne.style.padding="5px",ne.style.borderWidth="2px",ne.style.borderStyle="solid",ne.style.overflow="hidden",ne.style.maxWidth=100/z.fonts.length-5+"%",ne.style.borderColor=se===z.currentFont?z.uiStyleSettings.toolboxAccentColor:"transparent",ne.addEventListener("click",function(){z.setCurrentFont(se,ne)}),ie.appendChild(ne);var be=document.createElement("div");be.style.display="flex",be.style.minHeight="20px",be.style.flexGrow="2",be.style.fontFamily=se,be.style.overflow="hidden";var gt=document.createElement("div");gt.style.whiteSpace="nowrap",gt.style.overflow="hidden",gt.style.textOverflow="ellipsis",gt.innerHTML="The quick brown fox jumps over the lazy dog",be.appendChild(gt),ne.appendChild(be),z.fontBoxes.push(ne)}),ie},ee.prototype.setCurrentFont=function(z,ie){var se=this;this.currentFont=z,this.fontBoxes.forEach(function(ne){ne.style.borderColor=ne===ie?se.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},ee}(xt),Ct=function(ae){function ee(z,ie,se){var ne=ae.call(this,z,ie,se)||this;return ne.color="transparent",ne.padding=5,ne.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",ne.text=ne.DEFAULT_TEXT,ne.isMoved=!1,ne.color=se.defaultColor,ne.fontFamily=se.defaultFontFamily,ne.defaultSize={x:100,y:30},ne.setColor=ne.setColor.bind(ne),ne.setFont=ne.setFont.bind(ne),ne.renderText=ne.renderText.bind(ne),ne.sizeText=ne.sizeText.bind(ne),ne.textEditDivClicked=ne.textEditDivClicked.bind(ne),ne.showTextEditor=ne.showTextEditor.bind(ne),ne.setSize=ne.setSize.bind(ne),ne.positionTextEditor=ne.positionTextEditor.bind(ne),ne.colorPanel=new Ae("Color",se.defaultColorSet,se.defaultColor),ne.colorPanel.onColorChanged=ne.setColor,ne.fontFamilyPanel=new Et("Font",se.defaultFontFamilies,se.defaultFontFamily),ne.fontFamilyPanel.onFontChanged=ne.setFont,ne}return Ne(ee,ae),ee.prototype.ownsTarget=function(z){if(ae.prototype.ownsTarget.call(this,z)||z===this.visual||z===this.textElement||z===this.bgRectangle)return!0;var ie=!1;return this.textElement.childNodes.forEach(function(se){se===z&&(ie=!0)}),ie},ee.prototype.createVisual=function(){this.visual=Oe.createGroup(),this.bgRectangle=Oe.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=Oe.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(Oe.createTransform()),this.textElement.transform.baseVal.appendItem(Oe.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},ee.prototype.pointerDown=function(z,ie){ae.prototype.pointerDown.call(this,z,ie),this.isMoved=!1,this.pointerDownPoint=z,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(z),this._state="creating")},ee.prototype.renderText=function(){var z=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(ie){z.textElement.appendChild(Oe.createTSpan(ie.trim()===""?" ":ie.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},ee.prototype.getTextScale=function(){var z=this.textElement.getBBox(),ie=1;if(z.width>0&&z.height>0){var se=(1*this.width-this.width*this.padding*2/100)/z.width,ne=(1*this.height-this.height*this.padding*2/100)/z.height;ie=Math.min(se,ne)}return ie},ee.prototype.getTextPosition=function(z){var ie=this.textElement.getBBox(),se=0,ne=0;return ie.width>0&&ie.height>0&&(se=(this.width-ie.width*z)/2,ne=this.height/2-ie.height*z/2),{x:se,y:ne}},ee.prototype.sizeText=function(){var z=this.textElement.getBBox(),ie=this.getTextScale(),se=this.getTextPosition(ie);se.y-=z.y*ie,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+se.x+"px, "+se.y+"px) scale("+ie+", "+ie+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(se.x,se.y),this.textElement.transform.baseVal.getItem(1).setScale(ie,ie))},ee.prototype.manipulate=function(z){ae.prototype.manipulate.call(this,z),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(z.x-this.pointerDownPoint.x)>5||Math.abs(z.y-this.pointerDownPoint.y)>5)},ee.prototype.resize=function(z){ae.prototype.resize.call(this,z),this.isMoved=!0,this.setSize(),this.sizeText()},ee.prototype.setSize=function(){ae.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(Oe.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Oe.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},ee.prototype.pointerUp=function(z){var ie=this.state;ie==="creating"&&(this._suppressMarkerCreateEvent=!0),ae.prototype.pointerUp.call(this,z),this.setSize(),(ie==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},ee.prototype.showTextEditor=function(){var z=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(ie){ie.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var ie=Number.parseFloat(z.textEditor.style.fontSize);z.textEditor.clientWidth>=Number.parseInt(z.textEditor.style.maxWidth)&&ie>.9;)ie-=.1,z.textEditor.style.fontSize=Math.max(ie,.9)+"em"}),this.textEditor.addEventListener("keyup",function(ie){ie.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(ie){if(ie.clipboardData){var se=ie.clipboardData.getData("text"),ne=window.getSelection();if(!ne.rangeCount)return!1;ne.deleteFromDocument(),ne.getRangeAt(0).insertNode(document.createTextNode(se)),ie.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){z.textEditDivClicked(z.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},ee.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var z=this.getTextScale(),ie=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),se=this.textElement.getBBox(),ne={x:se.width*z,y:se.height*z};ie.x-=ne.x/2,ie.y-=ne.y/2,this.textEditor.style.top=ie.y+"px",this.textEditor.style.left=ie.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-ie.x+"px",this.textEditor.style.fontSize=Math.max(16*z,12)+"px",this.textElement.style.display="none"}},ee.prototype.textEditDivClicked=function(z){this.text=z.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},ee.prototype.select=function(){ae.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},ee.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),ae.prototype.deselect.call(this)},ee.prototype.dblClick=function(z,ie){ae.prototype.dblClick.call(this,z,ie),this.showTextEditor()},ee.prototype.setColor=function(z){this.textElement&&Oe.setAttributes(this.textElement,[["fill",z]]),this.color=z,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(z)},ee.prototype.setFont=function(z){this.textElement&&Oe.setAttributes(this.textElement,[["font-family",z]]),this.fontFamily=z,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},ee.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},ee.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(ee.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),ee.prototype.getState=function(){var z=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},ae.prototype.getState.call(this));return z.typeName=ee.typeName,z},ee.prototype.restoreState=function(z){var ie=z;this.color=ie.color,this.fontFamily=ie.fontFamily,this.padding=ie.padding,this.text=ie.text,this.createVisual(),ae.prototype.restoreState.call(this,z),this.setSize()},ee.prototype.scale=function(z,ie){ae.prototype.scale.call(this,z,ie),this.setSize(),this.sizeText(),this.positionTextEditor()},ee.typeName="TextMarker",ee.title="Text marker",ee.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>',ee}(ye),ft=function(ae){function ee(z,ie,se){var ne=ae.call(this,z,ie,se)||this;return ne.color="transparent",ne.lineWidth=3,ne.drawing=!1,ne.pixelRatio=1,ne.color=se.defaultColor,ne.lineWidth=se.defaultStrokeWidth,ne.pixelRatio=se.freehandPixelRatio,ne.setColor=ne.setColor.bind(ne),ne.addCanvas=ne.addCanvas.bind(ne),ne.finishCreation=ne.finishCreation.bind(ne),ne.setLineWidth=ne.setLineWidth.bind(ne),ne.colorPanel=new Ae("Color",se.defaultColorSet,se.defaultColor),ne.colorPanel.onColorChanged=ne.setColor,ne.lineWidthPanel=new Ie("Line width",se.defaultStrokeWidths,se.defaultStrokeWidth),ne.lineWidthPanel.onWidthChanged=ne.setLineWidth,ne}return Ne(ee,ae),ee.prototype.ownsTarget=function(z){return!(!ae.prototype.ownsTarget.call(this,z)&&z!==this.visual&&z!==this.drawingImage)},ee.prototype.createVisual=function(){this.visual=Oe.createGroup(),this.drawingImage=Oe.createImage(),this.visual.appendChild(this.drawingImage);var z=Oe.createTransform();this.visual.transform.baseVal.appendItem(z),this.addMarkerVisualToContainer(this.visual)},ee.prototype.pointerDown=function(z,ie){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(z.x,z.y),this.drawing=!0):ae.prototype.pointerDown.call(this,z,ie)},ee.prototype.manipulate=function(z){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(z.x,z.y),this.canvasContext.stroke()):ae.prototype.manipulate.call(this,z)},ee.prototype.resize=function(z){ae.prototype.resize.call(this,z),Oe.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Oe.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},ee.prototype.pointerUp=function(z){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):ae.prototype.pointerUp.call(this,z)},ee.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)},ee.prototype.select=function(){this.state==="creating"&&this.finishCreation(),ae.prototype.select.call(this)},ee.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),ae.prototype.deselect.call(this)},ee.prototype.finishCreation=function(){for(var z=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),ie=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],se=ie[0],ne=ie[1],be=ie[2],gt=ie[3],kt=!1,ht=0;ht<this.canvasElement.height;ht++)for(var Ze=0;Ze<this.canvasElement.width;Ze++)z.data[ht*this.canvasElement.width*4+4*Ze+3]>0&&(kt=!0,ht<ne&&(ne=ht),Ze<se&&(se=Ze),ht>gt&&(gt=ht),Ze>be&&(be=Ze));if(kt){this.left=se/this.pixelRatio,this.top=ne/this.pixelRatio,this.width=(be-se)/this.pixelRatio,this.height=(gt-ne)/this.pixelRatio;var Vt=document.createElement("canvas");Vt.width=be-se,Vt.height=gt-ne,Vt.getContext("2d").putImageData(this.canvasContext.getImageData(se,ne,be-se,gt-ne),0,0),this.drawingImgUrl=Vt.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},ee.prototype.setDrawingImage=function(){Oe.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),Oe.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},ee.prototype.setColor=function(z){this.color=z,this.colorChanged(z)},ee.prototype.setLineWidth=function(z){this.lineWidth=z},Object.defineProperty(ee.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),ee.prototype.getState=function(){var z=Object.assign({drawingImgUrl:this.drawingImgUrl},ae.prototype.getState.call(this));return z.typeName=ee.typeName,z},ee.prototype.restoreState=function(z){this.createVisual(),ae.prototype.restoreState.call(this,z),this.drawingImgUrl=z.drawingImgUrl,this.setDrawingImage()},ee.prototype.scale=function(z,ie){ae.prototype.scale.call(this,z,ie),this.setDrawingImage()},ee.typeName="FreehandMarker",ee.title="Freehand marker",ee.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>',ee}(ye),ve=function(ae){function ee(z,ie,se){var ne=ae.call(this,z,se||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return ne.typeBoxes=[],ne.currentType=ie,ne.setCurrentType=ne.setCurrentType.bind(ne),ne}return Ne(ee,ae),ee.prototype.getUi=function(){var z=this,ie=document.createElement("div");ie.style.display="flex",ie.style.overflow="hidden",ie.style.flexGrow="2";for(var se=function(gt){var kt="both";switch(gt){case 0:kt="both";break;case 1:kt="start";break;case 2:kt="end";break;case 3:kt="none"}var ht=document.createElement("div");if(ht.style.display="flex",ht.style.flexGrow="2",ht.style.alignItems="center",ht.style.justifyContent="space-between",ht.style.padding="5px",ht.style.borderWidth="2px",ht.style.borderStyle="solid",ht.style.borderColor=kt===ne.currentType?ne.uiStyleSettings.toolboxAccentColor:"transparent",ht.addEventListener("click",function(){z.setCurrentType(kt,ht)}),ie.appendChild(ht),kt==="both"||kt==="start"){var Ze=document.createElement("div");Ze.style.display="flex",Ze.style.alignItems="center",Ze.style.minHeight="20px",Ze.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="`+(ne.uiStyleSettings!==void 0?ne.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
</svg>`,Ze.style.marginLeft="5px",ht.appendChild(Ze)}var Vt=document.createElement("div");Vt.style.display="flex",Vt.style.alignItems="center",Vt.style.minHeight="20px",Vt.style.flexGrow="2";var Bt=document.createElement("hr");if(Bt.style.minWidth="20px",Bt.style.border="0px",Bt.style.borderTop="3px solid "+(ne.uiStyleSettings!==void 0?ne.uiStyleSettings.toolboxColor:"#eeeeee"),Bt.style.flexGrow="2",Vt.appendChild(Bt),ht.appendChild(Vt),kt==="both"||kt==="end"){var Ht=document.createElement("div");Ht.style.display="flex",Ht.style.alignItems="center",Ht.style.minHeight="20px",Ht.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="`+(ne.uiStyleSettings!==void 0?ne.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
</svg>`,Ht.style.marginRight="5px",ht.appendChild(Ht)}ne.typeBoxes.push(ht)},ne=this,be=0;be<4;be++)se(be);return ie},ee.prototype.setCurrentType=function(z,ie){var se=this;this.currentType=z,this.typeBoxes.forEach(function(ne){ne.style.borderColor=ne===ie?se.uiStyleSettings!==void 0?se.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},ee}(xt),ce=function(ae){function ee(z,ie,se){var ne=ae.call(this,z,ie,se)||this;return ne.arrowType="end",ne.arrowBaseHeight=10,ne.arrowBaseWidth=10,ne.getArrowPoints=ne.getArrowPoints.bind(ne),ne.setArrowType=ne.setArrowType.bind(ne),ne.arrowTypePanel=new ve("Arrow type","end"),ne.arrowTypePanel.onArrowTypeChanged=ne.setArrowType,ne}return Ne(ee,ae),ee.prototype.ownsTarget=function(z){return!(!ae.prototype.ownsTarget.call(this,z)&&z!==this.arrow1&&z!==this.arrow2)},ee.prototype.getArrowPoints=function(z,ie){var se=this.arrowBaseWidth+2*this.strokeWidth,ne=this.arrowBaseHeight+2*this.strokeWidth;return z-se/2+","+(ie+ne/2)+" "+z+","+(ie-ne/2)+" "+(z+se/2)+","+(ie+ne/2)},ee.prototype.createTips=function(){this.arrow1=Oe.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(Oe.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=Oe.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(Oe.createTransform()),this.visual.appendChild(this.arrow2)},ee.prototype.pointerDown=function(z,ie){ae.prototype.pointerDown.call(this,z,ie),this.state==="creating"&&this.createTips()},ee.prototype.adjustVisual=function(){if(ae.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",Oe.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),Oe.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var z=0;Math.abs(this.x1-this.x2)>.1&&(z=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var ie=this.arrow1.transform.baseVal.getItem(0);ie.setRotate(z,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(ie,0);var se=this.arrow2.transform.baseVal.getItem(0);se.setRotate(z+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(se,0)}},ee.prototype.setArrowType=function(z){this.arrowType=z,this.adjustVisual(),this.stateChanged()},Object.defineProperty(ee.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),ee.prototype.getState=function(){var z=Object.assign({arrowType:this.arrowType},ae.prototype.getState.call(this));return z.typeName=ee.typeName,z},ee.prototype.restoreState=function(z){ae.prototype.restoreState.call(this,z);var ie=z;this.arrowType=ie.arrowType,this.createTips(),this.adjustVisual()},ee.typeName="ArrowMarker",ee.title="Arrow marker",ee.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',ee}(Kt),Ge=function(ae){function ee(z,ie,se){var ne=ae.call(this,z,ie,se)||this;return ne.fillColor=se.defaultFillColor,ne.strokeWidth=0,ne.fillPanel=new Ae("Color",se.defaultColorSet,se.defaultFillColor),ne.fillPanel.onColorChanged=ne.setFillColor,ne}return Ne(ee,ae),Object.defineProperty(ee.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),ee.prototype.getState=function(){var z=ae.prototype.getState.call(this);return z.typeName=ee.typeName,z},ee.typeName="CoverMarker",ee.title="Cover marker",ee.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',ee}(Le),vt=function(ae){function ee(z,ie,se,ne){var be=ae.call(this,z,ne||'<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 be.opacities=[],be.opacityBoxes=[],be.opacities=ie,be.currentOpacity=se,be.setCurrentOpacity=be.setCurrentOpacity.bind(be),be}return Ne(ee,ae),ee.prototype.getUi=function(){var z=this,ie=document.createElement("div");return ie.style.display="flex",ie.style.overflow="hidden",ie.style.flexGrow="2",ie.style.justifyContent="space-between",this.opacities.forEach(function(se){var ne=document.createElement("div");ne.style.display="flex",ne.style.alignItems="center",ne.style.justifyContent="center",ne.style.padding="5px",ne.style.borderWidth="2px",ne.style.borderStyle="solid",ne.style.borderColor=se===z.currentOpacity?z.uiStyleSettings.toolboxAccentColor:"transparent",ne.addEventListener("click",function(){z.setCurrentOpacity(se,ne)}),ie.appendChild(ne);var be=document.createElement("div");be.innerText=100*se+"%",ne.appendChild(be),z.opacityBoxes.push(ne)}),ie},ee.prototype.setCurrentOpacity=function(z,ie){var se=this;this.currentOpacity=z,this.opacityBoxes.forEach(function(ne){ne.style.borderColor=ne===ie?se.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},ee}(xt),dt=function(ae){function ee(z,ie,se){var ne=ae.call(this,z,ie,se)||this;return ne.setOpacity=ne.setOpacity.bind(ne),ne.fillColor=se.defaultHighlightColor,ne.strokeWidth=0,ne.opacity=se.defaultHighlightOpacity,ne.fillPanel=new Ae("Color",se.defaultColorSet,ne.fillColor),ne.fillPanel.onColorChanged=ne.setFillColor,ne.opacityPanel=new vt("Opacity",se.defaultOpacitySteps,ne.opacity),ne.opacityPanel.onOpacityChanged=ne.setOpacity,ne}return Ne(ee,ae),ee.prototype.setOpacity=function(z){this.opacity=z,this.visual&&Oe.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(ee.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),ee.prototype.getState=function(){var z=ae.prototype.getState.call(this);return z.typeName=ee.typeName,z},ee.typeName="HighlightMarker",ee.title="Highlight marker",ee.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>',ee}(Ge),Te='<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>',ut='<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>',at=function(ae){function ee(z,ie,se){var ne=ae.call(this,z,ie,se)||this;return ne.bgColor="transparent",ne.tipPosition={x:0,y:0},ne.tipBase1Position={x:0,y:0},ne.tipBase2Position={x:0,y:0},ne.tipMoving=!1,ne.color=se.defaultStrokeColor,ne.bgColor=se.defaultFillColor,ne.fontFamily=se.defaultFontFamily,ne.defaultSize={x:100,y:30},ne.setBgColor=ne.setBgColor.bind(ne),ne.getTipPoints=ne.getTipPoints.bind(ne),ne.positionTip=ne.positionTip.bind(ne),ne.setTipPoints=ne.setTipPoints.bind(ne),ne.colorPanel=new Ae("Text color",se.defaultColorSet,ne.color,Te),ne.colorPanel.onColorChanged=ne.setColor,ne.bgColorPanel=new Ae("Fill color",se.defaultColorSet,ne.bgColor,ut),ne.bgColorPanel.onColorChanged=ne.setBgColor,ne.fontFamilyPanel=new Et("Font",se.defaultFontFamilies,se.defaultFontFamily),ne.fontFamilyPanel.onFontChanged=ne.setFont,ne.tipGrip=new We,ne.tipGrip.visual.transform.baseVal.appendItem(Oe.createTransform()),ne.controlBox.appendChild(ne.tipGrip.visual),ne}return Ne(ee,ae),ee.prototype.ownsTarget=function(z){return ae.prototype.ownsTarget.call(this,z)||this.tipGrip.ownsTarget(z)||this.tip===z},ee.prototype.createTip=function(){Oe.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=Oe.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},ee.prototype.pointerDown=function(z,ie){this.state==="new"&&ae.prototype.pointerDown.call(this,z,ie),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(ie)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):ae.prototype.pointerDown.call(this,z,ie)},ee.prototype.pointerUp=function(z){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,ae.prototype.pointerUp.call(this,z);else{var ie=this.state==="creating";ae.prototype.pointerUp.call(this,z),this.setTipPoints(ie),this.positionTip()}},ee.prototype.manipulate=function(z){if(this.tipMoving){var ie=this.unrotatePoint(z);this.tipPosition={x:ie.x-this.manipulationStartLeft,y:ie.y-this.manipulationStartTop},this.positionTip()}else ae.prototype.manipulate.call(this,z)},ee.prototype.setBgColor=function(z){this.bgRectangle&&this.tip&&(Oe.setAttributes(this.bgRectangle,[["fill",z]]),Oe.setAttributes(this.tip,[["fill",z]])),this.bgColor=z,this.fillColorChanged(z)},ee.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},ee.prototype.setTipPoints=function(z){z===void 0&&(z=!1);var ie=Math.min(this.height/2,15),se=this.height/5;z&&(this.tipPosition={x:ie+se/2,y:this.height+20});var ne=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?ne<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(se=this.width/5,ie=Math.min(this.width/2,15),this.tipBase1Position={x:ie,y:0},this.tipBase2Position={x:ie+se,y:0}):(this.tipBase1Position={x:0,y:ie},this.tipBase2Position={x:0,y:ie+se}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?ne<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(se=this.width/5,ie=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-ie-se,y:0},this.tipBase2Position={x:this.width-ie,y:0}):(this.tipBase1Position={x:this.width,y:ie},this.tipBase2Position={x:this.width,y:ie+se}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?ne<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(se=this.width/5,ie=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-ie-se,y:this.height},this.tipBase2Position={x:this.width-ie,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-ie-se},this.tipBase2Position={x:this.width,y:this.height-ie}):ne<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(se=this.width/5,ie=Math.min(this.width/2,15),this.tipBase1Position={x:ie,y:this.height},this.tipBase2Position={x:ie+se,y:this.height}):(this.tipBase1Position={x:0,y:this.height-ie},this.tipBase2Position={x:0,y:this.height-ie-se})},ee.prototype.resize=function(z){ae.prototype.resize.call(this,z),this.positionTip()},ee.prototype.positionTip=function(){Oe.setAttributes(this.tip,[["points",this.getTipPoints()]]);var z=this.tipGrip.visual.transform.baseVal.getItem(0);z.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(z,0)},Object.defineProperty(ee.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),ee.prototype.select=function(){this.positionTip(),ae.prototype.select.call(this)},ee.prototype.getState=function(){var z=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},ae.prototype.getState.call(this));return z.typeName=ee.typeName,z},ee.prototype.restoreState=function(z){var ie=z;this.bgColor=ie.bgColor,this.tipPosition=ie.tipPosition,ae.prototype.restoreState.call(this,z),this.createTip(),this.setTipPoints()},ee.prototype.scale=function(z,ie){ae.prototype.scale.call(this,z,ie),this.tipPosition={x:this.tipPosition.x*z,y:this.tipPosition.y*ie},this.positionTip()},ee.typeName="CalloutMarker",ee.title="Callout marker",ee.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>',ee}(Ct),_t=function(ae){function ee(z,ie,se){var ne=ae.call(this,z,ie,se)||this;return ne.fillColor="transparent",ne.strokeColor="transparent",ne.strokeWidth=0,ne.strokeDasharray="",ne.opacity=1,ne.strokeColor=se.defaultColor,ne.strokeWidth=se.defaultStrokeWidth,ne.strokeDasharray=se.defaultStrokeDasharray,ne.fillColor=se.defaultFillColor,ne.setStrokeColor=ne.setStrokeColor.bind(ne),ne.setFillColor=ne.setFillColor.bind(ne),ne.setStrokeWidth=ne.setStrokeWidth.bind(ne),ne.setStrokeDasharray=ne.setStrokeDasharray.bind(ne),ne.setOpacity=ne.setOpacity.bind(ne),ne.createVisual=ne.createVisual.bind(ne),ne.strokePanel=new Ae("Line color",de(se.defaultColorSet,["transparent"]),se.defaultColor),ne.strokePanel.onColorChanged=ne.setStrokeColor,ne.fillPanel=new Ae("Fill color",de(se.defaultColorSet,["transparent"]),ne.fillColor,ut),ne.fillPanel.onColorChanged=ne.setFillColor,ne.strokeWidthPanel=new Ie("Line width",se.defaultStrokeWidths,se.defaultStrokeWidth),ne.strokeWidthPanel.onWidthChanged=ne.setStrokeWidth,ne.strokeStylePanel=new Me("Line style",se.defaultStrokeDasharrays,se.defaultStrokeDasharray),ne.strokeStylePanel.onStyleChanged=ne.setStrokeDasharray,ne.opacityPanel=new vt("Opacity",se.defaultOpacitySteps,ne.opacity),ne.opacityPanel.onOpacityChanged=ne.setOpacity,ne}return Ne(ee,ae),ee.prototype.ownsTarget=function(z){return!(!ae.prototype.ownsTarget.call(this,z)&&z!==this.visual)},ee.prototype.createVisual=function(){this.visual=Oe.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)},ee.prototype.pointerDown=function(z,ie){ae.prototype.pointerDown.call(this,z,ie),this.state==="new"&&(this.createVisual(),this.moveVisual(z),this._state="creating")},ee.prototype.manipulate=function(z){ae.prototype.manipulate.call(this,z)},ee.prototype.resize=function(z){ae.prototype.resize.call(this,z),this.setSize()},ee.prototype.setSize=function(){ae.prototype.setSize.call(this),Oe.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},ee.prototype.pointerUp=function(z){ae.prototype.pointerUp.call(this,z),this.setSize()},ee.prototype.setStrokeColor=function(z){this.strokeColor=z,this.visual&&Oe.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(z),this.stateChanged()},ee.prototype.setFillColor=function(z){this.fillColor=z,this.visual&&Oe.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(z),this.stateChanged()},ee.prototype.setStrokeWidth=function(z){this.strokeWidth=z,this.visual&&Oe.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},ee.prototype.setStrokeDasharray=function(z){this.strokeDasharray=z,this.visual&&Oe.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},ee.prototype.setOpacity=function(z){this.opacity=z,this.visual&&Oe.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(ee.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),ee.prototype.getState=function(){var z=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},ae.prototype.getState.call(this));return z.typeName=ee.typeName,z},ee.prototype.restoreState=function(z){var ie=z;this.fillColor=ie.fillColor,this.strokeColor=ie.strokeColor,this.strokeWidth=ie.strokeWidth,this.strokeDasharray=ie.strokeDasharray,this.opacity=ie.opacity,this.createVisual(),ae.prototype.restoreState.call(this,z),this.setSize()},ee.prototype.scale=function(z,ie){ae.prototype.scale.call(this,z,ie),this.setSize()},ee.typeName="EllipseMarker",ee.title="Ellipse marker",ee.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>',ee}(ye),He=function(ae){function ee(z,ie,se){return ae.call(this,z,ie,se)||this}return Ne(ee,ae),Object.defineProperty(ee.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),ee.prototype.ownsTarget=function(z){return!(!ae.prototype.ownsTarget.call(this,z)&&z!==this.tip1&&z!==this.tip2)},ee.prototype.createTips=function(){this.tip1=Oe.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(Oe.createTransform()),this.visual.appendChild(this.tip1),this.tip2=Oe.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(Oe.createTransform()),this.visual.appendChild(this.tip2)},ee.prototype.pointerDown=function(z,ie){ae.prototype.pointerDown.call(this,z,ie),this.state==="creating"&&this.createTips()},ee.prototype.adjustVisual=function(){if(ae.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(Oe.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()]]),Oe.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 z=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),ie=this.tip1.transform.baseVal.getItem(0);ie.setRotate(z,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(ie,0);var se=this.tip2.transform.baseVal.getItem(0);se.setRotate(z+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(se,0)}},Object.defineProperty(ee.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ee.prototype.getState=function(){var z=ae.prototype.getState.call(this);return z.typeName=ee.typeName,z},ee.prototype.restoreState=function(z){ae.prototype.restoreState.call(this,z),this.createTips(),this.adjustVisual()},ee.typeName="MeasurementMarker",ee.title="Measurement marker",ee.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>',ee}(Kt),De=function(ae){function ee(z,ie,se){var ne=ae.call(this,z,ie,se)||this;return ne.strokePanel.colors=se.defaultColorSet,ne.fillColor="transparent",ne}return Ne(ee,ae),Object.defineProperty(ee.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ee.prototype.getState=function(){var z=ae.prototype.getState.call(this);return z.typeName=ee.typeName,z},ee.typeName="EllipseFrameMarker",ee.title="Ellipse frame marker",ee.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>',ee}(_t),Se=function(){function ae(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(ae.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),ae.prototype.addUndoStep=function(ee){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(ee)||(this.undoStack.push(ee),JSON.stringify(this.lastRedoStep)!==JSON.stringify(ee)&&this.redoStack.splice(0,this.redoStack.length))},ae.prototype.replaceLastUndoStep=function(ee){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=ee)},ae.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},ae.prototype.undo=function(){if(this.undoStack.length>1){var ee=this.undoStack.pop();return ee!==void 0&&this.redoStack.push(ee),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},ae.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},ae}(),ze=function(ae){function ee(z,ie,se){var ne=ae.call(this,z,ie,se)||this;return ne.strokeColor="transparent",ne.strokeWidth=0,ne.strokeDasharray="",ne.curveX=0,ne.curveY=0,ne.manipulationStartCurveX=0,ne.manipulationStartCurveY=0,ne.setStrokeColor=ne.setStrokeColor.bind(ne),ne.setStrokeWidth=ne.setStrokeWidth.bind(ne),ne.setStrokeDasharray=ne.setStrokeDasharray.bind(ne),ne.positionGrips=ne.positionGrips.bind(ne),ne.addControlGrips=ne.addControlGrips.bind(ne),ne.adjustVisual=ne.adjustVisual.bind(ne),ne.setupControlBox=ne.setupControlBox.bind(ne),ne.resize=ne.resize.bind(ne),ne.strokeColor=se.defaultColor,ne.strokeWidth=se.defaultStrokeWidth,ne.strokeDasharray=se.defaultStrokeDasharray,ne.strokePanel=new Ae("Line color",se.defaultColorSet,se.defaultColor),ne.strokePanel.onColorChanged=ne.setStrokeColor,ne.strokeWidthPanel=new Ie("Line width",se.defaultStrokeWidths,se.defaultStrokeWidth),ne.strokeWidthPanel.onWidthChanged=ne.setStrokeWidth,ne.strokeStylePanel=new Me("Line style",se.defaultStrokeDasharrays,se.defaultStrokeDasharray),ne.strokeStylePanel.onStyleChanged=ne.setStrokeDasharray,ne}return Ne(ee,ae),ee.prototype.ownsTarget=function(z){return!(!ae.prototype.ownsTarget.call(this,z)&&z!==this.visual&&z!==this.selectorCurve&&z!==this.visibleCurve&&!this.curveGrip.ownsTarget(z))},ee.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},ee.prototype.createVisual=function(){this.visual=Oe.createGroup(),this.selectorCurve=Oe.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=Oe.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)},ee.prototype.pointerDown=function(z,ie){ae.prototype.pointerDown.call(this,z,ie),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=z.x,this.curveY=z.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(ie)&&(this.activeGrip=this.curveGrip,this._state="resize")},ee.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),Oe.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),Oe.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),Oe.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},ee.prototype.setupControlBox=function(){ae.prototype.setupControlBox.call(this),this.curveControlLine1=Oe.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=Oe.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)},ee.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,ae.prototype.addControlGrips.call(this)},ee.prototype.positionGrips=function(){ae.prototype.positionGrips.call(this);var z=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-z/2,this.curveY-z/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()))},ee.prototype.manipulate=function(z){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+z.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+z.y-this.manipulationStartY),ae.prototype.manipulate.call(this,z)},ee.prototype.resize=function(z){this.activeGrip===this.curveGrip&&(this.curveX=z.x,this.curveY=z.y),ae.prototype.resize.call(this,z),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},ee.prototype.setStrokeColor=function(z){this.strokeColor=z,this.adjustVisual(),this.colorChanged(z)},ee.prototype.setStrokeWidth=function(z){this.strokeWidth=z,this.adjustVisual()},ee.prototype.setStrokeDasharray=function(z){this.strokeDasharray=z,this.adjustVisual()},ee.prototype.scale=function(z,ie){this.curveX=this.curveX*z,this.curveY=this.curveY*ie,ae.prototype.scale.call(this,z,ie)},Object.defineProperty(ee.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),ee.prototype.getState=function(){var z=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},ae.prototype.getState.call(this));return z.typeName=ee.typeName,z},ee.prototype.restoreState=function(z){ae.prototype.restoreState.call(this,z);var ie=z;this.strokeColor=ie.strokeColor,this.strokeWidth=ie.strokeWidth,this.strokeDasharray=ie.strokeDasharray,this.curveX=ie.curveX,this.curveY=ie.curveY,this.createVisual(),this.adjustVisual()},ee.typeName="CurveMarker",ee.title="Curve marker",ee.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>',ee}(et),st=function(ae){function ee(z,ie,se){var ne=ae.call(this,z,ie,se)||this;return ne.fillColor="transparent",ne.strokeColor="transparent",ne.strokeWidth=0,ne.strokeDasharray="",ne.textColor="transparent",ne.fontSize="1rem",ne.isMoved=!1,ne.captionText="Caption",ne.PADDING=5,ne.captionBoxWidth=0,ne.captionBoxHeight=0,ne.strokeColor=se.defaultColor,ne.strokeWidth=se.defaultStrokeWidth,ne.strokeDasharray=se.defaultStrokeDasharray,ne.fillColor=se.defaultFillColor,ne.textColor=se.defaultStrokeColor,ne.fontFamily=se.defaultFontFamily,ne.fontSize=se.defaultCaptionFontSize,ne.captionText=se.defaultCaptionText,ne.setStrokeColor=ne.setStrokeColor.bind(ne),ne.setFillColor=ne.setFillColor.bind(ne),ne.setStrokeWidth=ne.setStrokeWidth.bind(ne),ne.setStrokeDasharray=ne.setStrokeDasharray.bind(ne),ne.createVisual=ne.createVisual.bind(ne),ne.sizeCaption=ne.sizeCaption.bind(ne),ne.setCaptionText=ne.setCaptionText.bind(ne),ne.showTextEditor=ne.showTextEditor.bind(ne),ne.positionTextEditor=ne.positionTextEditor.bind(ne),ne.finishTextEditing=ne.finishTextEditing.bind(ne),ne.setFont=ne.setFont.bind(ne),ne.setTextColor=ne.setTextColor.bind(ne),ne.strokePanel=new Ae("Line color",de(se.defaultColorSet,["transparent"]),ne.strokeColor),ne.strokePanel.onColorChanged=ne.setStrokeColor,ne.fillPanel=new Ae("Fill color",de(se.defaultColorSet,["transparent"]),ne.fillColor,ut),ne.fillPanel.onColorChanged=ne.setFillColor,ne.strokeWidthPanel=new Ie("Line width",se.defaultStrokeWidths,se.defaultStrokeWidth),ne.strokeWidthPanel.onWidthChanged=ne.setStrokeWidth,ne.strokeStylePanel=new Me("Line style",se.defaultStrokeDasharrays,se.defaultStrokeDasharray),ne.strokeStylePanel.onStyleChanged=ne.setStrokeDasharray,ne.fontFamilyPanel=new Et("Font",se.defaultFontFamilies,se.defaultFontFamily),ne.fontFamilyPanel.onFontChanged=ne.setFont,ne.textColorPanel=new Ae("Text color",se.defaultColorSet,ne.textColor,Te),ne.textColorPanel.onColorChanged=ne.setTextColor,ne}return Ne(ee,ae),ee.prototype.ownsTarget=function(z){return!(!ae.prototype.ownsTarget.call(this,z)&&z!==this.visual&&z!==this.frame&&z!==this.captionBg&&z!==this.captionElement)},ee.prototype.createVisual=function(){this.visual=Oe.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=Oe.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=Oe.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=Oe.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()},ee.prototype.setCaptionText=function(z){this.captionText=z,this.captionElement.textContent=this.captionText,this.sizeCaption()},ee.prototype.pointerDown=function(z,ie){ae.prototype.pointerDown.call(this,z,ie),this.isMoved=!1,this.pointerDownPoint=z,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(z),this._state="creating")},ee.prototype.manipulate=function(z){ae.prototype.manipulate.call(this,z),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(z.x-this.pointerDownPoint.x)>5||Math.abs(z.y-this.pointerDownPoint.y)>5)},ee.prototype.resize=function(z){ae.prototype.resize.call(this,z),this.setSize()},ee.prototype.sizeCaption=function(){var z=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=z.width+2*this.PADDING,this.captionBoxHeight=z.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),Oe.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')"]]),Oe.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')"]])},ee.prototype.showTextEditor=function(){var z=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(ie){ie.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(ie){ie.key==="Enter"&&z.finishTextEditing(z.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(ie){ie.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){z.finishTextEditing(z.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){z.finishTextEditing(z.textEditBox.value)}),this.positionTextEditor(),this.textEditBox.focus()},ee.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"))},ee.prototype.finishTextEditing=function(z){this.setCaptionText(z.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},ee.prototype.setFont=function(z){this.captionElement&&Oe.setAttributes(this.captionElement,[["font-family",z]]),this.fontFamily=z,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},ee.prototype.setTextColor=function(z){this.captionElement&&Oe.setAttributes(this.captionElement,[["fill",z]]),this.textColor=z,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},ee.prototype.setSize=function(){ae.prototype.setSize.call(this),Oe.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},ee.prototype.pointerUp=function(z){ae.prototype.pointerUp.call(this,z),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},ee.prototype.dblClick=function(z,ie){ae.prototype.dblClick.call(this,z,ie),this.showTextEditor()},ee.prototype.setStrokeColor=function(z){this.strokeColor=z,this.frame&&Oe.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(z),this.stateChanged()},ee.prototype.setFillColor=function(z){this.fillColor=z,this.captionBg&&Oe.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(z),this.stateChanged()},ee.prototype.setStrokeWidth=function(z){this.strokeWidth=z,this.frame&&Oe.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},ee.prototype.setStrokeDasharray=function(z){this.strokeDasharray=z,this.frame&&Oe.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(ee.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),ee.prototype.getState=function(){var z=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},ae.prototype.getState.call(this));return z.typeName=this.typeName,z},ee.prototype.restoreState=function(z){var ie=z;this.fillColor=ie.fillColor,this.strokeColor=ie.strokeColor,this.strokeWidth=ie.strokeWidth,this.strokeDasharray=ie.strokeDasharray,this.textColor=ie.textColor,this.fontFamily=ie.fontFamily,this.captionText=ie.captionText,this.fontSize=ie.fontSize,this.createVisual(),ae.prototype.restoreState.call(this,z),this.setSize()},ee.prototype.scale=function(z,ie){ae.prototype.scale.call(this,z,ie),this.setSize()},ee.typeName="CaptionFrameMarker",ee.title="Caption frame marker",ee.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>',ee}(ye),Be=function(){function ae(ee,z){z===void 0&&(z=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=ee,this.cancelable=z}return Object.defineProperty(ae.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),ae.prototype.preventDefault=function(){this._defaultPrevented=!0},ae}(),it=function(ae){function ee(z,ie,se){var ne=ae.call(this,z,!1)||this;return ne.dataUrl=ie,ne.state=se,ne}return Ne(ee,ae),ee}(Be),tt=function(ae){function ee(z,ie,se){se===void 0&&(se=!1);var ne=ae.call(this,z,se)||this;return ne.marker=ie,ne}return Ne(ee,ae),ee}(Be),Fe=function(){function ae(){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 ae.prototype.addEventListener=function(ee,z){this[ee].push(z)},ae.prototype.removeEventListener=function(ee,z){var ie=this[ee].indexOf(z);ie>-1&&this[ee].splice(ie,1)},ae}(),pt=function(){function ae(ee){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new _e,this._isOpen=!1,this.undoRedoManager=new Se,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 Fe,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=ae.instanceCounter++,this.styles=new Pe(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=ee,this.targetRoot=document.body,this.width=ee.clientWidth,this.height=ee.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(ae.prototype,"ALL_MARKER_TYPES",{get:function(){return[Je,ft,ce,Ct,De,_t,dt,at,He,Ge,Kt,ze,st]},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[Je,ft,ce,Ct,_t,dt,at]},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"BASIC_MARKER_TYPES",{get:function(){return[Je,ft,ce,Ct,dt]},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(ee){var z=this;this._availableMarkerTypes.splice(0),ee.forEach(function(ie){if(typeof ie=="string"){var se=z.ALL_MARKER_TYPES.find(function(ne){return ne.typeName===ie});se!==void 0&&z._availableMarkerTypes.push(se)}else z._availableMarkerTypes.push(ie)})},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(ee){this._zoomLevel=ee,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(ae.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),ae.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),xe.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},ae.prototype.show=function(){var ee=this;this.styles.styleSheetRoot===void 0&&Xe.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=Xe.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(z){return z(new Be(ee))})},ae.prototype.render=function(){return Ve(this,void 0,void 0,function(){var ee;return we(this,function(z){switch(z.label){case 0:return this.setCurrentMarker(),(ee=new wt).naturalSize=this.renderAtNaturalSize,ee.imageType=this.renderImageType,ee.imageQuality=this.renderImageQuality,ee.markersOnly=this.renderMarkersOnly,ee.width=this.renderWidth,ee.height=this.renderHeight,[4,ee.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return z.sent(),[4,ee.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,z.sent()]}})})},ae.prototype.close=function(ee){var z=this;if(ee===void 0&&(ee=!1),this.isOpen){var ie=!1;ee||this.eventListeners.beforeclose.forEach(function(se){var ne=new Be(z,!0);se(ne),ne.defaultPrevented&&(ie=!0)}),ie||(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(se){return se(new Be(z))}),this.detachEvents(),this._isOpen=!1)}},ae.prototype.addMarkersToToolbar=function(){for(var ee,z=[],ie=0;ie<arguments.length;ie++)z[ie]=arguments[ie];(ee=this._availableMarkerTypes).push.apply(ee,z)},ae.prototype.addRenderEventListener=function(ee){this.addEventListener("render",function(z){ee(z.dataUrl,z.state)})},ae.prototype.removeRenderEventListener=function(ee){},ae.prototype.addCloseEventListener=function(ee){this.addEventListener("close",function(){ee()})},ae.prototype.removeCloseEventListener=function(ee){},ae.prototype.setupResizeObserver=function(){var ee=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){ee.resize(ee.target.clientWidth,ee.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return ee.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},ae.prototype.onPopupTargetResize=function(){var ee=1*this.target.clientWidth/this.target.clientHeight,z=this.editorCanvas.clientWidth/ee>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*ee:this.editorCanvas.clientWidth,ie=z<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/ee;this.resize(z,ie)},ae.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},ae.prototype.resize=function(ee,z){this._isResizing=!0;var ie=ee/this.imageWidth,se=z/this.imageHeight;this.imageWidth=Math.round(ee),this.imageHeight=Math.round(z),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(ie,se),this._isResizing=!1},ae.prototype.scaleMarkers=function(ee,z){var ie,se=this;this._currentMarker&&this._currentMarker instanceof Ct?this._currentMarker.scale(ee,z):(ie=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(ne){ne!==se._currentMarker&&ne.scale(ee,z)}),ie!==void 0&&this.setCurrentMarker(ie)},ae.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"},ae.prototype.setTopLeft=function(){var ee=this.editingTarget.getBoundingClientRect(),z=this.editorCanvas.getBoundingClientRect();this.left=ee.left-z.left,this.top=ee.top-z.top},ae.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)},ae.prototype.addDefs=function(){for(var ee,z=[],ie=0;ie<arguments.length;ie++)z[ie]=arguments[ie];this.defs=Oe.createDefs(),this.addDefsToImage(),(ee=this.defs).append.apply(ee,z)},ae.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},ae.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)},ae.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},ae.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},ae.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)},ae.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},ae.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)},ae.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 ee=document.createElement("a");ee.href="https://markerjs.com/",ee.target="_blank",ee.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>',ee.title="Powered by marker.js",ee.style.display="grid",ee.style.alignItems="center",ee.style.justifyItems="center",ee.style.padding="3px",ee.style.width="20px",ee.style.height="20px",this.logoUI.appendChild(ee),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},ae.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")},ae.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"},ae.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},ae.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 ee=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=ee+"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 qe(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 lt(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},ae.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},ae.prototype.removeMarker=function(ee){this.markerImage.removeChild(ee.container),this.markers.indexOf(ee)>-1&&this.markers.splice(this.markers.indexOf(ee),1),ee.dispose()},ae.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())},ae.prototype.toolbarButtonClicked=function(ee,z){if(ee==="marker"&&z!==void 0)this.createNewMarker(z);else if(ee==="action")switch(z){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()}},ae.prototype.deleteSelectedMarker=function(){var ee=this;if(this._currentMarker!==void 0){var z=!1;if(this.eventListeners.markerbeforedelete.forEach(function(se){var ne=new tt(ee,ee._currentMarker,!0);se(ne),ne.defaultPrevented&&(z=!0)}),!z){var ie=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(se){return se(new tt(ee,ie))})}}},ae.prototype.clear=function(){var ee=this,z=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(be){var gt=new tt(ee,void 0,!0);be(gt),gt.defaultPrevented&&(z=!0)}),!z)){this.setCurrentMarker();for(var ie=function(be){var gt=se.markers[be];se.setCurrentMarker(se.markers[be]),se._currentMarker.dispose(),se.markerImage.removeChild(se._currentMarker.container),se.markers.splice(se.markers.indexOf(se._currentMarker),1),se.eventListeners.markerdelete.forEach(function(kt){return kt(new tt(ee,gt))})},se=this,ne=this.markers.length-1;ne>=0;ne--)ie(ne);this.addUndoStep()}},Object.defineProperty(ae.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),ae.prototype.showNotesEditor=function(){var ee;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=(ee=this._currentMarker.notes)!==null&&ee!==void 0?ee:"",this.overlayContainer.appendChild(this.notesArea))},ae.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)},ae.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},ae.prototype.addUndoStep=function(){var ee=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var z=this.getState(),ie=this.undoRedoManager.getLastUndoStep();if(!ie||ie.width===z.width&&ie.height===z.height){var se=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(z),se<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(ne){return ne(new Be(ee))})}else this.undoRedoManager.replaceLastUndoStep(z),this.eventListeners.statechange.forEach(function(ne){return ne(new Be(ee))})}},ae.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},ae.prototype.undoStep=function(){var ee=this,z=this.undoRedoManager.undo();z!==void 0&&(this.restoreState(z),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(ie){return ie(new Be(ee))}))},ae.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},ae.prototype.redoStep=function(){var ee=this,z=this.undoRedoManager.redo();z!==void 0&&(this.restoreState(z),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(ie){return ie(new Be(ee))}))},ae.prototype.stepZoom=function(){var ee=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=ee<this.zoomSteps.length-1?this.zoomSteps[ee+1]:this.zoomSteps[0]},ae.prototype.panTo=function(ee){this.contentDiv.scrollBy({left:this.prevPanPoint.x-ee.x,top:this.prevPanPoint.y-ee.y}),this.prevPanPoint=ee},ae.prototype.startRenderAndClose=function(){return Ve(this,void 0,void 0,function(){var ee,z,ie=this;return we(this,function(se){switch(se.label){case 0:return[4,this.render()];case 1:return ee=se.sent(),z=this.getState(),this.eventListeners.render.forEach(function(ne){return ne(new it(ie,ee,z))}),this.close(!0),[2]}})})},ae.prototype.getState=function(ee){ee===!0&&this.setCurrentMarker();var z={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(ie){return z.markers.push(ie.getState())}),z},ae.prototype.restoreState=function(ee){var z=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);ee.markers.forEach(function(ie){var se=z._availableMarkerTypes.find(function(be){return be.typeName===ie.typeName});if(se!==void 0){var ne=z.addNewMarker(se);ne.restoreState(ie),z.markers.push(ne)}}),ee.width&&ee.height&&(ee.width!==this.imageWidth||ee.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/ee.width,this.imageHeight/ee.height),this.eventListeners.restorestate.forEach(function(ie){return ie(new Be(z))})},ae.prototype.addNewMarker=function(ee){var z=Oe.createGroup();return this.markerImage.appendChild(z),new ee(z,this.overlayContainer,this.settings)},ae.prototype.createNewMarker=function(ee){var z,ie=this;(z=typeof ee=="string"?this._availableMarkerTypes.find(function(se){return se.typeName===ee}):ee)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(z),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(z.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach(function(se){return se(new tt(ie,ie._currentMarker))}))},ae.prototype.markerCreated=function(ee){var z=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(ee),this.setCurrentMarker(ee),ee instanceof ft&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(ft):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(ie){return ie(new tt(z,z._currentMarker))})},ae.prototype.colorChanged=function(ee){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=ee,this.settings.defaultStrokeColor=ee)},ae.prototype.fillColorChanged=function(ee){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=ee)},ae.prototype.markerStateChanged=function(ee){var z=this;this.eventListeners.markerchange.forEach(function(ie){return ie(new tt(z,ee))})},ae.prototype.setCurrentMarker=function(ee){var z=this;this._currentMarker!==ee&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(ie){return ie(new tt(z,z._currentMarker))})),this._currentMarker=ee,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(ie){return ie(new tt(z,z._currentMarker))}))},ae.prototype.onPointerDown=function(ee){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||ee.pointerType!=="touch")if(this._currentMarker===void 0||this._currentMarker.state!=="new"&&this._currentMarker.state!=="creating"){if(this.mode==="select"){var z=this.markers.find(function(ie){return ie.ownsTarget(ee.target)});z!==void 0?(this.setCurrentMarker(z),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(ee.clientX,ee.clientY),ee.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:ee.clientX,y:ee.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(ee.clientX,ee.clientY))},ae.prototype.onDblClick=function(ee){if(this._isFocused||this.focus(),this.mode==="select"){var z=this.markers.find(function(ie){return ie.ownsTarget(ee.target)});z!==void 0&&z!==this._currentMarker&&this.setCurrentMarker(z),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(ee.clientX,ee.clientY),ee.target):this.setCurrentMarker()}},ae.prototype.onPointerMove=function(ee){this.touchPoints!==1&&ee.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||ee.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(ee.clientX,ee.clientY)):this.zoomLevel>1&&this.panTo({x:ee.clientX,y:ee.clientY}))},ae.prototype.onPointerUp=function(ee){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(ee.clientX,ee.clientY)),this.isDragging=!1,this.addUndoStep()},ae.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},ae.prototype.onKeyUp=function(ee){this._currentMarker===void 0||this.notesArea!==void 0||ee.key!=="Delete"&&ee.key!=="Backspace"||this.deleteSelectedMarker()},ae.prototype.clientToLocalCoordinates=function(ee,z){var ie=this.markerImage.getBoundingClientRect();return{x:(ee-ie.left)/this.zoomLevel,y:(z-ie.top)/this.zoomLevel}},ae.prototype.onWindowResize=function(){this.positionUI()},ae.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var ee=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=ee+"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()},ae.prototype.addLicenseKey=function(ee){xe.addKey(ee)},ae.prototype.addEventListener=function(ee,z){this.eventListeners.addEventListener(ee,z)},ae.prototype.removeEventListener=function(ee,z){this.eventListeners.removeEventListener(ee,z)},ae.prototype.renderState=function(ee){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(ee),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(ae.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),ae.prototype.focus=function(){var ee=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(z){return z(new Be(ee))}))},ae.prototype.blur=function(){var ee=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(z){return z(new Be(ee))}))},ae.instanceCounter=0,ae}(),Ye=le(97013),ge=le(31735),ct=(ae,ee,z)=>new Promise((ie,se)=>{var ne=kt=>{try{gt(z.next(kt))}catch(ht){se(ht)}},be=kt=>{try{gt(z.throw(kt))}catch(ht){se(ht)}},gt=kt=>kt.done?ie(kt.value):Promise.resolve(kt.value).then(ne,be);gt((z=z.apply(ae,ee)).next())}),Wt=({data:ae,className:ee,fullWidth:z,style:ie={},onClose:se,onOk:ne,showFullTools:be,noAssociationId:gt})=>{const kt=(0,re.useRef)(null),ht=(0,re.useRef)(null),Ze=(0,re.useRef)(null),Vt=(0,re.useRef)(null),[Bt,Ht]=(0,re.useState)(!1),[un,Lt]=(0,re.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,re.useEffect)(()=>(Ze.current||(Ze.current=document.createElement("style"),document.head.appendChild(Ze.current)),ae!=null&&ae.visible?(document.body.setAttribute("data-custom","y-hidden"),Ze.current.innerHTML=" html { overflow-y: hidden; }",ae!=null&&ae.src&&St()):(document.body.removeAttribute("data-custom"),Ze.current&&(document.head.removeChild(Ze.current),Ze.current=null)),()=>{document.body.removeAttribute("data-custom"),Ze.current&&(document.head.removeChild(Ze.current),Ze.current=null)}),[ae==null?void 0:ae.visible]);const St=()=>ct(void 0,null,function*(){Ht(!0),Lt("\u6B63\u5728\u52A0\u8F7D\u4E2D");const Un=yield(0,ge.ZJ)(ae==null?void 0:ae.src);kt.current.src="",kt.current.src=Un,kt.current.onload=function(){Tn()},Ht(!1),Lt("")}),vn=Un=>ct(void 0,null,function*(){Ht(!0),Lt("\u6B63\u5728\u4FDD\u5B58\u4E2D");const tr=yield(0,Ye.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:ae.title,file:Un.dataUrl}});tr!=null&&tr.id&&!gt?(yield(0,Ye.ZP)(`/api/attachments/${ae.id}/add_subitem.json`,{method:"post",body:{subitem_id:tr==null?void 0:tr.id,settings:JSON.stringify(Un.state)}})).status===0&&ne():tr!=null&&tr.id&&ne(tr),Ht(!1),Lt("")}),Fn=()=>{const Un=document.querySelector('a[href="https://markerjs.com/"]');Un&&Un.parentNode&&(Un.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(gr=>{const $n=document.querySelector(gr.name);$n&&$n.setAttribute("title",gr.title)})},Tn=()=>{ht.current=new pt(kt.current),ht.current.targetRoot=Vt.current,ht.current.addEventListener("render",vn),ht.current.addEventListener("beforeclose",se),be&&(ht.current.availableMarkerTypes=ht.current.ALL_MARKER_TYPES,ht.current.uiStyleSettings.redoButtonVisible=!0,ht.current.uiStyleSettings.notesButtonVisible=!0,ht.current.uiStyleSettings.zoomButtonVisible=!0,ht.current.uiStyleSettings.zoomOutButtonVisible=!0,ht.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=ht.current.uiStyleSettings,ht.current.show(),ae!=null&&ae.snapshotData&&ht.current.restoreState(ae.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Fn()},300)};return re.createElement(re.Fragment,null,(ae==null?void 0:ae.visible)&&re.createElement(Ce.Z,{spinning:Bt,tip:un,style:{position:"absolute",width:"100vw"}},re.createElement("div",{ref:Vt,className:Qe()($e.imageDimensions,ee,z?$e.fullWidth:""),style:ie},re.createElement("img",{className:$e.img,ref:kt}))))}},50047:function(rn,$t,le){"use strict";var re=le(59301),$e=le(77019),je=le(5269),Qe=le(20554),Ce=le(7939),he=le(59944),Ne=le(40862),Ve=le(48136),we=le(59301);const de=(0,re.forwardRef)(({callback:Oe,showSaveButton:xe,value:wt=""},Xe)=>{const Pe=(0,re.useRef)(),ke=[{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 "}]}]}],Ee=[{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}`}]}]}],qe=Ae=>{Pe.current.setValue(Pe.current.getValue()+" "+Ae.value+" ")},lt=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:we.createElement($e.Z,{className:Ne.Z.lists,gutter:[10,10]},ke.map((Ae,me)=>we.createElement(je.Z,{flex:"110px",className:Ne.Z.item},we.createElement("div",null,we.createElement(he.Z,{value:`$$${Ae.value}$$`}),Ae.name),we.createElement("div",{className:Ne.Z.children},Ae.children.map((Re,We)=>we.createElement("div",{key:We},we.createElement("h1",null,Re.name),we.createElement($e.Z,{gutter:[10,10]},Re.data.map((Nt,ye)=>we.createElement(je.Z,{key:ye,onClick:()=>qe(Nt),className:Ne.Z.diamond},we.createElement(he.Z,{value:"`$$"+Nt.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:we.createElement($e.Z,{className:Ne.Z.lists,gutter:[10,10]},Ee.map((Ae,me)=>we.createElement(je.Z,{flex:"110px",className:Ne.Z.item},we.createElement("div",null,we.createElement(he.Z,{value:"`$$"+Ae.value+"$$`"}),Ae.name),we.createElement("div",{className:Ne.Z.children},Ae.children.map((Re,We)=>we.createElement("div",{key:We},Re.name&&we.createElement("h1",null,Re.name),we.createElement($e.Z,{gutter:[10,10]},Re.data.map((Nt,ye)=>we.createElement(je.Z,{key:ye,onClick:()=>qe(Nt),className:Ne.Z.diamond},we.createElement(he.Z,{value:"`$$"+Nt.value+"$$`"}))))))))))}],xt=()=>{var Ae=document.createElement("div");Ae.innerHTML=Pe.current.getValue();var me=Ae.innerText;return Oe&&Oe(me),me};return(0,re.useImperativeHandle)(Xe,()=>({getData:xt})),we.createElement("div",{className:Ne.Z.mathWrap},we.createElement(Qe.default,{defaultActiveKey:"1",items:lt}),we.createElement("math-field",{locale:"zh_cn",className:Ne.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:Pe,style:{width:800,marginTop:30,fontSize:18}},wt||""),xe&&we.createElement("div",{className:Ne.Z.button},we.createElement(Ce.ZP,{size:"large",onClick:xt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});$t.Z=de},59243:function(rn,$t,le){"use strict";var re=le(59301),$e=le(93314),je=le(7939),Qe=Object.defineProperty,Ce=Object.defineProperties,he=Object.getOwnPropertyDescriptors,Ne=Object.getOwnPropertySymbols,Ve=Object.prototype.hasOwnProperty,we=Object.prototype.propertyIsEnumerable,de=(Xe,Pe,ke)=>Pe in Xe?Qe(Xe,Pe,{enumerable:!0,configurable:!0,writable:!0,value:ke}):Xe[Pe]=ke,Oe=(Xe,Pe)=>{for(var ke in Pe||(Pe={}))Ve.call(Pe,ke)&&de(Xe,ke,Pe[ke]);if(Ne)for(var ke of Ne(Pe))we.call(Pe,ke)&&de(Xe,ke,Pe[ke]);return Xe},xe=(Xe,Pe)=>Ce(Xe,he(Pe));const wt=({img:Xe,buttonProps:Pe={},styles:ke={},customText:Ee,ButtonText:qe,ButtonClick:lt,Buttonclass:xt,ButtonTwo:Ae,imgStyles:me,loading:Re=!1,className:We=""})=>re.createElement("section",{className:`tc animated fadeIn ${We}`,style:Oe({color:"#999",margin:"100px auto",visibility:Re?"hidden":"visible"},ke)},re.createElement("img",{src:Xe||$e,style:xe(Oe({},me),{pointerEvents:"none",userSelect:"none"})}),re.createElement("p",{className:"mt20 font14"},Ee||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),qe&&re.createElement(je.ZP,Oe({className:xt,onClick:lt},Pe),qe),Ae&&Ae);$t.Z=wt},47199:function(rn,$t,le){"use strict";le.d($t,{Z:function(){return xt}});var re=le(59301),$e={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},je=le(7939),Qe=le(70557),Ce=le(58478),he=le(25399),Ne=le(31735),Ve=le(22167),we=le(59243),de=le(26869),Oe=le(38609),xe=le(59301),wt=Object.defineProperty,Xe=Object.getOwnPropertySymbols,Pe=Object.prototype.hasOwnProperty,ke=Object.prototype.propertyIsEnumerable,Ee=(Ae,me,Re)=>me in Ae?wt(Ae,me,{enumerable:!0,configurable:!0,writable:!0,value:Re}):Ae[me]=Re,qe=(Ae,me)=>{for(var Re in me||(me={}))Pe.call(me,Re)&&Ee(Ae,Re,me[Re]);if(Xe)for(var Re of Xe(me))ke.call(me,Re)&&Ee(Ae,Re,me[Re]);return Ae},lt=(Ae,me,Re)=>new Promise((We,Nt)=>{var ye=Me=>{try{Ie(Re.next(Me))}catch(Je){Nt(Je)}},Le=Me=>{try{Ie(Re.throw(Me))}catch(Je){Nt(Je)}},Ie=Me=>Me.done?We(Me.value):Promise.resolve(Me.value).then(ye,Le);Ie((Re=Re.apply(Ae,me)).next())}),xt=({editOffice:Ae="view",data:me,issaver:Re,onSaver:We,theme:Nt,type:ye,filename:Le,monacoEditor:Ie,className:Me,style:Je,close:_e,onClose:et,hasMask:Kt,disabledDownload:Et,onImgDimensions:Ct,showNodata:ft,recordInfo:ve})=>{const[ce,Ge]=(0,re.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[vt,dt]=(0,re.useState)(""),[Te,ut]=(0,re.useState)(),at=window.ENV==="build"?"/react/build":"",_t=location.host.startsWith("localhost")?de.Z.PROXY_SERVER:de.Z.API_SERVER,De=10*(1024*1024),Se=(0,re.useRef)();me!=null&&me.startsWith("/api")&&ye!=="txt"&&(me=de.Z.API_SERVER+me);const ze=Fe=>Fe.substring(Fe.lastIndexOf("/")+1).split(".").pop();Le&&Ie&&(Ie.filename=Le),(0,re.useEffect)(()=>{var Fe,pt;const Ye=(pt=(Fe=document.cookie)==null?void 0:Fe.replace(/\s/g,""))==null?void 0:pt.split(";");Ye==null||Ye.map(ge=>{let ct=ge.split("=");ct[0]==="_educoder_session"&&dt(ct[1])})},[]),(0,re.useEffect)(()=>{ye==="office"&&(me.indexOf("bigfilescdn.")>-1||me.indexOf("bigfiles1")>-1?ut({url:me,fileType:ze(me),model:me.indexOf("model=edit")?"edit":"view"}):Be())},[ye,me]);function st(Fe){return lt(this,null,function*(){Fe.data.type==="pdfdata"&&(We(Fe.data.data),window.removeEventListener("message",st,!1)),console.log("mess---:",Fe.data)})}const Be=()=>lt(void 0,null,function*(){console.log("data:",me);let Fe=me;me.startsWith("http")||(Fe=location.origin+Fe);let pt=new URL(Fe).pathname.split("/").pop();const Ye=yield(0,Ve.gJ)({attachment_id:pt});Ye.url=_t+Ye.url,ut(Ye)}),it=()=>{if(me.startsWith("http")||me.startsWith("blob:")){tt();return}(0,Ne.Sv)(Le||"educoder",me,Le)},tt=()=>{ve&&(0,Oe.fc)({id:ve==null?void 0:ve.id,watch_type:1,course_id:ve==null?void 0:ve.course_id}),(0,Ne.Nd)(Le||"educoder",decodeURIComponent(me))};return xe.createElement("div",{style:qe({},Je||{}),className:`${Kt&&$e.bgBlack} ${ye?$e.wrp:"hide"}`},_e&&xe.createElement("div",{className:$e.close,ref:Se},!!Ct&&xe.createElement(he.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>Se.current},xe.createElement("span",{onClick:()=>{et(),Ct()}},xe.createElement("i",{className:"icon-yulanpizhu"}))),!Et&&xe.createElement(he.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>Se.current},xe.createElement("span",{onClick:tt},xe.createElement("i",{className:"icon-quxiaozhiding"}))),Re&&xe.createElement(he.Z,{title:"\u4FDD\u5B58pdf\u5E76\u9000\u51FA",getPopupContainer:()=>Se.current},xe.createElement("span",{className:"",onClick:()=>{const Fe=document.getElementById("pdfiframe");window.addEventListener("message",st,!1),setTimeout(()=>{Fe.contentWindow.postMessage("getData","*")},300)}},xe.createElement("i",{className:"icon-baocun"}))),xe.createElement(he.Z,{title:"\u5173\u95ED",getPopupContainer:()=>Se.current},xe.createElement("span",{className:"",onClick:()=>{et()}},xe.createElement("i",{className:"icon-guanbi1"})))),xe.createElement("div",{className:`${$e[Me]} ${Me} ${$e.monaco} ${ye==="txt"?"show":"hide"}`},ye==="txt"&&xe.createElement(xe.Fragment,null,xe.createElement(Ce.ZP,qe({},Ie)))),ye==="audio"&&xe.createElement("audio",{src:`${(me==null?void 0:me.indexOf("http://"))>-1||(me==null?void 0:me.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${me}`,autoPlay:!0}),ye==="video"&&xe.createElement(xe.Fragment,null,(me==null?void 0:me.indexOf("http"))>-1?xe.createElement("video",{controls:!0,src:`${me}`,autoPlay:!0}):xe.createElement("video",{controls:!0,src:`data:video/mp4;base64,${me}`,autoPlay:!0})),ye==="office"&&Te&&xe.createElement("iframe",{src:`${at}/office.html?key=${Te.key}&url=${btoa(Te.url)}&callbackUrl=${_t+(Te.callbackUrl||"")}&fileType=${Te.fileType}&title=${Te.title||""}&model=${Ae}&officeServer=${de.Z.ONLYOFFICE}&disabledDownload=${!!Et}`}),ye==="html"&&xe.createElement("iframe",{src:me+"&disposition=inline"}),ye==="pdf"&&Re&&xe.createElement("iframe",{id:"pdfiframe",src:`${at}/js/pdfview/index.html?filename=${Le||"educoder.pdf"}&url=${encodeURIComponent(me)}&disabledDownload=${!!Et}&model=${Ae}`}),ye==="pdf"&&!Re&&xe.createElement("embed",{className:$e.embed,src:me+"#toolbar=0&statusbar=0&navpanes=0&scrollbars=0"}),ye==="image"&&xe.createElement("img",{src:`${(me==null?void 0:me.indexOf("http://"))>-1||(me==null?void 0:me.indexOf("https://"))>-1?"":"data:image/png;base64,"}${me}`}),(ye==="other"||ye==="download")&&xe.createElement(xe.Fragment,null,ft?xe.createElement(we.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:xe.createElement(je.ZP,{icon:xe.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:it,disabled:Et},"\u4E0B\u8F7D")}):xe.createElement(je.ZP,{type:"primary",size:"middle",onClick:it,disabled:Et},xe.createElement(Qe.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")),ye==="flowChart"&&xe.createElement("div",{className:"embed"},xe.createElement("iframe",{src:`/drawio/src/main/webapp/viewer.html?id=${me||""}&gapi=0&od=0&db=0&gh=0&gl=0`,width:"100%",height:"100%",frameBorder:"0"})))}},94593:function(rn,$t,le){"use strict";le.d($t,{h:function(){return Pe},x:function(){return ke}});var re=le(77834),$e=le(86787),je=le(59944),Qe=le(59301),Ce=Object.defineProperty,he=Object.defineProperties,Ne=Object.getOwnPropertyDescriptors,Ve=Object.getOwnPropertySymbols,we=Object.prototype.hasOwnProperty,de=Object.prototype.propertyIsEnumerable,Oe=(Ee,qe,lt)=>qe in Ee?Ce(Ee,qe,{enumerable:!0,configurable:!0,writable:!0,value:lt}):Ee[qe]=lt,xe=(Ee,qe)=>{for(var lt in qe||(qe={}))we.call(qe,lt)&&Oe(Ee,lt,qe[lt]);if(Ve)for(var lt of Ve(qe))de.call(qe,lt)&&Oe(Ee,lt,qe[lt]);return Ee},wt=(Ee,qe)=>he(Ee,Ne(qe)),Xe=(Ee,qe)=>{var lt={};for(var xt in Ee)we.call(Ee,xt)&&qe.indexOf(xt)<0&&(lt[xt]=Ee[xt]);if(Ee!=null&&Ve)for(var xt of Ve(Ee))qe.indexOf(xt)<0&&de.call(Ee,xt)&&(lt[xt]=Ee[xt]);return lt};const Pe=Ee=>{var qe=Ee,{value:lt,onChange:xt,scrollId:Ae}=qe,me=Xe(qe,["value","onChange","scrollId"]);return Qe.createElement("div",{id:Ae||""},Qe.createElement(re.Z,wt(xe({},me),{defaultValue:lt,onChange:(Re,We)=>{We!=null&&We.length?xt(Re,We):xt(Re)}})))},ke=({value:Ee,onChange:qe,placeholder:lt,height:xt=140,isEdit:Ae,miniToolbar:me,watch:Re=!0})=>Ae?Qe.createElement(re.Z,{watch:Re,isFocus:!0,height:xt||void 0,placeholder:lt,defaultValue:Ee,onChange:qe,miniToolbar:me}):Qe.createElement("div",{style:{cursor:"pointer"}},Ee?Qe.createElement(je.Z,{className:$e.Z.inputBorder,value:Ee}):Qe.createElement("div",{className:`${$e.Z.inputBorder} ${$e.Z.placeholder} inputBorderError`},lt))},59944:function(rn,$t,le){"use strict";le.d($t,{z:function(){return Ie},Z:function(){return Me}});var re=le(59301),$e=le(54196),je=le(58489),Qe=le(64018),Ce=le(80360),he=le(26869),Ne=le(31735),Ve=le(15342),we=le(44104),de=le(7939),Oe=le(1012),xe=le(47199),wt=le(59301),Pe=({html:Je})=>{const _e=(0,re.useRef)(null),et=(0,re.useRef)(null),Kt=`.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,re.useEffect)(()=>{const Et=_e.current.attachShadow({mode:"open"});et.current=document.createElement("div"),et.current.className="markdown-body",et.current.innerHTML=Je,Et.appendChild(et.current);const Ct=document.createElement("style");return Ct.textContent=Kt,Et.appendChild(Ct),()=>{Et.innerHTML=""}},[]),(0,re.useEffect)(()=>{et.current&&(et.current.innerHTML=Je)},[Je]),wt.createElement("div",{ref:_e})};function ke(Je){const _e=["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"],et=new RegExp(`\\b(${_e.join("|")})\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s>]*)`,"gi");return Je.replace(et,"").trim()}var Ee={mdBody:"mdBody___raKXb",button:"button___Ch5Pc",previewFlowChart:"previewFlowChart___vY1dq"},qe=Object.defineProperty,lt=Object.getOwnPropertySymbols,xt=Object.prototype.hasOwnProperty,Ae=Object.prototype.propertyIsEnumerable,me=(Je,_e,et)=>_e in Je?qe(Je,_e,{enumerable:!0,configurable:!0,writable:!0,value:et}):Je[_e]=et,Re=(Je,_e)=>{for(var et in _e||(_e={}))xt.call(_e,et)&&me(Je,et,_e[et]);if(lt)for(var et of lt(_e))Ae.call(_e,et)&&me(Je,et,_e[et]);return Je};const We="@\u2581\u2581@",Nt="@\u2581@",ye=/<pre[^>]*>/g;function Le(Je){let _e=document.createElement("div");return _e.innerHTML=Je,_e.childNodes.length===0?"":_e.childNodes[0].nodeValue}const Ie=(Je,_e)=>{Je=Je||"";const et=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Kt=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Et=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Ct=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return _e?Je.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(et,(ft,ve,ce,Ge,vt,dt,Te)=>{const ut=ve||Ge||dt,at=ce||vt||Te||"?";return he.Z.API_SERVER+"/api/attachments/"+ut+at+"&t="+(0,Ne.Jn)(ut,Date.now())+(ft.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(Je=Je.replace(Ct,(ft,ve,ce,Ge,vt,dt,Te)=>{const ut=ve||Ge||dt,at=ce||vt||Te||"?";return he.Z.API_SERVER+"/attachments/download/"+ut+at+"&t="+(0,Ne.Jn)(ut,Date.now())+(ft.indexOf(")")>-1?")":"&")}).replace(et,(ft,ve,ce,Ge,vt,dt,Te)=>{const ut=ve||Ge||dt,at=ce||vt||Te||"?";return he.Z.API_SERVER+"/api/attachments/"+ut+at+"&t="+(0,Ne.Jn)(ut,Date.now())+(ft.indexOf(")")>-1?")":"&")}).replace(Kt,(ft,ve,ce,Ge,vt)=>{const dt=ve||Ge,Te=ce||vt||"";return'"'+he.Z.API_SERVER+"/api/attachments/"+dt+Te+dt+Te+"&t="+(0,Ne.Jn)(dt,Date.now())}).replace(Et,(ft,ve,ce,Ge,vt)=>{const dt=ve||Ge,Te=ce||vt||"";return"("+he.Z.API_SERVER+"/files/uploads/"+dt+Te+dt+Te+"&t="+(0,Ne.Jn)(dt,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,`
|
|
`),Je)};var Me=({value:Je="",edit:_e=!1,className:et,showTextOnly:Kt,showLines:Et,style:Ct={},stylesPrev:ft={},highlightKeywords:ve,showProgramFill:ce,isProgramFill:Ge,disabledFill:vt=!1,programFillValue:dt,openEditor:Te=()=>{},onFillChange:ut=He=>{},onFillBlur:at=()=>{},onFillFocus:_t=()=>{}})=>{let He=ke(String(Je||""));const De=(0,re.useRef)(),Se=(0,re.useRef)(),[ze,st]=(0,re.useState)(""),[Be,it]=(0,re.useState)("office"),[tt,Fe]=(0,re.useState)([]),pt=(0,re.useRef)("a"+(0,Oe.Z)()),Ye={},ge=Ze=>/<style[\s\S]*?>/i.test(Ze||""),ct=(Ze,Vt,Bt)=>{const Ht=document.createElement(Ze===Nt?"input":"textarea");Ht.style.width="100%",Ht.style.height=Ze===Nt?"40px":"151px",Ht.rows=5,Ht.spellcheck=!1,Ht.name="edu-program-fill",Ht.placeholder="\u8BF7\u8F93\u5165",Ht.dataset.id=Vt;const un=Object.keys(Ye).length;return Ye[un]=Ht,`<span class="edu-program-fill-wrap ${Ze===Nt?"":"show"}" style="width:${Ze===Nt?"600px":"100%"}" title=${Bt||""}><span>${Ht.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function jt(Ze){return Ze=Ze.replace(/!\[.*?\]\(.*?\)/g,""),Ze=Ze.replace(/\[.*?\]\(.*?\)/g,""),Ze=Ze.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),Ze=Ze.replace(/<embed.*?>/g,""),Ze=Ze.replace(/<img.*?>/g,""),Ze=Ze.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),Ze=Ze.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),Ze=Ze.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),Ze=Ze.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),Ze}const Wt=Ze=>!Kt&&ge(He)?Ze:Ze.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(Vt,Bt){let Ht=Bt.replace(/(\n|\r)/g,"").split("}"),un=[];return Ht.map(Lt=>{Lt!=""&&un.push(`.${pt.current} ${Lt}`)}),`<style>${un.join("}")}</style>`}),ae=(0,re.useMemo)(()=>{try{const Ht=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,un=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Lt=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,St=/\(\/attachments\/download\//g;He=He.replace(St,"("+he.Z.API_SERVER+"/attachments/download/").replace(Ht,"("+he.Z.API_SERVER+"/api/attachments/").replace(un,'"'+he.Z.API_SERVER+"/api/attachments/").replace(Lt,'"'+he.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,`
|
|
`),De.current.style.display="none"}catch(Ht){}if(ce){let Ht=-1;return He=He.replaceAll("<","<").replaceAll(">",">").replace(/(@▁▁@|@▁@)/g,function(un,Lt,St){var vn;return++Ht,ct(un,Ht,(vn=dt==null?void 0:dt[Ht])==null?void 0:vn.value.replaceAll("<","<").replaceAll(">",">"))}),`<pre style="background:#fff;padding:4px">${Wt(He||"")}</pre>`}let Ze=Wt(He);Ze=(0,je.ZP)(Ze);const Vt=(0,je.ez)();He.match(/\[TOC\]/)&&(Ze=Ze.replace("<p>[TOC]</p>",(0,je.Qv)()),(0,je.Iy)()),Ze=Ze.replace(/(__special_katext_id_\d+__)/g,(Ht,un)=>{const{type:Lt,expression:St}=Vt[un];return(0,Ve.renderToString)(Le(St)||"",{displayMode:Lt==="block",throwOnError:!1,output:"html"})}),Ze=Ze.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,je.AL)();const Bt=document.createElement("div");if(Bt.innerHTML=Ze,Kt)return Bt.innerText;if(ve){const Ht=ve.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return se(Bt,Ht),Bt.innerHTML}return setTimeout(()=>gt(),500),Bt.innerHTML},[He,ve]);(0,re.useEffect)(()=>{ne.current&&ne.current.querySelectorAll(["input","textarea"]).forEach(Vt=>{Vt.oninput=ee,Vt.onblur=z,Vt.onfocus=ie})},[tt]),(0,re.useEffect)(()=>{var Ze,Vt,Bt,Ht,un;if(dt!=null&&dt.length)try{const Lt=ne.current.querySelectorAll(".edu-program-fill-score"),St=ne.current.querySelectorAll('[name="edu-program-fill"]');for(const[vn,Fn]of St.entries())Fn.value=((Ze=dt==null?void 0:dt[vn])==null?void 0:Ze.value)||"",((Vt=dt==null?void 0:dt[vn])==null?void 0:Vt.type)==="warning"?Fn.className="program-fill-warning":((Bt=dt==null?void 0:dt[vn])==null?void 0:Bt.type)==="success"?Fn.className="program-fill-success":Fn.className="";for(const[vn,Fn]of Lt.entries())Fn.innerHTML=(Ht=dt==null?void 0:dt[vn])!=null&&Ht.score?`${(un=dt==null?void 0:dt[vn])==null?void 0:un.score}\u5206`:"";Fe(dt)}catch(Lt){console.log(Lt,"error")}},[dt]);const ee=Ze=>{tt[Ze.target.dataset.id]=tt[Ze.target.dataset.id]||{},tt[Ze.target.dataset.id].value=Ze.target.value,Fe([...tt]),ut(tt,Ze.target.dataset.id)},z=Ze=>{tt[Ze.target.dataset.id]=tt[Ze.target.dataset.id]||{},tt[Ze.target.dataset.id].value=Ze.target.value,Fe([...tt]),at(tt,Ze.target.dataset.id)},ie=Ze=>{tt[Ze.target.dataset.id]=tt[Ze.target.dataset.id]||{},tt[Ze.target.dataset.id].value=Ze.target.value,Fe([...tt]),_t(tt,Ze.target.dataset.id)};function se(Ze,Vt){return Ze.childNodes.forEach(Bt=>{var Ht;if(Bt.childNodes.length>0)se(Bt,Vt);else if(Bt.nodeName!=="IMG")if(Bt.innerHTML)Bt.innerHTML=(Ht=Bt.innerHTML)==null?void 0:Ht.replace(new RegExp(Vt,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const un=document.createElement("span");un.innerHTML=Bt.textContent.replace(new RegExp(Vt,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),Bt.replaceWith(un)}})}const ne=(0,re.useRef)();je.jb.WebkitLineClamp=Et,Et&&(Ct=Re(Re({},Ct),je.jb));function be(Ze){let Vt=Ze.target;if(Vt.tagName.toUpperCase()==="A"){let Bt=Vt.getAttribute("href");if(Bt.indexOf("office")>-1)Ze.preventDefault(),st(Bt),it("office");else if(Bt.indexOf("application/pdf")>-1)Ze.preventDefault(),st(Bt),it("pdf");else if(Bt.indexOf("text/html")>-1)Ze.preventDefault(),st(Bt),it("html");else if(Bt.startsWith("#")){Ze.preventDefault();let Ht=document.getElementById(Bt.replace("#",""));Ht&&Ht.scrollIntoView(!0)}}}const gt=()=>{var Ze;const Vt=(Ze=ne.current)==null?void 0:Ze.querySelectorAll("video");Vt==null||Vt.forEach(Bt=>{if(Bt.oncontextmenu=()=>!1,Bt.src.indexOf(".m3u8")>-1&&!Bt.canPlayType("application/vnd.apple.mpegurl")){if(Ce.ZP.isSupported()){var Ht=new Ce.ZP;Ht.loadSource(Bt.src),Ht.attachMedia(Bt)}}})};(0,re.useEffect)(()=>{if(ne.current&&ae&&ae.match(ye)&&window.PR.prettyPrint(),ne.current)return ne.current.addEventListener("click",be),()=>{var Ze;(Ze=ne.current)==null||Ze.removeEventListener("click",be),(0,je.AL)(),(0,je.Iy)()}},[ae,ne.current,be]);const kt=Ze=>{Ze.target.nodeName==="IMG"&&Ze.target.className.indexOf("draw-flowchart")>-1?(De.current.style.zIndex=1,De.current.style.display="flex",De.current.style.width=Ze.target.clientWidth+"px",De.current.style.height=Ze.target.clientHeight+"px",De.current.style.top=Ze.target.offsetTop+"px",De.current.style.left=Ze.target.offsetLeft+"px",Ze.target.id&&(Se.current=Ze.target.id)):De.current.style.display="none"},ht=()=>{De.current.style.display="none"};return(0,re.useEffect)(()=>{var Ze;const Vt=Bt=>{Bt.preventDefault(),Bt.clipboardData.setData("text",window.getSelection().toString())};return(Ze=ne.current)==null||Ze.addEventListener("copy",Vt),()=>{var Bt;(Bt=ne.current)==null||Bt.removeEventListener("copy",Vt)}},[ne.current]),re.createElement("div",{style:{position:"relative"},onMouseLeave:ht},Kt&&re.createElement("div",{ref:ne,className:`${Ee.mdBody} `},ae),!Kt&&!ge(ae)&&re.createElement("div",{ref:ne,style:Re({},Ct),onMouseOver:kt,className:`${et||""} ${vt?"disabled-fill":""} markdown-body ${Ee.mdBody} ${pt.current}`,dangerouslySetInnerHTML:{__html:ae}}),!Kt&&ge(ae)&&re.createElement(Pe,{html:ae}),re.createElement("div",{ref:De,className:`${Ee.button} ${_e?"":Ee.previewFlowChart}`},re.createElement(we.Z,null,re.createElement(de.ZP,{onClick:()=>{_e?Te(Se.current):(st(Se.current),it("flowChart"))}},_e?"\u7F16\u8F91":"\u9884\u89C8"))),re.createElement(xe.Z,{close:!0,data:ze,type:ze!=null&&ze.length?Be:"",style:Re({},ft),onClose:()=>st("")}))}},52504:function(rn,$t,le){"use strict";le.d($t,{h:function(){return Ae},Z:function(){return xt}});var re=le(59301),$e=le(82326),je=le(28284),Qe=le(7939),Ce=le(89780),he=le.n(Ce),Ne=le(2018),Ve=Object.defineProperty,we=Object.defineProperties,de=Object.getOwnPropertyDescriptors,Oe=Object.getOwnPropertySymbols,xe=Object.prototype.hasOwnProperty,wt=Object.prototype.propertyIsEnumerable,Xe=(me,Re,We)=>Re in me?Ve(me,Re,{enumerable:!0,configurable:!0,writable:!0,value:We}):me[Re]=We,Pe=(me,Re)=>{for(var We in Re||(Re={}))xe.call(Re,We)&&Xe(me,We,Re[We]);if(Oe)for(var We of Oe(Re))wt.call(Re,We)&&Xe(me,We,Re[We]);return me},ke=(me,Re)=>we(me,de(Re));const Ee=$e.default.Option,qe={labelCol:{span:4},wrapperCol:{span:20}},lt={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"]};var xt=({callback:me,onCancel:Re})=>{const[We,Nt]=(0,re.useState)("python");function ye(Ie){Nt(lt[Ie][1])}function Le(Ie){me(Ie)}return re.createElement(je.default,ke(Pe({},qe),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:Le,style:{width:500}}),re.createElement(je.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},re.createElement($e.default,{getPopupContainer:Ie=>Ie.parentNode,onChange:ye},Object.keys(lt).map(Ie=>re.createElement(Ee,{key:Ie,value:Ie},lt[Ie][0])))),re.createElement(je.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},re.createElement(Ae,{mode:We})),re.createElement("div",{className:"flex-container flex-end"},re.createElement(Qe.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),re.createElement(Qe.ZP,{type:"ghost",onClick:Re},"\u53D6\u6D88")))};function Ae({value:me,onChange:Re,mode:We,options:Nt={}}){const ye=(0,re.useRef)(),[Le,Ie]=(0,re.useState)();return(0,re.useEffect)(()=>{if(Le){let Me=function(Je){const _e=Je.getValue();Re&&Re(_e)};return Le.on("change",Me),()=>{Le.off("change",Me)}}},[Le,Re]),(0,re.useEffect)(()=>{Le&&Le.setOption("mode",We)},[Le,We]),(0,re.useEffect)(()=>{Le&&(me!==Le.getValue()||me==="")&&setTimeout(()=>{Le.setValue(me||"")},300)},[Le,me]),(0,re.useEffect)(()=>{if(ye.current&&!Le){const Me=he().fromTextArea(ye.current,Pe({mode:We,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},Nt));Ie(Me)}},[ye.current,Le]),re.createElement("div",{className:"my-codemirror-container"},re.createElement("textarea",{ref:ye}))}},77834:function(rn,$t,le){"use strict";le.d($t,{Z:function(){return fn}});var re=le(59301),$e=le(58106),je=le(89780),Qe=le.n(je),Ce=le(76374),he=le(2018),Ne=le(6313),Ve=le(25717),we=le(99498),de=le(25419),Oe=le(67549),xe=le(59944),wt=({value:Tt="",className:Jt,showTextOnly:wn,showLines:En,style:Pn={}})=>{const jn=(0,re.useMemo)(()=>"",[Tt]);return re.createElement(re.Fragment,null,re.createElement("div",{dangerouslySetInnerHTML:{__html:jn}}))},Xe=Object.defineProperty,Pe=Object.defineProperties,ke=Object.getOwnPropertyDescriptors,Ee=Object.getOwnPropertySymbols,qe=Object.prototype.hasOwnProperty,lt=Object.prototype.propertyIsEnumerable,xt=(Tt,Jt,wn)=>Jt in Tt?Xe(Tt,Jt,{enumerable:!0,configurable:!0,writable:!0,value:wn}):Tt[Jt]=wn,Ae=(Tt,Jt)=>{for(var wn in Jt||(Jt={}))qe.call(Jt,wn)&&xt(Tt,wn,Jt[wn]);if(Ee)for(var wn of Ee(Jt))lt.call(Jt,wn)&&xt(Tt,wn,Jt[wn]);return Tt},me=(Tt,Jt)=>Pe(Tt,ke(Jt));let Re=[{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 We({onActionCallback:Tt,title:Jt,icon:wn,actionName:En,className:Pn="",children:jn}){function ur(){Tt(En)}return re.createElement("a",{title:Jt,className:Pn,onClick:ur},re.createElement("i",{className:`${wn}`}),jn)}var Nt=({watch:Tt,showNullButton:Jt,showNullProgramButton:wn,onActionCallback:En,fullScreen:Pn,insertTemp:jn,hidetoolBar:ur,extraUse:rr})=>{const zn=[...Re,{title:`${Tt?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${Tt?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return re.createElement("ul",{className:"markdown-toolbar-container"},!ur&&zn.map((Gn,ln)=>re.createElement("li",{key:ln},Gn.actionName?re.createElement(We,me(Ae({},Gn),{onActionCallback:En})):re.createElement("span",{className:"v-line"}))),Jt?re.createElement("li",null,re.createElement(We,{icon:"iconfont icon-tianjia5 insert-blank",className:"btn-null ml5",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:En},re.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u65B0\u589E\u586B\u7A7A\u9879"))):null,wn?re.createElement(re.Fragment,null,re.createElement("li",null,re.createElement(We,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:En},re.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u5355\u884C\u586B\u7A7A\u9879"))),re.createElement("li",null,re.createElement(We,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:En},re.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u591A\u884C\u586B\u7A7A\u9879")))):null,jn&&re.createElement("li",null,re.createElement(We,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${jn}`,onActionCallback:En},re.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),rr&&re.createElement("li",null,rr),re.createElement("li",{className:"btn-full-screen"},re.createElement(We,{icon:`${Pn?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:Pn?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:En})))},ye=le(35990),Le=le(28284),Ie=le(37568),Me=le(7939),Je=Object.defineProperty,_e=Object.defineProperties,et=Object.getOwnPropertyDescriptors,Kt=Object.getOwnPropertySymbols,Et=Object.prototype.hasOwnProperty,Ct=Object.prototype.propertyIsEnumerable,ft=(Tt,Jt,wn)=>Jt in Tt?Je(Tt,Jt,{enumerable:!0,configurable:!0,writable:!0,value:wn}):Tt[Jt]=wn,ve=(Tt,Jt)=>{for(var wn in Jt||(Jt={}))Et.call(Jt,wn)&&ft(Tt,wn,Jt[wn]);if(Kt)for(var wn of Kt(Jt))Ct.call(Jt,wn)&&ft(Tt,wn,Jt[wn]);return Tt},ce=(Tt,Jt)=>_e(Tt,et(Jt));const Ge={labelCol:{span:4},wrapperCol:{span:20}};var vt=({callback:Tt,onCancel:Jt})=>{function wn(En){Tt(En)}return re.createElement(Le.default,ce(ve({},Ge),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:wn,style:{width:500}}),re.createElement(Le.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},re.createElement(Ie.default,null)),re.createElement(Le.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},re.createElement(Ie.default,null)),re.createElement("div",{className:"flex-container flex-end"},re.createElement(Me.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),re.createElement(Me.ZP,{type:"ghost",onClick:Jt},"\u53D6\u6D88")))},dt=le(52504),Te=le(82441),ut=le(62957),at=le(77019),_t=le(1986),He=le(59301),De=({callback:Tt,onCancel:Jt})=>{const wn=document.createElement("canvas"),En=wn.getContext("2d");wn.width=1e3,wn.height=800,En.fillStyle="#ffffff",En.fillRect(0,0,wn.width,wn.height);const Pn=wn.toDataURL("image/png");return He.createElement(ut.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},He.createElement(at.Z,{style:{height:"100vh"}},He.createElement(_t.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:Pn,visible:!0,title:String(Date.now())},onOk:jn=>{Tt({src:jn.url})},onClose:Jt})))},Se=le(30641),ze=le(5269),st=le(6767),Be={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re",drawerWrap:"drawerWrap___MfDw8"},it=le(59301),Fe=(0,re.forwardRef)(({onCancel:Tt,editImgId:Jt,callback:wn},En)=>{let Pn=(0,re.useRef)(),jn=(0,re.useRef)(),ur=(0,re.useRef)(),rr=(0,re.useRef)(!1);const zn=(0,re.useRef)(!1);console.log("ref:",En);const[Gn,ln]=(0,re.useState)(0),[Mt,gn]=(0,re.useState)("100vh");return(0,re.useEffect)(()=>{ln(1)},[]),(0,re.useImperativeHandle)(En,()=>({setHeight:gn})),it.createElement("div",{ref:zn,className:"body-overflow-initial"},it.createElement(Se.Z,{width:"100vw",height:Mt,footer:null,closable:!0,placement:"bottom",open:!!Gn,destroyOnClose:!0,maskClosable:!1,mask:!1,rootClassName:`zIndex-9999 ${Be.drawerWrap}`,onClose:()=>{window.saveDrawData(In=>{wn({src:`/api/attachments/${In}`,id:In})})},title:it.createElement(at.Z,{align:"middle"},it.createElement(ze.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),it.createElement(ze.Z,{onClick:()=>{gn(Mt==="60px"?"100vh":"60px")}},it.createElement("span",{className:"current c-blue",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77")),it.createElement(ze.Z,{onClick:()=>{window.saveDrawData(In=>{if(In===null){st.ZP.warning({content:"\u5185\u5BB9\u4E3A\u7A7A\uFF0C\u8BF7\u5148\u7ED8\u5236\u6D41\u7A0B\u56FE",key:"saveFlowChart"});return}st.ZP.success({content:"\u4FDD\u5B58\u6210\u529F",key:"saveFlowChart",style:{zIndex:999999999}}),wn({src:`/api/attachments/${In}`,id:In,disabledClose:!0})})}},it.createElement(Me.ZP,{type:"primary",className:"ml20"},"\u4FDD\u5B58")))},it.createElement("iframe",{src:`/drawio/src/main/webapp/?id=${Jt||""}&gapi=0&od=0&db=0&gh=0&gl=0&local=0`,width:"100%",height:"100%",frameBorder:"0",ref:jn})))}),pt=le(26869),Ye=le(47889),ge=le(71051);const ct=Ye.ZP.Group,jt={margin:"0 8px"};var Wt=({callback:Tt,onCancel:Jt})=>{function wn(En){Tt(En)}return re.createElement(Le.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:wn},re.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},re.createElement("span",{style:jt},"\u5355\u5143\u683C\u6570\uFF1A"),re.createElement("span",{style:jt},"\u884C\u6570"),re.createElement(Le.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},re.createElement(ge.Z,null)),re.createElement("span",{style:jt},"\u5217\u6570"),re.createElement(Le.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},re.createElement(ge.Z,null))),re.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},re.createElement("span",{style:jt},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),re.createElement(Le.default.Item,{name:"align"},re.createElement(ct,null,re.createElement(Ye.ZP,{value:"default"},re.createElement("i",{className:"fa fa-align-justify"})),re.createElement(Ye.ZP,{value:"left"},re.createElement("i",{className:"fa fa-align-left"})),re.createElement(Ye.ZP,{value:"center"},re.createElement("i",{className:"fa fa-align-center"})),re.createElement(Ye.ZP,{value:"right"},re.createElement("i",{className:"fa fa-align-right"}))))),re.createElement("div",{className:"flex-container flex-end"},re.createElement(Me.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),re.createElement(Me.ZP,{type:"ghost",onClick:Jt},"\u53D6\u6D88")))},ae=le(71411),ee=le(75544),z=le.n(ee),se=(0,re.forwardRef)(({use3d:Tt,width:Jt,height:wn,callback:En,showSaveButton:Pn},jn)=>{const ur=(0,re.useRef)(),rr=(0,re.useRef)(),[zn,Gn]=(0,re.useState)(!1),ln=(0,re.useRef)({id:ur,appName:"graphing",width:Jt||1e3,height:wn||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,re.useEffect)(()=>{rr.current=new(z())(ln.current,!0),window.onload=function(){rr.current.inject("applet_container")}},[]);const Mt=()=>{var gn=window.ggbApplet.getPNGBase64(1,!0,72);return En&&En(gn),gn};return(0,re.useEffect)(()=>{ln.current.appName=zn?"3D":"graphing",rr.current.inject("applet_container")},[zn]),(0,re.useEffect)(()=>{Gn(Tt)},[Tt]),(0,re.useImperativeHandle)(jn,()=>({getImgData:Mt})),re.createElement(re.Fragment,null,re.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:ur}),re.createElement(at.Z,{align:"middle"},re.createElement(ze.Z,{flex:1},re.createElement(ae.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:zn,onChange:gn=>Gn(gn)})),re.createElement(ze.Z,null,re.createElement(Me.ZP,{size:"large",onClick:Mt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),ne=le(50047);const be="link",gt="upload-image",kt="add-flowchart",ht="draw-image",Ze="add-flowchart",Vt="code-block",Bt="add-table",Ht="------------",un={default:Ht,left:`:${Ht}`,center:`:${Ht}:`,right:`${Ht}:`};var Lt=le(61904),St=le(31735);function vn(){}let Fn=0;const Tn=1e4,Un="\u2581",tr="@\u2581\u2581@",gr="@\u2581@",$n=`
|
|
**\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`,kn=["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 pr(Tt){return/^\d+$/.test(Tt)?`${Tt}px`:Tt}const Ln=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Cn={[Ln+"-B"]:"bold",[Ln+"-I"]:"italic"},tn={[be]:"\u6DFB\u52A0\u94FE\u63A5",[Vt]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[gt]:"\u6DFB\u52A0\u56FE\u7247",[ht]:"\u6DFB\u52A0\u753B\u56FE",[kt]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Bt]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var fn=({defaultValue:Tt="",onChange:Jt,width:wn="100%",height:En=400,miniToolbar:Pn=!1,isFocus:jn=!1,watch:ur,insertTemp:rr,mode:zn="markdown",id:Gn="markdown-editor-id",showResizeBar:ln=!1,noStorage:Mt=!1,showNullButton:gn=!1,showNullProgramButton:In=!1,hidetoolBar:ir=!1,fullScreen:nt=!1,onBlur:ot,onCMBeforeChange:dn,onFullScreen:Xt,className:mt="",disablePaste:en=!1,disabled:hn=!1,disabledFill:mn=!1,placeholder:Dn="",values:yn="",extraUse:An,onAddBlank:nn})=>{const[Gt,Mn]=(0,re.useState)(null),[_n,Jn]=(0,re.useState)(Tt),[Qn,Er]=(0,re.useState)(ur),[Mr,Vn]=(0,re.useState)(nt),[Sn,Yn]=(0,re.useState)(""),[Rn,Pr]=(0,re.useState)(0),[Gr,Or]=(0,re.useState)(En),[Vr,Jr]=(0,re.useState)(!1),[Ur,Ir]=(0,re.useState)(0),[ei,Yr]=(0,re.useState)(0),Zn=(0,re.useRef)(),dr=(0,re.useRef)(),Nr=(0,re.useRef)(),Zr=(0,re.useRef)(),Fr=(0,re.useRef)(),zr=(0,re.useRef)(),ai=(0,$e.useDispatch)();(0,re.useEffect)(()=>{const Qt=window.scrollY||window.pageYOffset;Jn(yn),Gt==null||Gt.setValue(yn),window.scrollTo(0,Qt)},[yn]),(0,re.useEffect)(()=>{Xt==null||Xt(Mr)},[Mr]),(0,re.useEffect)(()=>{if(Zn.current){let Qt=function(sn,cn){var Nn;if(en){cn.preventDefault();return}const Xn=cn.clipboardData;if(Xn){const On=Xn.types.toString(),hr=Xn.items;if(On==="Files"||Xn.types.indexOf("Files")>-1){if(cn.preventDefault(),zn=="stex")return;try{let or=hr[1];((Nn=hr[0])==null?void 0:Nn.kind)==="file"&&(or=hr[0]);const fr=or.getAsFile(),yr=fr.name.split(".").pop();(0,Te.I)(fr,vr=>{var Tr,br,kr;vr.id?((Tr=fr==null?void 0:fr.type)==null?void 0:Tr.indexOf("image"))>-1?zt.replaceSelection(`<img width="100%" src="/api/attachments/${vr.id}?type=${vr.content_type})" alt="" />`):((br=fr==null?void 0:fr.type)==null?void 0:br.indexOf("video"))>-1?zt.replaceSelection(`<video width="100%" controls src="/api/attachments/${vr.id}"></video>`):((kr=fr==null?void 0:fr.type)==null?void 0:kr.indexOf("pdf"))>-1?zt.replaceSelection(`<a href="/api/attachments/${vr.id}?type=${fr.type}&disposition=inline" target="_blank">${fr.name}</a>`):kn.includes(yr)?zt.replaceSelection(`<a href="/api/attachments/${vr.id}?type=office&disposition=inline" target="_blank">${fr.name}</a>`):zt.replaceSelection(`[${fr.name}](/api/attachments/${vr.id}?type=${vr.content_type})`):(vr==null?void 0:vr.status)===401&&(document.location.href="/user/login")})}catch(or){st.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const zt=Qe().fromTextArea(Zn.current,{mode:zn,lineNumbers:!Pn,lineWrapping:!0,value:Tt,autoCloseTags:!0,autoCloseBrackets:!0});return zt.on("keyup",function(sn,cn){cn.keyCode===8&&(sn.getValue()==""?zt.setOption("placeholder",Dn):zt.setOption("placeholder",null))}),zt.on("keydown",function(sn,cn){if(cn.keyCode===8){var Nn=Pt(sn);Nn&&cn.preventDefault()}}),jn&&zt.focus(),zt.on("paste",Qt),hn&&zt.on("beforeChange",function(sn,cn){(cn.origin==="paste"||cn.origin==="+input")&&cn.cancel()}),Mn(zt),()=>{zt.off("paste",Qt)}}},[]);const Ke=(0,re.useCallback)(()=>{if(dr.current)try{}catch(Qt){console.log(Qt,"---- to set md editor body height")}},[Gr,dr,Mr]);(0,re.useEffect)(()=>{function Qt(){let zt=new Ce.Z(sn=>{for(let cn of sn)(cn.target.offsetHeight>0||cn.target.offsetWidth>0)&&(Ke(),Gt.setSize("100%","100%"),Gt.refresh())});return zt.observe(Zn.current.parentElement),zt}if(Gt){const zt=Qt();return()=>{var sn,cn;(sn=Zn.current)!=null&&sn.parentElement&&zt.unobserve((cn=Zn.current)==null?void 0:cn.parentElement)}}},[Gt,Ke]),(0,re.useEffect)(()=>{if(Gt){let Qt=[];for(const[zt,sn]of Object.entries(Cn)){let cn={[zt]:()=>{bt(sn)}};Qt.push(cn),Gt.addKeyMap(cn)}return()=>{for(let zt of Qt)Gt.removeKeyMap(zt)}}},[Gt]),(0,re.useEffect)(()=>{nt!==Mr&&Vn(nt)},[nt]),(0,Lt.Z)(()=>{if(!Mt&&Rn>0){let Qt=new Date().getTime(),zt=window.sessionStorage.getItem(Gn);Qt>=Rn+Tn&&(!zt||zt!==_n)&&(window.sessionStorage.setItem(Gn,_n),Jr(!0))}},Tn),(0,re.useEffect)(()=>{Er(ur)},[Gt,ur]),(0,re.useEffect)(()=>{Gt&&jn&&Gt.focus()},[Gt,jn]),(0,re.useEffect)(()=>{if(Qn&&Gt){let Qt=function(sn){let cn=sn.target;if(Zr.current){let Nn=cn.scrollTop/cn.scrollHeight;Zr.current.scrollTop=Zr.current.scrollHeight*Nn}};const zt=Gt.getScrollerElement();return zt.addEventListener("scroll",Qt),()=>{zt.removeEventListener("scroll",Qt)}}},[Gt,Qn]),(0,re.useEffect)(()=>{if(Gt&&dn){let Qt=function(zt,sn){dn(zt,sn)};return Gt.on("beforeChange",Qt),()=>{Gt.off("beforeChange",Qt)}}},[Gt,dn]),(0,re.useEffect)(()=>{if(Gt&&ot){let Qt=function(){ot(Gt.getValue())};return Gt.on("blur",Qt),()=>{Gt.off("blur",Qt)}}},[Gt,ot]);function Pt(Qt,zt){var sn=Qt.getDoc(),cn=sn.getCursor(),Nn=sn.getLine(cn.line),Xn=Nn.charAt(cn.ch-1),On=Nn.lastIndexOf("@\u2581@",cn.ch),hr=Nn.lastIndexOf("@\u2581\u2581@",cn.ch),or=On>hr?On:hr,fr=On>hr?3:4;if(tr.indexOf(Xn)===-1)return null;if(console.log("change1:",zt,Qt,Nn,cn,or,On,hr,Xn),or>=0&&cn.ch-or<5){var yr=or+fr;return sn.replaceRange("",{line:cn.line,ch:or},{line:cn.line,ch:yr}),{line:cn.line,ch:yr}}return null}(0,re.useEffect)(()=>{if(Gt){let Qt=function(zt,sn){const cn=zt.getValue();Jn(cn),Pr(new Date().getTime()),zt.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),Jt&&(In?Jt(cn,Ft(cn)):Jt(cn))};return Gt.on("change",Qt),()=>{Gt.off("change",Qt)}}},[Gt,Jt]),(0,re.useEffect)(()=>{if(Gt)if(Tt==null)Gt.setValue(""),Jn("");else{const Qt=window.scrollY||window.pageYOffset;Tt!==Gt.getValue()&&(Gt.setValue(Tt),Jn(Tt),Gt.setCursor(hn?1:Gt.lineCount(),0),window.scrollTo(0,Qt))}},[Gt,Tt]);const bt=(0,re.useCallback)(Qt=>{const zt=Gt.getCursor(),sn=Gt.getSelection();let cn=sn.split(`
|
|
`);switch(Qt){case"bold":return Gt.replaceSelection("**"+sn+"**"),sn===""&&Gt.setCursor(zt.line,zt.ch+2),Gt.focus();case"italic":return Gt.replaceSelection("*"+sn+"*"),sn===""&&Gt.setCursor(zt.line,zt.ch+1),Gt.focus();case"code":return Gt.replaceSelection("`"+sn+"`"),sn===""&&Gt.setCursor(zt.line,zt.ch+1),Gt.focus();case"inline-latex":return(0,St.Ye)(ai)?void 0:(Yn("inline-latex"),Gt.focus());case"latex":return Gt.replaceSelection("```latex\n"+sn+"\n```"),Gt.setCursor(zt.line+1,sn.length+1),Gt.focus();case"line-break":return Gt.replaceSelection(`<br/>
|
|
`),Gt.focus();case"list-ul":return sn===""?Gt.replaceSelection("- "+sn):Gt.replaceSelection(cn.map(Nn=>Nn===""?"":`- ${Nn}`).join(`
|
|
`)),Gt.focus();case"list-ol":return sn===""?Gt.replaceSelection("1. "+sn):Gt.replaceSelection(cn.map((Nn,Xn)=>Nn===""?"":`${Xn+1}. ${Nn}`).join(`
|
|
`)),Gt.focus();case"add-null-ch":nn==null||nn();return;case"add-signal":return sn===""&&Gt.setCursor(zt.line,zt.ch),Gt.replaceSelection(gr),Gt.focus();case"add-multiple":return sn===""&&Gt.setCursor(zt.line,zt.ch),Gt.replaceSelection(tr),Gt.focus();case"inster-template-1":return sn===""&&Gt.setCursor(zt.line,zt.ch),Gt.replaceSelection($n),Gt.focus();case"eraser":return Gt.setValue(""),Gt.focus();case"trigger-watch":return Er(!Qn),Gt.focus();case"trigger-full-screen":return Vn(!Mr),Gt.focus();case be:Yn(be);return;case Vt:Yn(Vt);return;case gt:Yn(gt);return;case ht:Yn(ht);return;case"maths-latex":if((0,St.Ye)(ai))return;Yn("maths-latex");return;case kt:Fr.current="",sessionStorage.removeItem("file_id"),Yn(kt);return;case Bt:Yn(Bt);return;default:throw new Error}},[Gt,Qn,Mr]),Dt=(0,re.useCallback)((Qt,zt)=>{var sn,cn,Nn,Xn,On,hr;Qt!=null&&Qt.disabledClose||Yn("");const{src:or,alt:fr,id:yr}=Qt||{};switch(Sn){case be:const{title:cr,link:Kn}=Qt;return Gt.replaceSelection(`[${cr}](${Kn})`),Gt.focus();case Vt:const{language:ar,content:mr}=Qt;return Gt.replaceSelection(["```"+ar,mr,"```"].join(`
|
|
`)),Gt.focus();case"maths-latex":for(var vr=atob(Qt),Tr=new Uint8Array(vr.length),br=0;br<vr.length;br++)Tr[br]=vr.charCodeAt(br);var kr=new Blob([Tr],{type:"image/png"});(0,Te.I)(kr,yi=>{yi.id?Gt.replaceSelection(``):(yi==null?void 0:yi.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":if((0,St.Ye)(ai))return;Gt.replaceSelection("`$$"+Qt+"$$`");break;case Ze:if(!yr)return;Gt.getValue().indexOf(or)===-1?Gt.replaceSelection(`<center><img id="${yr}" width="80%" src="${or}" class="draw-flowchart" alt="${fr||""}" /></center>`):document.getElementById(yr).src=pt.Z.API_SERVER+or+"?t="+Date.now();break;case gt:case ht:const er=zt,Dr=(Nn=(cn=(sn=er==null?void 0:er.name)==null?void 0:sn.split("."))==null?void 0:cn.pop)==null?void 0:Nn.call(cn);return((Xn=er==null?void 0:er.type)==null?void 0:Xn.indexOf("image"))>-1||!(er!=null&&er.type)?er!=null&&er.align||er!=null&&er.width?Gt.replaceSelection(`<p style="text-align:${er.align||"initial"}"><img width="${er.width?er.width+"%":"initial"}" src="${or}" alt="${fr||""}" /></p>`):Gt.replaceSelection(`<img width="100%" src="${or}" alt="${fr||""}" />`):((On=er==null?void 0:er.type)==null?void 0:On.indexOf("video"))>-1?Gt.replaceSelection(`<video width="100%" controls src="${or}"></video>`):((hr=er==null?void 0:er.type)==null?void 0:hr.indexOf("pdf"))>-1?Gt.replaceSelection(`<a href="${or}?type=${er.type}&disposition=inline" target="_blank">${er.name}</a>`):kn.includes(Dr)?Gt.replaceSelection(`<a href="${or}?type=office&disposition=inline" target="_blank">${er.name}</a>`):Gt.replaceSelection(`[${er.name}](${or})`),Gt.focus();case Bt:const{row:Lr,col:Qr,align:Ni}=Qt;let wi=`
|
|
`;for(let yi=0;yi<Lr;yi++){let Pi=[],qr=[];for(let Xr=0;Xr<Qr;Xr++)yi===1&&qr.push(un[Ni]),Pi.push(" ");yi===1&&(wi+=`| ${qr.join(" | ")} |
|
|
`),wi+=`| ${Pi.join(Qr===1?"":" | ")} |
|
|
`}return Gt.replaceSelection(wi+`
|
|
`),Gt.focus();default:throw new Error}},[Gt,Sn]),Zt=(0,re.useMemo)(()=>{switch(Sn){case be:return re.createElement(vt,{callback:Dt,onCancel:Ut});case Vt:return re.createElement(dt.Z,{callback:Dt,onCancel:Ut});case gt:return re.createElement(Te.Z,{callback:Dt,onCancel:Ut});case kt:return re.createElement(Fe,{editImgId:Fr.current,callback:Dt,onCancel:Ut});case Bt:return re.createElement(Wt,{callback:Dt,onCancel:Ut});case"maths-latex":return re.createElement(se,{showSaveButton:!0,callback:Dt});case"inline-latex":return re.createElement(ne.Z,{showSaveButton:!0,callback:Dt});default:return null}},[Sn]);function Ut(){Yn("")}(0,re.useEffect)(()=>{if(Nr.current){let Qt=function(On){Nn=!0,Xn=On.pageY},zt=function(){Nn=!1},sn=function(On){if(Nn){let hr=On.pageY-Xn;hr<0&&(hr=0),hr>300&&(hr=300);let or=En+hr+"px";Or(or)}},cn=Nr.current,Nn=!1,Xn=0;return cn.addEventListener("mousedown",Qt),document.addEventListener("mousemove",sn),document.addEventListener("mouseup",zt),()=>{cn.removeEventListener("mousedown",Qt),document.removeEventListener("mousemove",sn),document.removeEventListener("mouseup",zt)}}},[Gt,Nr]),(0,re.useEffect)(()=>{Or(En)},[En]);const pn=pr(wn),an=pr(Gr),qt={width:pn,height:an},yt=(0,re.useMemo)(()=>{if(Rn){let Qt=new Date(Rn),zt=Qt.getHours(),sn=Qt.getMinutes(),cn=Qt.getSeconds();return zt=zt<10?"0"+zt:zt,sn=sn<10?"0"+sn:sn,cn=cn<10?"0"+cn:cn,`${zt}:${sn}:${cn}`}return 0},[Rn]),Ft=Qt=>{const zt=[];if(In){let sn=-1;Qt=Qt.replace(/(@▁▁@|@▁@)/g,function(cn,Nn,Xn){zt.push({multiLine:cn!==gr})})}return zt};function Ot(){window.sessionStorage.removeItem(Gn),Jr(!1),Pr(0)}function It(){Jr(!1),Pr(0),Gt.setValue(window.sessionStorage.getItem(Gn))}(0,re.useEffect)(()=>{tn[Sn]&&Sn!==ht&&Sn!==kt&&setTimeout(()=>{const Qt=document.getElementsByClassName("markdown-popup-form")[0],zt=window.innerWidth/2-Qt.offsetWidth/2,sn=window.innerHeight/2-Qt.offsetHeight/2;Ir(zt),Yr(sn)},0)},[Sn]);const Yt=Qt=>{Qt.preventDefault();const zt=Qt.clientX-Ur,sn=Qt.clientY-ei;document.body.onmousemove=cn=>{let Nn=cn.clientX-zt,Xn=cn.clientY-sn;const On=document.getElementsByClassName("markdown-popup-form")[0],hr=window.innerWidth-On.offsetWidth,or=window.innerHeight-On.offsetHeight;Nn=Math.max(0,Math.min(Nn,hr)),Xn=Math.max(0,Math.min(Xn,or)),bn(cn.clientX,cn.clientY,zt,sn)&&(Ir(Nn),Yr(Xn))},document.body.onmouseup=function(){document.body.onmousemove=null}},bn=(Qt,zt,sn,cn)=>{const Nn=document.body.clientHeight,Xn=document.body.clientWidth;return Qt<20&&sn>Qt||Qt>Xn-20&&sn<Qt||zt<20&&cn>zt||zt>Nn-20&&cn<zt?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return re.createElement(re.Fragment,null,re.createElement("div",{className:"markdown-editor-wrapper",ref:dr},re.createElement("div",{className:`markdown-editor-container ${mt} ${Qn?"on-preview":""} ${Pn?"mini":""} ${Mr?"full-screen":""}`,style:qt},re.createElement(Nt,{insertTemp:rr,watch:Qn,fullScreen:Mr,showNullButton:gn,showNullProgramButton:In,onActionCallback:bt,hidetoolBar:ir,extraUse:An}),re.createElement("div",{className:"markdown-editor-body"},re.createElement("div",{className:"codemirror-container"},re.createElement("textarea",{ref:Zn,placeholder:Dn})),Qn?re.createElement("div",{ref:Zr,className:"preview-container"},zn==="stex"&&re.createElement(wt,{value:_n}),zn!=="stex"&&re.createElement(xe.Z,{edit:!0,disabledFill:mn,showProgramFill:In,value:_n,openEditor:Qt=>{var zt;Fr.current=Qt,(zt=zr.current)==null||zt.setHeight("100vh"),setTimeout(()=>{Yn("add-flowchart")},150)}})):null))),ln?re.createElement("a",{ref:Nr,className:"editor-resize"}):null,Sn===ht&&re.createElement(De,{callback:Dt,onCancel:Ut}),Sn===kt&&re.createElement(Fe,{ref:zr,editImgId:Fr.current,callback:Dt,onCancel:Ut}),re.createElement(ye.Z,null,tn[Sn]&&Sn!==ht&&Sn!==kt?re.createElement(ut.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:Ur,top:ei},title:re.createElement("div",{style:{cursor:"move"},onMouseDown:Yt},tn[Sn]),open:!0,onCancel:Ut,footer:null,destroyOnClose:!0,width:Sn===kt?"1200px":null,height:Sn===kt?"80vh":null,className:"markdown-popup-form"},Zt):null))}},82441:function(rn,$t,le){"use strict";le.d($t,{Z:function(){return Re},I:function(){return Nt}});var re=le(28284),$e=le(6767),je=le(37568),Qe=le(44104),Ce=le(71051),he=le(47889),Ne=le(7939),Ve=le(52882),we=le(59301),de=le(59301),Oe=Object.defineProperty,xe=Object.defineProperties,wt=Object.getOwnPropertyDescriptors,Xe=Object.getOwnPropertySymbols,Pe=Object.prototype.hasOwnProperty,ke=Object.prototype.propertyIsEnumerable,Ee=(ye,Le,Ie)=>Le in ye?Oe(ye,Le,{enumerable:!0,configurable:!0,writable:!0,value:Ie}):ye[Le]=Ie,qe=(ye,Le)=>{for(var Ie in Le||(Le={}))Pe.call(Le,Ie)&&Ee(ye,Ie,Le[Ie]);if(Xe)for(var Ie of Xe(Le))ke.call(Le,Ie)&&Ee(ye,Ie,Le[Ie]);return ye},lt=(ye,Le)=>xe(ye,wt(Le));const{useForm:xt}=re.default,Ae={width:280,marginRight:10},me={labelCol:{span:5},wrapperCol:{span:19}};var Re=({callback:ye,onCancel:Le})=>{const[Ie]=xt();let Me=(0,we.useRef)();function Je(Kt){Me.current.width=Ie.getFieldValue("width"),Me.current.align=Ie.getFieldValue("align"),ye(Kt,Me.current)}function _e(Kt,Et){if(Kt.status===-1){$e.ZP.error(Kt.message);return}Ie.setFieldsValue({src:`/api/attachments/${Kt.id}`,type:Et.type})}function et(Kt){let Et=Kt.target.files[0];Me.current=Et,Nt(Et,_e)}return de.createElement(re.default,lt(qe({form:Ie},me),{className:"upload-image-panel",onFinish:Je,style:{width:470,overflow:"hidden"}}),de.createElement(re.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},de.createElement("div",{className:"flex-container"},de.createElement(re.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},de.createElement(je.default,{style:Ae})),de.createElement(We,{onFileChange:et}))),de.createElement(re.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},de.createElement(je.default,{style:{width:264}})),de.createElement(re.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},de.createElement(Qe.Z,null,de.createElement(re.default.Item,{name:"width",style:{margin:0}},de.createElement(Ce.Z,{style:{width:264}})),de.createElement("span",{className:"ml8"},"%"))),de.createElement(re.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},de.createElement(he.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"}]})),de.createElement("aside",null,de.createElement(re.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},de.createElement(Ne.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),de.createElement(Ne.ZP,{type:"default",onClick:Le},"\u53D6\u6D88"))))};function We({onFileChange:ye}){return de.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",de.createElement("input",{type:"file",onChange:ye}))}function Nt(ye,Le){if(!ye)throw new String("\u6CA1\u6709\u6587\u4EF6");let Ie=new FormData;Ie.append("editormd-image-file",ye),Ie.append("file_param_name","editormd-image-file"),Ie.append("byxhr","true");var Me=new window.XMLHttpRequest;Me.withCredentials=!0,Me.addEventListener("load",function(Je){Le(JSON.parse(Je.target.responseText),ye)},!1),Me.addEventListener("error",function(Je){console.error(Je)},!1),Me.open("POST",`${Ve.KI}/api/attachments.json`),Me.send(Ie)}},35990:function(rn,$t,le){"use strict";le.d($t,{Z:function(){return je}});var re=le(59301),$e=le(4676);class je extends re.Component{constructor(Ce){super(Ce);const he=window.document;this.node=he.createElement("div"),he.body.appendChild(this.node)}render(){const{children:Ce}=this.props;return(0,$e.createPortal)(Ce,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},58478:function(rn,$t,le){"use strict";le.d($t,{SV:function(){return De},ZP:function(){return He}});var re=le(59301),$e=le(76374);const je={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"]},Qe={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"]},Ce={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(`
|
|
`)}]},he={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(`
|
|
`)}]},Ne={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 Ve=le(53184),we=le.n(Ve),de=(Se,ze,st)=>new Promise((Be,it)=>{var tt=Ye=>{try{pt(st.next(Ye))}catch(ge){it(ge)}},Fe=Ye=>{try{pt(st.throw(Ye))}catch(ge){it(ge)}},pt=Ye=>Ye.done?Be(Ye.value):Promise.resolve(Ye.value).then(tt,Fe);pt((st=st.apply(Se,ze)).next())});const Oe={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"]}},xe=(Se,ze,st,Be)=>{const it=ze.getValueInRange({startLineNumber:1,startColumn:1,endLineNumber:st.lineNumber,endColumn:st.column});return Array.from(new Set(it.match(/\b\w{2,}\b/g)||[])).map(Fe=>({label:Fe,kind:Se.languages.CompletionItemKind.Text,insertText:Fe,range:Be}))},wt=(Se,ze,st,Be)=>{Se.languages.registerCompletionItemProvider(ze,{provideCompletionItems(it,tt){const Fe=it.getWordUntilPosition(tt),pt={startLineNumber:tt.lineNumber,endLineNumber:tt.lineNumber,startColumn:Fe.startColumn,endColumn:Fe.endColumn},Ye=it.getLineContent(tt.lineNumber).substring(Fe.startColumn-2,Fe.endColumn);return{suggestions:[...xe(Se,it,tt,pt),...st.map(ct=>({label:ct,kind:Se.languages.CompletionItemKind.Keyword,documentation:ct,insertText:ct,insertTextRules:Se.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:pt})),...Be.map(ct=>({label:ct.label,kind:Se.languages.CompletionItemKind.Snippet,documentation:ct.content,insertText:Ye.startsWith("#")?ct.content.replace(/#/,""):ct.content,insertTextRules:Se.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:pt}))]}}})};var Xe=Se=>{Oe.languages.forEach(ze=>{Se.languages.registerDocumentFormattingEditProvider(ze,{provideDocumentFormattingEdits(st){return de(this,null,function*(){const Be=we()(st.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:st.getFullModelRange(),text:Be}]})}})}),wt(Se,"java",Qe.keywords,Qe.quickKey),wt(Se,"cpp",Ce.keywords,Ce.quickKey),wt(Se,"c",je.keywords,[]),wt(Se,"python",he.keywords,he.quickKey),wt(Se,"scala",Ne.keywords,Ne.quickKey)};const Pe="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var ke=Object.defineProperty,Ee=(Se,ze,st)=>ze in Se?ke(Se,ze,{enumerable:!0,configurable:!0,writable:!0,value:st}):Se[ze]=st,qe=(Se,ze,st)=>Ee(Se,typeof ze!="symbol"?ze+"":ze,st);const lt=class Gs{constructor(ze,st,Be){this.placeholder=ze,this.editor=st,this.monaco=Be,st.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return Gs.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)}};qe(lt,"ID","editor.widget.placeholderHint");var Ae=lt,me=le(96236),Re=le(6767),We=le(25399),Nt=le(89392),ye=le(94276),Le=le(56102),Ie=Object.defineProperty,Me=Object.defineProperties,Je=Object.getOwnPropertyDescriptors,_e=Object.getOwnPropertySymbols,et=Object.prototype.hasOwnProperty,Kt=Object.prototype.propertyIsEnumerable,Et=(Se,ze,st)=>ze in Se?Ie(Se,ze,{enumerable:!0,configurable:!0,writable:!0,value:st}):Se[ze]=st,Ct=(Se,ze)=>{for(var st in ze||(ze={}))et.call(ze,st)&&Et(Se,st,ze[st]);if(_e)for(var st of _e(ze))Kt.call(ze,st)&&Et(Se,st,ze[st]);return Se},ft=(Se,ze)=>Me(Se,Je(ze)),ve=(Se,ze)=>{var st={};for(var Be in Se)et.call(Se,Be)&&ze.indexOf(Be)<0&&(st[Be]=Se[Be]);if(Se!=null&&_e)for(var Be of _e(Se))ze.indexOf(Be)<0&&Kt.call(Se,Be)&&(st[Be]=Se[Be]);return st},ce=(Se,ze,st)=>new Promise((Be,it)=>{var tt=Ye=>{try{pt(st.next(Ye))}catch(ge){it(ge)}},Fe=Ye=>{try{pt(st.throw(Ye))}catch(ge){it(ge)}},pt=Ye=>Ye.done?Be(Ye.value):Promise.resolve(Ye.value).then(tt,Fe);pt((st=st.apply(Se,ze)).next())});function Ge(Se){return/^\d+$/.test(Se)?`${Se}px`:Se}function vt(){}let dt=!1;const Te={"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 ut(Se=[]){let ze=Se;if(Array.isArray(Se)){for(let st=0;st<Se.length;st++){let Be=Te[Se[st]];if(Be)return Be}return ze[0]}return Te[ze]||ze}let at=null;const _t=()=>ce(void 0,null,function*(){try{yield navigator.clipboard.writeText(" "),console.log("\u5185\u5BB9\u5DF2\u81EA\u52A8\u590D\u5236\u5230\u526A\u8D34\u677F:")}catch(Se){console.error("\u81EA\u52A8\u590D\u5236\u5931\u8D25:",Se)}});var He=Se=>{var ze=Se,{width:st="100%",height:Be="100%",value:it,language:tt="javascript",style:Fe={},options:pt={},overrideServices:Ye={},theme:ge="vs-dark",onEditBlur:ct,isCopy:jt=!1,onSave:Wt,autoHeight:ae=!1,forbidCopy:ee=!1,onChange:z=vt,editorDidMount:ie=vt,onFocus:se=vt,onBreakPoint:ne=vt,breakPointValue:be=[],filename:gt="educoder.txt",errorLine:kt,errorContent:ht="",highlightLine:Ze,openBreakPoint:Vt=!1,placeholder:Bt="",showMiniMap:Ht=!0}=ze,un=ve(ze,["width","height","value","language","style","options","overrideServices","theme","onEditBlur","isCopy","onSave","autoHeight","forbidCopy","onChange","editorDidMount","onFocus","onBreakPoint","breakPointValue","filename","errorLine","errorContent","highlightLine","openBreakPoint","placeholder","showMiniMap"]);const Lt=(0,re.useRef)(),St=(0,re.useRef)({}),vn=(0,re.useRef)(),Fn=(0,re.useRef)(),Tn=(0,re.useRef)([]),Un=(0,re.useRef)(!1),tr=(0,re.useRef)(),gr=(0,re.useRef)(),$n=(0,re.useRef)(!1),[kn,pr]=(0,re.useState)(!1);function sr(){let ln;return Lt.current&&(ln=new $e.Z(Mt=>{for(let gn of Mt)(gn.target.offsetHeight>0||gn.target.offsetWidth>0)&&St.current.instance.layout()}),ln.observe(Lt.current)),ln}function Ln(){Re.ZP.warning({content:decodeURIComponent(Pe),key:"monaco-editor-tip"})}const Cn=()=>{let ln=St.current.instance;if(it!=null&&ln&&kn){const Mt=ln.getModel();Mt&&it!==Mt.getValue()&&(dt=!0,Mt.setValue(it),ln.layout(),dt=!1)}};(0,re.useEffect)(()=>{const ln=ye.Z.subscribe("formatDocument",Mt=>{var gn;let In=St.current.instance;(gn=In==null?void 0:In.getAction)==null||gn.call(In,"editor.action.formatDocument").run()});return window.updateMonacoValue=Mt=>{z(Mt)},ln},[]),(0,re.useEffect)(()=>{var ln;let Mt=St.current.instance;Fn.current&&clearTimeout(Fn.current),Fn.current=setTimeout(()=>{Cn()},500),it&&(it!=null&&it.length)&&((ln=Mt==null?void 0:Mt.updateOptions)==null||ln.call(Mt,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(it.split(/\r\n|\r|\n/g).length))+3,5)}))},[it,kn,St.current]),(0,re.useEffect)(()=>{if(kt&&St.current&&St.current.instance){let Mt=St.current.instance;Mt.changeViewZones(function(gn){var In=document.createElement("div");In.style.padding="10px 20px",In.style.width="calc(100% - 20px)",In.className="my-error-line-wrp",In.innerHTML=ht,gn.addZone({afterLineNumber:kt||11,heightInLines:3,domNode:In})});var ln={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}};Mt.addOverlayWidget(ln),Mt.revealPositionInCenter({lineNumber:20,column:1})}},[kt,St.current,kn]);const tn=(ln="",Mt)=>{if(!ln||ln.trim()==="")return!0;const In=St.current.instance.getModel().getLineTokens(Mt);let ir=!1;for(let nt=0;nt<2;nt++)In.getStandardTokenType(nt)===1&&(ir=!0);return ir};(0,re.useEffect)(()=>{var ln;const Mt=(ln=St.current)==null?void 0:ln.instance;if(Mt&&kn&&ee){const gn=Mt.onDidBlurEditorWidget(()=>{$n.current=!1}),In=Mt.onDidFocusEditorText(()=>{$n.current=!0});return()=>{gn.dispose(),In.dispose()}}},[St.current,kn,ee]),(0,re.useEffect)(()=>{var ln;if((ln=St.current)!=null&&ln.instance&&kn&&Vt){let Mt=St.current.instance,gn=Mt.getModel();if(!gn)return;(()=>{var yn;let An=[],nn=[];const Gt=gn.getAllDecorations();for(let _n of Gt)_n.options.className==="highlighted-line"&&(An.push((yn=_n==null?void 0:_n.range)==null?void 0:yn.startLineNumber),nn.push(_n==null?void 0:_n.id));if(Ze===An[0])return;gn.deltaDecorations(nn,[]);const Mn=gn.getLineCount();Ze&&Ze<=Mn&&(Mt.deltaDecorations([],[{range:new at.Range(Ze,1,Ze,gn.getLineMaxColumn(Ze)),options:{isWholeLine:!0,className:"highlighted-line"}}]),Mt.revealLineInCenter(Ze))})();const ir=(yn=!1)=>{var An;let nn=[],Gt=[];const Mn=gn.getAllDecorations();for(let _n of Mn)_n.options.linesDecorationsClassName==="breakpoints-select"&&(nn.push((An=_n==null?void 0:_n.range)==null?void 0:An.startLineNumber),Gt.push(_n==null?void 0:_n.id));if(yn)return{lines:nn,ids:Gt};ne(nn)},nt=yn=>ce(void 0,null,function*(){let An={range:new at.Range(yn,1,yn,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield gn.deltaDecorations([],[An]),ir()}),ot=yn=>ce(void 0,null,function*(){let An=[];const nn=Mt.getLineDecorations(yn);for(let Gt of nn)Gt.options.linesDecorationsClassName==="breakpoints-select"&&An.push(Gt.id);yield gn.deltaDecorations(An,[]),ir()}),dn=yn=>{let An=Mt.getLineDecorations(yn);for(let nn of An)if(nn.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,Nt.isEqual)(be,ir(!0).lines)){gn.deltaDecorations(ir(!0).ids,[]);const yn=be.map(An=>({range:new at.Range(An,1,An,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));gn.deltaDecorations([],yn)}const Xt=Mt.onDidChangeModelContent(yn=>{let An=Mt.getPosition();if(An){let nn=An.lineNumber;clearTimeout(gr.current),gr.current=setTimeout(()=>{tn(gn.getLineContent(nn),nn)?ot(nn):dn(nn)?(ot(nn),nt(nn)):ir()},100)}}),mt=Mt.onMouseDown(yn=>{var An,nn,Gt;if(yn.target.detail&&((Gt=(nn=(An=yn.target)==null?void 0:An.element)==null?void 0:nn.className)!=null&&Gt.includes("line-numbers"))){let Mn=yn.target.position.lineNumber;if(tn(gn.getLineContent(Mn),Mn))return;dn(Mn)?ot(Mn):nt(Mn)}}),en=yn=>{let An={range:new at.Range(yn,1,yn,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};Tn.current=Mt.deltaDecorations(Tn.current,[An])},hn=()=>{Tn.current=Mt.deltaDecorations(Tn.current,[])},mn=Mt.onMouseMove(yn=>{var An,nn,Gt;if(hn(),yn.target.detail&&((Gt=(nn=(An=yn.target)==null?void 0:An.element)==null?void 0:nn.className)!=null&&Gt.includes("line-numbers"))){let Mn=yn.target.position.lineNumber;if(tn(gn.getLineContent(Mn),Mn))return;en(Mn)}}),Dn=Mt.onMouseLeave(()=>{hn()});return()=>{Xt.dispose(),mt.dispose(),mn.dispose(),Dn.dispose()}}},[St.current,kn,be,Ze,Vt,tt]),(0,re.useEffect)(()=>{var ln;(ln=St.current)!=null&&ln.instance&&Vt&&St.current.instance.setPosition({lineNumber:0,column:0})},[Ze]);function fn(){let ln=St.current.instance;if(ln){const Mt=ln.getSelection(),gn=St.current.pastePos||{},In=new at.Range(gn.startLineNumber||Mt.endLineNumber,gn.startColumn||Mt.endColumn,gn.endLineNumber||Mt.endLineNumber,gn.endColumn||Mt.endColumn);setTimeout(()=>{ln.executeEdits("",[{range:In,text:""}])},300)}}function Tt(ln){(window.navigator.platform.match("Mac")?ln.metaKey:ln.ctrlKey)&&ln.keyCode==83&&(ln.preventDefault(),Wt())}const Jt=()=>{if(ae&&St.current.instance){const ln=St.current.instance.getContentHeight();zn(ln<Be?Be:ln)}else zn(Be)};function wn(ln){var Mt=document.createEvent("MouseEvents");Mt.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),ln.dispatchEvent(Mt)}const En=ln=>{if(!$n.current)return;const{keyCode:Mt,ctrlKey:gn,metaKey:In,target:ir,type:nt}=ln;return(nt==="paste"||(Mt===67||Mt===86)&&(In||gn))&&ir.nodeName==="TEXTAREA"&&(Ln(),ln.preventDefault()),!1};function Pn(ln,Mt){var gn=window.URL||window.webkitURL||window,In=new Blob([Mt]),ir=document.createElementNS("http://www.w3.org/1999/xhtml","a");ir.href=gn.createObjectURL(In),ir.download=ln,wn(ir)}(0,re.useEffect)(()=>{Jt()},[Jt]),(0,re.useEffect)(()=>{Lt.current&&!kn&&Promise.all([le.e(8909),le.e(4474)]).then(le.bind(le,71448)).then(ln=>{try{at=ln,St.current.instance=at.editor.create(Lt.current,{value:it,language:ut(tt),theme:ge,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0,minimap:{enabled:Ht||!1}},Ye);const Mt=St.current.instance;let ir=[...me.BH._menuItems].find(Xt=>Xt[0]._debugName=="EditorContext")[1],nt=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],ot=(Xt,mt)=>{var en,hn;let mn=Xt._first;do mt.includes((hn=(en=mn.element)==null?void 0:en.command)==null?void 0:hn.id)&&Xt._remove(mn);while(mn=mn.next)};if(ie(Mt,at),setTimeout(()=>{Jt(),St.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{Pn(gt||"educoder.txt",Mt.getValue())}})},500),St.current.subscription=Mt.onDidChangeModelContent(Xt=>{Un.current?clearTimeout(tr.current):(Jt(),z(Mt.getValue(),Xt)),tr.current=setTimeout(()=>{Un.current=!1},500)}),window.Monaco||Xe(at,ut(tt)),ee&&(ot(ir,nt),Lt.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",En),window.removeEventListener("paste",En),window.addEventListener("keydown",En),window.addEventListener("paste",En)),window.Monaco=at,ct&&Mt.onDidBlurEditorWidget(()=>{ct(Mt.getValue())}),se&&Mt.onDidFocusEditorText(()=>{ee&&_t(),se(Mt.getValue())}),ee){_t();try{Mt.onDidPaste(Xt=>{const mt=Mt.getSelection(),en=St.current.pastePos||{},hn=new at.Range(en.startLineNumber||mt.endLineNumber,en.startColumn||mt.endColumn,en.endLineNumber||mt.endLineNumber,en.endColumn||mt.endColumn);Mt.executeEdits("",[{range:Xt.range,text:""}])})}catch(Xt){}}let dn=sr();return Bt&&typeof Bt=="string"&&new Ae(Bt,Mt,at),pr(!0),()=>{const Xt=St.current.instance;Xt.dispose();const mt=Xt.getModel();mt&&mt.dispose(),St.current.subscription&&St.current.subscription.dispose(),dn.unobserve(Lt.current)}}catch(Mt){}})},[]),(0,re.useEffect)(()=>{if(St.current.instance&&kn)return document.addEventListener("keydown",Tt,!1),()=>{document.removeEventListener("keydown",Tt)}},[Wt,kn]),(0,re.useEffect)(()=>{let ln=St.current.instance;if(ln&&kn){let Mt=ut(tt);at.editor.setModelLanguage(ln.getModel(),Mt)}},[tt,kn]),(0,re.useEffect)(()=>{St.current.instance&&kn&&at.editor.setTheme(ge)},[ge,kn]),(0,re.useEffect)(()=>{let ln=St.current.instance;vn.current=pt,ln&&kn&&(ln.updateOptions(Ct({},pt)),setTimeout(()=>{ln.getModel().updateOptions(Ct({},pt))},200))},[JSON.stringify(pt),kn]),(0,re.useEffect)(()=>{let ln=St.current.instance;ln&&kn&&ln.layout()},[st,Be,kn]);const[jn,ur]=(0,re.useState)(Ge(st)),[rr,zn]=(0,re.useState)(Ge(Be)),Gn=ft(Ct({},Fe),{width:jn,height:rr,position:"relative"});return re.createElement("div",{className:"my-monaco-editor",ref:Lt,style:Gn,onFocus:()=>{ee&&_t()}},jt&&re.createElement(Le.CopyToClipboard,{text:it,onCopy:()=>Re.ZP.success("\u590D\u5236\u6210\u529F")},re.createElement(We.Z,{title:"\u590D\u5236\u4EE3\u7801"},re.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},re.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function De({width:Se="100%",height:ze="100%",original:st,modified:Be,language:it,options:tt={}}){const Fe=(0,re.useRef)(),[pt,Ye]=(0,re.useState)(null);function ge(ae){let ee;return Fe.current&&(ee=new $e.Z(z=>{for(let ie of z)(ie.target.offsetHeight>0||ie.target.offsetWidth>0)&&ae.layout()}),ee.observe(Fe.current)),ee}(0,re.useEffect)(()=>(Fe.current&&Promise.all([le.e(8909),le.e(9404)]).then(le.bind(le,2550)).then(ae=>{at=ae;const ee=at.editor.createDiffEditor(Fe.current,ft(Ct({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},tt),{wordWrap:!0}));Ye(ee);let z=ge(ee);return()=>{ee.dispose();const ie=ee.getModel();ie&&ie.dispose(),z.unobserve(Fe.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,re.useEffect)(()=>{pt&&pt.setModel({original:at.editor.createModel(st,it),modified:at.editor.createModel(Be,it)})},[st,Be,it,pt]);const ct=Ge(Se),jt=Ge(ze),Wt={width:ct,height:jt};return re.createElement("div",{className:"my-diff-editor",ref:Fe,style:Wt})}},87303:function(rn,$t,le){"use strict";le.d($t,{Z:function(){return xe}});var re={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"},$e=le(29787),je=le(25399),Qe=le(60242),Ce=le(92310),he=le.n(Ce),Ne=le(31735),Ve=le(59243),we=le(11968),de=le(59301),xe=({className:wt,dataSource:Xe=[],col:Pe=4,right:ke,bottom:Ee=23,precision:qe=0,wrapWidth:lt=1200,trackEventItems:xt,loading:Ae,onRemove:me=()=>{},isCurrent:Re=!0,showProgress:We=!1,showAlias:Nt=!1})=>{const ye=Math.floor((lt-(Pe-1)*ke)/Pe),Le=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:"/images/tjzx.png",swimg:"/images/sw_tjzx.png"},{name:"101\u8BA1\u5212",ptimg:"/images/jh.png",swimg:"/images/sw_jh.png"},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:"/images/gjyl.png",swimg:"/images/sw_gjyl.png"},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:"/images/sjyl.png",swimg:"/images/sw_sjyl.png"},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:"/images/jpkc.png",swimg:"/images/sw_jpkc.png"},{name:"\u519B\u961F\u4E00\u6D41",ptimg:"/images/jdyl.png",swimg:"/images/sw_jdyl.png"},{name:"\u65B0\u578B\u6559\u6750",ptimg:"/images/xxjc.png",swimg:"/images/sw_xxjc.png"}];return de.createElement($e.Z,{spinning:Ae},de.createElement("div",{className:he()(re.list,wt)},!!(Xe!=null&&Xe.length)&&(Xe==null?void 0:Xe.map((Ie,Me)=>{var Je,_e,et,Kt,Et,Ct,ft,ve,ce,Ge,vt,dt,Te;const{name:ut,id:at,identifier:_t,featured:He,school_name:De,image_url:Se,excellent:ze,is_plan:st}=Ie;return de.createElement("div",{key:at,className:Re&&We?re.wrapisCurrent:re.wrap,style:{width:ye,marginRight:(1+Me)%Pe===0?0:ke+qe,marginBottom:Ee}},de.createElement("a",{className:re.li,onClick:Be=>{Be.preventDefault(),Be.stopPropagation(),xt&&(0,Ne.L9)([xt]),(0,Ne.xg)(`/paths/${_t}`)}},de.createElement("div",{className:re.img},de.createElement("img",{className:re.cover,src:`${Se}`}),Re&&(0,we.bg)()&&(Ie==null?void 0:Ie.studying)&&de.createElement("div",{className:`${re.movebq} user-path-items`,onClick:Be=>{Be.stopPropagation(),me(Ie)}},de.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),de.createElement("span",{className:"c-red"},"\u79FB\u9664")),(Je=Ie==null?void 0:Ie.subject_tags)==null?void 0:Je.map((Be,it)=>{var tt,Fe;if(it===0){const Ye=(tt=Le.find(ge=>ge.name==Be))==null?void 0:tt.swimg;return de.createElement("img",{className:re.sign,src:Ye,style:{left:"-4px"}})}const pt=(Fe=Le.find(Ye=>Ye.name==Be))==null?void 0:Fe.ptimg;return de.createElement("img",{className:re.sign,src:pt,style:{left:`${48+52*(it-1)+2*it}px`}})}),de.createElement("div",{className:re.tagsDom},de.createElement("div",{className:"flex flex-wrap gap-10px item-center"},(Ie==null?void 0:Ie.excellent)&&de.createElement("div",{className:re.bq},"\u5F00\u653E\u8BFE\u7A0B"),((_e=Ie==null?void 0:Ie.custom_tags)==null?void 0:_e.length)>0&&de.createElement(je.Z,{title:(Et=(Kt=Ie==null?void 0:Ie.custom_tags)==null?void 0:Kt[((et=Ie==null?void 0:Ie.custom_tags)==null?void 0:et.length)-1])==null?void 0:Et.tag_name},de.createElement("div",{className:"px-6px rounded-2px c-white h-16px flex item-center",style:{maxWidth:"62px",background:"#3061D0",border:"0.5px solid #8FAFF8"}},de.createElement("span",{className:"multi-llipsis1e text-10px"},(ve=(ft=Ie==null?void 0:Ie.custom_tags)==null?void 0:ft[((Ct=Ie==null?void 0:Ie.custom_tags)==null?void 0:Ct.length)-1])==null?void 0:ve.tag_name)))))),de.createElement("div",{className:re.name},de.createElement(je.Z,{title:Nt&&(Ie!=null&&Ie.excellent_alias_name)?de.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${ut}`,de.createElement("br",null),de.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${Ie==null?void 0:Ie.excellent_alias_name}`)):ut},de.createElement("span",{className:re.e},Nt&&(Ie==null?void 0:Ie.excellent_alias_name)||ut))),Re&&We&&((ce=Ie==null?void 0:Ie.progress)==null?void 0:ce.all_score)!=0&&de.createElement("div",{style:{padding:"0px 10px",color:"#333",marginTop:10}},de.createElement(Qe.Z,{strokeColor:"#44d7b6",gap:"small",percent:(((Ge=Ie==null?void 0:Ie.progress)==null?void 0:Ge.my_score)/((vt=Ie==null?void 0:Ie.progress)==null?void 0:vt.all_score)*100).toFixed(),showInfo:!1}),"\u5DF2\u5B8C\u6210 ",(dt=Ie==null?void 0:Ie.progress)==null?void 0:dt.my_score,"/",(Te=Ie==null?void 0:Ie.progress)==null?void 0:Te.all_score),(!Re||!We)&&de.createElement(je.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${De}`},de.createElement("div",{className:re.unit},de.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),De)),(!Re||!We)&&de.createElement("div",{className:re.tags},de.createElement("div",null,de.createElement(je.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},de.createElement("span",null,de.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),de.createElement("span",null,Ie.stages_count))),de.createElement(je.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},de.createElement("span",null,de.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),de.createElement("span",null,Ie.members_count)))))))})),!Xe.length&&de.createElement(Ve.Z,null)))}},18606:function(rn,$t,le){"use strict";le.d($t,{jL:function(){return Ce},w9:function(){return Ge},QD:function(){return kt},cQ:function(){return Et.Z},op:function(){return z},O5:function(){return Cn},_b:function(){return un},t7:function(){return qe},Gi:function(){return _t},YG:function(){return ut},qp:function(){return Oe},vr:function(){return Vt},qE:function(){return ne},Je:function(){return Ae},wb:function(){return Kt},cq:function(){return Be},tp:function(){return Xe}});var re=le(59301),$e={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"},je="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE4AAAA0CAYAAAAkEw66AAAAAXNSR0IArs4c6QAAGNVJREFUeF7VmwmwHVWdxr9zuvvu9+3ZXsxCiNkIQZOwEzMgyADjggsWgzPqOAJaMiCjYiGKqDBQAo4iWGAxA+ooMm7gBhSyhBBRIIBSAQlrHuTt7913t97PmfpOd4cXlLAFGO6rW9237719+/z6+6/nPIHX+XHttddaex38nlW2lLO1svq1wJ4aeFMM9CqFnNKoaYVapDAOicfjGEMKqKk2nrx59Lbt5xx6aPR6DEG8Hj/K3xwY0YtjSx2vYnlspLEsX0BRKUBrINtyX+PZp0r3fR+IIgzFSo9EsahFUfSHWIj7Pa919zvf2vl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5SBmEFw1uTNcezFcB56YQPv329qHfPXo8n2vF4BX8rsXbdS/WD0L72ZThfA4NrqiLIdlMGSfjtBYn1Nx9HH1wDQ7Nj9v6/zGB3S5HWCvUlFfvWiGWMYFQpQzzXSoAfxlWD1w0X1y33tPEkyy33CPk6/TBx8yF7f05pDjuIrOzuaaVUoExxKT43a5akFCtVys3+Wcwweu1dbHV+LxN3VhPsEx8jANGfOAh4eiL5x0iHPeG47YtAv+9I3xp9f0yIvLDAw6ySIY/ExSnpkqVcels/x/syLgtXHpx9bhlF2CO/tanVuzHHfPqmJVOf0nNdr5SFP7D02Eb/3iEfkdtdsbFeCXbtYfXlDGueU85iKZsjXZklnpyZdpGmgWFcS4pGsQnzvuOBG/4CzXFX/Qp+zZi28pPzkZHeNIS337X2+Qp+IckWajb1RsyXWffqOeN8tRH+rKyWOhsSBnYyYziiCAa0k8EQKb2kF01acPc3akXS8IbsW1Onf6AnVib16ewqWz21vq9qu2yNPeqL7thW7xZ65391jcV1jE/1qKFcaeCfDwOYeK9D83nv32/wHzrWgvjJ8Q7AAAAABJRU5ErkJggg==",Ce=({dataSource:tn=[],img:fn,imgWidth:Tt=346,title:Jt,sunTitle:wn,bannerExtraContent:En})=>re.createElement("div",{className:$e.banner},re.createElement("div",{className:$e.content},re.createElement("aside",null,re.createElement("p",null,re.createElement("b",null,Jt),re.createElement("span",null,wn)),tn.length>0&&re.createElement("div",{className:$e.btns},tn.map((Pn,jn)=>re.createElement("div",{key:jn,onClick:Pn.click},Pn.name,Pn.sign?re.createElement("img",{src:je,width:39}):null))),En),fn&&re.createElement("img",{style:{marginTop:33,marginRight:38},src:fn,width:Tt}))),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"},Ne=le(92310),Ve=le.n(Ne),we=le(89392),Oe=({dataSource:tn=[],value:fn,onChange:Tt,onTitleChange:Jt,className:wn,title:En,titleWidth:Pn=41,style:jn={},fontColor:ur="#6A7283",showCount:rr})=>{const[zn,Gn]=(0,re.useState)(1),[ln,Mt]=(0,re.useState)(!1),gn=(0,re.useRef)(null),In=(0,re.useRef)(null);return(0,re.useEffect)(()=>{var ir;tn.length!==0&&(((ir=gn==null?void 0:gn.current)==null?void 0:ir.clientHeight)>97?Gn(1):Gn(0)),tn.length===0&&Gn(0),Mt(!1)},[tn]),re.createElement("div",{className:Ve()(he.row,wn,"fadeIn","animated"),style:jn},re.createElement("div",{onClick:(0,we.throttle)(()=>Jt==null?void 0:Jt(),2e3),style:{width:Pn,marginTop:ln?12:4},className:`${he.title} ${Jt?"current":""}`},En),re.createElement("div",{className:ln?`${he.tagsWrap} ${he.tagsBorderWrap}`:he.tagsWrap},re.createElement("div",{className:he.bar,ref:In,style:zn>0?{height:zn===1?97:"auto",overflow:zn===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},re.createElement("div",{className:he.tag,ref:gn},tn==null?void 0:tn.map(ir=>re.createElement("span",{onClick:()=>Tt(ir.id),key:ir.id,style:{color:ur},className:fn===ir.id?he.active:""},re.createElement("span",{title:ir.name,className:he.name},ir.name),!!rr&&re.createElement("span",{className:he.num},ir.count))))),!!zn&&re.createElement(re.Fragment,null,zn===1?re.createElement("div",{onClick:()=>{var ir;Gn(2),((ir=gn==null?void 0:gn.current)==null?void 0:ir.clientHeight)>245?Mt(!0):Mt(!1)},className:he.action},"\u5C55\u5F00",re.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):re.createElement("div",{onClick:()=>{In.current.scrollTop=0,Gn(1),Mt(!1)},className:he.action},"\u6536\u8D77",re.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"},Xe=({dataSource:tn=[],value:fn,onChange:Tt,className:Jt,style:wn={}})=>re.createElement("div",{style:wn,className:Ve()(xe.tabs,Jt)},tn.map(En=>re.createElement("span",{onClick:()=>Tt(En.id),className:fn===En.id?xe.active:"",key:En.id},En.name))),Pe={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"},ke=le(37568),qe=({dataSource:tn=[],value:fn="",onChange:Tt,onInputChange:Jt=()=>{},className:wn,style:En={},placeholder:Pn,allowClear:jn=!1})=>{var ur;const[rr,zn]=(0,re.useState)(""),[Gn,ln]=(0,re.useState)("");(0,re.useEffect)(()=>{var In;let ir=fn;(In=JSON.stringify(fn))!=null&&In.includes("{")&&(zn(fn.id),ir=fn.value||"");try{ln(decodeURIComponent(ir||""))}catch(nt){ln(decodeURIComponent(ir||""))}},[fn]);const Mt=()=>{Tt(encodeURIComponent(Gn),rr||null)},gn=In=>{In!==rr&&(zn(In),Tt(encodeURIComponent(Gn),In))};return re.createElement("div",{className:Ve()(Pe.input,wn),style:En},!!tn.length&&re.createElement("div",{className:Pe.dropdown},re.createElement("div",{className:Pe.text},(ur=tn.find(In=>In.id===rr))==null?void 0:ur.name,re.createElement("i",{className:"iconfont icon-zhankai4"}),re.createElement("b",{className:Pe.b1}),re.createElement("b",{className:Pe.b2})),re.createElement("div",{className:Pe.menu},tn.map((In,ir)=>re.createElement("div",{key:ir,onClick:()=>gn(In.id)},In.name)))),re.createElement(ke.default,{onPressEnter:Mt,value:Gn,onChange:In=>{ln(In.target.value),Jt(encodeURIComponent(In.target.value),rr||null)},placeholder:Pn,variant:"borderless",allowClear:jn,onClear:()=>Tt("",rr||null)}),re.createElement("i",{onClick:Mt,className:"iconfont icon-sousuo9 font14 current"}))},lt={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"},Ae=({value:tn,onChange:fn,className:Tt,total:Jt,pageSize:wn,style:En={}})=>{const Pn=tn<2,jn=tn>=Math.ceil(Jt/wn);return Jt<=wn?re.createElement(re.Fragment,null):re.createElement("div",{className:Ve()(lt.quickPager,Tt),style:En},re.createElement("div",{onClick:()=>{Pn||fn(tn-1,"prev")},className:Pn?lt.disabled:""},"\u4E0A\u4E00\u9875"),re.createElement("div",{onClick:()=>{jn||fn(tn+1,"next")},className:jn?lt.disabled:""},"\u4E0B\u4E00\u9875"))},me={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"},Re=le(29787),We=le(25399),Nt=le(58018),ye=le(26869),Le=le(31735),Ie=le(96908),Me=le(57177),Je=le(81378),_e=le(59243),Kt=({className:tn,dataSource:fn=[],col:Tt=4,right:Jt,bottom:wn=23,precision:En=0,wrapWidth:Pn=1200,trackEventItems:jn,loading:ur})=>{const rr=Math.floor((Pn-(Tt-1)*Jt)/Tt);return re.createElement(Re.Z,{spinning:ur},re.createElement("div",{className:Ve()(me.list,tn)},!!fn.length&&fn.map((zn,Gn)=>{const{name:ln,id:Mt,identifier:gn,power:In,cover_image_id:ir,pic:nt}=zn;return re.createElement("div",{className:me.wrap,key:Mt,style:{width:rr,marginRight:(1+Gn)%Tt===0?0:Jt+En,marginBottom:wn}},re.createElement("a",{target:"_blank",href:`/shixuns/${gn}/challenges`,className:me.li,onClick:ot=>{ot.preventDefault(),jn&&(0,Le.L9)([jn]),In&&(0,Le.xg)(`/shixuns/${gn}/challenges`)}},re.createElement("div",{className:me.img},re.createElement("img",{className:me.cover,src:`${nt}`}),zn.is_jupyter&&re.createElement("img",{className:me.sign,src:Ie}),zn.is_jupyter_lab&&re.createElement("img",{className:me.sign,src:Me}),zn.is_unity_3d&&re.createElement("img",{className:me.sign,src:Je})),re.createElement("div",{className:me.name},re.createElement(We.Z,{title:ln||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},re.createElement("span",{className:me.e},ln||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),re.createElement("div",{className:me.tags},re.createElement(We.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},re.createElement("span",null,re.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),re.createElement("span",null,zn.challenges_count))),!!zn.myshixuns_count&&re.createElement(We.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},re.createElement("span",null,re.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),re.createElement("span",null,zn.myshixuns_count))),re.createElement(We.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},re.createElement("span",null,re.createElement("span",null,zn.level))),re.createElement("div",{className:me.rate},re.createElement(Nt.Z,{allowHalf:!0,disabled:!0,defaultValue:zn.score_info}),re.createElement("span",null,"\xA0",zn.score_info?`${zn.score_info}\u5206`:"5\u5206")))),!In&&re.createElement("div",{className:me.lockWrap},re.createElement("img",{src:`${ye.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),re.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!fn.length&&re.createElement(_e.Z,null)))},Et=le(87303),Ct={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",wrap:"wrap___pKgcW",lockWrap:"lockWrap___SMhkK",top:"top___udHSB",sign:"sign___uwRpq",name:"name___Fpf90",img:"img___AMLhL",text:"text___KiTb7",btns:"btns___i6IuZ",bottom:"bottom____k2sh"},ft="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAkIB0OMISFsFQqSAhOohFR+JKmEQPILClJZfpEfIUAChFQSHIJxnGDiDYwsb8KRLUuWZcmSxqN9pJF6nV7eSZ373u1509Mzvd2eGVt6VV2z9Ht3+9459+yX8Bq4mDmWK2GLqla3MvFWZt4KpjVMSBNzGoQ0M6WJkJbpMiNDxBkwMkyUIUYGxCeJaB8x7fMcZ18yiv1EVHy1Lw+9GicwO8tXlSrlbSB6O4HfANAmZlY250JEHsBHGLQTzA9H3chDfX2012Yfy9HWqwJgZh7NF6vvY/a2gWkbgyeWY3Hq+yDQcRA/RKQeSsSce4jo9EqMo50+Vy3AzNxXKFTv9MAfB/AuZo60M7Fe30tEZQA/UqBvx+POvUQ02+s+O2l/1QGcy5Xe6Cn1SXj8YYAHO5nU8j9DM1D0b8rzvpFMRp9a/v4X73HVAJwplN9GHj7P4NtW0wK1O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PZFGFIk7k9k6l5cV6sw6w0ZOrqHzvojGkRZCJdjhwP9iJntush54ALJ2KwJUrVL4M4A9frbbrZovX7fdiWwbwN8m4+7l2LVSt9t0zgM0AxEHhVflbF/flBbvjtHLot9pxHLQK6jxdupOH2n1GuxpR+S6Yb2332dfk/USPOnA/2qrLr5s16DkFm8EJm84Xq5/wPP7LC5eaaVop+pNEzPlmwJ67wa6lZ5cN4BDQw9l8+StEdNeFsjcLmMz89VQi8qdEdKYlZCzdtOwAm3EHIblfZeabLc1lVTYjccsK/NlEIvrESgxwxQAOCWHv9jz+Aph/cSUWoGd9Ej2mFH3RlkWq03GuOMBm4JLwRh4+z+DbOp3ManhOsvxY4UvpeOSR1TGe1TCK0BiC/OS7APoQwKHqHKtsoPOGQzMA/7sCvp5MRp9aTSNdNRRcvyhSTqJQqN7pgT8O4F3MvArC3uZGKdVsAPxIgb4djzv3EtHsagLWjGXVAhxeLCnxlC9W38fsbQPTNgZPrMRiSgU5ED9EpB5KxJx7iKjFkxlXYrR+n68KgOuXJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",ve=le(59301),Ge=({className:tn,dataSource:fn=[],col:Tt=4,right:Jt,bottom:wn=23,precision:En=0,wrapWidth:Pn=1200,trackEventItems:jn,loading:ur,handleVery:rr=()=>!0})=>{const zn=Math.floor((Pn-(Tt-1)*Jt)/Tt);return ve.createElement(Re.Z,{spinning:ur},ve.createElement("div",{className:Ve()(Ct.list,tn)},!!fn.length&&fn.map((Gn,ln)=>{const{subject_identifier:Mt,id:gn,identifier:In,power:ir}=Gn,nt=Gn.is_public!=0&&Gn.is_public;return ve.createElement("div",{className:Ct.wrap,key:gn,style:{width:zn,marginRight:(1+ln)%Tt===0?0:Jt+En,marginBottom:wn}},ve.createElement("a",{className:Ct.li,onClick:ot=>{ot.preventDefault(),rr(Gn==null?void 0:Gn.first_category_url)&&(jn&&(0,Le.L9)([jn]),(0,Le.xg)(Gn.first_category_url))}},ve.createElement("div",{className:Ct.top},ve.createElement(We.Z,{title:Gn.name},ve.createElement("div",{className:Ct.name},Gn.name)),ve.createElement("img",{className:Ct.img,src:ye.Z.IMG_SERVER+"/images/"+Gn.avatar_url}),ve.createElement("div",{className:Ct.text,title:Gn.creator},Gn.creator),Mt&&ve.createElement("div",{className:Ct.btns},ve.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),ve.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),nt&&ve.createElement("div",{className:Ct.sign},"\u516C\u5F00")),ve.createElement("div",{className:Ct.bottom},Gn.visits>0&&ve.createElement(We.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},ve.createElement("span",null,ve.createElement("i",{className:"iconfont icon-liulanyan"}),ve.createElement("span",null,Gn.visits))),Gn.course_members_count>0&&ve.createElement(We.Z,{title:"\u6210\u5458",placement:"bottom"},ve.createElement("span",null,ve.createElement("i",{className:"iconfont icon-chengyuan"}),Gn.course_members_count)),Gn.tasks_count>0&&ve.createElement(We.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},ve.createElement("span",null,ve.createElement("i",{className:"iconfont icon-zuoye"}),Gn.tasks_count)),Gn.is_end?ve.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):ve.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!Gn.is_accessible&&ve.createElement("div",{className:Ct.lockWrap},ve.createElement("img",{src:`${ye.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),ve.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!fn.length&&ve.createElement(_e.Z,null)))},vt={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"},dt=le(58106),ut=({dataSource:tn=[],value:fn,onChange:Tt,className:Jt,style:wn={},tabBarExtraContent:En})=>re.createElement("div",{className:Ve()(vt.tabs,Jt),style:wn},re.createElement("div",{className:vt.tabsWrap},tn.map((Pn,jn)=>!(Pn!=null&&Pn.hide)&&re.createElement("aside",{className:vt.tab,onClick:()=>{Tt(Pn.id),Pn.link&&dt.history.push(Pn.link)},key:jn},re.createElement("div",{className:fn===Pn.id?vt.active:""},Pn.name),(Pn==null?void 0:Pn.resetCount)==null&&(Pn==null?void 0:Pn.total)!==void 0&&re.createElement("span",null,"\uFF08",Pn==null?void 0:Pn.total,"\uFF09"),(Pn==null?void 0:Pn.resetCount)!==void 0&&(Pn==null?void 0:Pn.total)!==void 0&&re.createElement(We.Z,{title:(Pn==null?void 0:Pn.tip)!=null?Pn==null?void 0:Pn.tip:""},re.createElement("span",{style:{color:"#9096A3"}},"\uFF08",re.createElement("span",{style:{color:"#000"}},Pn==null?void 0:Pn.resetCount),"/",re.createElement("span",null,Pn==null?void 0:Pn.total),"\uFF09"))))),re.createElement("div",{className:vt.tabBar},En)),_t=({className:tn,style:fn={},children:Tt})=>re.createElement("div",{className:Ve()(tn),style:fn},Tt),He={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"},De=le(75727),Se=le(93041);const ze=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var Be=({sortValue:tn,dropValue:fn,className:Tt,onSort:Jt,onDrop:wn,dataSource:En=ze})=>{var Pn;return re.createElement("div",{className:Ve()(He.orderWrap,Tt)},re.createElement(De.Z,{dropdownRender:()=>re.createElement(Se.default,null,En.map((jn,ur)=>re.createElement(Se.default.Item,{key:ur,onClick:()=>wn(jn.id)},jn.name)))},re.createElement("span",{className:He.orderTextWrap},(Pn=En.find(jn=>fn===jn.id))==null?void 0:Pn.name)),re.createElement("span",{className:He.orderIconWrap},re.createElement("span",{className:He.orderAsc},re.createElement("i",{className:tn==="asc"?`iconfont icon-sanjiaoxing-up font12 ${He.cursorPointer} ${He.active}`:`iconfont icon-sanjiaoxing-up font12 ${He.cursorPointer}`,onClick:()=>Jt(tn==="asc"?"desc":"asc")})),re.createElement("span",{className:He.orderDesc},re.createElement("i",{className:tn==="desc"?`iconfont icon-sanjiaoxing-down font12 ${He.cursorPointer} ${He.active}`:`iconfont icon-sanjiaoxing-down font12 ${He.cursorPointer}`,onClick:()=>Jt(tn==="asc"?"desc":"asc")}))))},it={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"},tt=le(7939),Fe=Object.defineProperty,pt=Object.getOwnPropertySymbols,Ye=Object.prototype.hasOwnProperty,ge=Object.prototype.propertyIsEnumerable,ct=(tn,fn,Tt)=>fn in tn?Fe(tn,fn,{enumerable:!0,configurable:!0,writable:!0,value:Tt}):tn[fn]=Tt,jt=(tn,fn)=>{for(var Tt in fn||(fn={}))Ye.call(fn,Tt)&&ct(tn,Tt,fn[Tt]);if(pt)for(var Tt of pt(fn))ge.call(fn,Tt)&&ct(tn,Tt,fn[Tt]);return tn},Wt=(tn,fn)=>{var Tt={};for(var Jt in tn)Ye.call(tn,Jt)&&fn.indexOf(Jt)<0&&(Tt[Jt]=tn[Jt]);if(tn!=null&&pt)for(var Jt of pt(tn))fn.indexOf(Jt)<0&&ge.call(tn,Jt)&&(Tt[Jt]=tn[Jt]);return Tt},ae=(tn,fn,Tt)=>new Promise((Jt,wn)=>{var En=ur=>{try{jn(Tt.next(ur))}catch(rr){wn(rr)}},Pn=ur=>{try{jn(Tt.throw(ur))}catch(rr){wn(rr)}},jn=ur=>ur.done?Jt(ur.value):Promise.resolve(ur.value).then(En,Pn);jn((Tt=Tt.apply(tn,fn)).next())}),z=tn=>{var fn=tn,{className:Tt,style:Jt,children:wn,loading:En=!1,openLoading:Pn,onClick:jn=()=>{},size:ur="middle",shape:rr="round"}=fn,zn=Wt(fn,["className","style","children","loading","openLoading","onClick","size","shape"]);const[Gn,ln]=(0,re.useState)(!1);return re.createElement(tt.ZP,jt({onClick:(0,we.throttle)(Mt=>ae(void 0,null,function*(){Pn&&ln(!0);try{yield jn(Mt)}catch(gn){console.log("error",gn)}Pn&&ln(!1)}),2e3,{leading:!0,trailing:!1}),className:Ve()(it.btn,it[`${ur}-${rr}`],Tt),style:Jt,size:ur,shape:rr,loading:Gn||En},zn),wn)},ie={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"},ne=({className:tn,style:fn,children:Tt=null,onClick:Jt,title:wn})=>re.createElement("div",{className:Ve()(ie.head,tn),style:fn},re.createElement("span",{className:"primary-hover",onClick:Jt},re.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),re.createElement("b",{title:wn},wn),re.createElement("div",{className:ie.node},Tt)),be={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"},kt=({confirmShow:tn=!0,confirmTitle:fn,confirmClick:Tt,cancelShow:Jt=!0,cancelTitle:wn,cancelClick:En,className:Pn,style:jn,confirmLoading:ur=!1})=>re.createElement("div",{className:Ve()(be.btns,Pn),style:jn},tn&&re.createElement(tt.ZP,{loading:ur,onClick:Tt,type:"primary",className:be.confirm},fn),Jt&&re.createElement(tt.ZP,{onClick:En,className:be.cancel},wn)),ht={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"},Vt=({className:tn,style:fn={},LeftContent:Tt,children:Jt,RightContent:wn})=>re.createElement("div",{className:Ve()(ht.fixedBottom,tn),style:fn},re.createElement("div",{className:ht.wrap},re.createElement("div",{className:ht.left},Tt),re.createElement("div",{className:ht.center},Jt),re.createElement("div",{className:ht.right},wn))),Bt={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"},un=({className:tn,style:fn={},dataSource:Tt=[]})=>re.createElement("div",{className:Ve()(Bt.crumbs,tn),style:fn},Tt.map((Jt,wn)=>wn<Tt.length-1?re.createElement(re.Fragment,{key:wn},Jt.path||Jt.onClick?re.createElement("span",{className:Bt.hover,onClick:Jt!=null&&Jt.onClick?Jt.onClick:()=>dt.history.push(Jt.path)},Jt.name):re.createElement("span",null,Jt.name),re.createElement("span",null,"\xA0",">","\xA0")):re.createElement("span",{key:wn,style:{color:"#5F6368"}},Jt.name))),Lt=le(11938),St=Object.defineProperty,vn=Object.defineProperties,Fn=Object.getOwnPropertyDescriptors,Tn=Object.getOwnPropertySymbols,Un=Object.prototype.hasOwnProperty,tr=Object.prototype.propertyIsEnumerable,gr=(tn,fn,Tt)=>fn in tn?St(tn,fn,{enumerable:!0,configurable:!0,writable:!0,value:Tt}):tn[fn]=Tt,$n=(tn,fn)=>{for(var Tt in fn||(fn={}))Un.call(fn,Tt)&&gr(tn,Tt,fn[Tt]);if(Tn)for(var Tt of Tn(fn))tr.call(fn,Tt)&&gr(tn,Tt,fn[Tt]);return tn},kn=(tn,fn)=>vn(tn,Fn(fn)),pr=(tn,fn)=>{var Tt={};for(var Jt in tn)Un.call(tn,Jt)&&fn.indexOf(Jt)<0&&(Tt[Jt]=tn[Jt]);if(tn!=null&&Tn)for(var Jt of Tn(tn))fn.indexOf(Jt)<0&&tr.call(tn,Jt)&&(Tt[Jt]=tn[Jt]);return Tt};const{Countdown:sr}=Lt.default;var Cn=tn=>{var fn=tn,{onChange:Tt}=fn,Jt=pr(fn,["onChange"]);const[wn,En]=(0,re.useState)(null);(0,re.useEffect)(()=>{typeof wn=="number"&&wn>=0&&Tt(wn)},[wn]);const Pn=jn=>{const ur=Math.floor(jn/1e3);En(ur)};return re.createElement(sr,kn($n({},Jt),{onChange:Pn}))}},61904:function(rn,$t,le){"use strict";le.d($t,{Z:function(){return $e}});var re=le(59301);function $e(je,Qe){const Ce=(0,re.useRef)();(0,re.useEffect)(()=>{Ce.current=je}),(0,re.useEffect)(()=>{function he(){Ce.current()}if(Qe!==null){let Ne=setInterval(he,Qe);return()=>clearInterval(Ne)}},[Qe])}},75083:function(rn,$t,le){"use strict";le.r($t),le.d($t,{default:function(){return ce}});var re=le(59301),$e={flex_box_center:"flex_box_center___fl5m6",flex_space_between:"flex_space_between___bly3M",flex_box_vertical_center:"flex_box_vertical_center___xKfVY",flex_box_center_end:"flex_box_center_end___uQRsy",flex_box_column:"flex_box_column___V96Tv",ActvieE3:"ActvieE3___B5egy",Onerow:"Onerow___t6jyJ",body:"body___RTqwS",AddBut:"AddBut___iKjQP",FormDiv:"FormDiv___I9YYs"},je=le(58106),Qe=le(28284),Ce=le(25399),he=le(6767),Ne=le(62957),Ve=le(77019),we=le(5269),de=le(54172),Oe=le(13747),xe=le(7939),wt=le(62673),Xe=le(37568),Pe=le(82326),ke=le(14566),Ee=le(71411),qe=le(18606),lt=le(56102),xt=le(59243),Ae=le(26869),me=le(31735),Re=le(32062),We=le(94593),Nt=le(46081),ye=le(50388),Le=Object.defineProperty,Ie=Object.defineProperties,Me=Object.getOwnPropertyDescriptors,Je=Object.getOwnPropertySymbols,_e=Object.prototype.hasOwnProperty,et=Object.prototype.propertyIsEnumerable,Kt=(Ge,vt,dt)=>vt in Ge?Le(Ge,vt,{enumerable:!0,configurable:!0,writable:!0,value:dt}):Ge[vt]=dt,Et=(Ge,vt)=>{for(var dt in vt||(vt={}))_e.call(vt,dt)&&Kt(Ge,dt,vt[dt]);if(Je)for(var dt of Je(vt))et.call(vt,dt)&&Kt(Ge,dt,vt[dt]);return Ge},Ct=(Ge,vt)=>Ie(Ge,Me(vt)),ft=(Ge,vt,dt)=>new Promise((Te,ut)=>{var at=De=>{try{He(dt.next(De))}catch(Se){ut(Se)}},_t=De=>{try{He(dt.throw(De))}catch(Se){ut(Se)}},He=De=>De.done?Te(De.value):Promise.resolve(De.value).then(at,_t);He((dt=dt.apply(Ge,vt)).next())});const ve=({graduations:{Tasks:Ge,teachers:vt,students:dt,forTask:Te},loading:ut,dispatch:at})=>{var _t,He;const De=(0,je.useParams)(),[Se,ze]=(0,re.useState)([]),[st,Be]=(0,re.useState)([]),[it,tt]=(0,re.useState)(!1),[Fe,pt]=(0,re.useState)(!1),[Ye]=Qe.default.useForm(),[ge,ct]=(0,re.useState)({}),[jt,Wt]=(0,re.useState)({}),[ae,ee]=(0,re.useState)([]),[z,ie]=(0,re.useState)(!1),se=(0,re.useRef)(null),[ne,be]=(0,re.useState)({keyword:"",page:1,per_page:20,status:null,is_teacher:!0}),gt=[{id:null,name:"\u5168\u90E8"},{id:1,name:"\u8FBE\u6210\u53CC\u9009"},{id:0,name:"\u672A\u8FBE\u6210\u53CC\u9009"}],kt=[{title:"\u8BFE\u9898\u540D\u79F0",dataIndex:"name",ellipsis:!0,render:Lt=>re.createElement(Ce.Z,{placement:"topLeft",title:Lt},re.createElement("span",{className:"c-grey-333"},Lt))},{title:"\u6307\u5BFC\u8001\u5E08",width:120,ellipsis:!0,dataIndex:"teacher_names",render:Lt=>re.createElement(Ce.Z,{placement:"topLeft",title:Lt},re.createElement("span",{className:"c-grey-333"},Lt))},{title:"\u9009\u9898\u72B6\u6001",width:120,dataIndex:"status",render:Lt=>re.createElement(re.Fragment,null,Lt==0&&re.createElement("span",{style:{color:"#E30000"}},"\u672A\u8FBE\u6210\u53CC\u9009"),Lt==1&&re.createElement("span",null,"\u8FBE\u6210\u53CC\u9009"))},{title:"\u9080\u8BF7\u7801",width:132,dataIndex:"invite_code",render:Lt=>re.createElement("span",{className:"c-grey-333"},Lt,re.createElement(lt.CopyToClipboard,{text:Lt,onCopy:()=>he.ZP.success("\u590D\u5236\u6210\u529F")},re.createElement("i",{className:"iconfont icon-fuzhi8 font14",style:{color:"#165DFF",marginLeft:"8px",cursor:"pointer"}})))},{title:re.createElement("span",null,"\u64CD\u4F5C"),align:"right",width:120,render:(Lt,St)=>re.createElement(re.Fragment,null,re.createElement(ye.Z,{type:"link",style:{whiteSpace:"nowrap",padding:0},onClick:()=>ft(void 0,null,function*(){var vn,Fn;ie(!1),yield Vt(),St.teacher_ids=(vn=St.teacher)==null?void 0:vn.map(Tn=>Tn.id),St.student_id=St.student_id?Number(St.student_id):"",ee((Fn=St==null?void 0:St.attachments)==null?void 0:Fn.map(Tn=>({uid:Tn==null?void 0:Tn.id,name:(Tn==null?void 0:Tn.title)+" "+(Tn==null?void 0:Tn.filesize),status:"done",url:(Tn==null?void 0:Tn.url)||""}))),ct(St),Wt(St),Ye.setFieldsValue(St)})},"\u7F16\u8F91"),re.createElement("a",{className:$e.ActvieE3,type:"link",style:{padding:"0 0 0 10px",whiteSpace:"nowrap"},onClick:()=>{if(St.status==1)he.ZP.warning("\u8BE5\u8BFE\u9898\u5DF2\u88AB\u5B66\u751F\u9009\u9898\u4E0D\u80FD\u5220\u9664");else{const vn=Ne.default.confirm({title:"\u5220\u9664\u63D0\u793A",icon:null,maskClosable:!0,content:re.createElement("span",null,"\u786E\u5B9A\u8981\u5220\u9664\u8BFE\u9898\uFF1F\u5220\u9664\u540E\u65E0\u6CD5\u6062\u590D"),okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:()=>ft(void 0,null,function*(){(yield at({type:"graduations/getDelGraduationsTasks",payload:{id:De.id,ids:[St.id]}})).status==0&&(he.ZP.success("\u5220\u9664\u6210\u529F"),ne.page=1,be(Et({},ne))),vn.destroy()}),onCancel:()=>{vn.destroy()}})}}},"\u5220\u9664"))}],ht={multiple:!0,withCredentials:!0,defaultFileList:ae,onRemove:Lt=>{ee(ae.filter(St=>(Lt.uid||Lt.response.id)!=St.uid))},beforeUpload:Lt=>{const St=Lt.size/1024/1024;return St>150||St==0?(he.ZP.error(`${Lt.name} \u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002${St==0?"\u6587\u4EF6\u5185\u5BB9\u4E0D\u80FD\u4E3A\u7A7A":"\u8D85\u8FC7\u6587\u4EF6\u5927\u5C0F\u9650\u5236(150MB)"}`),Promise.reject()):!0},action:`${Ae.Z.API_SERVER}/api/attachments.json`,onChange:Lt=>{var St,vn,Fn,Tn,Un,tr,gr,$n;Lt.file.status==="done"&&ee([...ae,{uid:(vn=(St=Lt==null?void 0:Lt.file)==null?void 0:St.response)==null?void 0:vn.id,name:((Tn=(Fn=Lt==null?void 0:Lt.file)==null?void 0:Fn.response)==null?void 0:Tn.filename)+" "+(0,me.RD)((tr=(Un=Lt==null?void 0:Lt.file)==null?void 0:Un.response)==null?void 0:tr.filesize),status:"done",url:(($n=(gr=Lt==null?void 0:Lt.file)==null?void 0:gr.response)==null?void 0:$n.url)||""}])}},Ze={selectedRowKeys:[...Se.map(Lt=>Lt.id),...st.map(Lt=>Lt.id)],onChange:(Lt,St)=>{const vn=[],Fn=[];St.map(Tn=>{Tn.status==0?Fn.push(Tn):vn.push(Tn)}),Be(vn),ze(Fn)}},Vt=(Lt=!1)=>ft(void 0,null,function*(){var St,vn;const Fn=yield at({type:"graduations/getGraduationsTeachers",payload:{id:De.id,page:1,per_page:2e3}});if(at({type:"graduations/getGraduationsStudents",payload:{id:De.id,page:1,per_page:2e3}}),at({type:"graduations/getGraduationsDetails",payload:{id:De.id}}),Lt){const Tn=(vn=(St=Fn==null?void 0:Fn.data)==null?void 0:St.filter(Un=>Un==null?void 0:Un.is_creator))==null?void 0:vn.map(Un=>Un.id);Ye.setFieldsValue({teacher_ids:Tn}),ct(Ct(Et({},ge),{teacher_ids:Tn}))}tt(!0)}),Bt=()=>ft(void 0,null,function*(){yield at({type:"graduations/getGraduationsTasks",payload:Et({id:De.id},ne)})}),Ht=Lt=>ft(void 0,null,function*(){Lt.attachment_ids=ae.map(vn=>vn.uid);let St;z?St=yield(0,Nt.jW)(Et({graduation_id:De.id},Lt)):St=yield(0,Nt.YS)(Et({graduation_id:De.id,id:ge.id},Lt)),St.status==0&&(he.ZP.success(z?"\u521B\u5EFA\u6210\u529F":"\u66F4\u65B0\u6210\u529F"),ct({}),ee([]),tt(!1),Ye.resetFields(),yield Bt())});(0,re.useEffect)(()=>{ze([]),Be([]),Bt()},[ne]),(0,re.useEffect)(()=>{ge.base_project&&un()},[ge==null?void 0:ge.base_project]);const un=(Lt=1e5)=>{const St=document.querySelector(".ant-form-modal-body").querySelector(".ant-modal-body");St.scrollTop=Lt};return re.createElement("section",{className:$e.body},re.createElement(qe.YG,{value:"manage",tabBarExtraContent:re.createElement(qe.op,{openLoading:!0,onClick:()=>ft(void 0,null,function*(){ie(!0),yield Vt(!0)})},"\u5F55\u5165\u8BFE\u9898"),dataSource:[{id:"manage",name:"\u8BFE\u9898\u7BA1\u7406"}],onChange:Lt=>{console.log(Lt)}}),re.createElement(Ve.Z,{wrap:!1,align:"middle",justify:"space-between"},re.createElement(we.Z,null,re.createElement(qe.qp,{title:"\u72B6\u6001",className:"mt20",dataSource:gt,titleWidth:28,value:ne.status,onChange:Lt=>{ne.status=Lt,ne.page=1,be(Et({},ne))}})),re.createElement(we.Z,null,re.createElement(qe.t7,{style:{width:329,height:"38px"},placeholder:"\u8BF7\u8F93\u5165\u8BFE\u9898\u540D\u79F0/\u6307\u5BFC\u8001\u5E08\u8FDB\u884C\u641C\u7D22",value:ne.keyword,onChange:Lt=>{ne.keyword=Lt,ne.page=1,be(Et({},ne))}}))),Se.length+st.length>0&&re.createElement(Ve.Z,{wrap:!1,align:"middle",justify:"space-between",style:{padding:"11px 12px",background:"#F4F7FC",marginBottom:"1px"}},re.createElement(we.Z,null,"\u5DF2\u9009\u62E9\xA0",re.createElement("span",{style:{color:"#165DFF"}},Se.length+st.length||0),"\xA0\u9879"),re.createElement(we.Z,{style:{color:"#E30000",cursor:"pointer"},onClick:()=>{const Lt=Ne.default.confirm({title:"\u5220\u9664\u63D0\u793A",icon:null,maskClosable:!0,content:re.createElement("span",null,"\u786E\u5B9A\u8981\u5220\u9664\u8BFE\u9898\uFF1F\u5220\u9664\u540E\u65E0\u6CD5\u6062\u590D"),okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:()=>ft(void 0,null,function*(){Se.length>0&&(yield at({type:"graduations/getDelGraduationsTasks",payload:{id:De.id,ids:Se.map(vn=>vn.id)}})).status==0&&he.ZP.success("\u6279\u91CF\u5220\u9664\u6210\u529F"),st.length>0&&(Se.length==0&&he.ZP.error("\u65E0\u6CD5\u5220\u9664"),pt(!0)),ze([]),Bt(),Lt.destroy()}),onCancel:()=>{Lt.destroy()}})}},re.createElement("i",{className:"iconfont icon-piliangshanchu3 mr5"}),"\u6279\u91CF\u5220\u9664")),re.createElement(de.default,{rowKey:"id",loading:ut.effects["graduations/getGraduationsTasks"],style:{minHeight:500},locale:{emptyText:re.createElement(xt.Z,{customText:ne.status==null&&ne.keyword==""&&ne.page==1?"\u60A8\u5F53\u524D\u8FD8\u6CA1\u6709\u5F55\u5165\u8BFE\u9898\uFF0C\u70B9\u51FB\u5B8C\u6210\u8BFE\u9898\u5F55\u5165":"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!",ButtonTwo:ne.status==null&&ne.keyword==""&&ne.page==1?re.createElement(qe.op,{openLoading:!0,onClick:()=>ft(void 0,null,function*(){ie(!0),yield Vt(!0)})},"\u5F55\u5165\u8BFE\u9898"):re.createElement(re.Fragment,null)})},rowSelection:Ze,columns:kt,dataSource:Ge.data,pagination:!1}),Ge.count!=0&&re.createElement(Ve.Z,{className:"mt20 mb20",wrap:!1,align:"middle",justify:"space-between"},re.createElement(we.Z,null,"\u5171\xA0",re.createElement("span",{style:{color:"#165DFF"}},Ge.count||0),"\xA0\u6761\u6570\u636E"),re.createElement(we.Z,null,re.createElement(Oe.Z,{showSizeChanger:!0,showQuickJumper:!0,current:ne.page,pageSize:ne.per_page,onShowSizeChange:(Lt,St)=>{ne.per_page=St,ne.page=1,be(Et({},ne))},onChange:Lt=>{ne.page=Lt,be(Et({},ne))},total:Ge.count}))),re.createElement(Ne.default,{open:Fe,title:"\u63D0\u793A",destroyOnClose:!0,width:1200,footer:re.createElement(xe.ZP,{type:"primary",onClick:()=>{pt(!1),Be([])}},"\u77E5\u9053\u4E86"),onCancel:()=>{pt(!1),Be([])}},re.createElement("span",null,"\u4E0B\u9762",re.createElement("span",{style:{color:"#FA6400"}},st.length),"\u4E2A\u8BFE\u9898\u5DF2\u88AB\u5B66\u751F\u9009\u9898\uFF0C\u4E0D\u80FD\u5220\u9664"),re.createElement("div",{className:"mt10",style:{background:"#F6F7F9",padding:"20px 12px"}},st.map((Lt,St)=>re.createElement(Ve.Z,{wrap:!1,align:"middle",key:St,style:{color:"#999"}},re.createElement("i",{className:"iconfont icon-guansuo font14"}),re.createElement("div",{className:$e.Onerow,style:{marginLeft:"8px"}},re.createElement(Ce.Z,{placement:"topLeft",title:Lt.name},Lt.name)))))),re.createElement(Ne.default,{open:it,title:`${z?"\u5F55\u5165\u8BFE\u9898":"\u7F16\u8F91\u8BFE\u9898"}`,width:1200,destroyOnClose:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",centered:!0,className:"ant-form-modal-body",afterOpenChange:Lt=>{Lt&&document.querySelector(".ant-form-modal-body").querySelector(".ant-modal-body").scrollTo(0,0)},onCancel:()=>{ct({}),ee([]),Ye.resetFields(),tt(!1)},onOk:()=>{Ye.submit()}},re.createElement(Qe.default,{onFinishFailed:Lt=>{var St;if(!(ge!=null&&ge.name)||!((St=ge==null?void 0:ge.teacher_ids)!=null&&St.length)){un(0);return}(!(ge!=null&&ge.description)||ge!=null&&ge.base_project&&!(ge!=null&&ge.graduation_stage_id))&&un()},form:Ye,initialValues:{},layout:"vertical",className:`${$e.FormDiv}`,onValuesChange:(Lt,St)=>{ct(Et(Et({},ge),Lt))},onFinish:Lt=>ft(void 0,null,function*(){!z&&jt.status==1&&Lt.student_id!=jt.student_id?Ne.default.confirm({centered:!0,okText:"\u786E\u5B9A",icon:null,cancelText:"\u53D6\u6D88",title:"\u53D8\u66F4\u6307\u5B9A\u5B66\u751F",content:re.createElement("div",null,re.createElement("p",null,"\u8BE5\u64CD\u4F5C\u65E0\u6CD5\u64A4\u9500\u3002\u786E\u8BA4\u53D8\u66F4\u6307\u5B9A\u5B66\u751F\uFF1F\u53D8\u66F4\u540E\u539F\u5B66\u751F\u5728\u8BE5\u8BFE\u9898\u63D0\u4EA4\u7684\u6587\u6863\u5C06\u6E05\u7A7A\u4E14\u65E0\u6CD5\u6062\u590D"),re.createElement("div",null,"\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801\u540E\u786E\u8BA4\u5220\u9664"),re.createElement(Re.Z,{ref:St=>se.current=St})),onOk:()=>ft(void 0,null,function*(){if(se.current.onVerify())return Promise.reject();Ht(Lt)})}):Ht(Lt)})},re.createElement(Qe.default.Item,{htmlFor:null,name:"source_is_repeat",valuePropName:"checked"},re.createElement(wt.default,null,re.createElement("span",{style:{color:"#000"}},"\u8FD1\u4E09\u5E74\u662F\u5426\u91CD\u590D"))),re.createElement(Qe.default.Item,{htmlFor:null,label:re.createElement("span",{style:{color:"#5F6368"}},"\u8BFE\u9898\u540D\u79F0"),name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8BFE\u9898\u540D\u79F0"},{type:"string",max:100,message:"\u8F93\u5165\u8D85\u9650\uFF0C\u8BF7\u7F29\u51CF\u5B57\u7B26\u6570"},{type:"string",whitespace:!0,message:"\u5185\u5BB9\u4E0D\u80FD\u5168\u4E3A\u7A7A\u683C"}]},re.createElement(Xe.default,{showCount:!0,maxLength:100,size:"large"})),re.createElement(Qe.default.Item,{htmlFor:null,label:re.createElement("span",{style:{color:"#5F6368"}},"\u6307\u5BFC\u8001\u5E08(\u53EF\u591A\u9009)"),name:"teacher_ids",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u6307\u5BFC\u8001\u5E08"}]},re.createElement(Pe.default,{size:"large",mode:"multiple",optionFilterProp:"children",placeholder:"\u8BF7\u9009\u62E9\u6307\u5BFC\u8001\u5E08"},(_t=vt==null?void 0:vt.data)==null?void 0:_t.map((Lt,St)=>re.createElement(Pe.default.Option,{key:St,value:Lt.id},Lt.name)))),re.createElement(Qe.default.Item,{htmlFor:null,label:re.createElement("span",{style:{color:"#5F6368"}},"\u8BFE\u9898\u9002\u5408\u4E13\u4E1A"),name:"major",rules:[{type:"string",max:100,message:"\u8F93\u5165\u8D85\u9650\uFF0C\u8BF7\u7F29\u51CF\u5B57\u7B26\u6570"}]},re.createElement(Xe.default,{size:"large",showCount:!0,maxLength:100})),re.createElement(Qe.default.Item,{htmlFor:null,label:re.createElement("span",{style:{color:"#5F6368"}},"\u6307\u5B9A\u5B66\u751F"),name:"student_id"},re.createElement(Pe.default,{size:"large",showSearch:!0,allowClear:!0,optionFilterProp:"children",placeholder:"\u8BF7\u9009\u62E9\u6307\u5B9A\u5B66\u751F"},(He=dt==null?void 0:dt.data)==null?void 0:He.map((Lt,St)=>re.createElement(Pe.default.Option,{key:St,value:Lt.id},Lt.name)))),re.createElement(Qe.default.Item,{htmlFor:null,label:re.createElement("span",{style:{color:"#5F6368"}},"\u8BFE\u9898\u6765\u6E90"),name:"source",rules:[{type:"string",max:60,message:"\u8F93\u5165\u8D85\u9650\uFF0C\u8BF7\u7F29\u51CF\u5B57\u7B26\u6570"}]},re.createElement(Xe.default,{size:"large",showCount:!0,maxLength:60})),re.createElement(Qe.default.Item,{htmlFor:null,label:re.createElement("span",{style:{color:"#5F6368"}},"\u8BFE\u9898\u5B66\u79D1\u65B9\u5411"),name:"direction",rules:[{type:"string",max:60,message:"\u8F93\u5165\u8D85\u9650\uFF0C\u8BF7\u7F29\u51CF\u5B57\u7B26\u6570"}]},re.createElement(Xe.default,{size:"large",showCount:!0,maxLength:60})),re.createElement(Qe.default.Item,{htmlFor:null,label:re.createElement("span",{style:{color:"#5F6368"}},"\u8BFE\u9898\u4ECB\u7ECD"),name:"description",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u8BFE\u9898\u4ECB\u7ECD"},{type:"string",max:5e3,message:"\u8F93\u5165\u8D85\u9650\uFF0C\u8BF7\u7F29\u51CF\u5B57\u7B26\u6570"},{type:"string",whitespace:!0,message:"\u5185\u5BB9\u4E0D\u80FD\u5168\u4E3A\u7A7A\u683C"}]},re.createElement(We.h,{placeholder:"\u8BF7\u5728\u6B64\u8F93\u5165\u5185\u5BB9\uFF0C\u6700\u591A5000\u4E2A\u5B57\u7B26",scrollId:"",watch:!0,height:140})),re.createElement(Qe.default.Item,{htmlFor:null,name:"attachment_ids",style:{display:"flex",alignItems:"center"},valuePropName:"fileList",getValueFromEvent:Lt=>Array.isArray(Lt)?Lt:Lt==null?void 0:Lt.fileList,normalize:Lt=>{const St="\u3000\u3000";return Lt.filter(Fn=>{if(Fn.url)return!0;const Tn=Fn.size/1024/1024;return Fn.name.indexOf(St)===-1&&(Fn.name=`${Fn.name}${St}${(0,me.RD)(Fn.size)}`),!(Tn>150||Tn==0)})}},re.createElement(ke.default,Et({},ht),re.createElement(Ve.Z,{style:{width:"100%"},wrap:!1,align:"middle"},re.createElement(we.Z,null,re.createElement(qe.op,{style:{borderRadius:"2px"}},re.createElement("i",{className:"iconfont icon-shangchuan3 mr5"}),"\u6587\u4EF6\u4E0A\u4F20")),re.createElement(we.Z,{style:{marginLeft:"16px",color:"#5F6367"},onClick:Lt=>{Lt.preventDefault(),Lt.stopPropagation()}},"\u4E0A\u4F20\u8BFE\u9898\u76F8\u5173\u6587\u6863\uFF0C\u5355\u4E2A\u6587\u6863\u5927\u5C0F\u4E0D\u8D85\u8FC7150M")))),re.createElement(Ve.Z,{wrap:!1,align:"middle",className:"mb20"},re.createElement(we.Z,null,re.createElement(Qe.default.Item,{htmlFor:null,name:"base_project",valuePropName:"checked",style:{marginBottom:0}},re.createElement(Ee.Z,null))),re.createElement(Ve.Z,{align:"middle",className:"ml10",style:{color:"#000"}},re.createElement(we.Z,null,"\u57FA\u4E8E\u9879\u76EE\u5B9E\u65BD"),re.createElement(Ce.Z,{placement:"right",style:{width:"500px"},overlayStyle:{maxWidth:600},title:"\u5F00\u542F\u540E\uFF0C\u5B66\u751F\u5FC5\u987B\u5728\u672C\u5E73\u53F0\u521B\u5EFA\u9879\u76EE\uFF0C\u5173\u8054\u540E\u5C06\u5E94\u7528\u4E8E\u6BD5\u8BBE\u6240\u6709\u9636\u6BB5"},re.createElement("i",{className:"iconfont icon-tishixiaowenhao ml5",style:{cursor:"pointer",color:"#3061D0"}})))),re.createElement("div",{id:"graduationstageid"},ge.base_project&&re.createElement("div",{style:{background:"#F6F7F9",padding:"12px 12px 4px 12px",width:"100%",height:104}},re.createElement("span",{style:{color:"#5F6367"}},"\u5B66\u751F\u9700\u8981\u5B8C\u6210\u5173\u8054\u9879\u76EE\u7684\u9636\u6BB5"),re.createElement(Ve.Z,{wrap:!1,align:"middle",className:"mt15"},re.createElement(we.Z,{style:{width:"632px"}},re.createElement(Qe.default.Item,{name:"graduation_stage_id",htmlFor:null,style:{marginBottom:0},rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u5173\u8054\u9879\u76EE\u7684\u9636\u6BB5"}]},re.createElement(Pe.default,null,Te==null?void 0:Te.map((Lt,St)=>re.createElement(Pe.default.Option,{key:St,value:Lt.id},Lt.name))))),re.createElement(we.Z,{className:"ml20",style:{color:"#999",fontSize:"12px"}},"\u9009\u62E9\u9636\u6BB5\u540E\uFF0C\u5B66\u751F\u5FC5\u987B\u5728\u5BF9\u5E94\u9636\u6BB5\u5B8C\u6210\u9879\u76EE\u5173\u8054")))))))};var ce=(0,je.connect)(({graduations:Ge,loading:vt})=>({graduations:Ge,loading:vt}))(ve)},58489:function(rn,$t,le){"use strict";le.d($t,{AL:function(){return Ae},Iy:function(){return Oe},Qv:function(){return Xe},ez:function(){return xt},jb:function(){return xe}});var re=le(32834),$e=le.n(re),je=le(11690),Qe=le.n(je);let Ce=1;function he(ye,Le){const Ie=ye.match(/^(\s+)(?:```)/);if(Ie===null)return Le;const Me=Ie[1];return Le.split(`
|
|
`).map(Je=>{const _e=Je.match(/^\s+/);if(_e===null)return Je;const[et]=_e;return et.length>=Me.length?Je.slice(Me.length):Je}).join(`
|
|
`)}let Ne=[],Ve=["<ul>"];const we=new($e()).Renderer,de=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function Oe(){Ne.length=0,Ve=["<ul>"]}const xe={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function wt(ye,Le,Ie,Me){if(Le>=ye.length||ye[Le].level<=Ie)return Le;var Je=ye[Le];Me.push("<li><a href='#"+Ce+Je.anchor+"'>"+Je.text+"</a>"),Le++;var _e=[];return Le=wt(ye,Le,Je.level,_e),_e.length>0&&(Me.push("<ul>"),_e.forEach(function(et){Me.push(et)}),Me.push("</ul>")),Me.push("</li>"),Le=wt(ye,Le,Ie,Me),Le}function Xe(){return wt(Ne,0,0,Ve),Ve.push("</ul>"),Ve.join("")}const Pe={heading(ye){const Le=de.exec(ye);if(Ce+=1,Le)return{type:"heading",raw:Le[0],depth:Le[1].length,text:Le[2]}},fences(ye){const Le=this.rules.block.fences.exec(ye);if(Le){const Ie=Le[0];let Me=he(Ie,Le[3]||"");const Je=Le[2]?Le[2].trim():Le[2];if(["latex","katex","math"].indexOf(Je)>=0){const _e=qe(),et=Me;Me=_e,lt[_e]={type:"block",expression:et}}return{type:"code",raw:Ie,lang:Je,text:Me}}}},ke=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let Ee=0;const qe=()=>`__special_katext_id_${Ee++}__`;let lt={};function xt(){return lt}function Ae(){Ee=0,lt={}}function me(ye){return ye=ye.replace(ke,(Le,Ie)=>{const Me=qe();return lt[Me]={type:"inline",expression:Ie},Me}),ye}const Re=we.listitem;we.listitem=function(ye){return Re(me(ye))};const We=we.paragraph;we.paragraph=function(ye){return We(me(ye))};const Nt=we.tablecell;we.tablecell=function(ye,Le){return Nt(me(ye),Le)},we.code=function(ye,Le,Ie){const Me=(Le||"").match(/\S*/)[0];return Me?["latex","katex","math"].indexOf(Me)>=0?`<p class='editormd-tex'>${ye}</p>`:`<pre class="prettyprint linenums"><code class="language-${Le}">${Ie?ye:(0,je.escape)(ye,!0)}</code></pre>
|
|
`:'<pre class="prettyprint linenums"><code>'+(Ie?ye:(0,je.escape)(ye,!0))+"</code></pre>"},we.heading=function(ye,Le,Ie){let Me=this.options.headerPrefix+Ie.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return Ne.push({anchor:Me,level:Le,text:ye}),"<h"+Le+' id="'+Ce+Me+'">'+ye+"</h"+Le+">"},$e().setOptions({silent:!0,gfm:!0,pedantic:!1}),$e().use({tokenizer:Pe,renderer:we}),$t.ZP=$e()},99498:function(rn,$t,le){(function(re){re(le(89780))})(function(re){re.defineOption("placeholder","",function(Ve,we,de){var Oe=de&&de!=re.Init;if(we&&!Oe)Ve.on("blur",Ce),Ve.on("change",he),Ve.on("swapDoc",he),re.on(Ve.getInputField(),"compositionupdate",Ve.state.placeholderCompose=function(){Qe(Ve)}),he(Ve);else if(!we&&Oe){Ve.off("blur",Ce),Ve.off("change",he),Ve.off("swapDoc",he),re.off(Ve.getInputField(),"compositionupdate",Ve.state.placeholderCompose),$e(Ve);var xe=Ve.getWrapperElement();xe.className=xe.className.replace(" CodeMirror-empty","")}we&&!Ve.hasFocus()&&Ce(Ve)});function $e(Ve){Ve.state.placeholder&&(Ve.state.placeholder.parentNode.removeChild(Ve.state.placeholder),Ve.state.placeholder=null)}function je(Ve){$e(Ve);var we=Ve.state.placeholder=document.createElement("pre");we.style.cssText="height: 0; overflow: visible",we.style.direction=Ve.getOption("direction"),we.className="CodeMirror-placeholder CodeMirror-line-like";var de=Ve.getOption("placeholder");typeof de=="string"&&(de=document.createTextNode(de)),we.appendChild(de),Ve.display.lineSpace.insertBefore(we,Ve.display.lineSpace.firstChild)}function Qe(Ve){setTimeout(function(){var we=!1,de=Ve.getInputField();de.nodeName=="TEXTAREA"?we=!de.value:Ve.lineCount()==1&&(we=!/[^\u200b]/.test(de.querySelector(".CodeMirror-line").textContent)),we?je(Ve):$e(Ve)},20)}function Ce(Ve){Ne(Ve)&&je(Ve)}function he(Ve){var we=Ve.getWrapperElement(),de=Ne(Ve);we.className=we.className.replace(" CodeMirror-empty","")+(de?" CodeMirror-empty":""),de?je(Ve):$e(Ve)}function Ne(Ve){return Ve.lineCount()===1&&Ve.getLine(0)===""}})},25717:function(rn,$t,le){(function(re){re(le(89780))})(function(re){var $e={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},je=re.Pos;re.defineOption("autoCloseBrackets",!1,function(Pe,ke,Ee){Ee&&Ee!=re.Init&&(Pe.removeKeyMap(Ce),Pe.state.closeBrackets=null),ke&&(he(Qe(ke,"pairs")),Pe.state.closeBrackets=ke,Pe.addKeyMap(Ce))});function Qe(Pe,ke){return ke=="pairs"&&typeof Pe=="string"?Pe:typeof Pe=="object"&&Pe[ke]!=null?Pe[ke]:$e[ke]}var Ce={Backspace:we,Enter:de};function he(Pe){for(var ke=0;ke<Pe.length;ke++){var Ee=Pe.charAt(ke),qe="'"+Ee+"'";Ce[qe]||(Ce[qe]=Ne(Ee))}}he($e.pairs+"`");function Ne(Pe){return function(ke){return xe(ke,Pe)}}function Ve(Pe){var ke=Pe.state.closeBrackets;if(!ke||ke.override)return ke;var Ee=Pe.getModeAt(Pe.getCursor());return Ee.closeBrackets||ke}function we(Pe){var ke=Ve(Pe);if(!ke||Pe.getOption("disableInput"))return re.Pass;for(var Ee=Qe(ke,"pairs"),qe=Pe.listSelections(),lt=0;lt<qe.length;lt++){if(!qe[lt].empty())return re.Pass;var xt=wt(Pe,qe[lt].head);if(!xt||Ee.indexOf(xt)%2!=0)return re.Pass}for(var lt=qe.length-1;lt>=0;lt--){var Ae=qe[lt].head;Pe.replaceRange("",je(Ae.line,Ae.ch-1),je(Ae.line,Ae.ch+1),"+delete")}}function de(Pe){var ke=Ve(Pe),Ee=ke&&Qe(ke,"explode");if(!Ee||Pe.getOption("disableInput"))return re.Pass;for(var qe=Pe.listSelections(),lt=0;lt<qe.length;lt++){if(!qe[lt].empty())return re.Pass;var xt=wt(Pe,qe[lt].head);if(!xt||Ee.indexOf(xt)%2!=0)return re.Pass}Pe.operation(function(){var Ae=Pe.lineSeparator()||`
|
|
`;Pe.replaceSelection(Ae+Ae,null),Pe.execCommand("goCharLeft"),qe=Pe.listSelections();for(var me=0;me<qe.length;me++){var Re=qe[me].head.line;Pe.indentLine(Re,null,!0),Pe.indentLine(Re+1,null,!0)}})}function Oe(Pe){var ke=re.cmpPos(Pe.anchor,Pe.head)>0;return{anchor:new je(Pe.anchor.line,Pe.anchor.ch+(ke?-1:1)),head:new je(Pe.head.line,Pe.head.ch+(ke?1:-1))}}function xe(Pe,ke){var Ee=Ve(Pe);if(!Ee||Pe.getOption("disableInput"))return re.Pass;var qe=Qe(Ee,"pairs"),lt=qe.indexOf(ke);if(lt==-1)return re.Pass;for(var xt=Qe(Ee,"closeBefore"),Ae=Qe(Ee,"triples"),me=qe.charAt(lt+1)==ke,Re=Pe.listSelections(),We=lt%2==0,Nt,ye=0;ye<Re.length;ye++){var Le=Re[ye],Ie=Le.head,Me,Je=Pe.getRange(Ie,je(Ie.line,Ie.ch+1));if(We&&!Le.empty())Me="surround";else if((me||!We)&&Je==ke)me&&Xe(Pe,Ie)?Me="both":Ae.indexOf(ke)>=0&&Pe.getRange(Ie,je(Ie.line,Ie.ch+3))==ke+ke+ke?Me="skipThree":Me="skip";else if(me&&Ie.ch>1&&Ae.indexOf(ke)>=0&&Pe.getRange(je(Ie.line,Ie.ch-2),Ie)==ke+ke){if(Ie.ch>2&&/\bstring/.test(Pe.getTokenTypeAt(je(Ie.line,Ie.ch-2))))return re.Pass;Me="addFour"}else if(me){var _e=Ie.ch==0?" ":Pe.getRange(je(Ie.line,Ie.ch-1),Ie);if(!re.isWordChar(Je)&&_e!=ke&&!re.isWordChar(_e))Me="both";else return re.Pass}else if(We&&(Je.length===0||/\s/.test(Je)||xt.indexOf(Je)>-1))Me="both";else return re.Pass;if(!Nt)Nt=Me;else if(Nt!=Me)return re.Pass}var et=lt%2?qe.charAt(lt-1):ke,Kt=lt%2?ke:qe.charAt(lt+1);Pe.operation(function(){if(Nt=="skip")Pe.execCommand("goCharRight");else if(Nt=="skipThree")for(var Et=0;Et<3;Et++)Pe.execCommand("goCharRight");else if(Nt=="surround"){for(var Ct=Pe.getSelections(),Et=0;Et<Ct.length;Et++)Ct[Et]=et+Ct[Et]+Kt;Pe.replaceSelections(Ct,"around"),Ct=Pe.listSelections().slice();for(var Et=0;Et<Ct.length;Et++)Ct[Et]=Oe(Ct[Et]);Pe.setSelections(Ct)}else Nt=="both"?(Pe.replaceSelection(et+Kt,null),Pe.triggerElectric(et+Kt),Pe.execCommand("goCharLeft")):Nt=="addFour"&&(Pe.replaceSelection(et+et+et+et,"before"),Pe.execCommand("goCharRight"))})}function wt(Pe,ke){var Ee=Pe.getRange(je(ke.line,ke.ch-1),je(ke.line,ke.ch+1));return Ee.length==2?Ee:null}function Xe(Pe,ke){var Ee=Pe.getTokenAt(je(ke.line,ke.ch+1));return/\bstring/.test(Ee.type)&&Ee.start==ke.ch&&(ke.ch==0||!/\bstring/.test(Pe.getTokenTypeAt(ke)))}})},6313:function(rn,$t,le){(function(re){re(le(89780),le(32855))})(function(re){re.defineOption("autoCloseTags",!1,function(we,de,Oe){if(Oe!=re.Init&&Oe&&we.removeKeyMap("autoCloseTags"),!!de){var xe={name:"autoCloseTags"};(typeof de!="object"||de.whenClosing!==!1)&&(xe["'/'"]=function(wt){return he(wt)}),(typeof de!="object"||de.whenOpening!==!1)&&(xe["'>'"]=function(wt){return Qe(wt)}),we.addKeyMap(xe)}});var $e=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],je=["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 Qe(we){if(we.getOption("disableInput"))return re.Pass;for(var de=we.listSelections(),Oe=[],xe=we.getOption("autoCloseTags"),wt=0;wt<de.length;wt++){if(!de[wt].empty())return re.Pass;var Xe=de[wt].head,Pe=we.getTokenAt(Xe),ke=re.innerMode(we.getMode(),Pe.state),Ee=ke.state,qe=ke.mode.xmlCurrentTag&&ke.mode.xmlCurrentTag(Ee),lt=qe&&qe.name;if(!lt)return re.Pass;var xt=ke.mode.configuration=="html",Ae=typeof xe=="object"&&xe.dontCloseTags||xt&&$e,me=typeof xe=="object"&&xe.indentTags||xt&&je;Pe.end>Xe.ch&&(lt=lt.slice(0,lt.length-Pe.end+Xe.ch));var Re=lt.toLowerCase();if(!lt||Pe.type=="string"&&(Pe.end!=Xe.ch||!/[\"\']/.test(Pe.string.charAt(Pe.string.length-1))||Pe.string.length==1)||Pe.type=="tag"&&qe.close||Pe.string.indexOf("/")==Xe.ch-Pe.start-1||Ae&&Ne(Ae,Re)>-1||Ve(we,ke.mode.xmlCurrentContext&&ke.mode.xmlCurrentContext(Ee)||[],lt,Xe,!0))return re.Pass;var We=typeof xe=="object"&&xe.emptyTags;if(We&&Ne(We,lt)>-1){Oe[wt]={text:"/>",newPos:re.Pos(Xe.line,Xe.ch+2)};continue}var Nt=me&&Ne(me,Re)>-1;Oe[wt]={indent:Nt,text:">"+(Nt?`
|
|
|
|
`:"")+"</"+lt+">",newPos:Nt?re.Pos(Xe.line+1,0):re.Pos(Xe.line,Xe.ch+1)}}for(var ye=typeof xe=="object"&&xe.dontIndentOnAutoClose,wt=de.length-1;wt>=0;wt--){var Le=Oe[wt];we.replaceRange(Le.text,de[wt].head,de[wt].anchor,"+insert");var Ie=we.listSelections().slice(0);Ie[wt]={head:Le.newPos,anchor:Le.newPos},we.setSelections(Ie),!ye&&Le.indent&&(we.indentLine(Le.newPos.line,null,!0),we.indentLine(Le.newPos.line+1,null,!0))}}function Ce(we,de){for(var Oe=we.listSelections(),xe=[],wt=de?"/":"</",Xe=we.getOption("autoCloseTags"),Pe=typeof Xe=="object"&&Xe.dontIndentOnSlash,ke=0;ke<Oe.length;ke++){if(!Oe[ke].empty())return re.Pass;var Ee=Oe[ke].head,qe=we.getTokenAt(Ee),lt=re.innerMode(we.getMode(),qe.state),xt=lt.state;if(de&&(qe.type=="string"||qe.string.charAt(0)!="<"||qe.start!=Ee.ch-1))return re.Pass;var Ae,me=lt.mode.name!="xml"&&we.getMode().name=="htmlmixed";if(me&<.mode.name=="javascript")Ae=wt+"script";else if(me&<.mode.name=="css")Ae=wt+"style";else{var Re=lt.mode.xmlCurrentContext&<.mode.xmlCurrentContext(xt);if(!Re||Re.length&&Ve(we,Re,Re[Re.length-1],Ee))return re.Pass;Ae=wt+Re[Re.length-1]}we.getLine(Ee.line).charAt(qe.end)!=">"&&(Ae+=">"),xe[ke]=Ae}if(we.replaceSelections(xe),Oe=we.listSelections(),!Pe)for(var ke=0;ke<Oe.length;ke++)(ke==Oe.length-1||Oe[ke].head.line<Oe[ke+1].head.line)&&we.indentLine(Oe[ke].head.line)}function he(we){return we.getOption("disableInput")?re.Pass:Ce(we,!0)}re.commands.closeTag=function(we){return Ce(we)};function Ne(we,de){if(we.indexOf)return we.indexOf(de);for(var Oe=0,xe=we.length;Oe<xe;++Oe)if(we[Oe]==de)return Oe;return-1}function Ve(we,de,Oe,xe,wt){if(!re.scanForClosingTag)return!1;var Xe=Math.min(we.lastLine()+1,xe.line+500),Pe=re.scanForClosingTag(we,xe,null,Xe);if(!Pe||Pe.tag!=Oe)return!1;for(var ke=wt?1:0,Ee=de.length-1;Ee>=0&&de[Ee]==Oe;Ee--)++ke;xe=Pe.to;for(var Ee=1;Ee<ke;Ee++){var qe=re.scanForClosingTag(we,xe,null,Xe);if(!qe||qe.tag!=Oe)return!1;xe=qe.to}return!0}})},32855:function(rn,$t,le){(function(re){re(le(89780))})(function(re){"use strict";var $e=re.Pos;function je(Ee,qe){return Ee.line-qe.line||Ee.ch-qe.ch}var Qe="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",Ce=Qe+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",he=new RegExp("<(/?)(["+Qe+"]["+Ce+"]*)","g");function Ne(Ee,qe,lt,xt){this.line=qe,this.ch=lt,this.cm=Ee,this.text=Ee.getLine(qe),this.min=xt?Math.max(xt.from,Ee.firstLine()):Ee.firstLine(),this.max=xt?Math.min(xt.to-1,Ee.lastLine()):Ee.lastLine()}function Ve(Ee,qe){var lt=Ee.cm.getTokenTypeAt($e(Ee.line,qe));return lt&&/\btag\b/.test(lt)}function we(Ee){if(!(Ee.line>=Ee.max))return Ee.ch=0,Ee.text=Ee.cm.getLine(++Ee.line),!0}function de(Ee){if(!(Ee.line<=Ee.min))return Ee.text=Ee.cm.getLine(--Ee.line),Ee.ch=Ee.text.length,!0}function Oe(Ee){for(;;){var qe=Ee.text.indexOf(">",Ee.ch);if(qe==-1){if(we(Ee))continue;return}if(!Ve(Ee,qe+1)){Ee.ch=qe+1;continue}var lt=Ee.text.lastIndexOf("/",qe),xt=lt>-1&&!/\S/.test(Ee.text.slice(lt+1,qe));return Ee.ch=qe+1,xt?"selfClose":"regular"}}function xe(Ee){for(;;){var qe=Ee.ch?Ee.text.lastIndexOf("<",Ee.ch-1):-1;if(qe==-1){if(de(Ee))continue;return}if(!Ve(Ee,qe+1)){Ee.ch=qe;continue}he.lastIndex=qe,Ee.ch=qe;var lt=he.exec(Ee.text);if(lt&<.index==qe)return lt}}function wt(Ee){for(;;){he.lastIndex=Ee.ch;var qe=he.exec(Ee.text);if(!qe){if(we(Ee))continue;return}if(!Ve(Ee,qe.index+1)){Ee.ch=qe.index+1;continue}return Ee.ch=qe.index+qe[0].length,qe}}function Xe(Ee){for(;;){var qe=Ee.ch?Ee.text.lastIndexOf(">",Ee.ch-1):-1;if(qe==-1){if(de(Ee))continue;return}if(!Ve(Ee,qe+1)){Ee.ch=qe;continue}var lt=Ee.text.lastIndexOf("/",qe),xt=lt>-1&&!/\S/.test(Ee.text.slice(lt+1,qe));return Ee.ch=qe+1,xt?"selfClose":"regular"}}function Pe(Ee,qe){for(var lt=[];;){var xt=wt(Ee),Ae,me=Ee.line,Re=Ee.ch-(xt?xt[0].length:0);if(!xt||!(Ae=Oe(Ee)))return;if(Ae!="selfClose")if(xt[1]){for(var We=lt.length-1;We>=0;--We)if(lt[We]==xt[2]){lt.length=We;break}if(We<0&&(!qe||qe==xt[2]))return{tag:xt[2],from:$e(me,Re),to:$e(Ee.line,Ee.ch)}}else lt.push(xt[2])}}function ke(Ee,qe){for(var lt=[];;){var xt=Xe(Ee);if(!xt)return;if(xt=="selfClose"){xe(Ee);continue}var Ae=Ee.line,me=Ee.ch,Re=xe(Ee);if(!Re)return;if(Re[1])lt.push(Re[2]);else{for(var We=lt.length-1;We>=0;--We)if(lt[We]==Re[2]){lt.length=We;break}if(We<0&&(!qe||qe==Re[2]))return{tag:Re[2],from:$e(Ee.line,Ee.ch),to:$e(Ae,me)}}}}re.registerHelper("fold","xml",function(Ee,qe){for(var lt=new Ne(Ee,qe.line,0);;){var xt=wt(lt);if(!xt||lt.line!=qe.line)return;var Ae=Oe(lt);if(!Ae)return;if(!xt[1]&&Ae!="selfClose"){var me=$e(lt.line,lt.ch),Re=Pe(lt,xt[2]);return Re&&je(Re.from,me)>0?{from:me,to:Re.from}:null}}}),re.findMatchingTag=function(Ee,qe,lt){var xt=new Ne(Ee,qe.line,qe.ch,lt);if(!(xt.text.indexOf(">")==-1&&xt.text.indexOf("<")==-1)){var Ae=Oe(xt),me=Ae&&$e(xt.line,xt.ch),Re=Ae&&xe(xt);if(!(!Ae||!Re||je(xt,qe)>0)){var We={from:$e(xt.line,xt.ch),to:me,tag:Re[2]};return Ae=="selfClose"?{open:We,close:null,at:"open"}:Re[1]?{open:ke(xt,Re[2]),close:We,at:"close"}:(xt=new Ne(Ee,me.line,me.ch,lt),{open:We,close:Pe(xt,Re[2]),at:"open"})}}},re.findEnclosingTag=function(Ee,qe,lt,xt){for(var Ae=new Ne(Ee,qe.line,qe.ch,lt);;){var me=ke(Ae,xt);if(!me)break;var Re=new Ne(Ee,qe.line,qe.ch,lt),We=Pe(Re,me.tag);if(We)return{open:me,close:We}}},re.scanForClosingTag=function(Ee,qe,lt,xt){var Ae=new Ne(Ee,qe.line,qe.ch,xt?{from:0,to:xt}:null);return Pe(Ae,lt)}})},89780:function(rn){(function($t,le){rn.exports=le()})(this,function(){"use strict";var $t=navigator.userAgent,le=navigator.platform,re=/gecko\/\d/i.test($t),$e=/MSIE \d/.test($t),je=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec($t),Qe=/Edge\/(\d+)/.exec($t),Ce=$e||je||Qe,he=Ce&&($e?document.documentMode||6:+(Qe||je)[1]),Ne=!Qe&&/WebKit\//.test($t),Ve=Ne&&/Qt\/\d+\.\d+/.test($t),we=!Qe&&/Chrome\//.test($t),de=/Opera\//.test($t),Oe=/Apple Computer/.test(navigator.vendor),xe=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test($t),wt=/PhantomJS/.test($t),Xe=!Qe&&/AppleWebKit/.test($t)&&/Mobile\/\w+/.test($t),Pe=/Android/.test($t),ke=Xe||Pe||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test($t),Ee=Xe||/Mac/.test(le),qe=/\bCrOS\b/.test($t),lt=/win/i.test(le),xt=de&&$t.match(/Version\/(\d*\.\d*)/);xt&&(xt=Number(xt[1])),xt&&xt>=15&&(de=!1,Ne=!0);var Ae=Ee&&(Ve||de&&(xt==null||xt<12.11)),me=re||Ce&&he>=9;function Re(a){return new RegExp("(^|\\s)"+a+"(?:$|\\s)\\s*")}var We=function(a,y){var b=a.className,x=Re(y).exec(b);if(x){var E=b.slice(x.index+x[0].length);a.className=b.slice(0,x.index)+(E?x[1]+E:"")}};function Nt(a){for(var y=a.childNodes.length;y>0;--y)a.removeChild(a.firstChild);return a}function ye(a,y){return Nt(a).appendChild(y)}function Le(a,y,b,x){var E=document.createElement(a);if(b&&(E.className=b),x&&(E.style.cssText=x),typeof y=="string")E.appendChild(document.createTextNode(y));else if(y)for(var te=0;te<y.length;++te)E.appendChild(y[te]);return E}function Ie(a,y,b,x){var E=Le(a,y,b,x);return E.setAttribute("role","presentation"),E}var Me;document.createRange?Me=function(a,y,b,x){var E=document.createRange();return E.setEnd(x||a,b),E.setStart(a,y),E}:Me=function(a,y,b){var x=document.body.createTextRange();try{x.moveToElementText(a.parentNode)}catch(E){return x}return x.collapse(!0),x.moveEnd("character",b),x.moveStart("character",y),x};function Je(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 _e(){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 et(a,y){var b=a.className;Re(y).test(b)||(a.className+=(b?" ":"")+y)}function Kt(a,y){for(var b=a.split(" "),x=0;x<b.length;x++)b[x]&&!Re(b[x]).test(y)&&(y+=" "+b[x]);return y}var Et=function(a){a.select()};Xe?Et=function(a){a.selectionStart=0,a.selectionEnd=a.value.length}:Ce&&(Et=function(a){try{a.select()}catch(y){}});function Ct(a){var y=Array.prototype.slice.call(arguments,1);return function(){return a.apply(null,y)}}function ft(a,y,b){y||(y={});for(var x in a)a.hasOwnProperty(x)&&(b!==!1||!y.hasOwnProperty(x))&&(y[x]=a[x]);return y}function ve(a,y,b,x,E){y==null&&(y=a.search(/[^\s\u00a0]/),y==-1&&(y=a.length));for(var te=x||0,oe=E||0;;){var ue=a.indexOf(" ",te);if(ue<0||ue>=y)return oe+(y-te);oe+=ue-te,oe+=b-oe%b,te=ue+1}}var ce=function(){this.id=null,this.f=null,this.time=0,this.handler=Ct(this.onTimeout,this)};ce.prototype.onTimeout=function(a){a.id=0,a.time<=+new Date?a.f():setTimeout(a.handler,a.time-+new Date)},ce.prototype.set=function(a,y){this.f=y;var b=+new Date+a;(!this.id||b<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,a),this.time=b)};function Ge(a,y){for(var b=0;b<a.length;++b)if(a[b]==y)return b;return-1}var vt=50,dt={toString:function(){return"CodeMirror.Pass"}},Te={scroll:!1},ut={origin:"*mouse"},at={origin:"+move"};function _t(a,y,b){for(var x=0,E=0;;){var te=a.indexOf(" ",x);te==-1&&(te=a.length);var oe=te-x;if(te==a.length||E+oe>=y)return x+Math.min(oe,y-E);if(E+=te-x,E+=b-E%b,x=te+1,E>=y)return x}}var He=[""];function De(a){for(;He.length<=a;)He.push(Se(He)+" ");return He[a]}function Se(a){return a[a.length-1]}function ze(a,y){for(var b=[],x=0;x<a.length;x++)b[x]=y(a[x],x);return b}function st(a,y,b){for(var x=0,E=b(y);x<a.length&&b(a[x])<=E;)x++;a.splice(x,0,y)}function Be(){}function it(a,y){var b;return Object.create?b=Object.create(a):(Be.prototype=a,b=new Be),y&&ft(y,b),b}var tt=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Fe(a){return/\w/.test(a)||a>"\x80"&&(a.toUpperCase()!=a.toLowerCase()||tt.test(a))}function pt(a,y){return y?y.source.indexOf("\\w")>-1&&Fe(a)?!0:y.test(a):Fe(a)}function Ye(a){for(var y in a)if(a.hasOwnProperty(y)&&a[y])return!1;return!0}var ge=/[\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 ct(a){return a.charCodeAt(0)>=768&&ge.test(a)}function jt(a,y,b){for(;(b<0?y>0:y<a.length)&&ct(a.charAt(y));)y+=b;return y}function Wt(a,y,b){for(var x=y>b?-1:1;;){if(y==b)return y;var E=(y+b)/2,te=x<0?Math.ceil(E):Math.floor(E);if(te==y)return a(te)?y:b;a(te)?b=te:y=te+x}}function ae(a,y,b,x){if(!a)return x(y,b,"ltr",0);for(var E=!1,te=0;te<a.length;++te){var oe=a[te];(oe.from<b&&oe.to>y||y==b&&oe.to==y)&&(x(Math.max(oe.from,y),Math.min(oe.to,b),oe.level==1?"rtl":"ltr",te),E=!0)}E||x(y,b,"ltr")}var ee=null;function z(a,y,b){var x;ee=null;for(var E=0;E<a.length;++E){var te=a[E];if(te.from<y&&te.to>y)return E;te.to==y&&(te.from!=te.to&&b=="before"?x=E:ee=E),te.from==y&&(te.from!=te.to&&b!="before"?x=E:ee=E)}return x!=null?x:ee}var ie=function(){var a="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",y="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function b(pe){return pe<=247?a.charAt(pe):1424<=pe&&pe<=1524?"R":1536<=pe&&pe<=1785?y.charAt(pe-1536):1774<=pe&&pe<=2220?"r":8192<=pe&&pe<=8203?"w":pe==8204?"b":"L"}var x=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,E=/[stwN]/,te=/[LRr]/,oe=/[Lb1n]/,ue=/[1n]/;function fe(pe,Ue,rt){this.level=pe,this.from=Ue,this.to=rt}return function(pe,Ue){var rt=Ue=="ltr"?"L":"R";if(pe.length==0||Ue=="ltr"&&!x.test(pe))return!1;for(var Rt=pe.length,At=[],on=0;on<Rt;++on)At.push(b(pe.charCodeAt(on)));for(var xn=0,Bn=rt;xn<Rt;++xn){var Hn=At[xn];Hn=="m"?At[xn]=Bn:Bn=Hn}for(var qn=0,Wn=rt;qn<Rt;++qn){var lr=At[qn];lr=="1"&&Wn=="r"?At[qn]="n":te.test(lr)&&(Wn=lr,lr=="r"&&(At[qn]="R"))}for(var Ar=1,xr=At[0];Ar<Rt-1;++Ar){var jr=At[Ar];jr=="+"&&xr=="1"&&At[Ar+1]=="1"?At[Ar]="1":jr==","&&xr==At[Ar+1]&&(xr=="1"||xr=="n")&&(At[Ar]=xr),xr=jr}for(var ui=0;ui<Rt;++ui){var Zi=At[ui];if(Zi==",")At[ui]="N";else if(Zi=="%"){var Ci=void 0;for(Ci=ui+1;Ci<Rt&&At[Ci]=="%";++Ci);for(var oa=ui&&At[ui-1]=="!"||Ci<Rt&&At[Ci]=="1"?"1":"N",ea=ui;ea<Ci;++ea)At[ea]=oa;ui=Ci-1}}for(var Li=0,ta=rt;Li<Rt;++Li){var zi=At[Li];ta=="L"&&zi=="1"?At[Li]="L":te.test(zi)&&(ta=zi)}for(var Ri=0;Ri<Rt;++Ri)if(E.test(At[Ri])){var Mi=void 0;for(Mi=Ri+1;Mi<Rt&&E.test(At[Mi]);++Mi);for(var Ei=(Ri?At[Ri-1]:rt)=="L",na=(Mi<Rt?At[Mi]:rt)=="L",Co=Ei==na?Ei?"L":"R":rt,Ya=Ri;Ya<Mi;++Ya)At[Ya]=Co;Ri=Mi-1}for(var Gi=[],wa,_i=0;_i<Rt;)if(oe.test(At[_i])){var Zl=_i;for(++_i;_i<Rt&&oe.test(At[_i]);++_i);Gi.push(new fe(0,Zl,_i))}else{var Ia=_i,eo=Gi.length,to=Ue=="rtl"?1:0;for(++_i;_i<Rt&&At[_i]!="L";++_i);for(var Xi=Ia;Xi<_i;)if(ue.test(At[Xi])){Ia<Xi&&(Gi.splice(eo,0,new fe(1,Ia,Xi)),eo+=to);var wo=Xi;for(++Xi;Xi<_i&&ue.test(At[Xi]);++Xi);Gi.splice(eo,0,new fe(2,wo,Xi)),eo+=to,Ia=Xi}else++Xi;Ia<_i&&Gi.splice(eo,0,new fe(1,Ia,_i))}return Ue=="ltr"&&(Gi[0].level==1&&(wa=pe.match(/^\s+/))&&(Gi[0].from=wa[0].length,Gi.unshift(new fe(0,0,wa[0].length))),Se(Gi).level==1&&(wa=pe.match(/\s+$/))&&(Se(Gi).to-=wa[0].length,Gi.push(new fe(0,Rt-wa[0].length,Rt)))),Ue=="rtl"?Gi.reverse():Gi}}();function se(a,y){var b=a.order;return b==null&&(b=a.order=ie(a.text,y)),b}var ne=[],be=function(a,y,b){if(a.addEventListener)a.addEventListener(y,b,!1);else if(a.attachEvent)a.attachEvent("on"+y,b);else{var x=a._handlers||(a._handlers={});x[y]=(x[y]||ne).concat(b)}};function gt(a,y){return a._handlers&&a._handlers[y]||ne}function kt(a,y,b){if(a.removeEventListener)a.removeEventListener(y,b,!1);else if(a.detachEvent)a.detachEvent("on"+y,b);else{var x=a._handlers,E=x&&x[y];if(E){var te=Ge(E,b);te>-1&&(x[y]=E.slice(0,te).concat(E.slice(te+1)))}}}function ht(a,y){var b=gt(a,y);if(b.length)for(var x=Array.prototype.slice.call(arguments,2),E=0;E<b.length;++E)b[E].apply(null,x)}function Ze(a,y,b){return typeof y=="string"&&(y={type:y,preventDefault:function(){this.defaultPrevented=!0}}),ht(a,b||y.type,a,y),St(y)||y.codemirrorIgnore}function Vt(a){var y=a._handlers&&a._handlers.cursorActivity;if(y)for(var b=a.curOp.cursorActivityHandlers||(a.curOp.cursorActivityHandlers=[]),x=0;x<y.length;++x)Ge(b,y[x])==-1&&b.push(y[x])}function Bt(a,y){return gt(a,y).length>0}function Ht(a){a.prototype.on=function(y,b){be(this,y,b)},a.prototype.off=function(y,b){kt(this,y,b)}}function un(a){a.preventDefault?a.preventDefault():a.returnValue=!1}function Lt(a){a.stopPropagation?a.stopPropagation():a.cancelBubble=!0}function St(a){return a.defaultPrevented!=null?a.defaultPrevented:a.returnValue==!1}function vn(a){un(a),Lt(a)}function Fn(a){return a.target||a.srcElement}function Tn(a){var y=a.which;return y==null&&(a.button&1?y=1:a.button&2?y=3:a.button&4&&(y=2)),Ee&&a.ctrlKey&&y==1&&(y=3),y}var Un=function(){if(Ce&&he<9)return!1;var a=Le("div");return"draggable"in a||"dragDrop"in a}(),tr;function gr(a){if(tr==null){var y=Le("span","\u200B");ye(a,Le("span",[y,document.createTextNode("x")])),a.firstChild.offsetHeight!=0&&(tr=y.offsetWidth<=1&&y.offsetHeight>2&&!(Ce&&he<8))}var b=tr?Le("span","\u200B"):Le("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return b.setAttribute("cm-text",""),b}var $n;function kn(a){if($n!=null)return $n;var y=ye(a,document.createTextNode("A\u062EA")),b=Me(y,0,1).getBoundingClientRect(),x=Me(y,1,2).getBoundingClientRect();return Nt(a),!b||b.left==b.right?!1:$n=x.right-b.right<3}var pr=`
|
|
|
|
b`.split(/\n/).length!=3?function(a){for(var y=0,b=[],x=a.length;y<=x;){var E=a.indexOf(`
|
|
`,y);E==-1&&(E=a.length);var te=a.slice(y,a.charAt(E-1)=="\r"?E-1:E),oe=te.indexOf("\r");oe!=-1?(b.push(te.slice(0,oe)),y+=oe+1):(b.push(te),y=E+1)}return b}:function(a){return a.split(/\r\n?|\n/)},sr=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(b){}return!y||y.parentElement()!=a?!1:y.compareEndPoints("StartToEnd",y)!=0},Ln=function(){var a=Le("div");return"oncopy"in a?!0:(a.setAttribute("oncopy","return;"),typeof a.oncopy=="function")}(),Cn=null;function tn(a){if(Cn!=null)return Cn;var y=ye(a,Le("span","x")),b=y.getBoundingClientRect(),x=Me(y,0,1).getBoundingClientRect();return Cn=Math.abs(b.left-x.left)>1}var fn={},Tt={};function Jt(a,y){arguments.length>2&&(y.dependencies=Array.prototype.slice.call(arguments,2)),fn[a]=y}function wn(a,y){Tt[a]=y}function En(a){if(typeof a=="string"&&Tt.hasOwnProperty(a))a=Tt[a];else if(a&&typeof a.name=="string"&&Tt.hasOwnProperty(a.name)){var y=Tt[a.name];typeof y=="string"&&(y={name:y}),a=it(y,a),a.name=y.name}else{if(typeof a=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(a))return En("application/xml");if(typeof a=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(a))return En("application/json")}return typeof a=="string"?{name:a}:a||{name:"null"}}function Pn(a,y){y=En(y);var b=fn[y.name];if(!b)return Pn(a,"text/plain");var x=b(a,y);if(jn.hasOwnProperty(y.name)){var E=jn[y.name];for(var te in E)E.hasOwnProperty(te)&&(x.hasOwnProperty(te)&&(x["_"+te]=x[te]),x[te]=E[te])}if(x.name=y.name,y.helperType&&(x.helperType=y.helperType),y.modeProps)for(var oe in y.modeProps)x[oe]=y.modeProps[oe];return x}var jn={};function ur(a,y){var b=jn.hasOwnProperty(a)?jn[a]:jn[a]={};ft(y,b)}function rr(a,y){if(y===!0)return y;if(a.copyState)return a.copyState(y);var b={};for(var x in y){var E=y[x];E instanceof Array&&(E=E.concat([])),b[x]=E}return b}function zn(a,y){for(var b;a.innerMode&&(b=a.innerMode(y),!(!b||b.mode==a));)y=b.state,a=b.mode;return b||{mode:a,state:y}}function Gn(a,y,b){return a.startState?a.startState(y,b):!0}var ln=function(a,y,b){this.pos=this.start=0,this.string=a,this.tabSize=y||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=b};ln.prototype.eol=function(){return this.pos>=this.string.length},ln.prototype.sol=function(){return this.pos==this.lineStart},ln.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},ln.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},ln.prototype.eat=function(a){var y=this.string.charAt(this.pos),b;if(typeof a=="string"?b=y==a:b=y&&(a.test?a.test(y):a(y)),b)return++this.pos,y},ln.prototype.eatWhile=function(a){for(var y=this.pos;this.eat(a););return this.pos>y},ln.prototype.eatSpace=function(){for(var a=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>a},ln.prototype.skipToEnd=function(){this.pos=this.string.length},ln.prototype.skipTo=function(a){var y=this.string.indexOf(a,this.pos);if(y>-1)return this.pos=y,!0},ln.prototype.backUp=function(a){this.pos-=a},ln.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=ve(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?ve(this.string,this.lineStart,this.tabSize):0)},ln.prototype.indentation=function(){return ve(this.string,null,this.tabSize)-(this.lineStart?ve(this.string,this.lineStart,this.tabSize):0)},ln.prototype.match=function(a,y,b){if(typeof a=="string"){var x=function(oe){return b?oe.toLowerCase():oe},E=this.string.substr(this.pos,a.length);if(x(E)==x(a))return y!==!1&&(this.pos+=a.length),!0}else{var te=this.string.slice(this.pos).match(a);return te&&te.index>0?null:(te&&y!==!1&&(this.pos+=te[0].length),te)}},ln.prototype.current=function(){return this.string.slice(this.start,this.pos)},ln.prototype.hideFirstChars=function(a,y){this.lineStart+=a;try{return y()}finally{this.lineStart-=a}},ln.prototype.lookAhead=function(a){var y=this.lineOracle;return y&&y.lookAhead(a)},ln.prototype.baseToken=function(){var a=this.lineOracle;return a&&a.baseToken(this.pos)};function Mt(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 b=a;!b.lines;)for(var x=0;;++x){var E=b.children[x],te=E.chunkSize();if(y<te){b=E;break}y-=te}return b.lines[y]}function gn(a,y,b){var x=[],E=y.line;return a.iter(y.line,b.line+1,function(te){var oe=te.text;E==b.line&&(oe=oe.slice(0,b.ch)),E==y.line&&(oe=oe.slice(y.ch)),x.push(oe),++E}),x}function In(a,y,b){var x=[];return a.iter(y,b,function(E){x.push(E.text)}),x}function ir(a,y){var b=y-a.height;if(b)for(var x=a;x;x=x.parent)x.height+=b}function nt(a){if(a.parent==null)return null;for(var y=a.parent,b=Ge(y.lines,a),x=y.parent;x;y=x,x=x.parent)for(var E=0;x.children[E]!=y;++E)b+=x.children[E].chunkSize();return b+y.first}function ot(a,y){var b=a.first;e:do{for(var x=0;x<a.children.length;++x){var E=a.children[x],te=E.height;if(y<te){a=E;continue e}y-=te,b+=E.chunkSize()}return b}while(!a.lines);for(var oe=0;oe<a.lines.length;++oe){var ue=a.lines[oe],fe=ue.height;if(y<fe)break;y-=fe}return b+oe}function dn(a,y){return y>=a.first&&y<a.first+a.size}function Xt(a,y){return String(a.lineNumberFormatter(y+a.firstLineNumber))}function mt(a,y,b){if(b===void 0&&(b=null),!(this instanceof mt))return new mt(a,y,b);this.line=a,this.ch=y,this.sticky=b}function en(a,y){return a.line-y.line||a.ch-y.ch}function hn(a,y){return a.sticky==y.sticky&&en(a,y)==0}function mn(a){return mt(a.line,a.ch)}function Dn(a,y){return en(a,y)<0?y:a}function yn(a,y){return en(a,y)<0?a:y}function An(a,y){return Math.max(a.first,Math.min(y,a.first+a.size-1))}function nn(a,y){if(y.line<a.first)return mt(a.first,0);var b=a.first+a.size-1;return y.line>b?mt(b,Mt(a,b).text.length):Gt(y,Mt(a,y.line).text.length)}function Gt(a,y){var b=a.ch;return b==null||b>y?mt(a.line,y):b<0?mt(a.line,0):a}function Mn(a,y){for(var b=[],x=0;x<y.length;x++)b[x]=nn(a,y[x]);return b}var _n=function(a,y){this.state=a,this.lookAhead=y},Jn=function(a,y,b,x){this.state=y,this.doc=a,this.line=b,this.maxLookAhead=x||0,this.baseTokens=null,this.baseTokenPos=1};Jn.prototype.lookAhead=function(a){var y=this.doc.getLine(this.line+a);return y!=null&&a>this.maxLookAhead&&(this.maxLookAhead=a),y},Jn.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}},Jn.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Jn.fromSaved=function(a,y,b){return y instanceof _n?new Jn(a,rr(a.mode,y.state),b,y.lookAhead):new Jn(a,rr(a.mode,y),b)},Jn.prototype.save=function(a){var y=a!==!1?rr(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new _n(y,this.maxLookAhead):y};function Qn(a,y,b,x){var E=[a.state.modeGen],te={};Or(a,y.text,a.doc.mode,b,function(pe,Ue){return E.push(pe,Ue)},te,x);for(var oe=b.state,ue=function(pe){b.baseTokens=E;var Ue=a.state.overlays[pe],rt=1,Rt=0;b.state=!0,Or(a,y.text,Ue.mode,b,function(At,on){for(var xn=rt;Rt<At;){var Bn=E[rt];Bn>At&&E.splice(rt,1,At,E[rt+1],Bn),rt+=2,Rt=Math.min(At,Bn)}if(on)if(Ue.opaque)E.splice(xn,rt-xn,At,"overlay "+on),rt=xn+2;else for(;xn<rt;xn+=2){var Hn=E[xn+1];E[xn+1]=(Hn?Hn+" ":"")+"overlay "+on}},te),b.state=oe,b.baseTokens=null,b.baseTokenPos=1},fe=0;fe<a.state.overlays.length;++fe)ue(fe);return{styles:E,classes:te.bgClass||te.textClass?te:null}}function Er(a,y,b){if(!y.styles||y.styles[0]!=a.state.modeGen){var x=Mr(a,nt(y)),E=y.text.length>a.options.maxHighlightLength&&rr(a.doc.mode,x.state),te=Qn(a,y,x);E&&(x.state=E),y.stateAfter=x.save(!E),y.styles=te.styles,te.classes?y.styleClasses=te.classes:y.styleClasses&&(y.styleClasses=null),b===a.doc.highlightFrontier&&(a.doc.modeFrontier=Math.max(a.doc.modeFrontier,++a.doc.highlightFrontier))}return y.styles}function Mr(a,y,b){var x=a.doc,E=a.display;if(!x.mode.startState)return new Jn(x,!0,y);var te=Vr(a,y,b),oe=te>x.first&&Mt(x,te-1).stateAfter,ue=oe?Jn.fromSaved(x,oe,te):new Jn(x,Gn(x.mode),te);return x.iter(te,y,function(fe){Vn(a,fe.text,ue);var pe=ue.line;fe.stateAfter=pe==y-1||pe%5==0||pe>=E.viewFrom&&pe<E.viewTo?ue.save():null,ue.nextLine()}),b&&(x.modeFrontier=ue.line),ue}function Vn(a,y,b,x){var E=a.doc.mode,te=new ln(y,a.options.tabSize,b);for(te.start=te.pos=x||0,y==""&&Sn(E,b.state);!te.eol();)Yn(E,te,b.state),te.start=te.pos}function Sn(a,y){if(a.blankLine)return a.blankLine(y);if(a.innerMode){var b=zn(a,y);if(b.mode.blankLine)return b.mode.blankLine(b.state)}}function Yn(a,y,b,x){for(var E=0;E<10;E++){x&&(x[0]=zn(a,b).mode);var te=a.token(y,b);if(y.pos>y.start)return te}throw new Error("Mode "+a.name+" failed to advance stream.")}var Rn=function(a,y,b){this.start=a.start,this.end=a.pos,this.string=a.current(),this.type=y||null,this.state=b};function Pr(a,y,b,x){var E=a.doc,te=E.mode,oe;y=nn(E,y);var ue=Mt(E,y.line),fe=Mr(a,y.line,b),pe=new ln(ue.text,a.options.tabSize,fe),Ue;for(x&&(Ue=[]);(x||pe.pos<y.ch)&&!pe.eol();)pe.start=pe.pos,oe=Yn(te,pe,fe.state),x&&Ue.push(new Rn(pe,oe,rr(E.mode,fe.state)));return x?Ue:new Rn(pe,oe,fe.state)}function Gr(a,y){if(a)for(;;){var b=a.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!b)break;a=a.slice(0,b.index)+a.slice(b.index+b[0].length);var x=b[1]?"bgClass":"textClass";y[x]==null?y[x]=b[2]:new RegExp("(?:^|\\s)"+b[2]+"(?:$|\\s)").test(y[x])||(y[x]+=" "+b[2])}return a}function Or(a,y,b,x,E,te,oe){var ue=b.flattenSpans;ue==null&&(ue=a.options.flattenSpans);var fe=0,pe=null,Ue=new ln(y,a.options.tabSize,x),rt,Rt=a.options.addModeClass&&[null];for(y==""&&Gr(Sn(b,x.state),te);!Ue.eol();){if(Ue.pos>a.options.maxHighlightLength?(ue=!1,oe&&Vn(a,y,x,Ue.pos),Ue.pos=y.length,rt=null):rt=Gr(Yn(b,Ue,x.state,Rt),te),Rt){var At=Rt[0].name;At&&(rt="m-"+(rt?At+" "+rt:At))}if(!ue||pe!=rt){for(;fe<Ue.start;)fe=Math.min(Ue.start,fe+5e3),E(fe,pe);pe=rt}Ue.start=Ue.pos}for(;fe<Ue.pos;){var on=Math.min(Ue.pos,fe+5e3);E(on,pe),fe=on}}function Vr(a,y,b){for(var x,E,te=a.doc,oe=b?-1:y-(a.doc.mode.innerMode?1e3:100),ue=y;ue>oe;--ue){if(ue<=te.first)return te.first;var fe=Mt(te,ue-1),pe=fe.stateAfter;if(pe&&(!b||ue+(pe instanceof _n?pe.lookAhead:0)<=te.modeFrontier))return ue;var Ue=ve(fe.text,null,a.options.tabSize);(E==null||x>Ue)&&(E=ue-1,x=Ue)}return E}function Jr(a,y){if(a.modeFrontier=Math.min(a.modeFrontier,y),!(a.highlightFrontier<y-10)){for(var b=a.first,x=y-1;x>b;x--){var E=Mt(a,x).stateAfter;if(E&&(!(E instanceof _n)||x+E.lookAhead<y)){b=x+1;break}}a.highlightFrontier=Math.min(a.highlightFrontier,b)}}var Ur=!1,Ir=!1;function ei(){Ur=!0}function Yr(){Ir=!0}function Zn(a,y,b){this.marker=a,this.from=y,this.to=b}function dr(a,y){if(a)for(var b=0;b<a.length;++b){var x=a[b];if(x.marker==y)return x}}function Nr(a,y){for(var b,x=0;x<a.length;++x)a[x]!=y&&(b||(b=[])).push(a[x]);return b}function Zr(a,y){a.markedSpans=a.markedSpans?a.markedSpans.concat([y]):[y],y.marker.attachLine(a)}function Fr(a,y,b){var x;if(a)for(var E=0;E<a.length;++E){var te=a[E],oe=te.marker,ue=te.from==null||(oe.inclusiveLeft?te.from<=y:te.from<y);if(ue||te.from==y&&oe.type=="bookmark"&&(!b||!te.marker.insertLeft)){var fe=te.to==null||(oe.inclusiveRight?te.to>=y:te.to>y);(x||(x=[])).push(new Zn(oe,te.from,fe?null:te.to))}}return x}function zr(a,y,b){var x;if(a)for(var E=0;E<a.length;++E){var te=a[E],oe=te.marker,ue=te.to==null||(oe.inclusiveRight?te.to>=y:te.to>y);if(ue||te.from==y&&oe.type=="bookmark"&&(!b||te.marker.insertLeft)){var fe=te.from==null||(oe.inclusiveLeft?te.from<=y:te.from<y);(x||(x=[])).push(new Zn(oe,fe?null:te.from-y,te.to==null?null:te.to-y))}}return x}function ai(a,y){if(y.full)return null;var b=dn(a,y.from.line)&&Mt(a,y.from.line).markedSpans,x=dn(a,y.to.line)&&Mt(a,y.to.line).markedSpans;if(!b&&!x)return null;var E=y.from.ch,te=y.to.ch,oe=en(y.from,y.to)==0,ue=Fr(b,E,oe),fe=zr(x,te,oe),pe=y.text.length==1,Ue=Se(y.text).length+(pe?E:0);if(ue)for(var rt=0;rt<ue.length;++rt){var Rt=ue[rt];if(Rt.to==null){var At=dr(fe,Rt.marker);At?pe&&(Rt.to=At.to==null?null:At.to+Ue):Rt.to=E}}if(fe)for(var on=0;on<fe.length;++on){var xn=fe[on];if(xn.to!=null&&(xn.to+=Ue),xn.from==null){var Bn=dr(ue,xn.marker);Bn||(xn.from=Ue,pe&&(ue||(ue=[])).push(xn))}else xn.from+=Ue,pe&&(ue||(ue=[])).push(xn)}ue&&(ue=Ke(ue)),fe&&fe!=ue&&(fe=Ke(fe));var Hn=[ue];if(!pe){var qn=y.text.length-2,Wn;if(qn>0&&ue)for(var lr=0;lr<ue.length;++lr)ue[lr].to==null&&(Wn||(Wn=[])).push(new Zn(ue[lr].marker,null,null));for(var Ar=0;Ar<qn;++Ar)Hn.push(Wn);Hn.push(fe)}return Hn}function Ke(a){for(var y=0;y<a.length;++y){var b=a[y];b.from!=null&&b.from==b.to&&b.marker.clearWhenEmpty!==!1&&a.splice(y--,1)}return a.length?a:null}function Pt(a,y,b){var x=null;if(a.iter(y.line,b.line+1,function(At){if(At.markedSpans)for(var on=0;on<At.markedSpans.length;++on){var xn=At.markedSpans[on].marker;xn.readOnly&&(!x||Ge(x,xn)==-1)&&(x||(x=[])).push(xn)}}),!x)return null;for(var E=[{from:y,to:b}],te=0;te<x.length;++te)for(var oe=x[te],ue=oe.find(0),fe=0;fe<E.length;++fe){var pe=E[fe];if(!(en(pe.to,ue.from)<0||en(pe.from,ue.to)>0)){var Ue=[fe,1],rt=en(pe.from,ue.from),Rt=en(pe.to,ue.to);(rt<0||!oe.inclusiveLeft&&!rt)&&Ue.push({from:pe.from,to:ue.from}),(Rt>0||!oe.inclusiveRight&&!Rt)&&Ue.push({from:ue.to,to:pe.to}),E.splice.apply(E,Ue),fe+=Ue.length-3}}return E}function bt(a){var y=a.markedSpans;if(y){for(var b=0;b<y.length;++b)y[b].marker.detachLine(a);a.markedSpans=null}}function Dt(a,y){if(y){for(var b=0;b<y.length;++b)y[b].marker.attachLine(a);a.markedSpans=y}}function Zt(a){return a.inclusiveLeft?-1:0}function Ut(a){return a.inclusiveRight?1:0}function pn(a,y){var b=a.lines.length-y.lines.length;if(b!=0)return b;var x=a.find(),E=y.find(),te=en(x.from,E.from)||Zt(a)-Zt(y);if(te)return-te;var oe=en(x.to,E.to)||Ut(a)-Ut(y);return oe||y.id-a.id}function an(a,y){var b=Ir&&a.markedSpans,x;if(b)for(var E=void 0,te=0;te<b.length;++te)E=b[te],E.marker.collapsed&&(y?E.from:E.to)==null&&(!x||pn(x,E.marker)<0)&&(x=E.marker);return x}function qt(a){return an(a,!0)}function yt(a){return an(a,!1)}function Ft(a,y){var b=Ir&&a.markedSpans,x;if(b)for(var E=0;E<b.length;++E){var te=b[E];te.marker.collapsed&&(te.from==null||te.from<y)&&(te.to==null||te.to>y)&&(!x||pn(x,te.marker)<0)&&(x=te.marker)}return x}function Ot(a,y,b,x,E){var te=Mt(a,y),oe=Ir&&te.markedSpans;if(oe)for(var ue=0;ue<oe.length;++ue){var fe=oe[ue];if(fe.marker.collapsed){var pe=fe.marker.find(0),Ue=en(pe.from,b)||Zt(fe.marker)-Zt(E),rt=en(pe.to,x)||Ut(fe.marker)-Ut(E);if(!(Ue>=0&&rt<=0||Ue<=0&&rt>=0)&&(Ue<=0&&(fe.marker.inclusiveRight&&E.inclusiveLeft?en(pe.to,b)>=0:en(pe.to,b)>0)||Ue>=0&&(fe.marker.inclusiveRight&&E.inclusiveLeft?en(pe.from,x)<=0:en(pe.from,x)<0)))return!0}}}function It(a){for(var y;y=qt(a);)a=y.find(-1,!0).line;return a}function Yt(a){for(var y;y=yt(a);)a=y.find(1,!0).line;return a}function bn(a){for(var y,b;y=yt(a);)a=y.find(1,!0).line,(b||(b=[])).push(a);return b}function Qt(a,y){var b=Mt(a,y),x=It(b);return b==x?y:nt(x)}function zt(a,y){if(y>a.lastLine())return y;var b=Mt(a,y),x;if(!sn(a,b))return y;for(;x=yt(b);)b=x.find(1,!0).line;return nt(b)+1}function sn(a,y){var b=Ir&&y.markedSpans;if(b){for(var x=void 0,E=0;E<b.length;++E)if(x=b[E],!!x.marker.collapsed){if(x.from==null)return!0;if(!x.marker.widgetNode&&x.from==0&&x.marker.inclusiveLeft&&cn(a,y,x))return!0}}}function cn(a,y,b){if(b.to==null){var x=b.marker.find(1,!0);return cn(a,x.line,dr(x.line.markedSpans,b.marker))}if(b.marker.inclusiveRight&&b.to==y.text.length)return!0;for(var E=void 0,te=0;te<y.markedSpans.length;++te)if(E=y.markedSpans[te],E.marker.collapsed&&!E.marker.widgetNode&&E.from==b.to&&(E.to==null||E.to!=b.from)&&(E.marker.inclusiveLeft||b.marker.inclusiveRight)&&cn(a,y,E))return!0}function Nn(a){a=It(a);for(var y=0,b=a.parent,x=0;x<b.lines.length;++x){var E=b.lines[x];if(E==a)break;y+=E.height}for(var te=b.parent;te;b=te,te=b.parent)for(var oe=0;oe<te.children.length;++oe){var ue=te.children[oe];if(ue==b)break;y+=ue.height}return y}function Xn(a){if(a.height==0)return 0;for(var y=a.text.length,b,x=a;b=qt(x);){var E=b.find(0,!0);x=E.from.line,y+=E.from.ch-E.to.ch}for(x=a;b=yt(x);){var te=b.find(0,!0);y-=x.text.length-te.from.ch,x=te.to.line,y+=x.text.length-te.to.ch}return y}function On(a){var y=a.display,b=a.doc;y.maxLine=Mt(b,b.first),y.maxLineLength=Xn(y.maxLine),y.maxLineChanged=!0,b.iter(function(x){var E=Xn(x);E>y.maxLineLength&&(y.maxLineLength=E,y.maxLine=x)})}var hr=function(a,y,b){this.text=a,Dt(this,y),this.height=b?b(this):1};hr.prototype.lineNo=function(){return nt(this)},Ht(hr);function or(a,y,b,x){a.text=y,a.stateAfter&&(a.stateAfter=null),a.styles&&(a.styles=null),a.order!=null&&(a.order=null),bt(a),Dt(a,b);var E=x?x(a):1;E!=a.height&&ir(a,E)}function fr(a){a.parent=null,bt(a)}var yr={},vr={};function Tr(a,y){if(!a||/^\s*$/.test(a))return null;var b=y.addModeClass?vr:yr;return b[a]||(b[a]=a.replace(/\S+/g,"cm-$&"))}function br(a,y){var b=Ie("span",null,null,Ne?"padding-right: .1px":null),x={pre:Ie("pre",[b],"CodeMirror-line"),content:b,col:0,pos:0,cm:a,trailingSpace:!1,splitSpaces:a.getOption("lineWrapping")};y.measure={};for(var E=0;E<=(y.rest?y.rest.length:0);E++){var te=E?y.rest[E-1]:y.line,oe=void 0;x.pos=0,x.addToken=cr,kn(a.display.measure)&&(oe=se(te,a.doc.direction))&&(x.addToken=ar(x.addToken,oe)),x.map=[];var ue=y!=a.display.externalMeasured&&nt(te);er(te,x,Er(a,te,ue)),te.styleClasses&&(te.styleClasses.bgClass&&(x.bgClass=Kt(te.styleClasses.bgClass,x.bgClass||"")),te.styleClasses.textClass&&(x.textClass=Kt(te.styleClasses.textClass,x.textClass||""))),x.map.length==0&&x.map.push(0,0,x.content.appendChild(gr(a.display.measure))),E==0?(y.measure.map=x.map,y.measure.cache={}):((y.measure.maps||(y.measure.maps=[])).push(x.map),(y.measure.caches||(y.measure.caches=[])).push({}))}if(Ne){var fe=x.content.lastChild;(/\bcm-tab\b/.test(fe.className)||fe.querySelector&&fe.querySelector(".cm-tab"))&&(x.content.className="cm-tab-wrap-hack")}return ht(a,"renderLine",a,y.line,x.pre),x.pre.className&&(x.textClass=Kt(x.pre.className,x.textClass||"")),x}function kr(a){var y=Le("span","\u2022","cm-invalidchar");return y.title="\\u"+a.charCodeAt(0).toString(16),y.setAttribute("aria-label",y.title),y}function cr(a,y,b,x,E,te,oe){if(y){var ue=a.splitSpaces?Kn(y,a.trailingSpace):y,fe=a.cm.state.specialChars,pe=!1,Ue;if(!fe.test(y))a.col+=y.length,Ue=document.createTextNode(ue),a.map.push(a.pos,a.pos+y.length,Ue),Ce&&he<9&&(pe=!0),a.pos+=y.length;else{Ue=document.createDocumentFragment();for(var rt=0;;){fe.lastIndex=rt;var Rt=fe.exec(y),At=Rt?Rt.index-rt:y.length-rt;if(At){var on=document.createTextNode(ue.slice(rt,rt+At));Ce&&he<9?Ue.appendChild(Le("span",[on])):Ue.appendChild(on),a.map.push(a.pos,a.pos+At,on),a.col+=At,a.pos+=At}if(!Rt)break;rt+=At+1;var xn=void 0;if(Rt[0]==" "){var Bn=a.cm.options.tabSize,Hn=Bn-a.col%Bn;xn=Ue.appendChild(Le("span",De(Hn),"cm-tab")),xn.setAttribute("role","presentation"),xn.setAttribute("cm-text"," "),a.col+=Hn}else Rt[0]=="\r"||Rt[0]==`
|
|
`?(xn=Ue.appendChild(Le("span",Rt[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),xn.setAttribute("cm-text",Rt[0]),a.col+=1):(xn=a.cm.options.specialCharPlaceholder(Rt[0]),xn.setAttribute("cm-text",Rt[0]),Ce&&he<9?Ue.appendChild(Le("span",[xn])):Ue.appendChild(xn),a.col+=1);a.map.push(a.pos,a.pos+1,xn),a.pos++}}if(a.trailingSpace=ue.charCodeAt(y.length-1)==32,b||x||E||pe||te||oe){var qn=b||"";x&&(qn+=x),E&&(qn+=E);var Wn=Le("span",[Ue],qn,te);if(oe)for(var lr in oe)oe.hasOwnProperty(lr)&&lr!="style"&&lr!="class"&&Wn.setAttribute(lr,oe[lr]);return a.content.appendChild(Wn)}a.content.appendChild(Ue)}}function Kn(a,y){if(a.length>1&&!/ /.test(a))return a;for(var b=y,x="",E=0;E<a.length;E++){var te=a.charAt(E);te==" "&&b&&(E==a.length-1||a.charCodeAt(E+1)==32)&&(te="\xA0"),x+=te,b=te==" "}return x}function ar(a,y){return function(b,x,E,te,oe,ue,fe){E=E?E+" cm-force-border":"cm-force-border";for(var pe=b.pos,Ue=pe+x.length;;){for(var rt=void 0,Rt=0;Rt<y.length&&(rt=y[Rt],!(rt.to>pe&&rt.from<=pe));Rt++);if(rt.to>=Ue)return a(b,x,E,te,oe,ue,fe);a(b,x.slice(0,rt.to-pe),E,te,null,ue,fe),te=null,x=x.slice(rt.to-pe),pe=rt.to}}}function mr(a,y,b,x){var E=!x&&b.widgetNode;E&&a.map.push(a.pos,a.pos+y,E),!x&&a.cm.display.input.needsContentAttribute&&(E||(E=a.content.appendChild(document.createElement("span"))),E.setAttribute("cm-marker",b.id)),E&&(a.cm.display.input.setUneditable(E),a.content.appendChild(E)),a.pos+=y,a.trailingSpace=!1}function er(a,y,b){var x=a.markedSpans,E=a.text,te=0;if(!x){for(var oe=1;oe<b.length;oe+=2)y.addToken(y,E.slice(te,te=b[oe]),Tr(b[oe+1],y.cm.options));return}for(var ue=E.length,fe=0,pe=1,Ue="",rt,Rt,At=0,on,xn,Bn,Hn,qn;;){if(At==fe){on=xn=Bn=Rt="",qn=null,Hn=null,At=1/0;for(var Wn=[],lr=void 0,Ar=0;Ar<x.length;++Ar){var xr=x[Ar],jr=xr.marker;if(jr.type=="bookmark"&&xr.from==fe&&jr.widgetNode)Wn.push(jr);else if(xr.from<=fe&&(xr.to==null||xr.to>fe||jr.collapsed&&xr.to==fe&&xr.from==fe)){if(xr.to!=null&&xr.to!=fe&&At>xr.to&&(At=xr.to,xn=""),jr.className&&(on+=" "+jr.className),jr.css&&(Rt=(Rt?Rt+";":"")+jr.css),jr.startStyle&&xr.from==fe&&(Bn+=" "+jr.startStyle),jr.endStyle&&xr.to==At&&(lr||(lr=[])).push(jr.endStyle,xr.to),jr.title&&((qn||(qn={})).title=jr.title),jr.attributes)for(var ui in jr.attributes)(qn||(qn={}))[ui]=jr.attributes[ui];jr.collapsed&&(!Hn||pn(Hn.marker,jr)<0)&&(Hn=xr)}else xr.from>fe&&At>xr.from&&(At=xr.from)}if(lr)for(var Zi=0;Zi<lr.length;Zi+=2)lr[Zi+1]==At&&(xn+=" "+lr[Zi]);if(!Hn||Hn.from==fe)for(var Ci=0;Ci<Wn.length;++Ci)mr(y,0,Wn[Ci]);if(Hn&&(Hn.from||0)==fe){if(mr(y,(Hn.to==null?ue+1:Hn.to)-fe,Hn.marker,Hn.from==null),Hn.to==null)return;Hn.to==fe&&(Hn=!1)}}if(fe>=ue)break;for(var oa=Math.min(ue,At);;){if(Ue){var ea=fe+Ue.length;if(!Hn){var Li=ea>oa?Ue.slice(0,oa-fe):Ue;y.addToken(y,Li,rt?rt+on:on,Bn,fe+Li.length==At?xn:"",Rt,qn)}if(ea>=oa){Ue=Ue.slice(oa-fe),fe=oa;break}fe=ea,Bn=""}Ue=E.slice(te,te=b[pe++]),rt=Tr(b[pe++],y.cm.options)}}}function Dr(a,y,b){this.line=y,this.rest=bn(y),this.size=this.rest?nt(Se(this.rest))-b+1:1,this.node=this.text=null,this.hidden=sn(a,y)}function Lr(a,y,b){for(var x=[],E,te=y;te<b;te=E){var oe=new Dr(a.doc,Mt(a.doc,te),te);E=te+oe.size,x.push(oe)}return x}var Qr=null;function Ni(a){Qr?Qr.ops.push(a):a.ownsGroup=Qr={ops:[a],delayedCallbacks:[]}}function wi(a){var y=a.delayedCallbacks,b=0;do{for(;b<y.length;b++)y[b].call(null);for(var x=0;x<a.ops.length;x++){var E=a.ops[x];if(E.cursorActivityHandlers)for(;E.cursorActivityCalled<E.cursorActivityHandlers.length;)E.cursorActivityHandlers[E.cursorActivityCalled++].call(null,E.cm)}}while(b<y.length)}function yi(a,y){var b=a.ownsGroup;if(b)try{wi(b)}finally{Qr=null,y(b)}}var Pi=null;function qr(a,y){var b=gt(a,y);if(b.length){var x=Array.prototype.slice.call(arguments,2),E;Qr?E=Qr.delayedCallbacks:Pi?E=Pi:(E=Pi=[],setTimeout(Xr,0));for(var te=function(ue){E.push(function(){return b[ue].apply(null,x)})},oe=0;oe<b.length;++oe)te(oe)}}function Xr(){var a=Pi;Pi=null;for(var y=0;y<a.length;++y)a[y]()}function ti(a,y,b,x){for(var E=0;E<y.changes.length;E++){var te=y.changes[E];te=="text"?oi(a,y):te=="gutter"?Cr(a,y,b,x):te=="class"?nr(a,y):te=="widget"&&wr(a,y,x)}y.changes=null}function ki(a){return a.node==a.text&&(a.node=Le("div",null,null,"position: relative"),a.text.parentNode&&a.text.parentNode.replaceChild(a.node,a.text),a.node.appendChild(a.text),Ce&&he<8&&(a.node.style.zIndex=2)),a.node}function ii(a,y){var b=y.bgClass?y.bgClass+" "+(y.line.bgClass||""):y.line.bgClass;if(b&&(b+=" CodeMirror-linebackground"),y.background)b?y.background.className=b:(y.background.parentNode.removeChild(y.background),y.background=null);else if(b){var x=ki(y);y.background=x.insertBefore(Le("div",null,b),x.firstChild),a.display.input.setUneditable(y.background)}}function si(a,y){var b=a.display.externalMeasured;return b&&b.line==y.line?(a.display.externalMeasured=null,y.measure=b.measure,b.built):br(a,y)}function oi(a,y){var b=y.text.className,x=si(a,y);y.text==y.node&&(y.node=x.pre),y.text.parentNode.replaceChild(x.pre,y.text),y.text=x.pre,x.bgClass!=y.bgClass||x.textClass!=y.textClass?(y.bgClass=x.bgClass,y.textClass=x.textClass,nr(a,y)):b&&(y.text.className=b)}function nr(a,y){ii(a,y),y.line.wrapClass?ki(y).className=y.line.wrapClass:y.node!=y.text&&(y.node.className="");var b=y.textClass?y.textClass+" "+(y.line.textClass||""):y.line.textClass;y.text.className=b||""}function Cr(a,y,b,x){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 E=ki(y);y.gutterBackground=Le("div",null,"CodeMirror-gutter-background "+y.line.gutterClass,"left: "+(a.options.fixedGutter?x.fixedPos:-x.gutterTotalWidth)+"px; width: "+x.gutterTotalWidth+"px"),a.display.input.setUneditable(y.gutterBackground),E.insertBefore(y.gutterBackground,y.text)}var te=y.line.gutterMarkers;if(a.options.lineNumbers||te){var oe=ki(y),ue=y.gutter=Le("div",null,"CodeMirror-gutter-wrapper","left: "+(a.options.fixedGutter?x.fixedPos:-x.gutterTotalWidth)+"px");if(a.display.input.setUneditable(ue),oe.insertBefore(ue,y.text),y.line.gutterClass&&(ue.className+=" "+y.line.gutterClass),a.options.lineNumbers&&(!te||!te["CodeMirror-linenumbers"])&&(y.lineNumber=ue.appendChild(Le("div",Xt(a.options,b),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+x.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+a.display.lineNumInnerWidth+"px"))),te)for(var fe=0;fe<a.display.gutterSpecs.length;++fe){var pe=a.display.gutterSpecs[fe].className,Ue=te.hasOwnProperty(pe)&&te[pe];Ue&&ue.appendChild(Le("div",[Ue],"CodeMirror-gutter-elt","left: "+x.gutterLeft[pe]+"px; width: "+x.gutterWidth[pe]+"px"))}}}function wr(a,y,b){y.alignable&&(y.alignable=null);for(var x=Re("CodeMirror-linewidget"),E=y.node.firstChild,te=void 0;E;E=te)te=E.nextSibling,x.test(E.className)&&y.node.removeChild(E);Kr(a,y,b)}function Sr(a,y,b,x){var E=si(a,y);return y.text=y.node=E.pre,E.bgClass&&(y.bgClass=E.bgClass),E.textClass&&(y.textClass=E.textClass),nr(a,y),Cr(a,y,b,x),Kr(a,y,x),y.node}function Kr(a,y,b){if($r(a,y.line,y,b,!0),y.rest)for(var x=0;x<y.rest.length;x++)$r(a,y.rest[x],y,b,!1)}function $r(a,y,b,x,E){if(y.widgets)for(var te=ki(b),oe=0,ue=y.widgets;oe<ue.length;++oe){var fe=ue[oe],pe=Le("div",[fe.node],"CodeMirror-linewidget"+(fe.className?" "+fe.className:""));fe.handleMouseEvents||pe.setAttribute("cm-ignore-events","true"),Ki(fe,pe,b,x),a.display.input.setUneditable(pe),E&&fe.above?te.insertBefore(pe,b.gutter||b.text):te.appendChild(pe),qr(fe,"redraw")}}function Ki(a,y,b,x){if(a.noHScroll){(b.alignable||(b.alignable=[])).push(y);var E=x.wrapperWidth;y.style.left=x.fixedPos+"px",a.coverGutter||(E-=x.gutterTotalWidth,y.style.paddingLeft=x.gutterTotalWidth+"px"),y.style.width=E+"px"}a.coverGutter&&(y.style.zIndex=5,y.style.position="relative",a.noHScroll||(y.style.marginLeft=-x.gutterTotalWidth+"px"))}function di(a){if(a.height!=null)return a.height;var y=a.doc.cm;if(!y)return 0;if(!Je(document.body,a.node)){var b="position: relative;";a.coverGutter&&(b+="margin-left: -"+y.display.gutters.offsetWidth+"px;"),a.noHScroll&&(b+="width: "+y.display.wrapper.clientWidth+"px;"),ye(y.display.measure,Le("div",[a.node],null,b))}return a.height=a.node.parentNode.offsetHeight}function ci(a,y){for(var b=Fn(y);b!=a.wrapper;b=b.parentNode)if(!b||b.nodeType==1&&b.getAttribute("cm-ignore-events")=="true"||b.parentNode==a.sizer&&b!=a.mover)return!0}function Br(a){return a.lineSpace.offsetTop}function xi(a){return a.mover.offsetHeight-a.lineSpace.offsetHeight}function Ui(a){if(a.cachedPaddingH)return a.cachedPaddingH;var y=ye(a.measure,Le("pre","x","CodeMirror-line-like")),b=window.getComputedStyle?window.getComputedStyle(y):y.currentStyle,x={left:parseInt(b.paddingLeft),right:parseInt(b.paddingRight)};return!isNaN(x.left)&&!isNaN(x.right)&&(a.cachedPaddingH=x),x}function ni(a){return vt-a.display.nativeBarWidth}function la(a){return a.display.scroller.clientWidth-ni(a)-a.display.barWidth}function Vi(a){return a.display.scroller.clientHeight-ni(a)-a.display.barHeight}function Ji(a,y,b){var x=a.options.lineWrapping,E=x&&la(a);if(!y.measure.heights||x&&y.measure.width!=E){var te=y.measure.heights=[];if(x){y.measure.width=E;for(var oe=y.text.firstChild.getClientRects(),ue=0;ue<oe.length-1;ue++){var fe=oe[ue],pe=oe[ue+1];Math.abs(fe.bottom-pe.bottom)>2&&te.push((fe.bottom+pe.top)/2-b.top)}}te.push(b.bottom-b.top)}}function vi(a,y,b){if(a.line==y)return{map:a.measure.map,cache:a.measure.cache};for(var x=0;x<a.rest.length;x++)if(a.rest[x]==y)return{map:a.measure.maps[x],cache:a.measure.caches[x]};for(var E=0;E<a.rest.length;E++)if(nt(a.rest[E])>b)return{map:a.measure.maps[E],cache:a.measure.caches[E],before:!0}}function no(a,y){y=It(y);var b=nt(y),x=a.display.externalMeasured=new Dr(a.doc,y,b);x.lineN=b;var E=x.built=br(a,x);return x.text=E.pre,ye(a.display.lineMeasure,E.pre),x}function Xa(a,y,b,x){return ra(a,va(a,y),b,x)}function pa(a,y){if(y>=a.display.viewFrom&&y<a.display.viewTo)return a.display.view[Aa(a,y)];var b=a.display.externalMeasured;if(b&&y>=b.lineN&&y<b.lineN+b.size)return b}function va(a,y){var b=nt(y),x=pa(a,b);x&&!x.text?x=null:x&&x.changes&&(ti(a,x,b,ua(a)),a.curOp.forceUpdate=!0),x||(x=no(a,y));var E=vi(x,y,b);return{line:y,view:x,rect:null,map:E.map,cache:E.cache,before:E.before,hasHeights:!1}}function ra(a,y,b,x,E){y.before&&(b=-1);var te=b+(x||""),oe;return y.cache.hasOwnProperty(te)?oe=y.cache[te]:(y.rect||(y.rect=y.view.text.getBoundingClientRect()),y.hasHeights||(Ji(a,y.view,y.rect),y.hasHeights=!0),oe=ao(a,y,b,x),oe.bogus||(y.cache[te]=oe)),{left:oe.left,right:oe.right,top:E?oe.rtop:oe.top,bottom:E?oe.rbottom:oe.bottom}}var Sa={left:0,right:0,top:0,bottom:0};function ro(a,y,b){for(var x,E,te,oe,ue,fe,pe=0;pe<a.length;pe+=3)if(ue=a[pe],fe=a[pe+1],y<ue?(E=0,te=1,oe="left"):y<fe?(E=y-ue,te=E+1):(pe==a.length-3||y==fe&&a[pe+3]>y)&&(te=fe-ue,E=te-1,y>=fe&&(oe="right")),E!=null){if(x=a[pe+2],ue==fe&&b==(x.insertLeft?"left":"right")&&(oe=b),b=="left"&&E==0)for(;pe&&a[pe-2]==a[pe-3]&&a[pe-1].insertLeft;)x=a[(pe-=3)+2],oe="left";if(b=="right"&&E==fe-ue)for(;pe<a.length-3&&a[pe+3]==a[pe+4]&&!a[pe+5].insertLeft;)x=a[(pe+=3)+2],oe="right";break}return{node:x,start:E,end:te,collapse:oe,coverStart:ue,coverEnd:fe}}function io(a,y){var b=Sa;if(y=="left")for(var x=0;x<a.length&&(b=a[x]).left==b.right;x++);else for(var E=a.length-1;E>=0&&(b=a[E]).left==b.right;E--);return b}function ao(a,y,b,x){var E=ro(y.map,b,x),te=E.node,oe=E.start,ue=E.end,fe=E.collapse,pe;if(te.nodeType==3){for(var Ue=0;Ue<4;Ue++){for(;oe&&ct(y.line.text.charAt(E.coverStart+oe));)--oe;for(;E.coverStart+ue<E.coverEnd&&ct(y.line.text.charAt(E.coverStart+ue));)++ue;if(Ce&&he<9&&oe==0&&ue==E.coverEnd-E.coverStart?pe=te.parentNode.getBoundingClientRect():pe=io(Me(te,oe,ue).getClientRects(),x),pe.left||pe.right||oe==0)break;ue=oe,oe=oe-1,fe="right"}Ce&&he<11&&(pe=Oa(a.display.measure,pe))}else{oe>0&&(fe=x="right");var rt;a.options.lineWrapping&&(rt=te.getClientRects()).length>1?pe=rt[x=="right"?rt.length-1:0]:pe=te.getBoundingClientRect()}if(Ce&&he<9&&!oe&&(!pe||!pe.left&&!pe.right)){var Rt=te.parentNode.getClientRects()[0];Rt?pe={left:Rt.left,right:Rt.left+Qi(a.display),top:Rt.top,bottom:Rt.bottom}:pe=Sa}for(var At=pe.top-y.rect.top,on=pe.bottom-y.rect.top,xn=(At+on)/2,Bn=y.view.measure.heights,Hn=0;Hn<Bn.length-1&&!(xn<Bn[Hn]);Hn++);var qn=Hn?Bn[Hn-1]:0,Wn=Bn[Hn],lr={left:(fe=="right"?pe.right:pe.left)-y.rect.left,right:(fe=="left"?pe.left:pe.right)-y.rect.left,top:qn,bottom:Wn};return!pe.left&&!pe.right&&(lr.bogus=!0),a.options.singleCursorHeightPerLine||(lr.rtop=At,lr.rbottom=on),lr}function Oa(a,y){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!tn(a))return y;var b=screen.logicalXDPI/screen.deviceXDPI,x=screen.logicalYDPI/screen.deviceYDPI;return{left:y.left*b,right:y.right*b,top:y.top*x,bottom:y.bottom*x}}function Ja(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 Za(a){a.display.externalMeasure=null,Nt(a.display.lineMeasure);for(var y=0;y<a.display.view.length;y++)Ja(a.display.view[y])}function Ea(a){Za(a),a.display.cachedCharWidth=a.display.cachedTextHeight=a.display.cachedPaddingH=null,a.options.lineWrapping||(a.display.maxLineChanged=!0),a.display.lineNumChars=null}function Qa(){return we&&Pe?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function oo(){return we&&Pe?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function _a(a){var y=0;if(a.widgets)for(var b=0;b<a.widgets.length;++b)a.widgets[b].above&&(y+=di(a.widgets[b]));return y}function ka(a,y,b,x,E){if(!E){var te=_a(y);b.top+=te,b.bottom+=te}if(x=="line")return b;x||(x="local");var oe=Nn(y);if(x=="local"?oe+=Br(a.display):oe-=a.display.viewOffset,x=="page"||x=="window"){var ue=a.display.lineSpace.getBoundingClientRect();oe+=ue.top+(x=="window"?0:oo());var fe=ue.left+(x=="window"?0:Qa());b.left+=fe,b.right+=fe}return b.top+=oe,b.bottom+=oe,b}function Da(a,y,b){if(b=="div")return y;var x=y.left,E=y.top;if(b=="page")x-=Qa(),E-=oo();else if(b=="local"||!b){var te=a.display.sizer.getBoundingClientRect();x+=te.left,E+=te.top}var oe=a.display.lineSpace.getBoundingClientRect();return{left:x-oe.left,top:E-oe.top}}function Hi(a,y,b,x,E){return x||(x=Mt(a.doc,y.line)),ka(a,x,Xa(a,x,y.ch,E),b)}function fi(a,y,b,x,E,te){x=x||Mt(a.doc,y.line),E||(E=va(a,x));function oe(on,xn){var Bn=ra(a,E,on,xn?"right":"left",te);return xn?Bn.left=Bn.right:Bn.right=Bn.left,ka(a,x,Bn,b)}var ue=se(x,a.doc.direction),fe=y.ch,pe=y.sticky;if(fe>=x.text.length?(fe=x.text.length,pe="before"):fe<=0&&(fe=0,pe="after"),!ue)return oe(pe=="before"?fe-1:fe,pe=="before");function Ue(on,xn,Bn){var Hn=ue[xn],qn=Hn.level==1;return oe(Bn?on-1:on,qn!=Bn)}var rt=z(ue,fe,pe),Rt=ee,At=Ue(fe,rt,pe=="before");return Rt!=null&&(At.other=Ue(fe,Rt,pe!="before")),At}function Wr(a,y){var b=0;y=nn(a.doc,y),a.options.lineWrapping||(b=Qi(a.display)*y.ch);var x=Mt(a.doc,y.line),E=Nn(x)+Br(a.display);return{left:b,right:b,top:E,bottom:E+x.height}}function Rr(a,y,b,x,E){var te=mt(a,y,b);return te.xRel=E,x&&(te.outside=x),te}function mi(a,y,b){var x=a.doc;if(b+=a.display.viewOffset,b<0)return Rr(x.first,0,null,-1,-1);var E=ot(x,b),te=x.first+x.size-1;if(E>te)return Rr(x.first+x.size-1,Mt(x,te).text.length,null,1,1);y<0&&(y=0);for(var oe=Mt(x,E);;){var ue=sa(a,oe,E,y,b),fe=Ft(oe,ue.ch+(ue.xRel>0||ue.outside>0?1:0));if(!fe)return ue;var pe=fe.find(1);if(pe.line==E)return pe;oe=Mt(x,E=pe.line)}}function hi(a,y,b,x){x-=_a(y);var E=y.text.length,te=Wt(function(oe){return ra(a,b,oe-1).bottom<=x},E,0);return E=Wt(function(oe){return ra(a,b,oe).top>x},te,E),{begin:te,end:E}}function bi(a,y,b,x){b||(b=va(a,y));var E=ka(a,y,ra(a,b,x),"line").top;return hi(a,y,b,E)}function Di(a,y,b,x){return a.bottom<=b?!1:a.top>b?!0:(x?a.left:a.right)>y}function sa(a,y,b,x,E){E-=Nn(y);var te=va(a,y),oe=_a(y),ue=0,fe=y.text.length,pe=!0,Ue=se(y,a.doc.direction);if(Ue){var rt=(a.options.lineWrapping?ma:ia)(a,y,b,te,Ue,x,E);pe=rt.level!=1,ue=pe?rt.from:rt.to-1,fe=pe?rt.to:rt.from-1}var Rt=null,At=null,on=Wt(function(Ar){var xr=ra(a,te,Ar);return xr.top+=oe,xr.bottom+=oe,Di(xr,x,E,!1)?(xr.top<=E&&xr.left<=x&&(Rt=Ar,At=xr),!0):!1},ue,fe),xn,Bn,Hn=!1;if(At){var qn=x-At.left<At.right-x,Wn=qn==pe;on=Rt+(Wn?0:1),Bn=Wn?"after":"before",xn=qn?At.left:At.right}else{!pe&&(on==fe||on==ue)&&on++,Bn=on==0?"after":on==y.text.length?"before":ra(a,te,on-(pe?1:0)).bottom+oe<=E==pe?"after":"before";var lr=fi(a,mt(b,on,Bn),"line",y,te);xn=lr.left,Hn=E<lr.top?-1:E>=lr.bottom?1:0}return on=jt(y.text,on,1),Rr(b,on,Bn,Hn,x-xn)}function ia(a,y,b,x,E,te,oe){var ue=Wt(function(rt){var Rt=E[rt],At=Rt.level!=1;return Di(fi(a,mt(b,At?Rt.to:Rt.from,At?"before":"after"),"line",y,x),te,oe,!0)},0,E.length-1),fe=E[ue];if(ue>0){var pe=fe.level!=1,Ue=fi(a,mt(b,pe?fe.from:fe.to,pe?"after":"before"),"line",y,x);Di(Ue,te,oe,!0)&&Ue.top>oe&&(fe=E[ue-1])}return fe}function ma(a,y,b,x,E,te,oe){var ue=hi(a,y,x,oe),fe=ue.begin,pe=ue.end;/\s/.test(y.text.charAt(pe-1))&&pe--;for(var Ue=null,rt=null,Rt=0;Rt<E.length;Rt++){var At=E[Rt];if(!(At.from>=pe||At.to<=fe)){var on=At.level!=1,xn=ra(a,x,on?Math.min(pe,At.to)-1:Math.max(fe,At.from)).right,Bn=xn<te?te-xn+1e9:xn-te;(!Ue||rt>Bn)&&(Ue=At,rt=Bn)}}return Ue||(Ue=E[E.length-1]),Ue.from<fe&&(Ue={from:fe,to:Ue.to,level:Ue.level}),Ue.to>pe&&(Ue={from:Ue.from,to:pe,level:Ue.level}),Ue}var pi;function Ti(a){if(a.cachedTextHeight!=null)return a.cachedTextHeight;if(pi==null){pi=Le("pre",null,"CodeMirror-line-like");for(var y=0;y<49;++y)pi.appendChild(document.createTextNode("x")),pi.appendChild(Le("br"));pi.appendChild(document.createTextNode("x"))}ye(a.measure,pi);var b=pi.offsetHeight/50;return b>3&&(a.cachedTextHeight=b),Nt(a.measure),b||1}function Qi(a){if(a.cachedCharWidth!=null)return a.cachedCharWidth;var y=Le("span","xxxxxxxxxx"),b=Le("pre",[y],"CodeMirror-line-like");ye(a.measure,b);var x=y.getBoundingClientRect(),E=(x.right-x.left)/10;return E>2&&(a.cachedCharWidth=E),E||10}function ua(a){for(var y=a.display,b={},x={},E=y.gutters.clientLeft,te=y.gutters.firstChild,oe=0;te;te=te.nextSibling,++oe){var ue=a.display.gutterSpecs[oe].className;b[ue]=te.offsetLeft+te.clientLeft+E,x[ue]=te.clientWidth}return{fixedPos:qa(y),gutterTotalWidth:y.gutters.offsetWidth,gutterLeft:b,gutterWidth:x,wrapperWidth:y.wrapper.clientWidth}}function qa(a){return a.scroller.getBoundingClientRect().left-a.sizer.getBoundingClientRect().left}function So(a){var y=Ti(a.display),b=a.options.lineWrapping,x=b&&Math.max(5,a.display.scroller.clientWidth/Qi(a.display)-3);return function(E){if(sn(a.doc,E))return 0;var te=0;if(E.widgets)for(var oe=0;oe<E.widgets.length;oe++)E.widgets[oe].height&&(te+=E.widgets[oe].height);return b?te+(Math.ceil(E.text.length/x)||1)*y:te+y}}function Eo(a){var y=a.doc,b=So(a);y.iter(function(x){var E=b(x);E!=x.height&&ir(x,E)})}function ba(a,y,b,x){var E=a.display;if(!b&&Fn(y).getAttribute("cm-not-content")=="true")return null;var te,oe,ue=E.lineSpace.getBoundingClientRect();try{te=y.clientX-ue.left,oe=y.clientY-ue.top}catch(rt){return null}var fe=mi(a,te,oe),pe;if(x&&fe.xRel>0&&(pe=Mt(a.doc,fe.line).text).length==fe.ch){var Ue=ve(pe,pe.length,a.options.tabSize)-pe.length;fe=mt(fe.line,Math.max(0,Math.round((te-Ui(a.display).left)/Qi(a.display))-Ue))}return fe}function Aa(a,y){if(y>=a.display.viewTo||(y-=a.display.viewFrom,y<0))return null;for(var b=a.display.view,x=0;x<b.length;x++)if(y-=b[x].size,y<0)return x}function Wi(a,y,b,x){y==null&&(y=a.doc.first),b==null&&(b=a.doc.first+a.doc.size),x||(x=0);var E=a.display;if(x&&b<E.viewTo&&(E.updateLineNumbers==null||E.updateLineNumbers>y)&&(E.updateLineNumbers=y),a.curOp.viewChanged=!0,y>=E.viewTo)Ir&&Qt(a.doc,y)<E.viewTo&&qi(a);else if(b<=E.viewFrom)Ir&&zt(a.doc,b+x)>E.viewFrom?qi(a):(E.viewFrom+=x,E.viewTo+=x);else if(y<=E.viewFrom&&b>=E.viewTo)qi(a);else if(y<=E.viewFrom){var te=lo(a,b,b+x,1);te?(E.view=E.view.slice(te.index),E.viewFrom=te.lineN,E.viewTo+=x):qi(a)}else if(b>=E.viewTo){var oe=lo(a,y,y,-1);oe?(E.view=E.view.slice(0,oe.index),E.viewTo=oe.lineN):qi(a)}else{var ue=lo(a,y,y,-1),fe=lo(a,b,b+x,1);ue&&fe?(E.view=E.view.slice(0,ue.index).concat(Lr(a,ue.lineN,fe.lineN)).concat(E.view.slice(fe.index)),E.viewTo+=x):qi(a)}var pe=E.externalMeasured;pe&&(b<pe.lineN?pe.lineN+=x:y<pe.lineN+pe.size&&(E.externalMeasured=null))}function ca(a,y,b){a.curOp.viewChanged=!0;var x=a.display,E=a.display.externalMeasured;if(E&&y>=E.lineN&&y<E.lineN+E.size&&(x.externalMeasured=null),!(y<x.viewFrom||y>=x.viewTo)){var te=x.view[Aa(a,y)];if(te.node!=null){var oe=te.changes||(te.changes=[]);Ge(oe,b)==-1&&oe.push(b)}}}function qi(a){a.display.viewFrom=a.display.viewTo=a.doc.first,a.display.view=[],a.display.viewOffset=0}function lo(a,y,b,x){var E=Aa(a,y),te,oe=a.display.view;if(!Ir||b==a.doc.first+a.doc.size)return{index:E,lineN:b};for(var ue=a.display.viewFrom,fe=0;fe<E;fe++)ue+=oe[fe].size;if(ue!=y){if(x>0){if(E==oe.length-1)return null;te=ue+oe[E].size-y,E++}else te=ue-y;y+=te,b+=te}for(;Qt(a.doc,b)!=b;){if(E==(x<0?0:oe.length-1))return null;b+=x*oe[E-(x<0?1:0)].size,E+=x}return{index:E,lineN:b}}function Qo(a,y,b){var x=a.display,E=x.view;E.length==0||y>=x.viewTo||b<=x.viewFrom?(x.view=Lr(a,y,b),x.viewFrom=y):(x.viewFrom>y?x.view=Lr(a,y,x.viewFrom).concat(x.view):x.viewFrom<y&&(x.view=x.view.slice(Aa(a,y))),x.viewFrom=y,x.viewTo<b?x.view=x.view.concat(Lr(a,x.viewTo,b)):x.viewTo>b&&(x.view=x.view.slice(0,Aa(a,b)))),x.viewTo=b}function qo(a){for(var y=a.display.view,b=0,x=0;x<y.length;x++){var E=y[x];!E.hidden&&(!E.node||E.changes)&&++b}return b}function Ha(a){a.display.input.showSelection(a.display.input.prepareSelection())}function $o(a,y){y===void 0&&(y=!0);for(var b=a.doc,x={},E=x.cursors=document.createDocumentFragment(),te=x.selection=document.createDocumentFragment(),oe=0;oe<b.sel.ranges.length;oe++)if(!(!y&&oe==b.sel.primIndex)){var ue=b.sel.ranges[oe];if(!(ue.from().line>=a.display.viewTo||ue.to().line<a.display.viewFrom)){var fe=ue.empty();(fe||a.options.showCursorWhenSelecting)&&ko(a,ue.head,E),fe||el(a,ue,te)}}return x}function ko(a,y,b){var x=fi(a,y,"div",null,null,!a.options.singleCursorHeightPerLine),E=b.appendChild(Le("div","\xA0","CodeMirror-cursor"));if(E.style.left=x.left+"px",E.style.top=x.top+"px",E.style.height=Math.max(0,x.bottom-x.top)*a.options.cursorHeight+"px",x.other){var te=b.appendChild(Le("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));te.style.display="",te.style.left=x.other.left+"px",te.style.top=x.other.top+"px",te.style.height=(x.other.bottom-x.other.top)*.85+"px"}}function Na(a,y){return a.top-y.top||a.left-y.left}function el(a,y,b){var x=a.display,E=a.doc,te=document.createDocumentFragment(),oe=Ui(a.display),ue=oe.left,fe=Math.max(x.sizerWidth,la(a)-x.sizer.offsetLeft)-oe.right,pe=E.direction=="ltr";function Ue(Wn,lr,Ar,xr){lr<0&&(lr=0),lr=Math.round(lr),xr=Math.round(xr),te.appendChild(Le("div",null,"CodeMirror-selected","position: absolute; left: "+Wn+`px;
|
|
top: `+lr+"px; width: "+(Ar==null?fe-Wn:Ar)+`px;
|
|
height: `+(xr-lr)+"px"))}function rt(Wn,lr,Ar){var xr=Mt(E,Wn),jr=xr.text.length,ui,Zi;function Ci(Li,ta){return Hi(a,mt(Wn,Li),"div",xr,ta)}function oa(Li,ta,zi){var Ri=bi(a,xr,null,Li),Mi=ta=="ltr"==(zi=="after")?"left":"right",Ei=zi=="after"?Ri.begin:Ri.end-(/\s/.test(xr.text.charAt(Ri.end-1))?2:1);return Ci(Ei,Mi)[Mi]}var ea=se(xr,E.direction);return ae(ea,lr||0,Ar==null?jr:Ar,function(Li,ta,zi,Ri){var Mi=zi=="ltr",Ei=Ci(Li,Mi?"left":"right"),na=Ci(ta-1,Mi?"right":"left"),Co=lr==null&&Li==0,Ya=Ar==null&&ta==jr,Gi=Ri==0,wa=!ea||Ri==ea.length-1;if(na.top-Ei.top<=3){var _i=(pe?Co:Ya)&&Gi,Zl=(pe?Ya:Co)&&wa,Ia=_i?ue:(Mi?Ei:na).left,eo=Zl?fe:(Mi?na:Ei).right;Ue(Ia,Ei.top,eo-Ia,Ei.bottom)}else{var to,Xi,wo,_l;Mi?(to=pe&&Co&&Gi?ue:Ei.left,Xi=pe?fe:oa(Li,zi,"before"),wo=pe?ue:oa(ta,zi,"after"),_l=pe&&Ya&&wa?fe:na.right):(to=pe?oa(Li,zi,"before"):ue,Xi=!pe&&Co&&Gi?fe:Ei.right,wo=!pe&&Ya&&wa?ue:na.left,_l=pe?oa(ta,zi,"after"):fe),Ue(to,Ei.top,Xi-to,Ei.bottom),Ei.bottom<na.top&&Ue(ue,Ei.bottom,null,na.top),Ue(wo,na.top,_l-wo,na.bottom)}(!ui||Na(Ei,ui)<0)&&(ui=Ei),Na(na,ui)<0&&(ui=na),(!Zi||Na(Ei,Zi)<0)&&(Zi=Ei),Na(na,Zi)<0&&(Zi=na)}),{start:ui,end:Zi}}var Rt=y.from(),At=y.to();if(Rt.line==At.line)rt(Rt.line,Rt.ch,At.ch);else{var on=Mt(E,Rt.line),xn=Mt(E,At.line),Bn=It(on)==It(xn),Hn=rt(Rt.line,Rt.ch,Bn?on.text.length+1:null).end,qn=rt(At.line,Bn?0:null,At.ch).start;Bn&&(Hn.top<qn.top-2?(Ue(Hn.right,Hn.top,null,Hn.bottom),Ue(ue,qn.top,qn.left,qn.bottom)):Ue(Hn.right,Hn.top,qn.left-Hn.right,Hn.bottom)),Hn.bottom<qn.top&&Ue(ue,Hn.bottom,null,qn.top)}b.appendChild(te)}function Do(a){if(a.state.focused){var y=a.display;clearInterval(y.blinker);var b=!0;y.cursorDiv.style.visibility="",a.options.cursorBlinkRate>0?y.blinker=setInterval(function(){a.hasFocus()||Wa(a),y.cursorDiv.style.visibility=(b=!b)?"":"hidden"},a.options.cursorBlinkRate):a.options.cursorBlinkRate<0&&(y.cursorDiv.style.visibility="hidden")}}function Ao(a){a.state.focused||(a.display.input.focus(),Po(a))}function No(a){a.state.delayingBlurEvent=!0,setTimeout(function(){a.state.delayingBlurEvent&&(a.state.delayingBlurEvent=!1,Wa(a))},100)}function Po(a,y){a.state.delayingBlurEvent&&(a.state.delayingBlurEvent=!1),a.options.readOnly!="nocursor"&&(a.state.focused||(ht(a,"focus",a,y),a.state.focused=!0,et(a.display.wrapper,"CodeMirror-focused"),!a.curOp&&a.display.selForContextMenu!=a.doc.sel&&(a.display.input.reset(),Ne&&setTimeout(function(){return a.display.input.reset(!0)},20)),a.display.input.receivedFocus()),Do(a))}function Wa(a,y){a.state.delayingBlurEvent||(a.state.focused&&(ht(a,"blur",a,y),a.state.focused=!1,We(a.display.wrapper,"CodeMirror-focused")),clearInterval(a.display.blinker),setTimeout(function(){a.state.focused||(a.display.shift=!1)},150))}function so(a){for(var y=a.display,b=y.lineDiv.offsetTop,x=0;x<y.view.length;x++){var E=y.view[x],te=a.options.lineWrapping,oe=void 0,ue=0;if(!E.hidden){if(Ce&&he<8){var fe=E.node.offsetTop+E.node.offsetHeight;oe=fe-b,b=fe}else{var pe=E.node.getBoundingClientRect();oe=pe.bottom-pe.top,!te&&E.text.firstChild&&(ue=E.text.firstChild.getBoundingClientRect().right-pe.left-1)}var Ue=E.line.height-oe;if((Ue>.005||Ue<-.005)&&(ir(E.line,oe),Lo(E.line),E.rest))for(var rt=0;rt<E.rest.length;rt++)Lo(E.rest[rt]);if(ue>a.display.sizerWidth){var Rt=Math.ceil(ue/Qi(a.display));Rt>a.display.maxLineLength&&(a.display.maxLineLength=Rt,a.display.maxLine=E.line,a.display.maxLineChanged=!0)}}}}function Lo(a){if(a.widgets)for(var y=0;y<a.widgets.length;++y){var b=a.widgets[y],x=b.node.parentNode;x&&(b.height=x.offsetHeight)}}function Pa(a,y,b){var x=b&&b.top!=null?Math.max(0,b.top):a.scroller.scrollTop;x=Math.floor(x-Br(a));var E=b&&b.bottom!=null?b.bottom:x+a.wrapper.clientHeight,te=ot(y,x),oe=ot(y,E);if(b&&b.ensure){var ue=b.ensure.from.line,fe=b.ensure.to.line;ue<te?(te=ue,oe=ot(y,Nn(Mt(y,ue))+a.wrapper.clientHeight)):Math.min(fe,y.lastLine())>=oe&&(te=ot(y,Nn(Mt(y,fe))-a.wrapper.clientHeight),oe=fe)}return{from:te,to:Math.max(oe,te+1)}}function Mo(a,y){if(!Ze(a,"scrollCursorIntoView")){var b=a.display,x=b.sizer.getBoundingClientRect(),E=null;if(y.top+x.top<0?E=!0:y.bottom+x.top>(window.innerHeight||document.documentElement.clientHeight)&&(E=!1),E!=null&&!wt){var te=Le("div","\u200B",null,`position: absolute;
|
|
top: `+(y.top-b.viewOffset-Br(a.display))+`px;
|
|
height: `+(y.bottom-y.top+ni(a)+b.barHeight)+`px;
|
|
left: `+y.left+"px; width: "+Math.max(2,y.right-y.left)+"px;");a.display.lineSpace.appendChild(te),te.scrollIntoView(E),a.display.lineSpace.removeChild(te)}}}function To(a,y,b,x){x==null&&(x=0);var E;!a.options.lineWrapping&&y==b&&(y=y.ch?mt(y.line,y.sticky=="before"?y.ch-1:y.ch,"after"):y,b=y.sticky=="before"?mt(y.line,y.ch+1,"before"):y);for(var te=0;te<5;te++){var oe=!1,ue=fi(a,y),fe=!b||b==y?ue:fi(a,b);E={left:Math.min(ue.left,fe.left),top:Math.min(ue.top,fe.top)-x,right:Math.max(ue.left,fe.left),bottom:Math.max(ue.bottom,fe.bottom)+x};var pe=uo(a,E),Ue=a.doc.scrollTop,rt=a.doc.scrollLeft;if(pe.scrollTop!=null&&(Ma(a,pe.scrollTop),Math.abs(a.doc.scrollTop-Ue)>1&&(oe=!0)),pe.scrollLeft!=null&&(Ta(a,pe.scrollLeft),Math.abs(a.doc.scrollLeft-rt)>1&&(oe=!0)),!oe)break}return E}function tl(a,y){var b=uo(a,y);b.scrollTop!=null&&Ma(a,b.scrollTop),b.scrollLeft!=null&&Ta(a,b.scrollLeft)}function uo(a,y){var b=a.display,x=Ti(a.display);y.top<0&&(y.top=0);var E=a.curOp&&a.curOp.scrollTop!=null?a.curOp.scrollTop:b.scroller.scrollTop,te=Vi(a),oe={};y.bottom-y.top>te&&(y.bottom=y.top+te);var ue=a.doc.height+xi(b),fe=y.top<x,pe=y.bottom>ue-x;if(y.top<E)oe.scrollTop=fe?0:y.top;else if(y.bottom>E+te){var Ue=Math.min(y.top,(pe?ue:y.bottom)-te);Ue!=E&&(oe.scrollTop=Ue)}var rt=a.options.fixedGutter?0:b.gutters.offsetWidth,Rt=a.curOp&&a.curOp.scrollLeft!=null?a.curOp.scrollLeft:b.scroller.scrollLeft-rt,At=la(a)-b.gutters.offsetWidth,on=y.right-y.left>At;return on&&(y.right=y.left+At),y.left<10?oe.scrollLeft=0:y.left<Rt?oe.scrollLeft=Math.max(0,y.left+rt-(on?0:10)):y.right>At+Rt-3&&(oe.scrollLeft=y.right+(on?0:10)-At),oe}function co(a,y){y!=null&&(za(a),a.curOp.scrollTop=(a.curOp.scrollTop==null?a.doc.scrollTop:a.curOp.scrollTop)+y)}function La(a){za(a);var y=a.getCursor();a.curOp.scrollToPos={from:y,to:y,margin:a.options.cursorScrollMargin}}function $a(a,y,b){(y!=null||b!=null)&&za(a),y!=null&&(a.curOp.scrollLeft=y),b!=null&&(a.curOp.scrollTop=b)}function nl(a,y){za(a),a.curOp.scrollToPos=y}function za(a){var y=a.curOp.scrollToPos;if(y){a.curOp.scrollToPos=null;var b=Wr(a,y.from),x=Wr(a,y.to);Bo(a,b,x,y.margin)}}function Bo(a,y,b,x){var E=uo(a,{left:Math.min(y.left,b.left),top:Math.min(y.top,b.top)-x,right:Math.max(y.right,b.right),bottom:Math.max(y.bottom,b.bottom)+x});$a(a,E.scrollLeft,E.scrollTop)}function Ma(a,y){Math.abs(a.doc.scrollTop-y)<2||(re||xl(a,{top:y}),Ro(a,y,!0),re&&xl(a),Fo(a,100))}function Ro(a,y,b){y=Math.max(0,Math.min(a.display.scroller.scrollHeight-a.display.scroller.clientHeight,y)),!(a.display.scroller.scrollTop==y&&!b)&&(a.doc.scrollTop=y,a.display.scrollbars.setScrollTop(y),a.display.scroller.scrollTop!=y&&(a.display.scroller.scrollTop=y))}function Ta(a,y,b,x){y=Math.max(0,Math.min(y,a.display.scroller.scrollWidth-a.display.scroller.clientWidth)),!((b?y==a.doc.scrollLeft:Math.abs(a.doc.scrollLeft-y)<2)&&!x)&&(a.doc.scrollLeft=y,Wl(a),a.display.scroller.scrollLeft!=y&&(a.display.scroller.scrollLeft=y),a.display.scrollbars.setScrollLeft(y))}function _r(a){var y=a.display,b=y.gutters.offsetWidth,x=Math.round(a.doc.height+xi(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?b:0,docHeight:x,scrollHeight:x+ni(a)+y.barHeight,nativeBarWidth:y.nativeBarWidth,gutterWidth:b}}var Hr=function(a,y,b){this.cm=b;var x=this.vert=Le("div",[Le("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),E=this.horiz=Le("div",[Le("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");x.tabIndex=E.tabIndex=-1,a(x),a(E),be(x,"scroll",function(){x.clientHeight&&y(x.scrollTop,"vertical")}),be(E,"scroll",function(){E.clientWidth&&y(E.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,Ce&&he<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Hr.prototype.update=function(a){var y=a.scrollWidth>a.clientWidth+1,b=a.scrollHeight>a.clientHeight+1,x=a.nativeBarWidth;if(b){this.vert.style.display="block",this.vert.style.bottom=y?x+"px":"0";var E=a.viewHeight-(y?x:0);this.vert.firstChild.style.height=Math.max(0,a.scrollHeight-a.clientHeight+E)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(y){this.horiz.style.display="block",this.horiz.style.right=b?x+"px":"0",this.horiz.style.left=a.barLeft+"px";var te=a.viewWidth-a.barLeft-(b?x:0);this.horiz.firstChild.style.width=Math.max(0,a.scrollWidth-a.clientWidth+te)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&a.clientHeight>0&&(x==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:b?x:0,bottom:y?x:0}},Hr.prototype.setScrollLeft=function(a){this.horiz.scrollLeft!=a&&(this.horiz.scrollLeft=a),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Hr.prototype.setScrollTop=function(a){this.vert.scrollTop!=a&&(this.vert.scrollTop=a),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Hr.prototype.zeroWidthHack=function(){var a=Ee&&!xe?"12px":"18px";this.horiz.style.height=this.vert.style.width=a,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new ce,this.disableVert=new ce},Hr.prototype.enableZeroWidthBar=function(a,y,b){a.style.pointerEvents="auto";function x(){var E=a.getBoundingClientRect(),te=b=="vert"?document.elementFromPoint(E.right-1,(E.top+E.bottom)/2):document.elementFromPoint((E.right+E.left)/2,E.bottom-1);te!=a?a.style.pointerEvents="none":y.set(1e3,x)}y.set(1e3,x)},Hr.prototype.clear=function(){var a=this.horiz.parentNode;a.removeChild(this.horiz),a.removeChild(this.vert)};var Si=function(){};Si.prototype.update=function(){return{bottom:0,right:0}},Si.prototype.setScrollLeft=function(){},Si.prototype.setScrollTop=function(){},Si.prototype.clear=function(){};function Fi(a,y){y||(y=_r(a));var b=a.display.barWidth,x=a.display.barHeight;Bi(a,y);for(var E=0;E<4&&b!=a.display.barWidth||x!=a.display.barHeight;E++)b!=a.display.barWidth&&a.options.lineWrapping&&so(a),Bi(a,_r(a)),b=a.display.barWidth,x=a.display.barHeight}function Bi(a,y){var b=a.display,x=b.scrollbars.update(y);b.sizer.style.paddingRight=(b.barWidth=x.right)+"px",b.sizer.style.paddingBottom=(b.barHeight=x.bottom)+"px",b.heightForcer.style.borderBottom=x.bottom+"px solid transparent",x.right&&x.bottom?(b.scrollbarFiller.style.display="block",b.scrollbarFiller.style.height=x.bottom+"px",b.scrollbarFiller.style.width=x.right+"px"):b.scrollbarFiller.style.display="",x.bottom&&a.options.coverGutterNextToScrollbar&&a.options.fixedGutter?(b.gutterFiller.style.display="block",b.gutterFiller.style.height=x.bottom+"px",b.gutterFiller.style.width=y.gutterWidth+"px"):b.gutterFiller.style.display=""}var Ba={native:Hr,null:Si};function Ca(a){a.display.scrollbars&&(a.display.scrollbars.clear(),a.display.scrollbars.addClass&&We(a.display.wrapper,a.display.scrollbars.addClass)),a.display.scrollbars=new Ba[a.options.scrollbarStyle](function(y){a.display.wrapper.insertBefore(y,a.display.scrollbarFiller),be(y,"mousedown",function(){a.state.focused&&setTimeout(function(){return a.display.input.focus()},0)}),y.setAttribute("cm-not-content","true")},function(y,b){b=="horizontal"?Ta(a,y):Ma(a,y)},a),a.display.scrollbars.addClass&&et(a.display.wrapper,a.display.scrollbars.addClass)}var Ra=0;function da(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:++Ra},Ni(a.curOp)}function ga(a){var y=a.curOp;y&&yi(y,function(b){for(var x=0;x<b.ops.length;x++)b.ops[x].cm.curOp=null;Us(b)})}function Us(a){for(var y=a.ops,b=0;b<y.length;b++)Vs(y[b]);for(var x=0;x<y.length;x++)Ys(y[x]);for(var E=0;E<y.length;E++)Xs(y[E]);for(var te=0;te<y.length;te++)Js(y[te]);for(var oe=0;oe<y.length;oe++)Qs(y[oe])}function Vs(a){var y=a.cm,b=y.display;$s(y),a.updateMaxLine&&On(y),a.mustUpdate=a.viewChanged||a.forceUpdate||a.scrollTop!=null||a.scrollToPos&&(a.scrollToPos.from.line<b.viewFrom||a.scrollToPos.to.line>=b.viewTo)||b.maxLineChanged&&y.options.lineWrapping,a.update=a.mustUpdate&&new rl(y,a.mustUpdate&&{top:a.scrollTop,ensure:a.scrollToPos},a.forceUpdate)}function Ys(a){a.updatedDisplay=a.mustUpdate&&yl(a.cm,a.update)}function Xs(a){var y=a.cm,b=y.display;a.updatedDisplay&&so(y),a.barMeasure=_r(y),b.maxLineChanged&&!y.options.lineWrapping&&(a.adjustWidthTo=Xa(y,b.maxLine,b.maxLine.text.length).left+3,y.display.sizerWidth=a.adjustWidthTo,a.barMeasure.scrollWidth=Math.max(b.scroller.clientWidth,b.sizer.offsetLeft+a.adjustWidthTo+ni(y)+y.display.barWidth),a.maxScrollLeft=Math.max(0,b.sizer.offsetLeft+a.adjustWidthTo-la(y))),(a.updatedDisplay||a.selectionChanged)&&(a.preparedSelection=b.input.prepareSelection())}function Js(a){var y=a.cm;a.adjustWidthTo!=null&&(y.display.sizer.style.minWidth=a.adjustWidthTo+"px",a.maxScrollLeft<y.doc.scrollLeft&&Ta(y,Math.min(y.display.scroller.scrollLeft,a.maxScrollLeft),!0),y.display.maxLineChanged=!1);var b=a.focus&&a.focus==_e();a.preparedSelection&&y.display.input.showSelection(a.preparedSelection,b),(a.updatedDisplay||a.startHeight!=y.doc.height)&&Fi(y,a.barMeasure),a.updatedDisplay&&Cl(y,a.barMeasure),a.selectionChanged&&Do(y),y.state.focused&&a.updateInput&&y.display.input.reset(a.typing),b&&Ao(a.cm)}function Qs(a){var y=a.cm,b=y.display,x=y.doc;if(a.updatedDisplay&&Hl(y,a.update),b.wheelStartX!=null&&(a.scrollTop!=null||a.scrollLeft!=null||a.scrollToPos)&&(b.wheelStartX=b.wheelStartY=null),a.scrollTop!=null&&Ro(y,a.scrollTop,a.forceScroll),a.scrollLeft!=null&&Ta(y,a.scrollLeft,!0,!0),a.scrollToPos){var E=To(y,nn(x,a.scrollToPos.from),nn(x,a.scrollToPos.to),a.scrollToPos.margin);Mo(y,E)}var te=a.maybeHiddenMarkers,oe=a.maybeUnhiddenMarkers;if(te)for(var ue=0;ue<te.length;++ue)te[ue].lines.length||ht(te[ue],"hide");if(oe)for(var fe=0;fe<oe.length;++fe)oe[fe].lines.length&&ht(oe[fe],"unhide");b.wrapper.offsetHeight&&(x.scrollTop=y.display.scroller.scrollTop),a.changeObjs&&ht(y,"changes",y,a.changeObjs),a.update&&a.update.finish()}function aa(a,y){if(a.curOp)return y();da(a);try{return y()}finally{ga(a)}}function Ii(a,y){return function(){if(a.curOp)return y.apply(a,arguments);da(a);try{return y.apply(a,arguments)}finally{ga(a)}}}function Yi(a){return function(){if(this.curOp)return a.apply(this,arguments);da(this);try{return a.apply(this,arguments)}finally{ga(this)}}}function Oi(a){return function(){var y=this.cm;if(!y||y.curOp)return a.apply(this,arguments);da(y);try{return a.apply(this,arguments)}finally{ga(y)}}}function Fo(a,y){a.doc.highlightFrontier<a.display.viewTo&&a.state.highlight.set(y,Ct(qs,a))}function qs(a){var y=a.doc;if(!(y.highlightFrontier>=a.display.viewTo)){var b=+new Date+a.options.workTime,x=Mr(a,y.highlightFrontier),E=[];y.iter(x.line,Math.min(y.first+y.size,a.display.viewTo+500),function(te){if(x.line>=a.display.viewFrom){var oe=te.styles,ue=te.text.length>a.options.maxHighlightLength?rr(y.mode,x.state):null,fe=Qn(a,te,x,!0);ue&&(x.state=ue),te.styles=fe.styles;var pe=te.styleClasses,Ue=fe.classes;Ue?te.styleClasses=Ue:pe&&(te.styleClasses=null);for(var rt=!oe||oe.length!=te.styles.length||pe!=Ue&&(!pe||!Ue||pe.bgClass!=Ue.bgClass||pe.textClass!=Ue.textClass),Rt=0;!rt&&Rt<oe.length;++Rt)rt=oe[Rt]!=te.styles[Rt];rt&&E.push(x.line),te.stateAfter=x.save(),x.nextLine()}else te.text.length<=a.options.maxHighlightLength&&Vn(a,te.text,x),te.stateAfter=x.line%5==0?x.save():null,x.nextLine();if(+new Date>b)return Fo(a,a.options.workDelay),!0}),y.highlightFrontier=x.line,y.modeFrontier=Math.max(y.modeFrontier,x.line),E.length&&aa(a,function(){for(var te=0;te<E.length;te++)ca(a,E[te],"text")})}}var rl=function(a,y,b){var x=a.display;this.viewport=y,this.visible=Pa(x,a.doc,y),this.editorIsHidden=!x.wrapper.offsetWidth,this.wrapperHeight=x.wrapper.clientHeight,this.wrapperWidth=x.wrapper.clientWidth,this.oldDisplayWidth=la(a),this.force=b,this.dims=ua(a),this.events=[]};rl.prototype.signal=function(a,y){Bt(a,y)&&this.events.push(arguments)},rl.prototype.finish=function(){for(var a=0;a<this.events.length;a++)ht.apply(null,this.events[a])};function $s(a){var y=a.display;!y.scrollbarsClipped&&y.scroller.offsetWidth&&(y.nativeBarWidth=y.scroller.offsetWidth-y.scroller.clientWidth,y.heightForcer.style.height=ni(a)+"px",y.sizer.style.marginBottom=-y.nativeBarWidth+"px",y.sizer.style.borderRightWidth=ni(a)+"px",y.scrollbarsClipped=!0)}function eu(a){if(a.hasFocus())return null;var y=_e();if(!y||!Je(a.display.lineDiv,y))return null;var b={activeElt:y};if(window.getSelection){var x=window.getSelection();x.anchorNode&&x.extend&&Je(a.display.lineDiv,x.anchorNode)&&(b.anchorNode=x.anchorNode,b.anchorOffset=x.anchorOffset,b.focusNode=x.focusNode,b.focusOffset=x.focusOffset)}return b}function tu(a){if(!(!a||!a.activeElt||a.activeElt==_e())&&(a.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(a.activeElt.nodeName)&&a.anchorNode&&Je(document.body,a.anchorNode)&&Je(document.body,a.focusNode))){var y=window.getSelection(),b=document.createRange();b.setEnd(a.anchorNode,a.anchorOffset),b.collapse(!1),y.removeAllRanges(),y.addRange(b),y.extend(a.focusNode,a.focusOffset)}}function yl(a,y){var b=a.display,x=a.doc;if(y.editorIsHidden)return qi(a),!1;if(!y.force&&y.visible.from>=b.viewFrom&&y.visible.to<=b.viewTo&&(b.updateLineNumbers==null||b.updateLineNumbers>=b.viewTo)&&b.renderedView==b.view&&qo(a)==0)return!1;zl(a)&&(qi(a),y.dims=ua(a));var E=x.first+x.size,te=Math.max(y.visible.from-a.options.viewportMargin,x.first),oe=Math.min(E,y.visible.to+a.options.viewportMargin);b.viewFrom<te&&te-b.viewFrom<20&&(te=Math.max(x.first,b.viewFrom)),b.viewTo>oe&&b.viewTo-oe<20&&(oe=Math.min(E,b.viewTo)),Ir&&(te=Qt(a.doc,te),oe=zt(a.doc,oe));var ue=te!=b.viewFrom||oe!=b.viewTo||b.lastWrapHeight!=y.wrapperHeight||b.lastWrapWidth!=y.wrapperWidth;Qo(a,te,oe),b.viewOffset=Nn(Mt(a.doc,b.viewFrom)),a.display.mover.style.top=b.viewOffset+"px";var fe=qo(a);if(!ue&&fe==0&&!y.force&&b.renderedView==b.view&&(b.updateLineNumbers==null||b.updateLineNumbers>=b.viewTo))return!1;var pe=eu(a);return fe>4&&(b.lineDiv.style.display="none"),nu(a,b.updateLineNumbers,y.dims),fe>4&&(b.lineDiv.style.display=""),b.renderedView=b.view,tu(pe),Nt(b.cursorDiv),Nt(b.selectionDiv),b.gutters.style.height=b.sizer.style.minHeight=0,ue&&(b.lastWrapHeight=y.wrapperHeight,b.lastWrapWidth=y.wrapperWidth,Fo(a,400)),b.updateLineNumbers=null,!0}function Hl(a,y){for(var b=y.viewport,x=!0;;x=!1){if(!x||!a.options.lineWrapping||y.oldDisplayWidth==la(a)){if(b&&b.top!=null&&(b={top:Math.min(a.doc.height+xi(a.display)-Vi(a),b.top)}),y.visible=Pa(a.display,a.doc,b),y.visible.from>=a.display.viewFrom&&y.visible.to<=a.display.viewTo)break}else x&&(y.visible=Pa(a.display,a.doc,b));if(!yl(a,y))break;so(a);var E=_r(a);Ha(a),Fi(a,E),Cl(a,E),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 xl(a,y){var b=new rl(a,y);if(yl(a,b)){so(a),Hl(a,b);var x=_r(a);Ha(a),Fi(a,x),Cl(a,x),b.finish()}}function nu(a,y,b){var x=a.display,E=a.options.lineNumbers,te=x.lineDiv,oe=te.firstChild;function ue(on){var xn=on.nextSibling;return Ne&&Ee&&a.display.currentWheelTarget==on?on.style.display="none":on.parentNode.removeChild(on),xn}for(var fe=x.view,pe=x.viewFrom,Ue=0;Ue<fe.length;Ue++){var rt=fe[Ue];if(!rt.hidden)if(!rt.node||rt.node.parentNode!=te){var Rt=Sr(a,rt,pe,b);te.insertBefore(Rt,oe)}else{for(;oe!=rt.node;)oe=ue(oe);var At=E&&y!=null&&y<=pe&&rt.lineNumber;rt.changes&&(Ge(rt.changes,"gutter")>-1&&(At=!1),ti(a,rt,pe,b)),At&&(Nt(rt.lineNumber),rt.lineNumber.appendChild(document.createTextNode(Xt(a.options,pe)))),oe=rt.node.nextSibling}pe+=rt.size}for(;oe;)oe=ue(oe)}function bl(a){var y=a.gutters.offsetWidth;a.sizer.style.marginLeft=y+"px"}function Cl(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+ni(a)+"px"}function Wl(a){var y=a.display,b=y.view;if(!(!y.alignWidgets&&(!y.gutters.firstChild||!a.options.fixedGutter))){for(var x=qa(y)-y.scroller.scrollLeft+a.doc.scrollLeft,E=y.gutters.offsetWidth,te=x+"px",oe=0;oe<b.length;oe++)if(!b[oe].hidden){a.options.fixedGutter&&(b[oe].gutter&&(b[oe].gutter.style.left=te),b[oe].gutterBackground&&(b[oe].gutterBackground.style.left=te));var ue=b[oe].alignable;if(ue)for(var fe=0;fe<ue.length;fe++)ue[fe].style.left=te}a.options.fixedGutter&&(y.gutters.style.left=x+E+"px")}}function zl(a){if(!a.options.lineNumbers)return!1;var y=a.doc,b=Xt(a.options,y.first+y.size-1),x=a.display;if(b.length!=x.lineNumChars){var E=x.measure.appendChild(Le("div",[Le("div",b)],"CodeMirror-linenumber CodeMirror-gutter-elt")),te=E.firstChild.offsetWidth,oe=E.offsetWidth-te;return x.lineGutter.style.width="",x.lineNumInnerWidth=Math.max(te,x.lineGutter.offsetWidth-oe)+1,x.lineNumWidth=x.lineNumInnerWidth+oe,x.lineNumChars=x.lineNumInnerWidth?b.length:-1,x.lineGutter.style.width=x.lineNumWidth+"px",bl(a.display),!0}return!1}function wl(a,y){for(var b=[],x=!1,E=0;E<a.length;E++){var te=a[E],oe=null;if(typeof te!="string"&&(oe=te.style,te=te.className),te=="CodeMirror-linenumbers")if(y)x=!0;else continue;b.push({className:te,style:oe})}return y&&!x&&b.push({className:"CodeMirror-linenumbers",style:null}),b}function Kl(a){var y=a.gutters,b=a.gutterSpecs;Nt(y),a.lineGutter=null;for(var x=0;x<b.length;++x){var E=b[x],te=E.className,oe=E.style,ue=y.appendChild(Le("div",null,"CodeMirror-gutter "+te));oe&&(ue.style.cssText=oe),te=="CodeMirror-linenumbers"&&(a.lineGutter=ue,ue.style.width=(a.lineNumWidth||1)+"px")}y.style.display=b.length?"":"none",bl(a)}function Io(a){Kl(a.display),Wi(a),Wl(a)}function ru(a,y,b,x){var E=this;this.input=b,E.scrollbarFiller=Le("div",null,"CodeMirror-scrollbar-filler"),E.scrollbarFiller.setAttribute("cm-not-content","true"),E.gutterFiller=Le("div",null,"CodeMirror-gutter-filler"),E.gutterFiller.setAttribute("cm-not-content","true"),E.lineDiv=Ie("div",null,"CodeMirror-code"),E.selectionDiv=Le("div",null,null,"position: relative; z-index: 1"),E.cursorDiv=Le("div",null,"CodeMirror-cursors"),E.measure=Le("div",null,"CodeMirror-measure"),E.lineMeasure=Le("div",null,"CodeMirror-measure"),E.lineSpace=Ie("div",[E.measure,E.lineMeasure,E.selectionDiv,E.cursorDiv,E.lineDiv],null,"position: relative; outline: none");var te=Ie("div",[E.lineSpace],"CodeMirror-lines");E.mover=Le("div",[te],null,"position: relative"),E.sizer=Le("div",[E.mover],"CodeMirror-sizer"),E.sizerWidth=null,E.heightForcer=Le("div",null,null,"position: absolute; height: "+vt+"px; width: 1px;"),E.gutters=Le("div",null,"CodeMirror-gutters"),E.lineGutter=null,E.scroller=Le("div",[E.sizer,E.heightForcer,E.gutters],"CodeMirror-scroll"),E.scroller.setAttribute("tabIndex","-1"),E.wrapper=Le("div",[E.scrollbarFiller,E.gutterFiller,E.scroller],"CodeMirror"),Ce&&he<8&&(E.gutters.style.zIndex=-1,E.scroller.style.paddingRight=0),!Ne&&!(re&&ke)&&(E.scroller.draggable=!0),a&&(a.appendChild?a.appendChild(E.wrapper):a(E.wrapper)),E.viewFrom=E.viewTo=y.first,E.reportedViewFrom=E.reportedViewTo=y.first,E.view=[],E.renderedView=null,E.externalMeasured=null,E.viewOffset=0,E.lastWrapHeight=E.lastWrapWidth=0,E.updateLineNumbers=null,E.nativeBarWidth=E.barHeight=E.barWidth=0,E.scrollbarsClipped=!1,E.lineNumWidth=E.lineNumInnerWidth=E.lineNumChars=null,E.alignWidgets=!1,E.cachedCharWidth=E.cachedTextHeight=E.cachedPaddingH=null,E.maxLine=null,E.maxLineLength=0,E.maxLineChanged=!1,E.wheelDX=E.wheelDY=E.wheelStartX=E.wheelStartY=null,E.shift=!1,E.selForContextMenu=null,E.activeTouch=null,E.gutterSpecs=wl(x.gutters,x.lineNumbers),Kl(E),b.init(E)}var il=0,fa=null;Ce?fa=-.53:re?fa=15:we?fa=-.7:Oe&&(fa=-1/3);function jl(a){var y=a.wheelDeltaX,b=a.wheelDeltaY;return y==null&&a.detail&&a.axis==a.HORIZONTAL_AXIS&&(y=a.detail),b==null&&a.detail&&a.axis==a.VERTICAL_AXIS?b=a.detail:b==null&&(b=a.wheelDelta),{x:y,y:b}}function iu(a){var y=jl(a);return y.x*=fa,y.y*=fa,y}function Gl(a,y){var b=jl(y),x=b.x,E=b.y,te=a.display,oe=te.scroller,ue=oe.scrollWidth>oe.clientWidth,fe=oe.scrollHeight>oe.clientHeight;if(x&&ue||E&&fe){if(E&&Ee&&Ne){e:for(var pe=y.target,Ue=te.view;pe!=oe;pe=pe.parentNode)for(var rt=0;rt<Ue.length;rt++)if(Ue[rt].node==pe){a.display.currentWheelTarget=pe;break e}}if(x&&!re&&!de&&fa!=null){E&&fe&&Ma(a,Math.max(0,oe.scrollTop+E*fa)),Ta(a,Math.max(0,oe.scrollLeft+x*fa)),(!E||E&&fe)&&un(y),te.wheelStartX=null;return}if(E&&fa!=null){var Rt=E*fa,At=a.doc.scrollTop,on=At+te.wrapper.clientHeight;Rt<0?At=Math.max(0,At+Rt-50):on=Math.min(a.doc.height,on+Rt+50),xl(a,{top:At,bottom:on})}il<20&&(te.wheelStartX==null?(te.wheelStartX=oe.scrollLeft,te.wheelStartY=oe.scrollTop,te.wheelDX=x,te.wheelDY=E,setTimeout(function(){if(te.wheelStartX!=null){var xn=oe.scrollLeft-te.wheelStartX,Bn=oe.scrollTop-te.wheelStartY,Hn=Bn&&te.wheelDY&&Bn/te.wheelDY||xn&&te.wheelDX&&xn/te.wheelDX;te.wheelStartX=te.wheelStartY=null,Hn&&(fa=(fa*il+Hn)/(il+1),++il)}},200)):(te.wheelDX+=x,te.wheelDY+=E))}}var ha=function(a,y){this.ranges=a,this.primIndex=y};ha.prototype.primary=function(){return this.ranges[this.primIndex]},ha.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 b=this.ranges[y],x=a.ranges[y];if(!hn(b.anchor,x.anchor)||!hn(b.head,x.head))return!1}return!0},ha.prototype.deepCopy=function(){for(var a=[],y=0;y<this.ranges.length;y++)a[y]=new ri(mn(this.ranges[y].anchor),mn(this.ranges[y].head));return new ha(a,this.primIndex)},ha.prototype.somethingSelected=function(){for(var a=0;a<this.ranges.length;a++)if(!this.ranges[a].empty())return!0;return!1},ha.prototype.contains=function(a,y){y||(y=a);for(var b=0;b<this.ranges.length;b++){var x=this.ranges[b];if(en(y,x.from())>=0&&en(a,x.to())<=0)return b}return-1};var ri=function(a,y){this.anchor=a,this.head=y};ri.prototype.from=function(){return yn(this.anchor,this.head)},ri.prototype.to=function(){return Dn(this.anchor,this.head)},ri.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function ya(a,y,b){var x=a&&a.options.selectionsMayTouch,E=y[b];y.sort(function(Rt,At){return en(Rt.from(),At.from())}),b=Ge(y,E);for(var te=1;te<y.length;te++){var oe=y[te],ue=y[te-1],fe=en(ue.to(),oe.from());if(x&&!oe.empty()?fe>0:fe>=0){var pe=yn(ue.from(),oe.from()),Ue=Dn(ue.to(),oe.to()),rt=ue.empty()?oe.from()==oe.head:ue.from()==ue.head;te<=b&&--b,y.splice(--te,2,new ri(rt?Ue:pe,rt?pe:Ue))}}return new ha(y,b)}function Ka(a,y){return new ha([new ri(a,y||a)],0)}function ja(a){return a.text?mt(a.from.line+a.text.length-1,Se(a.text).length+(a.text.length==1?a.from.ch:0)):a.to}function Ul(a,y){if(en(a,y.from)<0)return a;if(en(a,y.to)<=0)return ja(y);var b=a.line+y.text.length-(y.to.line-y.from.line)-1,x=a.ch;return a.line==y.to.line&&(x+=ja(y).ch-y.to.ch),mt(b,x)}function Sl(a,y){for(var b=[],x=0;x<a.sel.ranges.length;x++){var E=a.sel.ranges[x];b.push(new ri(Ul(E.anchor,y),Ul(E.head,y)))}return ya(a.cm,b,a.sel.primIndex)}function Vl(a,y,b){return a.line==y.line?mt(b.line,a.ch-y.ch+b.ch):mt(b.line+(a.line-y.line),a.ch)}function au(a,y,b){for(var x=[],E=mt(a.first,0),te=E,oe=0;oe<y.length;oe++){var ue=y[oe],fe=Vl(ue.from,E,te),pe=Vl(ja(ue),E,te);if(E=ue.to,te=pe,b=="around"){var Ue=a.sel.ranges[oe],rt=en(Ue.head,Ue.anchor)<0;x[oe]=new ri(rt?pe:fe,rt?fe:pe)}else x[oe]=new ri(fe,fe)}return new ha(x,a.sel.primIndex)}function El(a){a.doc.mode=Pn(a.options,a.doc.modeOption),Oo(a)}function Oo(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,Fo(a,100),a.state.modeGen++,a.curOp&&Wi(a)}function Yl(a,y){return y.from.ch==0&&y.to.ch==0&&Se(y.text)==""&&(!a.cm||a.cm.options.wholeLineUpdateBefore)}function kl(a,y,b,x){function E(qn){return b?b[qn]:null}function te(qn,Wn,lr){or(qn,Wn,lr,x),qr(qn,"change",qn,y)}function oe(qn,Wn){for(var lr=[],Ar=qn;Ar<Wn;++Ar)lr.push(new hr(pe[Ar],E(Ar),x));return lr}var ue=y.from,fe=y.to,pe=y.text,Ue=Mt(a,ue.line),rt=Mt(a,fe.line),Rt=Se(pe),At=E(pe.length-1),on=fe.line-ue.line;if(y.full)a.insert(0,oe(0,pe.length)),a.remove(pe.length,a.size-pe.length);else if(Yl(a,y)){var xn=oe(0,pe.length-1);te(rt,rt.text,At),on&&a.remove(ue.line,on),xn.length&&a.insert(ue.line,xn)}else if(Ue==rt)if(pe.length==1)te(Ue,Ue.text.slice(0,ue.ch)+Rt+Ue.text.slice(fe.ch),At);else{var Bn=oe(1,pe.length-1);Bn.push(new hr(Rt+Ue.text.slice(fe.ch),At,x)),te(Ue,Ue.text.slice(0,ue.ch)+pe[0],E(0)),a.insert(ue.line+1,Bn)}else if(pe.length==1)te(Ue,Ue.text.slice(0,ue.ch)+pe[0]+rt.text.slice(fe.ch),E(0)),a.remove(ue.line+1,on);else{te(Ue,Ue.text.slice(0,ue.ch)+pe[0],E(0)),te(rt,Rt+rt.text.slice(fe.ch),At);var Hn=oe(1,pe.length-1);on>1&&a.remove(ue.line+1,on-1),a.insert(ue.line+1,Hn)}qr(a,"change",a,y)}function Ga(a,y,b){function x(E,te,oe){if(E.linked)for(var ue=0;ue<E.linked.length;++ue){var fe=E.linked[ue];if(fe.doc!=te){var pe=oe&&fe.sharedHist;b&&!pe||(y(fe.doc,pe),x(fe.doc,E,pe))}}}x(a,null,!0)}function Xl(a,y){if(y.cm)throw new Error("This document is already in use.");a.doc=y,y.cm=a,Eo(a),El(a),Jl(a),a.options.lineWrapping||On(a),a.options.mode=y.modeOption,Wi(a)}function Jl(a){(a.doc.direction=="rtl"?et:We)(a.display.lineDiv,"CodeMirror-rtl")}function ou(a){aa(a,function(){Jl(a),Wi(a)})}function al(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 Dl(a,y){var b={from:mn(y.from),to:ja(y),text:gn(a,y.from,y.to)};return $l(a,b,y.from.line,y.to.line+1),Ga(a,function(x){return $l(x,b,y.from.line,y.to.line+1)},!0),b}function Ql(a){for(;a.length;){var y=Se(a);if(y.ranges)a.pop();else break}}function lu(a,y){if(y)return Ql(a.done),Se(a.done);if(a.done.length&&!Se(a.done).ranges)return Se(a.done);if(a.done.length>1&&!a.done[a.done.length-2].ranges)return a.done.pop(),Se(a.done)}function ql(a,y,b,x){var E=a.history;E.undone.length=0;var te=+new Date,oe,ue;if((E.lastOp==x||E.lastOrigin==y.origin&&y.origin&&(y.origin.charAt(0)=="+"&&E.lastModTime>te-(a.cm?a.cm.options.historyEventDelay:500)||y.origin.charAt(0)=="*"))&&(oe=lu(E,E.lastOp==x)))ue=Se(oe.changes),en(y.from,y.to)==0&&en(y.from,ue.to)==0?ue.to=ja(y):oe.changes.push(Dl(a,y));else{var fe=Se(E.done);for((!fe||!fe.ranges)&&ol(a.sel,E.done),oe={changes:[Dl(a,y)],generation:E.generation},E.done.push(oe);E.done.length>E.undoDepth;)E.done.shift(),E.done[0].ranges||E.done.shift()}E.done.push(b),E.generation=++E.maxGeneration,E.lastModTime=E.lastSelTime=te,E.lastOp=E.lastSelOp=x,E.lastOrigin=E.lastSelOrigin=y.origin,ue||ht(a,"historyAdded")}function su(a,y,b,x){var E=y.charAt(0);return E=="*"||E=="+"&&b.ranges.length==x.ranges.length&&b.somethingSelected()==x.somethingSelected()&&new Date-a.history.lastSelTime<=(a.cm?a.cm.options.historyEventDelay:500)}function uu(a,y,b,x){var E=a.history,te=x&&x.origin;b==E.lastSelOp||te&&E.lastSelOrigin==te&&(E.lastModTime==E.lastSelTime&&E.lastOrigin==te||su(a,te,Se(E.done),y))?E.done[E.done.length-1]=y:ol(y,E.done),E.lastSelTime=+new Date,E.lastSelOrigin=te,E.lastSelOp=b,x&&x.clearRedo!==!1&&Ql(E.undone)}function ol(a,y){var b=Se(y);b&&b.ranges&&b.equals(a)||y.push(a)}function $l(a,y,b,x){var E=y["spans_"+a.id],te=0;a.iter(Math.max(a.first,b),Math.min(a.first+a.size,x),function(oe){oe.markedSpans&&((E||(E=y["spans_"+a.id]={}))[te]=oe.markedSpans),++te})}function cu(a){if(!a)return null;for(var y,b=0;b<a.length;++b)a[b].marker.explicitlyCleared?y||(y=a.slice(0,b)):y&&y.push(a[b]);return y?y.length?y:null:a}function du(a,y){var b=y["spans_"+a.id];if(!b)return null;for(var x=[],E=0;E<y.text.length;++E)x.push(cu(b[E]));return x}function es(a,y){var b=du(a,y),x=ai(a,y);if(!b)return x;if(!x)return b;for(var E=0;E<b.length;++E){var te=b[E],oe=x[E];if(te&&oe)e:for(var ue=0;ue<oe.length;++ue){for(var fe=oe[ue],pe=0;pe<te.length;++pe)if(te[pe].marker==fe.marker)continue e;te.push(fe)}else oe&&(b[E]=oe)}return b}function fo(a,y,b){for(var x=[],E=0;E<a.length;++E){var te=a[E];if(te.ranges){x.push(b?ha.prototype.deepCopy.call(te):te);continue}var oe=te.changes,ue=[];x.push({changes:ue});for(var fe=0;fe<oe.length;++fe){var pe=oe[fe],Ue=void 0;if(ue.push({from:pe.from,to:pe.to,text:pe.text}),y)for(var rt in pe)(Ue=rt.match(/^spans_(\d+)$/))&&Ge(y,Number(Ue[1]))>-1&&(Se(ue)[rt]=pe[rt],delete pe[rt])}}return x}function Al(a,y,b,x){if(x){var E=a.anchor;if(b){var te=en(y,E)<0;te!=en(b,E)<0?(E=y,y=b):te!=en(y,b)<0&&(y=b)}return new ri(E,y)}else return new ri(b||y,y)}function ll(a,y,b,x,E){E==null&&(E=a.cm&&(a.cm.display.shift||a.extend)),ji(a,new ha([Al(a.sel.primary(),y,b,E)],0),x)}function ts(a,y,b){for(var x=[],E=a.cm&&(a.cm.display.shift||a.extend),te=0;te<a.sel.ranges.length;te++)x[te]=Al(a.sel.ranges[te],y[te],null,E);var oe=ya(a.cm,x,a.sel.primIndex);ji(a,oe,b)}function Nl(a,y,b,x){var E=a.sel.ranges.slice(0);E[y]=b,ji(a,ya(a.cm,E,a.sel.primIndex),x)}function ns(a,y,b,x){ji(a,Ka(y,b),x)}function fu(a,y,b){var x={ranges:y.ranges,update:function(E){this.ranges=[];for(var te=0;te<E.length;te++)this.ranges[te]=new ri(nn(a,E[te].anchor),nn(a,E[te].head))},origin:b&&b.origin};return ht(a,"beforeSelectionChange",a,x),a.cm&&ht(a.cm,"beforeSelectionChange",a.cm,x),x.ranges!=y.ranges?ya(a.cm,x.ranges,x.ranges.length-1):y}function rs(a,y,b){var x=a.history.done,E=Se(x);E&&E.ranges?(x[x.length-1]=y,sl(a,y,b)):ji(a,y,b)}function ji(a,y,b){sl(a,y,b),uu(a,a.sel,a.cm?a.cm.curOp.id:NaN,b)}function sl(a,y,b){(Bt(a,"beforeSelectionChange")||a.cm&&Bt(a.cm,"beforeSelectionChange"))&&(y=fu(a,y,b));var x=b&&b.bias||(en(y.primary().head,a.sel.primary().head)<0?-1:1);is(a,os(a,y,x,!0)),!(b&&b.scroll===!1)&&a.cm&&La(a.cm)}function is(a,y){y.equals(a.sel)||(a.sel=y,a.cm&&(a.cm.curOp.updateInput=1,a.cm.curOp.selectionChanged=!0,Vt(a.cm)),qr(a,"cursorActivity",a))}function as(a){is(a,os(a,a.sel,null,!1))}function os(a,y,b,x){for(var E,te=0;te<y.ranges.length;te++){var oe=y.ranges[te],ue=y.ranges.length==a.sel.ranges.length&&a.sel.ranges[te],fe=ul(a,oe.anchor,ue&&ue.anchor,b,x),pe=ul(a,oe.head,ue&&ue.head,b,x);(E||fe!=oe.anchor||pe!=oe.head)&&(E||(E=y.ranges.slice(0,te)),E[te]=new ri(fe,pe))}return E?ya(a.cm,E,y.primIndex):y}function ho(a,y,b,x,E){var te=Mt(a,y.line);if(te.markedSpans)for(var oe=0;oe<te.markedSpans.length;++oe){var ue=te.markedSpans[oe],fe=ue.marker,pe="selectLeft"in fe?!fe.selectLeft:fe.inclusiveLeft,Ue="selectRight"in fe?!fe.selectRight:fe.inclusiveRight;if((ue.from==null||(pe?ue.from<=y.ch:ue.from<y.ch))&&(ue.to==null||(Ue?ue.to>=y.ch:ue.to>y.ch))){if(E&&(ht(fe,"beforeCursorEnter"),fe.explicitlyCleared))if(te.markedSpans){--oe;continue}else break;if(!fe.atomic)continue;if(b){var rt=fe.find(x<0?1:-1),Rt=void 0;if((x<0?Ue:pe)&&(rt=ls(a,rt,-x,rt&&rt.line==y.line?te:null)),rt&&rt.line==y.line&&(Rt=en(rt,b))&&(x<0?Rt<0:Rt>0))return ho(a,rt,y,x,E)}var At=fe.find(x<0?-1:1);return(x<0?pe:Ue)&&(At=ls(a,At,x,At.line==y.line?te:null)),At?ho(a,At,y,x,E):null}}return y}function ul(a,y,b,x,E){var te=x||1,oe=ho(a,y,b,te,E)||!E&&ho(a,y,b,te,!0)||ho(a,y,b,-te,E)||!E&&ho(a,y,b,-te,!0);return oe||(a.cantEdit=!0,mt(a.first,0))}function ls(a,y,b,x){return b<0&&y.ch==0?y.line>a.first?nn(a,mt(y.line-1)):null:b>0&&y.ch==(x||Mt(a,y.line)).text.length?y.line<a.first+a.size-1?mt(y.line+1,0):null:new mt(y.line,y.ch+b)}function ss(a){a.setSelection(mt(a.firstLine(),0),mt(a.lastLine()),Te)}function us(a,y,b){var x={canceled:!1,from:y.from,to:y.to,text:y.text,origin:y.origin,cancel:function(){return x.canceled=!0}};return b&&(x.update=function(E,te,oe,ue){E&&(x.from=nn(a,E)),te&&(x.to=nn(a,te)),oe&&(x.text=oe),ue!==void 0&&(x.origin=ue)}),ht(a,"beforeChange",a,x),a.cm&&ht(a.cm,"beforeChange",a.cm,x),x.canceled?(a.cm&&(a.cm.curOp.updateInput=2),null):{from:x.from,to:x.to,text:x.text,origin:x.origin}}function po(a,y,b){if(a.cm){if(!a.cm.curOp)return Ii(a.cm,po)(a,y,b);if(a.cm.state.suppressEdits)return}if(!((Bt(a,"beforeChange")||a.cm&&Bt(a.cm,"beforeChange"))&&(y=us(a,y,!0),!y))){var x=Ur&&!b&&Pt(a,y.from,y.to);if(x)for(var E=x.length-1;E>=0;--E)cs(a,{from:x[E].from,to:x[E].to,text:E?[""]:y.text,origin:y.origin});else cs(a,y)}}function cs(a,y){if(!(y.text.length==1&&y.text[0]==""&&en(y.from,y.to)==0)){var b=Sl(a,y);ql(a,y,b,a.cm?a.cm.curOp.id:NaN),Zo(a,y,b,ai(a,y));var x=[];Ga(a,function(E,te){!te&&Ge(x,E.history)==-1&&(ps(E.history,y),x.push(E.history)),Zo(E,y,null,ai(E,y))})}}function cl(a,y,b){var x=a.cm&&a.cm.state.suppressEdits;if(!(x&&!b)){for(var E=a.history,te,oe=a.sel,ue=y=="undo"?E.done:E.undone,fe=y=="undo"?E.undone:E.done,pe=0;pe<ue.length&&(te=ue[pe],!(b?te.ranges&&!te.equals(a.sel):!te.ranges));pe++);if(pe!=ue.length){for(E.lastOrigin=E.lastSelOrigin=null;;)if(te=ue.pop(),te.ranges){if(ol(te,fe),b&&!te.equals(a.sel)){ji(a,te,{clearRedo:!1});return}oe=te}else if(x){ue.push(te);return}else break;var Ue=[];ol(oe,fe),fe.push({changes:Ue,generation:E.generation}),E.generation=te.generation||++E.maxGeneration;for(var rt=Bt(a,"beforeChange")||a.cm&&Bt(a.cm,"beforeChange"),Rt=function(xn){var Bn=te.changes[xn];if(Bn.origin=y,rt&&!us(a,Bn,!1))return ue.length=0,{};Ue.push(Dl(a,Bn));var Hn=xn?Sl(a,Bn):Se(ue);Zo(a,Bn,Hn,es(a,Bn)),!xn&&a.cm&&a.cm.scrollIntoView({from:Bn.from,to:ja(Bn)});var qn=[];Ga(a,function(Wn,lr){!lr&&Ge(qn,Wn.history)==-1&&(ps(Wn.history,Bn),qn.push(Wn.history)),Zo(Wn,Bn,null,es(Wn,Bn))})},At=te.changes.length-1;At>=0;--At){var on=Rt(At);if(on)return on.v}}}}function ds(a,y){if(y!=0&&(a.first+=y,a.sel=new ha(ze(a.sel.ranges,function(E){return new ri(mt(E.anchor.line+y,E.anchor.ch),mt(E.head.line+y,E.head.ch))}),a.sel.primIndex),a.cm)){Wi(a.cm,a.first,a.first-y,y);for(var b=a.cm.display,x=b.viewFrom;x<b.viewTo;x++)ca(a.cm,x,"gutter")}}function Zo(a,y,b,x){if(a.cm&&!a.cm.curOp)return Ii(a.cm,Zo)(a,y,b,x);if(y.to.line<a.first){ds(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 E=y.text.length-1-(a.first-y.from.line);ds(a,E),y={from:mt(a.first,0),to:mt(y.to.line+E,y.to.ch),text:[Se(y.text)],origin:y.origin}}var te=a.lastLine();y.to.line>te&&(y={from:y.from,to:mt(te,Mt(a,te).text.length),text:[y.text[0]],origin:y.origin}),y.removed=gn(a,y.from,y.to),b||(b=Sl(a,y)),a.cm?hu(a.cm,y,x):kl(a,y,x),sl(a,b,Te),a.cantEdit&&ul(a,mt(a.firstLine(),0))&&(a.cantEdit=!1)}}function hu(a,y,b){var x=a.doc,E=a.display,te=y.from,oe=y.to,ue=!1,fe=te.line;a.options.lineWrapping||(fe=nt(It(Mt(x,te.line))),x.iter(fe,oe.line+1,function(At){if(At==E.maxLine)return ue=!0,!0})),x.sel.contains(y.from,y.to)>-1&&Vt(a),kl(x,y,b,So(a)),a.options.lineWrapping||(x.iter(fe,te.line+y.text.length,function(At){var on=Xn(At);on>E.maxLineLength&&(E.maxLine=At,E.maxLineLength=on,E.maxLineChanged=!0,ue=!1)}),ue&&(a.curOp.updateMaxLine=!0)),Jr(x,te.line),Fo(a,400);var pe=y.text.length-(oe.line-te.line)-1;y.full?Wi(a):te.line==oe.line&&y.text.length==1&&!Yl(a.doc,y)?ca(a,te.line,"text"):Wi(a,te.line,oe.line+1,pe);var Ue=Bt(a,"changes"),rt=Bt(a,"change");if(rt||Ue){var Rt={from:te,to:oe,text:y.text,removed:y.removed,origin:y.origin};rt&&qr(a,"change",a,Rt),Ue&&(a.curOp.changeObjs||(a.curOp.changeObjs=[])).push(Rt)}a.display.selForContextMenu=null}function vo(a,y,b,x,E){var te;x||(x=b),en(x,b)<0&&(te=[x,b],b=te[0],x=te[1]),typeof y=="string"&&(y=a.splitLines(y)),po(a,{from:b,to:x,text:y,origin:E})}function fs(a,y,b,x){b<a.line?a.line+=x:y<a.line&&(a.line=y,a.ch=0)}function hs(a,y,b,x){for(var E=0;E<a.length;++E){var te=a[E],oe=!0;if(te.ranges){te.copied||(te=a[E]=te.deepCopy(),te.copied=!0);for(var ue=0;ue<te.ranges.length;ue++)fs(te.ranges[ue].anchor,y,b,x),fs(te.ranges[ue].head,y,b,x);continue}for(var fe=0;fe<te.changes.length;++fe){var pe=te.changes[fe];if(b<pe.from.line)pe.from=mt(pe.from.line+x,pe.from.ch),pe.to=mt(pe.to.line+x,pe.to.ch);else if(y<=pe.to.line){oe=!1;break}}oe||(a.splice(0,E+1),E=0)}}function ps(a,y){var b=y.from.line,x=y.to.line,E=y.text.length-(x-b)-1;hs(a.done,b,x,E),hs(a.undone,b,x,E)}function _o(a,y,b,x){var E=y,te=y;return typeof y=="number"?te=Mt(a,An(a,y)):E=nt(y),E==null?null:(x(te,E)&&a.cm&&ca(a.cm,E,b),te)}function Ho(a){this.lines=a,this.parent=null;for(var y=0,b=0;b<a.length;++b)a[b].parent=this,y+=a[b].height;this.height=y}Ho.prototype={chunkSize:function(){return this.lines.length},removeInner:function(a,y){for(var b=a,x=a+y;b<x;++b){var E=this.lines[b];this.height-=E.height,fr(E),qr(E,"delete")}this.lines.splice(a,y)},collapse:function(a){a.push.apply(a,this.lines)},insertInner:function(a,y,b){this.height+=b,this.lines=this.lines.slice(0,a).concat(y).concat(this.lines.slice(a));for(var x=0;x<y.length;++x)y[x].parent=this},iterN:function(a,y,b){for(var x=a+y;a<x;++a)if(b(this.lines[a]))return!0}};function Wo(a){this.children=a;for(var y=0,b=0,x=0;x<a.length;++x){var E=a[x];y+=E.chunkSize(),b+=E.height,E.parent=this}this.size=y,this.height=b,this.parent=null}Wo.prototype={chunkSize:function(){return this.size},removeInner:function(a,y){this.size-=y;for(var b=0;b<this.children.length;++b){var x=this.children[b],E=x.chunkSize();if(a<E){var te=Math.min(y,E-a),oe=x.height;if(x.removeInner(a,te),this.height-=oe-x.height,E==te&&(this.children.splice(b--,1),x.parent=null),(y-=te)==0)break;a=0}else a-=E}if(this.size-y<25&&(this.children.length>1||!(this.children[0]instanceof Ho))){var ue=[];this.collapse(ue),this.children=[new Ho(ue)],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,b){this.size+=y.length,this.height+=b;for(var x=0;x<this.children.length;++x){var E=this.children[x],te=E.chunkSize();if(a<=te){if(E.insertInner(a,y,b),E.lines&&E.lines.length>50){for(var oe=E.lines.length%25+25,ue=oe;ue<E.lines.length;){var fe=new Ho(E.lines.slice(ue,ue+=25));E.height-=fe.height,this.children.splice(++x,0,fe),fe.parent=this}E.lines=E.lines.slice(0,oe),this.maybeSpill()}break}a-=te}},maybeSpill:function(){if(!(this.children.length<=10)){var a=this;do{var y=a.children.splice(a.children.length-5,5),b=new Wo(y);if(a.parent){a.size-=b.size,a.height-=b.height;var E=Ge(a.parent.children,a);a.parent.children.splice(E+1,0,b)}else{var x=new Wo(a.children);x.parent=a,a.children=[x,b],a=x}b.parent=a.parent}while(a.children.length>10);a.parent.maybeSpill()}},iterN:function(a,y,b){for(var x=0;x<this.children.length;++x){var E=this.children[x],te=E.chunkSize();if(a<te){var oe=Math.min(y,te-a);if(E.iterN(a,oe,b))return!0;if((y-=oe)==0)break;a=0}else a-=te}}};var zo=function(a,y,b){if(b)for(var x in b)b.hasOwnProperty(x)&&(this[x]=b[x]);this.doc=a,this.node=y};zo.prototype.clear=function(){var a=this.doc.cm,y=this.line.widgets,b=this.line,x=nt(b);if(!(x==null||!y)){for(var E=0;E<y.length;++E)y[E]==this&&y.splice(E--,1);y.length||(b.widgets=null);var te=di(this);ir(b,Math.max(0,b.height-te)),a&&(aa(a,function(){vs(a,b,-te),ca(a,x,"widget")}),qr(a,"lineWidgetCleared",a,this,x))}},zo.prototype.changed=function(){var a=this,y=this.height,b=this.doc.cm,x=this.line;this.height=null;var E=di(this)-y;E&&(sn(this.doc,x)||ir(x,x.height+E),b&&aa(b,function(){b.curOp.forceUpdate=!0,vs(b,x,E),qr(b,"lineWidgetChanged",b,a,nt(x))}))},Ht(zo);function vs(a,y,b){Nn(y)<(a.curOp&&a.curOp.scrollTop||a.doc.scrollTop)&&co(a,b)}function pu(a,y,b,x){var E=new zo(a,b,x),te=a.cm;return te&&E.noHScroll&&(te.display.alignWidgets=!0),_o(a,y,"widget",function(oe){var ue=oe.widgets||(oe.widgets=[]);if(E.insertAt==null?ue.push(E):ue.splice(Math.min(ue.length-1,Math.max(0,E.insertAt)),0,E),E.line=oe,te&&!sn(a,oe)){var fe=Nn(oe)<a.scrollTop;ir(oe,oe.height+di(E)),fe&&co(te,E.height),te.curOp.forceUpdate=!0}return!0}),te&&qr(te,"lineWidgetAdded",te,E,typeof y=="number"?y:nt(y)),E}var ms=0,Ua=function(a,y){this.lines=[],this.type=y,this.doc=a,this.id=++ms};Ua.prototype.clear=function(){if(!this.explicitlyCleared){var a=this.doc.cm,y=a&&!a.curOp;if(y&&da(a),Bt(this,"clear")){var b=this.find();b&&qr(this,"clear",b.from,b.to)}for(var x=null,E=null,te=0;te<this.lines.length;++te){var oe=this.lines[te],ue=dr(oe.markedSpans,this);a&&!this.collapsed?ca(a,nt(oe),"text"):a&&(ue.to!=null&&(E=nt(oe)),ue.from!=null&&(x=nt(oe))),oe.markedSpans=Nr(oe.markedSpans,ue),ue.from==null&&this.collapsed&&!sn(this.doc,oe)&&a&&ir(oe,Ti(a.display))}if(a&&this.collapsed&&!a.options.lineWrapping)for(var fe=0;fe<this.lines.length;++fe){var pe=It(this.lines[fe]),Ue=Xn(pe);Ue>a.display.maxLineLength&&(a.display.maxLine=pe,a.display.maxLineLength=Ue,a.display.maxLineChanged=!0)}x!=null&&a&&this.collapsed&&Wi(a,x,E+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,a&&as(a.doc)),a&&qr(a,"markerCleared",a,this,x,E),y&&ga(a),this.parent&&this.parent.clear()}},Ua.prototype.find=function(a,y){a==null&&this.type=="bookmark"&&(a=1);for(var b,x,E=0;E<this.lines.length;++E){var te=this.lines[E],oe=dr(te.markedSpans,this);if(oe.from!=null&&(b=mt(y?te:nt(te),oe.from),a==-1))return b;if(oe.to!=null&&(x=mt(y?te:nt(te),oe.to),a==1))return x}return b&&{from:b,to:x}},Ua.prototype.changed=function(){var a=this,y=this.find(-1,!0),b=this,x=this.doc.cm;!y||!x||aa(x,function(){var E=y.line,te=nt(y.line),oe=pa(x,te);if(oe&&(Ja(oe),x.curOp.selectionChanged=x.curOp.forceUpdate=!0),x.curOp.updateMaxLine=!0,!sn(b.doc,E)&&b.height!=null){var ue=b.height;b.height=null;var fe=di(b)-ue;fe&&ir(E,E.height+fe)}qr(x,"markerChanged",x,a)})},Ua.prototype.attachLine=function(a){if(!this.lines.length&&this.doc.cm){var y=this.doc.cm.curOp;(!y.maybeHiddenMarkers||Ge(y.maybeHiddenMarkers,this)==-1)&&(y.maybeUnhiddenMarkers||(y.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(a)},Ua.prototype.detachLine=function(a){if(this.lines.splice(Ge(this.lines,a),1),!this.lines.length&&this.doc.cm){var y=this.doc.cm.curOp;(y.maybeHiddenMarkers||(y.maybeHiddenMarkers=[])).push(this)}},Ht(Ua);function mo(a,y,b,x,E){if(x&&x.shared)return vu(a,y,b,x,E);if(a.cm&&!a.cm.curOp)return Ii(a.cm,mo)(a,y,b,x,E);var te=new Ua(a,E),oe=en(y,b);if(x&&ft(x,te,!1),oe>0||oe==0&&te.clearWhenEmpty!==!1)return te;if(te.replacedWith&&(te.collapsed=!0,te.widgetNode=Ie("span",[te.replacedWith],"CodeMirror-widget"),x.handleMouseEvents||te.widgetNode.setAttribute("cm-ignore-events","true"),x.insertLeft&&(te.widgetNode.insertLeft=!0)),te.collapsed){if(Ot(a,y.line,y,b,te)||y.line!=b.line&&Ot(a,b.line,y,b,te))throw new Error("Inserting collapsed marker partially overlapping an existing one");Yr()}te.addToHistory&&ql(a,{from:y,to:b,origin:"markText"},a.sel,NaN);var ue=y.line,fe=a.cm,pe;if(a.iter(ue,b.line+1,function(rt){fe&&te.collapsed&&!fe.options.lineWrapping&&It(rt)==fe.display.maxLine&&(pe=!0),te.collapsed&&ue!=y.line&&ir(rt,0),Zr(rt,new Zn(te,ue==y.line?y.ch:null,ue==b.line?b.ch:null)),++ue}),te.collapsed&&a.iter(y.line,b.line+1,function(rt){sn(a,rt)&&ir(rt,0)}),te.clearOnEnter&&be(te,"beforeCursorEnter",function(){return te.clear()}),te.readOnly&&(ei(),(a.history.done.length||a.history.undone.length)&&a.clearHistory()),te.collapsed&&(te.id=++ms,te.atomic=!0),fe){if(pe&&(fe.curOp.updateMaxLine=!0),te.collapsed)Wi(fe,y.line,b.line+1);else if(te.className||te.startStyle||te.endStyle||te.css||te.attributes||te.title)for(var Ue=y.line;Ue<=b.line;Ue++)ca(fe,Ue,"text");te.atomic&&as(fe.doc),qr(fe,"markerAdded",fe,te)}return te}var Ko=function(a,y){this.markers=a,this.primary=y;for(var b=0;b<a.length;++b)a[b].parent=this};Ko.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var a=0;a<this.markers.length;++a)this.markers[a].clear();qr(this,"clear")}},Ko.prototype.find=function(a,y){return this.primary.find(a,y)},Ht(Ko);function vu(a,y,b,x,E){x=ft(x),x.shared=!1;var te=[mo(a,y,b,x,E)],oe=te[0],ue=x.widgetNode;return Ga(a,function(fe){ue&&(x.widgetNode=ue.cloneNode(!0)),te.push(mo(fe,nn(fe,y),nn(fe,b),x,E));for(var pe=0;pe<fe.linked.length;++pe)if(fe.linked[pe].isParent)return;oe=Se(te)}),new Ko(te,oe)}function gs(a){return a.findMarks(mt(a.first,0),a.clipPos(mt(a.lastLine())),function(y){return y.parent})}function mu(a,y){for(var b=0;b<y.length;b++){var x=y[b],E=x.find(),te=a.clipPos(E.from),oe=a.clipPos(E.to);if(en(te,oe)){var ue=mo(a,te,oe,x.primary,x.primary.type);x.markers.push(ue),ue.parent=x}}}function gu(a){for(var y=function(x){var E=a[x],te=[E.primary.doc];Ga(E.primary.doc,function(fe){return te.push(fe)});for(var oe=0;oe<E.markers.length;oe++){var ue=E.markers[oe];Ge(te,ue.doc)==-1&&(ue.parent=null,E.markers.splice(oe--,1))}},b=0;b<a.length;b++)y(b)}var yu=0,$i=function(a,y,b,x,E){if(!(this instanceof $i))return new $i(a,y,b,x,E);b==null&&(b=0),Wo.call(this,[new Ho([new hr("",null)])]),this.first=b,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=b;var te=mt(b,0);this.sel=Ka(te),this.history=new al(null),this.id=++yu,this.modeOption=y,this.lineSep=x,this.direction=E=="rtl"?"rtl":"ltr",this.extend=!1,typeof a=="string"&&(a=this.splitLines(a)),kl(this,{from:te,to:te,text:a}),ji(this,Ka(te),Te)};$i.prototype=it(Wo.prototype,{constructor:$i,iter:function(a,y,b){b?this.iterN(a-this.first,y-a,b):this.iterN(this.first,this.first+this.size,a)},insert:function(a,y){for(var b=0,x=0;x<y.length;++x)b+=y[x].height;this.insertInner(a-this.first,y,b)},remove:function(a,y){this.removeInner(a-this.first,y)},getValue:function(a){var y=In(this,this.first,this.first+this.size);return a===!1?y:y.join(a||this.lineSeparator())},setValue:Oi(function(a){var y=mt(this.first,0),b=this.first+this.size-1;po(this,{from:y,to:mt(b,Mt(this,b).text.length),text:this.splitLines(a),origin:"setValue",full:!0},!0),this.cm&&$a(this.cm,0,0),ji(this,Ka(y),Te)}),replaceRange:function(a,y,b,x){y=nn(this,y),b=b?nn(this,b):y,vo(this,a,y,b,x)},getRange:function(a,y,b){var x=gn(this,nn(this,a),nn(this,y));return b===!1?x:x.join(b||this.lineSeparator())},getLine:function(a){var y=this.getLineHandle(a);return y&&y.text},getLineHandle:function(a){if(dn(this,a))return Mt(this,a)},getLineNumber:function(a){return nt(a)},getLineHandleVisualStart:function(a){return typeof a=="number"&&(a=Mt(this,a)),It(a)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(a){return nn(this,a)},getCursor:function(a){var y=this.sel.primary(),b;return a==null||a=="head"?b=y.head:a=="anchor"?b=y.anchor:a=="end"||a=="to"||a===!1?b=y.to():b=y.from(),b},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Oi(function(a,y,b){ns(this,nn(this,typeof a=="number"?mt(a,y||0):a),null,b)}),setSelection:Oi(function(a,y,b){ns(this,nn(this,a),nn(this,y||a),b)}),extendSelection:Oi(function(a,y,b){ll(this,nn(this,a),y&&nn(this,y),b)}),extendSelections:Oi(function(a,y){ts(this,Mn(this,a),y)}),extendSelectionsBy:Oi(function(a,y){var b=ze(this.sel.ranges,a);ts(this,Mn(this,b),y)}),setSelections:Oi(function(a,y,b){if(a.length){for(var x=[],E=0;E<a.length;E++)x[E]=new ri(nn(this,a[E].anchor),nn(this,a[E].head));y==null&&(y=Math.min(a.length-1,this.sel.primIndex)),ji(this,ya(this.cm,x,y),b)}}),addSelection:Oi(function(a,y,b){var x=this.sel.ranges.slice(0);x.push(new ri(nn(this,a),nn(this,y||a))),ji(this,ya(this.cm,x,x.length-1),b)}),getSelection:function(a){for(var y=this.sel.ranges,b,x=0;x<y.length;x++){var E=gn(this,y[x].from(),y[x].to());b=b?b.concat(E):E}return a===!1?b:b.join(a||this.lineSeparator())},getSelections:function(a){for(var y=[],b=this.sel.ranges,x=0;x<b.length;x++){var E=gn(this,b[x].from(),b[x].to());a!==!1&&(E=E.join(a||this.lineSeparator())),y[x]=E}return y},replaceSelection:function(a,y,b){for(var x=[],E=0;E<this.sel.ranges.length;E++)x[E]=a;this.replaceSelections(x,y,b||"+input")},replaceSelections:Oi(function(a,y,b){for(var x=[],E=this.sel,te=0;te<E.ranges.length;te++){var oe=E.ranges[te];x[te]={from:oe.from(),to:oe.to(),text:this.splitLines(a[te]),origin:b}}for(var ue=y&&y!="end"&&au(this,x,y),fe=x.length-1;fe>=0;fe--)po(this,x[fe]);ue?rs(this,ue):this.cm&&La(this.cm)}),undo:Oi(function(){cl(this,"undo")}),redo:Oi(function(){cl(this,"redo")}),undoSelection:Oi(function(){cl(this,"undo",!0)}),redoSelection:Oi(function(){cl(this,"redo",!0)}),setExtending:function(a){this.extend=a},getExtending:function(){return this.extend},historySize:function(){for(var a=this.history,y=0,b=0,x=0;x<a.done.length;x++)a.done[x].ranges||++y;for(var E=0;E<a.undone.length;E++)a.undone[E].ranges||++b;return{undo:y,redo:b}},clearHistory:function(){var a=this;this.history=new al(this.history.maxGeneration),Ga(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:fo(this.history.done),undone:fo(this.history.undone)}},setHistory:function(a){var y=this.history=new al(this.history.maxGeneration);y.done=fo(a.done.slice(0),null,!0),y.undone=fo(a.undone.slice(0),null,!0)},setGutterMarker:Oi(function(a,y,b){return _o(this,a,"gutter",function(x){var E=x.gutterMarkers||(x.gutterMarkers={});return E[y]=b,!b&&Ye(E)&&(x.gutterMarkers=null),!0})}),clearGutter:Oi(function(a){var y=this;this.iter(function(b){b.gutterMarkers&&b.gutterMarkers[a]&&_o(y,b,"gutter",function(){return b.gutterMarkers[a]=null,Ye(b.gutterMarkers)&&(b.gutterMarkers=null),!0})})}),lineInfo:function(a){var y;if(typeof a=="number"){if(!dn(this,a)||(y=a,a=Mt(this,a),!a))return null}else if(y=nt(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:Oi(function(a,y,b){return _o(this,a,y=="gutter"?"gutter":"class",function(x){var E=y=="text"?"textClass":y=="background"?"bgClass":y=="gutter"?"gutterClass":"wrapClass";if(!x[E])x[E]=b;else{if(Re(b).test(x[E]))return!1;x[E]+=" "+b}return!0})}),removeLineClass:Oi(function(a,y,b){return _o(this,a,y=="gutter"?"gutter":"class",function(x){var E=y=="text"?"textClass":y=="background"?"bgClass":y=="gutter"?"gutterClass":"wrapClass",te=x[E];if(te)if(b==null)x[E]=null;else{var oe=te.match(Re(b));if(!oe)return!1;var ue=oe.index+oe[0].length;x[E]=te.slice(0,oe.index)+(!oe.index||ue==te.length?"":" ")+te.slice(ue)||null}else return!1;return!0})}),addLineWidget:Oi(function(a,y,b){return pu(this,a,y,b)}),removeLineWidget:function(a){a.clear()},markText:function(a,y,b){return mo(this,nn(this,a),nn(this,y),b,b&&b.type||"range")},setBookmark:function(a,y){var b={replacedWith:y&&(y.nodeType==null?y.widget:y),insertLeft:y&&y.insertLeft,clearWhenEmpty:!1,shared:y&&y.shared,handleMouseEvents:y&&y.handleMouseEvents};return a=nn(this,a),mo(this,a,a,b,"bookmark")},findMarksAt:function(a){a=nn(this,a);var y=[],b=Mt(this,a.line).markedSpans;if(b)for(var x=0;x<b.length;++x){var E=b[x];(E.from==null||E.from<=a.ch)&&(E.to==null||E.to>=a.ch)&&y.push(E.marker.parent||E.marker)}return y},findMarks:function(a,y,b){a=nn(this,a),y=nn(this,y);var x=[],E=a.line;return this.iter(a.line,y.line+1,function(te){var oe=te.markedSpans;if(oe)for(var ue=0;ue<oe.length;ue++){var fe=oe[ue];!(fe.to!=null&&E==a.line&&a.ch>=fe.to||fe.from==null&&E!=a.line||fe.from!=null&&E==y.line&&fe.from>=y.ch)&&(!b||b(fe.marker))&&x.push(fe.marker.parent||fe.marker)}++E}),x},getAllMarks:function(){var a=[];return this.iter(function(y){var b=y.markedSpans;if(b)for(var x=0;x<b.length;++x)b[x].from!=null&&a.push(b[x].marker)}),a},posFromIndex:function(a){var y,b=this.first,x=this.lineSeparator().length;return this.iter(function(E){var te=E.text.length+x;if(te>a)return y=a,!0;a-=te,++b}),nn(this,mt(b,y))},indexFromPos:function(a){a=nn(this,a);var y=a.ch;if(a.line<this.first||a.ch<0)return 0;var b=this.lineSeparator().length;return this.iter(this.first,a.line,function(x){y+=x.text.length+b}),y},copy:function(a){var y=new $i(In(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,b=this.first+this.size;a.from!=null&&a.from>y&&(y=a.from),a.to!=null&&a.to<b&&(b=a.to);var x=new $i(In(this,y,b),a.mode||this.modeOption,y,this.lineSep,this.direction);return a.sharedHist&&(x.history=this.history),(this.linked||(this.linked=[])).push({doc:x,sharedHist:a.sharedHist}),x.linked=[{doc:this,isParent:!0,sharedHist:a.sharedHist}],mu(x,gs(this)),x},unlinkDoc:function(a){if(a instanceof gi&&(a=a.doc),this.linked)for(var y=0;y<this.linked.length;++y){var b=this.linked[y];if(b.doc==a){this.linked.splice(y,1),a.unlinkDoc(this),gu(gs(this));break}}if(a.history==this.history){var x=[a.id];Ga(a,function(E){return x.push(E.id)},!0),a.history=new al(null),a.history.done=fo(this.history.done,x),a.history.undone=fo(this.history.undone,x)}},iterLinkedDocs:function(a){Ga(this,a)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(a){return this.lineSep?a.split(this.lineSep):pr(a)},lineSeparator:function(){return this.lineSep||`
|
|
`},setDirection:Oi(function(a){a!="rtl"&&(a="ltr"),a!=this.direction&&(this.direction=a,this.iter(function(y){return y.order=null}),this.cm&&ou(this.cm))})}),$i.prototype.eachLine=$i.prototype.iter;var ys=0;function xu(a){var y=this;if(xs(y),!(Ze(y,a)||ci(y.display,a))){un(a),Ce&&(ys=+new Date);var b=ba(y,a,!0),x=a.dataTransfer.files;if(!(!b||y.isReadOnly()))if(x&&x.length&&window.FileReader&&window.File)for(var E=x.length,te=Array(E),oe=0,ue=function(){++oe==E&&Ii(y,function(){b=nn(y.doc,b);var At={from:b,to:b,text:y.doc.splitLines(te.filter(function(on){return on!=null}).join(y.doc.lineSeparator())),origin:"paste"};po(y.doc,At),rs(y.doc,Ka(nn(y.doc,b),nn(y.doc,ja(At))))})()},fe=function(At,on){if(y.options.allowDropFileTypes&&Ge(y.options.allowDropFileTypes,At.type)==-1){ue();return}var xn=new FileReader;xn.onerror=function(){return ue()},xn.onload=function(){var Bn=xn.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Bn)){ue();return}te[on]=Bn,ue()},xn.readAsText(At)},pe=0;pe<x.length;pe++)fe(x[pe],pe);else{if(y.state.draggingText&&y.doc.sel.contains(b)>-1){y.state.draggingText(a),setTimeout(function(){return y.display.input.focus()},20);return}try{var Ue=a.dataTransfer.getData("Text");if(Ue){var rt;if(y.state.draggingText&&!y.state.draggingText.copy&&(rt=y.listSelections()),sl(y.doc,Ka(b,b)),rt)for(var Rt=0;Rt<rt.length;++Rt)vo(y.doc,"",rt[Rt].anchor,rt[Rt].head,"drag");y.replaceSelection(Ue,"around","paste"),y.display.input.focus()}}catch(At){}}}}function bu(a,y){if(Ce&&(!a.state.draggingText||+new Date-ys<100)){vn(y);return}if(!(Ze(a,y)||ci(a.display,y))&&(y.dataTransfer.setData("Text",a.getSelection()),y.dataTransfer.effectAllowed="copyMove",y.dataTransfer.setDragImage&&!Oe)){var b=Le("img",null,null,"position: fixed; left: 0; top: 0;");b.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",de&&(b.width=b.height=1,a.display.wrapper.appendChild(b),b._top=b.offsetTop),y.dataTransfer.setDragImage(b,0,0),de&&b.parentNode.removeChild(b)}}function Cu(a,y){var b=ba(a,y);if(b){var x=document.createDocumentFragment();ko(a,b,x),a.display.dragCursor||(a.display.dragCursor=Le("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),a.display.lineSpace.insertBefore(a.display.dragCursor,a.display.cursorDiv)),ye(a.display.dragCursor,x)}}function xs(a){a.display.dragCursor&&(a.display.lineSpace.removeChild(a.display.dragCursor),a.display.dragCursor=null)}function bs(a){if(document.getElementsByClassName){for(var y=document.getElementsByClassName("CodeMirror"),b=[],x=0;x<y.length;x++){var E=y[x].CodeMirror;E&&b.push(E)}b.length&&b[0].operation(function(){for(var te=0;te<b.length;te++)a(b[te])})}}var Cs=!1;function wu(){Cs||(Su(),Cs=!0)}function Su(){var a;be(window,"resize",function(){a==null&&(a=setTimeout(function(){a=null,bs(Eu)},100))}),be(window,"blur",function(){return bs(Wa)})}function Eu(a){var y=a.display;y.cachedCharWidth=y.cachedTextHeight=y.cachedPaddingH=null,y.scrollbarsClipped=!1,a.setSize()}for(var Va={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"},jo=0;jo<10;jo++)Va[jo+48]=Va[jo+96]=String(jo);for(var dl=65;dl<=90;dl++)Va[dl]=String.fromCharCode(dl);for(var Go=1;Go<=12;Go++)Va[Go+111]=Va[Go+63235]="F"+Go;var Fa={};Fa.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"},Fa.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"},Fa.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"},Fa.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"]},Fa.default=Ee?Fa.macDefault:Fa.pcDefault;function ku(a){var y=a.split(/-(?!$)/);a=y[y.length-1];for(var b,x,E,te,oe=0;oe<y.length-1;oe++){var ue=y[oe];if(/^(cmd|meta|m)$/i.test(ue))te=!0;else if(/^a(lt)?$/i.test(ue))b=!0;else if(/^(c|ctrl|control)$/i.test(ue))x=!0;else if(/^s(hift)?$/i.test(ue))E=!0;else throw new Error("Unrecognized modifier name: "+ue)}return b&&(a="Alt-"+a),x&&(a="Ctrl-"+a),te&&(a="Cmd-"+a),E&&(a="Shift-"+a),a}function Du(a){var y={};for(var b in a)if(a.hasOwnProperty(b)){var x=a[b];if(/^(name|fallthrough|(de|at)tach)$/.test(b))continue;if(x=="..."){delete a[b];continue}for(var E=ze(b.split(" "),ku),te=0;te<E.length;te++){var oe=void 0,ue=void 0;te==E.length-1?(ue=E.join(" "),oe=x):(ue=E.slice(0,te+1).join(" "),oe="...");var fe=y[ue];if(!fe)y[ue]=oe;else if(fe!=oe)throw new Error("Inconsistent bindings for "+ue)}delete a[b]}for(var pe in y)a[pe]=y[pe];return a}function go(a,y,b,x){y=fl(y);var E=y.call?y.call(a,x):y[a];if(E===!1)return"nothing";if(E==="...")return"multi";if(E!=null&&b(E))return"handled";if(y.fallthrough){if(Object.prototype.toString.call(y.fallthrough)!="[object Array]")return go(a,y.fallthrough,b,x);for(var te=0;te<y.fallthrough.length;te++){var oe=go(a,y.fallthrough[te],b,x);if(oe)return oe}}}function ws(a){var y=typeof a=="string"?a:Va[a.keyCode];return y=="Ctrl"||y=="Alt"||y=="Shift"||y=="Mod"}function Ss(a,y,b){var x=a;return y.altKey&&x!="Alt"&&(a="Alt-"+a),(Ae?y.metaKey:y.ctrlKey)&&x!="Ctrl"&&(a="Ctrl-"+a),(Ae?y.ctrlKey:y.metaKey)&&x!="Mod"&&(a="Cmd-"+a),!b&&y.shiftKey&&x!="Shift"&&(a="Shift-"+a),a}function Es(a,y){if(de&&a.keyCode==34&&a.char)return!1;var b=Va[a.keyCode];return b==null||a.altGraphKey?!1:(a.keyCode==3&&a.code&&(b=a.code),Ss(b,a,y))}function fl(a){return typeof a=="string"?Fa[a]:a}function yo(a,y){for(var b=a.doc.sel.ranges,x=[],E=0;E<b.length;E++){for(var te=y(b[E]);x.length&&en(te.from,Se(x).to)<=0;){var oe=x.pop();if(en(oe.from,te.from)<0){te.from=oe.from;break}}x.push(te)}aa(a,function(){for(var ue=x.length-1;ue>=0;ue--)vo(a.doc,"",x[ue].from,x[ue].to,"+delete");La(a)})}function Pl(a,y,b){var x=jt(a.text,y+b,b);return x<0||x>a.text.length?null:x}function Ll(a,y,b){var x=Pl(a,y.ch,b);return x==null?null:new mt(y.line,x,b<0?"after":"before")}function Ml(a,y,b,x,E){if(a){y.doc.direction=="rtl"&&(E=-E);var te=se(b,y.doc.direction);if(te){var oe=E<0?Se(te):te[0],ue=E<0==(oe.level==1),fe=ue?"after":"before",pe;if(oe.level>0||y.doc.direction=="rtl"){var Ue=va(y,b);pe=E<0?b.text.length-1:0;var rt=ra(y,Ue,pe).top;pe=Wt(function(Rt){return ra(y,Ue,Rt).top==rt},E<0==(oe.level==1)?oe.from:oe.to-1,pe),fe=="before"&&(pe=Pl(b,pe,1))}else pe=E<0?oe.to:oe.from;return new mt(x,pe,fe)}}return new mt(x,E<0?b.text.length:0,E<0?"before":"after")}function Au(a,y,b,x){var E=se(y,a.doc.direction);if(!E)return Ll(y,b,x);b.ch>=y.text.length?(b.ch=y.text.length,b.sticky="before"):b.ch<=0&&(b.ch=0,b.sticky="after");var te=z(E,b.ch,b.sticky),oe=E[te];if(a.doc.direction=="ltr"&&oe.level%2==0&&(x>0?oe.to>b.ch:oe.from<b.ch))return Ll(y,b,x);var ue=function(Hn,qn){return Pl(y,Hn instanceof mt?Hn.ch:Hn,qn)},fe,pe=function(Hn){return a.options.lineWrapping?(fe=fe||va(a,y),bi(a,y,fe,Hn)):{begin:0,end:y.text.length}},Ue=pe(b.sticky=="before"?ue(b,-1):b.ch);if(a.doc.direction=="rtl"||oe.level==1){var rt=oe.level==1==x<0,Rt=ue(b,rt?1:-1);if(Rt!=null&&(rt?Rt<=oe.to&&Rt<=Ue.end:Rt>=oe.from&&Rt>=Ue.begin)){var At=rt?"before":"after";return new mt(b.line,Rt,At)}}var on=function(Hn,qn,Wn){for(var lr=function(ui,Zi){return Zi?new mt(b.line,ue(ui,1),"before"):new mt(b.line,ui,"after")};Hn>=0&&Hn<E.length;Hn+=qn){var Ar=E[Hn],xr=qn>0==(Ar.level!=1),jr=xr?Wn.begin:ue(Wn.end,-1);if(Ar.from<=jr&&jr<Ar.to||(jr=xr?Ar.from:ue(Ar.to,-1),Wn.begin<=jr&&jr<Wn.end))return lr(jr,xr)}},xn=on(te+x,x,Ue);if(xn)return xn;var Bn=x>0?Ue.end:ue(Ue.begin,-1);return Bn!=null&&!(x>0&&Bn==y.text.length)&&(xn=on(x>0?0:E.length-1,x,pe(Bn)),xn)?xn:null}var Uo={selectAll:ss,singleSelection:function(a){return a.setSelection(a.getCursor("anchor"),a.getCursor("head"),Te)},killLine:function(a){return yo(a,function(y){if(y.empty()){var b=Mt(a.doc,y.head.line).text.length;return y.head.ch==b&&y.head.line<a.lastLine()?{from:y.head,to:mt(y.head.line+1,0)}:{from:y.head,to:mt(y.head.line,b)}}else return{from:y.from(),to:y.to()}})},deleteLine:function(a){return yo(a,function(y){return{from:mt(y.from().line,0),to:nn(a.doc,mt(y.to().line+1,0))}})},delLineLeft:function(a){return yo(a,function(y){return{from:mt(y.from().line,0),to:y.from()}})},delWrappedLineLeft:function(a){return yo(a,function(y){var b=a.charCoords(y.head,"div").top+5,x=a.coordsChar({left:0,top:b},"div");return{from:x,to:y.from()}})},delWrappedLineRight:function(a){return yo(a,function(y){var b=a.charCoords(y.head,"div").top+5,x=a.coordsChar({left:a.display.lineDiv.offsetWidth+100,top:b},"div");return{from:y.from(),to:x}})},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(mt(a.firstLine(),0))},goDocEnd:function(a){return a.extendSelection(mt(a.lastLine()))},goLineStart:function(a){return a.extendSelectionsBy(function(y){return ks(a,y.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(a){return a.extendSelectionsBy(function(y){return Ds(a,y.head)},{origin:"+move",bias:1})},goLineEnd:function(a){return a.extendSelectionsBy(function(y){return Nu(a,y.head.line)},{origin:"+move",bias:-1})},goLineRight:function(a){return a.extendSelectionsBy(function(y){var b=a.cursorCoords(y.head,"div").top+5;return a.coordsChar({left:a.display.lineDiv.offsetWidth+100,top:b},"div")},at)},goLineLeft:function(a){return a.extendSelectionsBy(function(y){var b=a.cursorCoords(y.head,"div").top+5;return a.coordsChar({left:0,top:b},"div")},at)},goLineLeftSmart:function(a){return a.extendSelectionsBy(function(y){var b=a.cursorCoords(y.head,"div").top+5,x=a.coordsChar({left:0,top:b},"div");return x.ch<a.getLine(x.line).search(/\S/)?Ds(a,y.head):x},at)},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=[],b=a.listSelections(),x=a.options.tabSize,E=0;E<b.length;E++){var te=b[E].from(),oe=ve(a.getLine(te.line),te.ch,x);y.push(De(x-oe%x))}a.replaceSelections(y)},defaultTab:function(a){a.somethingSelected()?a.indentSelection("add"):a.execCommand("insertTab")},transposeChars:function(a){return aa(a,function(){for(var y=a.listSelections(),b=[],x=0;x<y.length;x++)if(y[x].empty()){var E=y[x].head,te=Mt(a.doc,E.line).text;if(te){if(E.ch==te.length&&(E=new mt(E.line,E.ch-1)),E.ch>0)E=new mt(E.line,E.ch+1),a.replaceRange(te.charAt(E.ch-1)+te.charAt(E.ch-2),mt(E.line,E.ch-2),E,"+transpose");else if(E.line>a.doc.first){var oe=Mt(a.doc,E.line-1).text;oe&&(E=new mt(E.line,1),a.replaceRange(te.charAt(0)+a.doc.lineSeparator()+oe.charAt(oe.length-1),mt(E.line-1,oe.length-1),E,"+transpose"))}}b.push(new ri(E,E))}a.setSelections(b)})},newlineAndIndent:function(a){return aa(a,function(){for(var y=a.listSelections(),b=y.length-1;b>=0;b--)a.replaceRange(a.doc.lineSeparator(),y[b].anchor,y[b].head,"+input");y=a.listSelections();for(var x=0;x<y.length;x++)a.indentLine(y[x].from().line,null,!0);La(a)})},openLine:function(a){return a.replaceSelection(`
|
|
`,"start")},toggleOverwrite:function(a){return a.toggleOverwrite()}};function ks(a,y){var b=Mt(a.doc,y),x=It(b);return x!=b&&(y=nt(x)),Ml(!0,a,x,y,1)}function Nu(a,y){var b=Mt(a.doc,y),x=Yt(b);return x!=b&&(y=nt(x)),Ml(!0,a,b,y,-1)}function Ds(a,y){var b=ks(a,y.line),x=Mt(a.doc,b.line),E=se(x,a.doc.direction);if(!E||E[0].level==0){var te=Math.max(b.ch,x.text.search(/\S/)),oe=y.line==b.line&&y.ch<=te&&y.ch;return mt(b.line,oe?0:te,b.sticky)}return b}function hl(a,y,b){if(typeof y=="string"&&(y=Uo[y],!y))return!1;a.display.input.ensurePolled();var x=a.display.shift,E=!1;try{a.isReadOnly()&&(a.state.suppressEdits=!0),b&&(a.display.shift=!1),E=y(a)!=dt}finally{a.display.shift=x,a.state.suppressEdits=!1}return E}function Pu(a,y,b){for(var x=0;x<a.state.keyMaps.length;x++){var E=go(y,a.state.keyMaps[x],b,a);if(E)return E}return a.options.extraKeys&&go(y,a.options.extraKeys,b,a)||go(y,a.options.keyMap,b,a)}var Lu=new ce;function Vo(a,y,b,x){var E=a.state.keySeq;if(E){if(ws(y))return"handled";if(/\'$/.test(y)?a.state.keySeq=null:Lu.set(50,function(){a.state.keySeq==E&&(a.state.keySeq=null,a.display.input.reset())}),As(a,E+" "+y,b,x))return!0}return As(a,y,b,x)}function As(a,y,b,x){var E=Pu(a,y,x);return E=="multi"&&(a.state.keySeq=y),E=="handled"&&qr(a,"keyHandled",a,y,b),(E=="handled"||E=="multi")&&(un(b),Do(a)),!!E}function Ns(a,y){var b=Es(y,!0);return b?y.shiftKey&&!a.state.keySeq?Vo(a,"Shift-"+b,y,function(x){return hl(a,x,!0)})||Vo(a,b,y,function(x){if(typeof x=="string"?/^go[A-Z]/.test(x):x.motion)return hl(a,x)}):Vo(a,b,y,function(x){return hl(a,x)}):!1}function Mu(a,y,b){return Vo(a,"'"+b+"'",y,function(x){return hl(a,x,!0)})}var Tl=null;function Ps(a){var y=this;if(!(a.target&&a.target!=y.display.input.getField())&&(y.curOp.focus=_e(),!Ze(y,a))){Ce&&he<11&&a.keyCode==27&&(a.returnValue=!1);var b=a.keyCode;y.display.shift=b==16||a.shiftKey;var x=Ns(y,a);de&&(Tl=x?b:null,!x&&b==88&&!Ln&&(Ee?a.metaKey:a.ctrlKey)&&y.replaceSelection("",null,"cut")),re&&!Ee&&!x&&b==46&&a.shiftKey&&!a.ctrlKey&&document.execCommand&&document.execCommand("cut"),b==18&&!/\bCodeMirror-crosshair\b/.test(y.display.lineDiv.className)&&Tu(y)}}function Tu(a){var y=a.display.lineDiv;et(y,"CodeMirror-crosshair");function b(x){(x.keyCode==18||!x.altKey)&&(We(y,"CodeMirror-crosshair"),kt(document,"keyup",b),kt(document,"mouseover",b))}be(document,"keyup",b),be(document,"mouseover",b)}function Ls(a){a.keyCode==16&&(this.doc.sel.shift=!1),Ze(this,a)}function Ms(a){var y=this;if(!(a.target&&a.target!=y.display.input.getField())&&!(ci(y.display,a)||Ze(y,a)||a.ctrlKey&&!a.altKey||Ee&&a.metaKey)){var b=a.keyCode,x=a.charCode;if(de&&b==Tl){Tl=null,un(a);return}if(!(de&&(!a.which||a.which<10)&&Ns(y,a))){var E=String.fromCharCode(x==null?b:x);E!="\b"&&(Mu(y,a,E)||y.display.input.onKeyPress(a))}}}var Bu=400,Bl=function(a,y,b){this.time=a,this.pos=y,this.button=b};Bl.prototype.compare=function(a,y,b){return this.time+Bu>a&&en(y,this.pos)==0&&b==this.button};var Yo,Xo;function Ru(a,y){var b=+new Date;return Xo&&Xo.compare(b,a,y)?(Yo=Xo=null,"triple"):Yo&&Yo.compare(b,a,y)?(Xo=new Bl(b,a,y),Yo=null,"double"):(Yo=new Bl(b,a,y),Xo=null,"single")}function Ts(a){var y=this,b=y.display;if(!(Ze(y,a)||b.activeTouch&&b.input.supportsTouch())){if(b.input.ensurePolled(),b.shift=a.shiftKey,ci(b,a)){Ne||(b.scroller.draggable=!1,setTimeout(function(){return b.scroller.draggable=!0},100));return}if(!Rl(y,a)){var x=ba(y,a),E=Tn(a),te=x?Ru(x,E):"single";window.focus(),E==1&&y.state.selectingText&&y.state.selectingText(a),!(x&&Fu(y,E,x,te,a))&&(E==1?x?Ou(y,x,te,a):Fn(a)==b.scroller&&un(a):E==2?(x&&ll(y.doc,x),setTimeout(function(){return b.input.focus()},20)):E==3&&(me?y.display.input.onContextMenu(a):No(y)))}}}function Fu(a,y,b,x,E){var te="Click";return x=="double"?te="Double"+te:x=="triple"&&(te="Triple"+te),te=(y==1?"Left":y==2?"Middle":"Right")+te,Vo(a,Ss(te,E),E,function(oe){if(typeof oe=="string"&&(oe=Uo[oe]),!oe)return!1;var ue=!1;try{a.isReadOnly()&&(a.state.suppressEdits=!0),ue=oe(a,b)!=dt}finally{a.state.suppressEdits=!1}return ue})}function Iu(a,y,b){var x=a.getOption("configureMouse"),E=x?x(a,y,b):{};if(E.unit==null){var te=qe?b.shiftKey&&b.metaKey:b.altKey;E.unit=te?"rectangle":y=="single"?"char":y=="double"?"word":"line"}return(E.extend==null||a.doc.extend)&&(E.extend=a.doc.extend||b.shiftKey),E.addNew==null&&(E.addNew=Ee?b.metaKey:b.ctrlKey),E.moveOnDrag==null&&(E.moveOnDrag=!(Ee?b.altKey:b.ctrlKey)),E}function Ou(a,y,b,x){Ce?setTimeout(Ct(Ao,a),0):a.curOp.focus=_e();var E=Iu(a,b,x),te=a.doc.sel,oe;a.options.dragDrop&&Un&&!a.isReadOnly()&&b=="single"&&(oe=te.contains(y))>-1&&(en((oe=te.ranges[oe]).from(),y)<0||y.xRel>0)&&(en(oe.to(),y)>0||y.xRel<0)?Zu(a,x,y,E):_u(a,x,y,E)}function Zu(a,y,b,x){var E=a.display,te=!1,oe=Ii(a,function(pe){Ne&&(E.scroller.draggable=!1),a.state.draggingText=!1,kt(E.wrapper.ownerDocument,"mouseup",oe),kt(E.wrapper.ownerDocument,"mousemove",ue),kt(E.scroller,"dragstart",fe),kt(E.scroller,"drop",oe),te||(un(pe),x.addNew||ll(a.doc,b,null,null,x.extend),Ne&&!Oe||Ce&&he==9?setTimeout(function(){E.wrapper.ownerDocument.body.focus({preventScroll:!0}),E.input.focus()},20):E.input.focus())}),ue=function(pe){te=te||Math.abs(y.clientX-pe.clientX)+Math.abs(y.clientY-pe.clientY)>=10},fe=function(){return te=!0};Ne&&(E.scroller.draggable=!0),a.state.draggingText=oe,oe.copy=!x.moveOnDrag,E.scroller.dragDrop&&E.scroller.dragDrop(),be(E.wrapper.ownerDocument,"mouseup",oe),be(E.wrapper.ownerDocument,"mousemove",ue),be(E.scroller,"dragstart",fe),be(E.scroller,"drop",oe),No(a),setTimeout(function(){return E.input.focus()},20)}function Bs(a,y,b){if(b=="char")return new ri(y,y);if(b=="word")return a.findWordAt(y);if(b=="line")return new ri(mt(y.line,0),nn(a.doc,mt(y.line+1,0)));var x=b(a,y);return new ri(x.from,x.to)}function _u(a,y,b,x){var E=a.display,te=a.doc;un(y);var oe,ue,fe=te.sel,pe=fe.ranges;if(x.addNew&&!x.extend?(ue=te.sel.contains(b),ue>-1?oe=pe[ue]:oe=new ri(b,b)):(oe=te.sel.primary(),ue=te.sel.primIndex),x.unit=="rectangle")x.addNew||(oe=new ri(b,b)),b=ba(a,y,!0,!0),ue=-1;else{var Ue=Bs(a,b,x.unit);x.extend?oe=Al(oe,Ue.anchor,Ue.head,x.extend):oe=Ue}x.addNew?ue==-1?(ue=pe.length,ji(te,ya(a,pe.concat([oe]),ue),{scroll:!1,origin:"*mouse"})):pe.length>1&&pe[ue].empty()&&x.unit=="char"&&!x.extend?(ji(te,ya(a,pe.slice(0,ue).concat(pe.slice(ue+1)),0),{scroll:!1,origin:"*mouse"}),fe=te.sel):Nl(te,ue,oe,ut):(ue=0,ji(te,new ha([oe],0),ut),fe=te.sel);var rt=b;function Rt(Wn){if(en(rt,Wn)!=0)if(rt=Wn,x.unit=="rectangle"){for(var lr=[],Ar=a.options.tabSize,xr=ve(Mt(te,b.line).text,b.ch,Ar),jr=ve(Mt(te,Wn.line).text,Wn.ch,Ar),ui=Math.min(xr,jr),Zi=Math.max(xr,jr),Ci=Math.min(b.line,Wn.line),oa=Math.min(a.lastLine(),Math.max(b.line,Wn.line));Ci<=oa;Ci++){var ea=Mt(te,Ci).text,Li=_t(ea,ui,Ar);ui==Zi?lr.push(new ri(mt(Ci,Li),mt(Ci,Li))):ea.length>Li&&lr.push(new ri(mt(Ci,Li),mt(Ci,_t(ea,Zi,Ar))))}lr.length||lr.push(new ri(b,b)),ji(te,ya(a,fe.ranges.slice(0,ue).concat(lr),ue),{origin:"*mouse",scroll:!1}),a.scrollIntoView(Wn)}else{var ta=oe,zi=Bs(a,Wn,x.unit),Ri=ta.anchor,Mi;en(zi.anchor,Ri)>0?(Mi=zi.head,Ri=yn(ta.from(),zi.anchor)):(Mi=zi.anchor,Ri=Dn(ta.to(),zi.head));var Ei=fe.ranges.slice(0);Ei[ue]=Hu(a,new ri(nn(te,Ri),Mi)),ji(te,ya(a,Ei,ue),ut)}}var At=E.wrapper.getBoundingClientRect(),on=0;function xn(Wn){var lr=++on,Ar=ba(a,Wn,!0,x.unit=="rectangle");if(Ar)if(en(Ar,rt)!=0){a.curOp.focus=_e(),Rt(Ar);var xr=Pa(E,te);(Ar.line>=xr.to||Ar.line<xr.from)&&setTimeout(Ii(a,function(){on==lr&&xn(Wn)}),150)}else{var jr=Wn.clientY<At.top?-20:Wn.clientY>At.bottom?20:0;jr&&setTimeout(Ii(a,function(){on==lr&&(E.scroller.scrollTop+=jr,xn(Wn))}),50)}}function Bn(Wn){a.state.selectingText=!1,on=1/0,Wn&&(un(Wn),E.input.focus()),kt(E.wrapper.ownerDocument,"mousemove",Hn),kt(E.wrapper.ownerDocument,"mouseup",qn),te.history.lastSelOrigin=null}var Hn=Ii(a,function(Wn){Wn.buttons===0||!Tn(Wn)?Bn(Wn):xn(Wn)}),qn=Ii(a,Bn);a.state.selectingText=qn,be(E.wrapper.ownerDocument,"mousemove",Hn),be(E.wrapper.ownerDocument,"mouseup",qn)}function Hu(a,y){var b=y.anchor,x=y.head,E=Mt(a.doc,b.line);if(en(b,x)==0&&b.sticky==x.sticky)return y;var te=se(E);if(!te)return y;var oe=z(te,b.ch,b.sticky),ue=te[oe];if(ue.from!=b.ch&&ue.to!=b.ch)return y;var fe=oe+(ue.from==b.ch==(ue.level!=1)?0:1);if(fe==0||fe==te.length)return y;var pe;if(x.line!=b.line)pe=(x.line-b.line)*(a.doc.direction=="ltr"?1:-1)>0;else{var Ue=z(te,x.ch,x.sticky),rt=Ue-oe||(x.ch-b.ch)*(ue.level==1?-1:1);Ue==fe-1||Ue==fe?pe=rt<0:pe=rt>0}var Rt=te[fe+(pe?-1:0)],At=pe==(Rt.level==1),on=At?Rt.from:Rt.to,xn=At?"after":"before";return b.ch==on&&b.sticky==xn?y:new ri(new mt(b.line,on,xn),x)}function Rs(a,y,b,x){var E,te;if(y.touches)E=y.touches[0].clientX,te=y.touches[0].clientY;else try{E=y.clientX,te=y.clientY}catch(Rt){return!1}if(E>=Math.floor(a.display.gutters.getBoundingClientRect().right))return!1;x&&un(y);var oe=a.display,ue=oe.lineDiv.getBoundingClientRect();if(te>ue.bottom||!Bt(a,b))return St(y);te-=ue.top-oe.viewOffset;for(var fe=0;fe<a.display.gutterSpecs.length;++fe){var pe=oe.gutters.childNodes[fe];if(pe&&pe.getBoundingClientRect().right>=E){var Ue=ot(a.doc,te),rt=a.display.gutterSpecs[fe];return ht(a,b,a,Ue,rt.className,y),St(y)}}}function Rl(a,y){return Rs(a,y,"gutterClick",!0)}function Fs(a,y){ci(a.display,y)||Wu(a,y)||Ze(a,y,"contextmenu")||me||a.display.input.onContextMenu(y)}function Wu(a,y){return Bt(a,"gutterContextMenu")?Rs(a,y,"gutterContextMenu",!1):!1}function Is(a){a.display.wrapper.className=a.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+a.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Ea(a)}var xo={toString:function(){return"CodeMirror.Init"}},Os={},pl={};function zu(a){var y=a.optionHandlers;function b(x,E,te,oe){a.defaults[x]=E,te&&(y[x]=oe?function(ue,fe,pe){pe!=xo&&te(ue,fe,pe)}:te)}a.defineOption=b,a.Init=xo,b("value","",function(x,E){return x.setValue(E)},!0),b("mode",null,function(x,E){x.doc.modeOption=E,El(x)},!0),b("indentUnit",2,El,!0),b("indentWithTabs",!1),b("smartIndent",!0),b("tabSize",4,function(x){Oo(x),Ea(x),Wi(x)},!0),b("lineSeparator",null,function(x,E){if(x.doc.lineSep=E,!!E){var te=[],oe=x.doc.first;x.doc.iter(function(fe){for(var pe=0;;){var Ue=fe.text.indexOf(E,pe);if(Ue==-1)break;pe=Ue+E.length,te.push(mt(oe,Ue))}oe++});for(var ue=te.length-1;ue>=0;ue--)vo(x.doc,E,te[ue],mt(te[ue].line,te[ue].ch+E.length))}}),b("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(x,E,te){x.state.specialChars=new RegExp(E.source+(E.test(" ")?"":"| "),"g"),te!=xo&&x.refresh()}),b("specialCharPlaceholder",kr,function(x){return x.refresh()},!0),b("electricChars",!0),b("inputStyle",ke?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),b("spellcheck",!1,function(x,E){return x.getInputField().spellcheck=E},!0),b("autocorrect",!1,function(x,E){return x.getInputField().autocorrect=E},!0),b("autocapitalize",!1,function(x,E){return x.getInputField().autocapitalize=E},!0),b("rtlMoveVisually",!lt),b("wholeLineUpdateBefore",!0),b("theme","default",function(x){Is(x),Io(x)},!0),b("keyMap","default",function(x,E,te){var oe=fl(E),ue=te!=xo&&fl(te);ue&&ue.detach&&ue.detach(x,oe),oe.attach&&oe.attach(x,ue||null)}),b("extraKeys",null),b("configureMouse",null),b("lineWrapping",!1,ju,!0),b("gutters",[],function(x,E){x.display.gutterSpecs=wl(E,x.options.lineNumbers),Io(x)},!0),b("fixedGutter",!0,function(x,E){x.display.gutters.style.left=E?qa(x.display)+"px":"0",x.refresh()},!0),b("coverGutterNextToScrollbar",!1,function(x){return Fi(x)},!0),b("scrollbarStyle","native",function(x){Ca(x),Fi(x),x.display.scrollbars.setScrollTop(x.doc.scrollTop),x.display.scrollbars.setScrollLeft(x.doc.scrollLeft)},!0),b("lineNumbers",!1,function(x,E){x.display.gutterSpecs=wl(x.options.gutters,E),Io(x)},!0),b("firstLineNumber",1,Io,!0),b("lineNumberFormatter",function(x){return x},Io,!0),b("showCursorWhenSelecting",!1,Ha,!0),b("resetSelectionOnContextMenu",!0),b("lineWiseCopyCut",!0),b("pasteLinesPerSelection",!0),b("selectionsMayTouch",!1),b("readOnly",!1,function(x,E){E=="nocursor"&&(Wa(x),x.display.input.blur()),x.display.input.readOnlyChanged(E)}),b("screenReaderLabel",null,function(x,E){E=E===""?null:E,x.display.input.screenReaderLabelChanged(E)}),b("disableInput",!1,function(x,E){E||x.display.input.reset()},!0),b("dragDrop",!0,Ku),b("allowDropFileTypes",null),b("cursorBlinkRate",530),b("cursorScrollMargin",0),b("cursorHeight",1,Ha,!0),b("singleCursorHeightPerLine",!0,Ha,!0),b("workTime",100),b("workDelay",100),b("flattenSpans",!0,Oo,!0),b("addModeClass",!1,Oo,!0),b("pollInterval",100),b("undoDepth",200,function(x,E){return x.doc.history.undoDepth=E}),b("historyEventDelay",1250),b("viewportMargin",10,function(x){return x.refresh()},!0),b("maxHighlightLength",1e4,Oo,!0),b("moveInputWithCursor",!0,function(x,E){E||x.display.input.resetPosition()}),b("tabindex",null,function(x,E){return x.display.input.getField().tabIndex=E||""}),b("autofocus",null),b("direction","ltr",function(x,E){return x.doc.setDirection(E)},!0),b("phrases",null)}function Ku(a,y,b){var x=b&&b!=xo;if(!y!=!x){var E=a.display.dragFunctions,te=y?be:kt;te(a.display.scroller,"dragstart",E.start),te(a.display.scroller,"dragenter",E.enter),te(a.display.scroller,"dragover",E.over),te(a.display.scroller,"dragleave",E.leave),te(a.display.scroller,"drop",E.drop)}}function ju(a){a.options.lineWrapping?(et(a.display.wrapper,"CodeMirror-wrap"),a.display.sizer.style.minWidth="",a.display.sizerWidth=null):(We(a.display.wrapper,"CodeMirror-wrap"),On(a)),Eo(a),Wi(a),Ea(a),setTimeout(function(){return Fi(a)},100)}function gi(a,y){var b=this;if(!(this instanceof gi))return new gi(a,y);this.options=y=y?ft(y):{},ft(Os,y,!1);var x=y.value;typeof x=="string"?x=new $i(x,y.mode,null,y.lineSeparator,y.direction):y.mode&&(x.modeOption=y.mode),this.doc=x;var E=new gi.inputStyles[y.inputStyle](this),te=this.display=new ru(a,x,E,y);te.wrapper.CodeMirror=this,Is(this),y.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Ca(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 ce,keySeq:null,specialChars:null},y.autofocus&&!ke&&te.input.focus(),Ce&&he<11&&setTimeout(function(){return b.display.input.reset(!0)},20),Gu(this),wu(),da(this),this.curOp.forceUpdate=!0,Xl(this,x),y.autofocus&&!ke||this.hasFocus()?setTimeout(function(){b.hasFocus()&&!b.state.focused&&Po(b)},20):Wa(this);for(var oe in pl)pl.hasOwnProperty(oe)&&pl[oe](this,y[oe],xo);zl(this),y.finishInit&&y.finishInit(this);for(var ue=0;ue<Fl.length;++ue)Fl[ue](this);ga(this),Ne&&y.lineWrapping&&getComputedStyle(te.lineDiv).textRendering=="optimizelegibility"&&(te.lineDiv.style.textRendering="auto")}gi.defaults=Os,gi.optionHandlers=pl;function Gu(a){var y=a.display;be(y.scroller,"mousedown",Ii(a,Ts)),Ce&&he<11?be(y.scroller,"dblclick",Ii(a,function(fe){if(!Ze(a,fe)){var pe=ba(a,fe);if(!(!pe||Rl(a,fe)||ci(a.display,fe))){un(fe);var Ue=a.findWordAt(pe);ll(a.doc,Ue.anchor,Ue.head)}}})):be(y.scroller,"dblclick",function(fe){return Ze(a,fe)||un(fe)}),be(y.scroller,"contextmenu",function(fe){return Fs(a,fe)}),be(y.input.getField(),"contextmenu",function(fe){y.scroller.contains(fe.target)||Fs(a,fe)});var b,x={end:0};function E(){y.activeTouch&&(b=setTimeout(function(){return y.activeTouch=null},1e3),x=y.activeTouch,x.end=+new Date)}function te(fe){if(fe.touches.length!=1)return!1;var pe=fe.touches[0];return pe.radiusX<=1&&pe.radiusY<=1}function oe(fe,pe){if(pe.left==null)return!0;var Ue=pe.left-fe.left,rt=pe.top-fe.top;return Ue*Ue+rt*rt>20*20}be(y.scroller,"touchstart",function(fe){if(!Ze(a,fe)&&!te(fe)&&!Rl(a,fe)){y.input.ensurePolled(),clearTimeout(b);var pe=+new Date;y.activeTouch={start:pe,moved:!1,prev:pe-x.end<=300?x:null},fe.touches.length==1&&(y.activeTouch.left=fe.touches[0].pageX,y.activeTouch.top=fe.touches[0].pageY)}}),be(y.scroller,"touchmove",function(){y.activeTouch&&(y.activeTouch.moved=!0)}),be(y.scroller,"touchend",function(fe){var pe=y.activeTouch;if(pe&&!ci(y,fe)&&pe.left!=null&&!pe.moved&&new Date-pe.start<300){var Ue=a.coordsChar(y.activeTouch,"page"),rt;!pe.prev||oe(pe,pe.prev)?rt=new ri(Ue,Ue):!pe.prev.prev||oe(pe,pe.prev.prev)?rt=a.findWordAt(Ue):rt=new ri(mt(Ue.line,0),nn(a.doc,mt(Ue.line+1,0))),a.setSelection(rt.anchor,rt.head),a.focus(),un(fe)}E()}),be(y.scroller,"touchcancel",E),be(y.scroller,"scroll",function(){y.scroller.clientHeight&&(Ma(a,y.scroller.scrollTop),Ta(a,y.scroller.scrollLeft,!0),ht(a,"scroll",a))}),be(y.scroller,"mousewheel",function(fe){return Gl(a,fe)}),be(y.scroller,"DOMMouseScroll",function(fe){return Gl(a,fe)}),be(y.wrapper,"scroll",function(){return y.wrapper.scrollTop=y.wrapper.scrollLeft=0}),y.dragFunctions={enter:function(fe){Ze(a,fe)||vn(fe)},over:function(fe){Ze(a,fe)||(Cu(a,fe),vn(fe))},start:function(fe){return bu(a,fe)},drop:Ii(a,xu),leave:function(fe){Ze(a,fe)||xs(a)}};var ue=y.input.getField();be(ue,"keyup",function(fe){return Ls.call(a,fe)}),be(ue,"keydown",Ii(a,Ps)),be(ue,"keypress",Ii(a,Ms)),be(ue,"focus",function(fe){return Po(a,fe)}),be(ue,"blur",function(fe){return Wa(a,fe)})}var Fl=[];gi.defineInitHook=function(a){return Fl.push(a)};function Jo(a,y,b,x){var E=a.doc,te;b==null&&(b="add"),b=="smart"&&(E.mode.indent?te=Mr(a,y).state:b="prev");var oe=a.options.tabSize,ue=Mt(E,y),fe=ve(ue.text,null,oe);ue.stateAfter&&(ue.stateAfter=null);var pe=ue.text.match(/^\s*/)[0],Ue;if(!x&&!/\S/.test(ue.text))Ue=0,b="not";else if(b=="smart"&&(Ue=E.mode.indent(te,ue.text.slice(pe.length),ue.text),Ue==dt||Ue>150)){if(!x)return;b="prev"}b=="prev"?y>E.first?Ue=ve(Mt(E,y-1).text,null,oe):Ue=0:b=="add"?Ue=fe+a.options.indentUnit:b=="subtract"?Ue=fe-a.options.indentUnit:typeof b=="number"&&(Ue=fe+b),Ue=Math.max(0,Ue);var rt="",Rt=0;if(a.options.indentWithTabs)for(var At=Math.floor(Ue/oe);At;--At)Rt+=oe,rt+=" ";if(Rt<Ue&&(rt+=De(Ue-Rt)),rt!=pe)return vo(E,rt,mt(y,0),mt(y,pe.length),"+input"),ue.stateAfter=null,!0;for(var on=0;on<E.sel.ranges.length;on++){var xn=E.sel.ranges[on];if(xn.head.line==y&&xn.head.ch<pe.length){var Bn=mt(y,pe.length);Nl(E,on,new ri(Bn,Bn));break}}}var xa=null;function vl(a){xa=a}function Il(a,y,b,x,E){var te=a.doc;a.display.shift=!1,x||(x=te.sel);var oe=+new Date-200,ue=E=="paste"||a.state.pasteIncoming>oe,fe=pr(y),pe=null;if(ue&&x.ranges.length>1)if(xa&&xa.text.join(`
|
|
`)==y){if(x.ranges.length%xa.text.length==0){pe=[];for(var Ue=0;Ue<xa.text.length;Ue++)pe.push(te.splitLines(xa.text[Ue]))}}else fe.length==x.ranges.length&&a.options.pasteLinesPerSelection&&(pe=ze(fe,function(Hn){return[Hn]}));for(var rt=a.curOp.updateInput,Rt=x.ranges.length-1;Rt>=0;Rt--){var At=x.ranges[Rt],on=At.from(),xn=At.to();At.empty()&&(b&&b>0?on=mt(on.line,on.ch-b):a.state.overwrite&&!ue?xn=mt(xn.line,Math.min(Mt(te,xn.line).text.length,xn.ch+Se(fe).length)):ue&&xa&&xa.lineWise&&xa.text.join(`
|
|
`)==fe.join(`
|
|
`)&&(on=xn=mt(on.line,0)));var Bn={from:on,to:xn,text:pe?pe[Rt%pe.length]:fe,origin:E||(ue?"paste":a.state.cutIncoming>oe?"cut":"+input")};po(a.doc,Bn),qr(a,"inputRead",a,Bn)}y&&!ue&&_s(a,y),La(a),a.curOp.updateInput<2&&(a.curOp.updateInput=rt),a.curOp.typing=!0,a.state.pasteIncoming=a.state.cutIncoming=-1}function Zs(a,y){var b=a.clipboardData&&a.clipboardData.getData("Text");if(b)return a.preventDefault(),!y.isReadOnly()&&!y.options.disableInput&&aa(y,function(){return Il(y,b,0,null,"paste")}),!0}function _s(a,y){if(!(!a.options.electricChars||!a.options.smartIndent))for(var b=a.doc.sel,x=b.ranges.length-1;x>=0;x--){var E=b.ranges[x];if(!(E.head.ch>100||x&&b.ranges[x-1].head.line==E.head.line)){var te=a.getModeAt(E.head),oe=!1;if(te.electricChars){for(var ue=0;ue<te.electricChars.length;ue++)if(y.indexOf(te.electricChars.charAt(ue))>-1){oe=Jo(a,E.head.line,"smart");break}}else te.electricInput&&te.electricInput.test(Mt(a.doc,E.head.line).text.slice(0,E.head.ch))&&(oe=Jo(a,E.head.line,"smart"));oe&&qr(a,"electricInput",a,E.head.line)}}}function Hs(a){for(var y=[],b=[],x=0;x<a.doc.sel.ranges.length;x++){var E=a.doc.sel.ranges[x].head.line,te={anchor:mt(E,0),head:mt(E+1,0)};b.push(te),y.push(a.getRange(te.anchor,te.head))}return{text:y,ranges:b}}function Ws(a,y,b,x){a.setAttribute("autocorrect",b?"":"off"),a.setAttribute("autocapitalize",x?"":"off"),a.setAttribute("spellcheck",!!y)}function zs(){var a=Le("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),y=Le("div",[a],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return Ne?a.style.width="1000px":a.setAttribute("wrap","off"),Xe&&(a.style.border="1px solid black"),Ws(a),y}function Uu(a){var y=a.optionHandlers,b=a.helpers={};a.prototype={constructor:a,focus:function(){window.focus(),this.display.input.focus()},setOption:function(x,E){var te=this.options,oe=te[x];te[x]==E&&x!="mode"||(te[x]=E,y.hasOwnProperty(x)&&Ii(this,y[x])(this,E,oe),ht(this,"optionChange",this,x))},getOption:function(x){return this.options[x]},getDoc:function(){return this.doc},addKeyMap:function(x,E){this.state.keyMaps[E?"push":"unshift"](fl(x))},removeKeyMap:function(x){for(var E=this.state.keyMaps,te=0;te<E.length;++te)if(E[te]==x||E[te].name==x)return E.splice(te,1),!0},addOverlay:Yi(function(x,E){var te=x.token?x:a.getMode(this.options,x);if(te.startState)throw new Error("Overlays may not be stateful.");st(this.state.overlays,{mode:te,modeSpec:x,opaque:E&&E.opaque,priority:E&&E.priority||0},function(oe){return oe.priority}),this.state.modeGen++,Wi(this)}),removeOverlay:Yi(function(x){for(var E=this.state.overlays,te=0;te<E.length;++te){var oe=E[te].modeSpec;if(oe==x||typeof x=="string"&&oe.name==x){E.splice(te,1),this.state.modeGen++,Wi(this);return}}}),indentLine:Yi(function(x,E,te){typeof E!="string"&&typeof E!="number"&&(E==null?E=this.options.smartIndent?"smart":"prev":E=E?"add":"subtract"),dn(this.doc,x)&&Jo(this,x,E,te)}),indentSelection:Yi(function(x){for(var E=this.doc.sel.ranges,te=-1,oe=0;oe<E.length;oe++){var ue=E[oe];if(ue.empty())ue.head.line>te&&(Jo(this,ue.head.line,x,!0),te=ue.head.line,oe==this.doc.sel.primIndex&&La(this));else{var fe=ue.from(),pe=ue.to(),Ue=Math.max(te,fe.line);te=Math.min(this.lastLine(),pe.line-(pe.ch?0:1))+1;for(var rt=Ue;rt<te;++rt)Jo(this,rt,x);var Rt=this.doc.sel.ranges;fe.ch==0&&E.length==Rt.length&&Rt[oe].from().ch>0&&Nl(this.doc,oe,new ri(fe,Rt[oe].to()),Te)}}}),getTokenAt:function(x,E){return Pr(this,x,E)},getLineTokens:function(x,E){return Pr(this,mt(x),E,!0)},getTokenTypeAt:function(x){x=nn(this.doc,x);var E=Er(this,Mt(this.doc,x.line)),te=0,oe=(E.length-1)/2,ue=x.ch,fe;if(ue==0)fe=E[2];else for(;;){var pe=te+oe>>1;if((pe?E[pe*2-1]:0)>=ue)oe=pe;else if(E[pe*2+1]<ue)te=pe+1;else{fe=E[pe*2+2];break}}var Ue=fe?fe.indexOf("overlay "):-1;return Ue<0?fe:Ue==0?null:fe.slice(0,Ue-1)},getModeAt:function(x){var E=this.doc.mode;return E.innerMode?a.innerMode(E,this.getTokenAt(x).state).mode:E},getHelper:function(x,E){return this.getHelpers(x,E)[0]},getHelpers:function(x,E){var te=[];if(!b.hasOwnProperty(E))return te;var oe=b[E],ue=this.getModeAt(x);if(typeof ue[E]=="string")oe[ue[E]]&&te.push(oe[ue[E]]);else if(ue[E])for(var fe=0;fe<ue[E].length;fe++){var pe=oe[ue[E][fe]];pe&&te.push(pe)}else ue.helperType&&oe[ue.helperType]?te.push(oe[ue.helperType]):oe[ue.name]&&te.push(oe[ue.name]);for(var Ue=0;Ue<oe._global.length;Ue++){var rt=oe._global[Ue];rt.pred(ue,this)&&Ge(te,rt.val)==-1&&te.push(rt.val)}return te},getStateAfter:function(x,E){var te=this.doc;return x=An(te,x==null?te.first+te.size-1:x),Mr(this,x+1,E).state},cursorCoords:function(x,E){var te,oe=this.doc.sel.primary();return x==null?te=oe.head:typeof x=="object"?te=nn(this.doc,x):te=x?oe.from():oe.to(),fi(this,te,E||"page")},charCoords:function(x,E){return Hi(this,nn(this.doc,x),E||"page")},coordsChar:function(x,E){return x=Da(this,x,E||"page"),mi(this,x.left,x.top)},lineAtHeight:function(x,E){return x=Da(this,{top:x,left:0},E||"page").top,ot(this.doc,x+this.display.viewOffset)},heightAtLine:function(x,E,te){var oe=!1,ue;if(typeof x=="number"){var fe=this.doc.first+this.doc.size-1;x<this.doc.first?x=this.doc.first:x>fe&&(x=fe,oe=!0),ue=Mt(this.doc,x)}else ue=x;return ka(this,ue,{top:0,left:0},E||"page",te||oe).top+(oe?this.doc.height-Nn(ue):0)},defaultTextHeight:function(){return Ti(this.display)},defaultCharWidth:function(){return Qi(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(x,E,te,oe,ue){var fe=this.display;x=fi(this,nn(this.doc,x));var pe=x.bottom,Ue=x.left;if(E.style.position="absolute",E.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(E),fe.sizer.appendChild(E),oe=="over")pe=x.top;else if(oe=="above"||oe=="near"){var rt=Math.max(fe.wrapper.clientHeight,this.doc.height),Rt=Math.max(fe.sizer.clientWidth,fe.lineSpace.clientWidth);(oe=="above"||x.bottom+E.offsetHeight>rt)&&x.top>E.offsetHeight?pe=x.top-E.offsetHeight:x.bottom+E.offsetHeight<=rt&&(pe=x.bottom),Ue+E.offsetWidth>Rt&&(Ue=Rt-E.offsetWidth)}E.style.top=pe+"px",E.style.left=E.style.right="",ue=="right"?(Ue=fe.sizer.clientWidth-E.offsetWidth,E.style.right="0px"):(ue=="left"?Ue=0:ue=="middle"&&(Ue=(fe.sizer.clientWidth-E.offsetWidth)/2),E.style.left=Ue+"px"),te&&tl(this,{left:Ue,top:pe,right:Ue+E.offsetWidth,bottom:pe+E.offsetHeight})},triggerOnKeyDown:Yi(Ps),triggerOnKeyPress:Yi(Ms),triggerOnKeyUp:Ls,triggerOnMouseDown:Yi(Ts),execCommand:function(x){if(Uo.hasOwnProperty(x))return Uo[x].call(null,this)},triggerElectric:Yi(function(x){_s(this,x)}),findPosH:function(x,E,te,oe){var ue=1;E<0&&(ue=-1,E=-E);for(var fe=nn(this.doc,x),pe=0;pe<E&&(fe=Ol(this.doc,fe,ue,te,oe),!fe.hitSide);++pe);return fe},moveH:Yi(function(x,E){var te=this;this.extendSelectionsBy(function(oe){return te.display.shift||te.doc.extend||oe.empty()?Ol(te.doc,oe.head,x,E,te.options.rtlMoveVisually):x<0?oe.from():oe.to()},at)}),deleteH:Yi(function(x,E){var te=this.doc.sel,oe=this.doc;te.somethingSelected()?oe.replaceSelection("",null,"+delete"):yo(this,function(ue){var fe=Ol(oe,ue.head,x,E,!1);return x<0?{from:fe,to:ue.head}:{from:ue.head,to:fe}})}),findPosV:function(x,E,te,oe){var ue=1,fe=oe;E<0&&(ue=-1,E=-E);for(var pe=nn(this.doc,x),Ue=0;Ue<E;++Ue){var rt=fi(this,pe,"div");if(fe==null?fe=rt.left:rt.left=fe,pe=Ks(this,rt,ue,te),pe.hitSide)break}return pe},moveV:Yi(function(x,E){var te=this,oe=this.doc,ue=[],fe=!this.display.shift&&!oe.extend&&oe.sel.somethingSelected();if(oe.extendSelectionsBy(function(Ue){if(fe)return x<0?Ue.from():Ue.to();var rt=fi(te,Ue.head,"div");Ue.goalColumn!=null&&(rt.left=Ue.goalColumn),ue.push(rt.left);var Rt=Ks(te,rt,x,E);return E=="page"&&Ue==oe.sel.primary()&&co(te,Hi(te,Rt,"div").top-rt.top),Rt},at),ue.length)for(var pe=0;pe<oe.sel.ranges.length;pe++)oe.sel.ranges[pe].goalColumn=ue[pe]}),findWordAt:function(x){var E=this.doc,te=Mt(E,x.line).text,oe=x.ch,ue=x.ch;if(te){var fe=this.getHelper(x,"wordChars");(x.sticky=="before"||ue==te.length)&&oe?--oe:++ue;for(var pe=te.charAt(oe),Ue=pt(pe,fe)?function(rt){return pt(rt,fe)}:/\s/.test(pe)?function(rt){return/\s/.test(rt)}:function(rt){return!/\s/.test(rt)&&!pt(rt)};oe>0&&Ue(te.charAt(oe-1));)--oe;for(;ue<te.length&&Ue(te.charAt(ue));)++ue}return new ri(mt(x.line,oe),mt(x.line,ue))},toggleOverwrite:function(x){x!=null&&x==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?et(this.display.cursorDiv,"CodeMirror-overwrite"):We(this.display.cursorDiv,"CodeMirror-overwrite"),ht(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==_e()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Yi(function(x,E){$a(this,x,E)}),getScrollInfo:function(){var x=this.display.scroller;return{left:x.scrollLeft,top:x.scrollTop,height:x.scrollHeight-ni(this)-this.display.barHeight,width:x.scrollWidth-ni(this)-this.display.barWidth,clientHeight:Vi(this),clientWidth:la(this)}},scrollIntoView:Yi(function(x,E){x==null?(x={from:this.doc.sel.primary().head,to:null},E==null&&(E=this.options.cursorScrollMargin)):typeof x=="number"?x={from:mt(x,0),to:null}:x.from==null&&(x={from:x,to:null}),x.to||(x.to=x.from),x.margin=E||0,x.from.line!=null?nl(this,x):Bo(this,x.from,x.to,x.margin)}),setSize:Yi(function(x,E){var te=this,oe=function(fe){return typeof fe=="number"||/^\d+$/.test(String(fe))?fe+"px":fe};x!=null&&(this.display.wrapper.style.width=oe(x)),E!=null&&(this.display.wrapper.style.height=oe(E)),this.options.lineWrapping&&Za(this);var ue=this.display.viewFrom;this.doc.iter(ue,this.display.viewTo,function(fe){if(fe.widgets){for(var pe=0;pe<fe.widgets.length;pe++)if(fe.widgets[pe].noHScroll){ca(te,ue,"widget");break}}++ue}),this.curOp.forceUpdate=!0,ht(this,"refresh",this)}),operation:function(x){return aa(this,x)},startOperation:function(){return da(this)},endOperation:function(){return ga(this)},refresh:Yi(function(){var x=this.display.cachedTextHeight;Wi(this),this.curOp.forceUpdate=!0,Ea(this),$a(this,this.doc.scrollLeft,this.doc.scrollTop),bl(this.display),(x==null||Math.abs(x-Ti(this.display))>.5||this.options.lineWrapping)&&Eo(this),ht(this,"refresh",this)}),swapDoc:Yi(function(x){var E=this.doc;return E.cm=null,this.state.selectingText&&this.state.selectingText(),Xl(this,x),Ea(this),this.display.input.reset(),$a(this,x.scrollLeft,x.scrollTop),this.curOp.forceScroll=!0,qr(this,"swapDoc",this,E),E}),phrase:function(x){var E=this.options.phrases;return E&&Object.prototype.hasOwnProperty.call(E,x)?E[x]:x},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}},Ht(a),a.registerHelper=function(x,E,te){b.hasOwnProperty(x)||(b[x]=a[x]={_global:[]}),b[x][E]=te},a.registerGlobalHelper=function(x,E,te,oe){a.registerHelper(x,E,oe),b[x]._global.push({pred:te,val:oe})}}function Ol(a,y,b,x,E){var te=y,oe=b,ue=Mt(a,y.line),fe=E&&a.direction=="rtl"?-b:b;function pe(){var qn=y.line+fe;return qn<a.first||qn>=a.first+a.size?!1:(y=new mt(qn,y.ch,y.sticky),ue=Mt(a,qn))}function Ue(qn){var Wn;if(x=="codepoint"){var lr=ue.text.charCodeAt(y.ch+(x>0?0:-1));isNaN(lr)?Wn=null:Wn=new mt(y.line,Math.max(0,Math.min(ue.text.length,y.ch+b*(lr>=55296&&lr<56320?2:1))),-b)}else E?Wn=Au(a.cm,ue,y,b):Wn=Ll(ue,y,b);if(Wn==null)if(!qn&&pe())y=Ml(E,a.cm,ue,y.line,fe);else return!1;else y=Wn;return!0}if(x=="char"||x=="codepoint")Ue();else if(x=="column")Ue(!0);else if(x=="word"||x=="group")for(var rt=null,Rt=x=="group",At=a.cm&&a.cm.getHelper(y,"wordChars"),on=!0;!(b<0&&!Ue(!on));on=!1){var xn=ue.text.charAt(y.ch)||`
|
|
`,Bn=pt(xn,At)?"w":Rt&&xn==`
|
|
`?"n":!Rt||/\s/.test(xn)?null:"p";if(Rt&&!on&&!Bn&&(Bn="s"),rt&&rt!=Bn){b<0&&(b=1,Ue(),y.sticky="after");break}if(Bn&&(rt=Bn),b>0&&!Ue(!on))break}var Hn=ul(a,y,te,oe,!0);return hn(te,Hn)&&(Hn.hitSide=!0),Hn}function Ks(a,y,b,x){var E=a.doc,te=y.left,oe;if(x=="page"){var ue=Math.min(a.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),fe=Math.max(ue-.5*Ti(a.display),3);oe=(b>0?y.bottom:y.top)+b*fe}else x=="line"&&(oe=b>0?y.bottom+3:y.top-3);for(var pe;pe=mi(a,te,oe),!!pe.outside;){if(b<0?oe<=0:oe>=E.height){pe.hitSide=!0;break}oe+=b*5}return pe}var li=function(a){this.cm=a,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new ce,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};li.prototype.init=function(a){var y=this,b=this,x=b.cm,E=b.div=a.lineDiv;Ws(E,x.options.spellcheck,x.options.autocorrect,x.options.autocapitalize);function te(ue){for(var fe=ue.target;fe;fe=fe.parentNode){if(fe==E)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(fe.className))break}return!1}be(E,"paste",function(ue){!te(ue)||Ze(x,ue)||Zs(ue,x)||he<=11&&setTimeout(Ii(x,function(){return y.updateFromDOM()}),20)}),be(E,"compositionstart",function(ue){y.composing={data:ue.data,done:!1}}),be(E,"compositionupdate",function(ue){y.composing||(y.composing={data:ue.data,done:!1})}),be(E,"compositionend",function(ue){y.composing&&(ue.data!=y.composing.data&&y.readFromDOMSoon(),y.composing.done=!0)}),be(E,"touchstart",function(){return b.forceCompositionEnd()}),be(E,"input",function(){y.composing||y.readFromDOMSoon()});function oe(ue){if(!(!te(ue)||Ze(x,ue))){if(x.somethingSelected())vl({lineWise:!1,text:x.getSelections()}),ue.type=="cut"&&x.replaceSelection("",null,"cut");else if(x.options.lineWiseCopyCut){var fe=Hs(x);vl({lineWise:!0,text:fe.text}),ue.type=="cut"&&x.operation(function(){x.setSelections(fe.ranges,0,Te),x.replaceSelection("",null,"cut")})}else return;if(ue.clipboardData){ue.clipboardData.clearData();var pe=xa.text.join(`
|
|
`);if(ue.clipboardData.setData("Text",pe),ue.clipboardData.getData("Text")==pe){ue.preventDefault();return}}var Ue=zs(),rt=Ue.firstChild;x.display.lineSpace.insertBefore(Ue,x.display.lineSpace.firstChild),rt.value=xa.text.join(`
|
|
`);var Rt=document.activeElement;Et(rt),setTimeout(function(){x.display.lineSpace.removeChild(Ue),Rt.focus(),Rt==E&&b.showPrimarySelection()},50)}}be(E,"copy",oe),be(E,"cut",oe)},li.prototype.screenReaderLabelChanged=function(a){a?this.div.setAttribute("aria-label",a):this.div.removeAttribute("aria-label")},li.prototype.prepareSelection=function(){var a=$o(this.cm,!1);return a.focus=document.activeElement==this.div,a},li.prototype.showSelection=function(a,y){!a||!this.cm.display.view.length||((a.focus||y)&&this.showPrimarySelection(),this.showMultipleSelections(a))},li.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},li.prototype.showPrimarySelection=function(){var a=this.getSelection(),y=this.cm,b=y.doc.sel.primary(),x=b.from(),E=b.to();if(y.display.viewTo==y.display.viewFrom||x.line>=y.display.viewTo||E.line<y.display.viewFrom){a.removeAllRanges();return}var te=ml(y,a.anchorNode,a.anchorOffset),oe=ml(y,a.focusNode,a.focusOffset);if(!(te&&!te.bad&&oe&&!oe.bad&&en(yn(te,oe),x)==0&&en(Dn(te,oe),E)==0)){var ue=y.display.view,fe=x.line>=y.display.viewFrom&&js(y,x)||{node:ue[0].measure.map[2],offset:0},pe=E.line<y.display.viewTo&&js(y,E);if(!pe){var Ue=ue[ue.length-1].measure,rt=Ue.maps?Ue.maps[Ue.maps.length-1]:Ue.map;pe={node:rt[rt.length-1],offset:rt[rt.length-2]-rt[rt.length-3]}}if(!fe||!pe){a.removeAllRanges();return}var Rt=a.rangeCount&&a.getRangeAt(0),At;try{At=Me(fe.node,fe.offset,pe.offset,pe.node)}catch(on){}At&&(!re&&y.state.focused?(a.collapse(fe.node,fe.offset),At.collapsed||(a.removeAllRanges(),a.addRange(At))):(a.removeAllRanges(),a.addRange(At)),Rt&&a.anchorNode==null?a.addRange(Rt):re&&this.startGracePeriod()),this.rememberSelection()}},li.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)},li.prototype.showMultipleSelections=function(a){ye(this.cm.display.cursorDiv,a.cursors),ye(this.cm.display.selectionDiv,a.selection)},li.prototype.rememberSelection=function(){var a=this.getSelection();this.lastAnchorNode=a.anchorNode,this.lastAnchorOffset=a.anchorOffset,this.lastFocusNode=a.focusNode,this.lastFocusOffset=a.focusOffset},li.prototype.selectionInEditor=function(){var a=this.getSelection();if(!a.rangeCount)return!1;var y=a.getRangeAt(0).commonAncestorContainer;return Je(this.div,y)},li.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},li.prototype.blur=function(){this.div.blur()},li.prototype.getField=function(){return this.div},li.prototype.supportsTouch=function(){return!0},li.prototype.receivedFocus=function(){var a=this;this.selectionInEditor()?this.pollSelection():aa(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)},li.prototype.selectionChanged=function(){var a=this.getSelection();return a.anchorNode!=this.lastAnchorNode||a.anchorOffset!=this.lastAnchorOffset||a.focusNode!=this.lastFocusNode||a.focusOffset!=this.lastFocusOffset},li.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var a=this.getSelection(),y=this.cm;if(Pe&&we&&this.cm.display.gutterSpecs.length&&Vu(a.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var b=ml(y,a.anchorNode,a.anchorOffset),x=ml(y,a.focusNode,a.focusOffset);b&&x&&aa(y,function(){ji(y.doc,Ka(b,x),Te),(b.bad||x.bad)&&(y.curOp.selectionChanged=!0)})}}},li.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var a=this.cm,y=a.display,b=a.doc.sel.primary(),x=b.from(),E=b.to();if(x.ch==0&&x.line>a.firstLine()&&(x=mt(x.line-1,Mt(a.doc,x.line-1).length)),E.ch==Mt(a.doc,E.line).text.length&&E.line<a.lastLine()&&(E=mt(E.line+1,0)),x.line<y.viewFrom||E.line>y.viewTo-1)return!1;var te,oe,ue;x.line==y.viewFrom||(te=Aa(a,x.line))==0?(oe=nt(y.view[0].line),ue=y.view[0].node):(oe=nt(y.view[te].line),ue=y.view[te-1].node.nextSibling);var fe=Aa(a,E.line),pe,Ue;if(fe==y.view.length-1?(pe=y.viewTo-1,Ue=y.lineDiv.lastChild):(pe=nt(y.view[fe+1].line)-1,Ue=y.view[fe+1].node.previousSibling),!ue)return!1;for(var rt=a.doc.splitLines(Yu(a,ue,Ue,oe,pe)),Rt=gn(a.doc,mt(oe,0),mt(pe,Mt(a.doc,pe).text.length));rt.length>1&&Rt.length>1;)if(Se(rt)==Se(Rt))rt.pop(),Rt.pop(),pe--;else if(rt[0]==Rt[0])rt.shift(),Rt.shift(),oe++;else break;for(var At=0,on=0,xn=rt[0],Bn=Rt[0],Hn=Math.min(xn.length,Bn.length);At<Hn&&xn.charCodeAt(At)==Bn.charCodeAt(At);)++At;for(var qn=Se(rt),Wn=Se(Rt),lr=Math.min(qn.length-(rt.length==1?At:0),Wn.length-(Rt.length==1?At:0));on<lr&&qn.charCodeAt(qn.length-on-1)==Wn.charCodeAt(Wn.length-on-1);)++on;if(rt.length==1&&Rt.length==1&&oe==x.line)for(;At&&At>x.ch&&qn.charCodeAt(qn.length-on-1)==Wn.charCodeAt(Wn.length-on-1);)At--,on++;rt[rt.length-1]=qn.slice(0,qn.length-on).replace(/^\u200b+/,""),rt[0]=rt[0].slice(At).replace(/\u200b+$/,"");var Ar=mt(oe,At),xr=mt(pe,Rt.length?Se(Rt).length-on:0);if(rt.length>1||rt[0]||en(Ar,xr))return vo(a.doc,rt,Ar,xr,"+input"),!0},li.prototype.ensurePolled=function(){this.forceCompositionEnd()},li.prototype.reset=function(){this.forceCompositionEnd()},li.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},li.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))},li.prototype.updateFromDOM=function(){var a=this;(this.cm.isReadOnly()||!this.pollContent())&&aa(this.cm,function(){return Wi(a.cm)})},li.prototype.setUneditable=function(a){a.contentEditable="false"},li.prototype.onKeyPress=function(a){a.charCode==0||this.composing||(a.preventDefault(),this.cm.isReadOnly()||Ii(this.cm,Il)(this.cm,String.fromCharCode(a.charCode==null?a.keyCode:a.charCode),0))},li.prototype.readOnlyChanged=function(a){this.div.contentEditable=String(a!="nocursor")},li.prototype.onContextMenu=function(){},li.prototype.resetPosition=function(){},li.prototype.needsContentAttribute=!0;function js(a,y){var b=pa(a,y.line);if(!b||b.hidden)return null;var x=Mt(a.doc,y.line),E=vi(b,x,y.line),te=se(x,a.doc.direction),oe="left";if(te){var ue=z(te,y.ch);oe=ue%2?"right":"left"}var fe=ro(E.map,y.ch,oe);return fe.offset=fe.collapse=="right"?fe.end:fe.start,fe}function Vu(a){for(var y=a;y;y=y.parentNode)if(/CodeMirror-gutter-wrapper/.test(y.className))return!0;return!1}function bo(a,y){return y&&(a.bad=!0),a}function Yu(a,y,b,x,E){var te="",oe=!1,ue=a.doc.lineSeparator(),fe=!1;function pe(At){return function(on){return on.id==At}}function Ue(){oe&&(te+=ue,fe&&(te+=ue),oe=fe=!1)}function rt(At){At&&(Ue(),te+=At)}function Rt(At){if(At.nodeType==1){var on=At.getAttribute("cm-text");if(on){rt(on);return}var xn=At.getAttribute("cm-marker"),Bn;if(xn){var Hn=a.findMarks(mt(x,0),mt(E+1,0),pe(+xn));Hn.length&&(Bn=Hn[0].find(0))&&rt(gn(a.doc,Bn.from,Bn.to).join(ue));return}if(At.getAttribute("contenteditable")=="false")return;var qn=/^(pre|div|p|li|table|br)$/i.test(At.nodeName);if(!/^br$/i.test(At.nodeName)&&At.textContent.length==0)return;qn&&Ue();for(var Wn=0;Wn<At.childNodes.length;Wn++)Rt(At.childNodes[Wn]);/^(pre|p)$/i.test(At.nodeName)&&(fe=!0),qn&&(oe=!0)}else At.nodeType==3&&rt(At.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;Rt(y),y!=b;)y=y.nextSibling,fe=!1;return te}function ml(a,y,b){var x;if(y==a.display.lineDiv){if(x=a.display.lineDiv.childNodes[b],!x)return bo(a.clipPos(mt(a.display.viewTo-1)),!0);y=null,b=0}else for(x=y;;x=x.parentNode){if(!x||x==a.display.lineDiv)return null;if(x.parentNode&&x.parentNode==a.display.lineDiv)break}for(var E=0;E<a.display.view.length;E++){var te=a.display.view[E];if(te.node==x)return Xu(te,y,b)}}function Xu(a,y,b){var x=a.text.firstChild,E=!1;if(!y||!Je(x,y))return bo(mt(nt(a.line),0),!0);if(y==x&&(E=!0,y=x.childNodes[b],b=0,!y)){var te=a.rest?Se(a.rest):a.line;return bo(mt(nt(te),te.text.length),E)}var oe=y.nodeType==3?y:null,ue=y;for(!oe&&y.childNodes.length==1&&y.firstChild.nodeType==3&&(oe=y.firstChild,b&&(b=oe.nodeValue.length));ue.parentNode!=x;)ue=ue.parentNode;var fe=a.measure,pe=fe.maps;function Ue(Bn,Hn,qn){for(var Wn=-1;Wn<(pe?pe.length:0);Wn++)for(var lr=Wn<0?fe.map:pe[Wn],Ar=0;Ar<lr.length;Ar+=3){var xr=lr[Ar+2];if(xr==Bn||xr==Hn){var jr=nt(Wn<0?a.line:a.rest[Wn]),ui=lr[Ar]+qn;return(qn<0||xr!=Bn)&&(ui=lr[Ar+(qn?1:0)]),mt(jr,ui)}}}var rt=Ue(oe,ue,b);if(rt)return bo(rt,E);for(var Rt=ue.nextSibling,At=oe?oe.nodeValue.length-b:0;Rt;Rt=Rt.nextSibling){if(rt=Ue(Rt,Rt.firstChild,0),rt)return bo(mt(rt.line,rt.ch-At),E);At+=Rt.textContent.length}for(var on=ue.previousSibling,xn=b;on;on=on.previousSibling){if(rt=Ue(on,on.firstChild,-1),rt)return bo(mt(rt.line,rt.ch+xn),E);xn+=on.textContent.length}}var Ai=function(a){this.cm=a,this.prevInput="",this.pollingFast=!1,this.polling=new ce,this.hasSelection=!1,this.composing=null};Ai.prototype.init=function(a){var y=this,b=this,x=this.cm;this.createField(a);var E=this.textarea;a.wrapper.insertBefore(this.wrapper,a.wrapper.firstChild),Xe&&(E.style.width="0px"),be(E,"input",function(){Ce&&he>=9&&y.hasSelection&&(y.hasSelection=null),b.poll()}),be(E,"paste",function(oe){Ze(x,oe)||Zs(oe,x)||(x.state.pasteIncoming=+new Date,b.fastPoll())});function te(oe){if(!Ze(x,oe)){if(x.somethingSelected())vl({lineWise:!1,text:x.getSelections()});else if(x.options.lineWiseCopyCut){var ue=Hs(x);vl({lineWise:!0,text:ue.text}),oe.type=="cut"?x.setSelections(ue.ranges,null,Te):(b.prevInput="",E.value=ue.text.join(`
|
|
`),Et(E))}else return;oe.type=="cut"&&(x.state.cutIncoming=+new Date)}}be(E,"cut",te),be(E,"copy",te),be(a.scroller,"paste",function(oe){if(!(ci(a,oe)||Ze(x,oe))){if(!E.dispatchEvent){x.state.pasteIncoming=+new Date,b.focus();return}var ue=new Event("paste");ue.clipboardData=oe.clipboardData,E.dispatchEvent(ue)}}),be(a.lineSpace,"selectstart",function(oe){ci(a,oe)||un(oe)}),be(E,"compositionstart",function(){var oe=x.getCursor("from");b.composing&&b.composing.range.clear(),b.composing={start:oe,range:x.markText(oe,x.getCursor("to"),{className:"CodeMirror-composing"})}}),be(E,"compositionend",function(){b.composing&&(b.poll(),b.composing.range.clear(),b.composing=null)})},Ai.prototype.createField=function(a){this.wrapper=zs(),this.textarea=this.wrapper.firstChild},Ai.prototype.screenReaderLabelChanged=function(a){a?this.textarea.setAttribute("aria-label",a):this.textarea.removeAttribute("aria-label")},Ai.prototype.prepareSelection=function(){var a=this.cm,y=a.display,b=a.doc,x=$o(a);if(a.options.moveInputWithCursor){var E=fi(a,b.sel.primary().head,"div"),te=y.wrapper.getBoundingClientRect(),oe=y.lineDiv.getBoundingClientRect();x.teTop=Math.max(0,Math.min(y.wrapper.clientHeight-10,E.top+oe.top-te.top)),x.teLeft=Math.max(0,Math.min(y.wrapper.clientWidth-10,E.left+oe.left-te.left))}return x},Ai.prototype.showSelection=function(a){var y=this.cm,b=y.display;ye(b.cursorDiv,a.cursors),ye(b.selectionDiv,a.selection),a.teTop!=null&&(this.wrapper.style.top=a.teTop+"px",this.wrapper.style.left=a.teLeft+"px")},Ai.prototype.reset=function(a){if(!(this.contextMenuPending||this.composing)){var y=this.cm;if(y.somethingSelected()){this.prevInput="";var b=y.getSelection();this.textarea.value=b,y.state.focused&&Et(this.textarea),Ce&&he>=9&&(this.hasSelection=b)}else a||(this.prevInput=this.textarea.value="",Ce&&he>=9&&(this.hasSelection=null))}},Ai.prototype.getField=function(){return this.textarea},Ai.prototype.supportsTouch=function(){return!1},Ai.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!ke||_e()!=this.textarea))try{this.textarea.focus()}catch(a){}},Ai.prototype.blur=function(){this.textarea.blur()},Ai.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Ai.prototype.receivedFocus=function(){this.slowPoll()},Ai.prototype.slowPoll=function(){var a=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){a.poll(),a.cm.state.focused&&a.slowPoll()})},Ai.prototype.fastPoll=function(){var a=!1,y=this;y.pollingFast=!0;function b(){var x=y.poll();!x&&!a?(a=!0,y.polling.set(60,b)):(y.pollingFast=!1,y.slowPoll())}y.polling.set(20,b)},Ai.prototype.poll=function(){var a=this,y=this.cm,b=this.textarea,x=this.prevInput;if(this.contextMenuPending||!y.state.focused||sr(b)&&!x&&!this.composing||y.isReadOnly()||y.options.disableInput||y.state.keySeq)return!1;var E=b.value;if(E==x&&!y.somethingSelected())return!1;if(Ce&&he>=9&&this.hasSelection===E||Ee&&/[\uf700-\uf7ff]/.test(E))return y.display.input.reset(),!1;if(y.doc.sel==y.display.selForContextMenu){var te=E.charCodeAt(0);if(te==8203&&!x&&(x="\u200B"),te==8666)return this.reset(),this.cm.execCommand("undo")}for(var oe=0,ue=Math.min(x.length,E.length);oe<ue&&x.charCodeAt(oe)==E.charCodeAt(oe);)++oe;return aa(y,function(){Il(y,E.slice(oe),x.length-oe,null,a.composing?"*compose":null),E.length>1e3||E.indexOf(`
|
|
`)>-1?b.value=a.prevInput="":a.prevInput=E,a.composing&&(a.composing.range.clear(),a.composing.range=y.markText(a.composing.start,y.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Ai.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Ai.prototype.onKeyPress=function(){Ce&&he>=9&&(this.hasSelection=null),this.fastPoll()},Ai.prototype.onContextMenu=function(a){var y=this,b=y.cm,x=b.display,E=y.textarea;y.contextMenuPending&&y.contextMenuPending();var te=ba(b,a),oe=x.scroller.scrollTop;if(!te||de)return;var ue=b.options.resetSelectionOnContextMenu;ue&&b.doc.sel.contains(te)==-1&&Ii(b,ji)(b.doc,Ka(te),Te);var fe=E.style.cssText,pe=y.wrapper.style.cssText,Ue=y.wrapper.offsetParent.getBoundingClientRect();y.wrapper.style.cssText="position: static",E.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
top: `+(a.clientY-Ue.top-5)+"px; left: "+(a.clientX-Ue.left-5)+`px;
|
|
z-index: 1000; background: `+(Ce?"rgba(255, 255, 255, .05)":"transparent")+`;
|
|
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var rt;Ne&&(rt=window.scrollY),x.input.focus(),Ne&&window.scrollTo(null,rt),x.input.reset(),b.somethingSelected()||(E.value=y.prevInput=" "),y.contextMenuPending=At,x.selForContextMenu=b.doc.sel,clearTimeout(x.detectingSelectAll);function Rt(){if(E.selectionStart!=null){var xn=b.somethingSelected(),Bn="\u200B"+(xn?E.value:"");E.value="\u21DA",E.value=Bn,y.prevInput=xn?"":"\u200B",E.selectionStart=1,E.selectionEnd=Bn.length,x.selForContextMenu=b.doc.sel}}function At(){if(y.contextMenuPending==At&&(y.contextMenuPending=!1,y.wrapper.style.cssText=pe,E.style.cssText=fe,Ce&&he<9&&x.scrollbars.setScrollTop(x.scroller.scrollTop=oe),E.selectionStart!=null)){(!Ce||Ce&&he<9)&&Rt();var xn=0,Bn=function(){x.selForContextMenu==b.doc.sel&&E.selectionStart==0&&E.selectionEnd>0&&y.prevInput=="\u200B"?Ii(b,ss)(b):xn++<10?x.detectingSelectAll=setTimeout(Bn,500):(x.selForContextMenu=null,x.input.reset())};x.detectingSelectAll=setTimeout(Bn,200)}}if(Ce&&he>=9&&Rt(),me){vn(a);var on=function(){kt(window,"mouseup",on),setTimeout(At,20)};be(window,"mouseup",on)}else setTimeout(At,50)},Ai.prototype.readOnlyChanged=function(a){a||this.reset(),this.textarea.disabled=a=="nocursor",this.textarea.readOnly=!!a},Ai.prototype.setUneditable=function(){},Ai.prototype.needsContentAttribute=!1;function Ju(a,y){if(y=y?ft(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 b=_e();y.autofocus=b==a||a.getAttribute("autofocus")!=null&&b==document.body}function x(){a.value=ue.getValue()}var E;if(a.form&&(be(a.form,"submit",x),!y.leaveSubmitMethodAlone)){var te=a.form;E=te.submit;try{var oe=te.submit=function(){x(),te.submit=E,te.submit(),te.submit=oe}}catch(fe){}}y.finishInit=function(fe){fe.save=x,fe.getTextArea=function(){return a},fe.toTextArea=function(){fe.toTextArea=isNaN,x(),a.parentNode.removeChild(fe.getWrapperElement()),a.style.display="",a.form&&(kt(a.form,"submit",x),!y.leaveSubmitMethodAlone&&typeof a.form.submit=="function"&&(a.form.submit=E))}},a.style.display="none";var ue=gi(function(fe){return a.parentNode.insertBefore(fe,a.nextSibling)},y);return ue}function Qu(a){a.off=kt,a.on=be,a.wheelEventPixels=iu,a.Doc=$i,a.splitLines=pr,a.countColumn=ve,a.findColumn=_t,a.isWordChar=Fe,a.Pass=dt,a.signal=ht,a.Line=hr,a.changeEnd=ja,a.scrollbarModel=Ba,a.Pos=mt,a.cmpPos=en,a.modes=fn,a.mimeModes=Tt,a.resolveMode=En,a.getMode=Pn,a.modeExtensions=jn,a.extendMode=ur,a.copyState=rr,a.startState=Gn,a.innerMode=zn,a.commands=Uo,a.keyMap=Fa,a.keyName=Es,a.isModifierKey=ws,a.lookupKey=go,a.normalizeKeyMap=Du,a.StringStream=ln,a.SharedTextMarker=Ko,a.TextMarker=Ua,a.LineWidget=zo,a.e_preventDefault=un,a.e_stopPropagation=Lt,a.e_stop=vn,a.addClass=et,a.contains=Je,a.rmClass=We,a.keyNames=Va}zu(gi),Uu(gi);var qu="iter insert remove copy getEditor constructor".split(" ");for(var gl in $i.prototype)$i.prototype.hasOwnProperty(gl)&&Ge(qu,gl)<0&&(gi.prototype[gl]=function(a){return function(){return a.apply(this.doc,arguments)}}($i.prototype[gl]));return Ht($i),gi.inputStyles={textarea:Ai,contenteditable:li},gi.defineMode=function(a){!gi.defaults.mode&&a!="null"&&(gi.defaults.mode=a),Jt.apply(this,arguments)},gi.defineMIME=wn,gi.defineMode("null",function(){return{token:function(a){return a.skipToEnd()}}}),gi.defineMIME("text/plain","null"),gi.defineExtension=function(a,y){gi.prototype[a]=y},gi.defineDocExtension=function(a,y){$i.prototype[a]=y},gi.fromTextArea=Ju,Qu(gi),gi.version="5.58.2",gi})},25419:function(rn,$t,le){(function(re){re(le(89780),le(15525),le(98101))})(function(re){"use strict";re.defineMode("markdown",function($e,je){var Qe=re.getMode($e,"text/html"),Ce=Qe.name=="null";function he(ve){if(re.findModeByName){var ce=re.findModeByName(ve);ce&&(ve=ce.mime||ce.mimes[0])}var Ge=re.getMode($e,ve);return Ge.name=="null"?null:Ge}je.highlightFormatting===void 0&&(je.highlightFormatting=!1),je.maxBlockquoteDepth===void 0&&(je.maxBlockquoteDepth=0),je.taskLists===void 0&&(je.taskLists=!1),je.strikethrough===void 0&&(je.strikethrough=!1),je.emoji===void 0&&(je.emoji=!1),je.fencedCodeBlockHighlighting===void 0&&(je.fencedCodeBlockHighlighting=!0),je.fencedCodeBlockDefaultMode===void 0&&(je.fencedCodeBlockDefaultMode="text/plain"),je.xml===void 0&&(je.xml=!0),je.tokenTypeOverrides===void 0&&(je.tokenTypeOverrides={});var Ne={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 Ve in Ne)Ne.hasOwnProperty(Ve)&&je.tokenTypeOverrides[Ve]&&(Ne[Ve]=je.tokenTypeOverrides[Ve]);var we=/^([*\-_])(?:\s*\1){2,}\s*$/,de=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,Oe=/^\[(x| )\](?=\s)/i,xe=je.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,wt=/^ {0,3}(?:\={1,}|-{2,})\s*$/,Xe=/^[^#!\[\]*_\\<>` "'(~:]+/,Pe=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,ke=/^\s*\[[^\]]+?\]:.*$/,Ee=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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]/,qe=" ";function lt(ve,ce,Ge){return ce.f=ce.inline=Ge,Ge(ve,ce)}function xt(ve,ce,Ge){return ce.f=ce.block=Ge,Ge(ve,ce)}function Ae(ve){return!ve||!/\S/.test(ve.string)}function me(ve){if(ve.linkTitle=!1,ve.linkHref=!1,ve.linkText=!1,ve.em=!1,ve.strong=!1,ve.strikethrough=!1,ve.quote=0,ve.indentedCode=!1,ve.f==We){var ce=Ce;if(!ce){var Ge=re.innerMode(Qe,ve.htmlState);ce=Ge.mode.name=="xml"&&Ge.state.tagStart===null&&!Ge.state.context&&Ge.state.tokenize.isInText}ce&&(ve.f=Ie,ve.block=Re,ve.htmlState=null)}return ve.trailingSpace=0,ve.trailingSpaceNewLine=!1,ve.prevLine=ve.thisLine,ve.thisLine={stream:null},null}function Re(ve,ce){var Ge=ve.column()===ce.indentation,vt=Ae(ce.prevLine.stream),dt=ce.indentedCode,Te=ce.prevLine.hr,ut=ce.list!==!1,at=(ce.listStack[ce.listStack.length-1]||0)+3;ce.indentedCode=!1;var _t=ce.indentation;if(ce.indentationDiff===null&&(ce.indentationDiff=ce.indentation,ut)){for(ce.list=null;_t<ce.listStack[ce.listStack.length-1];)ce.listStack.pop(),ce.listStack.length?ce.indentation=ce.listStack[ce.listStack.length-1]:ce.list=!1;ce.list!==!1&&(ce.indentationDiff=_t-ce.listStack[ce.listStack.length-1])}var He=!vt&&!Te&&!ce.prevLine.header&&(!ut||!dt)&&!ce.prevLine.fencedCodeEnd,De=(ce.list===!1||Te||vt)&&ce.indentation<=at&&ve.match(we),Se=null;if(ce.indentationDiff>=4&&(dt||ce.prevLine.fencedCodeEnd||ce.prevLine.header||vt))return ve.skipToEnd(),ce.indentedCode=!0,Ne.code;if(ve.eatSpace())return null;if(Ge&&ce.indentation<=at&&(Se=ve.match(xe))&&Se[1].length<=6)return ce.quote=0,ce.header=Se[1].length,ce.thisLine.header=!0,je.highlightFormatting&&(ce.formatting="header"),ce.f=ce.inline,ye(ce);if(ce.indentation<=at&&ve.eat(">"))return ce.quote=Ge?1:ce.quote+1,je.highlightFormatting&&(ce.formatting="quote"),ve.eatSpace(),ye(ce);if(!De&&!ce.setext&&Ge&&ce.indentation<=at&&(Se=ve.match(de))){var ze=Se[1]?"ol":"ul";return ce.indentation=_t+ve.current().length,ce.list=!0,ce.quote=0,ce.listStack.push(ce.indentation),ce.em=!1,ce.strong=!1,ce.code=!1,ce.strikethrough=!1,je.taskLists&&ve.match(Oe,!1)&&(ce.taskList=!0),ce.f=ce.inline,je.highlightFormatting&&(ce.formatting=["list","list-"+ze]),ye(ce)}else{if(Ge&&ce.indentation<=at&&(Se=ve.match(Pe,!0)))return ce.quote=0,ce.fencedEndRE=new RegExp(Se[1]+"+ *$"),ce.localMode=je.fencedCodeBlockHighlighting&&he(Se[2]||je.fencedCodeBlockDefaultMode),ce.localMode&&(ce.localState=re.startState(ce.localMode)),ce.f=ce.block=Nt,je.highlightFormatting&&(ce.formatting="code-block"),ce.code=-1,ye(ce);if(ce.setext||(!He||!ut)&&!ce.quote&&ce.list===!1&&!ce.code&&!De&&!ke.test(ve.string)&&(Se=ve.lookAhead(1))&&(Se=Se.match(wt)))return ce.setext?(ce.header=ce.setext,ce.setext=0,ve.skipToEnd(),je.highlightFormatting&&(ce.formatting="header")):(ce.header=Se[0].charAt(0)=="="?1:2,ce.setext=ce.header),ce.thisLine.header=!0,ce.f=ce.inline,ye(ce);if(De)return ve.skipToEnd(),ce.hr=!0,ce.thisLine.hr=!0,Ne.hr;if(ve.peek()==="[")return lt(ve,ce,Kt)}return lt(ve,ce,ce.inline)}function We(ve,ce){var Ge=Qe.token(ve,ce.htmlState);if(!Ce){var vt=re.innerMode(Qe,ce.htmlState);(vt.mode.name=="xml"&&vt.state.tagStart===null&&!vt.state.context&&vt.state.tokenize.isInText||ce.md_inside&&ve.current().indexOf(">")>-1)&&(ce.f=Ie,ce.block=Re,ce.htmlState=null)}return Ge}function Nt(ve,ce){var Ge=ce.listStack[ce.listStack.length-1]||0,vt=ce.indentation<Ge,dt=Ge+3;if(ce.fencedEndRE&&ce.indentation<=dt&&(vt||ve.match(ce.fencedEndRE))){je.highlightFormatting&&(ce.formatting="code-block");var Te;return vt||(Te=ye(ce)),ce.localMode=ce.localState=null,ce.block=Re,ce.f=Ie,ce.fencedEndRE=null,ce.code=0,ce.thisLine.fencedCodeEnd=!0,vt?xt(ve,ce,ce.block):Te}else return ce.localMode?ce.localMode.token(ve,ce.localState):(ve.skipToEnd(),Ne.code)}function ye(ve){var ce=[];if(ve.formatting){ce.push(Ne.formatting),typeof ve.formatting=="string"&&(ve.formatting=[ve.formatting]);for(var Ge=0;Ge<ve.formatting.length;Ge++)ce.push(Ne.formatting+"-"+ve.formatting[Ge]),ve.formatting[Ge]==="header"&&ce.push(Ne.formatting+"-"+ve.formatting[Ge]+"-"+ve.header),ve.formatting[Ge]==="quote"&&(!je.maxBlockquoteDepth||je.maxBlockquoteDepth>=ve.quote?ce.push(Ne.formatting+"-"+ve.formatting[Ge]+"-"+ve.quote):ce.push("error"))}if(ve.taskOpen)return ce.push("meta"),ce.length?ce.join(" "):null;if(ve.taskClosed)return ce.push("property"),ce.length?ce.join(" "):null;if(ve.linkHref?ce.push(Ne.linkHref,"url"):(ve.strong&&ce.push(Ne.strong),ve.em&&ce.push(Ne.em),ve.strikethrough&&ce.push(Ne.strikethrough),ve.emoji&&ce.push(Ne.emoji),ve.linkText&&ce.push(Ne.linkText),ve.code&&ce.push(Ne.code),ve.image&&ce.push(Ne.image),ve.imageAltText&&ce.push(Ne.imageAltText,"link"),ve.imageMarker&&ce.push(Ne.imageMarker)),ve.header&&ce.push(Ne.header,Ne.header+"-"+ve.header),ve.quote&&(ce.push(Ne.quote),!je.maxBlockquoteDepth||je.maxBlockquoteDepth>=ve.quote?ce.push(Ne.quote+"-"+ve.quote):ce.push(Ne.quote+"-"+je.maxBlockquoteDepth)),ve.list!==!1){var vt=(ve.listStack.length-1)%3;vt?vt===1?ce.push(Ne.list2):ce.push(Ne.list3):ce.push(Ne.list1)}return ve.trailingSpaceNewLine?ce.push("trailing-space-new-line"):ve.trailingSpace&&ce.push("trailing-space-"+(ve.trailingSpace%2?"a":"b")),ce.length?ce.join(" "):null}function Le(ve,ce){if(ve.match(Xe,!0))return ye(ce)}function Ie(ve,ce){var Ge=ce.text(ve,ce);if(typeof Ge!="undefined")return Ge;if(ce.list)return ce.list=null,ye(ce);if(ce.taskList){var vt=ve.match(Oe,!0)[1]===" ";return vt?ce.taskOpen=!0:ce.taskClosed=!0,je.highlightFormatting&&(ce.formatting="task"),ce.taskList=!1,ye(ce)}if(ce.taskOpen=!1,ce.taskClosed=!1,ce.header&&ve.match(/^#+$/,!0))return je.highlightFormatting&&(ce.formatting="header"),ye(ce);var dt=ve.next();if(ce.linkTitle){ce.linkTitle=!1;var Te=dt;dt==="("&&(Te=")"),Te=(Te+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var ut="^\\s*(?:[^"+Te+"\\\\]+|\\\\\\\\|\\\\.)"+Te;if(ve.match(new RegExp(ut),!0))return Ne.linkHref}if(dt==="`"){var at=ce.formatting;je.highlightFormatting&&(ce.formatting="code"),ve.eatWhile("`");var _t=ve.current().length;if(ce.code==0&&(!ce.quote||_t==1))return ce.code=_t,ye(ce);if(_t==ce.code){var He=ye(ce);return ce.code=0,He}else return ce.formatting=at,ye(ce)}else if(ce.code)return ye(ce);if(dt==="\\"&&(ve.next(),je.highlightFormatting)){var De=ye(ce),Se=Ne.formatting+"-escape";return De?De+" "+Se:Se}if(dt==="!"&&ve.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return ce.imageMarker=!0,ce.image=!0,je.highlightFormatting&&(ce.formatting="image"),ye(ce);if(dt==="["&&ce.imageMarker&&ve.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return ce.imageMarker=!1,ce.imageAltText=!0,je.highlightFormatting&&(ce.formatting="image"),ye(ce);if(dt==="]"&&ce.imageAltText){je.highlightFormatting&&(ce.formatting="image");var De=ye(ce);return ce.imageAltText=!1,ce.image=!1,ce.inline=ce.f=Je,De}if(dt==="["&&!ce.image)return ce.linkText&&ve.match(/^.*?\]/)||(ce.linkText=!0,je.highlightFormatting&&(ce.formatting="link")),ye(ce);if(dt==="]"&&ce.linkText){je.highlightFormatting&&(ce.formatting="link");var De=ye(ce);return ce.linkText=!1,ce.inline=ce.f=ve.match(/\(.*?\)| ?\[.*?\]/,!1)?Je:Ie,De}if(dt==="<"&&ve.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){ce.f=ce.inline=Me,je.highlightFormatting&&(ce.formatting="link");var De=ye(ce);return De?De+=" ":De="",De+Ne.linkInline}if(dt==="<"&&ve.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){ce.f=ce.inline=Me,je.highlightFormatting&&(ce.formatting="link");var De=ye(ce);return De?De+=" ":De="",De+Ne.linkEmail}if(je.xml&&dt==="<"&&ve.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var ze=ve.string.indexOf(">",ve.pos);if(ze!=-1){var st=ve.string.substring(ve.start,ze);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(st)&&(ce.md_inside=!0)}return ve.backUp(1),ce.htmlState=re.startState(Qe),xt(ve,ce,We)}if(je.xml&&dt==="<"&&ve.match(/^\/\w*?>/))return ce.md_inside=!1,"tag";if(dt==="*"||dt==="_"){for(var Be=1,it=ve.pos==1?" ":ve.string.charAt(ve.pos-2);Be<3&&ve.eat(dt);)Be++;var tt=ve.peek()||" ",Fe=!/\s/.test(tt)&&(!Ee.test(tt)||/\s/.test(it)||Ee.test(it)),pt=!/\s/.test(it)&&(!Ee.test(it)||/\s/.test(tt)||Ee.test(tt)),Ye=null,ge=null;if(Be%2&&(!ce.em&&Fe&&(dt==="*"||!pt||Ee.test(it))?Ye=!0:ce.em==dt&&pt&&(dt==="*"||!Fe||Ee.test(tt))&&(Ye=!1)),Be>1&&(!ce.strong&&Fe&&(dt==="*"||!pt||Ee.test(it))?ge=!0:ce.strong==dt&&pt&&(dt==="*"||!Fe||Ee.test(tt))&&(ge=!1)),ge!=null||Ye!=null){je.highlightFormatting&&(ce.formatting=Ye==null?"strong":ge==null?"em":"strong em"),Ye===!0&&(ce.em=dt),ge===!0&&(ce.strong=dt);var He=ye(ce);return Ye===!1&&(ce.em=!1),ge===!1&&(ce.strong=!1),He}}else if(dt===" "&&(ve.eat("*")||ve.eat("_"))){if(ve.peek()===" ")return ye(ce);ve.backUp(1)}if(je.strikethrough){if(dt==="~"&&ve.eatWhile(dt)){if(ce.strikethrough){je.highlightFormatting&&(ce.formatting="strikethrough");var He=ye(ce);return ce.strikethrough=!1,He}else if(ve.match(/^[^\s]/,!1))return ce.strikethrough=!0,je.highlightFormatting&&(ce.formatting="strikethrough"),ye(ce)}else if(dt===" "&&ve.match(/^~~/,!0)){if(ve.peek()===" ")return ye(ce);ve.backUp(2)}}if(je.emoji&&dt===":"&&ve.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){ce.emoji=!0,je.highlightFormatting&&(ce.formatting="emoji");var ct=ye(ce);return ce.emoji=!1,ct}return dt===" "&&(ve.match(/^ +$/,!1)?ce.trailingSpace++:ce.trailingSpace&&(ce.trailingSpaceNewLine=!0)),ye(ce)}function Me(ve,ce){var Ge=ve.next();if(Ge===">"){ce.f=ce.inline=Ie,je.highlightFormatting&&(ce.formatting="link");var vt=ye(ce);return vt?vt+=" ":vt="",vt+Ne.linkInline}return ve.match(/^[^>]+/,!0),Ne.linkInline}function Je(ve,ce){if(ve.eatSpace())return null;var Ge=ve.next();return Ge==="("||Ge==="["?(ce.f=ce.inline=et(Ge==="("?")":"]"),je.highlightFormatting&&(ce.formatting="link-string"),ce.linkHref=!0,ye(ce)):"error"}var _e={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function et(ve){return function(ce,Ge){var vt=ce.next();if(vt===ve){Ge.f=Ge.inline=Ie,je.highlightFormatting&&(Ge.formatting="link-string");var dt=ye(Ge);return Ge.linkHref=!1,dt}return ce.match(_e[ve]),Ge.linkHref=!0,ye(Ge)}}function Kt(ve,ce){return ve.match(/^([^\]\\]|\\.)*\]:/,!1)?(ce.f=Et,ve.next(),je.highlightFormatting&&(ce.formatting="link"),ce.linkText=!0,ye(ce)):lt(ve,ce,Ie)}function Et(ve,ce){if(ve.match(/^\]:/,!0)){ce.f=ce.inline=Ct,je.highlightFormatting&&(ce.formatting="link");var Ge=ye(ce);return ce.linkText=!1,Ge}return ve.match(/^([^\]\\]|\\.)+/,!0),Ne.linkText}function Ct(ve,ce){return ve.eatSpace()?null:(ve.match(/^[^\s]+/,!0),ve.peek()===void 0?ce.linkTitle=!0:ve.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),ce.f=ce.inline=Ie,Ne.linkHref+" url")}var ft={startState:function(){return{f:Re,prevLine:{stream:null},thisLine:{stream:null},block:Re,htmlState:null,indentation:0,inline:Ie,text:Le,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(ve){return{f:ve.f,prevLine:ve.prevLine,thisLine:ve.thisLine,block:ve.block,htmlState:ve.htmlState&&re.copyState(Qe,ve.htmlState),indentation:ve.indentation,localMode:ve.localMode,localState:ve.localMode?re.copyState(ve.localMode,ve.localState):null,inline:ve.inline,text:ve.text,formatting:!1,linkText:ve.linkText,linkTitle:ve.linkTitle,linkHref:ve.linkHref,code:ve.code,em:ve.em,strong:ve.strong,strikethrough:ve.strikethrough,emoji:ve.emoji,header:ve.header,setext:ve.setext,hr:ve.hr,taskList:ve.taskList,list:ve.list,listStack:ve.listStack.slice(0),quote:ve.quote,indentedCode:ve.indentedCode,trailingSpace:ve.trailingSpace,trailingSpaceNewLine:ve.trailingSpaceNewLine,md_inside:ve.md_inside,fencedEndRE:ve.fencedEndRE}},token:function(ve,ce){if(ce.formatting=!1,ve!=ce.thisLine.stream){if(ce.header=0,ce.hr=!1,ve.match(/^\s*$/,!0))return me(ce),null;if(ce.prevLine=ce.thisLine,ce.thisLine={stream:ve},ce.taskList=!1,ce.trailingSpace=0,ce.trailingSpaceNewLine=!1,!ce.localState&&(ce.f=ce.block,ce.f!=We)){var Ge=ve.match(/^\s*/,!0)[0].replace(/\t/g,qe).length;if(ce.indentation=Ge,ce.indentationDiff=null,Ge>0)return null}}return ce.f(ve,ce)},innerMode:function(ve){return ve.block==We?{state:ve.htmlState,mode:Qe}:ve.localState?{state:ve.localState,mode:ve.localMode}:{state:ve,mode:ft}},indent:function(ve,ce,Ge){return ve.block==We&&Qe.indent?Qe.indent(ve.htmlState,ce,Ge):ve.localState&&ve.localMode.indent?ve.localMode.indent(ve.localState,ce,Ge):re.Pass},blankLine:me,getType:ye,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return ft},"xml"),re.defineMIME("text/markdown","markdown"),re.defineMIME("text/x-markdown","markdown")})},98101:function(rn,$t,le){(function(re){re(le(89780))})(function(re){"use strict";re.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 $e=0;$e<re.modeInfo.length;$e++){var je=re.modeInfo[$e];je.mimes&&(je.mime=je.mimes[0])}re.findModeByMIME=function(Qe){Qe=Qe.toLowerCase();for(var Ce=0;Ce<re.modeInfo.length;Ce++){var he=re.modeInfo[Ce];if(he.mime==Qe)return he;if(he.mimes){for(var Ne=0;Ne<he.mimes.length;Ne++)if(he.mimes[Ne]==Qe)return he}}if(/\+xml$/.test(Qe))return re.findModeByMIME("application/xml");if(/\+json$/.test(Qe))return re.findModeByMIME("application/json")},re.findModeByExtension=function(Qe){Qe=Qe.toLowerCase();for(var Ce=0;Ce<re.modeInfo.length;Ce++){var he=re.modeInfo[Ce];if(he.ext){for(var Ne=0;Ne<he.ext.length;Ne++)if(he.ext[Ne]==Qe)return he}}},re.findModeByFileName=function(Qe){for(var Ce=0;Ce<re.modeInfo.length;Ce++){var he=re.modeInfo[Ce];if(he.file&&he.file.test(Qe))return he}var Ne=Qe.lastIndexOf("."),Ve=Ne>-1&&Qe.substring(Ne+1,Qe.length);if(Ve)return re.findModeByExtension(Ve)},re.findModeByName=function(Qe){Qe=Qe.toLowerCase();for(var Ce=0;Ce<re.modeInfo.length;Ce++){var he=re.modeInfo[Ce];if(he.name.toLowerCase()==Qe)return he;if(he.alias){for(var Ne=0;Ne<he.alias.length;Ne++)if(he.alias[Ne].toLowerCase()==Qe)return he}}}})},67549:function(rn,$t,le){(function(re){re(le(89780))})(function(re){"use strict";re.defineMode("stex",function($e,je){"use strict";function Qe(Xe,Pe){Xe.cmdState.push(Pe)}function Ce(Xe){return Xe.cmdState.length>0?Xe.cmdState[Xe.cmdState.length-1]:null}function he(Xe){var Pe=Xe.cmdState.pop();Pe&&Pe.closeBracket()}function Ne(Xe){for(var Pe=Xe.cmdState,ke=Pe.length-1;ke>=0;ke--){var Ee=Pe[ke];if(Ee.name!="DEFAULT")return Ee}return{styleIdentifier:function(){return null}}}function Ve(Xe,Pe,ke){return function(){this.name=Xe,this.bracketNo=0,this.style=Pe,this.styles=ke,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var we={};we.importmodule=Ve("importmodule","tag",["string","builtin"]),we.documentclass=Ve("documentclass","tag",["","atom"]),we.usepackage=Ve("usepackage","tag",["atom"]),we.begin=Ve("begin","tag",["atom"]),we.end=Ve("end","tag",["atom"]),we.label=Ve("label","tag",["atom"]),we.ref=Ve("ref","tag",["atom"]),we.eqref=Ve("eqref","tag",["atom"]),we.cite=Ve("cite","tag",["atom"]),we.bibitem=Ve("bibitem","tag",["atom"]),we.Bibitem=Ve("Bibitem","tag",["atom"]),we.RBibitem=Ve("RBibitem","tag",["atom"]),we.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function de(Xe,Pe){Xe.f=Pe}function Oe(Xe,Pe){var ke;if(Xe.match(/^\\[a-zA-Z@]+/)){var Ee=Xe.current().slice(1);return ke=we.hasOwnProperty(Ee)?we[Ee]:we.DEFAULT,ke=new ke,Qe(Pe,ke),de(Pe,wt),ke.style}if(Xe.match(/^\\[$&%#{}_]/)||Xe.match(/^\\[,;!\/\\]/))return"tag";if(Xe.match("\\["))return de(Pe,function(lt,xt){return xe(lt,xt,"\\]")}),"keyword";if(Xe.match("\\("))return de(Pe,function(lt,xt){return xe(lt,xt,"\\)")}),"keyword";if(Xe.match("$$"))return de(Pe,function(lt,xt){return xe(lt,xt,"$$")}),"keyword";if(Xe.match("$"))return de(Pe,function(lt,xt){return xe(lt,xt,"$")}),"keyword";var qe=Xe.next();if(qe=="%")return Xe.skipToEnd(),"comment";if(qe=="}"||qe=="]"){if(ke=Ce(Pe),ke)ke.closeBracket(qe),de(Pe,wt);else return"error";return"bracket"}else return qe=="{"||qe=="["?(ke=we.DEFAULT,ke=new ke,Qe(Pe,ke),"bracket"):/\d/.test(qe)?(Xe.eatWhile(/[\w.%]/),"atom"):(Xe.eatWhile(/[\w\-_]/),ke=Ne(Pe),ke.name=="begin"&&(ke.argument=Xe.current()),ke.styleIdentifier())}function xe(Xe,Pe,ke){if(Xe.eatSpace())return null;if(ke&&Xe.match(ke))return de(Pe,Oe),"keyword";if(Xe.match(/^\\[a-zA-Z@]+/))return"tag";if(Xe.match(/^[a-zA-Z]+/))return"variable-2";if(Xe.match(/^\\[$&%#{}_]/)||Xe.match(/^\\[,;!\/]/)||Xe.match(/^[\^_&]/))return"tag";if(Xe.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(Xe.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var Ee=Xe.next();return Ee=="{"||Ee=="}"||Ee=="["||Ee=="]"||Ee=="("||Ee==")"?"bracket":Ee=="%"?(Xe.skipToEnd(),"comment"):"error"}function wt(Xe,Pe){var ke=Xe.peek(),Ee;return ke=="{"||ke=="["?(Ee=Ce(Pe),Ee.openBracket(ke),Xe.eat(ke),de(Pe,Oe),"bracket"):/[ \t\r]/.test(ke)?(Xe.eat(ke),null):(de(Pe,Oe),he(Pe),Oe(Xe,Pe))}return{startState:function(){var Xe=je.inMathMode?function(Pe,ke){return xe(Pe,ke)}:Oe;return{cmdState:[],f:Xe}},copyState:function(Xe){return{cmdState:Xe.cmdState.slice(),f:Xe.f}},token:function(Xe,Pe){return Pe.f(Xe,Pe)},blankLine:function(Xe){Xe.f=Oe,Xe.cmdState.length=0},lineComment:"%"}}),re.defineMIME("text/x-stex","stex"),re.defineMIME("text/x-latex","stex")})},15525:function(rn,$t,le){(function(re){re(le(89780))})(function(re){"use strict";var $e={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},je={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};re.defineMode("xml",function(Qe,Ce){var he=Qe.indentUnit,Ne={},Ve=Ce.htmlMode?$e:je;for(var we in Ve)Ne[we]=Ve[we];for(var we in Ce)Ne[we]=Ce[we];var de,Oe;function xe(Me,Je){function _e(Et){return Je.tokenize=Et,Et(Me,Je)}var et=Me.next();if(et=="<")return Me.eat("!")?Me.eat("[")?Me.match("CDATA[")?_e(Pe("atom","]]>")):null:Me.match("--")?_e(Pe("comment","-->")):Me.match("DOCTYPE",!0,!0)?(Me.eatWhile(/[\w\._\-]/),_e(ke(1))):null:Me.eat("?")?(Me.eatWhile(/[\w\._\-]/),Je.tokenize=Pe("meta","?>"),"meta"):(de=Me.eat("/")?"closeTag":"openTag",Je.tokenize=wt,"tag bracket");if(et=="&"){var Kt;return Me.eat("#")?Me.eat("x")?Kt=Me.eatWhile(/[a-fA-F\d]/)&&Me.eat(";"):Kt=Me.eatWhile(/[\d]/)&&Me.eat(";"):Kt=Me.eatWhile(/[\w\.\-:]/)&&Me.eat(";"),Kt?"atom":"error"}else return Me.eatWhile(/[^&<]/),null}xe.isInText=!0;function wt(Me,Je){var _e=Me.next();if(_e==">"||_e=="/"&&Me.eat(">"))return Je.tokenize=xe,de=_e==">"?"endTag":"selfcloseTag","tag bracket";if(_e=="=")return de="equals",null;if(_e=="<"){Je.tokenize=xe,Je.state=xt,Je.tagName=Je.tagStart=null;var et=Je.tokenize(Me,Je);return et?et+" tag error":"tag error"}else return/[\'\"]/.test(_e)?(Je.tokenize=Xe(_e),Je.stringStartCol=Me.column(),Je.tokenize(Me,Je)):(Me.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function Xe(Me){var Je=function(_e,et){for(;!_e.eol();)if(_e.next()==Me){et.tokenize=wt;break}return"string"};return Je.isInAttribute=!0,Je}function Pe(Me,Je){return function(_e,et){for(;!_e.eol();){if(_e.match(Je)){et.tokenize=xe;break}_e.next()}return Me}}function ke(Me){return function(Je,_e){for(var et;(et=Je.next())!=null;){if(et=="<")return _e.tokenize=ke(Me+1),_e.tokenize(Je,_e);if(et==">")if(Me==1){_e.tokenize=xe;break}else return _e.tokenize=ke(Me-1),_e.tokenize(Je,_e)}return"meta"}}function Ee(Me,Je,_e){this.prev=Me.context,this.tagName=Je,this.indent=Me.indented,this.startOfLine=_e,(Ne.doNotIndent.hasOwnProperty(Je)||Me.context&&Me.context.noIndent)&&(this.noIndent=!0)}function qe(Me){Me.context&&(Me.context=Me.context.prev)}function lt(Me,Je){for(var _e;;){if(!Me.context||(_e=Me.context.tagName,!Ne.contextGrabbers.hasOwnProperty(_e)||!Ne.contextGrabbers[_e].hasOwnProperty(Je)))return;qe(Me)}}function xt(Me,Je,_e){return Me=="openTag"?(_e.tagStart=Je.column(),Ae):Me=="closeTag"?me:xt}function Ae(Me,Je,_e){return Me=="word"?(_e.tagName=Je.current(),Oe="tag",Nt):Ne.allowMissingTagName&&Me=="endTag"?(Oe="tag bracket",Nt(Me,Je,_e)):(Oe="error",Ae)}function me(Me,Je,_e){if(Me=="word"){var et=Je.current();return _e.context&&_e.context.tagName!=et&&Ne.implicitlyClosed.hasOwnProperty(_e.context.tagName)&&qe(_e),_e.context&&_e.context.tagName==et||Ne.matchClosing===!1?(Oe="tag",Re):(Oe="tag error",We)}else return Ne.allowMissingTagName&&Me=="endTag"?(Oe="tag bracket",Re(Me,Je,_e)):(Oe="error",We)}function Re(Me,Je,_e){return Me!="endTag"?(Oe="error",Re):(qe(_e),xt)}function We(Me,Je,_e){return Oe="error",Re(Me,Je,_e)}function Nt(Me,Je,_e){if(Me=="word")return Oe="attribute",ye;if(Me=="endTag"||Me=="selfcloseTag"){var et=_e.tagName,Kt=_e.tagStart;return _e.tagName=_e.tagStart=null,Me=="selfcloseTag"||Ne.autoSelfClosers.hasOwnProperty(et)?lt(_e,et):(lt(_e,et),_e.context=new Ee(_e,et,Kt==_e.indented)),xt}return Oe="error",Nt}function ye(Me,Je,_e){return Me=="equals"?Le:(Ne.allowMissing||(Oe="error"),Nt(Me,Je,_e))}function Le(Me,Je,_e){return Me=="string"?Ie:Me=="word"&&Ne.allowUnquoted?(Oe="string",Nt):(Oe="error",Nt(Me,Je,_e))}function Ie(Me,Je,_e){return Me=="string"?Ie:Nt(Me,Je,_e)}return{startState:function(Me){var Je={tokenize:xe,state:xt,indented:Me||0,tagName:null,tagStart:null,context:null};return Me!=null&&(Je.baseIndent=Me),Je},token:function(Me,Je){if(!Je.tagName&&Me.sol()&&(Je.indented=Me.indentation()),Me.eatSpace())return null;de=null;var _e=Je.tokenize(Me,Je);return(_e||de)&&_e!="comment"&&(Oe=null,Je.state=Je.state(de||_e,Me,Je),Oe&&(_e=Oe=="error"?_e+" error":Oe)),_e},indent:function(Me,Je,_e){var et=Me.context;if(Me.tokenize.isInAttribute)return Me.tagStart==Me.indented?Me.stringStartCol+1:Me.indented+he;if(et&&et.noIndent)return re.Pass;if(Me.tokenize!=wt&&Me.tokenize!=xe)return _e?_e.match(/^(\s*)/)[0].length:0;if(Me.tagName)return Ne.multilineTagIndentPastTag!==!1?Me.tagStart+Me.tagName.length+2:Me.tagStart+he*(Ne.multilineTagIndentFactor||1);if(Ne.alignCDATA&&/<!\[CDATA\[/.test(Je))return 0;var Kt=Je&&/^<(\/)?([\w_:\.-]*)/.exec(Je);if(Kt&&Kt[1])for(;et;)if(et.tagName==Kt[2]){et=et.prev;break}else if(Ne.implicitlyClosed.hasOwnProperty(et.tagName))et=et.prev;else break;else if(Kt)for(;et;){var Et=Ne.contextGrabbers[et.tagName];if(Et&&Et.hasOwnProperty(Kt[2]))et=et.prev;else break}for(;et&&et.prev&&!et.startOfLine;)et=et.prev;return et?et.indent+he:Me.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:Ne.htmlMode?"html":"xml",helperType:Ne.htmlMode?"html":"xml",skipAttribute:function(Me){Me.state==Le&&(Me.state=Nt)},xmlCurrentTag:function(Me){return Me.tagName?{name:Me.tagName,close:Me.type=="closeTag"}:null},xmlCurrentContext:function(Me){for(var Je=[],_e=Me.context;_e;_e=_e.prev)_e.tagName&&Je.push(_e.tagName);return Je.reverse()}}}),re.defineMIME("text/xml","xml"),re.defineMIME("application/xml","xml"),re.mimeModes.hasOwnProperty("text/html")||re.defineMIME("text/html",{name:"xml",htmlMode:!0})})},66042:function(rn,$t,le){"use strict";le.d($t,{Z:function(){return Je}});var re=le(33885),$e=le(42978),je=le(43403),Qe=le(34280),Ce=le(59301),he=Ce.createContext(null),Ne=Ce.createContext({}),Ve=he,we=le(20068),de=le(54476),Oe=le(92310),xe=le.n(Oe),wt=le(77900),Xe=le(10228),Pe=le(26112),ke=le(75931),Ee=le(8654),qe=["prefixCls","className","containerRef"],lt=function(et){var Kt=et.prefixCls,Et=et.className,Ct=et.containerRef,ft=(0,ke.Z)(et,qe),ve=Ce.useContext(Ne),ce=ve.panel,Ge=(0,Ee.x1)(ce,Ct);return Ce.createElement("div",(0,de.Z)({className:xe()("".concat(Kt,"-content"),Et),role:"dialog",ref:Ge},(0,Pe.Z)(et,{aria:!0}),{"aria-modal":"true"},ft))},xt=lt,Ae=le(48736);function me(_e){return typeof _e=="string"&&String(Number(_e))===_e?((0,Ae.ZP)(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(_e)):_e}function Re(_e){warning(!("wrapperClassName"in _e),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!_e.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var We={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function Nt(_e,et){var Kt,Et,Ct,ft=_e.prefixCls,ve=_e.open,ce=_e.placement,Ge=_e.inline,vt=_e.push,dt=_e.forceRender,Te=_e.autoFocus,ut=_e.keyboard,at=_e.classNames,_t=_e.rootClassName,He=_e.rootStyle,De=_e.zIndex,Se=_e.className,ze=_e.id,st=_e.style,Be=_e.motion,it=_e.width,tt=_e.height,Fe=_e.children,pt=_e.mask,Ye=_e.maskClosable,ge=_e.maskMotion,ct=_e.maskClassName,jt=_e.maskStyle,Wt=_e.afterOpenChange,ae=_e.onClose,ee=_e.onMouseEnter,z=_e.onMouseOver,ie=_e.onMouseLeave,se=_e.onClick,ne=_e.onKeyDown,be=_e.onKeyUp,gt=_e.styles,kt=_e.drawerRender,ht=Ce.useRef(),Ze=Ce.useRef(),Vt=Ce.useRef();Ce.useImperativeHandle(et,function(){return ht.current});var Bt=function(Cn){var tn=Cn.keyCode,fn=Cn.shiftKey;switch(tn){case Xe.Z.TAB:{if(tn===Xe.Z.TAB){if(!fn&&document.activeElement===Vt.current){var Tt;(Tt=Ze.current)===null||Tt===void 0||Tt.focus({preventScroll:!0})}else if(fn&&document.activeElement===Ze.current){var Jt;(Jt=Vt.current)===null||Jt===void 0||Jt.focus({preventScroll:!0})}}break}case Xe.Z.ESC:{ae&&ut&&(Cn.stopPropagation(),ae(Cn));break}}};Ce.useEffect(function(){if(ve&&Te){var Ln;(Ln=ht.current)===null||Ln===void 0||Ln.focus({preventScroll:!0})}},[ve]);var Ht=Ce.useState(!1),un=(0,$e.Z)(Ht,2),Lt=un[0],St=un[1],vn=Ce.useContext(Ve),Fn;typeof vt=="boolean"?Fn=vt?{}:{distance:0}:Fn=vt||{};var Tn=(Kt=(Et=(Ct=Fn)===null||Ct===void 0?void 0:Ct.distance)!==null&&Et!==void 0?Et:vn==null?void 0:vn.pushDistance)!==null&&Kt!==void 0?Kt:180,Un=Ce.useMemo(function(){return{pushDistance:Tn,push:function(){St(!0)},pull:function(){St(!1)}}},[Tn]);Ce.useEffect(function(){if(ve){var Ln;vn==null||(Ln=vn.push)===null||Ln===void 0||Ln.call(vn)}else{var Cn;vn==null||(Cn=vn.pull)===null||Cn===void 0||Cn.call(vn)}},[ve]),Ce.useEffect(function(){return function(){var Ln;vn==null||(Ln=vn.pull)===null||Ln===void 0||Ln.call(vn)}},[]);var tr=pt&&Ce.createElement(wt.default,(0,de.Z)({key:"mask"},ge,{visible:ve}),function(Ln,Cn){var tn=Ln.className,fn=Ln.style;return Ce.createElement("div",{className:xe()("".concat(ft,"-mask"),tn,at==null?void 0:at.mask,ct),style:(0,re.Z)((0,re.Z)((0,re.Z)({},fn),jt),gt==null?void 0:gt.mask),onClick:Ye&&ve?ae:void 0,ref:Cn})}),gr=typeof Be=="function"?Be(ce):Be,$n={};if(Lt&&Tn)switch(ce){case"top":$n.transform="translateY(".concat(Tn,"px)");break;case"bottom":$n.transform="translateY(".concat(-Tn,"px)");break;case"left":$n.transform="translateX(".concat(Tn,"px)");break;default:$n.transform="translateX(".concat(-Tn,"px)");break}ce==="left"||ce==="right"?$n.width=me(it):$n.height=me(tt);var kn={onMouseEnter:ee,onMouseOver:z,onMouseLeave:ie,onClick:se,onKeyDown:ne,onKeyUp:be},pr=Ce.createElement(wt.default,(0,de.Z)({key:"panel"},gr,{visible:ve,forceRender:dt,onVisibleChanged:function(Cn){Wt==null||Wt(Cn)},removeOnLeave:!1,leavedClassName:"".concat(ft,"-content-wrapper-hidden")}),function(Ln,Cn){var tn=Ln.className,fn=Ln.style,Tt=Ce.createElement(xt,(0,de.Z)({id:ze,containerRef:Cn,prefixCls:ft,className:xe()(Se,at==null?void 0:at.content),style:(0,re.Z)((0,re.Z)({},st),gt==null?void 0:gt.content)},(0,Pe.Z)(_e,{aria:!0}),kn),Fe);return Ce.createElement("div",(0,de.Z)({className:xe()("".concat(ft,"-content-wrapper"),at==null?void 0:at.wrapper,tn),style:(0,re.Z)((0,re.Z)((0,re.Z)({},$n),fn),gt==null?void 0:gt.wrapper)},(0,Pe.Z)(_e,{data:!0})),kt?kt(Tt):Tt)}),sr=(0,re.Z)({},He);return De&&(sr.zIndex=De),Ce.createElement(Ve.Provider,{value:Un},Ce.createElement("div",{className:xe()(ft,"".concat(ft,"-").concat(ce),_t,(0,we.Z)((0,we.Z)({},"".concat(ft,"-open"),ve),"".concat(ft,"-inline"),Ge)),style:sr,tabIndex:-1,ref:ht,onKeyDown:Bt},tr,Ce.createElement("div",{tabIndex:0,ref:Ze,style:We,"aria-hidden":"true","data-sentinel":"start"}),pr,Ce.createElement("div",{tabIndex:0,ref:Vt,style:We,"aria-hidden":"true","data-sentinel":"end"})))}var ye=Ce.forwardRef(Nt),Le=ye,Ie=function(et){var Kt=et.open,Et=Kt===void 0?!1:Kt,Ct=et.prefixCls,ft=Ct===void 0?"rc-drawer":Ct,ve=et.placement,ce=ve===void 0?"right":ve,Ge=et.autoFocus,vt=Ge===void 0?!0:Ge,dt=et.keyboard,Te=dt===void 0?!0:dt,ut=et.width,at=ut===void 0?378:ut,_t=et.mask,He=_t===void 0?!0:_t,De=et.maskClosable,Se=De===void 0?!0:De,ze=et.getContainer,st=et.forceRender,Be=et.afterOpenChange,it=et.destroyOnClose,tt=et.onMouseEnter,Fe=et.onMouseOver,pt=et.onMouseLeave,Ye=et.onClick,ge=et.onKeyDown,ct=et.onKeyUp,jt=et.panelRef,Wt=Ce.useState(!1),ae=(0,$e.Z)(Wt,2),ee=ae[0],z=ae[1],ie=Ce.useState(!1),se=(0,$e.Z)(ie,2),ne=se[0],be=se[1];(0,Qe.Z)(function(){be(!0)},[]);var gt=ne?Et:!1,kt=Ce.useRef(),ht=Ce.useRef();(0,Qe.Z)(function(){gt&&(ht.current=document.activeElement)},[gt]);var Ze=function(Lt){var St;if(z(Lt),Be==null||Be(Lt),!Lt&&ht.current&&!((St=kt.current)!==null&&St!==void 0&&St.contains(ht.current))){var vn;(vn=ht.current)===null||vn===void 0||vn.focus({preventScroll:!0})}},Vt=Ce.useMemo(function(){return{panel:jt}},[jt]);if(!st&&!ee&&!gt&&it)return null;var Bt={onMouseEnter:tt,onMouseOver:Fe,onMouseLeave:pt,onClick:Ye,onKeyDown:ge,onKeyUp:ct},Ht=(0,re.Z)((0,re.Z)({},et),{},{open:gt,prefixCls:ft,placement:ce,autoFocus:vt,keyboard:Te,width:at,mask:He,maskClosable:Se,inline:ze===!1,afterOpenChange:Ze,ref:kt},Bt);return Ce.createElement(Ne.Provider,{value:Vt},Ce.createElement(je.Z,{open:gt||st||ee,autoDestroy:!1,getContainer:ze,autoLock:He&&(gt||ee)},Ce.createElement(Le,Ht)))},Me=Ie,Je=Me},20922:function(rn,$t,le){"use strict";le.d($t,{Z:function(){return He}});var re=le(54476),$e=le(20068),je=le(76190),Qe=le(42978),Ce=le(75931),he=le(67732),Ne=le(83652);function Ve(){return typeof BigInt=="function"}function we(De){return!De&&De!==0&&!Number.isNaN(De)||!String(De).trim()}function de(De){var Se=De.trim(),ze=Se.startsWith("-");ze&&(Se=Se.slice(1)),Se=Se.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),Se.startsWith(".")&&(Se="0".concat(Se));var st=Se||"0",Be=st.split("."),it=Be[0]||"0",tt=Be[1]||"0";it==="0"&&tt==="0"&&(ze=!1);var Fe=ze?"-":"";return{negative:ze,negativeStr:Fe,trimStr:st,integerStr:it,decimalStr:tt,fullStr:"".concat(Fe).concat(st)}}function Oe(De){var Se=String(De);return!Number.isNaN(Number(Se))&&Se.includes("e")}function xe(De){var Se=String(De);if(Oe(De)){var ze=Number(Se.slice(Se.indexOf("e-")+2)),st=Se.match(/\.(\d+)/);return st!=null&&st[1]&&(ze+=st[1].length),ze}return Se.includes(".")&&Xe(Se)?Se.length-Se.indexOf(".")-1:0}function wt(De){var Se=String(De);if(Oe(De)){if(De>Number.MAX_SAFE_INTEGER)return String(Ve()?BigInt(De).toString():Number.MAX_SAFE_INTEGER);if(De<Number.MIN_SAFE_INTEGER)return String(Ve()?BigInt(De).toString():Number.MIN_SAFE_INTEGER);Se=De.toFixed(xe(Se))}return de(Se).fullStr}function Xe(De){return typeof De=="number"?!Number.isNaN(De):De?/^\s*-?\d+(\.\d+)?\s*$/.test(De)||/^\s*-?\d+\.\s*$/.test(De)||/^\s*-?\.\d+\s*$/.test(De):!1}var Pe=function(){function De(Se){if((0,he.Z)(this,De),(0,$e.Z)(this,"origin",""),(0,$e.Z)(this,"negative",void 0),(0,$e.Z)(this,"integer",void 0),(0,$e.Z)(this,"decimal",void 0),(0,$e.Z)(this,"decimalLen",void 0),(0,$e.Z)(this,"empty",void 0),(0,$e.Z)(this,"nan",void 0),we(Se)){this.empty=!0;return}if(this.origin=String(Se),Se==="-"||Number.isNaN(Se)){this.nan=!0;return}var ze=Se;if(Oe(ze)&&(ze=Number(ze)),ze=typeof ze=="string"?ze:wt(ze),Xe(ze)){var st=de(ze);this.negative=st.negative;var Be=st.trimStr.split(".");this.integer=BigInt(Be[0]);var it=Be[1]||"0";this.decimal=BigInt(it),this.decimalLen=it.length}else this.nan=!0}return(0,Ne.Z)(De,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(ze){var st="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(ze,"0"));return BigInt(st)}},{key:"negate",value:function(){var ze=new De(this.toString());return ze.negative=!ze.negative,ze}},{key:"cal",value:function(ze,st,Be){var it=Math.max(this.getDecimalStr().length,ze.getDecimalStr().length),tt=this.alignDecimal(it),Fe=ze.alignDecimal(it),pt=st(tt,Fe).toString(),Ye=Be(it),ge=de(pt),ct=ge.negativeStr,jt=ge.trimStr,Wt="".concat(ct).concat(jt.padStart(Ye+1,"0"));return new De("".concat(Wt.slice(0,-Ye),".").concat(Wt.slice(-Ye)))}},{key:"add",value:function(ze){if(this.isInvalidate())return new De(ze);var st=new De(ze);return st.isInvalidate()?this:this.cal(st,function(Be,it){return Be+it},function(Be){return Be})}},{key:"multi",value:function(ze){var st=new De(ze);return this.isInvalidate()||st.isInvalidate()?new De(NaN):this.cal(st,function(Be,it){return Be*it},function(Be){return Be*2})}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(ze){return this.toString()===(ze==null?void 0:ze.toString())}},{key:"lessEquals",value:function(ze){return this.add(ze.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var ze=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return ze?this.isInvalidate()?"":de("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),De}(),ke=function(){function De(Se){if((0,he.Z)(this,De),(0,$e.Z)(this,"origin",""),(0,$e.Z)(this,"number",void 0),(0,$e.Z)(this,"empty",void 0),we(Se)){this.empty=!0;return}this.origin=String(Se),this.number=Number(Se)}return(0,Ne.Z)(De,[{key:"negate",value:function(){return new De(-this.toNumber())}},{key:"add",value:function(ze){if(this.isInvalidate())return new De(ze);var st=Number(ze);if(Number.isNaN(st))return this;var Be=this.number+st;if(Be>Number.MAX_SAFE_INTEGER)return new De(Number.MAX_SAFE_INTEGER);if(Be<Number.MIN_SAFE_INTEGER)return new De(Number.MIN_SAFE_INTEGER);var it=Math.max(xe(this.number),xe(st));return new De(Be.toFixed(it))}},{key:"multi",value:function(ze){var st=Number(ze);if(this.isInvalidate()||Number.isNaN(st))return new De(NaN);var Be=this.number*st;if(Be>Number.MAX_SAFE_INTEGER)return new De(Number.MAX_SAFE_INTEGER);if(Be<Number.MIN_SAFE_INTEGER)return new De(Number.MIN_SAFE_INTEGER);var it=Math.max(xe(this.number),xe(st));return new De(Be.toFixed(it))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return Number.isNaN(this.number)}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(ze){return this.toNumber()===(ze==null?void 0:ze.toNumber())}},{key:"lessEquals",value:function(ze){return this.add(ze.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var ze=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return ze?this.isInvalidate()?"":wt(this.number):this.origin}}]),De}();function Ee(De){return Ve()?new Pe(De):new ke(De)}function qe(De,Se,ze){var st=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(De==="")return"";var Be=de(De),it=Be.negativeStr,tt=Be.integerStr,Fe=Be.decimalStr,pt="".concat(Se).concat(Fe),Ye="".concat(it).concat(tt);if(ze>=0){var ge=Number(Fe[ze]);if(ge>=5&&!st){var ct=Ee(De).add("".concat(it,"0.").concat("0".repeat(ze)).concat(10-ge));return qe(ct.toString(),Se,ze,st)}return ze===0?Ye:"".concat(Ye).concat(Se).concat(Fe.padEnd(ze,"0").slice(0,ze))}return pt===".0"?Ye:"".concat(Ye).concat(pt)}var lt=Ee,xt=le(92310),Ae=le.n(xt),me=le(36901),Re=le(34280);function We(De,Se){return typeof Proxy!="undefined"&&De?new Proxy(De,{get:function(st,Be){if(Se[Be])return Se[Be];var it=st[Be];return typeof it=="function"?it.bind(st):it}}):De}var Nt=le(8654),ye=le(59301),Le=le(48736);function Ie(De,Se){var ze=(0,ye.useRef)(null);function st(){try{var it=De.selectionStart,tt=De.selectionEnd,Fe=De.value,pt=Fe.substring(0,it),Ye=Fe.substring(tt);ze.current={start:it,end:tt,value:Fe,beforeTxt:pt,afterTxt:Ye}}catch(ge){}}function Be(){if(De&&ze.current&&Se)try{var it=De.value,tt=ze.current,Fe=tt.beforeTxt,pt=tt.afterTxt,Ye=tt.start,ge=it.length;if(it.startsWith(Fe))ge=Fe.length;else if(it.endsWith(pt))ge=it.length-ze.current.afterTxt.length;else{var ct=Fe[Ye-1],jt=it.indexOf(ct,Ye-1);jt!==-1&&(ge=jt+1)}De.setSelectionRange(ge,ge)}catch(Wt){(0,Le.ZP)(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(Wt.message))}}return[st,Be]}var Me=le(49658),Je=function(){var Se=(0,ye.useState)(!1),ze=(0,Qe.Z)(Se,2),st=ze[0],Be=ze[1];return(0,Re.Z)(function(){Be((0,Me.Z)())},[]),st},_e=Je,et=le(16089),Kt=200,Et=600;function Ct(De){var Se=De.prefixCls,ze=De.upNode,st=De.downNode,Be=De.upDisabled,it=De.downDisabled,tt=De.onStep,Fe=ye.useRef(),pt=ye.useRef([]),Ye=ye.useRef();Ye.current=tt;var ge=function(){clearTimeout(Fe.current)},ct=function(ne,be){ne.preventDefault(),ge(),Ye.current(be);function gt(){Ye.current(be),Fe.current=setTimeout(gt,Kt)}Fe.current=setTimeout(gt,Et)};ye.useEffect(function(){return function(){ge(),pt.current.forEach(function(se){return et.Z.cancel(se)})}},[]);var jt=_e();if(jt)return null;var Wt="".concat(Se,"-handler"),ae=Ae()(Wt,"".concat(Wt,"-up"),(0,$e.Z)({},"".concat(Wt,"-up-disabled"),Be)),ee=Ae()(Wt,"".concat(Wt,"-down"),(0,$e.Z)({},"".concat(Wt,"-down-disabled"),it)),z=function(){return pt.current.push((0,et.Z)(ge))},ie={unselectable:"on",role:"button",onMouseUp:z,onMouseLeave:z};return ye.createElement("div",{className:"".concat(Wt,"-wrap")},ye.createElement("span",(0,re.Z)({},ie,{onMouseDown:function(ne){ct(ne,!0)},"aria-label":"Increase Value","aria-disabled":Be,className:ae}),ze||ye.createElement("span",{unselectable:"on",className:"".concat(Se,"-handler-up-inner")})),ye.createElement("span",(0,re.Z)({},ie,{onMouseDown:function(ne){ct(ne,!1)},"aria-label":"Decrease Value","aria-disabled":it,className:ee}),st||ye.createElement("span",{unselectable:"on",className:"".concat(Se,"-handler-down-inner")})))}function ft(De){var Se=typeof De=="number"?wt(De):de(De).fullStr,ze=Se.includes(".");return ze?de(Se.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:De+"0"}var ve=le(30292),ce=function(){var De=(0,ye.useRef)(0),Se=function(){et.Z.cancel(De.current)};return(0,ye.useEffect)(function(){return Se},[]),function(ze){Se(),De.current=(0,et.Z)(function(){ze()})}},Ge=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","changeOnWheel","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","changeOnBlur","domRef"],vt=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],dt=function(Se,ze){return Se||ze.isEmpty()?ze.toString():ze.toNumber()},Te=function(Se){var ze=lt(Se);return ze.isInvalidate()?null:ze},ut=ye.forwardRef(function(De,Se){var ze=De.prefixCls,st=De.className,Be=De.style,it=De.min,tt=De.max,Fe=De.step,pt=Fe===void 0?1:Fe,Ye=De.defaultValue,ge=De.value,ct=De.disabled,jt=De.readOnly,Wt=De.upHandler,ae=De.downHandler,ee=De.keyboard,z=De.changeOnWheel,ie=z===void 0?!1:z,se=De.controls,ne=se===void 0?!0:se,be=De.classNames,gt=De.stringMode,kt=De.parser,ht=De.formatter,Ze=De.precision,Vt=De.decimalSeparator,Bt=De.onChange,Ht=De.onInput,un=De.onPressEnter,Lt=De.onStep,St=De.changeOnBlur,vn=St===void 0?!0:St,Fn=De.domRef,Tn=(0,Ce.Z)(De,Ge),Un="".concat(ze,"-input"),tr=ye.useRef(null),gr=ye.useState(!1),$n=(0,Qe.Z)(gr,2),kn=$n[0],pr=$n[1],sr=ye.useRef(!1),Ln=ye.useRef(!1),Cn=ye.useRef(!1),tn=ye.useState(function(){return lt(ge!=null?ge:Ye)}),fn=(0,Qe.Z)(tn,2),Tt=fn[0],Jt=fn[1];function wn(Vn){ge===void 0&&Jt(Vn)}var En=ye.useCallback(function(Vn,Sn){if(!Sn)return Ze>=0?Ze:Math.max(xe(Vn),xe(pt))},[Ze,pt]),Pn=ye.useCallback(function(Vn){var Sn=String(Vn);if(kt)return kt(Sn);var Yn=Sn;return Vt&&(Yn=Yn.replace(Vt,".")),Yn.replace(/[^\w.-]+/g,"")},[kt,Vt]),jn=ye.useRef(""),ur=ye.useCallback(function(Vn,Sn){if(ht)return ht(Vn,{userTyping:Sn,input:String(jn.current)});var Yn=typeof Vn=="number"?wt(Vn):Vn;if(!Sn){var Rn=En(Yn,Sn);if(Xe(Yn)&&(Vt||Rn>=0)){var Pr=Vt||".";Yn=qe(Yn,Pr,Rn)}}return Yn},[ht,En,Vt]),rr=ye.useState(function(){var Vn=Ye!=null?Ye:ge;return Tt.isInvalidate()&&["string","number"].includes((0,je.Z)(Vn))?Number.isNaN(Vn)?"":Vn:ur(Tt.toString(),!1)}),zn=(0,Qe.Z)(rr,2),Gn=zn[0],ln=zn[1];jn.current=Gn;function Mt(Vn,Sn){ln(ur(Vn.isInvalidate()?Vn.toString(!1):Vn.toString(!Sn),Sn))}var gn=ye.useMemo(function(){return Te(tt)},[tt,Ze]),In=ye.useMemo(function(){return Te(it)},[it,Ze]),ir=ye.useMemo(function(){return!gn||!Tt||Tt.isInvalidate()?!1:gn.lessEquals(Tt)},[gn,Tt]),nt=ye.useMemo(function(){return!In||!Tt||Tt.isInvalidate()?!1:Tt.lessEquals(In)},[In,Tt]),ot=Ie(tr.current,kn),dn=(0,Qe.Z)(ot,2),Xt=dn[0],mt=dn[1],en=function(Sn){return gn&&!Sn.lessEquals(gn)?gn:In&&!In.lessEquals(Sn)?In:null},hn=function(Sn){return!en(Sn)},mn=function(Sn,Yn){var Rn=Sn,Pr=hn(Rn)||Rn.isEmpty();if(!Rn.isEmpty()&&!Yn&&(Rn=en(Rn)||Rn,Pr=!0),!jt&&!ct&&Pr){var Gr=Rn.toString(),Or=En(Gr,Yn);return Or>=0&&(Rn=lt(qe(Gr,".",Or)),hn(Rn)||(Rn=lt(qe(Gr,".",Or,!0)))),Rn.equals(Tt)||(wn(Rn),Bt==null||Bt(Rn.isEmpty()?null:dt(gt,Rn)),ge===void 0&&Mt(Rn,Yn)),Rn}return Tt},Dn=ce(),yn=function Vn(Sn){if(Xt(),jn.current=Sn,ln(Sn),!Ln.current){var Yn=Pn(Sn),Rn=lt(Yn);Rn.isNaN()||mn(Rn,!0)}Ht==null||Ht(Sn),Dn(function(){var Pr=Sn;kt||(Pr=Sn.replace(/。/g,".")),Pr!==Sn&&Vn(Pr)})},An=function(){Ln.current=!0},nn=function(){Ln.current=!1,yn(tr.current.value)},Gt=function(Sn){yn(Sn.target.value)},Mn=function(Sn){var Yn;if(!(Sn&&ir||!Sn&&nt)){sr.current=!1;var Rn=lt(Cn.current?ft(pt):pt);Sn||(Rn=Rn.negate());var Pr=(Tt||lt(0)).add(Rn.toString()),Gr=mn(Pr,!1);Lt==null||Lt(dt(gt,Gr),{offset:Cn.current?ft(pt):pt,type:Sn?"up":"down"}),(Yn=tr.current)===null||Yn===void 0||Yn.focus()}},_n=function(Sn){var Yn=lt(Pn(Gn)),Rn;Yn.isNaN()?Rn=mn(Tt,Sn):Rn=mn(Yn,Sn),ge!==void 0?Mt(Tt,!1):Rn.isNaN()||Mt(Rn,!1)},Jn=function(){sr.current=!0},Qn=function(Sn){var Yn=Sn.key,Rn=Sn.shiftKey;sr.current=!0,Cn.current=Rn,Yn==="Enter"&&(Ln.current||(sr.current=!1),_n(!1),un==null||un(Sn)),ee!==!1&&!Ln.current&&["Up","ArrowUp","Down","ArrowDown"].includes(Yn)&&(Mn(Yn==="Up"||Yn==="ArrowUp"),Sn.preventDefault())},Er=function(){sr.current=!1,Cn.current=!1};ye.useEffect(function(){if(ie&&kn){var Vn=function(Rn){Mn(Rn.deltaY<0),Rn.preventDefault()},Sn=tr.current;if(Sn)return Sn.addEventListener("wheel",Vn,{passive:!1}),function(){return Sn.removeEventListener("wheel",Vn)}}});var Mr=function(){vn&&_n(!1),pr(!1),sr.current=!1};return(0,Re.o)(function(){Tt.isInvalidate()||Mt(Tt,!1)},[Ze,ht]),(0,Re.o)(function(){var Vn=lt(ge);Jt(Vn);var Sn=lt(Pn(Gn));(!Vn.equals(Sn)||!sr.current||ht)&&Mt(Vn,sr.current)},[ge]),(0,Re.o)(function(){ht&&mt()},[Gn]),ye.createElement("div",{ref:Fn,className:Ae()(ze,st,(0,$e.Z)((0,$e.Z)((0,$e.Z)((0,$e.Z)((0,$e.Z)({},"".concat(ze,"-focused"),kn),"".concat(ze,"-disabled"),ct),"".concat(ze,"-readonly"),jt),"".concat(ze,"-not-a-number"),Tt.isNaN()),"".concat(ze,"-out-of-range"),!Tt.isInvalidate()&&!hn(Tt))),style:Be,onFocus:function(){pr(!0)},onBlur:Mr,onKeyDown:Qn,onKeyUp:Er,onCompositionStart:An,onCompositionEnd:nn,onBeforeInput:Jn},ne&&ye.createElement(Ct,{prefixCls:ze,upNode:Wt,downNode:ae,upDisabled:ir,downDisabled:nt,onStep:Mn}),ye.createElement("div",{className:"".concat(Un,"-wrap")},ye.createElement("input",(0,re.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":it,"aria-valuemax":tt,"aria-valuenow":Tt.isInvalidate()?null:Tt.toString(),step:pt},Tn,{ref:(0,Nt.sQ)(tr,Se),className:Un,value:Gn,onChange:Gt,disabled:ct,readOnly:jt}))))}),at=ye.forwardRef(function(De,Se){var ze=De.disabled,st=De.style,Be=De.prefixCls,it=Be===void 0?"rc-input-number":Be,tt=De.value,Fe=De.prefix,pt=De.suffix,Ye=De.addonBefore,ge=De.addonAfter,ct=De.className,jt=De.classNames,Wt=(0,Ce.Z)(De,vt),ae=ye.useRef(null),ee=ye.useRef(null),z=ye.useRef(null),ie=function(ne){z.current&&(0,ve.nH)(z.current,ne)};return ye.useImperativeHandle(Se,function(){return We(z.current,{focus:ie,nativeElement:ae.current.nativeElement||ee.current})}),ye.createElement(me.BaseInput,{className:ct,triggerFocus:ie,prefixCls:it,value:tt,disabled:ze,style:st,prefix:Fe,suffix:pt,addonAfter:ge,addonBefore:Ye,classNames:jt,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:ae},ye.createElement(ut,(0,re.Z)({prefixCls:it,disabled:ze,ref:z,domRef:ee,className:jt==null?void 0:jt.input},Wt)))}),_t=at,He=_t},23425:function(rn,$t,le){"use strict";le.d($t,{Z:function(){return We}});var re=le(20068),$e=le(54476),je=le(76190),Qe=le(33885),Ce=le(42978),he=le(92310),Ne=le.n(he),Ve=le(18929),we=le(10228),de=le(26112),Oe=le(48736),xe=le(59301),wt=le(17119),Xe=[10,20,50,100],Pe=function(ye){var Le=ye.pageSizeOptions,Ie=Le===void 0?Xe:Le,Me=ye.locale,Je=ye.changeSize,_e=ye.pageSize,et=ye.goButton,Kt=ye.quickGo,Et=ye.rootPrefixCls,Ct=ye.disabled,ft=ye.buildOptionText,ve=ye.showSizeChanger,ce=ye.sizeChangerRender,Ge=xe.useState(""),vt=(0,Ce.Z)(Ge,2),dt=vt[0],Te=vt[1],ut=function(){return!dt||Number.isNaN(dt)?void 0:Number(dt)},at=typeof ft=="function"?ft:function(tt){return"".concat(tt," ").concat(Me.items_per_page)},_t=function(Fe){Te(Fe.target.value)},He=function(Fe){et||dt===""||(Te(""),!(Fe.relatedTarget&&(Fe.relatedTarget.className.indexOf("".concat(Et,"-item-link"))>=0||Fe.relatedTarget.className.indexOf("".concat(Et,"-item"))>=0))&&(Kt==null||Kt(ut())))},De=function(Fe){dt!==""&&(Fe.keyCode===we.Z.ENTER||Fe.type==="click")&&(Te(""),Kt==null||Kt(ut()))},Se=function(){return Ie.some(function(Fe){return Fe.toString()===_e.toString()})?Ie:Ie.concat([_e]).sort(function(Fe,pt){var Ye=Number.isNaN(Number(Fe))?0:Number(Fe),ge=Number.isNaN(Number(pt))?0:Number(pt);return Ye-ge})},ze="".concat(Et,"-options");if(!ve&&!Kt)return null;var st=null,Be=null,it=null;return ve&&ce&&(st=ce({disabled:Ct,size:_e,onSizeChange:function(Fe){Je==null||Je(Number(Fe))},"aria-label":Me.page_size,className:"".concat(ze,"-size-changer"),options:Se().map(function(tt){return{label:at(tt),value:tt}})})),Kt&&(et&&(it=typeof et=="boolean"?xe.createElement("button",{type:"button",onClick:De,onKeyUp:De,disabled:Ct,className:"".concat(ze,"-quick-jumper-button")},Me.jump_to_confirm):xe.createElement("span",{onClick:De,onKeyUp:De},et)),Be=xe.createElement("div",{className:"".concat(ze,"-quick-jumper")},Me.jump_to,xe.createElement("input",{disabled:Ct,type:"text",value:dt,onChange:_t,onKeyUp:De,onBlur:He,"aria-label":Me.page}),Me.page,it)),xe.createElement("li",{className:ze},st,Be)},ke=Pe,Ee=function(ye){var Le=ye.rootPrefixCls,Ie=ye.page,Me=ye.active,Je=ye.className,_e=ye.showTitle,et=ye.onClick,Kt=ye.onKeyPress,Et=ye.itemRender,Ct="".concat(Le,"-item"),ft=Ne()(Ct,"".concat(Ct,"-").concat(Ie),(0,re.Z)((0,re.Z)({},"".concat(Ct,"-active"),Me),"".concat(Ct,"-disabled"),!Ie),Je),ve=function(){et(Ie)},ce=function(dt){Kt(dt,et,Ie)},Ge=Et(Ie,"page",xe.createElement("a",{rel:"nofollow"},Ie));return Ge?xe.createElement("li",{title:_e?String(Ie):null,className:ft,onClick:ve,onKeyDown:ce,tabIndex:0},Ge):null},qe=Ee,lt=function(ye,Le,Ie){return Ie};function xt(){}function Ae(Nt){var ye=Number(Nt);return typeof ye=="number"&&!Number.isNaN(ye)&&isFinite(ye)&&Math.floor(ye)===ye}function me(Nt,ye,Le){var Ie=typeof Nt=="undefined"?ye:Nt;return Math.floor((Le-1)/Ie)+1}var Re=function(ye){var Le=ye.prefixCls,Ie=Le===void 0?"rc-pagination":Le,Me=ye.selectPrefixCls,Je=Me===void 0?"rc-select":Me,_e=ye.className,et=ye.current,Kt=ye.defaultCurrent,Et=Kt===void 0?1:Kt,Ct=ye.total,ft=Ct===void 0?0:Ct,ve=ye.pageSize,ce=ye.defaultPageSize,Ge=ce===void 0?10:ce,vt=ye.onChange,dt=vt===void 0?xt:vt,Te=ye.hideOnSinglePage,ut=ye.align,at=ye.showPrevNextJumpers,_t=at===void 0?!0:at,He=ye.showQuickJumper,De=ye.showLessItems,Se=ye.showTitle,ze=Se===void 0?!0:Se,st=ye.onShowSizeChange,Be=st===void 0?xt:st,it=ye.locale,tt=it===void 0?wt.Z:it,Fe=ye.style,pt=ye.totalBoundaryShowSizeChanger,Ye=pt===void 0?50:pt,ge=ye.disabled,ct=ye.simple,jt=ye.showTotal,Wt=ye.showSizeChanger,ae=Wt===void 0?ft>Ye:Wt,ee=ye.sizeChangerRender,z=ye.pageSizeOptions,ie=ye.itemRender,se=ie===void 0?lt:ie,ne=ye.jumpPrevIcon,be=ye.jumpNextIcon,gt=ye.prevIcon,kt=ye.nextIcon,ht=xe.useRef(null),Ze=(0,Ve.Z)(10,{value:ve,defaultValue:Ge}),Vt=(0,Ce.Z)(Ze,2),Bt=Vt[0],Ht=Vt[1],un=(0,Ve.Z)(1,{value:et,defaultValue:Et,postState:function(dr){return Math.max(1,Math.min(dr,me(void 0,Bt,ft)))}}),Lt=(0,Ce.Z)(un,2),St=Lt[0],vn=Lt[1],Fn=xe.useState(St),Tn=(0,Ce.Z)(Fn,2),Un=Tn[0],tr=Tn[1];(0,xe.useEffect)(function(){tr(St)},[St]);var gr=dt!==xt,$n="current"in ye,kn=Math.max(1,St-(De?3:5)),pr=Math.min(me(void 0,Bt,ft),St+(De?3:5));function sr(Zn,dr){var Nr=Zn||xe.createElement("button",{type:"button","aria-label":dr,className:"".concat(Ie,"-item-link")});return typeof Zn=="function"&&(Nr=xe.createElement(Zn,(0,Qe.Z)({},ye))),Nr}function Ln(Zn){var dr=Zn.target.value,Nr=me(void 0,Bt,ft),Zr;return dr===""?Zr=dr:Number.isNaN(Number(dr))?Zr=Un:dr>=Nr?Zr=Nr:Zr=Number(dr),Zr}function Cn(Zn){return Ae(Zn)&&Zn!==St&&Ae(ft)&&ft>0}var tn=ft>Bt?He:!1;function fn(Zn){(Zn.keyCode===we.Z.UP||Zn.keyCode===we.Z.DOWN)&&Zn.preventDefault()}function Tt(Zn){var dr=Ln(Zn);switch(dr!==Un&&tr(dr),Zn.keyCode){case we.Z.ENTER:En(dr);break;case we.Z.UP:En(dr-1);break;case we.Z.DOWN:En(dr+1);break;default:break}}function Jt(Zn){En(Ln(Zn))}function wn(Zn){var dr=me(Zn,Bt,ft),Nr=St>dr&&dr!==0?dr:St;Ht(Zn),tr(Nr),Be==null||Be(St,Zn),vn(Nr),dt==null||dt(Nr,Zn)}function En(Zn){if(Cn(Zn)&&!ge){var dr=me(void 0,Bt,ft),Nr=Zn;return Zn>dr?Nr=dr:Zn<1&&(Nr=1),Nr!==Un&&tr(Nr),vn(Nr),dt==null||dt(Nr,Bt),Nr}return St}var Pn=St>1,jn=St<me(void 0,Bt,ft);function ur(){Pn&&En(St-1)}function rr(){jn&&En(St+1)}function zn(){En(kn)}function Gn(){En(pr)}function ln(Zn,dr){if(Zn.key==="Enter"||Zn.charCode===we.Z.ENTER||Zn.keyCode===we.Z.ENTER){for(var Nr=arguments.length,Zr=new Array(Nr>2?Nr-2:0),Fr=2;Fr<Nr;Fr++)Zr[Fr-2]=arguments[Fr];dr.apply(void 0,Zr)}}function Mt(Zn){ln(Zn,ur)}function gn(Zn){ln(Zn,rr)}function In(Zn){ln(Zn,zn)}function ir(Zn){ln(Zn,Gn)}function nt(Zn){var dr=se(Zn,"prev",sr(gt,"prev page"));return xe.isValidElement(dr)?xe.cloneElement(dr,{disabled:!Pn}):dr}function ot(Zn){var dr=se(Zn,"next",sr(kt,"next page"));return xe.isValidElement(dr)?xe.cloneElement(dr,{disabled:!jn}):dr}function dn(Zn){(Zn.type==="click"||Zn.keyCode===we.Z.ENTER)&&En(Un)}var Xt=null,mt=(0,de.Z)(ye,{aria:!0,data:!0}),en=jt&&xe.createElement("li",{className:"".concat(Ie,"-total-text")},jt(ft,[ft===0?0:(St-1)*Bt+1,St*Bt>ft?ft:St*Bt])),hn=null,mn=me(void 0,Bt,ft);if(Te&&ft<=Bt)return null;var Dn=[],yn={rootPrefixCls:Ie,onClick:En,onKeyPress:ln,showTitle:ze,itemRender:se,page:-1},An=St-1>0?St-1:0,nn=St+1<mn?St+1:mn,Gt=He&&He.goButton,Mn=(0,je.Z)(ct)==="object"?ct.readOnly:!ct,_n=Gt,Jn=null;ct&&(Gt&&(typeof Gt=="boolean"?_n=xe.createElement("button",{type:"button",onClick:dn,onKeyUp:dn},tt.jump_to_confirm):_n=xe.createElement("span",{onClick:dn,onKeyUp:dn},Gt),_n=xe.createElement("li",{title:ze?"".concat(tt.jump_to).concat(St,"/").concat(mn):null,className:"".concat(Ie,"-simple-pager")},_n)),Jn=xe.createElement("li",{title:ze?"".concat(St,"/").concat(mn):null,className:"".concat(Ie,"-simple-pager")},Mn?Un:xe.createElement("input",{type:"text","aria-label":tt.jump_to,value:Un,disabled:ge,onKeyDown:fn,onKeyUp:Tt,onChange:Tt,onBlur:Jt,size:3}),xe.createElement("span",{className:"".concat(Ie,"-slash")},"/"),mn));var Qn=De?1:2;if(mn<=3+Qn*2){mn||Dn.push(xe.createElement(qe,(0,$e.Z)({},yn,{key:"noPager",page:1,className:"".concat(Ie,"-item-disabled")})));for(var Er=1;Er<=mn;Er+=1)Dn.push(xe.createElement(qe,(0,$e.Z)({},yn,{key:Er,page:Er,active:St===Er})))}else{var Mr=De?tt.prev_3:tt.prev_5,Vn=De?tt.next_3:tt.next_5,Sn=se(kn,"jump-prev",sr(ne,"prev page")),Yn=se(pr,"jump-next",sr(be,"next page"));_t&&(Xt=Sn?xe.createElement("li",{title:ze?Mr:null,key:"prev",onClick:zn,tabIndex:0,onKeyDown:In,className:Ne()("".concat(Ie,"-jump-prev"),(0,re.Z)({},"".concat(Ie,"-jump-prev-custom-icon"),!!ne))},Sn):null,hn=Yn?xe.createElement("li",{title:ze?Vn:null,key:"next",onClick:Gn,tabIndex:0,onKeyDown:ir,className:Ne()("".concat(Ie,"-jump-next"),(0,re.Z)({},"".concat(Ie,"-jump-next-custom-icon"),!!be))},Yn):null);var Rn=Math.max(1,St-Qn),Pr=Math.min(St+Qn,mn);St-1<=Qn&&(Pr=1+Qn*2),mn-St<=Qn&&(Rn=mn-Qn*2);for(var Gr=Rn;Gr<=Pr;Gr+=1)Dn.push(xe.createElement(qe,(0,$e.Z)({},yn,{key:Gr,page:Gr,active:St===Gr})));if(St-1>=Qn*2&&St!==3&&(Dn[0]=xe.cloneElement(Dn[0],{className:Ne()("".concat(Ie,"-item-after-jump-prev"),Dn[0].props.className)}),Dn.unshift(Xt)),mn-St>=Qn*2&&St!==mn-2){var Or=Dn[Dn.length-1];Dn[Dn.length-1]=xe.cloneElement(Or,{className:Ne()("".concat(Ie,"-item-before-jump-next"),Or.props.className)}),Dn.push(hn)}Rn!==1&&Dn.unshift(xe.createElement(qe,(0,$e.Z)({},yn,{key:1,page:1}))),Pr!==mn&&Dn.push(xe.createElement(qe,(0,$e.Z)({},yn,{key:mn,page:mn})))}var Vr=nt(An);if(Vr){var Jr=!Pn||!mn;Vr=xe.createElement("li",{title:ze?tt.prev_page:null,onClick:ur,tabIndex:Jr?null:0,onKeyDown:Mt,className:Ne()("".concat(Ie,"-prev"),(0,re.Z)({},"".concat(Ie,"-disabled"),Jr)),"aria-disabled":Jr},Vr)}var Ur=ot(nn);if(Ur){var Ir,ei;ct?(Ir=!jn,ei=Pn?0:null):(Ir=!jn||!mn,ei=Ir?null:0),Ur=xe.createElement("li",{title:ze?tt.next_page:null,onClick:rr,tabIndex:ei,onKeyDown:gn,className:Ne()("".concat(Ie,"-next"),(0,re.Z)({},"".concat(Ie,"-disabled"),Ir)),"aria-disabled":Ir},Ur)}var Yr=Ne()(Ie,_e,(0,re.Z)((0,re.Z)((0,re.Z)((0,re.Z)((0,re.Z)({},"".concat(Ie,"-start"),ut==="start"),"".concat(Ie,"-center"),ut==="center"),"".concat(Ie,"-end"),ut==="end"),"".concat(Ie,"-simple"),ct),"".concat(Ie,"-disabled"),ge));return xe.createElement("ul",(0,$e.Z)({className:Yr,style:Fe,ref:ht},mt),en,Vr,ct?Jn:Dn,Ur,xe.createElement(ke,{locale:tt,rootPrefixCls:Ie,disabled:ge,selectPrefixCls:Je,changeSize:wn,pageSize:Bt,pageSizeOptions:z,quickGo:tn?En:null,goButton:_n,showSizeChanger:ae,sizeChangerRender:ee}))},We=Re},25930:function(rn,$t,le){"use strict";le.d($t,{Cd:function(){return Ie}});var re=le(54476),$e=le(33885),je=le(75931),Qe=le(59301),Ce=le(92310),he=le.n(Ce),Ne={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},Ve=function(){var _e=(0,Qe.useRef)([]),et=(0,Qe.useRef)(null);return(0,Qe.useEffect)(function(){var Kt=Date.now(),Et=!1;_e.current.forEach(function(Ct){if(Ct){Et=!0;var ft=Ct.style;ft.transitionDuration=".3s, .3s, .3s, .06s",et.current&&Kt-et.current<100&&(ft.transitionDuration="0s, 0s")}}),Et&&(et.current=Date.now())}),_e.current},we=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],de=function(_e){var et=(0,$e.Z)((0,$e.Z)({},Ne),_e),Kt=et.className,Et=et.percent,Ct=et.prefixCls,ft=et.strokeColor,ve=et.strokeLinecap,ce=et.strokeWidth,Ge=et.style,vt=et.trailColor,dt=et.trailWidth,Te=et.transition,ut=(0,je.Z)(et,we);delete ut.gapPosition;var at=Array.isArray(Et)?Et:[Et],_t=Array.isArray(ft)?ft:[ft],He=Ve(),De=ce/2,Se=100-ce/2,ze="M ".concat(ve==="round"?De:0,",").concat(De,`
|
|
L `).concat(ve==="round"?Se:100,",").concat(De),st="0 0 100 ".concat(ce),Be=0;return Qe.createElement("svg",(0,re.Z)({className:he()("".concat(Ct,"-line"),Kt),viewBox:st,preserveAspectRatio:"none",style:Ge},ut),Qe.createElement("path",{className:"".concat(Ct,"-line-trail"),d:ze,strokeLinecap:ve,stroke:vt,strokeWidth:dt||ce,fillOpacity:"0"}),at.map(function(it,tt){var Fe=1;switch(ve){case"round":Fe=1-ce/100;break;case"square":Fe=1-ce/2/100;break;default:Fe=1;break}var pt={strokeDasharray:"".concat(it*Fe,"px, 100px"),strokeDashoffset:"-".concat(Be,"px"),transition:Te||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Ye=_t[tt]||_t[_t.length-1];return Be+=it,Qe.createElement("path",{key:tt,className:"".concat(Ct,"-line-path"),d:ze,strokeLinecap:ve,stroke:Ye,strokeWidth:ce,fillOpacity:"0",ref:function(ct){He[tt]=ct},style:pt})}))},Oe=de,xe=le(76190),wt=le(42978),Xe=le(47273),Pe=0,ke=(0,Xe.Z)();function Ee(){var Je;return ke?(Je=Pe,Pe+=1):Je="TEST_OR_SSR",Je}var qe=function(Je){var _e=Qe.useState(),et=(0,wt.Z)(_e,2),Kt=et[0],Et=et[1];return Qe.useEffect(function(){Et("rc_progress_".concat(Ee()))},[]),Je||Kt},lt=function(_e){var et=_e.bg,Kt=_e.children;return Qe.createElement("div",{style:{width:"100%",height:"100%",background:et}},Kt)};function xt(Je,_e){return Object.keys(Je).map(function(et){var Kt=parseFloat(et),Et="".concat(Math.floor(Kt*_e),"%");return"".concat(Je[et]," ").concat(Et)})}var Ae=Qe.forwardRef(function(Je,_e){var et=Je.prefixCls,Kt=Je.color,Et=Je.gradientId,Ct=Je.radius,ft=Je.style,ve=Je.ptg,ce=Je.strokeLinecap,Ge=Je.strokeWidth,vt=Je.size,dt=Je.gapDegree,Te=Kt&&(0,xe.Z)(Kt)==="object",ut=Te?"#FFF":void 0,at=vt/2,_t=Qe.createElement("circle",{className:"".concat(et,"-circle-path"),r:Ct,cx:at,cy:at,stroke:ut,strokeLinecap:ce,strokeWidth:Ge,opacity:ve===0?0:1,style:ft,ref:_e});if(!Te)return _t;var He="".concat(Et,"-conic"),De=dt?"".concat(180+dt/2,"deg"):"0deg",Se=xt(Kt,(360-dt)/360),ze=xt(Kt,1),st="conic-gradient(from ".concat(De,", ").concat(Se.join(", "),")"),Be="linear-gradient(to ".concat(dt?"bottom":"top",", ").concat(ze.join(", "),")");return Qe.createElement(Qe.Fragment,null,Qe.createElement("mask",{id:He},_t),Qe.createElement("foreignObject",{x:0,y:0,width:vt,height:vt,mask:"url(#".concat(He,")")},Qe.createElement(lt,{bg:Be},Qe.createElement(lt,{bg:st}))))}),me=Ae,Re=100,We=function(_e,et,Kt,Et,Ct,ft,ve,ce,Ge,vt){var dt=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,Te=Kt/100*360*((360-ft)/360),ut=ft===0?0:{bottom:0,top:180,left:90,right:-90}[ve],at=(100-Et)/100*et;Ge==="round"&&Et!==100&&(at+=vt/2,at>=et&&(at=et-.01));var _t=Re/2;return{stroke:typeof ce=="string"?ce:void 0,strokeDasharray:"".concat(et,"px ").concat(_e),strokeDashoffset:at+dt,transform:"rotate(".concat(Ct+Te+ut,"deg)"),transformOrigin:"".concat(_t,"px ").concat(_t,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},Nt=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function ye(Je){var _e=Je!=null?Je:[];return Array.isArray(_e)?_e:[_e]}var Le=function(_e){var et=(0,$e.Z)((0,$e.Z)({},Ne),_e),Kt=et.id,Et=et.prefixCls,Ct=et.steps,ft=et.strokeWidth,ve=et.trailWidth,ce=et.gapDegree,Ge=ce===void 0?0:ce,vt=et.gapPosition,dt=et.trailColor,Te=et.strokeLinecap,ut=et.style,at=et.className,_t=et.strokeColor,He=et.percent,De=(0,je.Z)(et,Nt),Se=Re/2,ze=qe(Kt),st="".concat(ze,"-gradient"),Be=Se-ft/2,it=Math.PI*2*Be,tt=Ge>0?90+Ge/2:-90,Fe=it*((360-Ge)/360),pt=(0,xe.Z)(Ct)==="object"?Ct:{count:Ct,gap:2},Ye=pt.count,ge=pt.gap,ct=ye(He),jt=ye(_t),Wt=jt.find(function(be){return be&&(0,xe.Z)(be)==="object"}),ae=Wt&&(0,xe.Z)(Wt)==="object",ee=ae?"butt":Te,z=We(it,Fe,0,100,tt,Ge,vt,dt,ee,ft),ie=Ve(),se=function(){var gt=0;return ct.map(function(kt,ht){var Ze=jt[ht]||jt[jt.length-1],Vt=We(it,Fe,gt,kt,tt,Ge,vt,Ze,ee,ft);return gt+=kt,Qe.createElement(me,{key:ht,color:Ze,ptg:kt,radius:Be,prefixCls:Et,gradientId:st,style:Vt,strokeLinecap:ee,strokeWidth:ft,gapDegree:Ge,ref:function(Ht){ie[ht]=Ht},size:Re})}).reverse()},ne=function(){var gt=Math.round(Ye*(ct[0]/100)),kt=100/Ye,ht=0;return new Array(Ye).fill(null).map(function(Ze,Vt){var Bt=Vt<=gt-1?jt[0]:dt,Ht=Bt&&(0,xe.Z)(Bt)==="object"?"url(#".concat(st,")"):void 0,un=We(it,Fe,ht,kt,tt,Ge,vt,Bt,"butt",ft,ge);return ht+=(Fe-un.strokeDashoffset+ge)*100/Fe,Qe.createElement("circle",{key:Vt,className:"".concat(Et,"-circle-path"),r:Be,cx:Se,cy:Se,stroke:Ht,strokeWidth:ft,opacity:1,style:un,ref:function(St){ie[Vt]=St}})})};return Qe.createElement("svg",(0,re.Z)({className:he()("".concat(Et,"-circle"),at),viewBox:"0 0 ".concat(Re," ").concat(Re),style:ut,id:Kt,role:"presentation"},De),!Ye&&Qe.createElement("circle",{className:"".concat(Et,"-circle-trail"),r:Be,cx:Se,cy:Se,stroke:dt,strokeLinecap:ee,strokeWidth:ve||ft,style:z}),Ye?ne():se())},Ie=Le,Me={Line:Oe,Circle:Ie}},738:function(rn,$t,le){"use strict";le.d($t,{Z:function(){return xt}});var re=le(54476),$e=le(20068),je=le(42978),Qe=le(75931),Ce=le(92310),he=le.n(Ce),Ne=le(18929),Ve=le(10228),we=le(26112),de=le(59301);function Oe(Ae,me){var Re=Ae.disabled,We=Ae.prefixCls,Nt=Ae.character,ye=Ae.characterRender,Le=Ae.index,Ie=Ae.count,Me=Ae.value,Je=Ae.allowHalf,_e=Ae.focused,et=Ae.onHover,Kt=Ae.onClick,Et=function(Te){et(Te,Le)},Ct=function(Te){Kt(Te,Le)},ft=function(Te){Te.keyCode===Ve.Z.ENTER&&Kt(Te,Le)},ve=Le+1,ce=new Set([We]);Me===0&&Le===0&&_e?ce.add("".concat(We,"-focused")):Je&&Me+.5>=ve&&Me<ve?(ce.add("".concat(We,"-half")),ce.add("".concat(We,"-active")),_e&&ce.add("".concat(We,"-focused"))):(ve<=Me?ce.add("".concat(We,"-full")):ce.add("".concat(We,"-zero")),ve===Me&&_e&&ce.add("".concat(We,"-focused")));var Ge=typeof Nt=="function"?Nt(Ae):Nt,vt=de.createElement("li",{className:he()(Array.from(ce)),ref:me},de.createElement("div",{onClick:Re?null:Ct,onKeyDown:Re?null:ft,onMouseMove:Re?null:Et,role:"radio","aria-checked":Me>Le?"true":"false","aria-posinset":Le+1,"aria-setsize":Ie,tabIndex:Re?-1:0},de.createElement("div",{className:"".concat(We,"-first")},Ge),de.createElement("div",{className:"".concat(We,"-second")},Ge)));return ye&&(vt=ye(vt,Ae)),vt}var xe=de.forwardRef(Oe);function wt(){var Ae=de.useRef({});function me(We){return Ae.current[We]}function Re(We){return function(Nt){Ae.current[We]=Nt}}return[me,Re]}function Xe(Ae){var me=Ae.pageXOffset,Re="scrollLeft";if(typeof me!="number"){var We=Ae.document;me=We.documentElement[Re],typeof me!="number"&&(me=We.body[Re])}return me}function Pe(Ae){var me,Re,We=Ae.ownerDocument,Nt=We.body,ye=We&&We.documentElement,Le=Ae.getBoundingClientRect();return me=Le.left,Re=Le.top,me-=ye.clientLeft||Nt.clientLeft||0,Re-=ye.clientTop||Nt.clientTop||0,{left:me,top:Re}}function ke(Ae){var me=Pe(Ae),Re=Ae.ownerDocument,We=Re.defaultView||Re.parentWindow;return me.left+=Xe(We),me.left}var Ee=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","keyboard","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function qe(Ae,me){var Re=Ae.prefixCls,We=Re===void 0?"rc-rate":Re,Nt=Ae.className,ye=Ae.defaultValue,Le=Ae.value,Ie=Ae.count,Me=Ie===void 0?5:Ie,Je=Ae.allowHalf,_e=Je===void 0?!1:Je,et=Ae.allowClear,Kt=et===void 0?!0:et,Et=Ae.keyboard,Ct=Et===void 0?!0:Et,ft=Ae.character,ve=ft===void 0?"\u2605":ft,ce=Ae.characterRender,Ge=Ae.disabled,vt=Ae.direction,dt=vt===void 0?"ltr":vt,Te=Ae.tabIndex,ut=Te===void 0?0:Te,at=Ae.autoFocus,_t=Ae.onHoverChange,He=Ae.onChange,De=Ae.onFocus,Se=Ae.onBlur,ze=Ae.onKeyDown,st=Ae.onMouseLeave,Be=(0,Qe.Z)(Ae,Ee),it=wt(),tt=(0,je.Z)(it,2),Fe=tt[0],pt=tt[1],Ye=de.useRef(null),ge=function(){if(!Ge){var kn;(kn=Ye.current)===null||kn===void 0||kn.focus()}};de.useImperativeHandle(me,function(){return{focus:ge,blur:function(){if(!Ge){var kn;(kn=Ye.current)===null||kn===void 0||kn.blur()}}}});var ct=(0,Ne.Z)(ye||0,{value:Le}),jt=(0,je.Z)(ct,2),Wt=jt[0],ae=jt[1],ee=(0,Ne.Z)(null),z=(0,je.Z)(ee,2),ie=z[0],se=z[1],ne=function(kn,pr){var sr=dt==="rtl",Ln=kn+1;if(_e){var Cn=Fe(kn),tn=ke(Cn),fn=Cn.clientWidth;(sr&&pr-tn>fn/2||!sr&&pr-tn<fn/2)&&(Ln-=.5)}return Ln},be=function(kn){ae(kn),He==null||He(kn)},gt=de.useState(!1),kt=(0,je.Z)(gt,2),ht=kt[0],Ze=kt[1],Vt=function(){Ze(!0),De==null||De()},Bt=function(){Ze(!1),Se==null||Se()},Ht=de.useState(null),un=(0,je.Z)(Ht,2),Lt=un[0],St=un[1],vn=function(kn,pr){var sr=ne(pr,kn.pageX);sr!==ie&&(St(sr),se(null)),_t==null||_t(sr)},Fn=function(kn){Ge||(St(null),se(null),_t==null||_t(void 0)),kn&&(st==null||st(kn))},Tn=function(kn,pr){var sr=ne(pr,kn.pageX),Ln=!1;Kt&&(Ln=sr===Wt),Fn(),be(Ln?0:sr),se(Ln?sr:null)},Un=function(kn){var pr=kn.keyCode,sr=dt==="rtl",Ln=_e?.5:1;Ct&&(pr===Ve.Z.RIGHT&&Wt<Me&&!sr?(be(Wt+Ln),kn.preventDefault()):pr===Ve.Z.LEFT&&Wt>0&&!sr||pr===Ve.Z.RIGHT&&Wt>0&&sr?(be(Wt-Ln),kn.preventDefault()):pr===Ve.Z.LEFT&&Wt<Me&&sr&&(be(Wt+Ln),kn.preventDefault())),ze==null||ze(kn)};de.useEffect(function(){at&&!Ge&&ge()},[]);var tr=new Array(Me).fill(0).map(function($n,kn){return de.createElement(xe,{ref:pt(kn),index:kn,count:Me,disabled:Ge,prefixCls:"".concat(We,"-star"),allowHalf:_e,value:Lt===null?Wt:Lt,onClick:Tn,onHover:vn,key:$n||kn,character:ve,characterRender:ce,focused:ht})}),gr=he()(We,Nt,(0,$e.Z)((0,$e.Z)({},"".concat(We,"-disabled"),Ge),"".concat(We,"-rtl"),dt==="rtl"));return de.createElement("ul",(0,re.Z)({className:gr,onMouseLeave:Fn,tabIndex:Ge?-1:ut,onFocus:Ge?null:Vt,onBlur:Ge?null:Bt,onKeyDown:Ge?null:Un,ref:Ye},(0,we.Z)(Be,{aria:!0,data:!0,attr:!0})),tr)}var lt=de.forwardRef(qe),xt=lt},6551:function(rn,$t,le){"use strict";le.d($t,{ZP:function(){return Ne}});var re=le(42978),$e=le(59301),je=le(47273),Qe=0,Ce=(0,je.Z)();function he(){var Ve;return Ce?(Ve=Qe,Qe+=1):Ve="TEST_OR_SSR",Ve}function Ne(Ve){var we=$e.useState(),de=(0,re.Z)(we,2),Oe=de[0],xe=de[1];return $e.useEffect(function(){xe("rc_select_".concat(he()))},[]),Ve||Oe}},37463:function(rn,$t,le){"use strict";le.d($t,{Ac:function(){return Ze},Xo:function(){return Bt},Wx:function(){return un},ZP:function(){return ir},lk:function(){return xt}});var re=le(54476),$e=le(94480),je=le(20068),Qe=le(33885),Ce=le(42978),he=le(75931),Ne=le(76190),Ve=le(18929),we=le(48736),de=le(59301),Oe=le(92310),xe=le.n(Oe),wt=le(34280),Xe=le(49658),Pe=le(8654),ke=function(ot){var dn=ot.className,Xt=ot.customizeIcon,mt=ot.customizeIconProps,en=ot.children,hn=ot.onMouseDown,mn=ot.onClick,Dn=typeof Xt=="function"?Xt(mt):Xt;return de.createElement("span",{className:dn,onMouseDown:function(An){An.preventDefault(),hn==null||hn(An)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:mn,"aria-hidden":!0},Dn!==void 0?Dn:de.createElement("span",{className:xe()(dn.split(/\s+/).map(function(yn){return"".concat(yn,"-icon")}))},en))},Ee=ke,qe=function(ot,dn,Xt,mt,en){var hn=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,mn=arguments.length>6?arguments[6]:void 0,Dn=arguments.length>7?arguments[7]:void 0,yn=de.useMemo(function(){if((0,Ne.Z)(mt)==="object")return mt.clearIcon;if(en)return en},[mt,en]),An=de.useMemo(function(){return!!(!hn&&mt&&(Xt.length||mn)&&!(Dn==="combobox"&&mn===""))},[mt,hn,Xt.length,mn,Dn]);return{allowClear:An,clearIcon:de.createElement(Ee,{className:"".concat(ot,"-clear"),onMouseDown:dn,customizeIcon:yn},"\xD7")}},lt=de.createContext(null);function xt(){return de.useContext(lt)}function Ae(){var nt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,ot=de.useState(!1),dn=(0,Ce.Z)(ot,2),Xt=dn[0],mt=dn[1],en=de.useRef(null),hn=function(){window.clearTimeout(en.current)};de.useEffect(function(){return hn},[]);var mn=function(yn,An){hn(),en.current=window.setTimeout(function(){mt(yn),An&&An()},nt)};return[Xt,mn,hn]}function me(){var nt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,ot=de.useRef(null),dn=de.useRef(null);de.useEffect(function(){return function(){window.clearTimeout(dn.current)}},[]);function Xt(mt){(mt||ot.current===null)&&(ot.current=mt),window.clearTimeout(dn.current),dn.current=window.setTimeout(function(){ot.current=null},nt)}return[function(){return ot.current},Xt]}function Re(nt,ot,dn,Xt){var mt=de.useRef(null);mt.current={open:ot,triggerOpen:dn,customizedTrigger:Xt},de.useEffect(function(){function en(hn){var mn;if(!((mn=mt.current)!==null&&mn!==void 0&&mn.customizedTrigger)){var Dn=hn.target;Dn.shadowRoot&&hn.composed&&(Dn=hn.composedPath()[0]||Dn),mt.current.open&&nt().filter(function(yn){return yn}).every(function(yn){return!yn.contains(Dn)&&yn!==Dn})&&mt.current.triggerOpen(!1)}}return window.addEventListener("mousedown",en),function(){return window.removeEventListener("mousedown",en)}},[])}var We=le(10228);function Nt(nt){return nt&&![We.Z.ESC,We.Z.SHIFT,We.Z.BACKSPACE,We.Z.TAB,We.Z.WIN_KEY,We.Z.ALT,We.Z.META,We.Z.WIN_KEY_RIGHT,We.Z.CTRL,We.Z.SEMICOLON,We.Z.EQUALS,We.Z.CAPS_LOCK,We.Z.CONTEXT_MENU,We.Z.F1,We.Z.F2,We.Z.F3,We.Z.F4,We.Z.F5,We.Z.F6,We.Z.F7,We.Z.F8,We.Z.F9,We.Z.F10,We.Z.F11,We.Z.F12].includes(nt)}var ye=le(26112),Le=le(11780);function Ie(nt,ot,dn){var Xt=(0,Qe.Z)((0,Qe.Z)({},nt),dn?ot:{});return Object.keys(ot).forEach(function(mt){var en=ot[mt];typeof en=="function"&&(Xt[mt]=function(){for(var hn,mn=arguments.length,Dn=new Array(mn),yn=0;yn<mn;yn++)Dn[yn]=arguments[yn];return en.apply(void 0,Dn),(hn=nt[mt])===null||hn===void 0?void 0:hn.call.apply(hn,[nt].concat(Dn))})}),Xt}var Me=Ie,Je=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],_e=function(ot,dn){var Xt=ot.prefixCls,mt=ot.id,en=ot.inputElement,hn=ot.autoFocus,mn=ot.autoComplete,Dn=ot.editable,yn=ot.activeDescendantId,An=ot.value,nn=ot.open,Gt=ot.attrs,Mn=(0,he.Z)(ot,Je),_n=en||de.createElement("input",null),Jn=_n,Qn=Jn.ref,Er=Jn.props;return(0,we.Kp)(!("maxLength"in _n.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),_n=de.cloneElement(_n,(0,Qe.Z)((0,Qe.Z)((0,Qe.Z)({type:"search"},Me(Mn,Er,!0)),{},{id:mt,ref:(0,Pe.sQ)(dn,Qn),autoComplete:mn||"off",autoFocus:hn,className:xe()("".concat(Xt,"-selection-search-input"),Er==null?void 0:Er.className),role:"combobox","aria-expanded":nn||!1,"aria-haspopup":"listbox","aria-owns":"".concat(mt,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(mt,"_list"),"aria-activedescendant":nn?yn:void 0},Gt),{},{value:Dn?An:"",readOnly:!Dn,unselectable:Dn?null:"on",style:(0,Qe.Z)((0,Qe.Z)({},Er.style),{},{opacity:Dn?null:0})})),_n},et=de.forwardRef(_e),Kt=et;function Et(nt){return Array.isArray(nt)?nt:nt!==void 0?[nt]:[]}var Ct=typeof window!="undefined"&&window.document&&window.document.documentElement,ft=Ct;function ve(nt){return nt!=null}function ce(nt){return!nt&&nt!==0}function Ge(nt){return["string","number"].includes((0,Ne.Z)(nt))}function vt(nt){var ot=void 0;return nt&&(Ge(nt.title)?ot=nt.title.toString():Ge(nt.label)&&(ot=nt.label.toString())),ot}function dt(nt,ot){ft?de.useLayoutEffect(nt,ot):de.useEffect(nt,ot)}function Te(nt){var ot;return(ot=nt.key)!==null&&ot!==void 0?ot:nt.value}var ut=function(ot){ot.preventDefault(),ot.stopPropagation()},at=function(ot){var dn=ot.id,Xt=ot.prefixCls,mt=ot.values,en=ot.open,hn=ot.searchValue,mn=ot.autoClearSearchValue,Dn=ot.inputRef,yn=ot.placeholder,An=ot.disabled,nn=ot.mode,Gt=ot.showSearch,Mn=ot.autoFocus,_n=ot.autoComplete,Jn=ot.activeDescendantId,Qn=ot.tabIndex,Er=ot.removeIcon,Mr=ot.maxTagCount,Vn=ot.maxTagTextLength,Sn=ot.maxTagPlaceholder,Yn=Sn===void 0?function(Ot){return"+ ".concat(Ot.length," ...")}:Sn,Rn=ot.tagRender,Pr=ot.onToggleOpen,Gr=ot.onRemove,Or=ot.onInputChange,Vr=ot.onInputPaste,Jr=ot.onInputKeyDown,Ur=ot.onInputMouseDown,Ir=ot.onInputCompositionStart,ei=ot.onInputCompositionEnd,Yr=ot.onInputBlur,Zn=de.useRef(null),dr=(0,de.useState)(0),Nr=(0,Ce.Z)(dr,2),Zr=Nr[0],Fr=Nr[1],zr=(0,de.useState)(!1),ai=(0,Ce.Z)(zr,2),Ke=ai[0],Pt=ai[1],bt="".concat(Xt,"-selection"),Dt=en||nn==="multiple"&&mn===!1||nn==="tags"?hn:"",Zt=nn==="tags"||nn==="multiple"&&mn===!1||Gt&&(en||Ke);dt(function(){Fr(Zn.current.scrollWidth)},[Dt]);var Ut=function(It,Yt,bn,Qt,zt){return de.createElement("span",{title:vt(It),className:xe()("".concat(bt,"-item"),(0,je.Z)({},"".concat(bt,"-item-disabled"),bn))},de.createElement("span",{className:"".concat(bt,"-item-content")},Yt),Qt&&de.createElement(Ee,{className:"".concat(bt,"-item-remove"),onMouseDown:ut,onClick:zt,customizeIcon:Er},"\xD7"))},pn=function(It,Yt,bn,Qt,zt,sn){var cn=function(Xn){ut(Xn),Pr(!en)};return de.createElement("span",{onMouseDown:cn},Rn({label:Yt,value:It,disabled:bn,closable:Qt,onClose:zt,isMaxTag:!!sn}))},an=function(It){var Yt=It.disabled,bn=It.label,Qt=It.value,zt=!An&&!Yt,sn=bn;if(typeof Vn=="number"&&(typeof bn=="string"||typeof bn=="number")){var cn=String(sn);cn.length>Vn&&(sn="".concat(cn.slice(0,Vn),"..."))}var Nn=function(On){On&&On.stopPropagation(),Gr(It)};return typeof Rn=="function"?pn(Qt,sn,Yt,zt,Nn):Ut(It,sn,Yt,zt,Nn)},qt=function(It){if(!mt.length)return null;var Yt=typeof Yn=="function"?Yn(It):Yn;return typeof Rn=="function"?pn(void 0,Yt,!1,!1,void 0,!0):Ut({title:Yt},Yt,!1)},yt=de.createElement("div",{className:"".concat(bt,"-search"),style:{width:Zr},onFocus:function(){Pt(!0)},onBlur:function(){Pt(!1)}},de.createElement(Kt,{ref:Dn,open:en,prefixCls:Xt,id:dn,inputElement:null,disabled:An,autoFocus:Mn,autoComplete:_n,editable:Zt,activeDescendantId:Jn,value:Dt,onKeyDown:Jr,onMouseDown:Ur,onChange:Or,onPaste:Vr,onCompositionStart:Ir,onCompositionEnd:ei,onBlur:Yr,tabIndex:Qn,attrs:(0,ye.Z)(ot,!0)}),de.createElement("span",{ref:Zn,className:"".concat(bt,"-search-mirror"),"aria-hidden":!0},Dt,"\xA0")),Ft=de.createElement(Le.Z,{prefixCls:"".concat(bt,"-overflow"),data:mt,renderItem:an,renderRest:qt,suffix:yt,itemKey:Te,maxCount:Mr});return de.createElement("span",{className:"".concat(bt,"-wrap")},Ft,!mt.length&&!Dt&&de.createElement("span",{className:"".concat(bt,"-placeholder")},yn))},_t=at,He=function(ot){var dn=ot.inputElement,Xt=ot.prefixCls,mt=ot.id,en=ot.inputRef,hn=ot.disabled,mn=ot.autoFocus,Dn=ot.autoComplete,yn=ot.activeDescendantId,An=ot.mode,nn=ot.open,Gt=ot.values,Mn=ot.placeholder,_n=ot.tabIndex,Jn=ot.showSearch,Qn=ot.searchValue,Er=ot.activeValue,Mr=ot.maxLength,Vn=ot.onInputKeyDown,Sn=ot.onInputMouseDown,Yn=ot.onInputChange,Rn=ot.onInputPaste,Pr=ot.onInputCompositionStart,Gr=ot.onInputCompositionEnd,Or=ot.onInputBlur,Vr=ot.title,Jr=de.useState(!1),Ur=(0,Ce.Z)(Jr,2),Ir=Ur[0],ei=Ur[1],Yr=An==="combobox",Zn=Yr||Jn,dr=Gt[0],Nr=Qn||"";Yr&&Er&&!Ir&&(Nr=Er),de.useEffect(function(){Yr&&ei(!1)},[Yr,Er]);var Zr=An!=="combobox"&&!nn&&!Jn?!1:!!Nr,Fr=Vr===void 0?vt(dr):Vr,zr=de.useMemo(function(){return dr?null:de.createElement("span",{className:"".concat(Xt,"-selection-placeholder"),style:Zr?{visibility:"hidden"}:void 0},Mn)},[dr,Zr,Mn,Xt]);return de.createElement("span",{className:"".concat(Xt,"-selection-wrap")},de.createElement("span",{className:"".concat(Xt,"-selection-search")},de.createElement(Kt,{ref:en,prefixCls:Xt,id:mt,open:nn,inputElement:dn,disabled:hn,autoFocus:mn,autoComplete:Dn,editable:Zn,activeDescendantId:yn,value:Nr,onKeyDown:Vn,onMouseDown:Sn,onChange:function(Ke){ei(!0),Yn(Ke)},onPaste:Rn,onCompositionStart:Pr,onCompositionEnd:Gr,onBlur:Or,tabIndex:_n,attrs:(0,ye.Z)(ot,!0),maxLength:Yr?Mr:void 0})),!Yr&&dr?de.createElement("span",{className:"".concat(Xt,"-selection-item"),title:Fr,style:Zr?{visibility:"hidden"}:void 0},dr.label):null,zr)},De=He,Se=function(ot,dn){var Xt=(0,de.useRef)(null),mt=(0,de.useRef)(!1),en=ot.prefixCls,hn=ot.open,mn=ot.mode,Dn=ot.showSearch,yn=ot.tokenWithEnter,An=ot.disabled,nn=ot.prefix,Gt=ot.autoClearSearchValue,Mn=ot.onSearch,_n=ot.onSearchSubmit,Jn=ot.onToggleOpen,Qn=ot.onInputKeyDown,Er=ot.onInputBlur,Mr=ot.domRef;de.useImperativeHandle(dn,function(){return{focus:function(Fr){Xt.current.focus(Fr)},blur:function(){Xt.current.blur()}}});var Vn=me(0),Sn=(0,Ce.Z)(Vn,2),Yn=Sn[0],Rn=Sn[1],Pr=function(Fr){var zr=Fr.which,ai=Xt.current instanceof HTMLTextAreaElement;!ai&&hn&&(zr===We.Z.UP||zr===We.Z.DOWN)&&Fr.preventDefault(),Qn&&Qn(Fr),zr===We.Z.ENTER&&mn==="tags"&&!mt.current&&!hn&&(_n==null||_n(Fr.target.value)),!(ai&&!hn&&~[We.Z.UP,We.Z.DOWN,We.Z.LEFT,We.Z.RIGHT].indexOf(zr))&&Nt(zr)&&Jn(!0)},Gr=function(){Rn(!0)},Or=(0,de.useRef)(null),Vr=function(Fr){Mn(Fr,!0,mt.current)!==!1&&Jn(!0)},Jr=function(){mt.current=!0},Ur=function(Fr){mt.current=!1,mn!=="combobox"&&Vr(Fr.target.value)},Ir=function(Fr){var zr=Fr.target.value;if(yn&&Or.current&&/[\r\n]/.test(Or.current)){var ai=Or.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");zr=zr.replace(ai,Or.current)}Or.current=null,Vr(zr)},ei=function(Fr){var zr=Fr.clipboardData,ai=zr==null?void 0:zr.getData("text");Or.current=ai||""},Yr=function(Fr){var zr=Fr.target;if(zr!==Xt.current){var ai=document.body.style.msTouchAction!==void 0;ai?setTimeout(function(){Xt.current.focus()}):Xt.current.focus()}},Zn=function(Fr){var zr=Yn();Fr.target!==Xt.current&&!zr&&!(mn==="combobox"&&An)&&Fr.preventDefault(),(mn!=="combobox"&&(!Dn||!zr)||!hn)&&(hn&&Gt!==!1&&Mn("",!0,!1),Jn())},dr={inputRef:Xt,onInputKeyDown:Pr,onInputMouseDown:Gr,onInputChange:Ir,onInputPaste:ei,onInputCompositionStart:Jr,onInputCompositionEnd:Ur,onInputBlur:Er},Nr=mn==="multiple"||mn==="tags"?de.createElement(_t,(0,re.Z)({},ot,dr)):de.createElement(De,(0,re.Z)({},ot,dr));return de.createElement("div",{ref:Mr,className:"".concat(en,"-selector"),onClick:Yr,onMouseDown:Zn},nn&&de.createElement("div",{className:"".concat(en,"-prefix")},nn),Nr)},ze=de.forwardRef(Se),st=ze,Be=le(65030),it=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],tt=function(ot){var dn=ot===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:dn,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:dn,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:dn,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:dn,adjustY:1},htmlRegion:"scroll"}}},Fe=function(ot,dn){var Xt=ot.prefixCls,mt=ot.disabled,en=ot.visible,hn=ot.children,mn=ot.popupElement,Dn=ot.animation,yn=ot.transitionName,An=ot.dropdownStyle,nn=ot.dropdownClassName,Gt=ot.direction,Mn=Gt===void 0?"ltr":Gt,_n=ot.placement,Jn=ot.builtinPlacements,Qn=ot.dropdownMatchSelectWidth,Er=ot.dropdownRender,Mr=ot.dropdownAlign,Vn=ot.getPopupContainer,Sn=ot.empty,Yn=ot.getTriggerDOMNode,Rn=ot.onPopupVisibleChange,Pr=ot.onPopupMouseEnter,Gr=(0,he.Z)(ot,it),Or="".concat(Xt,"-dropdown"),Vr=mn;Er&&(Vr=Er(mn));var Jr=de.useMemo(function(){return Jn||tt(Qn)},[Jn,Qn]),Ur=Dn?"".concat(Or,"-").concat(Dn):yn,Ir=typeof Qn=="number",ei=de.useMemo(function(){return Ir?null:Qn===!1?"minWidth":"width"},[Qn,Ir]),Yr=An;Ir&&(Yr=(0,Qe.Z)((0,Qe.Z)({},Yr),{},{width:Qn}));var Zn=de.useRef(null);return de.useImperativeHandle(dn,function(){return{getPopupElement:function(){var Nr;return(Nr=Zn.current)===null||Nr===void 0?void 0:Nr.popupElement}}}),de.createElement(Be.Z,(0,re.Z)({},Gr,{showAction:Rn?["click"]:[],hideAction:Rn?["click"]:[],popupPlacement:_n||(Mn==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:Jr,prefixCls:Or,popupTransitionName:Ur,popup:de.createElement("div",{onMouseEnter:Pr},Vr),ref:Zn,stretch:ei,popupAlign:Mr,popupVisible:en,getPopupContainer:Vn,popupClassName:xe()(nn,(0,je.Z)({},"".concat(Or,"-empty"),Sn)),popupStyle:Yr,getTriggerDOMNode:Yn,onPopupVisibleChange:Rn}),hn)},pt=de.forwardRef(Fe),Ye=pt,ge=le(66712);function ct(nt,ot){var dn=nt.key,Xt;return"value"in nt&&(Xt=nt.value),dn!=null?dn:Xt!==void 0?Xt:"rc-index-key-".concat(ot)}function jt(nt){return typeof nt!="undefined"&&!Number.isNaN(nt)}function Wt(nt,ot){var dn=nt||{},Xt=dn.label,mt=dn.value,en=dn.options,hn=dn.groupLabel,mn=Xt||(ot?"children":"label");return{label:mn,value:mt||"value",options:en||"options",groupLabel:hn||mn}}function ae(nt){var ot=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},dn=ot.fieldNames,Xt=ot.childrenAsData,mt=[],en=Wt(dn,!1),hn=en.label,mn=en.value,Dn=en.options,yn=en.groupLabel;function An(nn,Gt){Array.isArray(nn)&&nn.forEach(function(Mn){if(Gt||!(Dn in Mn)){var _n=Mn[mn];mt.push({key:ct(Mn,mt.length),groupOption:Gt,data:Mn,label:Mn[hn],value:_n})}else{var Jn=Mn[yn];Jn===void 0&&Xt&&(Jn=Mn.label),mt.push({key:ct(Mn,mt.length),group:!0,data:Mn,label:Jn}),An(Mn[Dn],!0)}})}return An(nt,!1),mt}function ee(nt){var ot=(0,Qe.Z)({},nt);return"props"in ot||Object.defineProperty(ot,"props",{get:function(){return(0,we.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),ot}}),ot}var z=function(ot,dn,Xt){if(!dn||!dn.length)return null;var mt=!1,en=function mn(Dn,yn){var An=(0,ge.Z)(yn),nn=An[0],Gt=An.slice(1);if(!nn)return[Dn];var Mn=Dn.split(nn);return mt=mt||Mn.length>1,Mn.reduce(function(_n,Jn){return[].concat((0,$e.Z)(_n),(0,$e.Z)(mn(Jn,Gt)))},[]).filter(Boolean)},hn=en(ot,dn);return mt?typeof Xt!="undefined"?hn.slice(0,Xt):hn:null},ie=de.createContext(null),se=ie;function ne(nt){var ot=nt.visible,dn=nt.values;if(!ot)return null;var Xt=50;return de.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(dn.slice(0,Xt).map(function(mt){var en=mt.label,hn=mt.value;return["number","string"].includes((0,Ne.Z)(en))?en:hn}).join(", ")),dn.length>Xt?", ...":null)}var be=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","prefix","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],gt=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],kt=function(ot){return ot==="tags"||ot==="multiple"},ht=de.forwardRef(function(nt,ot){var dn,Xt=nt.id,mt=nt.prefixCls,en=nt.className,hn=nt.showSearch,mn=nt.tagRender,Dn=nt.direction,yn=nt.omitDomProps,An=nt.displayValues,nn=nt.onDisplayValuesChange,Gt=nt.emptyOptions,Mn=nt.notFoundContent,_n=Mn===void 0?"Not Found":Mn,Jn=nt.onClear,Qn=nt.mode,Er=nt.disabled,Mr=nt.loading,Vn=nt.getInputElement,Sn=nt.getRawInputElement,Yn=nt.open,Rn=nt.defaultOpen,Pr=nt.onDropdownVisibleChange,Gr=nt.activeValue,Or=nt.onActiveValueChange,Vr=nt.activeDescendantId,Jr=nt.searchValue,Ur=nt.autoClearSearchValue,Ir=nt.onSearch,ei=nt.onSearchSplit,Yr=nt.tokenSeparators,Zn=nt.allowClear,dr=nt.prefix,Nr=nt.suffixIcon,Zr=nt.clearIcon,Fr=nt.OptionList,zr=nt.animation,ai=nt.transitionName,Ke=nt.dropdownStyle,Pt=nt.dropdownClassName,bt=nt.dropdownMatchSelectWidth,Dt=nt.dropdownRender,Zt=nt.dropdownAlign,Ut=nt.placement,pn=nt.builtinPlacements,an=nt.getPopupContainer,qt=nt.showAction,yt=qt===void 0?[]:qt,Ft=nt.onFocus,Ot=nt.onBlur,It=nt.onKeyUp,Yt=nt.onKeyDown,bn=nt.onMouseDown,Qt=(0,he.Z)(nt,be),zt=kt(Qn),sn=(hn!==void 0?hn:zt)||Qn==="combobox",cn=(0,Qe.Z)({},Qt);gt.forEach(function(Wr){delete cn[Wr]}),yn==null||yn.forEach(function(Wr){delete cn[Wr]});var Nn=de.useState(!1),Xn=(0,Ce.Z)(Nn,2),On=Xn[0],hr=Xn[1];de.useEffect(function(){hr((0,Xe.Z)())},[]);var or=de.useRef(null),fr=de.useRef(null),yr=de.useRef(null),vr=de.useRef(null),Tr=de.useRef(null),br=de.useRef(!1),kr=Ae(),cr=(0,Ce.Z)(kr,3),Kn=cr[0],ar=cr[1],mr=cr[2];de.useImperativeHandle(ot,function(){var Wr,Rr;return{focus:(Wr=vr.current)===null||Wr===void 0?void 0:Wr.focus,blur:(Rr=vr.current)===null||Rr===void 0?void 0:Rr.blur,scrollTo:function(hi){var bi;return(bi=Tr.current)===null||bi===void 0?void 0:bi.scrollTo(hi)},nativeElement:or.current||fr.current}});var er=de.useMemo(function(){var Wr;if(Qn!=="combobox")return Jr;var Rr=(Wr=An[0])===null||Wr===void 0?void 0:Wr.value;return typeof Rr=="string"||typeof Rr=="number"?String(Rr):""},[Jr,Qn,An]),Dr=Qn==="combobox"&&typeof Vn=="function"&&Vn()||null,Lr=typeof Sn=="function"&&Sn(),Qr=(0,Pe.x1)(fr,Lr==null||(dn=Lr.props)===null||dn===void 0?void 0:dn.ref),Ni=de.useState(!1),wi=(0,Ce.Z)(Ni,2),yi=wi[0],Pi=wi[1];(0,wt.Z)(function(){Pi(!0)},[]);var qr=(0,Ve.Z)(!1,{defaultValue:Rn,value:Yn}),Xr=(0,Ce.Z)(qr,2),ti=Xr[0],ki=Xr[1],ii=yi?ti:!1,si=!_n&≫(Er||si&&ii&&Qn==="combobox")&&(ii=!1);var oi=si?!1:ii,nr=de.useCallback(function(Wr){var Rr=Wr!==void 0?Wr:!ii;Er||(ki(Rr),ii!==Rr&&(Pr==null||Pr(Rr)))},[Er,ii,ki,Pr]),Cr=de.useMemo(function(){return(Yr||[]).some(function(Wr){return[`
|
|
`,`\r
|
|
`].includes(Wr)})},[Yr]),wr=de.useContext(se)||{},Sr=wr.maxCount,Kr=wr.rawValues,$r=function(Rr,mi,hi){if(!(zt&&jt(Sr)&&(Kr==null?void 0:Kr.size)>=Sr)){var bi=!0,Di=Rr;Or==null||Or(null);var sa=z(Rr,Yr,jt(Sr)?Sr-Kr.size:void 0),ia=hi?null:sa;return Qn!=="combobox"&&ia&&(Di="",ei==null||ei(ia),nr(!1),bi=!1),Ir&&er!==Di&&Ir(Di,{source:mi?"typing":"effect"}),bi}},Ki=function(Rr){!Rr||!Rr.trim()||Ir(Rr,{source:"submit"})};de.useEffect(function(){!ii&&!zt&&Qn!=="combobox"&&$r("",!1,!1)},[ii]),de.useEffect(function(){ti&&Er&&ki(!1),Er&&!br.current&&ar(!1)},[Er]);var di=me(),ci=(0,Ce.Z)(di,2),Br=ci[0],xi=ci[1],Ui=de.useRef(!1),ni=function(Rr){var mi=Br(),hi=Rr.key,bi=hi==="Enter";if(bi&&(Qn!=="combobox"&&Rr.preventDefault(),ii||nr(!0)),xi(!!er),hi==="Backspace"&&!mi&&zt&&!er&&An.length){for(var Di=(0,$e.Z)(An),sa=null,ia=Di.length-1;ia>=0;ia-=1){var ma=Di[ia];if(!ma.disabled){Di.splice(ia,1),sa=ma;break}}sa&&nn(Di,{type:"remove",values:[sa]})}for(var pi=arguments.length,Ti=new Array(pi>1?pi-1:0),Qi=1;Qi<pi;Qi++)Ti[Qi-1]=arguments[Qi];if(ii&&(!bi||!Ui.current)){var ua;bi&&(Ui.current=!0),(ua=Tr.current)===null||ua===void 0||ua.onKeyDown.apply(ua,[Rr].concat(Ti))}Yt==null||Yt.apply(void 0,[Rr].concat(Ti))},la=function(Rr){for(var mi=arguments.length,hi=new Array(mi>1?mi-1:0),bi=1;bi<mi;bi++)hi[bi-1]=arguments[bi];if(ii){var Di;(Di=Tr.current)===null||Di===void 0||Di.onKeyUp.apply(Di,[Rr].concat(hi))}Rr.key==="Enter"&&(Ui.current=!1),It==null||It.apply(void 0,[Rr].concat(hi))},Vi=function(Rr){var mi=An.filter(function(hi){return hi!==Rr});nn(mi,{type:"remove",values:[Rr]})},Ji=function(){Ui.current=!1},vi=de.useRef(!1),no=function(){ar(!0),Er||(Ft&&!vi.current&&Ft.apply(void 0,arguments),yt.includes("focus")&&nr(!0)),vi.current=!0},Xa=function(){br.current=!0,ar(!1,function(){vi.current=!1,br.current=!1,nr(!1)}),!Er&&(er&&(Qn==="tags"?Ir(er,{source:"submit"}):Qn==="multiple"&&Ir("",{source:"blur"})),Ot&&Ot.apply(void 0,arguments))},pa=[];de.useEffect(function(){return function(){pa.forEach(function(Wr){return clearTimeout(Wr)}),pa.splice(0,pa.length)}},[]);var va=function(Rr){var mi,hi=Rr.target,bi=(mi=yr.current)===null||mi===void 0?void 0:mi.getPopupElement();if(bi&&bi.contains(hi)){var Di=setTimeout(function(){var pi=pa.indexOf(Di);if(pi!==-1&&pa.splice(pi,1),mr(),!On&&!bi.contains(document.activeElement)){var Ti;(Ti=vr.current)===null||Ti===void 0||Ti.focus()}});pa.push(Di)}for(var sa=arguments.length,ia=new Array(sa>1?sa-1:0),ma=1;ma<sa;ma++)ia[ma-1]=arguments[ma];bn==null||bn.apply(void 0,[Rr].concat(ia))},ra=de.useState({}),Sa=(0,Ce.Z)(ra,2),ro=Sa[1];function io(){ro({})}var ao;Lr&&(ao=function(Rr){nr(Rr)}),Re(function(){var Wr;return[or.current,(Wr=yr.current)===null||Wr===void 0?void 0:Wr.getPopupElement()]},oi,nr,!!Lr);var Oa=de.useMemo(function(){return(0,Qe.Z)((0,Qe.Z)({},nt),{},{notFoundContent:_n,open:ii,triggerOpen:oi,id:Xt,showSearch:sn,multiple:zt,toggleOpen:nr})},[nt,_n,oi,ii,Xt,sn,zt,nr]),Ja=!!Nr||Mr,Za;Ja&&(Za=de.createElement(Ee,{className:xe()("".concat(mt,"-arrow"),(0,je.Z)({},"".concat(mt,"-arrow-loading"),Mr)),customizeIcon:Nr,customizeIconProps:{loading:Mr,searchValue:er,open:ii,focused:Kn,showSearch:sn}}));var Ea=function(){var Rr;Jn==null||Jn(),(Rr=vr.current)===null||Rr===void 0||Rr.focus(),nn([],{type:"clear",values:An}),$r("",!1,!1)},Qa=qe(mt,Ea,An,Zn,Zr,Er,er,Qn),oo=Qa.allowClear,_a=Qa.clearIcon,ka=de.createElement(Fr,{ref:Tr}),Da=xe()(mt,en,(0,je.Z)((0,je.Z)((0,je.Z)((0,je.Z)((0,je.Z)((0,je.Z)((0,je.Z)((0,je.Z)((0,je.Z)((0,je.Z)({},"".concat(mt,"-focused"),Kn),"".concat(mt,"-multiple"),zt),"".concat(mt,"-single"),!zt),"".concat(mt,"-allow-clear"),Zn),"".concat(mt,"-show-arrow"),Ja),"".concat(mt,"-disabled"),Er),"".concat(mt,"-loading"),Mr),"".concat(mt,"-open"),ii),"".concat(mt,"-customize-input"),Dr),"".concat(mt,"-show-search"),sn)),Hi=de.createElement(Ye,{ref:yr,disabled:Er,prefixCls:mt,visible:oi,popupElement:ka,animation:zr,transitionName:ai,dropdownStyle:Ke,dropdownClassName:Pt,direction:Dn,dropdownMatchSelectWidth:bt,dropdownRender:Dt,dropdownAlign:Zt,placement:Ut,builtinPlacements:pn,getPopupContainer:an,empty:Gt,getTriggerDOMNode:function(Rr){return fr.current||Rr},onPopupVisibleChange:ao,onPopupMouseEnter:io},Lr?de.cloneElement(Lr,{ref:Qr}):de.createElement(st,(0,re.Z)({},nt,{domRef:fr,prefixCls:mt,inputElement:Dr,ref:vr,id:Xt,prefix:dr,showSearch:sn,autoClearSearchValue:Ur,mode:Qn,activeDescendantId:Vr,tagRender:mn,values:An,open:ii,onToggleOpen:nr,activeValue:Gr,searchValue:er,onSearch:$r,onSearchSubmit:Ki,onRemove:Vi,tokenWithEnter:Cr,onInputBlur:Ji}))),fi;return Lr?fi=Hi:fi=de.createElement("div",(0,re.Z)({className:Da},cn,{ref:or,onMouseDown:va,onKeyDown:ni,onKeyUp:la,onFocus:no,onBlur:Xa}),de.createElement(ne,{visible:Kn&&!ii,values:An}),Hi,Za,oo&&_a),de.createElement(lt.Provider,{value:Oa},fi)}),Ze=ht,Vt=function(){return null};Vt.isSelectOptGroup=!0;var Bt=Vt,Ht=function(){return null};Ht.isSelectOption=!0;var un=Ht,Lt=le(80547),St=le(2738),vn=le(48911);function Fn(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var Tn=["disabled","title","children","style","className"];function Un(nt){return typeof nt=="string"||typeof nt=="number"}var tr=function(ot,dn){var Xt=xt(),mt=Xt.prefixCls,en=Xt.id,hn=Xt.open,mn=Xt.multiple,Dn=Xt.mode,yn=Xt.searchValue,An=Xt.toggleOpen,nn=Xt.notFoundContent,Gt=Xt.onPopupScroll,Mn=de.useContext(se),_n=Mn.maxCount,Jn=Mn.flattenOptions,Qn=Mn.onActiveValue,Er=Mn.defaultActiveFirstOption,Mr=Mn.onSelect,Vn=Mn.menuItemSelectedIcon,Sn=Mn.rawValues,Yn=Mn.fieldNames,Rn=Mn.virtual,Pr=Mn.direction,Gr=Mn.listHeight,Or=Mn.listItemHeight,Vr=Mn.optionRender,Jr="".concat(mt,"-item"),Ur=(0,Lt.Z)(function(){return Jn},[hn,Jn],function(qt,yt){return yt[0]&&qt[1]!==yt[1]}),Ir=de.useRef(null),ei=de.useMemo(function(){return mn&&jt(_n)&&(Sn==null?void 0:Sn.size)>=_n},[mn,_n,Sn==null?void 0:Sn.size]),Yr=function(yt){yt.preventDefault()},Zn=function(yt){var Ft;(Ft=Ir.current)===null||Ft===void 0||Ft.scrollTo(typeof yt=="number"?{index:yt}:yt)},dr=de.useCallback(function(qt){return Dn==="combobox"?!1:Sn.has(qt)},[Dn,(0,$e.Z)(Sn).toString(),Sn.size]),Nr=function(yt){for(var Ft=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Ot=Ur.length,It=0;It<Ot;It+=1){var Yt=(yt+It*Ft+Ot)%Ot,bn=Ur[Yt]||{},Qt=bn.group,zt=bn.data;if(!Qt&&!(zt!=null&&zt.disabled)&&(dr(zt.value)||!ei))return Yt}return-1},Zr=de.useState(function(){return Nr(0)}),Fr=(0,Ce.Z)(Zr,2),zr=Fr[0],ai=Fr[1],Ke=function(yt){var Ft=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;ai(yt);var Ot={source:Ft?"keyboard":"mouse"},It=Ur[yt];if(!It){Qn(null,-1,Ot);return}Qn(It.value,yt,Ot)};(0,de.useEffect)(function(){Ke(Er!==!1?Nr(0):-1)},[Ur.length,yn]);var Pt=de.useCallback(function(qt){return Dn==="combobox"?String(qt).toLowerCase()===yn.toLowerCase():Sn.has(qt)},[Dn,yn,(0,$e.Z)(Sn).toString(),Sn.size]);(0,de.useEffect)(function(){var qt=setTimeout(function(){if(!mn&&hn&&Sn.size===1){var Ft=Array.from(Sn)[0],Ot=Ur.findIndex(function(It){var Yt=It.data;return yn?String(Yt.value).startsWith(yn):Yt.value===Ft});Ot!==-1&&(Ke(Ot),Zn(Ot))}});if(hn){var yt;(yt=Ir.current)===null||yt===void 0||yt.scrollTo(void 0)}return function(){return clearTimeout(qt)}},[hn,yn]);var bt=function(yt){yt!==void 0&&Mr(yt,{selected:!Sn.has(yt)}),mn||An(!1)};if(de.useImperativeHandle(dn,function(){return{onKeyDown:function(yt){var Ft=yt.which,Ot=yt.ctrlKey;switch(Ft){case We.Z.N:case We.Z.P:case We.Z.UP:case We.Z.DOWN:{var It=0;if(Ft===We.Z.UP?It=-1:Ft===We.Z.DOWN?It=1:Fn()&&Ot&&(Ft===We.Z.N?It=1:Ft===We.Z.P&&(It=-1)),It!==0){var Yt=Nr(zr+It,It);Zn(Yt),Ke(Yt,!0)}break}case We.Z.TAB:case We.Z.ENTER:{var bn,Qt=Ur[zr];Qt&&!(Qt!=null&&(bn=Qt.data)!==null&&bn!==void 0&&bn.disabled)&&!ei?bt(Qt.value):bt(void 0),hn&&yt.preventDefault();break}case We.Z.ESC:An(!1),hn&&yt.stopPropagation()}},onKeyUp:function(){},scrollTo:function(yt){Zn(yt)}}}),Ur.length===0)return de.createElement("div",{role:"listbox",id:"".concat(en,"_list"),className:"".concat(Jr,"-empty"),onMouseDown:Yr},nn);var Dt=Object.keys(Yn).map(function(qt){return Yn[qt]}),Zt=function(yt){return yt.label};function Ut(qt,yt){var Ft=qt.group;return{role:Ft?"presentation":"option",id:"".concat(en,"_list_").concat(yt)}}var pn=function(yt){var Ft=Ur[yt];if(!Ft)return null;var Ot=Ft.data||{},It=Ot.value,Yt=Ft.group,bn=(0,ye.Z)(Ot,!0),Qt=Zt(Ft);return Ft?de.createElement("div",(0,re.Z)({"aria-label":typeof Qt=="string"&&!Yt?Qt:null},bn,{key:yt},Ut(Ft,yt),{"aria-selected":Pt(It)}),It):null},an={role:"listbox",id:"".concat(en,"_list")};return de.createElement(de.Fragment,null,Rn&&de.createElement("div",(0,re.Z)({},an,{style:{height:0,width:0,overflow:"hidden"}}),pn(zr-1),pn(zr),pn(zr+1)),de.createElement(vn.Z,{itemKey:"key",ref:Ir,data:Ur,height:Gr,itemHeight:Or,fullHeight:!1,onMouseDown:Yr,onScroll:Gt,virtual:Rn,direction:Pr,innerProps:Rn?null:an},function(qt,yt){var Ft=qt.group,Ot=qt.groupOption,It=qt.data,Yt=qt.label,bn=qt.value,Qt=It.key;if(Ft){var zt,sn=(zt=It.title)!==null&&zt!==void 0?zt:Un(Yt)?Yt.toString():void 0;return de.createElement("div",{className:xe()(Jr,"".concat(Jr,"-group"),It.className),title:sn},Yt!==void 0?Yt:Qt)}var cn=It.disabled,Nn=It.title,Xn=It.children,On=It.style,hr=It.className,or=(0,he.Z)(It,Tn),fr=(0,St.Z)(or,Dt),yr=dr(bn),vr=cn||!yr&&ei,Tr="".concat(Jr,"-option"),br=xe()(Jr,Tr,hr,(0,je.Z)((0,je.Z)((0,je.Z)((0,je.Z)({},"".concat(Tr,"-grouped"),Ot),"".concat(Tr,"-active"),zr===yt&&!vr),"".concat(Tr,"-disabled"),vr),"".concat(Tr,"-selected"),yr)),kr=Zt(qt),cr=!Vn||typeof Vn=="function"||yr,Kn=typeof kr=="number"?kr:kr||bn,ar=Un(Kn)?Kn.toString():void 0;return Nn!==void 0&&(ar=Nn),de.createElement("div",(0,re.Z)({},(0,ye.Z)(fr),Rn?{}:Ut(qt,yt),{"aria-selected":Pt(bn),className:br,title:ar,onMouseMove:function(){zr===yt||vr||Ke(yt)},onClick:function(){vr||bt(bn)},style:On}),de.createElement("div",{className:"".concat(Tr,"-content")},typeof Vr=="function"?Vr(qt,{index:yt}):Kn),de.isValidElement(Vn)||yr,cr&&de.createElement(Ee,{className:"".concat(Jr,"-option-state"),customizeIcon:Vn,customizeIconProps:{value:bn,disabled:vr,isSelected:yr}},yr?"\u2713":null))}))},gr=de.forwardRef(tr),$n=gr,kn=function(nt,ot){var dn=de.useRef({values:new Map,options:new Map}),Xt=de.useMemo(function(){var en=dn.current,hn=en.values,mn=en.options,Dn=nt.map(function(nn){if(nn.label===void 0){var Gt;return(0,Qe.Z)((0,Qe.Z)({},nn),{},{label:(Gt=hn.get(nn.value))===null||Gt===void 0?void 0:Gt.label})}return nn}),yn=new Map,An=new Map;return Dn.forEach(function(nn){yn.set(nn.value,nn),An.set(nn.value,ot.get(nn.value)||mn.get(nn.value))}),dn.current.values=yn,dn.current.options=An,Dn},[nt,ot]),mt=de.useCallback(function(en){return ot.get(en)||dn.current.options.get(en)},[ot]);return[Xt,mt]};function pr(nt,ot){return Et(nt).join("").toUpperCase().includes(ot)}var sr=function(nt,ot,dn,Xt,mt){return de.useMemo(function(){if(!dn||Xt===!1)return nt;var en=ot.options,hn=ot.label,mn=ot.value,Dn=[],yn=typeof Xt=="function",An=dn.toUpperCase(),nn=yn?Xt:function(Mn,_n){return mt?pr(_n[mt],An):_n[en]?pr(_n[hn!=="children"?hn:"label"],An):pr(_n[mn],An)},Gt=yn?function(Mn){return ee(Mn)}:function(Mn){return Mn};return nt.forEach(function(Mn){if(Mn[en]){var _n=nn(dn,Gt(Mn));if(_n)Dn.push(Mn);else{var Jn=Mn[en].filter(function(Qn){return nn(dn,Gt(Qn))});Jn.length&&Dn.push((0,Qe.Z)((0,Qe.Z)({},Mn),{},(0,je.Z)({},en,Jn)))}return}nn(dn,Gt(Mn))&&Dn.push(Mn)}),Dn},[nt,Xt,mt,dn,ot])},Ln=le(6551),Cn=le(11592),tn=["children","value"],fn=["children"];function Tt(nt){var ot=nt,dn=ot.key,Xt=ot.props,mt=Xt.children,en=Xt.value,hn=(0,he.Z)(Xt,tn);return(0,Qe.Z)({key:dn,value:en!==void 0?en:dn,children:mt},hn)}function Jt(nt){var ot=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,Cn.Z)(nt).map(function(dn,Xt){if(!de.isValidElement(dn)||!dn.type)return null;var mt=dn,en=mt.type.isSelectOptGroup,hn=mt.key,mn=mt.props,Dn=mn.children,yn=(0,he.Z)(mn,fn);return ot||!en?Tt(dn):(0,Qe.Z)((0,Qe.Z)({key:"__RC_SELECT_GRP__".concat(hn===null?Xt:hn,"__"),label:hn},yn),{},{options:Jt(Dn)})}).filter(function(dn){return dn})}var wn=function(ot,dn,Xt,mt,en){return de.useMemo(function(){var hn=ot,mn=!ot;mn&&(hn=Jt(dn));var Dn=new Map,yn=new Map,An=function(Mn,_n,Jn){Jn&&typeof Jn=="string"&&Mn.set(_n[Jn],_n)},nn=function Gt(Mn){for(var _n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Jn=0;Jn<Mn.length;Jn+=1){var Qn=Mn[Jn];!Qn[Xt.options]||_n?(Dn.set(Qn[Xt.value],Qn),An(yn,Qn,Xt.label),An(yn,Qn,mt),An(yn,Qn,en)):Gt(Qn[Xt.options],!0)}};return nn(hn),{options:hn,valueOptions:Dn,labelOptions:yn}},[ot,dn,Xt,mt,en])},En=wn;function Pn(nt){var ot=de.useRef();ot.current=nt;var dn=de.useCallback(function(){return ot.current.apply(ot,arguments)},[]);return dn}function jn(nt){var ot=nt.mode,dn=nt.options,Xt=nt.children,mt=nt.backfill,en=nt.allowClear,hn=nt.placeholder,mn=nt.getInputElement,Dn=nt.showSearch,yn=nt.onSearch,An=nt.defaultOpen,nn=nt.autoFocus,Gt=nt.labelInValue,Mn=nt.value,_n=nt.inputValue,Jn=nt.optionLabelProp,Qn=isMultiple(ot),Er=Dn!==void 0?Dn:Qn||ot==="combobox",Mr=dn||convertChildrenToData(Xt);if(warning(ot!=="tags"||Mr.every(function(Rn){return!Rn.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),ot==="tags"||ot==="combobox"){var Vn=Mr.some(function(Rn){return Rn.options?Rn.options.some(function(Pr){return typeof("value"in Pr?Pr.value:Pr.key)=="number"}):typeof("value"in Rn?Rn.value:Rn.key)=="number"});warning(!Vn,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(ot!=="combobox"||!Jn,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(ot==="combobox"||!mt,"`backfill` only works with `combobox` mode."),warning(ot==="combobox"||!mn,"`getInputElement` only work with `combobox` mode."),noteOnce(ot!=="combobox"||!mn||!en||!hn,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),yn&&!Er&&ot!=="combobox"&&ot!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!An||nn,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),Mn!=null){var Sn=toArray(Mn);warning(!Gt||Sn.every(function(Rn){return _typeof(Rn)==="object"&&("key"in Rn||"value"in Rn)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!Qn||Array.isArray(Mn),"`value` should be array when `mode` is `multiple` or `tags`")}if(Xt){var Yn=null;toNodeArray(Xt).some(function(Rn){if(!React.isValidElement(Rn)||!Rn.type)return!1;var Pr=Rn,Gr=Pr.type;if(Gr.isSelectOption)return!1;if(Gr.isSelectOptGroup){var Or=toNodeArray(Rn.props.children).every(function(Vr){return!React.isValidElement(Vr)||!Rn.type||Vr.type.isSelectOption?!0:(Yn=Vr.type,!1)});return!Or}return Yn=Gr,!0}),Yn&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Yn.displayName||Yn.name||Yn,"`.")),warning(_n===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function ur(nt,ot){if(nt){var dn=function Xt(mt){for(var en=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,hn=0;hn<mt.length;hn++){var mn=mt[hn];if(mn[ot==null?void 0:ot.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!en&&Array.isArray(mn[ot==null?void 0:ot.options])&&Xt(mn[ot==null?void 0:ot.options],!0))break}};dn(nt)}}var rr=null,zn=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","labelRender","value","defaultValue","labelInValue","onChange","maxCount"],Gn=["inputValue"];function ln(nt){return!nt||(0,Ne.Z)(nt)!=="object"}var Mt=de.forwardRef(function(nt,ot){var dn=nt.id,Xt=nt.mode,mt=nt.prefixCls,en=mt===void 0?"rc-select":mt,hn=nt.backfill,mn=nt.fieldNames,Dn=nt.inputValue,yn=nt.searchValue,An=nt.onSearch,nn=nt.autoClearSearchValue,Gt=nn===void 0?!0:nn,Mn=nt.onSelect,_n=nt.onDeselect,Jn=nt.dropdownMatchSelectWidth,Qn=Jn===void 0?!0:Jn,Er=nt.filterOption,Mr=nt.filterSort,Vn=nt.optionFilterProp,Sn=nt.optionLabelProp,Yn=nt.options,Rn=nt.optionRender,Pr=nt.children,Gr=nt.defaultActiveFirstOption,Or=nt.menuItemSelectedIcon,Vr=nt.virtual,Jr=nt.direction,Ur=nt.listHeight,Ir=Ur===void 0?200:Ur,ei=nt.listItemHeight,Yr=ei===void 0?20:ei,Zn=nt.labelRender,dr=nt.value,Nr=nt.defaultValue,Zr=nt.labelInValue,Fr=nt.onChange,zr=nt.maxCount,ai=(0,he.Z)(nt,zn),Ke=(0,Ln.ZP)(dn),Pt=kt(Xt),bt=!!(!Yn&&Pr),Dt=de.useMemo(function(){return Er===void 0&&Xt==="combobox"?!1:Er},[Er,Xt]),Zt=de.useMemo(function(){return Wt(mn,bt)},[JSON.stringify(mn),bt]),Ut=(0,Ve.Z)("",{value:yn!==void 0?yn:Dn,postState:function(Cr){return Cr||""}}),pn=(0,Ce.Z)(Ut,2),an=pn[0],qt=pn[1],yt=En(Yn,Pr,Zt,Vn,Sn),Ft=yt.valueOptions,Ot=yt.labelOptions,It=yt.options,Yt=de.useCallback(function(nr){var Cr=Et(nr);return Cr.map(function(wr){var Sr,Kr,$r,Ki,di;if(ln(wr))Sr=wr;else{var ci;$r=wr.key,Kr=wr.label,Sr=(ci=wr.value)!==null&&ci!==void 0?ci:$r}var Br=Ft.get(Sr);if(Br){var xi;if(Kr===void 0&&(Kr=Br==null?void 0:Br[Sn||Zt.label]),$r===void 0&&($r=(xi=Br==null?void 0:Br.key)!==null&&xi!==void 0?xi:Sr),Ki=Br==null?void 0:Br.disabled,di=Br==null?void 0:Br.title,0)var Ui}return{label:Kr,value:Sr,key:$r,disabled:Ki,title:di}})},[Zt,Sn,Ft]),bn=(0,Ve.Z)(Nr,{value:dr}),Qt=(0,Ce.Z)(bn,2),zt=Qt[0],sn=Qt[1],cn=de.useMemo(function(){var nr,Cr=Pt&&zt===null?[]:zt,wr=Yt(Cr);return Xt==="combobox"&&ce((nr=wr[0])===null||nr===void 0?void 0:nr.value)?[]:wr},[zt,Yt,Xt,Pt]),Nn=kn(cn,Ft),Xn=(0,Ce.Z)(Nn,2),On=Xn[0],hr=Xn[1],or=de.useMemo(function(){if(!Xt&&On.length===1){var nr=On[0];if(nr.value===null&&(nr.label===null||nr.label===void 0))return[]}return On.map(function(Cr){var wr;return(0,Qe.Z)((0,Qe.Z)({},Cr),{},{label:(wr=typeof Zn=="function"?Zn(Cr):Cr.label)!==null&&wr!==void 0?wr:Cr.value})})},[Xt,On,Zn]),fr=de.useMemo(function(){return new Set(On.map(function(nr){return nr.value}))},[On]);de.useEffect(function(){if(Xt==="combobox"){var nr,Cr=(nr=On[0])===null||nr===void 0?void 0:nr.value;qt(ve(Cr)?String(Cr):"")}},[On]);var yr=Pn(function(nr,Cr){var wr=Cr!=null?Cr:nr;return(0,je.Z)((0,je.Z)({},Zt.value,nr),Zt.label,wr)}),vr=de.useMemo(function(){if(Xt!=="tags")return It;var nr=(0,$e.Z)(It),Cr=function(Sr){return Ft.has(Sr)};return(0,$e.Z)(On).sort(function(wr,Sr){return wr.value<Sr.value?-1:1}).forEach(function(wr){var Sr=wr.value;Cr(Sr)||nr.push(yr(Sr,wr.label))}),nr},[yr,It,Ft,On,Xt]),Tr=sr(vr,Zt,an,Dt,Vn),br=de.useMemo(function(){return Xt!=="tags"||!an||Tr.some(function(nr){return nr[Vn||"value"]===an})||Tr.some(function(nr){return nr[Zt.value]===an})?Tr:[yr(an)].concat((0,$e.Z)(Tr))},[yr,Vn,Xt,Tr,an,Zt]),kr=function nr(Cr){var wr=(0,$e.Z)(Cr).sort(function(Sr,Kr){return Mr(Sr,Kr,{searchValue:an})});return wr.map(function(Sr){return Array.isArray(Sr.options)?(0,Qe.Z)((0,Qe.Z)({},Sr),{},{options:Sr.options.length>0?nr(Sr.options):Sr.options}):Sr})},cr=de.useMemo(function(){return Mr?kr(br):br},[br,Mr,an]),Kn=de.useMemo(function(){return ae(cr,{fieldNames:Zt,childrenAsData:bt})},[cr,Zt,bt]),ar=function(Cr){var wr=Yt(Cr);if(sn(wr),Fr&&(wr.length!==On.length||wr.some(function($r,Ki){var di;return((di=On[Ki])===null||di===void 0?void 0:di.value)!==($r==null?void 0:$r.value)}))){var Sr=Zr?wr:wr.map(function($r){return $r.value}),Kr=wr.map(function($r){return ee(hr($r.value))});Fr(Pt?Sr:Sr[0],Pt?Kr:Kr[0])}},mr=de.useState(null),er=(0,Ce.Z)(mr,2),Dr=er[0],Lr=er[1],Qr=de.useState(0),Ni=(0,Ce.Z)(Qr,2),wi=Ni[0],yi=Ni[1],Pi=Gr!==void 0?Gr:Xt!=="combobox",qr=de.useCallback(function(nr,Cr){var wr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Sr=wr.source,Kr=Sr===void 0?"keyboard":Sr;yi(Cr),hn&&Xt==="combobox"&&nr!==null&&Kr==="keyboard"&&Lr(String(nr))},[hn,Xt]),Xr=function(Cr,wr,Sr){var Kr=function(){var Vi,Ji=hr(Cr);return[Zr?{label:Ji==null?void 0:Ji[Zt.label],value:Cr,key:(Vi=Ji==null?void 0:Ji.key)!==null&&Vi!==void 0?Vi:Cr}:Cr,ee(Ji)]};if(wr&&Mn){var $r=Kr(),Ki=(0,Ce.Z)($r,2),di=Ki[0],ci=Ki[1];Mn(di,ci)}else if(!wr&&_n&&Sr!=="clear"){var Br=Kr(),xi=(0,Ce.Z)(Br,2),Ui=xi[0],ni=xi[1];_n(Ui,ni)}},ti=Pn(function(nr,Cr){var wr,Sr=Pt?Cr.selected:!0;Sr?wr=Pt?[].concat((0,$e.Z)(On),[nr]):[nr]:wr=On.filter(function(Kr){return Kr.value!==nr}),ar(wr),Xr(nr,Sr),Xt==="combobox"?Lr(""):(!kt||Gt)&&(qt(""),Lr(""))}),ki=function(Cr,wr){ar(Cr);var Sr=wr.type,Kr=wr.values;(Sr==="remove"||Sr==="clear")&&Kr.forEach(function($r){Xr($r.value,!1,Sr)})},ii=function(Cr,wr){if(qt(Cr),Lr(null),wr.source==="submit"){var Sr=(Cr||"").trim();if(Sr){var Kr=Array.from(new Set([].concat((0,$e.Z)(fr),[Sr])));ar(Kr),Xr(Sr,!0),qt("")}return}wr.source!=="blur"&&(Xt==="combobox"&&ar(Cr),An==null||An(Cr))},si=function(Cr){var wr=Cr;Xt!=="tags"&&(wr=Cr.map(function(Kr){var $r=Ot.get(Kr);return $r==null?void 0:$r.value}).filter(function(Kr){return Kr!==void 0}));var Sr=Array.from(new Set([].concat((0,$e.Z)(fr),(0,$e.Z)(wr))));ar(Sr),Sr.forEach(function(Kr){Xr(Kr,!0)})},oi=de.useMemo(function(){var nr=Vr!==!1&&Qn!==!1;return(0,Qe.Z)((0,Qe.Z)({},yt),{},{flattenOptions:Kn,onActiveValue:qr,defaultActiveFirstOption:Pi,onSelect:ti,menuItemSelectedIcon:Or,rawValues:fr,fieldNames:Zt,virtual:nr,direction:Jr,listHeight:Ir,listItemHeight:Yr,childrenAsData:bt,maxCount:zr,optionRender:Rn})},[zr,yt,Kn,qr,Pi,ti,Or,fr,Zt,Vr,Qn,Jr,Ir,Yr,bt,Rn]);return de.createElement(se.Provider,{value:oi},de.createElement(Ze,(0,re.Z)({},ai,{id:Ke,prefixCls:en,ref:ot,omitDomProps:Gn,mode:Xt,displayValues:or,onDisplayValuesChange:ki,direction:Jr,searchValue:an,onSearch:ii,autoClearSearchValue:Gt,onSearchSplit:si,dropdownMatchSelectWidth:Qn,OptionList:$n,emptyOptions:!Kn.length,activeValue:Dr,activeDescendantId:"".concat(Ke,"_list_").concat(wi)})))}),gn=Mt;gn.Option=un,gn.OptGroup=Bt;var In=gn,ir=In},63158:function(rn,$t,le){"use strict";var re=le(54476),$e=le(20068),je=le(42978),Qe=le(75931),Ce=le(59301),he=le(92310),Ne=le.n(he),Ve=le(18929),we=le(10228),de=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],Oe=Ce.forwardRef(function(xe,wt){var Xe,Pe=xe.prefixCls,ke=Pe===void 0?"rc-switch":Pe,Ee=xe.className,qe=xe.checked,lt=xe.defaultChecked,xt=xe.disabled,Ae=xe.loadingIcon,me=xe.checkedChildren,Re=xe.unCheckedChildren,We=xe.onClick,Nt=xe.onChange,ye=xe.onKeyDown,Le=(0,Qe.Z)(xe,de),Ie=(0,Ve.Z)(!1,{value:qe,defaultValue:lt}),Me=(0,je.Z)(Ie,2),Je=Me[0],_e=Me[1];function et(ft,ve){var ce=Je;return xt||(ce=ft,_e(ce),Nt==null||Nt(ce,ve)),ce}function Kt(ft){ft.which===we.Z.LEFT?et(!1,ft):ft.which===we.Z.RIGHT&&et(!0,ft),ye==null||ye(ft)}function Et(ft){var ve=et(!Je,ft);We==null||We(ve,ft)}var Ct=Ne()(ke,Ee,(Xe={},(0,$e.Z)(Xe,"".concat(ke,"-checked"),Je),(0,$e.Z)(Xe,"".concat(ke,"-disabled"),xt),Xe));return Ce.createElement("button",(0,re.Z)({},Le,{type:"button",role:"switch","aria-checked":Je,disabled:xt,className:Ct,ref:wt,onKeyDown:Kt,onClick:Et}),Ae,Ce.createElement("span",{className:"".concat(ke,"-inner")},Ce.createElement("span",{className:"".concat(ke,"-inner-checked")},me),Ce.createElement("span",{className:"".concat(ke,"-inner-unchecked")},Re)))});Oe.displayName="Switch",$t.Z=Oe},86351:function(rn,$t,le){"use strict";le.d($t,{R:function(){return $e},w:function(){return re}});var re={},$e="rc-table-internal-hook"},97347:function(rn,$t,le){"use strict";le.d($t,{L:function(){return ke},Z:function(){return Ae}});var re=le(42978),$e=le(20068),je=le(94480),Qe=le(76190),Ce=le(33885),he=le(75931),Ne=le(11592),Ve=le(48736),we=le(59301),de=le(86351),Oe=le(54451);function xe(me){var Re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof Re=="number"?Re:Re.endsWith("%")?me*parseFloat(Re)/100:null}function wt(me,Re,We){return we.useMemo(function(){if(Re&&Re>0){var Nt=0,ye=0;me.forEach(function(Et){var Ct=xe(Re,Et.width);Ct?Nt+=Ct:ye+=1});var Le=Math.max(Re,We),Ie=Math.max(Le-Nt,ye),Me=ye,Je=Ie/ye,_e=0,et=me.map(function(Et){var Ct=(0,Ce.Z)({},Et),ft=xe(Re,Ct.width);if(ft)Ct.width=ft;else{var ve=Math.floor(Je);Ct.width=Me===1?Ie:ve,Ie-=ve,Me-=1}return _e+=Ct.width,Ct});if(_e<Le){var Kt=Le/_e;Ie=Le,et.forEach(function(Et,Ct){var ft=Math.floor(Et.width*Kt);Et.width=Ct===et.length-1?Ie:ft,Ie-=ft})}return[et,Math.max(_e,Le)]}return[me,Re]},[me,Re,We])}var Xe=["children"],Pe=["fixed"];function ke(me){return(0,Ne.Z)(me).filter(function(Re){return we.isValidElement(Re)}).map(function(Re){var We=Re.key,Nt=Re.props,ye=Nt.children,Le=(0,he.Z)(Nt,Xe),Ie=(0,Ce.Z)({key:We},Le);return ye&&(Ie.children=ke(ye)),Ie})}function Ee(me){return me.filter(function(Re){return Re&&(0,Qe.Z)(Re)==="object"&&!Re.hidden}).map(function(Re){var We=Re.children;return We&&We.length>0?(0,Ce.Z)((0,Ce.Z)({},Re),{},{children:Ee(We)}):Re})}function qe(me){var Re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return me.filter(function(We){return We&&(0,Qe.Z)(We)==="object"}).reduce(function(We,Nt,ye){var Le=Nt.fixed,Ie=Le===!0?"left":Le,Me="".concat(Re,"-").concat(ye),Je=Nt.children;return Je&&Je.length>0?[].concat((0,je.Z)(We),(0,je.Z)(qe(Je,Me).map(function(_e){return(0,Ce.Z)({fixed:Ie},_e)}))):[].concat((0,je.Z)(We),[(0,Ce.Z)((0,Ce.Z)({key:Me},Nt),{},{fixed:Ie})])},[])}function lt(me){return me.map(function(Re){var We=Re.fixed,Nt=(0,he.Z)(Re,Pe),ye=We;return We==="left"?ye="right":We==="right"&&(ye="left"),(0,Ce.Z)({fixed:ye},Nt)})}function xt(me,Re){var We=me.prefixCls,Nt=me.columns,ye=me.children,Le=me.expandable,Ie=me.expandedKeys,Me=me.columnTitle,Je=me.getRowKey,_e=me.onTriggerExpand,et=me.expandIcon,Kt=me.rowExpandable,Et=me.expandIconColumnIndex,Ct=me.direction,ft=me.expandRowByClick,ve=me.columnWidth,ce=me.fixed,Ge=me.scrollWidth,vt=me.clientWidth,dt=we.useMemo(function(){var st=Nt||ke(ye)||[];return Ee(st.slice())},[Nt,ye]),Te=we.useMemo(function(){if(Le){var st=dt.slice();if(!st.includes(de.w)){var Be=Et||0;Be>=0&&(Be||ce==="left"||!ce)&&st.splice(Be,0,de.w),ce==="right"&&st.splice(dt.length,0,de.w)}var it=st.indexOf(de.w);st=st.filter(function(Ye,ge){return Ye!==de.w||ge===it});var tt=dt[it],Fe;ce?Fe=ce:Fe=tt?tt.fixed:null;var pt=(0,$e.Z)((0,$e.Z)((0,$e.Z)((0,$e.Z)((0,$e.Z)((0,$e.Z)({},Oe.v,{className:"".concat(We,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",Me),"fixed",Fe),"className","".concat(We,"-row-expand-icon-cell")),"width",ve),"render",function(ge,ct,jt){var Wt=Je(ct,jt),ae=Ie.has(Wt),ee=Kt?Kt(ct):!0,z=et({prefixCls:We,expanded:ae,expandable:ee,record:ct,onExpand:_e});return ft?we.createElement("span",{onClick:function(se){return se.stopPropagation()}},z):z});return st.map(function(Ye){return Ye===de.w?pt:Ye})}return dt.filter(function(Ye){return Ye!==de.w})},[Le,dt,Je,Ie,et,Ct]),ut=we.useMemo(function(){var st=Te;return Re&&(st=Re(st)),st.length||(st=[{render:function(){return null}}]),st},[Re,Te,Ct]),at=we.useMemo(function(){return Ct==="rtl"?lt(qe(ut)):qe(ut)},[ut,Ct,Ge]),_t=we.useMemo(function(){for(var st=-1,Be=at.length-1;Be>=0;Be-=1){var it=at[Be].fixed;if(it==="left"||it===!0){st=Be;break}}if(st>=0)for(var tt=0;tt<=st;tt+=1){var Fe=at[tt].fixed;if(Fe!=="left"&&Fe!==!0)return!0}var pt=at.findIndex(function(ct){var jt=ct.fixed;return jt==="right"});if(pt>=0)for(var Ye=pt;Ye<at.length;Ye+=1){var ge=at[Ye].fixed;if(ge!=="right")return!0}return!1},[at]),He=wt(at,Ge,vt),De=(0,re.Z)(He,2),Se=De[0],ze=De[1];return[ut,Se,ze,_t]}var Ae=xt},4030:function(rn,$t,le){"use strict";le.d($t,{w2:function(){return re.w},vP:function(){return Un.v},RQ:function(){return re.R},ER:function(){return Wt},Q$:function(){return Er},TN:function(){return Fr}});var re=le(86351),$e=le(42978),je=le(6089),Qe=le(34280),Ce=le(13697),he=le(59301),Ne=le(4676);function Ve(Ke){var Pt=he.createContext(void 0),bt=function(Zt){var Ut=Zt.value,pn=Zt.children,an=he.useRef(Ut);an.current=Ut;var qt=he.useState(function(){return{getValue:function(){return an.current},listeners:new Set}}),yt=(0,$e.Z)(qt,1),Ft=yt[0];return(0,Qe.Z)(function(){(0,Ne.unstable_batchedUpdates)(function(){Ft.listeners.forEach(function(Ot){Ot(Ut)})})},[Ut]),he.createElement(Pt.Provider,{value:Ft},pn)};return{Context:Pt,Provider:bt,defaultValue:Ke}}function we(Ke,Pt){var bt=(0,je.Z)(typeof Pt=="function"?Pt:function(Ot){if(Pt===void 0)return Ot;if(!Array.isArray(Pt))return Ot[Pt];var It={};return Pt.forEach(function(Yt){It[Yt]=Ot[Yt]}),It}),Dt=he.useContext(Ke==null?void 0:Ke.Context),Zt=Dt||{},Ut=Zt.listeners,pn=Zt.getValue,an=he.useRef();an.current=bt(Dt?pn():Ke==null?void 0:Ke.defaultValue);var qt=he.useState({}),yt=(0,$e.Z)(qt,2),Ft=yt[1];return(0,Qe.Z)(function(){if(!Dt)return;function Ot(It){var Yt=bt(It);(0,Ce.Z)(an.current,Yt,!0)||Ft({})}return Ut.add(Ot),function(){Ut.delete(Ot)}},[Dt]),an.current}var de=le(54476),Oe=le(8654);function xe(){var Ke=he.createContext(null);function Pt(){return he.useContext(Ke)}function bt(Zt,Ut){var pn=(0,Oe.Yr)(Zt),an=function(yt,Ft){var Ot=pn?{ref:Ft}:{},It=he.useRef(0),Yt=he.useRef(yt),bn=Pt();return bn!==null?he.createElement(Zt,(0,de.Z)({},yt,Ot)):((!Ut||Ut(Yt.current,yt))&&(It.current+=1),Yt.current=yt,he.createElement(Ke.Provider,{value:It.current},he.createElement(Zt,(0,de.Z)({},yt,Ot))))};return pn?he.forwardRef(an):an}function Dt(Zt,Ut){var pn=(0,Oe.Yr)(Zt),an=function(yt,Ft){var Ot=pn?{ref:Ft}:{};return Pt(),he.createElement(Zt,(0,de.Z)({},yt,Ot))};return pn?he.memo(he.forwardRef(an),Ut):he.memo(an,Ut)}return{makeImmutable:bt,responseImmutable:Dt,useImmutableMark:Pt}}var wt=xe(),Xe=wt.makeImmutable,Pe=wt.responseImmutable,ke=wt.useImmutableMark,Ee=xe(),qe=Ee.makeImmutable,lt=Ee.responseImmutable,xt=Ee.useImmutableMark,Ae=Ve(),me=Ae;function Re(Ke,Pt){var bt=React.useRef(0);bt.current+=1;var Dt=React.useRef(Ke),Zt=[];Object.keys(Ke||{}).map(function(pn){var an;(Ke==null?void 0:Ke[pn])!==((an=Dt.current)===null||an===void 0?void 0:an[pn])&&Zt.push(pn)}),Dt.current=Ke;var Ut=React.useRef([]);return Zt.length&&(Ut.current=Zt),React.useDebugValue(bt.current),React.useDebugValue(Ut.current.join(", ")),Pt&&console.log("".concat(Pt,":"),bt.current,Ut.current),bt.current}var We=null,Nt=null,ye=le(76190),Le=le(33885),Ie=le(20068),Me=le(92310),Je=le.n(Me),_e=le(80547),et=le(97938),Kt=le(48736),Et=he.createContext({renderWithProps:!1}),Ct=Et,ft="RC_TABLE_KEY";function ve(Ke){return Ke==null?[]:Array.isArray(Ke)?Ke:[Ke]}function ce(Ke){var Pt=[],bt={};return Ke.forEach(function(Dt){for(var Zt=Dt||{},Ut=Zt.key,pn=Zt.dataIndex,an=Ut||ve(pn).join("-")||ft;bt[an];)an="".concat(an,"_next");bt[an]=!0,Pt.push(an)}),Pt}function Ge(Ke){return Ke!=null}function vt(Ke){return typeof Ke=="number"&&!Number.isNaN(Ke)}function dt(Ke){return Ke&&(0,ye.Z)(Ke)==="object"&&!Array.isArray(Ke)&&!he.isValidElement(Ke)}function Te(Ke,Pt,bt,Dt,Zt,Ut){var pn=he.useContext(Ct),an=xt(),qt=(0,_e.Z)(function(){if(Ge(Dt))return[Dt];var yt=Pt==null||Pt===""?[]:Array.isArray(Pt)?Pt:[Pt],Ft=(0,et.Z)(Ke,yt),Ot=Ft,It=void 0;if(Zt){var Yt=Zt(Ft,Ke,bt);dt(Yt)?(Ot=Yt.children,It=Yt.props,pn.renderWithProps=!0):Ot=Yt}return[Ot,It]},[an,Ke,Dt,Pt,Zt,bt],function(yt,Ft){if(Ut){var Ot=(0,$e.Z)(yt,2),It=Ot[1],Yt=(0,$e.Z)(Ft,2),bn=Yt[1];return Ut(bn,It)}return pn.renderWithProps?!0:!(0,Ce.Z)(yt,Ft,!0)});return qt}function ut(Ke,Pt,bt,Dt){var Zt=Ke+Pt-1;return Ke<=Dt&&Zt>=bt}function at(Ke,Pt){return we(me,function(bt){var Dt=ut(Ke,Pt||1,bt.hoverStartRow,bt.hoverEndRow);return[Dt,bt.onHover]})}var _t=le(70425),He=function(Pt){var bt=Pt.ellipsis,Dt=Pt.rowType,Zt=Pt.children,Ut,pn=bt===!0?{showTitle:!0}:bt;return pn&&(pn.showTitle||Dt==="header")&&(typeof Zt=="string"||typeof Zt=="number"?Ut=Zt.toString():he.isValidElement(Zt)&&typeof Zt.props.children=="string"&&(Ut=Zt.props.children)),Ut};function De(Ke){var Pt,bt,Dt,Zt,Ut,pn,an,qt,yt=Ke.component,Ft=Ke.children,Ot=Ke.ellipsis,It=Ke.scope,Yt=Ke.prefixCls,bn=Ke.className,Qt=Ke.align,zt=Ke.record,sn=Ke.render,cn=Ke.dataIndex,Nn=Ke.renderIndex,Xn=Ke.shouldCellUpdate,On=Ke.index,hr=Ke.rowType,or=Ke.colSpan,fr=Ke.rowSpan,yr=Ke.fixLeft,vr=Ke.fixRight,Tr=Ke.firstFixLeft,br=Ke.lastFixLeft,kr=Ke.firstFixRight,cr=Ke.lastFixRight,Kn=Ke.appendNode,ar=Ke.additionalProps,mr=ar===void 0?{}:ar,er=Ke.isSticky,Dr="".concat(Yt,"-cell"),Lr=we(me,["supportSticky","allColumnsFixedLeft","rowHoverable"]),Qr=Lr.supportSticky,Ni=Lr.allColumnsFixedLeft,wi=Lr.rowHoverable,yi=Te(zt,cn,Nn,Ft,sn,Xn),Pi=(0,$e.Z)(yi,2),qr=Pi[0],Xr=Pi[1],ti={},ki=typeof yr=="number"&&Qr,ii=typeof vr=="number"&&Qr;ki&&(ti.position="sticky",ti.left=yr),ii&&(ti.position="sticky",ti.right=vr);var si=(Pt=(bt=(Dt=Xr==null?void 0:Xr.colSpan)!==null&&Dt!==void 0?Dt:mr.colSpan)!==null&&bt!==void 0?bt:or)!==null&&Pt!==void 0?Pt:1,oi=(Zt=(Ut=(pn=Xr==null?void 0:Xr.rowSpan)!==null&&pn!==void 0?pn:mr.rowSpan)!==null&&Ut!==void 0?Ut:fr)!==null&&Zt!==void 0?Zt:1,nr=at(On,oi),Cr=(0,$e.Z)(nr,2),wr=Cr[0],Sr=Cr[1],Kr=(0,_t.zX)(function(Ui){var ni;zt&&Sr(On,On+oi-1),mr==null||(ni=mr.onMouseEnter)===null||ni===void 0||ni.call(mr,Ui)}),$r=(0,_t.zX)(function(Ui){var ni;zt&&Sr(-1,-1),mr==null||(ni=mr.onMouseLeave)===null||ni===void 0||ni.call(mr,Ui)});if(si===0||oi===0)return null;var Ki=(an=mr.title)!==null&&an!==void 0?an:He({rowType:hr,ellipsis:Ot,children:qr}),di=Je()(Dr,bn,(qt={},(0,Ie.Z)((0,Ie.Z)((0,Ie.Z)((0,Ie.Z)((0,Ie.Z)((0,Ie.Z)((0,Ie.Z)((0,Ie.Z)((0,Ie.Z)((0,Ie.Z)(qt,"".concat(Dr,"-fix-left"),ki&&Qr),"".concat(Dr,"-fix-left-first"),Tr&&Qr),"".concat(Dr,"-fix-left-last"),br&&Qr),"".concat(Dr,"-fix-left-all"),br&&Ni&&Qr),"".concat(Dr,"-fix-right"),ii&&Qr),"".concat(Dr,"-fix-right-first"),kr&&Qr),"".concat(Dr,"-fix-right-last"),cr&&Qr),"".concat(Dr,"-ellipsis"),Ot),"".concat(Dr,"-with-append"),Kn),"".concat(Dr,"-fix-sticky"),(ki||ii)&&er&&Qr),(0,Ie.Z)(qt,"".concat(Dr,"-row-hover"),!Xr&&wr)),mr.className,Xr==null?void 0:Xr.className),ci={};Qt&&(ci.textAlign=Qt);var Br=(0,Le.Z)((0,Le.Z)((0,Le.Z)((0,Le.Z)({},Xr==null?void 0:Xr.style),ti),ci),mr.style),xi=qr;return(0,ye.Z)(xi)==="object"&&!Array.isArray(xi)&&!he.isValidElement(xi)&&(xi=null),Ot&&(br||kr)&&(xi=he.createElement("span",{className:"".concat(Dr,"-content")},xi)),he.createElement(yt,(0,de.Z)({},Xr,mr,{className:di,style:Br,title:Ki,scope:It,onMouseEnter:wi?Kr:void 0,onMouseLeave:wi?$r:void 0,colSpan:si!==1?si:null,rowSpan:oi!==1?oi:null}),Kn,xi)}var Se=he.memo(De);function ze(Ke,Pt,bt,Dt,Zt){var Ut=bt[Ke]||{},pn=bt[Pt]||{},an,qt;Ut.fixed==="left"?an=Dt.left[Zt==="rtl"?Pt:Ke]:pn.fixed==="right"&&(qt=Dt.right[Zt==="rtl"?Ke:Pt]);var yt=!1,Ft=!1,Ot=!1,It=!1,Yt=bt[Pt+1],bn=bt[Ke-1],Qt=Yt&&!Yt.fixed||bn&&!bn.fixed||bt.every(function(Xn){return Xn.fixed==="left"});if(Zt==="rtl"){if(an!==void 0){var zt=bn&&bn.fixed==="left";It=!zt&&Qt}else if(qt!==void 0){var sn=Yt&&Yt.fixed==="right";Ot=!sn&&Qt}}else if(an!==void 0){var cn=Yt&&Yt.fixed==="left";yt=!cn&&Qt}else if(qt!==void 0){var Nn=bn&&bn.fixed==="right";Ft=!Nn&&Qt}return{fixLeft:an,fixRight:qt,lastFixLeft:yt,firstFixRight:Ft,lastFixRight:Ot,firstFixLeft:It,isSticky:Dt.isSticky}}var st=he.createContext({}),Be=st;function it(Ke){var Pt=Ke.className,bt=Ke.index,Dt=Ke.children,Zt=Ke.colSpan,Ut=Zt===void 0?1:Zt,pn=Ke.rowSpan,an=Ke.align,qt=we(me,["prefixCls","direction"]),yt=qt.prefixCls,Ft=qt.direction,Ot=he.useContext(Be),It=Ot.scrollColumnIndex,Yt=Ot.stickyOffsets,bn=Ot.flattenColumns,Qt=bt+Ut-1,zt=Qt+1===It?Ut+1:Ut,sn=ze(bt,bt+zt-1,bn,Yt,Ft);return he.createElement(Se,(0,de.Z)({className:Pt,index:bt,component:"td",prefixCls:yt,record:null,dataIndex:null,align:an,colSpan:zt,rowSpan:pn,render:function(){return Dt}},sn))}var tt=le(75931),Fe=["children"];function pt(Ke){var Pt=Ke.children,bt=(0,tt.Z)(Ke,Fe);return he.createElement("tr",bt,Pt)}function Ye(Ke){var Pt=Ke.children;return Pt}Ye.Row=pt,Ye.Cell=it;var ge=Ye;function ct(Ke){var Pt=Ke.children,bt=Ke.stickyOffsets,Dt=Ke.flattenColumns,Zt=we(me,"prefixCls"),Ut=Dt.length-1,pn=Dt[Ut],an=he.useMemo(function(){return{stickyOffsets:bt,flattenColumns:Dt,scrollColumnIndex:pn!=null&&pn.scrollbar?Ut:null}},[pn,Dt,Ut,bt]);return he.createElement(Be.Provider,{value:an},he.createElement("tfoot",{className:"".concat(Zt,"-summary")},Pt))}var jt=lt(ct),Wt=ge,ae=le(29301),ee=le(24514),z=le(75152),ie=le(26112);function se(Ke,Pt,bt,Dt,Zt,Ut,pn){Ke.push({record:Pt,indent:bt,index:pn});var an=Ut(Pt),qt=Zt==null?void 0:Zt.has(an);if(Pt&&Array.isArray(Pt[Dt])&&qt)for(var yt=0;yt<Pt[Dt].length;yt+=1)se(Ke,Pt[Dt][yt],bt+1,Dt,Zt,Ut,yt)}function ne(Ke,Pt,bt,Dt){var Zt=he.useMemo(function(){if(bt!=null&&bt.size){for(var Ut=[],pn=0;pn<(Ke==null?void 0:Ke.length);pn+=1){var an=Ke[pn];se(Ut,an,0,Pt,bt,Dt,pn)}return Ut}return Ke==null?void 0:Ke.map(function(qt,yt){return{record:qt,indent:0,index:yt}})},[Ke,Pt,bt,Dt]);return Zt}function be(Ke,Pt,bt,Dt){var Zt=we(me,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),Ut=Zt.flattenColumns,pn=Zt.expandableType,an=Zt.expandedKeys,qt=Zt.childrenColumnName,yt=Zt.onTriggerExpand,Ft=Zt.rowExpandable,Ot=Zt.onRow,It=Zt.expandRowByClick,Yt=Zt.rowClassName,bn=pn==="nest",Qt=pn==="row"&&(!Ft||Ft(Ke)),zt=Qt||bn,sn=an&&an.has(Pt),cn=qt&&Ke&&Ke[qt],Nn=(0,_t.zX)(yt),Xn=Ot==null?void 0:Ot(Ke,bt),On=Xn==null?void 0:Xn.onClick,hr=function(vr){It&&zt&&yt(Ke,vr);for(var Tr=arguments.length,br=new Array(Tr>1?Tr-1:0),kr=1;kr<Tr;kr++)br[kr-1]=arguments[kr];On==null||On.apply(void 0,[vr].concat(br))},or;typeof Yt=="string"?or=Yt:typeof Yt=="function"&&(or=Yt(Ke,bt,Dt));var fr=ce(Ut);return(0,Le.Z)((0,Le.Z)({},Zt),{},{columnsKey:fr,nestExpandable:bn,expanded:sn,hasNestChildren:cn,record:Ke,onTriggerExpand:Nn,rowSupportExpand:Qt,expandable:zt,rowProps:(0,Le.Z)((0,Le.Z)({},Xn),{},{className:Je()(or,Xn==null?void 0:Xn.className),onClick:hr})})}function gt(Ke){var Pt=Ke.prefixCls,bt=Ke.children,Dt=Ke.component,Zt=Ke.cellComponent,Ut=Ke.className,pn=Ke.expanded,an=Ke.colSpan,qt=Ke.isEmpty,yt=we(me,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),Ft=yt.scrollbarSize,Ot=yt.fixHeader,It=yt.fixColumn,Yt=yt.componentWidth,bn=yt.horizonScroll,Qt=bt;return(qt?bn&&Yt:It)&&(Qt=he.createElement("div",{style:{width:Yt-(Ot&&!qt?Ft:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(Pt,"-expanded-row-fixed")},Qt)),he.createElement(Dt,{className:Ut,style:{display:pn?null:"none"}},he.createElement(Se,{component:Zt,prefixCls:Pt,colSpan:an},Qt))}var kt=gt;function ht(Ke){var Pt=Ke.prefixCls,bt=Ke.record,Dt=Ke.onExpand,Zt=Ke.expanded,Ut=Ke.expandable,pn="".concat(Pt,"-row-expand-icon");if(!Ut)return he.createElement("span",{className:Je()(pn,"".concat(Pt,"-row-spaced"))});var an=function(yt){Dt(bt,yt),yt.stopPropagation()};return he.createElement("span",{className:Je()(pn,(0,Ie.Z)((0,Ie.Z)({},"".concat(Pt,"-row-expanded"),Zt),"".concat(Pt,"-row-collapsed"),!Zt)),onClick:an})}function Ze(Ke,Pt,bt){var Dt=[];function Zt(Ut){(Ut||[]).forEach(function(pn,an){Dt.push(Pt(pn,an)),Zt(pn[bt])})}return Zt(Ke),Dt}function Vt(Ke,Pt,bt,Dt){return typeof Ke=="string"?Ke:typeof Ke=="function"?Ke(Pt,bt,Dt):""}function Bt(Ke,Pt,bt,Dt,Zt){var Ut=Ke.record,pn=Ke.prefixCls,an=Ke.columnsKey,qt=Ke.fixedInfoList,yt=Ke.expandIconColumnIndex,Ft=Ke.nestExpandable,Ot=Ke.indentSize,It=Ke.expandIcon,Yt=Ke.expanded,bn=Ke.hasNestChildren,Qt=Ke.onTriggerExpand,zt=an[bt],sn=qt[bt],cn;bt===(yt||0)&&Ft&&(cn=he.createElement(he.Fragment,null,he.createElement("span",{style:{paddingLeft:"".concat(Ot*Dt,"px")},className:"".concat(pn,"-row-indent indent-level-").concat(Dt)}),It({prefixCls:pn,expanded:Yt,expandable:bn,record:Ut,onExpand:Qt})));var Nn;return Pt.onCell&&(Nn=Pt.onCell(Ut,Zt)),{key:zt,fixedInfo:sn,appendCellNode:cn,additionalCellProps:Nn||{}}}function Ht(Ke){var Pt=Ke.className,bt=Ke.style,Dt=Ke.record,Zt=Ke.index,Ut=Ke.renderIndex,pn=Ke.rowKey,an=Ke.indent,qt=an===void 0?0:an,yt=Ke.rowComponent,Ft=Ke.cellComponent,Ot=Ke.scopeCellComponent,It=be(Dt,pn,Zt,qt),Yt=It.prefixCls,bn=It.flattenColumns,Qt=It.expandedRowClassName,zt=It.expandedRowRender,sn=It.rowProps,cn=It.expanded,Nn=It.rowSupportExpand,Xn=he.useRef(!1);Xn.current||(Xn.current=cn);var On=Vt(Qt,Dt,Zt,qt),hr=he.createElement(yt,(0,de.Z)({},sn,{"data-row-key":pn,className:Je()(Pt,"".concat(Yt,"-row"),"".concat(Yt,"-row-level-").concat(qt),sn==null?void 0:sn.className,(0,Ie.Z)({},On,qt>=1)),style:(0,Le.Z)((0,Le.Z)({},bt),sn==null?void 0:sn.style)}),bn.map(function(yr,vr){var Tr=yr.render,br=yr.dataIndex,kr=yr.className,cr=Bt(It,yr,vr,qt,Zt),Kn=cr.key,ar=cr.fixedInfo,mr=cr.appendCellNode,er=cr.additionalCellProps;return he.createElement(Se,(0,de.Z)({className:kr,ellipsis:yr.ellipsis,align:yr.align,scope:yr.rowScope,component:yr.rowScope?Ot:Ft,prefixCls:Yt,key:Kn,record:Dt,index:Zt,renderIndex:Ut,dataIndex:br,render:Tr,shouldCellUpdate:yr.shouldCellUpdate},ar,{appendNode:mr,additionalProps:er}))})),or;if(Nn&&(Xn.current||cn)){var fr=zt(Dt,Zt,qt+1,cn);or=he.createElement(kt,{expanded:cn,className:Je()("".concat(Yt,"-expanded-row"),"".concat(Yt,"-expanded-row-level-").concat(qt+1),On),prefixCls:Yt,component:yt,cellComponent:Ft,colSpan:bn.length,isEmpty:!1},fr)}return he.createElement(he.Fragment,null,hr,or)}var un=lt(Ht);function Lt(Ke){var Pt=Ke.columnKey,bt=Ke.onColumnResize,Dt=he.useRef();return(0,Qe.Z)(function(){Dt.current&&bt(Pt,Dt.current.offsetWidth)},[]),he.createElement(ae.Z,{data:Pt},he.createElement("td",{ref:Dt,style:{padding:0,border:0,height:0}},he.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}var St=le(29194);function vn(Ke){var Pt=Ke.prefixCls,bt=Ke.columnsKey,Dt=Ke.onColumnResize,Zt=he.useRef(null);return he.createElement("tr",{"aria-hidden":"true",className:"".concat(Pt,"-measure-row"),style:{height:0,fontSize:0},ref:Zt},he.createElement(ae.Z.Collection,{onBatchResize:function(pn){(0,St.Z)(Zt.current)&&pn.forEach(function(an){var qt=an.data,yt=an.size;Dt(qt,yt.offsetWidth)})}},bt.map(function(Ut){return he.createElement(Lt,{key:Ut,columnKey:Ut,onColumnResize:Dt})})))}function Fn(Ke){var Pt=Ke.data,bt=Ke.measureColumnWidth,Dt=we(me,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),Zt=Dt.prefixCls,Ut=Dt.getComponent,pn=Dt.onColumnResize,an=Dt.flattenColumns,qt=Dt.getRowKey,yt=Dt.expandedKeys,Ft=Dt.childrenColumnName,Ot=Dt.emptyNode,It=ne(Pt,Ft,yt,qt),Yt=he.useRef({renderWithProps:!1}),bn=Ut(["body","wrapper"],"tbody"),Qt=Ut(["body","row"],"tr"),zt=Ut(["body","cell"],"td"),sn=Ut(["body","cell"],"th"),cn;Pt.length?cn=It.map(function(Xn,On){var hr=Xn.record,or=Xn.indent,fr=Xn.index,yr=qt(hr,On);return he.createElement(un,{key:yr,rowKey:yr,record:hr,index:On,renderIndex:fr,rowComponent:Qt,cellComponent:zt,scopeCellComponent:sn,indent:or})}):cn=he.createElement(kt,{expanded:!0,className:"".concat(Zt,"-placeholder"),prefixCls:Zt,component:Qt,cellComponent:zt,colSpan:an.length,isEmpty:!0},Ot);var Nn=ce(an);return he.createElement(Ct.Provider,{value:Yt.current},he.createElement(bn,{className:"".concat(Zt,"-tbody")},bt&&he.createElement(vn,{prefixCls:Zt,columnsKey:Nn,onColumnResize:pn}),cn))}var Tn=lt(Fn),Un=le(54451),tr=["columnType"];function gr(Ke){for(var Pt=Ke.colWidths,bt=Ke.columns,Dt=Ke.columCount,Zt=we(me,["tableLayout"]),Ut=Zt.tableLayout,pn=[],an=Dt||bt.length,qt=!1,yt=an-1;yt>=0;yt-=1){var Ft=Pt[yt],Ot=bt&&bt[yt],It=void 0,Yt=void 0;if(Ot&&(It=Ot[Un.v],Ut==="auto"&&(Yt=Ot.minWidth)),Ft||Yt||It||qt){var bn=It||{},Qt=bn.columnType,zt=(0,tt.Z)(bn,tr);pn.unshift(he.createElement("col",(0,de.Z)({key:yt,style:{width:Ft,minWidth:Yt}},zt))),qt=!0}}return he.createElement("colgroup",null,pn)}var $n=gr,kn=le(94480),pr=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function sr(Ke,Pt){return(0,he.useMemo)(function(){for(var bt=[],Dt=0;Dt<Pt;Dt+=1){var Zt=Ke[Dt];if(Zt!==void 0)bt[Dt]=Zt;else return null}return bt},[Ke.join("_"),Pt])}var Ln=he.forwardRef(function(Ke,Pt){var bt=Ke.className,Dt=Ke.noData,Zt=Ke.columns,Ut=Ke.flattenColumns,pn=Ke.colWidths,an=Ke.columCount,qt=Ke.stickyOffsets,yt=Ke.direction,Ft=Ke.fixHeader,Ot=Ke.stickyTopOffset,It=Ke.stickyBottomOffset,Yt=Ke.stickyClassName,bn=Ke.onScroll,Qt=Ke.maxContentScroll,zt=Ke.children,sn=(0,tt.Z)(Ke,pr),cn=we(me,["prefixCls","scrollbarSize","isSticky","getComponent"]),Nn=cn.prefixCls,Xn=cn.scrollbarSize,On=cn.isSticky,hr=cn.getComponent,or=hr(["header","table"],"table"),fr=On&&!Ft?0:Xn,yr=he.useRef(null),vr=he.useCallback(function(er){(0,Oe.mH)(Pt,er),(0,Oe.mH)(yr,er)},[]);he.useEffect(function(){var er;function Dr(Lr){var Qr=Lr,Ni=Qr.currentTarget,wi=Qr.deltaX;wi&&(bn({currentTarget:Ni,scrollLeft:Ni.scrollLeft+wi}),Lr.preventDefault())}return(er=yr.current)===null||er===void 0||er.addEventListener("wheel",Dr,{passive:!1}),function(){var Lr;(Lr=yr.current)===null||Lr===void 0||Lr.removeEventListener("wheel",Dr)}},[]);var Tr=he.useMemo(function(){return Ut.every(function(er){return er.width})},[Ut]),br=Ut[Ut.length-1],kr={fixed:br?br.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(Nn,"-cell-scrollbar")}}},cr=(0,he.useMemo)(function(){return fr?[].concat((0,kn.Z)(Zt),[kr]):Zt},[fr,Zt]),Kn=(0,he.useMemo)(function(){return fr?[].concat((0,kn.Z)(Ut),[kr]):Ut},[fr,Ut]),ar=(0,he.useMemo)(function(){var er=qt.right,Dr=qt.left;return(0,Le.Z)((0,Le.Z)({},qt),{},{left:yt==="rtl"?[].concat((0,kn.Z)(Dr.map(function(Lr){return Lr+fr})),[0]):Dr,right:yt==="rtl"?er:[].concat((0,kn.Z)(er.map(function(Lr){return Lr+fr})),[0]),isSticky:On})},[fr,qt,On]),mr=sr(pn,an);return he.createElement("div",{style:(0,Le.Z)({overflow:"hidden"},On?{top:Ot,bottom:It}:{}),ref:vr,className:Je()(bt,(0,Ie.Z)({},Yt,!!Yt))},he.createElement(or,{style:{tableLayout:"fixed",visibility:Dt||mr?null:"hidden"}},(!Dt||!Qt||Tr)&&he.createElement($n,{colWidths:mr?[].concat((0,kn.Z)(mr),[fr]):[],columCount:an+1,columns:Kn}),zt((0,Le.Z)((0,Le.Z)({},sn),{},{stickyOffsets:ar,columns:cr,flattenColumns:Kn}))))}),Cn=he.memo(Ln),tn=function(Pt){var bt=Pt.cells,Dt=Pt.stickyOffsets,Zt=Pt.flattenColumns,Ut=Pt.rowComponent,pn=Pt.cellComponent,an=Pt.onHeaderRow,qt=Pt.index,yt=we(me,["prefixCls","direction"]),Ft=yt.prefixCls,Ot=yt.direction,It;an&&(It=an(bt.map(function(bn){return bn.column}),qt));var Yt=ce(bt.map(function(bn){return bn.column}));return he.createElement(Ut,It,bt.map(function(bn,Qt){var zt=bn.column,sn=ze(bn.colStart,bn.colEnd,Zt,Dt,Ot),cn;return zt&&zt.onHeaderCell&&(cn=bn.column.onHeaderCell(zt)),he.createElement(Se,(0,de.Z)({},bn,{scope:zt.title?bn.colSpan>1?"colgroup":"col":null,ellipsis:zt.ellipsis,align:zt.align,component:pn,prefixCls:Ft,key:Yt[Qt]},sn,{additionalProps:cn,rowType:"header"}))}))},fn=tn;function Tt(Ke){var Pt=[];function bt(pn,an){var qt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;Pt[qt]=Pt[qt]||[];var yt=an,Ft=pn.filter(Boolean).map(function(Ot){var It={key:Ot.key,className:Ot.className||"",children:Ot.title,column:Ot,colStart:yt},Yt=1,bn=Ot.children;return bn&&bn.length>0&&(Yt=bt(bn,yt,qt+1).reduce(function(Qt,zt){return Qt+zt},0),It.hasSubColumns=!0),"colSpan"in Ot&&(Yt=Ot.colSpan),"rowSpan"in Ot&&(It.rowSpan=Ot.rowSpan),It.colSpan=Yt,It.colEnd=It.colStart+Yt-1,Pt[qt].push(It),yt+=Yt,Yt});return Ft}bt(Ke,0);for(var Dt=Pt.length,Zt=function(an){Pt[an].forEach(function(qt){!("rowSpan"in qt)&&!qt.hasSubColumns&&(qt.rowSpan=Dt-an)})},Ut=0;Ut<Dt;Ut+=1)Zt(Ut);return Pt}var Jt=function(Pt){var bt=Pt.stickyOffsets,Dt=Pt.columns,Zt=Pt.flattenColumns,Ut=Pt.onHeaderRow,pn=we(me,["prefixCls","getComponent"]),an=pn.prefixCls,qt=pn.getComponent,yt=he.useMemo(function(){return Tt(Dt)},[Dt]),Ft=qt(["header","wrapper"],"thead"),Ot=qt(["header","row"],"tr"),It=qt(["header","cell"],"th");return he.createElement(Ft,{className:"".concat(an,"-thead")},yt.map(function(Yt,bn){var Qt=he.createElement(fn,{key:bn,flattenColumns:Zt,cells:Yt,stickyOffsets:bt,rowComponent:Ot,cellComponent:It,onHeaderRow:Ut,index:bn});return Qt}))},wn=lt(Jt),En=le(97347);function Pn(Ke,Pt,bt){var Dt=(0,Un.g)(Ke),Zt=Dt.expandIcon,Ut=Dt.expandedRowKeys,pn=Dt.defaultExpandedRowKeys,an=Dt.defaultExpandAllRows,qt=Dt.expandedRowRender,yt=Dt.onExpand,Ft=Dt.onExpandedRowsChange,Ot=Dt.childrenColumnName,It=Zt||ht,Yt=Ot||"children",bn=he.useMemo(function(){return qt?"row":Ke.expandable&&Ke.internalHooks===re.R&&Ke.expandable.__PARENT_RENDER_ICON__||Pt.some(function(On){return On&&(0,ye.Z)(On)==="object"&&On[Yt]})?"nest":!1},[!!qt,Pt]),Qt=he.useState(function(){return pn||(an?Ze(Pt,bt,Yt):[])}),zt=(0,$e.Z)(Qt,2),sn=zt[0],cn=zt[1],Nn=he.useMemo(function(){return new Set(Ut||sn||[])},[Ut,sn]),Xn=he.useCallback(function(On){var hr=bt(On,Pt.indexOf(On)),or,fr=Nn.has(hr);fr?(Nn.delete(hr),or=(0,kn.Z)(Nn)):or=[].concat((0,kn.Z)(Nn),[hr]),cn(or),yt&&yt(!fr,On),Ft&&Ft(or)},[bt,Nn,Pt,yt,Ft]);return[Dt,bn,Nn,It,Yt,Xn]}function jn(Ke,Pt,bt){var Dt=Ke.map(function(Zt,Ut){return ze(Ut,Ut,Ke,Pt,bt)});return(0,_e.Z)(function(){return Dt},[Dt],function(Zt,Ut){return!(0,Ce.Z)(Zt,Ut)})}function ur(Ke){var Pt=(0,he.useRef)(Ke),bt=(0,he.useState)({}),Dt=(0,$e.Z)(bt,2),Zt=Dt[1],Ut=(0,he.useRef)(null),pn=(0,he.useRef)([]);function an(qt){pn.current.push(qt);var yt=Promise.resolve();Ut.current=yt,yt.then(function(){if(Ut.current===yt){var Ft=pn.current,Ot=Pt.current;pn.current=[],Ft.forEach(function(It){Pt.current=It(Pt.current)}),Ut.current=null,Ot!==Pt.current&&Zt({})}})}return(0,he.useEffect)(function(){return function(){Ut.current=null}},[]),[Pt.current,an]}function rr(Ke){var Pt=(0,he.useRef)(Ke||null),bt=(0,he.useRef)();function Dt(){window.clearTimeout(bt.current)}function Zt(pn){Pt.current=pn,Dt(),bt.current=window.setTimeout(function(){Pt.current=null,bt.current=void 0},100)}function Ut(){return Pt.current}return(0,he.useEffect)(function(){return Dt},[]),[Zt,Ut]}function zn(){var Ke=he.useState(-1),Pt=(0,$e.Z)(Ke,2),bt=Pt[0],Dt=Pt[1],Zt=he.useState(-1),Ut=(0,$e.Z)(Zt,2),pn=Ut[0],an=Ut[1],qt=he.useCallback(function(yt,Ft){Dt(yt),an(Ft)},[]);return[bt,pn,qt]}var Gn=le(47273),ln=(0,Gn.Z)()?window:null;function Mt(Ke,Pt){var bt=(0,ye.Z)(Ke)==="object"?Ke:{},Dt=bt.offsetHeader,Zt=Dt===void 0?0:Dt,Ut=bt.offsetSummary,pn=Ut===void 0?0:Ut,an=bt.offsetScroll,qt=an===void 0?0:an,yt=bt.getContainer,Ft=yt===void 0?function(){return ln}:yt,Ot=Ft()||ln,It=!!Ke;return he.useMemo(function(){return{isSticky:It,stickyClassName:It?"".concat(Pt,"-sticky-holder"):"",offsetHeader:Zt,offsetSummary:pn,offsetScroll:qt,container:Ot}},[It,qt,Zt,pn,Pt,Ot])}function gn(Ke,Pt,bt){var Dt=(0,he.useMemo)(function(){var Zt=Pt.length,Ut=function(yt,Ft,Ot){for(var It=[],Yt=0,bn=yt;bn!==Ft;bn+=Ot)It.push(Yt),Pt[bn].fixed&&(Yt+=Ke[bn]||0);return It},pn=Ut(0,Zt,1),an=Ut(Zt-1,-1,-1).reverse();return bt==="rtl"?{left:an,right:pn}:{left:pn,right:an}},[Ke,Pt,bt]);return Dt}var In=gn;function ir(Ke){var Pt=Ke.className,bt=Ke.children;return he.createElement("div",{className:Pt},bt)}var nt=ir,ot=le(8224),dn=le(16089),Xt=le(76846);function mt(Ke){var Pt=(0,Xt.bn)(Ke),bt=Pt.getBoundingClientRect(),Dt=document.documentElement;return{left:bt.left+(window.pageXOffset||Dt.scrollLeft)-(Dt.clientLeft||document.body.clientLeft||0),top:bt.top+(window.pageYOffset||Dt.scrollTop)-(Dt.clientTop||document.body.clientTop||0)}}var en=function(Pt,bt){var Dt,Zt,Ut=Pt.scrollBodyRef,pn=Pt.onScroll,an=Pt.offsetScroll,qt=Pt.container,yt=Pt.direction,Ft=we(me,"prefixCls"),Ot=((Dt=Ut.current)===null||Dt===void 0?void 0:Dt.scrollWidth)||0,It=((Zt=Ut.current)===null||Zt===void 0?void 0:Zt.clientWidth)||0,Yt=Ot&&It*(It/Ot),bn=he.useRef(),Qt=ur({scrollLeft:0,isHiddenScrollBar:!0}),zt=(0,$e.Z)(Qt,2),sn=zt[0],cn=zt[1],Nn=he.useRef({delta:0,x:0}),Xn=he.useState(!1),On=(0,$e.Z)(Xn,2),hr=On[0],or=On[1],fr=he.useRef(null);he.useEffect(function(){return function(){dn.Z.cancel(fr.current)}},[]);var yr=function(){or(!1)},vr=function(Kn){Kn.persist(),Nn.current.delta=Kn.pageX-sn.scrollLeft,Nn.current.x=0,or(!0),Kn.preventDefault()},Tr=function(Kn){var ar,mr=Kn||((ar=window)===null||ar===void 0?void 0:ar.event),er=mr.buttons;if(!hr||er===0){hr&&or(!1);return}var Dr=Nn.current.x+Kn.pageX-Nn.current.x-Nn.current.delta,Lr=yt==="rtl";Dr=Math.max(Lr?Yt-It:0,Math.min(Lr?0:It-Yt,Dr));var Qr=!Lr||Math.abs(Dr)+Math.abs(Yt)<It;Qr&&(pn({scrollLeft:Dr/It*(Ot+2)}),Nn.current.x=Kn.pageX)},br=function(){dn.Z.cancel(fr.current),fr.current=(0,dn.Z)(function(){if(Ut.current){var Kn=mt(Ut.current).top,ar=Kn+Ut.current.offsetHeight,mr=qt===window?document.documentElement.scrollTop+window.innerHeight:mt(qt).top+qt.clientHeight;ar-(0,z.Z)()<=mr||Kn>=mr-an?cn(function(er){return(0,Le.Z)((0,Le.Z)({},er),{},{isHiddenScrollBar:!0})}):cn(function(er){return(0,Le.Z)((0,Le.Z)({},er),{},{isHiddenScrollBar:!1})})}})},kr=function(Kn){cn(function(ar){return(0,Le.Z)((0,Le.Z)({},ar),{},{scrollLeft:Kn/Ot*It||0})})};return he.useImperativeHandle(bt,function(){return{setScrollLeft:kr,checkScrollBarVisible:br}}),he.useEffect(function(){var cr=(0,ot.Z)(document.body,"mouseup",yr,!1),Kn=(0,ot.Z)(document.body,"mousemove",Tr,!1);return br(),function(){cr.remove(),Kn.remove()}},[Yt,hr]),he.useEffect(function(){if(Ut.current){for(var cr=[],Kn=(0,Xt.bn)(Ut.current);Kn;)cr.push(Kn),Kn=Kn.parentElement;return cr.forEach(function(ar){return ar.addEventListener("scroll",br,!1)}),window.addEventListener("resize",br,!1),window.addEventListener("scroll",br,!1),qt.addEventListener("scroll",br,!1),function(){cr.forEach(function(ar){return ar.removeEventListener("scroll",br)}),window.removeEventListener("resize",br),window.removeEventListener("scroll",br),qt.removeEventListener("scroll",br)}}},[qt]),he.useEffect(function(){sn.isHiddenScrollBar||cn(function(cr){var Kn=Ut.current;return Kn?(0,Le.Z)((0,Le.Z)({},cr),{},{scrollLeft:Kn.scrollLeft/Kn.scrollWidth*Kn.clientWidth}):cr})},[sn.isHiddenScrollBar]),Ot<=It||!Yt||sn.isHiddenScrollBar?null:he.createElement("div",{style:{height:(0,z.Z)(),width:It,bottom:an},className:"".concat(Ft,"-sticky-scroll")},he.createElement("div",{onMouseDown:vr,ref:bn,className:Je()("".concat(Ft,"-sticky-scroll-bar"),(0,Ie.Z)({},"".concat(Ft,"-sticky-scroll-bar-active"),hr)),style:{width:"".concat(Yt,"px"),transform:"translate3d(".concat(sn.scrollLeft,"px, 0, 0)")}}))},hn=he.forwardRef(en);function mn(Ke){return null}var Dn=mn;function yn(Ke){return null}var An=yn,nn="rc-table",Gt=[],Mn={};function _n(){return"No Data"}function Jn(Ke,Pt){var bt=(0,Le.Z)({rowKey:"key",prefixCls:nn,emptyText:_n},Ke),Dt=bt.prefixCls,Zt=bt.className,Ut=bt.rowClassName,pn=bt.style,an=bt.data,qt=bt.rowKey,yt=bt.scroll,Ft=bt.tableLayout,Ot=bt.direction,It=bt.title,Yt=bt.footer,bn=bt.summary,Qt=bt.caption,zt=bt.id,sn=bt.showHeader,cn=bt.components,Nn=bt.emptyText,Xn=bt.onRow,On=bt.onHeaderRow,hr=bt.onScroll,or=bt.internalHooks,fr=bt.transformColumns,yr=bt.internalRefs,vr=bt.tailor,Tr=bt.getContainerWidth,br=bt.sticky,kr=bt.rowHoverable,cr=kr===void 0?!0:kr,Kn=an||Gt,ar=!!Kn.length,mr=or===re.R,er=he.useCallback(function(_r,Hr){return(0,et.Z)(cn,_r)||Hr},[cn]),Dr=he.useMemo(function(){return typeof qt=="function"?qt:function(_r){var Hr=_r&&_r[qt];return Hr}},[qt]),Lr=er(["body"]),Qr=zn(),Ni=(0,$e.Z)(Qr,3),wi=Ni[0],yi=Ni[1],Pi=Ni[2],qr=Pn(bt,Kn,Dr),Xr=(0,$e.Z)(qr,6),ti=Xr[0],ki=Xr[1],ii=Xr[2],si=Xr[3],oi=Xr[4],nr=Xr[5],Cr=yt==null?void 0:yt.x,wr=he.useState(0),Sr=(0,$e.Z)(wr,2),Kr=Sr[0],$r=Sr[1],Ki=(0,En.Z)((0,Le.Z)((0,Le.Z)((0,Le.Z)({},bt),ti),{},{expandable:!!ti.expandedRowRender,columnTitle:ti.columnTitle,expandedKeys:ii,getRowKey:Dr,onTriggerExpand:nr,expandIcon:si,expandIconColumnIndex:ti.expandIconColumnIndex,direction:Ot,scrollWidth:mr&&vr&&typeof Cr=="number"?Cr:null,clientWidth:Kr}),mr?fr:null),di=(0,$e.Z)(Ki,4),ci=di[0],Br=di[1],xi=di[2],Ui=di[3],ni=xi!=null?xi:Cr,la=he.useMemo(function(){return{columns:ci,flattenColumns:Br}},[ci,Br]),Vi=he.useRef(),Ji=he.useRef(),vi=he.useRef(),no=he.useRef();he.useImperativeHandle(Pt,function(){return{nativeElement:Vi.current,scrollTo:function(Hr){var Si;if(vi.current instanceof HTMLElement){var Fi=Hr.index,Bi=Hr.top,Ba=Hr.key;if(vt(Bi)){var Ca;(Ca=vi.current)===null||Ca===void 0||Ca.scrollTo({top:Bi})}else{var Ra,da=Ba!=null?Ba:Dr(Kn[Fi]);(Ra=vi.current.querySelector('[data-row-key="'.concat(da,'"]')))===null||Ra===void 0||Ra.scrollIntoView()}}else(Si=vi.current)!==null&&Si!==void 0&&Si.scrollTo&&vi.current.scrollTo(Hr)}}});var Xa=he.useRef(),pa=he.useState(!1),va=(0,$e.Z)(pa,2),ra=va[0],Sa=va[1],ro=he.useState(!1),io=(0,$e.Z)(ro,2),ao=io[0],Oa=io[1],Ja=he.useState(new Map),Za=(0,$e.Z)(Ja,2),Ea=Za[0],Qa=Za[1],oo=ce(Br),_a=oo.map(function(_r){return Ea.get(_r)}),ka=he.useMemo(function(){return _a},[_a.join("_")]),Da=In(ka,Br,Ot),Hi=yt&&Ge(yt.y),fi=yt&&Ge(ni)||!!ti.fixed,Wr=fi&&Br.some(function(_r){var Hr=_r.fixed;return Hr}),Rr=he.useRef(),mi=Mt(br,Dt),hi=mi.isSticky,bi=mi.offsetHeader,Di=mi.offsetSummary,sa=mi.offsetScroll,ia=mi.stickyClassName,ma=mi.container,pi=he.useMemo(function(){return bn==null?void 0:bn(Kn)},[bn,Kn]),Ti=(Hi||hi)&&he.isValidElement(pi)&&pi.type===ge&&pi.props.fixed,Qi,ua,qa;Hi&&(ua={overflowY:ar?"scroll":"auto",maxHeight:yt.y}),fi&&(Qi={overflowX:"auto"},Hi||(ua={overflowY:"hidden"}),qa={width:ni===!0?"auto":ni,minWidth:"100%"});var So=he.useCallback(function(_r,Hr){Qa(function(Si){if(Si.get(_r)!==Hr){var Fi=new Map(Si);return Fi.set(_r,Hr),Fi}return Si})},[]),Eo=rr(null),ba=(0,$e.Z)(Eo,2),Aa=ba[0],Wi=ba[1];function ca(_r,Hr){Hr&&(typeof Hr=="function"?Hr(_r):Hr.scrollLeft!==_r&&(Hr.scrollLeft=_r,Hr.scrollLeft!==_r&&setTimeout(function(){Hr.scrollLeft=_r},0)))}var qi=(0,je.Z)(function(_r){var Hr=_r.currentTarget,Si=_r.scrollLeft,Fi=Ot==="rtl",Bi=typeof Si=="number"?Si:Hr.scrollLeft,Ba=Hr||Mn;if(!Wi()||Wi()===Ba){var Ca;Aa(Ba),ca(Bi,Ji.current),ca(Bi,vi.current),ca(Bi,Xa.current),ca(Bi,(Ca=Rr.current)===null||Ca===void 0?void 0:Ca.setScrollLeft)}var Ra=Hr||Ji.current;if(Ra){var da=mr&&vr&&typeof ni=="number"?ni:Ra.scrollWidth,ga=Ra.clientWidth;if(da===ga){Sa(!1),Oa(!1);return}Fi?(Sa(-Bi<da-ga),Oa(-Bi>0)):(Sa(Bi>0),Oa(Bi<da-ga))}}),lo=(0,je.Z)(function(_r){qi(_r),hr==null||hr(_r)}),Qo=function(){if(fi&&vi.current){var Hr;qi({currentTarget:(0,Xt.bn)(vi.current),scrollLeft:(Hr=vi.current)===null||Hr===void 0?void 0:Hr.scrollLeft})}else Sa(!1),Oa(!1)},qo=function(Hr){var Si,Fi=Hr.width;(Si=Rr.current)===null||Si===void 0||Si.checkScrollBarVisible();var Bi=Vi.current?Vi.current.offsetWidth:Fi;mr&&Tr&&Vi.current&&(Bi=Tr(Vi.current,Bi)||Bi),Bi!==Kr&&(Qo(),$r(Bi))},Ha=he.useRef(!1);he.useEffect(function(){Ha.current&&Qo()},[fi,an,ci.length]),he.useEffect(function(){Ha.current=!0},[]);var $o=he.useState(0),ko=(0,$e.Z)($o,2),Na=ko[0],el=ko[1],Do=he.useState(!0),Ao=(0,$e.Z)(Do,2),No=Ao[0],Po=Ao[1];(0,Qe.Z)(function(){(!vr||!mr)&&(vi.current instanceof Element?el((0,z.o)(vi.current).width):el((0,z.o)(no.current).width)),Po((0,ee.G)("position","sticky"))},[]),he.useEffect(function(){mr&&yr&&(yr.body.current=vi.current)});var Wa=he.useCallback(function(_r){return he.createElement(he.Fragment,null,he.createElement(wn,_r),Ti==="top"&&he.createElement(jt,_r,pi))},[Ti,pi]),so=he.useCallback(function(_r){return he.createElement(jt,_r,pi)},[pi]),Lo=er(["table"],"table"),Pa=he.useMemo(function(){return Ft||(Wr?ni==="max-content"?"auto":"fixed":Hi||hi||Br.some(function(_r){var Hr=_r.ellipsis;return Hr})?"fixed":"auto")},[Hi,Wr,Br,Ft,hi]),Mo,To={colWidths:ka,columCount:Br.length,stickyOffsets:Da,onHeaderRow:On,fixHeader:Hi,scroll:yt},tl=he.useMemo(function(){return ar?null:typeof Nn=="function"?Nn():Nn},[ar,Nn]),uo=he.createElement(Tn,{data:Kn,measureColumnWidth:Hi||fi||hi}),co=he.createElement($n,{colWidths:Br.map(function(_r){var Hr=_r.width;return Hr}),columns:Br}),La=Qt!=null?he.createElement("caption",{className:"".concat(Dt,"-caption")},Qt):void 0,$a=(0,ie.Z)(bt,{data:!0}),nl=(0,ie.Z)(bt,{aria:!0});if(Hi||hi){var za;typeof Lr=="function"?(za=Lr(Kn,{scrollbarSize:Na,ref:vi,onScroll:qi}),To.colWidths=Br.map(function(_r,Hr){var Si=_r.width,Fi=Hr===Br.length-1?Si-Na:Si;return typeof Fi=="number"&&!Number.isNaN(Fi)?Fi:0})):za=he.createElement("div",{style:(0,Le.Z)((0,Le.Z)({},Qi),ua),onScroll:lo,ref:vi,className:Je()("".concat(Dt,"-body"))},he.createElement(Lo,(0,de.Z)({style:(0,Le.Z)((0,Le.Z)({},qa),{},{tableLayout:Pa})},nl),La,co,uo,!Ti&&pi&&he.createElement(jt,{stickyOffsets:Da,flattenColumns:Br},pi)));var Bo=(0,Le.Z)((0,Le.Z)((0,Le.Z)({noData:!Kn.length,maxContentScroll:fi&&ni==="max-content"},To),la),{},{direction:Ot,stickyClassName:ia,onScroll:qi});Mo=he.createElement(he.Fragment,null,sn!==!1&&he.createElement(Cn,(0,de.Z)({},Bo,{stickyTopOffset:bi,className:"".concat(Dt,"-header"),ref:Ji}),Wa),za,Ti&&Ti!=="top"&&he.createElement(Cn,(0,de.Z)({},Bo,{stickyBottomOffset:Di,className:"".concat(Dt,"-summary"),ref:Xa}),so),hi&&vi.current&&vi.current instanceof Element&&he.createElement(hn,{ref:Rr,offsetScroll:sa,scrollBodyRef:vi,onScroll:qi,container:ma,direction:Ot}))}else Mo=he.createElement("div",{style:(0,Le.Z)((0,Le.Z)({},Qi),ua),className:Je()("".concat(Dt,"-content")),onScroll:qi,ref:vi},he.createElement(Lo,(0,de.Z)({style:(0,Le.Z)((0,Le.Z)({},qa),{},{tableLayout:Pa})},nl),La,co,sn!==!1&&he.createElement(wn,(0,de.Z)({},To,la)),uo,pi&&he.createElement(jt,{stickyOffsets:Da,flattenColumns:Br},pi)));var Ma=he.createElement("div",(0,de.Z)({className:Je()(Dt,Zt,(0,Ie.Z)((0,Ie.Z)((0,Ie.Z)((0,Ie.Z)((0,Ie.Z)((0,Ie.Z)((0,Ie.Z)((0,Ie.Z)((0,Ie.Z)((0,Ie.Z)({},"".concat(Dt,"-rtl"),Ot==="rtl"),"".concat(Dt,"-ping-left"),ra),"".concat(Dt,"-ping-right"),ao),"".concat(Dt,"-layout-fixed"),Ft==="fixed"),"".concat(Dt,"-fixed-header"),Hi),"".concat(Dt,"-fixed-column"),Wr),"".concat(Dt,"-fixed-column-gapped"),Wr&&Ui),"".concat(Dt,"-scroll-horizontal"),fi),"".concat(Dt,"-has-fix-left"),Br[0]&&Br[0].fixed),"".concat(Dt,"-has-fix-right"),Br[Br.length-1]&&Br[Br.length-1].fixed==="right")),style:pn,id:zt,ref:Vi},$a),It&&he.createElement(nt,{className:"".concat(Dt,"-title")},It(Kn)),he.createElement("div",{ref:no,className:"".concat(Dt,"-container")},Mo),Yt&&he.createElement(nt,{className:"".concat(Dt,"-footer")},Yt(Kn)));fi&&(Ma=he.createElement(ae.Z,{onResize:qo},Ma));var Ro=jn(Br,Da,Ot),Ta=he.useMemo(function(){return{scrollX:ni,prefixCls:Dt,getComponent:er,scrollbarSize:Na,direction:Ot,fixedInfoList:Ro,isSticky:hi,supportSticky:No,componentWidth:Kr,fixHeader:Hi,fixColumn:Wr,horizonScroll:fi,tableLayout:Pa,rowClassName:Ut,expandedRowClassName:ti.expandedRowClassName,expandIcon:si,expandableType:ki,expandRowByClick:ti.expandRowByClick,expandedRowRender:ti.expandedRowRender,onTriggerExpand:nr,expandIconColumnIndex:ti.expandIconColumnIndex,indentSize:ti.indentSize,allColumnsFixedLeft:Br.every(function(_r){return _r.fixed==="left"}),emptyNode:tl,columns:ci,flattenColumns:Br,onColumnResize:So,hoverStartRow:wi,hoverEndRow:yi,onHover:Pi,rowExpandable:ti.rowExpandable,onRow:Xn,getRowKey:Dr,expandedKeys:ii,childrenColumnName:oi,rowHoverable:cr}},[ni,Dt,er,Na,Ot,Ro,hi,No,Kr,Hi,Wr,fi,Pa,Ut,ti.expandedRowClassName,si,ki,ti.expandRowByClick,ti.expandedRowRender,nr,ti.expandIconColumnIndex,ti.indentSize,tl,ci,Br,So,wi,yi,Pi,ti.rowExpandable,Xn,Dr,ii,oi,cr]);return he.createElement(me.Provider,{value:Ta},Ma)}var Qn=he.forwardRef(Jn);function Er(Ke){return qe(Qn,Ke)}var Mr=Er();Mr.EXPAND_COLUMN=re.w,Mr.INTERNAL_HOOKS=re.R,Mr.Column=Dn,Mr.ColumnGroup=An,Mr.Summary=Wt;var Vn=Mr,Sn=le(48911),Yn=Ve(null),Rn=Ve(null);function Pr(Ke,Pt,bt){var Dt=Pt||1;return bt[Ke+Dt]-(bt[Ke]||0)}function Gr(Ke){var Pt=Ke.rowInfo,bt=Ke.column,Dt=Ke.colIndex,Zt=Ke.indent,Ut=Ke.index,pn=Ke.component,an=Ke.renderIndex,qt=Ke.record,yt=Ke.style,Ft=Ke.className,Ot=Ke.inverse,It=Ke.getHeight,Yt=bt.render,bn=bt.dataIndex,Qt=bt.className,zt=bt.width,sn=we(Rn,["columnsOffset"]),cn=sn.columnsOffset,Nn=Bt(Pt,bt,Dt,Zt,Ut),Xn=Nn.key,On=Nn.fixedInfo,hr=Nn.appendCellNode,or=Nn.additionalCellProps,fr=or.style,yr=or.colSpan,vr=yr===void 0?1:yr,Tr=or.rowSpan,br=Tr===void 0?1:Tr,kr=Dt-1,cr=Pr(kr,vr,cn),Kn=vr>1?zt-cr:0,ar=(0,Le.Z)((0,Le.Z)((0,Le.Z)({},fr),yt),{},{flex:"0 0 ".concat(cr,"px"),width:"".concat(cr,"px"),marginRight:Kn,pointerEvents:"auto"}),mr=he.useMemo(function(){return Ot?br<=1:vr===0||br===0||br>1},[br,vr,Ot]);mr?ar.visibility="hidden":Ot&&(ar.height=It==null?void 0:It(br));var er=mr?function(){return null}:Yt,Dr={};return(br===0||vr===0)&&(Dr.rowSpan=1,Dr.colSpan=1),he.createElement(Se,(0,de.Z)({className:Je()(Qt,Ft),ellipsis:bt.ellipsis,align:bt.align,scope:bt.rowScope,component:pn,prefixCls:Pt.prefixCls,key:Xn,record:qt,index:Ut,renderIndex:an,dataIndex:bn,render:er,shouldCellUpdate:bt.shouldCellUpdate},On,{appendNode:hr,additionalProps:(0,Le.Z)((0,Le.Z)({},or),{},{style:ar},Dr)}))}var Or=Gr,Vr=["data","index","className","rowKey","style","extra","getHeight"],Jr=he.forwardRef(function(Ke,Pt){var bt=Ke.data,Dt=Ke.index,Zt=Ke.className,Ut=Ke.rowKey,pn=Ke.style,an=Ke.extra,qt=Ke.getHeight,yt=(0,tt.Z)(Ke,Vr),Ft=bt.record,Ot=bt.indent,It=bt.index,Yt=we(me,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),bn=Yt.scrollX,Qt=Yt.flattenColumns,zt=Yt.prefixCls,sn=Yt.fixColumn,cn=Yt.componentWidth,Nn=we(Yn,["getComponent"]),Xn=Nn.getComponent,On=be(Ft,Ut,Dt,Ot),hr=Xn(["body","row"],"div"),or=Xn(["body","cell"],"div"),fr=On.rowSupportExpand,yr=On.expanded,vr=On.rowProps,Tr=On.expandedRowRender,br=On.expandedRowClassName,kr;if(fr&&yr){var cr=Tr(Ft,Dt,Ot+1,yr),Kn=Vt(br,Ft,Dt,Ot),ar={};sn&&(ar={style:(0,Ie.Z)({},"--virtual-width","".concat(cn,"px"))});var mr="".concat(zt,"-expanded-row-cell");kr=he.createElement(hr,{className:Je()("".concat(zt,"-expanded-row"),"".concat(zt,"-expanded-row-level-").concat(Ot+1),Kn)},he.createElement(Se,{component:or,prefixCls:zt,className:Je()(mr,(0,Ie.Z)({},"".concat(mr,"-fixed"),sn)),additionalProps:ar},cr))}var er=(0,Le.Z)((0,Le.Z)({},pn),{},{width:bn});an&&(er.position="absolute",er.pointerEvents="none");var Dr=he.createElement(hr,(0,de.Z)({},vr,yt,{"data-row-key":Ut,ref:fr?null:Pt,className:Je()(Zt,"".concat(zt,"-row"),vr==null?void 0:vr.className,(0,Ie.Z)({},"".concat(zt,"-row-extra"),an)),style:(0,Le.Z)((0,Le.Z)({},er),vr==null?void 0:vr.style)}),Qt.map(function(Lr,Qr){return he.createElement(Or,{key:Qr,component:or,rowInfo:On,column:Lr,colIndex:Qr,indent:Ot,index:Dt,renderIndex:It,record:Ft,inverse:an,getHeight:qt})}));return fr?he.createElement("div",{ref:Pt},Dr,kr):Dr}),Ur=lt(Jr),Ir=Ur,ei=he.forwardRef(function(Ke,Pt){var bt=Ke.data,Dt=Ke.onScroll,Zt=we(me,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),Ut=Zt.flattenColumns,pn=Zt.onColumnResize,an=Zt.getRowKey,qt=Zt.expandedKeys,yt=Zt.prefixCls,Ft=Zt.childrenColumnName,Ot=Zt.scrollX,It=Zt.direction,Yt=we(Yn),bn=Yt.sticky,Qt=Yt.scrollY,zt=Yt.listItemHeight,sn=Yt.getComponent,cn=Yt.onScroll,Nn=he.useRef(),Xn=ne(bt,Ft,qt,an),On=he.useMemo(function(){var kr=0;return Ut.map(function(cr){var Kn=cr.width,ar=cr.key;return kr+=Kn,[ar,Kn,kr]})},[Ut]),hr=he.useMemo(function(){return On.map(function(kr){return kr[2]})},[On]);he.useEffect(function(){On.forEach(function(kr){var cr=(0,$e.Z)(kr,2),Kn=cr[0],ar=cr[1];pn(Kn,ar)})},[On]),he.useImperativeHandle(Pt,function(){var kr,cr={scrollTo:function(ar){var mr;(mr=Nn.current)===null||mr===void 0||mr.scrollTo(ar)},nativeElement:(kr=Nn.current)===null||kr===void 0?void 0:kr.nativeElement};return Object.defineProperty(cr,"scrollLeft",{get:function(){var ar;return((ar=Nn.current)===null||ar===void 0?void 0:ar.getScrollInfo().x)||0},set:function(ar){var mr;(mr=Nn.current)===null||mr===void 0||mr.scrollTo({left:ar})}}),cr});var or=function(cr,Kn){var ar,mr=(ar=Xn[Kn])===null||ar===void 0?void 0:ar.record,er=cr.onCell;if(er){var Dr,Lr=er(mr,Kn);return(Dr=Lr==null?void 0:Lr.rowSpan)!==null&&Dr!==void 0?Dr:1}return 1},fr=function(cr){var Kn=cr.start,ar=cr.end,mr=cr.getSize,er=cr.offsetY;if(ar<0)return null;for(var Dr=Ut.filter(function(si){return or(si,Kn)===0}),Lr=Kn,Qr=function(oi){if(Dr=Dr.filter(function(nr){return or(nr,oi)===0}),!Dr.length)return Lr=oi,1},Ni=Kn;Ni>=0&&!Qr(Ni);Ni-=1);for(var wi=Ut.filter(function(si){return or(si,ar)!==1}),yi=ar,Pi=function(oi){if(wi=wi.filter(function(nr){return or(nr,oi)!==1}),!wi.length)return yi=Math.max(oi-1,ar),1},qr=ar;qr<Xn.length&&!Pi(qr);qr+=1);for(var Xr=[],ti=function(oi){var nr=Xn[oi];if(!nr)return 1;Ut.some(function(Cr){return or(Cr,oi)>1})&&Xr.push(oi)},ki=Lr;ki<=yi;ki+=1)ti(ki);var ii=Xr.map(function(si){var oi=Xn[si],nr=an(oi.record,si),Cr=function(Kr){var $r=si+Kr-1,Ki=an(Xn[$r].record,$r),di=mr(nr,Ki);return di.bottom-di.top},wr=mr(nr);return he.createElement(Ir,{key:si,data:oi,rowKey:nr,index:si,style:{top:-er+wr.top},extra:!0,getHeight:Cr})});return ii},yr=he.useMemo(function(){return{columnsOffset:hr}},[hr]),vr="".concat(yt,"-tbody"),Tr=sn(["body","wrapper"]),br={};return bn&&(br.position="sticky",br.bottom=0,(0,ye.Z)(bn)==="object"&&bn.offsetScroll&&(br.bottom=bn.offsetScroll)),he.createElement(Rn.Provider,{value:yr},he.createElement(Sn.Z,{fullHeight:!1,ref:Nn,prefixCls:"".concat(vr,"-virtual"),styles:{horizontalScrollBar:br},className:vr,height:Qt,itemHeight:zt||24,data:Xn,itemKey:function(cr){return an(cr.record)},component:Tr,scrollWidth:Ot,direction:It,onVirtualScroll:function(cr){var Kn,ar=cr.x;Dt({currentTarget:(Kn=Nn.current)===null||Kn===void 0?void 0:Kn.nativeElement,scrollLeft:ar})},onScroll:cn,extraRender:fr},function(kr,cr,Kn){var ar=an(kr.record,cr);return he.createElement(Ir,{data:kr,rowKey:ar,index:cr,style:Kn.style})}))}),Yr=lt(ei),Zn=Yr,dr=function(Pt,bt){var Dt=bt.ref,Zt=bt.onScroll;return he.createElement(Zn,{ref:Dt,data:Pt,onScroll:Zt})};function Nr(Ke,Pt){var bt=Ke.data,Dt=Ke.columns,Zt=Ke.scroll,Ut=Ke.sticky,pn=Ke.prefixCls,an=pn===void 0?nn:pn,qt=Ke.className,yt=Ke.listItemHeight,Ft=Ke.components,Ot=Ke.onScroll,It=Zt||{},Yt=It.x,bn=It.y;typeof Yt!="number"&&(Yt=1),typeof bn!="number"&&(bn=500);var Qt=(0,_t.zX)(function(cn,Nn){return(0,et.Z)(Ft,cn)||Nn}),zt=(0,_t.zX)(Ot),sn=he.useMemo(function(){return{sticky:Ut,scrollY:bn,listItemHeight:yt,getComponent:Qt,onScroll:zt}},[Ut,bn,yt,Qt,zt]);return he.createElement(Yn.Provider,{value:sn},he.createElement(Vn,(0,de.Z)({},Ke,{className:Je()(qt,"".concat(an,"-virtual")),scroll:(0,Le.Z)((0,Le.Z)({},Zt),{},{x:Yt}),components:(0,Le.Z)((0,Le.Z)({},Ft),{},{body:bt!=null&&bt.length?dr:void 0}),columns:Dt,internalHooks:re.R,tailor:!0,ref:Pt})))}var Zr=he.forwardRef(Nr);function Fr(Ke){return qe(Zr,Ke)}var zr=Fr(),ai=null},54451:function(rn,$t,le){"use strict";le.d($t,{g:function(){return he},v:function(){return Ce}});var re=le(33885),$e=le(75931),je=le(48736),Qe=["expandable"],Ce="RC_TABLE_INTERNAL_COL_DEFINE";function he(Ne){var Ve=Ne.expandable,we=(0,$e.Z)(Ne,Qe),de;return"expandable"in Ne?de=(0,re.Z)((0,re.Z)({},we),Ve):de=we,de.showExpandColumn===!1&&(de.expandIconColumnIndex=-1),de}},22711:function(rn,$t,le){"use strict";le.r($t),le.d($t,{ResizableTextArea:function(){return Me},default:function(){return Kt}});var re=le(54476),$e=le(20068),je=le(33885),Qe=le(94480),Ce=le(42978),he=le(75931),Ne=le(92310),Ve=le.n(Ne),we=le(36901),de=le(66003),Oe=le(30292),xe=le(18929),wt=le(59301),Xe=le(76190),Pe=le(29301),ke=le(34280),Ee=le(16089),qe=`
|
|
min-height:0 !important;
|
|
max-height:none !important;
|
|
height:0 !important;
|
|
visibility:hidden !important;
|
|
overflow:hidden !important;
|
|
position:absolute !important;
|
|
z-index:-1000 !important;
|
|
top:0 !important;
|
|
right:0 !important;
|
|
pointer-events: none !important;
|
|
`,lt=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],xt={},Ae;function me(Et){var Ct=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ft=Et.getAttribute("id")||Et.getAttribute("data-reactid")||Et.getAttribute("name");if(Ct&&xt[ft])return xt[ft];var ve=window.getComputedStyle(Et),ce=ve.getPropertyValue("box-sizing")||ve.getPropertyValue("-moz-box-sizing")||ve.getPropertyValue("-webkit-box-sizing"),Ge=parseFloat(ve.getPropertyValue("padding-bottom"))+parseFloat(ve.getPropertyValue("padding-top")),vt=parseFloat(ve.getPropertyValue("border-bottom-width"))+parseFloat(ve.getPropertyValue("border-top-width")),dt=lt.map(function(ut){return"".concat(ut,":").concat(ve.getPropertyValue(ut))}).join(";"),Te={sizingStyle:dt,paddingSize:Ge,borderSize:vt,boxSizing:ce};return Ct&&ft&&(xt[ft]=Te),Te}function Re(Et){var Ct=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ft=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,ve=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;Ae||(Ae=document.createElement("textarea"),Ae.setAttribute("tab-index","-1"),Ae.setAttribute("aria-hidden","true"),Ae.setAttribute("name","hiddenTextarea"),document.body.appendChild(Ae)),Et.getAttribute("wrap")?Ae.setAttribute("wrap",Et.getAttribute("wrap")):Ae.removeAttribute("wrap");var ce=me(Et,Ct),Ge=ce.paddingSize,vt=ce.borderSize,dt=ce.boxSizing,Te=ce.sizingStyle;Ae.setAttribute("style","".concat(Te,";").concat(qe)),Ae.value=Et.value||Et.placeholder||"";var ut=void 0,at=void 0,_t,He=Ae.scrollHeight;if(dt==="border-box"?He+=vt:dt==="content-box"&&(He-=Ge),ft!==null||ve!==null){Ae.value=" ";var De=Ae.scrollHeight-Ge;ft!==null&&(ut=De*ft,dt==="border-box"&&(ut=ut+Ge+vt),He=Math.max(ut,He)),ve!==null&&(at=De*ve,dt==="border-box"&&(at=at+Ge+vt),_t=He>at?"":"hidden",He=Math.min(at,He))}var Se={height:He,overflowY:_t,resize:"none"};return ut&&(Se.minHeight=ut),at&&(Se.maxHeight=at),Se}var We=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Nt=0,ye=1,Le=2,Ie=wt.forwardRef(function(Et,Ct){var ft=Et,ve=ft.prefixCls,ce=ft.defaultValue,Ge=ft.value,vt=ft.autoSize,dt=ft.onResize,Te=ft.className,ut=ft.style,at=ft.disabled,_t=ft.onChange,He=ft.onInternalAutoSize,De=(0,he.Z)(ft,We),Se=(0,xe.Z)(ce,{value:Ge,postState:function(un){return un!=null?un:""}}),ze=(0,Ce.Z)(Se,2),st=ze[0],Be=ze[1],it=function(un){Be(un.target.value),_t==null||_t(un)},tt=wt.useRef();wt.useImperativeHandle(Ct,function(){return{textArea:tt.current}});var Fe=wt.useMemo(function(){return vt&&(0,Xe.Z)(vt)==="object"?[vt.minRows,vt.maxRows]:[]},[vt]),pt=(0,Ce.Z)(Fe,2),Ye=pt[0],ge=pt[1],ct=!!vt,jt=function(){try{if(document.activeElement===tt.current){var un=tt.current,Lt=un.selectionStart,St=un.selectionEnd,vn=un.scrollTop;tt.current.setSelectionRange(Lt,St),tt.current.scrollTop=vn}}catch(Fn){}},Wt=wt.useState(Le),ae=(0,Ce.Z)(Wt,2),ee=ae[0],z=ae[1],ie=wt.useState(),se=(0,Ce.Z)(ie,2),ne=se[0],be=se[1],gt=function(){z(Nt)};(0,ke.Z)(function(){ct&>()},[Ge,Ye,ge,ct]),(0,ke.Z)(function(){if(ee===Nt)z(ye);else if(ee===ye){var Ht=Re(tt.current,!1,Ye,ge);z(Le),be(Ht)}else jt()},[ee]);var kt=wt.useRef(),ht=function(){Ee.Z.cancel(kt.current)},Ze=function(un){ee===Le&&(dt==null||dt(un),vt&&(ht(),kt.current=(0,Ee.Z)(function(){gt()})))};wt.useEffect(function(){return ht},[]);var Vt=ct?ne:null,Bt=(0,je.Z)((0,je.Z)({},ut),Vt);return(ee===Nt||ee===ye)&&(Bt.overflowY="hidden",Bt.overflowX="hidden"),wt.createElement(Pe.Z,{onResize:Ze,disabled:!(vt||dt)},wt.createElement("textarea",(0,re.Z)({},De,{ref:tt,style:Bt,className:Ve()(ve,Te,(0,$e.Z)({},"".concat(ve,"-disabled"),at)),disabled:at,value:st,onChange:it})))}),Me=Ie,Je=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],_e=wt.forwardRef(function(Et,Ct){var ft,ve=Et.defaultValue,ce=Et.value,Ge=Et.onFocus,vt=Et.onBlur,dt=Et.onChange,Te=Et.allowClear,ut=Et.maxLength,at=Et.onCompositionStart,_t=Et.onCompositionEnd,He=Et.suffix,De=Et.prefixCls,Se=De===void 0?"rc-textarea":De,ze=Et.showCount,st=Et.count,Be=Et.className,it=Et.style,tt=Et.disabled,Fe=Et.hidden,pt=Et.classNames,Ye=Et.styles,ge=Et.onResize,ct=Et.onClear,jt=Et.onPressEnter,Wt=Et.readOnly,ae=Et.autoSize,ee=Et.onKeyDown,z=(0,he.Z)(Et,Je),ie=(0,xe.Z)(ve,{value:ce,defaultValue:ve}),se=(0,Ce.Z)(ie,2),ne=se[0],be=se[1],gt=ne==null?"":String(ne),kt=wt.useState(!1),ht=(0,Ce.Z)(kt,2),Ze=ht[0],Vt=ht[1],Bt=wt.useRef(!1),Ht=wt.useState(null),un=(0,Ce.Z)(Ht,2),Lt=un[0],St=un[1],vn=(0,wt.useRef)(null),Fn=(0,wt.useRef)(null),Tn=function(){var gn;return(gn=Fn.current)===null||gn===void 0?void 0:gn.textArea},Un=function(){Tn().focus()};(0,wt.useImperativeHandle)(Ct,function(){var Mt;return{resizableTextArea:Fn.current,focus:Un,blur:function(){Tn().blur()},nativeElement:((Mt=vn.current)===null||Mt===void 0?void 0:Mt.nativeElement)||Tn()}}),(0,wt.useEffect)(function(){Vt(function(Mt){return!tt&&Mt})},[tt]);var tr=wt.useState(null),gr=(0,Ce.Z)(tr,2),$n=gr[0],kn=gr[1];wt.useEffect(function(){if($n){var Mt;(Mt=Tn()).setSelectionRange.apply(Mt,(0,Qe.Z)($n))}},[$n]);var pr=(0,de.Z)(st,ze),sr=(ft=pr.max)!==null&&ft!==void 0?ft:ut,Ln=Number(sr)>0,Cn=pr.strategy(gt),tn=!!sr&&Cn>sr,fn=function(gn,In){var ir=In;!Bt.current&&pr.exceedFormatter&&pr.max&&pr.strategy(In)>pr.max&&(ir=pr.exceedFormatter(In,{max:pr.max}),In!==ir&&kn([Tn().selectionStart||0,Tn().selectionEnd||0])),be(ir),(0,Oe.rJ)(gn.currentTarget,gn,dt,ir)},Tt=function(gn){Bt.current=!0,at==null||at(gn)},Jt=function(gn){Bt.current=!1,fn(gn,gn.currentTarget.value),_t==null||_t(gn)},wn=function(gn){fn(gn,gn.target.value)},En=function(gn){gn.key==="Enter"&&jt&&jt(gn),ee==null||ee(gn)},Pn=function(gn){Vt(!0),Ge==null||Ge(gn)},jn=function(gn){Vt(!1),vt==null||vt(gn)},ur=function(gn){be(""),Un(),(0,Oe.rJ)(Tn(),gn,dt)},rr=He,zn;pr.show&&(pr.showFormatter?zn=pr.showFormatter({value:gt,count:Cn,maxLength:sr}):zn="".concat(Cn).concat(Ln?" / ".concat(sr):""),rr=wt.createElement(wt.Fragment,null,rr,wt.createElement("span",{className:Ve()("".concat(Se,"-data-count"),pt==null?void 0:pt.count),style:Ye==null?void 0:Ye.count},zn)));var Gn=function(gn){var In;ge==null||ge(gn),(In=Tn())!==null&&In!==void 0&&In.style.height&&St(!0)},ln=!ae&&!ze&&!Te;return wt.createElement(we.BaseInput,{ref:vn,value:gt,allowClear:Te,handleReset:ur,suffix:rr,prefixCls:Se,classNames:(0,je.Z)((0,je.Z)({},pt),{},{affixWrapper:Ve()(pt==null?void 0:pt.affixWrapper,(0,$e.Z)((0,$e.Z)({},"".concat(Se,"-show-count"),ze),"".concat(Se,"-textarea-allow-clear"),Te))}),disabled:tt,focused:Ze,className:Ve()(Be,tn&&"".concat(Se,"-out-of-range")),style:(0,je.Z)((0,je.Z)({},it),Lt&&!ln?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof zn=="string"?zn:void 0}},hidden:Fe,readOnly:Wt,onClear:ct},wt.createElement(Me,(0,re.Z)({},z,{autoSize:ae,maxLength:ut,onKeyDown:En,onChange:wn,onFocus:Pn,onBlur:jn,onCompositionStart:Tt,onCompositionEnd:Jt,className:Ve()(pt==null?void 0:pt.textarea),style:(0,je.Z)((0,je.Z)({},Ye==null?void 0:Ye.textarea),{},{resize:it==null?void 0:it.resize}),disabled:tt,prefixCls:Se,onResize:Gn,ref:Fn,readOnly:Wt})))}),et=_e,Kt=et},639:function(rn,$t,le){"use strict";le.d($t,{Z:function(){return xt}});var re=le(54476),$e=le(20068),je=le(33885),Qe=le(42978),Ce=le(75931),he=le(59301),Ne=le(92310),Ve=le.n(Ne),we=le(26112),de=le(30699),Oe=function(me){for(var Re=me.prefixCls,We=me.level,Nt=me.isStart,ye=me.isEnd,Le="".concat(Re,"-indent-unit"),Ie=[],Me=0;Me<We;Me+=1)Ie.push(he.createElement("span",{key:Me,className:Ve()(Le,(0,$e.Z)((0,$e.Z)({},"".concat(Le,"-start"),Nt[Me]),"".concat(Le,"-end"),ye[Me]))}));return he.createElement("span",{"aria-hidden":"true",className:"".concat(Re,"-indent")},Ie)},xe=he.memo(Oe),wt=le(65065),Xe=le(34061),Pe=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],ke="open",Ee="close",qe="---",lt=function(me){var Re,We,Nt,ye=me.eventKey,Le=me.className,Ie=me.style,Me=me.dragOver,Je=me.dragOverGapTop,_e=me.dragOverGapBottom,et=me.isLeaf,Kt=me.isStart,Et=me.isEnd,Ct=me.expanded,ft=me.selected,ve=me.checked,ce=me.halfChecked,Ge=me.loading,vt=me.domRef,dt=me.active,Te=me.data,ut=me.onMouseMove,at=me.selectable,_t=(0,Ce.Z)(me,Pe),He=he.useContext(de.k),De=he.useContext(de.y),Se=he.useRef(null),ze=he.useState(!1),st=(0,Qe.Z)(ze,2),Be=st[0],it=st[1],tt=!!(He.disabled||me.disabled||(Re=De.nodeDisabled)!==null&&Re!==void 0&&Re.call(De,Te)),Fe=he.useMemo(function(){return!He.checkable||me.checkable===!1?!1:He.checkable},[He.checkable,me.checkable]),pt=function(Cn){tt||He.onNodeSelect(Cn,(0,Xe.F)(me))},Ye=function(Cn){tt||!Fe||me.disableCheckbox||He.onNodeCheck(Cn,(0,Xe.F)(me),!ve)},ge=he.useMemo(function(){return typeof at=="boolean"?at:He.selectable},[at,He.selectable]),ct=function(Cn){He.onNodeClick(Cn,(0,Xe.F)(me)),ge?pt(Cn):Ye(Cn)},jt=function(Cn){He.onNodeDoubleClick(Cn,(0,Xe.F)(me))},Wt=function(Cn){He.onNodeMouseEnter(Cn,(0,Xe.F)(me))},ae=function(Cn){He.onNodeMouseLeave(Cn,(0,Xe.F)(me))},ee=function(Cn){He.onNodeContextMenu(Cn,(0,Xe.F)(me))},z=he.useMemo(function(){return!!(He.draggable&&(!He.draggable.nodeDraggable||He.draggable.nodeDraggable(Te)))},[He.draggable,Te]),ie=function(Cn){Cn.stopPropagation(),it(!0),He.onNodeDragStart(Cn,me);try{Cn.dataTransfer.setData("text/plain","")}catch(tn){}},se=function(Cn){Cn.preventDefault(),Cn.stopPropagation(),He.onNodeDragEnter(Cn,me)},ne=function(Cn){Cn.preventDefault(),Cn.stopPropagation(),He.onNodeDragOver(Cn,me)},be=function(Cn){Cn.stopPropagation(),He.onNodeDragLeave(Cn,me)},gt=function(Cn){Cn.stopPropagation(),it(!1),He.onNodeDragEnd(Cn,me)},kt=function(Cn){Cn.preventDefault(),Cn.stopPropagation(),it(!1),He.onNodeDrop(Cn,me)},ht=function(Cn){Ge||He.onNodeExpand(Cn,(0,Xe.F)(me))},Ze=he.useMemo(function(){var Ln=(0,wt.Z)(He.keyEntities,ye)||{},Cn=Ln.children;return!!(Cn||[]).length},[He.keyEntities,ye]),Vt=he.useMemo(function(){return et===!1?!1:et||!He.loadData&&!Ze||He.loadData&&me.loaded&&!Ze},[et,He.loadData,Ze,me.loaded]);he.useEffect(function(){Ge||typeof He.loadData=="function"&&Ct&&!Vt&&!me.loaded&&He.onNodeLoad((0,Xe.F)(me))},[Ge,He.loadData,He.onNodeLoad,Ct,Vt,me]);var Bt=he.useMemo(function(){var Ln;return(Ln=He.draggable)!==null&&Ln!==void 0&&Ln.icon?he.createElement("span",{className:"".concat(He.prefixCls,"-draggable-icon")},He.draggable.icon):null},[He.draggable]),Ht=function(Cn){var tn=me.switcherIcon||He.switcherIcon;return typeof tn=="function"?tn((0,je.Z)((0,je.Z)({},me),{},{isLeaf:Cn})):tn},un=function(){if(Vt){var Cn=Ht(!0);return Cn!==!1?he.createElement("span",{className:Ve()("".concat(He.prefixCls,"-switcher"),"".concat(He.prefixCls,"-switcher-noop"))},Cn):null}var tn=Ht(!1);return tn!==!1?he.createElement("span",{onClick:ht,className:Ve()("".concat(He.prefixCls,"-switcher"),"".concat(He.prefixCls,"-switcher_").concat(Ct?ke:Ee))},tn):null},Lt=he.useMemo(function(){if(!Fe)return null;var Ln=typeof Fe!="boolean"?Fe:null;return he.createElement("span",{className:Ve()("".concat(He.prefixCls,"-checkbox"),(0,$e.Z)((0,$e.Z)((0,$e.Z)({},"".concat(He.prefixCls,"-checkbox-checked"),ve),"".concat(He.prefixCls,"-checkbox-indeterminate"),!ve&&ce),"".concat(He.prefixCls,"-checkbox-disabled"),tt||me.disableCheckbox)),onClick:Ye,role:"checkbox","aria-checked":ce?"mixed":ve,"aria-disabled":tt||me.disableCheckbox,"aria-label":"Select ".concat(typeof me.title=="string"?me.title:"tree node")},Ln)},[Fe,ve,ce,tt,me.disableCheckbox,me.title]),St=he.useMemo(function(){return Vt?null:Ct?ke:Ee},[Vt,Ct]),vn=he.useMemo(function(){return he.createElement("span",{className:Ve()("".concat(He.prefixCls,"-iconEle"),"".concat(He.prefixCls,"-icon__").concat(St||"docu"),(0,$e.Z)({},"".concat(He.prefixCls,"-icon_loading"),Ge))})},[He.prefixCls,St,Ge]),Fn=he.useMemo(function(){var Ln=!!He.draggable,Cn=!me.disabled&&Ln&&He.dragOverNodeKey===ye;return Cn?He.dropIndicatorRender({dropPosition:He.dropPosition,dropLevelOffset:He.dropLevelOffset,indent:He.indent,prefixCls:He.prefixCls,direction:He.direction}):null},[He.dropPosition,He.dropLevelOffset,He.indent,He.prefixCls,He.direction,He.draggable,He.dragOverNodeKey,He.dropIndicatorRender]),Tn=he.useMemo(function(){var Ln=me.title,Cn=Ln===void 0?qe:Ln,tn="".concat(He.prefixCls,"-node-content-wrapper"),fn;if(He.showIcon){var Tt=me.icon||He.icon;fn=Tt?he.createElement("span",{className:Ve()("".concat(He.prefixCls,"-iconEle"),"".concat(He.prefixCls,"-icon__customize"))},typeof Tt=="function"?Tt(me):Tt):vn}else He.loadData&&Ge&&(fn=vn);var Jt;return typeof Cn=="function"?Jt=Cn(Te):He.titleRender?Jt=He.titleRender(Te):Jt=Cn,he.createElement("span",{ref:Se,title:typeof Cn=="string"?Cn:"",className:Ve()(tn,"".concat(tn,"-").concat(St||"normal"),(0,$e.Z)({},"".concat(He.prefixCls,"-node-selected"),!tt&&(ft||Be))),onMouseEnter:Wt,onMouseLeave:ae,onContextMenu:ee,onClick:ct,onDoubleClick:jt},fn,he.createElement("span",{className:"".concat(He.prefixCls,"-title")},Jt),Fn)},[He.prefixCls,He.showIcon,me,He.icon,vn,He.titleRender,Te,St,Wt,ae,ee,ct,jt]),Un=(0,we.Z)(_t,{aria:!0,data:!0}),tr=(0,wt.Z)(He.keyEntities,ye)||{},gr=tr.level,$n=Et[Et.length-1],kn=!tt&&z,pr=He.draggingNodeKey===ye,sr=at!==void 0?{"aria-selected":!!at}:void 0;return he.createElement("div",(0,re.Z)({ref:vt,role:"treeitem","aria-expanded":et?void 0:Ct,className:Ve()(Le,"".concat(He.prefixCls,"-treenode"),(Nt={},(0,$e.Z)((0,$e.Z)((0,$e.Z)((0,$e.Z)((0,$e.Z)((0,$e.Z)((0,$e.Z)((0,$e.Z)((0,$e.Z)((0,$e.Z)(Nt,"".concat(He.prefixCls,"-treenode-disabled"),tt),"".concat(He.prefixCls,"-treenode-switcher-").concat(Ct?"open":"close"),!et),"".concat(He.prefixCls,"-treenode-checkbox-checked"),ve),"".concat(He.prefixCls,"-treenode-checkbox-indeterminate"),ce),"".concat(He.prefixCls,"-treenode-selected"),ft),"".concat(He.prefixCls,"-treenode-loading"),Ge),"".concat(He.prefixCls,"-treenode-active"),dt),"".concat(He.prefixCls,"-treenode-leaf-last"),$n),"".concat(He.prefixCls,"-treenode-draggable"),z),"dragging",pr),(0,$e.Z)((0,$e.Z)((0,$e.Z)((0,$e.Z)((0,$e.Z)((0,$e.Z)((0,$e.Z)(Nt,"drop-target",He.dropTargetKey===ye),"drop-container",He.dropContainerKey===ye),"drag-over",!tt&&Me),"drag-over-gap-top",!tt&&Je),"drag-over-gap-bottom",!tt&&_e),"filter-node",(We=He.filterTreeNode)===null||We===void 0?void 0:We.call(He,(0,Xe.F)(me))),"".concat(He.prefixCls,"-treenode-leaf"),Vt))),style:Ie,draggable:kn,onDragStart:kn?ie:void 0,onDragEnter:z?se:void 0,onDragOver:z?ne:void 0,onDragLeave:z?be:void 0,onDrop:z?kt:void 0,onDragEnd:z?gt:void 0,onMouseMove:ut},sr,Un),he.createElement(xe,{prefixCls:He.prefixCls,level:gr,isStart:Kt,isEnd:Et}),Bt,un(),Lt,Tn)};lt.isTreeNode=1;var xt=lt},30699:function(rn,$t,le){"use strict";le.d($t,{k:function(){return $e},y:function(){return je}});var re=le(59301),$e=re.createContext(null),je=re.createContext({})},3741:function(rn,$t,le){"use strict";le.d($t,{OF:function(){return ye.Z},y6:function(){return Ee.y},ZP:function(){return tt}});var re=le(54476),$e=le(76190),je=le(33885),Qe=le(94480),Ce=le(67732),he=le(83652),Ne=le(31226),Ve=le(42403),we=le(158),de=le(20068),Oe=le(92310),xe=le.n(Oe),wt=le(10228),Xe=le(26112),Pe=le(48736),ke=le(59301),Ee=le(30699),qe=function(pt){var Ye=pt.dropPosition,ge=pt.dropLevelOffset,ct=pt.indent,jt={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(Ye){case-1:jt.top=0,jt.left=-ge*ct;break;case 1:jt.bottom=0,jt.left=-ge*ct;break;case 0:jt.bottom=0,jt.left=ct;break}return ke.createElement("div",{style:jt})},lt=qe;function xt(Fe){if(Fe==null)throw new TypeError("Cannot destructure "+Fe)}var Ae=le(42978),me=le(75931),Re=le(34280),We=le(48911),Nt=le(77900),ye=le(639);function Le(Fe,pt){var Ye=ke.useState(!1),ge=(0,Ae.Z)(Ye,2),ct=ge[0],jt=ge[1];(0,Re.Z)(function(){if(ct)return Fe(),function(){pt()}},[ct]),(0,Re.Z)(function(){return jt(!0),function(){jt(!1)}},[])}var Ie=Le,Me=le(34061),Je=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],_e=ke.forwardRef(function(Fe,pt){var Ye=Fe.className,ge=Fe.style,ct=Fe.motion,jt=Fe.motionNodes,Wt=Fe.motionType,ae=Fe.onMotionStart,ee=Fe.onMotionEnd,z=Fe.active,ie=Fe.treeNodeRequiredProps,se=(0,me.Z)(Fe,Je),ne=ke.useState(!0),be=(0,Ae.Z)(ne,2),gt=be[0],kt=be[1],ht=ke.useContext(Ee.k),Ze=ht.prefixCls,Vt=jt&&Wt!=="hide";(0,Re.Z)(function(){jt&&Vt!==gt&&kt(Vt)},[jt]);var Bt=function(){jt&&ae()},Ht=ke.useRef(!1),un=function(){jt&&!Ht.current&&(Ht.current=!0,ee())};Ie(Bt,un);var Lt=function(vn){Vt===vn&&un()};return jt?ke.createElement(Nt.default,(0,re.Z)({ref:pt,visible:gt},ct,{motionAppear:Wt==="show",onVisibleChanged:Lt}),function(St,vn){var Fn=St.className,Tn=St.style;return ke.createElement("div",{ref:vn,className:xe()("".concat(Ze,"-treenode-motion"),Fn),style:Tn},jt.map(function(Un){var tr=Object.assign({},(xt(Un.data),Un.data)),gr=Un.title,$n=Un.key,kn=Un.isStart,pr=Un.isEnd;delete tr.children;var sr=(0,Me.H8)($n,ie);return ke.createElement(ye.Z,(0,re.Z)({},tr,sr,{title:gr,active:z,data:Un.data,key:$n,isStart:kn,isEnd:pr}))}))}):ke.createElement(ye.Z,(0,re.Z)({domRef:pt,className:Ye,style:ge},se,{active:z}))}),et=_e;function Kt(){var Fe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],pt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Ye=Fe.length,ge=pt.length;if(Math.abs(Ye-ge)!==1)return{add:!1,key:null};function ct(jt,Wt){var ae=new Map;jt.forEach(function(z){ae.set(z,!0)});var ee=Wt.filter(function(z){return!ae.has(z)});return ee.length===1?ee[0]:null}return Ye<ge?{add:!0,key:ct(Fe,pt)}:{add:!1,key:ct(pt,Fe)}}function Et(Fe,pt,Ye){var ge=Fe.findIndex(function(ae){return ae.key===Ye}),ct=Fe[ge+1],jt=pt.findIndex(function(ae){return ae.key===Ye});if(ct){var Wt=pt.findIndex(function(ae){return ae.key===ct.key});return pt.slice(jt+1,Wt)}return pt.slice(jt+1)}var Ct=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","scrollWidth","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],ft={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},ve=function(){},ce="RC_TREE_MOTION_".concat(Math.random()),Ge={key:ce},vt={key:ce,level:0,index:0,pos:"0",node:Ge,nodes:[Ge]},dt={parent:null,children:[],pos:vt.pos,data:Ge,title:null,key:ce,isStart:[],isEnd:[]};function Te(Fe,pt,Ye,ge){return pt===!1||!Ye?Fe:Fe.slice(0,Math.ceil(Ye/ge)+1)}function ut(Fe){var pt=Fe.key,Ye=Fe.pos;return(0,Me.km)(pt,Ye)}function at(Fe){for(var pt=String(Fe.data.key),Ye=Fe;Ye.parent;)Ye=Ye.parent,pt="".concat(Ye.data.key," > ").concat(pt);return pt}var _t=ke.forwardRef(function(Fe,pt){var Ye=Fe.prefixCls,ge=Fe.data,ct=Fe.selectable,jt=Fe.checkable,Wt=Fe.expandedKeys,ae=Fe.selectedKeys,ee=Fe.checkedKeys,z=Fe.loadedKeys,ie=Fe.loadingKeys,se=Fe.halfCheckedKeys,ne=Fe.keyEntities,be=Fe.disabled,gt=Fe.dragging,kt=Fe.dragOverNodeKey,ht=Fe.dropPosition,Ze=Fe.motion,Vt=Fe.height,Bt=Fe.itemHeight,Ht=Fe.virtual,un=Fe.scrollWidth,Lt=Fe.focusable,St=Fe.activeItem,vn=Fe.focused,Fn=Fe.tabIndex,Tn=Fe.onKeyDown,Un=Fe.onFocus,tr=Fe.onBlur,gr=Fe.onActiveChange,$n=Fe.onListChangeStart,kn=Fe.onListChangeEnd,pr=(0,me.Z)(Fe,Ct),sr=ke.useRef(null),Ln=ke.useRef(null);ke.useImperativeHandle(pt,function(){return{scrollTo:function(mn){sr.current.scrollTo(mn)},getIndentWidth:function(){return Ln.current.offsetWidth}}});var Cn=ke.useState(Wt),tn=(0,Ae.Z)(Cn,2),fn=tn[0],Tt=tn[1],Jt=ke.useState(ge),wn=(0,Ae.Z)(Jt,2),En=wn[0],Pn=wn[1],jn=ke.useState(ge),ur=(0,Ae.Z)(jn,2),rr=ur[0],zn=ur[1],Gn=ke.useState([]),ln=(0,Ae.Z)(Gn,2),Mt=ln[0],gn=ln[1],In=ke.useState(null),ir=(0,Ae.Z)(In,2),nt=ir[0],ot=ir[1],dn=ke.useRef(ge);dn.current=ge;function Xt(){var hn=dn.current;Pn(hn),zn(hn),gn([]),ot(null),kn()}(0,Re.Z)(function(){Tt(Wt);var hn=Kt(fn,Wt);if(hn.key!==null)if(hn.add){var mn=En.findIndex(function(Mn){var _n=Mn.key;return _n===hn.key}),Dn=Te(Et(En,ge,hn.key),Ht,Vt,Bt),yn=En.slice();yn.splice(mn+1,0,dt),zn(yn),gn(Dn),ot("show")}else{var An=ge.findIndex(function(Mn){var _n=Mn.key;return _n===hn.key}),nn=Te(Et(ge,En,hn.key),Ht,Vt,Bt),Gt=ge.slice();Gt.splice(An+1,0,dt),zn(Gt),gn(nn),ot("hide")}else En!==ge&&(Pn(ge),zn(ge))},[Wt,ge]),ke.useEffect(function(){gt||Xt()},[gt]);var mt=Ze?rr:ge,en={expandedKeys:Wt,selectedKeys:ae,loadedKeys:z,loadingKeys:ie,checkedKeys:ee,halfCheckedKeys:se,dragOverNodeKey:kt,dropPosition:ht,keyEntities:ne};return ke.createElement(ke.Fragment,null,vn&&St&&ke.createElement("span",{style:ft,"aria-live":"assertive"},at(St)),ke.createElement("div",null,ke.createElement("input",{style:ft,disabled:Lt===!1||be,tabIndex:Lt!==!1?Fn:null,onKeyDown:Tn,onFocus:Un,onBlur:tr,value:"",onChange:ve,"aria-label":"for screen reader"})),ke.createElement("div",{className:"".concat(Ye,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},ke.createElement("div",{className:"".concat(Ye,"-indent")},ke.createElement("div",{ref:Ln,className:"".concat(Ye,"-indent-unit")}))),ke.createElement(We.Z,(0,re.Z)({},pr,{data:mt,itemKey:ut,height:Vt,fullHeight:!1,virtual:Ht,itemHeight:Bt,scrollWidth:un,prefixCls:"".concat(Ye,"-list"),ref:sr,role:"tree",onVisibleChange:function(mn){mn.every(function(Dn){return ut(Dn)!==ce})&&Xt()}}),function(hn){var mn=hn.pos,Dn=Object.assign({},(xt(hn.data),hn.data)),yn=hn.title,An=hn.key,nn=hn.isStart,Gt=hn.isEnd,Mn=(0,Me.km)(An,mn);delete Dn.key,delete Dn.children;var _n=(0,Me.H8)(Mn,en);return ke.createElement(et,(0,re.Z)({},Dn,_n,{title:yn,active:!!St&&An===St.key,pos:mn,data:hn.data,isStart:nn,isEnd:Gt,motion:Ze,motionNodes:An===ce?Mt:null,motionType:nt,onMotionStart:$n,onMotionEnd:Xt,treeNodeRequiredProps:en,onMouseMove:function(){gr(null)}}))}))}),He=_t,De=le(82661),Se=le(34643),ze=le(65065),st=10,Be=function(Fe){(0,Ve.Z)(Ye,Fe);var pt=(0,we.Z)(Ye);function Ye(){var ge;(0,Ce.Z)(this,Ye);for(var ct=arguments.length,jt=new Array(ct),Wt=0;Wt<ct;Wt++)jt[Wt]=arguments[Wt];return ge=pt.call.apply(pt,[this].concat(jt)),(0,de.Z)((0,Ne.Z)(ge),"destroyed",!1),(0,de.Z)((0,Ne.Z)(ge),"delayedDragEnterLogic",void 0),(0,de.Z)((0,Ne.Z)(ge),"loadingRetryTimes",{}),(0,de.Z)((0,Ne.Z)(ge),"state",{keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null,fieldNames:(0,Me.w$)()}),(0,de.Z)((0,Ne.Z)(ge),"dragStartMousePosition",null),(0,de.Z)((0,Ne.Z)(ge),"dragNodeProps",null),(0,de.Z)((0,Ne.Z)(ge),"currentMouseOverDroppableNodeKey",null),(0,de.Z)((0,Ne.Z)(ge),"listRef",ke.createRef()),(0,de.Z)((0,Ne.Z)(ge),"onNodeDragStart",function(ae,ee){var z=ge.state,ie=z.expandedKeys,se=z.keyEntities,ne=ge.props.onDragStart,be=ee.eventKey;ge.dragNodeProps=ee,ge.dragStartMousePosition={x:ae.clientX,y:ae.clientY};var gt=(0,De._5)(ie,be);ge.setState({draggingNodeKey:be,dragChildrenKeys:(0,De.wA)(be,se),indent:ge.listRef.current.getIndentWidth()}),ge.setExpandedKeys(gt),window.addEventListener("dragend",ge.onWindowDragEnd),ne==null||ne({event:ae,node:(0,Me.F)(ee)})}),(0,de.Z)((0,Ne.Z)(ge),"onNodeDragEnter",function(ae,ee){var z=ge.state,ie=z.expandedKeys,se=z.keyEntities,ne=z.dragChildrenKeys,be=z.flattenNodes,gt=z.indent,kt=ge.props,ht=kt.onDragEnter,Ze=kt.onExpand,Vt=kt.allowDrop,Bt=kt.direction,Ht=ee.pos,un=ee.eventKey;if(ge.currentMouseOverDroppableNodeKey!==un&&(ge.currentMouseOverDroppableNodeKey=un),!ge.dragNodeProps){ge.resetDragState();return}var Lt=(0,De.OM)(ae,ge.dragNodeProps,ee,gt,ge.dragStartMousePosition,Vt,be,se,ie,Bt),St=Lt.dropPosition,vn=Lt.dropLevelOffset,Fn=Lt.dropTargetKey,Tn=Lt.dropContainerKey,Un=Lt.dropTargetPos,tr=Lt.dropAllowed,gr=Lt.dragOverNodeKey;if(ne.includes(Fn)||!tr){ge.resetDragState();return}if(ge.delayedDragEnterLogic||(ge.delayedDragEnterLogic={}),Object.keys(ge.delayedDragEnterLogic).forEach(function($n){clearTimeout(ge.delayedDragEnterLogic[$n])}),ge.dragNodeProps.eventKey!==ee.eventKey&&(ae.persist(),ge.delayedDragEnterLogic[Ht]=window.setTimeout(function(){if(ge.state.draggingNodeKey!==null){var $n=(0,Qe.Z)(ie),kn=(0,ze.Z)(se,ee.eventKey);kn&&(kn.children||[]).length&&($n=(0,De.L0)(ie,ee.eventKey)),ge.props.hasOwnProperty("expandedKeys")||ge.setExpandedKeys($n),Ze==null||Ze($n,{node:(0,Me.F)(ee),expanded:!0,nativeEvent:ae.nativeEvent})}},800)),ge.dragNodeProps.eventKey===Fn&&vn===0){ge.resetDragState();return}ge.setState({dragOverNodeKey:gr,dropPosition:St,dropLevelOffset:vn,dropTargetKey:Fn,dropContainerKey:Tn,dropTargetPos:Un,dropAllowed:tr}),ht==null||ht({event:ae,node:(0,Me.F)(ee),expandedKeys:ie})}),(0,de.Z)((0,Ne.Z)(ge),"onNodeDragOver",function(ae,ee){var z=ge.state,ie=z.dragChildrenKeys,se=z.flattenNodes,ne=z.keyEntities,be=z.expandedKeys,gt=z.indent,kt=ge.props,ht=kt.onDragOver,Ze=kt.allowDrop,Vt=kt.direction;if(ge.dragNodeProps){var Bt=(0,De.OM)(ae,ge.dragNodeProps,ee,gt,ge.dragStartMousePosition,Ze,se,ne,be,Vt),Ht=Bt.dropPosition,un=Bt.dropLevelOffset,Lt=Bt.dropTargetKey,St=Bt.dropContainerKey,vn=Bt.dropTargetPos,Fn=Bt.dropAllowed,Tn=Bt.dragOverNodeKey;ie.includes(Lt)||!Fn||(ge.dragNodeProps.eventKey===Lt&&un===0?ge.state.dropPosition===null&&ge.state.dropLevelOffset===null&&ge.state.dropTargetKey===null&&ge.state.dropContainerKey===null&&ge.state.dropTargetPos===null&&ge.state.dropAllowed===!1&&ge.state.dragOverNodeKey===null||ge.resetDragState():Ht===ge.state.dropPosition&&un===ge.state.dropLevelOffset&&Lt===ge.state.dropTargetKey&&St===ge.state.dropContainerKey&&vn===ge.state.dropTargetPos&&Fn===ge.state.dropAllowed&&Tn===ge.state.dragOverNodeKey||ge.setState({dropPosition:Ht,dropLevelOffset:un,dropTargetKey:Lt,dropContainerKey:St,dropTargetPos:vn,dropAllowed:Fn,dragOverNodeKey:Tn}),ht==null||ht({event:ae,node:(0,Me.F)(ee)}))}}),(0,de.Z)((0,Ne.Z)(ge),"onNodeDragLeave",function(ae,ee){ge.currentMouseOverDroppableNodeKey===ee.eventKey&&!ae.currentTarget.contains(ae.relatedTarget)&&(ge.resetDragState(),ge.currentMouseOverDroppableNodeKey=null);var z=ge.props.onDragLeave;z==null||z({event:ae,node:(0,Me.F)(ee)})}),(0,de.Z)((0,Ne.Z)(ge),"onWindowDragEnd",function(ae){ge.onNodeDragEnd(ae,null,!0),window.removeEventListener("dragend",ge.onWindowDragEnd)}),(0,de.Z)((0,Ne.Z)(ge),"onNodeDragEnd",function(ae,ee){var z=ge.props.onDragEnd;ge.setState({dragOverNodeKey:null}),ge.cleanDragState(),z==null||z({event:ae,node:(0,Me.F)(ee)}),ge.dragNodeProps=null,window.removeEventListener("dragend",ge.onWindowDragEnd)}),(0,de.Z)((0,Ne.Z)(ge),"onNodeDrop",function(ae,ee){var z,ie=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,se=ge.state,ne=se.dragChildrenKeys,be=se.dropPosition,gt=se.dropTargetKey,kt=se.dropTargetPos,ht=se.dropAllowed;if(ht){var Ze=ge.props.onDrop;if(ge.setState({dragOverNodeKey:null}),ge.cleanDragState(),gt!==null){var Vt=(0,je.Z)((0,je.Z)({},(0,Me.H8)(gt,ge.getTreeNodeRequiredProps())),{},{active:((z=ge.getActiveItem())===null||z===void 0?void 0:z.key)===gt,data:(0,ze.Z)(ge.state.keyEntities,gt).node}),Bt=ne.includes(gt);(0,Pe.ZP)(!Bt,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var Ht=(0,De.yx)(kt),un={event:ae,node:(0,Me.F)(Vt),dragNode:ge.dragNodeProps?(0,Me.F)(ge.dragNodeProps):null,dragNodesKeys:[ge.dragNodeProps.eventKey].concat(ne),dropToGap:be!==0,dropPosition:be+Number(Ht[Ht.length-1])};ie||Ze==null||Ze(un),ge.dragNodeProps=null}}}),(0,de.Z)((0,Ne.Z)(ge),"cleanDragState",function(){var ae=ge.state.draggingNodeKey;ae!==null&&ge.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),ge.dragStartMousePosition=null,ge.currentMouseOverDroppableNodeKey=null}),(0,de.Z)((0,Ne.Z)(ge),"triggerExpandActionExpand",function(ae,ee){var z=ge.state,ie=z.expandedKeys,se=z.flattenNodes,ne=ee.expanded,be=ee.key,gt=ee.isLeaf;if(!(gt||ae.shiftKey||ae.metaKey||ae.ctrlKey)){var kt=se.filter(function(Ze){return Ze.key===be})[0],ht=(0,Me.F)((0,je.Z)((0,je.Z)({},(0,Me.H8)(be,ge.getTreeNodeRequiredProps())),{},{data:kt.data}));ge.setExpandedKeys(ne?(0,De._5)(ie,be):(0,De.L0)(ie,be)),ge.onNodeExpand(ae,ht)}}),(0,de.Z)((0,Ne.Z)(ge),"onNodeClick",function(ae,ee){var z=ge.props,ie=z.onClick,se=z.expandAction;se==="click"&&ge.triggerExpandActionExpand(ae,ee),ie==null||ie(ae,ee)}),(0,de.Z)((0,Ne.Z)(ge),"onNodeDoubleClick",function(ae,ee){var z=ge.props,ie=z.onDoubleClick,se=z.expandAction;se==="doubleClick"&&ge.triggerExpandActionExpand(ae,ee),ie==null||ie(ae,ee)}),(0,de.Z)((0,Ne.Z)(ge),"onNodeSelect",function(ae,ee){var z=ge.state.selectedKeys,ie=ge.state,se=ie.keyEntities,ne=ie.fieldNames,be=ge.props,gt=be.onSelect,kt=be.multiple,ht=ee.selected,Ze=ee[ne.key],Vt=!ht;Vt?kt?z=(0,De.L0)(z,Ze):z=[Ze]:z=(0,De._5)(z,Ze);var Bt=z.map(function(Ht){var un=(0,ze.Z)(se,Ht);return un?un.node:null}).filter(Boolean);ge.setUncontrolledState({selectedKeys:z}),gt==null||gt(z,{event:"select",selected:Vt,node:ee,selectedNodes:Bt,nativeEvent:ae.nativeEvent})}),(0,de.Z)((0,Ne.Z)(ge),"onNodeCheck",function(ae,ee,z){var ie=ge.state,se=ie.keyEntities,ne=ie.checkedKeys,be=ie.halfCheckedKeys,gt=ge.props,kt=gt.checkStrictly,ht=gt.onCheck,Ze=ee.key,Vt,Bt={event:"check",node:ee,checked:z,nativeEvent:ae.nativeEvent};if(kt){var Ht=z?(0,De.L0)(ne,Ze):(0,De._5)(ne,Ze),un=(0,De._5)(be,Ze);Vt={checked:Ht,halfChecked:un},Bt.checkedNodes=Ht.map(function(Un){return(0,ze.Z)(se,Un)}).filter(Boolean).map(function(Un){return Un.node}),ge.setUncontrolledState({checkedKeys:Ht})}else{var Lt=(0,Se.S)([].concat((0,Qe.Z)(ne),[Ze]),!0,se),St=Lt.checkedKeys,vn=Lt.halfCheckedKeys;if(!z){var Fn=new Set(St);Fn.delete(Ze);var Tn=(0,Se.S)(Array.from(Fn),{checked:!1,halfCheckedKeys:vn},se);St=Tn.checkedKeys,vn=Tn.halfCheckedKeys}Vt=St,Bt.checkedNodes=[],Bt.checkedNodesPositions=[],Bt.halfCheckedKeys=vn,St.forEach(function(Un){var tr=(0,ze.Z)(se,Un);if(tr){var gr=tr.node,$n=tr.pos;Bt.checkedNodes.push(gr),Bt.checkedNodesPositions.push({node:gr,pos:$n})}}),ge.setUncontrolledState({checkedKeys:St},!1,{halfCheckedKeys:vn})}ht==null||ht(Vt,Bt)}),(0,de.Z)((0,Ne.Z)(ge),"onNodeLoad",function(ae){var ee,z=ae.key,ie=ge.state.keyEntities,se=(0,ze.Z)(ie,z);if(!(se!=null&&(ee=se.children)!==null&&ee!==void 0&&ee.length)){var ne=new Promise(function(be,gt){ge.setState(function(kt){var ht=kt.loadedKeys,Ze=ht===void 0?[]:ht,Vt=kt.loadingKeys,Bt=Vt===void 0?[]:Vt,Ht=ge.props,un=Ht.loadData,Lt=Ht.onLoad;if(!un||Ze.includes(z)||Bt.includes(z))return null;var St=un(ae);return St.then(function(){var vn=ge.state.loadedKeys,Fn=(0,De.L0)(vn,z);Lt==null||Lt(Fn,{event:"load",node:ae}),ge.setUncontrolledState({loadedKeys:Fn}),ge.setState(function(Tn){return{loadingKeys:(0,De._5)(Tn.loadingKeys,z)}}),be()}).catch(function(vn){if(ge.setState(function(Tn){return{loadingKeys:(0,De._5)(Tn.loadingKeys,z)}}),ge.loadingRetryTimes[z]=(ge.loadingRetryTimes[z]||0)+1,ge.loadingRetryTimes[z]>=st){var Fn=ge.state.loadedKeys;(0,Pe.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),ge.setUncontrolledState({loadedKeys:(0,De.L0)(Fn,z)}),be()}gt(vn)}),{loadingKeys:(0,De.L0)(Bt,z)}})});return ne.catch(function(){}),ne}}),(0,de.Z)((0,Ne.Z)(ge),"onNodeMouseEnter",function(ae,ee){var z=ge.props.onMouseEnter;z==null||z({event:ae,node:ee})}),(0,de.Z)((0,Ne.Z)(ge),"onNodeMouseLeave",function(ae,ee){var z=ge.props.onMouseLeave;z==null||z({event:ae,node:ee})}),(0,de.Z)((0,Ne.Z)(ge),"onNodeContextMenu",function(ae,ee){var z=ge.props.onRightClick;z&&(ae.preventDefault(),z({event:ae,node:ee}))}),(0,de.Z)((0,Ne.Z)(ge),"onFocus",function(){var ae=ge.props.onFocus;ge.setState({focused:!0});for(var ee=arguments.length,z=new Array(ee),ie=0;ie<ee;ie++)z[ie]=arguments[ie];ae==null||ae.apply(void 0,z)}),(0,de.Z)((0,Ne.Z)(ge),"onBlur",function(){var ae=ge.props.onBlur;ge.setState({focused:!1}),ge.onActiveChange(null);for(var ee=arguments.length,z=new Array(ee),ie=0;ie<ee;ie++)z[ie]=arguments[ie];ae==null||ae.apply(void 0,z)}),(0,de.Z)((0,Ne.Z)(ge),"getTreeNodeRequiredProps",function(){var ae=ge.state,ee=ae.expandedKeys,z=ae.selectedKeys,ie=ae.loadedKeys,se=ae.loadingKeys,ne=ae.checkedKeys,be=ae.halfCheckedKeys,gt=ae.dragOverNodeKey,kt=ae.dropPosition,ht=ae.keyEntities;return{expandedKeys:ee||[],selectedKeys:z||[],loadedKeys:ie||[],loadingKeys:se||[],checkedKeys:ne||[],halfCheckedKeys:be||[],dragOverNodeKey:gt,dropPosition:kt,keyEntities:ht}}),(0,de.Z)((0,Ne.Z)(ge),"setExpandedKeys",function(ae){var ee=ge.state,z=ee.treeData,ie=ee.fieldNames,se=(0,Me.oH)(z,ae,ie);ge.setUncontrolledState({expandedKeys:ae,flattenNodes:se},!0)}),(0,de.Z)((0,Ne.Z)(ge),"onNodeExpand",function(ae,ee){var z=ge.state.expandedKeys,ie=ge.state,se=ie.listChanging,ne=ie.fieldNames,be=ge.props,gt=be.onExpand,kt=be.loadData,ht=ee.expanded,Ze=ee[ne.key];if(!se){var Vt=z.includes(Ze),Bt=!ht;if((0,Pe.ZP)(ht&&Vt||!ht&&!Vt,"Expand state not sync with index check"),z=Bt?(0,De.L0)(z,Ze):(0,De._5)(z,Ze),ge.setExpandedKeys(z),gt==null||gt(z,{node:ee,expanded:Bt,nativeEvent:ae.nativeEvent}),Bt&&kt){var Ht=ge.onNodeLoad(ee);Ht&&Ht.then(function(){var un=(0,Me.oH)(ge.state.treeData,z,ne);ge.setUncontrolledState({flattenNodes:un})}).catch(function(){var un=ge.state.expandedKeys,Lt=(0,De._5)(un,Ze);ge.setExpandedKeys(Lt)})}}}),(0,de.Z)((0,Ne.Z)(ge),"onListChangeStart",function(){ge.setUncontrolledState({listChanging:!0})}),(0,de.Z)((0,Ne.Z)(ge),"onListChangeEnd",function(){setTimeout(function(){ge.setUncontrolledState({listChanging:!1})})}),(0,de.Z)((0,Ne.Z)(ge),"onActiveChange",function(ae){var ee=ge.state.activeKey,z=ge.props,ie=z.onActiveChange,se=z.itemScrollOffset,ne=se===void 0?0:se;ee!==ae&&(ge.setState({activeKey:ae}),ae!==null&&ge.scrollTo({key:ae,offset:ne}),ie==null||ie(ae))}),(0,de.Z)((0,Ne.Z)(ge),"getActiveItem",function(){var ae=ge.state,ee=ae.activeKey,z=ae.flattenNodes;return ee===null?null:z.find(function(ie){var se=ie.key;return se===ee})||null}),(0,de.Z)((0,Ne.Z)(ge),"offsetActiveKey",function(ae){var ee=ge.state,z=ee.flattenNodes,ie=ee.activeKey,se=z.findIndex(function(gt){var kt=gt.key;return kt===ie});se===-1&&ae<0&&(se=z.length),se=(se+ae+z.length)%z.length;var ne=z[se];if(ne){var be=ne.key;ge.onActiveChange(be)}else ge.onActiveChange(null)}),(0,de.Z)((0,Ne.Z)(ge),"onKeyDown",function(ae){var ee=ge.state,z=ee.activeKey,ie=ee.expandedKeys,se=ee.checkedKeys,ne=ee.fieldNames,be=ge.props,gt=be.onKeyDown,kt=be.checkable,ht=be.selectable;switch(ae.which){case wt.Z.UP:{ge.offsetActiveKey(-1),ae.preventDefault();break}case wt.Z.DOWN:{ge.offsetActiveKey(1),ae.preventDefault();break}}var Ze=ge.getActiveItem();if(Ze&&Ze.data){var Vt=ge.getTreeNodeRequiredProps(),Bt=Ze.data.isLeaf===!1||!!(Ze.data[ne.children]||[]).length,Ht=(0,Me.F)((0,je.Z)((0,je.Z)({},(0,Me.H8)(z,Vt)),{},{data:Ze.data,active:!0}));switch(ae.which){case wt.Z.LEFT:{Bt&&ie.includes(z)?ge.onNodeExpand({},Ht):Ze.parent&&ge.onActiveChange(Ze.parent.key),ae.preventDefault();break}case wt.Z.RIGHT:{Bt&&!ie.includes(z)?ge.onNodeExpand({},Ht):Ze.children&&Ze.children.length&&ge.onActiveChange(Ze.children[0].key),ae.preventDefault();break}case wt.Z.ENTER:case wt.Z.SPACE:{kt&&!Ht.disabled&&Ht.checkable!==!1&&!Ht.disableCheckbox?ge.onNodeCheck({},Ht,!se.includes(z)):!kt&&ht&&!Ht.disabled&&Ht.selectable!==!1&&ge.onNodeSelect({},Ht);break}}}gt==null||gt(ae)}),(0,de.Z)((0,Ne.Z)(ge),"setUncontrolledState",function(ae){var ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,z=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!ge.destroyed){var ie=!1,se=!0,ne={};Object.keys(ae).forEach(function(be){if(ge.props.hasOwnProperty(be)){se=!1;return}ie=!0,ne[be]=ae[be]}),ie&&(!ee||se)&&ge.setState((0,je.Z)((0,je.Z)({},ne),z))}}),(0,de.Z)((0,Ne.Z)(ge),"scrollTo",function(ae){ge.listRef.current.scrollTo(ae)}),ge}return(0,he.Z)(Ye,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var ct=this.props,jt=ct.activeKey,Wt=ct.itemScrollOffset,ae=Wt===void 0?0:Wt;jt!==void 0&&jt!==this.state.activeKey&&(this.setState({activeKey:jt}),jt!==null&&this.scrollTo({key:jt,offset:ae}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var ct=this.state,jt=ct.focused,Wt=ct.flattenNodes,ae=ct.keyEntities,ee=ct.draggingNodeKey,z=ct.activeKey,ie=ct.dropLevelOffset,se=ct.dropContainerKey,ne=ct.dropTargetKey,be=ct.dropPosition,gt=ct.dragOverNodeKey,kt=ct.indent,ht=this.props,Ze=ht.prefixCls,Vt=ht.className,Bt=ht.style,Ht=ht.showLine,un=ht.focusable,Lt=ht.tabIndex,St=Lt===void 0?0:Lt,vn=ht.selectable,Fn=ht.showIcon,Tn=ht.icon,Un=ht.switcherIcon,tr=ht.draggable,gr=ht.checkable,$n=ht.checkStrictly,kn=ht.disabled,pr=ht.motion,sr=ht.loadData,Ln=ht.filterTreeNode,Cn=ht.height,tn=ht.itemHeight,fn=ht.scrollWidth,Tt=ht.virtual,Jt=ht.titleRender,wn=ht.dropIndicatorRender,En=ht.onContextMenu,Pn=ht.onScroll,jn=ht.direction,ur=ht.rootClassName,rr=ht.rootStyle,zn=(0,Xe.Z)(this.props,{aria:!0,data:!0}),Gn;tr&&((0,$e.Z)(tr)==="object"?Gn=tr:typeof tr=="function"?Gn={nodeDraggable:tr}:Gn={});var ln={prefixCls:Ze,selectable:vn,showIcon:Fn,icon:Tn,switcherIcon:Un,draggable:Gn,draggingNodeKey:ee,checkable:gr,checkStrictly:$n,disabled:kn,keyEntities:ae,dropLevelOffset:ie,dropContainerKey:se,dropTargetKey:ne,dropPosition:be,dragOverNodeKey:gt,indent:kt,direction:jn,dropIndicatorRender:wn,loadData:sr,filterTreeNode:Ln,titleRender:Jt,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop};return ke.createElement(Ee.k.Provider,{value:ln},ke.createElement("div",{className:xe()(Ze,Vt,ur,(0,de.Z)((0,de.Z)((0,de.Z)({},"".concat(Ze,"-show-line"),Ht),"".concat(Ze,"-focused"),jt),"".concat(Ze,"-active-focused"),z!==null)),style:rr},ke.createElement(He,(0,re.Z)({ref:this.listRef,prefixCls:Ze,style:Bt,data:Wt,disabled:kn,selectable:vn,checkable:!!gr,motion:pr,dragging:ee!==null,height:Cn,itemHeight:tn,virtual:Tt,focusable:un,focused:jt,tabIndex:St,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:En,onScroll:Pn,scrollWidth:fn},this.getTreeNodeRequiredProps(),zn))))}}],[{key:"getDerivedStateFromProps",value:function(ct,jt){var Wt=jt.prevProps,ae={prevProps:ct};function ee(St){return!Wt&&ct.hasOwnProperty(St)||Wt&&Wt[St]!==ct[St]}var z,ie=jt.fieldNames;if(ee("fieldNames")&&(ie=(0,Me.w$)(ct.fieldNames),ae.fieldNames=ie),ee("treeData")?z=ct.treeData:ee("children")&&((0,Pe.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),z=(0,Me.zn)(ct.children)),z){ae.treeData=z;var se=(0,Me.I8)(z,{fieldNames:ie});ae.keyEntities=(0,je.Z)((0,de.Z)({},ce,vt),se.keyEntities)}var ne=ae.keyEntities||jt.keyEntities;if(ee("expandedKeys")||Wt&&ee("autoExpandParent"))ae.expandedKeys=ct.autoExpandParent||!Wt&&ct.defaultExpandParent?(0,De.r7)(ct.expandedKeys,ne):ct.expandedKeys;else if(!Wt&&ct.defaultExpandAll){var be=(0,je.Z)({},ne);delete be[ce];var gt=[];Object.keys(be).forEach(function(St){var vn=be[St];vn.children&&vn.children.length&>.push(vn.key)}),ae.expandedKeys=gt}else!Wt&&ct.defaultExpandedKeys&&(ae.expandedKeys=ct.autoExpandParent||ct.defaultExpandParent?(0,De.r7)(ct.defaultExpandedKeys,ne):ct.defaultExpandedKeys);if(ae.expandedKeys||delete ae.expandedKeys,z||ae.expandedKeys){var kt=(0,Me.oH)(z||jt.treeData,ae.expandedKeys||jt.expandedKeys,ie);ae.flattenNodes=kt}if(ct.selectable&&(ee("selectedKeys")?ae.selectedKeys=(0,De.BT)(ct.selectedKeys,ct):!Wt&&ct.defaultSelectedKeys&&(ae.selectedKeys=(0,De.BT)(ct.defaultSelectedKeys,ct))),ct.checkable){var ht;if(ee("checkedKeys")?ht=(0,De.E6)(ct.checkedKeys)||{}:!Wt&&ct.defaultCheckedKeys?ht=(0,De.E6)(ct.defaultCheckedKeys)||{}:z&&(ht=(0,De.E6)(ct.checkedKeys)||{checkedKeys:jt.checkedKeys,halfCheckedKeys:jt.halfCheckedKeys}),ht){var Ze=ht,Vt=Ze.checkedKeys,Bt=Vt===void 0?[]:Vt,Ht=Ze.halfCheckedKeys,un=Ht===void 0?[]:Ht;if(!ct.checkStrictly){var Lt=(0,Se.S)(Bt,!0,ne);Bt=Lt.checkedKeys,un=Lt.halfCheckedKeys}ae.checkedKeys=Bt,ae.halfCheckedKeys=un}}return ee("loadedKeys")&&(ae.loadedKeys=ct.loadedKeys),ae}}]),Ye}(ke.Component);(0,de.Z)(Be,"defaultProps",{prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:lt,allowDrop:function(){return!0},expandAction:!1}),(0,de.Z)(Be,"TreeNode",ye.Z);var it=Be,tt=it},82661:function(rn,$t,le){"use strict";le.d($t,{BT:function(){return ke},E6:function(){return lt},L0:function(){return de},OM:function(){return Pe},_5:function(){return we},r7:function(){return xt},wA:function(){return xe},yx:function(){return Oe}});var re=le(94480),$e=le(76190),je=le(48736),Qe=le(59301),Ce=le(639),he=le(65065),Ne=le(34061),Ve=null;function we(Ae,me){if(!Ae)return[];var Re=Ae.slice(),We=Re.indexOf(me);return We>=0&&Re.splice(We,1),Re}function de(Ae,me){var Re=(Ae||[]).slice();return Re.indexOf(me)===-1&&Re.push(me),Re}function Oe(Ae){return Ae.split("-")}function xe(Ae,me){var Re=[],We=(0,he.Z)(me,Ae);function Nt(){var ye=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];ye.forEach(function(Le){var Ie=Le.key,Me=Le.children;Re.push(Ie),Nt(Me)})}return Nt(We.children),Re}function wt(Ae){if(Ae.parent){var me=Oe(Ae.pos);return Number(me[me.length-1])===Ae.parent.children.length-1}return!1}function Xe(Ae){var me=Oe(Ae.pos);return Number(me[me.length-1])===0}function Pe(Ae,me,Re,We,Nt,ye,Le,Ie,Me,Je){var _e,et=Ae.clientX,Kt=Ae.clientY,Et=Ae.target.getBoundingClientRect(),Ct=Et.top,ft=Et.height,ve=(Je==="rtl"?-1:1)*(((Nt==null?void 0:Nt.x)||0)-et),ce=(ve-12)/We,Ge=Me.filter(function(tt){var Fe;return(Fe=Ie[tt])===null||Fe===void 0||(Fe=Fe.children)===null||Fe===void 0?void 0:Fe.length}),vt=(0,he.Z)(Ie,Re.eventKey);if(Kt<Ct+ft/2){var dt=Le.findIndex(function(tt){return tt.key===vt.key}),Te=dt<=0?0:dt-1,ut=Le[Te].key;vt=(0,he.Z)(Ie,ut)}var at=vt.key,_t=vt,He=vt.key,De=0,Se=0;if(!Ge.includes(at))for(var ze=0;ze<ce&&wt(vt);ze+=1)vt=vt.parent,Se+=1;var st=me.data,Be=vt.node,it=!0;return Xe(vt)&&vt.level===0&&Kt<Ct+ft/2&&ye({dragNode:st,dropNode:Be,dropPosition:-1})&&vt.key===Re.eventKey?De=-1:(_t.children||[]).length&&Ge.includes(He)?ye({dragNode:st,dropNode:Be,dropPosition:0})?De=0:it=!1:Se===0?ce>-1.5?ye({dragNode:st,dropNode:Be,dropPosition:1})?De=1:it=!1:ye({dragNode:st,dropNode:Be,dropPosition:0})?De=0:ye({dragNode:st,dropNode:Be,dropPosition:1})?De=1:it=!1:ye({dragNode:st,dropNode:Be,dropPosition:1})?De=1:it=!1,{dropPosition:De,dropLevelOffset:Se,dropTargetKey:vt.key,dropTargetPos:vt.pos,dragOverNodeKey:He,dropContainerKey:De===0?null:((_e=vt.parent)===null||_e===void 0?void 0:_e.key)||null,dropAllowed:it}}function ke(Ae,me){if(Ae){var Re=me.multiple;return Re?Ae.slice():Ae.length?[Ae[0]]:Ae}}var Ee=function(me){return me};function qe(Ae,me){if(!Ae)return[];var Re=me||{},We=Re.processProps,Nt=We===void 0?Ee:We,ye=Array.isArray(Ae)?Ae:[Ae];return ye.map(function(Le){var Ie=Le.children,Me=_objectWithoutProperties(Le,Ve),Je=qe(Ie,me);return React.createElement(TreeNode,_extends({key:Me.key},Nt(Me)),Je)})}function lt(Ae){if(!Ae)return null;var me;if(Array.isArray(Ae))me={checkedKeys:Ae,halfCheckedKeys:void 0};else if((0,$e.Z)(Ae)==="object")me={checkedKeys:Ae.checked||void 0,halfCheckedKeys:Ae.halfChecked||void 0};else return(0,je.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return me}function xt(Ae,me){var Re=new Set;function We(Nt){if(!Re.has(Nt)){var ye=(0,he.Z)(me,Nt);if(ye){Re.add(Nt);var Le=ye.parent,Ie=ye.node;Ie.disabled||Le&&We(Le.key)}}}return(Ae||[]).forEach(function(Nt){We(Nt)}),(0,re.Z)(Re)}},34643:function(rn,$t,le){"use strict";le.d($t,{S:function(){return Ne}});var re=le(48736),$e=le(65065);function je(Ve,we){var de=new Set;return Ve.forEach(function(Oe){we.has(Oe)||de.add(Oe)}),de}function Qe(Ve){var we=Ve||{},de=we.disabled,Oe=we.disableCheckbox,xe=we.checkable;return!!(de||Oe)||xe===!1}function Ce(Ve,we,de,Oe){for(var xe=new Set(Ve),wt=new Set,Xe=0;Xe<=de;Xe+=1){var Pe=we.get(Xe)||new Set;Pe.forEach(function(lt){var xt=lt.key,Ae=lt.node,me=lt.children,Re=me===void 0?[]:me;xe.has(xt)&&!Oe(Ae)&&Re.filter(function(We){return!Oe(We.node)}).forEach(function(We){xe.add(We.key)})})}for(var ke=new Set,Ee=de;Ee>=0;Ee-=1){var qe=we.get(Ee)||new Set;qe.forEach(function(lt){var xt=lt.parent,Ae=lt.node;if(!(Oe(Ae)||!lt.parent||ke.has(lt.parent.key))){if(Oe(lt.parent.node)){ke.add(xt.key);return}var me=!0,Re=!1;(xt.children||[]).filter(function(We){return!Oe(We.node)}).forEach(function(We){var Nt=We.key,ye=xe.has(Nt);me&&!ye&&(me=!1),!Re&&(ye||wt.has(Nt))&&(Re=!0)}),me&&xe.add(xt.key),Re&&wt.add(xt.key),ke.add(xt.key)}})}return{checkedKeys:Array.from(xe),halfCheckedKeys:Array.from(je(wt,xe))}}function he(Ve,we,de,Oe,xe){for(var wt=new Set(Ve),Xe=new Set(we),Pe=0;Pe<=Oe;Pe+=1){var ke=de.get(Pe)||new Set;ke.forEach(function(xt){var Ae=xt.key,me=xt.node,Re=xt.children,We=Re===void 0?[]:Re;!wt.has(Ae)&&!Xe.has(Ae)&&!xe(me)&&We.filter(function(Nt){return!xe(Nt.node)}).forEach(function(Nt){wt.delete(Nt.key)})})}Xe=new Set;for(var Ee=new Set,qe=Oe;qe>=0;qe-=1){var lt=de.get(qe)||new Set;lt.forEach(function(xt){var Ae=xt.parent,me=xt.node;if(!(xe(me)||!xt.parent||Ee.has(xt.parent.key))){if(xe(xt.parent.node)){Ee.add(Ae.key);return}var Re=!0,We=!1;(Ae.children||[]).filter(function(Nt){return!xe(Nt.node)}).forEach(function(Nt){var ye=Nt.key,Le=wt.has(ye);Re&&!Le&&(Re=!1),!We&&(Le||Xe.has(ye))&&(We=!0)}),Re||wt.delete(Ae.key),We&&Xe.add(Ae.key),Ee.add(Ae.key)}})}return{checkedKeys:Array.from(wt),halfCheckedKeys:Array.from(je(Xe,wt))}}function Ne(Ve,we,de,Oe){var xe=[],wt;Oe?wt=Oe:wt=Qe;var Xe=new Set(Ve.filter(function(qe){var lt=!!(0,$e.Z)(de,qe);return lt||xe.push(qe),lt})),Pe=new Map,ke=0;Object.keys(de).forEach(function(qe){var lt=de[qe],xt=lt.level,Ae=Pe.get(xt);Ae||(Ae=new Set,Pe.set(xt,Ae)),Ae.add(lt),ke=Math.max(ke,xt)}),(0,re.ZP)(!xe.length,"Tree missing follow keys: ".concat(xe.slice(0,100).map(function(qe){return"'".concat(qe,"'")}).join(", ")));var Ee;return we===!0?Ee=Ce(Xe,Pe,ke,wt):Ee=he(Xe,we.halfCheckedKeys,Pe,ke,wt),Ee}},65065:function(rn,$t,le){"use strict";le.d($t,{Z:function(){return re}});function re($e,je){return $e[je]}},34061:function(rn,$t,le){"use strict";le.d($t,{F:function(){return xt},H8:function(){return lt},I8:function(){return qe},km:function(){return xe},oH:function(){return ke},w$:function(){return wt},zn:function(){return Pe}});var re=le(76190),$e=le(94480),je=le(33885),Qe=le(75931),Ce=le(11592),he=le(2738),Ne=le(48736),Ve=le(65065),we=["children"];function de(Ae,me){return"".concat(Ae,"-").concat(me)}function Oe(Ae){return Ae&&Ae.type&&Ae.type.isTreeNode}function xe(Ae,me){return Ae!=null?Ae:me}function wt(Ae){var me=Ae||{},Re=me.title,We=me._title,Nt=me.key,ye=me.children,Le=Re||"title";return{title:Le,_title:We||[Le],key:Nt||"key",children:ye||"children"}}function Xe(Ae,me){var Re=new Map;function We(Nt){var ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(Nt||[]).forEach(function(Le){var Ie=Le[me.key],Me=Le[me.children];warning(Ie!=null,"Tree node must have a certain key: [".concat(ye).concat(Ie,"]"));var Je=String(Ie);warning(!Re.has(Je)||Ie===null||Ie===void 0,"Same 'key' exist in the Tree: ".concat(Je)),Re.set(Je,!0),We(Me,"".concat(ye).concat(Je," > "))})}We(Ae)}function Pe(Ae){function me(Re){var We=(0,Ce.Z)(Re);return We.map(function(Nt){if(!Oe(Nt))return(0,Ne.ZP)(!Nt,"Tree/TreeNode can only accept TreeNode as children."),null;var ye=Nt.key,Le=Nt.props,Ie=Le.children,Me=(0,Qe.Z)(Le,we),Je=(0,je.Z)({key:ye},Me),_e=me(Ie);return _e.length&&(Je.children=_e),Je}).filter(function(Nt){return Nt})}return me(Ae)}function ke(Ae,me,Re){var We=wt(Re),Nt=We._title,ye=We.key,Le=We.children,Ie=new Set(me===!0?[]:me),Me=[];function Je(_e){var et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return _e.map(function(Kt,Et){for(var Ct=de(et?et.pos:"0",Et),ft=xe(Kt[ye],Ct),ve,ce=0;ce<Nt.length;ce+=1){var Ge=Nt[ce];if(Kt[Ge]!==void 0){ve=Kt[Ge];break}}var vt=Object.assign((0,he.Z)(Kt,[].concat((0,$e.Z)(Nt),[ye,Le])),{title:ve,key:ft,parent:et,pos:Ct,children:null,data:Kt,isStart:[].concat((0,$e.Z)(et?et.isStart:[]),[Et===0]),isEnd:[].concat((0,$e.Z)(et?et.isEnd:[]),[Et===_e.length-1])});return Me.push(vt),me===!0||Ie.has(ft)?vt.children=Je(Kt[Le]||[],vt):vt.children=[],vt})}return Je(Ae),Me}function Ee(Ae,me,Re){var We={};(0,re.Z)(Re)==="object"?We=Re:We={externalGetKey:Re},We=We||{};var Nt=We,ye=Nt.childrenPropName,Le=Nt.externalGetKey,Ie=Nt.fieldNames,Me=wt(Ie),Je=Me.key,_e=Me.children,et=ye||_e,Kt;Le?typeof Le=="string"?Kt=function(ft){return ft[Le]}:typeof Le=="function"&&(Kt=function(ft){return Le(ft)}):Kt=function(ft,ve){return xe(ft[Je],ve)};function Et(Ct,ft,ve,ce){var Ge=Ct?Ct[et]:Ae,vt=Ct?de(ve.pos,ft):"0",dt=Ct?[].concat((0,$e.Z)(ce),[Ct]):[];if(Ct){var Te=Kt(Ct,vt),ut={node:Ct,index:ft,pos:vt,key:Te,parentPos:ve.node?ve.pos:null,level:ve.level+1,nodes:dt};me(ut)}Ge&&Ge.forEach(function(at,_t){Et(at,_t,{node:Ct,pos:vt,level:ve?ve.level+1:-1},dt)})}Et(null)}function qe(Ae){var me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Re=me.initWrapper,We=me.processEntity,Nt=me.onProcessFinished,ye=me.externalGetKey,Le=me.childrenPropName,Ie=me.fieldNames,Me=arguments.length>2?arguments[2]:void 0,Je=ye||Me,_e={},et={},Kt={posEntities:_e,keyEntities:et};return Re&&(Kt=Re(Kt)||Kt),Ee(Ae,function(Et){var Ct=Et.node,ft=Et.index,ve=Et.pos,ce=Et.key,Ge=Et.parentPos,vt=Et.level,dt=Et.nodes,Te={node:Ct,nodes:dt,index:ft,key:ce,pos:ve,level:vt},ut=xe(ce,ve);_e[ve]=Te,et[ut]=Te,Te.parent=_e[Ge],Te.parent&&(Te.parent.children=Te.parent.children||[],Te.parent.children.push(Te)),We&&We(Te,Kt)},{externalGetKey:Je,childrenPropName:Le,fieldNames:Ie}),Nt&&Nt(Kt),Kt}function lt(Ae,me){var Re=me.expandedKeys,We=me.selectedKeys,Nt=me.loadedKeys,ye=me.loadingKeys,Le=me.checkedKeys,Ie=me.halfCheckedKeys,Me=me.dragOverNodeKey,Je=me.dropPosition,_e=me.keyEntities,et=(0,Ve.Z)(_e,Ae),Kt={eventKey:Ae,expanded:Re.indexOf(Ae)!==-1,selected:We.indexOf(Ae)!==-1,loaded:Nt.indexOf(Ae)!==-1,loading:ye.indexOf(Ae)!==-1,checked:Le.indexOf(Ae)!==-1,halfChecked:Ie.indexOf(Ae)!==-1,pos:String(et?et.pos:""),dragOver:Me===Ae&&Je===0,dragOverGapTop:Me===Ae&&Je===-1,dragOverGapBottom:Me===Ae&&Je===1};return Kt}function xt(Ae){var me=Ae.data,Re=Ae.expanded,We=Ae.selected,Nt=Ae.checked,ye=Ae.loaded,Le=Ae.loading,Ie=Ae.halfChecked,Me=Ae.dragOver,Je=Ae.dragOverGapTop,_e=Ae.dragOverGapBottom,et=Ae.pos,Kt=Ae.active,Et=Ae.eventKey,Ct=(0,je.Z)((0,je.Z)({},me),{},{expanded:Re,selected:We,checked:Nt,loaded:ye,loading:Le,halfChecked:Ie,dragOver:Me,dragOverGapTop:Je,dragOverGapBottom:_e,pos:et,active:Kt,key:Et});return"props"in Ct||Object.defineProperty(Ct,"props",{get:function(){return(0,Ne.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),Ae}}),Ct}},90472:function(rn,$t,le){"use strict";le.d($t,{Z:function(){return Et}});var re=le(54476),$e=le(67732),je=le(83652),Qe=le(31226),Ce=le(42403),he=le(158),Ne=le(20068),Ve=le(59301),we=le(33885),de=le(75931),Oe=le(76190),xe=le(75044),wt=le(3202),Xe=le(94480),Pe=le(92310),ke=le.n(Pe),Ee=le(26112),qe=le(48736),lt=function(Ct,ft){if(Ct&&ft){var ve=Array.isArray(ft)?ft:ft.split(","),ce=Ct.name||"",Ge=Ct.type||"",vt=Ge.replace(/\/.*$/,"");return ve.some(function(dt){var Te=dt.trim();if(/^\*(\/\*)?$/.test(dt))return!0;if(Te.charAt(0)==="."){var ut=ce.toLowerCase(),at=Te.toLowerCase(),_t=[at];return(at===".jpg"||at===".jpeg")&&(_t=[".jpg",".jpeg"]),_t.some(function(He){return ut.endsWith(He)})}return/\/\*$/.test(Te)?vt===Te.replace(/\/.*$/,""):Ge===Te?!0:/^\w+$/.test(Te)?((0,qe.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(Te,"'.Skip for check.")),!0):!1})}return!0};function xt(Ct,ft){var ve="cannot ".concat(Ct.method," ").concat(Ct.action," ").concat(ft.status,"'"),ce=new Error(ve);return ce.status=ft.status,ce.method=Ct.method,ce.url=Ct.action,ce}function Ae(Ct){var ft=Ct.responseText||Ct.response;if(!ft)return ft;try{return JSON.parse(ft)}catch(ve){return ft}}function me(Ct){var ft=new XMLHttpRequest;Ct.onProgress&&ft.upload&&(ft.upload.onprogress=function(vt){vt.total>0&&(vt.percent=vt.loaded/vt.total*100),Ct.onProgress(vt)});var ve=new FormData;Ct.data&&Object.keys(Ct.data).forEach(function(Ge){var vt=Ct.data[Ge];if(Array.isArray(vt)){vt.forEach(function(dt){ve.append("".concat(Ge,"[]"),dt)});return}ve.append(Ge,vt)}),Ct.file instanceof Blob?ve.append(Ct.filename,Ct.file,Ct.file.name):ve.append(Ct.filename,Ct.file),ft.onerror=function(vt){Ct.onError(vt)},ft.onload=function(){return ft.status<200||ft.status>=300?Ct.onError(xt(Ct,ft),Ae(ft)):Ct.onSuccess(Ae(ft),ft)},ft.open(Ct.method,Ct.action,!0),Ct.withCredentials&&"withCredentials"in ft&&(ft.withCredentials=!0);var ce=Ct.headers||{};return ce["X-Requested-With"]!==null&&ft.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(ce).forEach(function(Ge){ce[Ge]!==null&&ft.setRequestHeader(Ge,ce[Ge])}),ft.send(ve),{abort:function(){ft.abort()}}}var Re=function(){var Ct=(0,wt.Z)((0,xe.Z)().mark(function ft(ve,ce){var Ge,vt,dt,Te,ut,at,_t,He;return(0,xe.Z)().wrap(function(Se){for(;;)switch(Se.prev=Se.next){case 0:at=function(){return at=(0,wt.Z)((0,xe.Z)().mark(function st(Be){return(0,xe.Z)().wrap(function(tt){for(;;)switch(tt.prev=tt.next){case 0:return tt.abrupt("return",new Promise(function(Fe){Be.file(function(pt){ce(pt)?(Be.fullPath&&!pt.webkitRelativePath&&(Object.defineProperties(pt,{webkitRelativePath:{writable:!0}}),pt.webkitRelativePath=Be.fullPath.replace(/^\//,""),Object.defineProperties(pt,{webkitRelativePath:{writable:!1}})),Fe(pt)):Fe(null)})}));case 1:case"end":return tt.stop()}},st)})),at.apply(this,arguments)},ut=function(st){return at.apply(this,arguments)},Te=function(){return Te=(0,wt.Z)((0,xe.Z)().mark(function st(Be){var it,tt,Fe,pt,Ye;return(0,xe.Z)().wrap(function(ct){for(;;)switch(ct.prev=ct.next){case 0:it=Be.createReader(),tt=[];case 2:return ct.next=5,new Promise(function(jt){it.readEntries(jt,function(){return jt([])})});case 5:if(Fe=ct.sent,pt=Fe.length,pt){ct.next=9;break}return ct.abrupt("break",12);case 9:for(Ye=0;Ye<pt;Ye++)tt.push(Fe[Ye]);ct.next=2;break;case 12:return ct.abrupt("return",tt);case 13:case"end":return ct.stop()}},st)})),Te.apply(this,arguments)},dt=function(st){return Te.apply(this,arguments)},Ge=[],vt=[],ve.forEach(function(ze){return vt.push(ze.webkitGetAsEntry())}),_t=function(){var ze=(0,wt.Z)((0,xe.Z)().mark(function st(Be,it){var tt,Fe;return(0,xe.Z)().wrap(function(Ye){for(;;)switch(Ye.prev=Ye.next){case 0:if(Be){Ye.next=2;break}return Ye.abrupt("return");case 2:if(Be.path=it||"",!Be.isFile){Ye.next=10;break}return Ye.next=6,ut(Be);case 6:tt=Ye.sent,tt&&Ge.push(tt),Ye.next=15;break;case 10:if(!Be.isDirectory){Ye.next=15;break}return Ye.next=13,dt(Be);case 13:Fe=Ye.sent,vt.push.apply(vt,(0,Xe.Z)(Fe));case 15:case"end":return Ye.stop()}},st)}));return function(Be,it){return ze.apply(this,arguments)}}(),He=0;case 9:if(!(He<vt.length)){Se.next=15;break}return Se.next=12,_t(vt[He]);case 12:He++,Se.next=9;break;case 15:return Se.abrupt("return",Ge);case 16:case"end":return Se.stop()}},ft)}));return function(ve,ce){return Ct.apply(this,arguments)}}(),We=Re,Nt=+new Date,ye=0;function Le(){return"rc-upload-".concat(Nt,"-").concat(++ye)}var Ie=["component","prefixCls","className","classNames","disabled","id","name","style","styles","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave","hasControlInside"],Me=function(Ct){(0,Ce.Z)(ve,Ct);var ft=(0,he.Z)(ve);function ve(){var ce;(0,$e.Z)(this,ve);for(var Ge=arguments.length,vt=new Array(Ge),dt=0;dt<Ge;dt++)vt[dt]=arguments[dt];return ce=ft.call.apply(ft,[this].concat(vt)),(0,Ne.Z)((0,Qe.Z)(ce),"state",{uid:Le()}),(0,Ne.Z)((0,Qe.Z)(ce),"reqs",{}),(0,Ne.Z)((0,Qe.Z)(ce),"fileInput",void 0),(0,Ne.Z)((0,Qe.Z)(ce),"_isMounted",void 0),(0,Ne.Z)((0,Qe.Z)(ce),"onChange",function(Te){var ut=ce.props,at=ut.accept,_t=ut.directory,He=Te.target.files,De=(0,Xe.Z)(He).filter(function(Se){return!_t||lt(Se,at)});ce.uploadFiles(De),ce.reset()}),(0,Ne.Z)((0,Qe.Z)(ce),"onClick",function(Te){var ut=ce.fileInput;if(ut){var at=Te.target,_t=ce.props.onClick;if(at&&at.tagName==="BUTTON"){var He=ut.parentNode;He.focus(),at.blur()}ut.click(),_t&&_t(Te)}}),(0,Ne.Z)((0,Qe.Z)(ce),"onKeyDown",function(Te){Te.key==="Enter"&&ce.onClick(Te)}),(0,Ne.Z)((0,Qe.Z)(ce),"onFileDrop",function(){var Te=(0,wt.Z)((0,xe.Z)().mark(function ut(at){var _t,He,De;return(0,xe.Z)().wrap(function(ze){for(;;)switch(ze.prev=ze.next){case 0:if(_t=ce.props.multiple,at.preventDefault(),at.type!=="dragover"){ze.next=4;break}return ze.abrupt("return");case 4:if(!ce.props.directory){ze.next=11;break}return ze.next=7,We(Array.prototype.slice.call(at.dataTransfer.items),function(st){return lt(st,ce.props.accept)});case 7:He=ze.sent,ce.uploadFiles(He),ze.next=14;break;case 11:De=(0,Xe.Z)(at.dataTransfer.files).filter(function(st){return lt(st,ce.props.accept)}),_t===!1&&(De=De.slice(0,1)),ce.uploadFiles(De);case 14:case"end":return ze.stop()}},ut)}));return function(ut){return Te.apply(this,arguments)}}()),(0,Ne.Z)((0,Qe.Z)(ce),"uploadFiles",function(Te){var ut=(0,Xe.Z)(Te),at=ut.map(function(_t){return _t.uid=Le(),ce.processFile(_t,ut)});Promise.all(at).then(function(_t){var He=ce.props.onBatchStart;He==null||He(_t.map(function(De){var Se=De.origin,ze=De.parsedFile;return{file:Se,parsedFile:ze}})),_t.filter(function(De){return De.parsedFile!==null}).forEach(function(De){ce.post(De)})})}),(0,Ne.Z)((0,Qe.Z)(ce),"processFile",function(){var Te=(0,wt.Z)((0,xe.Z)().mark(function ut(at,_t){var He,De,Se,ze,st,Be,it,tt,Fe;return(0,xe.Z)().wrap(function(Ye){for(;;)switch(Ye.prev=Ye.next){case 0:if(He=ce.props.beforeUpload,De=at,!He){Ye.next=14;break}return Ye.prev=3,Ye.next=6,He(at,_t);case 6:De=Ye.sent,Ye.next=12;break;case 9:Ye.prev=9,Ye.t0=Ye.catch(3),De=!1;case 12:if(De!==!1){Ye.next=14;break}return Ye.abrupt("return",{origin:at,parsedFile:null,action:null,data:null});case 14:if(Se=ce.props.action,typeof Se!="function"){Ye.next=21;break}return Ye.next=18,Se(at);case 18:ze=Ye.sent,Ye.next=22;break;case 21:ze=Se;case 22:if(st=ce.props.data,typeof st!="function"){Ye.next=29;break}return Ye.next=26,st(at);case 26:Be=Ye.sent,Ye.next=30;break;case 29:Be=st;case 30:return it=((0,Oe.Z)(De)==="object"||typeof De=="string")&&De?De:at,it instanceof File?tt=it:tt=new File([it],at.name,{type:at.type}),Fe=tt,Fe.uid=at.uid,Ye.abrupt("return",{origin:at,data:Be,parsedFile:Fe,action:ze});case 35:case"end":return Ye.stop()}},ut,null,[[3,9]])}));return function(ut,at){return Te.apply(this,arguments)}}()),(0,Ne.Z)((0,Qe.Z)(ce),"saveFileInput",function(Te){ce.fileInput=Te}),ce}return(0,je.Z)(ve,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(Ge){var vt=this,dt=Ge.data,Te=Ge.origin,ut=Ge.action,at=Ge.parsedFile;if(this._isMounted){var _t=this.props,He=_t.onStart,De=_t.customRequest,Se=_t.name,ze=_t.headers,st=_t.withCredentials,Be=_t.method,it=Te.uid,tt=De||me,Fe={action:ut,filename:Se,data:dt,file:at,headers:ze,withCredentials:st,method:Be||"post",onProgress:function(Ye){var ge=vt.props.onProgress;ge==null||ge(Ye,at)},onSuccess:function(Ye,ge){var ct=vt.props.onSuccess;ct==null||ct(Ye,at,ge),delete vt.reqs[it]},onError:function(Ye,ge){var ct=vt.props.onError;ct==null||ct(Ye,ge,at),delete vt.reqs[it]}};He(Te),this.reqs[it]=tt(Fe)}}},{key:"reset",value:function(){this.setState({uid:Le()})}},{key:"abort",value:function(Ge){var vt=this.reqs;if(Ge){var dt=Ge.uid?Ge.uid:Ge;vt[dt]&&vt[dt].abort&&vt[dt].abort(),delete vt[dt]}else Object.keys(vt).forEach(function(Te){vt[Te]&&vt[Te].abort&&vt[Te].abort(),delete vt[Te]})}},{key:"render",value:function(){var Ge=this.props,vt=Ge.component,dt=Ge.prefixCls,Te=Ge.className,ut=Ge.classNames,at=ut===void 0?{}:ut,_t=Ge.disabled,He=Ge.id,De=Ge.name,Se=Ge.style,ze=Ge.styles,st=ze===void 0?{}:ze,Be=Ge.multiple,it=Ge.accept,tt=Ge.capture,Fe=Ge.children,pt=Ge.directory,Ye=Ge.openFileDialogOnClick,ge=Ge.onMouseEnter,ct=Ge.onMouseLeave,jt=Ge.hasControlInside,Wt=(0,de.Z)(Ge,Ie),ae=ke()((0,Ne.Z)((0,Ne.Z)((0,Ne.Z)({},dt,!0),"".concat(dt,"-disabled"),_t),Te,Te)),ee=pt?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},z=_t?{}:{onClick:Ye?this.onClick:function(){},onKeyDown:Ye?this.onKeyDown:function(){},onMouseEnter:ge,onMouseLeave:ct,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:jt?void 0:"0"};return Ve.createElement(vt,(0,re.Z)({},z,{className:ae,role:jt?void 0:"button",style:Se}),Ve.createElement("input",(0,re.Z)({},(0,Ee.Z)(Wt,{aria:!0,data:!0}),{id:He,name:De,disabled:_t,type:"file",ref:this.saveFileInput,onClick:function(se){return se.stopPropagation()},key:this.state.uid,style:(0,we.Z)({display:"none"},st.input),className:at.input,accept:it},ee,{multiple:Be,onChange:this.onChange},tt!=null?{capture:tt}:{})),Fe)}}]),ve}(Ve.Component),Je=Me;function _e(){}var et=function(Ct){(0,Ce.Z)(ve,Ct);var ft=(0,he.Z)(ve);function ve(){var ce;(0,$e.Z)(this,ve);for(var Ge=arguments.length,vt=new Array(Ge),dt=0;dt<Ge;dt++)vt[dt]=arguments[dt];return ce=ft.call.apply(ft,[this].concat(vt)),(0,Ne.Z)((0,Qe.Z)(ce),"uploader",void 0),(0,Ne.Z)((0,Qe.Z)(ce),"saveUploader",function(Te){ce.uploader=Te}),ce}return(0,je.Z)(ve,[{key:"abort",value:function(Ge){this.uploader.abort(Ge)}},{key:"render",value:function(){return Ve.createElement(Je,(0,re.Z)({},this.props,{ref:this.saveUploader}))}}]),ve}(Ve.Component);(0,Ne.Z)(et,"defaultProps",{component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:_e,onError:_e,onSuccess:_e,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0,hasControlInside:!1});var Kt=et,Et=Kt},8224:function(rn,$t,le){"use strict";le.d($t,{Z:function(){return $e}});var re=le(4676);function $e(je,Qe,Ce,he){var Ne=re.unstable_batchedUpdates?function(we){re.unstable_batchedUpdates(Ce,we)}:Ce;return je!=null&&je.addEventListener&&je.addEventListener(Qe,Ne,he),{remove:function(){je!=null&&je.removeEventListener&&je.removeEventListener(Qe,Ne,he)}}}},24514:function(rn,$t,le){"use strict";le.d($t,{G:function(){return Qe}});var re=le(47273),$e=function(he){if((0,re.Z)()&&window.document.documentElement){var Ne=Array.isArray(he)?he:[he],Ve=window.document.documentElement;return Ne.some(function(we){return we in Ve.style})}return!1},je=function(he,Ne){if(!$e(he))return!1;var Ve=document.createElement("div"),we=Ve.style[he];return Ve.style[he]=Ne,Ve.style[he]!==we};function Qe(Ce,he){return!Array.isArray(Ce)&&he!==void 0?je(Ce,he):$e(Ce)}},48911:function(rn,$t,le){"use strict";le.d($t,{Z:function(){return st}});var re=le(54476),$e=le(76190),je=le(33885),Qe=le(20068),Ce=le(42978),he=le(75931),Ne=le(92310),Ve=le.n(Ne),we=le(29301),de=le(70425),Oe=le(34280),xe=le(59301),wt=le(4676),Xe=xe.forwardRef(function(Be,it){var tt=Be.height,Fe=Be.offsetY,pt=Be.offsetX,Ye=Be.children,ge=Be.prefixCls,ct=Be.onInnerResize,jt=Be.innerProps,Wt=Be.rtl,ae=Be.extra,ee={},z={display:"flex",flexDirection:"column"};return Fe!==void 0&&(ee={height:tt,position:"relative",overflow:"hidden"},z=(0,je.Z)((0,je.Z)({},z),{},(0,Qe.Z)((0,Qe.Z)((0,Qe.Z)((0,Qe.Z)((0,Qe.Z)({transform:"translateY(".concat(Fe,"px)")},Wt?"marginRight":"marginLeft",-pt),"position","absolute"),"left",0),"right",0),"top",0))),xe.createElement("div",{style:ee},xe.createElement(we.Z,{onResize:function(se){var ne=se.offsetHeight;ne&&ct&&ct()}},xe.createElement("div",(0,re.Z)({style:z,className:Ve()((0,Qe.Z)({},"".concat(ge,"-holder-inner"),ge)),ref:it},jt),Ye,ae)))});Xe.displayName="Filler";var Pe=Xe;function ke(Be){var it=Be.children,tt=Be.setRef,Fe=xe.useCallback(function(pt){tt(pt)},[]);return xe.cloneElement(it,{ref:Fe})}function Ee(Be,it,tt,Fe,pt,Ye,ge,ct){var jt=ct.getKey;return Be.slice(it,tt+1).map(function(Wt,ae){var ee=it+ae,z=ge(Wt,ee,{style:{width:Fe},offsetX:pt}),ie=jt(Wt);return xe.createElement(ke,{key:ie,setRef:function(ne){return Ye(Wt,ne)}},z)})}function qe(Be,it,tt,Fe){var pt=tt-Be,Ye=it-tt,ge=Math.min(pt,Ye)*2;if(Fe<=ge){var ct=Math.floor(Fe/2);return Fe%2?tt+ct+1:tt-ct}return pt>Ye?tt-(Fe-Ye):tt+(Fe-pt)}function lt(Be,it,tt){var Fe=Be.length,pt=it.length,Ye,ge;if(Fe===0&&pt===0)return null;Fe<pt?(Ye=Be,ge=it):(Ye=it,ge=Be);var ct={__EMPTY_ITEM__:!0};function jt(se){return se!==void 0?tt(se):ct}for(var Wt=null,ae=Math.abs(Fe-pt)!==1,ee=0;ee<ge.length;ee+=1){var z=jt(Ye[ee]),ie=jt(ge[ee]);if(z!==ie){Wt=ee,ae=ae||z!==jt(ge[ee+1]);break}}return Wt===null?null:{index:Wt,multiple:ae}}function xt(Be,it,tt){var Fe=xe.useState(Be),pt=(0,Ce.Z)(Fe,2),Ye=pt[0],ge=pt[1],ct=xe.useState(null),jt=(0,Ce.Z)(ct,2),Wt=jt[0],ae=jt[1];return xe.useEffect(function(){var ee=lt(Ye||[],Be||[],it);(ee==null?void 0:ee.index)!==void 0&&(tt==null||tt(ee.index),ae(Be[ee.index])),ge(Be)},[Be]),[Wt]}var Ae=le(16089),me=(typeof navigator=="undefined"?"undefined":(0,$e.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),Re=me,We=function(Be,it,tt,Fe){var pt=(0,xe.useRef)(!1),Ye=(0,xe.useRef)(null);function ge(){clearTimeout(Ye.current),pt.current=!0,Ye.current=setTimeout(function(){pt.current=!1},50)}var ct=(0,xe.useRef)({top:Be,bottom:it,left:tt,right:Fe});return ct.current.top=Be,ct.current.bottom=it,ct.current.left=tt,ct.current.right=Fe,function(jt,Wt){var ae=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,ee=jt?Wt<0&&ct.current.left||Wt>0&&ct.current.right:Wt<0&&ct.current.top||Wt>0&&ct.current.bottom;return ae&&ee?(clearTimeout(Ye.current),pt.current=!1):(!ee||pt.current)&&ge(),!pt.current&&ee}};function Nt(Be,it,tt,Fe,pt,Ye,ge){var ct=(0,xe.useRef)(0),jt=(0,xe.useRef)(null),Wt=(0,xe.useRef)(null),ae=(0,xe.useRef)(!1),ee=We(it,tt,Fe,pt);function z(kt,ht){if(Ae.Z.cancel(jt.current),!ee(!1,ht)){var Ze=kt;if(!Ze._virtualHandled)Ze._virtualHandled=!0;else return;ct.current+=ht,Wt.current=ht,Re||Ze.preventDefault(),jt.current=(0,Ae.Z)(function(){var Vt=ae.current?10:1;ge(ct.current*Vt,!1),ct.current=0})}}function ie(kt,ht){ge(ht,!0),Re||kt.preventDefault()}var se=(0,xe.useRef)(null),ne=(0,xe.useRef)(null);function be(kt){if(Be){Ae.Z.cancel(ne.current),ne.current=(0,Ae.Z)(function(){se.current=null},2);var ht=kt.deltaX,Ze=kt.deltaY,Vt=kt.shiftKey,Bt=ht,Ht=Ze;(se.current==="sx"||!se.current&&Vt&&Ze&&!ht)&&(Bt=Ze,Ht=0,se.current="sx");var un=Math.abs(Bt),Lt=Math.abs(Ht);se.current===null&&(se.current=Ye&&un>Lt?"x":"y"),se.current==="y"?z(kt,Ht):ie(kt,Bt)}}function gt(kt){Be&&(ae.current=kt.detail===Wt.current)}return[be,gt]}function ye(Be,it,tt,Fe){var pt=xe.useMemo(function(){return[new Map,[]]},[Be,tt.id,Fe]),Ye=(0,Ce.Z)(pt,2),ge=Ye[0],ct=Ye[1],jt=function(ae){var ee=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ae,z=ge.get(ae),ie=ge.get(ee);if(z===void 0||ie===void 0)for(var se=Be.length,ne=ct.length;ne<se;ne+=1){var be,gt=Be[ne],kt=it(gt);ge.set(kt,ne);var ht=(be=tt.get(kt))!==null&&be!==void 0?be:Fe;if(ct[ne]=(ct[ne-1]||0)+ht,kt===ae&&(z=ne),kt===ee&&(ie=ne),z!==void 0&&ie!==void 0)break}return{top:ct[z-1]||0,bottom:ct[ie]}};return jt}var Le=le(67732),Ie=le(83652),Me=function(){function Be(){(0,Le.Z)(this,Be),(0,Qe.Z)(this,"maps",void 0),(0,Qe.Z)(this,"id",0),(0,Qe.Z)(this,"diffRecords",new Map),this.maps=Object.create(null)}return(0,Ie.Z)(Be,[{key:"set",value:function(tt,Fe){this.diffRecords.set(tt,this.maps[tt]),this.maps[tt]=Fe,this.id+=1}},{key:"get",value:function(tt){return this.maps[tt]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),Be}(),Je=Me;function _e(Be){var it=parseFloat(Be);return isNaN(it)?0:it}function et(Be,it,tt){var Fe=xe.useState(0),pt=(0,Ce.Z)(Fe,2),Ye=pt[0],ge=pt[1],ct=(0,xe.useRef)(new Map),jt=(0,xe.useRef)(new Je),Wt=(0,xe.useRef)(0);function ae(){Wt.current+=1}function ee(){var ie=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;ae();var se=function(){var gt=!1;ct.current.forEach(function(kt,ht){if(kt&&kt.offsetParent){var Ze=kt.offsetHeight,Vt=getComputedStyle(kt),Bt=Vt.marginTop,Ht=Vt.marginBottom,un=_e(Bt),Lt=_e(Ht),St=Ze+un+Lt;jt.current.get(ht)!==St&&(jt.current.set(ht,St),gt=!0)}}),gt&&ge(function(kt){return kt+1})};if(ie)se();else{Wt.current+=1;var ne=Wt.current;Promise.resolve().then(function(){ne===Wt.current&&se()})}}function z(ie,se){var ne=Be(ie),be=ct.current.get(ne);se?(ct.current.set(ne,se),ee()):ct.current.delete(ne),!be!=!se&&(se?it==null||it(ie):tt==null||tt(ie))}return(0,xe.useEffect)(function(){return ae},[]),[z,ee,jt.current,Ye]}var Kt=14/15;function Et(Be,it,tt){var Fe=(0,xe.useRef)(!1),pt=(0,xe.useRef)(0),Ye=(0,xe.useRef)(0),ge=(0,xe.useRef)(null),ct=(0,xe.useRef)(null),jt,Wt=function(ie){if(Fe.current){var se=Math.ceil(ie.touches[0].pageX),ne=Math.ceil(ie.touches[0].pageY),be=pt.current-se,gt=Ye.current-ne,kt=Math.abs(be)>Math.abs(gt);kt?pt.current=se:Ye.current=ne;var ht=tt(kt,kt?be:gt,!1,ie);ht&&ie.preventDefault(),clearInterval(ct.current),ht&&(ct.current=setInterval(function(){kt?be*=Kt:gt*=Kt;var Ze=Math.floor(kt?be:gt);(!tt(kt,Ze,!0)||Math.abs(Ze)<=.1)&&clearInterval(ct.current)},16))}},ae=function(){Fe.current=!1,jt()},ee=function(ie){jt(),ie.touches.length===1&&!Fe.current&&(Fe.current=!0,pt.current=Math.ceil(ie.touches[0].pageX),Ye.current=Math.ceil(ie.touches[0].pageY),ge.current=ie.target,ge.current.addEventListener("touchmove",Wt,{passive:!1}),ge.current.addEventListener("touchend",ae,{passive:!0}))};jt=function(){ge.current&&(ge.current.removeEventListener("touchmove",Wt),ge.current.removeEventListener("touchend",ae))},(0,Oe.Z)(function(){return Be&&it.current.addEventListener("touchstart",ee,{passive:!0}),function(){var z;(z=it.current)===null||z===void 0||z.removeEventListener("touchstart",ee),jt(),clearInterval(ct.current)}},[Be])}function Ct(Be){return Math.floor(Math.pow(Be,.5))}function ft(Be,it){var tt="touches"in Be?Be.touches[0]:Be;return tt[it?"pageX":"pageY"]-window[it?"scrollX":"scrollY"]}function ve(Be,it,tt){xe.useEffect(function(){var Fe=it.current;if(Be&&Fe){var pt=!1,Ye,ge,ct=function(){Ae.Z.cancel(Ye)},jt=function z(){ct(),Ye=(0,Ae.Z)(function(){tt(ge),z()})},Wt=function(){pt=!1,ct()},ae=function(ie){if(!(ie.target.draggable||ie.button!==0)){var se=ie;se._virtualHandled||(se._virtualHandled=!0,pt=!0)}},ee=function(ie){if(pt){var se=ft(ie,!1),ne=Fe.getBoundingClientRect(),be=ne.top,gt=ne.bottom;if(se<=be){var kt=be-se;ge=-Ct(kt),jt()}else if(se>=gt){var ht=se-gt;ge=Ct(ht),jt()}else ct()}};return Fe.addEventListener("mousedown",ae),Fe.ownerDocument.addEventListener("mouseup",Wt),Fe.ownerDocument.addEventListener("mousemove",ee),Fe.ownerDocument.addEventListener("dragend",Wt),function(){Fe.removeEventListener("mousedown",ae),Fe.ownerDocument.removeEventListener("mouseup",Wt),Fe.ownerDocument.removeEventListener("mousemove",ee),Fe.ownerDocument.removeEventListener("dragend",Wt),ct()}}},[Be])}var ce=10;function Ge(Be,it,tt,Fe,pt,Ye,ge,ct){var jt=xe.useRef(),Wt=xe.useState(null),ae=(0,Ce.Z)(Wt,2),ee=ae[0],z=ae[1];return(0,Oe.Z)(function(){if(ee&&ee.times<ce){if(!Be.current){z(function(pr){return(0,je.Z)({},pr)});return}Ye();var ie=ee.targetAlign,se=ee.originAlign,ne=ee.index,be=ee.offset,gt=Be.current.clientHeight,kt=!1,ht=ie,Ze=null;if(gt){for(var Vt=ie||se,Bt=0,Ht=0,un=0,Lt=Math.min(it.length-1,ne),St=0;St<=Lt;St+=1){var vn=pt(it[St]);Ht=Bt;var Fn=tt.get(vn);un=Ht+(Fn===void 0?Fe:Fn),Bt=un}for(var Tn=Vt==="top"?be:gt-be,Un=Lt;Un>=0;Un-=1){var tr=pt(it[Un]),gr=tt.get(tr);if(gr===void 0){kt=!0;break}if(Tn-=gr,Tn<=0)break}switch(Vt){case"top":Ze=Ht-be;break;case"bottom":Ze=un-gt+be;break;default:{var $n=Be.current.scrollTop,kn=$n+gt;Ht<$n?ht="top":un>kn&&(ht="bottom")}}Ze!==null&&ge(Ze),Ze!==ee.lastTop&&(kt=!0)}kt&&z((0,je.Z)((0,je.Z)({},ee),{},{times:ee.times+1,targetAlign:ht,lastTop:Ze}))}},[ee,Be.current]),function(ie){if(ie==null){ct();return}if(Ae.Z.cancel(jt.current),typeof ie=="number")ge(ie);else if(ie&&(0,$e.Z)(ie)==="object"){var se,ne=ie.align;"index"in ie?se=ie.index:se=it.findIndex(function(kt){return pt(kt)===ie.key});var be=ie.offset,gt=be===void 0?0:be;z({times:0,index:se,offset:gt,originAlign:ne})}}}var vt=xe.forwardRef(function(Be,it){var tt=Be.prefixCls,Fe=Be.rtl,pt=Be.scrollOffset,Ye=Be.scrollRange,ge=Be.onStartMove,ct=Be.onStopMove,jt=Be.onScroll,Wt=Be.horizontal,ae=Be.spinSize,ee=Be.containerSize,z=Be.style,ie=Be.thumbStyle,se=Be.showScrollBar,ne=xe.useState(!1),be=(0,Ce.Z)(ne,2),gt=be[0],kt=be[1],ht=xe.useState(null),Ze=(0,Ce.Z)(ht,2),Vt=Ze[0],Bt=Ze[1],Ht=xe.useState(null),un=(0,Ce.Z)(Ht,2),Lt=un[0],St=un[1],vn=!Fe,Fn=xe.useRef(),Tn=xe.useRef(),Un=xe.useState(se),tr=(0,Ce.Z)(Un,2),gr=tr[0],$n=tr[1],kn=xe.useRef(),pr=function(){se===!0||se===!1||(clearTimeout(kn.current),$n(!0),kn.current=setTimeout(function(){$n(!1)},3e3))},sr=Ye-ee||0,Ln=ee-ae||0,Cn=xe.useMemo(function(){if(pt===0||sr===0)return 0;var ur=pt/sr;return ur*Ln},[pt,sr,Ln]),tn=function(rr){rr.stopPropagation(),rr.preventDefault()},fn=xe.useRef({top:Cn,dragging:gt,pageY:Vt,startTop:Lt});fn.current={top:Cn,dragging:gt,pageY:Vt,startTop:Lt};var Tt=function(rr){kt(!0),Bt(ft(rr,Wt)),St(fn.current.top),ge(),rr.stopPropagation(),rr.preventDefault()};xe.useEffect(function(){var ur=function(ln){ln.preventDefault()},rr=Fn.current,zn=Tn.current;return rr.addEventListener("touchstart",ur,{passive:!1}),zn.addEventListener("touchstart",Tt,{passive:!1}),function(){rr.removeEventListener("touchstart",ur),zn.removeEventListener("touchstart",Tt)}},[]);var Jt=xe.useRef();Jt.current=sr;var wn=xe.useRef();wn.current=Ln,xe.useEffect(function(){if(gt){var ur,rr=function(ln){var Mt=fn.current,gn=Mt.dragging,In=Mt.pageY,ir=Mt.startTop;Ae.Z.cancel(ur);var nt=Fn.current.getBoundingClientRect(),ot=ee/(Wt?nt.width:nt.height);if(gn){var dn=(ft(ln,Wt)-In)*ot,Xt=ir;!vn&&Wt?Xt-=dn:Xt+=dn;var mt=Jt.current,en=wn.current,hn=en?Xt/en:0,mn=Math.ceil(hn*mt);mn=Math.max(mn,0),mn=Math.min(mn,mt),ur=(0,Ae.Z)(function(){jt(mn,Wt)})}},zn=function(){kt(!1),ct()};return window.addEventListener("mousemove",rr,{passive:!0}),window.addEventListener("touchmove",rr,{passive:!0}),window.addEventListener("mouseup",zn,{passive:!0}),window.addEventListener("touchend",zn,{passive:!0}),function(){window.removeEventListener("mousemove",rr),window.removeEventListener("touchmove",rr),window.removeEventListener("mouseup",zn),window.removeEventListener("touchend",zn),Ae.Z.cancel(ur)}}},[gt]),xe.useEffect(function(){return pr(),function(){clearTimeout(kn.current)}},[pt]),xe.useImperativeHandle(it,function(){return{delayHidden:pr}});var En="".concat(tt,"-scrollbar"),Pn={position:"absolute",visibility:gr?null:"hidden"},jn={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return Wt?(Object.assign(Pn,{height:8,left:0,right:0,bottom:0}),Object.assign(jn,(0,Qe.Z)({height:"100%",width:ae},vn?"left":"right",Cn))):(Object.assign(Pn,(0,Qe.Z)({width:8,top:0,bottom:0},vn?"right":"left",0)),Object.assign(jn,{width:"100%",height:ae,top:Cn})),xe.createElement("div",{ref:Fn,className:Ve()(En,(0,Qe.Z)((0,Qe.Z)((0,Qe.Z)({},"".concat(En,"-horizontal"),Wt),"".concat(En,"-vertical"),!Wt),"".concat(En,"-visible"),gr)),style:(0,je.Z)((0,je.Z)({},Pn),z),onMouseDown:tn,onMouseMove:pr},xe.createElement("div",{ref:Tn,className:Ve()("".concat(En,"-thumb"),(0,Qe.Z)({},"".concat(En,"-thumb-moving"),gt)),style:(0,je.Z)((0,je.Z)({},jn),ie),onMouseDown:Tt}))}),dt=vt,Te=20;function ut(){var Be=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,it=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,tt=Be/it*Be;return isNaN(tt)&&(tt=0),tt=Math.max(tt,Te),Math.floor(tt)}var at=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],_t=[],He={overflowY:"auto",overflowAnchor:"none"};function De(Be,it){var tt=Be.prefixCls,Fe=tt===void 0?"rc-virtual-list":tt,pt=Be.className,Ye=Be.height,ge=Be.itemHeight,ct=Be.fullHeight,jt=ct===void 0?!0:ct,Wt=Be.style,ae=Be.data,ee=Be.children,z=Be.itemKey,ie=Be.virtual,se=Be.direction,ne=Be.scrollWidth,be=Be.component,gt=be===void 0?"div":be,kt=Be.onScroll,ht=Be.onVirtualScroll,Ze=Be.onVisibleChange,Vt=Be.innerProps,Bt=Be.extraRender,Ht=Be.styles,un=Be.showScrollBar,Lt=un===void 0?"optional":un,St=(0,he.Z)(Be,at),vn=xe.useCallback(function(yt){return typeof z=="function"?z(yt):yt==null?void 0:yt[z]},[z]),Fn=et(vn,null,null),Tn=(0,Ce.Z)(Fn,4),Un=Tn[0],tr=Tn[1],gr=Tn[2],$n=Tn[3],kn=!!(ie!==!1&&Ye&&ge),pr=xe.useMemo(function(){return Object.values(gr.maps).reduce(function(yt,Ft){return yt+Ft},0)},[gr.id,gr.maps]),sr=kn&&ae&&(Math.max(ge*ae.length,pr)>Ye||!!ne),Ln=se==="rtl",Cn=Ve()(Fe,(0,Qe.Z)({},"".concat(Fe,"-rtl"),Ln),pt),tn=ae||_t,fn=(0,xe.useRef)(),Tt=(0,xe.useRef)(),Jt=(0,xe.useRef)(),wn=(0,xe.useState)(0),En=(0,Ce.Z)(wn,2),Pn=En[0],jn=En[1],ur=(0,xe.useState)(0),rr=(0,Ce.Z)(ur,2),zn=rr[0],Gn=rr[1],ln=(0,xe.useState)(!1),Mt=(0,Ce.Z)(ln,2),gn=Mt[0],In=Mt[1],ir=function(){In(!0)},nt=function(){In(!1)},ot={getKey:vn};function dn(yt){jn(function(Ft){var Ot;typeof yt=="function"?Ot=yt(Ft):Ot=yt;var It=Gr(Ot);return fn.current.scrollTop=It,It})}var Xt=(0,xe.useRef)({start:0,end:tn.length}),mt=(0,xe.useRef)(),en=xt(tn,vn),hn=(0,Ce.Z)(en,1),mn=hn[0];mt.current=mn;var Dn=xe.useMemo(function(){if(!kn)return{scrollHeight:void 0,start:0,end:tn.length-1,offset:void 0};if(!sr){var yt;return{scrollHeight:((yt=Tt.current)===null||yt===void 0?void 0:yt.offsetHeight)||0,start:0,end:tn.length-1,offset:void 0}}for(var Ft=0,Ot,It,Yt,bn=tn.length,Qt=0;Qt<bn;Qt+=1){var zt=tn[Qt],sn=vn(zt),cn=gr.get(sn),Nn=Ft+(cn===void 0?ge:cn);Nn>=Pn&&Ot===void 0&&(Ot=Qt,It=Ft),Nn>Pn+Ye&&Yt===void 0&&(Yt=Qt),Ft=Nn}return Ot===void 0&&(Ot=0,It=0,Yt=Math.ceil(Ye/ge)),Yt===void 0&&(Yt=tn.length-1),Yt=Math.min(Yt+1,tn.length-1),{scrollHeight:Ft,start:Ot,end:Yt,offset:It}},[sr,kn,Pn,tn,$n,Ye]),yn=Dn.scrollHeight,An=Dn.start,nn=Dn.end,Gt=Dn.offset;Xt.current.start=An,Xt.current.end=nn,xe.useLayoutEffect(function(){var yt=gr.getRecord();if(yt.size===1){var Ft=Array.from(yt.keys())[0],Ot=yt.get(Ft),It=tn[An];if(It&&Ot===void 0){var Yt=vn(It);if(Yt===Ft){var bn=gr.get(Ft),Qt=bn-ge;dn(function(zt){return zt+Qt})}}}gr.resetRecord()},[yn]);var Mn=xe.useState({width:0,height:Ye}),_n=(0,Ce.Z)(Mn,2),Jn=_n[0],Qn=_n[1],Er=function(Ft){Qn({width:Ft.offsetWidth,height:Ft.offsetHeight})},Mr=(0,xe.useRef)(),Vn=(0,xe.useRef)(),Sn=xe.useMemo(function(){return ut(Jn.width,ne)},[Jn.width,ne]),Yn=xe.useMemo(function(){return ut(Jn.height,yn)},[Jn.height,yn]),Rn=yn-Ye,Pr=(0,xe.useRef)(Rn);Pr.current=Rn;function Gr(yt){var Ft=yt;return Number.isNaN(Pr.current)||(Ft=Math.min(Ft,Pr.current)),Ft=Math.max(Ft,0),Ft}var Or=Pn<=0,Vr=Pn>=Rn,Jr=zn<=0,Ur=zn>=ne,Ir=We(Or,Vr,Jr,Ur),ei=function(){return{x:Ln?-zn:zn,y:Pn}},Yr=(0,xe.useRef)(ei()),Zn=(0,de.zX)(function(yt){if(ht){var Ft=(0,je.Z)((0,je.Z)({},ei()),yt);(Yr.current.x!==Ft.x||Yr.current.y!==Ft.y)&&(ht(Ft),Yr.current=Ft)}});function dr(yt,Ft){var Ot=yt;Ft?((0,wt.flushSync)(function(){Gn(Ot)}),Zn()):dn(Ot)}function Nr(yt){var Ft=yt.currentTarget.scrollTop;Ft!==Pn&&dn(Ft),kt==null||kt(yt),Zn()}var Zr=function(Ft){var Ot=Ft,It=ne?ne-Jn.width:0;return Ot=Math.max(Ot,0),Ot=Math.min(Ot,It),Ot},Fr=(0,de.zX)(function(yt,Ft){Ft?((0,wt.flushSync)(function(){Gn(function(Ot){var It=Ot+(Ln?-yt:yt);return Zr(It)})}),Zn()):dn(function(Ot){var It=Ot+yt;return It})}),zr=Nt(kn,Or,Vr,Jr,Ur,!!ne,Fr),ai=(0,Ce.Z)(zr,2),Ke=ai[0],Pt=ai[1];Et(kn,fn,function(yt,Ft,Ot,It){var Yt=It;return Ir(yt,Ft,Ot)?!1:!Yt||!Yt._virtualHandled?(Yt&&(Yt._virtualHandled=!0),Ke({preventDefault:function(){},deltaX:yt?Ft:0,deltaY:yt?0:Ft}),!0):!1}),ve(sr,fn,function(yt){dn(function(Ft){return Ft+yt})}),(0,Oe.Z)(function(){function yt(Ot){var It=Or&&Ot.detail<0,Yt=Vr&&Ot.detail>0;kn&&!It&&!Yt&&Ot.preventDefault()}var Ft=fn.current;return Ft.addEventListener("wheel",Ke,{passive:!1}),Ft.addEventListener("DOMMouseScroll",Pt,{passive:!0}),Ft.addEventListener("MozMousePixelScroll",yt,{passive:!1}),function(){Ft.removeEventListener("wheel",Ke),Ft.removeEventListener("DOMMouseScroll",Pt),Ft.removeEventListener("MozMousePixelScroll",yt)}},[kn,Or,Vr]),(0,Oe.Z)(function(){if(ne){var yt=Zr(zn);Gn(yt),Zn({x:yt})}},[Jn.width,ne]);var bt=function(){var Ft,Ot;(Ft=Mr.current)===null||Ft===void 0||Ft.delayHidden(),(Ot=Vn.current)===null||Ot===void 0||Ot.delayHidden()},Dt=Ge(fn,tn,gr,ge,vn,function(){return tr(!0)},dn,bt);xe.useImperativeHandle(it,function(){return{nativeElement:Jt.current,getScrollInfo:ei,scrollTo:function(Ft){function Ot(It){return It&&(0,$e.Z)(It)==="object"&&("left"in It||"top"in It)}Ot(Ft)?(Ft.left!==void 0&&Gn(Zr(Ft.left)),Dt(Ft.top)):Dt(Ft)}}}),(0,Oe.Z)(function(){if(Ze){var yt=tn.slice(An,nn+1);Ze(yt,tn)}},[An,nn,tn]);var Zt=ye(tn,vn,gr,ge),Ut=Bt==null?void 0:Bt({start:An,end:nn,virtual:sr,offsetX:zn,offsetY:Gt,rtl:Ln,getSize:Zt}),pn=Ee(tn,An,nn,ne,zn,Un,ee,ot),an=null;Ye&&(an=(0,je.Z)((0,Qe.Z)({},jt?"height":"maxHeight",Ye),He),kn&&(an.overflowY="hidden",ne&&(an.overflowX="hidden"),gn&&(an.pointerEvents="none")));var qt={};return Ln&&(qt.dir="rtl"),xe.createElement("div",(0,re.Z)({ref:Jt,style:(0,je.Z)((0,je.Z)({},Wt),{},{position:"relative"}),className:Cn},qt,St),xe.createElement(we.Z,{onResize:Er},xe.createElement(gt,{className:"".concat(Fe,"-holder"),style:an,ref:fn,onScroll:Nr,onMouseEnter:bt},xe.createElement(Pe,{prefixCls:Fe,height:yn,offsetX:zn,offsetY:Gt,scrollWidth:ne,onInnerResize:tr,ref:Tt,innerProps:Vt,rtl:Ln,extra:Ut},pn))),sr&&yn>Ye&&xe.createElement(dt,{ref:Mr,prefixCls:Fe,scrollOffset:Pn,scrollRange:yn,rtl:Ln,onScroll:dr,onStartMove:ir,onStopMove:nt,spinSize:Yn,containerSize:Jn.height,style:Ht==null?void 0:Ht.verticalScrollBar,thumbStyle:Ht==null?void 0:Ht.verticalScrollBarThumb,showScrollBar:Lt}),sr&&ne>Jn.width&&xe.createElement(dt,{ref:Vn,prefixCls:Fe,scrollOffset:zn,scrollRange:ne,rtl:Ln,onScroll:dr,onStartMove:ir,onStopMove:nt,spinSize:Sn,containerSize:Jn.width,horizontal:!0,style:Ht==null?void 0:Ht.horizontalScrollBar,thumbStyle:Ht==null?void 0:Ht.horizontalScrollBarThumb,showScrollBar:Lt}))}var Se=xe.forwardRef(De);Se.displayName="List";var ze=Se,st=ze},93314:function(rn){"use strict";rn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMwAAACaCAYAAADl9acYAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXQd4U1Ubfs/NaJtO9kzLahFQEJkiUBBFUFFkCCjiAAVFERT5FREQQQXBBcpysWRP2RtkKRsEOphNodCZdDfjnv85CU2TZt2bhABNDw9PmtzvrO+c957xLQIP0pkz1yrQIEmwwcDzHhTj91klEo7jpcG5zetWUJdmRjmPvTM9GI9JgSGvadOoLE9KJJ5kPp2YXLtZdO1kT8ooz2vigCNelvPYezPEG7z0CDAn4pJqPvJA5A3vdcl/S3LEy3Iee29OeIOX5YDx3nh4VFI5YDxin6DM5YARxKb7g6gcMHd+n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upKuTQTJ7J7ZYGZE9AHZtHzy1XViBSn0B1Hpnr5jlziZh642WV7V6AOzCBniqurYCnWhDodZ2upGtliXA9l3Y9r75dx4Au7YHntourkChLhOdDjxzPV1wKl8oxpn/Fp0HwC5ugKe6ayvQbGhAuc75SwY5cB8lIfFeoVcPgF1bf09tl1fAgDxdut0wS+supIt2Y8v3zELxqSz7ajsnXZ6Sp4F/rRVoMFShRmf/yq3eK8JljcSE6dsxu9sD4H8trAzK2eqgQ54uDXohPdyJUXLgnkxC4sseADuxWJ4i7l+Ban0JGvW2U+9t9c4B7QZIJ3oA7P698fTgxAo0GepRobN/qaFlMxy4/f8E90wA8RE2tUgAAAAASUVORK5CYII="},16722:function(rn,$t,le){"use strict";le.d($t,{Z:function(){return Ve}});const re=we=>typeof we=="object"&&we!=null&&we.nodeType===1,$e=(we,de)=>(!de||we!=="hidden")&&we!=="visible"&&we!=="clip",je=(we,de)=>{if(we.clientHeight<we.scrollHeight||we.clientWidth<we.scrollWidth){const Oe=getComputedStyle(we,null);return $e(Oe.overflowY,de)||$e(Oe.overflowX,de)||(xe=>{const wt=(Xe=>{if(!Xe.ownerDocument||!Xe.ownerDocument.defaultView)return null;try{return Xe.ownerDocument.defaultView.frameElement}catch(Pe){return null}})(xe);return!!wt&&(wt.clientHeight<xe.scrollHeight||wt.clientWidth<xe.scrollWidth)})(we)}return!1},Qe=(we,de,Oe,xe,wt,Xe,Pe,ke)=>Xe<we&&Pe>de||Xe>we&&Pe<de?0:Xe<=we&&ke<=Oe||Pe>=de&&ke>=Oe?Xe-we-xe:Pe>de&&ke<Oe||Xe<we&&ke>Oe?Pe-de+wt:0,Ce=we=>{const de=we.parentElement;return de==null?we.getRootNode().host||null:de},he=(we,de)=>{var Oe,xe,wt,Xe;if(typeof document=="undefined")return[];const{scrollMode:Pe,block:ke,inline:Ee,boundary:qe,skipOverflowHiddenElements:lt}=de,xt=typeof qe=="function"?qe:dt=>dt!==qe;if(!re(we))throw new TypeError("Invalid target");const Ae=document.scrollingElement||document.documentElement,me=[];let Re=we;for(;re(Re)&&xt(Re);){if(Re=Ce(Re),Re===Ae){me.push(Re);break}Re!=null&&Re===document.body&&je(Re)&&!je(document.documentElement)||Re!=null&&je(Re,lt)&&me.push(Re)}const We=(xe=(Oe=window.visualViewport)==null?void 0:Oe.width)!=null?xe:innerWidth,Nt=(Xe=(wt=window.visualViewport)==null?void 0:wt.height)!=null?Xe:innerHeight,{scrollX:ye,scrollY:Le}=window,{height:Ie,width:Me,top:Je,right:_e,bottom:et,left:Kt}=we.getBoundingClientRect(),{top:Et,right:Ct,bottom:ft,left:ve}=(dt=>{const Te=window.getComputedStyle(dt);return{top:parseFloat(Te.scrollMarginTop)||0,right:parseFloat(Te.scrollMarginRight)||0,bottom:parseFloat(Te.scrollMarginBottom)||0,left:parseFloat(Te.scrollMarginLeft)||0}})(we);let ce=ke==="start"||ke==="nearest"?Je-Et:ke==="end"?et+ft:Je+Ie/2-Et+ft,Ge=Ee==="center"?Kt+Me/2-ve+Ct:Ee==="end"?_e+Ct:Kt-ve;const vt=[];for(let dt=0;dt<me.length;dt++){const Te=me[dt],{height:ut,width:at,top:_t,right:He,bottom:De,left:Se}=Te.getBoundingClientRect();if(Pe==="if-needed"&&Je>=0&&Kt>=0&&et<=Nt&&_e<=We&&(Te===Ae&&!je(Te)||Je>=_t&&et<=De&&Kt>=Se&&_e<=He))return vt;const ze=getComputedStyle(Te),st=parseInt(ze.borderLeftWidth,10),Be=parseInt(ze.borderTopWidth,10),it=parseInt(ze.borderRightWidth,10),tt=parseInt(ze.borderBottomWidth,10);let Fe=0,pt=0;const Ye="offsetWidth"in Te?Te.offsetWidth-Te.clientWidth-st-it:0,ge="offsetHeight"in Te?Te.offsetHeight-Te.clientHeight-Be-tt:0,ct="offsetWidth"in Te?Te.offsetWidth===0?0:at/Te.offsetWidth:0,jt="offsetHeight"in Te?Te.offsetHeight===0?0:ut/Te.offsetHeight:0;if(Ae===Te)Fe=ke==="start"?ce:ke==="end"?ce-Nt:ke==="nearest"?Qe(Le,Le+Nt,Nt,Be,tt,Le+ce,Le+ce+Ie,Ie):ce-Nt/2,pt=Ee==="start"?Ge:Ee==="center"?Ge-We/2:Ee==="end"?Ge-We:Qe(ye,ye+We,We,st,it,ye+Ge,ye+Ge+Me,Me),Fe=Math.max(0,Fe+Le),pt=Math.max(0,pt+ye);else{Fe=ke==="start"?ce-_t-Be:ke==="end"?ce-De+tt+ge:ke==="nearest"?Qe(_t,De,ut,Be,tt+ge,ce,ce+Ie,Ie):ce-(_t+ut/2)+ge/2,pt=Ee==="start"?Ge-Se-st:Ee==="center"?Ge-(Se+at/2)+Ye/2:Ee==="end"?Ge-He+it+Ye:Qe(Se,He,at,st,it+Ye,Ge,Ge+Me,Me);const{scrollLeft:Wt,scrollTop:ae}=Te;Fe=jt===0?0:Math.max(0,Math.min(ae+Fe/jt,Te.scrollHeight-ut/jt+ge)),pt=ct===0?0:Math.max(0,Math.min(Wt+pt/ct,Te.scrollWidth-at/ct+Ye)),ce+=ae-Fe,Ge+=Wt-pt}vt.push({el:Te,top:Fe,left:pt})}return vt},Ne=we=>we===!1?{block:"end",inline:"nearest"}:(de=>de===Object(de)&&Object.keys(de).length!==0)(we)?we:{block:"start",inline:"nearest"};function Ve(we,de){if(!we.isConnected||!(wt=>{let Xe=wt;for(;Xe&&Xe.parentNode;){if(Xe.parentNode===document)return!0;Xe=Xe.parentNode instanceof ShadowRoot?Xe.parentNode.host:Xe.parentNode}return!1})(we))return;const Oe=(wt=>{const Xe=window.getComputedStyle(wt);return{top:parseFloat(Xe.scrollMarginTop)||0,right:parseFloat(Xe.scrollMarginRight)||0,bottom:parseFloat(Xe.scrollMarginBottom)||0,left:parseFloat(Xe.scrollMarginLeft)||0}})(we);if((wt=>typeof wt=="object"&&typeof wt.behavior=="function")(de))return de.behavior(he(we,de));const xe=typeof de=="boolean"||de==null?void 0:de.behavior;for(const{el:wt,top:Xe,left:Pe}of he(we,Ne(de))){const ke=Xe-Oe.top+Oe.bottom,Ee=Pe-Oe.left+Oe.right;wt.scroll({top:ke,left:Ee,behavior:xe})}}}}]);
|