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

1187 lines
843 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

(self.webpackChunk=self.webpackChunk||[]).push([[8999],{40001:function(rn,Ft,ie){"use strict";ie.d(Ft,{Z:function(){return Ue}});var z=ie(54476),Ke=ie(59301),ge={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},Ze=ge,xe=ie(7657),Se=function(de,He){return Ke.createElement(xe.Z,(0,z.Z)({},de,{ref:He,icon:Ze}))},De=Ke.forwardRef(Se),Ue=De},26227:function(rn,Ft,ie){"use strict";ie.d(Ft,{Z:function(){return Ue}});var z=ie(54476),Ke=ie(59301),ge={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"},Ze=ge,xe=ie(7657),Se=function(de,He){return Ke.createElement(xe.Z,(0,z.Z)({},de,{ref:He,icon:Ze}))},De=Ke.forwardRef(Se),Ue=De},41464:function(rn,Ft,ie){"use strict";ie.d(Ft,{Z:function(){return Ue}});var z=ie(54476),Ke=ie(59301),ge={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},Ze=ge,xe=ie(7657),Se=function(de,He){return Ke.createElement(xe.Z,(0,z.Z)({},de,{ref:He,icon:Ze}))},De=Ke.forwardRef(Se),Ue=De},87169:function(rn,Ft,ie){"use strict";ie.d(Ft,{Z:function(){return Ue}});var z=ie(54476),Ke=ie(59301),ge={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},Ze=ge,xe=ie(7657),Se=function(de,He){return Ke.createElement(xe.Z,(0,z.Z)({},de,{ref:He,icon:Ze}))},De=Ke.forwardRef(Se),Ue=De},73331:function(rn,Ft,ie){"use strict";ie.d(Ft,{Z:function(){return Ue}});var z=ie(54476),Ke=ie(59301),ge={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},Ze=ge,xe=ie(7657),Se=function(de,He){return Ke.createElement(xe.Z,(0,z.Z)({},de,{ref:He,icon:Ze}))},De=Ke.forwardRef(Se),Ue=De},15277:function(rn,Ft,ie){"use strict";ie.d(Ft,{Z:function(){return Ue}});var z=ie(54476),Ke=ie(59301),ge={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},Ze=ge,xe=ie(7657),Se=function(de,He){return Ke.createElement(xe.Z,(0,z.Z)({},de,{ref:He,icon:Ze}))},De=Ke.forwardRef(Se),Ue=De},33853:function(rn,Ft,ie){"use strict";ie.d(Ft,{Z:function(){return Ue}});var z=ie(54476),Ke=ie(59301),ge={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},Ze=ge,xe=ie(7657),Se=function(de,He){return Ke.createElement(xe.Z,(0,z.Z)({},de,{ref:He,icon:Ze}))},De=Ke.forwardRef(Se),Ue=De},43531:function(rn,Ft,ie){"use strict";ie.d(Ft,{Z:function(){return Ue}});var z=ie(54476),Ke=ie(59301),ge={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"},Ze=ge,xe=ie(7657),Se=function(de,He){return Ke.createElement(xe.Z,(0,z.Z)({},de,{ref:He,icon:Ze}))},De=Ke.forwardRef(Se),Ue=De},61485:function(rn,Ft,ie){"use strict";ie.d(Ft,{Z:function(){return Ue}});var z=ie(54476),Ke=ie(59301),ge={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},Ze=ge,xe=ie(7657),Se=function(de,He){return Ke.createElement(xe.Z,(0,z.Z)({},de,{ref:He,icon:Ze}))},De=Ke.forwardRef(Se),Ue=De},47472:function(rn,Ft,ie){"use strict";ie.d(Ft,{Z:function(){return Ue}});var z=ie(54476),Ke=ie(59301),ge={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},Ze=ge,xe=ie(7657),Se=function(de,He){return Ke.createElement(xe.Z,(0,z.Z)({},de,{ref:He,icon:Ze}))},De=Ke.forwardRef(Se),Ue=De},87395:function(rn,Ft,ie){"use strict";ie.d(Ft,{Z:function(){return Ue}});var z=ie(54476),Ke=ie(59301),ge={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"},Ze=ge,xe=ie(7657),Se=function(de,He){return Ke.createElement(xe.Z,(0,z.Z)({},de,{ref:He,icon:Ze}))},De=Ke.forwardRef(Se),Ue=De},33515:function(){"use strict"},75620:function(){"use strict"},34537:function(rn,Ft){"use strict";Ft.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},75964: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={},Ft="5.0",ie={},z=null,Ke=!1,ge=!1,Ze=null,xe=!1,Se=null,De=null,Ue=0;Ue<arguments.length;Ue++){var Pe=arguments[Ue];if(Pe!==null)switch(typeof Pe){case"number":Ft=Pe.toFixed(1);break;case"string":Pe.match(new RegExp("^[0-9]\\.[0-9]+$"))?Ft=Pe:Ze=Pe;break;case"object":typeof Pe.is3D!="undefined"?z=Pe:ie=Pe;break;case"boolean":Ke=Pe,ge=!0;break}}z===null&&(z={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},ie.material_id!==void 0&&!ge&&(Ke=!0)),Ze!==null&&ie.id===void 0&&(ie.id=Ze);var de="",He="",ye=!1,vt=null,je=null,Te=null,ke=!1,Ne=null,yt=null,wt=null,Pt=null,bt=null;ie.height!==void 0&&(ie.height=Math.round(ie.height)),ie.width!==void 0&&(ie.width=Math.round(ie.width));var pt=function(We){return parseFloat(We)>4?parseFloat(We):5};rn.setHTML5Codebase=function(We,ot){De=We,Et(We,ot)},rn.setJavaCodebase=rn.setJavaCodebaseVersion=rn.isCompiledInstalled=rn.setPreCompiledScriptPath=rn.setPreCompiledResourcePath=function(){},rn.setHTML5CodebaseVersion=function(We,ot){var dt=parseFloat(We);if(dt!==NaN&&dt<5){console.log("The GeoGebra HTML5 codebase version "+dt+" is deprecated. Using version latest instead.");return}Se=We,fe(We,ot)},rn.getHTML5CodebaseVersion=function(){return je},rn.getParameters=function(){return ie},rn.setFontsCSSURL=function(We){Pt=We},rn.setGiacJSURL=function(We){},rn.setJNLPFile=function(We){de=We},rn.setJNLPBaseDir=function(We){},rn.inject=function(){function We(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var ot="auto",dt=ie.id,$t,Lt=!1,Vt=0;Vt<arguments.length;Vt++){var rt=arguments[Vt];typeof rt=="string"?(rt=rt.toLowerCase(),rt.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?ot=rt:dt=arguments[Vt]):typeof rt=="boolean"?Lt=rt:rt instanceof HTMLElement&&($t=rt)}Ht();function Ht(){if(!xe){setTimeout(Ht,200);return}ot=on(ot);var st=$t||document.getElementById(dt);if(!st){console.log("possibly bug on ajax loading? ");return}if(rn.removeExistingApplet(st,!1),ie.width===void 0&&st.clientWidth&&(ie.width=st.clientWidth),ie.height===void 0&&st.clientHeight&&(ie.height=st.clientHeight),!(ie.width&&ie.height)&&ot==="html5"&&(delete ie.width,delete ie.height),vt=ot,ot==="screenshot")ut(st,ie);else{var ae=!1;ie.hasOwnProperty("playButton")&&ie.playButton||ie.hasOwnProperty("clickToLoad")&&ie.clickToLoad?ae=!0:ie.hasOwnProperty("playButtonAutoDecide")&&ie.playButtonAutoDecide&&(ae=(!lt()||We())&&_e()),ae?(vt="screenshot",At(st,ie,Lt,ot)):gt(st,ie,Lt)}}};function lt(){try{return window.self!==window.top}catch(We){return!0}}function _e(){return ie.hasOwnProperty("screenshotGenerator")&&ie.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}rn.getViews=function(){return z},rn.isJavaInstalled=function(){return!1};var kt=function(We){var ot=function(Vt){var rt=JSON.parse(Vt),Ht=function(te){return te.type=="G"||te.type=="E"},st=rt.elements?rt.elements.filter(Ht)[0]:rt;if(!st||!st.url){dt();return}ie.fileName=st.url,nt(st.settings||{}),z.is3D=!0;var ae="https://www.geogebra.org/images/";rn.setPreviewImage(Ne||st.previewUrl,ae+"GeoGebra_loading.png",ae+"applet_play.png"),We()},dt=function(){ie.onError&&ie.onError(),Jt("Error: Fetching material (id "+ie.material_id+") failed.",ie)},$t=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",Lt="/materials/"+ie.material_id+"?scope=basic";it("https://"+$t+"/api/proxy.php?path="+encodeURIComponent(Lt),ot,dt)};function nt(We){var ot=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(dt){We[dt]=!!We[dt]}),ot.forEach(function(dt){ie[dt]===void 0&&We[dt]!==void 0&&(ie[dt]=We[dt])}),ie.showToolBarHelp===void 0&&(ie.showToolBarHelp=ie.showToolBar)}function it(We,ot,dt){var $t=new XMLHttpRequest;$t.open("GET",We),$t.onload=function(){ot($t.responseText)},$t.onerror=dt,$t.send()}rn.isHTML5Installed=function(){return!0},rn.getLoadedAppletType=function(){return vt},rn.setPreviewImage=function(We,ot,dt){Ne=We,yt=ot,wt=dt},rn.removeExistingApplet=function(We,ot){var dt;typeof We=="string"&&(We=document.getElementById(We)),vt=null;var $t=null;for(dt=0;dt<We.childNodes.length;dt++){var Lt=We.childNodes[dt],Vt=Lt.className;Vt==="applet_screenshot"?ot?(Lt.style.display="block",vt="screenshot"):Lt.style.display="none":Vt!=="applet_scaler prerender"&&(We.removeChild(Lt),$t=Vt&&Vt.indexOf("appletParameters")!=-1?Lt.id:null,dt--)}var rt=ie.id!==void 0?ie.id:$t,Ht=window[rt];Ht&&typeof Ht.getBase64=="function"&&(Ht.remove(),window[rt]=null)},rn.refreshHitPoints=function(){if(pt(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var We=rn.getAppletObject();return We&&typeof We.recalculateEnvironments=="function"?(We.recalculateEnvironments(),!0):!1},rn.startAnimation=function(){var We=rn.getAppletObject();return We&&typeof We.startAnimation=="function"?(We.startAnimation(),!0):!1},rn.stopAnimation=function(){var We=rn.getAppletObject();return We&&typeof We.stopAnimation=="function"?(We.stopAnimation(),!0):!1},rn.getAppletObject=function(){var We=ie.id!==void 0?ie.id:"ggbApplet";return window[We]},rn.resize=function(){};var Ct=function(We,ot,dt){var $t=document.createElement("param");$t.setAttribute("name",ot),$t.setAttribute("value",dt),We.appendChild($t)},ze=function(We){return We&&We!=="false"},gt=function(We,ot,dt){pt(je)<=4.2&&(dt=!0);var $t=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==je||ggbHTML5LoadedCodebaseIsWebSimple&&!ke)&&($t=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Lt=document.createElement("div");Lt.classList.add("appletParameters","notranslate");var Vt=ot.width,rt=ot.height;if(ot.disableAutoScale=ot.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():ot.disableAutoScale,ot.width!==void 0)if(pt(je)<=4.4)ze(ot.showToolBar)&&(ot.height-=7),ze(ot.showAlgebraInput)&&(ot.height-=37),ot.width<605&&ze(ot.showToolBar)&&(ot.width=605,Vt=605);else{var Ht=100;(ze(ot.showToolBar)||ze(ot.showMenuBar))&&(ot.hasOwnProperty("customToolBar")&&(ot.customToolbar=ot.customToolBar),Ht=ze(ot.showMenuBar)?245:155),Vt<Ht&&(ot.width=Ht,Vt=Ht)}Lt.style.border="none",Lt.style.display="inline-block";for(var st in ot)ot.hasOwnProperty(st)&&st!=="appletOnLoad"&&Lt.setAttribute("data-param-"+st,ot[st]);Pt&&Lt.setAttribute("data-param-fontscssurl",Pt),rn.resize=function(){GGBAppletUtils.responsiveResize(We,ot)},window.addEventListener("resize",function(It){rn.resize()});var ae=typeof ot.appletOnLoad=="function"?ot.appletOnLoad:function(){};if(!dt&&ot.width!==void 0){ot.hasOwnProperty("showSplash")||Lt.setAttribute("data-param-showSplash","false");var te=We.querySelector(".applet_scaler.prerender"),ee=te!==null;if(ee)var oe=te.querySelector(".ggb_preview");else{var oe=Nt(Vt,rt,ot.borderColor,!1);te=document.createElement("div"),te.className="applet_scaler",te.style.position="relative",te.style.display="block",te.style.width=Vt+"px",te.style.height=rt+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(te,"66%"),pt(je)>=5?(ot.appletOnLoad=function(It){var xt=We.querySelector(".ggb_preview");xt&&xt.parentNode.removeChild(xt),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(te),window.GGBT_wsf_view&&$(window).trigger("resize"),ae(It)},ee||te.appendChild(oe)):Lt.appendChild(oe),te.appendChild(Lt),ee||We.appendChild(te),setTimeout(function(){rn.resize()},1)}else{var se=document.createElement("div");se.className="applet_scaler",se.style.position="relative",se.style.display="block",se.appendChild(Lt),We.appendChild(se),ot.appletOnLoad=function(It){rn.resize(),ae(It)}}function re(It,xt){xt&&typeof xt.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(It,xt.appletOnLoad):renderGGBElement(It),Jt("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",xt)}function he(It,xt){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:It,params:xt}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(Xt){re(Xt.article,Xt.params)}),html5AppletsToProcess=null)},pt(je)<5&&(It.className+=" geogebraweb")):re(It,xt)}if($t){scriptLoadStarted=!0;for(var be=0;be<Lt.childNodes.length;be++){var ht=Lt.childNodes[be].tagName;ht==="TABLE"&&(Lt.removeChild(Lt.childNodes[be]),be--)}if(ggbHTML5LoadedScript!==null){var Me=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');Me!=null&&Me.parentNode.removeChild(Me)}var Ye=document.createElement("script"),mt=function(){he(Lt,ot)};Ye.src=He+Te,ggbHTML5LoadedCodebaseIsWebSimple=ke,ggbHTML5LoadedCodebaseVersion=je,ggbHTML5LoadedScript=Ye.src,Jt("GeoGebra HTML5 codebase loaded: '"+He+"'.",ot),!De&&(!Se||Se=="5.0")?(ke?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),mt()):He.requirejs?__webpack_require__.e(2408).then(function(){var It=[__webpack_require__(39133)];mt.apply(null,It)}.bind(this)).catch(__webpack_require__.oe):(Ye.onload=mt,We.appendChild(Ye))}else he(Lt,ot);ot.height=rt,ot.width=Vt},ut=function(We,ot,dt){var $t=Nt(ot.width,ot.height,ot.borderColor,dt),Lt=document.createElement("div");Lt.style.position="relative",Lt.style.display="block",Lt.style.width=ot.width+"px",Lt.style.height=ot.height+"px",Lt.className="applet_screenshot applet_scaler"+(dt?" applet_screenshot_play":""),Lt.appendChild($t);var Vt=GGBAppletUtils.getScale(ot,We,dt);dt?(We.appendChild(Be()),window.GGBT_wsf_view||(We.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Lt,"66%"),We.appendChild(Lt),Vt!==1&&!isNaN(Vt)&&(GGBAppletUtils.scaleElement(Lt,Vt),Lt.style.width=ot.width+"px",Lt.style.height=ot.height+"px",Lt.parentNode.style.width=ot.width*Vt+"px",Lt.parentNode.style.height=ot.height*Vt+"px"),rn.resize=function(){pe(We,$t,Lt,dt)},window.addEventListener("resize",function(rt){rn.resize()}),rn.resize()};function pe(We,ot,dt,$t){if(We.contains(ot)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(We.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(We)}var Lt=GGBAppletUtils.getScale(ie,We,$t);dt.parentNode!==null&&(!isNaN(Lt)&&Lt!==1?(GGBAppletUtils.scaleElement(dt,Lt),dt.parentNode.style.width=ie.width*Lt+"px",dt.parentNode.style.height=ie.height*Lt+"px"):(GGBAppletUtils.scaleElement(dt,1),dt.parentNode.style.width=ie.width+"px",dt.parentNode.style.height=ie.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(We),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}rn.onExitFullscreen=function(We,ot){ot.appendChild(We)};var At=function(We,ot,dt,$t){ut(We,ot,!0);for(var Lt=function(){var Ht=[];for(rt=0;rt<We.childNodes.length;rt++)Ht.push(We.childNodes[rt]);if(window.GGBT_wsf_view){var st=window.GGBT_wsf_view.renderFullScreen(We,ot.id),ae=document.getElementById("fullscreencontainer"),te=jQuery(We).find(".fullscreencontent");te.length>0?(st.remove(),te.attr("id","fullscreencontent").show(),jQuery(ae).append(te),window.dispatchEvent(new Event("resize"))):gt(st,ot,!1),window.GGBT_wsf_view.launchFullScreen(ae)}else vt=$t,gt(We,ot,!1);if(!window.GGBT_wsf_view)for(rt=0;rt<Ht.length;rt++)We.removeChild(Ht[rt])},Vt=We.getElementsByClassName("ggb_preview_play"),rt=0;rt<Vt.length;rt++)Vt[rt].addEventListener("click",Lt,!1),Vt[rt].addEventListener("ontouchstart",Lt,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(We),_e()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},Be=function(){var We=document.createElement("div");if(We.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var ot='.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");}',dt=document.createElement("style");dt.styleSheet?dt.styleSheet.cssText=ot:dt.appendChild(document.createTextNode(ot)),document.getElementsByTagName("head")[0].appendChild(dt)}return We},Nt=function(We,ot,dt,$t){var Lt=document.createElement("div");Lt.className="ggb_preview",Lt.style.position="absolute",Lt.style.zIndex="90",Lt.style.width=We-2+"px",Lt.style.height=ot-2+"px",Lt.style.top="0px",Lt.style.left="0px",Lt.style.overflow="hidden",Lt.style.backgroundColor="white";var Vt="lightgrey";dt!==void 0&&(dt==="none"?Vt="transparent":Vt=dt),Lt.style.border="1px solid "+Vt;var rt=document.createElement("img");if(rt.style.position="relative",rt.style.zIndex="1000",rt.style.top="-1px",rt.style.left="-1px",Ne!==null&&rt.setAttribute("src",Ne),rt.style.opacity=.7,yt!==null){var Ht,st,ae;if(!$t){Ht=document.createElement("img"),Ht.style.position="absolute",Ht.style.zIndex="1001",Ht.style.opacity=1,rt.style.opacity=.3,st=360,st>We/4*3&&(st=We/4*3),ae=st/5.8,Ht.setAttribute("src",yt),Ht.setAttribute("width",st),Ht.setAttribute("height",ae);var te=(We-st)/2,ee=(ot-ae)/2;Ht.style.left=te+"px",Ht.style.top=ee+"px",Lt.appendChild(Ht)}}return Lt.appendChild(rt),Lt},on=function(We){return We=We.toLowerCase(),We==="html5"||We==="screenshot"?We:"html5"},Ee=["web","webSimple","web3d","tablet","tablet3d","phone"],fe=function(We,ot){if(je=We,ot){Et(je,!0);return}var dt=!Ke;if(dt){var $t=pt(je);!isNaN($t)&&$t<4.4&&(dt=!1)}var Lt,Vt;window.location.protocol.substr(0,4)==="http"?Lt=window.location.protocol:Lt="http:";var rt=je.indexOf("//");rt>0?Vt=je:rt===0?Vt=Lt+je:Vt="https://www.geogebra.org/apps/5.2.814.0/";for(var Ht in Ee)if(je.slice(Ee[Ht].length*-1)===Ee[Ht]||je.slice((Ee[Ht].length+1)*-1)===Ee[Ht]+"/"){Et(Vt,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&dt&&!z.is3D&&!z.AV&&!z.SV&&!z.CV&&!z.EV2&&!z.CP&&!z.PC&&!z.DA&&!z.FI&&!z.PV&&!ze(ie.showToolBar)&&!ze(ie.showMenuBar)&&!ze(ie.showAlgebraInput)&&!ze(ie.enableRightClick)&&(!ie.appName||ie.appName=="classic")?Vt+="webSimple/":Vt+="web3d/",Et(Vt,!1)},Et=function(We,ot){if(We.requirejs){He=We;return}We.slice(-1)!=="/"&&(We+="/"),He=We,ot===null&&(ot=We.indexOf("http")===-1),ye=ot,Te="web.nocache.js",ke=!1;var dt=He.split("/");dt.length>1&&(!ot&&dt[dt.length-2]==="webSimple"?(Te="webSimple.nocache.js",ke=!0):Ee.indexOf(dt[dt.length-2])>=0&&(Te=dt[dt.length-2]+".nocache.js")),dt=We.split("/"),je=dt[dt.length-3],je.substr(0,4)==="test"?je=je.substr(4,1)+"."+je.substr(5,1):(je.substr(0,3)==="war"||je.substr(0,4)==="beta")&&(je="5.0");var $t=parseFloat(je);$t!==NaN&&$t<5&&We.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+$t+" is deprecated. Using version latest instead."),fe("5.0",ot))},Jt=function(We,ot){window.console&&window.console.log&&(!ot||typeof ot.showLogging=="undefined"||ot.showLogging&&ot.showLogging!=="false")&&console.log(We)};ie.material_id!==void 0?kt(Dt):Dt();function Dt(){var We=Ft;Se!==null?We=Se:parseFloat(We)<5&&(We="5.0"),fe(We,!1),De!==null&&Et(De,ye),xe=!0}return rn},GGBAppletUtils=function(){"use strict";function rn(){return window.GGBT_wsf_edit!==void 0}function Ft(xe,Se){Se!=1?(xe.style.transformOrigin="0% 0% 0px",xe.style.webkitTransformOrigin="0% 0% 0px",xe.style.transform="scale("+Se+","+Se+")",xe.style.webkitTransform="scale("+Se+","+Se+")",xe.style.maxWidth="initial",xe.querySelector(".ggb_preview")!==null&&(xe.querySelector(".ggb_preview").style.maxWidth="initial"),xe.querySelectorAll(".ggb_preview img")[0]!==void 0&&(xe.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),xe.querySelectorAll(".ggb_preview img")[1]!==void 0&&(xe.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(xe.style.transform="none",xe.style.webkitTransform="none")}function ie(xe,Se,De,Ue,Pe,de){var He=null;if(de!=null&&de!="")for(var ye=xe.parentNode;ye!=null;)if((" "+ye.className+" ").indexOf(" "+de+" ")>-1){He=ye;break}else ye=ye.parentNode;var vt=0,je=0,Te=0,ke=0,Ne=0,yt=0,wt=0;if(He)vt=He.offsetWidth,je=Math.max(Ue?He.offsetWidth:0,He.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(vt=Math.min(window.innerWidth,document.documentElement.clientWidth),je=Math.min(window.innerHeight,document.documentElement.clientHeight),Te=vt):(vt=window.innerWidth,je=window.innerHeight,Te=window.innerWidth),xe){var Pt=xe.getBoundingClientRect();Pt.left>0&&Pt.left<=vt&&(Pe===void 0||!Pe)&&(document.dir==="rtl"?(Ne=vt-Pt.width-Pt.left,yt=Te<=480?10:30):(yt=Pt.left,Ne=Te<=480?10:30),ke=yt+Ne)}if(xe&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var bt=xe.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(ke=40,wt=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(ke=0,wt=40)}}return xe&&((De===void 0||!De)&&Se>0&&Se+ke<vt?vt=Se:vt-=ke,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(De===void 0||!De)&&(je-=wt)),{width:vt,height:je}}function z(xe,Se,De,Ue,Pe){if(xe.isScreenshoGenerator)return 1;var de=Ue!==void 0&&Ue,He=xe.noScaleMargin!=null&&xe.noScaleMargin,ye=function(bt){return bt&&bt!=="false"},vt=ye(xe.autoHeight),je=ie(Se,xe.width,De,vt,de&&window.GGBT_wsf_view||He,Pe),Te=parseInt(je.width),ke=xe.width,Ne=xe.height;if(ke===void 0){var yt=Se.querySelector(".appletParameters");yt&&(ke=yt.offsetWidth,Ne=yt.offsetHeight)}var wt=Te/ke,Pt=de?1:je.height/Ne;return De!==void 0&&!De&&(wt=Math.min(1,wt),Pt=Math.min(1,Pt)),Math.min(wt,Pt)}function Ke(xe,Se,De){var Ue=1,Pe,de=!1;if(xe.hasOwnProperty("allowUpscale")&&(de=xe.allowUpscale),xe.hasOwnProperty("scale")&&(Ue=parseFloat(xe.scale),(isNaN(Ue)||Ue===null||Ue===0)&&(Ue=1),Ue>1&&(de=!0)),Se&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(de=!0),!(xe.hasOwnProperty("disableAutoScale")&&xe.disableAutoScale))Pe=z(xe,Se,de,De,xe.scaleContainerClass);else return Ue;return de&&(!xe.hasOwnProperty("scale")||Ue===1)?Pe:Math.min(Ue,Pe)}function ge(xe){var Se=Math.min(window.innerWidth,document.documentElement.clientWidth),De=Math.min(window.innerHeight,document.documentElement.clientHeight),Ue=xe.getBoundingClientRect(),Pe=(Se-Ue.width)/2,de=(De-Ue.height)/2;de<0&&(de=0),xe.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Pe<40?xe.style.left="40px":xe.style.left=Pe+"px",xe.style.top=de+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(de<40?xe.style.top="40px":xe.style.top=de+"px",xe.style.left=Pe+"px")}function Ze(xe,Se){var De=xe.querySelector(".appletParameters");if(De){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(Se.id!==De.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(xe)}if(De.parentElement&&/fullscreen/.test(De.parentElement.className))return;var Ue=Ke(Se,xe);rn()&&De.setAttribute("data-param-scale",Ue);for(var Pe=null,de=0;de<xe.childNodes.length;de++)if(xe.childNodes[de].className!==void 0&&xe.childNodes[de].className.match(/^applet_scaler/)){Pe=xe.childNodes[de];break}if(Pe!==null&&Pe.querySelector(".noscale")!==null)return;var He=Se.id!==void 0?Se.id:"ggbApplet",ye=window[He];(ye==null||!ye.recalculateEnvironments)&&Pe!==null&&!Pe.className.match(/fullscreen/)&&(Pe.parentNode.style.transform="",!isNaN(Ue)&&Ue!==1?(Pe.parentNode.style.width=Se.width*Ue+"px",Pe.parentNode.style.height=Se.height*Ue+"px",Ft(Pe,Ue)):(Ft(Pe,1),Pe.parentNode.style.width=Se.width+"px",Pe.parentNode.style.height=Se.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&ge(xe),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(De).parents(".content-added-content"))}}return{responsiveResize:Ze,isFlexibleWorksheetEditor:rn,positionCenter:ge,getScale:Ke,scaleElement:Ft}}();__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,Ft){}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 Ft=s[L].bindings;s[L].bindings=function(){for(var ie=Ft?Ft():{},z=rn[webModule.__softPermutationId],Ke=O;Ke<z.length;Ke++){var ge=z[Ke];ie[ge[O]]=ge[P]}return ie}};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 Ft=document.compatMode==U?V:W;t.write(Ft+X),t.close()}}}function w(rn){function Ft(z){function Ke(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var ge=Ke();if(ge){z();return}function Ze(){if(!ge){if(!Ke())return;ge=!0,z(),o.removeEventListener&&o.removeEventListener(Z,Ze,!1),xe&&clearInterval(xe)}}o.addEventListener&&o.addEventListener(Z,Ze,!1);var xe=setInterval(function(){Ze()},$)}function ie(z){var Ke=u(),ge=Ke.body,Ze=Ke.createElement(_);Ze.language=ab,Ze.crossOrigin=W,Ze.src=z,webModule.__errFn&&(Ze.onerror=function(){webModule.__errFn(L,new Error(bb+z))}),ge.appendChild(Ze)}Ft(function(){ie(rn)})}webModule.__startLoadingFragment=function(rn){return C(rn)},webModule.__installRunAsyncCode=function(rn){var Ft=u(),ie=Ft.body,z=Ft.createElement(_);z.language=ab,z.text=rn,ie.appendChild(z),ie.removeChild(z)};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 Ft=c[rn];return Ft==null?null:Ft},r=d,webModule.__errFn=e}function B(){function rn(xe){var Se=xe.lastIndexOf(rb);Se==-1&&(Se=xe.length);var De=xe.indexOf(sb);De==-1&&(De=xe.length);var Ue=xe.lastIndexOf(tb,Math.min(De,Se));return Ue>=O?xe.substring(O,Ue+P):W}function Ft(xe){if(!xe.match(/^\w+:\/\//)){var Se=o.createElement(ub);Se.src=xe+vb,xe=rn(Se.src)}return xe}function ie(){var xe=__gwt_getMetaProperty(wb);return xe!=null?xe:W}function z(){for(var xe=o.getElementsByTagName(_),Se=O;Se<xe.length;++Se)if(xe[Se].src.indexOf(xb)!=-1)return rn(xe[Se].src);return W}function Ke(){var xe=o.getElementsByTagName(yb);return xe.length>O?xe[xe.length-P].href:W}function ge(){var xe=o.location;return xe.href==xe.protocol+zb+xe.host+xe.pathname+xe.search+xe.hash}var Ze=ie();return Ze==W&&(Ze=z()),Ze==W&&(Ze=Ke()),Ze==W&&ge()&&(Ze=rn(o.location.href)),Ze=Ft(Ze),Ze}function C(rn){return rn.match(/^\//)||rn.match(/^[a-zA-Z]+:\/\//)?rn:webModule.__moduleBase+rn}function D(){var rn=[],Ft=O,ie=[],z=[];function Ke(xe){var Se=z[xe](),De=ie[xe];if(Se in De)return Se;var Ue=[];for(var Pe in De)Ue[De[Pe]]=Pe;throw r&&r(xe,Ue,Se),null}if(__gwt_isKnownPropertyValue=function(xe,Se){return Se in ie[xe]},webModule.__getPropMap=function(){var xe={};for(var Se in ie)ie.hasOwnProperty(Se)&&(xe[Se]=Ke(Se));return xe},webModule.__computePropValue=Ke,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var ge;try{ge=Cb;var Ze=ge.indexOf(Db);Ze!=-1&&(Ft=parseInt(ge.substring(Ze+P),$),ge=ge.substring(O,Ze))}catch(xe){}return webModule.__softPermutationId=Ft,C(ge+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})()},83498:function(rn,Ft,ie){"use strict";ie.d(Ft,{Ax:function(){return Ze},Ds:function(){return xe},KI:function(){return De},SI:function(){return ge},f1:function(){return Ke}});var z=ie(14661);function Ke(Ue){let Pe=!0;if(Ue.length>0){for(let de=0;de<Ue.length;de++)if(Ue[de].compile_success==0||!Ue[de].compile_success){Pe=!1;break}}else Pe=!1;return Pe}function ge(Ue,Pe=""){let de=[];for(let He=0;He<Ue.length;He++){let ye=Ue[He],vt=Pe?`${Pe}/${ye.name}`:`${ye.name}`;de.push({title:ye.name,type:ye.type,isLeaf:ye.type!=="tree",key:vt})}return de}function Ze(Ue,Pe,de){for(let He=0;He<Ue.length;He++){let ye=Ue[He];if(ye.key===Pe){ye.children=de;break}ye.children&&Ze(ye.children,Pe,de)}return Ue}function xe(Ue,Pe,de){let He;return function(){let ye=this,vt=arguments,je=function(){He=null,de||Ue.apply(ye,vt)},Te=de&&!He;clearTimeout(He),He=setTimeout(je,Pe),Te&&Ue.apply(ye,vt)}}const Se=!0,De=z.Z.API_SERVER},16202:function(rn,Ft,ie){"use strict";ie.d(Ft,{Z:function(){return He}});var z=ie(59301),Ke={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},ge=ie(92310),Ze=ie.n(ge),xe=ie(29787),Se=ie(2859),De=ie(66658),Ue=ie(7408),Pe=(ye,vt,je)=>new Promise((Te,ke)=>{var Ne=Pt=>{try{wt(je.next(Pt))}catch(bt){ke(bt)}},yt=Pt=>{try{wt(je.throw(Pt))}catch(bt){ke(bt)}},wt=Pt=>Pt.done?Te(Pt.value):Promise.resolve(Pt.value).then(Ne,yt);wt((je=je.apply(ye,vt)).next())}),He=({data:ye,className:vt,fullWidth:je,style:Te={},onClose:ke,onOk:Ne,showFullTools:yt,noAssociationId:wt})=>{const Pt=(0,z.useRef)(null),bt=(0,z.useRef)(null),pt=(0,z.useRef)(null),lt=(0,z.useRef)(null),[_e,kt]=(0,z.useState)(!1),[nt,it]=(0,z.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,z.useEffect)(()=>(pt.current||(pt.current=document.createElement("style"),document.head.appendChild(pt.current)),ye!=null&&ye.visible?(document.body.setAttribute("data-custom","y-hidden"),pt.current.innerHTML=" html { overflow-y: hidden; }",ye!=null&&ye.src&&Ct()):(document.body.removeAttribute("data-custom"),pt.current&&(document.head.removeChild(pt.current),pt.current=null)),()=>{document.body.removeAttribute("data-custom"),pt.current&&(document.head.removeChild(pt.current),pt.current=null)}),[ye==null?void 0:ye.visible]);const Ct=()=>Pe(void 0,null,function*(){kt(!0),it("\u6B63\u5728\u52A0\u8F7D\u4E2D");const pe=yield(0,Ue.ZJ)(ye==null?void 0:ye.src);Pt.current.src="",Pt.current.src=pe,Pt.current.onload=function(){ut()},kt(!1),it("")}),ze=pe=>Pe(void 0,null,function*(){kt(!0),it("\u6B63\u5728\u4FDD\u5B58\u4E2D");const At=yield(0,De.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:ye.title,file:pe.dataUrl}});At!=null&&At.id&&!wt?(yield(0,De.ZP)(`/api/attachments/${ye.id}/add_subitem.json`,{method:"post",body:{subitem_id:At==null?void 0:At.id,settings:JSON.stringify(pe.state)}})).status===0&&Ne():At!=null&&At.id&&Ne(At),kt(!1),it("")}),gt=()=>{const pe=document.querySelector('a[href="https://markerjs.com/"]');pe&&pe.parentNode&&(pe.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(Be=>{const Nt=document.querySelector(Be.name);Nt&&Nt.setAttribute("title",Be.title)})},ut=()=>{bt.current=new Se.hP(Pt.current),bt.current.targetRoot=lt.current,bt.current.addEventListener("render",ze),bt.current.addEventListener("beforeclose",ke),yt&&(bt.current.availableMarkerTypes=bt.current.ALL_MARKER_TYPES,bt.current.uiStyleSettings.redoButtonVisible=!0,bt.current.uiStyleSettings.notesButtonVisible=!0,bt.current.uiStyleSettings.zoomButtonVisible=!0,bt.current.uiStyleSettings.zoomOutButtonVisible=!0,bt.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=bt.current.uiStyleSettings,bt.current.show(),ye!=null&&ye.snapshotData&&bt.current.restoreState(ye.snapshotData),setTimeout(()=>{window.scrollTo(0,0),gt()},300)};return z.createElement(z.Fragment,null,(ye==null?void 0:ye.visible)&&z.createElement(xe.Z,{spinning:_e,tip:nt,style:{position:"absolute",width:"100vw"}},z.createElement("div",{ref:lt,className:Ze()(Ke.imageDimensions,vt,je?Ke.fullWidth:""),style:Te},z.createElement("img",{className:Ke.img,ref:Pt}))))}},45469:function(rn,Ft,ie){"use strict";var z=ie(59301),Ke=ie(77019),ge=ie(5269),Ze=ie(31691),xe=ie(7939),Se=ie(84660),De=ie(34537),Ue=ie(48136),Pe=ie(59301);const de=(0,z.forwardRef)(({callback:He,showSaveButton:ye,value:vt=""},je)=>{const Te=(0,z.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 "}]}]}],Ne=[{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}`}]}]}],yt=bt=>{Te.current.setValue(Te.current.getValue()+" "+bt.value+" ")},wt=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:Pe.createElement(Ke.Z,{className:De.Z.lists,gutter:[10,10]},ke.map((bt,pt)=>Pe.createElement(ge.Z,{flex:"110px",className:De.Z.item},Pe.createElement("div",null,Pe.createElement(Se.Z,{value:`$$${bt.value}$$`}),bt.name),Pe.createElement("div",{className:De.Z.children},bt.children.map((lt,_e)=>Pe.createElement("div",{key:_e},Pe.createElement("h1",null,lt.name),Pe.createElement(Ke.Z,{gutter:[10,10]},lt.data.map((kt,nt)=>Pe.createElement(ge.Z,{key:nt,onClick:()=>yt(kt),className:De.Z.diamond},Pe.createElement(Se.Z,{value:"`$$"+kt.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Pe.createElement(Ke.Z,{className:De.Z.lists,gutter:[10,10]},Ne.map((bt,pt)=>Pe.createElement(ge.Z,{flex:"110px",className:De.Z.item},Pe.createElement("div",null,Pe.createElement(Se.Z,{value:"`$$"+bt.value+"$$`"}),bt.name),Pe.createElement("div",{className:De.Z.children},bt.children.map((lt,_e)=>Pe.createElement("div",{key:_e},lt.name&&Pe.createElement("h1",null,lt.name),Pe.createElement(Ke.Z,{gutter:[10,10]},lt.data.map((kt,nt)=>Pe.createElement(ge.Z,{key:nt,onClick:()=>yt(kt),className:De.Z.diamond},Pe.createElement(Se.Z,{value:"`$$"+kt.value+"$$`"}))))))))))}],Pt=()=>{var bt=document.createElement("div");bt.innerHTML=Te.current.getValue();var pt=bt.innerText;return He&&He(pt),pt};return(0,z.useImperativeHandle)(je,()=>({getData:Pt})),Pe.createElement("div",{className:De.Z.mathWrap},Pe.createElement(Ze.default,{defaultActiveKey:"1",items:wt}),Pe.createElement("math-field",{locale:"zh_cn",className:De.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:Te,style:{width:800,marginTop:30,fontSize:18}},vt||""),ye&&Pe.createElement("div",{className:De.Z.button},Pe.createElement(xe.ZP,{size:"large",onClick:Pt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});Ft.Z=de},4918:function(rn,Ft,ie){"use strict";var z=ie(59301),Ke=ie(93314),ge=ie(7939),Ze=Object.defineProperty,xe=Object.defineProperties,Se=Object.getOwnPropertyDescriptors,De=Object.getOwnPropertySymbols,Ue=Object.prototype.hasOwnProperty,Pe=Object.prototype.propertyIsEnumerable,de=(je,Te,ke)=>Te in je?Ze(je,Te,{enumerable:!0,configurable:!0,writable:!0,value:ke}):je[Te]=ke,He=(je,Te)=>{for(var ke in Te||(Te={}))Ue.call(Te,ke)&&de(je,ke,Te[ke]);if(De)for(var ke of De(Te))Pe.call(Te,ke)&&de(je,ke,Te[ke]);return je},ye=(je,Te)=>xe(je,Se(Te));const vt=({img:je,buttonProps:Te={},styles:ke={},customText:Ne,ButtonText:yt,ButtonClick:wt,Buttonclass:Pt,ButtonTwo:bt,imgStyles:pt,loading:lt=!1,className:_e=""})=>z.createElement("section",{className:`tc animated fadeIn ${_e}`,style:He({color:"#999",margin:"100px auto",visibility:lt?"hidden":"visible"},ke)},z.createElement("img",{src:je||Ke,style:ye(He({},pt),{pointerEvents:"none",userSelect:"none"})}),z.createElement("p",{className:"mt20 font14"},Ne||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),yt&&z.createElement(ge.ZP,He({className:Pt,onClick:wt},Te),yt),bt&&bt);Ft.Z=vt},75909:function(rn,Ft,ie){"use strict";ie.d(Ft,{Z:function(){return Pt}});var z=ie(59301),Ke={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",showClose:"showClose___edZQA",embed:"embed___hvpEJ"},ge=ie(7939),Ze=ie(70557),xe=ie(77545),Se=ie(25399),De=ie(7408),Ue=ie(81671),Pe=ie(4918),de=ie(14661),He=ie(93063),ye=ie(59301),vt=Object.defineProperty,je=Object.getOwnPropertySymbols,Te=Object.prototype.hasOwnProperty,ke=Object.prototype.propertyIsEnumerable,Ne=(bt,pt,lt)=>pt in bt?vt(bt,pt,{enumerable:!0,configurable:!0,writable:!0,value:lt}):bt[pt]=lt,yt=(bt,pt)=>{for(var lt in pt||(pt={}))Te.call(pt,lt)&&Ne(bt,lt,pt[lt]);if(je)for(var lt of je(pt))ke.call(pt,lt)&&Ne(bt,lt,pt[lt]);return bt},wt=(bt,pt,lt)=>new Promise((_e,kt)=>{var nt=ze=>{try{Ct(lt.next(ze))}catch(gt){kt(gt)}},it=ze=>{try{Ct(lt.throw(ze))}catch(gt){kt(gt)}},Ct=ze=>ze.done?_e(ze.value):Promise.resolve(ze.value).then(nt,it);Ct((lt=lt.apply(bt,pt)).next())}),Pt=({editOffice:bt="view",data:pt,issaver:lt,onSaver:_e,theme:kt,type:nt,filename:it,monacoEditor:Ct,className:ze,style:gt,close:ut,onClose:pe,hasMask:At,disabledDownload:Be,onImgDimensions:Nt,showNodata:on,recordInfo:Ee})=>{const[fe,Et]=(0,z.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[Jt,Dt]=(0,z.useState)(""),[We,ot]=(0,z.useState)(),dt=window.ENV==="build"?"/react/build":"",$t=location.host.startsWith("localhost")?de.Z.PROXY_SERVER:de.Z.API_SERVER,Vt=10*(1024*1024),rt=(0,z.useRef)();pt!=null&&pt.startsWith("/api")&&nt!=="txt"&&(pt=de.Z.API_SERVER+pt);const Ht=se=>se.substring(se.lastIndexOf("/")+1).split(".").pop();it&&Ct&&(Ct.filename=it),(0,z.useEffect)(()=>{var se,re;const he=(re=(se=document.cookie)==null?void 0:se.replace(/\s/g,""))==null?void 0:re.split(";");he==null||he.map(be=>{let ht=be.split("=");ht[0]==="_educoder_session"&&Dt(ht[1])})},[]),(0,z.useEffect)(()=>{nt==="office"&&(pt.indexOf("bigfilescdn.")>-1||pt.indexOf("bigfiles1")>-1?ot({url:pt,fileType:Ht(pt),model:pt.indexOf("model=edit")?"edit":"view"}):pt.indexOf("coze")>-1?ot({url:pt,fileType:"doc",model:"view"}):ae())},[nt,pt]);function st(se){return wt(this,null,function*(){se.data.type==="pdfdata"&&(_e(se.data.data),window.removeEventListener("message",st,!1)),console.log("mess---:",se.data)})}const ae=()=>wt(void 0,null,function*(){console.log("data:",pt);let se=pt;pt.startsWith("http")||(se=location.origin+se);let re=new URL(se).pathname.split("/").pop();const he=yield(0,Ue.gJ)({attachment_id:re});he.url=$t+he.url,ot(he)}),te=()=>{if(pt.startsWith("http")||pt.startsWith("blob:")){ee();return}(0,De.Sv)(it||"educoder",pt,it)},ee=()=>{Ee&&(0,He.fc)({id:Ee==null?void 0:Ee.id,watch_type:1,course_id:Ee==null?void 0:Ee.course_id}),(0,De.Nd)(it||"educoder",decodeURIComponent(pt))};(0,z.useEffect)(()=>(window.addEventListener("message",oe),()=>{window.removeEventListener("message",oe)}),[]);const oe=se=>{var re;((re=se==null?void 0:se.data)==null?void 0:re.type)==="closePop"&&pe()};return ye.createElement("div",{style:yt({},gt||{}),className:`${At&&Ke.bgBlack} ${nt?Ke.wrp:"hide"}`},!!nt&&ut&&ye.createElement("div",{id:"closePop",className:Ke.close,ref:rt},!!Nt&&ye.createElement(Se.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>rt.current},ye.createElement("span",{onClick:()=>{pe(),Nt()}},ye.createElement("i",{className:"icon-yulanpizhu"}))),!Be&&window.parent===window&&ye.createElement(Se.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>rt.current},ye.createElement("span",{onClick:ee},ye.createElement("i",{className:"icon-quxiaozhiding"}))),lt&&ye.createElement(Se.Z,{title:"\u4FDD\u5B58pdf\u5E76\u9000\u51FA",getPopupContainer:()=>rt.current},ye.createElement("span",{className:"",onClick:()=>{const se=document.getElementById("pdfiframe");window.addEventListener("message",st,!1),setTimeout(()=>{se.contentWindow.postMessage("getData","*")},300)}},ye.createElement("i",{className:"icon-baocun"}))),ye.createElement(Se.Z,{title:"\u5173\u95ED",getPopupContainer:()=>rt.current},ye.createElement("span",{className:"",onClick:()=>{pe()}},ye.createElement("i",{className:"icon-guanbi1"})))),ye.createElement("div",{className:`${Ke[ze]} ${ze} ${Ke.monaco} ${nt==="txt"?"show":"hide"}`},nt==="txt"&&ye.createElement(ye.Fragment,null,ye.createElement(xe.ZP,yt({},Ct)))),nt==="audio"&&ye.createElement("audio",{src:`${(pt==null?void 0:pt.indexOf("http://"))>-1||(pt==null?void 0:pt.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${pt}`,autoPlay:!0}),nt==="video"&&ye.createElement(ye.Fragment,null,(pt==null?void 0:pt.indexOf("http"))>-1?ye.createElement("video",{controls:!0,src:`${pt}`,autoPlay:!0}):ye.createElement("video",{controls:!0,src:`data:video/mp4;base64,${pt}`,autoPlay:!0})),nt==="office"&&We&&ye.createElement("iframe",{src:`${dt}/office.html?key=${We.key}&url=${btoa(We.url)}&callbackUrl=${$t+(We.callbackUrl||"")}&fileType=${We.fileType}&title=${We.title||""}&model=${bt}&officeServer=${de.Z.ONLYOFFICE}&disabledDownload=${!!Be}`}),nt==="html"&&ye.createElement("iframe",{src:pt+"&disposition=inline"}),nt==="pdf"&&ye.createElement("iframe",{id:"pdfiframe",src:`${dt}/js/pdf/index.html?filename=${it||"educoder.pdf"}&url=${encodeURIComponent(pt)}&disabledDownload=${!!Be}&model=${bt}`}),nt==="image"&&ye.createElement("img",{src:`${(pt==null?void 0:pt.indexOf("http://"))>-1||(pt==null?void 0:pt.indexOf("https://"))>-1?"":"data:image/png;base64,"}${pt}`}),(nt==="other"||nt==="download")&&ye.createElement(ye.Fragment,null,on?ye.createElement(Pe.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:ye.createElement(ge.ZP,{icon:ye.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:te,disabled:Be},"\u4E0B\u8F7D")}):ye.createElement(ge.ZP,{type:"primary",size:"middle",onClick:te,disabled:Be},ye.createElement(Ze.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")),nt==="flowChart"&&ye.createElement("div",{className:"embed"},ye.createElement("iframe",{src:`/drawio/src/main/webapp/viewer.html?id=${pt||""}&gapi=0&od=0&db=0&gh=0&gl=0`,width:"100%",height:"100%",frameBorder:"0"})))}},84660:function(rn,Ft,ie){"use strict";ie.d(Ft,{z:function(){return Ct},Z:function(){return ze}});var z=ie(59301),Ke=ie(36175),ge=ie(96160),Ze=ie(64018),xe=ie(16471),Se=ie(14661),De=ie(7408),Ue=ie(15342),Pe=ie(44104),de=ie(7939),He=ie(1012),ye=ie(75909),vt=ie(59301),Te=({html:gt})=>{const ut=(0,z.useRef)(null),pe=(0,z.useRef)(null),At=`.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,z.useEffect)(()=>{const Be=ut.current.attachShadow({mode:"open"});pe.current=document.createElement("div"),pe.current.className="markdown-body",pe.current.innerHTML=gt,Be.appendChild(pe.current);const Nt=document.createElement("style");return Nt.textContent=At,Be.appendChild(Nt),()=>{Be.innerHTML=""}},[]),(0,z.useEffect)(()=>{pe.current&&(pe.current.innerHTML=gt)},[gt]),vt.createElement("div",{ref:ut})};function ke(gt){const ut=["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"],pe=new RegExp(`\\b(${ut.join("|")})\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s>]*)`,"gi"),At=/<meta\s+http-equiv\s*=\s*["']?refresh["']?[^>]*>/gi;return gt.replace(pe,"").replace(At,"").trim()}var Ne={mdBody:"mdBody___raKXb",button:"button___Ch5Pc",previewFlowChart:"previewFlowChart___vY1dq"},yt=Object.defineProperty,wt=Object.getOwnPropertySymbols,Pt=Object.prototype.hasOwnProperty,bt=Object.prototype.propertyIsEnumerable,pt=(gt,ut,pe)=>ut in gt?yt(gt,ut,{enumerable:!0,configurable:!0,writable:!0,value:pe}):gt[ut]=pe,lt=(gt,ut)=>{for(var pe in ut||(ut={}))Pt.call(ut,pe)&&pt(gt,pe,ut[pe]);if(wt)for(var pe of wt(ut))bt.call(ut,pe)&&pt(gt,pe,ut[pe]);return gt};const _e="@\u2581\u2581@",kt="@\u2581@",nt=/<pre[^>]*>/g;function it(gt){let ut=document.createElement("div");return ut.innerHTML=gt,ut.childNodes.length===0?"":ut.childNodes[0].nodeValue}const Ct=(gt,ut)=>{gt=gt||"";const pe=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,At=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Be=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Nt=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return ut?gt.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(pe,(on,Ee,fe,Et,Jt,Dt,We)=>{const ot=Ee||Et||Dt,dt=fe||Jt||We||"?";return Se.Z.API_SERVER+"/api/attachments/"+ot+dt+"&t="+(0,De.Jn)(ot,Date.now())+(on.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(gt=gt.replace(Nt,(on,Ee,fe,Et,Jt,Dt,We)=>{const ot=Ee||Et||Dt,dt=fe||Jt||We||"?";return Se.Z.API_SERVER+"/attachments/download/"+ot+dt+"&t="+(0,De.Jn)(ot,Date.now())+(on.indexOf(")")>-1?")":"&")}).replace(pe,(on,Ee,fe,Et,Jt,Dt,We)=>{const ot=Ee||Et||Dt,dt=fe||Jt||We||"?";return Se.Z.API_SERVER+"/api/attachments/"+ot+dt+"&t="+(0,De.Jn)(ot,Date.now())+(on.indexOf(")")>-1?")":"&")}).replace(At,(on,Ee,fe,Et,Jt)=>{const Dt=Ee||Et,We=fe||Jt||"";return'"'+Se.Z.API_SERVER+"/api/attachments/"+Dt+We+Dt+We+"&t="+(0,De.Jn)(Dt,Date.now())}).replace(Be,(on,Ee,fe,Et,Jt)=>{const Dt=Ee||Et,We=fe||Jt||"";return"("+Se.Z.API_SERVER+"/files/uploads/"+Dt+We+Dt+We+"&t="+(0,De.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,`
`),gt)};var ze=({value:gt="",edit:ut=!1,className:pe,showTextOnly:At,showLines:Be,style:Nt={},stylesPrev:on={},highlightKeywords:Ee,showProgramFill:fe,isProgramFill:Et,disabledFill:Jt=!1,programFillValue:Dt,openEditor:We=()=>{},onFillChange:ot=Lt=>{},onFillBlur:dt=()=>{},onFillFocus:$t=()=>{}})=>{let Lt=ke(String(gt||""));const Vt=(0,z.useRef)(),rt=(0,z.useRef)(),[Ht,st]=(0,z.useState)(""),[ae,te]=(0,z.useState)("office"),[ee,oe]=(0,z.useState)([]),se=(0,z.useRef)("a"+(0,He.Z)()),re={},he=St=>/<style[\s\S]*?>/i.test(St||""),be=(St,qt,Wt)=>{const Oe=document.createElement(St===kt?"input":"textarea");Oe.style.width="100%",Oe.style.height=St===kt?"40px":"151px",Oe.rows=5,Oe.spellcheck=!1,Oe.name="edu-program-fill",Oe.placeholder="\u8BF7\u8F93\u5165",Oe.dataset.id=qt;const tt=Object.keys(re).length;return re[tt]=Oe,`<span class="edu-program-fill-wrap ${St===kt?"":"show"}" style="width:${St===kt?"600px":"100%"}" title=${Wt||""}><span>${Oe.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function ht(St){return St=St.replace(/!\[.*?\]\(.*?\)/g,""),St=St.replace(/\[.*?\]\(.*?\)/g,""),St=St.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),St=St.replace(/<embed.*?>/g,""),St=St.replace(/<img.*?>/g,""),St=St.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),St=St.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),St=St.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),St=St.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),St}const Me=St=>!At&&he(Lt)?St:St.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(qt,Wt){let Oe=Wt.replace(/(\n|\r)/g,"").split("}"),tt=[];return Oe.map(Tt=>{Tt!=""&&tt.push(`.${se.current} ${Tt}`)}),`<style>${tt.join("}")}</style>`}),Ye=(0,z.useMemo)(()=>{try{const Oe=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,tt=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Tt=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,zt=/\(\/attachments\/download\//g;Lt=Lt.replace(zt,"("+Se.Z.API_SERVER+"/attachments/download/").replace(Oe,"("+Se.Z.API_SERVER+"/api/attachments/").replace(tt,'"'+Se.Z.API_SERVER+"/api/attachments/").replace(Tt,'"'+Se.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,`
`),Vt.current.style.display="none"}catch(Oe){}if(fe){let Oe=-1;return Lt=Lt.replaceAll("<","&lt;").replaceAll(">","&gt;").replace(/(@▁▁@|@▁@)/g,function(tt,Tt,zt){var Ie;return++Oe,be(tt,Oe,(Ie=Dt==null?void 0:Dt[Oe])==null?void 0:Ie.value.replaceAll("<","&lt;").replaceAll(">","&gt;"))}),`<pre style="background:#fff;padding:4px">${Me(Lt||"")}</pre>`}let St=Me(Lt);St=(0,ge.ZP)(St);const qt=(0,ge.ez)();Lt.match(/\[TOC\]/)&&(St=St.replace("<p>[TOC]</p>",(0,ge.Qv)()),(0,ge.Iy)()),St=St.replace(/(__special_katext_id_\d+__)/g,(Oe,tt)=>{const{type:Tt,expression:zt}=qt[tt];return(0,Ue.renderToString)(it(zt)||"",{displayMode:Tt==="block",throwOnError:!1,output:"html"})}),St=St.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,ge.AL)();const Wt=document.createElement("div");if(Wt.innerHTML=St,At)return Wt.innerText;if(Ee){const Oe=Ee.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return Xt(Wt,Oe),Wt.innerHTML}return setTimeout(()=>_t(),500),Wt.innerHTML},[Lt,Ee]);(0,z.useEffect)(()=>{Kt.current&&Kt.current.querySelectorAll(["input","textarea"]).forEach(qt=>{qt.oninput=mt,qt.onblur=It,qt.onfocus=xt})},[ee]),(0,z.useEffect)(()=>{var St,qt,Wt,Oe,tt;if(Dt!=null&&Dt.length)try{const Tt=Kt.current.querySelectorAll(".edu-program-fill-score"),zt=Kt.current.querySelectorAll('[name="edu-program-fill"]');for(const[Ie,Xe]of zt.entries())Xe.value=((St=Dt==null?void 0:Dt[Ie])==null?void 0:St.value)||"",((qt=Dt==null?void 0:Dt[Ie])==null?void 0:qt.type)==="warning"?Xe.className="program-fill-warning":((Wt=Dt==null?void 0:Dt[Ie])==null?void 0:Wt.type)==="success"?Xe.className="program-fill-success":Xe.className="";for(const[Ie,Xe]of Tt.entries())Xe.innerHTML=(Oe=Dt==null?void 0:Dt[Ie])!=null&&Oe.score?`${(tt=Dt==null?void 0:Dt[Ie])==null?void 0:tt.score}\u5206`:"";oe(Dt)}catch(Tt){console.log(Tt,"error")}},[Dt]);const mt=St=>{ee[St.target.dataset.id]=ee[St.target.dataset.id]||{},ee[St.target.dataset.id].value=St.target.value,oe([...ee]),ot(ee,St.target.dataset.id)},It=St=>{ee[St.target.dataset.id]=ee[St.target.dataset.id]||{},ee[St.target.dataset.id].value=St.target.value,oe([...ee]),dt(ee,St.target.dataset.id)},xt=St=>{ee[St.target.dataset.id]=ee[St.target.dataset.id]||{},ee[St.target.dataset.id].value=St.target.value,oe([...ee]),$t(ee,St.target.dataset.id)};function Xt(St,qt){return St.childNodes.forEach(Wt=>{var Oe;if(Wt.childNodes.length>0)Xt(Wt,qt);else if(Wt.nodeName!=="IMG")if(Wt.innerHTML)Wt.innerHTML=(Oe=Wt.innerHTML)==null?void 0:Oe.replace(new RegExp(qt,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const tt=document.createElement("span");tt.innerHTML=Wt.textContent.replace(new RegExp(qt,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),Wt.replaceWith(tt)}})}const Kt=(0,z.useRef)();ge.jb.WebkitLineClamp=Be,Be&&(Nt=lt(lt({},Nt),ge.jb));function jt(St){let qt=St.target;if(qt.tagName.toUpperCase()==="A"){let Wt=qt.getAttribute("href");if(Wt.indexOf("office")>-1)St.preventDefault(),st(Wt),te("office");else if(Wt.indexOf("application/pdf")>-1)St.preventDefault(),st(Wt),te("pdf");else if(Wt.indexOf("text/html")>-1)St.preventDefault(),st(Wt),te("html");else if(Wt.startsWith("#")){St.preventDefault();let Oe=document.getElementById(Wt.replace("#",""));Oe&&Oe.scrollIntoView(!0)}}}const _t=()=>{var St;const qt=(St=Kt.current)==null?void 0:St.querySelectorAll("video");qt==null||qt.forEach(Wt=>{if(Wt.oncontextmenu=()=>!1,Wt.src.indexOf(".m3u8")>-1&&!Wt.canPlayType("application/vnd.apple.mpegurl")){if(xe.ZP.isSupported()){var Oe=new xe.ZP;Oe.loadSource(Wt.src),Oe.attachMedia(Wt)}}})};(0,z.useEffect)(()=>{if(Kt.current&&Ye&&Ye.match(nt)&&window.PR.prettyPrint(),Kt.current)return Kt.current.addEventListener("click",jt),()=>{var St;(St=Kt.current)==null||St.removeEventListener("click",jt),(0,ge.AL)(),(0,ge.Iy)()}},[Ye,Kt.current,jt]);const Zt=St=>{St.target.nodeName==="IMG"&&St.target.className.indexOf("draw-flowchart")>-1?(Vt.current.style.zIndex=1,Vt.current.style.display="flex",Vt.current.style.width=St.target.clientWidth+"px",Vt.current.style.height=St.target.clientHeight+"px",Vt.current.style.top=St.target.offsetTop+"px",Vt.current.style.left=St.target.offsetLeft+"px",St.target.id&&(rt.current=St.target.id)):Vt.current.style.display="none"},ln=()=>{Vt.current.style.display="none"};return(0,z.useEffect)(()=>{var St;const qt=Wt=>{Wt.preventDefault(),Wt.clipboardData.setData("text",window.getSelection().toString())};return(St=Kt.current)==null||St.addEventListener("copy",qt),()=>{var Wt;(Wt=Kt.current)==null||Wt.removeEventListener("copy",qt)}},[Kt.current]),z.createElement("div",{style:{position:"relative"},onMouseLeave:ln},At&&z.createElement("div",{ref:Kt,className:`${Ne.mdBody} `},Ye),!At&&!he(Ye)&&z.createElement("div",{ref:Kt,style:lt({},Nt),onMouseOver:Zt,className:`${pe||""} ${Jt?"disabled-fill":""} markdown-body ${Ne.mdBody} ${se.current}`,dangerouslySetInnerHTML:{__html:Ye}}),!At&&he(Ye)&&z.createElement(Te,{html:Ye}),z.createElement("div",{ref:Vt,className:`${Ne.button} ${ut?"":Ne.previewFlowChart}`},z.createElement(Pe.Z,null,z.createElement(de.ZP,{onClick:()=>{ut?We(rt.current):(st(rt.current),te("flowChart"))}},ut?"\u7F16\u8F91":"\u9884\u89C8"))),z.createElement(ye.Z,{close:!0,data:Ht,type:Ht!=null&&Ht.length?ae:"",style:lt({},on),onClose:()=>st("")}))}},93620:function(rn,Ft,ie){"use strict";ie.d(Ft,{h:function(){return bt}});var z=ie(59301),Ke=ie(82326),ge=ie(28284),Ze=ie(7939),xe=ie(89780),Se=ie.n(xe),De=ie(33515),Ue=ie(75620),Pe=Object.defineProperty,de=Object.defineProperties,He=Object.getOwnPropertyDescriptors,ye=Object.getOwnPropertySymbols,vt=Object.prototype.hasOwnProperty,je=Object.prototype.propertyIsEnumerable,Te=(pt,lt,_e)=>lt in pt?Pe(pt,lt,{enumerable:!0,configurable:!0,writable:!0,value:_e}):pt[lt]=_e,ke=(pt,lt)=>{for(var _e in lt||(lt={}))vt.call(lt,_e)&&Te(pt,_e,lt[_e]);if(ye)for(var _e of ye(lt))je.call(lt,_e)&&Te(pt,_e,lt[_e]);return pt},Ne=(pt,lt)=>de(pt,He(lt));const yt=Ke.default.Option,wt={labelCol:{span:4},wrapperCol:{span:20}},Pt={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"]};Ft.Z=({callback:pt,onCancel:lt})=>{const[_e,kt]=(0,z.useState)("python");function nt(Ct){kt(Pt[Ct][1])}function it(Ct){pt(Ct)}return z.createElement(ge.default,Ne(ke({},wt),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:it,style:{width:500}}),z.createElement(ge.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},z.createElement(Ke.default,{getPopupContainer:Ct=>Ct.parentNode,onChange:nt},Object.keys(Pt).map(Ct=>z.createElement(yt,{key:Ct,value:Ct},Pt[Ct][0])))),z.createElement(ge.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},z.createElement(bt,{mode:_e})),z.createElement("div",{className:"flex-container flex-end"},z.createElement(Ze.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),z.createElement(Ze.ZP,{type:"ghost",onClick:lt},"\u53D6\u6D88")))};function bt({value:pt,onChange:lt,mode:_e,options:kt={}}){const nt=(0,z.useRef)(),[it,Ct]=(0,z.useState)();return(0,z.useEffect)(()=>{if(it){let ze=function(gt){const ut=gt.getValue();lt&&lt(ut)};return it.on("change",ze),()=>{it.off("change",ze)}}},[it,lt]),(0,z.useEffect)(()=>{it&&it.setOption("mode",_e)},[it,_e]),(0,z.useEffect)(()=>{it&&(pt!==it.getValue()||pt==="")&&setTimeout(()=>{it.setValue(pt||"")},300)},[it,pt]),(0,z.useEffect)(()=>{if(nt.current&&!it){const ze=Se().fromTextArea(nt.current,ke({mode:_e,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},kt));Ct(ze)}},[nt.current,it]),z.createElement("div",{className:"my-codemirror-container"},z.createElement("textarea",{ref:nt}))}},46127:function(rn,Ft,ie){"use strict";ie.d(Ft,{Z:function(){return vn}});var z=ie(59301),Ke=ie(51429),ge=ie(89780),Ze=ie.n(ge),xe=ie(76374),Se=ie(33515),De=ie(6313),Ue=ie(25717),Pe=ie(99498),de=ie(25419),He=ie(67549),ye=ie(84660),vt=({value:un="",className:On,showTextOnly:mn,showLines:Dn,style:Wn={}})=>{const Zn=(0,z.useMemo)(()=>"",[un]);return z.createElement(z.Fragment,null,z.createElement("div",{dangerouslySetInnerHTML:{__html:Zn}}))},je=Object.defineProperty,Te=Object.defineProperties,ke=Object.getOwnPropertyDescriptors,Ne=Object.getOwnPropertySymbols,yt=Object.prototype.hasOwnProperty,wt=Object.prototype.propertyIsEnumerable,Pt=(un,On,mn)=>On in un?je(un,On,{enumerable:!0,configurable:!0,writable:!0,value:mn}):un[On]=mn,bt=(un,On)=>{for(var mn in On||(On={}))yt.call(On,mn)&&Pt(un,mn,On[mn]);if(Ne)for(var mn of Ne(On))wt.call(On,mn)&&Pt(un,mn,On[mn]);return un},pt=(un,On)=>Te(un,ke(On));let lt=[{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 _e({onActionCallback:un,title:On,icon:mn,actionName:Dn,className:Wn="",children:Zn}){function An(){un(Dn)}return z.createElement("a",{title:On,className:Wn,onClick:An},z.createElement("i",{className:`${mn}`}),Zn)}var kt=({watch:un,showNullButton:On,showNullProgramButton:mn,onActionCallback:Dn,fullScreen:Wn,insertTemp:Zn,hidetoolBar:An,extraUse:Xn})=>{const Nn=[...lt,{title:`${un?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${un?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return z.createElement("ul",{className:"markdown-toolbar-container"},!An&&Nn.map((ar,qn)=>z.createElement("li",{key:qn},ar.actionName?z.createElement(_e,pt(bt({},ar),{onActionCallback:Dn})):z.createElement("span",{className:"v-line"}))),On?z.createElement("li",null,z.createElement(_e,{icon:"iconfont icon-tianjia5 insert-blank",className:"btn-null ml5",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Dn},z.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u65B0\u589E\u586B\u7A7A\u9879"))):null,mn?z.createElement(z.Fragment,null,z.createElement("li",null,z.createElement(_e,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:Dn},z.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u5355\u884C\u586B\u7A7A\u9879"))),z.createElement("li",null,z.createElement(_e,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:Dn},z.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u591A\u884C\u586B\u7A7A\u9879")))):null,Zn&&z.createElement("li",null,z.createElement(_e,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${Zn}`,onActionCallback:Dn},z.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Xn&&z.createElement("li",null,Xn),z.createElement("li",{className:"btn-full-screen"},z.createElement(_e,{icon:`${Wn?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:Wn?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Dn})))},nt=ie(97450),it=ie(28284),Ct=ie(37568),ze=ie(7939),gt=Object.defineProperty,ut=Object.defineProperties,pe=Object.getOwnPropertyDescriptors,At=Object.getOwnPropertySymbols,Be=Object.prototype.hasOwnProperty,Nt=Object.prototype.propertyIsEnumerable,on=(un,On,mn)=>On in un?gt(un,On,{enumerable:!0,configurable:!0,writable:!0,value:mn}):un[On]=mn,Ee=(un,On)=>{for(var mn in On||(On={}))Be.call(On,mn)&&on(un,mn,On[mn]);if(At)for(var mn of At(On))Nt.call(On,mn)&&on(un,mn,On[mn]);return un},fe=(un,On)=>ut(un,pe(On));const Et={labelCol:{span:4},wrapperCol:{span:20}};var Jt=({callback:un,onCancel:On})=>{function mn(Dn){un(Dn)}return z.createElement(it.default,fe(Ee({},Et),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:mn,style:{width:500}}),z.createElement(it.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},z.createElement(Ct.default,null)),z.createElement(it.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},z.createElement(Ct.default,null)),z.createElement("div",{className:"flex-container flex-end"},z.createElement(ze.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),z.createElement(ze.ZP,{type:"ghost",onClick:On},"\u53D6\u6D88")))},Dt=ie(93620),We=ie(90519),ot=ie(62957),dt=ie(77019),$t=ie(16202),Lt=ie(59301),Vt=({callback:un,onCancel:On})=>{const mn=document.createElement("canvas"),Dn=mn.getContext("2d");mn.width=1e3,mn.height=800,Dn.fillStyle="#ffffff",Dn.fillRect(0,0,mn.width,mn.height);const Wn=mn.toDataURL("image/png");return Lt.createElement(ot.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Lt.createElement(dt.Z,{style:{height:"100vh"}},Lt.createElement($t.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:Wn,visible:!0,title:String(Date.now())},onOk:Zn=>{un({src:Zn.url})},onClose:On})))},rt=ie(36207),Ht=ie(5269),st=ie(6767),ae={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re",drawerWrap:"drawerWrap___MfDw8"},te=ie(59301),oe=(0,z.forwardRef)(({onCancel:un,editImgId:On,callback:mn},Dn)=>{let Wn=(0,z.useRef)(),Zn=(0,z.useRef)(),An=(0,z.useRef)(),Xn=(0,z.useRef)(!1);const Nn=(0,z.useRef)(!1);console.log("ref:",Dn);const[ar,qn]=(0,z.useState)(0),[Bt,nn]=(0,z.useState)("100vh");return(0,z.useEffect)(()=>{qn(1)},[]),(0,z.useImperativeHandle)(Dn,()=>({setHeight:nn})),te.createElement("div",{ref:Nn,className:"body-overflow-initial"},te.createElement(rt.Z,{width:"100vw",height:Bt,footer:null,closable:!0,placement:"bottom",open:!!ar,destroyOnClose:!0,maskClosable:!1,mask:!1,rootClassName:`zIndex-9999 ${ae.drawerWrap}`,onClose:()=>{window.saveDrawData($n=>{mn({src:`/api/attachments/${$n}`,id:$n})})},title:te.createElement(dt.Z,{align:"middle"},te.createElement(Ht.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),te.createElement(Ht.Z,{onClick:()=>{nn(Bt==="60px"?"100vh":"60px")}},te.createElement("span",{className:"current c-blue",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77")),te.createElement(Ht.Z,{onClick:()=>{window.saveDrawData($n=>{if($n===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}}),mn({src:`/api/attachments/${$n}`,id:$n,disabledClose:!0})})}},te.createElement(ze.ZP,{type:"primary",className:"ml20"},"\u4FDD\u5B58")))},te.createElement("iframe",{src:`/drawio/src/main/webapp/?id=${On||""}&gapi=0&od=0&db=0&gh=0&gl=0&local=0`,width:"100%",height:"100%",frameBorder:"0",ref:Zn})))}),se=ie(14661),re=ie(47889),he=ie(4875);const be=re.ZP.Group,ht={margin:"0 8px"};var Me=({callback:un,onCancel:On})=>{function mn(Dn){un(Dn)}return z.createElement(it.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:mn},z.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},z.createElement("span",{style:ht},"\u5355\u5143\u683C\u6570\uFF1A"),z.createElement("span",{style:ht},"\u884C\u6570"),z.createElement(it.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},z.createElement(he.Z,null)),z.createElement("span",{style:ht},"\u5217\u6570"),z.createElement(it.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},z.createElement(he.Z,null))),z.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},z.createElement("span",{style:ht},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),z.createElement(it.default.Item,{name:"align"},z.createElement(be,null,z.createElement(re.ZP,{value:"default"},z.createElement("i",{className:"fa fa-align-justify"})),z.createElement(re.ZP,{value:"left"},z.createElement("i",{className:"fa fa-align-left"})),z.createElement(re.ZP,{value:"center"},z.createElement("i",{className:"fa fa-align-center"})),z.createElement(re.ZP,{value:"right"},z.createElement("i",{className:"fa fa-align-right"}))))),z.createElement("div",{className:"flex-container flex-end"},z.createElement(ze.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),z.createElement(ze.ZP,{type:"ghost",onClick:On},"\u53D6\u6D88")))},Ye=ie(58755),mt=ie(75964),It=ie.n(mt),Xt=(0,z.forwardRef)(({use3d:un,width:On,height:mn,callback:Dn,showSaveButton:Wn},Zn)=>{const An=(0,z.useRef)(),Xn=(0,z.useRef)(),[Nn,ar]=(0,z.useState)(!1),qn=(0,z.useRef)({id:An,appName:"graphing",width:On||1e3,height:mn||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,z.useEffect)(()=>{Xn.current=new(It())(qn.current,!0),window.onload=function(){Xn.current.inject("applet_container")}},[]);const Bt=()=>{var nn=window.ggbApplet.getPNGBase64(1,!0,72);return Dn&&Dn(nn),nn};return(0,z.useEffect)(()=>{qn.current.appName=Nn?"3D":"graphing",Xn.current.inject("applet_container")},[Nn]),(0,z.useEffect)(()=>{ar(un)},[un]),(0,z.useImperativeHandle)(Zn,()=>({getImgData:Bt})),z.createElement(z.Fragment,null,z.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:An}),z.createElement(dt.Z,{align:"middle"},z.createElement(Ht.Z,{flex:1},z.createElement(Ye.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:Nn,onChange:nn=>ar(nn)})),z.createElement(Ht.Z,null,z.createElement(ze.ZP,{size:"large",onClick:Bt,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),Kt=ie(45469);const jt="link",_t="upload-image",Zt="add-flowchart",ln="draw-image",St="add-flowchart",qt="code-block",Wt="add-table",Oe="------------",tt={default:Oe,left:`:${Oe}`,center:`:${Oe}:`,right:`${Oe}:`};var Tt=ie(2914),zt=ie(7408);function Ie(){}let Xe=0;const ft=1e4,Mt="\u2581",Gt="@\u2581\u2581@",cn="@\u2581@",En=`
**\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`,Sn=["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 sn(un){return/^\d+$/.test(un)?`${un}px`:un}const gn=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",zn={[gn+"-B"]:"bold",[gn+"-I"]:"italic"},bn={[jt]:"\u6DFB\u52A0\u94FE\u63A5",[qt]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[_t]:"\u6DFB\u52A0\u56FE\u7247",[ln]:"\u6DFB\u52A0\u753B\u56FE",[Zt]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Wt]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var vn=({defaultValue:un="",onChange:On,width:mn="100%",height:Dn=400,miniToolbar:Wn=!1,isFocus:Zn=!1,watch:An,insertTemp:Xn,mode:Nn="markdown",id:ar="markdown-editor-id",showResizeBar:qn=!1,noStorage:Bt=!1,showNullButton:nn=!1,showNullProgramButton:$n=!1,hidetoolBar:nr=!1,fullScreen:Ae=!1,onBlur:et,onCMBeforeChange:Ce,onFullScreen:Le,className:we="",disablePaste:Re=!1,disabled:ve=!1,disabledFill:Ve=!1,placeholder:Je="",values:ct="",extraUse:Qe,onAddBlank:Fe})=>{const[$e,qe]=(0,z.useState)(null),[Qt,Ut]=(0,z.useState)(un),[Yt,kn]=(0,z.useState)(An),[Ln,Hn]=(0,z.useState)(Ae),[Mn,xn]=(0,z.useState)(""),[Pn,Fn]=(0,z.useState)(0),[Yn,Un]=(0,z.useState)(Dn),[Kn,Cn]=(0,z.useState)(!1),[er,jn]=(0,z.useState)(0),[dr,pr]=(0,z.useState)(0),sr=(0,z.useRef)(),ur=(0,z.useRef)(),yr=(0,z.useRef)(),lr=(0,z.useRef)(),fr=(0,z.useRef)(),Qn=(0,z.useRef)(),mr=(0,Ke.useDispatch)();(0,z.useEffect)(()=>{const dn=window.scrollY||window.pageYOffset;Ut(ct),$e==null||$e.setValue(ct),window.scrollTo(0,dn)},[ct]),(0,z.useEffect)(()=>{Le==null||Le(Ln)},[Ln]),(0,z.useEffect)(()=>{if(sr.current){let dn=function(wn,Tn){var cr;if(Re){Tn.preventDefault();return}const Dr=Tn.clipboardData;if(Dr){const Pr=Dr.types.toString(),Rr=Dr.items;if(Pr==="Files"||Dr.types.indexOf("Files")>-1){if(Tn.preventDefault(),Nn=="stex")return;try{let Ar=Rr[1];((cr=Rr[0])==null?void 0:cr.kind)==="file"&&(Ar=Rr[0]);const Fr=Ar.getAsFile(),Ur=Fr.name.split(".").pop();(0,We.I)(Fr,Hr=>{var Kr,ti,Ei;Hr.id?((Kr=Fr==null?void 0:Fr.type)==null?void 0:Kr.indexOf("image"))>-1?tn.replaceSelection(`<img width="100%" src="/api/attachments/${Hr.id}?type=${Hr.content_type})" alt="" />`):((ti=Fr==null?void 0:Fr.type)==null?void 0:ti.indexOf("video"))>-1?tn.replaceSelection(`<video width="100%" controls src="/api/attachments/${Hr.id}"></video>`):((Ei=Fr==null?void 0:Fr.type)==null?void 0:Ei.indexOf("pdf"))>-1?tn.replaceSelection(`<a href="/api/attachments/${Hr.id}?type=${Fr.type}&disposition=inline" target="_blank">${Fr.name}</a>`):Sn.includes(Ur)?tn.replaceSelection(`<a href="/api/attachments/${Hr.id}?type=office&disposition=inline" target="_blank">${Fr.name}</a>`):tn.replaceSelection(`[${Fr.name}](/api/attachments/${Hr.id}?type=${Hr.content_type})`):(Hr==null?void 0:Hr.status)===401&&(document.location.href="/user/login")})}catch(Ar){st.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const tn=Ze().fromTextArea(sr.current,{mode:Nn,lineNumbers:!Wn,lineWrapping:!0,value:un,autoCloseTags:!0,autoCloseBrackets:!0});return tn.on("keyup",function(wn,Tn){Tn.keyCode===8&&(wn.getValue()==""?tn.setOption("placeholder",Je):tn.setOption("placeholder",null))}),tn.on("keydown",function(wn,Tn){if(Tn.keyCode===8){var cr=zr(wn);cr&&Tn.preventDefault()}}),Zn&&tn.focus(),tn.on("paste",dn),ve&&tn.on("beforeChange",function(wn,Tn){(Tn.origin==="paste"||Tn.origin==="+input")&&Tn.cancel()}),qe(tn),()=>{tn.off("paste",dn)}}},[]);const br=(0,z.useCallback)(()=>{if(ur.current)try{}catch(dn){console.log(dn,"---- to set md editor body height")}},[Yn,ur,Ln]);(0,z.useEffect)(()=>{function dn(){let tn=new xe.Z(wn=>{for(let Tn of wn)(Tn.target.offsetHeight>0||Tn.target.offsetWidth>0)&&(br(),$e.setSize("100%","100%"),$e.refresh())});return tn.observe(sr.current.parentElement),tn}if($e){const tn=dn();return()=>{var wn,Tn;(wn=sr.current)!=null&&wn.parentElement&&tn.unobserve((Tn=sr.current)==null?void 0:Tn.parentElement)}}},[$e,br]),(0,z.useEffect)(()=>{if($e){let dn=[];for(const[tn,wn]of Object.entries(zn)){let Tn={[tn]:()=>{Er(wn)}};dn.push(Tn),$e.addKeyMap(Tn)}return()=>{for(let tn of dn)$e.removeKeyMap(tn)}}},[$e]),(0,z.useEffect)(()=>{Ae!==Ln&&Hn(Ae)},[Ae]),(0,Tt.Z)(()=>{if(!Bt&&Pn>0){let dn=new Date().getTime(),tn=window.sessionStorage.getItem(ar);dn>=Pn+ft&&(!tn||tn!==Qt)&&(window.sessionStorage.setItem(ar,Qt),Cn(!0))}},ft),(0,z.useEffect)(()=>{kn(An)},[$e,An]),(0,z.useEffect)(()=>{$e&&Zn&&$e.focus()},[$e,Zn]),(0,z.useEffect)(()=>{if(Yt&&$e){let dn=function(wn){let Tn=wn.target;if(lr.current){let cr=Tn.scrollTop/Tn.scrollHeight;lr.current.scrollTop=lr.current.scrollHeight*cr}};const tn=$e.getScrollerElement();return tn.addEventListener("scroll",dn),()=>{tn.removeEventListener("scroll",dn)}}},[$e,Yt]),(0,z.useEffect)(()=>{if($e&&Ce){let dn=function(tn,wn){Ce(tn,wn)};return $e.on("beforeChange",dn),()=>{$e.off("beforeChange",dn)}}},[$e,Ce]),(0,z.useEffect)(()=>{if($e&&et){let dn=function(){et($e.getValue())};return $e.on("blur",dn),()=>{$e.off("blur",dn)}}},[$e,et]);function zr(dn,tn){var wn=dn.getDoc(),Tn=wn.getCursor(),cr=wn.getLine(Tn.line),Dr=cr.charAt(Tn.ch-1),Pr=cr.lastIndexOf("@\u2581@",Tn.ch),Rr=cr.lastIndexOf("@\u2581\u2581@",Tn.ch),Ar=Pr>Rr?Pr:Rr,Fr=Pr>Rr?3:4;if(Gt.indexOf(Dr)===-1)return null;if(console.log("change1:",tn,dn,cr,Tn,Ar,Pr,Rr,Dr),Ar>=0&&Tn.ch-Ar<5){var Ur=Ar+Fr;return wn.replaceRange("",{line:Tn.line,ch:Ar},{line:Tn.line,ch:Ur}),{line:Tn.line,ch:Ur}}return null}(0,z.useEffect)(()=>{if($e){let dn=function(tn,wn){const Tn=tn.getValue();Ut(Tn),Fn(new Date().getTime()),tn.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),On&&($n?On(Tn,pn(Tn)):On(Tn))};return $e.on("change",dn),()=>{$e.off("change",dn)}}},[$e,On]),(0,z.useEffect)(()=>{if($e)if(un==null)$e.setValue(""),Ut("");else{const dn=window.scrollY||window.pageYOffset;un!==$e.getValue()&&($e.setValue(un),Ut(un),$e.setCursor(ve?1:$e.lineCount(),0),window.scrollTo(0,dn))}},[$e,un]);const Er=(0,z.useCallback)(dn=>{const tn=$e.getCursor(),wn=$e.getSelection();let Tn=wn.split(`
`);switch(dn){case"bold":return $e.replaceSelection("**"+wn+"**"),wn===""&&$e.setCursor(tn.line,tn.ch+2),$e.focus();case"italic":return $e.replaceSelection("*"+wn+"*"),wn===""&&$e.setCursor(tn.line,tn.ch+1),$e.focus();case"code":return $e.replaceSelection("`"+wn+"`"),wn===""&&$e.setCursor(tn.line,tn.ch+1),$e.focus();case"inline-latex":return(0,zt.Ye)(mr)?void 0:(xn("inline-latex"),$e.focus());case"latex":return $e.replaceSelection("```latex\n"+wn+"\n```"),$e.setCursor(tn.line+1,wn.length+1),$e.focus();case"line-break":return $e.replaceSelection(`<br/>
`),$e.focus();case"list-ul":return wn===""?$e.replaceSelection("- "+wn):$e.replaceSelection(Tn.map(cr=>cr===""?"":`- ${cr}`).join(`
`)),$e.focus();case"list-ol":return wn===""?$e.replaceSelection("1. "+wn):$e.replaceSelection(Tn.map((cr,Dr)=>cr===""?"":`${Dr+1}. ${cr}`).join(`
`)),$e.focus();case"add-null-ch":Fe==null||Fe();return;case"add-signal":return wn===""&&$e.setCursor(tn.line,tn.ch),$e.replaceSelection(cn),$e.focus();case"add-multiple":return wn===""&&$e.setCursor(tn.line,tn.ch),$e.replaceSelection(Gt),$e.focus();case"inster-template-1":return wn===""&&$e.setCursor(tn.line,tn.ch),$e.replaceSelection(En),$e.focus();case"eraser":return $e.setValue(""),$e.focus();case"trigger-watch":return kn(!Yt),$e.focus();case"trigger-full-screen":return Hn(!Ln),$e.focus();case jt:xn(jt);return;case qt:xn(qt);return;case _t:xn(_t);return;case ln:xn(ln);return;case"maths-latex":if((0,zt.Ye)(mr))return;xn("maths-latex");return;case Zt:fr.current="",sessionStorage.removeItem("file_id"),xn(Zt);return;case Wt:xn(Wt);return;default:throw new Error}},[$e,Yt,Ln]),Br=(0,z.useCallback)((dn,tn)=>{var wn,Tn,cr,Dr,Pr,Rr;dn!=null&&dn.disabledClose||xn("");const{src:Ar,alt:Fr,id:Ur}=dn||{};switch(Mn){case jt:const{title:Ni,link:xi}=dn;return $e.replaceSelection(`[${Ni}](${xi})`),$e.focus();case qt:const{language:si,content:Ri}=dn;return $e.replaceSelection(["```"+si,Ri,"```"].join(`
`)),$e.focus();case"maths-latex":for(var Hr=atob(dn),Kr=new Uint8Array(Hr.length),ti=0;ti<Hr.length;ti++)Kr[ti]=Hr.charCodeAt(ti);var Ei=new Blob([Kr],{type:"image/png"});(0,We.I)(Ei,Sr=>{Sr.id?$e.replaceSelection(`![,](/api/attachments/${Sr.id}?type=${Sr.content_type})`):(Sr==null?void 0:Sr.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":if((0,zt.Ye)(mr))return;$e.replaceSelection("`$$"+dn+"$$`");break;case St:if(!Ur)return;$e.getValue().indexOf(Ar)===-1?$e.replaceSelection(`<center><img id="${Ur}" width="80%" src="${Ar}" class="draw-flowchart" alt="${Fr||""}" /></center>`):document.getElementById(Ur).src=se.Z.API_SERVER+Ar+"?t="+Date.now();break;case _t:case ln:const Wr=tn,_i=(cr=(Tn=(wn=Wr==null?void 0:Wr.name)==null?void 0:wn.split("."))==null?void 0:Tn.pop)==null?void 0:cr.call(Tn);return((Dr=Wr==null?void 0:Wr.type)==null?void 0:Dr.indexOf("image"))>-1||!(Wr!=null&&Wr.type)?Wr!=null&&Wr.align||Wr!=null&&Wr.width?$e.replaceSelection(`<p style="text-align:${Wr.align||"initial"}"><img width="${Wr.width?Wr.width+"%":"initial"}" src="${Ar}" alt="${Fr||""}" /></p>`):$e.replaceSelection(`<img width="100%" src="${Ar}" alt="${Fr||""}" />`):((Pr=Wr==null?void 0:Wr.type)==null?void 0:Pr.indexOf("video"))>-1?$e.replaceSelection(`<video width="100%" controls src="${Ar}"></video>`):((Rr=Wr==null?void 0:Wr.type)==null?void 0:Rr.indexOf("pdf"))>-1?$e.replaceSelection(`<a href="${Ar}?type=${Wr.type}&disposition=inline" target="_blank">${Wr.name}</a>`):Sn.includes(_i)?$e.replaceSelection(`<a href="${Ar}?type=office&disposition=inline" target="_blank">${Wr.name}</a>`):$e.replaceSelection(`[${Wr.name}](${Ar})`),$e.focus();case Wt:const{row:qr,col:xr,align:$r}=dn;let Gr=`
`;for(let Sr=0;Sr<qr;Sr++){let Nr=[],Tr=[];for(let ui=0;ui<xr;ui++)Sr===1&&Tr.push(tt[$r]),Nr.push(" ");Sr===1&&(Gr+=`| ${Tr.join(" | ")} |
`),Gr+=`| ${Nr.join(xr===1?"":" | ")} |
`}return $e.replaceSelection(Gr+`
`),$e.focus();default:throw new Error}},[$e,Mn]),Ir=(0,z.useMemo)(()=>{switch(Mn){case jt:return z.createElement(Jt,{callback:Br,onCancel:Or});case qt:return z.createElement(Dt.Z,{callback:Br,onCancel:Or});case _t:return z.createElement(We.Z,{callback:Br,onCancel:Or});case Zt:return z.createElement(oe,{editImgId:fr.current,callback:Br,onCancel:Or});case Wt:return z.createElement(Me,{callback:Br,onCancel:Or});case"maths-latex":return z.createElement(Xt,{showSaveButton:!0,callback:Br});case"inline-latex":return z.createElement(Kt.Z,{showSaveButton:!0,callback:Br});default:return null}},[Mn]);function Or(){xn("")}(0,z.useEffect)(()=>{if(yr.current){let dn=function(Pr){cr=!0,Dr=Pr.pageY},tn=function(){cr=!1},wn=function(Pr){if(cr){let Rr=Pr.pageY-Dr;Rr<0&&(Rr=0),Rr>300&&(Rr=300);let Ar=Dn+Rr+"px";Un(Ar)}},Tn=yr.current,cr=!1,Dr=0;return Tn.addEventListener("mousedown",dn),document.addEventListener("mousemove",wn),document.addEventListener("mouseup",tn),()=>{Tn.removeEventListener("mousedown",dn),document.removeEventListener("mousemove",wn),document.removeEventListener("mouseup",tn)}}},[$e,yr]),(0,z.useEffect)(()=>{Un(Dn)},[Dn]);const ir=sn(mn),rr=sn(Yn),Jn={width:ir,height:rr},an=(0,z.useMemo)(()=>{if(Pn){let dn=new Date(Pn),tn=dn.getHours(),wn=dn.getMinutes(),Tn=dn.getSeconds();return tn=tn<10?"0"+tn:tn,wn=wn<10?"0"+wn:wn,Tn=Tn<10?"0"+Tn:Tn,`${tn}:${wn}:${Tn}`}return 0},[Pn]),pn=dn=>{const tn=[];if($n){let wn=-1;dn=dn.replace(/(@▁▁@|@▁@)/g,function(Tn,cr,Dr){tn.push({multiLine:Tn!==cn})})}return tn};function hn(){window.sessionStorage.removeItem(ar),Cn(!1),Fn(0)}function en(){Cn(!1),Fn(0),$e.setValue(window.sessionStorage.getItem(ar))}(0,z.useEffect)(()=>{bn[Mn]&&Mn!==ln&&Mn!==Zt&&setTimeout(()=>{const dn=document.getElementsByClassName("markdown-popup-form")[0],tn=window.innerWidth/2-dn.offsetWidth/2,wn=window.innerHeight/2-dn.offsetHeight/2;jn(tn),pr(wn)},0)},[Mn]);const Bn=dn=>{dn.preventDefault();const tn=dn.clientX-er,wn=dn.clientY-dr;document.body.onmousemove=Tn=>{let cr=Tn.clientX-tn,Dr=Tn.clientY-wn;const Pr=document.getElementsByClassName("markdown-popup-form")[0],Rr=window.innerWidth-Pr.offsetWidth,Ar=window.innerHeight-Pr.offsetHeight;cr=Math.max(0,Math.min(cr,Rr)),Dr=Math.max(0,Math.min(Dr,Ar)),Gn(Tn.clientX,Tn.clientY,tn,wn)&&(jn(cr),pr(Dr))},document.body.onmouseup=function(){document.body.onmousemove=null}},Gn=(dn,tn,wn,Tn)=>{const cr=document.body.clientHeight,Dr=document.body.clientWidth;return dn<20&&wn>dn||dn>Dr-20&&wn<dn||tn<20&&Tn>tn||tn>cr-20&&Tn<tn?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return z.createElement(z.Fragment,null,z.createElement("div",{className:"markdown-editor-wrapper",ref:ur},z.createElement("div",{className:`markdown-editor-container ${we} ${Yt?"on-preview":""} ${Wn?"mini":""} ${Ln?"full-screen":""}`,style:Jn},z.createElement(kt,{insertTemp:Xn,watch:Yt,fullScreen:Ln,showNullButton:nn,showNullProgramButton:$n,onActionCallback:Er,hidetoolBar:nr,extraUse:Qe}),z.createElement("div",{className:"markdown-editor-body"},z.createElement("div",{className:"codemirror-container"},z.createElement("textarea",{ref:sr,placeholder:Je})),Yt?z.createElement("div",{ref:lr,className:"preview-container"},Nn==="stex"&&z.createElement(vt,{value:Qt}),Nn!=="stex"&&z.createElement(ye.Z,{edit:!0,disabledFill:Ve,showProgramFill:$n,value:Qt,openEditor:dn=>{var tn;fr.current=dn,(tn=Qn.current)==null||tn.setHeight("100vh"),setTimeout(()=>{xn("add-flowchart")},150)}})):null))),qn?z.createElement("a",{ref:yr,className:"editor-resize"}):null,Mn===ln&&z.createElement(Vt,{callback:Br,onCancel:Or}),Mn===Zt&&z.createElement(oe,{ref:Qn,editImgId:fr.current,callback:Br,onCancel:Or}),z.createElement(nt.Z,null,bn[Mn]&&Mn!==ln&&Mn!==Zt?z.createElement(ot.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:er,top:dr},title:z.createElement("div",{style:{cursor:"move"},onMouseDown:Bn},bn[Mn]),open:!0,onCancel:Or,footer:null,destroyOnClose:!0,width:Mn===Zt?"1200px":null,height:Mn===Zt?"80vh":null,className:"markdown-popup-form"},Ir):null))}},90519:function(rn,Ft,ie){"use strict";ie.d(Ft,{Z:function(){return lt},I:function(){return kt}});var z=ie(28284),Ke=ie(6767),ge=ie(37568),Ze=ie(44104),xe=ie(4875),Se=ie(47889),De=ie(7939),Ue=ie(83498),Pe=ie(59301),de=ie(59301),He=Object.defineProperty,ye=Object.defineProperties,vt=Object.getOwnPropertyDescriptors,je=Object.getOwnPropertySymbols,Te=Object.prototype.hasOwnProperty,ke=Object.prototype.propertyIsEnumerable,Ne=(nt,it,Ct)=>it in nt?He(nt,it,{enumerable:!0,configurable:!0,writable:!0,value:Ct}):nt[it]=Ct,yt=(nt,it)=>{for(var Ct in it||(it={}))Te.call(it,Ct)&&Ne(nt,Ct,it[Ct]);if(je)for(var Ct of je(it))ke.call(it,Ct)&&Ne(nt,Ct,it[Ct]);return nt},wt=(nt,it)=>ye(nt,vt(it));const{useForm:Pt}=z.default,bt={width:280,marginRight:10},pt={labelCol:{span:5},wrapperCol:{span:19}};var lt=({callback:nt,onCancel:it})=>{const[Ct]=Pt();let ze=(0,Pe.useRef)();function gt(At){ze.current.width=Ct.getFieldValue("width"),ze.current.align=Ct.getFieldValue("align"),nt(At,ze.current)}function ut(At,Be){if(At.status===-1){Ke.ZP.error(At.message);return}Ct.setFieldsValue({src:`/api/attachments/${At.id}`,type:Be.type})}function pe(At){let Be=At.target.files[0];ze.current=Be,kt(Be,ut)}return de.createElement(z.default,wt(yt({form:Ct},pt),{className:"upload-image-panel",onFinish:gt,style:{width:470,overflow:"hidden"}}),de.createElement(z.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},de.createElement("div",{className:"flex-container"},de.createElement(z.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},de.createElement(ge.default,{style:bt})),de.createElement(_e,{onFileChange:pe}))),de.createElement(z.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},de.createElement(ge.default,{style:{width:264}})),de.createElement(z.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},de.createElement(Ze.Z,null,de.createElement(z.default.Item,{name:"width",style:{margin:0}},de.createElement(xe.Z,{style:{width:264}})),de.createElement("span",{className:"ml8"},"%"))),de.createElement(z.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},de.createElement(Se.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(z.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},de.createElement(De.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),de.createElement(De.ZP,{type:"default",onClick:it},"\u53D6\u6D88"))))};function _e({onFileChange:nt}){return de.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",de.createElement("input",{type:"file",onChange:nt}))}function kt(nt,it){if(!nt)throw new String("\u6CA1\u6709\u6587\u4EF6");let Ct=new FormData;Ct.append("editormd-image-file",nt),Ct.append("file_param_name","editormd-image-file"),Ct.append("byxhr","true");var ze=new window.XMLHttpRequest;ze.withCredentials=!0,ze.addEventListener("load",function(gt){it(JSON.parse(gt.target.responseText),nt)},!1),ze.addEventListener("error",function(gt){console.error(gt)},!1),ze.open("POST",`${Ue.KI}/api/attachments.json`),ze.send(Ct)}},97450:function(rn,Ft,ie){"use strict";ie.d(Ft,{Z:function(){return ge}});var z=ie(59301),Ke=ie(4676);class ge extends z.Component{constructor(xe){super(xe);const Se=window.document;this.node=Se.createElement("div"),Se.body.appendChild(this.node)}render(){const{children:xe}=this.props;return(0,Ke.createPortal)(xe,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},77545:function(rn,Ft,ie){"use strict";ie.d(Ft,{SV:function(){return Vt},ZP:function(){return Lt}});var z=ie(59301),Ke=ie(76374);const ge={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"]},Ze={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"]},xe={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(`
`)}]},Se={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(`
`)}]},De={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 Ue=ie(53184),Pe=ie.n(Ue),de=(rt,Ht,st)=>new Promise((ae,te)=>{var ee=re=>{try{se(st.next(re))}catch(he){te(he)}},oe=re=>{try{se(st.throw(re))}catch(he){te(he)}},se=re=>re.done?ae(re.value):Promise.resolve(re.value).then(ee,oe);se((st=st.apply(rt,Ht)).next())});const He={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"]}},ye=(rt,Ht,st,ae)=>{const te=Ht.getValueInRange({startLineNumber:1,startColumn:1,endLineNumber:st.lineNumber,endColumn:st.column});return Array.from(new Set(te.match(/\b\w{2,}\b/g)||[])).map(oe=>({label:oe,kind:rt.languages.CompletionItemKind.Text,insertText:oe,range:ae}))},vt=(rt,Ht,st,ae)=>{rt.languages.registerCompletionItemProvider(Ht,{provideCompletionItems(te,ee){const oe=te.getWordUntilPosition(ee),se={startLineNumber:ee.lineNumber,endLineNumber:ee.lineNumber,startColumn:oe.startColumn,endColumn:oe.endColumn},re=te.getLineContent(ee.lineNumber).substring(oe.startColumn-2,oe.endColumn);return{suggestions:[...ye(rt,te,ee,se),...st.map(be=>({label:be,kind:rt.languages.CompletionItemKind.Keyword,documentation:be,insertText:be,insertTextRules:rt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:se})),...ae.map(be=>({label:be.label,kind:rt.languages.CompletionItemKind.Snippet,documentation:be.content,insertText:re.startsWith("#")?be.content.replace(/#/,""):be.content,insertTextRules:rt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:se}))]}}})};var je=rt=>{He.languages.forEach(Ht=>{rt.languages.registerDocumentFormattingEditProvider(Ht,{provideDocumentFormattingEdits(st){return de(this,null,function*(){const ae=Pe()(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:ae}]})}})}),vt(rt,"java",Ze.keywords,Ze.quickKey),vt(rt,"cpp",xe.keywords,xe.quickKey),vt(rt,"c",ge.keywords,[]),vt(rt,"python",Se.keywords,Se.quickKey),vt(rt,"scala",De.keywords,De.quickKey)};const Te="\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,Ne=(rt,Ht,st)=>Ht in rt?ke(rt,Ht,{enumerable:!0,configurable:!0,writable:!0,value:st}):rt[Ht]=st,yt=(rt,Ht,st)=>Ne(rt,typeof Ht!="symbol"?Ht+"":Ht,st);const wt=class $s{constructor(Ht,st,ae){this.placeholder=Ht,this.editor=st,this.monaco=ae,st.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return $s.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)}};yt(wt,"ID","editor.widget.placeholderHint");var bt=wt,pt=ie(96236),lt=ie(6767),_e=ie(25399),kt=ie(89392),nt=ie(98614),it=ie(56102),Ct=Object.defineProperty,ze=Object.defineProperties,gt=Object.getOwnPropertyDescriptors,ut=Object.getOwnPropertySymbols,pe=Object.prototype.hasOwnProperty,At=Object.prototype.propertyIsEnumerable,Be=(rt,Ht,st)=>Ht in rt?Ct(rt,Ht,{enumerable:!0,configurable:!0,writable:!0,value:st}):rt[Ht]=st,Nt=(rt,Ht)=>{for(var st in Ht||(Ht={}))pe.call(Ht,st)&&Be(rt,st,Ht[st]);if(ut)for(var st of ut(Ht))At.call(Ht,st)&&Be(rt,st,Ht[st]);return rt},on=(rt,Ht)=>ze(rt,gt(Ht)),Ee=(rt,Ht)=>{var st={};for(var ae in rt)pe.call(rt,ae)&&Ht.indexOf(ae)<0&&(st[ae]=rt[ae]);if(rt!=null&&ut)for(var ae of ut(rt))Ht.indexOf(ae)<0&&At.call(rt,ae)&&(st[ae]=rt[ae]);return st},fe=(rt,Ht,st)=>new Promise((ae,te)=>{var ee=re=>{try{se(st.next(re))}catch(he){te(he)}},oe=re=>{try{se(st.throw(re))}catch(he){te(he)}},se=re=>re.done?ae(re.value):Promise.resolve(re.value).then(ee,oe);se((st=st.apply(rt,Ht)).next())});function Et(rt){return/^\d+$/.test(rt)?`${rt}px`:rt}function Jt(){}let Dt=!1;const We={"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 ot(rt=[]){let Ht=rt;if(Array.isArray(rt)){for(let st=0;st<rt.length;st++){let ae=We[rt[st]];if(ae)return ae}return Ht[0]}return We[Ht]||Ht}let dt=null;const $t=()=>fe(void 0,null,function*(){try{yield navigator.clipboard.writeText(" "),console.log("\u5185\u5BB9\u5DF2\u81EA\u52A8\u590D\u5236\u5230\u526A\u8D34\u677F:")}catch(rt){console.error("\u81EA\u52A8\u590D\u5236\u5931\u8D25:",rt)}});var Lt=rt=>{var Ht=rt,{width:st="100%",height:ae="100%",value:te,language:ee="javascript",style:oe={},options:se={},overrideServices:re={},theme:he="vs-dark",onEditBlur:be,isCopy:ht=!1,onSave:Me,autoHeight:Ye=!1,forbidCopy:mt=!1,forbidCopyTips:It,onChange:xt=Jt,editorDidMount:Xt=Jt,onFocus:Kt=Jt,onBreakPoint:jt=Jt,breakPointValue:_t=[],filename:Zt="educoder.txt",errorLine:ln,errorContent:St="",highlightLine:qt,openBreakPoint:Wt=!1,placeholder:Oe="",showMiniMap:tt=!0}=Ht,Tt=Ee(Ht,["width","height","value","language","style","options","overrideServices","theme","onEditBlur","isCopy","onSave","autoHeight","forbidCopy","forbidCopyTips","onChange","editorDidMount","onFocus","onBreakPoint","breakPointValue","filename","errorLine","errorContent","highlightLine","openBreakPoint","placeholder","showMiniMap"]);const zt=(0,z.useRef)(),Ie=(0,z.useRef)({}),Xe=(0,z.useRef)(),ft=(0,z.useRef)(),Mt=(0,z.useRef)([]),Gt=(0,z.useRef)(!1),cn=(0,z.useRef)(),En=(0,z.useRef)(),Sn=(0,z.useRef)(!1),[sn,yn]=(0,z.useState)(!1);function gn(){let Bt;return zt.current&&(Bt=new Ke.Z(nn=>{for(let $n of nn)($n.target.offsetHeight>0||$n.target.offsetWidth>0)&&Ie.current.instance.layout()}),Bt.observe(zt.current)),Bt}function zn(){lt.ZP.warning({content:decodeURIComponent(It||Te),key:"monaco-editor-tip"})}const bn=()=>{let Bt=Ie.current.instance;if(te!=null&&Bt&&sn){const nn=Bt.getModel();nn&&te!==nn.getValue()&&(Dt=!0,nn.setValue(te),Bt.layout(),Dt=!1)}};(0,z.useEffect)(()=>{const Bt=nt.Z.subscribe("formatDocument",nn=>{var $n;let nr=Ie.current.instance;($n=nr==null?void 0:nr.getAction)==null||$n.call(nr,"editor.action.formatDocument").run()});return window.updateMonacoValue=nn=>{xt(nn)},Bt},[]),(0,z.useEffect)(()=>{var Bt;let nn=Ie.current.instance;ft.current&&clearTimeout(ft.current),ft.current=setTimeout(()=>{bn()},500),te&&(te!=null&&te.length)&&((Bt=nn==null?void 0:nn.updateOptions)==null||Bt.call(nn,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(te.split(/\r\n|\r|\n/g).length))+3,5)}))},[te,sn,Ie.current]),(0,z.useEffect)(()=>{if(ln&&Ie.current&&Ie.current.instance){let nn=Ie.current.instance;nn.changeViewZones(function($n){var nr=document.createElement("div");nr.style.padding="10px 20px",nr.style.width="calc(100% - 20px)",nr.className="my-error-line-wrp",nr.innerHTML=St,$n.addZone({afterLineNumber:ln||11,heightInLines:3,domNode:nr})});var Bt={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}};nn.addOverlayWidget(Bt),nn.revealPositionInCenter({lineNumber:20,column:1})}},[ln,Ie.current,sn]);const vn=(Bt="",nn)=>{if(!Bt||Bt.trim()==="")return!0;const nr=Ie.current.instance.getModel().getLineTokens(nn);let Ae=!1;for(let et=0;et<2;et++)nr.getStandardTokenType(et)===1&&(Ae=!0);return Ae};(0,z.useEffect)(()=>{var Bt;const nn=(Bt=Ie.current)==null?void 0:Bt.instance;if(nn&&sn&&mt){const $n=nn.onDidBlurEditorWidget(()=>{Sn.current=!1}),nr=nn.onDidFocusEditorText(()=>{Sn.current=!0});return()=>{$n.dispose(),nr.dispose()}}},[Ie.current,sn,mt]),(0,z.useEffect)(()=>{var Bt;if((Bt=Ie.current)!=null&&Bt.instance&&sn&&Wt){let nn=Ie.current.instance,$n=nn.getModel();if(!$n)return;(()=>{var Qe;let Fe=[],$e=[];const qe=$n.getAllDecorations();for(let Ut of qe)Ut.options.className==="highlighted-line"&&(Fe.push((Qe=Ut==null?void 0:Ut.range)==null?void 0:Qe.startLineNumber),$e.push(Ut==null?void 0:Ut.id));if(qt===Fe[0])return;$n.deltaDecorations($e,[]);const Qt=$n.getLineCount();qt&&qt<=Qt&&(nn.deltaDecorations([],[{range:new dt.Range(qt,1,qt,$n.getLineMaxColumn(qt)),options:{isWholeLine:!0,className:"highlighted-line"}}]),nn.revealLineInCenter(qt))})();const Ae=(Qe=!1)=>{var Fe;let $e=[],qe=[];const Qt=$n.getAllDecorations();for(let Ut of Qt)Ut.options.linesDecorationsClassName==="breakpoints-select"&&($e.push((Fe=Ut==null?void 0:Ut.range)==null?void 0:Fe.startLineNumber),qe.push(Ut==null?void 0:Ut.id));if(Qe)return{lines:$e,ids:qe};jt($e)},et=Qe=>fe(void 0,null,function*(){let Fe={range:new dt.Range(Qe,1,Qe,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield $n.deltaDecorations([],[Fe]),Ae()}),Ce=Qe=>fe(void 0,null,function*(){let Fe=[];const $e=nn.getLineDecorations(Qe);for(let qe of $e)qe.options.linesDecorationsClassName==="breakpoints-select"&&Fe.push(qe.id);yield $n.deltaDecorations(Fe,[]),Ae()}),Le=Qe=>{let Fe=nn.getLineDecorations(Qe);for(let $e of Fe)if($e.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,kt.isEqual)(_t,Ae(!0).lines)){$n.deltaDecorations(Ae(!0).ids,[]);const Qe=_t.map(Fe=>({range:new dt.Range(Fe,1,Fe,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));$n.deltaDecorations([],Qe)}const we=nn.onDidChangeModelContent(Qe=>{let Fe=nn.getPosition();if(Fe){let $e=Fe.lineNumber;clearTimeout(En.current),En.current=setTimeout(()=>{vn($n.getLineContent($e),$e)?Ce($e):Le($e)?(Ce($e),et($e)):Ae()},100)}}),Re=nn.onMouseDown(Qe=>{var Fe,$e,qe;if(Qe.target.detail&&((qe=($e=(Fe=Qe.target)==null?void 0:Fe.element)==null?void 0:$e.className)!=null&&qe.includes("line-numbers"))){let Qt=Qe.target.position.lineNumber;if(vn($n.getLineContent(Qt),Qt))return;Le(Qt)?Ce(Qt):et(Qt)}}),ve=Qe=>{let Fe={range:new dt.Range(Qe,1,Qe,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};Mt.current=nn.deltaDecorations(Mt.current,[Fe])},Ve=()=>{Mt.current=nn.deltaDecorations(Mt.current,[])},Je=nn.onMouseMove(Qe=>{var Fe,$e,qe;if(Ve(),Qe.target.detail&&((qe=($e=(Fe=Qe.target)==null?void 0:Fe.element)==null?void 0:$e.className)!=null&&qe.includes("line-numbers"))){let Qt=Qe.target.position.lineNumber;if(vn($n.getLineContent(Qt),Qt))return;ve(Qt)}}),ct=nn.onMouseLeave(()=>{Ve()});return()=>{we.dispose(),Re.dispose(),Je.dispose(),ct.dispose()}}},[Ie.current,sn,_t,qt,Wt,ee]),(0,z.useEffect)(()=>{var Bt;(Bt=Ie.current)!=null&&Bt.instance&&Wt&&Ie.current.instance.setPosition({lineNumber:0,column:0})},[qt]);function un(){let Bt=Ie.current.instance;if(Bt){const nn=Bt.getSelection(),$n=Ie.current.pastePos||{},nr=new dt.Range($n.startLineNumber||nn.endLineNumber,$n.startColumn||nn.endColumn,$n.endLineNumber||nn.endLineNumber,$n.endColumn||nn.endColumn);setTimeout(()=>{Bt.executeEdits("",[{range:nr,text:""}])},300)}}function On(Bt){(window.navigator.platform.match("Mac")?Bt.metaKey:Bt.ctrlKey)&&Bt.keyCode==83&&(Bt.preventDefault(),Me())}const mn=()=>{if(Ye&&Ie.current.instance){const Bt=Ie.current.instance.getContentHeight();ar(Bt<ae?ae:Bt)}else ar(ae)};function Dn(Bt){var nn=document.createEvent("MouseEvents");nn.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),Bt.dispatchEvent(nn)}const Wn=Bt=>{if(!Sn.current)return;const{keyCode:nn,ctrlKey:$n,metaKey:nr,target:Ae,type:et}=Bt;return(et==="paste"||(nn===67||nn===86)&&(nr||$n))&&Ae.nodeName==="TEXTAREA"&&(zn(),Bt.preventDefault()),!1};function Zn(Bt,nn){var $n=window.URL||window.webkitURL||window,nr=new Blob([nn]),Ae=document.createElementNS("http://www.w3.org/1999/xhtml","a");Ae.href=$n.createObjectURL(nr),Ae.download=Bt,Dn(Ae)}(0,z.useEffect)(()=>{mn()},[mn]),(0,z.useEffect)(()=>{zt.current&&!sn&&Promise.all([ie.e(8909),ie.e(8250)]).then(ie.bind(ie,71448)).then(Bt=>{try{dt=Bt,Ie.current.instance=dt.editor.create(zt.current,{value:te,language:ot(ee),theme:he,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0,minimap:{enabled:tt||!1}},re);const nn=Ie.current.instance;let Ae=[...pt.BH._menuItems].find(we=>we[0]._debugName=="EditorContext")[1],et=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],Ce=(we,Re)=>{var ve,Ve;let Je=we._first;do Re.includes((Ve=(ve=Je.element)==null?void 0:ve.command)==null?void 0:Ve.id)&&we._remove(Je);while(Je=Je.next)};if(Xt(nn,dt),setTimeout(()=>{mn(),Ie.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{Zn(Zt||"educoder.txt",nn.getValue())}})},500),Ie.current.subscription=nn.onDidChangeModelContent(we=>{Gt.current?clearTimeout(cn.current):(mn(),xt(nn.getValue(),we)),cn.current=setTimeout(()=>{Gt.current=!1},500)}),window.Monaco||je(dt,ot(ee)),mt&&(Ce(Ae,et),zt.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",Wn),window.removeEventListener("paste",Wn),window.addEventListener("keydown",Wn),window.addEventListener("paste",Wn)),window.Monaco=dt,be&&nn.onDidBlurEditorWidget(()=>{be(nn.getValue())}),Kt&&nn.onDidFocusEditorText(()=>{mt&&$t(),Kt(nn.getValue())}),mt){$t();try{nn.onDidPaste(we=>{const Re=nn.getSelection(),ve=Ie.current.pastePos||{},Ve=new dt.Range(ve.startLineNumber||Re.endLineNumber,ve.startColumn||Re.endColumn,ve.endLineNumber||Re.endLineNumber,ve.endColumn||Re.endColumn);nn.executeEdits("",[{range:we.range,text:""}])})}catch(we){}}let Le=gn();return Oe&&typeof Oe=="string"&&new bt(Oe,nn,dt),yn(!0),()=>{const we=Ie.current.instance;we.dispose();const Re=we.getModel();Re&&Re.dispose(),Ie.current.subscription&&Ie.current.subscription.dispose(),Le.unobserve(zt.current)}}catch(nn){}})},[]),(0,z.useEffect)(()=>{if(Ie.current.instance&&sn)return document.addEventListener("keydown",On,!1),()=>{document.removeEventListener("keydown",On)}},[Me,sn]),(0,z.useEffect)(()=>{let Bt=Ie.current.instance;if(Bt&&sn){let nn=ot(ee);dt.editor.setModelLanguage(Bt.getModel(),nn)}},[ee,sn]),(0,z.useEffect)(()=>{Ie.current.instance&&sn&&dt.editor.setTheme(he)},[he,sn]),(0,z.useEffect)(()=>{let Bt=Ie.current.instance;Xe.current=se,Bt&&sn&&(Bt.updateOptions(Nt({},se)),setTimeout(()=>{Bt.getModel().updateOptions(Nt({},se))},200))},[JSON.stringify(se),sn]),(0,z.useEffect)(()=>{let Bt=Ie.current.instance;Bt&&sn&&Bt.layout()},[st,ae,sn]);const[An,Xn]=(0,z.useState)(Et(st)),[Nn,ar]=(0,z.useState)(Et(ae)),qn=on(Nt({},oe),{width:An,height:Nn,position:"relative"});return z.createElement("div",{className:"my-monaco-editor",ref:zt,style:qn,onFocus:()=>{mt&&$t()}},ht&&z.createElement(it.CopyToClipboard,{text:te,onCopy:()=>lt.ZP.success("\u590D\u5236\u6210\u529F")},z.createElement(_e.Z,{title:"\u590D\u5236\u4EE3\u7801"},z.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},z.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function Vt({width:rt="100%",height:Ht="100%",original:st,modified:ae,language:te,options:ee={}}){const oe=(0,z.useRef)(),[se,re]=(0,z.useState)(null);function he(Ye){let mt;return oe.current&&(mt=new Ke.Z(It=>{for(let xt of It)(xt.target.offsetHeight>0||xt.target.offsetWidth>0)&&Ye.layout()}),mt.observe(oe.current)),mt}(0,z.useEffect)(()=>(oe.current&&Promise.all([ie.e(8909),ie.e(9404)]).then(ie.bind(ie,2550)).then(Ye=>{dt=Ye;const mt=dt.editor.createDiffEditor(oe.current,on(Nt({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},ee),{wordWrap:!0}));re(mt);let It=he(mt);return()=>{mt.dispose();const xt=mt.getModel();xt&&xt.dispose(),It.unobserve(oe.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,z.useEffect)(()=>{se&&se.setModel({original:dt.editor.createModel(st,te),modified:dt.editor.createModel(ae,te)})},[st,ae,te,se]);const be=Et(rt),ht=Et(Ht),Me={width:be,height:ht};return z.createElement("div",{className:"my-diff-editor",ref:oe,style:Me})}},2914:function(rn,Ft,ie){"use strict";ie.d(Ft,{Z:function(){return Ke}});var z=ie(59301);function Ke(ge,Ze){const xe=(0,z.useRef)();(0,z.useEffect)(()=>{xe.current=ge}),(0,z.useEffect)(()=>{function Se(){xe.current()}if(Ze!==null){let De=setInterval(Se,Ze);return()=>clearInterval(De)}},[Ze])}},30223:function(rn,Ft,ie){"use strict";ie.r(Ft),ie.d(Ft,{default:function(){return We}});var z=ie(59301),Ke=ie(93041),ge=ie(24404),Ze=ie(6767),xe=ie(62957),Se=ie(37639),De=ie(14661),Ue={flex_box_center:"flex_box_center___GfbI9",flex_space_between:"flex_space_between___m14JJ",flex_box_vertical_center:"flex_box_vertical_center___IKGDg",flex_box_center_end:"flex_box_center_end___JZxvM",flex_box_column:"flex_box_column___WnVa8",SubMentItem:"SubMentItem___P0LXo",MenuItem:"MenuItem___p91mQ",wrp:"wrp___kMQ4i",classroomInfo:"classroomInfo___rb1qC",title:"title___AQndp",titleLeft:"titleLeft___K7c9u",titleRight:"titleRight___BUODH",classroomUser:"classroomUser___NkYxe",headPic:"headPic___RD_it",teacherInfo:"teacherInfo___Gyj_W",classroomDesc:"classroomDesc___ng_AB",classroomDescBg:"classroomDescBg___Dz_DM",joinCouses:"joinCouses___U2D0G",bg:"bg___IcypX",leftMenus:"leftMenus___fF5qD",titleSelected:"titleSelected___Rqtd8",menuText:"menuText___jhrfq",totalCount:"totalCount___fqkbl",actions:"actions___NAYZl",task_count:"task_count___a1sYB",container:"container___djeCS",leftMenuActions:"leftMenuActions___lRhBF"},Pe=ie(66658),de=ie(51429),He=ie(87169),ye=ie(43531),vt=ie(8576),je=ie(37568),Te=(ot,dt,$t)=>new Promise((Lt,Vt)=>{var rt=ae=>{try{st($t.next(ae))}catch(te){Vt(te)}},Ht=ae=>{try{st($t.throw(ae))}catch(te){Vt(te)}},st=ae=>ae.done?Lt(ae.value):Promise.resolve(ae.value).then(rt,Ht);st(($t=$t.apply(ot,dt)).next())});function ke({user:ot,CategoryId:dt,IsShow:$t,setIsShow:Lt,dispatch:Vt,init:rt}){const[Ht,st]=(0,z.useState)();return z.createElement(xe.default,{title:dt?"\u65B0\u5EFA\u4E09\u7EA7\u7C7B\u76EE":"\u65B0\u5EFA\u4E8C\u7EA7\u7C7B\u76EE",width:424,onCancel:()=>{Lt(!1)},onOk:()=>Te(this,null,function*(){if(!Ht){Ze.ZP.error("\u680F\u76EE\u540D\u4E0D\u80FD\u4E3A\u7A7A");return}(yield(0,Pe.ZP)("/api/programas.json",{method:"post",body:{name:Ht,parent_id:dt}})).status===0&&(Ze.ZP.info("\u521B\u5EFA\u6210\u529F"),Lt(!1),st(""),rt())}),open:$t},z.createElement(je.default,{value:Ht,onChange:ae=>st(ae.target.value),placeholder:"\u8BF7\u8F93\u5165\u4E0D\u8D85\u8FC710\u4E2A\u6C49\u5B57\u7684\u540D\u79F0",maxLength:10}))}var Ne=(0,de.connect)(({user:ot})=>({user:ot}))(ke),yt=(ot,dt,$t)=>new Promise((Lt,Vt)=>{var rt=ae=>{try{st($t.next(ae))}catch(te){Vt(te)}},Ht=ae=>{try{st($t.throw(ae))}catch(te){Vt(te)}},st=ae=>ae.done?Lt(ae.value):Promise.resolve(ae.value).then(rt,Ht);st(($t=$t.apply(ot,dt)).next())});function wt({user:ot,CategoryId:dt,name:$t,IsShow:Lt,setIsShow:Vt,dispatch:rt,init:Ht}){const[st,ae]=(0,z.useState)();return(0,z.useEffect)(()=>{ae($t)},[$t]),z.createElement(xe.default,{title:"\u76EE\u5F55\u91CD\u547D\u540D",width:424,onCancel:()=>{Vt(!1)},onOk:()=>yt(this,null,function*(){if(!st){Ze.ZP.error("\u680F\u76EE\u540D\u4E0D\u80FD\u4E3A\u7A7A");return}(yield(0,Pe.ZP)(`/api/programas/${dt}/rename.json`,{method:"put",body:{name:st,id:dt}})).status===0&&(Ze.ZP.info("\u4FEE\u6539\u6210\u529F"),Vt(!1),ae(""),Ht())}),open:Lt},z.createElement(je.default,{value:st,onChange:te=>ae(te.target.value),placeholder:"\u8BF7\u8F93\u5165\u4E0D\u8D85\u8FC710\u4E2A\u6C49\u5B57\u7684\u540D\u79F0",maxLength:10}))}var Pt=(0,de.connect)(({user:ot})=>({user:ot}))(wt),bt=ie(7939),pt=ie(84660);function lt({user:ot,ItemData:dt,setIssee:$t,dispatch:Lt,init:Vt}){var rt,Ht,st,ae;return z.createElement("div",null,z.createElement("div",{style:{textAlign:"right"}},(0,vt.Ny)()&&z.createElement(bt.ZP,{onClick:()=>$t(!1)},"\u7F16\u8F91")),z.createElement(pt.Z,{value:dt.content}),((rt=dt==null?void 0:dt.attachment)==null?void 0:rt.id)&&z.createElement("div",null,z.createElement("a",{href:(Ht=dt==null?void 0:dt.attachment)==null?void 0:Ht.url,target:"_self",download:(st=dt==null?void 0:dt.attachment)==null?void 0:st.title},z.createElement("i",{style:{color:"#29BD8B"},className:"font-14 color-green iconfont icon-fujian mr8"}),z.createElement("span",{style:{color:"#000000"}},(ae=dt==null?void 0:dt.attachment)==null?void 0:ae.title))))}var _e=(0,de.connect)(({user:ot})=>({user:ot}))(lt),kt=ie(94968),nt=ie(46127),it=ie(36489),Ct=Object.defineProperty,ze=Object.getOwnPropertySymbols,gt=Object.prototype.hasOwnProperty,ut=Object.prototype.propertyIsEnumerable,pe=(ot,dt,$t)=>dt in ot?Ct(ot,dt,{enumerable:!0,configurable:!0,writable:!0,value:$t}):ot[dt]=$t,At=(ot,dt)=>{for(var $t in dt||(dt={}))gt.call(dt,$t)&&pe(ot,$t,dt[$t]);if(ze)for(var $t of ze(dt))ut.call(dt,$t)&&pe(ot,$t,dt[$t]);return ot},Be=(ot,dt,$t)=>new Promise((Lt,Vt)=>{var rt=ae=>{try{st($t.next(ae))}catch(te){Vt(te)}},Ht=ae=>{try{st($t.throw(ae))}catch(te){Vt(te)}},st=ae=>ae.done?Lt(ae.value):Promise.resolve(ae.value).then(rt,Ht);st(($t=$t.apply(ot,dt)).next())});function Nt({user:ot,ItemData:dt,setIssee:$t,CategoryId:Lt,dispatch:Vt,init:rt}){let[Ht,st]=(0,z.useState)([]);const[ae,te]=(0,z.useState)(dt.content);function ee(){var he;let be=[];return(he=dt==null?void 0:dt.attachments)==null||he.map(ht=>{let Me={uid:ht==null?void 0:ht.id,name:ht.title,response:{id:ht.id}};be.push(Me)}),be}const oe={name:"file",multiple:!0,action:De.Z.API_SERVER+"/api/attachments.json",defaultFileList:ee(),onRemove(he){(0,it.y8)({id:he.uid})},onChange(he){console.log("info",he);const{status:be}=he.file;be==="removed"&&st(he.fileList),be==="done"?(st(he.fileList),Ze.ZP.success(`${he.file.name} \u6587\u4EF6\u4E0A\u4F20\u6210\u529F`)):be==="error"&&Ze.ZP.error(`${he.file.name} \u6587\u4EF6\u4E0A\u4F20\u5931\u8D25`)},beforeUpload:he=>{const be=he.size/1024/1024<150;return be||Ze.ZP.info("\u6587\u4EF6\u5927\u5C0F\u5FC5\u987B\u5C0F\u4E8E150MB"),be}};function se(){return Be(this,null,function*(){(yield(0,Pe.ZP)(`/api/programas/${Lt}/update_content.json`,{method:"put",body:{id:Lt,content:ae,attachment_id:re(Ht)}}))&&(Ze.ZP.info("\u63D0\u4EA4\u6210\u529F"),$t(!0))})}function re(he){let be;return he&&he.map(ht=>{be=ht.response.id}),be}return z.createElement("div",null,z.createElement(nt.Z,{defaultValue:ae,onChange:he=>te(he)}),z.createElement(kt.default,At({},oe),z.createElement(bt.ZP,{className:"uploadBtn"},"\u4E0A\u4F20\u9644\u4EF6"),"(\u5355\u4E2A\u6587\u4EF6150M\u4EE5\u5185)"),z.createElement("p",{style:{marginTop:"10px"}},z.createElement(bt.ZP,{style:{width:"90px"},onClick:()=>se()},"\u63D0\u4EA4"),z.createElement(bt.ZP,{style:{marginLeft:"30px",width:"90px"},type:"primary",onClick:()=>$t(!0)},"\u53D6\u6D88")))}var on=(0,de.connect)(({user:ot})=>({user:ot}))(Nt),Ee=(ot,dt,$t)=>new Promise((Lt,Vt)=>{var rt=ae=>{try{st($t.next(ae))}catch(te){Vt(te)}},Ht=ae=>{try{st($t.throw(ae))}catch(te){Vt(te)}},st=ae=>ae.done?Lt(ae.value):Promise.resolve(ae.value).then(rt,Ht);st(($t=$t.apply(ot,dt)).next())});const{SubMenu:fe}=Ke.default,{Content:Et,Sider:Jt}=ge.default;function Dt({user:ot,dispatch:dt,globalSetting:$t}){var Lt;const[Vt,rt]=(0,z.useState)(),[Ht,st]=(0,z.useState)(!1),[ae,te]=(0,z.useState)();let[ee,oe]=(0,z.useState)();const[se,re]=(0,z.useState)(!1),[he,be]=(0,z.useState)(""),[ht,Me]=(0,z.useState)(""),[Ye,mt]=(0,z.useState)(!0);(0,z.useEffect)(()=>{It()},[]),console.log("globalSetting",$t);function It(){return Ee(this,null,function*(){const _t=yield(0,Pe.ZP)("/api/programas.json",{method:"get"});_t&&te(_t==null?void 0:_t.programas)})}const xt=(_t,Zt,ln)=>Ee(this,null,function*(){switch(_t){case 1:oe(Zt==null?void 0:Zt.id),st(!0);break;case 2:oe(Zt==null?void 0:Zt.id),re(!0),be(Zt==null?void 0:Zt.name);break;case 3:(yield(0,Pe.ZP)(`/api/programas/${Zt==null?void 0:Zt.id}/top.json`,{method:"post",body:{id:Zt==null?void 0:Zt.id}})).status===0&&It();break;case 4:Xt(z.createElement("p",null,"\u5220\u9664\u4E4B\u540E\u4E0D\u80FD\u6062\u590D,",z.createElement("br",null),"\u662F\u5426\u786E\u8BA4\u5220\u9664?"),()=>Ee(this,null,function*(){(yield(0,Pe.ZP)(`/api/programas/${Zt==null?void 0:Zt.id}.json`,{method:"delete",body:{id:Zt==null?void 0:Zt.id}})).status===0&&(Ze.ZP.info("\u5220\u9664\u6210\u529F"),It())}));break}}),Xt=(_t,Zt)=>{xe.default.confirm({centered:!0,title:"\u63D0\u793A",icon:z.createElement(He.Z,null),content:_t,okText:"\u786E\u8BA4",onOk:()=>Zt(),cancelText:"\u53D6\u6D88"})},Kt=(_t,Zt)=>z.createElement("div",{className:Ue.leftMenuActions},Zt===1&&z.createElement("p",{className:"current",onClick:()=>xt(1,_t,Zt)},"\u65B0\u5EFA"),z.createElement("p",{className:"current",onClick:()=>xt(2,_t,Zt)},"\u91CD\u547D\u540D"),z.createElement("p",{className:"current",onClick:()=>xt(3,_t,Zt)},"\u7F6E\u9876"),z.createElement("p",{className:"current",onClick:()=>xt(4,_t,Zt)},"\u5220\u9664"));function jt(){return Ee(this,null,function*(){const _t=yield(0,Pe.ZP)(`/api/programas/${ee}/content.json`,{method:"get",params:{id:ee}});_t&&Me(_t)})}return z.createElement("div",{style:{marginBottom:"40px"}},z.createElement("img",{style:{width:"100%"},src:De.Z.IMG_SERVER+`/${(Lt=$t==null?void 0:$t.setting)==null?void 0:Lt.shixun_banner_url}`}),z.createElement("div",{className:"edu-container minH500",style:{display:"flex",width:"1200px"}},z.createElement(Jt,{width:244,className:Ue.leftMenus,style:{background:"none",marginTop:"20px",height:"auto"}},z.createElement(Ke.default,{mode:"inline"},ae==null?void 0:ae.map((_t,Zt)=>{var ln,St;return(_t==null?void 0:_t.children.length)>0?z.createElement(fe,{title:z.createElement("span",{className:"font16"},z.createElement("span",null,_t.name),!(0,vt.Ny)()&&z.createElement("span",null),(0,vt.Ny)()&&z.createElement(Se.Z,{placement:"right",content:()=>Kt(_t,1),trigger:"hover"},z.createElement("span",{className:["iconfont icon-sandian",Ue.actions].join(" ")})))},(ln=_t==null?void 0:_t.children)==null?void 0:ln.map((qt,Wt)=>{var Oe;return z.createElement(Ke.default.Item,{className:(Oe=Ue)==null?void 0:Oe.SubMentItem,onClick:()=>{oe(qt==null?void 0:qt.id),ee=qt==null?void 0:qt.id,jt()}},z.createElement("span",{style:{flex:"1"}},qt==null?void 0:qt.name),(0,vt.Ny)()&&z.createElement(Se.Z,{placement:"right",content:()=>Kt(qt,2),trigger:"hover"},z.createElement("span",{className:["iconfont icon-sandian",Ue.actions].join(" ")})))})):z.createElement(Ke.default.Item,{className:(St=Ue)==null?void 0:St.SubMentItem,onClick:()=>{oe(_t==null?void 0:_t.id),ee=_t==null?void 0:_t.id,jt()}},z.createElement("span",{style:{flex:"1"}},_t==null?void 0:_t.name),(0,vt.Ny)()&&z.createElement(Se.Z,{placement:"right",content:()=>Kt(_t,1),trigger:"hover"},z.createElement("span",{className:["iconfont icon-sandian",Ue.actions].join(" ")})))}),z.createElement(Ke.default.Item,{onClick:()=>{oe(""),ee="",st(!0)},style:{color:"#0152d9",fontSize:"16px",height:"40px",display:"flex",alignItems:"center"},icon:z.createElement(ye.Z,{style:{color:"#0152d9",fontSize:"16px"}})},"\u65B0\u589E\u4E8C\u7EA7\u7C7B\u76EE"))),z.createElement("div",{style:{width:"937px",marginLeft:"17px",background:"#fff",padding:"20px"}},Ye&&z.createElement(_e,{ItemData:ht,setIssee:mt}),Ye===!1&&z.createElement(on,{ItemData:ht,setIssee:mt,CategoryId:ee}))),z.createElement(Ne,{CategoryId:ee,IsShow:Ht,setIsShow:st,init:It}),z.createElement(Pt,{CategoryId:ee,name:he,IsShow:se,setIsShow:re,init:It}))}var We=(0,de.connect)(({user:ot,globalSetting:dt})=>({user:ot,globalSetting:dt}))(Dt)},96160:function(rn,Ft,ie){"use strict";ie.d(Ft,{AL:function(){return bt},Iy:function(){return He},Qv:function(){return je},ez:function(){return Pt},jb:function(){return ye}});var z=ie(32834),Ke=ie.n(z),ge=ie(11690),Ze=ie.n(ge);let xe=1;function Se(nt,it){const Ct=nt.match(/^(\s+)(?:```)/);if(Ct===null)return it;const ze=Ct[1];return it.split(`
`).map(gt=>{const ut=gt.match(/^\s+/);if(ut===null)return gt;const[pe]=ut;return pe.length>=ze.length?gt.slice(ze.length):gt}).join(`
`)}let De=[],Ue=["<ul>"];const Pe=new(Ke()).Renderer,de=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function He(){De.length=0,Ue=["<ul>"]}const ye={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function vt(nt,it,Ct,ze){if(it>=nt.length||nt[it].level<=Ct)return it;var gt=nt[it];ze.push("<li><a href='#"+xe+gt.anchor+"'>"+gt.text+"</a>"),it++;var ut=[];return it=vt(nt,it,gt.level,ut),ut.length>0&&(ze.push("<ul>"),ut.forEach(function(pe){ze.push(pe)}),ze.push("</ul>")),ze.push("</li>"),it=vt(nt,it,Ct,ze),it}function je(){return vt(De,0,0,Ue),Ue.push("</ul>"),Ue.join("")}const Te={heading(nt){const it=de.exec(nt);if(xe+=1,it)return{type:"heading",raw:it[0],depth:it[1].length,text:it[2]}},fences(nt){const it=this.rules.block.fences.exec(nt);if(it){const Ct=it[0];let ze=Se(Ct,it[3]||"");const gt=it[2]?it[2].trim():it[2];if(["latex","katex","math"].indexOf(gt)>=0){const ut=yt(),pe=ze;ze=ut,wt[ut]={type:"block",expression:pe}}return{type:"code",raw:Ct,lang:gt,text:ze}}}},ke=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let Ne=0;const yt=()=>`__special_katext_id_${Ne++}__`;let wt={};function Pt(){return wt}function bt(){Ne=0,wt={}}function pt(nt){return nt=nt.replace(ke,(it,Ct)=>{const ze=yt();return wt[ze]={type:"inline",expression:Ct},ze}),nt}const lt=Pe.listitem;Pe.listitem=function(nt){return lt(pt(nt))};const _e=Pe.paragraph;Pe.paragraph=function(nt){return _e(pt(nt))};const kt=Pe.tablecell;Pe.tablecell=function(nt,it){return kt(pt(nt),it)},Pe.code=function(nt,it,Ct){const ze=(it||"").match(/\S*/)[0];return ze?["latex","katex","math"].indexOf(ze)>=0?`<p class='editormd-tex'>${nt}</p>`:`<pre class="prettyprint linenums"><code class="language-${it}">${Ct?nt:(0,ge.escape)(nt,!0)}</code></pre>
`:'<pre class="prettyprint linenums"><code>'+(Ct?nt:(0,ge.escape)(nt,!0))+"</code></pre>"},Pe.heading=function(nt,it,Ct){let ze=this.options.headerPrefix+Ct.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return De.push({anchor:ze,level:it,text:nt}),"<h"+it+' id="'+xe+ze+'">'+nt+"</h"+it+">"},Ke().setOptions({silent:!0,gfm:!0,pedantic:!1}),Ke().use({tokenizer:Te,renderer:Pe}),Ft.ZP=Ke()},86013:function(rn,Ft,ie){"use strict";var z=ie(59301),Ke=ie(19248);const ge=Ze=>{let xe;return typeof Ze=="object"&&(Ze!=null&&Ze.clearIcon)?xe=Ze:Ze&&(xe={clearIcon:z.createElement(Ke.Z,null)}),xe};Ft.Z=ge},54500:function(rn,Ft,ie){"use strict";ie.d(Ft,{Z:function(){return z}});const z=Ke=>Ke?typeof Ke=="function"?Ke():Ke:null},38406:function(rn,Ft,ie){"use strict";var z=ie(59301),Ke=ie(48755),ge=ie(584);const Ze=xe=>{const{componentName:Se}=xe,{getPrefixCls:De}=(0,z.useContext)(Ke.E_),Ue=De("empty");switch(Se){case"Table":case"List":return z.createElement(ge.Z,{image:ge.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return z.createElement(ge.Z,{image:ge.Z.PRESENTED_IMAGE_SIMPLE,className:`${Ue}-small`});case"Table.filter":return null;default:return z.createElement(ge.Z,null)}};Ft.Z=Ze},36207:function(rn,Ft,ie){"use strict";ie.d(Ft,{Z:function(){return ht}});var z=ie(59301),Ke=ie(92310),ge=ie.n(Ke),Ze=ie(33885),xe=ie(42978),Se=ie(43403),De=ie(34280),Ue=z.createContext(null),Pe=z.createContext({}),de=Ue,He=ie(20068),ye=ie(54476),vt=ie(77900),je=ie(10228),Te=ie(26112),ke=ie(75931),Ne=ie(8654),yt=["prefixCls","className","containerRef"],wt=function(Ye){var mt=Ye.prefixCls,It=Ye.className,xt=Ye.containerRef,Xt=(0,ke.Z)(Ye,yt),Kt=z.useContext(Pe),jt=Kt.panel,_t=(0,Ne.x1)(jt,xt);return z.createElement("div",(0,ye.Z)({className:ge()("".concat(mt,"-content"),It),role:"dialog",ref:_t},(0,Te.Z)(Ye,{aria:!0}),{"aria-modal":"true"},Xt))},Pt=wt,bt=ie(48736);function pt(Me){return typeof Me=="string"&&String(Number(Me))===Me?((0,bt.ZP)(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(Me)):Me}function lt(Me){warning(!("wrapperClassName"in Me),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!Me.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var _e={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function kt(Me,Ye){var mt,It,xt,Xt=Me.prefixCls,Kt=Me.open,jt=Me.placement,_t=Me.inline,Zt=Me.push,ln=Me.forceRender,St=Me.autoFocus,qt=Me.keyboard,Wt=Me.classNames,Oe=Me.rootClassName,tt=Me.rootStyle,Tt=Me.zIndex,zt=Me.className,Ie=Me.id,Xe=Me.style,ft=Me.motion,Mt=Me.width,Gt=Me.height,cn=Me.children,En=Me.mask,Sn=Me.maskClosable,sn=Me.maskMotion,yn=Me.maskClassName,gn=Me.maskStyle,zn=Me.afterOpenChange,bn=Me.onClose,vn=Me.onMouseEnter,un=Me.onMouseOver,On=Me.onMouseLeave,mn=Me.onClick,Dn=Me.onKeyDown,Wn=Me.onKeyUp,Zn=Me.styles,An=Me.drawerRender,Xn=z.useRef(),Nn=z.useRef(),ar=z.useRef();z.useImperativeHandle(Ye,function(){return Xn.current});var qn=function(Fe){var $e=Fe.keyCode,qe=Fe.shiftKey;switch($e){case je.Z.TAB:{if($e===je.Z.TAB){if(!qe&&document.activeElement===ar.current){var Qt;(Qt=Nn.current)===null||Qt===void 0||Qt.focus({preventScroll:!0})}else if(qe&&document.activeElement===Nn.current){var Ut;(Ut=ar.current)===null||Ut===void 0||Ut.focus({preventScroll:!0})}}break}case je.Z.ESC:{bn&&qt&&(Fe.stopPropagation(),bn(Fe));break}}};z.useEffect(function(){if(Kt&&St){var Qe;(Qe=Xn.current)===null||Qe===void 0||Qe.focus({preventScroll:!0})}},[Kt]);var Bt=z.useState(!1),nn=(0,xe.Z)(Bt,2),$n=nn[0],nr=nn[1],Ae=z.useContext(de),et;typeof Zt=="boolean"?et=Zt?{}:{distance:0}:et=Zt||{};var Ce=(mt=(It=(xt=et)===null||xt===void 0?void 0:xt.distance)!==null&&It!==void 0?It:Ae==null?void 0:Ae.pushDistance)!==null&&mt!==void 0?mt:180,Le=z.useMemo(function(){return{pushDistance:Ce,push:function(){nr(!0)},pull:function(){nr(!1)}}},[Ce]);z.useEffect(function(){if(Kt){var Qe;Ae==null||(Qe=Ae.push)===null||Qe===void 0||Qe.call(Ae)}else{var Fe;Ae==null||(Fe=Ae.pull)===null||Fe===void 0||Fe.call(Ae)}},[Kt]),z.useEffect(function(){return function(){var Qe;Ae==null||(Qe=Ae.pull)===null||Qe===void 0||Qe.call(Ae)}},[]);var we=En&&z.createElement(vt.default,(0,ye.Z)({key:"mask"},sn,{visible:Kt}),function(Qe,Fe){var $e=Qe.className,qe=Qe.style;return z.createElement("div",{className:ge()("".concat(Xt,"-mask"),$e,Wt==null?void 0:Wt.mask,yn),style:(0,Ze.Z)((0,Ze.Z)((0,Ze.Z)({},qe),gn),Zn==null?void 0:Zn.mask),onClick:Sn&&Kt?bn:void 0,ref:Fe})}),Re=typeof ft=="function"?ft(jt):ft,ve={};if($n&&Ce)switch(jt){case"top":ve.transform="translateY(".concat(Ce,"px)");break;case"bottom":ve.transform="translateY(".concat(-Ce,"px)");break;case"left":ve.transform="translateX(".concat(Ce,"px)");break;default:ve.transform="translateX(".concat(-Ce,"px)");break}jt==="left"||jt==="right"?ve.width=pt(Mt):ve.height=pt(Gt);var Ve={onMouseEnter:vn,onMouseOver:un,onMouseLeave:On,onClick:mn,onKeyDown:Dn,onKeyUp:Wn},Je=z.createElement(vt.default,(0,ye.Z)({key:"panel"},Re,{visible:Kt,forceRender:ln,onVisibleChanged:function(Fe){zn==null||zn(Fe)},removeOnLeave:!1,leavedClassName:"".concat(Xt,"-content-wrapper-hidden")}),function(Qe,Fe){var $e=Qe.className,qe=Qe.style,Qt=z.createElement(Pt,(0,ye.Z)({id:Ie,containerRef:Fe,prefixCls:Xt,className:ge()(zt,Wt==null?void 0:Wt.content),style:(0,Ze.Z)((0,Ze.Z)({},Xe),Zn==null?void 0:Zn.content)},(0,Te.Z)(Me,{aria:!0}),Ve),cn);return z.createElement("div",(0,ye.Z)({className:ge()("".concat(Xt,"-content-wrapper"),Wt==null?void 0:Wt.wrapper,$e),style:(0,Ze.Z)((0,Ze.Z)((0,Ze.Z)({},ve),qe),Zn==null?void 0:Zn.wrapper)},(0,Te.Z)(Me,{data:!0})),An?An(Qt):Qt)}),ct=(0,Ze.Z)({},tt);return Tt&&(ct.zIndex=Tt),z.createElement(de.Provider,{value:Le},z.createElement("div",{className:ge()(Xt,"".concat(Xt,"-").concat(jt),Oe,(0,He.Z)((0,He.Z)({},"".concat(Xt,"-open"),Kt),"".concat(Xt,"-inline"),_t)),style:ct,tabIndex:-1,ref:Xn,onKeyDown:qn},we,z.createElement("div",{tabIndex:0,ref:Nn,style:_e,"aria-hidden":"true","data-sentinel":"start"}),Je,z.createElement("div",{tabIndex:0,ref:ar,style:_e,"aria-hidden":"true","data-sentinel":"end"})))}var nt=z.forwardRef(kt),it=nt,Ct=function(Ye){var mt=Ye.open,It=mt===void 0?!1:mt,xt=Ye.prefixCls,Xt=xt===void 0?"rc-drawer":xt,Kt=Ye.placement,jt=Kt===void 0?"right":Kt,_t=Ye.autoFocus,Zt=_t===void 0?!0:_t,ln=Ye.keyboard,St=ln===void 0?!0:ln,qt=Ye.width,Wt=qt===void 0?378:qt,Oe=Ye.mask,tt=Oe===void 0?!0:Oe,Tt=Ye.maskClosable,zt=Tt===void 0?!0:Tt,Ie=Ye.getContainer,Xe=Ye.forceRender,ft=Ye.afterOpenChange,Mt=Ye.destroyOnClose,Gt=Ye.onMouseEnter,cn=Ye.onMouseOver,En=Ye.onMouseLeave,Sn=Ye.onClick,sn=Ye.onKeyDown,yn=Ye.onKeyUp,gn=Ye.panelRef,zn=z.useState(!1),bn=(0,xe.Z)(zn,2),vn=bn[0],un=bn[1],On=z.useState(!1),mn=(0,xe.Z)(On,2),Dn=mn[0],Wn=mn[1];(0,De.Z)(function(){Wn(!0)},[]);var Zn=Dn?It:!1,An=z.useRef(),Xn=z.useRef();(0,De.Z)(function(){Zn&&(Xn.current=document.activeElement)},[Zn]);var Nn=function($n){var nr;if(un($n),ft==null||ft($n),!$n&&Xn.current&&!((nr=An.current)!==null&&nr!==void 0&&nr.contains(Xn.current))){var Ae;(Ae=Xn.current)===null||Ae===void 0||Ae.focus({preventScroll:!0})}},ar=z.useMemo(function(){return{panel:gn}},[gn]);if(!Xe&&!vn&&!Zn&&Mt)return null;var qn={onMouseEnter:Gt,onMouseOver:cn,onMouseLeave:En,onClick:Sn,onKeyDown:sn,onKeyUp:yn},Bt=(0,Ze.Z)((0,Ze.Z)({},Ye),{},{open:Zn,prefixCls:Xt,placement:jt,autoFocus:Zt,keyboard:St,width:Wt,mask:tt,maskClosable:zt,inline:Ie===!1,afterOpenChange:Nn,ref:An},qn);return z.createElement(Pe.Provider,{value:ar},z.createElement(Se.Z,{open:Zn||Xe||vn,autoDestroy:!1,getContainer:Ie,autoLock:tt&&(Zn||vn)},z.createElement(it,Bt)))},ze=Ct,gt=ze,ut=ie(62487),pe=ie(75030),At=ie(86641),Be=ie(55743),Nt=ie(48755),on=ie(91190),Ee=ie(78776),fe=ie(458),Jt=Me=>{var Ye,mt;const{prefixCls:It,title:xt,footer:Xt,extra:Kt,loading:jt,onClose:_t,headerStyle:Zt,bodyStyle:ln,footerStyle:St,children:qt,classNames:Wt,styles:Oe}=Me,tt=(0,Nt.dj)("drawer"),Tt=z.useCallback(Mt=>z.createElement("button",{type:"button",onClick:_t,"aria-label":"Close",className:`${It}-close`},Mt),[_t]),[zt,Ie]=(0,Ee.Z)((0,Ee.w)(Me),(0,Ee.w)(tt),{closable:!0,closeIconRender:Tt}),Xe=z.useMemo(()=>{var Mt,Gt;return!xt&&!zt?null:z.createElement("div",{style:Object.assign(Object.assign(Object.assign({},(Mt=tt.styles)===null||Mt===void 0?void 0:Mt.header),Zt),Oe==null?void 0:Oe.header),className:ge()(`${It}-header`,{[`${It}-header-close-only`]:zt&&!xt&&!Kt},(Gt=tt.classNames)===null||Gt===void 0?void 0:Gt.header,Wt==null?void 0:Wt.header)},z.createElement("div",{className:`${It}-header-title`},Ie,xt&&z.createElement("div",{className:`${It}-title`},xt)),Kt&&z.createElement("div",{className:`${It}-extra`},Kt))},[zt,Ie,Kt,Zt,It,xt]),ft=z.useMemo(()=>{var Mt,Gt;if(!Xt)return null;const cn=`${It}-footer`;return z.createElement("div",{className:ge()(cn,(Mt=tt.classNames)===null||Mt===void 0?void 0:Mt.footer,Wt==null?void 0:Wt.footer),style:Object.assign(Object.assign(Object.assign({},(Gt=tt.styles)===null||Gt===void 0?void 0:Gt.footer),St),Oe==null?void 0:Oe.footer)},Xt)},[Xt,St,It]);return z.createElement(z.Fragment,null,Xe,z.createElement("div",{className:ge()(`${It}-body`,Wt==null?void 0:Wt.body,(Ye=tt.classNames)===null||Ye===void 0?void 0:Ye.body),style:Object.assign(Object.assign(Object.assign({},(mt=tt.styles)===null||mt===void 0?void 0:mt.body),ln),Oe==null?void 0:Oe.body)},jt?z.createElement(fe.Z,{active:!0,title:!1,paragraph:{rows:5},className:`${It}-body-skeleton`}):qt),ft)},Dt=ie(36237),We=ie(63356),ot=ie(16931),dt=ie(51636);const $t=Me=>{const Ye="100%";return{left:`translateX(-${Ye})`,right:`translateX(${Ye})`,top:`translateY(-${Ye})`,bottom:`translateY(${Ye})`}[Me]},Lt=(Me,Ye)=>({"&-enter, &-appear":Object.assign(Object.assign({},Me),{"&-active":Ye}),"&-leave":Object.assign(Object.assign({},Ye),{"&-active":Me})}),Vt=(Me,Ye)=>Object.assign({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${Ye}`}}},Lt({opacity:Me},{opacity:1})),rt=(Me,Ye)=>[Vt(.7,Ye),Lt({transform:$t(Me)},{transform:"none"})];var st=Me=>{const{componentCls:Ye,motionDurationSlow:mt}=Me;return{[Ye]:{[`${Ye}-mask-motion`]:Vt(0,mt),[`${Ye}-panel-motion`]:["left","right","top","bottom"].reduce((It,xt)=>Object.assign(Object.assign({},It),{[`&-${xt}`]:rt(xt,mt)}),{})}}};const ae=Me=>{const{borderRadiusSM:Ye,componentCls:mt,zIndexPopup:It,colorBgMask:xt,colorBgElevated:Xt,motionDurationSlow:Kt,motionDurationMid:jt,paddingXS:_t,padding:Zt,paddingLG:ln,fontSizeLG:St,lineHeightLG:qt,lineWidth:Wt,lineType:Oe,colorSplit:tt,marginXS:Tt,colorIcon:zt,colorIconHover:Ie,colorBgTextHover:Xe,colorBgTextActive:ft,colorText:Mt,fontWeightStrong:Gt,footerPaddingBlock:cn,footerPaddingInline:En,calc:Sn}=Me,sn=`${mt}-content-wrapper`;return{[mt]:{position:"fixed",inset:0,zIndex:It,pointerEvents:"none",color:Mt,"&-pure":{position:"relative",background:Xt,display:"flex",flexDirection:"column",[`&${mt}-left`]:{boxShadow:Me.boxShadowDrawerLeft},[`&${mt}-right`]:{boxShadow:Me.boxShadowDrawerRight},[`&${mt}-top`]:{boxShadow:Me.boxShadowDrawerUp},[`&${mt}-bottom`]:{boxShadow:Me.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${mt}-mask`]:{position:"absolute",inset:0,zIndex:It,background:xt,pointerEvents:"auto"},[sn]:{position:"absolute",zIndex:It,maxWidth:"100vw",transition:`all ${Kt}`,"&-hidden":{display:"none"}},[`&-left > ${sn}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:Me.boxShadowDrawerLeft},[`&-right > ${sn}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:Me.boxShadowDrawerRight},[`&-top > ${sn}`]:{top:0,insetInline:0,boxShadow:Me.boxShadowDrawerUp},[`&-bottom > ${sn}`]:{bottom:0,insetInline:0,boxShadow:Me.boxShadowDrawerDown},[`${mt}-content`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"auto",background:Xt,pointerEvents:"auto"},[`${mt}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${(0,Dt.unit)(Zt)} ${(0,Dt.unit)(ln)}`,fontSize:St,lineHeight:qt,borderBottom:`${(0,Dt.unit)(Wt)} ${Oe} ${tt}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${mt}-extra`]:{flex:"none"},[`${mt}-close`]:Object.assign({display:"inline-flex",width:Sn(St).add(_t).equal(),height:Sn(St).add(_t).equal(),borderRadius:Ye,justifyContent:"center",alignItems:"center",marginInlineEnd:Tt,color:zt,fontWeight:Gt,fontSize:St,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,cursor:"pointer",transition:`all ${jt}`,textRendering:"auto","&:hover":{color:Ie,backgroundColor:Xe,textDecoration:"none"},"&:active":{backgroundColor:ft}},(0,We.Qy)(Me)),[`${mt}-title`]:{flex:1,margin:0,fontWeight:Me.fontWeightStrong,fontSize:St,lineHeight:qt},[`${mt}-body`]:{flex:1,minWidth:0,minHeight:0,padding:ln,overflow:"auto",[`${mt}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center"}},[`${mt}-footer`]:{flexShrink:0,padding:`${(0,Dt.unit)(cn)} ${(0,Dt.unit)(En)}`,borderTop:`${(0,Dt.unit)(Wt)} ${Oe} ${tt}`},"&-rtl":{direction:"rtl"}}}},te=Me=>({zIndexPopup:Me.zIndexPopupBase,footerPaddingBlock:Me.paddingXS,footerPaddingInline:Me.padding});var ee=(0,ot.I$)("Drawer",Me=>{const Ye=(0,dt.mergeToken)(Me,{});return[ae(Ye),st(Ye)]},te),oe=function(Me,Ye){var mt={};for(var It in Me)Object.prototype.hasOwnProperty.call(Me,It)&&Ye.indexOf(It)<0&&(mt[It]=Me[It]);if(Me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var xt=0,It=Object.getOwnPropertySymbols(Me);xt<It.length;xt++)Ye.indexOf(It[xt])<0&&Object.prototype.propertyIsEnumerable.call(Me,It[xt])&&(mt[It[xt]]=Me[It[xt]]);return mt};const se=null,re={distance:180},he=Me=>{var Ye;const{rootClassName:mt,width:It,height:xt,size:Xt="default",mask:Kt=!0,push:jt=re,open:_t,afterOpenChange:Zt,onClose:ln,prefixCls:St,getContainer:qt,style:Wt,className:Oe,visible:tt,afterVisibleChange:Tt,maskStyle:zt,drawerStyle:Ie,contentWrapperStyle:Xe}=Me,ft=oe(Me,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange","maskStyle","drawerStyle","contentWrapperStyle"]),{getPopupContainer:Mt,getPrefixCls:Gt,direction:cn,className:En,style:Sn,classNames:sn,styles:yn}=(0,Nt.dj)("drawer"),gn=Gt("drawer",St),[zn,bn,vn]=ee(gn),un=qt===void 0&&Mt?()=>Mt(document.body):qt,On=ge()({"no-mask":!Kt,[`${gn}-rtl`]:cn==="rtl"},mt,bn,vn),mn=z.useMemo(()=>It!=null?It:Xt==="large"?736:378,[It,Xt]),Dn=z.useMemo(()=>xt!=null?xt:Xt==="large"?736:378,[xt,Xt]),Wn={motionName:(0,At.m)(gn,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},Zn=Bt=>({motionName:(0,At.m)(gn,`panel-motion-${Bt}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),An=(0,on.H)(),[Xn,Nn]=(0,pe.Cn)("Drawer",ft.zIndex),{classNames:ar={},styles:qn={}}=ft;return zn(z.createElement(ut.Z,{form:!0,space:!0},z.createElement(Be.Z.Provider,{value:Nn},z.createElement(gt,Object.assign({prefixCls:gn,onClose:ln,maskMotion:Wn,motion:Zn},ft,{classNames:{mask:ge()(ar.mask,sn.mask),content:ge()(ar.content,sn.content),wrapper:ge()(ar.wrapper,sn.wrapper)},styles:{mask:Object.assign(Object.assign(Object.assign({},qn.mask),zt),yn.mask),content:Object.assign(Object.assign(Object.assign({},qn.content),Ie),yn.content),wrapper:Object.assign(Object.assign(Object.assign({},qn.wrapper),Xe),yn.wrapper)},open:_t!=null?_t:tt,mask:Kt,push:jt,width:mn,height:Dn,style:Object.assign(Object.assign({},Sn),Wt),className:ge()(En,Oe),rootClassName:On,getContainer:un,afterOpenChange:Zt!=null?Zt:Tt,panelRef:An,zIndex:Xn}),z.createElement(Jt,Object.assign({prefixCls:gn},ft,{onClose:ln}))))))},be=Me=>{const{prefixCls:Ye,style:mt,className:It,placement:xt="right"}=Me,Xt=oe(Me,["prefixCls","style","className","placement"]),{getPrefixCls:Kt}=z.useContext(Nt.E_),jt=Kt("drawer",Ye),[_t,Zt,ln]=ee(jt),St=ge()(jt,`${jt}-pure`,`${jt}-${xt}`,Zt,ln,It);return _t(z.createElement("div",{className:St,style:mt},z.createElement(Jt,Object.assign({prefixCls:jt},Xt))))};he._InternalPanelDoNotUseOrYouWillBeFired=be;var ht=he},584:function(rn,Ft,ie){"use strict";ie.d(Ft,{Z:function(){return Pt}});var z=ie(59301),Ke=ie(92310),ge=ie.n(Ke),Ze=ie(9017),xe=ie(17835),Se=ie(57700),Ue=()=>{const[,bt]=(0,Se.ZP)(),[pt]=(0,Ze.Z)("Empty"),_e=new xe.FastColor(bt.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return z.createElement("svg",{style:_e,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},z.createElement("title",null,(pt==null?void 0:pt.description)||"Empty"),z.createElement("g",{fill:"none",fillRule:"evenodd"},z.createElement("g",{transform:"translate(24 31.67)"},z.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),z.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),z.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),z.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),z.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),z.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),z.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},z.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),z.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},de=()=>{const[,bt]=(0,Se.ZP)(),[pt]=(0,Ze.Z)("Empty"),{colorFill:lt,colorFillTertiary:_e,colorFillQuaternary:kt,colorBgContainer:nt}=bt,{borderColor:it,shadowColor:Ct,contentColor:ze}=(0,z.useMemo)(()=>({borderColor:new xe.FastColor(lt).onBackground(nt).toHexString(),shadowColor:new xe.FastColor(_e).onBackground(nt).toHexString(),contentColor:new xe.FastColor(kt).onBackground(nt).toHexString()}),[lt,_e,kt,nt]);return z.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},z.createElement("title",null,(pt==null?void 0:pt.description)||"Empty"),z.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},z.createElement("ellipse",{fill:Ct,cx:"32",cy:"33",rx:"32",ry:"7"}),z.createElement("g",{fillRule:"nonzero",stroke:it},z.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),z.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:ze}))))},He=ie(16931),ye=ie(51636);const vt=bt=>{const{componentCls:pt,margin:lt,marginXS:_e,marginXL:kt,fontSize:nt,lineHeight:it}=bt;return{[pt]:{marginInline:_e,fontSize:nt,lineHeight:it,textAlign:"center",[`${pt}-image`]:{height:bt.emptyImgHeight,marginBottom:_e,opacity:bt.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${pt}-description`]:{color:bt.colorTextDescription},[`${pt}-footer`]:{marginTop:lt},"&-normal":{marginBlock:kt,color:bt.colorTextDescription,[`${pt}-description`]:{color:bt.colorTextDescription},[`${pt}-image`]:{height:bt.emptyImgHeightMD}},"&-small":{marginBlock:_e,color:bt.colorTextDescription,[`${pt}-image`]:{height:bt.emptyImgHeightSM}}}}};var je=(0,He.I$)("Empty",bt=>{const{componentCls:pt,controlHeightLG:lt,calc:_e}=bt,kt=(0,ye.mergeToken)(bt,{emptyImgCls:`${pt}-img`,emptyImgHeight:_e(lt).mul(2.5).equal(),emptyImgHeightMD:lt,emptyImgHeightSM:_e(lt).mul(.875).equal()});return[vt(kt)]}),Te=ie(48755),ke=function(bt,pt){var lt={};for(var _e in bt)Object.prototype.hasOwnProperty.call(bt,_e)&&pt.indexOf(_e)<0&&(lt[_e]=bt[_e]);if(bt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var kt=0,_e=Object.getOwnPropertySymbols(bt);kt<_e.length;kt++)pt.indexOf(_e[kt])<0&&Object.prototype.propertyIsEnumerable.call(bt,_e[kt])&&(lt[_e[kt]]=bt[_e[kt]]);return lt};const Ne=z.createElement(Ue,null),yt=z.createElement(de,null),wt=bt=>{const{className:pt,rootClassName:lt,prefixCls:_e,image:kt=Ne,description:nt,children:it,imageStyle:Ct,style:ze,classNames:gt,styles:ut}=bt,pe=ke(bt,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:At,direction:Be,className:Nt,style:on,classNames:Ee,styles:fe}=(0,Te.dj)("empty"),Et=At("empty",_e),[Jt,Dt,We]=je(Et),[ot]=(0,Ze.Z)("Empty"),dt=typeof nt!="undefined"?nt:ot==null?void 0:ot.description,$t=typeof dt=="string"?dt:"empty";let Lt=null;return typeof kt=="string"?Lt=z.createElement("img",{alt:$t,src:kt}):Lt=kt,Jt(z.createElement("div",Object.assign({className:ge()(Dt,We,Et,Nt,{[`${Et}-normal`]:kt===yt,[`${Et}-rtl`]:Be==="rtl"},pt,lt,Ee.root,gt==null?void 0:gt.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},fe.root),on),ut==null?void 0:ut.root),ze)},pe),z.createElement("div",{className:ge()(`${Et}-image`,Ee.image,gt==null?void 0:gt.image),style:Object.assign(Object.assign(Object.assign({},Ct),fe.image),ut==null?void 0:ut.image)},Lt),dt&&z.createElement("div",{className:ge()(`${Et}-description`,Ee.description,gt==null?void 0:gt.description),style:Object.assign(Object.assign({},fe.description),ut==null?void 0:ut.description)},dt),it&&z.createElement("div",{className:ge()(`${Et}-footer`,Ee.footer,gt==null?void 0:gt.footer),style:Object.assign(Object.assign({},fe.footer),ut==null?void 0:ut.footer)},it)))};wt.PRESENTED_IMAGE_DEFAULT=Ne,wt.PRESENTED_IMAGE_SIMPLE=yt;var Pt=wt},28284:function(rn,Ft,ie){"use strict";ie.d(Ft,{default:function(){return et}});var z=ie(56553),Ke=ie(94480),ge=ie(59301),Ze=ie(92310),xe=ie.n(Ze),Se=ie(77900),De=ie(86641),Ue=ie(83397);function Pe(Ce){const[Le,we]=ge.useState(Ce);return ge.useEffect(()=>{const Re=setTimeout(()=>{we(Ce)},Ce.length?0:10);return()=>{clearTimeout(Re)}},[Ce]),Le}var de=ie(36237),He=ie(63356),ye=ie(34925),vt=ie(34961),je=ie(51636),Te=ie(16931),Ne=Ce=>{const{componentCls:Le}=Ce,we=`${Le}-show-help`,Re=`${Le}-show-help-item`;return{[we]:{transition:`opacity ${Ce.motionDurationFast} ${Ce.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[Re]:{overflow:"hidden",transition:`height ${Ce.motionDurationFast} ${Ce.motionEaseInOut},
opacity ${Ce.motionDurationFast} ${Ce.motionEaseInOut},
transform ${Ce.motionDurationFast} ${Ce.motionEaseInOut} !important`,[`&${Re}-appear, &${Re}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${Re}-leave-active`]:{transform:"translateY(-5px)"}}}}};const yt=Ce=>({legend:{display:"block",width:"100%",marginBottom:Ce.marginLG,padding:0,color:Ce.colorTextDescription,fontSize:Ce.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${(0,de.unit)(Ce.lineWidth)} ${Ce.lineType} ${Ce.colorBorder}`},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${(0,de.unit)(Ce.controlOutlineWidth)} ${Ce.controlOutline}`},output:{display:"block",paddingTop:15,color:Ce.colorText,fontSize:Ce.fontSize,lineHeight:Ce.lineHeight}}),wt=(Ce,Le)=>{const{formItemCls:we}=Ce;return{[we]:{[`${we}-label > label`]:{height:Le},[`${we}-control-input`]:{minHeight:Le}}}},Pt=Ce=>{const{componentCls:Le}=Ce;return{[Ce.componentCls]:Object.assign(Object.assign(Object.assign({},(0,He.Wf)(Ce)),yt(Ce)),{[`${Le}-text`]:{display:"inline-block",paddingInlineEnd:Ce.paddingSM},"&-small":Object.assign({},wt(Ce,Ce.controlHeightSM)),"&-large":Object.assign({},wt(Ce,Ce.controlHeightLG))})}},bt=Ce=>{const{formItemCls:Le,iconCls:we,rootPrefixCls:Re,antCls:ve,labelRequiredMarkColor:Ve,labelColor:Je,labelFontSize:ct,labelHeight:Qe,labelColonMarginInlineStart:Fe,labelColonMarginInlineEnd:$e,itemMarginBottom:qe}=Ce;return{[Le]:Object.assign(Object.assign({},(0,He.Wf)(Ce)),{marginBottom:qe,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
&-hidden${ve}-row`]:{display:"none"},"&-has-warning":{[`${Le}-split`]:{color:Ce.colorError}},"&-has-error":{[`${Le}-split`]:{color:Ce.colorWarning}},[`${Le}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:Ce.lineHeight,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:Qe,color:Je,fontSize:ct,[`> ${we}`]:{fontSize:Ce.fontSize,verticalAlign:"top"},[`&${Le}-required`]:{"&::before":{display:"inline-block",marginInlineEnd:Ce.marginXXS,color:Ve,fontSize:Ce.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"'},[`&${Le}-required-mark-hidden, &${Le}-required-mark-optional`]:{"&::before":{display:"none"}}},[`${Le}-optional`]:{display:"inline-block",marginInlineStart:Ce.marginXXS,color:Ce.colorTextDescription,[`&${Le}-required-mark-hidden`]:{display:"none"}},[`${Le}-tooltip`]:{color:Ce.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:Ce.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:Fe,marginInlineEnd:$e},[`&${Le}-no-colon::after`]:{content:'"\\a0"'}}},[`${Le}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${Re}-col-'"]):not([class*="' ${Re}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:Ce.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[Le]:{"&-additional":{display:"flex",flexDirection:"column"},"&-explain, &-extra":{clear:"both",color:Ce.colorTextDescription,fontSize:Ce.fontSize,lineHeight:Ce.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:Ce.controlHeightSM,transition:`color ${Ce.motionDurationMid} ${Ce.motionEaseOut}`},"&-explain":{"&-error":{color:Ce.colorError},"&-warning":{color:Ce.colorWarning}}},[`&-with-help ${Le}-explain`]:{height:"auto",opacity:1},[`${Le}-feedback-icon`]:{fontSize:Ce.fontSize,textAlign:"center",visibility:"visible",animationName:ye.kr,animationDuration:Ce.motionDurationMid,animationTimingFunction:Ce.motionEaseOutBack,pointerEvents:"none","&-success":{color:Ce.colorSuccess},"&-error":{color:Ce.colorError},"&-warning":{color:Ce.colorWarning},"&-validating":{color:Ce.colorPrimary}}})}},pt=(Ce,Le)=>{const{formItemCls:we}=Ce;return{[`${Le}-horizontal`]:{[`${we}-label`]:{flexGrow:0},[`${we}-control`]:{flex:"1 1 0",minWidth:0},[`${we}-label[class$='-24'], ${we}-label[class*='-24 ']`]:{[`& + ${we}-control`]:{minWidth:"unset"}}}}},lt=Ce=>{const{componentCls:Le,formItemCls:we,inlineItemMarginBottom:Re}=Ce;return{[`${Le}-inline`]:{display:"flex",flexWrap:"wrap",[we]:{flex:"none",marginInlineEnd:Ce.margin,marginBottom:Re,"&-row":{flexWrap:"nowrap"},[`> ${we}-label,
> ${we}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${we}-label`]:{flex:"none"},[`${Le}-text`]:{display:"inline-block"},[`${we}-has-feedback`]:{display:"inline-block"}}}}},_e=Ce=>({padding:Ce.verticalLabelPadding,margin:Ce.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),kt=Ce=>{const{componentCls:Le,formItemCls:we,rootPrefixCls:Re}=Ce;return{[`${we} ${we}-label`]:_e(Ce),[`${Le}:not(${Le}-inline)`]:{[we]:{flexWrap:"wrap",[`${we}-label, ${we}-control`]:{[`&:not([class*=" ${Re}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},nt=Ce=>{const{componentCls:Le,formItemCls:we,antCls:Re}=Ce;return{[`${Le}-vertical`]:{[`${we}:not(${we}-horizontal)`]:{[`${we}-row`]:{flexDirection:"column"},[`${we}-label > label`]:{height:"auto"},[`${we}-control`]:{width:"100%"},[`${we}-label,
${Re}-col-24${we}-label,
${Re}-col-xl-24${we}-label`]:_e(Ce)}},[`@media (max-width: ${(0,de.unit)(Ce.screenXSMax)})`]:[kt(Ce),{[Le]:{[`${we}:not(${we}-horizontal)`]:{[`${Re}-col-xs-24${we}-label`]:_e(Ce)}}}],[`@media (max-width: ${(0,de.unit)(Ce.screenSMMax)})`]:{[Le]:{[`${we}:not(${we}-horizontal)`]:{[`${Re}-col-sm-24${we}-label`]:_e(Ce)}}},[`@media (max-width: ${(0,de.unit)(Ce.screenMDMax)})`]:{[Le]:{[`${we}:not(${we}-horizontal)`]:{[`${Re}-col-md-24${we}-label`]:_e(Ce)}}},[`@media (max-width: ${(0,de.unit)(Ce.screenLGMax)})`]:{[Le]:{[`${we}:not(${we}-horizontal)`]:{[`${Re}-col-lg-24${we}-label`]:_e(Ce)}}}}},it=Ce=>{const{formItemCls:Le,antCls:we}=Ce;return{[`${Le}-vertical`]:{[`${Le}-row`]:{flexDirection:"column"},[`${Le}-label > label`]:{height:"auto"},[`${Le}-control`]:{width:"100%"}},[`${Le}-vertical ${Le}-label,
${we}-col-24${Le}-label,
${we}-col-xl-24${Le}-label`]:_e(Ce),[`@media (max-width: ${(0,de.unit)(Ce.screenXSMax)})`]:[kt(Ce),{[Le]:{[`${we}-col-xs-24${Le}-label`]:_e(Ce)}}],[`@media (max-width: ${(0,de.unit)(Ce.screenSMMax)})`]:{[Le]:{[`${we}-col-sm-24${Le}-label`]:_e(Ce)}},[`@media (max-width: ${(0,de.unit)(Ce.screenMDMax)})`]:{[Le]:{[`${we}-col-md-24${Le}-label`]:_e(Ce)}},[`@media (max-width: ${(0,de.unit)(Ce.screenLGMax)})`]:{[Le]:{[`${we}-col-lg-24${Le}-label`]:_e(Ce)}}}},Ct=Ce=>({labelRequiredMarkColor:Ce.colorError,labelColor:Ce.colorTextHeading,labelFontSize:Ce.fontSize,labelHeight:Ce.controlHeight,labelColonMarginInlineStart:Ce.marginXXS/2,labelColonMarginInlineEnd:Ce.marginXS,itemMarginBottom:Ce.marginLG,verticalLabelPadding:`0 0 ${Ce.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),ze=(Ce,Le)=>(0,je.mergeToken)(Ce,{formItemCls:`${Ce.componentCls}-item`,rootPrefixCls:Le});var gt=(0,Te.I$)("Form",(Ce,Le)=>{let{rootPrefixCls:we}=Le;const Re=ze(Ce,we);return[Pt(Re),bt(Re),Ne(Re),pt(Re,Re.componentCls),pt(Re,Re.formItemCls),lt(Re),nt(Re),it(Re),(0,vt.Z)(Re),ye.kr]},Ct,{order:-1e3});const ut=[];function pe(Ce,Le,we){let Re=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof Ce=="string"?Ce:`${Le}-${Re}`,error:Ce,errorStatus:we}}var Be=Ce=>{let{help:Le,helpStatus:we,errors:Re=ut,warnings:ve=ut,className:Ve,fieldId:Je,onVisibleChanged:ct}=Ce;const{prefixCls:Qe}=ge.useContext(z.Rk),Fe=`${Qe}-item-explain`,$e=(0,Ue.Z)(Qe),[qe,Qt,Ut]=gt(Qe,$e),Yt=ge.useMemo(()=>(0,De.Z)(Qe),[Qe]),kn=Pe(Re),Ln=Pe(ve),Hn=ge.useMemo(()=>Le!=null?[pe(Le,"help",we)]:[].concat((0,Ke.Z)(kn.map((Pn,Fn)=>pe(Pn,"error","error",Fn))),(0,Ke.Z)(Ln.map((Pn,Fn)=>pe(Pn,"warning","warning",Fn)))),[Le,we,kn,Ln]),Mn=ge.useMemo(()=>{const Pn={};return Hn.forEach(Fn=>{let{key:Yn}=Fn;Pn[Yn]=(Pn[Yn]||0)+1}),Hn.map((Fn,Yn)=>Object.assign(Object.assign({},Fn),{key:Pn[Fn.key]>1?`${Fn.key}-fallback-${Yn}`:Fn.key}))},[Hn]),xn={};return Je&&(xn.id=`${Je}_help`),qe(ge.createElement(Se.default,{motionDeadline:Yt.motionDeadline,motionName:`${Qe}-show-help`,visible:!!Mn.length,onVisibleChanged:ct},Pn=>{const{className:Fn,style:Yn}=Pn;return ge.createElement("div",Object.assign({},xn,{className:xe()(Fe,Fn,Ut,$e,Ve,Qt),style:Yn}),ge.createElement(Se.CSSMotionList,Object.assign({keys:Mn},(0,De.Z)(Qe),{motionName:`${Qe}-show-help-item`,component:!1}),Un=>{const{key:Kn,error:Cn,errorStatus:er,className:jn,style:dr}=Un;return ge.createElement("div",{key:Kn,className:xe()(jn,{[`${Fe}-${er}`]:er}),style:dr},Cn)}))}))},Nt=ie(22001),on=ie(48755),Ee=ie(2171),fe=ie(31756),Et=ie(23069),Jt=ie(76846),Dt=ie(16722);const We=["parentNode"],ot="form_item";function dt(Ce){return Ce===void 0||Ce===!1?[]:Array.isArray(Ce)?Ce:[Ce]}function $t(Ce,Le){if(!Ce.length)return;const we=Ce.join("_");return Le?`${Le}_${we}`:We.includes(we)?`${ot}_${we}`:we}function Lt(Ce,Le,we,Re,ve,Ve){let Je=Re;return Ve!==void 0?Je=Ve:we.validating?Je="validating":Ce.length?Je="error":Le.length?Je="warning":(we.touched||ve&&we.validated)&&(Je="success"),Je}var Vt=function(Ce,Le){var we={};for(var Re in Ce)Object.prototype.hasOwnProperty.call(Ce,Re)&&Le.indexOf(Re)<0&&(we[Re]=Ce[Re]);if(Ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ve=0,Re=Object.getOwnPropertySymbols(Ce);ve<Re.length;ve++)Le.indexOf(Re[ve])<0&&Object.prototype.propertyIsEnumerable.call(Ce,Re[ve])&&(we[Re[ve]]=Ce[Re[ve]]);return we};function rt(Ce){return dt(Ce).join("_")}function Ht(Ce,Le){const we=Le.getFieldInstance(Ce),Re=(0,Jt.bn)(we);if(Re)return Re;const ve=$t(dt(Ce),Le.__INTERNAL__.name);if(ve)return document.getElementById(ve)}function st(Ce){const[Le]=(0,Nt.useForm)(),we=ge.useRef({}),Re=ge.useMemo(()=>Ce!=null?Ce:Object.assign(Object.assign({},Le),{__INTERNAL__:{itemRef:ve=>Ve=>{const Je=rt(ve);Ve?we.current[Je]=Ve:delete we.current[Je]}},scrollToField:function(ve){let Ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{focus:Je}=Ve,ct=Vt(Ve,["focus"]),Qe=Ht(ve,Re);Qe&&((0,Dt.Z)(Qe,Object.assign({scrollMode:"if-needed",block:"nearest"},ct)),Je&&Re.focusField(ve))},focusField:ve=>{var Ve,Je;const ct=Re.getFieldInstance(ve);typeof(ct==null?void 0:ct.focus)=="function"?ct.focus():(Je=(Ve=Ht(ve,Re))===null||Ve===void 0?void 0:Ve.focus)===null||Je===void 0||Je.call(Ve)},getFieldInstance:ve=>{const Ve=rt(ve);return we.current[Ve]}}),[Ce,Le]);return[Re]}var ae=ie(98350),te=function(Ce,Le){var we={};for(var Re in Ce)Object.prototype.hasOwnProperty.call(Ce,Re)&&Le.indexOf(Re)<0&&(we[Re]=Ce[Re]);if(Ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ve=0,Re=Object.getOwnPropertySymbols(Ce);ve<Re.length;ve++)Le.indexOf(Re[ve])<0&&Object.prototype.propertyIsEnumerable.call(Ce,Re[ve])&&(we[Re[ve]]=Ce[Re[ve]]);return we};const ee=(Ce,Le)=>{const we=ge.useContext(Ee.Z),{getPrefixCls:Re,direction:ve,requiredMark:Ve,colon:Je,scrollToFirstError:ct,className:Qe,style:Fe}=(0,on.dj)("form"),{prefixCls:$e,className:qe,rootClassName:Qt,size:Ut,disabled:Yt=we,form:kn,colon:Ln,labelAlign:Hn,labelWrap:Mn,labelCol:xn,wrapperCol:Pn,hideRequiredMark:Fn,layout:Yn="horizontal",scrollToFirstError:Un,requiredMark:Kn,onFinishFailed:Cn,name:er,style:jn,feedbackIcons:dr,variant:pr}=Ce,sr=te(Ce,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),ur=(0,fe.Z)(Ut),yr=ge.useContext(ae.Z),lr=ge.useMemo(()=>Kn!==void 0?Kn:Fn?!1:Ve!==void 0?Ve:!0,[Fn,Kn,Ve]),fr=Ln!=null?Ln:Je,Qn=Re("form",$e),mr=(0,Ue.Z)(Qn),[br,zr,Er]=gt(Qn,mr),Br=xe()(Qn,`${Qn}-${Yn}`,{[`${Qn}-hide-required-mark`]:lr===!1,[`${Qn}-rtl`]:ve==="rtl",[`${Qn}-${ur}`]:ur},Er,mr,zr,Qe,qe,Qt),[Ir]=st(kn),{__INTERNAL__:Or}=Ir;Or.name=er;const ir=ge.useMemo(()=>({name:er,labelAlign:Hn,labelCol:xn,labelWrap:Mn,wrapperCol:Pn,vertical:Yn==="vertical",colon:fr,requiredMark:lr,itemRef:Or.itemRef,form:Ir,feedbackIcons:dr}),[er,Hn,xn,Pn,Yn,fr,lr,Ir,dr]),rr=ge.useRef(null);ge.useImperativeHandle(Le,()=>{var pn;return Object.assign(Object.assign({},Ir),{nativeElement:(pn=rr.current)===null||pn===void 0?void 0:pn.nativeElement})});const Jn=(pn,hn)=>{if(pn){let en={block:"nearest"};typeof pn=="object"&&(en=Object.assign(Object.assign({},en),pn)),Ir.scrollToField(hn,en)}},an=pn=>{if(Cn==null||Cn(pn),pn.errorFields.length){const hn=pn.errorFields[0].name;if(Un!==void 0){Jn(Un,hn);return}ct!==void 0&&Jn(ct,hn)}};return br(ge.createElement(z.pg.Provider,{value:pr},ge.createElement(Ee.n,{disabled:Yt},ge.createElement(Et.Z.Provider,{value:ur},ge.createElement(z.RV,{validateMessages:yr},ge.createElement(z.q3.Provider,{value:ir},ge.createElement(Nt.default,Object.assign({id:er},sr,{name:er,onFinishFailed:an,form:Ir,ref:rr,style:Object.assign(Object.assign({},Fe),jn),className:Br}))))))))};var se=ge.forwardRef(ee),re=ie(41799),he=ie(8654),be=ie(22703),ht=ie(32383),Me=ie(11592);function Ye(Ce){if(typeof Ce=="function")return Ce;const Le=(0,Me.Z)(Ce);return Le.length<=1?Le[0]:Le}const mt=()=>{const{status:Ce,errors:Le=[],warnings:we=[]}=ge.useContext(z.aM);return{status:Ce,errors:Le,warnings:we}};mt.Context=z.aM;var It=mt,xt=ie(16089);function Xt(Ce){const[Le,we]=ge.useState(Ce),Re=ge.useRef(null),ve=ge.useRef([]),Ve=ge.useRef(!1);ge.useEffect(()=>(Ve.current=!1,()=>{Ve.current=!0,xt.Z.cancel(Re.current),Re.current=null}),[]);function Je(ct){Ve.current||(Re.current===null&&(ve.current=[],Re.current=(0,xt.Z)(()=>{Re.current=null,we(Qe=>{let Fe=Qe;return ve.current.forEach($e=>{Fe=$e(Fe)}),Fe})})),ve.current.push(ct))}return[Le,Je]}function Kt(){const{itemRef:Ce}=ge.useContext(z.q3),Le=ge.useRef({});function we(Re,ve){const Ve=ve&&typeof ve=="object"&&(0,he.C4)(ve),Je=Re.join("_");return(Le.current.name!==Je||Le.current.originRef!==Ve)&&(Le.current.name=Je,Le.current.originRef=Ve,Le.current.ref=(0,he.sQ)(Ce(Re),Ve)),Le.current.ref}return we}var jt=ie(29194),_t=ie(34280),Zt=ie(2738),ln=ie(65970),St=ie(70425),qt=ie(5472);const Wt=Ce=>{const{formItemCls:Le}=Ce;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${Le}-control`]:{display:"flex"}}}};var Oe=(0,Te.bk)(["Form","item-item"],(Ce,Le)=>{let{rootPrefixCls:we}=Le;const Re=ze(Ce,we);return[Wt(Re)]}),tt=function(Ce,Le){var we={};for(var Re in Ce)Object.prototype.hasOwnProperty.call(Ce,Re)&&Le.indexOf(Re)<0&&(we[Re]=Ce[Re]);if(Ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ve=0,Re=Object.getOwnPropertySymbols(Ce);ve<Re.length;ve++)Le.indexOf(Re[ve])<0&&Object.prototype.propertyIsEnumerable.call(Ce,Re[ve])&&(we[Re[ve]]=Ce[Re[ve]]);return we};const Tt=24;var Ie=Ce=>{const{prefixCls:Le,status:we,labelCol:Re,wrapperCol:ve,children:Ve,errors:Je,warnings:ct,_internalItemRender:Qe,extra:Fe,help:$e,fieldId:qe,marginBottom:Qt,onErrorVisibleChanged:Ut,label:Yt}=Ce,kn=`${Le}-item`,Ln=ge.useContext(z.q3),Hn=ge.useMemo(()=>{let sr=Object.assign({},ve||Ln.wrapperCol||{});return Yt===null&&!Re&&!ve&&Ln.labelCol&&[void 0,"xs","sm","md","lg","xl","xxl"].forEach(yr=>{const lr=yr?[yr]:[],fr=(0,St.U2)(Ln.labelCol,lr),Qn=typeof fr=="object"?fr:{},mr=(0,St.U2)(sr,lr),br=typeof mr=="object"?mr:{};"span"in Qn&&!("offset"in br)&&Qn.span<Tt&&(sr=(0,St.t8)(sr,[].concat(lr,["offset"]),Qn.span))}),sr},[ve,Ln]),Mn=xe()(`${kn}-control`,Hn.className),xn=ge.useMemo(()=>{const{labelCol:sr,wrapperCol:ur}=Ln;return tt(Ln,["labelCol","wrapperCol"])},[Ln]),Pn=ge.useRef(null),[Fn,Yn]=ge.useState(0);(0,_t.Z)(()=>{Fe&&Pn.current?Yn(Pn.current.clientHeight):Yn(0)},[Fe]);const Un=ge.createElement("div",{className:`${kn}-control-input`},ge.createElement("div",{className:`${kn}-control-input-content`},Ve)),Kn=ge.useMemo(()=>({prefixCls:Le,status:we}),[Le,we]),Cn=Qt!==null||Je.length||ct.length?ge.createElement(z.Rk.Provider,{value:Kn},ge.createElement(Be,{fieldId:qe,errors:Je,warnings:ct,help:$e,helpStatus:we,className:`${kn}-explain-connected`,onVisibleChanged:Ut})):null,er={};qe&&(er.id=`${qe}_extra`);const jn=Fe?ge.createElement("div",Object.assign({},er,{className:`${kn}-extra`,ref:Pn}),Fe):null,dr=Cn||jn?ge.createElement("div",{className:`${kn}-additional`,style:Qt?{minHeight:Qt+Fn}:{}},Cn,jn):null,pr=Qe&&Qe.mark==="pro_table_render"&&Qe.render?Qe.render(Ce,{input:Un,errorList:Cn,extra:jn}):ge.createElement(ge.Fragment,null,Un,dr);return ge.createElement(z.q3.Provider,{value:xn},ge.createElement(qt.Z,Object.assign({},Hn,{className:Mn}),pr),ge.createElement(Oe,{prefixCls:Le}))},Xe=ie(61485),ft=ie(9017),Mt=ie(85981),Gt=ie(25399),cn=function(Ce,Le){var we={};for(var Re in Ce)Object.prototype.hasOwnProperty.call(Ce,Re)&&Le.indexOf(Re)<0&&(we[Re]=Ce[Re]);if(Ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ve=0,Re=Object.getOwnPropertySymbols(Ce);ve<Re.length;ve++)Le.indexOf(Re[ve])<0&&Object.prototype.propertyIsEnumerable.call(Ce,Re[ve])&&(we[Re[ve]]=Ce[Re[ve]]);return we};function En(Ce){return Ce?typeof Ce=="object"&&!ge.isValidElement(Ce)?Ce:{title:Ce}:null}var sn=Ce=>{let{prefixCls:Le,label:we,htmlFor:Re,labelCol:ve,labelAlign:Ve,colon:Je,required:ct,requiredMark:Qe,tooltip:Fe,vertical:$e}=Ce;var qe;const[Qt]=(0,ft.Z)("Form"),{labelAlign:Ut,labelCol:Yt,labelWrap:kn,colon:Ln}=ge.useContext(z.q3);if(!we)return null;const Hn=ve||Yt||{},Mn=Ve||Ut,xn=`${Le}-item-label`,Pn=xe()(xn,Mn==="left"&&`${xn}-left`,Hn.className,{[`${xn}-wrap`]:!!kn});let Fn=we;const Yn=Je===!0||Ln!==!1&&Je!==!1;Yn&&!$e&&typeof we=="string"&&we.trim()&&(Fn=we.replace(/[:|]\s*$/,""));const Kn=En(Fe);if(Kn){const{icon:sr=ge.createElement(Xe.Z,null)}=Kn,ur=cn(Kn,["icon"]),yr=ge.createElement(Gt.Z,Object.assign({},ur),ge.cloneElement(sr,{className:`${Le}-item-tooltip`,title:"",onClick:lr=>{lr.preventDefault()},tabIndex:null}));Fn=ge.createElement(ge.Fragment,null,Fn,yr)}const Cn=Qe==="optional",er=typeof Qe=="function",jn=Qe===!1;er?Fn=Qe(Fn,{required:!!ct}):Cn&&!ct&&(Fn=ge.createElement(ge.Fragment,null,Fn,ge.createElement("span",{className:`${Le}-item-optional`,title:""},(Qt==null?void 0:Qt.optional)||((qe=Mt.Z.Form)===null||qe===void 0?void 0:qe.optional))));let dr;jn?dr="hidden":(Cn||er)&&(dr="optional");const pr=xe()({[`${Le}-item-required`]:ct,[`${Le}-item-required-mark-${dr}`]:dr,[`${Le}-item-no-colon`]:!Yn});return ge.createElement(qt.Z,Object.assign({},Hn,{className:Pn}),ge.createElement("label",{htmlFor:Re,className:pr,title:typeof we=="string"?we:""},Fn))},yn=ie(29679),gn=ie(19248),zn=ie(96512),bn=ie(58617);const vn={success:yn.Z,warning:zn.Z,error:gn.Z,validating:bn.Z};function un(Ce){let{children:Le,errors:we,warnings:Re,hasFeedback:ve,validateStatus:Ve,prefixCls:Je,meta:ct,noStyle:Qe}=Ce;const Fe=`${Je}-item`,{feedbackIcons:$e}=ge.useContext(z.q3),qe=Lt(we,Re,ct,null,!!ve,Ve),{isFormItemInput:Qt,status:Ut,hasFeedback:Yt,feedbackIcon:kn}=ge.useContext(z.aM),Ln=ge.useMemo(()=>{var Hn;let Mn;if(ve){const Pn=ve!==!0&&ve.icons||$e,Fn=qe&&((Hn=Pn==null?void 0:Pn({status:qe,errors:we,warnings:Re}))===null||Hn===void 0?void 0:Hn[qe]),Yn=qe&&vn[qe];Mn=Fn!==!1&&Yn?ge.createElement("span",{className:xe()(`${Fe}-feedback-icon`,`${Fe}-feedback-icon-${qe}`)},Fn||ge.createElement(Yn,null)):null}const xn={status:qe||"",errors:we,warnings:Re,hasFeedback:!!ve,feedbackIcon:Mn,isFormItemInput:!0};return Qe&&(xn.status=(qe!=null?qe:Ut)||"",xn.isFormItemInput=Qt,xn.hasFeedback=!!(ve!=null?ve:Yt),xn.feedbackIcon=ve!==void 0?xn.feedbackIcon:kn),xn},[qe,ve,Qe,Qt,Ut]);return ge.createElement(z.aM.Provider,{value:Ln},Le)}var On=function(Ce,Le){var we={};for(var Re in Ce)Object.prototype.hasOwnProperty.call(Ce,Re)&&Le.indexOf(Re)<0&&(we[Re]=Ce[Re]);if(Ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ve=0,Re=Object.getOwnPropertySymbols(Ce);ve<Re.length;ve++)Le.indexOf(Re[ve])<0&&Object.prototype.propertyIsEnumerable.call(Ce,Re[ve])&&(we[Re[ve]]=Ce[Re[ve]]);return we};function mn(Ce){const{prefixCls:Le,className:we,rootClassName:Re,style:ve,help:Ve,errors:Je,warnings:ct,validateStatus:Qe,meta:Fe,hasFeedback:$e,hidden:qe,children:Qt,fieldId:Ut,required:Yt,isRequired:kn,onSubItemMetaChange:Ln,layout:Hn}=Ce,Mn=On(Ce,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange","layout"]),xn=`${Le}-item`,{requiredMark:Pn,vertical:Fn}=ge.useContext(z.q3),Yn=Fn||Hn==="vertical",Un=ge.useRef(null),Kn=Pe(Je),Cn=Pe(ct),er=Ve!=null,jn=!!(er||Je.length||ct.length),dr=!!Un.current&&(0,jt.Z)(Un.current),[pr,sr]=ge.useState(null);(0,_t.Z)(()=>{if(jn&&Un.current){const Qn=getComputedStyle(Un.current);sr(parseInt(Qn.marginBottom,10))}},[jn,dr]);const ur=Qn=>{Qn||sr(null)},lr=function(){let Qn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const mr=Qn?Kn:Fe.errors,br=Qn?Cn:Fe.warnings;return Lt(mr,br,Fe,"",!!$e,Qe)}(),fr=xe()(xn,we,Re,{[`${xn}-with-help`]:er||Kn.length||Cn.length,[`${xn}-has-feedback`]:lr&&$e,[`${xn}-has-success`]:lr==="success",[`${xn}-has-warning`]:lr==="warning",[`${xn}-has-error`]:lr==="error",[`${xn}-is-validating`]:lr==="validating",[`${xn}-hidden`]:qe,[`${xn}-${Hn}`]:Hn});return ge.createElement("div",{className:fr,style:ve,ref:Un},ge.createElement(ln.Z,Object.assign({className:`${xn}-row`},(0,Zt.Z)(Mn,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),ge.createElement(sn,Object.assign({htmlFor:Ut},Ce,{requiredMark:Pn,required:Yt!=null?Yt:kn,prefixCls:Le,vertical:Yn})),ge.createElement(Ie,Object.assign({},Ce,Fe,{errors:Kn,warnings:Cn,prefixCls:Le,status:lr,help:Ve,marginBottom:pr,onErrorVisibleChanged:ur}),ge.createElement(z.qI.Provider,{value:Ln},ge.createElement(un,{prefixCls:Le,meta:Fe,errors:Fe.errors,warnings:Fe.warnings,hasFeedback:$e,validateStatus:lr},Qt)))),!!pr&&ge.createElement("div",{className:`${xn}-margin-offset`,style:{marginBottom:-pr}}))}const Dn="__SPLIT__",Wn=null;function Zn(Ce,Le){const we=Object.keys(Ce),Re=Object.keys(Le);return we.length===Re.length&&we.every(ve=>{const Ve=Ce[ve],Je=Le[ve];return Ve===Je||typeof Ve=="function"||typeof Je=="function"})}const An=ge.memo(Ce=>{let{children:Le}=Ce;return Le},(Ce,Le)=>Zn(Ce.control,Le.control)&&Ce.update===Le.update&&Ce.childProps.length===Le.childProps.length&&Ce.childProps.every((we,Re)=>we===Le.childProps[Re]));function Xn(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function Nn(Ce){const{name:Le,noStyle:we,className:Re,dependencies:ve,prefixCls:Ve,shouldUpdate:Je,rules:ct,children:Qe,required:Fe,label:$e,messageVariables:qe,trigger:Qt="onChange",validateTrigger:Ut,hidden:Yt,help:kn,layout:Ln}=Ce,{getPrefixCls:Hn}=ge.useContext(on.E_),{name:Mn}=ge.useContext(z.q3),xn=Ye(Qe),Pn=typeof xn=="function",Fn=ge.useContext(z.qI),{validateTrigger:Yn}=ge.useContext(Nt.FieldContext),Un=Ut!==void 0?Ut:Yn,Kn=Le!=null,Cn=Hn("form",Ve),er=(0,Ue.Z)(Cn),[jn,dr,pr]=gt(Cn,er),sr=(0,ht.ln)("Form.Item"),ur=ge.useContext(Nt.ListContext),yr=ge.useRef(null),[lr,fr]=Xt({}),[Qn,mr]=(0,re.Z)(()=>Xn()),br=rr=>{const Jn=ur==null?void 0:ur.getKey(rr.name);if(mr(rr.destroy?Xn():rr,!0),we&&kn!==!1&&Fn){let an=rr.name;if(rr.destroy)an=yr.current||an;else if(Jn!==void 0){const[pn,hn]=Jn;an=[pn].concat((0,Ke.Z)(hn)),yr.current=an}Fn(rr,an)}},zr=(rr,Jn)=>{fr(an=>{const pn=Object.assign({},an),en=[].concat((0,Ke.Z)(rr.name.slice(0,-1)),(0,Ke.Z)(Jn)).join(Dn);return rr.destroy?delete pn[en]:pn[en]=rr,pn})},[Er,Br]=ge.useMemo(()=>{const rr=(0,Ke.Z)(Qn.errors),Jn=(0,Ke.Z)(Qn.warnings);return Object.values(lr).forEach(an=>{rr.push.apply(rr,(0,Ke.Z)(an.errors||[])),Jn.push.apply(Jn,(0,Ke.Z)(an.warnings||[]))}),[rr,Jn]},[lr,Qn.errors,Qn.warnings]),Ir=Kt();function Or(rr,Jn,an){return we&&!Yt?ge.createElement(un,{prefixCls:Cn,hasFeedback:Ce.hasFeedback,validateStatus:Ce.validateStatus,meta:Qn,errors:Er,warnings:Br,noStyle:!0},rr):ge.createElement(mn,Object.assign({key:"row"},Ce,{className:xe()(Re,pr,er,dr),prefixCls:Cn,fieldId:Jn,isRequired:an,errors:Er,warnings:Br,meta:Qn,onSubItemMetaChange:zr,layout:Ln}),rr)}if(!Kn&&!Pn&&!ve)return jn(Or(xn));let ir={};return typeof $e=="string"?ir.label=$e:Le&&(ir.label=String(Le)),qe&&(ir=Object.assign(Object.assign({},ir),qe)),jn(ge.createElement(Nt.Field,Object.assign({},Ce,{messageVariables:ir,trigger:Qt,validateTrigger:Un,onMetaChange:br}),(rr,Jn,an)=>{const pn=dt(Le).length&&Jn?Jn.name:[],hn=$t(pn,Mn),en=Fe!==void 0?Fe:!!(ct!=null&&ct.some(dn=>{if(dn&&typeof dn=="object"&&dn.required&&!dn.warningOnly)return!0;if(typeof dn=="function"){const tn=dn(an);return(tn==null?void 0:tn.required)&&!(tn!=null&&tn.warningOnly)}return!1})),Bn=Object.assign({},rr);let Gn=null;if(Array.isArray(xn)&&Kn)Gn=xn;else if(!(Pn&&(!(Je||ve)||Kn))){if(!(ve&&!Pn&&!Kn))if(ge.isValidElement(xn)){const dn=Object.assign(Object.assign({},xn.props),Bn);if(dn.id||(dn.id=hn),kn||Er.length>0||Br.length>0||Ce.extra){const Tn=[];(kn||Er.length>0)&&Tn.push(`${hn}_help`),Ce.extra&&Tn.push(`${hn}_extra`),dn["aria-describedby"]=Tn.join(" ")}Er.length>0&&(dn["aria-invalid"]="true"),en&&(dn["aria-required"]="true"),(0,he.Yr)(xn)&&(dn.ref=Ir(pn,xn)),new Set([].concat((0,Ke.Z)(dt(Qt)),(0,Ke.Z)(dt(Un)))).forEach(Tn=>{dn[Tn]=function(){for(var cr,Dr,Pr,Rr,Ar,Fr=arguments.length,Ur=new Array(Fr),Hr=0;Hr<Fr;Hr++)Ur[Hr]=arguments[Hr];(Pr=Bn[Tn])===null||Pr===void 0||(cr=Pr).call.apply(cr,[Bn].concat(Ur)),(Ar=(Rr=xn.props)[Tn])===null||Ar===void 0||(Dr=Ar).call.apply(Dr,[Rr].concat(Ur))}});const wn=[dn["aria-required"],dn["aria-invalid"],dn["aria-describedby"]];Gn=ge.createElement(An,{control:Bn,update:xn,childProps:wn},(0,be.Tm)(xn,dn))}else Pn&&(Je||ve)&&!Kn?Gn=xn(an):Gn=xn}return Or(Gn,hn,en)}))}const ar=Nn;ar.useStatus=It;var qn=ar,Bt=function(Ce,Le){var we={};for(var Re in Ce)Object.prototype.hasOwnProperty.call(Ce,Re)&&Le.indexOf(Re)<0&&(we[Re]=Ce[Re]);if(Ce!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ve=0,Re=Object.getOwnPropertySymbols(Ce);ve<Re.length;ve++)Le.indexOf(Re[ve])<0&&Object.prototype.propertyIsEnumerable.call(Ce,Re[ve])&&(we[Re[ve]]=Ce[Re[ve]]);return we},$n=Ce=>{var{prefixCls:Le,children:we}=Ce,Re=Bt(Ce,["prefixCls","children"]);const{getPrefixCls:ve}=ge.useContext(on.E_),Ve=ve("form",Le),Je=ge.useMemo(()=>({prefixCls:Ve,status:"error"}),[Ve]);return ge.createElement(Nt.List,Object.assign({},Re),(ct,Qe,Fe)=>ge.createElement(z.Rk.Provider,{value:Je},we(ct.map($e=>Object.assign(Object.assign({},$e),{fieldKey:$e.key})),Qe,{errors:Fe.errors,warnings:Fe.warnings})))};function nr(){const{form:Ce}=ge.useContext(z.q3);return Ce}const Ae=se;Ae.Item=qn,Ae.List=$n,Ae.ErrorList=Be,Ae.useForm=st,Ae.useFormInstance=nr,Ae.useWatch=Nt.useWatch,Ae.Provider=z.RV,Ae.create=()=>{};var et=Ae},4875:function(rn,Ft,ie){"use strict";ie.d(Ft,{Z:function(){return zt}});var z=ie(59301),Ke=ie(84105),ge=ie(87395),Ze=ie(92310),xe=ie.n(Ze),Se=ie(54476),De=ie(20068),Ue=ie(76190),Pe=ie(42978),de=ie(75931),He=ie(67732),ye=ie(83652);function vt(){return typeof BigInt=="function"}function je(Ie){return!Ie&&Ie!==0&&!Number.isNaN(Ie)||!String(Ie).trim()}function Te(Ie){var Xe=Ie.trim(),ft=Xe.startsWith("-");ft&&(Xe=Xe.slice(1)),Xe=Xe.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),Xe.startsWith(".")&&(Xe="0".concat(Xe));var Mt=Xe||"0",Gt=Mt.split("."),cn=Gt[0]||"0",En=Gt[1]||"0";cn==="0"&&En==="0"&&(ft=!1);var Sn=ft?"-":"";return{negative:ft,negativeStr:Sn,trimStr:Mt,integerStr:cn,decimalStr:En,fullStr:"".concat(Sn).concat(Mt)}}function ke(Ie){var Xe=String(Ie);return!Number.isNaN(Number(Xe))&&Xe.includes("e")}function Ne(Ie){var Xe=String(Ie);if(ke(Ie)){var ft=Number(Xe.slice(Xe.indexOf("e-")+2)),Mt=Xe.match(/\.(\d+)/);return Mt!=null&&Mt[1]&&(ft+=Mt[1].length),ft}return Xe.includes(".")&&wt(Xe)?Xe.length-Xe.indexOf(".")-1:0}function yt(Ie){var Xe=String(Ie);if(ke(Ie)){if(Ie>Number.MAX_SAFE_INTEGER)return String(vt()?BigInt(Ie).toString():Number.MAX_SAFE_INTEGER);if(Ie<Number.MIN_SAFE_INTEGER)return String(vt()?BigInt(Ie).toString():Number.MIN_SAFE_INTEGER);Xe=Ie.toFixed(Ne(Xe))}return Te(Xe).fullStr}function wt(Ie){return typeof Ie=="number"?!Number.isNaN(Ie):Ie?/^\s*-?\d+(\.\d+)?\s*$/.test(Ie)||/^\s*-?\d+\.\s*$/.test(Ie)||/^\s*-?\.\d+\s*$/.test(Ie):!1}var Pt=function(){function Ie(Xe){if((0,He.Z)(this,Ie),(0,De.Z)(this,"origin",""),(0,De.Z)(this,"negative",void 0),(0,De.Z)(this,"integer",void 0),(0,De.Z)(this,"decimal",void 0),(0,De.Z)(this,"decimalLen",void 0),(0,De.Z)(this,"empty",void 0),(0,De.Z)(this,"nan",void 0),je(Xe)){this.empty=!0;return}if(this.origin=String(Xe),Xe==="-"||Number.isNaN(Xe)){this.nan=!0;return}var ft=Xe;if(ke(ft)&&(ft=Number(ft)),ft=typeof ft=="string"?ft:yt(ft),wt(ft)){var Mt=Te(ft);this.negative=Mt.negative;var Gt=Mt.trimStr.split(".");this.integer=BigInt(Gt[0]);var cn=Gt[1]||"0";this.decimal=BigInt(cn),this.decimalLen=cn.length}else this.nan=!0}return(0,ye.Z)(Ie,[{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(ft){var Mt="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(ft,"0"));return BigInt(Mt)}},{key:"negate",value:function(){var ft=new Ie(this.toString());return ft.negative=!ft.negative,ft}},{key:"cal",value:function(ft,Mt,Gt){var cn=Math.max(this.getDecimalStr().length,ft.getDecimalStr().length),En=this.alignDecimal(cn),Sn=ft.alignDecimal(cn),sn=Mt(En,Sn).toString(),yn=Gt(cn),gn=Te(sn),zn=gn.negativeStr,bn=gn.trimStr,vn="".concat(zn).concat(bn.padStart(yn+1,"0"));return new Ie("".concat(vn.slice(0,-yn),".").concat(vn.slice(-yn)))}},{key:"add",value:function(ft){if(this.isInvalidate())return new Ie(ft);var Mt=new Ie(ft);return Mt.isInvalidate()?this:this.cal(Mt,function(Gt,cn){return Gt+cn},function(Gt){return Gt})}},{key:"multi",value:function(ft){var Mt=new Ie(ft);return this.isInvalidate()||Mt.isInvalidate()?new Ie(NaN):this.cal(Mt,function(Gt,cn){return Gt*cn},function(Gt){return Gt*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(ft){return this.toString()===(ft==null?void 0:ft.toString())}},{key:"lessEquals",value:function(ft){return this.add(ft.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var ft=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return ft?this.isInvalidate()?"":Te("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),Ie}(),bt=function(){function Ie(Xe){if((0,He.Z)(this,Ie),(0,De.Z)(this,"origin",""),(0,De.Z)(this,"number",void 0),(0,De.Z)(this,"empty",void 0),je(Xe)){this.empty=!0;return}this.origin=String(Xe),this.number=Number(Xe)}return(0,ye.Z)(Ie,[{key:"negate",value:function(){return new Ie(-this.toNumber())}},{key:"add",value:function(ft){if(this.isInvalidate())return new Ie(ft);var Mt=Number(ft);if(Number.isNaN(Mt))return this;var Gt=this.number+Mt;if(Gt>Number.MAX_SAFE_INTEGER)return new Ie(Number.MAX_SAFE_INTEGER);if(Gt<Number.MIN_SAFE_INTEGER)return new Ie(Number.MIN_SAFE_INTEGER);var cn=Math.max(Ne(this.number),Ne(Mt));return new Ie(Gt.toFixed(cn))}},{key:"multi",value:function(ft){var Mt=Number(ft);if(this.isInvalidate()||Number.isNaN(Mt))return new Ie(NaN);var Gt=this.number*Mt;if(Gt>Number.MAX_SAFE_INTEGER)return new Ie(Number.MAX_SAFE_INTEGER);if(Gt<Number.MIN_SAFE_INTEGER)return new Ie(Number.MIN_SAFE_INTEGER);var cn=Math.max(Ne(this.number),Ne(Mt));return new Ie(Gt.toFixed(cn))}},{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(ft){return this.toNumber()===(ft==null?void 0:ft.toNumber())}},{key:"lessEquals",value:function(ft){return this.add(ft.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var ft=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return ft?this.isInvalidate()?"":yt(this.number):this.origin}}]),Ie}();function pt(Ie){return vt()?new Pt(Ie):new bt(Ie)}function lt(Ie,Xe,ft){var Mt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(Ie==="")return"";var Gt=Te(Ie),cn=Gt.negativeStr,En=Gt.integerStr,Sn=Gt.decimalStr,sn="".concat(Xe).concat(Sn),yn="".concat(cn).concat(En);if(ft>=0){var gn=Number(Sn[ft]);if(gn>=5&&!Mt){var zn=pt(Ie).add("".concat(cn,"0.").concat("0".repeat(ft)).concat(10-gn));return lt(zn.toString(),Xe,ft,Mt)}return ft===0?yn:"".concat(yn).concat(Xe).concat(Sn.padEnd(ft,"0").slice(0,ft))}return sn===".0"?yn:"".concat(yn).concat(sn)}var _e=pt,kt=ie(36901),nt=ie(34280);function it(Ie,Xe){return typeof Proxy!="undefined"&&Ie?new Proxy(Ie,{get:function(Mt,Gt){if(Xe[Gt])return Xe[Gt];var cn=Mt[Gt];return typeof cn=="function"?cn.bind(Mt):cn}}):Ie}var Ct=ie(8654),ze=ie(48736);function gt(Ie,Xe){var ft=(0,z.useRef)(null);function Mt(){try{var cn=Ie.selectionStart,En=Ie.selectionEnd,Sn=Ie.value,sn=Sn.substring(0,cn),yn=Sn.substring(En);ft.current={start:cn,end:En,value:Sn,beforeTxt:sn,afterTxt:yn}}catch(gn){}}function Gt(){if(Ie&&ft.current&&Xe)try{var cn=Ie.value,En=ft.current,Sn=En.beforeTxt,sn=En.afterTxt,yn=En.start,gn=cn.length;if(cn.startsWith(Sn))gn=Sn.length;else if(cn.endsWith(sn))gn=cn.length-ft.current.afterTxt.length;else{var zn=Sn[yn-1],bn=cn.indexOf(zn,yn-1);bn!==-1&&(gn=bn+1)}Ie.setSelectionRange(gn,gn)}catch(vn){(0,ze.ZP)(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(vn.message))}}return[Mt,Gt]}var ut=ie(49658),pe=function(){var Xe=(0,z.useState)(!1),ft=(0,Pe.Z)(Xe,2),Mt=ft[0],Gt=ft[1];return(0,nt.Z)(function(){Gt((0,ut.Z)())},[]),Mt},At=pe,Be=ie(16089),Nt=200,on=600;function Ee(Ie){var Xe=Ie.prefixCls,ft=Ie.upNode,Mt=Ie.downNode,Gt=Ie.upDisabled,cn=Ie.downDisabled,En=Ie.onStep,Sn=z.useRef(),sn=z.useRef([]),yn=z.useRef();yn.current=En;var gn=function(){clearTimeout(Sn.current)},zn=function(Zn,An){Zn.preventDefault(),gn(),yn.current(An);function Xn(){yn.current(An),Sn.current=setTimeout(Xn,Nt)}Sn.current=setTimeout(Xn,on)};z.useEffect(function(){return function(){gn(),sn.current.forEach(function(Wn){return Be.Z.cancel(Wn)})}},[]);var bn=At();if(bn)return null;var vn="".concat(Xe,"-handler"),un=xe()(vn,"".concat(vn,"-up"),(0,De.Z)({},"".concat(vn,"-up-disabled"),Gt)),On=xe()(vn,"".concat(vn,"-down"),(0,De.Z)({},"".concat(vn,"-down-disabled"),cn)),mn=function(){return sn.current.push((0,Be.Z)(gn))},Dn={unselectable:"on",role:"button",onMouseUp:mn,onMouseLeave:mn};return z.createElement("div",{className:"".concat(vn,"-wrap")},z.createElement("span",(0,Se.Z)({},Dn,{onMouseDown:function(Zn){zn(Zn,!0)},"aria-label":"Increase Value","aria-disabled":Gt,className:un}),ft||z.createElement("span",{unselectable:"on",className:"".concat(Xe,"-handler-up-inner")})),z.createElement("span",(0,Se.Z)({},Dn,{onMouseDown:function(Zn){zn(Zn,!1)},"aria-label":"Decrease Value","aria-disabled":cn,className:On}),Mt||z.createElement("span",{unselectable:"on",className:"".concat(Xe,"-handler-down-inner")})))}function fe(Ie){var Xe=typeof Ie=="number"?yt(Ie):Te(Ie).fullStr,ft=Xe.includes(".");return ft?Te(Xe.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:Ie+"0"}var Et=ie(30292),Jt=function(){var Ie=(0,z.useRef)(0),Xe=function(){Be.Z.cancel(Ie.current)};return(0,z.useEffect)(function(){return Xe},[]),function(ft){Xe(),Ie.current=(0,Be.Z)(function(){ft()})}},Dt=["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"],We=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],ot=function(Xe,ft){return Xe||ft.isEmpty()?ft.toString():ft.toNumber()},dt=function(Xe){var ft=_e(Xe);return ft.isInvalidate()?null:ft},$t=z.forwardRef(function(Ie,Xe){var ft=Ie.prefixCls,Mt=Ie.className,Gt=Ie.style,cn=Ie.min,En=Ie.max,Sn=Ie.step,sn=Sn===void 0?1:Sn,yn=Ie.defaultValue,gn=Ie.value,zn=Ie.disabled,bn=Ie.readOnly,vn=Ie.upHandler,un=Ie.downHandler,On=Ie.keyboard,mn=Ie.changeOnWheel,Dn=mn===void 0?!1:mn,Wn=Ie.controls,Zn=Wn===void 0?!0:Wn,An=Ie.classNames,Xn=Ie.stringMode,Nn=Ie.parser,ar=Ie.formatter,qn=Ie.precision,Bt=Ie.decimalSeparator,nn=Ie.onChange,$n=Ie.onInput,nr=Ie.onPressEnter,Ae=Ie.onStep,et=Ie.changeOnBlur,Ce=et===void 0?!0:et,Le=Ie.domRef,we=(0,de.Z)(Ie,Dt),Re="".concat(ft,"-input"),ve=z.useRef(null),Ve=z.useState(!1),Je=(0,Pe.Z)(Ve,2),ct=Je[0],Qe=Je[1],Fe=z.useRef(!1),$e=z.useRef(!1),qe=z.useRef(!1),Qt=z.useState(function(){return _e(gn!=null?gn:yn)}),Ut=(0,Pe.Z)(Qt,2),Yt=Ut[0],kn=Ut[1];function Ln(hn){gn===void 0&&kn(hn)}var Hn=z.useCallback(function(hn,en){if(!en)return qn>=0?qn:Math.max(Ne(hn),Ne(sn))},[qn,sn]),Mn=z.useCallback(function(hn){var en=String(hn);if(Nn)return Nn(en);var Bn=en;return Bt&&(Bn=Bn.replace(Bt,".")),Bn.replace(/[^\w.-]+/g,"")},[Nn,Bt]),xn=z.useRef(""),Pn=z.useCallback(function(hn,en){if(ar)return ar(hn,{userTyping:en,input:String(xn.current)});var Bn=typeof hn=="number"?yt(hn):hn;if(!en){var Gn=Hn(Bn,en);if(wt(Bn)&&(Bt||Gn>=0)){var dn=Bt||".";Bn=lt(Bn,dn,Gn)}}return Bn},[ar,Hn,Bt]),Fn=z.useState(function(){var hn=yn!=null?yn:gn;return Yt.isInvalidate()&&["string","number"].includes((0,Ue.Z)(hn))?Number.isNaN(hn)?"":hn:Pn(Yt.toString(),!1)}),Yn=(0,Pe.Z)(Fn,2),Un=Yn[0],Kn=Yn[1];xn.current=Un;function Cn(hn,en){Kn(Pn(hn.isInvalidate()?hn.toString(!1):hn.toString(!en),en))}var er=z.useMemo(function(){return dt(En)},[En,qn]),jn=z.useMemo(function(){return dt(cn)},[cn,qn]),dr=z.useMemo(function(){return!er||!Yt||Yt.isInvalidate()?!1:er.lessEquals(Yt)},[er,Yt]),pr=z.useMemo(function(){return!jn||!Yt||Yt.isInvalidate()?!1:Yt.lessEquals(jn)},[jn,Yt]),sr=gt(ve.current,ct),ur=(0,Pe.Z)(sr,2),yr=ur[0],lr=ur[1],fr=function(en){return er&&!en.lessEquals(er)?er:jn&&!jn.lessEquals(en)?jn:null},Qn=function(en){return!fr(en)},mr=function(en,Bn){var Gn=en,dn=Qn(Gn)||Gn.isEmpty();if(!Gn.isEmpty()&&!Bn&&(Gn=fr(Gn)||Gn,dn=!0),!bn&&!zn&&dn){var tn=Gn.toString(),wn=Hn(tn,Bn);return wn>=0&&(Gn=_e(lt(tn,".",wn)),Qn(Gn)||(Gn=_e(lt(tn,".",wn,!0)))),Gn.equals(Yt)||(Ln(Gn),nn==null||nn(Gn.isEmpty()?null:ot(Xn,Gn)),gn===void 0&&Cn(Gn,Bn)),Gn}return Yt},br=Jt(),zr=function hn(en){if(yr(),xn.current=en,Kn(en),!$e.current){var Bn=Mn(en),Gn=_e(Bn);Gn.isNaN()||mr(Gn,!0)}$n==null||$n(en),br(function(){var dn=en;Nn||(dn=en.replace(/。/g,".")),dn!==en&&hn(dn)})},Er=function(){$e.current=!0},Br=function(){$e.current=!1,zr(ve.current.value)},Ir=function(en){zr(en.target.value)},Or=function(en){var Bn;if(!(en&&dr||!en&&pr)){Fe.current=!1;var Gn=_e(qe.current?fe(sn):sn);en||(Gn=Gn.negate());var dn=(Yt||_e(0)).add(Gn.toString()),tn=mr(dn,!1);Ae==null||Ae(ot(Xn,tn),{offset:qe.current?fe(sn):sn,type:en?"up":"down"}),(Bn=ve.current)===null||Bn===void 0||Bn.focus()}},ir=function(en){var Bn=_e(Mn(Un)),Gn;Bn.isNaN()?Gn=mr(Yt,en):Gn=mr(Bn,en),gn!==void 0?Cn(Yt,!1):Gn.isNaN()||Cn(Gn,!1)},rr=function(){Fe.current=!0},Jn=function(en){var Bn=en.key,Gn=en.shiftKey;Fe.current=!0,qe.current=Gn,Bn==="Enter"&&($e.current||(Fe.current=!1),ir(!1),nr==null||nr(en)),On!==!1&&!$e.current&&["Up","ArrowUp","Down","ArrowDown"].includes(Bn)&&(Or(Bn==="Up"||Bn==="ArrowUp"),en.preventDefault())},an=function(){Fe.current=!1,qe.current=!1};z.useEffect(function(){if(Dn&&ct){var hn=function(Gn){Or(Gn.deltaY<0),Gn.preventDefault()},en=ve.current;if(en)return en.addEventListener("wheel",hn,{passive:!1}),function(){return en.removeEventListener("wheel",hn)}}});var pn=function(){Ce&&ir(!1),Qe(!1),Fe.current=!1};return(0,nt.o)(function(){Yt.isInvalidate()||Cn(Yt,!1)},[qn,ar]),(0,nt.o)(function(){var hn=_e(gn);kn(hn);var en=_e(Mn(Un));(!hn.equals(en)||!Fe.current||ar)&&Cn(hn,Fe.current)},[gn]),(0,nt.o)(function(){ar&&lr()},[Un]),z.createElement("div",{ref:Le,className:xe()(ft,Mt,(0,De.Z)((0,De.Z)((0,De.Z)((0,De.Z)((0,De.Z)({},"".concat(ft,"-focused"),ct),"".concat(ft,"-disabled"),zn),"".concat(ft,"-readonly"),bn),"".concat(ft,"-not-a-number"),Yt.isNaN()),"".concat(ft,"-out-of-range"),!Yt.isInvalidate()&&!Qn(Yt))),style:Gt,onFocus:function(){Qe(!0)},onBlur:pn,onKeyDown:Jn,onKeyUp:an,onCompositionStart:Er,onCompositionEnd:Br,onBeforeInput:rr},Zn&&z.createElement(Ee,{prefixCls:ft,upNode:vn,downNode:un,upDisabled:dr,downDisabled:pr,onStep:Or}),z.createElement("div",{className:"".concat(Re,"-wrap")},z.createElement("input",(0,Se.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":cn,"aria-valuemax":En,"aria-valuenow":Yt.isInvalidate()?null:Yt.toString(),step:sn},we,{ref:(0,Ct.sQ)(ve,Xe),className:Re,value:Un,onChange:Ir,disabled:zn,readOnly:bn}))))}),Lt=z.forwardRef(function(Ie,Xe){var ft=Ie.disabled,Mt=Ie.style,Gt=Ie.prefixCls,cn=Gt===void 0?"rc-input-number":Gt,En=Ie.value,Sn=Ie.prefix,sn=Ie.suffix,yn=Ie.addonBefore,gn=Ie.addonAfter,zn=Ie.className,bn=Ie.classNames,vn=(0,de.Z)(Ie,We),un=z.useRef(null),On=z.useRef(null),mn=z.useRef(null),Dn=function(Zn){mn.current&&(0,Et.nH)(mn.current,Zn)};return z.useImperativeHandle(Xe,function(){return it(mn.current,{focus:Dn,nativeElement:un.current.nativeElement||On.current})}),z.createElement(kt.BaseInput,{className:zn,triggerFocus:Dn,prefixCls:cn,value:En,disabled:ft,style:Mt,prefix:Sn,suffix:sn,addonAfter:gn,addonBefore:yn,classNames:bn,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:un},z.createElement($t,(0,Se.Z)({prefixCls:cn,disabled:ft,ref:mn,domRef:On,className:bn==null?void 0:bn.input},vn)))}),Vt=Lt,rt=Vt,Ht=ie(62487),st=ie(82855),ae=ie(48755),te=ie(60840),ee=ie(2171),oe=ie(83397),se=ie(31756),re=ie(56553),he=ie(24971),be=ie(70045),ht=ie(36237),Me=ie(53075),Ye=ie(64910),mt=ie(39082),It=ie(63356),xt=ie(56119),Xt=ie(16931),Kt=ie(51636),jt=ie(17835);const _t=Ie=>{var Xe;const ft=(Xe=Ie.handleVisible)!==null&&Xe!==void 0?Xe:"auto",Mt=Ie.controlHeightSM-Ie.lineWidth*2;return Object.assign(Object.assign({},(0,Ye.T)(Ie)),{controlWidth:90,handleWidth:Mt,handleFontSize:Ie.fontSize/2,handleVisible:ft,handleActiveBg:Ie.colorFillAlter,handleBg:Ie.colorBgContainer,filledHandleBg:new jt.FastColor(Ie.colorFillSecondary).onBackground(Ie.colorBgContainer).toHexString(),handleHoverColor:Ie.colorPrimary,handleBorderColor:Ie.colorBorder,handleOpacity:ft===!0?1:0,handleVisibleWidth:ft===!0?Mt:0})},Zt=(Ie,Xe)=>{let{componentCls:ft,borderRadiusSM:Mt,borderRadiusLG:Gt}=Ie;const cn=Xe==="lg"?Gt:Mt;return{[`&-${Xe}`]:{[`${ft}-handler-wrap`]:{borderStartEndRadius:cn,borderEndEndRadius:cn},[`${ft}-handler-up`]:{borderStartEndRadius:cn},[`${ft}-handler-down`]:{borderEndEndRadius:cn}}}},ln=Ie=>{const{componentCls:Xe,lineWidth:ft,lineType:Mt,borderRadius:Gt,inputFontSizeSM:cn,inputFontSizeLG:En,controlHeightLG:Sn,controlHeightSM:sn,colorError:yn,paddingInlineSM:gn,paddingBlockSM:zn,paddingBlockLG:bn,paddingInlineLG:vn,colorTextDescription:un,motionDurationMid:On,handleHoverColor:mn,handleOpacity:Dn,paddingInline:Wn,paddingBlock:Zn,handleBg:An,handleActiveBg:Xn,colorTextDisabled:Nn,borderRadiusSM:ar,borderRadiusLG:qn,controlWidth:Bt,handleBorderColor:nn,filledHandleBg:$n,lineHeightLG:nr,calc:Ae}=Ie;return[{[Xe]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,It.Wf)(Ie)),(0,Me.ik)(Ie)),{display:"inline-block",width:Bt,margin:0,padding:0,borderRadius:Gt}),(0,mt.qG)(Ie,{[`${Xe}-handler-wrap`]:{background:An,[`${Xe}-handler-down`]:{borderBlockStart:`${(0,ht.unit)(ft)} ${Mt} ${nn}`}}})),(0,mt.H8)(Ie,{[`${Xe}-handler-wrap`]:{background:$n,[`${Xe}-handler-down`]:{borderBlockStart:`${(0,ht.unit)(ft)} ${Mt} ${nn}`}},"&:focus-within":{[`${Xe}-handler-wrap`]:{background:An}}})),(0,mt.vc)(Ie,{[`${Xe}-handler-wrap`]:{background:An,[`${Xe}-handler-down`]:{borderBlockStart:`${(0,ht.unit)(ft)} ${Mt} ${nn}`}}})),(0,mt.Mu)(Ie)),{"&-rtl":{direction:"rtl",[`${Xe}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:En,lineHeight:nr,borderRadius:qn,[`input${Xe}-input`]:{height:Ae(Sn).sub(Ae(ft).mul(2)).equal(),padding:`${(0,ht.unit)(bn)} ${(0,ht.unit)(vn)}`}},"&-sm":{padding:0,fontSize:cn,borderRadius:ar,[`input${Xe}-input`]:{height:Ae(sn).sub(Ae(ft).mul(2)).equal(),padding:`${(0,ht.unit)(zn)} ${(0,ht.unit)(gn)}`}},"&-out-of-range":{[`${Xe}-input-wrap`]:{input:{color:yn}}},"&-group":Object.assign(Object.assign(Object.assign({},(0,It.Wf)(Ie)),(0,Me.s7)(Ie)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${Xe}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${Xe}-group-addon`]:{borderRadius:qn,fontSize:Ie.fontSizeLG}},"&-sm":{[`${Xe}-group-addon`]:{borderRadius:ar}}},(0,mt.ir)(Ie)),(0,mt.S5)(Ie)),{[`&:not(${Xe}-compact-first-item):not(${Xe}-compact-last-item)${Xe}-compact-item`]:{[`${Xe}, ${Xe}-group-addon`]:{borderRadius:0}},[`&:not(${Xe}-compact-last-item)${Xe}-compact-first-item`]:{[`${Xe}, ${Xe}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${Xe}-compact-first-item)${Xe}-compact-last-item`]:{[`${Xe}, ${Xe}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})}),[`&-disabled ${Xe}-input`]:{cursor:"not-allowed"},[Xe]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},(0,It.Wf)(Ie)),{width:"100%",padding:`${(0,ht.unit)(Zn)} ${(0,ht.unit)(Wn)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:Gt,outline:0,transition:`all ${On} linear`,appearance:"textfield",fontSize:"inherit"}),(0,Me.nz)(Ie.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,appearance:"none"}})},[`&:hover ${Xe}-handler-wrap, &-focused ${Xe}-handler-wrap`]:{width:Ie.handleWidth,opacity:1}})},{[Xe]:Object.assign(Object.assign(Object.assign({[`${Xe}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:Ie.handleVisibleWidth,opacity:Dn,height:"100%",borderStartStartRadius:0,borderStartEndRadius:Gt,borderEndEndRadius:Gt,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${On}`,overflow:"hidden",[`${Xe}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`
${Xe}-handler-up-inner,
${Xe}-handler-down-inner
`]:{marginInlineEnd:0,fontSize:Ie.handleFontSize}}},[`${Xe}-handler`]:{height:"50%",overflow:"hidden",color:un,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${(0,ht.unit)(ft)} ${Mt} ${nn}`,transition:`all ${On} linear`,"&:active":{background:Xn},"&:hover":{height:"60%",[`
${Xe}-handler-up-inner,
${Xe}-handler-down-inner
`]:{color:mn}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},(0,It.Ro)()),{color:un,transition:`all ${On} linear`,userSelect:"none"})},[`${Xe}-handler-up`]:{borderStartEndRadius:Gt},[`${Xe}-handler-down`]:{borderEndEndRadius:Gt}},Zt(Ie,"lg")),Zt(Ie,"sm")),{"&-disabled, &-readonly":{[`${Xe}-handler-wrap`]:{display:"none"},[`${Xe}-input`]:{color:"inherit"}},[`
${Xe}-handler-up-disabled,
${Xe}-handler-down-disabled
`]:{cursor:"not-allowed"},[`
${Xe}-handler-up-disabled:hover &-handler-up-inner,
${Xe}-handler-down-disabled:hover &-handler-down-inner
`]:{color:Nn}})}]},St=Ie=>{const{componentCls:Xe,paddingBlock:ft,paddingInline:Mt,inputAffixPadding:Gt,controlWidth:cn,borderRadiusLG:En,borderRadiusSM:Sn,paddingInlineLG:sn,paddingInlineSM:yn,paddingBlockLG:gn,paddingBlockSM:zn,motionDurationMid:bn}=Ie;return{[`${Xe}-affix-wrapper`]:Object.assign(Object.assign({[`input${Xe}-input`]:{padding:`${(0,ht.unit)(ft)} 0`}},(0,Me.ik)(Ie)),{position:"relative",display:"inline-flex",alignItems:"center",width:cn,padding:0,paddingInlineStart:Mt,"&-lg":{borderRadius:En,paddingInlineStart:sn,[`input${Xe}-input`]:{padding:`${(0,ht.unit)(gn)} 0`}},"&-sm":{borderRadius:Sn,paddingInlineStart:yn,[`input${Xe}-input`]:{padding:`${(0,ht.unit)(zn)} 0`}},[`&:not(${Xe}-disabled):hover`]:{zIndex:1},"&-focused, &:focus":{zIndex:1},[`&-disabled > ${Xe}-disabled`]:{background:"transparent"},[`> div${Xe}`]:{width:"100%",border:"none",outline:"none",[`&${Xe}-focused`]:{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${Xe}-handler-wrap`]:{zIndex:2},[Xe]:{position:"static",color:"inherit","&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:Gt},"&-suffix":{insetBlockStart:0,insetInlineEnd:0,height:"100%",marginInlineEnd:Mt,marginInlineStart:Gt,transition:`margin ${bn}`}},[`&:hover ${Xe}-handler-wrap, &-focused ${Xe}-handler-wrap`]:{width:Ie.handleWidth,opacity:1},[`&:not(${Xe}-affix-wrapper-without-controls):hover ${Xe}-suffix`]:{marginInlineEnd:Ie.calc(Ie.handleWidth).add(Mt).equal()}})}};var qt=(0,Xt.I$)("InputNumber",Ie=>{const Xe=(0,Kt.mergeToken)(Ie,(0,Ye.e)(Ie));return[ln(Xe),St(Xe),(0,xt.c)(Xe)]},_t,{unitless:{handleOpacity:!0}}),Wt=function(Ie,Xe){var ft={};for(var Mt in Ie)Object.prototype.hasOwnProperty.call(Ie,Mt)&&Xe.indexOf(Mt)<0&&(ft[Mt]=Ie[Mt]);if(Ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Gt=0,Mt=Object.getOwnPropertySymbols(Ie);Gt<Mt.length;Gt++)Xe.indexOf(Mt[Gt])<0&&Object.prototype.propertyIsEnumerable.call(Ie,Mt[Gt])&&(ft[Mt[Gt]]=Ie[Mt[Gt]]);return ft};const Oe=z.forwardRef((Ie,Xe)=>{const{getPrefixCls:ft,direction:Mt}=z.useContext(ae.E_),Gt=z.useRef(null);z.useImperativeHandle(Xe,()=>Gt.current);const{className:cn,rootClassName:En,size:Sn,disabled:sn,prefixCls:yn,addonBefore:gn,addonAfter:zn,prefix:bn,suffix:vn,bordered:un,readOnly:On,status:mn,controls:Dn,variant:Wn}=Ie,Zn=Wt(Ie,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),An=ft("input-number",yn),Xn=(0,oe.Z)(An),[Nn,ar,qn]=qt(An,Xn),{compactSize:Bt,compactItemClassnames:nn}=(0,be.ri)(An,Mt);let $n=z.createElement(ge.Z,{className:`${An}-handler-up-inner`}),nr=z.createElement(Ke.Z,{className:`${An}-handler-down-inner`});const Ae=typeof Dn=="boolean"?Dn:void 0;typeof Dn=="object"&&($n=typeof Dn.upIcon=="undefined"?$n:z.createElement("span",{className:`${An}-handler-up-inner`},Dn.upIcon),nr=typeof Dn.downIcon=="undefined"?nr:z.createElement("span",{className:`${An}-handler-down-inner`},Dn.downIcon));const{hasFeedback:et,status:Ce,isFormItemInput:Le,feedbackIcon:we}=z.useContext(re.aM),Re=(0,st.F)(Ce,mn),ve=(0,se.Z)(Ut=>{var Yt;return(Yt=Sn!=null?Sn:Bt)!==null&&Yt!==void 0?Yt:Ut}),Ve=z.useContext(ee.Z),Je=sn!=null?sn:Ve,[ct,Qe]=(0,he.Z)("inputNumber",Wn,un),Fe=et&&z.createElement(z.Fragment,null,we),$e=xe()({[`${An}-lg`]:ve==="large",[`${An}-sm`]:ve==="small",[`${An}-rtl`]:Mt==="rtl",[`${An}-in-form-item`]:Le},ar),qe=`${An}-group`,Qt=z.createElement(rt,Object.assign({ref:Gt,disabled:Je,className:xe()(qn,Xn,cn,En,nn),upHandler:$n,downHandler:nr,prefixCls:An,readOnly:On,controls:Ae,prefix:bn,suffix:Fe||vn,addonBefore:gn&&z.createElement(Ht.Z,{form:!0,space:!0},gn),addonAfter:zn&&z.createElement(Ht.Z,{form:!0,space:!0},zn),classNames:{input:$e,variant:xe()({[`${An}-${ct}`]:Qe},(0,st.Z)(An,Re,et)),affixWrapper:xe()({[`${An}-affix-wrapper-sm`]:ve==="small",[`${An}-affix-wrapper-lg`]:ve==="large",[`${An}-affix-wrapper-rtl`]:Mt==="rtl",[`${An}-affix-wrapper-without-controls`]:Dn===!1||Je},ar),wrapper:xe()({[`${qe}-rtl`]:Mt==="rtl"},ar),groupWrapper:xe()({[`${An}-group-wrapper-sm`]:ve==="small",[`${An}-group-wrapper-lg`]:ve==="large",[`${An}-group-wrapper-rtl`]:Mt==="rtl",[`${An}-group-wrapper-${ct}`]:Qe},(0,st.Z)(`${An}-group-wrapper`,Re,et),ar)}},Zn));return Nn(Qt)}),tt=Oe,Tt=Ie=>z.createElement(te.ZP,{theme:{components:{InputNumber:{handleVisible:!0}}}},z.createElement(Oe,Object.assign({},Ie)));tt._InternalPanelDoNotUseOrYouWillBeFired=Tt;var zt=tt},49397:function(rn,Ft,ie){"use strict";ie.d(Ft,{Z:function(){return bt}});var z=ie(59301),Ke=ie(92310),ge=ie.n(Ke),Ze=ie(36901),xe=ie(8654),Se=ie(62487),De=ie(86013),Ue=ie(82855),Pe=ie(48755),de=ie(2171),He=ie(83397),ye=ie(31756),vt=ie(56553),je=ie(24971),Te=ie(70045),ke=ie(23826),Ne=ie(53075);function yt(pt){return!!(pt.prefix||pt.suffix||pt.allowClear||pt.showCount)}var wt=function(pt,lt){var _e={};for(var kt in pt)Object.prototype.hasOwnProperty.call(pt,kt)&&lt.indexOf(kt)<0&&(_e[kt]=pt[kt]);if(pt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var nt=0,kt=Object.getOwnPropertySymbols(pt);nt<kt.length;nt++)lt.indexOf(kt[nt])<0&&Object.prototype.propertyIsEnumerable.call(pt,kt[nt])&&(_e[kt[nt]]=pt[kt[nt]]);return _e},bt=(0,z.forwardRef)((pt,lt)=>{const{prefixCls:_e,bordered:kt=!0,status:nt,size:it,disabled:Ct,onBlur:ze,onFocus:gt,suffix:ut,allowClear:pe,addonAfter:At,addonBefore:Be,className:Nt,style:on,styles:Ee,rootClassName:fe,onChange:Et,classNames:Jt,variant:Dt}=pt,We=wt(pt,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:ot,direction:dt,allowClear:$t,autoComplete:Lt,className:Vt,style:rt,classNames:Ht,styles:st}=(0,Pe.dj)("input"),ae=ot("input",_e),te=(0,z.useRef)(null),ee=(0,He.Z)(ae),[oe,se,re]=(0,Ne.TI)(ae,fe),[he]=(0,Ne.ZP)(ae,ee),{compactSize:be,compactItemClassnames:ht}=(0,Te.ri)(ae,dt),Me=(0,ye.Z)(zt=>{var Ie;return(Ie=it!=null?it:be)!==null&&Ie!==void 0?Ie:zt}),Ye=z.useContext(de.Z),mt=Ct!=null?Ct:Ye,{status:It,hasFeedback:xt,feedbackIcon:Xt}=(0,z.useContext)(vt.aM),Kt=(0,Ue.F)(It,nt),jt=yt(pt)||!!xt,_t=(0,z.useRef)(jt),Zt=(0,ke.Z)(te,!0),ln=zt=>{Zt(),ze==null||ze(zt)},St=zt=>{Zt(),gt==null||gt(zt)},qt=zt=>{Zt(),Et==null||Et(zt)},Wt=(xt||ut)&&z.createElement(z.Fragment,null,ut,xt&&Xt),Oe=(0,De.Z)(pe!=null?pe:$t),[tt,Tt]=(0,je.Z)("input",Dt,kt);return oe(he(z.createElement(Ze.default,Object.assign({ref:(0,xe.sQ)(lt,te),prefixCls:ae,autoComplete:Lt},We,{disabled:mt,onBlur:ln,onFocus:St,style:Object.assign(Object.assign({},rt),on),styles:Object.assign(Object.assign({},st),Ee),suffix:Wt,allowClear:Oe,className:ge()(Nt,fe,re,ee,ht,Vt),onChange:qt,addonBefore:Be&&z.createElement(Se.Z,{form:!0,space:!0},Be),addonAfter:At&&z.createElement(Se.Z,{form:!0,space:!0},At),classNames:Object.assign(Object.assign(Object.assign({},Jt),Ht),{input:ge()({[`${ae}-sm`]:Me==="small",[`${ae}-lg`]:Me==="large",[`${ae}-rtl`]:dt==="rtl"},Jt==null?void 0:Jt.input,Ht.input,se),variant:ge()({[`${ae}-${tt}`]:Tt},(0,Ue.Z)(ae,Kt)),affixWrapper:ge()({[`${ae}-affix-wrapper-sm`]:Me==="small",[`${ae}-affix-wrapper-lg`]:Me==="large",[`${ae}-affix-wrapper-rtl`]:dt==="rtl"},se),wrapper:ge()({[`${ae}-group-rtl`]:dt==="rtl"},se),groupWrapper:ge()({[`${ae}-group-wrapper-sm`]:Me==="small",[`${ae}-group-wrapper-lg`]:Me==="large",[`${ae}-group-wrapper-rtl`]:dt==="rtl",[`${ae}-group-wrapper-${tt}`]:Tt},(0,Ue.Z)(`${ae}-group-wrapper`,Kt,xt),se)})}))))})},79809:function(rn,Ft,ie){"use strict";ie.d(Ft,{Z:function(){return lt}});var z=ie(59301),Ke=ie(92310),ge=ie.n(Ke),Ze=ie(22711),xe=ie(86013),Se=ie(82855),De=ie(48755),Ue=ie(2171),Pe=ie(83397),de=ie(31756),He=ie(56553),ye=ie(24971),vt=ie(70045),je=ie(30292),Te=ie(53075),ke=ie(16931),Ne=ie(51636),yt=ie(64910);const wt=_e=>{const{componentCls:kt,paddingLG:nt}=_e,it=`${kt}-textarea`;return{[`textarea${kt}`]:{maxWidth:"100%",height:"auto",minHeight:_e.controlHeight,lineHeight:_e.lineHeight,verticalAlign:"bottom",transition:`all ${_e.motionDurationSlow}`,resize:"vertical",[`&${kt}-mouse-active`]:{transition:`all ${_e.motionDurationSlow}, height 0s, width 0s`}},[`${kt}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[it]:{position:"relative","&-show-count":{[`> ${kt}`]:{height:"100%"},[`${kt}-data-count`]:{position:"absolute",bottom:_e.calc(_e.fontSize).mul(_e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:_e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`
&-allow-clear > ${kt},
&-affix-wrapper${it}-has-feedback ${kt}
`]:{paddingInlineEnd:nt},[`&-affix-wrapper${kt}-affix-wrapper`]:{padding:0,[`> textarea${kt}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:_e.calc(_e.controlHeight).sub(_e.calc(_e.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:"none !important"}},[`${kt}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${kt}-clear-icon`]:{position:"absolute",insetInlineEnd:_e.paddingInline,insetBlockStart:_e.paddingXS},[`${it}-suffix`]:{position:"absolute",top:0,insetInlineEnd:_e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${kt}-affix-wrapper-sm`]:{[`${kt}-suffix`]:{[`${kt}-clear-icon`]:{insetInlineEnd:_e.paddingInlineSM}}}}}};var Pt=(0,ke.I$)(["Input","TextArea"],_e=>{const kt=(0,Ne.mergeToken)(_e,(0,yt.e)(_e));return[wt(kt)]},yt.T,{resetFont:!1}),bt=function(_e,kt){var nt={};for(var it in _e)Object.prototype.hasOwnProperty.call(_e,it)&&kt.indexOf(it)<0&&(nt[it]=_e[it]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ct=0,it=Object.getOwnPropertySymbols(_e);Ct<it.length;Ct++)kt.indexOf(it[Ct])<0&&Object.prototype.propertyIsEnumerable.call(_e,it[Ct])&&(nt[it[Ct]]=_e[it[Ct]]);return nt},lt=(0,z.forwardRef)((_e,kt)=>{var nt;const{prefixCls:it,bordered:Ct=!0,size:ze,disabled:gt,status:ut,allowClear:pe,classNames:At,rootClassName:Be,className:Nt,style:on,styles:Ee,variant:fe,showCount:Et,onMouseDown:Jt,onResize:Dt}=_e,We=bt(_e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]),{getPrefixCls:ot,direction:dt,allowClear:$t,autoComplete:Lt,className:Vt,style:rt,classNames:Ht,styles:st}=(0,De.dj)("textArea"),ae=z.useContext(Ue.Z),te=gt!=null?gt:ae,{status:ee,hasFeedback:oe,feedbackIcon:se}=z.useContext(He.aM),re=(0,Se.F)(ee,ut),he=z.useRef(null);z.useImperativeHandle(kt,()=>{var Tt;return{resizableTextArea:(Tt=he.current)===null||Tt===void 0?void 0:Tt.resizableTextArea,focus:zt=>{var Ie,Xe;(0,je.nH)((Xe=(Ie=he.current)===null||Ie===void 0?void 0:Ie.resizableTextArea)===null||Xe===void 0?void 0:Xe.textArea,zt)},blur:()=>{var zt;return(zt=he.current)===null||zt===void 0?void 0:zt.blur()}}});const be=ot("input",it),ht=(0,Pe.Z)(be),[Me,Ye,mt]=(0,Te.TI)(be,Be),[It]=Pt(be,ht),{compactSize:xt,compactItemClassnames:Xt}=(0,vt.ri)(be,dt),Kt=(0,de.Z)(Tt=>{var zt;return(zt=ze!=null?ze:xt)!==null&&zt!==void 0?zt:Tt}),[jt,_t]=(0,ye.Z)("textArea",fe,Ct),Zt=(0,xe.Z)(pe!=null?pe:$t),[ln,St]=z.useState(!1),[qt,Wt]=z.useState(!1),Oe=Tt=>{St(!0),Jt==null||Jt(Tt);const zt=()=>{St(!1),document.removeEventListener("mouseup",zt)};document.addEventListener("mouseup",zt)},tt=Tt=>{var zt,Ie;if(Dt==null||Dt(Tt),ln&&typeof getComputedStyle=="function"){const Xe=(Ie=(zt=he.current)===null||zt===void 0?void 0:zt.nativeElement)===null||Ie===void 0?void 0:Ie.querySelector("textarea");Xe&&getComputedStyle(Xe).resize==="both"&&Wt(!0)}};return Me(It(z.createElement(Ze.default,Object.assign({autoComplete:Lt},We,{style:Object.assign(Object.assign({},rt),on),styles:Object.assign(Object.assign({},st),Ee),disabled:te,allowClear:Zt,className:ge()(mt,ht,Nt,Be,Xt,Vt,qt&&`${be}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},At),Ht),{textarea:ge()({[`${be}-sm`]:Kt==="small",[`${be}-lg`]:Kt==="large"},Ye,At==null?void 0:At.textarea,Ht.textarea,ln&&`${be}-mouse-active`),variant:ge()({[`${be}-${jt}`]:_t},(0,Se.Z)(be,re)),affixWrapper:ge()(`${be}-textarea-affix-wrapper`,{[`${be}-affix-wrapper-rtl`]:dt==="rtl",[`${be}-affix-wrapper-sm`]:Kt==="small",[`${be}-affix-wrapper-lg`]:Kt==="large",[`${be}-textarea-show-count`]:Et||((nt=_e.count)===null||nt===void 0?void 0:nt.show)},Ye)}),prefixCls:be,suffix:oe&&z.createElement("span",{className:`${be}-textarea-suffix`},se),showCount:Et,ref:he,onResize:tt,onMouseDown:Oe}))))})},23826:function(rn,Ft,ie){"use strict";ie.d(Ft,{Z:function(){return Ke}});var z=ie(59301);function Ke(ge,Ze){const xe=(0,z.useRef)([]),Se=()=>{xe.current.push(setTimeout(()=>{var De,Ue,Pe,de;!((De=ge.current)===null||De===void 0)&&De.input&&((Ue=ge.current)===null||Ue===void 0?void 0:Ue.input.getAttribute("type"))==="password"&&(!((Pe=ge.current)===null||Pe===void 0)&&Pe.input.hasAttribute("value"))&&((de=ge.current)===null||de===void 0||de.input.removeAttribute("value"))}))};return(0,z.useEffect)(()=>(Ze&&Se(),()=>xe.current.forEach(De=>{De&&clearTimeout(De)})),[]),Se}},37568:function(rn,Ft,ie){"use strict";ie.d(Ft,{default:function(){return Ht}});var z=ie(59301),Ke=ie(92310),ge=ie.n(Ke),Ze=ie(48755),xe=ie(56553),Se=ie(53075),Ue=st=>{const{getPrefixCls:ae,direction:te}=(0,z.useContext)(Ze.E_),{prefixCls:ee,className:oe}=st,se=ae("input-group",ee),re=ae("input"),[he,be,ht]=(0,Se.ZP)(re),Me=ge()(se,ht,{[`${se}-lg`]:st.size==="large",[`${se}-sm`]:st.size==="small",[`${se}-compact`]:st.compact,[`${se}-rtl`]:te==="rtl"},be,oe),Ye=(0,z.useContext)(xe.aM),mt=(0,z.useMemo)(()=>Object.assign(Object.assign({},Ye),{isFormItemInput:!1}),[Ye]);return he(z.createElement("span",{className:Me,style:st.style,onMouseEnter:st.onMouseEnter,onMouseLeave:st.onMouseLeave,onFocus:st.onFocus,onBlur:st.onBlur},z.createElement(xe.aM.Provider,{value:mt},st.children)))},Pe=ie(49397),de=ie(94480),He=ie(6089),ye=ie(26112),vt=ie(82855),je=ie(31756),Te=ie(16931),ke=ie(51636),Ne=ie(64910);const yt=st=>{const{componentCls:ae,paddingXS:te}=st;return{[ae]:{display:"inline-flex",alignItems:"center",flexWrap:"nowrap",columnGap:te,"&-rtl":{direction:"rtl"},[`${ae}-input`]:{textAlign:"center",paddingInline:st.paddingXXS},[`&${ae}-sm ${ae}-input`]:{paddingInline:st.calc(st.paddingXXS).div(2).equal()},[`&${ae}-lg ${ae}-input`]:{paddingInline:st.paddingXS}}}};var wt=(0,Te.I$)(["Input","OTP"],st=>{const ae=(0,ke.mergeToken)(st,(0,Ne.e)(st));return[yt(ae)]},Ne.T),Pt=ie(16089),bt=function(st,ae){var te={};for(var ee in st)Object.prototype.hasOwnProperty.call(st,ee)&&ae.indexOf(ee)<0&&(te[ee]=st[ee]);if(st!=null&&typeof Object.getOwnPropertySymbols=="function")for(var oe=0,ee=Object.getOwnPropertySymbols(st);oe<ee.length;oe++)ae.indexOf(ee[oe])<0&&Object.prototype.propertyIsEnumerable.call(st,ee[oe])&&(te[ee[oe]]=st[ee[oe]]);return te},lt=z.forwardRef((st,ae)=>{const{value:te,onChange:ee,onActiveChange:oe,index:se,mask:re}=st,he=bt(st,["value","onChange","onActiveChange","index","mask"]),be=te&&typeof re=="string"?re:te,ht=xt=>{ee(se,xt.target.value)},Me=z.useRef(null);z.useImperativeHandle(ae,()=>Me.current);const Ye=()=>{(0,Pt.Z)(()=>{var xt;const Xt=(xt=Me.current)===null||xt===void 0?void 0:xt.input;document.activeElement===Xt&&Xt&&Xt.select()})},mt=xt=>{const{key:Xt,ctrlKey:Kt,metaKey:jt}=xt;Xt==="ArrowLeft"?oe(se-1):Xt==="ArrowRight"?oe(se+1):Xt==="z"&&(Kt||jt)&&xt.preventDefault(),Ye()},It=xt=>{xt.key==="Backspace"&&!te&&oe(se-1),Ye()};return z.createElement(Pe.Z,Object.assign({type:re===!0?"password":"text"},he,{ref:Me,value:be,onInput:ht,onFocus:Ye,onKeyDown:mt,onKeyUp:It,onMouseDown:Ye,onMouseUp:Ye}))}),_e=function(st,ae){var te={};for(var ee in st)Object.prototype.hasOwnProperty.call(st,ee)&&ae.indexOf(ee)<0&&(te[ee]=st[ee]);if(st!=null&&typeof Object.getOwnPropertySymbols=="function")for(var oe=0,ee=Object.getOwnPropertySymbols(st);oe<ee.length;oe++)ae.indexOf(ee[oe])<0&&Object.prototype.propertyIsEnumerable.call(st,ee[oe])&&(te[ee[oe]]=st[ee[oe]]);return te};function kt(st){return(st||"").split("")}const nt=st=>{const{index:ae,prefixCls:te,separator:ee}=st,oe=typeof ee=="function"?ee(ae):ee;return oe?z.createElement("span",{className:`${te}-separator`},oe):null};var Ct=z.forwardRef((st,ae)=>{const{prefixCls:te,length:ee=6,size:oe,defaultValue:se,value:re,onChange:he,formatter:be,separator:ht,variant:Me,disabled:Ye,status:mt,autoFocus:It,mask:xt,type:Xt,onInput:Kt,inputMode:jt}=st,_t=_e(st,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:Zt,direction:ln}=z.useContext(Ze.E_),St=Zt("otp",te),qt=(0,ye.Z)(_t,{aria:!0,data:!0,attr:!0}),[Wt,Oe,tt]=wt(St),Tt=(0,je.Z)(bn=>oe!=null?oe:bn),zt=z.useContext(xe.aM),Ie=(0,vt.F)(zt.status,mt),Xe=z.useMemo(()=>Object.assign(Object.assign({},zt),{status:Ie,hasFeedback:!1,feedbackIcon:null}),[zt,Ie]),ft=z.useRef(null),Mt=z.useRef({});z.useImperativeHandle(ae,()=>({focus:()=>{var bn;(bn=Mt.current[0])===null||bn===void 0||bn.focus()},blur:()=>{var bn;for(let vn=0;vn<ee;vn+=1)(bn=Mt.current[vn])===null||bn===void 0||bn.blur()},nativeElement:ft.current}));const Gt=bn=>be?be(bn):bn,[cn,En]=z.useState(()=>kt(Gt(se||"")));z.useEffect(()=>{re!==void 0&&En(kt(re))},[re]);const Sn=(0,He.Z)(bn=>{En(bn),Kt&&Kt(bn),he&&bn.length===ee&&bn.every(vn=>vn)&&bn.some((vn,un)=>cn[un]!==vn)&&he(bn.join(""))}),sn=(0,He.Z)((bn,vn)=>{let un=(0,de.Z)(cn);for(let mn=0;mn<bn;mn+=1)un[mn]||(un[mn]="");vn.length<=1?un[bn]=vn:un=un.slice(0,bn).concat(kt(vn)),un=un.slice(0,ee);for(let mn=un.length-1;mn>=0&&!un[mn];mn-=1)un.pop();const On=Gt(un.map(mn=>mn||" ").join(""));return un=kt(On).map((mn,Dn)=>mn===" "&&!un[Dn]?un[Dn]:mn),un}),yn=(bn,vn)=>{var un;const On=sn(bn,vn),mn=Math.min(bn+vn.length,ee-1);mn!==bn&&On[bn]!==void 0&&((un=Mt.current[mn])===null||un===void 0||un.focus()),Sn(On)},gn=bn=>{var vn;(vn=Mt.current[bn])===null||vn===void 0||vn.focus()},zn={variant:Me,disabled:Ye,status:Ie,mask:xt,type:Xt,inputMode:jt};return Wt(z.createElement("div",Object.assign({},qt,{ref:ft,className:ge()(St,{[`${St}-sm`]:Tt==="small",[`${St}-lg`]:Tt==="large",[`${St}-rtl`]:ln==="rtl"},tt,Oe)}),z.createElement(xe.aM.Provider,{value:Xe},Array.from({length:ee}).map((bn,vn)=>{const un=`otp-${vn}`,On=cn[vn]||"";return z.createElement(z.Fragment,{key:un},z.createElement(lt,Object.assign({ref:mn=>{Mt.current[vn]=mn},index:vn,size:Tt,htmlSize:1,className:`${St}-input`,onChange:yn,value:On,onActiveChange:gn,autoFocus:vn===0&&It},zn)),vn<ee-1&&z.createElement(nt,{separator:ht,index:vn,prefixCls:St}))}))))}),ze=ie(73331),gt=ie(15277),ut=ie(2738),pe=ie(8654),At=ie(2171),Be=ie(23826),Nt=function(st,ae){var te={};for(var ee in st)Object.prototype.hasOwnProperty.call(st,ee)&&ae.indexOf(ee)<0&&(te[ee]=st[ee]);if(st!=null&&typeof Object.getOwnPropertySymbols=="function")for(var oe=0,ee=Object.getOwnPropertySymbols(st);oe<ee.length;oe++)ae.indexOf(ee[oe])<0&&Object.prototype.propertyIsEnumerable.call(st,ee[oe])&&(te[ee[oe]]=st[ee[oe]]);return te};const on=st=>st?z.createElement(gt.Z,null):z.createElement(ze.Z,null),Ee={click:"onClick",hover:"onMouseOver"};var Et=z.forwardRef((st,ae)=>{const{disabled:te,action:ee="click",visibilityToggle:oe=!0,iconRender:se=on}=st,re=z.useContext(At.Z),he=te!=null?te:re,be=typeof oe=="object"&&oe.visible!==void 0,[ht,Me]=(0,z.useState)(()=>be?oe.visible:!1),Ye=(0,z.useRef)(null);z.useEffect(()=>{be&&Me(oe.visible)},[be,oe]);const mt=(0,Be.Z)(Ye),It=()=>{var Tt;if(he)return;ht&&mt();const zt=!ht;Me(zt),typeof oe=="object"&&((Tt=oe.onVisibleChange)===null||Tt===void 0||Tt.call(oe,zt))},xt=Tt=>{const zt=Ee[ee]||"",Ie=se(ht),Xe={[zt]:It,className:`${Tt}-icon`,key:"passwordIcon",onMouseDown:ft=>{ft.preventDefault()},onMouseUp:ft=>{ft.preventDefault()}};return z.cloneElement(z.isValidElement(Ie)?Ie:z.createElement("span",null,Ie),Xe)},{className:Xt,prefixCls:Kt,inputPrefixCls:jt,size:_t}=st,Zt=Nt(st,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:ln}=z.useContext(Ze.E_),St=ln("input",jt),qt=ln("input-password",Kt),Wt=oe&&xt(qt),Oe=ge()(qt,Xt,{[`${qt}-${_t}`]:!!_t}),tt=Object.assign(Object.assign({},(0,ut.Z)(Zt,["suffix","iconRender","visibilityToggle"])),{type:ht?"text":"password",className:Oe,prefixCls:St,suffix:Wt});return _t&&(tt.size=_t),z.createElement(Pe.Z,Object.assign({ref:(0,pe.sQ)(ae,Ye)},tt))}),Jt=ie(47472),Dt=ie(22703),We=ie(7939),ot=ie(70045),dt=function(st,ae){var te={};for(var ee in st)Object.prototype.hasOwnProperty.call(st,ee)&&ae.indexOf(ee)<0&&(te[ee]=st[ee]);if(st!=null&&typeof Object.getOwnPropertySymbols=="function")for(var oe=0,ee=Object.getOwnPropertySymbols(st);oe<ee.length;oe++)ae.indexOf(ee[oe])<0&&Object.prototype.propertyIsEnumerable.call(st,ee[oe])&&(te[ee[oe]]=st[ee[oe]]);return te},Lt=z.forwardRef((st,ae)=>{const{prefixCls:te,inputPrefixCls:ee,className:oe,size:se,suffix:re,enterButton:he=!1,addonAfter:be,loading:ht,disabled:Me,onSearch:Ye,onChange:mt,onCompositionStart:It,onCompositionEnd:xt}=st,Xt=dt(st,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:Kt,direction:jt}=z.useContext(Ze.E_),_t=z.useRef(!1),Zt=Kt("input-search",te),ln=Kt("input",ee),{compactSize:St}=(0,ot.ri)(Zt,jt),qt=(0,je.Z)(yn=>{var gn;return(gn=se!=null?se:St)!==null&&gn!==void 0?gn:yn}),Wt=z.useRef(null),Oe=yn=>{yn!=null&&yn.target&&yn.type==="click"&&Ye&&Ye(yn.target.value,yn,{source:"clear"}),mt==null||mt(yn)},tt=yn=>{var gn;document.activeElement===((gn=Wt.current)===null||gn===void 0?void 0:gn.input)&&yn.preventDefault()},Tt=yn=>{var gn,zn;Ye&&Ye((zn=(gn=Wt.current)===null||gn===void 0?void 0:gn.input)===null||zn===void 0?void 0:zn.value,yn,{source:"input"})},zt=yn=>{_t.current||ht||Tt(yn)},Ie=typeof he=="boolean"?z.createElement(Jt.Z,null):null,Xe=`${Zt}-button`;let ft;const Mt=he||{},Gt=Mt.type&&Mt.type.__ANT_BUTTON===!0;Gt||Mt.type==="button"?ft=(0,Dt.Tm)(Mt,Object.assign({onMouseDown:tt,onClick:yn=>{var gn,zn;(zn=(gn=Mt==null?void 0:Mt.props)===null||gn===void 0?void 0:gn.onClick)===null||zn===void 0||zn.call(gn,yn),Tt(yn)},key:"enterButton"},Gt?{className:Xe,size:qt}:{})):ft=z.createElement(We.ZP,{className:Xe,type:he?"primary":void 0,size:qt,disabled:Me,key:"enterButton",onMouseDown:tt,onClick:Tt,loading:ht,icon:Ie},he),be&&(ft=[ft,(0,Dt.Tm)(be,{key:"addonAfter"})]);const cn=ge()(Zt,{[`${Zt}-rtl`]:jt==="rtl",[`${Zt}-${qt}`]:!!qt,[`${Zt}-with-button`]:!!he},oe),En=Object.assign(Object.assign({},Xt),{className:cn,prefixCls:ln,type:"search"}),Sn=yn=>{_t.current=!0,It==null||It(yn)},sn=yn=>{_t.current=!1,xt==null||xt(yn)};return z.createElement(Pe.Z,Object.assign({ref:(0,pe.sQ)(Wt,ae),onPressEnter:zt},En,{size:qt,onCompositionStart:Sn,onCompositionEnd:sn,addonAfter:ft,suffix:re,onChange:Oe,disabled:Me}))}),Vt=ie(79809);const rt=Pe.Z;rt.Group=Ue,rt.Search=Lt,rt.TextArea=Vt.Z,rt.Password=Et,rt.OTP=Ct;var Ht=rt},24303:function(rn,Ft,ie){"use strict";ie.d(Ft,{D:function(){return _e},Z:function(){return it}});var z=ie(59301),Ke=ie(54476),ge={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},Ze=ge,xe=ie(7657),Se=function(ze,gt){return z.createElement(xe.Z,(0,Ke.Z)({},ze,{ref:gt,icon:Ze}))},De=z.forwardRef(Se),Ue=De,Pe=ie(33853),de=ie(38819),He=ie(92310),ye=ie.n(He),vt=ie(2738),je=ie(48755),Te=ie(6989),ke=ie(36237),Ne=ie(48923),yt=ie(16931);const wt=Ct=>{const{componentCls:ze,siderBg:gt,motionDurationMid:ut,motionDurationSlow:pe,antCls:At,triggerHeight:Be,triggerColor:Nt,triggerBg:on,headerHeight:Ee,zeroTriggerWidth:fe,zeroTriggerHeight:Et,borderRadiusLG:Jt,lightSiderBg:Dt,lightTriggerColor:We,lightTriggerBg:ot,bodyBg:dt}=Ct;return{[ze]:{position:"relative",minWidth:0,background:gt,transition:`all ${ut}, background 0s`,"&-has-trigger":{paddingBottom:Be},"&-right":{order:1},[`${ze}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${At}-menu${At}-menu-inline-collapsed`]:{width:"auto"}},[`&-zero-width ${ze}-children`]:{overflow:"hidden"},[`${ze}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:Be,color:Nt,lineHeight:(0,ke.unit)(Be),textAlign:"center",background:on,cursor:"pointer",transition:`all ${ut}`},[`${ze}-zero-width-trigger`]:{position:"absolute",top:Ee,insetInlineEnd:Ct.calc(fe).mul(-1).equal(),zIndex:1,width:fe,height:Et,color:Nt,fontSize:Ct.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:gt,borderRadius:`0 ${(0,ke.unit)(Jt)} ${(0,ke.unit)(Jt)} 0`,cursor:"pointer",transition:`background ${pe} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${pe}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:Ct.calc(fe).mul(-1).equal(),borderRadius:`${(0,ke.unit)(Jt)} 0 0 ${(0,ke.unit)(Jt)}`}},"&-light":{background:Dt,[`${ze}-trigger`]:{color:We,background:ot},[`${ze}-zero-width-trigger`]:{color:We,background:ot,border:`1px solid ${dt}`,borderInlineStart:0}}}}};var Pt=(0,yt.I$)(["Layout","Sider"],Ct=>[wt(Ct)],Ne.eh,{deprecatedTokens:Ne.jn}),bt=function(Ct,ze){var gt={};for(var ut in Ct)Object.prototype.hasOwnProperty.call(Ct,ut)&&ze.indexOf(ut)<0&&(gt[ut]=Ct[ut]);if(Ct!=null&&typeof Object.getOwnPropertySymbols=="function")for(var pe=0,ut=Object.getOwnPropertySymbols(Ct);pe<ut.length;pe++)ze.indexOf(ut[pe])<0&&Object.prototype.propertyIsEnumerable.call(Ct,ut[pe])&&(gt[ut[pe]]=Ct[ut[pe]]);return gt};const pt={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},lt=Ct=>!Number.isNaN(Number.parseFloat(Ct))&&isFinite(Ct),_e=z.createContext({}),kt=(()=>{let Ct=0;return function(){let ze=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return Ct+=1,`${ze}${Ct}`}})();var it=z.forwardRef((Ct,ze)=>{const{prefixCls:gt,className:ut,trigger:pe,children:At,defaultCollapsed:Be=!1,theme:Nt="dark",style:on={},collapsible:Ee=!1,reverseArrow:fe=!1,width:Et=200,collapsedWidth:Jt=80,zeroWidthTriggerStyle:Dt,breakpoint:We,onCollapse:ot,onBreakpoint:dt}=Ct,$t=bt(Ct,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:Lt}=(0,z.useContext)(Te.V),[Vt,rt]=(0,z.useState)("collapsed"in Ct?Ct.collapsed:Be),[Ht,st]=(0,z.useState)(!1);(0,z.useEffect)(()=>{"collapsed"in Ct&&rt(Ct.collapsed)},[Ct.collapsed]);const ae=(qt,Wt)=>{"collapsed"in Ct||rt(qt),ot==null||ot(qt,Wt)},{getPrefixCls:te,direction:ee}=(0,z.useContext)(je.E_),oe=te("layout-sider",gt),[se,re,he]=Pt(oe),be=(0,z.useRef)(null);be.current=qt=>{st(qt.matches),dt==null||dt(qt.matches),Vt!==qt.matches&&ae(qt.matches,"responsive")},(0,z.useEffect)(()=>{function qt(Oe){return be.current(Oe)}let Wt;if(typeof window!="undefined"){const{matchMedia:Oe}=window;if(Oe&&We&&We in pt){Wt=Oe(`screen and (max-width: ${pt[We]})`);try{Wt.addEventListener("change",qt)}catch(tt){Wt.addListener(qt)}qt(Wt)}}return()=>{try{Wt==null||Wt.removeEventListener("change",qt)}catch(Oe){Wt==null||Wt.removeListener(qt)}}},[We]),(0,z.useEffect)(()=>{const qt=kt("ant-sider-");return Lt.addSider(qt),()=>Lt.removeSider(qt)},[]);const ht=()=>{ae(!Vt,"clickTrigger")},Me=(0,vt.Z)($t,["collapsed"]),Ye=Vt?Jt:Et,mt=lt(Ye)?`${Ye}px`:String(Ye),It=parseFloat(String(Jt||0))===0?z.createElement("span",{onClick:ht,className:ye()(`${oe}-zero-width-trigger`,`${oe}-zero-width-trigger-${fe?"right":"left"}`),style:Dt},pe||z.createElement(Ue,null)):null,xt=ee==="rtl"==!fe,jt={expanded:xt?z.createElement(de.Z,null):z.createElement(Pe.Z,null),collapsed:xt?z.createElement(Pe.Z,null):z.createElement(de.Z,null)}[Vt?"collapsed":"expanded"],_t=pe!==null?It||z.createElement("div",{className:`${oe}-trigger`,onClick:ht,style:{width:mt}},pe||jt):null,Zt=Object.assign(Object.assign({},on),{flex:`0 0 ${mt}`,maxWidth:mt,minWidth:mt,width:mt}),ln=ye()(oe,`${oe}-${Nt}`,{[`${oe}-collapsed`]:!!Vt,[`${oe}-has-trigger`]:Ee&&pe!==null&&!It,[`${oe}-below`]:!!Ht,[`${oe}-zero-width`]:parseFloat(mt)===0},ut,re,he),St=z.useMemo(()=>({siderCollapsed:Vt}),[Vt]);return se(z.createElement(_e.Provider,{value:St},z.createElement("aside",Object.assign({className:ln},Me,{style:Zt,ref:ze}),z.createElement("div",{className:`${oe}-children`},At),Ee||Ht&&It?_t:null)))})},6989:function(rn,Ft,ie){"use strict";ie.d(Ft,{V:function(){return Ke}});var z=ie(59301);const Ke=z.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}})},24404:function(rn,Ft,ie){"use strict";ie.d(Ft,{default:function(){return pt}});var z=ie(94480),Ke=ie(59301),ge=ie(92310),Ze=ie.n(ge),xe=ie(2738),Se=ie(48755),De=ie(6989),Ue=ie(11592),Pe=ie(24303);function de(lt,_e,kt){return typeof kt=="boolean"?kt:lt.length?!0:(0,Ue.Z)(_e).some(it=>it.type===Pe.Z)}var He=ie(48923),ye=function(lt,_e){var kt={};for(var nt in lt)Object.prototype.hasOwnProperty.call(lt,nt)&&_e.indexOf(nt)<0&&(kt[nt]=lt[nt]);if(lt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var it=0,nt=Object.getOwnPropertySymbols(lt);it<nt.length;it++)_e.indexOf(nt[it])<0&&Object.prototype.propertyIsEnumerable.call(lt,nt[it])&&(kt[nt[it]]=lt[nt[it]]);return kt};function vt(lt){let{suffixCls:_e,tagName:kt,displayName:nt}=lt;return it=>Ke.forwardRef((ze,gt)=>Ke.createElement(it,Object.assign({ref:gt,suffixCls:_e,tagName:kt},ze)))}const je=Ke.forwardRef((lt,_e)=>{const{prefixCls:kt,suffixCls:nt,className:it,tagName:Ct}=lt,ze=ye(lt,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:gt}=Ke.useContext(Se.E_),ut=gt("layout",kt),[pe,At,Be]=(0,He.ZP)(ut),Nt=nt?`${ut}-${nt}`:ut;return pe(Ke.createElement(Ct,Object.assign({className:Ze()(kt||Nt,it,At,Be),ref:_e},ze)))}),Te=Ke.forwardRef((lt,_e)=>{const{direction:kt}=Ke.useContext(Se.E_),[nt,it]=Ke.useState([]),{prefixCls:Ct,className:ze,rootClassName:gt,children:ut,hasSider:pe,tagName:At,style:Be}=lt,Nt=ye(lt,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),on=(0,xe.Z)(Nt,["suffixCls"]),{getPrefixCls:Ee,className:fe,style:Et}=(0,Se.dj)("layout"),Jt=Ee("layout",Ct),Dt=de(nt,ut,pe),[We,ot,dt]=(0,He.ZP)(Jt),$t=Ze()(Jt,{[`${Jt}-has-sider`]:Dt,[`${Jt}-rtl`]:kt==="rtl"},fe,ze,gt,ot,dt),Lt=Ke.useMemo(()=>({siderHook:{addSider:Vt=>{it(rt=>[].concat((0,z.Z)(rt),[Vt]))},removeSider:Vt=>{it(rt=>rt.filter(Ht=>Ht!==Vt))}}}),[]);return We(Ke.createElement(De.V.Provider,{value:Lt},Ke.createElement(At,Object.assign({ref:_e,className:$t,style:Object.assign(Object.assign({},Et),Be)},on),ut)))}),ke=vt({tagName:"div",displayName:"Layout"})(Te),Ne=vt({suffixCls:"header",tagName:"header",displayName:"Header"})(je),yt=vt({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(je),wt=vt({suffixCls:"content",tagName:"main",displayName:"Content"})(je);var Pt=ke;const bt=Pt;bt.Header=Ne,bt.Footer=yt,bt.Content=wt,bt.Sider=Pe.Z,bt._InternalSiderContext=Pe.D;var pt=bt},48923:function(rn,Ft,ie){"use strict";ie.d(Ft,{eh:function(){return Ze},jn:function(){return xe}});var z=ie(36237),Ke=ie(16931);const ge=Se=>{const{antCls:De,componentCls:Ue,colorText:Pe,footerBg:de,headerHeight:He,headerPadding:ye,headerColor:vt,footerPadding:je,fontSize:Te,bodyBg:ke,headerBg:Ne}=Se;return{[Ue]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:ke,"&, *":{boxSizing:"border-box"},[`&${Ue}-has-sider`]:{flexDirection:"row",[`> ${Ue}, > ${Ue}-content`]:{width:0}},[`${Ue}-header, &${Ue}-footer`]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},[`${Ue}-header`]:{height:He,padding:ye,color:vt,lineHeight:(0,z.unit)(He),background:Ne,[`${De}-menu`]:{lineHeight:"inherit"}},[`${Ue}-footer`]:{padding:je,color:Pe,fontSize:Te,background:de},[`${Ue}-content`]:{flex:"auto",color:Pe,minHeight:0}}},Ze=Se=>{const{colorBgLayout:De,controlHeight:Ue,controlHeightLG:Pe,colorText:de,controlHeightSM:He,marginXXS:ye,colorTextLightSolid:vt,colorBgContainer:je}=Se,Te=Pe*1.25;return{colorBgHeader:"#001529",colorBgBody:De,colorBgTrigger:"#002140",bodyBg:De,headerBg:"#001529",headerHeight:Ue*2,headerPadding:`0 ${Te}px`,headerColor:de,footerPadding:`${He}px ${Te}px`,footerBg:De,siderBg:"#001529",triggerHeight:Pe+ye*2,triggerBg:"#002140",triggerColor:vt,zeroTriggerWidth:Pe,zeroTriggerHeight:Pe,lightSiderBg:je,lightTriggerBg:je,lightTriggerColor:de}},xe=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]];Ft.ZP=(0,Ke.I$)("Layout",Se=>[ge(Se)],Ze,{deprecatedTokens:xe})},78857:function(rn,Ft,ie){"use strict";ie.d(Ft,{J:function(){return Se}});var z=ie(59301),Ke=ie(8654),ge=ie(62487),Ze=function(De,Ue){var Pe={};for(var de in De)Object.prototype.hasOwnProperty.call(De,de)&&Ue.indexOf(de)<0&&(Pe[de]=De[de]);if(De!=null&&typeof Object.getOwnPropertySymbols=="function")for(var He=0,de=Object.getOwnPropertySymbols(De);He<de.length;He++)Ue.indexOf(de[He])<0&&Object.prototype.propertyIsEnumerable.call(De,de[He])&&(Pe[de[He]]=De[de[He]]);return Pe};const xe=z.createContext(null),Se=z.forwardRef((De,Ue)=>{const{children:Pe}=De,de=Ze(De,["children"]),He=z.useContext(xe),ye=z.useMemo(()=>Object.assign(Object.assign({},He),de),[He,de.prefixCls,de.mode,de.selectable,de.rootClassName]),vt=(0,Ke.t4)(Pe),je=(0,Ke.x1)(Ue,vt?(0,Ke.C4)(Pe):null);return z.createElement(xe.Provider,{value:ye},z.createElement(ge.Z,{space:!0},vt?z.cloneElement(Pe,{ref:je}):Pe))});Ft.Z=xe},93041:function(rn,Ft,ie){"use strict";ie.d(Ft,{default:function(){return se}});var z=ie(59301),Ke=ie(28321),ge=ie(24303),Ze=ie(18785),xe=ie(92310),Se=ie.n(xe),De=ie(6089),Ue=ie(2738),Pe=ie(86641),de=ie(22703),He=ie(48755),ye=ie(83397),je=(0,z.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),Te=function(re,he){var be={};for(var ht in re)Object.prototype.hasOwnProperty.call(re,ht)&&he.indexOf(ht)<0&&(be[ht]=re[ht]);if(re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Me=0,ht=Object.getOwnPropertySymbols(re);Me<ht.length;Me++)he.indexOf(ht[Me])<0&&Object.prototype.propertyIsEnumerable.call(re,ht[Me])&&(be[ht[Me]]=re[ht[Me]]);return be},Ne=re=>{const{prefixCls:he,className:be,dashed:ht}=re,Me=Te(re,["prefixCls","className","dashed"]),{getPrefixCls:Ye}=z.useContext(He.E_),mt=Ye("menu",he),It=Se()({[`${mt}-item-divider-dashed`]:!!ht},be);return z.createElement(Ke.iz,Object.assign({className:It},Me))},yt=ie(11592),wt=ie(25399),bt=re=>{var he;const{className:be,children:ht,icon:Me,title:Ye,danger:mt,extra:It}=re,{prefixCls:xt,firstLevel:Xt,direction:Kt,disableMenuItemTitleTooltip:jt,inlineCollapsed:_t}=z.useContext(je),Zt=tt=>{const Tt=ht==null?void 0:ht[0],zt=z.createElement("span",{className:Se()(`${xt}-title-content`,{[`${xt}-title-content-with-extra`]:!!It||It===0})},ht);return(!Me||z.isValidElement(ht)&&ht.type==="span")&&ht&&tt&&Xt&&typeof Tt=="string"?z.createElement("div",{className:`${xt}-inline-collapsed-noicon`},Tt.charAt(0)):zt},{siderCollapsed:ln}=z.useContext(ge.D);let St=Ye;typeof Ye=="undefined"?St=Xt?ht:"":Ye===!1&&(St="");const qt={title:St};!ln&&!_t&&(qt.title=null,qt.open=!1);const Wt=(0,yt.Z)(ht).length;let Oe=z.createElement(Ke.ck,Object.assign({},(0,Ue.Z)(re,["title","icon","danger"]),{className:Se()({[`${xt}-item-danger`]:mt,[`${xt}-item-only-child`]:(Me?Wt+1:Wt)===1},be),title:typeof Ye=="string"?Ye:void 0}),(0,de.Tm)(Me,{className:Se()(z.isValidElement(Me)?(he=Me.props)===null||he===void 0?void 0:he.className:"",`${xt}-item-icon`)}),Zt(_t));return jt||(Oe=z.createElement(wt.Z,Object.assign({},qt,{placement:Kt==="rtl"?"left":"right",classNames:{root:`${xt}-inline-collapsed-tooltip`}}),Oe)),Oe},pt=ie(78857),lt=ie(36237),_e=ie(17835),kt=ie(63356),nt=ie(34961),it=ie(46e3),Ct=ie(34925),ze=ie(16931),gt=ie(51636),pe=re=>{const{componentCls:he,motionDurationSlow:be,horizontalLineHeight:ht,colorSplit:Me,lineWidth:Ye,lineType:mt,itemPaddingInline:It}=re;return{[`${he}-horizontal`]:{lineHeight:ht,border:0,borderBottom:`${(0,lt.unit)(Ye)} ${mt} ${Me}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${he}-item, ${he}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:It},[`> ${he}-item:hover,
> ${he}-item-active,
> ${he}-submenu ${he}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${he}-item, ${he}-submenu-title`]:{transition:[`border-color ${be}`,`background ${be}`].join(",")},[`${he}-submenu-arrow`]:{display:"none"}}}},Be=re=>{let{componentCls:he,menuArrowOffset:be,calc:ht}=re;return{[`${he}-rtl`]:{direction:"rtl"},[`${he}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${he}-rtl${he}-vertical,
${he}-submenu-rtl ${he}-vertical`]:{[`${he}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${(0,lt.unit)(ht(be).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${(0,lt.unit)(be)})`}}}}};const Nt=re=>Object.assign({},(0,kt.oN)(re));var Ee=(re,he)=>{const{componentCls:be,itemColor:ht,itemSelectedColor:Me,subMenuItemSelectedColor:Ye,groupTitleColor:mt,itemBg:It,subMenuItemBg:xt,itemSelectedBg:Xt,activeBarHeight:Kt,activeBarWidth:jt,activeBarBorderWidth:_t,motionDurationSlow:Zt,motionEaseInOut:ln,motionEaseOut:St,itemPaddingInline:qt,motionDurationMid:Wt,itemHoverColor:Oe,lineType:tt,colorSplit:Tt,itemDisabledColor:zt,dangerItemColor:Ie,dangerItemHoverColor:Xe,dangerItemSelectedColor:ft,dangerItemActiveBg:Mt,dangerItemSelectedBg:Gt,popupBg:cn,itemHoverBg:En,itemActiveBg:Sn,menuSubMenuBg:sn,horizontalItemSelectedColor:yn,horizontalItemSelectedBg:gn,horizontalItemBorderRadius:zn,horizontalItemHoverBg:bn}=re;return{[`${be}-${he}, ${be}-${he} > ${be}`]:{color:ht,background:It,[`&${be}-root:focus-visible`]:Object.assign({},Nt(re)),[`${be}-item`]:{"&-group-title, &-extra":{color:mt}},[`${be}-submenu-selected > ${be}-submenu-title`]:{color:Ye},[`${be}-item, ${be}-submenu-title`]:{color:ht,[`&:not(${be}-item-disabled):focus-visible`]:Object.assign({},Nt(re))},[`${be}-item-disabled, ${be}-submenu-disabled`]:{color:`${zt} !important`},[`${be}-item:not(${be}-item-selected):not(${be}-submenu-selected)`]:{[`&:hover, > ${be}-submenu-title:hover`]:{color:Oe}},[`&:not(${be}-horizontal)`]:{[`${be}-item:not(${be}-item-selected)`]:{"&:hover":{backgroundColor:En},"&:active":{backgroundColor:Sn}},[`${be}-submenu-title`]:{"&:hover":{backgroundColor:En},"&:active":{backgroundColor:Sn}}},[`${be}-item-danger`]:{color:Ie,[`&${be}-item:hover`]:{[`&:not(${be}-item-selected):not(${be}-submenu-selected)`]:{color:Xe}},[`&${be}-item:active`]:{background:Mt}},[`${be}-item a`]:{"&, &:hover":{color:"inherit"}},[`${be}-item-selected`]:{color:Me,[`&${be}-item-danger`]:{color:ft},"a, a:hover":{color:"inherit"}},[`& ${be}-item-selected`]:{backgroundColor:Xt,[`&${be}-item-danger`]:{backgroundColor:Gt}},[`&${be}-submenu > ${be}`]:{backgroundColor:sn},[`&${be}-popup > ${be}`]:{backgroundColor:cn},[`&${be}-submenu-popup > ${be}`]:{backgroundColor:cn},[`&${be}-horizontal`]:Object.assign(Object.assign({},he==="dark"?{borderBottom:0}:{}),{[`> ${be}-item, > ${be}-submenu`]:{top:_t,marginTop:re.calc(_t).mul(-1).equal(),marginBottom:0,borderRadius:zn,"&::after":{position:"absolute",insetInline:qt,bottom:0,borderBottom:`${(0,lt.unit)(Kt)} solid transparent`,transition:`border-color ${Zt} ${ln}`,content:'""'},"&:hover, &-active, &-open":{background:bn,"&::after":{borderBottomWidth:Kt,borderBottomColor:yn}},"&-selected":{color:yn,backgroundColor:gn,"&:hover":{backgroundColor:gn},"&::after":{borderBottomWidth:Kt,borderBottomColor:yn}}}}),[`&${be}-root`]:{[`&${be}-inline, &${be}-vertical`]:{borderInlineEnd:`${(0,lt.unit)(_t)} ${tt} ${Tt}`}},[`&${be}-inline`]:{[`${be}-sub${be}-inline`]:{background:xt},[`${be}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${(0,lt.unit)(jt)} solid ${Me}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${Wt} ${St}`,`opacity ${Wt} ${St}`].join(","),content:'""'},[`&${be}-item-danger`]:{"&::after":{borderInlineEndColor:ft}}},[`${be}-selected, ${be}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${Wt} ${ln}`,`opacity ${Wt} ${ln}`].join(",")}}}}}};const fe=re=>{const{componentCls:he,itemHeight:be,itemMarginInline:ht,padding:Me,menuArrowSize:Ye,marginXS:mt,itemMarginBlock:It,itemWidth:xt,itemPaddingInline:Xt}=re,Kt=re.calc(Ye).add(Me).add(mt).equal();return{[`${he}-item`]:{position:"relative",overflow:"hidden"},[`${he}-item, ${he}-submenu-title`]:{height:be,lineHeight:(0,lt.unit)(be),paddingInline:Xt,overflow:"hidden",textOverflow:"ellipsis",marginInline:ht,marginBlock:It,width:xt},[`> ${he}-item,
> ${he}-submenu > ${he}-submenu-title`]:{height:be,lineHeight:(0,lt.unit)(be)},[`${he}-item-group-list ${he}-submenu-title,
${he}-submenu-title`]:{paddingInlineEnd:Kt}}};var Jt=re=>{const{componentCls:he,iconCls:be,itemHeight:ht,colorTextLightSolid:Me,dropdownWidth:Ye,controlHeightLG:mt,motionEaseOut:It,paddingXL:xt,itemMarginInline:Xt,fontSizeLG:Kt,motionDurationFast:jt,motionDurationSlow:_t,paddingXS:Zt,boxShadowSecondary:ln,collapsedWidth:St,collapsedIconSize:qt}=re,Wt={height:ht,lineHeight:(0,lt.unit)(ht),listStylePosition:"inside",listStyleType:"disc"};return[{[he]:{"&-inline, &-vertical":Object.assign({[`&${he}-root`]:{boxShadow:"none"}},fe(re))},[`${he}-submenu-popup`]:{[`${he}-vertical`]:Object.assign(Object.assign({},fe(re)),{boxShadow:ln})}},{[`${he}-submenu-popup ${he}-vertical${he}-sub`]:{minWidth:Ye,maxHeight:`calc(100vh - ${(0,lt.unit)(re.calc(mt).mul(2.5).equal())})`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${he}-inline`]:{width:"100%",[`&${he}-root`]:{[`${he}-item, ${he}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${_t}`,`background ${_t}`,`padding ${jt} ${It}`].join(","),[`> ${he}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${he}-sub${he}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${he}-submenu > ${he}-submenu-title`]:Wt,[`& ${he}-item-group-title`]:{paddingInlineStart:xt}},[`${he}-item`]:Wt}},{[`${he}-inline-collapsed`]:{width:St,[`&${he}-root`]:{[`${he}-item, ${he}-submenu ${he}-submenu-title`]:{[`> ${he}-inline-collapsed-noicon`]:{fontSize:Kt,textAlign:"center"}}},[`> ${he}-item,
> ${he}-item-group > ${he}-item-group-list > ${he}-item,
> ${he}-item-group > ${he}-item-group-list > ${he}-submenu > ${he}-submenu-title,
> ${he}-submenu > ${he}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${(0,lt.unit)(re.calc(qt).div(2).equal())} - ${(0,lt.unit)(Xt)})`,textOverflow:"clip",[`
${he}-submenu-arrow,
${he}-submenu-expand-icon
`]:{opacity:0},[`${he}-item-icon, ${be}`]:{margin:0,fontSize:qt,lineHeight:(0,lt.unit)(ht),"+ span":{display:"inline-block",opacity:0}}},[`${he}-item-icon, ${be}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${he}-item-icon, ${be}`]:{display:"none"},"a, a:hover":{color:Me}},[`${he}-item-group-title`]:Object.assign(Object.assign({},kt.vS),{paddingInline:Zt})}}]};const Dt=re=>{const{componentCls:he,motionDurationSlow:be,motionDurationMid:ht,motionEaseInOut:Me,motionEaseOut:Ye,iconCls:mt,iconSize:It,iconMarginInlineEnd:xt}=re;return{[`${he}-item, ${he}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${be}`,`background ${be}`,`padding calc(${be} + 0.1s) ${Me}`].join(","),[`${he}-item-icon, ${mt}`]:{minWidth:It,fontSize:It,transition:[`font-size ${ht} ${Ye}`,`margin ${be} ${Me}`,`color ${be}`].join(","),"+ span":{marginInlineStart:xt,opacity:1,transition:[`opacity ${be} ${Me}`,`margin ${be}`,`color ${be}`].join(",")}},[`${he}-item-icon`]:Object.assign({},(0,kt.Ro)()),[`&${he}-item-only-child`]:{[`> ${mt}, > ${he}-item-icon`]:{marginInlineEnd:0}}},[`${he}-item-disabled, ${he}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important",cursor:"not-allowed",pointerEvents:"none"},[`> ${he}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},We=re=>{const{componentCls:he,motionDurationSlow:be,motionEaseInOut:ht,borderRadius:Me,menuArrowSize:Ye,menuArrowOffset:mt}=re;return{[`${he}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:re.margin,width:Ye,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${be} ${ht}, opacity ${be}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:re.calc(Ye).mul(.6).equal(),height:re.calc(Ye).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:Me,transition:[`background ${be} ${ht}`,`transform ${be} ${ht}`,`top ${be} ${ht}`,`color ${be} ${ht}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(${(0,lt.unit)(re.calc(mt).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${(0,lt.unit)(mt)})`}}}}},ot=re=>{const{antCls:he,componentCls:be,fontSize:ht,motionDurationSlow:Me,motionDurationMid:Ye,motionEaseInOut:mt,paddingXS:It,padding:xt,colorSplit:Xt,lineWidth:Kt,zIndexPopup:jt,borderRadiusLG:_t,subMenuItemBorderRadius:Zt,menuArrowSize:ln,menuArrowOffset:St,lineType:qt,groupTitleLineHeight:Wt,groupTitleFontSize:Oe}=re;return[{"":{[be]:Object.assign(Object.assign({},(0,kt.dF)()),{"&-hidden":{display:"none"}})},[`${be}-submenu-hidden`]:{display:"none"}},{[be]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,kt.Wf)(re)),(0,kt.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:ht,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Me} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${be}-item`]:{flex:"none"}},[`${be}-item, ${be}-submenu, ${be}-submenu-title`]:{borderRadius:re.itemBorderRadius},[`${be}-item-group-title`]:{padding:`${(0,lt.unit)(It)} ${(0,lt.unit)(xt)}`,fontSize:Oe,lineHeight:Wt,transition:`all ${Me}`},[`&-horizontal ${be}-submenu`]:{transition:[`border-color ${Me} ${mt}`,`background ${Me} ${mt}`].join(",")},[`${be}-submenu, ${be}-submenu-inline`]:{transition:[`border-color ${Me} ${mt}`,`background ${Me} ${mt}`,`padding ${Ye} ${mt}`].join(",")},[`${be}-submenu ${be}-sub`]:{cursor:"initial",transition:[`background ${Me} ${mt}`,`padding ${Me} ${mt}`].join(",")},[`${be}-title-content`]:{transition:`color ${Me}`,"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},[`> ${he}-typography-ellipsis-single-line`]:{display:"inline",verticalAlign:"unset"},[`${be}-item-extra`]:{marginInlineStart:"auto",paddingInlineStart:re.padding}},[`${be}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${be}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:Xt,borderStyle:qt,borderWidth:0,borderTopWidth:Kt,marginBlock:Kt,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Dt(re)),{[`${be}-item-group`]:{[`${be}-item-group-list`]:{margin:0,padding:0,[`${be}-item, ${be}-submenu-title`]:{paddingInline:`${(0,lt.unit)(re.calc(ht).mul(2).equal())} ${(0,lt.unit)(xt)}`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:jt,borderRadius:_t,boxShadow:"none",transformOrigin:"0 0",[`&${be}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},[`> ${be}`]:Object.assign(Object.assign(Object.assign({borderRadius:_t},Dt(re)),We(re)),{[`${be}-item, ${be}-submenu > ${be}-submenu-title`]:{borderRadius:Zt},[`${be}-submenu-title::after`]:{transition:`transform ${Me} ${mt}`}})},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:re.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:re.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:re.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:re.paddingXS}}}),We(re)),{[`&-inline-collapsed ${be}-submenu-arrow,
&-inline ${be}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${(0,lt.unit)(St)})`},"&::after":{transform:`rotate(45deg) translateX(${(0,lt.unit)(re.calc(St).mul(-1).equal())})`}},[`${be}-submenu-open${be}-submenu-inline > ${be}-submenu-title > ${be}-submenu-arrow`]:{transform:`translateY(${(0,lt.unit)(re.calc(ln).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${(0,lt.unit)(re.calc(St).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${(0,lt.unit)(St)})`}}})},{[`${he}-layout-header`]:{[be]:{lineHeight:"inherit"}}}]},dt=re=>{var he,be,ht;const{colorPrimary:Me,colorError:Ye,colorTextDisabled:mt,colorErrorBg:It,colorText:xt,colorTextDescription:Xt,colorBgContainer:Kt,colorFillAlter:jt,colorFillContent:_t,lineWidth:Zt,lineWidthBold:ln,controlItemBgActive:St,colorBgTextHover:qt,controlHeightLG:Wt,lineHeight:Oe,colorBgElevated:tt,marginXXS:Tt,padding:zt,fontSize:Ie,controlHeightSM:Xe,fontSizeLG:ft,colorTextLightSolid:Mt,colorErrorHover:Gt}=re,cn=(he=re.activeBarWidth)!==null&&he!==void 0?he:0,En=(be=re.activeBarBorderWidth)!==null&&be!==void 0?be:Zt,Sn=(ht=re.itemMarginInline)!==null&&ht!==void 0?ht:re.marginXXS,sn=new _e.FastColor(Mt).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:re.zIndexPopupBase+50,radiusItem:re.borderRadiusLG,itemBorderRadius:re.borderRadiusLG,radiusSubMenuItem:re.borderRadiusSM,subMenuItemBorderRadius:re.borderRadiusSM,colorItemText:xt,itemColor:xt,colorItemTextHover:xt,itemHoverColor:xt,colorItemTextHoverHorizontal:Me,horizontalItemHoverColor:Me,colorGroupTitle:Xt,groupTitleColor:Xt,colorItemTextSelected:Me,itemSelectedColor:Me,subMenuItemSelectedColor:Me,colorItemTextSelectedHorizontal:Me,horizontalItemSelectedColor:Me,colorItemBg:Kt,itemBg:Kt,colorItemBgHover:qt,itemHoverBg:qt,colorItemBgActive:_t,itemActiveBg:St,colorSubItemBg:jt,subMenuItemBg:jt,colorItemBgSelected:St,itemSelectedBg:St,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:cn,colorActiveBarHeight:ln,activeBarHeight:ln,colorActiveBarBorderSize:Zt,activeBarBorderWidth:En,colorItemTextDisabled:mt,itemDisabledColor:mt,colorDangerItemText:Ye,dangerItemColor:Ye,colorDangerItemTextHover:Ye,dangerItemHoverColor:Ye,colorDangerItemTextSelected:Ye,dangerItemSelectedColor:Ye,colorDangerItemBgActive:It,dangerItemActiveBg:It,colorDangerItemBgSelected:It,dangerItemSelectedBg:It,itemMarginInline:Sn,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:Wt,groupTitleLineHeight:Oe,collapsedWidth:Wt*2,popupBg:tt,itemMarginBlock:Tt,itemPaddingInline:zt,horizontalLineHeight:`${Wt*1.15}px`,iconSize:Ie,iconMarginInlineEnd:Xe-Ie,collapsedIconSize:ft,groupTitleFontSize:Ie,darkItemDisabledColor:new _e.FastColor(Mt).setA(.25).toRgbString(),darkItemColor:sn,darkDangerItemColor:Ye,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Mt,darkItemSelectedBg:Me,darkDangerItemSelectedBg:Ye,darkItemHoverBg:"transparent",darkGroupTitleColor:sn,darkItemHoverColor:Mt,darkDangerItemHoverColor:Gt,darkDangerItemSelectedColor:Mt,darkDangerItemActiveBg:Ye,itemWidth:cn?`calc(100% + ${En}px)`:`calc(100% - ${Sn*2}px)`}};var $t=function(re){let he=arguments.length>1&&arguments[1]!==void 0?arguments[1]:re,be=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;return(0,ze.I$)("Menu",Me=>{const{colorBgElevated:Ye,controlHeightLG:mt,fontSize:It,darkItemColor:xt,darkDangerItemColor:Xt,darkItemBg:Kt,darkSubMenuItemBg:jt,darkItemSelectedColor:_t,darkItemSelectedBg:Zt,darkDangerItemSelectedBg:ln,darkItemHoverBg:St,darkGroupTitleColor:qt,darkItemHoverColor:Wt,darkItemDisabledColor:Oe,darkDangerItemHoverColor:tt,darkDangerItemSelectedColor:Tt,darkDangerItemActiveBg:zt,popupBg:Ie,darkPopupBg:Xe}=Me,ft=Me.calc(It).div(7).mul(5).equal(),Mt=(0,gt.mergeToken)(Me,{menuArrowSize:ft,menuHorizontalHeight:Me.calc(mt).mul(1.15).equal(),menuArrowOffset:Me.calc(ft).mul(.25).equal(),menuSubMenuBg:Ye,calc:Me.calc,popupBg:Ie}),Gt=(0,gt.mergeToken)(Mt,{itemColor:xt,itemHoverColor:Wt,groupTitleColor:qt,itemSelectedColor:_t,subMenuItemSelectedColor:_t,itemBg:Kt,popupBg:Xe,subMenuItemBg:jt,itemActiveBg:"transparent",itemSelectedBg:Zt,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:St,itemDisabledColor:Oe,dangerItemColor:Xt,dangerItemHoverColor:tt,dangerItemSelectedColor:Tt,dangerItemActiveBg:zt,dangerItemSelectedBg:ln,menuSubMenuBg:jt,horizontalItemSelectedColor:_t,horizontalItemSelectedBg:Zt});return[ot(Mt),pe(Mt),Jt(Mt),Ee(Mt,"light"),Ee(Gt,"dark"),Be(Mt),(0,nt.Z)(Mt),(0,it.oN)(Mt,"slide-up"),(0,it.oN)(Mt,"slide-down"),(0,Ct._y)(Mt,"zoom-big")]},dt,{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]],injectStyle:be,unitless:{groupTitleLineHeight:!0}})(re,he)},Lt=ie(75030),rt=re=>{var he;const{popupClassName:be,icon:ht,title:Me,theme:Ye}=re,mt=z.useContext(je),{prefixCls:It,inlineCollapsed:xt,theme:Xt}=mt,Kt=(0,Ke.Xl)();let jt;if(!ht)jt=xt&&!Kt.length&&Me&&typeof Me=="string"?z.createElement("div",{className:`${It}-inline-collapsed-noicon`},Me.charAt(0)):z.createElement("span",{className:`${It}-title-content`},Me);else{const ln=z.isValidElement(Me)&&Me.type==="span";jt=z.createElement(z.Fragment,null,(0,de.Tm)(ht,{className:Se()(z.isValidElement(ht)?(he=ht.props)===null||he===void 0?void 0:he.className:"",`${It}-item-icon`)}),ln?Me:z.createElement("span",{className:`${It}-title-content`},Me))}const _t=z.useMemo(()=>Object.assign(Object.assign({},mt),{firstLevel:!1}),[mt]),[Zt]=(0,Lt.Cn)("Menu");return z.createElement(je.Provider,{value:_t},z.createElement(Ke.Wd,Object.assign({},(0,Ue.Z)(re,["icon"]),{title:jt,popupClassName:Se()(It,be,`${It}-${Ye||Xt}`),popupStyle:Object.assign({zIndex:Zt},re.popupStyle)})))},Ht=function(re,he){var be={};for(var ht in re)Object.prototype.hasOwnProperty.call(re,ht)&&he.indexOf(ht)<0&&(be[ht]=re[ht]);if(re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Me=0,ht=Object.getOwnPropertySymbols(re);Me<ht.length;Me++)he.indexOf(ht[Me])<0&&Object.prototype.propertyIsEnumerable.call(re,ht[Me])&&(be[ht[Me]]=re[ht[Me]]);return be};function st(re){return re===null||re===!1}const ae={item:bt,submenu:rt,divider:Ne};var ee=(0,z.forwardRef)((re,he)=>{var be;const ht=z.useContext(pt.Z),Me=ht||{},{getPrefixCls:Ye,getPopupContainer:mt,direction:It,menu:xt}=z.useContext(He.E_),Xt=Ye(),{prefixCls:Kt,className:jt,style:_t,theme:Zt="light",expandIcon:ln,_internalDisableMenuItemTitleTooltip:St,inlineCollapsed:qt,siderCollapsed:Wt,rootClassName:Oe,mode:tt,selectable:Tt,onClick:zt,overflowedIndicatorPopupClassName:Ie}=re,Xe=Ht(re,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),ft=(0,Ue.Z)(Xe,["collapsedWidth"]);(be=Me.validator)===null||be===void 0||be.call(Me,{mode:tt});const Mt=(0,De.Z)(function(){var mn;zt==null||zt.apply(void 0,arguments),(mn=Me.onClick)===null||mn===void 0||mn.call(Me)}),Gt=Me.mode||tt,cn=Tt!=null?Tt:Me.selectable,En=qt!=null?qt:Wt,Sn={horizontal:{motionName:`${Xt}-slide-up`},inline:(0,Pe.Z)(Xt),other:{motionName:`${Xt}-zoom-big`}},sn=Ye("menu",Kt||Me.prefixCls),yn=(0,ye.Z)(sn),[gn,zn,bn]=$t(sn,yn,!ht),vn=Se()(`${sn}-${Zt}`,xt==null?void 0:xt.className,jt),un=z.useMemo(()=>{var mn,Dn;if(typeof ln=="function"||st(ln))return ln||null;if(typeof Me.expandIcon=="function"||st(Me.expandIcon))return Me.expandIcon||null;if(typeof(xt==null?void 0:xt.expandIcon)=="function"||st(xt==null?void 0:xt.expandIcon))return(xt==null?void 0:xt.expandIcon)||null;const Wn=(mn=ln!=null?ln:Me==null?void 0:Me.expandIcon)!==null&&mn!==void 0?mn:xt==null?void 0:xt.expandIcon;return(0,de.Tm)(Wn,{className:Se()(`${sn}-submenu-expand-icon`,z.isValidElement(Wn)?(Dn=Wn.props)===null||Dn===void 0?void 0:Dn.className:void 0)})},[ln,Me==null?void 0:Me.expandIcon,xt==null?void 0:xt.expandIcon,sn]),On=z.useMemo(()=>({prefixCls:sn,inlineCollapsed:En||!1,direction:It,firstLevel:!0,theme:Zt,mode:Gt,disableMenuItemTitleTooltip:St}),[sn,En,It,St,Zt]);return gn(z.createElement(pt.Z.Provider,{value:null},z.createElement(je.Provider,{value:On},z.createElement(Ke.ZP,Object.assign({getPopupContainer:mt,overflowedIndicator:z.createElement(Ze.Z,null),overflowedIndicatorPopupClassName:Se()(sn,`${sn}-${Zt}`,Ie),mode:Gt,selectable:cn,onClick:Mt},ft,{inlineCollapsed:En,style:Object.assign(Object.assign({},xt==null?void 0:xt.style),_t),className:vn,prefixCls:sn,direction:It,defaultMotions:Sn,expandIcon:un,ref:he,rootClassName:Se()(Oe,zn,Me.rootClassName,bn,yn),_internalComponents:ae})))))});const oe=(0,z.forwardRef)((re,he)=>{const be=(0,z.useRef)(null),ht=z.useContext(ge.D);return(0,z.useImperativeHandle)(he,()=>({menu:be.current,focus:Me=>{var Ye;(Ye=be.current)===null||Ye===void 0||Ye.focus(Me)}})),z.createElement(ee,Object.assign({ref:be},re,ht))});oe.Item=bt,oe.SubMenu=rt,oe.Divider=Ne,oe.ItemGroup=Ke.BW;var se=oe},69106:function(rn,Ft,ie){"use strict";ie.d(Ft,{aV:function(){return Pe},t5:function(){return de}});var z=ie(59301),Ke=ie(92310),ge=ie.n(Ke),Ze=ie(29125),xe=ie(54500),Se=ie(48755),De=ie(85074),Ue=function(ye,vt){var je={};for(var Te in ye)Object.prototype.hasOwnProperty.call(ye,Te)&&vt.indexOf(Te)<0&&(je[Te]=ye[Te]);if(ye!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ke=0,Te=Object.getOwnPropertySymbols(ye);ke<Te.length;ke++)vt.indexOf(Te[ke])<0&&Object.prototype.propertyIsEnumerable.call(ye,Te[ke])&&(je[Te[ke]]=ye[Te[ke]]);return je};const Pe=ye=>{let{title:vt,content:je,prefixCls:Te}=ye;return!vt&&!je?null:z.createElement(z.Fragment,null,vt&&z.createElement("div",{className:`${Te}-title`},vt),je&&z.createElement("div",{className:`${Te}-inner-content`},je))},de=ye=>{const{hashId:vt,prefixCls:je,className:Te,style:ke,placement:Ne="top",title:yt,content:wt,children:Pt}=ye,bt=(0,xe.Z)(yt),pt=(0,xe.Z)(wt),lt=ge()(vt,je,`${je}-pure`,`${je}-placement-${Ne}`,Te);return z.createElement("div",{className:lt,style:ke},z.createElement("div",{className:`${je}-arrow`}),z.createElement(Ze.G,Object.assign({},ye,{className:vt,prefixCls:je}),Pt||z.createElement(Pe,{prefixCls:je,title:bt,content:pt})))},He=ye=>{const{prefixCls:vt,className:je}=ye,Te=Ue(ye,["prefixCls","className"]),{getPrefixCls:ke}=z.useContext(Se.E_),Ne=ke("popover",vt),[yt,wt,Pt]=(0,De.Z)(Ne);return yt(z.createElement(de,Object.assign({},Te,{prefixCls:Ne,hashId:wt,className:ge()(je,Pt)})))};Ft.ZP=He},37639:function(rn,Ft,ie){"use strict";var z=ie(59301),Ke=ie(92310),ge=ie.n(Ke),Ze=ie(18929),xe=ie(10228),Se=ie(54500),De=ie(86641),Ue=ie(22703),Pe=ie(25399),de=ie(69106),He=ie(48755),ye=ie(85074),vt=function(ke,Ne){var yt={};for(var wt in ke)Object.prototype.hasOwnProperty.call(ke,wt)&&Ne.indexOf(wt)<0&&(yt[wt]=ke[wt]);if(ke!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pt=0,wt=Object.getOwnPropertySymbols(ke);Pt<wt.length;Pt++)Ne.indexOf(wt[Pt])<0&&Object.prototype.propertyIsEnumerable.call(ke,wt[Pt])&&(yt[wt[Pt]]=ke[wt[Pt]]);return yt};const Te=z.forwardRef((ke,Ne)=>{var yt,wt;const{prefixCls:Pt,title:bt,content:pt,overlayClassName:lt,placement:_e="top",trigger:kt="hover",children:nt,mouseEnterDelay:it=.1,mouseLeaveDelay:Ct=.1,onOpenChange:ze,overlayStyle:gt={},styles:ut,classNames:pe}=ke,At=vt(ke,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle","styles","classNames"]),{getPrefixCls:Be,className:Nt,style:on,classNames:Ee,styles:fe}=(0,He.dj)("popover"),Et=Be("popover",Pt),[Jt,Dt,We]=(0,ye.Z)(Et),ot=Be(),dt=ge()(lt,Dt,We,Nt,Ee.root,pe==null?void 0:pe.root),$t=ge()(Ee.body,pe==null?void 0:pe.body),[Lt,Vt]=(0,Ze.Z)(!1,{value:(yt=ke.open)!==null&&yt!==void 0?yt:ke.visible,defaultValue:(wt=ke.defaultOpen)!==null&&wt!==void 0?wt:ke.defaultVisible}),rt=(ee,oe)=>{Vt(ee,!0),ze==null||ze(ee,oe)},Ht=ee=>{ee.keyCode===xe.Z.ESC&&rt(!1,ee)},st=ee=>{rt(ee)},ae=(0,Se.Z)(bt),te=(0,Se.Z)(pt);return Jt(z.createElement(Pe.Z,Object.assign({placement:_e,trigger:kt,mouseEnterDelay:it,mouseLeaveDelay:Ct},At,{prefixCls:Et,classNames:{root:dt,body:$t},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},fe.root),on),gt),ut==null?void 0:ut.root),body:Object.assign(Object.assign({},fe.body),ut==null?void 0:ut.body)},ref:Ne,open:Lt,onOpenChange:st,overlay:ae||te?z.createElement(de.aV,{prefixCls:Et,title:ae,content:te}):null,transitionName:(0,De.m)(ot,"zoom-big",At.transitionName),"data-popover-inject":!0}),(0,Ue.Tm)(nt,{onKeyDown:ee=>{var oe,se;z.isValidElement(nt)&&((se=nt==null?void 0:(oe=nt.props).onKeyDown)===null||se===void 0||se.call(oe,ee)),Ht(ee)}})))});Te._InternalPanelDoNotUseOrYouWillBeFired=de.ZP,Ft.Z=Te},85074:function(rn,Ft,ie){"use strict";var z=ie(63356),Ke=ie(34925),ge=ie(37645),Ze=ie(36305),xe=ie(34998),Se=ie(16931),De=ie(51636);const Ue=He=>{const{componentCls:ye,popoverColor:vt,titleMinWidth:je,fontWeightStrong:Te,innerPadding:ke,boxShadowSecondary:Ne,colorTextHeading:yt,borderRadiusLG:wt,zIndexPopup:Pt,titleMarginBottom:bt,colorBgElevated:pt,popoverBg:lt,titleBorderBottom:_e,innerContentPadding:kt,titlePadding:nt}=He;return[{[ye]:Object.assign(Object.assign({},(0,z.Wf)(He)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:Pt,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"--antd-arrow-background-color":pt,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${ye}-content`]:{position:"relative"},[`${ye}-inner`]:{backgroundColor:lt,backgroundClip:"padding-box",borderRadius:wt,boxShadow:Ne,padding:ke},[`${ye}-title`]:{minWidth:je,marginBottom:bt,color:yt,fontWeight:Te,borderBottom:_e,padding:nt},[`${ye}-inner-content`]:{color:vt,padding:kt}})},(0,ge.ZP)(He,"var(--antd-arrow-background-color)"),{[`${ye}-pure`]:{position:"relative",maxWidth:"none",margin:He.sizePopupArrow,display:"inline-block",[`${ye}-content`]:{display:"inline-block"}}}]},Pe=He=>{const{componentCls:ye}=He;return{[ye]:xe.i.map(vt=>{const je=He[`${vt}6`];return{[`&${ye}-${vt}`]:{"--antd-arrow-background-color":je,[`${ye}-inner`]:{backgroundColor:je},[`${ye}-arrow`]:{background:"transparent"}}}})}},de=He=>{const{lineWidth:ye,controlHeight:vt,fontHeight:je,padding:Te,wireframe:ke,zIndexPopupBase:Ne,borderRadiusLG:yt,marginXS:wt,lineType:Pt,colorSplit:bt,paddingSM:pt}=He,lt=vt-je,_e=lt/2,kt=lt/2-ye,nt=Te;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:Ne+30},(0,Ze.w)(He)),(0,ge.wZ)({contentRadius:yt,limitVerticalRadius:!0})),{innerPadding:ke?0:12,titleMarginBottom:ke?0:wt,titlePadding:ke?`${_e}px ${nt}px ${kt}px`:0,titleBorderBottom:ke?`${ye}px ${Pt} ${bt}`:"none",innerContentPadding:ke?`${pt}px ${nt}px`:0})};Ft.Z=(0,Se.I$)("Popover",He=>{const{colorBgElevated:ye,colorText:vt}=He,je=(0,De.mergeToken)(He,{popoverBg:ye,popoverColor:vt});return[Ue(je),Pe(je),(0,Ke._y)(je,"zoom-big")]},de,{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]})},89787:function(rn,Ft,ie){"use strict";ie.d(Ft,{Z:function(){return Wt}});var z=ie(59301),Ke=ie(17835),ge=ie(29679),Ze=ie(40001),xe=ie(19248),Se=ie(99267),De=ie(92310),Ue=ie.n(De),Pe=ie(2738),de=ie(48755),He=ie(54476),ye=ie(33885),vt=ie(75931),je={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},Te=function(){var tt=(0,z.useRef)([]),Tt=(0,z.useRef)(null);return(0,z.useEffect)(function(){var zt=Date.now(),Ie=!1;tt.current.forEach(function(Xe){if(Xe){Ie=!0;var ft=Xe.style;ft.transitionDuration=".3s, .3s, .3s, .06s",Tt.current&&zt-Tt.current<100&&(ft.transitionDuration="0s, 0s")}}),Ie&&(Tt.current=Date.now())}),tt.current},ke=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],Ne=function(tt){var Tt=(0,ye.Z)((0,ye.Z)({},je),tt),zt=Tt.className,Ie=Tt.percent,Xe=Tt.prefixCls,ft=Tt.strokeColor,Mt=Tt.strokeLinecap,Gt=Tt.strokeWidth,cn=Tt.style,En=Tt.trailColor,Sn=Tt.trailWidth,sn=Tt.transition,yn=(0,vt.Z)(Tt,ke);delete yn.gapPosition;var gn=Array.isArray(Ie)?Ie:[Ie],zn=Array.isArray(ft)?ft:[ft],bn=Te(),vn=Gt/2,un=100-Gt/2,On="M ".concat(Mt==="round"?vn:0,",").concat(vn,`
L `).concat(Mt==="round"?un:100,",").concat(vn),mn="0 0 100 ".concat(Gt),Dn=0;return z.createElement("svg",(0,He.Z)({className:Ue()("".concat(Xe,"-line"),zt),viewBox:mn,preserveAspectRatio:"none",style:cn},yn),z.createElement("path",{className:"".concat(Xe,"-line-trail"),d:On,strokeLinecap:Mt,stroke:En,strokeWidth:Sn||Gt,fillOpacity:"0"}),gn.map(function(Wn,Zn){var An=1;switch(Mt){case"round":An=1-Gt/100;break;case"square":An=1-Gt/2/100;break;default:An=1;break}var Xn={strokeDasharray:"".concat(Wn*An,"px, 100px"),strokeDashoffset:"-".concat(Dn,"px"),transition:sn||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Nn=zn[Zn]||zn[zn.length-1];return Dn+=Wn,z.createElement("path",{key:Zn,className:"".concat(Xe,"-line-path"),d:On,strokeLinecap:Mt,stroke:Nn,strokeWidth:Gt,fillOpacity:"0",ref:function(qn){bn[Zn]=qn},style:Xn})}))},yt=Ne,wt=ie(76190),Pt=ie(42978),bt=ie(47273),pt=0,lt=(0,bt.Z)();function _e(){var Oe;return lt?(Oe=pt,pt+=1):Oe="TEST_OR_SSR",Oe}var kt=function(Oe){var tt=z.useState(),Tt=(0,Pt.Z)(tt,2),zt=Tt[0],Ie=Tt[1];return z.useEffect(function(){Ie("rc_progress_".concat(_e()))},[]),Oe||zt},nt=function(tt){var Tt=tt.bg,zt=tt.children;return z.createElement("div",{style:{width:"100%",height:"100%",background:Tt}},zt)};function it(Oe,tt){return Object.keys(Oe).map(function(Tt){var zt=parseFloat(Tt),Ie="".concat(Math.floor(zt*tt),"%");return"".concat(Oe[Tt]," ").concat(Ie)})}var Ct=z.forwardRef(function(Oe,tt){var Tt=Oe.prefixCls,zt=Oe.color,Ie=Oe.gradientId,Xe=Oe.radius,ft=Oe.style,Mt=Oe.ptg,Gt=Oe.strokeLinecap,cn=Oe.strokeWidth,En=Oe.size,Sn=Oe.gapDegree,sn=zt&&(0,wt.Z)(zt)==="object",yn=sn?"#FFF":void 0,gn=En/2,zn=z.createElement("circle",{className:"".concat(Tt,"-circle-path"),r:Xe,cx:gn,cy:gn,stroke:yn,strokeLinecap:Gt,strokeWidth:cn,opacity:Mt===0?0:1,style:ft,ref:tt});if(!sn)return zn;var bn="".concat(Ie,"-conic"),vn=Sn?"".concat(180+Sn/2,"deg"):"0deg",un=it(zt,(360-Sn)/360),On=it(zt,1),mn="conic-gradient(from ".concat(vn,", ").concat(un.join(", "),")"),Dn="linear-gradient(to ".concat(Sn?"bottom":"top",", ").concat(On.join(", "),")");return z.createElement(z.Fragment,null,z.createElement("mask",{id:bn},zn),z.createElement("foreignObject",{x:0,y:0,width:En,height:En,mask:"url(#".concat(bn,")")},z.createElement(nt,{bg:Dn},z.createElement(nt,{bg:mn}))))}),ze=Ct,gt=100,ut=function(tt,Tt,zt,Ie,Xe,ft,Mt,Gt,cn,En){var Sn=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,sn=zt/100*360*((360-ft)/360),yn=ft===0?0:{bottom:0,top:180,left:90,right:-90}[Mt],gn=(100-Ie)/100*Tt;cn==="round"&&Ie!==100&&(gn+=En/2,gn>=Tt&&(gn=Tt-.01));var zn=gt/2;return{stroke:typeof Gt=="string"?Gt:void 0,strokeDasharray:"".concat(Tt,"px ").concat(tt),strokeDashoffset:gn+Sn,transform:"rotate(".concat(Xe+sn+yn,"deg)"),transformOrigin:"".concat(zn,"px ").concat(zn,"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}},pe=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function At(Oe){var tt=Oe!=null?Oe:[];return Array.isArray(tt)?tt:[tt]}var Be=function(tt){var Tt=(0,ye.Z)((0,ye.Z)({},je),tt),zt=Tt.id,Ie=Tt.prefixCls,Xe=Tt.steps,ft=Tt.strokeWidth,Mt=Tt.trailWidth,Gt=Tt.gapDegree,cn=Gt===void 0?0:Gt,En=Tt.gapPosition,Sn=Tt.trailColor,sn=Tt.strokeLinecap,yn=Tt.style,gn=Tt.className,zn=Tt.strokeColor,bn=Tt.percent,vn=(0,vt.Z)(Tt,pe),un=gt/2,On=kt(zt),mn="".concat(On,"-gradient"),Dn=un-ft/2,Wn=Math.PI*2*Dn,Zn=cn>0?90+cn/2:-90,An=Wn*((360-cn)/360),Xn=(0,wt.Z)(Xe)==="object"?Xe:{count:Xe,gap:2},Nn=Xn.count,ar=Xn.gap,qn=At(bn),Bt=At(zn),nn=Bt.find(function(we){return we&&(0,wt.Z)(we)==="object"}),$n=nn&&(0,wt.Z)(nn)==="object",nr=$n?"butt":sn,Ae=ut(Wn,An,0,100,Zn,cn,En,Sn,nr,ft),et=Te(),Ce=function(){var Re=0;return qn.map(function(ve,Ve){var Je=Bt[Ve]||Bt[Bt.length-1],ct=ut(Wn,An,Re,ve,Zn,cn,En,Je,nr,ft);return Re+=ve,z.createElement(ze,{key:Ve,color:Je,ptg:ve,radius:Dn,prefixCls:Ie,gradientId:mn,style:ct,strokeLinecap:nr,strokeWidth:ft,gapDegree:cn,ref:function(Fe){et[Ve]=Fe},size:gt})}).reverse()},Le=function(){var Re=Math.round(Nn*(qn[0]/100)),ve=100/Nn,Ve=0;return new Array(Nn).fill(null).map(function(Je,ct){var Qe=ct<=Re-1?Bt[0]:Sn,Fe=Qe&&(0,wt.Z)(Qe)==="object"?"url(#".concat(mn,")"):void 0,$e=ut(Wn,An,Ve,ve,Zn,cn,En,Qe,"butt",ft,ar);return Ve+=(An-$e.strokeDashoffset+ar)*100/An,z.createElement("circle",{key:ct,className:"".concat(Ie,"-circle-path"),r:Dn,cx:un,cy:un,stroke:Fe,strokeWidth:ft,opacity:1,style:$e,ref:function(Qt){et[ct]=Qt}})})};return z.createElement("svg",(0,He.Z)({className:Ue()("".concat(Ie,"-circle"),gn),viewBox:"0 0 ".concat(gt," ").concat(gt),style:yn,id:zt,role:"presentation"},vn),!Nn&&z.createElement("circle",{className:"".concat(Ie,"-circle-trail"),r:Dn,cx:un,cy:un,stroke:Sn,strokeLinecap:nr,strokeWidth:Mt||ft,style:Ae}),Nn?Le():Ce())},Nt=Be,on={Line:yt,Circle:Nt},Ee=ie(25399),fe=ie(68361);function Et(Oe){return!Oe||Oe<0?0:Oe>100?100:Oe}function Jt(Oe){let{success:tt,successPercent:Tt}=Oe,zt=Tt;return tt&&"progress"in tt&&(zt=tt.progress),tt&&"percent"in tt&&(zt=tt.percent),zt}const Dt=Oe=>{let{percent:tt,success:Tt,successPercent:zt}=Oe;const Ie=Et(Jt({success:Tt,successPercent:zt}));return[Ie,Et(Et(tt)-Ie)]},We=Oe=>{let{success:tt={},strokeColor:Tt}=Oe;const{strokeColor:zt}=tt;return[zt||fe.presetPrimaryColors.green,Tt||null]},ot=(Oe,tt,Tt)=>{var zt,Ie,Xe,ft;let Mt=-1,Gt=-1;if(tt==="step"){const cn=Tt.steps,En=Tt.strokeWidth;typeof Oe=="string"||typeof Oe=="undefined"?(Mt=Oe==="small"?2:14,Gt=En!=null?En:8):typeof Oe=="number"?[Mt,Gt]=[Oe,Oe]:[Mt=14,Gt=8]=Array.isArray(Oe)?Oe:[Oe.width,Oe.height],Mt*=cn}else if(tt==="line"){const cn=Tt==null?void 0:Tt.strokeWidth;typeof Oe=="string"||typeof Oe=="undefined"?Gt=cn||(Oe==="small"?6:8):typeof Oe=="number"?[Mt,Gt]=[Oe,Oe]:[Mt=-1,Gt=8]=Array.isArray(Oe)?Oe:[Oe.width,Oe.height]}else(tt==="circle"||tt==="dashboard")&&(typeof Oe=="string"||typeof Oe=="undefined"?[Mt,Gt]=Oe==="small"?[60,60]:[120,120]:typeof Oe=="number"?[Mt,Gt]=[Oe,Oe]:Array.isArray(Oe)&&(Mt=(Ie=(zt=Oe[0])!==null&&zt!==void 0?zt:Oe[1])!==null&&Ie!==void 0?Ie:120,Gt=(ft=(Xe=Oe[0])!==null&&Xe!==void 0?Xe:Oe[1])!==null&&ft!==void 0?ft:120));return[Mt,Gt]},dt=3,$t=Oe=>dt/Oe*100;var Vt=Oe=>{const{prefixCls:tt,trailColor:Tt=null,strokeLinecap:zt="round",gapPosition:Ie,gapDegree:Xe,width:ft=120,type:Mt,children:Gt,success:cn,size:En=ft,steps:Sn}=Oe,[sn,yn]=ot(En,"circle");let{strokeWidth:gn}=Oe;gn===void 0&&(gn=Math.max($t(sn),6));const zn={width:sn,height:yn,fontSize:sn*.15+6},bn=z.useMemo(()=>{if(Xe||Xe===0)return Xe;if(Mt==="dashboard")return 75},[Xe,Mt]),vn=Dt(Oe),un=Ie||Mt==="dashboard"&&"bottom"||void 0,On=Object.prototype.toString.call(Oe.strokeColor)==="[object Object]",mn=We({success:cn,strokeColor:Oe.strokeColor}),Dn=Ue()(`${tt}-inner`,{[`${tt}-circle-gradient`]:On}),Wn=z.createElement(Nt,{steps:Sn,percent:Sn?vn[1]:vn,strokeWidth:gn,trailWidth:gn,strokeColor:Sn?mn[1]:mn,strokeLinecap:zt,trailColor:Tt,prefixCls:tt,gapDegree:bn,gapPosition:un}),Zn=sn<=20,An=z.createElement("div",{className:Dn,style:zn},Wn,!Zn&&Gt);return Zn?z.createElement(Ee.Z,{title:Gt},An):An},rt=ie(36237),Ht=ie(63356),st=ie(16931),ae=ie(51636);const te="--progress-line-stroke-color",ee="--progress-percent",oe=Oe=>{const tt=Oe?"100%":"-100%";return new rt.Keyframes(`antProgress${Oe?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${tt}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${tt}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},se=Oe=>{const{componentCls:tt,iconCls:Tt}=Oe;return{[tt]:Object.assign(Object.assign({},(0,Ht.Wf)(Oe)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:Oe.fontSize},[`${tt}-outer`]:{display:"inline-flex",alignItems:"center",width:"100%"},[`${tt}-inner`]:{position:"relative",display:"inline-block",width:"100%",flex:1,overflow:"hidden",verticalAlign:"middle",backgroundColor:Oe.remainingColor,borderRadius:Oe.lineBorderRadius},[`${tt}-inner:not(${tt}-circle-gradient)`]:{[`${tt}-circle-path`]:{stroke:Oe.defaultColor}},[`${tt}-success-bg, ${tt}-bg`]:{position:"relative",background:Oe.defaultColor,borderRadius:Oe.lineBorderRadius,transition:`all ${Oe.motionDurationSlow} ${Oe.motionEaseInOutCirc}`},[`${tt}-layout-bottom`]:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",[`${tt}-text`]:{width:"max-content",marginInlineStart:0,marginTop:Oe.marginXXS}},[`${tt}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${te})`]},height:"100%",width:`calc(1 / var(${ee}) * 100%)`,display:"block"},[`&${tt}-bg-inner`]:{minWidth:"max-content","&::after":{content:"none"},[`${tt}-text-inner`]:{color:Oe.colorWhite,[`&${tt}-text-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}},[`${tt}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:Oe.colorSuccess},[`${tt}-text`]:{display:"inline-block",marginInlineStart:Oe.marginXS,color:Oe.colorText,lineHeight:1,width:"2em",whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[Tt]:{fontSize:Oe.fontSize},[`&${tt}-text-outer`]:{width:"max-content"},[`&${tt}-text-outer${tt}-text-start`]:{width:"max-content",marginInlineStart:0,marginInlineEnd:Oe.marginXS}},[`${tt}-text-inner`]:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",marginInlineStart:0,padding:`0 ${(0,rt.unit)(Oe.paddingXXS)}`,[`&${tt}-text-start`]:{justifyContent:"start"},[`&${tt}-text-end`]:{justifyContent:"end"}},[`&${tt}-status-active`]:{[`${tt}-bg::before`]:{position:"absolute",inset:0,backgroundColor:Oe.colorBgContainer,borderRadius:Oe.lineBorderRadius,opacity:0,animationName:oe(),animationDuration:Oe.progressActiveMotionDuration,animationTimingFunction:Oe.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${tt}-rtl${tt}-status-active`]:{[`${tt}-bg::before`]:{animationName:oe(!0)}},[`&${tt}-status-exception`]:{[`${tt}-bg`]:{backgroundColor:Oe.colorError},[`${tt}-text`]:{color:Oe.colorError}},[`&${tt}-status-exception ${tt}-inner:not(${tt}-circle-gradient)`]:{[`${tt}-circle-path`]:{stroke:Oe.colorError}},[`&${tt}-status-success`]:{[`${tt}-bg`]:{backgroundColor:Oe.colorSuccess},[`${tt}-text`]:{color:Oe.colorSuccess}},[`&${tt}-status-success ${tt}-inner:not(${tt}-circle-gradient)`]:{[`${tt}-circle-path`]:{stroke:Oe.colorSuccess}}})}},re=Oe=>{const{componentCls:tt,iconCls:Tt}=Oe;return{[tt]:{[`${tt}-circle-trail`]:{stroke:Oe.remainingColor},[`&${tt}-circle ${tt}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${tt}-circle ${tt}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:Oe.circleTextColor,fontSize:Oe.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[Tt]:{fontSize:Oe.circleIconFontSize}},[`${tt}-circle&-status-exception`]:{[`${tt}-text`]:{color:Oe.colorError}},[`${tt}-circle&-status-success`]:{[`${tt}-text`]:{color:Oe.colorSuccess}}},[`${tt}-inline-circle`]:{lineHeight:1,[`${tt}-inner`]:{verticalAlign:"bottom"}}}},he=Oe=>{const{componentCls:tt}=Oe;return{[tt]:{[`${tt}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:Oe.progressStepMinWidth,marginInlineEnd:Oe.progressStepMarginInlineEnd,backgroundColor:Oe.remainingColor,transition:`all ${Oe.motionDurationSlow}`,"&-active":{backgroundColor:Oe.defaultColor}}}}}},be=Oe=>{const{componentCls:tt,iconCls:Tt}=Oe;return{[tt]:{[`${tt}-small&-line, ${tt}-small&-line ${tt}-text ${Tt}`]:{fontSize:Oe.fontSizeSM}}}},ht=Oe=>({circleTextColor:Oe.colorText,defaultColor:Oe.colorInfo,remainingColor:Oe.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${Oe.fontSize/Oe.fontSizeSM}em`});var Me=(0,st.I$)("Progress",Oe=>{const tt=Oe.calc(Oe.marginXXS).div(2).equal(),Tt=(0,ae.mergeToken)(Oe,{progressStepMarginInlineEnd:tt,progressStepMinWidth:tt,progressActiveMotionDuration:"2.4s"});return[se(Tt),re(Tt),he(Tt),be(Tt)]},ht),Ye=function(Oe,tt){var Tt={};for(var zt in Oe)Object.prototype.hasOwnProperty.call(Oe,zt)&&tt.indexOf(zt)<0&&(Tt[zt]=Oe[zt]);if(Oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ie=0,zt=Object.getOwnPropertySymbols(Oe);Ie<zt.length;Ie++)tt.indexOf(zt[Ie])<0&&Object.prototype.propertyIsEnumerable.call(Oe,zt[Ie])&&(Tt[zt[Ie]]=Oe[zt[Ie]]);return Tt};const mt=Oe=>{let tt=[];return Object.keys(Oe).forEach(Tt=>{const zt=parseFloat(Tt.replace(/%/g,""));Number.isNaN(zt)||tt.push({key:zt,value:Oe[Tt]})}),tt=tt.sort((Tt,zt)=>Tt.key-zt.key),tt.map(Tt=>{let{key:zt,value:Ie}=Tt;return`${Ie} ${zt}%`}).join(", ")},It=(Oe,tt)=>{const{from:Tt=fe.presetPrimaryColors.blue,to:zt=fe.presetPrimaryColors.blue,direction:Ie=tt==="rtl"?"to left":"to right"}=Oe,Xe=Ye(Oe,["from","to","direction"]);if(Object.keys(Xe).length!==0){const Mt=mt(Xe),Gt=`linear-gradient(${Ie}, ${Mt})`;return{background:Gt,[te]:Gt}}const ft=`linear-gradient(${Ie}, ${Tt}, ${zt})`;return{background:ft,[te]:ft}};var Xt=Oe=>{const{prefixCls:tt,direction:Tt,percent:zt,size:Ie,strokeWidth:Xe,strokeColor:ft,strokeLinecap:Mt="round",children:Gt,trailColor:cn=null,percentPosition:En,success:Sn}=Oe,{align:sn,type:yn}=En,gn=ft&&typeof ft!="string"?It(ft,Tt):{[te]:ft,background:ft},zn=Mt==="square"||Mt==="butt"?0:void 0,bn=Ie!=null?Ie:[-1,Xe||(Ie==="small"?6:8)],[vn,un]=ot(bn,"line",{strokeWidth:Xe}),On={backgroundColor:cn||void 0,borderRadius:zn},mn=Object.assign(Object.assign({width:`${Et(zt)}%`,height:un,borderRadius:zn},gn),{[ee]:Et(zt)/100}),Dn=Jt(Oe),Wn={width:`${Et(Dn)}%`,height:un,borderRadius:zn,backgroundColor:Sn==null?void 0:Sn.strokeColor},Zn={width:vn<0?"100%":vn},An=z.createElement("div",{className:`${tt}-inner`,style:On},z.createElement("div",{className:Ue()(`${tt}-bg`,`${tt}-bg-${yn}`),style:mn},yn==="inner"&&Gt),Dn!==void 0&&z.createElement("div",{className:`${tt}-success-bg`,style:Wn})),Xn=yn==="outer"&&sn==="start",Nn=yn==="outer"&&sn==="end";return yn==="outer"&&sn==="center"?z.createElement("div",{className:`${tt}-layout-bottom`},An,Gt):z.createElement("div",{className:`${tt}-outer`,style:Zn},Xn&&Gt,An,Nn&&Gt)},jt=Oe=>{const{size:tt,steps:Tt,rounding:zt=Math.round,percent:Ie=0,strokeWidth:Xe=8,strokeColor:ft,trailColor:Mt=null,prefixCls:Gt,children:cn}=Oe,En=zt(Tt*(Ie/100)),Sn=tt==="small"?2:14,sn=tt!=null?tt:[Sn,Xe],[yn,gn]=ot(sn,"step",{steps:Tt,strokeWidth:Xe}),zn=yn/Tt,bn=Array.from({length:Tt});for(let vn=0;vn<Tt;vn++){const un=Array.isArray(ft)?ft[vn]:ft;bn[vn]=z.createElement("div",{key:vn,className:Ue()(`${Gt}-steps-item`,{[`${Gt}-steps-item-active`]:vn<=En-1}),style:{backgroundColor:vn<=En-1?un:Mt,width:zn,height:gn}})}return z.createElement("div",{className:`${Gt}-steps-outer`},bn,cn)},_t=function(Oe,tt){var Tt={};for(var zt in Oe)Object.prototype.hasOwnProperty.call(Oe,zt)&&tt.indexOf(zt)<0&&(Tt[zt]=Oe[zt]);if(Oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ie=0,zt=Object.getOwnPropertySymbols(Oe);Ie<zt.length;Ie++)tt.indexOf(zt[Ie])<0&&Object.prototype.propertyIsEnumerable.call(Oe,zt[Ie])&&(Tt[zt[Ie]]=Oe[zt[Ie]]);return Tt};const Zt=null,ln=["normal","exception","active","success"];var qt=z.forwardRef((Oe,tt)=>{const{prefixCls:Tt,className:zt,rootClassName:Ie,steps:Xe,strokeColor:ft,percent:Mt=0,size:Gt="default",showInfo:cn=!0,type:En="line",status:Sn,format:sn,style:yn,percentPosition:gn={}}=Oe,zn=_t(Oe,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:bn="end",type:vn="outer"}=gn,un=Array.isArray(ft)?ft[0]:ft,On=typeof ft=="string"||Array.isArray(ft)?ft:void 0,mn=z.useMemo(()=>{if(un){const Ce=typeof un=="string"?un:Object.values(un)[0];return new Ke.FastColor(Ce).isLight()}return!1},[ft]),Dn=z.useMemo(()=>{var Ce,Le;const we=Jt(Oe);return parseInt(we!==void 0?(Ce=we!=null?we:0)===null||Ce===void 0?void 0:Ce.toString():(Le=Mt!=null?Mt:0)===null||Le===void 0?void 0:Le.toString(),10)},[Mt,Oe.success,Oe.successPercent]),Wn=z.useMemo(()=>!ln.includes(Sn)&&Dn>=100?"success":Sn||"normal",[Sn,Dn]),{getPrefixCls:Zn,direction:An,progress:Xn}=z.useContext(de.E_),Nn=Zn("progress",Tt),[ar,qn,Bt]=Me(Nn),nn=En==="line",$n=nn&&!Xe,nr=z.useMemo(()=>{if(!cn)return null;const Ce=Jt(Oe);let Le;const we=sn||(ve=>`${ve}%`),Re=nn&&mn&&vn==="inner";return vn==="inner"||sn||Wn!=="exception"&&Wn!=="success"?Le=we(Et(Mt),Et(Ce)):Wn==="exception"?Le=nn?z.createElement(xe.Z,null):z.createElement(Se.Z,null):Wn==="success"&&(Le=nn?z.createElement(ge.Z,null):z.createElement(Ze.Z,null)),z.createElement("span",{className:Ue()(`${Nn}-text`,{[`${Nn}-text-bright`]:Re,[`${Nn}-text-${bn}`]:$n,[`${Nn}-text-${vn}`]:$n}),title:typeof Le=="string"?Le:void 0},Le)},[cn,Mt,Dn,Wn,En,Nn,sn]);let Ae;En==="line"?Ae=Xe?z.createElement(jt,Object.assign({},Oe,{strokeColor:On,prefixCls:Nn,steps:typeof Xe=="object"?Xe.count:Xe}),nr):z.createElement(Xt,Object.assign({},Oe,{strokeColor:un,prefixCls:Nn,direction:An,percentPosition:{align:bn,type:vn}}),nr):(En==="circle"||En==="dashboard")&&(Ae=z.createElement(Vt,Object.assign({},Oe,{strokeColor:un,prefixCls:Nn,progressStatus:Wn}),nr));const et=Ue()(Nn,`${Nn}-status-${Wn}`,{[`${Nn}-${En==="dashboard"&&"circle"||En}`]:En!=="line",[`${Nn}-inline-circle`]:En==="circle"&&ot(Gt,"circle")[0]<=20,[`${Nn}-line`]:$n,[`${Nn}-line-align-${bn}`]:$n,[`${Nn}-line-position-${vn}`]:$n,[`${Nn}-steps`]:Xe,[`${Nn}-show-info`]:cn,[`${Nn}-${Gt}`]:typeof Gt=="string",[`${Nn}-rtl`]:An==="rtl"},Xn==null?void 0:Xn.className,zt,Ie,qn,Bt);return ar(z.createElement("div",Object.assign({ref:tt,style:Object.assign(Object.assign({},Xn==null?void 0:Xn.style),yn),className:et,role:"progressbar","aria-valuenow":Dn,"aria-valuemin":0,"aria-valuemax":100},(0,Pe.Z)(zn,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),Ae))}),Wt=qt},82326:function(rn,Ft,ie){"use strict";var z=ie(59301),Ke=ie(92310),ge=ie.n(Ke),Ze=ie(37463),xe=ie(2738),Se=ie(75030),De=ie(86641),Ue=ie(45915),Pe=ie(82855),de=ie(48755),He=ie(38406),ye=ie(2171),vt=ie(83397),je=ie(31756),Te=ie(56553),ke=ie(24971),Ne=ie(70045),yt=ie(57700),wt=ie(1722),Pt=ie(90376),bt=ie(68525),pt=ie(90005),lt=function(Ct,ze){var gt={};for(var ut in Ct)Object.prototype.hasOwnProperty.call(Ct,ut)&&ze.indexOf(ut)<0&&(gt[ut]=Ct[ut]);if(Ct!=null&&typeof Object.getOwnPropertySymbols=="function")for(var pe=0,ut=Object.getOwnPropertySymbols(Ct);pe<ut.length;pe++)ze.indexOf(ut[pe])<0&&Object.prototype.propertyIsEnumerable.call(Ct,ut[pe])&&(gt[ut[pe]]=Ct[ut[pe]]);return gt};const _e="SECRET_COMBOBOX_MODE_DO_NOT_USE",kt=(Ct,ze)=>{var gt;const{prefixCls:ut,bordered:pe,className:At,rootClassName:Be,getPopupContainer:Nt,popupClassName:on,dropdownClassName:Ee,listHeight:fe=256,placement:Et,listItemHeight:Jt,size:Dt,disabled:We,notFoundContent:ot,status:dt,builtinPlacements:$t,dropdownMatchSelectWidth:Lt,popupMatchSelectWidth:Vt,direction:rt,style:Ht,allowClear:st,variant:ae,dropdownStyle:te,transitionName:ee,tagRender:oe,maxCount:se,prefix:re}=Ct,he=lt(Ct,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount","prefix"]),{getPopupContainer:be,getPrefixCls:ht,renderEmpty:Me,direction:Ye,virtual:mt,popupMatchSelectWidth:It,popupOverflow:xt}=z.useContext(de.E_),Xt=(0,de.dj)("select"),[,Kt]=(0,yt.ZP)(),jt=Jt!=null?Jt:Kt==null?void 0:Kt.controlHeight,_t=ht("select",ut),Zt=ht(),ln=rt!=null?rt:Ye,{compactSize:St,compactItemClassnames:qt}=(0,Ne.ri)(_t,ln),[Wt,Oe]=(0,ke.Z)("select",ae,pe),tt=(0,vt.Z)(_t),[Tt,zt,Ie]=(0,Pt.Z)(_t,tt),Xe=z.useMemo(()=>{const{mode:qn}=Ct;if(qn!=="combobox")return qn===_e?"combobox":qn},[Ct.mode]),ft=Xe==="multiple"||Xe==="tags",Mt=(0,pt.Z)(Ct.suffixIcon,Ct.showArrow),Gt=(gt=Vt!=null?Vt:Lt)!==null&&gt!==void 0?gt:It,{status:cn,hasFeedback:En,isFormItemInput:Sn,feedbackIcon:sn}=z.useContext(Te.aM),yn=(0,Pe.F)(cn,dt);let gn;ot!==void 0?gn=ot:Xe==="combobox"?gn=null:gn=(Me==null?void 0:Me("Select"))||z.createElement(He.Z,{componentName:"Select"});const{suffixIcon:zn,itemIcon:bn,removeIcon:vn,clearIcon:un}=(0,bt.Z)(Object.assign(Object.assign({},he),{multiple:ft,hasFeedback:En,feedbackIcon:sn,showSuffixIcon:Mt,prefixCls:_t,componentName:"Select"})),On=st===!0?{clearIcon:un}:st,mn=(0,xe.Z)(he,["suffixIcon","itemIcon"]),Dn=ge()(on||Ee,{[`${_t}-dropdown-${ln}`]:ln==="rtl"},Be,Ie,tt,zt),Wn=(0,je.Z)(qn=>{var Bt;return(Bt=Dt!=null?Dt:St)!==null&&Bt!==void 0?Bt:qn}),Zn=z.useContext(ye.Z),An=We!=null?We:Zn,Xn=ge()({[`${_t}-lg`]:Wn==="large",[`${_t}-sm`]:Wn==="small",[`${_t}-rtl`]:ln==="rtl",[`${_t}-${Wt}`]:Oe,[`${_t}-in-form-item`]:Sn},(0,Pe.Z)(_t,yn,En),qt,Xt.className,At,Be,Ie,tt,zt),Nn=z.useMemo(()=>Et!==void 0?Et:ln==="rtl"?"bottomRight":"bottomLeft",[Et,ln]),[ar]=(0,Se.Cn)("SelectLike",te==null?void 0:te.zIndex);return Tt(z.createElement(Ze.ZP,Object.assign({ref:ze,virtual:mt,showSearch:Xt.showSearch},mn,{style:Object.assign(Object.assign({},Xt.style),Ht),dropdownMatchSelectWidth:Gt,transitionName:(0,De.m)(Zt,"slide-up",ee),builtinPlacements:(0,wt.Z)($t,xt),listHeight:fe,listItemHeight:jt,mode:Xe,prefixCls:_t,placement:Nn,direction:ln,prefix:re,suffixIcon:zn,menuItemSelectedIcon:bn,removeIcon:vn,allowClear:On,notFoundContent:gn,className:Xn,getPopupContainer:Nt||be,dropdownClassName:Dn,disabled:An,dropdownStyle:Object.assign(Object.assign({},te),{zIndex:ar}),maxCount:ft?se:void 0,tagRender:ft?oe:void 0})))},nt=z.forwardRef(kt),it=(0,Ue.Z)(nt,"dropdownAlign");nt.SECRET_COMBOBOX_MODE_DO_NOT_USE=_e,nt.Option=Ze.Wx,nt.OptGroup=Ze.Xo,nt._InternalPanelDoNotUseOrYouWillBeFired=it,Ft.default=nt},1722:function(rn,Ft){"use strict";const ie=Ke=>{const Ze={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:Ke==="scroll"?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},Ze),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},Ze),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},Ze),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},Ze),{points:["br","tr"],offset:[0,-4]})}};function z(Ke,ge){return Ke||ie(ge)}Ft.Z=z},90376:function(rn,Ft,ie){"use strict";ie.d(Ft,{Z:function(){return ut}});var z=ie(63356),Ke=ie(56119),ge=ie(16931),Ze=ie(51636),xe=ie(46e3),Se=ie(93873);const De=pe=>{const{optionHeight:At,optionFontSize:Be,optionLineHeight:Nt,optionPadding:on}=pe;return{position:"relative",display:"block",minHeight:At,padding:on,color:pe.colorText,fontWeight:"normal",fontSize:Be,lineHeight:Nt,boxSizing:"border-box"}};var Pe=pe=>{const{antCls:At,componentCls:Be}=pe,Nt=`${Be}-item`,on=`&${At}-slide-up-enter${At}-slide-up-enter-active`,Ee=`&${At}-slide-up-appear${At}-slide-up-appear-active`,fe=`&${At}-slide-up-leave${At}-slide-up-leave-active`,Et=`${Be}-dropdown-placement-`,Jt=`${Nt}-option-selected`;return[{[`${Be}-dropdown`]:Object.assign(Object.assign({},(0,z.Wf)(pe)),{position:"absolute",top:-9999,zIndex:pe.zIndexPopup,boxSizing:"border-box",padding:pe.paddingXXS,overflow:"hidden",fontSize:pe.fontSize,fontVariant:"initial",backgroundColor:pe.colorBgElevated,borderRadius:pe.borderRadiusLG,outline:"none",boxShadow:pe.boxShadowSecondary,[`
${on}${Et}bottomLeft,
${Ee}${Et}bottomLeft
`]:{animationName:xe.fJ},[`
${on}${Et}topLeft,
${Ee}${Et}topLeft,
${on}${Et}topRight,
${Ee}${Et}topRight
`]:{animationName:xe.Qt},[`${fe}${Et}bottomLeft`]:{animationName:xe.Uw},[`
${fe}${Et}topLeft,
${fe}${Et}topRight
`]:{animationName:xe.ly},"&-hidden":{display:"none"},[Nt]:Object.assign(Object.assign({},De(pe)),{cursor:"pointer",transition:`background ${pe.motionDurationSlow} ease`,borderRadius:pe.borderRadiusSM,"&-group":{color:pe.colorTextDescription,fontSize:pe.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},z.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${Nt}-option-disabled)`]:{backgroundColor:pe.optionActiveBg},[`&-selected:not(${Nt}-option-disabled)`]:{color:pe.optionSelectedColor,fontWeight:pe.optionSelectedFontWeight,backgroundColor:pe.optionSelectedBg,[`${Nt}-option-state`]:{color:pe.colorPrimary}},"&-disabled":{[`&${Nt}-option-selected`]:{backgroundColor:pe.colorBgContainerDisabled},color:pe.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:pe.calc(pe.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},De(pe)),{color:pe.colorTextDisabled})}),[`${Jt}:has(+ ${Jt})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${Jt}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},(0,xe.oN)(pe,"slide-up"),(0,xe.oN)(pe,"slide-down"),(0,Se.Fm)(pe,"move-up"),(0,Se.Fm)(pe,"move-down")]},de=ie(26743),He=ie(36237);function ye(pe,At){const{componentCls:Be,inputPaddingHorizontalBase:Nt,borderRadius:on}=pe,Ee=pe.calc(pe.controlHeight).sub(pe.calc(pe.lineWidth).mul(2)).equal(),fe=At?`${Be}-${At}`:"";return{[`${Be}-single${fe}`]:{fontSize:pe.fontSize,height:pe.controlHeight,[`${Be}-selector`]:Object.assign(Object.assign({},(0,z.Wf)(pe,!0)),{display:"flex",borderRadius:on,flex:"1 1 auto",[`${Be}-selection-wrap:after`]:{lineHeight:(0,He.unit)(Ee)},[`${Be}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[`
${Be}-selection-item,
${Be}-selection-placeholder
`]:{display:"block",padding:0,lineHeight:(0,He.unit)(Ee),transition:`all ${pe.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${Be}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${Be}-selection-item:empty:after`,`${Be}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
&${Be}-show-arrow ${Be}-selection-item,
&${Be}-show-arrow ${Be}-selection-search,
&${Be}-show-arrow ${Be}-selection-placeholder
`]:{paddingInlineEnd:pe.showArrowPaddingInlineEnd},[`&${Be}-open ${Be}-selection-item`]:{color:pe.colorTextPlaceholder},[`&:not(${Be}-customize-input)`]:{[`${Be}-selector`]:{width:"100%",height:"100%",alignItems:"center",padding:`0 ${(0,He.unit)(Nt)}`,[`${Be}-selection-search-input`]:{height:Ee,fontSize:pe.fontSize},"&:after":{lineHeight:(0,He.unit)(Ee)}}},[`&${Be}-customize-input`]:{[`${Be}-selector`]:{"&:after":{display:"none"},[`${Be}-selection-search`]:{position:"static",width:"100%"},[`${Be}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${(0,He.unit)(Nt)}`,"&:after":{display:"none"}}}}}}}function vt(pe){const{componentCls:At}=pe,Be=pe.calc(pe.controlPaddingHorizontalSM).sub(pe.lineWidth).equal();return[ye(pe),ye((0,Ze.mergeToken)(pe,{controlHeight:pe.controlHeightSM,borderRadius:pe.borderRadiusSM}),"sm"),{[`${At}-single${At}-sm`]:{[`&:not(${At}-customize-input)`]:{[`${At}-selector`]:{padding:`0 ${(0,He.unit)(Be)}`},[`&${At}-show-arrow ${At}-selection-search`]:{insetInlineEnd:pe.calc(Be).add(pe.calc(pe.fontSize).mul(1.5)).equal()},[`
&${At}-show-arrow ${At}-selection-item,
&${At}-show-arrow ${At}-selection-placeholder
`]:{paddingInlineEnd:pe.calc(pe.fontSize).mul(1.5).equal()}}}},ye((0,Ze.mergeToken)(pe,{controlHeight:pe.singleItemHeightLG,fontSize:pe.fontSizeLG,borderRadius:pe.borderRadiusLG}),"lg")]}const je=pe=>{const{fontSize:At,lineHeight:Be,lineWidth:Nt,controlHeight:on,controlHeightSM:Ee,controlHeightLG:fe,paddingXXS:Et,controlPaddingHorizontal:Jt,zIndexPopupBase:Dt,colorText:We,fontWeightStrong:ot,controlItemBgActive:dt,controlItemBgHover:$t,colorBgContainer:Lt,colorFillSecondary:Vt,colorBgContainerDisabled:rt,colorTextDisabled:Ht,colorPrimaryHover:st,colorPrimary:ae,controlOutline:te}=pe,ee=Et*2,oe=Nt*2,se=Math.min(on-ee,on-oe),re=Math.min(Ee-ee,Ee-oe),he=Math.min(fe-ee,fe-oe);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(Et/2),zIndexPopup:Dt+50,optionSelectedColor:We,optionSelectedFontWeight:ot,optionSelectedBg:dt,optionActiveBg:$t,optionPadding:`${(on-At*Be)/2}px ${Jt}px`,optionFontSize:At,optionLineHeight:Be,optionHeight:on,selectorBg:Lt,clearBg:Lt,singleItemHeightLG:fe,multipleItemBg:Vt,multipleItemBorderColor:"transparent",multipleItemHeight:se,multipleItemHeightSM:re,multipleItemHeightLG:he,multipleSelectorBgDisabled:rt,multipleItemColorDisabled:Ht,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(pe.fontSize*1.25),hoverBorderColor:st,activeBorderColor:ae,activeOutlineColor:te,selectAffixPadding:Et}},Te=(pe,At)=>{const{componentCls:Be,antCls:Nt,controlOutlineWidth:on}=pe;return{[`&:not(${Be}-customize-input) ${Be}-selector`]:{border:`${(0,He.unit)(pe.lineWidth)} ${pe.lineType} ${At.borderColor}`,background:pe.selectorBg},[`&:not(${Be}-disabled):not(${Be}-customize-input):not(${Nt}-pagination-size-changer)`]:{[`&:hover ${Be}-selector`]:{borderColor:At.hoverBorderHover},[`${Be}-focused& ${Be}-selector`]:{borderColor:At.activeBorderColor,boxShadow:`0 0 0 ${(0,He.unit)(on)} ${At.activeOutlineColor}`,outline:0},[`${Be}-prefix`]:{color:At.color}}}},ke=(pe,At)=>({[`&${pe.componentCls}-status-${At.status}`]:Object.assign({},Te(pe,At))}),Ne=pe=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},Te(pe,{borderColor:pe.colorBorder,hoverBorderHover:pe.hoverBorderColor,activeBorderColor:pe.activeBorderColor,activeOutlineColor:pe.activeOutlineColor,color:pe.colorText})),ke(pe,{status:"error",borderColor:pe.colorError,hoverBorderHover:pe.colorErrorHover,activeBorderColor:pe.colorError,activeOutlineColor:pe.colorErrorOutline,color:pe.colorError})),ke(pe,{status:"warning",borderColor:pe.colorWarning,hoverBorderHover:pe.colorWarningHover,activeBorderColor:pe.colorWarning,activeOutlineColor:pe.colorWarningOutline,color:pe.colorWarning})),{[`&${pe.componentCls}-disabled`]:{[`&:not(${pe.componentCls}-customize-input) ${pe.componentCls}-selector`]:{background:pe.colorBgContainerDisabled,color:pe.colorTextDisabled}},[`&${pe.componentCls}-multiple ${pe.componentCls}-selection-item`]:{background:pe.multipleItemBg,border:`${(0,He.unit)(pe.lineWidth)} ${pe.lineType} ${pe.multipleItemBorderColor}`}})}),yt=(pe,At)=>{const{componentCls:Be,antCls:Nt}=pe;return{[`&:not(${Be}-customize-input) ${Be}-selector`]:{background:At.bg,border:`${(0,He.unit)(pe.lineWidth)} ${pe.lineType} transparent`,color:At.color},[`&:not(${Be}-disabled):not(${Be}-customize-input):not(${Nt}-pagination-size-changer)`]:{[`&:hover ${Be}-selector`]:{background:At.hoverBg},[`${Be}-focused& ${Be}-selector`]:{background:pe.selectorBg,borderColor:At.activeBorderColor,outline:0}}}},wt=(pe,At)=>({[`&${pe.componentCls}-status-${At.status}`]:Object.assign({},yt(pe,At))}),Pt=pe=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},yt(pe,{bg:pe.colorFillTertiary,hoverBg:pe.colorFillSecondary,activeBorderColor:pe.activeBorderColor,color:pe.colorText})),wt(pe,{status:"error",bg:pe.colorErrorBg,hoverBg:pe.colorErrorBgHover,activeBorderColor:pe.colorError,color:pe.colorError})),wt(pe,{status:"warning",bg:pe.colorWarningBg,hoverBg:pe.colorWarningBgHover,activeBorderColor:pe.colorWarning,color:pe.colorWarning})),{[`&${pe.componentCls}-disabled`]:{[`&:not(${pe.componentCls}-customize-input) ${pe.componentCls}-selector`]:{borderColor:pe.colorBorder,background:pe.colorBgContainerDisabled,color:pe.colorTextDisabled}},[`&${pe.componentCls}-multiple ${pe.componentCls}-selection-item`]:{background:pe.colorBgContainer,border:`${(0,He.unit)(pe.lineWidth)} ${pe.lineType} ${pe.colorSplit}`}})}),bt=pe=>({"&-borderless":{[`${pe.componentCls}-selector`]:{background:"transparent",border:`${(0,He.unit)(pe.lineWidth)} ${pe.lineType} transparent`},[`&${pe.componentCls}-disabled`]:{[`&:not(${pe.componentCls}-customize-input) ${pe.componentCls}-selector`]:{color:pe.colorTextDisabled}},[`&${pe.componentCls}-multiple ${pe.componentCls}-selection-item`]:{background:pe.multipleItemBg,border:`${(0,He.unit)(pe.lineWidth)} ${pe.lineType} ${pe.multipleItemBorderColor}`},[`&${pe.componentCls}-status-error`]:{[`${pe.componentCls}-prefix, ${pe.componentCls}-selection-item`]:{color:pe.colorError}},[`&${pe.componentCls}-status-warning`]:{[`${pe.componentCls}-prefix, ${pe.componentCls}-selection-item`]:{color:pe.colorWarning}}}}),pt=(pe,At)=>{const{componentCls:Be,antCls:Nt}=pe;return{[`&:not(${Be}-customize-input) ${Be}-selector`]:{borderWidth:`0 0 ${(0,He.unit)(pe.lineWidth)} 0`,borderStyle:`none none ${pe.lineType} none`,borderColor:At.borderColor,background:pe.selectorBg,borderRadius:0},[`&:not(${Be}-disabled):not(${Be}-customize-input):not(${Nt}-pagination-size-changer)`]:{[`&:hover ${Be}-selector`]:{borderColor:At.hoverBorderHover},[`${Be}-focused& ${Be}-selector`]:{borderColor:At.activeBorderColor,outline:0},[`${Be}-prefix`]:{color:At.color}}}},lt=(pe,At)=>({[`&${pe.componentCls}-status-${At.status}`]:Object.assign({},pt(pe,At))}),_e=pe=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},pt(pe,{borderColor:pe.colorBorder,hoverBorderHover:pe.hoverBorderColor,activeBorderColor:pe.activeBorderColor,activeOutlineColor:pe.activeOutlineColor,color:pe.colorText})),lt(pe,{status:"error",borderColor:pe.colorError,hoverBorderHover:pe.colorErrorHover,activeBorderColor:pe.colorError,activeOutlineColor:pe.colorErrorOutline,color:pe.colorError})),lt(pe,{status:"warning",borderColor:pe.colorWarning,hoverBorderHover:pe.colorWarningHover,activeBorderColor:pe.colorWarning,activeOutlineColor:pe.colorWarningOutline,color:pe.colorWarning})),{[`&${pe.componentCls}-disabled`]:{[`&:not(${pe.componentCls}-customize-input) ${pe.componentCls}-selector`]:{color:pe.colorTextDisabled}},[`&${pe.componentCls}-multiple ${pe.componentCls}-selection-item`]:{background:pe.multipleItemBg,border:`${(0,He.unit)(pe.lineWidth)} ${pe.lineType} ${pe.multipleItemBorderColor}`}})});var nt=pe=>({[pe.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},Ne(pe)),Pt(pe)),bt(pe)),_e(pe))});const it=pe=>{const{componentCls:At}=pe;return{position:"relative",transition:`all ${pe.motionDurationMid} ${pe.motionEaseInOut}`,input:{cursor:"pointer"},[`${At}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${At}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},Ct=pe=>{const{componentCls:At}=pe;return{[`${At}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none",appearance:"none"}}}},ze=pe=>{const{antCls:At,componentCls:Be,inputPaddingHorizontalBase:Nt,iconCls:on}=pe;return{[Be]:Object.assign(Object.assign({},(0,z.Wf)(pe)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${Be}-customize-input) ${Be}-selector`]:Object.assign(Object.assign({},it(pe)),Ct(pe)),[`${Be}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},z.vS),{[`> ${At}-typography`]:{display:"inline"}}),[`${Be}-selection-placeholder`]:Object.assign(Object.assign({},z.vS),{flex:1,color:pe.colorTextPlaceholder,pointerEvents:"none"}),[`${Be}-arrow`]:Object.assign(Object.assign({},(0,z.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:Nt,height:pe.fontSizeIcon,marginTop:pe.calc(pe.fontSizeIcon).mul(-1).div(2).equal(),color:pe.colorTextQuaternary,fontSize:pe.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${pe.motionDurationSlow} ease`,[on]:{verticalAlign:"top",transition:`transform ${pe.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${Be}-suffix)`]:{pointerEvents:"auto"}},[`${Be}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${Be}-selection-wrap`]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},[`${Be}-prefix`]:{flex:"none",marginInlineEnd:pe.selectAffixPadding},[`${Be}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:Nt,zIndex:1,display:"inline-block",width:pe.fontSizeIcon,height:pe.fontSizeIcon,marginTop:pe.calc(pe.fontSizeIcon).mul(-1).div(2).equal(),color:pe.colorTextQuaternary,fontSize:pe.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${pe.motionDurationMid} ease, opacity ${pe.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:pe.colorTextTertiary}},[`&:hover ${Be}-clear`]:{opacity:1,background:pe.colorBgBase,borderRadius:"50%"}}),[`${Be}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${Be}-has-feedback`]:{[`${Be}-clear`]:{insetInlineEnd:pe.calc(Nt).add(pe.fontSize).add(pe.paddingXS).equal()}}}}}},gt=pe=>{const{componentCls:At}=pe;return[{[At]:{[`&${At}-in-form-item`]:{width:"100%"}}},ze(pe),vt(pe),(0,de.ZP)(pe),Pe(pe),{[`${At}-rtl`]:{direction:"rtl"}},(0,Ke.c)(pe,{borderElCls:`${At}-selector`,focusElCls:`${At}-focused`})]};var ut=(0,ge.I$)("Select",(pe,At)=>{let{rootPrefixCls:Be}=At;const Nt=(0,Ze.mergeToken)(pe,{rootPrefixCls:Be,inputPaddingHorizontalBase:pe.calc(pe.paddingSM).sub(1).equal(),multipleSelectItemHeight:pe.multipleItemHeight,selectHeight:pe.controlHeight});return[gt(Nt),nt(Nt)]},je,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}})},26743:function(rn,Ft,ie){"use strict";ie.d(Ft,{_z:function(){return Se},gp:function(){return Ze}});var z=ie(36237),Ke=ie(63356),ge=ie(51636);const Ze=de=>{const{multipleSelectItemHeight:He,paddingXXS:ye,lineWidth:vt,INTERNAL_FIXED_ITEM_MARGIN:je}=de,Te=de.max(de.calc(ye).sub(vt).equal(),0),ke=de.max(de.calc(Te).sub(je).equal(),0);return{basePadding:Te,containerPadding:ke,itemHeight:(0,z.unit)(He),itemLineHeight:(0,z.unit)(de.calc(He).sub(de.calc(de.lineWidth).mul(2)).equal())}},xe=de=>{const{multipleSelectItemHeight:He,selectHeight:ye,lineWidth:vt}=de;return de.calc(ye).sub(He).div(2).sub(vt).equal()},Se=de=>{const{componentCls:He,iconCls:ye,borderRadiusSM:vt,motionDurationSlow:je,paddingXS:Te,multipleItemColorDisabled:ke,multipleItemBorderColorDisabled:Ne,colorIcon:yt,colorIconHover:wt,INTERNAL_FIXED_ITEM_MARGIN:Pt}=de;return{[`${He}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${He}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:Pt,borderRadius:vt,cursor:"default",transition:`font-size ${je}, line-height ${je}, height ${je}`,marginInlineEnd:de.calc(Pt).mul(2).equal(),paddingInlineStart:Te,paddingInlineEnd:de.calc(Te).div(2).equal(),[`${He}-disabled&`]:{color:ke,borderColor:Ne,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:de.calc(Te).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,Ke.Ro)()),{display:"inline-flex",alignItems:"center",color:yt,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${ye}`]:{verticalAlign:"-0.2em"},"&:hover":{color:wt}})}}}},De=(de,He)=>{const{componentCls:ye,INTERNAL_FIXED_ITEM_MARGIN:vt}=de,je=`${ye}-selection-overflow`,Te=de.multipleSelectItemHeight,ke=xe(de),Ne=He?`${ye}-${He}`:"",yt=Ze(de);return{[`${ye}-multiple${Ne}`]:Object.assign(Object.assign({},Se(de)),{[`${ye}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:yt.basePadding,paddingBlock:yt.containerPadding,borderRadius:de.borderRadius,[`${ye}-disabled&`]:{background:de.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${(0,z.unit)(vt)} 0`,lineHeight:(0,z.unit)(Te),visibility:"hidden",content:'"\\a0"'}},[`${ye}-selection-item`]:{height:yt.itemHeight,lineHeight:(0,z.unit)(yt.itemLineHeight)},[`${ye}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:(0,z.unit)(Te),marginBlock:vt}},[`${ye}-prefix`]:{marginInlineStart:de.calc(de.inputPaddingHorizontalBase).sub(yt.basePadding).equal()},[`${je}-item + ${je}-item,
${ye}-prefix + ${ye}-selection-wrap
`]:{[`${ye}-selection-search`]:{marginInlineStart:0},[`${ye}-selection-placeholder`]:{insetInlineStart:0}},[`${je}-item-suffix`]:{minHeight:yt.itemHeight,marginBlock:vt},[`${ye}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:de.calc(de.inputPaddingHorizontalBase).sub(ke).equal(),"\n &-input,\n &-mirror\n ":{height:Te,fontFamily:de.fontFamily,lineHeight:(0,z.unit)(Te),transition:`all ${de.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${ye}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:de.calc(de.inputPaddingHorizontalBase).sub(yt.basePadding).equal(),insetInlineEnd:de.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${de.motionDurationSlow}`}})}};function Ue(de,He){const{componentCls:ye}=de,vt=He?`${ye}-${He}`:"",je={[`${ye}-multiple${vt}`]:{fontSize:de.fontSize,[`${ye}-selector`]:{[`${ye}-show-search&`]:{cursor:"text"}},[`
&${ye}-show-arrow ${ye}-selector,
&${ye}-allow-clear ${ye}-selector
`]:{paddingInlineEnd:de.calc(de.fontSizeIcon).add(de.controlPaddingHorizontal).equal()}}};return[De(de,He),je]}const Pe=de=>{const{componentCls:He}=de,ye=(0,ge.mergeToken)(de,{selectHeight:de.controlHeightSM,multipleSelectItemHeight:de.multipleItemHeightSM,borderRadius:de.borderRadiusSM,borderRadiusSM:de.borderRadiusXS}),vt=(0,ge.mergeToken)(de,{fontSize:de.fontSizeLG,selectHeight:de.controlHeightLG,multipleSelectItemHeight:de.multipleItemHeightLG,borderRadius:de.borderRadiusLG,borderRadiusSM:de.borderRadius});return[Ue(de),Ue(ye,"sm"),{[`${He}-multiple${He}-sm`]:{[`${He}-selection-placeholder`]:{insetInline:de.calc(de.controlPaddingHorizontalSM).sub(de.lineWidth).equal()},[`${He}-selection-search`]:{marginInlineStart:2}}},Ue(vt,"lg")]};Ft.ZP=Pe},68525:function(rn,Ft,ie){"use strict";ie.d(Ft,{Z:function(){return Ue}});var z=ie(59301),Ke=ie(40001),ge=ie(19248),Ze=ie(99267),xe=ie(84105),Se=ie(58617),De=ie(47472);function Ue(Pe){let{suffixIcon:de,clearIcon:He,menuItemSelectedIcon:ye,removeIcon:vt,loading:je,multiple:Te,hasFeedback:ke,prefixCls:Ne,showSuffixIcon:yt,feedbackIcon:wt,showArrow:Pt,componentName:bt}=Pe;const pt=He!=null?He:z.createElement(ge.Z,null),lt=it=>de===null&&!ke&&!Pt?null:z.createElement(z.Fragment,null,yt!==!1&&it,ke&&wt);let _e=null;if(de!==void 0)_e=lt(de);else if(je)_e=lt(z.createElement(Se.Z,{spin:!0}));else{const it=`${Ne}-suffix`;_e=Ct=>{let{open:ze,showSearch:gt}=Ct;return lt(ze&&gt?z.createElement(De.Z,{className:it}):z.createElement(xe.Z,{className:it}))}}let kt=null;ye!==void 0?kt=ye:Te?kt=z.createElement(Ke.Z,null):kt=null;let nt=null;return vt!==void 0?nt=vt:nt=z.createElement(Ze.Z,null),{clearIcon:pt,suffixIcon:_e,itemIcon:kt,removeIcon:nt}}},90005:function(rn,Ft,ie){"use strict";ie.d(Ft,{Z:function(){return z}});function z(Ke,ge){return ge!==void 0?ge:Ke!==null}},58755:function(rn,Ft,ie){"use strict";ie.d(Ft,{Z:function(){return At}});var z=ie(59301),Ke=ie(58617),ge=ie(92310),Ze=ie.n(ge),xe=ie(54476),Se=ie(20068),De=ie(42978),Ue=ie(75931),Pe=ie(18929),de=ie(10228),He=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],ye=z.forwardRef(function(Be,Nt){var on,Ee=Be.prefixCls,fe=Ee===void 0?"rc-switch":Ee,Et=Be.className,Jt=Be.checked,Dt=Be.defaultChecked,We=Be.disabled,ot=Be.loadingIcon,dt=Be.checkedChildren,$t=Be.unCheckedChildren,Lt=Be.onClick,Vt=Be.onChange,rt=Be.onKeyDown,Ht=(0,Ue.Z)(Be,He),st=(0,Pe.Z)(!1,{value:Jt,defaultValue:Dt}),ae=(0,De.Z)(st,2),te=ae[0],ee=ae[1];function oe(be,ht){var Me=te;return We||(Me=be,ee(Me),Vt==null||Vt(Me,ht)),Me}function se(be){be.which===de.Z.LEFT?oe(!1,be):be.which===de.Z.RIGHT&&oe(!0,be),rt==null||rt(be)}function re(be){var ht=oe(!te,be);Lt==null||Lt(ht,be)}var he=Ze()(fe,Et,(on={},(0,Se.Z)(on,"".concat(fe,"-checked"),te),(0,Se.Z)(on,"".concat(fe,"-disabled"),We),on));return z.createElement("button",(0,xe.Z)({},Ht,{type:"button",role:"switch","aria-checked":te,disabled:We,className:he,ref:Nt,onKeyDown:se,onClick:re}),ot,z.createElement("span",{className:"".concat(fe,"-inner")},z.createElement("span",{className:"".concat(fe,"-inner-checked")},dt),z.createElement("span",{className:"".concat(fe,"-inner-unchecked")},$t)))});ye.displayName="Switch";var vt=ye,je=ie(12919),Te=ie(48755),ke=ie(2171),Ne=ie(31756),yt=ie(36237),wt=ie(17835),Pt=ie(63356),bt=ie(16931),pt=ie(51636);const lt=Be=>{const{componentCls:Nt,trackHeightSM:on,trackPadding:Ee,trackMinWidthSM:fe,innerMinMarginSM:Et,innerMaxMarginSM:Jt,handleSizeSM:Dt,calc:We}=Be,ot=`${Nt}-inner`,dt=(0,yt.unit)(We(Dt).add(We(Ee).mul(2)).equal()),$t=(0,yt.unit)(We(Jt).mul(2).equal());return{[Nt]:{[`&${Nt}-small`]:{minWidth:fe,height:on,lineHeight:(0,yt.unit)(on),[`${Nt}-inner`]:{paddingInlineStart:Jt,paddingInlineEnd:Et,[`${ot}-checked, ${ot}-unchecked`]:{minHeight:on},[`${ot}-checked`]:{marginInlineStart:`calc(-100% + ${dt} - ${$t})`,marginInlineEnd:`calc(100% - ${dt} + ${$t})`},[`${ot}-unchecked`]:{marginTop:We(on).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${Nt}-handle`]:{width:Dt,height:Dt},[`${Nt}-loading-icon`]:{top:We(We(Dt).sub(Be.switchLoadingIconSize)).div(2).equal(),fontSize:Be.switchLoadingIconSize},[`&${Nt}-checked`]:{[`${Nt}-inner`]:{paddingInlineStart:Et,paddingInlineEnd:Jt,[`${ot}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${ot}-unchecked`]:{marginInlineStart:`calc(100% - ${dt} + ${$t})`,marginInlineEnd:`calc(-100% + ${dt} - ${$t})`}},[`${Nt}-handle`]:{insetInlineStart:`calc(100% - ${(0,yt.unit)(We(Dt).add(Ee).equal())})`}},[`&:not(${Nt}-disabled):active`]:{[`&:not(${Nt}-checked) ${ot}`]:{[`${ot}-unchecked`]:{marginInlineStart:We(Be.marginXXS).div(2).equal(),marginInlineEnd:We(Be.marginXXS).mul(-1).div(2).equal()}},[`&${Nt}-checked ${ot}`]:{[`${ot}-checked`]:{marginInlineStart:We(Be.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:We(Be.marginXXS).div(2).equal()}}}}}}},_e=Be=>{const{componentCls:Nt,handleSize:on,calc:Ee}=Be;return{[Nt]:{[`${Nt}-loading-icon${Be.iconCls}`]:{position:"relative",top:Ee(Ee(on).sub(Be.fontSize)).div(2).equal(),color:Be.switchLoadingIconColor,verticalAlign:"top"},[`&${Nt}-checked ${Nt}-loading-icon`]:{color:Be.switchColor}}}},kt=Be=>{const{componentCls:Nt,trackPadding:on,handleBg:Ee,handleShadow:fe,handleSize:Et,calc:Jt}=Be,Dt=`${Nt}-handle`;return{[Nt]:{[Dt]:{position:"absolute",top:on,insetInlineStart:on,width:Et,height:Et,transition:`all ${Be.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:Ee,borderRadius:Jt(Et).div(2).equal(),boxShadow:fe,transition:`all ${Be.switchDuration} ease-in-out`,content:'""'}},[`&${Nt}-checked ${Dt}`]:{insetInlineStart:`calc(100% - ${(0,yt.unit)(Jt(Et).add(on).equal())})`},[`&:not(${Nt}-disabled):active`]:{[`${Dt}::before`]:{insetInlineEnd:Be.switchHandleActiveInset,insetInlineStart:0},[`&${Nt}-checked ${Dt}::before`]:{insetInlineEnd:0,insetInlineStart:Be.switchHandleActiveInset}}}}},nt=Be=>{const{componentCls:Nt,trackHeight:on,trackPadding:Ee,innerMinMargin:fe,innerMaxMargin:Et,handleSize:Jt,calc:Dt}=Be,We=`${Nt}-inner`,ot=(0,yt.unit)(Dt(Jt).add(Dt(Ee).mul(2)).equal()),dt=(0,yt.unit)(Dt(Et).mul(2).equal());return{[Nt]:{[We]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:Et,paddingInlineEnd:fe,transition:`padding-inline-start ${Be.switchDuration} ease-in-out, padding-inline-end ${Be.switchDuration} ease-in-out`,[`${We}-checked, ${We}-unchecked`]:{display:"block",color:Be.colorTextLightSolid,fontSize:Be.fontSizeSM,transition:`margin-inline-start ${Be.switchDuration} ease-in-out, margin-inline-end ${Be.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:on},[`${We}-checked`]:{marginInlineStart:`calc(-100% + ${ot} - ${dt})`,marginInlineEnd:`calc(100% - ${ot} + ${dt})`},[`${We}-unchecked`]:{marginTop:Dt(on).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${Nt}-checked ${We}`]:{paddingInlineStart:fe,paddingInlineEnd:Et,[`${We}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${We}-unchecked`]:{marginInlineStart:`calc(100% - ${ot} + ${dt})`,marginInlineEnd:`calc(-100% + ${ot} - ${dt})`}},[`&:not(${Nt}-disabled):active`]:{[`&:not(${Nt}-checked) ${We}`]:{[`${We}-unchecked`]:{marginInlineStart:Dt(Ee).mul(2).equal(),marginInlineEnd:Dt(Ee).mul(-1).mul(2).equal()}},[`&${Nt}-checked ${We}`]:{[`${We}-checked`]:{marginInlineStart:Dt(Ee).mul(-1).mul(2).equal(),marginInlineEnd:Dt(Ee).mul(2).equal()}}}}}},it=Be=>{const{componentCls:Nt,trackHeight:on,trackMinWidth:Ee}=Be;return{[Nt]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,Pt.Wf)(Be)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:Ee,height:on,lineHeight:(0,yt.unit)(on),verticalAlign:"middle",background:Be.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${Be.motionDurationMid}`,userSelect:"none",[`&:hover:not(${Nt}-disabled)`]:{background:Be.colorTextTertiary}}),(0,Pt.Qy)(Be)),{[`&${Nt}-checked`]:{background:Be.switchColor,[`&:hover:not(${Nt}-disabled)`]:{background:Be.colorPrimaryHover}},[`&${Nt}-loading, &${Nt}-disabled`]:{cursor:"not-allowed",opacity:Be.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${Nt}-rtl`]:{direction:"rtl"}})}},Ct=Be=>{const{fontSize:Nt,lineHeight:on,controlHeight:Ee,colorWhite:fe}=Be,Et=Nt*on,Jt=Ee/2,Dt=2,We=Et-Dt*2,ot=Jt-Dt*2;return{trackHeight:Et,trackHeightSM:Jt,trackMinWidth:We*2+Dt*4,trackMinWidthSM:ot*2+Dt*2,trackPadding:Dt,handleBg:fe,handleSize:We,handleSizeSM:ot,handleShadow:`0 2px 4px 0 ${new wt.FastColor("#00230b").setA(.2).toRgbString()}`,innerMinMargin:We/2,innerMaxMargin:We+Dt+Dt*2,innerMinMarginSM:ot/2,innerMaxMarginSM:ot+Dt+Dt*2}};var ze=(0,bt.I$)("Switch",Be=>{const Nt=(0,pt.mergeToken)(Be,{switchDuration:Be.motionDurationMid,switchColor:Be.colorPrimary,switchDisabledOpacity:Be.opacityLoading,switchLoadingIconSize:Be.calc(Be.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${Be.opacityLoading})`,switchHandleActiveInset:"-30%"});return[it(Nt),nt(Nt),kt(Nt),_e(Nt),lt(Nt)]},Ct),gt=function(Be,Nt){var on={};for(var Ee in Be)Object.prototype.hasOwnProperty.call(Be,Ee)&&Nt.indexOf(Ee)<0&&(on[Ee]=Be[Ee]);if(Be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var fe=0,Ee=Object.getOwnPropertySymbols(Be);fe<Ee.length;fe++)Nt.indexOf(Ee[fe])<0&&Object.prototype.propertyIsEnumerable.call(Be,Ee[fe])&&(on[Ee[fe]]=Be[Ee[fe]]);return on};const pe=z.forwardRef((Be,Nt)=>{const{prefixCls:on,size:Ee,disabled:fe,loading:Et,className:Jt,rootClassName:Dt,style:We,checked:ot,value:dt,defaultChecked:$t,defaultValue:Lt,onChange:Vt}=Be,rt=gt(Be,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[Ht,st]=(0,Pe.Z)(!1,{value:ot!=null?ot:dt,defaultValue:$t!=null?$t:Lt}),{getPrefixCls:ae,direction:te,switch:ee}=z.useContext(Te.E_),oe=z.useContext(ke.Z),se=(fe!=null?fe:oe)||Et,re=ae("switch",on),he=z.createElement("div",{className:`${re}-handle`},Et&&z.createElement(Ke.Z,{className:`${re}-loading-icon`})),[be,ht,Me]=ze(re),Ye=(0,Ne.Z)(Ee),mt=Ze()(ee==null?void 0:ee.className,{[`${re}-small`]:Ye==="small",[`${re}-loading`]:Et,[`${re}-rtl`]:te==="rtl"},Jt,Dt,ht,Me),It=Object.assign(Object.assign({},ee==null?void 0:ee.style),We),xt=function(){st(arguments.length<=0?void 0:arguments[0]),Vt==null||Vt.apply(void 0,arguments)};return be(z.createElement(je.Z,{component:"Switch"},z.createElement(vt,Object.assign({},rt,{checked:Ht,onChange:xt,prefixCls:re,className:mt,style:It,disabled:se,ref:Nt,loadingIcon:he}))))});pe.__ANT_SWITCH=!0;var At=pe},94968:function(rn,Ft,ie){"use strict";ie.d(Ft,{default:function(){return Re}});var z=ie(59301),Ke=ie(94480),ge=ie(4676),Ze=ie(92310),xe=ie.n(Ze),Se=ie(54476),De=ie(67732),Ue=ie(83652),Pe=ie(31226),de=ie(42403),He=ie(158),ye=ie(20068),vt=ie(33885),je=ie(75931),Te=ie(76190),ke=ie(75044),Ne=ie(3202),yt=ie(26112),wt=ie(48736),Pt=function(ve,Ve){if(ve&&Ve){var Je=Array.isArray(Ve)?Ve:Ve.split(","),ct=ve.name||"",Qe=ve.type||"",Fe=Qe.replace(/\/.*$/,"");return Je.some(function($e){var qe=$e.trim();if(/^\*(\/\*)?$/.test($e))return!0;if(qe.charAt(0)==="."){var Qt=ct.toLowerCase(),Ut=qe.toLowerCase(),Yt=[Ut];return(Ut===".jpg"||Ut===".jpeg")&&(Yt=[".jpg",".jpeg"]),Yt.some(function(kn){return Qt.endsWith(kn)})}return/\/\*$/.test(qe)?Fe===qe.replace(/\/.*$/,""):Qe===qe?!0:/^\w+$/.test(qe)?((0,wt.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(qe,"'.Skip for check.")),!0):!1})}return!0};function bt(ve,Ve){var Je="cannot ".concat(ve.method," ").concat(ve.action," ").concat(Ve.status,"'"),ct=new Error(Je);return ct.status=Ve.status,ct.method=ve.method,ct.url=ve.action,ct}function pt(ve){var Ve=ve.responseText||ve.response;if(!Ve)return Ve;try{return JSON.parse(Ve)}catch(Je){return Ve}}function lt(ve){var Ve=new XMLHttpRequest;ve.onProgress&&Ve.upload&&(Ve.upload.onprogress=function(Fe){Fe.total>0&&(Fe.percent=Fe.loaded/Fe.total*100),ve.onProgress(Fe)});var Je=new FormData;ve.data&&Object.keys(ve.data).forEach(function(Qe){var Fe=ve.data[Qe];if(Array.isArray(Fe)){Fe.forEach(function($e){Je.append("".concat(Qe,"[]"),$e)});return}Je.append(Qe,Fe)}),ve.file instanceof Blob?Je.append(ve.filename,ve.file,ve.file.name):Je.append(ve.filename,ve.file),Ve.onerror=function(Fe){ve.onError(Fe)},Ve.onload=function(){return Ve.status<200||Ve.status>=300?ve.onError(bt(ve,Ve),pt(Ve)):ve.onSuccess(pt(Ve),Ve)},Ve.open(ve.method,ve.action,!0),ve.withCredentials&&"withCredentials"in Ve&&(Ve.withCredentials=!0);var ct=ve.headers||{};return ct["X-Requested-With"]!==null&&Ve.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(ct).forEach(function(Qe){ct[Qe]!==null&&Ve.setRequestHeader(Qe,ct[Qe])}),Ve.send(Je),{abort:function(){Ve.abort()}}}var _e=function(){var ve=(0,Ne.Z)((0,ke.Z)().mark(function Ve(Je,ct){var Qe,Fe,$e,qe,Qt,Ut,Yt,kn;return(0,ke.Z)().wrap(function(Hn){for(;;)switch(Hn.prev=Hn.next){case 0:Ut=function(){return Ut=(0,Ne.Z)((0,ke.Z)().mark(function xn(Pn){return(0,ke.Z)().wrap(function(Yn){for(;;)switch(Yn.prev=Yn.next){case 0:return Yn.abrupt("return",new Promise(function(Un){Pn.file(function(Kn){ct(Kn)?(Pn.fullPath&&!Kn.webkitRelativePath&&(Object.defineProperties(Kn,{webkitRelativePath:{writable:!0}}),Kn.webkitRelativePath=Pn.fullPath.replace(/^\//,""),Object.defineProperties(Kn,{webkitRelativePath:{writable:!1}})),Un(Kn)):Un(null)})}));case 1:case"end":return Yn.stop()}},xn)})),Ut.apply(this,arguments)},Qt=function(xn){return Ut.apply(this,arguments)},qe=function(){return qe=(0,Ne.Z)((0,ke.Z)().mark(function xn(Pn){var Fn,Yn,Un,Kn,Cn;return(0,ke.Z)().wrap(function(jn){for(;;)switch(jn.prev=jn.next){case 0:Fn=Pn.createReader(),Yn=[];case 2:return jn.next=5,new Promise(function(dr){Fn.readEntries(dr,function(){return dr([])})});case 5:if(Un=jn.sent,Kn=Un.length,Kn){jn.next=9;break}return jn.abrupt("break",12);case 9:for(Cn=0;Cn<Kn;Cn++)Yn.push(Un[Cn]);jn.next=2;break;case 12:return jn.abrupt("return",Yn);case 13:case"end":return jn.stop()}},xn)})),qe.apply(this,arguments)},$e=function(xn){return qe.apply(this,arguments)},Qe=[],Fe=[],Je.forEach(function(Mn){return Fe.push(Mn.webkitGetAsEntry())}),Yt=function(){var Mn=(0,Ne.Z)((0,ke.Z)().mark(function xn(Pn,Fn){var Yn,Un;return(0,ke.Z)().wrap(function(Cn){for(;;)switch(Cn.prev=Cn.next){case 0:if(Pn){Cn.next=2;break}return Cn.abrupt("return");case 2:if(Pn.path=Fn||"",!Pn.isFile){Cn.next=10;break}return Cn.next=6,Qt(Pn);case 6:Yn=Cn.sent,Yn&&Qe.push(Yn),Cn.next=15;break;case 10:if(!Pn.isDirectory){Cn.next=15;break}return Cn.next=13,$e(Pn);case 13:Un=Cn.sent,Fe.push.apply(Fe,(0,Ke.Z)(Un));case 15:case"end":return Cn.stop()}},xn)}));return function(Pn,Fn){return Mn.apply(this,arguments)}}(),kn=0;case 9:if(!(kn<Fe.length)){Hn.next=15;break}return Hn.next=12,Yt(Fe[kn]);case 12:kn++,Hn.next=9;break;case 15:return Hn.abrupt("return",Qe);case 16:case"end":return Hn.stop()}},Ve)}));return function(Je,ct){return ve.apply(this,arguments)}}(),kt=_e,nt=+new Date,it=0;function Ct(){return"rc-upload-".concat(nt,"-").concat(++it)}var ze=["component","prefixCls","className","classNames","disabled","id","name","style","styles","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave","hasControlInside"],gt=function(ve){(0,de.Z)(Je,ve);var Ve=(0,He.Z)(Je);function Je(){var ct;(0,De.Z)(this,Je);for(var Qe=arguments.length,Fe=new Array(Qe),$e=0;$e<Qe;$e++)Fe[$e]=arguments[$e];return ct=Ve.call.apply(Ve,[this].concat(Fe)),(0,ye.Z)((0,Pe.Z)(ct),"state",{uid:Ct()}),(0,ye.Z)((0,Pe.Z)(ct),"reqs",{}),(0,ye.Z)((0,Pe.Z)(ct),"fileInput",void 0),(0,ye.Z)((0,Pe.Z)(ct),"_isMounted",void 0),(0,ye.Z)((0,Pe.Z)(ct),"onChange",function(qe){var Qt=ct.props,Ut=Qt.accept,Yt=Qt.directory,kn=qe.target.files,Ln=(0,Ke.Z)(kn).filter(function(Hn){return!Yt||Pt(Hn,Ut)});ct.uploadFiles(Ln),ct.reset()}),(0,ye.Z)((0,Pe.Z)(ct),"onClick",function(qe){var Qt=ct.fileInput;if(Qt){var Ut=qe.target,Yt=ct.props.onClick;if(Ut&&Ut.tagName==="BUTTON"){var kn=Qt.parentNode;kn.focus(),Ut.blur()}Qt.click(),Yt&&Yt(qe)}}),(0,ye.Z)((0,Pe.Z)(ct),"onKeyDown",function(qe){qe.key==="Enter"&&ct.onClick(qe)}),(0,ye.Z)((0,Pe.Z)(ct),"onFileDrop",function(){var qe=(0,Ne.Z)((0,ke.Z)().mark(function Qt(Ut){var Yt,kn,Ln;return(0,ke.Z)().wrap(function(Mn){for(;;)switch(Mn.prev=Mn.next){case 0:if(Yt=ct.props.multiple,Ut.preventDefault(),Ut.type!=="dragover"){Mn.next=4;break}return Mn.abrupt("return");case 4:if(!ct.props.directory){Mn.next=11;break}return Mn.next=7,kt(Array.prototype.slice.call(Ut.dataTransfer.items),function(xn){return Pt(xn,ct.props.accept)});case 7:kn=Mn.sent,ct.uploadFiles(kn),Mn.next=14;break;case 11:Ln=(0,Ke.Z)(Ut.dataTransfer.files).filter(function(xn){return Pt(xn,ct.props.accept)}),Yt===!1&&(Ln=Ln.slice(0,1)),ct.uploadFiles(Ln);case 14:case"end":return Mn.stop()}},Qt)}));return function(Qt){return qe.apply(this,arguments)}}()),(0,ye.Z)((0,Pe.Z)(ct),"uploadFiles",function(qe){var Qt=(0,Ke.Z)(qe),Ut=Qt.map(function(Yt){return Yt.uid=Ct(),ct.processFile(Yt,Qt)});Promise.all(Ut).then(function(Yt){var kn=ct.props.onBatchStart;kn==null||kn(Yt.map(function(Ln){var Hn=Ln.origin,Mn=Ln.parsedFile;return{file:Hn,parsedFile:Mn}})),Yt.filter(function(Ln){return Ln.parsedFile!==null}).forEach(function(Ln){ct.post(Ln)})})}),(0,ye.Z)((0,Pe.Z)(ct),"processFile",function(){var qe=(0,Ne.Z)((0,ke.Z)().mark(function Qt(Ut,Yt){var kn,Ln,Hn,Mn,xn,Pn,Fn,Yn,Un;return(0,ke.Z)().wrap(function(Cn){for(;;)switch(Cn.prev=Cn.next){case 0:if(kn=ct.props.beforeUpload,Ln=Ut,!kn){Cn.next=14;break}return Cn.prev=3,Cn.next=6,kn(Ut,Yt);case 6:Ln=Cn.sent,Cn.next=12;break;case 9:Cn.prev=9,Cn.t0=Cn.catch(3),Ln=!1;case 12:if(Ln!==!1){Cn.next=14;break}return Cn.abrupt("return",{origin:Ut,parsedFile:null,action:null,data:null});case 14:if(Hn=ct.props.action,typeof Hn!="function"){Cn.next=21;break}return Cn.next=18,Hn(Ut);case 18:Mn=Cn.sent,Cn.next=22;break;case 21:Mn=Hn;case 22:if(xn=ct.props.data,typeof xn!="function"){Cn.next=29;break}return Cn.next=26,xn(Ut);case 26:Pn=Cn.sent,Cn.next=30;break;case 29:Pn=xn;case 30:return Fn=((0,Te.Z)(Ln)==="object"||typeof Ln=="string")&&Ln?Ln:Ut,Fn instanceof File?Yn=Fn:Yn=new File([Fn],Ut.name,{type:Ut.type}),Un=Yn,Un.uid=Ut.uid,Cn.abrupt("return",{origin:Ut,data:Pn,parsedFile:Un,action:Mn});case 35:case"end":return Cn.stop()}},Qt,null,[[3,9]])}));return function(Qt,Ut){return qe.apply(this,arguments)}}()),(0,ye.Z)((0,Pe.Z)(ct),"saveFileInput",function(qe){ct.fileInput=qe}),ct}return(0,Ue.Z)(Je,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(Qe){var Fe=this,$e=Qe.data,qe=Qe.origin,Qt=Qe.action,Ut=Qe.parsedFile;if(this._isMounted){var Yt=this.props,kn=Yt.onStart,Ln=Yt.customRequest,Hn=Yt.name,Mn=Yt.headers,xn=Yt.withCredentials,Pn=Yt.method,Fn=qe.uid,Yn=Ln||lt,Un={action:Qt,filename:Hn,data:$e,file:Ut,headers:Mn,withCredentials:xn,method:Pn||"post",onProgress:function(Cn){var er=Fe.props.onProgress;er==null||er(Cn,Ut)},onSuccess:function(Cn,er){var jn=Fe.props.onSuccess;jn==null||jn(Cn,Ut,er),delete Fe.reqs[Fn]},onError:function(Cn,er){var jn=Fe.props.onError;jn==null||jn(Cn,er,Ut),delete Fe.reqs[Fn]}};kn(qe),this.reqs[Fn]=Yn(Un)}}},{key:"reset",value:function(){this.setState({uid:Ct()})}},{key:"abort",value:function(Qe){var Fe=this.reqs;if(Qe){var $e=Qe.uid?Qe.uid:Qe;Fe[$e]&&Fe[$e].abort&&Fe[$e].abort(),delete Fe[$e]}else Object.keys(Fe).forEach(function(qe){Fe[qe]&&Fe[qe].abort&&Fe[qe].abort(),delete Fe[qe]})}},{key:"render",value:function(){var Qe=this.props,Fe=Qe.component,$e=Qe.prefixCls,qe=Qe.className,Qt=Qe.classNames,Ut=Qt===void 0?{}:Qt,Yt=Qe.disabled,kn=Qe.id,Ln=Qe.name,Hn=Qe.style,Mn=Qe.styles,xn=Mn===void 0?{}:Mn,Pn=Qe.multiple,Fn=Qe.accept,Yn=Qe.capture,Un=Qe.children,Kn=Qe.directory,Cn=Qe.openFileDialogOnClick,er=Qe.onMouseEnter,jn=Qe.onMouseLeave,dr=Qe.hasControlInside,pr=(0,je.Z)(Qe,ze),sr=xe()((0,ye.Z)((0,ye.Z)((0,ye.Z)({},$e,!0),"".concat($e,"-disabled"),Yt),qe,qe)),ur=Kn?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},yr=Yt?{}:{onClick:Cn?this.onClick:function(){},onKeyDown:Cn?this.onKeyDown:function(){},onMouseEnter:er,onMouseLeave:jn,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:dr?void 0:"0"};return z.createElement(Fe,(0,Se.Z)({},yr,{className:sr,role:dr?void 0:"button",style:Hn}),z.createElement("input",(0,Se.Z)({},(0,yt.Z)(pr,{aria:!0,data:!0}),{id:kn,name:Ln,disabled:Yt,type:"file",ref:this.saveFileInput,onClick:function(fr){return fr.stopPropagation()},key:this.state.uid,style:(0,vt.Z)({display:"none"},xn.input),className:Ut.input,accept:Fn},ur,{multiple:Pn,onChange:this.onChange},Yn!=null?{capture:Yn}:{})),Un)}}]),Je}(z.Component),ut=gt;function pe(){}var At=function(ve){(0,de.Z)(Je,ve);var Ve=(0,He.Z)(Je);function Je(){var ct;(0,De.Z)(this,Je);for(var Qe=arguments.length,Fe=new Array(Qe),$e=0;$e<Qe;$e++)Fe[$e]=arguments[$e];return ct=Ve.call.apply(Ve,[this].concat(Fe)),(0,ye.Z)((0,Pe.Z)(ct),"uploader",void 0),(0,ye.Z)((0,Pe.Z)(ct),"saveUploader",function(qe){ct.uploader=qe}),ct}return(0,Ue.Z)(Je,[{key:"abort",value:function(Qe){this.uploader.abort(Qe)}},{key:"render",value:function(){return z.createElement(ut,(0,Se.Z)({},this.props,{ref:this.saveUploader}))}}]),Je}(z.Component);(0,ye.Z)(At,"defaultProps",{component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:pe,onError:pe,onSuccess:pe,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0,hasControlInside:!1});var Be=At,Nt=Be,on=ie(18929),Ee=ie(48755),fe=ie(2171),Et=ie(9017),Jt=ie(85981),Dt=ie(63356),We=ie(34961),ot=ie(16931),dt=ie(51636),$t=ie(36237),Vt=ve=>{const{componentCls:Ve,iconCls:Je}=ve;return{[`${Ve}-wrapper`]:{[`${Ve}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:ve.colorFillAlter,border:`${(0,$t.unit)(ve.lineWidth)} dashed ${ve.colorBorder}`,borderRadius:ve.borderRadiusLG,cursor:"pointer",transition:`border-color ${ve.motionDurationSlow}`,[Ve]:{padding:ve.padding},[`${Ve}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none",borderRadius:ve.borderRadiusLG,"&:focus-visible":{outline:`${(0,$t.unit)(ve.lineWidthFocus)} solid ${ve.colorPrimaryBorder}`}},[`${Ve}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`
&:not(${Ve}-disabled):hover,
&-hover:not(${Ve}-disabled)
`]:{borderColor:ve.colorPrimaryHover},[`p${Ve}-drag-icon`]:{marginBottom:ve.margin,[Je]:{color:ve.colorPrimary,fontSize:ve.uploadThumbnailSize}},[`p${Ve}-text`]:{margin:`0 0 ${(0,$t.unit)(ve.marginXXS)}`,color:ve.colorTextHeading,fontSize:ve.fontSizeLG},[`p${Ve}-hint`]:{color:ve.colorTextDescription,fontSize:ve.fontSize},[`&${Ve}-disabled`]:{[`p${Ve}-drag-icon ${Je},
p${Ve}-text,
p${Ve}-hint
`]:{color:ve.colorTextDisabled}}}}}},Ht=ve=>{const{componentCls:Ve,iconCls:Je,fontSize:ct,lineHeight:Qe,calc:Fe}=ve,$e=`${Ve}-list-item`,qe=`${$e}-actions`,Qt=`${$e}-action`;return{[`${Ve}-wrapper`]:{[`${Ve}-list`]:Object.assign(Object.assign({},(0,Dt.dF)()),{lineHeight:ve.lineHeight,[$e]:{position:"relative",height:Fe(ve.lineHeight).mul(ct).equal(),marginTop:ve.marginXS,fontSize:ct,display:"flex",alignItems:"center",transition:`background-color ${ve.motionDurationSlow}`,borderRadius:ve.borderRadiusSM,"&:hover":{backgroundColor:ve.controlItemBgHover},[`${$e}-name`]:Object.assign(Object.assign({},Dt.vS),{padding:`0 ${(0,$t.unit)(ve.paddingXS)}`,lineHeight:Qe,flex:"auto",transition:`all ${ve.motionDurationSlow}`}),[qe]:{whiteSpace:"nowrap",[Qt]:{opacity:0},[Je]:{color:ve.actionsColor,transition:`all ${ve.motionDurationSlow}`},[`
${Qt}:focus-visible,
&.picture ${Qt}
`]:{opacity:1}},[`${Ve}-icon ${Je}`]:{color:ve.colorTextDescription,fontSize:ct},[`${$e}-progress`]:{position:"absolute",bottom:ve.calc(ve.uploadProgressOffset).mul(-1).equal(),width:"100%",paddingInlineStart:Fe(ct).add(ve.paddingXS).equal(),fontSize:ct,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${$e}:hover ${Qt}`]:{opacity:1},[`${$e}-error`]:{color:ve.colorError,[`${$e}-name, ${Ve}-icon ${Je}`]:{color:ve.colorError},[qe]:{[`${Je}, ${Je}:hover`]:{color:ve.colorError},[Qt]:{opacity:1}}},[`${Ve}-list-item-container`]:{transition:`opacity ${ve.motionDurationSlow}, height ${ve.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},st=ie(99495),te=ve=>{const{componentCls:Ve}=ve,Je=new $t.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,padding:0,opacity:0,margin:ve.calc(ve.marginXS).div(-2).equal()}}),ct=new $t.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,padding:0,opacity:0,margin:ve.calc(ve.marginXS).div(-2).equal()}}),Qe=`${Ve}-animate-inline`;return[{[`${Ve}-wrapper`]:{[`${Qe}-appear, ${Qe}-enter, ${Qe}-leave`]:{animationDuration:ve.motionDurationSlow,animationTimingFunction:ve.motionEaseInOutCirc,animationFillMode:"forwards"},[`${Qe}-appear, ${Qe}-enter`]:{animationName:Je},[`${Qe}-leave`]:{animationName:ct}}},{[`${Ve}-wrapper`]:(0,st.J$)(ve)},Je,ct]},ee=ie(68361);const oe=ve=>{const{componentCls:Ve,iconCls:Je,uploadThumbnailSize:ct,uploadProgressOffset:Qe,calc:Fe}=ve,$e=`${Ve}-list`,qe=`${$e}-item`;return{[`${Ve}-wrapper`]:{[`
${$e}${$e}-picture,
${$e}${$e}-picture-card,
${$e}${$e}-picture-circle
`]:{[qe]:{position:"relative",height:Fe(ct).add(Fe(ve.lineWidth).mul(2)).add(Fe(ve.paddingXS).mul(2)).equal(),padding:ve.paddingXS,border:`${(0,$t.unit)(ve.lineWidth)} ${ve.lineType} ${ve.colorBorder}`,borderRadius:ve.borderRadiusLG,"&:hover":{background:"transparent"},[`${qe}-thumbnail`]:Object.assign(Object.assign({},Dt.vS),{width:ct,height:ct,lineHeight:(0,$t.unit)(Fe(ct).add(ve.paddingSM).equal()),textAlign:"center",flex:"none",[Je]:{fontSize:ve.fontSizeHeading2,color:ve.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${qe}-progress`]:{bottom:Qe,width:`calc(100% - ${(0,$t.unit)(Fe(ve.paddingSM).mul(2).equal())})`,marginTop:0,paddingInlineStart:Fe(ct).add(ve.paddingXS).equal()}},[`${qe}-error`]:{borderColor:ve.colorError,[`${qe}-thumbnail ${Je}`]:{[`svg path[fill='${ee.blue[0]}']`]:{fill:ve.colorErrorBg},[`svg path[fill='${ee.blue.primary}']`]:{fill:ve.colorError}}},[`${qe}-uploading`]:{borderStyle:"dashed",[`${qe}-name`]:{marginBottom:Qe}}},[`${$e}${$e}-picture-circle ${qe}`]:{[`&, &::before, ${qe}-thumbnail`]:{borderRadius:"50%"}}}}},se=ve=>{const{componentCls:Ve,iconCls:Je,fontSizeLG:ct,colorTextLightSolid:Qe,calc:Fe}=ve,$e=`${Ve}-list`,qe=`${$e}-item`,Qt=ve.uploadPicCardSize;return{[`
${Ve}-wrapper${Ve}-picture-card-wrapper,
${Ve}-wrapper${Ve}-picture-circle-wrapper
`]:Object.assign(Object.assign({},(0,Dt.dF)()),{display:"block",[`${Ve}${Ve}-select`]:{width:Qt,height:Qt,textAlign:"center",verticalAlign:"top",backgroundColor:ve.colorFillAlter,border:`${(0,$t.unit)(ve.lineWidth)} dashed ${ve.colorBorder}`,borderRadius:ve.borderRadiusLG,cursor:"pointer",transition:`border-color ${ve.motionDurationSlow}`,[`> ${Ve}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${Ve}-disabled):hover`]:{borderColor:ve.colorPrimary}},[`${$e}${$e}-picture-card, ${$e}${$e}-picture-circle`]:{display:"flex",flexWrap:"wrap","@supports not (gap: 1px)":{"& > *":{marginBlockEnd:ve.marginXS,marginInlineEnd:ve.marginXS}},"@supports (gap: 1px)":{gap:ve.marginXS},[`${$e}-item-container`]:{display:"inline-block",width:Qt,height:Qt,verticalAlign:"top"},"&::after":{display:"none"},"&::before":{display:"none"},[qe]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${(0,$t.unit)(Fe(ve.paddingXS).mul(2).equal())})`,height:`calc(100% - ${(0,$t.unit)(Fe(ve.paddingXS).mul(2).equal())})`,backgroundColor:ve.colorBgMask,opacity:0,transition:`all ${ve.motionDurationSlow}`,content:'" "'}},[`${qe}:hover`]:{[`&::before, ${qe}-actions`]:{opacity:1}},[`${qe}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${ve.motionDurationSlow}`,[`
${Je}-eye,
${Je}-download,
${Je}-delete
`]:{zIndex:10,width:ct,margin:`0 ${(0,$t.unit)(ve.marginXXS)}`,fontSize:ct,cursor:"pointer",transition:`all ${ve.motionDurationSlow}`,color:Qe,"&:hover":{color:Qe},svg:{verticalAlign:"baseline"}}},[`${qe}-thumbnail, ${qe}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${qe}-name`]:{display:"none",textAlign:"center"},[`${qe}-file + ${qe}-name`]:{position:"absolute",bottom:ve.margin,display:"block",width:`calc(100% - ${(0,$t.unit)(Fe(ve.paddingXS).mul(2).equal())})`},[`${qe}-uploading`]:{[`&${qe}`]:{backgroundColor:ve.colorFillAlter},[`&::before, ${Je}-eye, ${Je}-download, ${Je}-delete`]:{display:"none"}},[`${qe}-progress`]:{bottom:ve.marginXL,width:`calc(100% - ${(0,$t.unit)(Fe(ve.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${Ve}-wrapper${Ve}-picture-circle-wrapper`]:{[`${Ve}${Ve}-select`]:{borderRadius:"50%"}}}};var he=ve=>{const{componentCls:Ve}=ve;return{[`${Ve}-rtl`]:{direction:"rtl"}}};const be=ve=>{const{componentCls:Ve,colorTextDisabled:Je}=ve;return{[`${Ve}-wrapper`]:Object.assign(Object.assign({},(0,Dt.Wf)(ve)),{[Ve]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${Ve}-select`]:{display:"inline-block"},[`${Ve}-hidden`]:{display:"none"},[`${Ve}-disabled`]:{color:Je,cursor:"not-allowed"}})}},ht=ve=>({actionsColor:ve.colorTextDescription});var Me=(0,ot.I$)("Upload",ve=>{const{fontSizeHeading3:Ve,fontHeight:Je,lineWidth:ct,controlHeightLG:Qe,calc:Fe}=ve,$e=(0,dt.mergeToken)(ve,{uploadThumbnailSize:Fe(Ve).mul(2).equal(),uploadProgressOffset:Fe(Fe(Je).div(2)).add(ct).equal(),uploadPicCardSize:Fe(Qe).mul(2.55).equal()});return[be($e),Vt($e),oe($e),se($e),Ht($e),te($e),he($e),(0,We.Z)($e)]},ht),Ye={icon:function(Ve,Je){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:Je}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:Ve}}]}},name:"file",theme:"twotone"},mt=Ye,It=ie(7657),xt=function(Ve,Je){return z.createElement(It.Z,(0,Se.Z)({},Ve,{ref:Je,icon:mt}))},Xt=z.forwardRef(xt),Kt=Xt,jt=ie(58617),_t={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},Zt=_t,ln=function(Ve,Je){return z.createElement(It.Z,(0,Se.Z)({},Ve,{ref:Je,icon:Zt}))},St=z.forwardRef(ln),qt=St,Wt={icon:function(Ve,Je){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:Ve}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:Je}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:Je}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:Je}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:Ve}}]}},name:"picture",theme:"twotone"},Oe=Wt,tt=function(Ve,Je){return z.createElement(It.Z,(0,Se.Z)({},Ve,{ref:Je,icon:Oe}))},Tt=z.forwardRef(tt),zt=Tt,Ie=ie(77900),Xe=ie(2738),ft=ie(40192),Mt=ie(86641),Gt=ie(22703),cn=ie(7939);function En(ve){return Object.assign(Object.assign({},ve),{lastModified:ve.lastModified,lastModifiedDate:ve.lastModifiedDate,name:ve.name,size:ve.size,type:ve.type,uid:ve.uid,percent:0,originFileObj:ve})}function Sn(ve,Ve){const Je=(0,Ke.Z)(Ve),ct=Je.findIndex(Qe=>{let{uid:Fe}=Qe;return Fe===ve.uid});return ct===-1?Je.push(ve):Je[ct]=ve,Je}function sn(ve,Ve){const Je=ve.uid!==void 0?"uid":"name";return Ve.filter(ct=>ct[Je]===ve[Je])[0]}function yn(ve,Ve){const Je=ve.uid!==void 0?"uid":"name",ct=Ve.filter(Qe=>Qe[Je]!==ve[Je]);return ct.length===Ve.length?null:ct}const gn=function(){const Ve=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),ct=Ve[Ve.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(ct)||[""])[0]},zn=ve=>ve.indexOf("image/")===0,bn=ve=>{if(ve.type&&!ve.thumbUrl)return zn(ve.type);const Ve=ve.thumbUrl||ve.url||"",Je=gn(Ve);return/^data:image\//.test(Ve)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(Je)?!0:!(/^data:/.test(Ve)||Je)},vn=200;function un(ve){return new Promise(Ve=>{if(!ve.type||!zn(ve.type)){Ve("");return}const Je=document.createElement("canvas");Je.width=vn,Je.height=vn,Je.style.cssText=`position: fixed; left: 0; top: 0; width: ${vn}px; height: ${vn}px; z-index: 9999; display: none;`,document.body.appendChild(Je);const ct=Je.getContext("2d"),Qe=new Image;if(Qe.onload=()=>{const{width:Fe,height:$e}=Qe;let qe=vn,Qt=vn,Ut=0,Yt=0;Fe>$e?(Qt=$e*(vn/Fe),Yt=-(Qt-qe)/2):(qe=Fe*(vn/$e),Ut=-(qe-Qt)/2),ct.drawImage(Qe,Ut,Yt,qe,Qt);const kn=Je.toDataURL();document.body.removeChild(Je),window.URL.revokeObjectURL(Qe.src),Ve(kn)},Qe.crossOrigin="anonymous",ve.type.startsWith("image/svg+xml")){const Fe=new FileReader;Fe.onload=()=>{Fe.result&&typeof Fe.result=="string"&&(Qe.src=Fe.result)},Fe.readAsDataURL(ve)}else if(ve.type.startsWith("image/gif")){const Fe=new FileReader;Fe.onload=()=>{Fe.result&&Ve(Fe.result)},Fe.readAsDataURL(ve)}else Qe.src=window.URL.createObjectURL(ve)})}var On=ie(26227),mn=ie(41464),Dn=ie(15277),Wn=ie(89787),Zn=ie(25399),Xn=z.forwardRef((ve,Ve)=>{let{prefixCls:Je,className:ct,style:Qe,locale:Fe,listType:$e,file:qe,items:Qt,progress:Ut,iconRender:Yt,actionIconRender:kn,itemRender:Ln,isImgUrl:Hn,showPreviewIcon:Mn,showRemoveIcon:xn,showDownloadIcon:Pn,previewIcon:Fn,removeIcon:Yn,downloadIcon:Un,extra:Kn,onPreview:Cn,onDownload:er,onClose:jn}=ve;var dr,pr;const{status:sr}=qe,[ur,yr]=z.useState(sr);z.useEffect(()=>{sr!=="removed"&&yr(sr)},[sr]);const[lr,fr]=z.useState(!1);z.useEffect(()=>{const tn=setTimeout(()=>{fr(!0)},300);return()=>{clearTimeout(tn)}},[]);const Qn=Yt(qe);let mr=z.createElement("div",{className:`${Je}-icon`},Qn);if($e==="picture"||$e==="picture-card"||$e==="picture-circle")if(ur==="uploading"||!qe.thumbUrl&&!qe.url){const tn=xe()(`${Je}-list-item-thumbnail`,{[`${Je}-list-item-file`]:ur!=="uploading"});mr=z.createElement("div",{className:tn},Qn)}else{const tn=Hn!=null&&Hn(qe)?z.createElement("img",{src:qe.thumbUrl||qe.url,alt:qe.name,className:`${Je}-list-item-image`,crossOrigin:qe.crossOrigin}):Qn,wn=xe()(`${Je}-list-item-thumbnail`,{[`${Je}-list-item-file`]:Hn&&!Hn(qe)});mr=z.createElement("a",{className:wn,onClick:Tn=>Cn(qe,Tn),href:qe.url||qe.thumbUrl,target:"_blank",rel:"noopener noreferrer"},tn)}const br=xe()(`${Je}-list-item`,`${Je}-list-item-${ur}`),zr=typeof qe.linkProps=="string"?JSON.parse(qe.linkProps):qe.linkProps,Er=(typeof xn=="function"?xn(qe):xn)?kn((typeof Yn=="function"?Yn(qe):Yn)||z.createElement(On.Z,null),()=>jn(qe),Je,Fe.removeFile,!0):null,Br=(typeof Pn=="function"?Pn(qe):Pn)&&ur==="done"?kn((typeof Un=="function"?Un(qe):Un)||z.createElement(mn.Z,null),()=>er(qe),Je,Fe.downloadFile):null,Ir=$e!=="picture-card"&&$e!=="picture-circle"&&z.createElement("span",{key:"download-delete",className:xe()(`${Je}-list-item-actions`,{picture:$e==="picture"})},Br,Er),Or=typeof Kn=="function"?Kn(qe):Kn,ir=Or&&z.createElement("span",{className:`${Je}-list-item-extra`},Or),rr=xe()(`${Je}-list-item-name`),Jn=qe.url?z.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:rr,title:qe.name},zr,{href:qe.url,onClick:tn=>Cn(qe,tn)}),qe.name,ir):z.createElement("span",{key:"view",className:rr,onClick:tn=>Cn(qe,tn),title:qe.name},qe.name,ir),an=(typeof Mn=="function"?Mn(qe):Mn)&&(qe.url||qe.thumbUrl)?z.createElement("a",{href:qe.url||qe.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:tn=>Cn(qe,tn),title:Fe.previewFile},typeof Fn=="function"?Fn(qe):Fn||z.createElement(Dn.Z,null)):null,pn=($e==="picture-card"||$e==="picture-circle")&&ur!=="uploading"&&z.createElement("span",{className:`${Je}-list-item-actions`},an,ur==="done"&&Br,Er),{getPrefixCls:hn}=z.useContext(Ee.E_),en=hn(),Bn=z.createElement("div",{className:br},mr,Jn,Ir,pn,lr&&z.createElement(Ie.default,{motionName:`${en}-fade`,visible:ur==="uploading",motionDeadline:2e3},tn=>{let{className:wn}=tn;const Tn="percent"in qe?z.createElement(Wn.Z,Object.assign({},Ut,{type:"line",percent:qe.percent,"aria-label":qe["aria-label"],"aria-labelledby":qe["aria-labelledby"]})):null;return z.createElement("div",{className:xe()(`${Je}-list-item-progress`,wn)},Tn)})),Gn=qe.response&&typeof qe.response=="string"?qe.response:((dr=qe.error)===null||dr===void 0?void 0:dr.statusText)||((pr=qe.error)===null||pr===void 0?void 0:pr.message)||Fe.uploadError,dn=ur==="error"?z.createElement(Zn.Z,{title:Gn,getPopupContainer:tn=>tn.parentNode},Bn):Bn;return z.createElement("div",{className:xe()(`${Je}-list-item-container`,ct),style:Qe,ref:Ve},Ln?Ln(dn,qe,Qt,{download:er.bind(null,qe),preview:Cn.bind(null,qe),remove:jn.bind(null,qe)}):dn)});const Nn=(ve,Ve)=>{const{listType:Je="text",previewFile:ct=un,onPreview:Qe,onDownload:Fe,onRemove:$e,locale:qe,iconRender:Qt,isImageUrl:Ut=bn,prefixCls:Yt,items:kn=[],showPreviewIcon:Ln=!0,showRemoveIcon:Hn=!0,showDownloadIcon:Mn=!1,removeIcon:xn,previewIcon:Pn,downloadIcon:Fn,extra:Yn,progress:Un={size:[-1,2],showInfo:!1},appendAction:Kn,appendActionVisible:Cn=!0,itemRender:er,disabled:jn}=ve,dr=(0,ft.Z)(),[pr,sr]=z.useState(!1),ur=["picture-card","picture-circle"].includes(Je);z.useEffect(()=>{Je.startsWith("picture")&&(kn||[]).forEach(ir=>{!(ir.originFileObj instanceof File||ir.originFileObj instanceof Blob)||ir.thumbUrl!==void 0||(ir.thumbUrl="",ct==null||ct(ir.originFileObj).then(rr=>{ir.thumbUrl=rr||"",dr()}))})},[Je,kn,ct]),z.useEffect(()=>{sr(!0)},[]);const yr=(ir,rr)=>{if(Qe)return rr==null||rr.preventDefault(),Qe(ir)},lr=ir=>{typeof Fe=="function"?Fe(ir):ir.url&&window.open(ir.url)},fr=ir=>{$e==null||$e(ir)},Qn=ir=>{if(Qt)return Qt(ir,Je);const rr=ir.status==="uploading";if(Je.startsWith("picture")){const Jn=Je==="picture"?z.createElement(jt.Z,null):qe.uploading,an=Ut!=null&&Ut(ir)?z.createElement(zt,null):z.createElement(Kt,null);return rr?Jn:an}return rr?z.createElement(jt.Z,null):z.createElement(qt,null)},mr=(ir,rr,Jn,an,pn)=>{const hn={type:"text",size:"small",title:an,onClick:en=>{var Bn,Gn;rr(),z.isValidElement(ir)&&((Gn=(Bn=ir.props).onClick)===null||Gn===void 0||Gn.call(Bn,en))},className:`${Jn}-list-item-action`};return pn&&(hn.disabled=jn),z.isValidElement(ir)?z.createElement(cn.ZP,Object.assign({},hn,{icon:(0,Gt.Tm)(ir,Object.assign(Object.assign({},ir.props),{onClick:()=>{}}))})):z.createElement(cn.ZP,Object.assign({},hn),z.createElement("span",null,ir))};z.useImperativeHandle(Ve,()=>({handlePreview:yr,handleDownload:lr}));const{getPrefixCls:br}=z.useContext(Ee.E_),zr=br("upload",Yt),Er=br(),Br=xe()(`${zr}-list`,`${zr}-list-${Je}`),Ir=z.useMemo(()=>(0,Xe.Z)((0,Mt.Z)(Er),["onAppearEnd","onEnterEnd","onLeaveEnd"]),[Er]),Or=Object.assign(Object.assign({},ur?{}:Ir),{motionDeadline:2e3,motionName:`${zr}-${ur?"animate-inline":"animate"}`,keys:(0,Ke.Z)(kn.map(ir=>({key:ir.uid,file:ir}))),motionAppear:pr});return z.createElement("div",{className:Br},z.createElement(Ie.CSSMotionList,Object.assign({},Or,{component:!1}),ir=>{let{key:rr,file:Jn,className:an,style:pn}=ir;return z.createElement(Xn,{key:rr,locale:qe,prefixCls:zr,className:an,style:pn,file:Jn,items:kn,progress:Un,listType:Je,isImgUrl:Ut,showPreviewIcon:Ln,showRemoveIcon:Hn,showDownloadIcon:Mn,removeIcon:xn,previewIcon:Pn,downloadIcon:Fn,extra:Yn,iconRender:Qn,actionIconRender:mr,itemRender:er,onPreview:yr,onDownload:lr,onClose:fr})}),Kn&&z.createElement(Ie.default,Object.assign({},Or,{visible:Cn,forceRender:!0}),ir=>{let{className:rr,style:Jn}=ir;return(0,Gt.Tm)(Kn,an=>({className:xe()(an.className,rr),style:Object.assign(Object.assign(Object.assign({},Jn),{pointerEvents:rr?"none":void 0}),an.style)}))}))};var qn=z.forwardRef(Nn),Bt=function(ve,Ve,Je,ct){function Qe(Fe){return Fe instanceof Je?Fe:new Je(function($e){$e(Fe)})}return new(Je||(Je=Promise))(function(Fe,$e){function qe(Yt){try{Ut(ct.next(Yt))}catch(kn){$e(kn)}}function Qt(Yt){try{Ut(ct.throw(Yt))}catch(kn){$e(kn)}}function Ut(Yt){Yt.done?Fe(Yt.value):Qe(Yt.value).then(qe,Qt)}Ut((ct=ct.apply(ve,Ve||[])).next())})};const nn=`__LIST_IGNORE_${Date.now()}__`,$n=(ve,Ve)=>{const{fileList:Je,defaultFileList:ct,onRemove:Qe,showUploadList:Fe=!0,listType:$e="text",onPreview:qe,onDownload:Qt,onChange:Ut,onDrop:Yt,previewFile:kn,disabled:Ln,locale:Hn,iconRender:Mn,isImageUrl:xn,progress:Pn,prefixCls:Fn,className:Yn,type:Un="select",children:Kn,style:Cn,itemRender:er,maxCount:jn,data:dr={},multiple:pr=!1,hasControlInside:sr=!0,action:ur="",accept:yr="",supportServerRender:lr=!0,rootClassName:fr}=ve,Qn=z.useContext(fe.Z),mr=Ln!=null?Ln:Qn,[br,zr]=(0,on.Z)(ct||[],{value:Je,postState:xr=>xr!=null?xr:[]}),[Er,Br]=z.useState("drop"),Ir=z.useRef(null),Or=z.useRef(null);z.useMemo(()=>{const xr=Date.now();(Je||[]).forEach(($r,Gr)=>{!$r.uid&&!Object.isFrozen($r)&&($r.uid=`__AUTO__${xr}_${Gr}__`)})},[Je]);const ir=(xr,$r,Gr)=>{let Sr=(0,Ke.Z)($r),Nr=!1;jn===1?Sr=Sr.slice(-1):jn&&(Nr=Sr.length>jn,Sr=Sr.slice(0,jn)),(0,ge.flushSync)(()=>{zr(Sr)});const Tr={file:xr,fileList:Sr};Gr&&(Tr.event=Gr),(!Nr||xr.status==="removed"||Sr.some(ui=>ui.uid===xr.uid))&&(0,ge.flushSync)(()=>{Ut==null||Ut(Tr)})},rr=(xr,$r)=>Bt(void 0,void 0,void 0,function*(){const{beforeUpload:Gr,transformFile:Sr}=ve;let Nr=xr;if(Gr){const Tr=yield Gr(xr,$r);if(Tr===!1)return!1;if(delete xr[nn],Tr===nn)return Object.defineProperty(xr,nn,{value:!0,configurable:!0}),!1;typeof Tr=="object"&&Tr&&(Nr=Tr)}return Sr&&(Nr=yield Sr(Nr)),Nr}),Jn=xr=>{const $r=xr.filter(Nr=>!Nr.file[nn]);if(!$r.length)return;const Gr=$r.map(Nr=>En(Nr.file));let Sr=(0,Ke.Z)(br);Gr.forEach(Nr=>{Sr=Sn(Nr,Sr)}),Gr.forEach((Nr,Tr)=>{let ui=Nr;if($r[Tr].parsedFile)Nr.status="uploading";else{const{originFileObj:Oi}=Nr;let fi;try{fi=new File([Oi],Oi.name,{type:Oi.type})}catch(ni){fi=new Blob([Oi],{type:Oi.type}),fi.name=Oi.name,fi.lastModifiedDate=new Date,fi.lastModified=new Date().getTime()}fi.uid=Nr.uid,ui=fi}ir(ui,Sr)})},an=(xr,$r,Gr)=>{try{typeof xr=="string"&&(xr=JSON.parse(xr))}catch(Tr){}if(!sn($r,br))return;const Sr=En($r);Sr.status="done",Sr.percent=100,Sr.response=xr,Sr.xhr=Gr;const Nr=Sn(Sr,br);ir(Sr,Nr)},pn=(xr,$r)=>{if(!sn($r,br))return;const Gr=En($r);Gr.status="uploading",Gr.percent=xr.percent;const Sr=Sn(Gr,br);ir(Gr,Sr,xr)},hn=(xr,$r,Gr)=>{if(!sn(Gr,br))return;const Sr=En(Gr);Sr.error=xr,Sr.response=$r,Sr.status="error";const Nr=Sn(Sr,br);ir(Sr,Nr)},en=xr=>{let $r;Promise.resolve(typeof Qe=="function"?Qe(xr):Qe).then(Gr=>{var Sr;if(Gr===!1)return;const Nr=yn(xr,br);Nr&&($r=Object.assign(Object.assign({},xr),{status:"removed"}),br==null||br.forEach(Tr=>{const ui=$r.uid!==void 0?"uid":"name";Tr[ui]===$r[ui]&&!Object.isFrozen(Tr)&&(Tr.status="removed")}),(Sr=Ir.current)===null||Sr===void 0||Sr.abort($r),ir($r,Nr))})},Bn=xr=>{Br(xr.type),xr.type==="drop"&&(Yt==null||Yt(xr))};z.useImperativeHandle(Ve,()=>({onBatchStart:Jn,onSuccess:an,onProgress:pn,onError:hn,fileList:br,upload:Ir.current,nativeElement:Or.current}));const{getPrefixCls:Gn,direction:dn,upload:tn}=z.useContext(Ee.E_),wn=Gn("upload",Fn),Tn=Object.assign(Object.assign({onBatchStart:Jn,onError:hn,onProgress:pn,onSuccess:an},ve),{data:dr,multiple:pr,action:ur,accept:yr,supportServerRender:lr,prefixCls:wn,disabled:mr,beforeUpload:rr,onChange:void 0,hasControlInside:sr});delete Tn.className,delete Tn.style,(!Kn||mr)&&delete Tn.id;const cr=`${wn}-wrapper`,[Dr,Pr,Rr]=Me(wn,cr),[Ar]=(0,Et.Z)("Upload",Jt.Z.Upload),{showRemoveIcon:Fr,showPreviewIcon:Ur,showDownloadIcon:Hr,removeIcon:Kr,previewIcon:ti,downloadIcon:Ei,extra:Ni}=typeof Fe=="boolean"?{}:Fe,xi=typeof Fr=="undefined"?!mr:Fr,si=(xr,$r)=>Fe?z.createElement(qn,{prefixCls:wn,listType:$e,items:br,previewFile:kn,onPreview:qe,onDownload:Qt,onRemove:en,showRemoveIcon:xi,showPreviewIcon:Ur,showDownloadIcon:Hr,removeIcon:Kr,previewIcon:ti,downloadIcon:Ei,iconRender:Mn,extra:Ni,locale:Object.assign(Object.assign({},Ar),Hn),isImageUrl:xn,progress:Pn,appendAction:xr,appendActionVisible:$r,itemRender:er,disabled:mr}):xr,Ri=xe()(cr,Yn,fr,Pr,Rr,tn==null?void 0:tn.className,{[`${wn}-rtl`]:dn==="rtl",[`${wn}-picture-card-wrapper`]:$e==="picture-card",[`${wn}-picture-circle-wrapper`]:$e==="picture-circle"}),Wr=Object.assign(Object.assign({},tn==null?void 0:tn.style),Cn);if(Un==="drag"){const xr=xe()(Pr,wn,`${wn}-drag`,{[`${wn}-drag-uploading`]:br.some($r=>$r.status==="uploading"),[`${wn}-drag-hover`]:Er==="dragover",[`${wn}-disabled`]:mr,[`${wn}-rtl`]:dn==="rtl"});return Dr(z.createElement("span",{className:Ri,ref:Or},z.createElement("div",{className:xr,style:Wr,onDrop:Bn,onDragOver:Bn,onDragLeave:Bn},z.createElement(Nt,Object.assign({},Tn,{ref:Ir,className:`${wn}-btn`}),z.createElement("div",{className:`${wn}-drag-container`},Kn))),si()))}const _i=xe()(wn,`${wn}-select`,{[`${wn}-disabled`]:mr,[`${wn}-hidden`]:!Kn}),qr=z.createElement("div",{className:_i},z.createElement(Nt,Object.assign({},Tn,{ref:Ir})));return Dr($e==="picture-card"||$e==="picture-circle"?z.createElement("span",{className:Ri,ref:Or},si(qr,!!Kn)):z.createElement("span",{className:Ri,ref:Or},qr,si()))};var Ae=z.forwardRef($n),et=function(ve,Ve){var Je={};for(var ct in ve)Object.prototype.hasOwnProperty.call(ve,ct)&&Ve.indexOf(ct)<0&&(Je[ct]=ve[ct]);if(ve!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Qe=0,ct=Object.getOwnPropertySymbols(ve);Qe<ct.length;Qe++)Ve.indexOf(ct[Qe])<0&&Object.prototype.propertyIsEnumerable.call(ve,ct[Qe])&&(Je[ct[Qe]]=ve[ct[Qe]]);return Je},Le=z.forwardRef((ve,Ve)=>{var{style:Je,height:ct,hasControlInside:Qe=!1}=ve,Fe=et(ve,["style","height","hasControlInside"]);return z.createElement(Ae,Object.assign({ref:Ve,hasControlInside:Qe},Fe,{type:"drag",style:Object.assign(Object.assign({},Je),{height:ct})}))});const we=Ae;we.Dragger=Le,we.LIST_IGNORE=nn;var Re=we},99498:function(rn,Ft,ie){(function(z){z(ie(89780))})(function(z){z.defineOption("placeholder","",function(Ue,Pe,de){var He=de&&de!=z.Init;if(Pe&&!He)Ue.on("blur",xe),Ue.on("change",Se),Ue.on("swapDoc",Se),z.on(Ue.getInputField(),"compositionupdate",Ue.state.placeholderCompose=function(){Ze(Ue)}),Se(Ue);else if(!Pe&&He){Ue.off("blur",xe),Ue.off("change",Se),Ue.off("swapDoc",Se),z.off(Ue.getInputField(),"compositionupdate",Ue.state.placeholderCompose),Ke(Ue);var ye=Ue.getWrapperElement();ye.className=ye.className.replace(" CodeMirror-empty","")}Pe&&!Ue.hasFocus()&&xe(Ue)});function Ke(Ue){Ue.state.placeholder&&(Ue.state.placeholder.parentNode.removeChild(Ue.state.placeholder),Ue.state.placeholder=null)}function ge(Ue){Ke(Ue);var Pe=Ue.state.placeholder=document.createElement("pre");Pe.style.cssText="height: 0; overflow: visible",Pe.style.direction=Ue.getOption("direction"),Pe.className="CodeMirror-placeholder CodeMirror-line-like";var de=Ue.getOption("placeholder");typeof de=="string"&&(de=document.createTextNode(de)),Pe.appendChild(de),Ue.display.lineSpace.insertBefore(Pe,Ue.display.lineSpace.firstChild)}function Ze(Ue){setTimeout(function(){var Pe=!1,de=Ue.getInputField();de.nodeName=="TEXTAREA"?Pe=!de.value:Ue.lineCount()==1&&(Pe=!/[^\u200b]/.test(de.querySelector(".CodeMirror-line").textContent)),Pe?ge(Ue):Ke(Ue)},20)}function xe(Ue){De(Ue)&&ge(Ue)}function Se(Ue){var Pe=Ue.getWrapperElement(),de=De(Ue);Pe.className=Pe.className.replace(" CodeMirror-empty","")+(de?" CodeMirror-empty":""),de?ge(Ue):Ke(Ue)}function De(Ue){return Ue.lineCount()===1&&Ue.getLine(0)===""}})},25717:function(rn,Ft,ie){(function(z){z(ie(89780))})(function(z){var Ke={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},ge=z.Pos;z.defineOption("autoCloseBrackets",!1,function(Te,ke,Ne){Ne&&Ne!=z.Init&&(Te.removeKeyMap(xe),Te.state.closeBrackets=null),ke&&(Se(Ze(ke,"pairs")),Te.state.closeBrackets=ke,Te.addKeyMap(xe))});function Ze(Te,ke){return ke=="pairs"&&typeof Te=="string"?Te:typeof Te=="object"&&Te[ke]!=null?Te[ke]:Ke[ke]}var xe={Backspace:Pe,Enter:de};function Se(Te){for(var ke=0;ke<Te.length;ke++){var Ne=Te.charAt(ke),yt="'"+Ne+"'";xe[yt]||(xe[yt]=De(Ne))}}Se(Ke.pairs+"`");function De(Te){return function(ke){return ye(ke,Te)}}function Ue(Te){var ke=Te.state.closeBrackets;if(!ke||ke.override)return ke;var Ne=Te.getModeAt(Te.getCursor());return Ne.closeBrackets||ke}function Pe(Te){var ke=Ue(Te);if(!ke||Te.getOption("disableInput"))return z.Pass;for(var Ne=Ze(ke,"pairs"),yt=Te.listSelections(),wt=0;wt<yt.length;wt++){if(!yt[wt].empty())return z.Pass;var Pt=vt(Te,yt[wt].head);if(!Pt||Ne.indexOf(Pt)%2!=0)return z.Pass}for(var wt=yt.length-1;wt>=0;wt--){var bt=yt[wt].head;Te.replaceRange("",ge(bt.line,bt.ch-1),ge(bt.line,bt.ch+1),"+delete")}}function de(Te){var ke=Ue(Te),Ne=ke&&Ze(ke,"explode");if(!Ne||Te.getOption("disableInput"))return z.Pass;for(var yt=Te.listSelections(),wt=0;wt<yt.length;wt++){if(!yt[wt].empty())return z.Pass;var Pt=vt(Te,yt[wt].head);if(!Pt||Ne.indexOf(Pt)%2!=0)return z.Pass}Te.operation(function(){var bt=Te.lineSeparator()||`
`;Te.replaceSelection(bt+bt,null),Te.execCommand("goCharLeft"),yt=Te.listSelections();for(var pt=0;pt<yt.length;pt++){var lt=yt[pt].head.line;Te.indentLine(lt,null,!0),Te.indentLine(lt+1,null,!0)}})}function He(Te){var ke=z.cmpPos(Te.anchor,Te.head)>0;return{anchor:new ge(Te.anchor.line,Te.anchor.ch+(ke?-1:1)),head:new ge(Te.head.line,Te.head.ch+(ke?1:-1))}}function ye(Te,ke){var Ne=Ue(Te);if(!Ne||Te.getOption("disableInput"))return z.Pass;var yt=Ze(Ne,"pairs"),wt=yt.indexOf(ke);if(wt==-1)return z.Pass;for(var Pt=Ze(Ne,"closeBefore"),bt=Ze(Ne,"triples"),pt=yt.charAt(wt+1)==ke,lt=Te.listSelections(),_e=wt%2==0,kt,nt=0;nt<lt.length;nt++){var it=lt[nt],Ct=it.head,ze,gt=Te.getRange(Ct,ge(Ct.line,Ct.ch+1));if(_e&&!it.empty())ze="surround";else if((pt||!_e)&&gt==ke)pt&&je(Te,Ct)?ze="both":bt.indexOf(ke)>=0&&Te.getRange(Ct,ge(Ct.line,Ct.ch+3))==ke+ke+ke?ze="skipThree":ze="skip";else if(pt&&Ct.ch>1&&bt.indexOf(ke)>=0&&Te.getRange(ge(Ct.line,Ct.ch-2),Ct)==ke+ke){if(Ct.ch>2&&/\bstring/.test(Te.getTokenTypeAt(ge(Ct.line,Ct.ch-2))))return z.Pass;ze="addFour"}else if(pt){var ut=Ct.ch==0?" ":Te.getRange(ge(Ct.line,Ct.ch-1),Ct);if(!z.isWordChar(gt)&&ut!=ke&&!z.isWordChar(ut))ze="both";else return z.Pass}else if(_e&&(gt.length===0||/\s/.test(gt)||Pt.indexOf(gt)>-1))ze="both";else return z.Pass;if(!kt)kt=ze;else if(kt!=ze)return z.Pass}var pe=wt%2?yt.charAt(wt-1):ke,At=wt%2?ke:yt.charAt(wt+1);Te.operation(function(){if(kt=="skip")Te.execCommand("goCharRight");else if(kt=="skipThree")for(var Be=0;Be<3;Be++)Te.execCommand("goCharRight");else if(kt=="surround"){for(var Nt=Te.getSelections(),Be=0;Be<Nt.length;Be++)Nt[Be]=pe+Nt[Be]+At;Te.replaceSelections(Nt,"around"),Nt=Te.listSelections().slice();for(var Be=0;Be<Nt.length;Be++)Nt[Be]=He(Nt[Be]);Te.setSelections(Nt)}else kt=="both"?(Te.replaceSelection(pe+At,null),Te.triggerElectric(pe+At),Te.execCommand("goCharLeft")):kt=="addFour"&&(Te.replaceSelection(pe+pe+pe+pe,"before"),Te.execCommand("goCharRight"))})}function vt(Te,ke){var Ne=Te.getRange(ge(ke.line,ke.ch-1),ge(ke.line,ke.ch+1));return Ne.length==2?Ne:null}function je(Te,ke){var Ne=Te.getTokenAt(ge(ke.line,ke.ch+1));return/\bstring/.test(Ne.type)&&Ne.start==ke.ch&&(ke.ch==0||!/\bstring/.test(Te.getTokenTypeAt(ke)))}})},6313:function(rn,Ft,ie){(function(z){z(ie(89780),ie(32855))})(function(z){z.defineOption("autoCloseTags",!1,function(Pe,de,He){if(He!=z.Init&&He&&Pe.removeKeyMap("autoCloseTags"),!!de){var ye={name:"autoCloseTags"};(typeof de!="object"||de.whenClosing!==!1)&&(ye["'/'"]=function(vt){return Se(vt)}),(typeof de!="object"||de.whenOpening!==!1)&&(ye["'>'"]=function(vt){return Ze(vt)}),Pe.addKeyMap(ye)}});var Ke=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],ge=["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 Ze(Pe){if(Pe.getOption("disableInput"))return z.Pass;for(var de=Pe.listSelections(),He=[],ye=Pe.getOption("autoCloseTags"),vt=0;vt<de.length;vt++){if(!de[vt].empty())return z.Pass;var je=de[vt].head,Te=Pe.getTokenAt(je),ke=z.innerMode(Pe.getMode(),Te.state),Ne=ke.state,yt=ke.mode.xmlCurrentTag&&ke.mode.xmlCurrentTag(Ne),wt=yt&&yt.name;if(!wt)return z.Pass;var Pt=ke.mode.configuration=="html",bt=typeof ye=="object"&&ye.dontCloseTags||Pt&&Ke,pt=typeof ye=="object"&&ye.indentTags||Pt&&ge;Te.end>je.ch&&(wt=wt.slice(0,wt.length-Te.end+je.ch));var lt=wt.toLowerCase();if(!wt||Te.type=="string"&&(Te.end!=je.ch||!/[\"\']/.test(Te.string.charAt(Te.string.length-1))||Te.string.length==1)||Te.type=="tag"&&yt.close||Te.string.indexOf("/")==je.ch-Te.start-1||bt&&De(bt,lt)>-1||Ue(Pe,ke.mode.xmlCurrentContext&&ke.mode.xmlCurrentContext(Ne)||[],wt,je,!0))return z.Pass;var _e=typeof ye=="object"&&ye.emptyTags;if(_e&&De(_e,wt)>-1){He[vt]={text:"/>",newPos:z.Pos(je.line,je.ch+2)};continue}var kt=pt&&De(pt,lt)>-1;He[vt]={indent:kt,text:">"+(kt?`
`:"")+"</"+wt+">",newPos:kt?z.Pos(je.line+1,0):z.Pos(je.line,je.ch+1)}}for(var nt=typeof ye=="object"&&ye.dontIndentOnAutoClose,vt=de.length-1;vt>=0;vt--){var it=He[vt];Pe.replaceRange(it.text,de[vt].head,de[vt].anchor,"+insert");var Ct=Pe.listSelections().slice(0);Ct[vt]={head:it.newPos,anchor:it.newPos},Pe.setSelections(Ct),!nt&&it.indent&&(Pe.indentLine(it.newPos.line,null,!0),Pe.indentLine(it.newPos.line+1,null,!0))}}function xe(Pe,de){for(var He=Pe.listSelections(),ye=[],vt=de?"/":"</",je=Pe.getOption("autoCloseTags"),Te=typeof je=="object"&&je.dontIndentOnSlash,ke=0;ke<He.length;ke++){if(!He[ke].empty())return z.Pass;var Ne=He[ke].head,yt=Pe.getTokenAt(Ne),wt=z.innerMode(Pe.getMode(),yt.state),Pt=wt.state;if(de&&(yt.type=="string"||yt.string.charAt(0)!="<"||yt.start!=Ne.ch-1))return z.Pass;var bt,pt=wt.mode.name!="xml"&&Pe.getMode().name=="htmlmixed";if(pt&&wt.mode.name=="javascript")bt=vt+"script";else if(pt&&wt.mode.name=="css")bt=vt+"style";else{var lt=wt.mode.xmlCurrentContext&&wt.mode.xmlCurrentContext(Pt);if(!lt||lt.length&&Ue(Pe,lt,lt[lt.length-1],Ne))return z.Pass;bt=vt+lt[lt.length-1]}Pe.getLine(Ne.line).charAt(yt.end)!=">"&&(bt+=">"),ye[ke]=bt}if(Pe.replaceSelections(ye),He=Pe.listSelections(),!Te)for(var ke=0;ke<He.length;ke++)(ke==He.length-1||He[ke].head.line<He[ke+1].head.line)&&Pe.indentLine(He[ke].head.line)}function Se(Pe){return Pe.getOption("disableInput")?z.Pass:xe(Pe,!0)}z.commands.closeTag=function(Pe){return xe(Pe)};function De(Pe,de){if(Pe.indexOf)return Pe.indexOf(de);for(var He=0,ye=Pe.length;He<ye;++He)if(Pe[He]==de)return He;return-1}function Ue(Pe,de,He,ye,vt){if(!z.scanForClosingTag)return!1;var je=Math.min(Pe.lastLine()+1,ye.line+500),Te=z.scanForClosingTag(Pe,ye,null,je);if(!Te||Te.tag!=He)return!1;for(var ke=vt?1:0,Ne=de.length-1;Ne>=0&&de[Ne]==He;Ne--)++ke;ye=Te.to;for(var Ne=1;Ne<ke;Ne++){var yt=z.scanForClosingTag(Pe,ye,null,je);if(!yt||yt.tag!=He)return!1;ye=yt.to}return!0}})},32855:function(rn,Ft,ie){(function(z){z(ie(89780))})(function(z){"use strict";var Ke=z.Pos;function ge(Ne,yt){return Ne.line-yt.line||Ne.ch-yt.ch}var Ze="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",xe=Ze+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",Se=new RegExp("<(/?)(["+Ze+"]["+xe+"]*)","g");function De(Ne,yt,wt,Pt){this.line=yt,this.ch=wt,this.cm=Ne,this.text=Ne.getLine(yt),this.min=Pt?Math.max(Pt.from,Ne.firstLine()):Ne.firstLine(),this.max=Pt?Math.min(Pt.to-1,Ne.lastLine()):Ne.lastLine()}function Ue(Ne,yt){var wt=Ne.cm.getTokenTypeAt(Ke(Ne.line,yt));return wt&&/\btag\b/.test(wt)}function Pe(Ne){if(!(Ne.line>=Ne.max))return Ne.ch=0,Ne.text=Ne.cm.getLine(++Ne.line),!0}function de(Ne){if(!(Ne.line<=Ne.min))return Ne.text=Ne.cm.getLine(--Ne.line),Ne.ch=Ne.text.length,!0}function He(Ne){for(;;){var yt=Ne.text.indexOf(">",Ne.ch);if(yt==-1){if(Pe(Ne))continue;return}if(!Ue(Ne,yt+1)){Ne.ch=yt+1;continue}var wt=Ne.text.lastIndexOf("/",yt),Pt=wt>-1&&!/\S/.test(Ne.text.slice(wt+1,yt));return Ne.ch=yt+1,Pt?"selfClose":"regular"}}function ye(Ne){for(;;){var yt=Ne.ch?Ne.text.lastIndexOf("<",Ne.ch-1):-1;if(yt==-1){if(de(Ne))continue;return}if(!Ue(Ne,yt+1)){Ne.ch=yt;continue}Se.lastIndex=yt,Ne.ch=yt;var wt=Se.exec(Ne.text);if(wt&&wt.index==yt)return wt}}function vt(Ne){for(;;){Se.lastIndex=Ne.ch;var yt=Se.exec(Ne.text);if(!yt){if(Pe(Ne))continue;return}if(!Ue(Ne,yt.index+1)){Ne.ch=yt.index+1;continue}return Ne.ch=yt.index+yt[0].length,yt}}function je(Ne){for(;;){var yt=Ne.ch?Ne.text.lastIndexOf(">",Ne.ch-1):-1;if(yt==-1){if(de(Ne))continue;return}if(!Ue(Ne,yt+1)){Ne.ch=yt;continue}var wt=Ne.text.lastIndexOf("/",yt),Pt=wt>-1&&!/\S/.test(Ne.text.slice(wt+1,yt));return Ne.ch=yt+1,Pt?"selfClose":"regular"}}function Te(Ne,yt){for(var wt=[];;){var Pt=vt(Ne),bt,pt=Ne.line,lt=Ne.ch-(Pt?Pt[0].length:0);if(!Pt||!(bt=He(Ne)))return;if(bt!="selfClose")if(Pt[1]){for(var _e=wt.length-1;_e>=0;--_e)if(wt[_e]==Pt[2]){wt.length=_e;break}if(_e<0&&(!yt||yt==Pt[2]))return{tag:Pt[2],from:Ke(pt,lt),to:Ke(Ne.line,Ne.ch)}}else wt.push(Pt[2])}}function ke(Ne,yt){for(var wt=[];;){var Pt=je(Ne);if(!Pt)return;if(Pt=="selfClose"){ye(Ne);continue}var bt=Ne.line,pt=Ne.ch,lt=ye(Ne);if(!lt)return;if(lt[1])wt.push(lt[2]);else{for(var _e=wt.length-1;_e>=0;--_e)if(wt[_e]==lt[2]){wt.length=_e;break}if(_e<0&&(!yt||yt==lt[2]))return{tag:lt[2],from:Ke(Ne.line,Ne.ch),to:Ke(bt,pt)}}}}z.registerHelper("fold","xml",function(Ne,yt){for(var wt=new De(Ne,yt.line,0);;){var Pt=vt(wt);if(!Pt||wt.line!=yt.line)return;var bt=He(wt);if(!bt)return;if(!Pt[1]&&bt!="selfClose"){var pt=Ke(wt.line,wt.ch),lt=Te(wt,Pt[2]);return lt&&ge(lt.from,pt)>0?{from:pt,to:lt.from}:null}}}),z.findMatchingTag=function(Ne,yt,wt){var Pt=new De(Ne,yt.line,yt.ch,wt);if(!(Pt.text.indexOf(">")==-1&&Pt.text.indexOf("<")==-1)){var bt=He(Pt),pt=bt&&Ke(Pt.line,Pt.ch),lt=bt&&ye(Pt);if(!(!bt||!lt||ge(Pt,yt)>0)){var _e={from:Ke(Pt.line,Pt.ch),to:pt,tag:lt[2]};return bt=="selfClose"?{open:_e,close:null,at:"open"}:lt[1]?{open:ke(Pt,lt[2]),close:_e,at:"close"}:(Pt=new De(Ne,pt.line,pt.ch,wt),{open:_e,close:Te(Pt,lt[2]),at:"open"})}}},z.findEnclosingTag=function(Ne,yt,wt,Pt){for(var bt=new De(Ne,yt.line,yt.ch,wt);;){var pt=ke(bt,Pt);if(!pt)break;var lt=new De(Ne,yt.line,yt.ch,wt),_e=Te(lt,pt.tag);if(_e)return{open:pt,close:_e}}},z.scanForClosingTag=function(Ne,yt,wt,Pt){var bt=new De(Ne,yt.line,yt.ch,Pt?{from:0,to:Pt}:null);return Te(bt,wt)}})},89780:function(rn){(function(Ft,ie){rn.exports=ie()})(this,function(){"use strict";var Ft=navigator.userAgent,ie=navigator.platform,z=/gecko\/\d/i.test(Ft),Ke=/MSIE \d/.test(Ft),ge=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(Ft),Ze=/Edge\/(\d+)/.exec(Ft),xe=Ke||ge||Ze,Se=xe&&(Ke?document.documentMode||6:+(Ze||ge)[1]),De=!Ze&&/WebKit\//.test(Ft),Ue=De&&/Qt\/\d+\.\d+/.test(Ft),Pe=!Ze&&/Chrome\//.test(Ft),de=/Opera\//.test(Ft),He=/Apple Computer/.test(navigator.vendor),ye=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(Ft),vt=/PhantomJS/.test(Ft),je=!Ze&&/AppleWebKit/.test(Ft)&&/Mobile\/\w+/.test(Ft),Te=/Android/.test(Ft),ke=je||Te||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(Ft),Ne=je||/Mac/.test(ie),yt=/\bCrOS\b/.test(Ft),wt=/win/i.test(ie),Pt=de&&Ft.match(/Version\/(\d*\.\d*)/);Pt&&(Pt=Number(Pt[1])),Pt&&Pt>=15&&(de=!1,De=!0);var bt=Ne&&(Ue||de&&(Pt==null||Pt<12.11)),pt=z||xe&&Se>=9;function lt(a){return new RegExp("(^|\\s)"+a+"(?:$|\\s)\\s*")}var _e=function(a,y){var x=a.className,b=lt(y).exec(x);if(b){var E=x.slice(b.index+b[0].length);a.className=x.slice(0,b.index)+(E?b[1]+E:"")}};function kt(a){for(var y=a.childNodes.length;y>0;--y)a.removeChild(a.firstChild);return a}function nt(a,y){return kt(a).appendChild(y)}function it(a,y,x,b){var E=document.createElement(a);if(x&&(E.className=x),b&&(E.style.cssText=b),typeof y=="string")E.appendChild(document.createTextNode(y));else if(y)for(var ne=0;ne<y.length;++ne)E.appendChild(y[ne]);return E}function Ct(a,y,x,b){var E=it(a,y,x,b);return E.setAttribute("role","presentation"),E}var ze;document.createRange?ze=function(a,y,x,b){var E=document.createRange();return E.setEnd(b||a,x),E.setStart(a,y),E}:ze=function(a,y,x){var b=document.body.createTextRange();try{b.moveToElementText(a.parentNode)}catch(E){return b}return b.collapse(!0),b.moveEnd("character",x),b.moveStart("character",y),b};function gt(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 ut(){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 pe(a,y){var x=a.className;lt(y).test(x)||(a.className+=(x?" ":"")+y)}function At(a,y){for(var x=a.split(" "),b=0;b<x.length;b++)x[b]&&!lt(x[b]).test(y)&&(y+=" "+x[b]);return y}var Be=function(a){a.select()};je?Be=function(a){a.selectionStart=0,a.selectionEnd=a.value.length}:xe&&(Be=function(a){try{a.select()}catch(y){}});function Nt(a){var y=Array.prototype.slice.call(arguments,1);return function(){return a.apply(null,y)}}function on(a,y,x){y||(y={});for(var b in a)a.hasOwnProperty(b)&&(x!==!1||!y.hasOwnProperty(b))&&(y[b]=a[b]);return y}function Ee(a,y,x,b,E){y==null&&(y=a.search(/[^\s\u00a0]/),y==-1&&(y=a.length));for(var ne=b||0,le=E||0;;){var ue=a.indexOf(" ",ne);if(ue<0||ue>=y)return le+(y-ne);le+=ue-ne,le+=x-le%x,ne=ue+1}}var fe=function(){this.id=null,this.f=null,this.time=0,this.handler=Nt(this.onTimeout,this)};fe.prototype.onTimeout=function(a){a.id=0,a.time<=+new Date?a.f():setTimeout(a.handler,a.time-+new Date)},fe.prototype.set=function(a,y){this.f=y;var x=+new Date+a;(!this.id||x<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,a),this.time=x)};function Et(a,y){for(var x=0;x<a.length;++x)if(a[x]==y)return x;return-1}var Jt=50,Dt={toString:function(){return"CodeMirror.Pass"}},We={scroll:!1},ot={origin:"*mouse"},dt={origin:"+move"};function $t(a,y,x){for(var b=0,E=0;;){var ne=a.indexOf(" ",b);ne==-1&&(ne=a.length);var le=ne-b;if(ne==a.length||E+le>=y)return b+Math.min(le,y-E);if(E+=ne-b,E+=x-E%x,b=ne+1,E>=y)return b}}var Lt=[""];function Vt(a){for(;Lt.length<=a;)Lt.push(rt(Lt)+" ");return Lt[a]}function rt(a){return a[a.length-1]}function Ht(a,y){for(var x=[],b=0;b<a.length;b++)x[b]=y(a[b],b);return x}function st(a,y,x){for(var b=0,E=x(y);b<a.length&&x(a[b])<=E;)b++;a.splice(b,0,y)}function ae(){}function te(a,y){var x;return Object.create?x=Object.create(a):(ae.prototype=a,x=new ae),y&&on(y,x),x}var ee=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function oe(a){return/\w/.test(a)||a>"\x80"&&(a.toUpperCase()!=a.toLowerCase()||ee.test(a))}function se(a,y){return y?y.source.indexOf("\\w")>-1&&oe(a)?!0:y.test(a):oe(a)}function re(a){for(var y in a)if(a.hasOwnProperty(y)&&a[y])return!1;return!0}var he=/[\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 be(a){return a.charCodeAt(0)>=768&&he.test(a)}function ht(a,y,x){for(;(x<0?y>0:y<a.length)&&be(a.charAt(y));)y+=x;return y}function Me(a,y,x){for(var b=y>x?-1:1;;){if(y==x)return y;var E=(y+x)/2,ne=b<0?Math.ceil(E):Math.floor(E);if(ne==y)return a(ne)?y:x;a(ne)?x=ne:y=ne+b}}function Ye(a,y,x,b){if(!a)return b(y,x,"ltr",0);for(var E=!1,ne=0;ne<a.length;++ne){var le=a[ne];(le.from<x&&le.to>y||y==x&&le.to==y)&&(b(Math.max(le.from,y),Math.min(le.to,x),le.level==1?"rtl":"ltr",ne),E=!0)}E||b(y,x,"ltr")}var mt=null;function It(a,y,x){var b;mt=null;for(var E=0;E<a.length;++E){var ne=a[E];if(ne.from<y&&ne.to>y)return E;ne.to==y&&(ne.from!=ne.to&&x=="before"?b=E:mt=E),ne.from==y&&(ne.from!=ne.to&&x!="before"?b=E:mt=E)}return b!=null?b:mt}var xt=function(){var a="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",y="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function x(me){return me<=247?a.charAt(me):1424<=me&&me<=1524?"R":1536<=me&&me<=1785?y.charAt(me-1536):1774<=me&&me<=2220?"r":8192<=me&&me<=8203?"w":me==8204?"b":"L"}var b=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,E=/[stwN]/,ne=/[LRr]/,le=/[Lb1n]/,ue=/[1n]/;function ce(me,Ge,at){this.level=me,this.from=Ge,this.to=at}return function(me,Ge){var at=Ge=="ltr"?"L":"R";if(me.length==0||Ge=="ltr"&&!b.test(me))return!1;for(var Rt=me.length,Ot=[],fn=0;fn<Rt;++fn)Ot.push(x(me.charCodeAt(fn)));for(var In=0,Rn=at;In<Rt;++In){var Vn=Ot[In];Vn=="m"?Ot[In]=Rn:Rn=Vn}for(var tr=0,_n=at;tr<Rt;++tr){var or=Ot[tr];or=="1"&&_n=="r"?Ot[tr]="n":ne.test(or)&&(_n=or,or=="r"&&(Ot[tr]="R"))}for(var vr=1,hr=Ot[0];vr<Rt-1;++vr){var Lr=Ot[vr];Lr=="+"&&hr=="1"&&Ot[vr+1]=="1"?Ot[vr]="1":Lr==","&&hr==Ot[vr+1]&&(hr=="1"||hr=="n")&&(Ot[vr]=hr),hr=Lr}for(var Yr=0;Yr<Rt;++Yr){var mi=Ot[Yr];if(mi==",")Ot[Yr]="N";else if(mi=="%"){var Qr=void 0;for(Qr=Yr+1;Qr<Rt&&Ot[Qr]=="%";++Qr);for(var Wi=Yr&&Ot[Yr-1]=="!"||Qr<Rt&&Ot[Qr]=="1"?"1":"N",Li=Yr;Li<Qr;++Li)Ot[Li]=Wi;Yr=Qr-1}}for(var ai=0,Bi=at;ai<Rt;++ai){var bi=Ot[ai];Bi=="L"&&bi=="1"?Ot[ai]="L":ne.test(bi)&&(Bi=bi)}for(var di=0;di<Rt;++di)if(E.test(Ot[di])){var li=void 0;for(li=di+1;li<Rt&&E.test(Ot[li]);++li);for(var ei=(di?Ot[di-1]:at)=="L",Ai=(li<Rt?Ot[li]:at)=="L",Uo=ei==Ai?ei?"L":"R":at,bo=di;bo<li;++bo)Ot[bo]=Uo;di=li-1}for(var wi=[],ro,gi=0;gi<Rt;)if(le.test(Ot[gi])){var bl=gi;for(++gi;gi<Rt&&le.test(Ot[gi]);++gi);wi.push(new ce(0,bl,gi))}else{var lo=gi,Oo=wi.length,ko=Ge=="rtl"?1:0;for(++gi;gi<Rt&&Ot[gi]!="L";++gi);for(var Mi=lo;Mi<gi;)if(ue.test(Ot[Mi])){lo<Mi&&(wi.splice(Oo,0,new ce(1,lo,Mi)),Oo+=ko);var Vo=Mi;for(++Mi;Mi<gi&&ue.test(Ot[Mi]);++Mi);wi.splice(Oo,0,new ce(2,Vo,Mi)),Oo+=ko,lo=Mi}else++Mi;lo<gi&&wi.splice(Oo,0,new ce(1,lo,gi))}return Ge=="ltr"&&(wi[0].level==1&&(ro=me.match(/^\s+/))&&(wi[0].from=ro[0].length,wi.unshift(new ce(0,0,ro[0].length))),rt(wi).level==1&&(ro=me.match(/\s+$/))&&(rt(wi).to-=ro[0].length,wi.push(new ce(0,Rt-ro[0].length,Rt)))),Ge=="rtl"?wi.reverse():wi}}();function Xt(a,y){var x=a.order;return x==null&&(x=a.order=xt(a.text,y)),x}var Kt=[],jt=function(a,y,x){if(a.addEventListener)a.addEventListener(y,x,!1);else if(a.attachEvent)a.attachEvent("on"+y,x);else{var b=a._handlers||(a._handlers={});b[y]=(b[y]||Kt).concat(x)}};function _t(a,y){return a._handlers&&a._handlers[y]||Kt}function Zt(a,y,x){if(a.removeEventListener)a.removeEventListener(y,x,!1);else if(a.detachEvent)a.detachEvent("on"+y,x);else{var b=a._handlers,E=b&&b[y];if(E){var ne=Et(E,x);ne>-1&&(b[y]=E.slice(0,ne).concat(E.slice(ne+1)))}}}function ln(a,y){var x=_t(a,y);if(x.length)for(var b=Array.prototype.slice.call(arguments,2),E=0;E<x.length;++E)x[E].apply(null,b)}function St(a,y,x){return typeof y=="string"&&(y={type:y,preventDefault:function(){this.defaultPrevented=!0}}),ln(a,x||y.type,a,y),zt(y)||y.codemirrorIgnore}function qt(a){var y=a._handlers&&a._handlers.cursorActivity;if(y)for(var x=a.curOp.cursorActivityHandlers||(a.curOp.cursorActivityHandlers=[]),b=0;b<y.length;++b)Et(x,y[b])==-1&&x.push(y[b])}function Wt(a,y){return _t(a,y).length>0}function Oe(a){a.prototype.on=function(y,x){jt(this,y,x)},a.prototype.off=function(y,x){Zt(this,y,x)}}function tt(a){a.preventDefault?a.preventDefault():a.returnValue=!1}function Tt(a){a.stopPropagation?a.stopPropagation():a.cancelBubble=!0}function zt(a){return a.defaultPrevented!=null?a.defaultPrevented:a.returnValue==!1}function Ie(a){tt(a),Tt(a)}function Xe(a){return a.target||a.srcElement}function ft(a){var y=a.which;return y==null&&(a.button&1?y=1:a.button&2?y=3:a.button&4&&(y=2)),Ne&&a.ctrlKey&&y==1&&(y=3),y}var Mt=function(){if(xe&&Se<9)return!1;var a=it("div");return"draggable"in a||"dragDrop"in a}(),Gt;function cn(a){if(Gt==null){var y=it("span","\u200B");nt(a,it("span",[y,document.createTextNode("x")])),a.firstChild.offsetHeight!=0&&(Gt=y.offsetWidth<=1&&y.offsetHeight>2&&!(xe&&Se<8))}var x=Gt?it("span","\u200B"):it("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return x.setAttribute("cm-text",""),x}var En;function Sn(a){if(En!=null)return En;var y=nt(a,document.createTextNode("A\u062EA")),x=ze(y,0,1).getBoundingClientRect(),b=ze(y,1,2).getBoundingClientRect();return kt(a),!x||x.left==x.right?!1:En=b.right-x.right<3}var sn=`
b`.split(/\n/).length!=3?function(a){for(var y=0,x=[],b=a.length;y<=b;){var E=a.indexOf(`
`,y);E==-1&&(E=a.length);var ne=a.slice(y,a.charAt(E-1)=="\r"?E-1:E),le=ne.indexOf("\r");le!=-1?(x.push(ne.slice(0,le)),y+=le+1):(x.push(ne),y=E+1)}return x}:function(a){return a.split(/\r\n?|\n/)},yn=window.getSelection?function(a){try{return a.selectionStart!=a.selectionEnd}catch(y){return!1}}:function(a){var y;try{y=a.ownerDocument.selection.createRange()}catch(x){}return!y||y.parentElement()!=a?!1:y.compareEndPoints("StartToEnd",y)!=0},gn=function(){var a=it("div");return"oncopy"in a?!0:(a.setAttribute("oncopy","return;"),typeof a.oncopy=="function")}(),zn=null;function bn(a){if(zn!=null)return zn;var y=nt(a,it("span","x")),x=y.getBoundingClientRect(),b=ze(y,0,1).getBoundingClientRect();return zn=Math.abs(x.left-b.left)>1}var vn={},un={};function On(a,y){arguments.length>2&&(y.dependencies=Array.prototype.slice.call(arguments,2)),vn[a]=y}function mn(a,y){un[a]=y}function Dn(a){if(typeof a=="string"&&un.hasOwnProperty(a))a=un[a];else if(a&&typeof a.name=="string"&&un.hasOwnProperty(a.name)){var y=un[a.name];typeof y=="string"&&(y={name:y}),a=te(y,a),a.name=y.name}else{if(typeof a=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(a))return Dn("application/xml");if(typeof a=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(a))return Dn("application/json")}return typeof a=="string"?{name:a}:a||{name:"null"}}function Wn(a,y){y=Dn(y);var x=vn[y.name];if(!x)return Wn(a,"text/plain");var b=x(a,y);if(Zn.hasOwnProperty(y.name)){var E=Zn[y.name];for(var ne in E)E.hasOwnProperty(ne)&&(b.hasOwnProperty(ne)&&(b["_"+ne]=b[ne]),b[ne]=E[ne])}if(b.name=y.name,y.helperType&&(b.helperType=y.helperType),y.modeProps)for(var le in y.modeProps)b[le]=y.modeProps[le];return b}var Zn={};function An(a,y){var x=Zn.hasOwnProperty(a)?Zn[a]:Zn[a]={};on(y,x)}function Xn(a,y){if(y===!0)return y;if(a.copyState)return a.copyState(y);var x={};for(var b in y){var E=y[b];E instanceof Array&&(E=E.concat([])),x[b]=E}return x}function Nn(a,y){for(var x;a.innerMode&&(x=a.innerMode(y),!(!x||x.mode==a));)y=x.state,a=x.mode;return x||{mode:a,state:y}}function ar(a,y,x){return a.startState?a.startState(y,x):!0}var qn=function(a,y,x){this.pos=this.start=0,this.string=a,this.tabSize=y||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=x};qn.prototype.eol=function(){return this.pos>=this.string.length},qn.prototype.sol=function(){return this.pos==this.lineStart},qn.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},qn.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},qn.prototype.eat=function(a){var y=this.string.charAt(this.pos),x;if(typeof a=="string"?x=y==a:x=y&&(a.test?a.test(y):a(y)),x)return++this.pos,y},qn.prototype.eatWhile=function(a){for(var y=this.pos;this.eat(a););return this.pos>y},qn.prototype.eatSpace=function(){for(var a=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>a},qn.prototype.skipToEnd=function(){this.pos=this.string.length},qn.prototype.skipTo=function(a){var y=this.string.indexOf(a,this.pos);if(y>-1)return this.pos=y,!0},qn.prototype.backUp=function(a){this.pos-=a},qn.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Ee(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Ee(this.string,this.lineStart,this.tabSize):0)},qn.prototype.indentation=function(){return Ee(this.string,null,this.tabSize)-(this.lineStart?Ee(this.string,this.lineStart,this.tabSize):0)},qn.prototype.match=function(a,y,x){if(typeof a=="string"){var b=function(le){return x?le.toLowerCase():le},E=this.string.substr(this.pos,a.length);if(b(E)==b(a))return y!==!1&&(this.pos+=a.length),!0}else{var ne=this.string.slice(this.pos).match(a);return ne&&ne.index>0?null:(ne&&y!==!1&&(this.pos+=ne[0].length),ne)}},qn.prototype.current=function(){return this.string.slice(this.start,this.pos)},qn.prototype.hideFirstChars=function(a,y){this.lineStart+=a;try{return y()}finally{this.lineStart-=a}},qn.prototype.lookAhead=function(a){var y=this.lineOracle;return y&&y.lookAhead(a)},qn.prototype.baseToken=function(){var a=this.lineOracle;return a&&a.baseToken(this.pos)};function Bt(a,y){if(y-=a.first,y<0||y>=a.size)throw new Error("There is no line "+(y+a.first)+" in the document.");for(var x=a;!x.lines;)for(var b=0;;++b){var E=x.children[b],ne=E.chunkSize();if(y<ne){x=E;break}y-=ne}return x.lines[y]}function nn(a,y,x){var b=[],E=y.line;return a.iter(y.line,x.line+1,function(ne){var le=ne.text;E==x.line&&(le=le.slice(0,x.ch)),E==y.line&&(le=le.slice(y.ch)),b.push(le),++E}),b}function $n(a,y,x){var b=[];return a.iter(y,x,function(E){b.push(E.text)}),b}function nr(a,y){var x=y-a.height;if(x)for(var b=a;b;b=b.parent)b.height+=x}function Ae(a){if(a.parent==null)return null;for(var y=a.parent,x=Et(y.lines,a),b=y.parent;b;y=b,b=b.parent)for(var E=0;b.children[E]!=y;++E)x+=b.children[E].chunkSize();return x+y.first}function et(a,y){var x=a.first;e:do{for(var b=0;b<a.children.length;++b){var E=a.children[b],ne=E.height;if(y<ne){a=E;continue e}y-=ne,x+=E.chunkSize()}return x}while(!a.lines);for(var le=0;le<a.lines.length;++le){var ue=a.lines[le],ce=ue.height;if(y<ce)break;y-=ce}return x+le}function Ce(a,y){return y>=a.first&&y<a.first+a.size}function Le(a,y){return String(a.lineNumberFormatter(y+a.firstLineNumber))}function we(a,y,x){if(x===void 0&&(x=null),!(this instanceof we))return new we(a,y,x);this.line=a,this.ch=y,this.sticky=x}function Re(a,y){return a.line-y.line||a.ch-y.ch}function ve(a,y){return a.sticky==y.sticky&&Re(a,y)==0}function Ve(a){return we(a.line,a.ch)}function Je(a,y){return Re(a,y)<0?y:a}function ct(a,y){return Re(a,y)<0?a:y}function Qe(a,y){return Math.max(a.first,Math.min(y,a.first+a.size-1))}function Fe(a,y){if(y.line<a.first)return we(a.first,0);var x=a.first+a.size-1;return y.line>x?we(x,Bt(a,x).text.length):$e(y,Bt(a,y.line).text.length)}function $e(a,y){var x=a.ch;return x==null||x>y?we(a.line,y):x<0?we(a.line,0):a}function qe(a,y){for(var x=[],b=0;b<y.length;b++)x[b]=Fe(a,y[b]);return x}var Qt=function(a,y){this.state=a,this.lookAhead=y},Ut=function(a,y,x,b){this.state=y,this.doc=a,this.line=x,this.maxLookAhead=b||0,this.baseTokens=null,this.baseTokenPos=1};Ut.prototype.lookAhead=function(a){var y=this.doc.getLine(this.line+a);return y!=null&&a>this.maxLookAhead&&(this.maxLookAhead=a),y},Ut.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}},Ut.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Ut.fromSaved=function(a,y,x){return y instanceof Qt?new Ut(a,Xn(a.mode,y.state),x,y.lookAhead):new Ut(a,Xn(a.mode,y),x)},Ut.prototype.save=function(a){var y=a!==!1?Xn(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Qt(y,this.maxLookAhead):y};function Yt(a,y,x,b){var E=[a.state.modeGen],ne={};Un(a,y.text,a.doc.mode,x,function(me,Ge){return E.push(me,Ge)},ne,b);for(var le=x.state,ue=function(me){x.baseTokens=E;var Ge=a.state.overlays[me],at=1,Rt=0;x.state=!0,Un(a,y.text,Ge.mode,x,function(Ot,fn){for(var In=at;Rt<Ot;){var Rn=E[at];Rn>Ot&&E.splice(at,1,Ot,E[at+1],Rn),at+=2,Rt=Math.min(Ot,Rn)}if(fn)if(Ge.opaque)E.splice(In,at-In,Ot,"overlay "+fn),at=In+2;else for(;In<at;In+=2){var Vn=E[In+1];E[In+1]=(Vn?Vn+" ":"")+"overlay "+fn}},ne),x.state=le,x.baseTokens=null,x.baseTokenPos=1},ce=0;ce<a.state.overlays.length;++ce)ue(ce);return{styles:E,classes:ne.bgClass||ne.textClass?ne:null}}function kn(a,y,x){if(!y.styles||y.styles[0]!=a.state.modeGen){var b=Ln(a,Ae(y)),E=y.text.length>a.options.maxHighlightLength&&Xn(a.doc.mode,b.state),ne=Yt(a,y,b);E&&(b.state=E),y.stateAfter=b.save(!E),y.styles=ne.styles,ne.classes?y.styleClasses=ne.classes:y.styleClasses&&(y.styleClasses=null),x===a.doc.highlightFrontier&&(a.doc.modeFrontier=Math.max(a.doc.modeFrontier,++a.doc.highlightFrontier))}return y.styles}function Ln(a,y,x){var b=a.doc,E=a.display;if(!b.mode.startState)return new Ut(b,!0,y);var ne=Kn(a,y,x),le=ne>b.first&&Bt(b,ne-1).stateAfter,ue=le?Ut.fromSaved(b,le,ne):new Ut(b,ar(b.mode),ne);return b.iter(ne,y,function(ce){Hn(a,ce.text,ue);var me=ue.line;ce.stateAfter=me==y-1||me%5==0||me>=E.viewFrom&&me<E.viewTo?ue.save():null,ue.nextLine()}),x&&(b.modeFrontier=ue.line),ue}function Hn(a,y,x,b){var E=a.doc.mode,ne=new qn(y,a.options.tabSize,x);for(ne.start=ne.pos=b||0,y==""&&Mn(E,x.state);!ne.eol();)xn(E,ne,x.state),ne.start=ne.pos}function Mn(a,y){if(a.blankLine)return a.blankLine(y);if(a.innerMode){var x=Nn(a,y);if(x.mode.blankLine)return x.mode.blankLine(x.state)}}function xn(a,y,x,b){for(var E=0;E<10;E++){b&&(b[0]=Nn(a,x).mode);var ne=a.token(y,x);if(y.pos>y.start)return ne}throw new Error("Mode "+a.name+" failed to advance stream.")}var Pn=function(a,y,x){this.start=a.start,this.end=a.pos,this.string=a.current(),this.type=y||null,this.state=x};function Fn(a,y,x,b){var E=a.doc,ne=E.mode,le;y=Fe(E,y);var ue=Bt(E,y.line),ce=Ln(a,y.line,x),me=new qn(ue.text,a.options.tabSize,ce),Ge;for(b&&(Ge=[]);(b||me.pos<y.ch)&&!me.eol();)me.start=me.pos,le=xn(ne,me,ce.state),b&&Ge.push(new Pn(me,le,Xn(E.mode,ce.state)));return b?Ge:new Pn(me,le,ce.state)}function Yn(a,y){if(a)for(;;){var x=a.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!x)break;a=a.slice(0,x.index)+a.slice(x.index+x[0].length);var b=x[1]?"bgClass":"textClass";y[b]==null?y[b]=x[2]:new RegExp("(?:^|\\s)"+x[2]+"(?:$|\\s)").test(y[b])||(y[b]+=" "+x[2])}return a}function Un(a,y,x,b,E,ne,le){var ue=x.flattenSpans;ue==null&&(ue=a.options.flattenSpans);var ce=0,me=null,Ge=new qn(y,a.options.tabSize,b),at,Rt=a.options.addModeClass&&[null];for(y==""&&Yn(Mn(x,b.state),ne);!Ge.eol();){if(Ge.pos>a.options.maxHighlightLength?(ue=!1,le&&Hn(a,y,b,Ge.pos),Ge.pos=y.length,at=null):at=Yn(xn(x,Ge,b.state,Rt),ne),Rt){var Ot=Rt[0].name;Ot&&(at="m-"+(at?Ot+" "+at:Ot))}if(!ue||me!=at){for(;ce<Ge.start;)ce=Math.min(Ge.start,ce+5e3),E(ce,me);me=at}Ge.start=Ge.pos}for(;ce<Ge.pos;){var fn=Math.min(Ge.pos,ce+5e3);E(fn,me),ce=fn}}function Kn(a,y,x){for(var b,E,ne=a.doc,le=x?-1:y-(a.doc.mode.innerMode?1e3:100),ue=y;ue>le;--ue){if(ue<=ne.first)return ne.first;var ce=Bt(ne,ue-1),me=ce.stateAfter;if(me&&(!x||ue+(me instanceof Qt?me.lookAhead:0)<=ne.modeFrontier))return ue;var Ge=Ee(ce.text,null,a.options.tabSize);(E==null||b>Ge)&&(E=ue-1,b=Ge)}return E}function Cn(a,y){if(a.modeFrontier=Math.min(a.modeFrontier,y),!(a.highlightFrontier<y-10)){for(var x=a.first,b=y-1;b>x;b--){var E=Bt(a,b).stateAfter;if(E&&(!(E instanceof Qt)||b+E.lookAhead<y)){x=b+1;break}}a.highlightFrontier=Math.min(a.highlightFrontier,x)}}var er=!1,jn=!1;function dr(){er=!0}function pr(){jn=!0}function sr(a,y,x){this.marker=a,this.from=y,this.to=x}function ur(a,y){if(a)for(var x=0;x<a.length;++x){var b=a[x];if(b.marker==y)return b}}function yr(a,y){for(var x,b=0;b<a.length;++b)a[b]!=y&&(x||(x=[])).push(a[b]);return x}function lr(a,y){a.markedSpans=a.markedSpans?a.markedSpans.concat([y]):[y],y.marker.attachLine(a)}function fr(a,y,x){var b;if(a)for(var E=0;E<a.length;++E){var ne=a[E],le=ne.marker,ue=ne.from==null||(le.inclusiveLeft?ne.from<=y:ne.from<y);if(ue||ne.from==y&&le.type=="bookmark"&&(!x||!ne.marker.insertLeft)){var ce=ne.to==null||(le.inclusiveRight?ne.to>=y:ne.to>y);(b||(b=[])).push(new sr(le,ne.from,ce?null:ne.to))}}return b}function Qn(a,y,x){var b;if(a)for(var E=0;E<a.length;++E){var ne=a[E],le=ne.marker,ue=ne.to==null||(le.inclusiveRight?ne.to>=y:ne.to>y);if(ue||ne.from==y&&le.type=="bookmark"&&(!x||ne.marker.insertLeft)){var ce=ne.from==null||(le.inclusiveLeft?ne.from<=y:ne.from<y);(b||(b=[])).push(new sr(le,ce?null:ne.from-y,ne.to==null?null:ne.to-y))}}return b}function mr(a,y){if(y.full)return null;var x=Ce(a,y.from.line)&&Bt(a,y.from.line).markedSpans,b=Ce(a,y.to.line)&&Bt(a,y.to.line).markedSpans;if(!x&&!b)return null;var E=y.from.ch,ne=y.to.ch,le=Re(y.from,y.to)==0,ue=fr(x,E,le),ce=Qn(b,ne,le),me=y.text.length==1,Ge=rt(y.text).length+(me?E:0);if(ue)for(var at=0;at<ue.length;++at){var Rt=ue[at];if(Rt.to==null){var Ot=ur(ce,Rt.marker);Ot?me&&(Rt.to=Ot.to==null?null:Ot.to+Ge):Rt.to=E}}if(ce)for(var fn=0;fn<ce.length;++fn){var In=ce[fn];if(In.to!=null&&(In.to+=Ge),In.from==null){var Rn=ur(ue,In.marker);Rn||(In.from=Ge,me&&(ue||(ue=[])).push(In))}else In.from+=Ge,me&&(ue||(ue=[])).push(In)}ue&&(ue=br(ue)),ce&&ce!=ue&&(ce=br(ce));var Vn=[ue];if(!me){var tr=y.text.length-2,_n;if(tr>0&&ue)for(var or=0;or<ue.length;++or)ue[or].to==null&&(_n||(_n=[])).push(new sr(ue[or].marker,null,null));for(var vr=0;vr<tr;++vr)Vn.push(_n);Vn.push(ce)}return Vn}function br(a){for(var y=0;y<a.length;++y){var x=a[y];x.from!=null&&x.from==x.to&&x.marker.clearWhenEmpty!==!1&&a.splice(y--,1)}return a.length?a:null}function zr(a,y,x){var b=null;if(a.iter(y.line,x.line+1,function(Ot){if(Ot.markedSpans)for(var fn=0;fn<Ot.markedSpans.length;++fn){var In=Ot.markedSpans[fn].marker;In.readOnly&&(!b||Et(b,In)==-1)&&(b||(b=[])).push(In)}}),!b)return null;for(var E=[{from:y,to:x}],ne=0;ne<b.length;++ne)for(var le=b[ne],ue=le.find(0),ce=0;ce<E.length;++ce){var me=E[ce];if(!(Re(me.to,ue.from)<0||Re(me.from,ue.to)>0)){var Ge=[ce,1],at=Re(me.from,ue.from),Rt=Re(me.to,ue.to);(at<0||!le.inclusiveLeft&&!at)&&Ge.push({from:me.from,to:ue.from}),(Rt>0||!le.inclusiveRight&&!Rt)&&Ge.push({from:ue.to,to:me.to}),E.splice.apply(E,Ge),ce+=Ge.length-3}}return E}function Er(a){var y=a.markedSpans;if(y){for(var x=0;x<y.length;++x)y[x].marker.detachLine(a);a.markedSpans=null}}function Br(a,y){if(y){for(var x=0;x<y.length;++x)y[x].marker.attachLine(a);a.markedSpans=y}}function Ir(a){return a.inclusiveLeft?-1:0}function Or(a){return a.inclusiveRight?1:0}function ir(a,y){var x=a.lines.length-y.lines.length;if(x!=0)return x;var b=a.find(),E=y.find(),ne=Re(b.from,E.from)||Ir(a)-Ir(y);if(ne)return-ne;var le=Re(b.to,E.to)||Or(a)-Or(y);return le||y.id-a.id}function rr(a,y){var x=jn&&a.markedSpans,b;if(x)for(var E=void 0,ne=0;ne<x.length;++ne)E=x[ne],E.marker.collapsed&&(y?E.from:E.to)==null&&(!b||ir(b,E.marker)<0)&&(b=E.marker);return b}function Jn(a){return rr(a,!0)}function an(a){return rr(a,!1)}function pn(a,y){var x=jn&&a.markedSpans,b;if(x)for(var E=0;E<x.length;++E){var ne=x[E];ne.marker.collapsed&&(ne.from==null||ne.from<y)&&(ne.to==null||ne.to>y)&&(!b||ir(b,ne.marker)<0)&&(b=ne.marker)}return b}function hn(a,y,x,b,E){var ne=Bt(a,y),le=jn&&ne.markedSpans;if(le)for(var ue=0;ue<le.length;++ue){var ce=le[ue];if(ce.marker.collapsed){var me=ce.marker.find(0),Ge=Re(me.from,x)||Ir(ce.marker)-Ir(E),at=Re(me.to,b)||Or(ce.marker)-Or(E);if(!(Ge>=0&&at<=0||Ge<=0&&at>=0)&&(Ge<=0&&(ce.marker.inclusiveRight&&E.inclusiveLeft?Re(me.to,x)>=0:Re(me.to,x)>0)||Ge>=0&&(ce.marker.inclusiveRight&&E.inclusiveLeft?Re(me.from,b)<=0:Re(me.from,b)<0)))return!0}}}function en(a){for(var y;y=Jn(a);)a=y.find(-1,!0).line;return a}function Bn(a){for(var y;y=an(a);)a=y.find(1,!0).line;return a}function Gn(a){for(var y,x;y=an(a);)a=y.find(1,!0).line,(x||(x=[])).push(a);return x}function dn(a,y){var x=Bt(a,y),b=en(x);return x==b?y:Ae(b)}function tn(a,y){if(y>a.lastLine())return y;var x=Bt(a,y),b;if(!wn(a,x))return y;for(;b=an(x);)x=b.find(1,!0).line;return Ae(x)+1}function wn(a,y){var x=jn&&y.markedSpans;if(x){for(var b=void 0,E=0;E<x.length;++E)if(b=x[E],!!b.marker.collapsed){if(b.from==null)return!0;if(!b.marker.widgetNode&&b.from==0&&b.marker.inclusiveLeft&&Tn(a,y,b))return!0}}}function Tn(a,y,x){if(x.to==null){var b=x.marker.find(1,!0);return Tn(a,b.line,ur(b.line.markedSpans,x.marker))}if(x.marker.inclusiveRight&&x.to==y.text.length)return!0;for(var E=void 0,ne=0;ne<y.markedSpans.length;++ne)if(E=y.markedSpans[ne],E.marker.collapsed&&!E.marker.widgetNode&&E.from==x.to&&(E.to==null||E.to!=x.from)&&(E.marker.inclusiveLeft||x.marker.inclusiveRight)&&Tn(a,y,E))return!0}function cr(a){a=en(a);for(var y=0,x=a.parent,b=0;b<x.lines.length;++b){var E=x.lines[b];if(E==a)break;y+=E.height}for(var ne=x.parent;ne;x=ne,ne=x.parent)for(var le=0;le<ne.children.length;++le){var ue=ne.children[le];if(ue==x)break;y+=ue.height}return y}function Dr(a){if(a.height==0)return 0;for(var y=a.text.length,x,b=a;x=Jn(b);){var E=x.find(0,!0);b=E.from.line,y+=E.from.ch-E.to.ch}for(b=a;x=an(b);){var ne=x.find(0,!0);y-=b.text.length-ne.from.ch,b=ne.to.line,y+=b.text.length-ne.to.ch}return y}function Pr(a){var y=a.display,x=a.doc;y.maxLine=Bt(x,x.first),y.maxLineLength=Dr(y.maxLine),y.maxLineChanged=!0,x.iter(function(b){var E=Dr(b);E>y.maxLineLength&&(y.maxLineLength=E,y.maxLine=b)})}var Rr=function(a,y,x){this.text=a,Br(this,y),this.height=x?x(this):1};Rr.prototype.lineNo=function(){return Ae(this)},Oe(Rr);function Ar(a,y,x,b){a.text=y,a.stateAfter&&(a.stateAfter=null),a.styles&&(a.styles=null),a.order!=null&&(a.order=null),Er(a),Br(a,x);var E=b?b(a):1;E!=a.height&&nr(a,E)}function Fr(a){a.parent=null,Er(a)}var Ur={},Hr={};function Kr(a,y){if(!a||/^\s*$/.test(a))return null;var x=y.addModeClass?Hr:Ur;return x[a]||(x[a]=a.replace(/\S+/g,"cm-$&"))}function ti(a,y){var x=Ct("span",null,null,De?"padding-right: .1px":null),b={pre:Ct("pre",[x],"CodeMirror-line"),content:x,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 ne=E?y.rest[E-1]:y.line,le=void 0;b.pos=0,b.addToken=Ni,Sn(a.display.measure)&&(le=Xt(ne,a.doc.direction))&&(b.addToken=si(b.addToken,le)),b.map=[];var ue=y!=a.display.externalMeasured&&Ae(ne);Wr(ne,b,kn(a,ne,ue)),ne.styleClasses&&(ne.styleClasses.bgClass&&(b.bgClass=At(ne.styleClasses.bgClass,b.bgClass||"")),ne.styleClasses.textClass&&(b.textClass=At(ne.styleClasses.textClass,b.textClass||""))),b.map.length==0&&b.map.push(0,0,b.content.appendChild(cn(a.display.measure))),E==0?(y.measure.map=b.map,y.measure.cache={}):((y.measure.maps||(y.measure.maps=[])).push(b.map),(y.measure.caches||(y.measure.caches=[])).push({}))}if(De){var ce=b.content.lastChild;(/\bcm-tab\b/.test(ce.className)||ce.querySelector&&ce.querySelector(".cm-tab"))&&(b.content.className="cm-tab-wrap-hack")}return ln(a,"renderLine",a,y.line,b.pre),b.pre.className&&(b.textClass=At(b.pre.className,b.textClass||"")),b}function Ei(a){var y=it("span","\u2022","cm-invalidchar");return y.title="\\u"+a.charCodeAt(0).toString(16),y.setAttribute("aria-label",y.title),y}function Ni(a,y,x,b,E,ne,le){if(y){var ue=a.splitSpaces?xi(y,a.trailingSpace):y,ce=a.cm.state.specialChars,me=!1,Ge;if(!ce.test(y))a.col+=y.length,Ge=document.createTextNode(ue),a.map.push(a.pos,a.pos+y.length,Ge),xe&&Se<9&&(me=!0),a.pos+=y.length;else{Ge=document.createDocumentFragment();for(var at=0;;){ce.lastIndex=at;var Rt=ce.exec(y),Ot=Rt?Rt.index-at:y.length-at;if(Ot){var fn=document.createTextNode(ue.slice(at,at+Ot));xe&&Se<9?Ge.appendChild(it("span",[fn])):Ge.appendChild(fn),a.map.push(a.pos,a.pos+Ot,fn),a.col+=Ot,a.pos+=Ot}if(!Rt)break;at+=Ot+1;var In=void 0;if(Rt[0]==" "){var Rn=a.cm.options.tabSize,Vn=Rn-a.col%Rn;In=Ge.appendChild(it("span",Vt(Vn),"cm-tab")),In.setAttribute("role","presentation"),In.setAttribute("cm-text"," "),a.col+=Vn}else Rt[0]=="\r"||Rt[0]==`
`?(In=Ge.appendChild(it("span",Rt[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),In.setAttribute("cm-text",Rt[0]),a.col+=1):(In=a.cm.options.specialCharPlaceholder(Rt[0]),In.setAttribute("cm-text",Rt[0]),xe&&Se<9?Ge.appendChild(it("span",[In])):Ge.appendChild(In),a.col+=1);a.map.push(a.pos,a.pos+1,In),a.pos++}}if(a.trailingSpace=ue.charCodeAt(y.length-1)==32,x||b||E||me||ne||le){var tr=x||"";b&&(tr+=b),E&&(tr+=E);var _n=it("span",[Ge],tr,ne);if(le)for(var or in le)le.hasOwnProperty(or)&&or!="style"&&or!="class"&&_n.setAttribute(or,le[or]);return a.content.appendChild(_n)}a.content.appendChild(Ge)}}function xi(a,y){if(a.length>1&&!/ /.test(a))return a;for(var x=y,b="",E=0;E<a.length;E++){var ne=a.charAt(E);ne==" "&&x&&(E==a.length-1||a.charCodeAt(E+1)==32)&&(ne="\xA0"),b+=ne,x=ne==" "}return b}function si(a,y){return function(x,b,E,ne,le,ue,ce){E=E?E+" cm-force-border":"cm-force-border";for(var me=x.pos,Ge=me+b.length;;){for(var at=void 0,Rt=0;Rt<y.length&&(at=y[Rt],!(at.to>me&&at.from<=me));Rt++);if(at.to>=Ge)return a(x,b,E,ne,le,ue,ce);a(x,b.slice(0,at.to-me),E,ne,null,ue,ce),ne=null,b=b.slice(at.to-me),me=at.to}}}function Ri(a,y,x,b){var E=!b&&x.widgetNode;E&&a.map.push(a.pos,a.pos+y,E),!b&&a.cm.display.input.needsContentAttribute&&(E||(E=a.content.appendChild(document.createElement("span"))),E.setAttribute("cm-marker",x.id)),E&&(a.cm.display.input.setUneditable(E),a.content.appendChild(E)),a.pos+=y,a.trailingSpace=!1}function Wr(a,y,x){var b=a.markedSpans,E=a.text,ne=0;if(!b){for(var le=1;le<x.length;le+=2)y.addToken(y,E.slice(ne,ne=x[le]),Kr(x[le+1],y.cm.options));return}for(var ue=E.length,ce=0,me=1,Ge="",at,Rt,Ot=0,fn,In,Rn,Vn,tr;;){if(Ot==ce){fn=In=Rn=Rt="",tr=null,Vn=null,Ot=1/0;for(var _n=[],or=void 0,vr=0;vr<b.length;++vr){var hr=b[vr],Lr=hr.marker;if(Lr.type=="bookmark"&&hr.from==ce&&Lr.widgetNode)_n.push(Lr);else if(hr.from<=ce&&(hr.to==null||hr.to>ce||Lr.collapsed&&hr.to==ce&&hr.from==ce)){if(hr.to!=null&&hr.to!=ce&&Ot>hr.to&&(Ot=hr.to,In=""),Lr.className&&(fn+=" "+Lr.className),Lr.css&&(Rt=(Rt?Rt+";":"")+Lr.css),Lr.startStyle&&hr.from==ce&&(Rn+=" "+Lr.startStyle),Lr.endStyle&&hr.to==Ot&&(or||(or=[])).push(Lr.endStyle,hr.to),Lr.title&&((tr||(tr={})).title=Lr.title),Lr.attributes)for(var Yr in Lr.attributes)(tr||(tr={}))[Yr]=Lr.attributes[Yr];Lr.collapsed&&(!Vn||ir(Vn.marker,Lr)<0)&&(Vn=hr)}else hr.from>ce&&Ot>hr.from&&(Ot=hr.from)}if(or)for(var mi=0;mi<or.length;mi+=2)or[mi+1]==Ot&&(In+=" "+or[mi]);if(!Vn||Vn.from==ce)for(var Qr=0;Qr<_n.length;++Qr)Ri(y,0,_n[Qr]);if(Vn&&(Vn.from||0)==ce){if(Ri(y,(Vn.to==null?ue+1:Vn.to)-ce,Vn.marker,Vn.from==null),Vn.to==null)return;Vn.to==ce&&(Vn=!1)}}if(ce>=ue)break;for(var Wi=Math.min(ue,Ot);;){if(Ge){var Li=ce+Ge.length;if(!Vn){var ai=Li>Wi?Ge.slice(0,Wi-ce):Ge;y.addToken(y,ai,at?at+fn:fn,Rn,ce+ai.length==Ot?In:"",Rt,tr)}if(Li>=Wi){Ge=Ge.slice(Wi-ce),ce=Wi;break}ce=Li,Rn=""}Ge=E.slice(ne,ne=x[me++]),at=Kr(x[me++],y.cm.options)}}}function _i(a,y,x){this.line=y,this.rest=Gn(y),this.size=this.rest?Ae(rt(this.rest))-x+1:1,this.node=this.text=null,this.hidden=wn(a,y)}function qr(a,y,x){for(var b=[],E,ne=y;ne<x;ne=E){var le=new _i(a.doc,Bt(a.doc,ne),ne);E=ne+le.size,b.push(le)}return b}var xr=null;function $r(a){xr?xr.ops.push(a):a.ownsGroup=xr={ops:[a],delayedCallbacks:[]}}function Gr(a){var y=a.delayedCallbacks,x=0;do{for(;x<y.length;x++)y[x].call(null);for(var b=0;b<a.ops.length;b++){var E=a.ops[b];if(E.cursorActivityHandlers)for(;E.cursorActivityCalled<E.cursorActivityHandlers.length;)E.cursorActivityHandlers[E.cursorActivityCalled++].call(null,E.cm)}}while(x<y.length)}function Sr(a,y){var x=a.ownsGroup;if(x)try{Gr(x)}finally{xr=null,y(x)}}var Nr=null;function Tr(a,y){var x=_t(a,y);if(x.length){var b=Array.prototype.slice.call(arguments,2),E;xr?E=xr.delayedCallbacks:Nr?E=Nr:(E=Nr=[],setTimeout(ui,0));for(var ne=function(ue){E.push(function(){return x[ue].apply(null,b)})},le=0;le<x.length;++le)ne(le)}}function ui(){var a=Nr;Nr=null;for(var y=0;y<a.length;++y)a[y]()}function Oi(a,y,x,b){for(var E=0;E<y.changes.length;E++){var ne=y.changes[E];ne=="text"?so(a,y):ne=="gutter"?Mr(a,y,x,b):ne=="class"?gr(a,y):ne=="widget"&&Cr(a,y,b)}y.changes=null}function fi(a){return a.node==a.text&&(a.node=it("div",null,null,"position: relative"),a.text.parentNode&&a.text.parentNode.replaceChild(a.node,a.text),a.node.appendChild(a.text),xe&&Se<8&&(a.node.style.zIndex=2)),a.node}function ni(a,y){var x=y.bgClass?y.bgClass+" "+(y.line.bgClass||""):y.line.bgClass;if(x&&(x+=" CodeMirror-linebackground"),y.background)x?y.background.className=x:(y.background.parentNode.removeChild(y.background),y.background=null);else if(x){var b=fi(y);y.background=b.insertBefore(it("div",null,x),b.firstChild),a.display.input.setUneditable(y.background)}}function xo(a,y){var x=a.display.externalMeasured;return x&&x.line==y.line?(a.display.externalMeasured=null,y.measure=x.measure,x.built):ti(a,y)}function so(a,y){var x=y.text.className,b=xo(a,y);y.text==y.node&&(y.node=b.pre),y.text.parentNode.replaceChild(b.pre,y.text),y.text=b.pre,b.bgClass!=y.bgClass||b.textClass!=y.textClass?(y.bgClass=b.bgClass,y.textClass=b.textClass,gr(a,y)):x&&(y.text.className=x)}function gr(a,y){ni(a,y),y.line.wrapClass?fi(y).className=y.line.wrapClass:y.node!=y.text&&(y.node.className="");var x=y.textClass?y.textClass+" "+(y.line.textClass||""):y.line.textClass;y.text.className=x||""}function Mr(a,y,x,b){if(y.gutter&&(y.node.removeChild(y.gutter),y.gutter=null),y.gutterBackground&&(y.node.removeChild(y.gutterBackground),y.gutterBackground=null),y.line.gutterClass){var E=fi(y);y.gutterBackground=it("div",null,"CodeMirror-gutter-background "+y.line.gutterClass,"left: "+(a.options.fixedGutter?b.fixedPos:-b.gutterTotalWidth)+"px; width: "+b.gutterTotalWidth+"px"),a.display.input.setUneditable(y.gutterBackground),E.insertBefore(y.gutterBackground,y.text)}var ne=y.line.gutterMarkers;if(a.options.lineNumbers||ne){var le=fi(y),ue=y.gutter=it("div",null,"CodeMirror-gutter-wrapper","left: "+(a.options.fixedGutter?b.fixedPos:-b.gutterTotalWidth)+"px");if(a.display.input.setUneditable(ue),le.insertBefore(ue,y.text),y.line.gutterClass&&(ue.className+=" "+y.line.gutterClass),a.options.lineNumbers&&(!ne||!ne["CodeMirror-linenumbers"])&&(y.lineNumber=ue.appendChild(it("div",Le(a.options,x),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+b.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+a.display.lineNumInnerWidth+"px"))),ne)for(var ce=0;ce<a.display.gutterSpecs.length;++ce){var me=a.display.gutterSpecs[ce].className,Ge=ne.hasOwnProperty(me)&&ne[me];Ge&&ue.appendChild(it("div",[Ge],"CodeMirror-gutter-elt","left: "+b.gutterLeft[me]+"px; width: "+b.gutterWidth[me]+"px"))}}}function Cr(a,y,x){y.alignable&&(y.alignable=null);for(var b=lt("CodeMirror-linewidget"),E=y.node.firstChild,ne=void 0;E;E=ne)ne=E.nextSibling,b.test(E.className)&&y.node.removeChild(E);Zr(a,y,x)}function wr(a,y,x,b){var E=xo(a,y);return y.text=y.node=E.pre,E.bgClass&&(y.bgClass=E.bgClass),E.textClass&&(y.textClass=E.textClass),gr(a,y),Mr(a,y,x,b),Zr(a,y,b),y.node}function Zr(a,y,x){if(Xr(a,y.line,y,x,!0),y.rest)for(var b=0;b<y.rest.length;b++)Xr(a,y.rest[b],y,x,!1)}function Xr(a,y,x,b,E){if(y.widgets)for(var ne=fi(x),le=0,ue=y.widgets;le<ue.length;++le){var ce=ue[le],me=it("div",[ce.node],"CodeMirror-linewidget"+(ce.className?" "+ce.className:""));ce.handleMouseEvents||me.setAttribute("cm-ignore-events","true"),Ki(ce,me,x,b),a.display.input.setUneditable(me),E&&ce.above?ne.insertBefore(me,x.gutter||x.text):ne.appendChild(me),Tr(ce,"redraw")}}function Ki(a,y,x,b){if(a.noHScroll){(x.alignable||(x.alignable=[])).push(y);var E=b.wrapperWidth;y.style.left=b.fixedPos+"px",a.coverGutter||(E-=b.gutterTotalWidth,y.style.paddingLeft=b.gutterTotalWidth+"px"),y.style.width=E+"px"}a.coverGutter&&(y.style.zIndex=5,y.style.position="relative",a.noHScroll||(y.style.marginLeft=-b.gutterTotalWidth+"px"))}function Ii(a){if(a.height!=null)return a.height;var y=a.doc.cm;if(!y)return 0;if(!gt(document.body,a.node)){var x="position: relative;";a.coverGutter&&(x+="margin-left: -"+y.display.gutters.offsetWidth+"px;"),a.noHScroll&&(x+="width: "+y.display.wrapper.clientWidth+"px;"),nt(y.display.measure,it("div",[a.node],null,x))}return a.height=a.node.parentNode.offsetHeight}function vi(a,y){for(var x=Xe(y);x!=a.wrapper;x=x.parentNode)if(!x||x.nodeType==1&&x.getAttribute("cm-ignore-events")=="true"||x.parentNode==a.sizer&&x!=a.mover)return!0}function ri(a){return a.lineSpace.offsetTop}function Gi(a){return a.mover.offsetHeight-a.lineSpace.offsetHeight}function eo(a){if(a.cachedPaddingH)return a.cachedPaddingH;var y=nt(a.measure,it("pre","x","CodeMirror-line-like")),x=window.getComputedStyle?window.getComputedStyle(y):y.currentStyle,b={left:parseInt(x.paddingLeft),right:parseInt(x.paddingRight)};return!isNaN(b.left)&&!isNaN(b.right)&&(a.cachedPaddingH=b),b}function Fi(a){return Jt-a.display.nativeBarWidth}function to(a){return a.display.scroller.clientWidth-Fi(a)-a.display.barWidth}function io(a){return a.display.scroller.clientHeight-Fi(a)-a.display.barHeight}function Xi(a,y,x){var b=a.options.lineWrapping,E=b&&to(a);if(!y.measure.heights||b&&y.measure.width!=E){var ne=y.measure.heights=[];if(b){y.measure.width=E;for(var le=y.text.firstChild.getClientRects(),ue=0;ue<le.length-1;ue++){var ce=le[ue],me=le[ue+1];Math.abs(ce.bottom-me.bottom)>2&&ne.push((ce.bottom+me.top)/2-x.top)}}ne.push(x.bottom-x.top)}}function Do(a,y,x){if(a.line==y)return{map:a.measure.map,cache:a.measure.cache};for(var b=0;b<a.rest.length;b++)if(a.rest[b]==y)return{map:a.measure.maps[b],cache:a.measure.caches[b]};for(var E=0;E<a.rest.length;E++)if(Ae(a.rest[E])>x)return{map:a.measure.maps[E],cache:a.measure.caches[E],before:!0}}function Ga(a,y){y=en(y);var x=Ae(y),b=a.display.externalMeasured=new _i(a.doc,y,x);b.lineN=x;var E=b.built=ti(a,b);return b.text=E.pre,nt(a.display.lineMeasure,E.pre),b}function ya(a,y,x,b){return Ui(a,uo(a,y),x,b)}function no(a,y){if(y>=a.display.viewFrom&&y<a.display.viewTo)return a.display.view[wo(a,y)];var x=a.display.externalMeasured;if(x&&y>=x.lineN&&y<x.lineN+x.size)return x}function uo(a,y){var x=Ae(y),b=no(a,x);b&&!b.text?b=null:b&&b.changes&&(Oi(a,b,x,co(a)),a.curOp.forceUpdate=!0),b||(b=Ga(a,y));var E=Do(b,y,x);return{line:y,view:b,rect:null,map:E.map,cache:E.cache,before:E.before,hasHeights:!1}}function Ui(a,y,x,b,E){y.before&&(x=-1);var ne=x+(b||""),le;return y.cache.hasOwnProperty(ne)?le=y.cache[ne]:(y.rect||(y.rect=y.view.text.getBoundingClientRect()),y.hasHeights||(Xi(a,y.view,y.rect),y.hasHeights=!0),le=Ca(a,y,x,b),le.bogus||(y.cache[ne]=le)),{left:le.left,right:le.right,top:E?le.rtop:le.top,bottom:E?le.rbottom:le.bottom}}var ba={left:0,right:0,top:0,bottom:0};function xa(a,y,x){for(var b,E,ne,le,ue,ce,me=0;me<a.length;me+=3)if(ue=a[me],ce=a[me+1],y<ue?(E=0,ne=1,le="left"):y<ce?(E=y-ue,ne=E+1):(me==a.length-3||y==ce&&a[me+3]>y)&&(ne=ce-ue,E=ne-1,y>=ce&&(le="right")),E!=null){if(b=a[me+2],ue==ce&&x==(b.insertLeft?"left":"right")&&(le=x),x=="left"&&E==0)for(;me&&a[me-2]==a[me-3]&&a[me-1].insertLeft;)b=a[(me-=3)+2],le="left";if(x=="right"&&E==ce-ue)for(;me<a.length-3&&a[me+3]==a[me+4]&&!a[me+5].insertLeft;)b=a[(me+=3)+2],le="right";break}return{node:b,start:E,end:ne,collapse:le,coverStart:ue,coverEnd:ce}}function Ua(a,y){var x=ba;if(y=="left")for(var b=0;b<a.length&&(x=a[b]).left==x.right;b++);else for(var E=a.length-1;E>=0&&(x=a[E]).left==x.right;E--);return x}function Ca(a,y,x,b){var E=xa(y.map,x,b),ne=E.node,le=E.start,ue=E.end,ce=E.collapse,me;if(ne.nodeType==3){for(var Ge=0;Ge<4;Ge++){for(;le&&be(y.line.text.charAt(E.coverStart+le));)--le;for(;E.coverStart+ue<E.coverEnd&&be(y.line.text.charAt(E.coverStart+ue));)++ue;if(xe&&Se<9&&le==0&&ue==E.coverEnd-E.coverStart?me=ne.parentNode.getBoundingClientRect():me=Ua(ze(ne,le,ue).getClientRects(),b),me.left||me.right||le==0)break;ue=le,le=le-1,ce="right"}xe&&Se<11&&(me=Va(a.display.measure,me))}else{le>0&&(ce=b="right");var at;a.options.lineWrapping&&(at=ne.getClientRects()).length>1?me=at[b=="right"?at.length-1:0]:me=ne.getBoundingClientRect()}if(xe&&Se<9&&!le&&(!me||!me.left&&!me.right)){var Rt=ne.parentNode.getClientRects()[0];Rt?me={left:Rt.left,right:Rt.left+Ji(a.display),top:Rt.top,bottom:Rt.bottom}:me=ba}for(var Ot=me.top-y.rect.top,fn=me.bottom-y.rect.top,In=(Ot+fn)/2,Rn=y.view.measure.heights,Vn=0;Vn<Rn.length-1&&!(In<Rn[Vn]);Vn++);var tr=Vn?Rn[Vn-1]:0,_n=Rn[Vn],or={left:(ce=="right"?me.right:me.left)-y.rect.left,right:(ce=="left"?me.left:me.right)-y.rect.left,top:tr,bottom:_n};return!me.left&&!me.right&&(or.bogus=!0),a.options.singleCursorHeightPerLine||(or.rtop=Ot,or.rbottom=fn),or}function Va(a,y){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!bn(a))return y;var x=screen.logicalXDPI/screen.deviceXDPI,b=screen.logicalYDPI/screen.deviceYDPI;return{left:y.left*x,right:y.right*x,top:y.top*b,bottom:y.bottom*b}}function _o(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 Ko(a){a.display.externalMeasure=null,kt(a.display.lineMeasure);for(var y=0;y<a.display.view.length;y++)_o(a.display.view[y])}function Co(a){Ko(a),a.display.cachedCharWidth=a.display.cachedTextHeight=a.display.cachedPaddingH=null,a.options.lineWrapping||(a.display.maxLineChanged=!0),a.display.lineNumChars=null}function Xo(){return Pe&&Te?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Sa(){return Pe&&Te?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function Yo(a){var y=0;if(a.widgets)for(var x=0;x<a.widgets.length;++x)a.widgets[x].above&&(y+=Ii(a.widgets[x]));return y}function To(a,y,x,b,E){if(!E){var ne=Yo(y);x.top+=ne,x.bottom+=ne}if(b=="line")return x;b||(b="local");var le=cr(y);if(b=="local"?le+=ri(a.display):le-=a.display.viewOffset,b=="page"||b=="window"){var ue=a.display.lineSpace.getBoundingClientRect();le+=ue.top+(b=="window"?0:Sa());var ce=ue.left+(b=="window"?0:Xo());x.left+=ce,x.right+=ce}return x.top+=le,x.bottom+=le,x}function wa(a,y,x){if(x=="div")return y;var b=y.left,E=y.top;if(x=="page")b-=Xo(),E-=Sa();else if(x=="local"||!x){var ne=a.display.sizer.getBoundingClientRect();b+=ne.left,E+=ne.top}var le=a.display.lineSpace.getBoundingClientRect();return{left:b-le.left,top:E-le.top}}function Lo(a,y,x,b,E){return b||(b=Bt(a.doc,y.line)),To(a,b,ya(a,b,y.ch,E),x)}function ki(a,y,x,b,E,ne){b=b||Bt(a.doc,y.line),E||(E=uo(a,b));function le(fn,In){var Rn=Ui(a,E,fn,In?"right":"left",ne);return In?Rn.left=Rn.right:Rn.right=Rn.left,To(a,b,Rn,x)}var ue=Xt(b,a.doc.direction),ce=y.ch,me=y.sticky;if(ce>=b.text.length?(ce=b.text.length,me="before"):ce<=0&&(ce=0,me="after"),!ue)return le(me=="before"?ce-1:ce,me=="before");function Ge(fn,In,Rn){var Vn=ue[In],tr=Vn.level==1;return le(Rn?fn-1:fn,tr!=Rn)}var at=It(ue,ce,me),Rt=mt,Ot=Ge(ce,at,me=="before");return Rt!=null&&(Ot.other=Ge(ce,Rt,me!="before")),Ot}function jr(a,y){var x=0;y=Fe(a.doc,y),a.options.lineWrapping||(x=Ji(a.display)*y.ch);var b=Bt(a.doc,y.line),E=cr(b)+ri(a.display);return{left:x,right:x,top:E,bottom:E+b.height}}function kr(a,y,x,b,E){var ne=we(a,y,x);return ne.xRel=E,b&&(ne.outside=b),ne}function yi(a,y,x){var b=a.doc;if(x+=a.display.viewOffset,x<0)return kr(b.first,0,null,-1,-1);var E=et(b,x),ne=b.first+b.size-1;if(E>ne)return kr(b.first+b.size-1,Bt(b,ne).text.length,null,1,1);y<0&&(y=0);for(var le=Bt(b,E);;){var ue=Yi(a,le,E,y,x),ce=pn(le,ue.ch+(ue.xRel>0||ue.outside>0?1:0));if(!ce)return ue;var me=ce.find(1);if(me.line==E)return me;le=Bt(b,E=me.line)}}function Ci(a,y,x,b){b-=Yo(y);var E=y.text.length,ne=Me(function(le){return Ui(a,x,le-1).bottom<=b},E,0);return E=Me(function(le){return Ui(a,x,le).top>b},ne,E),{begin:ne,end:E}}function ii(a,y,x,b){x||(x=uo(a,y));var E=To(a,y,Ui(a,x,b),"line").top;return Ci(a,y,x,E)}function ci(a,y,x,b){return a.bottom<=x?!1:a.top>x?!0:(b?a.left:a.right)>y}function Yi(a,y,x,b,E){E-=cr(y);var ne=uo(a,y),le=Yo(y),ue=0,ce=y.text.length,me=!0,Ge=Xt(y,a.doc.direction);if(Ge){var at=(a.options.lineWrapping?oo:Vi)(a,y,x,ne,Ge,b,E);me=at.level!=1,ue=me?at.from:at.to-1,ce=me?at.to:at.from-1}var Rt=null,Ot=null,fn=Me(function(vr){var hr=Ui(a,ne,vr);return hr.top+=le,hr.bottom+=le,ci(hr,b,E,!1)?(hr.top<=E&&hr.left<=b&&(Rt=vr,Ot=hr),!0):!1},ue,ce),In,Rn,Vn=!1;if(Ot){var tr=b-Ot.left<Ot.right-b,_n=tr==me;fn=Rt+(_n?0:1),Rn=_n?"after":"before",In=tr?Ot.left:Ot.right}else{!me&&(fn==ce||fn==ue)&&fn++,Rn=fn==0?"after":fn==y.text.length?"before":Ui(a,ne,fn-(me?1:0)).bottom+le<=E==me?"after":"before";var or=ki(a,we(x,fn,Rn),"line",y,ne);In=or.left,Vn=E<or.top?-1:E>=or.bottom?1:0}return fn=ht(y.text,fn,1),kr(x,fn,Rn,Vn,b-In)}function Vi(a,y,x,b,E,ne,le){var ue=Me(function(at){var Rt=E[at],Ot=Rt.level!=1;return ci(ki(a,we(x,Ot?Rt.to:Rt.from,Ot?"before":"after"),"line",y,b),ne,le,!0)},0,E.length-1),ce=E[ue];if(ue>0){var me=ce.level!=1,Ge=ki(a,we(x,me?ce.from:ce.to,me?"after":"before"),"line",y,b);ci(Ge,ne,le,!0)&&Ge.top>le&&(ce=E[ue-1])}return ce}function oo(a,y,x,b,E,ne,le){var ue=Ci(a,y,b,le),ce=ue.begin,me=ue.end;/\s/.test(y.text.charAt(me-1))&&me--;for(var Ge=null,at=null,Rt=0;Rt<E.length;Rt++){var Ot=E[Rt];if(!(Ot.from>=me||Ot.to<=ce)){var fn=Ot.level!=1,In=Ui(a,b,fn?Math.min(me,Ot.to)-1:Math.max(ce,Ot.from)).right,Rn=In<ne?ne-In+1e9:In-ne;(!Ge||at>Rn)&&(Ge=Ot,at=Rn)}}return Ge||(Ge=E[E.length-1]),Ge.from<ce&&(Ge={from:ce,to:Ge.to,level:Ge.level}),Ge.to>me&&(Ge={from:Ge.from,to:me,level:Ge.level}),Ge}var $i;function zi(a){if(a.cachedTextHeight!=null)return a.cachedTextHeight;if($i==null){$i=it("pre",null,"CodeMirror-line-like");for(var y=0;y<49;++y)$i.appendChild(document.createTextNode("x")),$i.appendChild(it("br"));$i.appendChild(document.createTextNode("x"))}nt(a.measure,$i);var x=$i.offsetHeight/50;return x>3&&(a.cachedTextHeight=x),kt(a.measure),x||1}function Ji(a){if(a.cachedCharWidth!=null)return a.cachedCharWidth;var y=it("span","xxxxxxxxxx"),x=it("pre",[y],"CodeMirror-line-like");nt(a.measure,x);var b=y.getBoundingClientRect(),E=(b.right-b.left)/10;return E>2&&(a.cachedCharWidth=E),E||10}function co(a){for(var y=a.display,x={},b={},E=y.gutters.clientLeft,ne=y.gutters.firstChild,le=0;ne;ne=ne.nextSibling,++le){var ue=a.display.gutterSpecs[le].className;x[ue]=ne.offsetLeft+ne.clientLeft+E,b[ue]=ne.clientWidth}return{fixedPos:_a(y),gutterTotalWidth:y.gutters.offsetWidth,gutterLeft:x,gutterWidth:b,wrapperWidth:y.wrapper.clientWidth}}function _a(a){return a.scroller.getBoundingClientRect().left-a.sizer.getBoundingClientRect().left}function Cl(a){var y=zi(a.display),x=a.options.lineWrapping,b=x&&Math.max(5,a.display.scroller.clientWidth/Ji(a.display)-3);return function(E){if(wn(a.doc,E))return 0;var ne=0;if(E.widgets)for(var le=0;le<E.widgets.length;le++)E.widgets[le].height&&(ne+=E.widgets[le].height);return x?ne+(Math.ceil(E.text.length/b)||1)*y:ne+y}}function Ka(a){var y=a.doc,x=Cl(a);y.iter(function(b){var E=x(b);E!=b.height&&nr(b,E)})}function So(a,y,x,b){var E=a.display;if(!x&&Xe(y).getAttribute("cm-not-content")=="true")return null;var ne,le,ue=E.lineSpace.getBoundingClientRect();try{ne=y.clientX-ue.left,le=y.clientY-ue.top}catch(at){return null}var ce=yi(a,ne,le),me;if(b&&ce.xRel>0&&(me=Bt(a.doc,ce.line).text).length==ce.ch){var Ge=Ee(me,me.length,a.options.tabSize)-me.length;ce=we(ce.line,Math.max(0,Math.round((ne-eo(a.display).left)/Ji(a.display))-Ge))}return ce}function wo(a,y){if(y>=a.display.viewTo||(y-=a.display.viewFrom,y<0))return null;for(var x=a.display.view,b=0;b<x.length;b++)if(y-=x[b].size,y<0)return b}function Di(a,y,x,b){y==null&&(y=a.doc.first),x==null&&(x=a.doc.first+a.doc.size),b||(b=0);var E=a.display;if(b&&x<E.viewTo&&(E.updateLineNumbers==null||E.updateLineNumbers>y)&&(E.updateLineNumbers=y),a.curOp.viewChanged=!0,y>=E.viewTo)jn&&dn(a.doc,y)<E.viewTo&&ho(a);else if(x<=E.viewFrom)jn&&tn(a.doc,x+b)>E.viewFrom?ho(a):(E.viewFrom+=b,E.viewTo+=b);else if(y<=E.viewFrom&&x>=E.viewTo)ho(a);else if(y<=E.viewFrom){var ne=Ea(a,x,x+b,1);ne?(E.view=E.view.slice(ne.index),E.viewFrom=ne.lineN,E.viewTo+=b):ho(a)}else if(x>=E.viewTo){var le=Ea(a,y,y,-1);le?(E.view=E.view.slice(0,le.index),E.viewTo=le.lineN):ho(a)}else{var ue=Ea(a,y,y,-1),ce=Ea(a,x,x+b,1);ue&&ce?(E.view=E.view.slice(0,ue.index).concat(qr(a,ue.lineN,ce.lineN)).concat(E.view.slice(ce.index)),E.viewTo+=b):ho(a)}var me=E.externalMeasured;me&&(x<me.lineN?me.lineN+=b:y<me.lineN+me.size&&(E.externalMeasured=null))}function fo(a,y,x){a.curOp.viewChanged=!0;var b=a.display,E=a.display.externalMeasured;if(E&&y>=E.lineN&&y<E.lineN+E.size&&(b.externalMeasured=null),!(y<b.viewFrom||y>=b.viewTo)){var ne=b.view[wo(a,y)];if(ne.node!=null){var le=ne.changes||(ne.changes=[]);Et(le,x)==-1&&le.push(x)}}}function ho(a){a.display.viewFrom=a.display.viewTo=a.doc.first,a.display.view=[],a.display.viewOffset=0}function Ea(a,y,x,b){var E=wo(a,y),ne,le=a.display.view;if(!jn||x==a.doc.first+a.doc.size)return{index:E,lineN:x};for(var ue=a.display.viewFrom,ce=0;ce<E;ce++)ue+=le[ce].size;if(ue!=y){if(b>0){if(E==le.length-1)return null;ne=ue+le[E].size-y,E++}else ne=ue-y;y+=ne,x+=ne}for(;dn(a.doc,x)!=x;){if(E==(b<0?0:le.length-1))return null;x+=b*le[E-(b<0?1:0)].size,E+=b}return{index:E,lineN:x}}function zs(a,y,x){var b=a.display,E=b.view;E.length==0||y>=b.viewTo||x<=b.viewFrom?(b.view=qr(a,y,x),b.viewFrom=y):(b.viewFrom>y?b.view=qr(a,y,b.viewFrom).concat(b.view):b.viewFrom<y&&(b.view=b.view.slice(wo(a,y))),b.viewFrom=y,b.viewTo<x?b.view=b.view.concat(qr(a,b.viewTo,x)):b.viewTo>x&&(b.view=b.view.slice(0,wo(a,x)))),b.viewTo=x}function Sl(a){for(var y=a.display.view,x=0,b=0;b<y.length;b++){var E=y[b];!E.hidden&&(!E.node||E.changes)&&++x}return x}function Jo(a){a.display.input.showSelection(a.display.input.prepareSelection())}function wl(a,y){y===void 0&&(y=!0);for(var x=a.doc,b={},E=b.cursors=document.createDocumentFragment(),ne=b.selection=document.createDocumentFragment(),le=0;le<x.sel.ranges.length;le++)if(!(!y&&le==x.sel.primIndex)){var ue=x.sel.ranges[le];if(!(ue.from().line>=a.display.viewTo||ue.to().line<a.display.viewFrom)){var ce=ue.empty();(ce||a.options.showCursorWhenSelecting)&&El(a,ue.head,E),ce||Hs(a,ue,ne)}}return b}function El(a,y,x){var b=ki(a,y,"div",null,null,!a.options.singleCursorHeightPerLine),E=x.appendChild(it("div","\xA0","CodeMirror-cursor"));if(E.style.left=b.left+"px",E.style.top=b.top+"px",E.style.height=Math.max(0,b.bottom-b.top)*a.options.cursorHeight+"px",b.other){var ne=x.appendChild(it("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));ne.style.display="",ne.style.left=b.other.left+"px",ne.style.top=b.other.top+"px",ne.style.height=(b.other.bottom-b.other.top)*.85+"px"}}function Ia(a,y){return a.top-y.top||a.left-y.left}function Hs(a,y,x){var b=a.display,E=a.doc,ne=document.createDocumentFragment(),le=eo(a.display),ue=le.left,ce=Math.max(b.sizerWidth,to(a)-b.sizer.offsetLeft)-le.right,me=E.direction=="ltr";function Ge(_n,or,vr,hr){or<0&&(or=0),or=Math.round(or),hr=Math.round(hr),ne.appendChild(it("div",null,"CodeMirror-selected","position: absolute; left: "+_n+`px;
top: `+or+"px; width: "+(vr==null?ce-_n:vr)+`px;
height: `+(hr-or)+"px"))}function at(_n,or,vr){var hr=Bt(E,_n),Lr=hr.text.length,Yr,mi;function Qr(ai,Bi){return Lo(a,we(_n,ai),"div",hr,Bi)}function Wi(ai,Bi,bi){var di=ii(a,hr,null,ai),li=Bi=="ltr"==(bi=="after")?"left":"right",ei=bi=="after"?di.begin:di.end-(/\s/.test(hr.text.charAt(di.end-1))?2:1);return Qr(ei,li)[li]}var Li=Xt(hr,E.direction);return Ye(Li,or||0,vr==null?Lr:vr,function(ai,Bi,bi,di){var li=bi=="ltr",ei=Qr(ai,li?"left":"right"),Ai=Qr(Bi-1,li?"right":"left"),Uo=or==null&&ai==0,bo=vr==null&&Bi==Lr,wi=di==0,ro=!Li||di==Li.length-1;if(Ai.top-ei.top<=3){var gi=(me?Uo:bo)&&wi,bl=(me?bo:Uo)&&ro,lo=gi?ue:(li?ei:Ai).left,Oo=bl?ce:(li?Ai:ei).right;Ge(lo,ei.top,Oo-lo,ei.bottom)}else{var ko,Mi,Vo,xl;li?(ko=me&&Uo&&wi?ue:ei.left,Mi=me?ce:Wi(ai,bi,"before"),Vo=me?ue:Wi(Bi,bi,"after"),xl=me&&bo&&ro?ce:Ai.right):(ko=me?Wi(ai,bi,"before"):ue,Mi=!me&&Uo&&wi?ce:ei.right,Vo=!me&&bo&&ro?ue:Ai.left,xl=me?Wi(Bi,bi,"after"):ce),Ge(ko,ei.top,Mi-ko,ei.bottom),ei.bottom<Ai.top&&Ge(ue,ei.bottom,null,Ai.top),Ge(Vo,Ai.top,xl-Vo,Ai.bottom)}(!Yr||Ia(ei,Yr)<0)&&(Yr=ei),Ia(Ai,Yr)<0&&(Yr=Ai),(!mi||Ia(ei,mi)<0)&&(mi=ei),Ia(Ai,mi)<0&&(mi=Ai)}),{start:Yr,end:mi}}var Rt=y.from(),Ot=y.to();if(Rt.line==Ot.line)at(Rt.line,Rt.ch,Ot.ch);else{var fn=Bt(E,Rt.line),In=Bt(E,Ot.line),Rn=en(fn)==en(In),Vn=at(Rt.line,Rt.ch,Rn?fn.text.length+1:null).end,tr=at(Ot.line,Rn?0:null,Ot.ch).start;Rn&&(Vn.top<tr.top-2?(Ge(Vn.right,Vn.top,null,Vn.bottom),Ge(ue,tr.top,tr.left,tr.bottom)):Ge(Vn.right,Vn.top,tr.left-Vn.right,Vn.bottom)),Vn.bottom<tr.top&&Ge(ue,Vn.bottom,null,tr.top)}x.appendChild(ne)}function Xa(a){if(a.state.focused){var y=a.display;clearInterval(y.blinker);var x=!0;y.cursorDiv.style.visibility="",a.options.cursorBlinkRate>0?y.blinker=setInterval(function(){a.hasFocus()||Bo(a),y.cursorDiv.style.visibility=(x=!x)?"":"hidden"},a.options.cursorBlinkRate):a.options.cursorBlinkRate<0&&(y.cursorDiv.style.visibility="hidden")}}function Il(a){a.state.focused||(a.display.input.focus(),Ya(a))}function Pl(a){a.state.delayingBlurEvent=!0,setTimeout(function(){a.state.delayingBlurEvent&&(a.state.delayingBlurEvent=!1,Bo(a))},100)}function Ya(a,y){a.state.delayingBlurEvent&&(a.state.delayingBlurEvent=!1),a.options.readOnly!="nocursor"&&(a.state.focused||(ln(a,"focus",a,y),a.state.focused=!0,pe(a.display.wrapper,"CodeMirror-focused"),!a.curOp&&a.display.selForContextMenu!=a.doc.sel&&(a.display.input.reset(),De&&setTimeout(function(){return a.display.input.reset(!0)},20)),a.display.input.receivedFocus()),Xa(a))}function Bo(a,y){a.state.delayingBlurEvent||(a.state.focused&&(ln(a,"blur",a,y),a.state.focused=!1,_e(a.display.wrapper,"CodeMirror-focused")),clearInterval(a.display.blinker),setTimeout(function(){a.state.focused||(a.display.shift=!1)},150))}function Pa(a){for(var y=a.display,x=y.lineDiv.offsetTop,b=0;b<y.view.length;b++){var E=y.view[b],ne=a.options.lineWrapping,le=void 0,ue=0;if(!E.hidden){if(xe&&Se<8){var ce=E.node.offsetTop+E.node.offsetHeight;le=ce-x,x=ce}else{var me=E.node.getBoundingClientRect();le=me.bottom-me.top,!ne&&E.text.firstChild&&(ue=E.text.firstChild.getBoundingClientRect().right-me.left-1)}var Ge=E.line.height-le;if((Ge>.005||Ge<-.005)&&(nr(E.line,le),Ml(E.line),E.rest))for(var at=0;at<E.rest.length;at++)Ml(E.rest[at]);if(ue>a.display.sizerWidth){var Rt=Math.ceil(ue/Ji(a.display));Rt>a.display.maxLineLength&&(a.display.maxLineLength=Rt,a.display.maxLine=E.line,a.display.maxLineChanged=!0)}}}}function Ml(a){if(a.widgets)for(var y=0;y<a.widgets.length;++y){var x=a.widgets[y],b=x.node.parentNode;b&&(x.height=b.offsetHeight)}}function Ma(a,y,x){var b=x&&x.top!=null?Math.max(0,x.top):a.scroller.scrollTop;b=Math.floor(b-ri(a));var E=x&&x.bottom!=null?x.bottom:b+a.wrapper.clientHeight,ne=et(y,b),le=et(y,E);if(x&&x.ensure){var ue=x.ensure.from.line,ce=x.ensure.to.line;ue<ne?(ne=ue,le=et(y,cr(Bt(y,ue))+a.wrapper.clientHeight)):Math.min(ce,y.lastLine())>=le&&(ne=et(y,cr(Bt(y,ce))-a.wrapper.clientHeight),le=ce)}return{from:ne,to:Math.max(le,ne+1)}}function Ws(a,y){if(!St(a,"scrollCursorIntoView")){var x=a.display,b=x.sizer.getBoundingClientRect(),E=null;if(y.top+b.top<0?E=!0:y.bottom+b.top>(window.innerHeight||document.documentElement.clientHeight)&&(E=!1),E!=null&&!vt){var ne=it("div","\u200B",null,`position: absolute;
top: `+(y.top-x.viewOffset-ri(a.display))+`px;
height: `+(y.bottom-y.top+Fi(a)+x.barHeight)+`px;
left: `+y.left+"px; width: "+Math.max(2,y.right-y.left)+"px;");a.display.lineSpace.appendChild(ne),ne.scrollIntoView(E),a.display.lineSpace.removeChild(ne)}}}function js(a,y,x,b){b==null&&(b=0);var E;!a.options.lineWrapping&&y==x&&(y=y.ch?we(y.line,y.sticky=="before"?y.ch-1:y.ch,"after"):y,x=y.sticky=="before"?we(y.line,y.ch+1,"before"):y);for(var ne=0;ne<5;ne++){var le=!1,ue=ki(a,y),ce=!x||x==y?ue:ki(a,x);E={left:Math.min(ue.left,ce.left),top:Math.min(ue.top,ce.top)-b,right:Math.max(ue.left,ce.left),bottom:Math.max(ue.bottom,ce.bottom)+b};var me=Ja(a,E),Ge=a.doc.scrollTop,at=a.doc.scrollLeft;if(me.scrollTop!=null&&(qo(a,me.scrollTop),Math.abs(a.doc.scrollTop-Ge)>1&&(le=!0)),me.scrollLeft!=null&&(Eo(a,me.scrollLeft),Math.abs(a.doc.scrollLeft-at)>1&&(le=!0)),!le)break}return E}function Zs(a,y){var x=Ja(a,y);x.scrollTop!=null&&qo(a,x.scrollTop),x.scrollLeft!=null&&Eo(a,x.scrollLeft)}function Ja(a,y){var x=a.display,b=zi(a.display);y.top<0&&(y.top=0);var E=a.curOp&&a.curOp.scrollTop!=null?a.curOp.scrollTop:x.scroller.scrollTop,ne=io(a),le={};y.bottom-y.top>ne&&(y.bottom=y.top+ne);var ue=a.doc.height+Gi(x),ce=y.top<b,me=y.bottom>ue-b;if(y.top<E)le.scrollTop=ce?0:y.top;else if(y.bottom>E+ne){var Ge=Math.min(y.top,(me?ue:y.bottom)-ne);Ge!=E&&(le.scrollTop=Ge)}var at=a.options.fixedGutter?0:x.gutters.offsetWidth,Rt=a.curOp&&a.curOp.scrollLeft!=null?a.curOp.scrollLeft:x.scroller.scrollLeft-at,Ot=to(a)-x.gutters.offsetWidth,fn=y.right-y.left>Ot;return fn&&(y.right=y.left+Ot),y.left<10?le.scrollLeft=0:y.left<Rt?le.scrollLeft=Math.max(0,y.left+at-(fn?0:10)):y.right>Ot+Rt-3&&(le.scrollLeft=y.right+(fn?0:10)-Ot),le}function Qa(a,y){y!=null&&(Oa(a),a.curOp.scrollTop=(a.curOp.scrollTop==null?a.doc.scrollTop:a.curOp.scrollTop)+y)}function Ao(a){Oa(a);var y=a.getCursor();a.curOp.scrollToPos={from:y,to:y,margin:a.options.cursorScrollMargin}}function Qo(a,y,x){(y!=null||x!=null)&&Oa(a),y!=null&&(a.curOp.scrollLeft=y),x!=null&&(a.curOp.scrollTop=x)}function Gs(a,y){Oa(a),a.curOp.scrollToPos=y}function Oa(a){var y=a.curOp.scrollToPos;if(y){a.curOp.scrollToPos=null;var x=jr(a,y.from),b=jr(a,y.to);Ol(a,x,b,y.margin)}}function Ol(a,y,x,b){var E=Ja(a,{left:Math.min(y.left,x.left),top:Math.min(y.top,x.top)-b,right:Math.max(y.right,x.right),bottom:Math.max(y.bottom,x.bottom)+b});Qo(a,E.scrollLeft,E.scrollTop)}function qo(a,y){Math.abs(a.doc.scrollTop-y)<2||(z||el(a,{top:y}),kl(a,y,!0),z&&el(a),na(a,100))}function kl(a,y,x){y=Math.max(0,Math.min(a.display.scroller.scrollHeight-a.display.scroller.clientHeight,y)),!(a.display.scroller.scrollTop==y&&!x)&&(a.doc.scrollTop=y,a.display.scrollbars.setScrollTop(y),a.display.scroller.scrollTop!=y&&(a.display.scroller.scrollTop=y))}function Eo(a,y,x,b){y=Math.max(0,Math.min(y,a.display.scroller.scrollWidth-a.display.scroller.clientWidth)),!((x?y==a.doc.scrollLeft:Math.abs(a.doc.scrollLeft-y)<2)&&!b)&&(a.doc.scrollLeft=y,Al(a),a.display.scroller.scrollLeft!=y&&(a.display.scroller.scrollLeft=y),a.display.scrollbars.setScrollLeft(y))}function ea(a){var y=a.display,x=y.gutters.offsetWidth,b=Math.round(a.doc.height+Gi(a.display));return{clientHeight:y.scroller.clientHeight,viewHeight:y.wrapper.clientHeight,scrollWidth:y.scroller.scrollWidth,clientWidth:y.scroller.clientWidth,viewWidth:y.wrapper.clientWidth,barLeft:a.options.fixedGutter?x:0,docHeight:b,scrollHeight:b+Fi(a)+y.barHeight,nativeBarWidth:y.nativeBarWidth,gutterWidth:x}}var Io=function(a,y,x){this.cm=x;var b=this.vert=it("div",[it("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),E=this.horiz=it("div",[it("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");b.tabIndex=E.tabIndex=-1,a(b),a(E),jt(b,"scroll",function(){b.clientHeight&&y(b.scrollTop,"vertical")}),jt(E,"scroll",function(){E.clientWidth&&y(E.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,xe&&Se<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Io.prototype.update=function(a){var y=a.scrollWidth>a.clientWidth+1,x=a.scrollHeight>a.clientHeight+1,b=a.nativeBarWidth;if(x){this.vert.style.display="block",this.vert.style.bottom=y?b+"px":"0";var E=a.viewHeight-(y?b: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=x?b+"px":"0",this.horiz.style.left=a.barLeft+"px";var ne=a.viewWidth-a.barLeft-(x?b:0);this.horiz.firstChild.style.width=Math.max(0,a.scrollWidth-a.clientWidth+ne)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&a.clientHeight>0&&(b==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:x?b:0,bottom:y?b:0}},Io.prototype.setScrollLeft=function(a){this.horiz.scrollLeft!=a&&(this.horiz.scrollLeft=a),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Io.prototype.setScrollTop=function(a){this.vert.scrollTop!=a&&(this.vert.scrollTop=a),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Io.prototype.zeroWidthHack=function(){var a=Ne&&!ye?"12px":"18px";this.horiz.style.height=this.vert.style.width=a,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new fe,this.disableVert=new fe},Io.prototype.enableZeroWidthBar=function(a,y,x){a.style.pointerEvents="auto";function b(){var E=a.getBoundingClientRect(),ne=x=="vert"?document.elementFromPoint(E.right-1,(E.top+E.bottom)/2):document.elementFromPoint((E.right+E.left)/2,E.bottom-1);ne!=a?a.style.pointerEvents="none":y.set(1e3,b)}y.set(1e3,b)},Io.prototype.clear=function(){var a=this.horiz.parentNode;a.removeChild(this.horiz),a.removeChild(this.vert)};var ta=function(){};ta.prototype.update=function(){return{bottom:0,right:0}},ta.prototype.setScrollLeft=function(){},ta.prototype.setScrollTop=function(){},ta.prototype.clear=function(){};function No(a,y){y||(y=ea(a));var x=a.display.barWidth,b=a.display.barHeight;Dl(a,y);for(var E=0;E<4&&x!=a.display.barWidth||b!=a.display.barHeight;E++)x!=a.display.barWidth&&a.options.lineWrapping&&Pa(a),Dl(a,ea(a)),x=a.display.barWidth,b=a.display.barHeight}function Dl(a,y){var x=a.display,b=x.scrollbars.update(y);x.sizer.style.paddingRight=(x.barWidth=b.right)+"px",x.sizer.style.paddingBottom=(x.barHeight=b.bottom)+"px",x.heightForcer.style.borderBottom=b.bottom+"px solid transparent",b.right&&b.bottom?(x.scrollbarFiller.style.display="block",x.scrollbarFiller.style.height=b.bottom+"px",x.scrollbarFiller.style.width=b.right+"px"):x.scrollbarFiller.style.display="",b.bottom&&a.options.coverGutterNextToScrollbar&&a.options.fixedGutter?(x.gutterFiller.style.display="block",x.gutterFiller.style.height=b.bottom+"px",x.gutterFiller.style.width=y.gutterWidth+"px"):x.gutterFiller.style.display=""}var Tl={native:Io,null:ta};function Ll(a){a.display.scrollbars&&(a.display.scrollbars.clear(),a.display.scrollbars.addClass&&_e(a.display.wrapper,a.display.scrollbars.addClass)),a.display.scrollbars=new Tl[a.options.scrollbarStyle](function(y){a.display.wrapper.insertBefore(y,a.display.scrollbarFiller),jt(y,"mousedown",function(){a.state.focused&&setTimeout(function(){return a.display.input.focus()},0)}),y.setAttribute("cm-not-content","true")},function(y,x){x=="horizontal"?Eo(a,y):qo(a,y)},a),a.display.scrollbars.addClass&&pe(a.display.wrapper,a.display.scrollbars.addClass)}var Us=0;function Po(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:++Us},$r(a.curOp)}function Mo(a){var y=a.curOp;y&&Sr(y,function(x){for(var b=0;b<x.ops.length;b++)x.ops[b].cm.curOp=null;Vs(x)})}function Vs(a){for(var y=a.ops,x=0;x<y.length;x++)_s(y[x]);for(var b=0;b<y.length;b++)Ks(y[b]);for(var E=0;E<y.length;E++)Xs(y[E]);for(var ne=0;ne<y.length;ne++)Ys(y[ne]);for(var le=0;le<y.length;le++)Js(y[le])}function _s(a){var y=a.cm,x=y.display;qs(y),a.updateMaxLine&&Pr(y),a.mustUpdate=a.viewChanged||a.forceUpdate||a.scrollTop!=null||a.scrollToPos&&(a.scrollToPos.from.line<x.viewFrom||a.scrollToPos.to.line>=x.viewTo)||x.maxLineChanged&&y.options.lineWrapping,a.update=a.mustUpdate&&new ka(y,a.mustUpdate&&{top:a.scrollTop,ensure:a.scrollToPos},a.forceUpdate)}function Ks(a){a.updatedDisplay=a.mustUpdate&&qa(a.cm,a.update)}function Xs(a){var y=a.cm,x=y.display;a.updatedDisplay&&Pa(y),a.barMeasure=ea(y),x.maxLineChanged&&!y.options.lineWrapping&&(a.adjustWidthTo=ya(y,x.maxLine,x.maxLine.text.length).left+3,y.display.sizerWidth=a.adjustWidthTo,a.barMeasure.scrollWidth=Math.max(x.scroller.clientWidth,x.sizer.offsetLeft+a.adjustWidthTo+Fi(y)+y.display.barWidth),a.maxScrollLeft=Math.max(0,x.sizer.offsetLeft+a.adjustWidthTo-to(y))),(a.updatedDisplay||a.selectionChanged)&&(a.preparedSelection=x.input.prepareSelection())}function Ys(a){var y=a.cm;a.adjustWidthTo!=null&&(y.display.sizer.style.minWidth=a.adjustWidthTo+"px",a.maxScrollLeft<y.doc.scrollLeft&&Eo(y,Math.min(y.display.scroller.scrollLeft,a.maxScrollLeft),!0),y.display.maxLineChanged=!1);var x=a.focus&&a.focus==ut();a.preparedSelection&&y.display.input.showSelection(a.preparedSelection,x),(a.updatedDisplay||a.startHeight!=y.doc.height)&&No(y,a.barMeasure),a.updatedDisplay&&nl(y,a.barMeasure),a.selectionChanged&&Xa(y),y.state.focused&&a.updateInput&&y.display.input.reset(a.typing),x&&Il(a.cm)}function Js(a){var y=a.cm,x=y.display,b=y.doc;if(a.updatedDisplay&&Bl(y,a.update),x.wheelStartX!=null&&(a.scrollTop!=null||a.scrollLeft!=null||a.scrollToPos)&&(x.wheelStartX=x.wheelStartY=null),a.scrollTop!=null&&kl(y,a.scrollTop,a.forceScroll),a.scrollLeft!=null&&Eo(y,a.scrollLeft,!0,!0),a.scrollToPos){var E=js(y,Fe(b,a.scrollToPos.from),Fe(b,a.scrollToPos.to),a.scrollToPos.margin);Ws(y,E)}var ne=a.maybeHiddenMarkers,le=a.maybeUnhiddenMarkers;if(ne)for(var ue=0;ue<ne.length;++ue)ne[ue].lines.length||ln(ne[ue],"hide");if(le)for(var ce=0;ce<le.length;++ce)le[ce].lines.length&&ln(le[ce],"unhide");x.wrapper.offsetHeight&&(b.scrollTop=y.display.scroller.scrollTop),a.changeObjs&&ln(y,"changes",y,a.changeObjs),a.update&&a.update.finish()}function Hi(a,y){if(a.curOp)return y();Po(a);try{return y()}finally{Mo(a)}}function hi(a,y){return function(){if(a.curOp)return y.apply(a,arguments);Po(a);try{return y.apply(a,arguments)}finally{Mo(a)}}}function Pi(a){return function(){if(this.curOp)return a.apply(this,arguments);Po(this);try{return a.apply(this,arguments)}finally{Mo(this)}}}function pi(a){return function(){var y=this.cm;if(!y||y.curOp)return a.apply(this,arguments);Po(y);try{return a.apply(this,arguments)}finally{Mo(y)}}}function na(a,y){a.doc.highlightFrontier<a.display.viewTo&&a.state.highlight.set(y,Nt(Qs,a))}function Qs(a){var y=a.doc;if(!(y.highlightFrontier>=a.display.viewTo)){var x=+new Date+a.options.workTime,b=Ln(a,y.highlightFrontier),E=[];y.iter(b.line,Math.min(y.first+y.size,a.display.viewTo+500),function(ne){if(b.line>=a.display.viewFrom){var le=ne.styles,ue=ne.text.length>a.options.maxHighlightLength?Xn(y.mode,b.state):null,ce=Yt(a,ne,b,!0);ue&&(b.state=ue),ne.styles=ce.styles;var me=ne.styleClasses,Ge=ce.classes;Ge?ne.styleClasses=Ge:me&&(ne.styleClasses=null);for(var at=!le||le.length!=ne.styles.length||me!=Ge&&(!me||!Ge||me.bgClass!=Ge.bgClass||me.textClass!=Ge.textClass),Rt=0;!at&&Rt<le.length;++Rt)at=le[Rt]!=ne.styles[Rt];at&&E.push(b.line),ne.stateAfter=b.save(),b.nextLine()}else ne.text.length<=a.options.maxHighlightLength&&Hn(a,ne.text,b),ne.stateAfter=b.line%5==0?b.save():null,b.nextLine();if(+new Date>x)return na(a,a.options.workDelay),!0}),y.highlightFrontier=b.line,y.modeFrontier=Math.max(y.modeFrontier,b.line),E.length&&Hi(a,function(){for(var ne=0;ne<E.length;ne++)fo(a,E[ne],"text")})}}var ka=function(a,y,x){var b=a.display;this.viewport=y,this.visible=Ma(b,a.doc,y),this.editorIsHidden=!b.wrapper.offsetWidth,this.wrapperHeight=b.wrapper.clientHeight,this.wrapperWidth=b.wrapper.clientWidth,this.oldDisplayWidth=to(a),this.force=x,this.dims=co(a),this.events=[]};ka.prototype.signal=function(a,y){Wt(a,y)&&this.events.push(arguments)},ka.prototype.finish=function(){for(var a=0;a<this.events.length;a++)ln.apply(null,this.events[a])};function qs(a){var y=a.display;!y.scrollbarsClipped&&y.scroller.offsetWidth&&(y.nativeBarWidth=y.scroller.offsetWidth-y.scroller.clientWidth,y.heightForcer.style.height=Fi(a)+"px",y.sizer.style.marginBottom=-y.nativeBarWidth+"px",y.sizer.style.borderRightWidth=Fi(a)+"px",y.scrollbarsClipped=!0)}function eu(a){if(a.hasFocus())return null;var y=ut();if(!y||!gt(a.display.lineDiv,y))return null;var x={activeElt:y};if(window.getSelection){var b=window.getSelection();b.anchorNode&&b.extend&&gt(a.display.lineDiv,b.anchorNode)&&(x.anchorNode=b.anchorNode,x.anchorOffset=b.anchorOffset,x.focusNode=b.focusNode,x.focusOffset=b.focusOffset)}return x}function tu(a){if(!(!a||!a.activeElt||a.activeElt==ut())&&(a.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(a.activeElt.nodeName)&&a.anchorNode&&gt(document.body,a.anchorNode)&&gt(document.body,a.focusNode))){var y=window.getSelection(),x=document.createRange();x.setEnd(a.anchorNode,a.anchorOffset),x.collapse(!1),y.removeAllRanges(),y.addRange(x),y.extend(a.focusNode,a.focusOffset)}}function qa(a,y){var x=a.display,b=a.doc;if(y.editorIsHidden)return ho(a),!1;if(!y.force&&y.visible.from>=x.viewFrom&&y.visible.to<=x.viewTo&&(x.updateLineNumbers==null||x.updateLineNumbers>=x.viewTo)&&x.renderedView==x.view&&Sl(a)==0)return!1;Nl(a)&&(ho(a),y.dims=co(a));var E=b.first+b.size,ne=Math.max(y.visible.from-a.options.viewportMargin,b.first),le=Math.min(E,y.visible.to+a.options.viewportMargin);x.viewFrom<ne&&ne-x.viewFrom<20&&(ne=Math.max(b.first,x.viewFrom)),x.viewTo>le&&x.viewTo-le<20&&(le=Math.min(E,x.viewTo)),jn&&(ne=dn(a.doc,ne),le=tn(a.doc,le));var ue=ne!=x.viewFrom||le!=x.viewTo||x.lastWrapHeight!=y.wrapperHeight||x.lastWrapWidth!=y.wrapperWidth;zs(a,ne,le),x.viewOffset=cr(Bt(a.doc,x.viewFrom)),a.display.mover.style.top=x.viewOffset+"px";var ce=Sl(a);if(!ue&&ce==0&&!y.force&&x.renderedView==x.view&&(x.updateLineNumbers==null||x.updateLineNumbers>=x.viewTo))return!1;var me=eu(a);return ce>4&&(x.lineDiv.style.display="none"),nu(a,x.updateLineNumbers,y.dims),ce>4&&(x.lineDiv.style.display=""),x.renderedView=x.view,tu(me),kt(x.cursorDiv),kt(x.selectionDiv),x.gutters.style.height=x.sizer.style.minHeight=0,ue&&(x.lastWrapHeight=y.wrapperHeight,x.lastWrapWidth=y.wrapperWidth,na(a,400)),x.updateLineNumbers=null,!0}function Bl(a,y){for(var x=y.viewport,b=!0;;b=!1){if(!b||!a.options.lineWrapping||y.oldDisplayWidth==to(a)){if(x&&x.top!=null&&(x={top:Math.min(a.doc.height+Gi(a.display)-io(a),x.top)}),y.visible=Ma(a.display,a.doc,x),y.visible.from>=a.display.viewFrom&&y.visible.to<=a.display.viewTo)break}else b&&(y.visible=Ma(a.display,a.doc,x));if(!qa(a,y))break;Pa(a);var E=ea(a);Jo(a),No(a,E),nl(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 el(a,y){var x=new ka(a,y);if(qa(a,x)){Pa(a),Bl(a,x);var b=ea(a);Jo(a),No(a,b),nl(a,b),x.finish()}}function nu(a,y,x){var b=a.display,E=a.options.lineNumbers,ne=b.lineDiv,le=ne.firstChild;function ue(fn){var In=fn.nextSibling;return De&&Ne&&a.display.currentWheelTarget==fn?fn.style.display="none":fn.parentNode.removeChild(fn),In}for(var ce=b.view,me=b.viewFrom,Ge=0;Ge<ce.length;Ge++){var at=ce[Ge];if(!at.hidden)if(!at.node||at.node.parentNode!=ne){var Rt=wr(a,at,me,x);ne.insertBefore(Rt,le)}else{for(;le!=at.node;)le=ue(le);var Ot=E&&y!=null&&y<=me&&at.lineNumber;at.changes&&(Et(at.changes,"gutter")>-1&&(Ot=!1),Oi(a,at,me,x)),Ot&&(kt(at.lineNumber),at.lineNumber.appendChild(document.createTextNode(Le(a.options,me)))),le=at.node.nextSibling}me+=at.size}for(;le;)le=ue(le)}function tl(a){var y=a.gutters.offsetWidth;a.sizer.style.marginLeft=y+"px"}function nl(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+Fi(a)+"px"}function Al(a){var y=a.display,x=y.view;if(!(!y.alignWidgets&&(!y.gutters.firstChild||!a.options.fixedGutter))){for(var b=_a(y)-y.scroller.scrollLeft+a.doc.scrollLeft,E=y.gutters.offsetWidth,ne=b+"px",le=0;le<x.length;le++)if(!x[le].hidden){a.options.fixedGutter&&(x[le].gutter&&(x[le].gutter.style.left=ne),x[le].gutterBackground&&(x[le].gutterBackground.style.left=ne));var ue=x[le].alignable;if(ue)for(var ce=0;ce<ue.length;ce++)ue[ce].style.left=ne}a.options.fixedGutter&&(y.gutters.style.left=b+E+"px")}}function Nl(a){if(!a.options.lineNumbers)return!1;var y=a.doc,x=Le(a.options,y.first+y.size-1),b=a.display;if(x.length!=b.lineNumChars){var E=b.measure.appendChild(it("div",[it("div",x)],"CodeMirror-linenumber CodeMirror-gutter-elt")),ne=E.firstChild.offsetWidth,le=E.offsetWidth-ne;return b.lineGutter.style.width="",b.lineNumInnerWidth=Math.max(ne,b.lineGutter.offsetWidth-le)+1,b.lineNumWidth=b.lineNumInnerWidth+le,b.lineNumChars=b.lineNumInnerWidth?x.length:-1,b.lineGutter.style.width=b.lineNumWidth+"px",tl(a.display),!0}return!1}function rl(a,y){for(var x=[],b=!1,E=0;E<a.length;E++){var ne=a[E],le=null;if(typeof ne!="string"&&(le=ne.style,ne=ne.className),ne=="CodeMirror-linenumbers")if(y)b=!0;else continue;x.push({className:ne,style:le})}return y&&!b&&x.push({className:"CodeMirror-linenumbers",style:null}),x}function Rl(a){var y=a.gutters,x=a.gutterSpecs;kt(y),a.lineGutter=null;for(var b=0;b<x.length;++b){var E=x[b],ne=E.className,le=E.style,ue=y.appendChild(it("div",null,"CodeMirror-gutter "+ne));le&&(ue.style.cssText=le),ne=="CodeMirror-linenumbers"&&(a.lineGutter=ue,ue.style.width=(a.lineNumWidth||1)+"px")}y.style.display=x.length?"":"none",tl(a)}function ra(a){Rl(a.display),Di(a),Al(a)}function ru(a,y,x,b){var E=this;this.input=x,E.scrollbarFiller=it("div",null,"CodeMirror-scrollbar-filler"),E.scrollbarFiller.setAttribute("cm-not-content","true"),E.gutterFiller=it("div",null,"CodeMirror-gutter-filler"),E.gutterFiller.setAttribute("cm-not-content","true"),E.lineDiv=Ct("div",null,"CodeMirror-code"),E.selectionDiv=it("div",null,null,"position: relative; z-index: 1"),E.cursorDiv=it("div",null,"CodeMirror-cursors"),E.measure=it("div",null,"CodeMirror-measure"),E.lineMeasure=it("div",null,"CodeMirror-measure"),E.lineSpace=Ct("div",[E.measure,E.lineMeasure,E.selectionDiv,E.cursorDiv,E.lineDiv],null,"position: relative; outline: none");var ne=Ct("div",[E.lineSpace],"CodeMirror-lines");E.mover=it("div",[ne],null,"position: relative"),E.sizer=it("div",[E.mover],"CodeMirror-sizer"),E.sizerWidth=null,E.heightForcer=it("div",null,null,"position: absolute; height: "+Jt+"px; width: 1px;"),E.gutters=it("div",null,"CodeMirror-gutters"),E.lineGutter=null,E.scroller=it("div",[E.sizer,E.heightForcer,E.gutters],"CodeMirror-scroll"),E.scroller.setAttribute("tabIndex","-1"),E.wrapper=it("div",[E.scrollbarFiller,E.gutterFiller,E.scroller],"CodeMirror"),xe&&Se<8&&(E.gutters.style.zIndex=-1,E.scroller.style.paddingRight=0),!De&&!(z&&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=rl(b.gutters,b.lineNumbers),Rl(E),x.init(E)}var Da=0,ji=null;xe?ji=-.53:z?ji=15:Pe?ji=-.7:He&&(ji=-1/3);function Fl(a){var y=a.wheelDeltaX,x=a.wheelDeltaY;return y==null&&a.detail&&a.axis==a.HORIZONTAL_AXIS&&(y=a.detail),x==null&&a.detail&&a.axis==a.VERTICAL_AXIS?x=a.detail:x==null&&(x=a.wheelDelta),{x:y,y:x}}function iu(a){var y=Fl(a);return y.x*=ji,y.y*=ji,y}function $l(a,y){var x=Fl(y),b=x.x,E=x.y,ne=a.display,le=ne.scroller,ue=le.scrollWidth>le.clientWidth,ce=le.scrollHeight>le.clientHeight;if(b&&ue||E&&ce){if(E&&Ne&&De){e:for(var me=y.target,Ge=ne.view;me!=le;me=me.parentNode)for(var at=0;at<Ge.length;at++)if(Ge[at].node==me){a.display.currentWheelTarget=me;break e}}if(b&&!z&&!de&&ji!=null){E&&ce&&qo(a,Math.max(0,le.scrollTop+E*ji)),Eo(a,Math.max(0,le.scrollLeft+b*ji)),(!E||E&&ce)&&tt(y),ne.wheelStartX=null;return}if(E&&ji!=null){var Rt=E*ji,Ot=a.doc.scrollTop,fn=Ot+ne.wrapper.clientHeight;Rt<0?Ot=Math.max(0,Ot+Rt-50):fn=Math.min(a.doc.height,fn+Rt+50),el(a,{top:Ot,bottom:fn})}Da<20&&(ne.wheelStartX==null?(ne.wheelStartX=le.scrollLeft,ne.wheelStartY=le.scrollTop,ne.wheelDX=b,ne.wheelDY=E,setTimeout(function(){if(ne.wheelStartX!=null){var In=le.scrollLeft-ne.wheelStartX,Rn=le.scrollTop-ne.wheelStartY,Vn=Rn&&ne.wheelDY&&Rn/ne.wheelDY||In&&ne.wheelDX&&In/ne.wheelDX;ne.wheelStartX=ne.wheelStartY=null,Vn&&(ji=(ji*Da+Vn)/(Da+1),++Da)}},200)):(ne.wheelDX+=b,ne.wheelDY+=E))}}var Zi=function(a,y){this.ranges=a,this.primIndex=y};Zi.prototype.primary=function(){return this.ranges[this.primIndex]},Zi.prototype.equals=function(a){if(a==this)return!0;if(a.primIndex!=this.primIndex||a.ranges.length!=this.ranges.length)return!1;for(var y=0;y<this.ranges.length;y++){var x=this.ranges[y],b=a.ranges[y];if(!ve(x.anchor,b.anchor)||!ve(x.head,b.head))return!1}return!0},Zi.prototype.deepCopy=function(){for(var a=[],y=0;y<this.ranges.length;y++)a[y]=new Vr(Ve(this.ranges[y].anchor),Ve(this.ranges[y].head));return new Zi(a,this.primIndex)},Zi.prototype.somethingSelected=function(){for(var a=0;a<this.ranges.length;a++)if(!this.ranges[a].empty())return!0;return!1},Zi.prototype.contains=function(a,y){y||(y=a);for(var x=0;x<this.ranges.length;x++){var b=this.ranges[x];if(Re(y,b.from())>=0&&Re(a,b.to())<=0)return x}return-1};var Vr=function(a,y){this.anchor=a,this.head=y};Vr.prototype.from=function(){return ct(this.anchor,this.head)},Vr.prototype.to=function(){return Je(this.anchor,this.head)},Vr.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Qi(a,y,x){var b=a&&a.options.selectionsMayTouch,E=y[x];y.sort(function(Rt,Ot){return Re(Rt.from(),Ot.from())}),x=Et(y,E);for(var ne=1;ne<y.length;ne++){var le=y[ne],ue=y[ne-1],ce=Re(ue.to(),le.from());if(b&&!le.empty()?ce>0:ce>=0){var me=ct(ue.from(),le.from()),Ge=Je(ue.to(),le.to()),at=ue.empty()?le.from()==le.head:ue.from()==ue.head;ne<=x&&--x,y.splice(--ne,2,new Vr(at?Ge:me,at?me:Ge))}}return new Zi(y,x)}function po(a,y){return new Zi([new Vr(a,y||a)],0)}function mo(a){return a.text?we(a.from.line+a.text.length-1,rt(a.text).length+(a.text.length==1?a.from.ch:0)):a.to}function zl(a,y){if(Re(a,y.from)<0)return a;if(Re(a,y.to)<=0)return mo(y);var x=a.line+y.text.length-(y.to.line-y.from.line)-1,b=a.ch;return a.line==y.to.line&&(b+=mo(y).ch-y.to.ch),we(x,b)}function il(a,y){for(var x=[],b=0;b<a.sel.ranges.length;b++){var E=a.sel.ranges[b];x.push(new Vr(zl(E.anchor,y),zl(E.head,y)))}return Qi(a.cm,x,a.sel.primIndex)}function Hl(a,y,x){return a.line==y.line?we(x.line,a.ch-y.ch+x.ch):we(x.line+(a.line-y.line),a.ch)}function ou(a,y,x){for(var b=[],E=we(a.first,0),ne=E,le=0;le<y.length;le++){var ue=y[le],ce=Hl(ue.from,E,ne),me=Hl(mo(ue),E,ne);if(E=ue.to,ne=me,x=="around"){var Ge=a.sel.ranges[le],at=Re(Ge.head,Ge.anchor)<0;b[le]=new Vr(at?me:ce,at?ce:me)}else b[le]=new Vr(ce,ce)}return new Zi(b,a.sel.primIndex)}function ol(a){a.doc.mode=Wn(a.options,a.doc.modeOption),ia(a)}function ia(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,na(a,100),a.state.modeGen++,a.curOp&&Di(a)}function Wl(a,y){return y.from.ch==0&&y.to.ch==0&&rt(y.text)==""&&(!a.cm||a.cm.options.wholeLineUpdateBefore)}function al(a,y,x,b){function E(tr){return x?x[tr]:null}function ne(tr,_n,or){Ar(tr,_n,or,b),Tr(tr,"change",tr,y)}function le(tr,_n){for(var or=[],vr=tr;vr<_n;++vr)or.push(new Rr(me[vr],E(vr),b));return or}var ue=y.from,ce=y.to,me=y.text,Ge=Bt(a,ue.line),at=Bt(a,ce.line),Rt=rt(me),Ot=E(me.length-1),fn=ce.line-ue.line;if(y.full)a.insert(0,le(0,me.length)),a.remove(me.length,a.size-me.length);else if(Wl(a,y)){var In=le(0,me.length-1);ne(at,at.text,Ot),fn&&a.remove(ue.line,fn),In.length&&a.insert(ue.line,In)}else if(Ge==at)if(me.length==1)ne(Ge,Ge.text.slice(0,ue.ch)+Rt+Ge.text.slice(ce.ch),Ot);else{var Rn=le(1,me.length-1);Rn.push(new Rr(Rt+Ge.text.slice(ce.ch),Ot,b)),ne(Ge,Ge.text.slice(0,ue.ch)+me[0],E(0)),a.insert(ue.line+1,Rn)}else if(me.length==1)ne(Ge,Ge.text.slice(0,ue.ch)+me[0]+at.text.slice(ce.ch),E(0)),a.remove(ue.line+1,fn);else{ne(Ge,Ge.text.slice(0,ue.ch)+me[0],E(0)),ne(at,Rt+at.text.slice(ce.ch),Ot);var Vn=le(1,me.length-1);fn>1&&a.remove(ue.line+1,fn-1),a.insert(ue.line+1,Vn)}Tr(a,"change",a,y)}function go(a,y,x){function b(E,ne,le){if(E.linked)for(var ue=0;ue<E.linked.length;++ue){var ce=E.linked[ue];if(ce.doc!=ne){var me=le&&ce.sharedHist;x&&!me||(y(ce.doc,me),b(ce.doc,E,me))}}}b(a,null,!0)}function jl(a,y){if(y.cm)throw new Error("This document is already in use.");a.doc=y,y.cm=a,Ka(a),ol(a),Zl(a),a.options.lineWrapping||Pr(a),a.options.mode=y.modeOption,Di(a)}function Zl(a){(a.doc.direction=="rtl"?pe:_e)(a.display.lineDiv,"CodeMirror-rtl")}function au(a){Hi(a,function(){Zl(a),Di(a)})}function Ta(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 ll(a,y){var x={from:Ve(y.from),to:mo(y),text:nn(a,y.from,y.to)};return Vl(a,x,y.from.line,y.to.line+1),go(a,function(b){return Vl(b,x,y.from.line,y.to.line+1)},!0),x}function Gl(a){for(;a.length;){var y=rt(a);if(y.ranges)a.pop();else break}}function lu(a,y){if(y)return Gl(a.done),rt(a.done);if(a.done.length&&!rt(a.done).ranges)return rt(a.done);if(a.done.length>1&&!a.done[a.done.length-2].ranges)return a.done.pop(),rt(a.done)}function Ul(a,y,x,b){var E=a.history;E.undone.length=0;var ne=+new Date,le,ue;if((E.lastOp==b||E.lastOrigin==y.origin&&y.origin&&(y.origin.charAt(0)=="+"&&E.lastModTime>ne-(a.cm?a.cm.options.historyEventDelay:500)||y.origin.charAt(0)=="*"))&&(le=lu(E,E.lastOp==b)))ue=rt(le.changes),Re(y.from,y.to)==0&&Re(y.from,ue.to)==0?ue.to=mo(y):le.changes.push(ll(a,y));else{var ce=rt(E.done);for((!ce||!ce.ranges)&&La(a.sel,E.done),le={changes:[ll(a,y)],generation:E.generation},E.done.push(le);E.done.length>E.undoDepth;)E.done.shift(),E.done[0].ranges||E.done.shift()}E.done.push(x),E.generation=++E.maxGeneration,E.lastModTime=E.lastSelTime=ne,E.lastOp=E.lastSelOp=b,E.lastOrigin=E.lastSelOrigin=y.origin,ue||ln(a,"historyAdded")}function su(a,y,x,b){var E=y.charAt(0);return E=="*"||E=="+"&&x.ranges.length==b.ranges.length&&x.somethingSelected()==b.somethingSelected()&&new Date-a.history.lastSelTime<=(a.cm?a.cm.options.historyEventDelay:500)}function uu(a,y,x,b){var E=a.history,ne=b&&b.origin;x==E.lastSelOp||ne&&E.lastSelOrigin==ne&&(E.lastModTime==E.lastSelTime&&E.lastOrigin==ne||su(a,ne,rt(E.done),y))?E.done[E.done.length-1]=y:La(y,E.done),E.lastSelTime=+new Date,E.lastSelOrigin=ne,E.lastSelOp=x,b&&b.clearRedo!==!1&&Gl(E.undone)}function La(a,y){var x=rt(y);x&&x.ranges&&x.equals(a)||y.push(a)}function Vl(a,y,x,b){var E=y["spans_"+a.id],ne=0;a.iter(Math.max(a.first,x),Math.min(a.first+a.size,b),function(le){le.markedSpans&&((E||(E=y["spans_"+a.id]={}))[ne]=le.markedSpans),++ne})}function cu(a){if(!a)return null;for(var y,x=0;x<a.length;++x)a[x].marker.explicitlyCleared?y||(y=a.slice(0,x)):y&&y.push(a[x]);return y?y.length?y:null:a}function du(a,y){var x=y["spans_"+a.id];if(!x)return null;for(var b=[],E=0;E<y.text.length;++E)b.push(cu(x[E]));return b}function _l(a,y){var x=du(a,y),b=mr(a,y);if(!x)return b;if(!b)return x;for(var E=0;E<x.length;++E){var ne=x[E],le=b[E];if(ne&&le)e:for(var ue=0;ue<le.length;++ue){for(var ce=le[ue],me=0;me<ne.length;++me)if(ne[me].marker==ce.marker)continue e;ne.push(ce)}else le&&(x[E]=le)}return x}function Ro(a,y,x){for(var b=[],E=0;E<a.length;++E){var ne=a[E];if(ne.ranges){b.push(x?Zi.prototype.deepCopy.call(ne):ne);continue}var le=ne.changes,ue=[];b.push({changes:ue});for(var ce=0;ce<le.length;++ce){var me=le[ce],Ge=void 0;if(ue.push({from:me.from,to:me.to,text:me.text}),y)for(var at in me)(Ge=at.match(/^spans_(\d+)$/))&&Et(y,Number(Ge[1]))>-1&&(rt(ue)[at]=me[at],delete me[at])}}return b}function sl(a,y,x,b){if(b){var E=a.anchor;if(x){var ne=Re(y,E)<0;ne!=Re(x,E)<0?(E=y,y=x):ne!=Re(y,x)<0&&(y=x)}return new Vr(E,y)}else return new Vr(x||y,y)}function Ba(a,y,x,b,E){E==null&&(E=a.cm&&(a.cm.display.shift||a.extend)),Si(a,new Zi([sl(a.sel.primary(),y,x,E)],0),b)}function Kl(a,y,x){for(var b=[],E=a.cm&&(a.cm.display.shift||a.extend),ne=0;ne<a.sel.ranges.length;ne++)b[ne]=sl(a.sel.ranges[ne],y[ne],null,E);var le=Qi(a.cm,b,a.sel.primIndex);Si(a,le,x)}function ul(a,y,x,b){var E=a.sel.ranges.slice(0);E[y]=x,Si(a,Qi(a.cm,E,a.sel.primIndex),b)}function Xl(a,y,x,b){Si(a,po(y,x),b)}function fu(a,y,x){var b={ranges:y.ranges,update:function(E){this.ranges=[];for(var ne=0;ne<E.length;ne++)this.ranges[ne]=new Vr(Fe(a,E[ne].anchor),Fe(a,E[ne].head))},origin:x&&x.origin};return ln(a,"beforeSelectionChange",a,b),a.cm&&ln(a.cm,"beforeSelectionChange",a.cm,b),b.ranges!=y.ranges?Qi(a.cm,b.ranges,b.ranges.length-1):y}function Yl(a,y,x){var b=a.history.done,E=rt(b);E&&E.ranges?(b[b.length-1]=y,Aa(a,y,x)):Si(a,y,x)}function Si(a,y,x){Aa(a,y,x),uu(a,a.sel,a.cm?a.cm.curOp.id:NaN,x)}function Aa(a,y,x){(Wt(a,"beforeSelectionChange")||a.cm&&Wt(a.cm,"beforeSelectionChange"))&&(y=fu(a,y,x));var b=x&&x.bias||(Re(y.primary().head,a.sel.primary().head)<0?-1:1);Jl(a,ql(a,y,b,!0)),!(x&&x.scroll===!1)&&a.cm&&Ao(a.cm)}function Jl(a,y){y.equals(a.sel)||(a.sel=y,a.cm&&(a.cm.curOp.updateInput=1,a.cm.curOp.selectionChanged=!0,qt(a.cm)),Tr(a,"cursorActivity",a))}function Ql(a){Jl(a,ql(a,a.sel,null,!1))}function ql(a,y,x,b){for(var E,ne=0;ne<y.ranges.length;ne++){var le=y.ranges[ne],ue=y.ranges.length==a.sel.ranges.length&&a.sel.ranges[ne],ce=Na(a,le.anchor,ue&&ue.anchor,x,b),me=Na(a,le.head,ue&&ue.head,x,b);(E||ce!=le.anchor||me!=le.head)&&(E||(E=y.ranges.slice(0,ne)),E[ne]=new Vr(ce,me))}return E?Qi(a.cm,E,y.primIndex):y}function Fo(a,y,x,b,E){var ne=Bt(a,y.line);if(ne.markedSpans)for(var le=0;le<ne.markedSpans.length;++le){var ue=ne.markedSpans[le],ce=ue.marker,me="selectLeft"in ce?!ce.selectLeft:ce.inclusiveLeft,Ge="selectRight"in ce?!ce.selectRight:ce.inclusiveRight;if((ue.from==null||(me?ue.from<=y.ch:ue.from<y.ch))&&(ue.to==null||(Ge?ue.to>=y.ch:ue.to>y.ch))){if(E&&(ln(ce,"beforeCursorEnter"),ce.explicitlyCleared))if(ne.markedSpans){--le;continue}else break;if(!ce.atomic)continue;if(x){var at=ce.find(b<0?1:-1),Rt=void 0;if((b<0?Ge:me)&&(at=es(a,at,-b,at&&at.line==y.line?ne:null)),at&&at.line==y.line&&(Rt=Re(at,x))&&(b<0?Rt<0:Rt>0))return Fo(a,at,y,b,E)}var Ot=ce.find(b<0?-1:1);return(b<0?me:Ge)&&(Ot=es(a,Ot,b,Ot.line==y.line?ne:null)),Ot?Fo(a,Ot,y,b,E):null}}return y}function Na(a,y,x,b,E){var ne=b||1,le=Fo(a,y,x,ne,E)||!E&&Fo(a,y,x,ne,!0)||Fo(a,y,x,-ne,E)||!E&&Fo(a,y,x,-ne,!0);return le||(a.cantEdit=!0,we(a.first,0))}function es(a,y,x,b){return x<0&&y.ch==0?y.line>a.first?Fe(a,we(y.line-1)):null:x>0&&y.ch==(b||Bt(a,y.line)).text.length?y.line<a.first+a.size-1?we(y.line+1,0):null:new we(y.line,y.ch+x)}function ts(a){a.setSelection(we(a.firstLine(),0),we(a.lastLine()),We)}function ns(a,y,x){var b={canceled:!1,from:y.from,to:y.to,text:y.text,origin:y.origin,cancel:function(){return b.canceled=!0}};return x&&(b.update=function(E,ne,le,ue){E&&(b.from=Fe(a,E)),ne&&(b.to=Fe(a,ne)),le&&(b.text=le),ue!==void 0&&(b.origin=ue)}),ln(a,"beforeChange",a,b),a.cm&&ln(a.cm,"beforeChange",a.cm,b),b.canceled?(a.cm&&(a.cm.curOp.updateInput=2),null):{from:b.from,to:b.to,text:b.text,origin:b.origin}}function $o(a,y,x){if(a.cm){if(!a.cm.curOp)return hi(a.cm,$o)(a,y,x);if(a.cm.state.suppressEdits)return}if(!((Wt(a,"beforeChange")||a.cm&&Wt(a.cm,"beforeChange"))&&(y=ns(a,y,!0),!y))){var b=er&&!x&&zr(a,y.from,y.to);if(b)for(var E=b.length-1;E>=0;--E)rs(a,{from:b[E].from,to:b[E].to,text:E?[""]:y.text,origin:y.origin});else rs(a,y)}}function rs(a,y){if(!(y.text.length==1&&y.text[0]==""&&Re(y.from,y.to)==0)){var x=il(a,y);Ul(a,y,x,a.cm?a.cm.curOp.id:NaN),oa(a,y,x,mr(a,y));var b=[];go(a,function(E,ne){!ne&&Et(b,E.history)==-1&&(ls(E.history,y),b.push(E.history)),oa(E,y,null,mr(E,y))})}}function Ra(a,y,x){var b=a.cm&&a.cm.state.suppressEdits;if(!(b&&!x)){for(var E=a.history,ne,le=a.sel,ue=y=="undo"?E.done:E.undone,ce=y=="undo"?E.undone:E.done,me=0;me<ue.length&&(ne=ue[me],!(x?ne.ranges&&!ne.equals(a.sel):!ne.ranges));me++);if(me!=ue.length){for(E.lastOrigin=E.lastSelOrigin=null;;)if(ne=ue.pop(),ne.ranges){if(La(ne,ce),x&&!ne.equals(a.sel)){Si(a,ne,{clearRedo:!1});return}le=ne}else if(b){ue.push(ne);return}else break;var Ge=[];La(le,ce),ce.push({changes:Ge,generation:E.generation}),E.generation=ne.generation||++E.maxGeneration;for(var at=Wt(a,"beforeChange")||a.cm&&Wt(a.cm,"beforeChange"),Rt=function(In){var Rn=ne.changes[In];if(Rn.origin=y,at&&!ns(a,Rn,!1))return ue.length=0,{};Ge.push(ll(a,Rn));var Vn=In?il(a,Rn):rt(ue);oa(a,Rn,Vn,_l(a,Rn)),!In&&a.cm&&a.cm.scrollIntoView({from:Rn.from,to:mo(Rn)});var tr=[];go(a,function(_n,or){!or&&Et(tr,_n.history)==-1&&(ls(_n.history,Rn),tr.push(_n.history)),oa(_n,Rn,null,_l(_n,Rn))})},Ot=ne.changes.length-1;Ot>=0;--Ot){var fn=Rt(Ot);if(fn)return fn.v}}}}function is(a,y){if(y!=0&&(a.first+=y,a.sel=new Zi(Ht(a.sel.ranges,function(E){return new Vr(we(E.anchor.line+y,E.anchor.ch),we(E.head.line+y,E.head.ch))}),a.sel.primIndex),a.cm)){Di(a.cm,a.first,a.first-y,y);for(var x=a.cm.display,b=x.viewFrom;b<x.viewTo;b++)fo(a.cm,b,"gutter")}}function oa(a,y,x,b){if(a.cm&&!a.cm.curOp)return hi(a.cm,oa)(a,y,x,b);if(y.to.line<a.first){is(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);is(a,E),y={from:we(a.first,0),to:we(y.to.line+E,y.to.ch),text:[rt(y.text)],origin:y.origin}}var ne=a.lastLine();y.to.line>ne&&(y={from:y.from,to:we(ne,Bt(a,ne).text.length),text:[y.text[0]],origin:y.origin}),y.removed=nn(a,y.from,y.to),x||(x=il(a,y)),a.cm?hu(a.cm,y,b):al(a,y,b),Aa(a,x,We),a.cantEdit&&Na(a,we(a.firstLine(),0))&&(a.cantEdit=!1)}}function hu(a,y,x){var b=a.doc,E=a.display,ne=y.from,le=y.to,ue=!1,ce=ne.line;a.options.lineWrapping||(ce=Ae(en(Bt(b,ne.line))),b.iter(ce,le.line+1,function(Ot){if(Ot==E.maxLine)return ue=!0,!0})),b.sel.contains(y.from,y.to)>-1&&qt(a),al(b,y,x,Cl(a)),a.options.lineWrapping||(b.iter(ce,ne.line+y.text.length,function(Ot){var fn=Dr(Ot);fn>E.maxLineLength&&(E.maxLine=Ot,E.maxLineLength=fn,E.maxLineChanged=!0,ue=!1)}),ue&&(a.curOp.updateMaxLine=!0)),Cn(b,ne.line),na(a,400);var me=y.text.length-(le.line-ne.line)-1;y.full?Di(a):ne.line==le.line&&y.text.length==1&&!Wl(a.doc,y)?fo(a,ne.line,"text"):Di(a,ne.line,le.line+1,me);var Ge=Wt(a,"changes"),at=Wt(a,"change");if(at||Ge){var Rt={from:ne,to:le,text:y.text,removed:y.removed,origin:y.origin};at&&Tr(a,"change",a,Rt),Ge&&(a.curOp.changeObjs||(a.curOp.changeObjs=[])).push(Rt)}a.display.selForContextMenu=null}function zo(a,y,x,b,E){var ne;b||(b=x),Re(b,x)<0&&(ne=[b,x],x=ne[0],b=ne[1]),typeof y=="string"&&(y=a.splitLines(y)),$o(a,{from:x,to:b,text:y,origin:E})}function os(a,y,x,b){x<a.line?a.line+=b:y<a.line&&(a.line=y,a.ch=0)}function as(a,y,x,b){for(var E=0;E<a.length;++E){var ne=a[E],le=!0;if(ne.ranges){ne.copied||(ne=a[E]=ne.deepCopy(),ne.copied=!0);for(var ue=0;ue<ne.ranges.length;ue++)os(ne.ranges[ue].anchor,y,x,b),os(ne.ranges[ue].head,y,x,b);continue}for(var ce=0;ce<ne.changes.length;++ce){var me=ne.changes[ce];if(x<me.from.line)me.from=we(me.from.line+b,me.from.ch),me.to=we(me.to.line+b,me.to.ch);else if(y<=me.to.line){le=!1;break}}le||(a.splice(0,E+1),E=0)}}function ls(a,y){var x=y.from.line,b=y.to.line,E=y.text.length-(b-x)-1;as(a.done,x,b,E),as(a.undone,x,b,E)}function aa(a,y,x,b){var E=y,ne=y;return typeof y=="number"?ne=Bt(a,Qe(a,y)):E=Ae(y),E==null?null:(b(ne,E)&&a.cm&&fo(a.cm,E,x),ne)}function la(a){this.lines=a,this.parent=null;for(var y=0,x=0;x<a.length;++x)a[x].parent=this,y+=a[x].height;this.height=y}la.prototype={chunkSize:function(){return this.lines.length},removeInner:function(a,y){for(var x=a,b=a+y;x<b;++x){var E=this.lines[x];this.height-=E.height,Fr(E),Tr(E,"delete")}this.lines.splice(a,y)},collapse:function(a){a.push.apply(a,this.lines)},insertInner:function(a,y,x){this.height+=x,this.lines=this.lines.slice(0,a).concat(y).concat(this.lines.slice(a));for(var b=0;b<y.length;++b)y[b].parent=this},iterN:function(a,y,x){for(var b=a+y;a<b;++a)if(x(this.lines[a]))return!0}};function sa(a){this.children=a;for(var y=0,x=0,b=0;b<a.length;++b){var E=a[b];y+=E.chunkSize(),x+=E.height,E.parent=this}this.size=y,this.height=x,this.parent=null}sa.prototype={chunkSize:function(){return this.size},removeInner:function(a,y){this.size-=y;for(var x=0;x<this.children.length;++x){var b=this.children[x],E=b.chunkSize();if(a<E){var ne=Math.min(y,E-a),le=b.height;if(b.removeInner(a,ne),this.height-=le-b.height,E==ne&&(this.children.splice(x--,1),b.parent=null),(y-=ne)==0)break;a=0}else a-=E}if(this.size-y<25&&(this.children.length>1||!(this.children[0]instanceof la))){var ue=[];this.collapse(ue),this.children=[new la(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,x){this.size+=y.length,this.height+=x;for(var b=0;b<this.children.length;++b){var E=this.children[b],ne=E.chunkSize();if(a<=ne){if(E.insertInner(a,y,x),E.lines&&E.lines.length>50){for(var le=E.lines.length%25+25,ue=le;ue<E.lines.length;){var ce=new la(E.lines.slice(ue,ue+=25));E.height-=ce.height,this.children.splice(++b,0,ce),ce.parent=this}E.lines=E.lines.slice(0,le),this.maybeSpill()}break}a-=ne}},maybeSpill:function(){if(!(this.children.length<=10)){var a=this;do{var y=a.children.splice(a.children.length-5,5),x=new sa(y);if(a.parent){a.size-=x.size,a.height-=x.height;var E=Et(a.parent.children,a);a.parent.children.splice(E+1,0,x)}else{var b=new sa(a.children);b.parent=a,a.children=[b,x],a=b}x.parent=a.parent}while(a.children.length>10);a.parent.maybeSpill()}},iterN:function(a,y,x){for(var b=0;b<this.children.length;++b){var E=this.children[b],ne=E.chunkSize();if(a<ne){var le=Math.min(y,ne-a);if(E.iterN(a,le,x))return!0;if((y-=le)==0)break;a=0}else a-=ne}}};var ua=function(a,y,x){if(x)for(var b in x)x.hasOwnProperty(b)&&(this[b]=x[b]);this.doc=a,this.node=y};ua.prototype.clear=function(){var a=this.doc.cm,y=this.line.widgets,x=this.line,b=Ae(x);if(!(b==null||!y)){for(var E=0;E<y.length;++E)y[E]==this&&y.splice(E--,1);y.length||(x.widgets=null);var ne=Ii(this);nr(x,Math.max(0,x.height-ne)),a&&(Hi(a,function(){ss(a,x,-ne),fo(a,b,"widget")}),Tr(a,"lineWidgetCleared",a,this,b))}},ua.prototype.changed=function(){var a=this,y=this.height,x=this.doc.cm,b=this.line;this.height=null;var E=Ii(this)-y;E&&(wn(this.doc,b)||nr(b,b.height+E),x&&Hi(x,function(){x.curOp.forceUpdate=!0,ss(x,b,E),Tr(x,"lineWidgetChanged",x,a,Ae(b))}))},Oe(ua);function ss(a,y,x){cr(y)<(a.curOp&&a.curOp.scrollTop||a.doc.scrollTop)&&Qa(a,x)}function pu(a,y,x,b){var E=new ua(a,x,b),ne=a.cm;return ne&&E.noHScroll&&(ne.display.alignWidgets=!0),aa(a,y,"widget",function(le){var ue=le.widgets||(le.widgets=[]);if(E.insertAt==null?ue.push(E):ue.splice(Math.min(ue.length-1,Math.max(0,E.insertAt)),0,E),E.line=le,ne&&!wn(a,le)){var ce=cr(le)<a.scrollTop;nr(le,le.height+Ii(E)),ce&&Qa(ne,E.height),ne.curOp.forceUpdate=!0}return!0}),ne&&Tr(ne,"lineWidgetAdded",ne,E,typeof y=="number"?y:Ae(y)),E}var us=0,vo=function(a,y){this.lines=[],this.type=y,this.doc=a,this.id=++us};vo.prototype.clear=function(){if(!this.explicitlyCleared){var a=this.doc.cm,y=a&&!a.curOp;if(y&&Po(a),Wt(this,"clear")){var x=this.find();x&&Tr(this,"clear",x.from,x.to)}for(var b=null,E=null,ne=0;ne<this.lines.length;++ne){var le=this.lines[ne],ue=ur(le.markedSpans,this);a&&!this.collapsed?fo(a,Ae(le),"text"):a&&(ue.to!=null&&(E=Ae(le)),ue.from!=null&&(b=Ae(le))),le.markedSpans=yr(le.markedSpans,ue),ue.from==null&&this.collapsed&&!wn(this.doc,le)&&a&&nr(le,zi(a.display))}if(a&&this.collapsed&&!a.options.lineWrapping)for(var ce=0;ce<this.lines.length;++ce){var me=en(this.lines[ce]),Ge=Dr(me);Ge>a.display.maxLineLength&&(a.display.maxLine=me,a.display.maxLineLength=Ge,a.display.maxLineChanged=!0)}b!=null&&a&&this.collapsed&&Di(a,b,E+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,a&&Ql(a.doc)),a&&Tr(a,"markerCleared",a,this,b,E),y&&Mo(a),this.parent&&this.parent.clear()}},vo.prototype.find=function(a,y){a==null&&this.type=="bookmark"&&(a=1);for(var x,b,E=0;E<this.lines.length;++E){var ne=this.lines[E],le=ur(ne.markedSpans,this);if(le.from!=null&&(x=we(y?ne:Ae(ne),le.from),a==-1))return x;if(le.to!=null&&(b=we(y?ne:Ae(ne),le.to),a==1))return b}return x&&{from:x,to:b}},vo.prototype.changed=function(){var a=this,y=this.find(-1,!0),x=this,b=this.doc.cm;!y||!b||Hi(b,function(){var E=y.line,ne=Ae(y.line),le=no(b,ne);if(le&&(_o(le),b.curOp.selectionChanged=b.curOp.forceUpdate=!0),b.curOp.updateMaxLine=!0,!wn(x.doc,E)&&x.height!=null){var ue=x.height;x.height=null;var ce=Ii(x)-ue;ce&&nr(E,E.height+ce)}Tr(b,"markerChanged",b,a)})},vo.prototype.attachLine=function(a){if(!this.lines.length&&this.doc.cm){var y=this.doc.cm.curOp;(!y.maybeHiddenMarkers||Et(y.maybeHiddenMarkers,this)==-1)&&(y.maybeUnhiddenMarkers||(y.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(a)},vo.prototype.detachLine=function(a){if(this.lines.splice(Et(this.lines,a),1),!this.lines.length&&this.doc.cm){var y=this.doc.cm.curOp;(y.maybeHiddenMarkers||(y.maybeHiddenMarkers=[])).push(this)}},Oe(vo);function Ho(a,y,x,b,E){if(b&&b.shared)return mu(a,y,x,b,E);if(a.cm&&!a.cm.curOp)return hi(a.cm,Ho)(a,y,x,b,E);var ne=new vo(a,E),le=Re(y,x);if(b&&on(b,ne,!1),le>0||le==0&&ne.clearWhenEmpty!==!1)return ne;if(ne.replacedWith&&(ne.collapsed=!0,ne.widgetNode=Ct("span",[ne.replacedWith],"CodeMirror-widget"),b.handleMouseEvents||ne.widgetNode.setAttribute("cm-ignore-events","true"),b.insertLeft&&(ne.widgetNode.insertLeft=!0)),ne.collapsed){if(hn(a,y.line,y,x,ne)||y.line!=x.line&&hn(a,x.line,y,x,ne))throw new Error("Inserting collapsed marker partially overlapping an existing one");pr()}ne.addToHistory&&Ul(a,{from:y,to:x,origin:"markText"},a.sel,NaN);var ue=y.line,ce=a.cm,me;if(a.iter(ue,x.line+1,function(at){ce&&ne.collapsed&&!ce.options.lineWrapping&&en(at)==ce.display.maxLine&&(me=!0),ne.collapsed&&ue!=y.line&&nr(at,0),lr(at,new sr(ne,ue==y.line?y.ch:null,ue==x.line?x.ch:null)),++ue}),ne.collapsed&&a.iter(y.line,x.line+1,function(at){wn(a,at)&&nr(at,0)}),ne.clearOnEnter&&jt(ne,"beforeCursorEnter",function(){return ne.clear()}),ne.readOnly&&(dr(),(a.history.done.length||a.history.undone.length)&&a.clearHistory()),ne.collapsed&&(ne.id=++us,ne.atomic=!0),ce){if(me&&(ce.curOp.updateMaxLine=!0),ne.collapsed)Di(ce,y.line,x.line+1);else if(ne.className||ne.startStyle||ne.endStyle||ne.css||ne.attributes||ne.title)for(var Ge=y.line;Ge<=x.line;Ge++)fo(ce,Ge,"text");ne.atomic&&Ql(ce.doc),Tr(ce,"markerAdded",ce,ne)}return ne}var ca=function(a,y){this.markers=a,this.primary=y;for(var x=0;x<a.length;++x)a[x].parent=this};ca.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var a=0;a<this.markers.length;++a)this.markers[a].clear();Tr(this,"clear")}},ca.prototype.find=function(a,y){return this.primary.find(a,y)},Oe(ca);function mu(a,y,x,b,E){b=on(b),b.shared=!1;var ne=[Ho(a,y,x,b,E)],le=ne[0],ue=b.widgetNode;return go(a,function(ce){ue&&(b.widgetNode=ue.cloneNode(!0)),ne.push(Ho(ce,Fe(ce,y),Fe(ce,x),b,E));for(var me=0;me<ce.linked.length;++me)if(ce.linked[me].isParent)return;le=rt(ne)}),new ca(ne,le)}function cs(a){return a.findMarks(we(a.first,0),a.clipPos(we(a.lastLine())),function(y){return y.parent})}function gu(a,y){for(var x=0;x<y.length;x++){var b=y[x],E=b.find(),ne=a.clipPos(E.from),le=a.clipPos(E.to);if(Re(ne,le)){var ue=Ho(a,ne,le,b.primary,b.primary.type);b.markers.push(ue),ue.parent=b}}}function vu(a){for(var y=function(b){var E=a[b],ne=[E.primary.doc];go(E.primary.doc,function(ce){return ne.push(ce)});for(var le=0;le<E.markers.length;le++){var ue=E.markers[le];Et(ne,ue.doc)==-1&&(ue.parent=null,E.markers.splice(le--,1))}},x=0;x<a.length;x++)y(x)}var yu=0,Ti=function(a,y,x,b,E){if(!(this instanceof Ti))return new Ti(a,y,x,b,E);x==null&&(x=0),sa.call(this,[new la([new Rr("",null)])]),this.first=x,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=x;var ne=we(x,0);this.sel=po(ne),this.history=new Ta(null),this.id=++yu,this.modeOption=y,this.lineSep=b,this.direction=E=="rtl"?"rtl":"ltr",this.extend=!1,typeof a=="string"&&(a=this.splitLines(a)),al(this,{from:ne,to:ne,text:a}),Si(this,po(ne),We)};Ti.prototype=te(sa.prototype,{constructor:Ti,iter:function(a,y,x){x?this.iterN(a-this.first,y-a,x):this.iterN(this.first,this.first+this.size,a)},insert:function(a,y){for(var x=0,b=0;b<y.length;++b)x+=y[b].height;this.insertInner(a-this.first,y,x)},remove:function(a,y){this.removeInner(a-this.first,y)},getValue:function(a){var y=$n(this,this.first,this.first+this.size);return a===!1?y:y.join(a||this.lineSeparator())},setValue:pi(function(a){var y=we(this.first,0),x=this.first+this.size-1;$o(this,{from:y,to:we(x,Bt(this,x).text.length),text:this.splitLines(a),origin:"setValue",full:!0},!0),this.cm&&Qo(this.cm,0,0),Si(this,po(y),We)}),replaceRange:function(a,y,x,b){y=Fe(this,y),x=x?Fe(this,x):y,zo(this,a,y,x,b)},getRange:function(a,y,x){var b=nn(this,Fe(this,a),Fe(this,y));return x===!1?b:b.join(x||this.lineSeparator())},getLine:function(a){var y=this.getLineHandle(a);return y&&y.text},getLineHandle:function(a){if(Ce(this,a))return Bt(this,a)},getLineNumber:function(a){return Ae(a)},getLineHandleVisualStart:function(a){return typeof a=="number"&&(a=Bt(this,a)),en(a)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(a){return Fe(this,a)},getCursor:function(a){var y=this.sel.primary(),x;return a==null||a=="head"?x=y.head:a=="anchor"?x=y.anchor:a=="end"||a=="to"||a===!1?x=y.to():x=y.from(),x},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:pi(function(a,y,x){Xl(this,Fe(this,typeof a=="number"?we(a,y||0):a),null,x)}),setSelection:pi(function(a,y,x){Xl(this,Fe(this,a),Fe(this,y||a),x)}),extendSelection:pi(function(a,y,x){Ba(this,Fe(this,a),y&&Fe(this,y),x)}),extendSelections:pi(function(a,y){Kl(this,qe(this,a),y)}),extendSelectionsBy:pi(function(a,y){var x=Ht(this.sel.ranges,a);Kl(this,qe(this,x),y)}),setSelections:pi(function(a,y,x){if(a.length){for(var b=[],E=0;E<a.length;E++)b[E]=new Vr(Fe(this,a[E].anchor),Fe(this,a[E].head));y==null&&(y=Math.min(a.length-1,this.sel.primIndex)),Si(this,Qi(this.cm,b,y),x)}}),addSelection:pi(function(a,y,x){var b=this.sel.ranges.slice(0);b.push(new Vr(Fe(this,a),Fe(this,y||a))),Si(this,Qi(this.cm,b,b.length-1),x)}),getSelection:function(a){for(var y=this.sel.ranges,x,b=0;b<y.length;b++){var E=nn(this,y[b].from(),y[b].to());x=x?x.concat(E):E}return a===!1?x:x.join(a||this.lineSeparator())},getSelections:function(a){for(var y=[],x=this.sel.ranges,b=0;b<x.length;b++){var E=nn(this,x[b].from(),x[b].to());a!==!1&&(E=E.join(a||this.lineSeparator())),y[b]=E}return y},replaceSelection:function(a,y,x){for(var b=[],E=0;E<this.sel.ranges.length;E++)b[E]=a;this.replaceSelections(b,y,x||"+input")},replaceSelections:pi(function(a,y,x){for(var b=[],E=this.sel,ne=0;ne<E.ranges.length;ne++){var le=E.ranges[ne];b[ne]={from:le.from(),to:le.to(),text:this.splitLines(a[ne]),origin:x}}for(var ue=y&&y!="end"&&ou(this,b,y),ce=b.length-1;ce>=0;ce--)$o(this,b[ce]);ue?Yl(this,ue):this.cm&&Ao(this.cm)}),undo:pi(function(){Ra(this,"undo")}),redo:pi(function(){Ra(this,"redo")}),undoSelection:pi(function(){Ra(this,"undo",!0)}),redoSelection:pi(function(){Ra(this,"redo",!0)}),setExtending:function(a){this.extend=a},getExtending:function(){return this.extend},historySize:function(){for(var a=this.history,y=0,x=0,b=0;b<a.done.length;b++)a.done[b].ranges||++y;for(var E=0;E<a.undone.length;E++)a.undone[E].ranges||++x;return{undo:y,redo:x}},clearHistory:function(){var a=this;this.history=new Ta(this.history.maxGeneration),go(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:Ro(this.history.done),undone:Ro(this.history.undone)}},setHistory:function(a){var y=this.history=new Ta(this.history.maxGeneration);y.done=Ro(a.done.slice(0),null,!0),y.undone=Ro(a.undone.slice(0),null,!0)},setGutterMarker:pi(function(a,y,x){return aa(this,a,"gutter",function(b){var E=b.gutterMarkers||(b.gutterMarkers={});return E[y]=x,!x&&re(E)&&(b.gutterMarkers=null),!0})}),clearGutter:pi(function(a){var y=this;this.iter(function(x){x.gutterMarkers&&x.gutterMarkers[a]&&aa(y,x,"gutter",function(){return x.gutterMarkers[a]=null,re(x.gutterMarkers)&&(x.gutterMarkers=null),!0})})}),lineInfo:function(a){var y;if(typeof a=="number"){if(!Ce(this,a)||(y=a,a=Bt(this,a),!a))return null}else if(y=Ae(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:pi(function(a,y,x){return aa(this,a,y=="gutter"?"gutter":"class",function(b){var E=y=="text"?"textClass":y=="background"?"bgClass":y=="gutter"?"gutterClass":"wrapClass";if(!b[E])b[E]=x;else{if(lt(x).test(b[E]))return!1;b[E]+=" "+x}return!0})}),removeLineClass:pi(function(a,y,x){return aa(this,a,y=="gutter"?"gutter":"class",function(b){var E=y=="text"?"textClass":y=="background"?"bgClass":y=="gutter"?"gutterClass":"wrapClass",ne=b[E];if(ne)if(x==null)b[E]=null;else{var le=ne.match(lt(x));if(!le)return!1;var ue=le.index+le[0].length;b[E]=ne.slice(0,le.index)+(!le.index||ue==ne.length?"":" ")+ne.slice(ue)||null}else return!1;return!0})}),addLineWidget:pi(function(a,y,x){return pu(this,a,y,x)}),removeLineWidget:function(a){a.clear()},markText:function(a,y,x){return Ho(this,Fe(this,a),Fe(this,y),x,x&&x.type||"range")},setBookmark:function(a,y){var x={replacedWith:y&&(y.nodeType==null?y.widget:y),insertLeft:y&&y.insertLeft,clearWhenEmpty:!1,shared:y&&y.shared,handleMouseEvents:y&&y.handleMouseEvents};return a=Fe(this,a),Ho(this,a,a,x,"bookmark")},findMarksAt:function(a){a=Fe(this,a);var y=[],x=Bt(this,a.line).markedSpans;if(x)for(var b=0;b<x.length;++b){var E=x[b];(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,x){a=Fe(this,a),y=Fe(this,y);var b=[],E=a.line;return this.iter(a.line,y.line+1,function(ne){var le=ne.markedSpans;if(le)for(var ue=0;ue<le.length;ue++){var ce=le[ue];!(ce.to!=null&&E==a.line&&a.ch>=ce.to||ce.from==null&&E!=a.line||ce.from!=null&&E==y.line&&ce.from>=y.ch)&&(!x||x(ce.marker))&&b.push(ce.marker.parent||ce.marker)}++E}),b},getAllMarks:function(){var a=[];return this.iter(function(y){var x=y.markedSpans;if(x)for(var b=0;b<x.length;++b)x[b].from!=null&&a.push(x[b].marker)}),a},posFromIndex:function(a){var y,x=this.first,b=this.lineSeparator().length;return this.iter(function(E){var ne=E.text.length+b;if(ne>a)return y=a,!0;a-=ne,++x}),Fe(this,we(x,y))},indexFromPos:function(a){a=Fe(this,a);var y=a.ch;if(a.line<this.first||a.ch<0)return 0;var x=this.lineSeparator().length;return this.iter(this.first,a.line,function(b){y+=b.text.length+x}),y},copy:function(a){var y=new Ti($n(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return y.scrollTop=this.scrollTop,y.scrollLeft=this.scrollLeft,y.sel=this.sel,y.extend=!1,a&&(y.history.undoDepth=this.history.undoDepth,y.setHistory(this.getHistory())),y},linkedDoc:function(a){a||(a={});var y=this.first,x=this.first+this.size;a.from!=null&&a.from>y&&(y=a.from),a.to!=null&&a.to<x&&(x=a.to);var b=new Ti($n(this,y,x),a.mode||this.modeOption,y,this.lineSep,this.direction);return a.sharedHist&&(b.history=this.history),(this.linked||(this.linked=[])).push({doc:b,sharedHist:a.sharedHist}),b.linked=[{doc:this,isParent:!0,sharedHist:a.sharedHist}],gu(b,cs(this)),b},unlinkDoc:function(a){if(a instanceof Jr&&(a=a.doc),this.linked)for(var y=0;y<this.linked.length;++y){var x=this.linked[y];if(x.doc==a){this.linked.splice(y,1),a.unlinkDoc(this),vu(cs(this));break}}if(a.history==this.history){var b=[a.id];go(a,function(E){return b.push(E.id)},!0),a.history=new Ta(null),a.history.done=Ro(this.history.done,b),a.history.undone=Ro(this.history.undone,b)}},iterLinkedDocs:function(a){go(this,a)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(a){return this.lineSep?a.split(this.lineSep):sn(a)},lineSeparator:function(){return this.lineSep||`
`},setDirection:pi(function(a){a!="rtl"&&(a="ltr"),a!=this.direction&&(this.direction=a,this.iter(function(y){return y.order=null}),this.cm&&au(this.cm))})}),Ti.prototype.eachLine=Ti.prototype.iter;var ds=0;function bu(a){var y=this;if(fs(y),!(St(y,a)||vi(y.display,a))){tt(a),xe&&(ds=+new Date);var x=So(y,a,!0),b=a.dataTransfer.files;if(!(!x||y.isReadOnly()))if(b&&b.length&&window.FileReader&&window.File)for(var E=b.length,ne=Array(E),le=0,ue=function(){++le==E&&hi(y,function(){x=Fe(y.doc,x);var Ot={from:x,to:x,text:y.doc.splitLines(ne.filter(function(fn){return fn!=null}).join(y.doc.lineSeparator())),origin:"paste"};$o(y.doc,Ot),Yl(y.doc,po(Fe(y.doc,x),Fe(y.doc,mo(Ot))))})()},ce=function(Ot,fn){if(y.options.allowDropFileTypes&&Et(y.options.allowDropFileTypes,Ot.type)==-1){ue();return}var In=new FileReader;In.onerror=function(){return ue()},In.onload=function(){var Rn=In.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Rn)){ue();return}ne[fn]=Rn,ue()},In.readAsText(Ot)},me=0;me<b.length;me++)ce(b[me],me);else{if(y.state.draggingText&&y.doc.sel.contains(x)>-1){y.state.draggingText(a),setTimeout(function(){return y.display.input.focus()},20);return}try{var Ge=a.dataTransfer.getData("Text");if(Ge){var at;if(y.state.draggingText&&!y.state.draggingText.copy&&(at=y.listSelections()),Aa(y.doc,po(x,x)),at)for(var Rt=0;Rt<at.length;++Rt)zo(y.doc,"",at[Rt].anchor,at[Rt].head,"drag");y.replaceSelection(Ge,"around","paste"),y.display.input.focus()}}catch(Ot){}}}}function xu(a,y){if(xe&&(!a.state.draggingText||+new Date-ds<100)){Ie(y);return}if(!(St(a,y)||vi(a.display,y))&&(y.dataTransfer.setData("Text",a.getSelection()),y.dataTransfer.effectAllowed="copyMove",y.dataTransfer.setDragImage&&!He)){var x=it("img",null,null,"position: fixed; left: 0; top: 0;");x.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",de&&(x.width=x.height=1,a.display.wrapper.appendChild(x),x._top=x.offsetTop),y.dataTransfer.setDragImage(x,0,0),de&&x.parentNode.removeChild(x)}}function Cu(a,y){var x=So(a,y);if(x){var b=document.createDocumentFragment();El(a,x,b),a.display.dragCursor||(a.display.dragCursor=it("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),a.display.lineSpace.insertBefore(a.display.dragCursor,a.display.cursorDiv)),nt(a.display.dragCursor,b)}}function fs(a){a.display.dragCursor&&(a.display.lineSpace.removeChild(a.display.dragCursor),a.display.dragCursor=null)}function hs(a){if(document.getElementsByClassName){for(var y=document.getElementsByClassName("CodeMirror"),x=[],b=0;b<y.length;b++){var E=y[b].CodeMirror;E&&x.push(E)}x.length&&x[0].operation(function(){for(var ne=0;ne<x.length;ne++)a(x[ne])})}}var ps=!1;function Su(){ps||(wu(),ps=!0)}function wu(){var a;jt(window,"resize",function(){a==null&&(a=setTimeout(function(){a=null,hs(Eu)},100))}),jt(window,"blur",function(){return hs(Bo)})}function Eu(a){var y=a.display;y.cachedCharWidth=y.cachedTextHeight=y.cachedPaddingH=null,y.scrollbarsClipped=!1,a.setSize()}for(var yo={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"},da=0;da<10;da++)yo[da+48]=yo[da+96]=String(da);for(var Fa=65;Fa<=90;Fa++)yo[Fa]=String.fromCharCode(Fa);for(var fa=1;fa<=12;fa++)yo[fa+111]=yo[fa+63235]="F"+fa;var ao={};ao.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"},ao.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"},ao.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"},ao.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"]},ao.default=Ne?ao.macDefault:ao.pcDefault;function Iu(a){var y=a.split(/-(?!$)/);a=y[y.length-1];for(var x,b,E,ne,le=0;le<y.length-1;le++){var ue=y[le];if(/^(cmd|meta|m)$/i.test(ue))ne=!0;else if(/^a(lt)?$/i.test(ue))x=!0;else if(/^(c|ctrl|control)$/i.test(ue))b=!0;else if(/^s(hift)?$/i.test(ue))E=!0;else throw new Error("Unrecognized modifier name: "+ue)}return x&&(a="Alt-"+a),b&&(a="Ctrl-"+a),ne&&(a="Cmd-"+a),E&&(a="Shift-"+a),a}function Pu(a){var y={};for(var x in a)if(a.hasOwnProperty(x)){var b=a[x];if(/^(name|fallthrough|(de|at)tach)$/.test(x))continue;if(b=="..."){delete a[x];continue}for(var E=Ht(x.split(" "),Iu),ne=0;ne<E.length;ne++){var le=void 0,ue=void 0;ne==E.length-1?(ue=E.join(" "),le=b):(ue=E.slice(0,ne+1).join(" "),le="...");var ce=y[ue];if(!ce)y[ue]=le;else if(ce!=le)throw new Error("Inconsistent bindings for "+ue)}delete a[x]}for(var me in y)a[me]=y[me];return a}function Wo(a,y,x,b){y=$a(y);var E=y.call?y.call(a,b):y[a];if(E===!1)return"nothing";if(E==="...")return"multi";if(E!=null&&x(E))return"handled";if(y.fallthrough){if(Object.prototype.toString.call(y.fallthrough)!="[object Array]")return Wo(a,y.fallthrough,x,b);for(var ne=0;ne<y.fallthrough.length;ne++){var le=Wo(a,y.fallthrough[ne],x,b);if(le)return le}}}function ms(a){var y=typeof a=="string"?a:yo[a.keyCode];return y=="Ctrl"||y=="Alt"||y=="Shift"||y=="Mod"}function gs(a,y,x){var b=a;return y.altKey&&b!="Alt"&&(a="Alt-"+a),(bt?y.metaKey:y.ctrlKey)&&b!="Ctrl"&&(a="Ctrl-"+a),(bt?y.ctrlKey:y.metaKey)&&b!="Mod"&&(a="Cmd-"+a),!x&&y.shiftKey&&b!="Shift"&&(a="Shift-"+a),a}function vs(a,y){if(de&&a.keyCode==34&&a.char)return!1;var x=yo[a.keyCode];return x==null||a.altGraphKey?!1:(a.keyCode==3&&a.code&&(x=a.code),gs(x,a,y))}function $a(a){return typeof a=="string"?ao[a]:a}function jo(a,y){for(var x=a.doc.sel.ranges,b=[],E=0;E<x.length;E++){for(var ne=y(x[E]);b.length&&Re(ne.from,rt(b).to)<=0;){var le=b.pop();if(Re(le.from,ne.from)<0){ne.from=le.from;break}}b.push(ne)}Hi(a,function(){for(var ue=b.length-1;ue>=0;ue--)zo(a.doc,"",b[ue].from,b[ue].to,"+delete");Ao(a)})}function cl(a,y,x){var b=ht(a.text,y+x,x);return b<0||b>a.text.length?null:b}function dl(a,y,x){var b=cl(a,y.ch,x);return b==null?null:new we(y.line,b,x<0?"after":"before")}function fl(a,y,x,b,E){if(a){y.doc.direction=="rtl"&&(E=-E);var ne=Xt(x,y.doc.direction);if(ne){var le=E<0?rt(ne):ne[0],ue=E<0==(le.level==1),ce=ue?"after":"before",me;if(le.level>0||y.doc.direction=="rtl"){var Ge=uo(y,x);me=E<0?x.text.length-1:0;var at=Ui(y,Ge,me).top;me=Me(function(Rt){return Ui(y,Ge,Rt).top==at},E<0==(le.level==1)?le.from:le.to-1,me),ce=="before"&&(me=cl(x,me,1))}else me=E<0?le.to:le.from;return new we(b,me,ce)}}return new we(b,E<0?x.text.length:0,E<0?"before":"after")}function Mu(a,y,x,b){var E=Xt(y,a.doc.direction);if(!E)return dl(y,x,b);x.ch>=y.text.length?(x.ch=y.text.length,x.sticky="before"):x.ch<=0&&(x.ch=0,x.sticky="after");var ne=It(E,x.ch,x.sticky),le=E[ne];if(a.doc.direction=="ltr"&&le.level%2==0&&(b>0?le.to>x.ch:le.from<x.ch))return dl(y,x,b);var ue=function(Vn,tr){return cl(y,Vn instanceof we?Vn.ch:Vn,tr)},ce,me=function(Vn){return a.options.lineWrapping?(ce=ce||uo(a,y),ii(a,y,ce,Vn)):{begin:0,end:y.text.length}},Ge=me(x.sticky=="before"?ue(x,-1):x.ch);if(a.doc.direction=="rtl"||le.level==1){var at=le.level==1==b<0,Rt=ue(x,at?1:-1);if(Rt!=null&&(at?Rt<=le.to&&Rt<=Ge.end:Rt>=le.from&&Rt>=Ge.begin)){var Ot=at?"before":"after";return new we(x.line,Rt,Ot)}}var fn=function(Vn,tr,_n){for(var or=function(Yr,mi){return mi?new we(x.line,ue(Yr,1),"before"):new we(x.line,Yr,"after")};Vn>=0&&Vn<E.length;Vn+=tr){var vr=E[Vn],hr=tr>0==(vr.level!=1),Lr=hr?_n.begin:ue(_n.end,-1);if(vr.from<=Lr&&Lr<vr.to||(Lr=hr?vr.from:ue(vr.to,-1),_n.begin<=Lr&&Lr<_n.end))return or(Lr,hr)}},In=fn(ne+b,b,Ge);if(In)return In;var Rn=b>0?Ge.end:ue(Ge.begin,-1);return Rn!=null&&!(b>0&&Rn==y.text.length)&&(In=fn(b>0?0:E.length-1,b,me(Rn)),In)?In:null}var ha={selectAll:ts,singleSelection:function(a){return a.setSelection(a.getCursor("anchor"),a.getCursor("head"),We)},killLine:function(a){return jo(a,function(y){if(y.empty()){var x=Bt(a.doc,y.head.line).text.length;return y.head.ch==x&&y.head.line<a.lastLine()?{from:y.head,to:we(y.head.line+1,0)}:{from:y.head,to:we(y.head.line,x)}}else return{from:y.from(),to:y.to()}})},deleteLine:function(a){return jo(a,function(y){return{from:we(y.from().line,0),to:Fe(a.doc,we(y.to().line+1,0))}})},delLineLeft:function(a){return jo(a,function(y){return{from:we(y.from().line,0),to:y.from()}})},delWrappedLineLeft:function(a){return jo(a,function(y){var x=a.charCoords(y.head,"div").top+5,b=a.coordsChar({left:0,top:x},"div");return{from:b,to:y.from()}})},delWrappedLineRight:function(a){return jo(a,function(y){var x=a.charCoords(y.head,"div").top+5,b=a.coordsChar({left:a.display.lineDiv.offsetWidth+100,top:x},"div");return{from:y.from(),to:b}})},undo:function(a){return a.undo()},redo:function(a){return a.redo()},undoSelection:function(a){return a.undoSelection()},redoSelection:function(a){return a.redoSelection()},goDocStart:function(a){return a.extendSelection(we(a.firstLine(),0))},goDocEnd:function(a){return a.extendSelection(we(a.lastLine()))},goLineStart:function(a){return a.extendSelectionsBy(function(y){return ys(a,y.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(a){return a.extendSelectionsBy(function(y){return bs(a,y.head)},{origin:"+move",bias:1})},goLineEnd:function(a){return a.extendSelectionsBy(function(y){return Ou(a,y.head.line)},{origin:"+move",bias:-1})},goLineRight:function(a){return a.extendSelectionsBy(function(y){var x=a.cursorCoords(y.head,"div").top+5;return a.coordsChar({left:a.display.lineDiv.offsetWidth+100,top:x},"div")},dt)},goLineLeft:function(a){return a.extendSelectionsBy(function(y){var x=a.cursorCoords(y.head,"div").top+5;return a.coordsChar({left:0,top:x},"div")},dt)},goLineLeftSmart:function(a){return a.extendSelectionsBy(function(y){var x=a.cursorCoords(y.head,"div").top+5,b=a.coordsChar({left:0,top:x},"div");return b.ch<a.getLine(b.line).search(/\S/)?bs(a,y.head):b},dt)},goLineUp:function(a){return a.moveV(-1,"line")},goLineDown:function(a){return a.moveV(1,"line")},goPageUp:function(a){return a.moveV(-1,"page")},goPageDown:function(a){return a.moveV(1,"page")},goCharLeft:function(a){return a.moveH(-1,"char")},goCharRight:function(a){return a.moveH(1,"char")},goColumnLeft:function(a){return a.moveH(-1,"column")},goColumnRight:function(a){return a.moveH(1,"column")},goWordLeft:function(a){return a.moveH(-1,"word")},goGroupRight:function(a){return a.moveH(1,"group")},goGroupLeft:function(a){return a.moveH(-1,"group")},goWordRight:function(a){return a.moveH(1,"word")},delCharBefore:function(a){return a.deleteH(-1,"codepoint")},delCharAfter:function(a){return a.deleteH(1,"char")},delWordBefore:function(a){return a.deleteH(-1,"word")},delWordAfter:function(a){return a.deleteH(1,"word")},delGroupBefore:function(a){return a.deleteH(-1,"group")},delGroupAfter:function(a){return a.deleteH(1,"group")},indentAuto:function(a){return a.indentSelection("smart")},indentMore:function(a){return a.indentSelection("add")},indentLess:function(a){return a.indentSelection("subtract")},insertTab:function(a){return a.replaceSelection(" ")},insertSoftTab:function(a){for(var y=[],x=a.listSelections(),b=a.options.tabSize,E=0;E<x.length;E++){var ne=x[E].from(),le=Ee(a.getLine(ne.line),ne.ch,b);y.push(Vt(b-le%b))}a.replaceSelections(y)},defaultTab:function(a){a.somethingSelected()?a.indentSelection("add"):a.execCommand("insertTab")},transposeChars:function(a){return Hi(a,function(){for(var y=a.listSelections(),x=[],b=0;b<y.length;b++)if(y[b].empty()){var E=y[b].head,ne=Bt(a.doc,E.line).text;if(ne){if(E.ch==ne.length&&(E=new we(E.line,E.ch-1)),E.ch>0)E=new we(E.line,E.ch+1),a.replaceRange(ne.charAt(E.ch-1)+ne.charAt(E.ch-2),we(E.line,E.ch-2),E,"+transpose");else if(E.line>a.doc.first){var le=Bt(a.doc,E.line-1).text;le&&(E=new we(E.line,1),a.replaceRange(ne.charAt(0)+a.doc.lineSeparator()+le.charAt(le.length-1),we(E.line-1,le.length-1),E,"+transpose"))}}x.push(new Vr(E,E))}a.setSelections(x)})},newlineAndIndent:function(a){return Hi(a,function(){for(var y=a.listSelections(),x=y.length-1;x>=0;x--)a.replaceRange(a.doc.lineSeparator(),y[x].anchor,y[x].head,"+input");y=a.listSelections();for(var b=0;b<y.length;b++)a.indentLine(y[b].from().line,null,!0);Ao(a)})},openLine:function(a){return a.replaceSelection(`
`,"start")},toggleOverwrite:function(a){return a.toggleOverwrite()}};function ys(a,y){var x=Bt(a.doc,y),b=en(x);return b!=x&&(y=Ae(b)),fl(!0,a,b,y,1)}function Ou(a,y){var x=Bt(a.doc,y),b=Bn(x);return b!=x&&(y=Ae(b)),fl(!0,a,x,y,-1)}function bs(a,y){var x=ys(a,y.line),b=Bt(a.doc,x.line),E=Xt(b,a.doc.direction);if(!E||E[0].level==0){var ne=Math.max(x.ch,b.text.search(/\S/)),le=y.line==x.line&&y.ch<=ne&&y.ch;return we(x.line,le?0:ne,x.sticky)}return x}function za(a,y,x){if(typeof y=="string"&&(y=ha[y],!y))return!1;a.display.input.ensurePolled();var b=a.display.shift,E=!1;try{a.isReadOnly()&&(a.state.suppressEdits=!0),x&&(a.display.shift=!1),E=y(a)!=Dt}finally{a.display.shift=b,a.state.suppressEdits=!1}return E}function ku(a,y,x){for(var b=0;b<a.state.keyMaps.length;b++){var E=Wo(y,a.state.keyMaps[b],x,a);if(E)return E}return a.options.extraKeys&&Wo(y,a.options.extraKeys,x,a)||Wo(y,a.options.keyMap,x,a)}var Du=new fe;function pa(a,y,x,b){var E=a.state.keySeq;if(E){if(ms(y))return"handled";if(/\'$/.test(y)?a.state.keySeq=null:Du.set(50,function(){a.state.keySeq==E&&(a.state.keySeq=null,a.display.input.reset())}),xs(a,E+" "+y,x,b))return!0}return xs(a,y,x,b)}function xs(a,y,x,b){var E=ku(a,y,b);return E=="multi"&&(a.state.keySeq=y),E=="handled"&&Tr(a,"keyHandled",a,y,x),(E=="handled"||E=="multi")&&(tt(x),Xa(a)),!!E}function Cs(a,y){var x=vs(y,!0);return x?y.shiftKey&&!a.state.keySeq?pa(a,"Shift-"+x,y,function(b){return za(a,b,!0)})||pa(a,x,y,function(b){if(typeof b=="string"?/^go[A-Z]/.test(b):b.motion)return za(a,b)}):pa(a,x,y,function(b){return za(a,b)}):!1}function Tu(a,y,x){return pa(a,"'"+x+"'",y,function(b){return za(a,b,!0)})}var hl=null;function Ss(a){var y=this;if(!(a.target&&a.target!=y.display.input.getField())&&(y.curOp.focus=ut(),!St(y,a))){xe&&Se<11&&a.keyCode==27&&(a.returnValue=!1);var x=a.keyCode;y.display.shift=x==16||a.shiftKey;var b=Cs(y,a);de&&(hl=b?x:null,!b&&x==88&&!gn&&(Ne?a.metaKey:a.ctrlKey)&&y.replaceSelection("",null,"cut")),z&&!Ne&&!b&&x==46&&a.shiftKey&&!a.ctrlKey&&document.execCommand&&document.execCommand("cut"),x==18&&!/\bCodeMirror-crosshair\b/.test(y.display.lineDiv.className)&&Lu(y)}}function Lu(a){var y=a.display.lineDiv;pe(y,"CodeMirror-crosshair");function x(b){(b.keyCode==18||!b.altKey)&&(_e(y,"CodeMirror-crosshair"),Zt(document,"keyup",x),Zt(document,"mouseover",x))}jt(document,"keyup",x),jt(document,"mouseover",x)}function ws(a){a.keyCode==16&&(this.doc.sel.shift=!1),St(this,a)}function Es(a){var y=this;if(!(a.target&&a.target!=y.display.input.getField())&&!(vi(y.display,a)||St(y,a)||a.ctrlKey&&!a.altKey||Ne&&a.metaKey)){var x=a.keyCode,b=a.charCode;if(de&&x==hl){hl=null,tt(a);return}if(!(de&&(!a.which||a.which<10)&&Cs(y,a))){var E=String.fromCharCode(b==null?x:b);E!="\b"&&(Tu(y,a,E)||y.display.input.onKeyPress(a))}}}var Bu=400,pl=function(a,y,x){this.time=a,this.pos=y,this.button=x};pl.prototype.compare=function(a,y,x){return this.time+Bu>a&&Re(y,this.pos)==0&&x==this.button};var ma,ga;function Au(a,y){var x=+new Date;return ga&&ga.compare(x,a,y)?(ma=ga=null,"triple"):ma&&ma.compare(x,a,y)?(ga=new pl(x,a,y),ma=null,"double"):(ma=new pl(x,a,y),ga=null,"single")}function Is(a){var y=this,x=y.display;if(!(St(y,a)||x.activeTouch&&x.input.supportsTouch())){if(x.input.ensurePolled(),x.shift=a.shiftKey,vi(x,a)){De||(x.scroller.draggable=!1,setTimeout(function(){return x.scroller.draggable=!0},100));return}if(!ml(y,a)){var b=So(y,a),E=ft(a),ne=b?Au(b,E):"single";window.focus(),E==1&&y.state.selectingText&&y.state.selectingText(a),!(b&&Nu(y,E,b,ne,a))&&(E==1?b?Fu(y,b,ne,a):Xe(a)==x.scroller&&tt(a):E==2?(b&&Ba(y.doc,b),setTimeout(function(){return x.input.focus()},20)):E==3&&(pt?y.display.input.onContextMenu(a):Pl(y)))}}}function Nu(a,y,x,b,E){var ne="Click";return b=="double"?ne="Double"+ne:b=="triple"&&(ne="Triple"+ne),ne=(y==1?"Left":y==2?"Middle":"Right")+ne,pa(a,gs(ne,E),E,function(le){if(typeof le=="string"&&(le=ha[le]),!le)return!1;var ue=!1;try{a.isReadOnly()&&(a.state.suppressEdits=!0),ue=le(a,x)!=Dt}finally{a.state.suppressEdits=!1}return ue})}function Ru(a,y,x){var b=a.getOption("configureMouse"),E=b?b(a,y,x):{};if(E.unit==null){var ne=yt?x.shiftKey&&x.metaKey:x.altKey;E.unit=ne?"rectangle":y=="single"?"char":y=="double"?"word":"line"}return(E.extend==null||a.doc.extend)&&(E.extend=a.doc.extend||x.shiftKey),E.addNew==null&&(E.addNew=Ne?x.metaKey:x.ctrlKey),E.moveOnDrag==null&&(E.moveOnDrag=!(Ne?x.altKey:x.ctrlKey)),E}function Fu(a,y,x,b){xe?setTimeout(Nt(Il,a),0):a.curOp.focus=ut();var E=Ru(a,x,b),ne=a.doc.sel,le;a.options.dragDrop&&Mt&&!a.isReadOnly()&&x=="single"&&(le=ne.contains(y))>-1&&(Re((le=ne.ranges[le]).from(),y)<0||y.xRel>0)&&(Re(le.to(),y)>0||y.xRel<0)?$u(a,b,y,E):zu(a,b,y,E)}function $u(a,y,x,b){var E=a.display,ne=!1,le=hi(a,function(me){De&&(E.scroller.draggable=!1),a.state.draggingText=!1,Zt(E.wrapper.ownerDocument,"mouseup",le),Zt(E.wrapper.ownerDocument,"mousemove",ue),Zt(E.scroller,"dragstart",ce),Zt(E.scroller,"drop",le),ne||(tt(me),b.addNew||Ba(a.doc,x,null,null,b.extend),De&&!He||xe&&Se==9?setTimeout(function(){E.wrapper.ownerDocument.body.focus({preventScroll:!0}),E.input.focus()},20):E.input.focus())}),ue=function(me){ne=ne||Math.abs(y.clientX-me.clientX)+Math.abs(y.clientY-me.clientY)>=10},ce=function(){return ne=!0};De&&(E.scroller.draggable=!0),a.state.draggingText=le,le.copy=!b.moveOnDrag,E.scroller.dragDrop&&E.scroller.dragDrop(),jt(E.wrapper.ownerDocument,"mouseup",le),jt(E.wrapper.ownerDocument,"mousemove",ue),jt(E.scroller,"dragstart",ce),jt(E.scroller,"drop",le),Pl(a),setTimeout(function(){return E.input.focus()},20)}function Ps(a,y,x){if(x=="char")return new Vr(y,y);if(x=="word")return a.findWordAt(y);if(x=="line")return new Vr(we(y.line,0),Fe(a.doc,we(y.line+1,0)));var b=x(a,y);return new Vr(b.from,b.to)}function zu(a,y,x,b){var E=a.display,ne=a.doc;tt(y);var le,ue,ce=ne.sel,me=ce.ranges;if(b.addNew&&!b.extend?(ue=ne.sel.contains(x),ue>-1?le=me[ue]:le=new Vr(x,x)):(le=ne.sel.primary(),ue=ne.sel.primIndex),b.unit=="rectangle")b.addNew||(le=new Vr(x,x)),x=So(a,y,!0,!0),ue=-1;else{var Ge=Ps(a,x,b.unit);b.extend?le=sl(le,Ge.anchor,Ge.head,b.extend):le=Ge}b.addNew?ue==-1?(ue=me.length,Si(ne,Qi(a,me.concat([le]),ue),{scroll:!1,origin:"*mouse"})):me.length>1&&me[ue].empty()&&b.unit=="char"&&!b.extend?(Si(ne,Qi(a,me.slice(0,ue).concat(me.slice(ue+1)),0),{scroll:!1,origin:"*mouse"}),ce=ne.sel):ul(ne,ue,le,ot):(ue=0,Si(ne,new Zi([le],0),ot),ce=ne.sel);var at=x;function Rt(_n){if(Re(at,_n)!=0)if(at=_n,b.unit=="rectangle"){for(var or=[],vr=a.options.tabSize,hr=Ee(Bt(ne,x.line).text,x.ch,vr),Lr=Ee(Bt(ne,_n.line).text,_n.ch,vr),Yr=Math.min(hr,Lr),mi=Math.max(hr,Lr),Qr=Math.min(x.line,_n.line),Wi=Math.min(a.lastLine(),Math.max(x.line,_n.line));Qr<=Wi;Qr++){var Li=Bt(ne,Qr).text,ai=$t(Li,Yr,vr);Yr==mi?or.push(new Vr(we(Qr,ai),we(Qr,ai))):Li.length>ai&&or.push(new Vr(we(Qr,ai),we(Qr,$t(Li,mi,vr))))}or.length||or.push(new Vr(x,x)),Si(ne,Qi(a,ce.ranges.slice(0,ue).concat(or),ue),{origin:"*mouse",scroll:!1}),a.scrollIntoView(_n)}else{var Bi=le,bi=Ps(a,_n,b.unit),di=Bi.anchor,li;Re(bi.anchor,di)>0?(li=bi.head,di=ct(Bi.from(),bi.anchor)):(li=bi.anchor,di=Je(Bi.to(),bi.head));var ei=ce.ranges.slice(0);ei[ue]=Hu(a,new Vr(Fe(ne,di),li)),Si(ne,Qi(a,ei,ue),ot)}}var Ot=E.wrapper.getBoundingClientRect(),fn=0;function In(_n){var or=++fn,vr=So(a,_n,!0,b.unit=="rectangle");if(vr)if(Re(vr,at)!=0){a.curOp.focus=ut(),Rt(vr);var hr=Ma(E,ne);(vr.line>=hr.to||vr.line<hr.from)&&setTimeout(hi(a,function(){fn==or&&In(_n)}),150)}else{var Lr=_n.clientY<Ot.top?-20:_n.clientY>Ot.bottom?20:0;Lr&&setTimeout(hi(a,function(){fn==or&&(E.scroller.scrollTop+=Lr,In(_n))}),50)}}function Rn(_n){a.state.selectingText=!1,fn=1/0,_n&&(tt(_n),E.input.focus()),Zt(E.wrapper.ownerDocument,"mousemove",Vn),Zt(E.wrapper.ownerDocument,"mouseup",tr),ne.history.lastSelOrigin=null}var Vn=hi(a,function(_n){_n.buttons===0||!ft(_n)?Rn(_n):In(_n)}),tr=hi(a,Rn);a.state.selectingText=tr,jt(E.wrapper.ownerDocument,"mousemove",Vn),jt(E.wrapper.ownerDocument,"mouseup",tr)}function Hu(a,y){var x=y.anchor,b=y.head,E=Bt(a.doc,x.line);if(Re(x,b)==0&&x.sticky==b.sticky)return y;var ne=Xt(E);if(!ne)return y;var le=It(ne,x.ch,x.sticky),ue=ne[le];if(ue.from!=x.ch&&ue.to!=x.ch)return y;var ce=le+(ue.from==x.ch==(ue.level!=1)?0:1);if(ce==0||ce==ne.length)return y;var me;if(b.line!=x.line)me=(b.line-x.line)*(a.doc.direction=="ltr"?1:-1)>0;else{var Ge=It(ne,b.ch,b.sticky),at=Ge-le||(b.ch-x.ch)*(ue.level==1?-1:1);Ge==ce-1||Ge==ce?me=at<0:me=at>0}var Rt=ne[ce+(me?-1:0)],Ot=me==(Rt.level==1),fn=Ot?Rt.from:Rt.to,In=Ot?"after":"before";return x.ch==fn&&x.sticky==In?y:new Vr(new we(x.line,fn,In),b)}function Ms(a,y,x,b){var E,ne;if(y.touches)E=y.touches[0].clientX,ne=y.touches[0].clientY;else try{E=y.clientX,ne=y.clientY}catch(Rt){return!1}if(E>=Math.floor(a.display.gutters.getBoundingClientRect().right))return!1;b&&tt(y);var le=a.display,ue=le.lineDiv.getBoundingClientRect();if(ne>ue.bottom||!Wt(a,x))return zt(y);ne-=ue.top-le.viewOffset;for(var ce=0;ce<a.display.gutterSpecs.length;++ce){var me=le.gutters.childNodes[ce];if(me&&me.getBoundingClientRect().right>=E){var Ge=et(a.doc,ne),at=a.display.gutterSpecs[ce];return ln(a,x,a,Ge,at.className,y),zt(y)}}}function ml(a,y){return Ms(a,y,"gutterClick",!0)}function Os(a,y){vi(a.display,y)||Wu(a,y)||St(a,y,"contextmenu")||pt||a.display.input.onContextMenu(y)}function Wu(a,y){return Wt(a,"gutterContextMenu")?Ms(a,y,"gutterContextMenu",!1):!1}function ks(a){a.display.wrapper.className=a.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+a.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Co(a)}var Zo={toString:function(){return"CodeMirror.Init"}},Ds={},Ha={};function ju(a){var y=a.optionHandlers;function x(b,E,ne,le){a.defaults[b]=E,ne&&(y[b]=le?function(ue,ce,me){me!=Zo&&ne(ue,ce,me)}:ne)}a.defineOption=x,a.Init=Zo,x("value","",function(b,E){return b.setValue(E)},!0),x("mode",null,function(b,E){b.doc.modeOption=E,ol(b)},!0),x("indentUnit",2,ol,!0),x("indentWithTabs",!1),x("smartIndent",!0),x("tabSize",4,function(b){ia(b),Co(b),Di(b)},!0),x("lineSeparator",null,function(b,E){if(b.doc.lineSep=E,!!E){var ne=[],le=b.doc.first;b.doc.iter(function(ce){for(var me=0;;){var Ge=ce.text.indexOf(E,me);if(Ge==-1)break;me=Ge+E.length,ne.push(we(le,Ge))}le++});for(var ue=ne.length-1;ue>=0;ue--)zo(b.doc,E,ne[ue],we(ne[ue].line,ne[ue].ch+E.length))}}),x("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(b,E,ne){b.state.specialChars=new RegExp(E.source+(E.test(" ")?"":"| "),"g"),ne!=Zo&&b.refresh()}),x("specialCharPlaceholder",Ei,function(b){return b.refresh()},!0),x("electricChars",!0),x("inputStyle",ke?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),x("spellcheck",!1,function(b,E){return b.getInputField().spellcheck=E},!0),x("autocorrect",!1,function(b,E){return b.getInputField().autocorrect=E},!0),x("autocapitalize",!1,function(b,E){return b.getInputField().autocapitalize=E},!0),x("rtlMoveVisually",!wt),x("wholeLineUpdateBefore",!0),x("theme","default",function(b){ks(b),ra(b)},!0),x("keyMap","default",function(b,E,ne){var le=$a(E),ue=ne!=Zo&&$a(ne);ue&&ue.detach&&ue.detach(b,le),le.attach&&le.attach(b,ue||null)}),x("extraKeys",null),x("configureMouse",null),x("lineWrapping",!1,Gu,!0),x("gutters",[],function(b,E){b.display.gutterSpecs=rl(E,b.options.lineNumbers),ra(b)},!0),x("fixedGutter",!0,function(b,E){b.display.gutters.style.left=E?_a(b.display)+"px":"0",b.refresh()},!0),x("coverGutterNextToScrollbar",!1,function(b){return No(b)},!0),x("scrollbarStyle","native",function(b){Ll(b),No(b),b.display.scrollbars.setScrollTop(b.doc.scrollTop),b.display.scrollbars.setScrollLeft(b.doc.scrollLeft)},!0),x("lineNumbers",!1,function(b,E){b.display.gutterSpecs=rl(b.options.gutters,E),ra(b)},!0),x("firstLineNumber",1,ra,!0),x("lineNumberFormatter",function(b){return b},ra,!0),x("showCursorWhenSelecting",!1,Jo,!0),x("resetSelectionOnContextMenu",!0),x("lineWiseCopyCut",!0),x("pasteLinesPerSelection",!0),x("selectionsMayTouch",!1),x("readOnly",!1,function(b,E){E=="nocursor"&&(Bo(b),b.display.input.blur()),b.display.input.readOnlyChanged(E)}),x("screenReaderLabel",null,function(b,E){E=E===""?null:E,b.display.input.screenReaderLabelChanged(E)}),x("disableInput",!1,function(b,E){E||b.display.input.reset()},!0),x("dragDrop",!0,Zu),x("allowDropFileTypes",null),x("cursorBlinkRate",530),x("cursorScrollMargin",0),x("cursorHeight",1,Jo,!0),x("singleCursorHeightPerLine",!0,Jo,!0),x("workTime",100),x("workDelay",100),x("flattenSpans",!0,ia,!0),x("addModeClass",!1,ia,!0),x("pollInterval",100),x("undoDepth",200,function(b,E){return b.doc.history.undoDepth=E}),x("historyEventDelay",1250),x("viewportMargin",10,function(b){return b.refresh()},!0),x("maxHighlightLength",1e4,ia,!0),x("moveInputWithCursor",!0,function(b,E){E||b.display.input.resetPosition()}),x("tabindex",null,function(b,E){return b.display.input.getField().tabIndex=E||""}),x("autofocus",null),x("direction","ltr",function(b,E){return b.doc.setDirection(E)},!0),x("phrases",null)}function Zu(a,y,x){var b=x&&x!=Zo;if(!y!=!b){var E=a.display.dragFunctions,ne=y?jt:Zt;ne(a.display.scroller,"dragstart",E.start),ne(a.display.scroller,"dragenter",E.enter),ne(a.display.scroller,"dragover",E.over),ne(a.display.scroller,"dragleave",E.leave),ne(a.display.scroller,"drop",E.drop)}}function Gu(a){a.options.lineWrapping?(pe(a.display.wrapper,"CodeMirror-wrap"),a.display.sizer.style.minWidth="",a.display.sizerWidth=null):(_e(a.display.wrapper,"CodeMirror-wrap"),Pr(a)),Ka(a),Di(a),Co(a),setTimeout(function(){return No(a)},100)}function Jr(a,y){var x=this;if(!(this instanceof Jr))return new Jr(a,y);this.options=y=y?on(y):{},on(Ds,y,!1);var b=y.value;typeof b=="string"?b=new Ti(b,y.mode,null,y.lineSeparator,y.direction):y.mode&&(b.modeOption=y.mode),this.doc=b;var E=new Jr.inputStyles[y.inputStyle](this),ne=this.display=new ru(a,b,E,y);ne.wrapper.CodeMirror=this,ks(this),y.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Ll(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 fe,keySeq:null,specialChars:null},y.autofocus&&!ke&&ne.input.focus(),xe&&Se<11&&setTimeout(function(){return x.display.input.reset(!0)},20),Uu(this),Su(),Po(this),this.curOp.forceUpdate=!0,jl(this,b),y.autofocus&&!ke||this.hasFocus()?setTimeout(function(){x.hasFocus()&&!x.state.focused&&Ya(x)},20):Bo(this);for(var le in Ha)Ha.hasOwnProperty(le)&&Ha[le](this,y[le],Zo);Nl(this),y.finishInit&&y.finishInit(this);for(var ue=0;ue<gl.length;++ue)gl[ue](this);Mo(this),De&&y.lineWrapping&&getComputedStyle(ne.lineDiv).textRendering=="optimizelegibility"&&(ne.lineDiv.style.textRendering="auto")}Jr.defaults=Ds,Jr.optionHandlers=Ha;function Uu(a){var y=a.display;jt(y.scroller,"mousedown",hi(a,Is)),xe&&Se<11?jt(y.scroller,"dblclick",hi(a,function(ce){if(!St(a,ce)){var me=So(a,ce);if(!(!me||ml(a,ce)||vi(a.display,ce))){tt(ce);var Ge=a.findWordAt(me);Ba(a.doc,Ge.anchor,Ge.head)}}})):jt(y.scroller,"dblclick",function(ce){return St(a,ce)||tt(ce)}),jt(y.scroller,"contextmenu",function(ce){return Os(a,ce)}),jt(y.input.getField(),"contextmenu",function(ce){y.scroller.contains(ce.target)||Os(a,ce)});var x,b={end:0};function E(){y.activeTouch&&(x=setTimeout(function(){return y.activeTouch=null},1e3),b=y.activeTouch,b.end=+new Date)}function ne(ce){if(ce.touches.length!=1)return!1;var me=ce.touches[0];return me.radiusX<=1&&me.radiusY<=1}function le(ce,me){if(me.left==null)return!0;var Ge=me.left-ce.left,at=me.top-ce.top;return Ge*Ge+at*at>20*20}jt(y.scroller,"touchstart",function(ce){if(!St(a,ce)&&!ne(ce)&&!ml(a,ce)){y.input.ensurePolled(),clearTimeout(x);var me=+new Date;y.activeTouch={start:me,moved:!1,prev:me-b.end<=300?b:null},ce.touches.length==1&&(y.activeTouch.left=ce.touches[0].pageX,y.activeTouch.top=ce.touches[0].pageY)}}),jt(y.scroller,"touchmove",function(){y.activeTouch&&(y.activeTouch.moved=!0)}),jt(y.scroller,"touchend",function(ce){var me=y.activeTouch;if(me&&!vi(y,ce)&&me.left!=null&&!me.moved&&new Date-me.start<300){var Ge=a.coordsChar(y.activeTouch,"page"),at;!me.prev||le(me,me.prev)?at=new Vr(Ge,Ge):!me.prev.prev||le(me,me.prev.prev)?at=a.findWordAt(Ge):at=new Vr(we(Ge.line,0),Fe(a.doc,we(Ge.line+1,0))),a.setSelection(at.anchor,at.head),a.focus(),tt(ce)}E()}),jt(y.scroller,"touchcancel",E),jt(y.scroller,"scroll",function(){y.scroller.clientHeight&&(qo(a,y.scroller.scrollTop),Eo(a,y.scroller.scrollLeft,!0),ln(a,"scroll",a))}),jt(y.scroller,"mousewheel",function(ce){return $l(a,ce)}),jt(y.scroller,"DOMMouseScroll",function(ce){return $l(a,ce)}),jt(y.wrapper,"scroll",function(){return y.wrapper.scrollTop=y.wrapper.scrollLeft=0}),y.dragFunctions={enter:function(ce){St(a,ce)||Ie(ce)},over:function(ce){St(a,ce)||(Cu(a,ce),Ie(ce))},start:function(ce){return xu(a,ce)},drop:hi(a,bu),leave:function(ce){St(a,ce)||fs(a)}};var ue=y.input.getField();jt(ue,"keyup",function(ce){return ws.call(a,ce)}),jt(ue,"keydown",hi(a,Ss)),jt(ue,"keypress",hi(a,Es)),jt(ue,"focus",function(ce){return Ya(a,ce)}),jt(ue,"blur",function(ce){return Bo(a,ce)})}var gl=[];Jr.defineInitHook=function(a){return gl.push(a)};function va(a,y,x,b){var E=a.doc,ne;x==null&&(x="add"),x=="smart"&&(E.mode.indent?ne=Ln(a,y).state:x="prev");var le=a.options.tabSize,ue=Bt(E,y),ce=Ee(ue.text,null,le);ue.stateAfter&&(ue.stateAfter=null);var me=ue.text.match(/^\s*/)[0],Ge;if(!b&&!/\S/.test(ue.text))Ge=0,x="not";else if(x=="smart"&&(Ge=E.mode.indent(ne,ue.text.slice(me.length),ue.text),Ge==Dt||Ge>150)){if(!b)return;x="prev"}x=="prev"?y>E.first?Ge=Ee(Bt(E,y-1).text,null,le):Ge=0:x=="add"?Ge=ce+a.options.indentUnit:x=="subtract"?Ge=ce-a.options.indentUnit:typeof x=="number"&&(Ge=ce+x),Ge=Math.max(0,Ge);var at="",Rt=0;if(a.options.indentWithTabs)for(var Ot=Math.floor(Ge/le);Ot;--Ot)Rt+=le,at+=" ";if(Rt<Ge&&(at+=Vt(Ge-Rt)),at!=me)return zo(E,at,we(y,0),we(y,me.length),"+input"),ue.stateAfter=null,!0;for(var fn=0;fn<E.sel.ranges.length;fn++){var In=E.sel.ranges[fn];if(In.head.line==y&&In.head.ch<me.length){var Rn=we(y,me.length);ul(E,fn,new Vr(Rn,Rn));break}}}var qi=null;function Wa(a){qi=a}function vl(a,y,x,b,E){var ne=a.doc;a.display.shift=!1,b||(b=ne.sel);var le=+new Date-200,ue=E=="paste"||a.state.pasteIncoming>le,ce=sn(y),me=null;if(ue&&b.ranges.length>1)if(qi&&qi.text.join(`
`)==y){if(b.ranges.length%qi.text.length==0){me=[];for(var Ge=0;Ge<qi.text.length;Ge++)me.push(ne.splitLines(qi.text[Ge]))}}else ce.length==b.ranges.length&&a.options.pasteLinesPerSelection&&(me=Ht(ce,function(Vn){return[Vn]}));for(var at=a.curOp.updateInput,Rt=b.ranges.length-1;Rt>=0;Rt--){var Ot=b.ranges[Rt],fn=Ot.from(),In=Ot.to();Ot.empty()&&(x&&x>0?fn=we(fn.line,fn.ch-x):a.state.overwrite&&!ue?In=we(In.line,Math.min(Bt(ne,In.line).text.length,In.ch+rt(ce).length)):ue&&qi&&qi.lineWise&&qi.text.join(`
`)==ce.join(`
`)&&(fn=In=we(fn.line,0)));var Rn={from:fn,to:In,text:me?me[Rt%me.length]:ce,origin:E||(ue?"paste":a.state.cutIncoming>le?"cut":"+input")};$o(a.doc,Rn),Tr(a,"inputRead",a,Rn)}y&&!ue&&Ls(a,y),Ao(a),a.curOp.updateInput<2&&(a.curOp.updateInput=at),a.curOp.typing=!0,a.state.pasteIncoming=a.state.cutIncoming=-1}function Ts(a,y){var x=a.clipboardData&&a.clipboardData.getData("Text");if(x)return a.preventDefault(),!y.isReadOnly()&&!y.options.disableInput&&Hi(y,function(){return vl(y,x,0,null,"paste")}),!0}function Ls(a,y){if(!(!a.options.electricChars||!a.options.smartIndent))for(var x=a.doc.sel,b=x.ranges.length-1;b>=0;b--){var E=x.ranges[b];if(!(E.head.ch>100||b&&x.ranges[b-1].head.line==E.head.line)){var ne=a.getModeAt(E.head),le=!1;if(ne.electricChars){for(var ue=0;ue<ne.electricChars.length;ue++)if(y.indexOf(ne.electricChars.charAt(ue))>-1){le=va(a,E.head.line,"smart");break}}else ne.electricInput&&ne.electricInput.test(Bt(a.doc,E.head.line).text.slice(0,E.head.ch))&&(le=va(a,E.head.line,"smart"));le&&Tr(a,"electricInput",a,E.head.line)}}}function Bs(a){for(var y=[],x=[],b=0;b<a.doc.sel.ranges.length;b++){var E=a.doc.sel.ranges[b].head.line,ne={anchor:we(E,0),head:we(E+1,0)};x.push(ne),y.push(a.getRange(ne.anchor,ne.head))}return{text:y,ranges:x}}function As(a,y,x,b){a.setAttribute("autocorrect",x?"":"off"),a.setAttribute("autocapitalize",b?"":"off"),a.setAttribute("spellcheck",!!y)}function Ns(){var a=it("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),y=it("div",[a],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return De?a.style.width="1000px":a.setAttribute("wrap","off"),je&&(a.style.border="1px solid black"),As(a),y}function Vu(a){var y=a.optionHandlers,x=a.helpers={};a.prototype={constructor:a,focus:function(){window.focus(),this.display.input.focus()},setOption:function(b,E){var ne=this.options,le=ne[b];ne[b]==E&&b!="mode"||(ne[b]=E,y.hasOwnProperty(b)&&hi(this,y[b])(this,E,le),ln(this,"optionChange",this,b))},getOption:function(b){return this.options[b]},getDoc:function(){return this.doc},addKeyMap:function(b,E){this.state.keyMaps[E?"push":"unshift"]($a(b))},removeKeyMap:function(b){for(var E=this.state.keyMaps,ne=0;ne<E.length;++ne)if(E[ne]==b||E[ne].name==b)return E.splice(ne,1),!0},addOverlay:Pi(function(b,E){var ne=b.token?b:a.getMode(this.options,b);if(ne.startState)throw new Error("Overlays may not be stateful.");st(this.state.overlays,{mode:ne,modeSpec:b,opaque:E&&E.opaque,priority:E&&E.priority||0},function(le){return le.priority}),this.state.modeGen++,Di(this)}),removeOverlay:Pi(function(b){for(var E=this.state.overlays,ne=0;ne<E.length;++ne){var le=E[ne].modeSpec;if(le==b||typeof b=="string"&&le.name==b){E.splice(ne,1),this.state.modeGen++,Di(this);return}}}),indentLine:Pi(function(b,E,ne){typeof E!="string"&&typeof E!="number"&&(E==null?E=this.options.smartIndent?"smart":"prev":E=E?"add":"subtract"),Ce(this.doc,b)&&va(this,b,E,ne)}),indentSelection:Pi(function(b){for(var E=this.doc.sel.ranges,ne=-1,le=0;le<E.length;le++){var ue=E[le];if(ue.empty())ue.head.line>ne&&(va(this,ue.head.line,b,!0),ne=ue.head.line,le==this.doc.sel.primIndex&&Ao(this));else{var ce=ue.from(),me=ue.to(),Ge=Math.max(ne,ce.line);ne=Math.min(this.lastLine(),me.line-(me.ch?0:1))+1;for(var at=Ge;at<ne;++at)va(this,at,b);var Rt=this.doc.sel.ranges;ce.ch==0&&E.length==Rt.length&&Rt[le].from().ch>0&&ul(this.doc,le,new Vr(ce,Rt[le].to()),We)}}}),getTokenAt:function(b,E){return Fn(this,b,E)},getLineTokens:function(b,E){return Fn(this,we(b),E,!0)},getTokenTypeAt:function(b){b=Fe(this.doc,b);var E=kn(this,Bt(this.doc,b.line)),ne=0,le=(E.length-1)/2,ue=b.ch,ce;if(ue==0)ce=E[2];else for(;;){var me=ne+le>>1;if((me?E[me*2-1]:0)>=ue)le=me;else if(E[me*2+1]<ue)ne=me+1;else{ce=E[me*2+2];break}}var Ge=ce?ce.indexOf("overlay "):-1;return Ge<0?ce:Ge==0?null:ce.slice(0,Ge-1)},getModeAt:function(b){var E=this.doc.mode;return E.innerMode?a.innerMode(E,this.getTokenAt(b).state).mode:E},getHelper:function(b,E){return this.getHelpers(b,E)[0]},getHelpers:function(b,E){var ne=[];if(!x.hasOwnProperty(E))return ne;var le=x[E],ue=this.getModeAt(b);if(typeof ue[E]=="string")le[ue[E]]&&ne.push(le[ue[E]]);else if(ue[E])for(var ce=0;ce<ue[E].length;ce++){var me=le[ue[E][ce]];me&&ne.push(me)}else ue.helperType&&le[ue.helperType]?ne.push(le[ue.helperType]):le[ue.name]&&ne.push(le[ue.name]);for(var Ge=0;Ge<le._global.length;Ge++){var at=le._global[Ge];at.pred(ue,this)&&Et(ne,at.val)==-1&&ne.push(at.val)}return ne},getStateAfter:function(b,E){var ne=this.doc;return b=Qe(ne,b==null?ne.first+ne.size-1:b),Ln(this,b+1,E).state},cursorCoords:function(b,E){var ne,le=this.doc.sel.primary();return b==null?ne=le.head:typeof b=="object"?ne=Fe(this.doc,b):ne=b?le.from():le.to(),ki(this,ne,E||"page")},charCoords:function(b,E){return Lo(this,Fe(this.doc,b),E||"page")},coordsChar:function(b,E){return b=wa(this,b,E||"page"),yi(this,b.left,b.top)},lineAtHeight:function(b,E){return b=wa(this,{top:b,left:0},E||"page").top,et(this.doc,b+this.display.viewOffset)},heightAtLine:function(b,E,ne){var le=!1,ue;if(typeof b=="number"){var ce=this.doc.first+this.doc.size-1;b<this.doc.first?b=this.doc.first:b>ce&&(b=ce,le=!0),ue=Bt(this.doc,b)}else ue=b;return To(this,ue,{top:0,left:0},E||"page",ne||le).top+(le?this.doc.height-cr(ue):0)},defaultTextHeight:function(){return zi(this.display)},defaultCharWidth:function(){return Ji(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(b,E,ne,le,ue){var ce=this.display;b=ki(this,Fe(this.doc,b));var me=b.bottom,Ge=b.left;if(E.style.position="absolute",E.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(E),ce.sizer.appendChild(E),le=="over")me=b.top;else if(le=="above"||le=="near"){var at=Math.max(ce.wrapper.clientHeight,this.doc.height),Rt=Math.max(ce.sizer.clientWidth,ce.lineSpace.clientWidth);(le=="above"||b.bottom+E.offsetHeight>at)&&b.top>E.offsetHeight?me=b.top-E.offsetHeight:b.bottom+E.offsetHeight<=at&&(me=b.bottom),Ge+E.offsetWidth>Rt&&(Ge=Rt-E.offsetWidth)}E.style.top=me+"px",E.style.left=E.style.right="",ue=="right"?(Ge=ce.sizer.clientWidth-E.offsetWidth,E.style.right="0px"):(ue=="left"?Ge=0:ue=="middle"&&(Ge=(ce.sizer.clientWidth-E.offsetWidth)/2),E.style.left=Ge+"px"),ne&&Zs(this,{left:Ge,top:me,right:Ge+E.offsetWidth,bottom:me+E.offsetHeight})},triggerOnKeyDown:Pi(Ss),triggerOnKeyPress:Pi(Es),triggerOnKeyUp:ws,triggerOnMouseDown:Pi(Is),execCommand:function(b){if(ha.hasOwnProperty(b))return ha[b].call(null,this)},triggerElectric:Pi(function(b){Ls(this,b)}),findPosH:function(b,E,ne,le){var ue=1;E<0&&(ue=-1,E=-E);for(var ce=Fe(this.doc,b),me=0;me<E&&(ce=yl(this.doc,ce,ue,ne,le),!ce.hitSide);++me);return ce},moveH:Pi(function(b,E){var ne=this;this.extendSelectionsBy(function(le){return ne.display.shift||ne.doc.extend||le.empty()?yl(ne.doc,le.head,b,E,ne.options.rtlMoveVisually):b<0?le.from():le.to()},dt)}),deleteH:Pi(function(b,E){var ne=this.doc.sel,le=this.doc;ne.somethingSelected()?le.replaceSelection("",null,"+delete"):jo(this,function(ue){var ce=yl(le,ue.head,b,E,!1);return b<0?{from:ce,to:ue.head}:{from:ue.head,to:ce}})}),findPosV:function(b,E,ne,le){var ue=1,ce=le;E<0&&(ue=-1,E=-E);for(var me=Fe(this.doc,b),Ge=0;Ge<E;++Ge){var at=ki(this,me,"div");if(ce==null?ce=at.left:at.left=ce,me=Rs(this,at,ue,ne),me.hitSide)break}return me},moveV:Pi(function(b,E){var ne=this,le=this.doc,ue=[],ce=!this.display.shift&&!le.extend&&le.sel.somethingSelected();if(le.extendSelectionsBy(function(Ge){if(ce)return b<0?Ge.from():Ge.to();var at=ki(ne,Ge.head,"div");Ge.goalColumn!=null&&(at.left=Ge.goalColumn),ue.push(at.left);var Rt=Rs(ne,at,b,E);return E=="page"&&Ge==le.sel.primary()&&Qa(ne,Lo(ne,Rt,"div").top-at.top),Rt},dt),ue.length)for(var me=0;me<le.sel.ranges.length;me++)le.sel.ranges[me].goalColumn=ue[me]}),findWordAt:function(b){var E=this.doc,ne=Bt(E,b.line).text,le=b.ch,ue=b.ch;if(ne){var ce=this.getHelper(b,"wordChars");(b.sticky=="before"||ue==ne.length)&&le?--le:++ue;for(var me=ne.charAt(le),Ge=se(me,ce)?function(at){return se(at,ce)}:/\s/.test(me)?function(at){return/\s/.test(at)}:function(at){return!/\s/.test(at)&&!se(at)};le>0&&Ge(ne.charAt(le-1));)--le;for(;ue<ne.length&&Ge(ne.charAt(ue));)++ue}return new Vr(we(b.line,le),we(b.line,ue))},toggleOverwrite:function(b){b!=null&&b==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?pe(this.display.cursorDiv,"CodeMirror-overwrite"):_e(this.display.cursorDiv,"CodeMirror-overwrite"),ln(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==ut()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Pi(function(b,E){Qo(this,b,E)}),getScrollInfo:function(){var b=this.display.scroller;return{left:b.scrollLeft,top:b.scrollTop,height:b.scrollHeight-Fi(this)-this.display.barHeight,width:b.scrollWidth-Fi(this)-this.display.barWidth,clientHeight:io(this),clientWidth:to(this)}},scrollIntoView:Pi(function(b,E){b==null?(b={from:this.doc.sel.primary().head,to:null},E==null&&(E=this.options.cursorScrollMargin)):typeof b=="number"?b={from:we(b,0),to:null}:b.from==null&&(b={from:b,to:null}),b.to||(b.to=b.from),b.margin=E||0,b.from.line!=null?Gs(this,b):Ol(this,b.from,b.to,b.margin)}),setSize:Pi(function(b,E){var ne=this,le=function(ce){return typeof ce=="number"||/^\d+$/.test(String(ce))?ce+"px":ce};b!=null&&(this.display.wrapper.style.width=le(b)),E!=null&&(this.display.wrapper.style.height=le(E)),this.options.lineWrapping&&Ko(this);var ue=this.display.viewFrom;this.doc.iter(ue,this.display.viewTo,function(ce){if(ce.widgets){for(var me=0;me<ce.widgets.length;me++)if(ce.widgets[me].noHScroll){fo(ne,ue,"widget");break}}++ue}),this.curOp.forceUpdate=!0,ln(this,"refresh",this)}),operation:function(b){return Hi(this,b)},startOperation:function(){return Po(this)},endOperation:function(){return Mo(this)},refresh:Pi(function(){var b=this.display.cachedTextHeight;Di(this),this.curOp.forceUpdate=!0,Co(this),Qo(this,this.doc.scrollLeft,this.doc.scrollTop),tl(this.display),(b==null||Math.abs(b-zi(this.display))>.5||this.options.lineWrapping)&&Ka(this),ln(this,"refresh",this)}),swapDoc:Pi(function(b){var E=this.doc;return E.cm=null,this.state.selectingText&&this.state.selectingText(),jl(this,b),Co(this),this.display.input.reset(),Qo(this,b.scrollLeft,b.scrollTop),this.curOp.forceScroll=!0,Tr(this,"swapDoc",this,E),E}),phrase:function(b){var E=this.options.phrases;return E&&Object.prototype.hasOwnProperty.call(E,b)?E[b]:b},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Oe(a),a.registerHelper=function(b,E,ne){x.hasOwnProperty(b)||(x[b]=a[b]={_global:[]}),x[b][E]=ne},a.registerGlobalHelper=function(b,E,ne,le){a.registerHelper(b,E,le),x[b]._global.push({pred:ne,val:le})}}function yl(a,y,x,b,E){var ne=y,le=x,ue=Bt(a,y.line),ce=E&&a.direction=="rtl"?-x:x;function me(){var tr=y.line+ce;return tr<a.first||tr>=a.first+a.size?!1:(y=new we(tr,y.ch,y.sticky),ue=Bt(a,tr))}function Ge(tr){var _n;if(b=="codepoint"){var or=ue.text.charCodeAt(y.ch+(b>0?0:-1));isNaN(or)?_n=null:_n=new we(y.line,Math.max(0,Math.min(ue.text.length,y.ch+x*(or>=55296&&or<56320?2:1))),-x)}else E?_n=Mu(a.cm,ue,y,x):_n=dl(ue,y,x);if(_n==null)if(!tr&&me())y=fl(E,a.cm,ue,y.line,ce);else return!1;else y=_n;return!0}if(b=="char"||b=="codepoint")Ge();else if(b=="column")Ge(!0);else if(b=="word"||b=="group")for(var at=null,Rt=b=="group",Ot=a.cm&&a.cm.getHelper(y,"wordChars"),fn=!0;!(x<0&&!Ge(!fn));fn=!1){var In=ue.text.charAt(y.ch)||`
`,Rn=se(In,Ot)?"w":Rt&&In==`
`?"n":!Rt||/\s/.test(In)?null:"p";if(Rt&&!fn&&!Rn&&(Rn="s"),at&&at!=Rn){x<0&&(x=1,Ge(),y.sticky="after");break}if(Rn&&(at=Rn),x>0&&!Ge(!fn))break}var Vn=Na(a,y,ne,le,!0);return ve(ne,Vn)&&(Vn.hitSide=!0),Vn}function Rs(a,y,x,b){var E=a.doc,ne=y.left,le;if(b=="page"){var ue=Math.min(a.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),ce=Math.max(ue-.5*zi(a.display),3);le=(x>0?y.bottom:y.top)+x*ce}else b=="line"&&(le=x>0?y.bottom+3:y.top-3);for(var me;me=yi(a,ne,le),!!me.outside;){if(x<0?le<=0:le>=E.height){me.hitSide=!0;break}le+=x*5}return me}var _r=function(a){this.cm=a,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new fe,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};_r.prototype.init=function(a){var y=this,x=this,b=x.cm,E=x.div=a.lineDiv;As(E,b.options.spellcheck,b.options.autocorrect,b.options.autocapitalize);function ne(ue){for(var ce=ue.target;ce;ce=ce.parentNode){if(ce==E)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(ce.className))break}return!1}jt(E,"paste",function(ue){!ne(ue)||St(b,ue)||Ts(ue,b)||Se<=11&&setTimeout(hi(b,function(){return y.updateFromDOM()}),20)}),jt(E,"compositionstart",function(ue){y.composing={data:ue.data,done:!1}}),jt(E,"compositionupdate",function(ue){y.composing||(y.composing={data:ue.data,done:!1})}),jt(E,"compositionend",function(ue){y.composing&&(ue.data!=y.composing.data&&y.readFromDOMSoon(),y.composing.done=!0)}),jt(E,"touchstart",function(){return x.forceCompositionEnd()}),jt(E,"input",function(){y.composing||y.readFromDOMSoon()});function le(ue){if(!(!ne(ue)||St(b,ue))){if(b.somethingSelected())Wa({lineWise:!1,text:b.getSelections()}),ue.type=="cut"&&b.replaceSelection("",null,"cut");else if(b.options.lineWiseCopyCut){var ce=Bs(b);Wa({lineWise:!0,text:ce.text}),ue.type=="cut"&&b.operation(function(){b.setSelections(ce.ranges,0,We),b.replaceSelection("",null,"cut")})}else return;if(ue.clipboardData){ue.clipboardData.clearData();var me=qi.text.join(`
`);if(ue.clipboardData.setData("Text",me),ue.clipboardData.getData("Text")==me){ue.preventDefault();return}}var Ge=Ns(),at=Ge.firstChild;b.display.lineSpace.insertBefore(Ge,b.display.lineSpace.firstChild),at.value=qi.text.join(`
`);var Rt=document.activeElement;Be(at),setTimeout(function(){b.display.lineSpace.removeChild(Ge),Rt.focus(),Rt==E&&x.showPrimarySelection()},50)}}jt(E,"copy",le),jt(E,"cut",le)},_r.prototype.screenReaderLabelChanged=function(a){a?this.div.setAttribute("aria-label",a):this.div.removeAttribute("aria-label")},_r.prototype.prepareSelection=function(){var a=wl(this.cm,!1);return a.focus=document.activeElement==this.div,a},_r.prototype.showSelection=function(a,y){!a||!this.cm.display.view.length||((a.focus||y)&&this.showPrimarySelection(),this.showMultipleSelections(a))},_r.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},_r.prototype.showPrimarySelection=function(){var a=this.getSelection(),y=this.cm,x=y.doc.sel.primary(),b=x.from(),E=x.to();if(y.display.viewTo==y.display.viewFrom||b.line>=y.display.viewTo||E.line<y.display.viewFrom){a.removeAllRanges();return}var ne=ja(y,a.anchorNode,a.anchorOffset),le=ja(y,a.focusNode,a.focusOffset);if(!(ne&&!ne.bad&&le&&!le.bad&&Re(ct(ne,le),b)==0&&Re(Je(ne,le),E)==0)){var ue=y.display.view,ce=b.line>=y.display.viewFrom&&Fs(y,b)||{node:ue[0].measure.map[2],offset:0},me=E.line<y.display.viewTo&&Fs(y,E);if(!me){var Ge=ue[ue.length-1].measure,at=Ge.maps?Ge.maps[Ge.maps.length-1]:Ge.map;me={node:at[at.length-1],offset:at[at.length-2]-at[at.length-3]}}if(!ce||!me){a.removeAllRanges();return}var Rt=a.rangeCount&&a.getRangeAt(0),Ot;try{Ot=ze(ce.node,ce.offset,me.offset,me.node)}catch(fn){}Ot&&(!z&&y.state.focused?(a.collapse(ce.node,ce.offset),Ot.collapsed||(a.removeAllRanges(),a.addRange(Ot))):(a.removeAllRanges(),a.addRange(Ot)),Rt&&a.anchorNode==null?a.addRange(Rt):z&&this.startGracePeriod()),this.rememberSelection()}},_r.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)},_r.prototype.showMultipleSelections=function(a){nt(this.cm.display.cursorDiv,a.cursors),nt(this.cm.display.selectionDiv,a.selection)},_r.prototype.rememberSelection=function(){var a=this.getSelection();this.lastAnchorNode=a.anchorNode,this.lastAnchorOffset=a.anchorOffset,this.lastFocusNode=a.focusNode,this.lastFocusOffset=a.focusOffset},_r.prototype.selectionInEditor=function(){var a=this.getSelection();if(!a.rangeCount)return!1;var y=a.getRangeAt(0).commonAncestorContainer;return gt(this.div,y)},_r.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},_r.prototype.blur=function(){this.div.blur()},_r.prototype.getField=function(){return this.div},_r.prototype.supportsTouch=function(){return!0},_r.prototype.receivedFocus=function(){var a=this;this.selectionInEditor()?this.pollSelection():Hi(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)},_r.prototype.selectionChanged=function(){var a=this.getSelection();return a.anchorNode!=this.lastAnchorNode||a.anchorOffset!=this.lastAnchorOffset||a.focusNode!=this.lastFocusNode||a.focusOffset!=this.lastFocusOffset},_r.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var a=this.getSelection(),y=this.cm;if(Te&&Pe&&this.cm.display.gutterSpecs.length&&_u(a.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var x=ja(y,a.anchorNode,a.anchorOffset),b=ja(y,a.focusNode,a.focusOffset);x&&b&&Hi(y,function(){Si(y.doc,po(x,b),We),(x.bad||b.bad)&&(y.curOp.selectionChanged=!0)})}}},_r.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var a=this.cm,y=a.display,x=a.doc.sel.primary(),b=x.from(),E=x.to();if(b.ch==0&&b.line>a.firstLine()&&(b=we(b.line-1,Bt(a.doc,b.line-1).length)),E.ch==Bt(a.doc,E.line).text.length&&E.line<a.lastLine()&&(E=we(E.line+1,0)),b.line<y.viewFrom||E.line>y.viewTo-1)return!1;var ne,le,ue;b.line==y.viewFrom||(ne=wo(a,b.line))==0?(le=Ae(y.view[0].line),ue=y.view[0].node):(le=Ae(y.view[ne].line),ue=y.view[ne-1].node.nextSibling);var ce=wo(a,E.line),me,Ge;if(ce==y.view.length-1?(me=y.viewTo-1,Ge=y.lineDiv.lastChild):(me=Ae(y.view[ce+1].line)-1,Ge=y.view[ce+1].node.previousSibling),!ue)return!1;for(var at=a.doc.splitLines(Ku(a,ue,Ge,le,me)),Rt=nn(a.doc,we(le,0),we(me,Bt(a.doc,me).text.length));at.length>1&&Rt.length>1;)if(rt(at)==rt(Rt))at.pop(),Rt.pop(),me--;else if(at[0]==Rt[0])at.shift(),Rt.shift(),le++;else break;for(var Ot=0,fn=0,In=at[0],Rn=Rt[0],Vn=Math.min(In.length,Rn.length);Ot<Vn&&In.charCodeAt(Ot)==Rn.charCodeAt(Ot);)++Ot;for(var tr=rt(at),_n=rt(Rt),or=Math.min(tr.length-(at.length==1?Ot:0),_n.length-(Rt.length==1?Ot:0));fn<or&&tr.charCodeAt(tr.length-fn-1)==_n.charCodeAt(_n.length-fn-1);)++fn;if(at.length==1&&Rt.length==1&&le==b.line)for(;Ot&&Ot>b.ch&&tr.charCodeAt(tr.length-fn-1)==_n.charCodeAt(_n.length-fn-1);)Ot--,fn++;at[at.length-1]=tr.slice(0,tr.length-fn).replace(/^\u200b+/,""),at[0]=at[0].slice(Ot).replace(/\u200b+$/,"");var vr=we(le,Ot),hr=we(me,Rt.length?rt(Rt).length-fn:0);if(at.length>1||at[0]||Re(vr,hr))return zo(a.doc,at,vr,hr,"+input"),!0},_r.prototype.ensurePolled=function(){this.forceCompositionEnd()},_r.prototype.reset=function(){this.forceCompositionEnd()},_r.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},_r.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))},_r.prototype.updateFromDOM=function(){var a=this;(this.cm.isReadOnly()||!this.pollContent())&&Hi(this.cm,function(){return Di(a.cm)})},_r.prototype.setUneditable=function(a){a.contentEditable="false"},_r.prototype.onKeyPress=function(a){a.charCode==0||this.composing||(a.preventDefault(),this.cm.isReadOnly()||hi(this.cm,vl)(this.cm,String.fromCharCode(a.charCode==null?a.keyCode:a.charCode),0))},_r.prototype.readOnlyChanged=function(a){this.div.contentEditable=String(a!="nocursor")},_r.prototype.onContextMenu=function(){},_r.prototype.resetPosition=function(){},_r.prototype.needsContentAttribute=!0;function Fs(a,y){var x=no(a,y.line);if(!x||x.hidden)return null;var b=Bt(a.doc,y.line),E=Do(x,b,y.line),ne=Xt(b,a.doc.direction),le="left";if(ne){var ue=It(ne,y.ch);le=ue%2?"right":"left"}var ce=xa(E.map,y.ch,le);return ce.offset=ce.collapse=="right"?ce.end:ce.start,ce}function _u(a){for(var y=a;y;y=y.parentNode)if(/CodeMirror-gutter-wrapper/.test(y.className))return!0;return!1}function Go(a,y){return y&&(a.bad=!0),a}function Ku(a,y,x,b,E){var ne="",le=!1,ue=a.doc.lineSeparator(),ce=!1;function me(Ot){return function(fn){return fn.id==Ot}}function Ge(){le&&(ne+=ue,ce&&(ne+=ue),le=ce=!1)}function at(Ot){Ot&&(Ge(),ne+=Ot)}function Rt(Ot){if(Ot.nodeType==1){var fn=Ot.getAttribute("cm-text");if(fn){at(fn);return}var In=Ot.getAttribute("cm-marker"),Rn;if(In){var Vn=a.findMarks(we(b,0),we(E+1,0),me(+In));Vn.length&&(Rn=Vn[0].find(0))&&at(nn(a.doc,Rn.from,Rn.to).join(ue));return}if(Ot.getAttribute("contenteditable")=="false")return;var tr=/^(pre|div|p|li|table|br)$/i.test(Ot.nodeName);if(!/^br$/i.test(Ot.nodeName)&&Ot.textContent.length==0)return;tr&&Ge();for(var _n=0;_n<Ot.childNodes.length;_n++)Rt(Ot.childNodes[_n]);/^(pre|p)$/i.test(Ot.nodeName)&&(ce=!0),tr&&(le=!0)}else Ot.nodeType==3&&at(Ot.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;Rt(y),y!=x;)y=y.nextSibling,ce=!1;return ne}function ja(a,y,x){var b;if(y==a.display.lineDiv){if(b=a.display.lineDiv.childNodes[x],!b)return Go(a.clipPos(we(a.display.viewTo-1)),!0);y=null,x=0}else for(b=y;;b=b.parentNode){if(!b||b==a.display.lineDiv)return null;if(b.parentNode&&b.parentNode==a.display.lineDiv)break}for(var E=0;E<a.display.view.length;E++){var ne=a.display.view[E];if(ne.node==b)return Xu(ne,y,x)}}function Xu(a,y,x){var b=a.text.firstChild,E=!1;if(!y||!gt(b,y))return Go(we(Ae(a.line),0),!0);if(y==b&&(E=!0,y=b.childNodes[x],x=0,!y)){var ne=a.rest?rt(a.rest):a.line;return Go(we(Ae(ne),ne.text.length),E)}var le=y.nodeType==3?y:null,ue=y;for(!le&&y.childNodes.length==1&&y.firstChild.nodeType==3&&(le=y.firstChild,x&&(x=le.nodeValue.length));ue.parentNode!=b;)ue=ue.parentNode;var ce=a.measure,me=ce.maps;function Ge(Rn,Vn,tr){for(var _n=-1;_n<(me?me.length:0);_n++)for(var or=_n<0?ce.map:me[_n],vr=0;vr<or.length;vr+=3){var hr=or[vr+2];if(hr==Rn||hr==Vn){var Lr=Ae(_n<0?a.line:a.rest[_n]),Yr=or[vr]+tr;return(tr<0||hr!=Rn)&&(Yr=or[vr+(tr?1:0)]),we(Lr,Yr)}}}var at=Ge(le,ue,x);if(at)return Go(at,E);for(var Rt=ue.nextSibling,Ot=le?le.nodeValue.length-x:0;Rt;Rt=Rt.nextSibling){if(at=Ge(Rt,Rt.firstChild,0),at)return Go(we(at.line,at.ch-Ot),E);Ot+=Rt.textContent.length}for(var fn=ue.previousSibling,In=x;fn;fn=fn.previousSibling){if(at=Ge(fn,fn.firstChild,-1),at)return Go(we(at.line,at.ch+In),E);In+=fn.textContent.length}}var oi=function(a){this.cm=a,this.prevInput="",this.pollingFast=!1,this.polling=new fe,this.hasSelection=!1,this.composing=null};oi.prototype.init=function(a){var y=this,x=this,b=this.cm;this.createField(a);var E=this.textarea;a.wrapper.insertBefore(this.wrapper,a.wrapper.firstChild),je&&(E.style.width="0px"),jt(E,"input",function(){xe&&Se>=9&&y.hasSelection&&(y.hasSelection=null),x.poll()}),jt(E,"paste",function(le){St(b,le)||Ts(le,b)||(b.state.pasteIncoming=+new Date,x.fastPoll())});function ne(le){if(!St(b,le)){if(b.somethingSelected())Wa({lineWise:!1,text:b.getSelections()});else if(b.options.lineWiseCopyCut){var ue=Bs(b);Wa({lineWise:!0,text:ue.text}),le.type=="cut"?b.setSelections(ue.ranges,null,We):(x.prevInput="",E.value=ue.text.join(`
`),Be(E))}else return;le.type=="cut"&&(b.state.cutIncoming=+new Date)}}jt(E,"cut",ne),jt(E,"copy",ne),jt(a.scroller,"paste",function(le){if(!(vi(a,le)||St(b,le))){if(!E.dispatchEvent){b.state.pasteIncoming=+new Date,x.focus();return}var ue=new Event("paste");ue.clipboardData=le.clipboardData,E.dispatchEvent(ue)}}),jt(a.lineSpace,"selectstart",function(le){vi(a,le)||tt(le)}),jt(E,"compositionstart",function(){var le=b.getCursor("from");x.composing&&x.composing.range.clear(),x.composing={start:le,range:b.markText(le,b.getCursor("to"),{className:"CodeMirror-composing"})}}),jt(E,"compositionend",function(){x.composing&&(x.poll(),x.composing.range.clear(),x.composing=null)})},oi.prototype.createField=function(a){this.wrapper=Ns(),this.textarea=this.wrapper.firstChild},oi.prototype.screenReaderLabelChanged=function(a){a?this.textarea.setAttribute("aria-label",a):this.textarea.removeAttribute("aria-label")},oi.prototype.prepareSelection=function(){var a=this.cm,y=a.display,x=a.doc,b=wl(a);if(a.options.moveInputWithCursor){var E=ki(a,x.sel.primary().head,"div"),ne=y.wrapper.getBoundingClientRect(),le=y.lineDiv.getBoundingClientRect();b.teTop=Math.max(0,Math.min(y.wrapper.clientHeight-10,E.top+le.top-ne.top)),b.teLeft=Math.max(0,Math.min(y.wrapper.clientWidth-10,E.left+le.left-ne.left))}return b},oi.prototype.showSelection=function(a){var y=this.cm,x=y.display;nt(x.cursorDiv,a.cursors),nt(x.selectionDiv,a.selection),a.teTop!=null&&(this.wrapper.style.top=a.teTop+"px",this.wrapper.style.left=a.teLeft+"px")},oi.prototype.reset=function(a){if(!(this.contextMenuPending||this.composing)){var y=this.cm;if(y.somethingSelected()){this.prevInput="";var x=y.getSelection();this.textarea.value=x,y.state.focused&&Be(this.textarea),xe&&Se>=9&&(this.hasSelection=x)}else a||(this.prevInput=this.textarea.value="",xe&&Se>=9&&(this.hasSelection=null))}},oi.prototype.getField=function(){return this.textarea},oi.prototype.supportsTouch=function(){return!1},oi.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!ke||ut()!=this.textarea))try{this.textarea.focus()}catch(a){}},oi.prototype.blur=function(){this.textarea.blur()},oi.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},oi.prototype.receivedFocus=function(){this.slowPoll()},oi.prototype.slowPoll=function(){var a=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){a.poll(),a.cm.state.focused&&a.slowPoll()})},oi.prototype.fastPoll=function(){var a=!1,y=this;y.pollingFast=!0;function x(){var b=y.poll();!b&&!a?(a=!0,y.polling.set(60,x)):(y.pollingFast=!1,y.slowPoll())}y.polling.set(20,x)},oi.prototype.poll=function(){var a=this,y=this.cm,x=this.textarea,b=this.prevInput;if(this.contextMenuPending||!y.state.focused||yn(x)&&!b&&!this.composing||y.isReadOnly()||y.options.disableInput||y.state.keySeq)return!1;var E=x.value;if(E==b&&!y.somethingSelected())return!1;if(xe&&Se>=9&&this.hasSelection===E||Ne&&/[\uf700-\uf7ff]/.test(E))return y.display.input.reset(),!1;if(y.doc.sel==y.display.selForContextMenu){var ne=E.charCodeAt(0);if(ne==8203&&!b&&(b="\u200B"),ne==8666)return this.reset(),this.cm.execCommand("undo")}for(var le=0,ue=Math.min(b.length,E.length);le<ue&&b.charCodeAt(le)==E.charCodeAt(le);)++le;return Hi(y,function(){vl(y,E.slice(le),b.length-le,null,a.composing?"*compose":null),E.length>1e3||E.indexOf(`
`)>-1?x.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},oi.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},oi.prototype.onKeyPress=function(){xe&&Se>=9&&(this.hasSelection=null),this.fastPoll()},oi.prototype.onContextMenu=function(a){var y=this,x=y.cm,b=x.display,E=y.textarea;y.contextMenuPending&&y.contextMenuPending();var ne=So(x,a),le=b.scroller.scrollTop;if(!ne||de)return;var ue=x.options.resetSelectionOnContextMenu;ue&&x.doc.sel.contains(ne)==-1&&hi(x,Si)(x.doc,po(ne),We);var ce=E.style.cssText,me=y.wrapper.style.cssText,Ge=y.wrapper.offsetParent.getBoundingClientRect();y.wrapper.style.cssText="position: static",E.style.cssText=`position: absolute; width: 30px; height: 30px;
top: `+(a.clientY-Ge.top-5)+"px; left: "+(a.clientX-Ge.left-5)+`px;
z-index: 1000; background: `+(xe?"rgba(255, 255, 255, .05)":"transparent")+`;
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var at;De&&(at=window.scrollY),b.input.focus(),De&&window.scrollTo(null,at),b.input.reset(),x.somethingSelected()||(E.value=y.prevInput=" "),y.contextMenuPending=Ot,b.selForContextMenu=x.doc.sel,clearTimeout(b.detectingSelectAll);function Rt(){if(E.selectionStart!=null){var In=x.somethingSelected(),Rn="\u200B"+(In?E.value:"");E.value="\u21DA",E.value=Rn,y.prevInput=In?"":"\u200B",E.selectionStart=1,E.selectionEnd=Rn.length,b.selForContextMenu=x.doc.sel}}function Ot(){if(y.contextMenuPending==Ot&&(y.contextMenuPending=!1,y.wrapper.style.cssText=me,E.style.cssText=ce,xe&&Se<9&&b.scrollbars.setScrollTop(b.scroller.scrollTop=le),E.selectionStart!=null)){(!xe||xe&&Se<9)&&Rt();var In=0,Rn=function(){b.selForContextMenu==x.doc.sel&&E.selectionStart==0&&E.selectionEnd>0&&y.prevInput=="\u200B"?hi(x,ts)(x):In++<10?b.detectingSelectAll=setTimeout(Rn,500):(b.selForContextMenu=null,b.input.reset())};b.detectingSelectAll=setTimeout(Rn,200)}}if(xe&&Se>=9&&Rt(),pt){Ie(a);var fn=function(){Zt(window,"mouseup",fn),setTimeout(Ot,20)};jt(window,"mouseup",fn)}else setTimeout(Ot,50)},oi.prototype.readOnlyChanged=function(a){a||this.reset(),this.textarea.disabled=a=="nocursor",this.textarea.readOnly=!!a},oi.prototype.setUneditable=function(){},oi.prototype.needsContentAttribute=!1;function Yu(a,y){if(y=y?on(y):{},y.value=a.value,!y.tabindex&&a.tabIndex&&(y.tabindex=a.tabIndex),!y.placeholder&&a.placeholder&&(y.placeholder=a.placeholder),y.autofocus==null){var x=ut();y.autofocus=x==a||a.getAttribute("autofocus")!=null&&x==document.body}function b(){a.value=ue.getValue()}var E;if(a.form&&(jt(a.form,"submit",b),!y.leaveSubmitMethodAlone)){var ne=a.form;E=ne.submit;try{var le=ne.submit=function(){b(),ne.submit=E,ne.submit(),ne.submit=le}}catch(ce){}}y.finishInit=function(ce){ce.save=b,ce.getTextArea=function(){return a},ce.toTextArea=function(){ce.toTextArea=isNaN,b(),a.parentNode.removeChild(ce.getWrapperElement()),a.style.display="",a.form&&(Zt(a.form,"submit",b),!y.leaveSubmitMethodAlone&&typeof a.form.submit=="function"&&(a.form.submit=E))}},a.style.display="none";var ue=Jr(function(ce){return a.parentNode.insertBefore(ce,a.nextSibling)},y);return ue}function Ju(a){a.off=Zt,a.on=jt,a.wheelEventPixels=iu,a.Doc=Ti,a.splitLines=sn,a.countColumn=Ee,a.findColumn=$t,a.isWordChar=oe,a.Pass=Dt,a.signal=ln,a.Line=Rr,a.changeEnd=mo,a.scrollbarModel=Tl,a.Pos=we,a.cmpPos=Re,a.modes=vn,a.mimeModes=un,a.resolveMode=Dn,a.getMode=Wn,a.modeExtensions=Zn,a.extendMode=An,a.copyState=Xn,a.startState=ar,a.innerMode=Nn,a.commands=ha,a.keyMap=ao,a.keyName=vs,a.isModifierKey=ms,a.lookupKey=Wo,a.normalizeKeyMap=Pu,a.StringStream=qn,a.SharedTextMarker=ca,a.TextMarker=vo,a.LineWidget=ua,a.e_preventDefault=tt,a.e_stopPropagation=Tt,a.e_stop=Ie,a.addClass=pe,a.contains=gt,a.rmClass=_e,a.keyNames=yo}ju(Jr),Vu(Jr);var Qu="iter insert remove copy getEditor constructor".split(" ");for(var Za in Ti.prototype)Ti.prototype.hasOwnProperty(Za)&&Et(Qu,Za)<0&&(Jr.prototype[Za]=function(a){return function(){return a.apply(this.doc,arguments)}}(Ti.prototype[Za]));return Oe(Ti),Jr.inputStyles={textarea:oi,contenteditable:_r},Jr.defineMode=function(a){!Jr.defaults.mode&&a!="null"&&(Jr.defaults.mode=a),On.apply(this,arguments)},Jr.defineMIME=mn,Jr.defineMode("null",function(){return{token:function(a){return a.skipToEnd()}}}),Jr.defineMIME("text/plain","null"),Jr.defineExtension=function(a,y){Jr.prototype[a]=y},Jr.defineDocExtension=function(a,y){Ti.prototype[a]=y},Jr.fromTextArea=Yu,Ju(Jr),Jr.version="5.58.2",Jr})},25419:function(rn,Ft,ie){(function(z){z(ie(89780),ie(15525),ie(98101))})(function(z){"use strict";z.defineMode("markdown",function(Ke,ge){var Ze=z.getMode(Ke,"text/html"),xe=Ze.name=="null";function Se(Ee){if(z.findModeByName){var fe=z.findModeByName(Ee);fe&&(Ee=fe.mime||fe.mimes[0])}var Et=z.getMode(Ke,Ee);return Et.name=="null"?null:Et}ge.highlightFormatting===void 0&&(ge.highlightFormatting=!1),ge.maxBlockquoteDepth===void 0&&(ge.maxBlockquoteDepth=0),ge.taskLists===void 0&&(ge.taskLists=!1),ge.strikethrough===void 0&&(ge.strikethrough=!1),ge.emoji===void 0&&(ge.emoji=!1),ge.fencedCodeBlockHighlighting===void 0&&(ge.fencedCodeBlockHighlighting=!0),ge.fencedCodeBlockDefaultMode===void 0&&(ge.fencedCodeBlockDefaultMode="text/plain"),ge.xml===void 0&&(ge.xml=!0),ge.tokenTypeOverrides===void 0&&(ge.tokenTypeOverrides={});var De={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 Ue in De)De.hasOwnProperty(Ue)&&ge.tokenTypeOverrides[Ue]&&(De[Ue]=ge.tokenTypeOverrides[Ue]);var Pe=/^([*\-_])(?:\s*\1){2,}\s*$/,de=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,He=/^\[(x| )\](?=\s)/i,ye=ge.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,vt=/^ {0,3}(?:\={1,}|-{2,})\s*$/,je=/^[^#!\[\]*_\\<>` "'(~:]+/,Te=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,ke=/^\s*\[[^\]]+?\]:.*$/,Ne=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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]/,yt=" ";function wt(Ee,fe,Et){return fe.f=fe.inline=Et,Et(Ee,fe)}function Pt(Ee,fe,Et){return fe.f=fe.block=Et,Et(Ee,fe)}function bt(Ee){return!Ee||!/\S/.test(Ee.string)}function pt(Ee){if(Ee.linkTitle=!1,Ee.linkHref=!1,Ee.linkText=!1,Ee.em=!1,Ee.strong=!1,Ee.strikethrough=!1,Ee.quote=0,Ee.indentedCode=!1,Ee.f==_e){var fe=xe;if(!fe){var Et=z.innerMode(Ze,Ee.htmlState);fe=Et.mode.name=="xml"&&Et.state.tagStart===null&&!Et.state.context&&Et.state.tokenize.isInText}fe&&(Ee.f=Ct,Ee.block=lt,Ee.htmlState=null)}return Ee.trailingSpace=0,Ee.trailingSpaceNewLine=!1,Ee.prevLine=Ee.thisLine,Ee.thisLine={stream:null},null}function lt(Ee,fe){var Et=Ee.column()===fe.indentation,Jt=bt(fe.prevLine.stream),Dt=fe.indentedCode,We=fe.prevLine.hr,ot=fe.list!==!1,dt=(fe.listStack[fe.listStack.length-1]||0)+3;fe.indentedCode=!1;var $t=fe.indentation;if(fe.indentationDiff===null&&(fe.indentationDiff=fe.indentation,ot)){for(fe.list=null;$t<fe.listStack[fe.listStack.length-1];)fe.listStack.pop(),fe.listStack.length?fe.indentation=fe.listStack[fe.listStack.length-1]:fe.list=!1;fe.list!==!1&&(fe.indentationDiff=$t-fe.listStack[fe.listStack.length-1])}var Lt=!Jt&&!We&&!fe.prevLine.header&&(!ot||!Dt)&&!fe.prevLine.fencedCodeEnd,Vt=(fe.list===!1||We||Jt)&&fe.indentation<=dt&&Ee.match(Pe),rt=null;if(fe.indentationDiff>=4&&(Dt||fe.prevLine.fencedCodeEnd||fe.prevLine.header||Jt))return Ee.skipToEnd(),fe.indentedCode=!0,De.code;if(Ee.eatSpace())return null;if(Et&&fe.indentation<=dt&&(rt=Ee.match(ye))&&rt[1].length<=6)return fe.quote=0,fe.header=rt[1].length,fe.thisLine.header=!0,ge.highlightFormatting&&(fe.formatting="header"),fe.f=fe.inline,nt(fe);if(fe.indentation<=dt&&Ee.eat(">"))return fe.quote=Et?1:fe.quote+1,ge.highlightFormatting&&(fe.formatting="quote"),Ee.eatSpace(),nt(fe);if(!Vt&&!fe.setext&&Et&&fe.indentation<=dt&&(rt=Ee.match(de))){var Ht=rt[1]?"ol":"ul";return fe.indentation=$t+Ee.current().length,fe.list=!0,fe.quote=0,fe.listStack.push(fe.indentation),fe.em=!1,fe.strong=!1,fe.code=!1,fe.strikethrough=!1,ge.taskLists&&Ee.match(He,!1)&&(fe.taskList=!0),fe.f=fe.inline,ge.highlightFormatting&&(fe.formatting=["list","list-"+Ht]),nt(fe)}else{if(Et&&fe.indentation<=dt&&(rt=Ee.match(Te,!0)))return fe.quote=0,fe.fencedEndRE=new RegExp(rt[1]+"+ *$"),fe.localMode=ge.fencedCodeBlockHighlighting&&Se(rt[2]||ge.fencedCodeBlockDefaultMode),fe.localMode&&(fe.localState=z.startState(fe.localMode)),fe.f=fe.block=kt,ge.highlightFormatting&&(fe.formatting="code-block"),fe.code=-1,nt(fe);if(fe.setext||(!Lt||!ot)&&!fe.quote&&fe.list===!1&&!fe.code&&!Vt&&!ke.test(Ee.string)&&(rt=Ee.lookAhead(1))&&(rt=rt.match(vt)))return fe.setext?(fe.header=fe.setext,fe.setext=0,Ee.skipToEnd(),ge.highlightFormatting&&(fe.formatting="header")):(fe.header=rt[0].charAt(0)=="="?1:2,fe.setext=fe.header),fe.thisLine.header=!0,fe.f=fe.inline,nt(fe);if(Vt)return Ee.skipToEnd(),fe.hr=!0,fe.thisLine.hr=!0,De.hr;if(Ee.peek()==="[")return wt(Ee,fe,At)}return wt(Ee,fe,fe.inline)}function _e(Ee,fe){var Et=Ze.token(Ee,fe.htmlState);if(!xe){var Jt=z.innerMode(Ze,fe.htmlState);(Jt.mode.name=="xml"&&Jt.state.tagStart===null&&!Jt.state.context&&Jt.state.tokenize.isInText||fe.md_inside&&Ee.current().indexOf(">")>-1)&&(fe.f=Ct,fe.block=lt,fe.htmlState=null)}return Et}function kt(Ee,fe){var Et=fe.listStack[fe.listStack.length-1]||0,Jt=fe.indentation<Et,Dt=Et+3;if(fe.fencedEndRE&&fe.indentation<=Dt&&(Jt||Ee.match(fe.fencedEndRE))){ge.highlightFormatting&&(fe.formatting="code-block");var We;return Jt||(We=nt(fe)),fe.localMode=fe.localState=null,fe.block=lt,fe.f=Ct,fe.fencedEndRE=null,fe.code=0,fe.thisLine.fencedCodeEnd=!0,Jt?Pt(Ee,fe,fe.block):We}else return fe.localMode?fe.localMode.token(Ee,fe.localState):(Ee.skipToEnd(),De.code)}function nt(Ee){var fe=[];if(Ee.formatting){fe.push(De.formatting),typeof Ee.formatting=="string"&&(Ee.formatting=[Ee.formatting]);for(var Et=0;Et<Ee.formatting.length;Et++)fe.push(De.formatting+"-"+Ee.formatting[Et]),Ee.formatting[Et]==="header"&&fe.push(De.formatting+"-"+Ee.formatting[Et]+"-"+Ee.header),Ee.formatting[Et]==="quote"&&(!ge.maxBlockquoteDepth||ge.maxBlockquoteDepth>=Ee.quote?fe.push(De.formatting+"-"+Ee.formatting[Et]+"-"+Ee.quote):fe.push("error"))}if(Ee.taskOpen)return fe.push("meta"),fe.length?fe.join(" "):null;if(Ee.taskClosed)return fe.push("property"),fe.length?fe.join(" "):null;if(Ee.linkHref?fe.push(De.linkHref,"url"):(Ee.strong&&fe.push(De.strong),Ee.em&&fe.push(De.em),Ee.strikethrough&&fe.push(De.strikethrough),Ee.emoji&&fe.push(De.emoji),Ee.linkText&&fe.push(De.linkText),Ee.code&&fe.push(De.code),Ee.image&&fe.push(De.image),Ee.imageAltText&&fe.push(De.imageAltText,"link"),Ee.imageMarker&&fe.push(De.imageMarker)),Ee.header&&fe.push(De.header,De.header+"-"+Ee.header),Ee.quote&&(fe.push(De.quote),!ge.maxBlockquoteDepth||ge.maxBlockquoteDepth>=Ee.quote?fe.push(De.quote+"-"+Ee.quote):fe.push(De.quote+"-"+ge.maxBlockquoteDepth)),Ee.list!==!1){var Jt=(Ee.listStack.length-1)%3;Jt?Jt===1?fe.push(De.list2):fe.push(De.list3):fe.push(De.list1)}return Ee.trailingSpaceNewLine?fe.push("trailing-space-new-line"):Ee.trailingSpace&&fe.push("trailing-space-"+(Ee.trailingSpace%2?"a":"b")),fe.length?fe.join(" "):null}function it(Ee,fe){if(Ee.match(je,!0))return nt(fe)}function Ct(Ee,fe){var Et=fe.text(Ee,fe);if(typeof Et!="undefined")return Et;if(fe.list)return fe.list=null,nt(fe);if(fe.taskList){var Jt=Ee.match(He,!0)[1]===" ";return Jt?fe.taskOpen=!0:fe.taskClosed=!0,ge.highlightFormatting&&(fe.formatting="task"),fe.taskList=!1,nt(fe)}if(fe.taskOpen=!1,fe.taskClosed=!1,fe.header&&Ee.match(/^#+$/,!0))return ge.highlightFormatting&&(fe.formatting="header"),nt(fe);var Dt=Ee.next();if(fe.linkTitle){fe.linkTitle=!1;var We=Dt;Dt==="("&&(We=")"),We=(We+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var ot="^\\s*(?:[^"+We+"\\\\]+|\\\\\\\\|\\\\.)"+We;if(Ee.match(new RegExp(ot),!0))return De.linkHref}if(Dt==="`"){var dt=fe.formatting;ge.highlightFormatting&&(fe.formatting="code"),Ee.eatWhile("`");var $t=Ee.current().length;if(fe.code==0&&(!fe.quote||$t==1))return fe.code=$t,nt(fe);if($t==fe.code){var Lt=nt(fe);return fe.code=0,Lt}else return fe.formatting=dt,nt(fe)}else if(fe.code)return nt(fe);if(Dt==="\\"&&(Ee.next(),ge.highlightFormatting)){var Vt=nt(fe),rt=De.formatting+"-escape";return Vt?Vt+" "+rt:rt}if(Dt==="!"&&Ee.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return fe.imageMarker=!0,fe.image=!0,ge.highlightFormatting&&(fe.formatting="image"),nt(fe);if(Dt==="["&&fe.imageMarker&&Ee.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return fe.imageMarker=!1,fe.imageAltText=!0,ge.highlightFormatting&&(fe.formatting="image"),nt(fe);if(Dt==="]"&&fe.imageAltText){ge.highlightFormatting&&(fe.formatting="image");var Vt=nt(fe);return fe.imageAltText=!1,fe.image=!1,fe.inline=fe.f=gt,Vt}if(Dt==="["&&!fe.image)return fe.linkText&&Ee.match(/^.*?\]/)||(fe.linkText=!0,ge.highlightFormatting&&(fe.formatting="link")),nt(fe);if(Dt==="]"&&fe.linkText){ge.highlightFormatting&&(fe.formatting="link");var Vt=nt(fe);return fe.linkText=!1,fe.inline=fe.f=Ee.match(/\(.*?\)| ?\[.*?\]/,!1)?gt:Ct,Vt}if(Dt==="<"&&Ee.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){fe.f=fe.inline=ze,ge.highlightFormatting&&(fe.formatting="link");var Vt=nt(fe);return Vt?Vt+=" ":Vt="",Vt+De.linkInline}if(Dt==="<"&&Ee.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){fe.f=fe.inline=ze,ge.highlightFormatting&&(fe.formatting="link");var Vt=nt(fe);return Vt?Vt+=" ":Vt="",Vt+De.linkEmail}if(ge.xml&&Dt==="<"&&Ee.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var Ht=Ee.string.indexOf(">",Ee.pos);if(Ht!=-1){var st=Ee.string.substring(Ee.start,Ht);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(st)&&(fe.md_inside=!0)}return Ee.backUp(1),fe.htmlState=z.startState(Ze),Pt(Ee,fe,_e)}if(ge.xml&&Dt==="<"&&Ee.match(/^\/\w*?>/))return fe.md_inside=!1,"tag";if(Dt==="*"||Dt==="_"){for(var ae=1,te=Ee.pos==1?" ":Ee.string.charAt(Ee.pos-2);ae<3&&Ee.eat(Dt);)ae++;var ee=Ee.peek()||" ",oe=!/\s/.test(ee)&&(!Ne.test(ee)||/\s/.test(te)||Ne.test(te)),se=!/\s/.test(te)&&(!Ne.test(te)||/\s/.test(ee)||Ne.test(ee)),re=null,he=null;if(ae%2&&(!fe.em&&oe&&(Dt==="*"||!se||Ne.test(te))?re=!0:fe.em==Dt&&se&&(Dt==="*"||!oe||Ne.test(ee))&&(re=!1)),ae>1&&(!fe.strong&&oe&&(Dt==="*"||!se||Ne.test(te))?he=!0:fe.strong==Dt&&se&&(Dt==="*"||!oe||Ne.test(ee))&&(he=!1)),he!=null||re!=null){ge.highlightFormatting&&(fe.formatting=re==null?"strong":he==null?"em":"strong em"),re===!0&&(fe.em=Dt),he===!0&&(fe.strong=Dt);var Lt=nt(fe);return re===!1&&(fe.em=!1),he===!1&&(fe.strong=!1),Lt}}else if(Dt===" "&&(Ee.eat("*")||Ee.eat("_"))){if(Ee.peek()===" ")return nt(fe);Ee.backUp(1)}if(ge.strikethrough){if(Dt==="~"&&Ee.eatWhile(Dt)){if(fe.strikethrough){ge.highlightFormatting&&(fe.formatting="strikethrough");var Lt=nt(fe);return fe.strikethrough=!1,Lt}else if(Ee.match(/^[^\s]/,!1))return fe.strikethrough=!0,ge.highlightFormatting&&(fe.formatting="strikethrough"),nt(fe)}else if(Dt===" "&&Ee.match(/^~~/,!0)){if(Ee.peek()===" ")return nt(fe);Ee.backUp(2)}}if(ge.emoji&&Dt===":"&&Ee.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){fe.emoji=!0,ge.highlightFormatting&&(fe.formatting="emoji");var be=nt(fe);return fe.emoji=!1,be}return Dt===" "&&(Ee.match(/^ +$/,!1)?fe.trailingSpace++:fe.trailingSpace&&(fe.trailingSpaceNewLine=!0)),nt(fe)}function ze(Ee,fe){var Et=Ee.next();if(Et===">"){fe.f=fe.inline=Ct,ge.highlightFormatting&&(fe.formatting="link");var Jt=nt(fe);return Jt?Jt+=" ":Jt="",Jt+De.linkInline}return Ee.match(/^[^>]+/,!0),De.linkInline}function gt(Ee,fe){if(Ee.eatSpace())return null;var Et=Ee.next();return Et==="("||Et==="["?(fe.f=fe.inline=pe(Et==="("?")":"]"),ge.highlightFormatting&&(fe.formatting="link-string"),fe.linkHref=!0,nt(fe)):"error"}var ut={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function pe(Ee){return function(fe,Et){var Jt=fe.next();if(Jt===Ee){Et.f=Et.inline=Ct,ge.highlightFormatting&&(Et.formatting="link-string");var Dt=nt(Et);return Et.linkHref=!1,Dt}return fe.match(ut[Ee]),Et.linkHref=!0,nt(Et)}}function At(Ee,fe){return Ee.match(/^([^\]\\]|\\.)*\]:/,!1)?(fe.f=Be,Ee.next(),ge.highlightFormatting&&(fe.formatting="link"),fe.linkText=!0,nt(fe)):wt(Ee,fe,Ct)}function Be(Ee,fe){if(Ee.match(/^\]:/,!0)){fe.f=fe.inline=Nt,ge.highlightFormatting&&(fe.formatting="link");var Et=nt(fe);return fe.linkText=!1,Et}return Ee.match(/^([^\]\\]|\\.)+/,!0),De.linkText}function Nt(Ee,fe){return Ee.eatSpace()?null:(Ee.match(/^[^\s]+/,!0),Ee.peek()===void 0?fe.linkTitle=!0:Ee.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),fe.f=fe.inline=Ct,De.linkHref+" url")}var on={startState:function(){return{f:lt,prevLine:{stream:null},thisLine:{stream:null},block:lt,htmlState:null,indentation:0,inline:Ct,text:it,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(Ee){return{f:Ee.f,prevLine:Ee.prevLine,thisLine:Ee.thisLine,block:Ee.block,htmlState:Ee.htmlState&&z.copyState(Ze,Ee.htmlState),indentation:Ee.indentation,localMode:Ee.localMode,localState:Ee.localMode?z.copyState(Ee.localMode,Ee.localState):null,inline:Ee.inline,text:Ee.text,formatting:!1,linkText:Ee.linkText,linkTitle:Ee.linkTitle,linkHref:Ee.linkHref,code:Ee.code,em:Ee.em,strong:Ee.strong,strikethrough:Ee.strikethrough,emoji:Ee.emoji,header:Ee.header,setext:Ee.setext,hr:Ee.hr,taskList:Ee.taskList,list:Ee.list,listStack:Ee.listStack.slice(0),quote:Ee.quote,indentedCode:Ee.indentedCode,trailingSpace:Ee.trailingSpace,trailingSpaceNewLine:Ee.trailingSpaceNewLine,md_inside:Ee.md_inside,fencedEndRE:Ee.fencedEndRE}},token:function(Ee,fe){if(fe.formatting=!1,Ee!=fe.thisLine.stream){if(fe.header=0,fe.hr=!1,Ee.match(/^\s*$/,!0))return pt(fe),null;if(fe.prevLine=fe.thisLine,fe.thisLine={stream:Ee},fe.taskList=!1,fe.trailingSpace=0,fe.trailingSpaceNewLine=!1,!fe.localState&&(fe.f=fe.block,fe.f!=_e)){var Et=Ee.match(/^\s*/,!0)[0].replace(/\t/g,yt).length;if(fe.indentation=Et,fe.indentationDiff=null,Et>0)return null}}return fe.f(Ee,fe)},innerMode:function(Ee){return Ee.block==_e?{state:Ee.htmlState,mode:Ze}:Ee.localState?{state:Ee.localState,mode:Ee.localMode}:{state:Ee,mode:on}},indent:function(Ee,fe,Et){return Ee.block==_e&&Ze.indent?Ze.indent(Ee.htmlState,fe,Et):Ee.localState&&Ee.localMode.indent?Ee.localMode.indent(Ee.localState,fe,Et):z.Pass},blankLine:pt,getType:nt,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return on},"xml"),z.defineMIME("text/markdown","markdown"),z.defineMIME("text/x-markdown","markdown")})},98101:function(rn,Ft,ie){(function(z){z(ie(89780))})(function(z){"use strict";z.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 Ke=0;Ke<z.modeInfo.length;Ke++){var ge=z.modeInfo[Ke];ge.mimes&&(ge.mime=ge.mimes[0])}z.findModeByMIME=function(Ze){Ze=Ze.toLowerCase();for(var xe=0;xe<z.modeInfo.length;xe++){var Se=z.modeInfo[xe];if(Se.mime==Ze)return Se;if(Se.mimes){for(var De=0;De<Se.mimes.length;De++)if(Se.mimes[De]==Ze)return Se}}if(/\+xml$/.test(Ze))return z.findModeByMIME("application/xml");if(/\+json$/.test(Ze))return z.findModeByMIME("application/json")},z.findModeByExtension=function(Ze){Ze=Ze.toLowerCase();for(var xe=0;xe<z.modeInfo.length;xe++){var Se=z.modeInfo[xe];if(Se.ext){for(var De=0;De<Se.ext.length;De++)if(Se.ext[De]==Ze)return Se}}},z.findModeByFileName=function(Ze){for(var xe=0;xe<z.modeInfo.length;xe++){var Se=z.modeInfo[xe];if(Se.file&&Se.file.test(Ze))return Se}var De=Ze.lastIndexOf("."),Ue=De>-1&&Ze.substring(De+1,Ze.length);if(Ue)return z.findModeByExtension(Ue)},z.findModeByName=function(Ze){Ze=Ze.toLowerCase();for(var xe=0;xe<z.modeInfo.length;xe++){var Se=z.modeInfo[xe];if(Se.name.toLowerCase()==Ze)return Se;if(Se.alias){for(var De=0;De<Se.alias.length;De++)if(Se.alias[De].toLowerCase()==Ze)return Se}}}})},67549:function(rn,Ft,ie){(function(z){z(ie(89780))})(function(z){"use strict";z.defineMode("stex",function(Ke,ge){"use strict";function Ze(je,Te){je.cmdState.push(Te)}function xe(je){return je.cmdState.length>0?je.cmdState[je.cmdState.length-1]:null}function Se(je){var Te=je.cmdState.pop();Te&&Te.closeBracket()}function De(je){for(var Te=je.cmdState,ke=Te.length-1;ke>=0;ke--){var Ne=Te[ke];if(Ne.name!="DEFAULT")return Ne}return{styleIdentifier:function(){return null}}}function Ue(je,Te,ke){return function(){this.name=je,this.bracketNo=0,this.style=Te,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 Pe={};Pe.importmodule=Ue("importmodule","tag",["string","builtin"]),Pe.documentclass=Ue("documentclass","tag",["","atom"]),Pe.usepackage=Ue("usepackage","tag",["atom"]),Pe.begin=Ue("begin","tag",["atom"]),Pe.end=Ue("end","tag",["atom"]),Pe.label=Ue("label","tag",["atom"]),Pe.ref=Ue("ref","tag",["atom"]),Pe.eqref=Ue("eqref","tag",["atom"]),Pe.cite=Ue("cite","tag",["atom"]),Pe.bibitem=Ue("bibitem","tag",["atom"]),Pe.Bibitem=Ue("Bibitem","tag",["atom"]),Pe.RBibitem=Ue("RBibitem","tag",["atom"]),Pe.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function de(je,Te){je.f=Te}function He(je,Te){var ke;if(je.match(/^\\[a-zA-Z@]+/)){var Ne=je.current().slice(1);return ke=Pe.hasOwnProperty(Ne)?Pe[Ne]:Pe.DEFAULT,ke=new ke,Ze(Te,ke),de(Te,vt),ke.style}if(je.match(/^\\[$&%#{}_]/)||je.match(/^\\[,;!\/\\]/))return"tag";if(je.match("\\["))return de(Te,function(wt,Pt){return ye(wt,Pt,"\\]")}),"keyword";if(je.match("\\("))return de(Te,function(wt,Pt){return ye(wt,Pt,"\\)")}),"keyword";if(je.match("$$"))return de(Te,function(wt,Pt){return ye(wt,Pt,"$$")}),"keyword";if(je.match("$"))return de(Te,function(wt,Pt){return ye(wt,Pt,"$")}),"keyword";var yt=je.next();if(yt=="%")return je.skipToEnd(),"comment";if(yt=="}"||yt=="]"){if(ke=xe(Te),ke)ke.closeBracket(yt),de(Te,vt);else return"error";return"bracket"}else return yt=="{"||yt=="["?(ke=Pe.DEFAULT,ke=new ke,Ze(Te,ke),"bracket"):/\d/.test(yt)?(je.eatWhile(/[\w.%]/),"atom"):(je.eatWhile(/[\w\-_]/),ke=De(Te),ke.name=="begin"&&(ke.argument=je.current()),ke.styleIdentifier())}function ye(je,Te,ke){if(je.eatSpace())return null;if(ke&&je.match(ke))return de(Te,He),"keyword";if(je.match(/^\\[a-zA-Z@]+/))return"tag";if(je.match(/^[a-zA-Z]+/))return"variable-2";if(je.match(/^\\[$&%#{}_]/)||je.match(/^\\[,;!\/]/)||je.match(/^[\^_&]/))return"tag";if(je.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(je.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var Ne=je.next();return Ne=="{"||Ne=="}"||Ne=="["||Ne=="]"||Ne=="("||Ne==")"?"bracket":Ne=="%"?(je.skipToEnd(),"comment"):"error"}function vt(je,Te){var ke=je.peek(),Ne;return ke=="{"||ke=="["?(Ne=xe(Te),Ne.openBracket(ke),je.eat(ke),de(Te,He),"bracket"):/[ \t\r]/.test(ke)?(je.eat(ke),null):(de(Te,He),Se(Te),He(je,Te))}return{startState:function(){var je=ge.inMathMode?function(Te,ke){return ye(Te,ke)}:He;return{cmdState:[],f:je}},copyState:function(je){return{cmdState:je.cmdState.slice(),f:je.f}},token:function(je,Te){return Te.f(je,Te)},blankLine:function(je){je.f=He,je.cmdState.length=0},lineComment:"%"}}),z.defineMIME("text/x-stex","stex"),z.defineMIME("text/x-latex","stex")})},15525:function(rn,Ft,ie){(function(z){z(ie(89780))})(function(z){"use strict";var Ke={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},ge={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};z.defineMode("xml",function(Ze,xe){var Se=Ze.indentUnit,De={},Ue=xe.htmlMode?Ke:ge;for(var Pe in Ue)De[Pe]=Ue[Pe];for(var Pe in xe)De[Pe]=xe[Pe];var de,He;function ye(ze,gt){function ut(Be){return gt.tokenize=Be,Be(ze,gt)}var pe=ze.next();if(pe=="<")return ze.eat("!")?ze.eat("[")?ze.match("CDATA[")?ut(Te("atom","]]>")):null:ze.match("--")?ut(Te("comment","-->")):ze.match("DOCTYPE",!0,!0)?(ze.eatWhile(/[\w\._\-]/),ut(ke(1))):null:ze.eat("?")?(ze.eatWhile(/[\w\._\-]/),gt.tokenize=Te("meta","?>"),"meta"):(de=ze.eat("/")?"closeTag":"openTag",gt.tokenize=vt,"tag bracket");if(pe=="&"){var At;return ze.eat("#")?ze.eat("x")?At=ze.eatWhile(/[a-fA-F\d]/)&&ze.eat(";"):At=ze.eatWhile(/[\d]/)&&ze.eat(";"):At=ze.eatWhile(/[\w\.\-:]/)&&ze.eat(";"),At?"atom":"error"}else return ze.eatWhile(/[^&<]/),null}ye.isInText=!0;function vt(ze,gt){var ut=ze.next();if(ut==">"||ut=="/"&&ze.eat(">"))return gt.tokenize=ye,de=ut==">"?"endTag":"selfcloseTag","tag bracket";if(ut=="=")return de="equals",null;if(ut=="<"){gt.tokenize=ye,gt.state=Pt,gt.tagName=gt.tagStart=null;var pe=gt.tokenize(ze,gt);return pe?pe+" tag error":"tag error"}else return/[\'\"]/.test(ut)?(gt.tokenize=je(ut),gt.stringStartCol=ze.column(),gt.tokenize(ze,gt)):(ze.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function je(ze){var gt=function(ut,pe){for(;!ut.eol();)if(ut.next()==ze){pe.tokenize=vt;break}return"string"};return gt.isInAttribute=!0,gt}function Te(ze,gt){return function(ut,pe){for(;!ut.eol();){if(ut.match(gt)){pe.tokenize=ye;break}ut.next()}return ze}}function ke(ze){return function(gt,ut){for(var pe;(pe=gt.next())!=null;){if(pe=="<")return ut.tokenize=ke(ze+1),ut.tokenize(gt,ut);if(pe==">")if(ze==1){ut.tokenize=ye;break}else return ut.tokenize=ke(ze-1),ut.tokenize(gt,ut)}return"meta"}}function Ne(ze,gt,ut){this.prev=ze.context,this.tagName=gt,this.indent=ze.indented,this.startOfLine=ut,(De.doNotIndent.hasOwnProperty(gt)||ze.context&&ze.context.noIndent)&&(this.noIndent=!0)}function yt(ze){ze.context&&(ze.context=ze.context.prev)}function wt(ze,gt){for(var ut;;){if(!ze.context||(ut=ze.context.tagName,!De.contextGrabbers.hasOwnProperty(ut)||!De.contextGrabbers[ut].hasOwnProperty(gt)))return;yt(ze)}}function Pt(ze,gt,ut){return ze=="openTag"?(ut.tagStart=gt.column(),bt):ze=="closeTag"?pt:Pt}function bt(ze,gt,ut){return ze=="word"?(ut.tagName=gt.current(),He="tag",kt):De.allowMissingTagName&&ze=="endTag"?(He="tag bracket",kt(ze,gt,ut)):(He="error",bt)}function pt(ze,gt,ut){if(ze=="word"){var pe=gt.current();return ut.context&&ut.context.tagName!=pe&&De.implicitlyClosed.hasOwnProperty(ut.context.tagName)&&yt(ut),ut.context&&ut.context.tagName==pe||De.matchClosing===!1?(He="tag",lt):(He="tag error",_e)}else return De.allowMissingTagName&&ze=="endTag"?(He="tag bracket",lt(ze,gt,ut)):(He="error",_e)}function lt(ze,gt,ut){return ze!="endTag"?(He="error",lt):(yt(ut),Pt)}function _e(ze,gt,ut){return He="error",lt(ze,gt,ut)}function kt(ze,gt,ut){if(ze=="word")return He="attribute",nt;if(ze=="endTag"||ze=="selfcloseTag"){var pe=ut.tagName,At=ut.tagStart;return ut.tagName=ut.tagStart=null,ze=="selfcloseTag"||De.autoSelfClosers.hasOwnProperty(pe)?wt(ut,pe):(wt(ut,pe),ut.context=new Ne(ut,pe,At==ut.indented)),Pt}return He="error",kt}function nt(ze,gt,ut){return ze=="equals"?it:(De.allowMissing||(He="error"),kt(ze,gt,ut))}function it(ze,gt,ut){return ze=="string"?Ct:ze=="word"&&De.allowUnquoted?(He="string",kt):(He="error",kt(ze,gt,ut))}function Ct(ze,gt,ut){return ze=="string"?Ct:kt(ze,gt,ut)}return{startState:function(ze){var gt={tokenize:ye,state:Pt,indented:ze||0,tagName:null,tagStart:null,context:null};return ze!=null&&(gt.baseIndent=ze),gt},token:function(ze,gt){if(!gt.tagName&&ze.sol()&&(gt.indented=ze.indentation()),ze.eatSpace())return null;de=null;var ut=gt.tokenize(ze,gt);return(ut||de)&&ut!="comment"&&(He=null,gt.state=gt.state(de||ut,ze,gt),He&&(ut=He=="error"?ut+" error":He)),ut},indent:function(ze,gt,ut){var pe=ze.context;if(ze.tokenize.isInAttribute)return ze.tagStart==ze.indented?ze.stringStartCol+1:ze.indented+Se;if(pe&&pe.noIndent)return z.Pass;if(ze.tokenize!=vt&&ze.tokenize!=ye)return ut?ut.match(/^(\s*)/)[0].length:0;if(ze.tagName)return De.multilineTagIndentPastTag!==!1?ze.tagStart+ze.tagName.length+2:ze.tagStart+Se*(De.multilineTagIndentFactor||1);if(De.alignCDATA&&/<!\[CDATA\[/.test(gt))return 0;var At=gt&&/^<(\/)?([\w_:\.-]*)/.exec(gt);if(At&&At[1])for(;pe;)if(pe.tagName==At[2]){pe=pe.prev;break}else if(De.implicitlyClosed.hasOwnProperty(pe.tagName))pe=pe.prev;else break;else if(At)for(;pe;){var Be=De.contextGrabbers[pe.tagName];if(Be&&Be.hasOwnProperty(At[2]))pe=pe.prev;else break}for(;pe&&pe.prev&&!pe.startOfLine;)pe=pe.prev;return pe?pe.indent+Se:ze.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:De.htmlMode?"html":"xml",helperType:De.htmlMode?"html":"xml",skipAttribute:function(ze){ze.state==it&&(ze.state=kt)},xmlCurrentTag:function(ze){return ze.tagName?{name:ze.tagName,close:ze.type=="closeTag"}:null},xmlCurrentContext:function(ze){for(var gt=[],ut=ze.context;ut;ut=ut.prev)ut.tagName&&gt.push(ut.tagName);return gt.reverse()}}}),z.defineMIME("text/xml","xml"),z.defineMIME("application/xml","xml"),z.mimeModes.hasOwnProperty("text/html")||z.defineMIME("text/html",{name:"xml",htmlMode:!0})})},2859:function(rn,Ft,ie){"use strict";ie.d(Ft,{hP:function(){return st}});var z=function(ae,te){return(z=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(ee,oe){ee.__proto__=oe}||function(ee,oe){for(var se in oe)Object.prototype.hasOwnProperty.call(oe,se)&&(ee[se]=oe[se])})(ae,te)};function Ke(ae,te){function ee(){this.constructor=ae}z(ae,te),ae.prototype=te===null?Object.create(te):(ee.prototype=te.prototype,new ee)}function ge(ae,te,ee,oe){return new(ee||(ee=Promise))(function(se,re){function he(Me){try{ht(oe.next(Me))}catch(Ye){re(Ye)}}function be(Me){try{ht(oe.throw(Me))}catch(Ye){re(Ye)}}function ht(Me){var Ye;Me.done?se(Me.value):(Ye=Me.value,Ye instanceof ee?Ye:new ee(function(mt){mt(Ye)})).then(he,be)}ht((oe=oe.apply(ae,te||[])).next())})}function Ze(ae,te){var ee,oe,se,re,he={label:0,sent:function(){if(1&se[0])throw se[1];return se[1]},trys:[],ops:[]};return re={next:be(0),throw:be(1),return:be(2)},typeof Symbol=="function"&&(re[Symbol.iterator]=function(){return this}),re;function be(ht){return function(Me){return function(Ye){if(ee)throw new TypeError("Generator is already executing.");for(;he;)try{if(ee=1,oe&&(se=2&Ye[0]?oe.return:Ye[0]?oe.throw||((se=oe.return)&&se.call(oe),0):oe.next)&&!(se=se.call(oe,Ye[1])).done)return se;switch(oe=0,se&&(Ye=[2&Ye[0],se.value]),Ye[0]){case 0:case 1:se=Ye;break;case 4:return he.label++,{value:Ye[1],done:!1};case 5:he.label++,oe=Ye[1],Ye=[0];continue;case 7:Ye=he.ops.pop(),he.trys.pop();continue;default:if(se=he.trys,!((se=se.length>0&&se[se.length-1])||Ye[0]!==6&&Ye[0]!==2)){he=0;continue}if(Ye[0]===3&&(!se||Ye[1]>se[0]&&Ye[1]<se[3])){he.label=Ye[1];break}if(Ye[0]===6&&he.label<se[1]){he.label=se[1],se=Ye;break}if(se&&he.label<se[2]){he.label=se[2],he.ops.push(Ye);break}se[2]&&he.ops.pop(),he.trys.pop();continue}Ye=te.call(ae,he)}catch(mt){Ye=[6,mt],oe=0}finally{ee=se=0}if(5&Ye[0])throw Ye[1];return{value:Ye[0]?Ye[1]:void 0,done:!0}}([ht,Me])}}}function xe(){for(var ae=0,te=0,ee=arguments.length;te<ee;te++)ae+=arguments[te].length;var oe=Array(ae),se=0;for(te=0;te<ee;te++)for(var re=arguments[te],he=0,be=re.length;he<be;he++,se++)oe[se]=re[he];return oe}var Se=function(){function ae(){}return ae.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},ae.setAttributes=function(te,ee){for(var oe=0,se=ee;oe<se.length;oe++){var re=se[oe],he=re[0],be=re[1];te.setAttribute(he,be)}},ae.createRect=function(te,ee,oe){var se=document.createElementNS("http://www.w3.org/2000/svg","rect");return se.setAttribute("width",te.toString()),se.setAttribute("height",ee.toString()),oe&&ae.setAttributes(se,oe),se},ae.createLine=function(te,ee,oe,se,re){var he=document.createElementNS("http://www.w3.org/2000/svg","line");return he.setAttribute("x1",te.toString()),he.setAttribute("y1",ee.toString()),he.setAttribute("x2",oe.toString()),he.setAttribute("y2",se.toString()),re&&ae.setAttributes(he,re),he},ae.createPolygon=function(te,ee){var oe=document.createElementNS("http://www.w3.org/2000/svg","polygon");return oe.setAttribute("points",te),ee&&ae.setAttributes(oe,ee),oe},ae.createCircle=function(te,ee){var oe=document.createElementNS("http://www.w3.org/2000/svg","circle");return oe.setAttribute("cx",(te/2).toString()),oe.setAttribute("cy",(te/2).toString()),oe.setAttribute("r",te.toString()),ee&&ae.setAttributes(oe,ee),oe},ae.createEllipse=function(te,ee,oe){var se=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return se.setAttribute("cx",(te/2).toString()),se.setAttribute("cy",(ee/2).toString()),se.setAttribute("rx",(te/2).toString()),se.setAttribute("ry",(ee/2).toString()),oe&&ae.setAttributes(se,oe),se},ae.createGroup=function(te){var ee=document.createElementNS("http://www.w3.org/2000/svg","g");return te&&ae.setAttributes(ee,te),ee},ae.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},ae.createMarker=function(te,ee,oe,se,re,he,be){var ht=document.createElementNS("http://www.w3.org/2000/svg","marker");return ae.setAttributes(ht,[["id",te],["orient",ee],["markerWidth",oe.toString()],["markerHeight",se.toString()],["refX",re.toString()],["refY",he.toString()]]),ht.appendChild(be),ht},ae.createText=function(te){var ee=document.createElementNS("http://www.w3.org/2000/svg","text");return ee.setAttribute("x","0"),ee.setAttribute("y","0"),te&&ae.setAttributes(ee,te),ee},ae.createTSpan=function(te,ee){var oe=document.createElementNS("http://www.w3.org/2000/svg","tspan");return oe.textContent=te,ee&&ae.setAttributes(oe,ee),oe},ae.createImage=function(te){var ee=document.createElementNS("http://www.w3.org/2000/svg","image");return te&&ae.setAttributes(ee,te),ee},ae.createPoint=function(te,ee){var oe=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return oe.x=te,oe.y=ee,oe},ae.createPath=function(te,ee){var oe=document.createElementNS("http://www.w3.org/2000/svg","path");return oe.setAttribute("d",te),ee&&ae.setAttributes(oe,ee),oe},ae}(),De=function(){function ae(){}return ae.addKey=function(te){ae.key=te},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}(),Ue=function(){function ae(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return ae.prototype.rasterize=function(te,ee,oe){var se=this;return new Promise(function(re){var he=oe!==void 0?oe:document.createElement("canvas");te===null&&(se.markersOnly=!0,se.naturalSize=!1);var be=document.createElementNS("http://www.w3.org/2000/svg","svg");be.setAttribute("xmlns","http://www.w3.org/2000/svg"),be.setAttribute("width",ee.width.baseVal.valueAsString),be.setAttribute("height",ee.height.baseVal.valueAsString),be.setAttribute("viewBox","0 0 "+ee.viewBox.baseVal.width.toString()+" "+ee.viewBox.baseVal.height.toString()),be.innerHTML=ee.innerHTML,se.naturalSize===!0?(be.width.baseVal.value=te.naturalWidth,be.height.baseVal.value=te.naturalHeight):se.width!==void 0&&se.height!==void 0&&(be.width.baseVal.value=se.width,be.height.baseVal.value=se.height),he.width=be.width.baseVal.value,he.height=be.height.baseVal.value;var ht=be.outerHTML,Me=he.getContext("2d");se.markersOnly!==!0&&Me.drawImage(te,0,0,he.width,he.height);var Ye=window.URL,mt=new Image(he.width,he.height);mt.setAttribute("crossOrigin","anonymous");var It=new Blob([ht],{type:"image/svg+xml"}),xt=Ye.createObjectURL(It);mt.onload=function(){Me.drawImage(mt,0,0),Ye.revokeObjectURL(xt);var Xt=he.toDataURL(se.imageType,se.imageQuality);re(Xt)},mt.src=xt})},ae}(),Pe=function(){},de=function(){function ae(te){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+te+"_"}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(te){return this.styleSheet===void 0&&this.addStyleSheet(),te.name=""+this.classNamePrefix+te.localName,this.classes.push(te),this.styleSheet.sheet.insertRule("."+te.name+" {"+te.style+"}",this.styleSheet.sheet.cssRules.length),te},ae.prototype.addRule=function(te){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(te),this.styleSheet.sheet.insertRule(te.selector+" {"+te.style+"}",this.styleSheet.sheet.cssRules.length)},ae.prototype.addStyleSheet=function(){var te;this.styleSheet=document.createElement("style"),((te=this.styleSheetRoot)!==null&&te!==void 0?te:document.head).appendChild(this.styleSheet),this.addRule(new He("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new He("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
from {
opacity: 0;
}
to {
opacity: 1;
}
`)),this.addRule(new He("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
from {
opacity: 1;
}
to {
opacity: 0;
}
`)),this.addClass(new ye("fade_in",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
`)),this.addClass(new ye("fade_out",`
animation-duration: 0.3s;
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
`))},ae.prototype.removeStyleSheet=function(){var te;this.styleSheet&&(((te=this.styleSheetRoot)!==null&&te!==void 0?te:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},ae}(),He=function(ae,te){this.selector=ae,this.style=te},ye=function(ae,te){this.localName=ae,this.style=te},vt=function(){function ae(te,ee,oe,se,re){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=te,this.displayMode=ee,this.markerItems=oe,this.uiStyleSettings=se,this.styles=re,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(te){var ee=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=te,this.uiContainer.className=this.toolbarStyleClass.name+" "+this.styles.fadeInAnimationClassName+" "+(this.uiStyleSettings.toolbarStyleColorsClassName?this.uiStyleSettings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name);var oe=document.createElement("div");oe.className=this.toolbarBlockStyleClass.name,oe.style.whiteSpace="nowrap",this.uiContainer.appendChild(oe),this.addActionButton(oe,'<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(oe,'<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(oe,'<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(oe,'<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(oe,'<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(oe,'<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(oe,'<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(oe,'<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(re){var he=document.createElement("div");he.className=""+ee.toolbarButtonStyleClass.name,he.setAttribute("data-type-name",re.typeName),he.innerHTML=re.icon,he.addEventListener("click",function(){ee.markerToolbarButtonClicked(he,re)}),ee.buttons.push(he),ee.markerButtons.push(he)}),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(te){this.buttonClickListeners.push(te)},ae.prototype.removeButtonClickListener=function(te){this.buttonClickListeners.indexOf(te)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(te),1)},ae.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},ae.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var te=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var ee=0;ee<this.markerButtons.length;ee++)ee<te||ee===te&&this.markerButtons.length-1===te?this.markerButtonBlock.appendChild(this.markerButtons[ee]):(ee===te&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[ee]))}},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 te=this;this.buttons.forEach(function(ee){ee.className=ee.className.replace(te.uiStyleSettings.toolbarButtonStyleColorsClassName?te.uiStyleSettings.toolbarButtonStyleColorsClassName:te.toolbarButtonStyleColorsClass.name,"").trim(),ee.className=ee.className.replace(te.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?te.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:te.toolbarActiveButtonStyleColorsClass.name,"").trim(),ee.className+=" "+(te.uiStyleSettings.toolbarButtonStyleColorsClassName?te.uiStyleSettings.toolbarButtonStyleColorsClassName:te.toolbarButtonStyleColorsClass.name)})},ae.prototype.addActionButton=function(te,ee,oe){var se=this,re=document.createElement("div");switch(re.className=""+this.toolbarButtonStyleClass.name,re.innerHTML=ee,re.setAttribute("data-action",oe),re.addEventListener("click",function(){se.actionToolbarButtonClicked(re,oe)}),oe){case"select":re.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":re.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":re.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":re.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":re.style.fill=this.uiStyleSettings.closeButtonColor}te.appendChild(re),this.buttons.push(re)},ae.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new ye("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 ye("toolbar_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
`)),this.toolbarBlockStyleClass=this.styles.addClass(new ye("toolbar-block",`
display: inline-block;
box-sizing: content-box;
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new ye("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 ye("toolbar-overflow-block_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`));var te=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new ye("toolbar_button",`
display: inline-block;
width: `+(this.uiStyleSettings.toolbarHeight-2*te)+`px;
height: `+(this.uiStyleSettings.toolbarHeight-2*te)+`px;
padding: `+te+`px;
box-sizing: content-box;
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new ye("toolbar_button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new ye("toolbar_active_button",`
fill: `+this.uiStyleSettings.toolbarColor+`;
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new He("."+this.toolbarButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`)),this.styles.addRule(new He("."+this.toolbarButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`))},ae.prototype.markerToolbarButtonClicked=function(te,ee){this.setActiveButton(te),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(oe){return oe("marker",ee)}),this.markerButtonOverflowBlock.style.display="none"},ae.prototype.actionToolbarButtonClicked=function(te,ee){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(oe){return oe("action",ee)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},ae.prototype.setActiveButton=function(te){this.resetButtonStyles(),te.className=te.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),te.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},ae.prototype.setActiveMarkerButton=function(te){var ee=this.markerButtons.find(function(oe){return oe.getAttribute("data-type-name")===te});ee&&this.setActiveButton(ee)},ae.prototype.setCurrentMarker=function(te){var ee=this;this.currentMarker=te,this.buttons.filter(function(oe){return/delete|notes/.test(oe.getAttribute("data-action"))}).forEach(function(oe){ee.currentMarker===void 0?(oe.style.fillOpacity="0.4",oe.style.pointerEvents="none"):(oe.style.fillOpacity="1",oe.style.pointerEvents="all")})},ae}(),je=function(){function ae(te,ee,oe,se){this.panels=[],this.panelButtons=[],this.markerjsContainer=te,this.displayMode=ee,this.uiStyleSettings=oe,this.styles=se,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return ae.prototype.addStyles=function(){var te;this.toolboxStyleClass=this.styles.addClass(new ye("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 ye("toolbox_colors",`
color: `+this.uiStyleSettings.toolboxColor+`;
`));var ee=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new ye("toolbox-button-row",`
display: flex;
cursor: default;
box-sizing: content-box;
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new ye("toolbox-button-row_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new ye("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 ye("toolbox-panel-row_colors",`
background-color: `+((te=this.uiStyleSettings.toolboxBackgroundColor)!==null&&te!==void 0?te:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
`)),this.toolboxButtonStyleClass=this.styles.addClass(new ye("toolbox_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.toolboxButtonStyleColorsClass=this.styles.addClass(new ye("toolbox-button_colors",`
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new ye("toolbox-active-button_colors",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
fill: `+this.uiStyleSettings.toolbarColor+`;
`)),this.styles.addRule(new He("."+this.toolboxButtonStyleColorsClass.name+":hover",`
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
`)),this.styles.addRule(new He("."+this.toolboxButtonStyleClass.name+" svg",`
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
`))},ae.prototype.show=function(te){var ee;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=te,this.uiContainer.className=this.toolboxStyleClass.name+" "+((ee=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&ee!==void 0?ee:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},ae.prototype.setPanelButtons=function(te){var ee,oe,se=this;this.panels=te,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((ee=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&ee!==void 0?ee:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((oe=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&oe!==void 0?oe:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(re){var he;re.uiStyleSettings=se.uiStyleSettings;var be=document.createElement("div");be.className=se.toolboxButtonStyleClass.name+" "+((he=se.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&he!==void 0?he:se.toolboxButtonStyleColorsClass.name),be.innerHTML=re.icon,be.title=re.title,be.addEventListener("click",function(){se.panelButtonClick(re)}),se.panelButtons.push(be),se.buttonRow.appendChild(be)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},ae.prototype.panelButtonClick=function(te){var ee=this,oe=-1;if(te!==this.activePanel){oe=this.panels.indexOf(te),this.panelRow.innerHTML="";var se=te.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=te}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){ee.displayMode==="inline"?ee.panelRow.style.display="none":ee.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(re,he){var be,ht;re.className=ee.toolboxButtonStyleClass.name+" "+(he===oe?""+((be=ee.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&be!==void 0?be:ee.toolboxActiveButtonStyleColorsClass.name):""+((ht=ee.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&ht!==void 0?ht:ee.toolboxButtonStyleColorsClass.name))})},ae}(),Te=function(ae,te){this.title=ae,this.icon=te},ke=function(ae){function te(ee,oe,se,re){var he=ae.call(this,ee,re||'<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 he.colors=[],he.addTransparent=!1,he.colorBoxes=[],he.colors=oe,he.currentColor=se,he.setCurrentColor=he.setCurrentColor.bind(he),he.getColorBox=he.getColorBox.bind(he),he}return Ke(te,ae),te.prototype.getUi=function(){var ee=this,oe=document.createElement("div");return oe.style.overflow="hidden",oe.style.whiteSpace="nowrap",this.colors.forEach(function(se){var re=ee.getColorBox(se);oe.appendChild(re),ee.colorBoxes.push(re)}),oe},te.prototype.getColorBox=function(ee){var oe=this,se=this.uiStyleSettings.toolbarHeight/4,re=this.uiStyleSettings.toolbarHeight-se,he=document.createElement("div");he.style.display="inline-block",he.style.boxSizing="content-box",he.style.width=re-2+"px",he.style.height=re-2+"px",he.style.padding="1px",he.style.marginRight="2px",he.style.marginBottom="2px",he.style.borderWidth="2px",he.style.borderStyle="solid",he.style.borderRadius=(re+2)/2+"px",he.style.borderColor=ee===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",he.addEventListener("click",function(){oe.setCurrentColor(ee,he)});var be=document.createElement("div");return be.style.display="inline-block",be.style.width=re-2+"px",be.style.height=re-2+"px",be.style.backgroundColor=ee,be.style.borderRadius=re/2+"px",ee==="transparent"&&(be.style.fill=this.uiStyleSettings.toolboxAccentColor,be.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>`),he.appendChild(be),he},te.prototype.setCurrentColor=function(ee,oe){var se=this;this.currentColor=ee,this.colorBoxes.forEach(function(re){re.style.borderColor=re===oe?se.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(ee)},te}(Te),Ne=function(){function ae(te,ee,oe){this._state="new",this._isSelected=!1,this._container=te,this._overlayContainer=ee,this.globalSettings=oe,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(te){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(te,ee){},ae.prototype.dblClick=function(te,ee){},ae.prototype.manipulate=function(te){},ae.prototype.pointerUp=function(te){this.stateChanged()},ae.prototype.dispose=function(){},ae.prototype.addMarkerVisualToContainer=function(te){this.container.childNodes.length>0?this.container.insertBefore(te,this.container.childNodes[0]):this.container.appendChild(te)},ae.prototype.getState=function(){return{typeName:ae.typeName,state:this.state,notes:this.notes}},ae.prototype.restoreState=function(te){this._state=te.state,this.notes=te.notes},ae.prototype.scale=function(te,ee){},ae.prototype.colorChanged=function(te){this.onColorChanged&&this.onColorChanged(te),this.stateChanged()},ae.prototype.fillColorChanged=function(te){this.onFillColorChanged&&this.onFillColorChanged(te),this.stateChanged()},ae.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var te=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),te.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(te)&&this.onStateChanged(this)}},ae.typeName="MarkerBase",ae}(),yt=function(){function ae(){this.findGripByVisual=this.findGripByVisual.bind(this)}return ae.prototype.findGripByVisual=function(te){return this.topLeft.ownsTarget(te)?this.topLeft:this.topCenter.ownsTarget(te)?this.topCenter:this.topRight.ownsTarget(te)?this.topRight:this.centerLeft.ownsTarget(te)?this.centerLeft:this.centerRight.ownsTarget(te)?this.centerRight:this.bottomLeft.ownsTarget(te)?this.bottomLeft:this.bottomCenter.ownsTarget(te)?this.bottomCenter:this.bottomRight.ownsTarget(te)?this.bottomRight:void 0},ae}(),wt=function(){function ae(){this.GRIP_SIZE=10,this.visual=Se.createGroup(),this.visual.appendChild(Se.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(Se.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return ae.prototype.ownsTarget=function(te){return te===this.visual||te===this.visual.childNodes[0]||te===this.visual.childNodes[1]},ae}(),Pt=function(){function ae(){}return ae.toITransformMatrix=function(te){return{a:te.a,b:te.b,c:te.c,d:te.d,e:te.e,f:te.f}},ae.toSVGMatrix=function(te,ee){return te.a=ee.a,te.b=ee.b,te.c=ee.c,te.d=ee.d,te.e=ee.e,te.f=ee.f,te},ae}(),bt=function(ae){function te(ee,oe,se){var re=ae.call(this,ee,oe,se)||this;return re.left=0,re.top=0,re.width=0,re.height=0,re.defaultSize={x:50,y:20},re.offsetX=0,re.offsetY=0,re.rotationAngle=0,re.CB_DISTANCE=10,re._suppressMarkerCreateEvent=!1,re.container.transform.baseVal.appendItem(Se.createTransform()),re.setupControlBox(),re}return Ke(te,ae),Object.defineProperty(te.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(te.prototype,"visual",{get:function(){return this._visual},set:function(ee){this._visual=ee;var oe=Se.createTransform();this._visual.transform.baseVal.appendItem(oe)},enumerable:!1,configurable:!0}),te.prototype.ownsTarget=function(ee){return!!ae.prototype.ownsTarget.call(this,ee)||!!(this.controlGrips.findGripByVisual(ee)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(ee))},te.prototype.pointerDown=function(ee,oe){ae.prototype.pointerDown.call(this,ee,oe),this.state==="new"&&(this.left=ee.x,this.top=ee.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var se=this.unrotatePoint(ee);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(oe),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(oe)){this.activeGrip=this.rotatorGrip;var re=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=re.x-this.width/2,this.top=re.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var he=this.container.transform.baseVal.getItem(0);he.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(he,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},te.prototype.pointerUp=function(ee){var oe=this.state;ae.prototype.pointerUp.call(this,ee),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(ee),this._state="select",oe==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},te.prototype.moveVisual=function(ee){this.visual.style.transform="translate("+ee.x+"px, "+ee.y+"px)"},te.prototype.manipulate=function(ee){var oe=this.unrotatePoint(ee);this.state==="creating"?this.resize(ee):this.state==="move"?(this.left=this.manipulationStartLeft+(oe.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(oe.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(oe):this.state==="rotate"&&this.rotate(ee)},te.prototype.resize=function(ee){var oe=this.manipulationStartLeft,se=this.manipulationStartWidth,re=this.manipulationStartTop,he=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:oe=this.manipulationStartLeft+ee.x-this.manipulationStartX,se=this.manipulationStartWidth+this.manipulationStartLeft-oe;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:se=this.manipulationStartWidth+ee.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:re=this.manipulationStartTop+ee.y-this.manipulationStartY,he=this.manipulationStartHeight+this.manipulationStartTop-re;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:he=this.manipulationStartHeight+ee.y-this.manipulationStartY}se>=0?(this.left=oe,this.width=se):(this.left=oe+se,this.width=-se),he>=0?(this.top=re,this.height=he):(this.top=re+he,this.height=-he),this.setSize()},te.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},te.prototype.rotate=function(ee){if(Math.abs(ee.x-this.centerX)>.1){var oe=Math.sign(ee.x-this.centerX);this.rotationAngle=180*Math.atan((ee.y-this.centerY)/(ee.x-this.centerX))/Math.PI+90*oe,this.applyRotation()}},te.prototype.applyRotation=function(){var ee=this.container.transform.baseVal.getItem(0);ee.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(ee,0)},te.prototype.rotatePoint=function(ee){if(this.rotationAngle===0)return ee;var oe=this.container.getCTM(),se=Se.createPoint(ee.x,ee.y);return{x:(se=se.matrixTransform(oe)).x,y:se.y}},te.prototype.unrotatePoint=function(ee){if(this.rotationAngle===0)return ee;var oe=this.container.getCTM();oe=oe.inverse();var se=Se.createPoint(ee.x,ee.y);return{x:(se=se.matrixTransform(oe)).x,y:se.y}},te.prototype.select=function(){ae.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},te.prototype.deselect=function(){ae.prototype.deselect.call(this),this.controlBox.style.display="none"},te.prototype.setupControlBox=function(){this.controlBox=Se.createGroup();var ee=Se.createTransform();ee.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(ee),this.container.appendChild(this.controlBox),this.controlRect=Se.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=Se.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 yt,this.addControlGrips(),this.controlBox.style.display="none"},te.prototype.adjustControlBox=function(){var ee=this.controlBox.transform.baseVal.getItem(0);ee.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(ee,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()},te.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()},te.prototype.createGrip=function(){var ee=new wt;return ee.visual.transform.baseVal.appendItem(Se.createTransform()),this.controlBox.appendChild(ee.visual),ee},te.prototype.positionGrips=function(){var ee=this.controlGrips.topLeft.GRIP_SIZE,oe=-ee/2,se=oe,re=(this.width+this.CB_DISTANCE)/2-ee/2,he=(this.height+this.CB_DISTANCE)/2-ee/2,be=this.height+this.CB_DISTANCE-ee/2,ht=this.width+this.CB_DISTANCE-ee/2;this.positionGrip(this.controlGrips.topLeft.visual,oe,se),this.positionGrip(this.controlGrips.topCenter.visual,re,se),this.positionGrip(this.controlGrips.topRight.visual,ht,se),this.positionGrip(this.controlGrips.centerLeft.visual,oe,he),this.positionGrip(this.controlGrips.centerRight.visual,ht,he),this.positionGrip(this.controlGrips.bottomLeft.visual,oe,be),this.positionGrip(this.controlGrips.bottomCenter.visual,re,be),this.positionGrip(this.controlGrips.bottomRight.visual,ht,be),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,re,se-3*this.CB_DISTANCE)},te.prototype.positionGrip=function(ee,oe,se){var re=ee.transform.baseVal.getItem(0);re.setTranslate(oe,se),ee.transform.baseVal.replaceItem(re,0)},te.prototype.hideControlBox=function(){this.controlBox.style.display="none"},te.prototype.showControlBox=function(){this.controlBox.style.display=""},te.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:Pt.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:Pt.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},ae.prototype.getState.call(this))},te.prototype.restoreState=function(ee){ae.prototype.restoreState.call(this,ee);var oe=ee;this.left=oe.left,this.top=oe.top,this.width=oe.width,this.height=oe.height,this.rotationAngle=oe.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(Pt.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,oe.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(Pt.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,oe.containerTransformMatrix))},te.prototype.scale=function(ee,oe){ae.prototype.scale.call(this,ee,oe);var se=this.rotatePoint({x:this.left,y:this.top}),re=this.unrotatePoint({x:se.x*ee,y:se.y*oe});this.left=re.x,this.top=re.y,this.width=this.width*ee,this.height=this.height*oe,this.adjustControlBox()},te}(Ne),pt=function(ae){function te(ee,oe,se){var re=ae.call(this,ee,oe,se)||this;return re.fillColor="transparent",re.strokeColor="transparent",re.strokeWidth=0,re.strokeDasharray="",re.opacity=1,re.setStrokeColor=re.setStrokeColor.bind(re),re.setFillColor=re.setFillColor.bind(re),re.setStrokeWidth=re.setStrokeWidth.bind(re),re.setStrokeDasharray=re.setStrokeDasharray.bind(re),re.createVisual=re.createVisual.bind(re),re}return Ke(te,ae),te.prototype.ownsTarget=function(ee){return!(!ae.prototype.ownsTarget.call(this,ee)&&ee!==this.visual)},te.prototype.createVisual=function(){this.visual=Se.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)},te.prototype.pointerDown=function(ee,oe){ae.prototype.pointerDown.call(this,ee,oe),this.state==="new"&&(this.createVisual(),this.moveVisual(ee),this._state="creating")},te.prototype.manipulate=function(ee){ae.prototype.manipulate.call(this,ee)},te.prototype.resize=function(ee){ae.prototype.resize.call(this,ee),this.setSize()},te.prototype.setSize=function(){ae.prototype.setSize.call(this),Se.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},te.prototype.pointerUp=function(ee){ae.prototype.pointerUp.call(this,ee),this.setSize()},te.prototype.setStrokeColor=function(ee){this.strokeColor=ee,this.visual&&Se.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(ee),this.stateChanged()},te.prototype.setFillColor=function(ee){this.fillColor=ee,this.visual&&Se.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},te.prototype.setStrokeWidth=function(ee){this.strokeWidth=ee,this.visual&&Se.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},te.prototype.setStrokeDasharray=function(ee){this.strokeDasharray=ee,this.visual&&Se.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},te.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))},te.prototype.restoreState=function(ee){var oe=ee;this.fillColor=oe.fillColor,this.strokeColor=oe.strokeColor,this.strokeWidth=oe.strokeWidth,this.strokeDasharray=oe.strokeDasharray,this.opacity=oe.opacity,this.createVisual(),ae.prototype.restoreState.call(this,ee),this.setSize()},te.prototype.scale=function(ee,oe){ae.prototype.scale.call(this,ee,oe),this.setSize()},te.title="Rectangle marker",te}(bt),lt=function(ae){function te(ee,oe,se,re){var he=ae.call(this,ee,re||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return he.widths=[],he.widthBoxes=[],he.widths=oe,he.currentWidth=se,he.setCurrentWidth=he.setCurrentWidth.bind(he),he}return Ke(te,ae),te.prototype.getUi=function(){var ee=this,oe=document.createElement("div");return oe.style.display="flex",oe.style.overflow="hidden",oe.style.flexGrow="2",this.widths.forEach(function(se){var re=document.createElement("div");re.style.display="flex",re.style.flexGrow="2",re.style.alignItems="center",re.style.justifyContent="space-between",re.style.padding="5px",re.style.borderWidth="2px",re.style.borderStyle="solid",re.style.borderColor=se===ee.currentWidth?ee.uiStyleSettings.toolboxAccentColor:"transparent",re.addEventListener("click",function(){ee.setCurrentWidth(se,re)}),oe.appendChild(re);var he=document.createElement("div");he.innerText=se.toString(),he.style.marginRight="5px",re.appendChild(he);var be=document.createElement("div");be.style.minHeight="20px",be.style.flexGrow="2",be.style.display="flex",be.style.alignItems="center";var ht=document.createElement("hr");ht.style.minWidth="20px",ht.style.border="0px",ht.style.borderTop=se+"px solid "+ee.uiStyleSettings.toolboxColor,ht.style.flexGrow="2",be.appendChild(ht),re.appendChild(be),ee.widthBoxes.push(re)}),oe},te.prototype.setCurrentWidth=function(ee,oe){var se=this;this.currentWidth=ee,this.widthBoxes.forEach(function(re){re.style.borderColor=re===oe?se.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},te}(Te),_e=function(ae){function te(ee,oe,se,re){var he=ae.call(this,ee,re||'<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 he.styles=[],he.styleBoxes=[],he.styles=oe,he.currentStyle=se,he.setCurrentStyle=he.setCurrentStyle.bind(he),he}return Ke(te,ae),te.prototype.getUi=function(){var ee=this,oe=document.createElement("div");return oe.style.display="flex",oe.style.overflow="hidden",oe.style.flexGrow="2",this.styles.forEach(function(se){var re=document.createElement("div");re.style.display="flex",re.style.alignItems="center",re.style.justifyContent="space-between",re.style.padding="5px",re.style.borderWidth="2px",re.style.borderStyle="solid",re.style.overflow="hidden",re.style.maxWidth=100/ee.styles.length-5+"%",re.style.borderColor=se===ee.currentStyle?ee.uiStyleSettings.toolboxAccentColor:"transparent",re.addEventListener("click",function(){ee.setCurrentStyle(se,re)}),oe.appendChild(re);var he=document.createElement("div");he.style.minHeight="20px",he.style.flexGrow="2",he.style.overflow="hidden";var be=`<svg width="100" height="20">
<line x1="0" y1="10" x2="100" y2="10" stroke="`+ee.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(se!==""?'stroke-dasharray="'+se+'"':"")+` />
</svg>`;he.innerHTML=be,re.appendChild(he),ee.styleBoxes.push(re)}),oe},te.prototype.setCurrentStyle=function(ee,oe){var se=this;this.currentStyle=ee,this.styleBoxes.forEach(function(re){re.style.borderColor=re===oe?se.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},te}(Te),kt=function(ae){function te(ee,oe,se){var re=ae.call(this,ee,oe,se)||this;return re.strokeColor=se.defaultColor,re.strokeWidth=se.defaultStrokeWidth,re.strokeDasharray=se.defaultStrokeDasharray,re.strokePanel=new ke("Line color",se.defaultColorSet,se.defaultColor),re.strokePanel.onColorChanged=re.setStrokeColor,re.strokeWidthPanel=new lt("Line width",se.defaultStrokeWidths,se.defaultStrokeWidth),re.strokeWidthPanel.onWidthChanged=re.setStrokeWidth,re.strokeStylePanel=new _e("Line style",se.defaultStrokeDasharrays,se.defaultStrokeDasharray),re.strokeStylePanel.onStyleChanged=re.setStrokeDasharray,re}return Ke(te,ae),Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=ae.prototype.getState.call(this);return ee.typeName=te.typeName,ee},te.typeName="FrameMarker",te.title="Frame marker",te.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',te}(pt),nt=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"},it=function(ae){function te(ee,oe,se){var re=ae.call(this,ee,oe,se)||this;return re.x1=0,re.y1=0,re.x2=0,re.y2=0,re.defaultLength=50,re.manipulationStartX=0,re.manipulationStartY=0,re.manipulationStartX1=0,re.manipulationStartY1=0,re.manipulationStartX2=0,re.manipulationStartY2=0,re.setupControlBox(),re}return Ke(te,ae),te.prototype.ownsTarget=function(ee){return!!ae.prototype.ownsTarget.call(this,ee)||!(!this.grip1.ownsTarget(ee)&&!this.grip2.ownsTarget(ee))},te.prototype.pointerDown=function(ee,oe){ae.prototype.pointerDown.call(this,ee,oe),this.manipulationStartX=ee.x,this.manipulationStartY=ee.y,this.state==="new"&&(this.x1=ee.x,this.y1=ee.y,this.x2=ee.x,this.y2=ee.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(oe)?this.activeGrip=this.grip1:this.grip2.ownsTarget(oe)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},te.prototype.pointerUp=function(ee){var oe=this.state;ae.prototype.pointerUp.call(this,ee),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(ee),this._state="select",oe==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},te.prototype.adjustVisual=function(){},te.prototype.manipulate=function(ee){this.state==="creating"?this.resize(ee):this.state==="move"?(this.x1=this.manipulationStartX1+ee.x-this.manipulationStartX,this.y1=this.manipulationStartY1+ee.y-this.manipulationStartY,this.x2=this.manipulationStartX2+ee.x-this.manipulationStartX,this.y2=this.manipulationStartY2+ee.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(ee)},te.prototype.resize=function(ee){switch(this.activeGrip){case this.grip1:this.x1=ee.x,this.y1=ee.y;break;case this.grip2:case void 0:this.x2=ee.x,this.y2=ee.y}this.adjustVisual(),this.adjustControlBox()},te.prototype.select=function(){ae.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},te.prototype.deselect=function(){ae.prototype.deselect.call(this),this.controlBox.style.display="none"},te.prototype.setupControlBox=function(){this.controlBox=Se.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},te.prototype.adjustControlBox=function(){this.positionGrips()},te.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},te.prototype.createGrip=function(){var ee=new wt;return ee.visual.transform.baseVal.appendItem(Se.createTransform()),this.controlBox.appendChild(ee.visual),ee},te.prototype.positionGrips=function(){var ee=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-ee/2,this.y1-ee/2),this.positionGrip(this.grip2.visual,this.x2-ee/2,this.y2-ee/2)},te.prototype.positionGrip=function(ee,oe,se){var re=ee.transform.baseVal.getItem(0);re.setTranslate(oe,se),ee.transform.baseVal.replaceItem(re,0)},te.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},ae.prototype.getState.call(this))},te.prototype.restoreState=function(ee){ae.prototype.restoreState.call(this,ee);var oe=ee;this.x1=oe.x1,this.y1=oe.y1,this.x2=oe.x2,this.y2=oe.y2},te.prototype.scale=function(ee,oe){ae.prototype.scale.call(this,ee,oe),this.x1=this.x1*ee,this.y1=this.y1*oe,this.x2=this.x2*ee,this.y2=this.y2*oe,this.adjustVisual(),this.adjustControlBox()},te}(Ne),Ct=function(ae){function te(ee,oe,se){var re=ae.call(this,ee,oe,se)||this;return re.strokeColor="transparent",re.strokeWidth=0,re.strokeDasharray="",re.setStrokeColor=re.setStrokeColor.bind(re),re.setStrokeWidth=re.setStrokeWidth.bind(re),re.setStrokeDasharray=re.setStrokeDasharray.bind(re),re.strokeColor=se.defaultColor,re.strokeWidth=se.defaultStrokeWidth,re.strokeDasharray=se.defaultStrokeDasharray,re.strokePanel=new ke("Line color",se.defaultColorSet,se.defaultColor),re.strokePanel.onColorChanged=re.setStrokeColor,re.strokeWidthPanel=new lt("Line width",se.defaultStrokeWidths,se.defaultStrokeWidth),re.strokeWidthPanel.onWidthChanged=re.setStrokeWidth,re.strokeStylePanel=new _e("Line style",se.defaultStrokeDasharrays,se.defaultStrokeDasharray),re.strokeStylePanel.onStyleChanged=re.setStrokeDasharray,re}return Ke(te,ae),te.prototype.ownsTarget=function(ee){return!(!ae.prototype.ownsTarget.call(this,ee)&&ee!==this.visual&&ee!==this.selectorLine&&ee!==this.visibleLine)},te.prototype.createVisual=function(){this.visual=Se.createGroup(),this.selectorLine=Se.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=Se.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)},te.prototype.pointerDown=function(ee,oe){ae.prototype.pointerDown.call(this,ee,oe),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},te.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()),Se.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),Se.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),Se.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},te.prototype.setStrokeColor=function(ee){this.strokeColor=ee,this.adjustVisual(),this.colorChanged(ee)},te.prototype.setStrokeWidth=function(ee){this.strokeWidth=ee,this.adjustVisual()},te.prototype.setStrokeDasharray=function(ee){this.strokeDasharray=ee,this.adjustVisual(),this.stateChanged()},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},ae.prototype.getState.call(this));return ee.typeName=te.typeName,ee},te.prototype.restoreState=function(ee){ae.prototype.restoreState.call(this,ee);var oe=ee;this.strokeColor=oe.strokeColor,this.strokeWidth=oe.strokeWidth,this.strokeDasharray=oe.strokeDasharray,this.createVisual(),this.adjustVisual()},te.typeName="LineMarker",te.title="Line marker",te.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',te}(it),ze=function(ae){function te(ee,oe,se,re){var he=ae.call(this,ee,re||'<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 he.fonts=[],he.fontBoxes=[],he.fonts=oe,he.currentFont=se,he.setCurrentFont=he.setCurrentFont.bind(he),he}return Ke(te,ae),te.prototype.getUi=function(){var ee=this,oe=document.createElement("div");return oe.style.overflow="hidden",oe.style.flexGrow="2",this.fonts.forEach(function(se){var re=document.createElement("div");re.style.display="inline-block",re.style.alignItems="center",re.style.justifyContent="space-between",re.style.padding="5px",re.style.borderWidth="2px",re.style.borderStyle="solid",re.style.overflow="hidden",re.style.maxWidth=100/ee.fonts.length-5+"%",re.style.borderColor=se===ee.currentFont?ee.uiStyleSettings.toolboxAccentColor:"transparent",re.addEventListener("click",function(){ee.setCurrentFont(se,re)}),oe.appendChild(re);var he=document.createElement("div");he.style.display="flex",he.style.minHeight="20px",he.style.flexGrow="2",he.style.fontFamily=se,he.style.overflow="hidden";var be=document.createElement("div");be.style.whiteSpace="nowrap",be.style.overflow="hidden",be.style.textOverflow="ellipsis",be.innerHTML="The quick brown fox jumps over the lazy dog",he.appendChild(be),re.appendChild(he),ee.fontBoxes.push(re)}),oe},te.prototype.setCurrentFont=function(ee,oe){var se=this;this.currentFont=ee,this.fontBoxes.forEach(function(re){re.style.borderColor=re===oe?se.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},te}(Te),gt=function(ae){function te(ee,oe,se){var re=ae.call(this,ee,oe,se)||this;return re.color="transparent",re.padding=5,re.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",re.text=re.DEFAULT_TEXT,re.isMoved=!1,re.color=se.defaultColor,re.fontFamily=se.defaultFontFamily,re.defaultSize={x:100,y:30},re.setColor=re.setColor.bind(re),re.setFont=re.setFont.bind(re),re.renderText=re.renderText.bind(re),re.sizeText=re.sizeText.bind(re),re.textEditDivClicked=re.textEditDivClicked.bind(re),re.showTextEditor=re.showTextEditor.bind(re),re.setSize=re.setSize.bind(re),re.positionTextEditor=re.positionTextEditor.bind(re),re.colorPanel=new ke("Color",se.defaultColorSet,se.defaultColor),re.colorPanel.onColorChanged=re.setColor,re.fontFamilyPanel=new ze("Font",se.defaultFontFamilies,se.defaultFontFamily),re.fontFamilyPanel.onFontChanged=re.setFont,re}return Ke(te,ae),te.prototype.ownsTarget=function(ee){if(ae.prototype.ownsTarget.call(this,ee)||ee===this.visual||ee===this.textElement||ee===this.bgRectangle)return!0;var oe=!1;return this.textElement.childNodes.forEach(function(se){se===ee&&(oe=!0)}),oe},te.prototype.createVisual=function(){this.visual=Se.createGroup(),this.bgRectangle=Se.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=Se.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(Se.createTransform()),this.textElement.transform.baseVal.appendItem(Se.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},te.prototype.pointerDown=function(ee,oe){ae.prototype.pointerDown.call(this,ee,oe),this.isMoved=!1,this.pointerDownPoint=ee,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(ee),this._state="creating")},te.prototype.renderText=function(){var ee=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(oe){ee.textElement.appendChild(Se.createTSpan(oe.trim()===""?" ":oe.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},te.prototype.getTextScale=function(){var ee=this.textElement.getBBox(),oe=1;if(ee.width>0&&ee.height>0){var se=(1*this.width-this.width*this.padding*2/100)/ee.width,re=(1*this.height-this.height*this.padding*2/100)/ee.height;oe=Math.min(se,re)}return oe},te.prototype.getTextPosition=function(ee){var oe=this.textElement.getBBox(),se=0,re=0;return oe.width>0&&oe.height>0&&(se=(this.width-oe.width*ee)/2,re=this.height/2-oe.height*ee/2),{x:se,y:re}},te.prototype.sizeText=function(){var ee=this.textElement.getBBox(),oe=this.getTextScale(),se=this.getTextPosition(oe);se.y-=ee.y*oe,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+se.x+"px, "+se.y+"px) scale("+oe+", "+oe+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(se.x,se.y),this.textElement.transform.baseVal.getItem(1).setScale(oe,oe))},te.prototype.manipulate=function(ee){ae.prototype.manipulate.call(this,ee),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(ee.x-this.pointerDownPoint.x)>5||Math.abs(ee.y-this.pointerDownPoint.y)>5)},te.prototype.resize=function(ee){ae.prototype.resize.call(this,ee),this.isMoved=!0,this.setSize(),this.sizeText()},te.prototype.setSize=function(){ae.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(Se.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Se.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},te.prototype.pointerUp=function(ee){var oe=this.state;oe==="creating"&&(this._suppressMarkerCreateEvent=!0),ae.prototype.pointerUp.call(this,ee),this.setSize(),(oe==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},te.prototype.showTextEditor=function(){var ee=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(oe){oe.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var oe=Number.parseFloat(ee.textEditor.style.fontSize);ee.textEditor.clientWidth>=Number.parseInt(ee.textEditor.style.maxWidth)&&oe>.9;)oe-=.1,ee.textEditor.style.fontSize=Math.max(oe,.9)+"em"}),this.textEditor.addEventListener("keyup",function(oe){oe.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(oe){if(oe.clipboardData){var se=oe.clipboardData.getData("text"),re=window.getSelection();if(!re.rangeCount)return!1;re.deleteFromDocument(),re.getRangeAt(0).insertNode(document.createTextNode(se)),oe.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){ee.textEditDivClicked(ee.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},te.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var ee=this.getTextScale(),oe=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),se=this.textElement.getBBox(),re={x:se.width*ee,y:se.height*ee};oe.x-=re.x/2,oe.y-=re.y/2,this.textEditor.style.top=oe.y+"px",this.textEditor.style.left=oe.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-oe.x+"px",this.textEditor.style.fontSize=Math.max(16*ee,12)+"px",this.textElement.style.display="none"}},te.prototype.textEditDivClicked=function(ee){this.text=ee.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},te.prototype.select=function(){ae.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},te.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),ae.prototype.deselect.call(this)},te.prototype.dblClick=function(ee,oe){ae.prototype.dblClick.call(this,ee,oe),this.showTextEditor()},te.prototype.setColor=function(ee){this.textElement&&Se.setAttributes(this.textElement,[["fill",ee]]),this.color=ee,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(ee)},te.prototype.setFont=function(ee){this.textElement&&Se.setAttributes(this.textElement,[["font-family",ee]]),this.fontFamily=ee,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},te.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},te.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},ae.prototype.getState.call(this));return ee.typeName=te.typeName,ee},te.prototype.restoreState=function(ee){var oe=ee;this.color=oe.color,this.fontFamily=oe.fontFamily,this.padding=oe.padding,this.text=oe.text,this.createVisual(),ae.prototype.restoreState.call(this,ee),this.setSize()},te.prototype.scale=function(ee,oe){ae.prototype.scale.call(this,ee,oe),this.setSize(),this.sizeText(),this.positionTextEditor()},te.typeName="TextMarker",te.title="Text marker",te.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>',te}(bt),ut=function(ae){function te(ee,oe,se){var re=ae.call(this,ee,oe,se)||this;return re.color="transparent",re.lineWidth=3,re.drawing=!1,re.pixelRatio=1,re.color=se.defaultColor,re.lineWidth=se.defaultStrokeWidth,re.pixelRatio=se.freehandPixelRatio,re.setColor=re.setColor.bind(re),re.addCanvas=re.addCanvas.bind(re),re.finishCreation=re.finishCreation.bind(re),re.setLineWidth=re.setLineWidth.bind(re),re.colorPanel=new ke("Color",se.defaultColorSet,se.defaultColor),re.colorPanel.onColorChanged=re.setColor,re.lineWidthPanel=new lt("Line width",se.defaultStrokeWidths,se.defaultStrokeWidth),re.lineWidthPanel.onWidthChanged=re.setLineWidth,re}return Ke(te,ae),te.prototype.ownsTarget=function(ee){return!(!ae.prototype.ownsTarget.call(this,ee)&&ee!==this.visual&&ee!==this.drawingImage)},te.prototype.createVisual=function(){this.visual=Se.createGroup(),this.drawingImage=Se.createImage(),this.visual.appendChild(this.drawingImage);var ee=Se.createTransform();this.visual.transform.baseVal.appendItem(ee),this.addMarkerVisualToContainer(this.visual)},te.prototype.pointerDown=function(ee,oe){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(ee.x,ee.y),this.drawing=!0):ae.prototype.pointerDown.call(this,ee,oe)},te.prototype.manipulate=function(ee){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(ee.x,ee.y),this.canvasContext.stroke()):ae.prototype.manipulate.call(this,ee)},te.prototype.resize=function(ee){ae.prototype.resize.call(this,ee),Se.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Se.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},te.prototype.pointerUp=function(ee){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):ae.prototype.pointerUp.call(this,ee)},te.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)},te.prototype.select=function(){this.state==="creating"&&this.finishCreation(),ae.prototype.select.call(this)},te.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),ae.prototype.deselect.call(this)},te.prototype.finishCreation=function(){for(var ee=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),oe=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],se=oe[0],re=oe[1],he=oe[2],be=oe[3],ht=!1,Me=0;Me<this.canvasElement.height;Me++)for(var Ye=0;Ye<this.canvasElement.width;Ye++)ee.data[Me*this.canvasElement.width*4+4*Ye+3]>0&&(ht=!0,Me<re&&(re=Me),Ye<se&&(se=Ye),Me>be&&(be=Me),Ye>he&&(he=Ye));if(ht){this.left=se/this.pixelRatio,this.top=re/this.pixelRatio,this.width=(he-se)/this.pixelRatio,this.height=(be-re)/this.pixelRatio;var mt=document.createElement("canvas");mt.width=he-se,mt.height=be-re,mt.getContext("2d").putImageData(this.canvasContext.getImageData(se,re,he-se,be-re),0,0),this.drawingImgUrl=mt.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},te.prototype.setDrawingImage=function(){Se.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),Se.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},te.prototype.setColor=function(ee){this.color=ee,this.colorChanged(ee)},te.prototype.setLineWidth=function(ee){this.lineWidth=ee},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=Object.assign({drawingImgUrl:this.drawingImgUrl},ae.prototype.getState.call(this));return ee.typeName=te.typeName,ee},te.prototype.restoreState=function(ee){this.createVisual(),ae.prototype.restoreState.call(this,ee),this.drawingImgUrl=ee.drawingImgUrl,this.setDrawingImage()},te.prototype.scale=function(ee,oe){ae.prototype.scale.call(this,ee,oe),this.setDrawingImage()},te.typeName="FreehandMarker",te.title="Freehand marker",te.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>',te}(bt),pe=function(ae){function te(ee,oe,se){var re=ae.call(this,ee,se||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return re.typeBoxes=[],re.currentType=oe,re.setCurrentType=re.setCurrentType.bind(re),re}return Ke(te,ae),te.prototype.getUi=function(){var ee=this,oe=document.createElement("div");oe.style.display="flex",oe.style.overflow="hidden",oe.style.flexGrow="2";for(var se=function(be){var ht="both";switch(be){case 0:ht="both";break;case 1:ht="start";break;case 2:ht="end";break;case 3:ht="none"}var Me=document.createElement("div");if(Me.style.display="flex",Me.style.flexGrow="2",Me.style.alignItems="center",Me.style.justifyContent="space-between",Me.style.padding="5px",Me.style.borderWidth="2px",Me.style.borderStyle="solid",Me.style.borderColor=ht===re.currentType?re.uiStyleSettings.toolboxAccentColor:"transparent",Me.addEventListener("click",function(){ee.setCurrentType(ht,Me)}),oe.appendChild(Me),ht==="both"||ht==="start"){var Ye=document.createElement("div");Ye.style.display="flex",Ye.style.alignItems="center",Ye.style.minHeight="20px",Ye.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="`+(re.uiStyleSettings!==void 0?re.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,Ye.style.marginLeft="5px",Me.appendChild(Ye)}var mt=document.createElement("div");mt.style.display="flex",mt.style.alignItems="center",mt.style.minHeight="20px",mt.style.flexGrow="2";var It=document.createElement("hr");if(It.style.minWidth="20px",It.style.border="0px",It.style.borderTop="3px solid "+(re.uiStyleSettings!==void 0?re.uiStyleSettings.toolboxColor:"#eeeeee"),It.style.flexGrow="2",mt.appendChild(It),Me.appendChild(mt),ht==="both"||ht==="end"){var xt=document.createElement("div");xt.style.display="flex",xt.style.alignItems="center",xt.style.minHeight="20px",xt.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="`+(re.uiStyleSettings!==void 0?re.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
</svg>`,xt.style.marginRight="5px",Me.appendChild(xt)}re.typeBoxes.push(Me)},re=this,he=0;he<4;he++)se(he);return oe},te.prototype.setCurrentType=function(ee,oe){var se=this;this.currentType=ee,this.typeBoxes.forEach(function(re){re.style.borderColor=re===oe?se.uiStyleSettings!==void 0?se.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},te}(Te),At=function(ae){function te(ee,oe,se){var re=ae.call(this,ee,oe,se)||this;return re.arrowType="end",re.arrowBaseHeight=10,re.arrowBaseWidth=10,re.getArrowPoints=re.getArrowPoints.bind(re),re.setArrowType=re.setArrowType.bind(re),re.arrowTypePanel=new pe("Arrow type","end"),re.arrowTypePanel.onArrowTypeChanged=re.setArrowType,re}return Ke(te,ae),te.prototype.ownsTarget=function(ee){return!(!ae.prototype.ownsTarget.call(this,ee)&&ee!==this.arrow1&&ee!==this.arrow2)},te.prototype.getArrowPoints=function(ee,oe){var se=this.arrowBaseWidth+2*this.strokeWidth,re=this.arrowBaseHeight+2*this.strokeWidth;return ee-se/2+","+(oe+re/2)+" "+ee+","+(oe-re/2)+" "+(ee+se/2)+","+(oe+re/2)},te.prototype.createTips=function(){this.arrow1=Se.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(Se.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=Se.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(Se.createTransform()),this.visual.appendChild(this.arrow2)},te.prototype.pointerDown=function(ee,oe){ae.prototype.pointerDown.call(this,ee,oe),this.state==="creating"&&this.createTips()},te.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",Se.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),Se.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var ee=0;Math.abs(this.x1-this.x2)>.1&&(ee=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var oe=this.arrow1.transform.baseVal.getItem(0);oe.setRotate(ee,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(oe,0);var se=this.arrow2.transform.baseVal.getItem(0);se.setRotate(ee+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(se,0)}},te.prototype.setArrowType=function(ee){this.arrowType=ee,this.adjustVisual(),this.stateChanged()},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=Object.assign({arrowType:this.arrowType},ae.prototype.getState.call(this));return ee.typeName=te.typeName,ee},te.prototype.restoreState=function(ee){ae.prototype.restoreState.call(this,ee);var oe=ee;this.arrowType=oe.arrowType,this.createTips(),this.adjustVisual()},te.typeName="ArrowMarker",te.title="Arrow marker",te.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',te}(Ct),Be=function(ae){function te(ee,oe,se){var re=ae.call(this,ee,oe,se)||this;return re.fillColor=se.defaultFillColor,re.strokeWidth=0,re.fillPanel=new ke("Color",se.defaultColorSet,se.defaultFillColor),re.fillPanel.onColorChanged=re.setFillColor,re}return Ke(te,ae),Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=ae.prototype.getState.call(this);return ee.typeName=te.typeName,ee},te.typeName="CoverMarker",te.title="Cover marker",te.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',te}(pt),Nt=function(ae){function te(ee,oe,se,re){var he=ae.call(this,ee,re||'<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 he.opacities=[],he.opacityBoxes=[],he.opacities=oe,he.currentOpacity=se,he.setCurrentOpacity=he.setCurrentOpacity.bind(he),he}return Ke(te,ae),te.prototype.getUi=function(){var ee=this,oe=document.createElement("div");return oe.style.display="flex",oe.style.overflow="hidden",oe.style.flexGrow="2",oe.style.justifyContent="space-between",this.opacities.forEach(function(se){var re=document.createElement("div");re.style.display="flex",re.style.alignItems="center",re.style.justifyContent="center",re.style.padding="5px",re.style.borderWidth="2px",re.style.borderStyle="solid",re.style.borderColor=se===ee.currentOpacity?ee.uiStyleSettings.toolboxAccentColor:"transparent",re.addEventListener("click",function(){ee.setCurrentOpacity(se,re)}),oe.appendChild(re);var he=document.createElement("div");he.innerText=100*se+"%",re.appendChild(he),ee.opacityBoxes.push(re)}),oe},te.prototype.setCurrentOpacity=function(ee,oe){var se=this;this.currentOpacity=ee,this.opacityBoxes.forEach(function(re){re.style.borderColor=re===oe?se.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},te}(Te),on=function(ae){function te(ee,oe,se){var re=ae.call(this,ee,oe,se)||this;return re.setOpacity=re.setOpacity.bind(re),re.fillColor=se.defaultHighlightColor,re.strokeWidth=0,re.opacity=se.defaultHighlightOpacity,re.fillPanel=new ke("Color",se.defaultColorSet,re.fillColor),re.fillPanel.onColorChanged=re.setFillColor,re.opacityPanel=new Nt("Opacity",se.defaultOpacitySteps,re.opacity),re.opacityPanel.onOpacityChanged=re.setOpacity,re}return Ke(te,ae),te.prototype.setOpacity=function(ee){this.opacity=ee,this.visual&&Se.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=ae.prototype.getState.call(this);return ee.typeName=te.typeName,ee},te.typeName="HighlightMarker",te.title="Highlight marker",te.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>',te}(Be),Ee='<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>',fe='<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>',Et=function(ae){function te(ee,oe,se){var re=ae.call(this,ee,oe,se)||this;return re.bgColor="transparent",re.tipPosition={x:0,y:0},re.tipBase1Position={x:0,y:0},re.tipBase2Position={x:0,y:0},re.tipMoving=!1,re.color=se.defaultStrokeColor,re.bgColor=se.defaultFillColor,re.fontFamily=se.defaultFontFamily,re.defaultSize={x:100,y:30},re.setBgColor=re.setBgColor.bind(re),re.getTipPoints=re.getTipPoints.bind(re),re.positionTip=re.positionTip.bind(re),re.setTipPoints=re.setTipPoints.bind(re),re.colorPanel=new ke("Text color",se.defaultColorSet,re.color,Ee),re.colorPanel.onColorChanged=re.setColor,re.bgColorPanel=new ke("Fill color",se.defaultColorSet,re.bgColor,fe),re.bgColorPanel.onColorChanged=re.setBgColor,re.fontFamilyPanel=new ze("Font",se.defaultFontFamilies,se.defaultFontFamily),re.fontFamilyPanel.onFontChanged=re.setFont,re.tipGrip=new wt,re.tipGrip.visual.transform.baseVal.appendItem(Se.createTransform()),re.controlBox.appendChild(re.tipGrip.visual),re}return Ke(te,ae),te.prototype.ownsTarget=function(ee){return ae.prototype.ownsTarget.call(this,ee)||this.tipGrip.ownsTarget(ee)||this.tip===ee},te.prototype.createTip=function(){Se.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=Se.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},te.prototype.pointerDown=function(ee,oe){this.state==="new"&&ae.prototype.pointerDown.call(this,ee,oe),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(oe)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):ae.prototype.pointerDown.call(this,ee,oe)},te.prototype.pointerUp=function(ee){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,ae.prototype.pointerUp.call(this,ee);else{var oe=this.state==="creating";ae.prototype.pointerUp.call(this,ee),this.setTipPoints(oe),this.positionTip()}},te.prototype.manipulate=function(ee){if(this.tipMoving){var oe=this.unrotatePoint(ee);this.tipPosition={x:oe.x-this.manipulationStartLeft,y:oe.y-this.manipulationStartTop},this.positionTip()}else ae.prototype.manipulate.call(this,ee)},te.prototype.setBgColor=function(ee){this.bgRectangle&&this.tip&&(Se.setAttributes(this.bgRectangle,[["fill",ee]]),Se.setAttributes(this.tip,[["fill",ee]])),this.bgColor=ee,this.fillColorChanged(ee)},te.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},te.prototype.setTipPoints=function(ee){ee===void 0&&(ee=!1);var oe=Math.min(this.height/2,15),se=this.height/5;ee&&(this.tipPosition={x:oe+se/2,y:this.height+20});var re=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?re<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(se=this.width/5,oe=Math.min(this.width/2,15),this.tipBase1Position={x:oe,y:0},this.tipBase2Position={x:oe+se,y:0}):(this.tipBase1Position={x:0,y:oe},this.tipBase2Position={x:0,y:oe+se}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?re<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(se=this.width/5,oe=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-oe-se,y:0},this.tipBase2Position={x:this.width-oe,y:0}):(this.tipBase1Position={x:this.width,y:oe},this.tipBase2Position={x:this.width,y:oe+se}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?re<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(se=this.width/5,oe=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-oe-se,y:this.height},this.tipBase2Position={x:this.width-oe,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-oe-se},this.tipBase2Position={x:this.width,y:this.height-oe}):re<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(se=this.width/5,oe=Math.min(this.width/2,15),this.tipBase1Position={x:oe,y:this.height},this.tipBase2Position={x:oe+se,y:this.height}):(this.tipBase1Position={x:0,y:this.height-oe},this.tipBase2Position={x:0,y:this.height-oe-se})},te.prototype.resize=function(ee){ae.prototype.resize.call(this,ee),this.positionTip()},te.prototype.positionTip=function(){Se.setAttributes(this.tip,[["points",this.getTipPoints()]]);var ee=this.tipGrip.visual.transform.baseVal.getItem(0);ee.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(ee,0)},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),te.prototype.select=function(){this.positionTip(),ae.prototype.select.call(this)},te.prototype.getState=function(){var ee=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},ae.prototype.getState.call(this));return ee.typeName=te.typeName,ee},te.prototype.restoreState=function(ee){var oe=ee;this.bgColor=oe.bgColor,this.tipPosition=oe.tipPosition,ae.prototype.restoreState.call(this,ee),this.createTip(),this.setTipPoints()},te.prototype.scale=function(ee,oe){ae.prototype.scale.call(this,ee,oe),this.tipPosition={x:this.tipPosition.x*ee,y:this.tipPosition.y*oe},this.positionTip()},te.typeName="CalloutMarker",te.title="Callout marker",te.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>',te}(gt),Jt=function(ae){function te(ee,oe,se){var re=ae.call(this,ee,oe,se)||this;return re.fillColor="transparent",re.strokeColor="transparent",re.strokeWidth=0,re.strokeDasharray="",re.opacity=1,re.strokeColor=se.defaultColor,re.strokeWidth=se.defaultStrokeWidth,re.strokeDasharray=se.defaultStrokeDasharray,re.fillColor=se.defaultFillColor,re.setStrokeColor=re.setStrokeColor.bind(re),re.setFillColor=re.setFillColor.bind(re),re.setStrokeWidth=re.setStrokeWidth.bind(re),re.setStrokeDasharray=re.setStrokeDasharray.bind(re),re.setOpacity=re.setOpacity.bind(re),re.createVisual=re.createVisual.bind(re),re.strokePanel=new ke("Line color",xe(se.defaultColorSet,["transparent"]),se.defaultColor),re.strokePanel.onColorChanged=re.setStrokeColor,re.fillPanel=new ke("Fill color",xe(se.defaultColorSet,["transparent"]),re.fillColor,fe),re.fillPanel.onColorChanged=re.setFillColor,re.strokeWidthPanel=new lt("Line width",se.defaultStrokeWidths,se.defaultStrokeWidth),re.strokeWidthPanel.onWidthChanged=re.setStrokeWidth,re.strokeStylePanel=new _e("Line style",se.defaultStrokeDasharrays,se.defaultStrokeDasharray),re.strokeStylePanel.onStyleChanged=re.setStrokeDasharray,re.opacityPanel=new Nt("Opacity",se.defaultOpacitySteps,re.opacity),re.opacityPanel.onOpacityChanged=re.setOpacity,re}return Ke(te,ae),te.prototype.ownsTarget=function(ee){return!(!ae.prototype.ownsTarget.call(this,ee)&&ee!==this.visual)},te.prototype.createVisual=function(){this.visual=Se.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)},te.prototype.pointerDown=function(ee,oe){ae.prototype.pointerDown.call(this,ee,oe),this.state==="new"&&(this.createVisual(),this.moveVisual(ee),this._state="creating")},te.prototype.manipulate=function(ee){ae.prototype.manipulate.call(this,ee)},te.prototype.resize=function(ee){ae.prototype.resize.call(this,ee),this.setSize()},te.prototype.setSize=function(){ae.prototype.setSize.call(this),Se.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},te.prototype.pointerUp=function(ee){ae.prototype.pointerUp.call(this,ee),this.setSize()},te.prototype.setStrokeColor=function(ee){this.strokeColor=ee,this.visual&&Se.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(ee),this.stateChanged()},te.prototype.setFillColor=function(ee){this.fillColor=ee,this.visual&&Se.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(ee),this.stateChanged()},te.prototype.setStrokeWidth=function(ee){this.strokeWidth=ee,this.visual&&Se.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},te.prototype.setStrokeDasharray=function(ee){this.strokeDasharray=ee,this.visual&&Se.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},te.prototype.setOpacity=function(ee){this.opacity=ee,this.visual&&Se.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},ae.prototype.getState.call(this));return ee.typeName=te.typeName,ee},te.prototype.restoreState=function(ee){var oe=ee;this.fillColor=oe.fillColor,this.strokeColor=oe.strokeColor,this.strokeWidth=oe.strokeWidth,this.strokeDasharray=oe.strokeDasharray,this.opacity=oe.opacity,this.createVisual(),ae.prototype.restoreState.call(this,ee),this.setSize()},te.prototype.scale=function(ee,oe){ae.prototype.scale.call(this,ee,oe),this.setSize()},te.typeName="EllipseMarker",te.title="Ellipse marker",te.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>',te}(bt),Dt=function(ae){function te(ee,oe,se){return ae.call(this,ee,oe,se)||this}return Ke(te,ae),Object.defineProperty(te.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),te.prototype.ownsTarget=function(ee){return!(!ae.prototype.ownsTarget.call(this,ee)&&ee!==this.tip1&&ee!==this.tip2)},te.prototype.createTips=function(){this.tip1=Se.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(Se.createTransform()),this.visual.appendChild(this.tip1),this.tip2=Se.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(Se.createTransform()),this.visual.appendChild(this.tip2)},te.prototype.pointerDown=function(ee,oe){ae.prototype.pointerDown.call(this,ee,oe),this.state==="creating"&&this.createTips()},te.prototype.adjustVisual=function(){if(ae.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(Se.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()]]),Se.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 ee=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),oe=this.tip1.transform.baseVal.getItem(0);oe.setRotate(ee,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(oe,0);var se=this.tip2.transform.baseVal.getItem(0);se.setRotate(ee+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(se,0)}},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=ae.prototype.getState.call(this);return ee.typeName=te.typeName,ee},te.prototype.restoreState=function(ee){ae.prototype.restoreState.call(this,ee),this.createTips(),this.adjustVisual()},te.typeName="MeasurementMarker",te.title="Measurement marker",te.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>',te}(Ct),We=function(ae){function te(ee,oe,se){var re=ae.call(this,ee,oe,se)||this;return re.strokePanel.colors=se.defaultColorSet,re.fillColor="transparent",re}return Ke(te,ae),Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=ae.prototype.getState.call(this);return ee.typeName=te.typeName,ee},te.typeName="EllipseFrameMarker",te.title="Ellipse frame marker",te.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>',te}(Jt),ot=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(te){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(te)||(this.undoStack.push(te),JSON.stringify(this.lastRedoStep)!==JSON.stringify(te)&&this.redoStack.splice(0,this.redoStack.length))},ae.prototype.replaceLastUndoStep=function(te){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=te)},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 te=this.undoStack.pop();return te!==void 0&&this.redoStack.push(te),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}(),dt=function(ae){function te(ee,oe,se){var re=ae.call(this,ee,oe,se)||this;return re.strokeColor="transparent",re.strokeWidth=0,re.strokeDasharray="",re.curveX=0,re.curveY=0,re.manipulationStartCurveX=0,re.manipulationStartCurveY=0,re.setStrokeColor=re.setStrokeColor.bind(re),re.setStrokeWidth=re.setStrokeWidth.bind(re),re.setStrokeDasharray=re.setStrokeDasharray.bind(re),re.positionGrips=re.positionGrips.bind(re),re.addControlGrips=re.addControlGrips.bind(re),re.adjustVisual=re.adjustVisual.bind(re),re.setupControlBox=re.setupControlBox.bind(re),re.resize=re.resize.bind(re),re.strokeColor=se.defaultColor,re.strokeWidth=se.defaultStrokeWidth,re.strokeDasharray=se.defaultStrokeDasharray,re.strokePanel=new ke("Line color",se.defaultColorSet,se.defaultColor),re.strokePanel.onColorChanged=re.setStrokeColor,re.strokeWidthPanel=new lt("Line width",se.defaultStrokeWidths,se.defaultStrokeWidth),re.strokeWidthPanel.onWidthChanged=re.setStrokeWidth,re.strokeStylePanel=new _e("Line style",se.defaultStrokeDasharrays,se.defaultStrokeDasharray),re.strokeStylePanel.onStyleChanged=re.setStrokeDasharray,re}return Ke(te,ae),te.prototype.ownsTarget=function(ee){return!(!ae.prototype.ownsTarget.call(this,ee)&&ee!==this.visual&&ee!==this.selectorCurve&&ee!==this.visibleCurve&&!this.curveGrip.ownsTarget(ee))},te.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},te.prototype.createVisual=function(){this.visual=Se.createGroup(),this.selectorCurve=Se.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=Se.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)},te.prototype.pointerDown=function(ee,oe){ae.prototype.pointerDown.call(this,ee,oe),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=ee.x,this.curveY=ee.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(oe)&&(this.activeGrip=this.curveGrip,this._state="resize")},te.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),Se.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),Se.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),Se.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},te.prototype.setupControlBox=function(){ae.prototype.setupControlBox.call(this),this.curveControlLine1=Se.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=Se.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)},te.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,ae.prototype.addControlGrips.call(this)},te.prototype.positionGrips=function(){ae.prototype.positionGrips.call(this);var ee=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-ee/2,this.curveY-ee/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()))},te.prototype.manipulate=function(ee){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+ee.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+ee.y-this.manipulationStartY),ae.prototype.manipulate.call(this,ee)},te.prototype.resize=function(ee){this.activeGrip===this.curveGrip&&(this.curveX=ee.x,this.curveY=ee.y),ae.prototype.resize.call(this,ee),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},te.prototype.setStrokeColor=function(ee){this.strokeColor=ee,this.adjustVisual(),this.colorChanged(ee)},te.prototype.setStrokeWidth=function(ee){this.strokeWidth=ee,this.adjustVisual()},te.prototype.setStrokeDasharray=function(ee){this.strokeDasharray=ee,this.adjustVisual()},te.prototype.scale=function(ee,oe){this.curveX=this.curveX*ee,this.curveY=this.curveY*oe,ae.prototype.scale.call(this,ee,oe)},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},ae.prototype.getState.call(this));return ee.typeName=te.typeName,ee},te.prototype.restoreState=function(ee){ae.prototype.restoreState.call(this,ee);var oe=ee;this.strokeColor=oe.strokeColor,this.strokeWidth=oe.strokeWidth,this.strokeDasharray=oe.strokeDasharray,this.curveX=oe.curveX,this.curveY=oe.curveY,this.createVisual(),this.adjustVisual()},te.typeName="CurveMarker",te.title="Curve marker",te.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>',te}(it),$t=function(ae){function te(ee,oe,se){var re=ae.call(this,ee,oe,se)||this;return re.fillColor="transparent",re.strokeColor="transparent",re.strokeWidth=0,re.strokeDasharray="",re.textColor="transparent",re.fontSize="1rem",re.isMoved=!1,re.captionText="Caption",re.PADDING=5,re.captionBoxWidth=0,re.captionBoxHeight=0,re.strokeColor=se.defaultColor,re.strokeWidth=se.defaultStrokeWidth,re.strokeDasharray=se.defaultStrokeDasharray,re.fillColor=se.defaultFillColor,re.textColor=se.defaultStrokeColor,re.fontFamily=se.defaultFontFamily,re.fontSize=se.defaultCaptionFontSize,re.captionText=se.defaultCaptionText,re.setStrokeColor=re.setStrokeColor.bind(re),re.setFillColor=re.setFillColor.bind(re),re.setStrokeWidth=re.setStrokeWidth.bind(re),re.setStrokeDasharray=re.setStrokeDasharray.bind(re),re.createVisual=re.createVisual.bind(re),re.sizeCaption=re.sizeCaption.bind(re),re.setCaptionText=re.setCaptionText.bind(re),re.showTextEditor=re.showTextEditor.bind(re),re.positionTextEditor=re.positionTextEditor.bind(re),re.finishTextEditing=re.finishTextEditing.bind(re),re.setFont=re.setFont.bind(re),re.setTextColor=re.setTextColor.bind(re),re.strokePanel=new ke("Line color",xe(se.defaultColorSet,["transparent"]),re.strokeColor),re.strokePanel.onColorChanged=re.setStrokeColor,re.fillPanel=new ke("Fill color",xe(se.defaultColorSet,["transparent"]),re.fillColor,fe),re.fillPanel.onColorChanged=re.setFillColor,re.strokeWidthPanel=new lt("Line width",se.defaultStrokeWidths,se.defaultStrokeWidth),re.strokeWidthPanel.onWidthChanged=re.setStrokeWidth,re.strokeStylePanel=new _e("Line style",se.defaultStrokeDasharrays,se.defaultStrokeDasharray),re.strokeStylePanel.onStyleChanged=re.setStrokeDasharray,re.fontFamilyPanel=new ze("Font",se.defaultFontFamilies,se.defaultFontFamily),re.fontFamilyPanel.onFontChanged=re.setFont,re.textColorPanel=new ke("Text color",se.defaultColorSet,re.textColor,Ee),re.textColorPanel.onColorChanged=re.setTextColor,re}return Ke(te,ae),te.prototype.ownsTarget=function(ee){return!(!ae.prototype.ownsTarget.call(this,ee)&&ee!==this.visual&&ee!==this.frame&&ee!==this.captionBg&&ee!==this.captionElement)},te.prototype.createVisual=function(){this.visual=Se.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=Se.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=Se.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=Se.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()},te.prototype.setCaptionText=function(ee){this.captionText=ee,this.captionElement.textContent=this.captionText,this.sizeCaption()},te.prototype.pointerDown=function(ee,oe){ae.prototype.pointerDown.call(this,ee,oe),this.isMoved=!1,this.pointerDownPoint=ee,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(ee),this._state="creating")},te.prototype.manipulate=function(ee){ae.prototype.manipulate.call(this,ee),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(ee.x-this.pointerDownPoint.x)>5||Math.abs(ee.y-this.pointerDownPoint.y)>5)},te.prototype.resize=function(ee){ae.prototype.resize.call(this,ee),this.setSize()},te.prototype.sizeCaption=function(){var ee=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=ee.width+2*this.PADDING,this.captionBoxHeight=ee.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),Se.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')"]]),Se.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')"]])},te.prototype.showTextEditor=function(){var ee=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(oe){oe.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(oe){oe.key==="Enter"&&ee.finishTextEditing(ee.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(oe){oe.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){ee.finishTextEditing(ee.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){ee.finishTextEditing(ee.textEditBox.value)}),this.positionTextEditor(),this.textEditBox.focus()},te.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"))},te.prototype.finishTextEditing=function(ee){this.setCaptionText(ee.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},te.prototype.setFont=function(ee){this.captionElement&&Se.setAttributes(this.captionElement,[["font-family",ee]]),this.fontFamily=ee,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},te.prototype.setTextColor=function(ee){this.captionElement&&Se.setAttributes(this.captionElement,[["fill",ee]]),this.textColor=ee,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},te.prototype.setSize=function(){ae.prototype.setSize.call(this),Se.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},te.prototype.pointerUp=function(ee){ae.prototype.pointerUp.call(this,ee),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},te.prototype.dblClick=function(ee,oe){ae.prototype.dblClick.call(this,ee,oe),this.showTextEditor()},te.prototype.setStrokeColor=function(ee){this.strokeColor=ee,this.frame&&Se.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(ee),this.stateChanged()},te.prototype.setFillColor=function(ee){this.fillColor=ee,this.captionBg&&Se.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(ee),this.stateChanged()},te.prototype.setStrokeWidth=function(ee){this.strokeWidth=ee,this.frame&&Se.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},te.prototype.setStrokeDasharray=function(ee){this.strokeDasharray=ee,this.frame&&Se.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(te.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),te.prototype.getState=function(){var ee=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 ee.typeName=this.typeName,ee},te.prototype.restoreState=function(ee){var oe=ee;this.fillColor=oe.fillColor,this.strokeColor=oe.strokeColor,this.strokeWidth=oe.strokeWidth,this.strokeDasharray=oe.strokeDasharray,this.textColor=oe.textColor,this.fontFamily=oe.fontFamily,this.captionText=oe.captionText,this.fontSize=oe.fontSize,this.createVisual(),ae.prototype.restoreState.call(this,ee),this.setSize()},te.prototype.scale=function(ee,oe){ae.prototype.scale.call(this,ee,oe),this.setSize()},te.typeName="CaptionFrameMarker",te.title="Caption frame marker",te.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>',te}(bt),Lt=function(){function ae(te,ee){ee===void 0&&(ee=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=te,this.cancelable=ee}return Object.defineProperty(ae.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),ae.prototype.preventDefault=function(){this._defaultPrevented=!0},ae}(),Vt=function(ae){function te(ee,oe,se){var re=ae.call(this,ee,!1)||this;return re.dataUrl=oe,re.state=se,re}return Ke(te,ae),te}(Lt),rt=function(ae){function te(ee,oe,se){se===void 0&&(se=!1);var re=ae.call(this,ee,se)||this;return re.marker=oe,re}return Ke(te,ae),te}(Lt),Ht=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(te,ee){this[te].push(ee)},ae.prototype.removeEventListener=function(te,ee){var oe=this[te].indexOf(ee);oe>-1&&this[te].splice(oe,1)},ae}(),st=function(){function ae(te){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new nt,this._isOpen=!1,this.undoRedoManager=new ot,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 Ht,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=ae.instanceCounter++,this.styles=new de(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=te,this.targetRoot=document.body,this.width=te.clientWidth,this.height=te.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[kt,ut,At,gt,We,Jt,on,Et,Dt,Be,Ct,dt,$t]},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[kt,ut,At,gt,Jt,on,Et]},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"BASIC_MARKER_TYPES",{get:function(){return[kt,ut,At,gt,on]},enumerable:!1,configurable:!0}),Object.defineProperty(ae.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(te){var ee=this;this._availableMarkerTypes.splice(0),te.forEach(function(oe){if(typeof oe=="string"){var se=ee.ALL_MARKER_TYPES.find(function(re){return re.typeName===oe});se!==void 0&&ee._availableMarkerTypes.push(se)}else ee._availableMarkerTypes.push(oe)})},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(te){this._zoomLevel=te,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(),De.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},ae.prototype.show=function(){var te=this;this.styles.styleSheetRoot===void 0&&Pe.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=Pe.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(ee){return ee(new Lt(te))})},ae.prototype.render=function(){return ge(this,void 0,void 0,function(){var te;return Ze(this,function(ee){switch(ee.label){case 0:return this.setCurrentMarker(),(te=new Ue).naturalSize=this.renderAtNaturalSize,te.imageType=this.renderImageType,te.imageQuality=this.renderImageQuality,te.markersOnly=this.renderMarkersOnly,te.width=this.renderWidth,te.height=this.renderHeight,[4,te.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return ee.sent(),[4,te.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,ee.sent()]}})})},ae.prototype.close=function(te){var ee=this;if(te===void 0&&(te=!1),this.isOpen){var oe=!1;te||this.eventListeners.beforeclose.forEach(function(se){var re=new Lt(ee,!0);se(re),re.defaultPrevented&&(oe=!0)}),oe||(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 Lt(ee))}),this.detachEvents(),this._isOpen=!1)}},ae.prototype.addMarkersToToolbar=function(){for(var te,ee=[],oe=0;oe<arguments.length;oe++)ee[oe]=arguments[oe];(te=this._availableMarkerTypes).push.apply(te,ee)},ae.prototype.addRenderEventListener=function(te){this.addEventListener("render",function(ee){te(ee.dataUrl,ee.state)})},ae.prototype.removeRenderEventListener=function(te){},ae.prototype.addCloseEventListener=function(te){this.addEventListener("close",function(){te()})},ae.prototype.removeCloseEventListener=function(te){},ae.prototype.setupResizeObserver=function(){var te=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){te.resize(te.target.clientWidth,te.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return te.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},ae.prototype.onPopupTargetResize=function(){var te=1*this.target.clientWidth/this.target.clientHeight,ee=this.editorCanvas.clientWidth/te>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*te:this.editorCanvas.clientWidth,oe=ee<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/te;this.resize(ee,oe)},ae.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},ae.prototype.resize=function(te,ee){this._isResizing=!0;var oe=te/this.imageWidth,se=ee/this.imageHeight;this.imageWidth=Math.round(te),this.imageHeight=Math.round(ee),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(oe,se),this._isResizing=!1},ae.prototype.scaleMarkers=function(te,ee){var oe,se=this;this._currentMarker&&this._currentMarker instanceof gt?this._currentMarker.scale(te,ee):(oe=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(re){re!==se._currentMarker&&re.scale(te,ee)}),oe!==void 0&&this.setCurrentMarker(oe)},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 te=this.editingTarget.getBoundingClientRect(),ee=this.editorCanvas.getBoundingClientRect();this.left=te.left-ee.left,this.top=te.top-ee.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 te,ee=[],oe=0;oe<arguments.length;oe++)ee[oe]=arguments[oe];this.defs=Se.createDefs(),this.addDefsToImage(),(te=this.defs).append.apply(te,ee)},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 te=document.createElement("a");te.href="https://markerjs.com/",te.target="_blank",te.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>',te.title="Powered by marker.js",te.style.display="grid",te.style.alignItems="center",te.style.justifyItems="center",te.style.padding="3px",te.style.width="20px",te.style.height="20px",this.logoUI.appendChild(te),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 te=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=te+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px",this.coverDiv.style.width=this.target.offsetWidth.toString()+"px",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"5";break;case"popup":this.coverDiv.style.position="absolute",this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=window.innerHeight+"px",this.coverDiv.style.backgroundColor="rgba(0, 0, 0, 0.75)",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"1000",this.coverDiv.style.display="flex"}this.targetRoot.appendChild(this.coverDiv),this.uiDiv=document.createElement("div"),this.uiDiv.style.display="flex",this.uiDiv.style.flexDirection="column",this.uiDiv.style.flexGrow="2",this.uiDiv.style.margin=this.settings.displayMode==="popup"?this.settings.popupMargin+"px":"0px",this.uiDiv.style.border="0px",this.coverDiv.appendChild(this.uiDiv),this.toolbar=new vt(this.uiDiv,this.settings.displayMode,this._availableMarkerTypes,this.uiStyleSettings,this.styles),this.toolbar.addButtonClickListener(this.toolbarButtonClicked),this.toolbar.show(this._silentRenderMode||this.uiStyleSettings.hideToolbar?"hidden":"visible"),this.contentDiv=document.createElement("div"),this.contentDiv.style.display="flex",this.contentDiv.style.flexDirection="row",this.contentDiv.style.flexGrow="2",this.contentDiv.style.flexShrink="1",this.settings.displayMode==="popup"&&(this.contentDiv.style.backgroundColor=this.uiStyleSettings.canvasBackgroundColor,this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.uiStyleSettings.toolbarHeight+"px",this.contentDiv.style.maxWidth="calc(100vw - "+2*this.settings.popupMargin+"px)"),this.contentDiv.style.overflow="auto",this.uiDiv.appendChild(this.contentDiv),this.editorCanvas=document.createElement("div"),this.editorCanvas.style.flexGrow="2",this.editorCanvas.style.flexShrink="1",this.editorCanvas.style.position="relative",this.editorCanvas.style.overflow="hidden",this.editorCanvas.style.display="flex",this.settings.displayMode==="popup"&&(this.editorCanvas.style.alignItems="center",this.editorCanvas.style.justifyContent="center"),this.editorCanvas.style.pointerEvents="none",this.editorCanvas.style.transformOrigin="left top",this.editorCanvas.style.transform="scale("+this.zoomLevel+")",this.contentDiv.appendChild(this.editorCanvas),this.editingTarget=this.target instanceof HTMLImageElement?document.createElement("img"):document.createElement("canvas"),this.settings.uiOffsetTop===void 0&&this.target.offsetTop<this.styles.settings.toolbarHeight&&(this.editingTarget.style.marginTop=this.target.offsetTop-this.styles.settings.toolbarHeight+"px"),this.editorCanvas.appendChild(this.editingTarget),this.toolbox=new je(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(te){this.markerImage.removeChild(te.container),this.markers.indexOf(te)>-1&&this.markers.splice(this.markers.indexOf(te),1),te.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(te,ee){if(te==="marker"&&ee!==void 0)this.createNewMarker(ee);else if(te==="action")switch(ee){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 te=this;if(this._currentMarker!==void 0){var ee=!1;if(this.eventListeners.markerbeforedelete.forEach(function(se){var re=new rt(te,te._currentMarker,!0);se(re),re.defaultPrevented&&(ee=!0)}),!ee){var oe=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 rt(te,oe))})}}},ae.prototype.clear=function(){var te=this,ee=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(he){var be=new rt(te,void 0,!0);he(be),be.defaultPrevented&&(ee=!0)}),!ee)){this.setCurrentMarker();for(var oe=function(he){var be=se.markers[he];se.setCurrentMarker(se.markers[he]),se._currentMarker.dispose(),se.markerImage.removeChild(se._currentMarker.container),se.markers.splice(se.markers.indexOf(se._currentMarker),1),se.eventListeners.markerdelete.forEach(function(ht){return ht(new rt(te,be))})},se=this,re=this.markers.length-1;re>=0;re--)oe(re);this.addUndoStep()}},Object.defineProperty(ae.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),ae.prototype.showNotesEditor=function(){var te;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=(te=this._currentMarker.notes)!==null&&te!==void 0?te:"",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 te=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var ee=this.getState(),oe=this.undoRedoManager.getLastUndoStep();if(!oe||oe.width===ee.width&&oe.height===ee.height){var se=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(ee),se<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(re){return re(new Lt(te))})}else this.undoRedoManager.replaceLastUndoStep(ee),this.eventListeners.statechange.forEach(function(re){return re(new Lt(te))})}},ae.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},ae.prototype.undoStep=function(){var te=this,ee=this.undoRedoManager.undo();ee!==void 0&&(this.restoreState(ee),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(oe){return oe(new Lt(te))}))},ae.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},ae.prototype.redoStep=function(){var te=this,ee=this.undoRedoManager.redo();ee!==void 0&&(this.restoreState(ee),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(oe){return oe(new Lt(te))}))},ae.prototype.stepZoom=function(){var te=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=te<this.zoomSteps.length-1?this.zoomSteps[te+1]:this.zoomSteps[0]},ae.prototype.panTo=function(te){this.contentDiv.scrollBy({left:this.prevPanPoint.x-te.x,top:this.prevPanPoint.y-te.y}),this.prevPanPoint=te},ae.prototype.startRenderAndClose=function(){return ge(this,void 0,void 0,function(){var te,ee,oe=this;return Ze(this,function(se){switch(se.label){case 0:return[4,this.render()];case 1:return te=se.sent(),ee=this.getState(),this.eventListeners.render.forEach(function(re){return re(new Vt(oe,te,ee))}),this.close(!0),[2]}})})},ae.prototype.getState=function(te){te===!0&&this.setCurrentMarker();var ee={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(oe){return ee.markers.push(oe.getState())}),ee},ae.prototype.restoreState=function(te){var ee=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);te.markers.forEach(function(oe){var se=ee._availableMarkerTypes.find(function(he){return he.typeName===oe.typeName});if(se!==void 0){var re=ee.addNewMarker(se);re.restoreState(oe),ee.markers.push(re)}}),te.width&&te.height&&(te.width!==this.imageWidth||te.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/te.width,this.imageHeight/te.height),this.eventListeners.restorestate.forEach(function(oe){return oe(new Lt(ee))})},ae.prototype.addNewMarker=function(te){var ee=Se.createGroup();return this.markerImage.appendChild(ee),new te(ee,this.overlayContainer,this.settings)},ae.prototype.createNewMarker=function(te){var ee,oe=this;(ee=typeof te=="string"?this._availableMarkerTypes.find(function(se){return se.typeName===te}):te)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(ee),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(ee.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach(function(se){return se(new rt(oe,oe._currentMarker))}))},ae.prototype.markerCreated=function(te){var ee=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(te),this.setCurrentMarker(te),te instanceof ut&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(ut):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(oe){return oe(new rt(ee,ee._currentMarker))})},ae.prototype.colorChanged=function(te){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=te,this.settings.defaultStrokeColor=te)},ae.prototype.fillColorChanged=function(te){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=te)},ae.prototype.markerStateChanged=function(te){var ee=this;this.eventListeners.markerchange.forEach(function(oe){return oe(new rt(ee,te))})},ae.prototype.setCurrentMarker=function(te){var ee=this;this._currentMarker!==te&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(oe){return oe(new rt(ee,ee._currentMarker))})),this._currentMarker=te,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(oe){return oe(new rt(ee,ee._currentMarker))}))},ae.prototype.onPointerDown=function(te){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||te.pointerType!=="touch")if(this._currentMarker===void 0||this._currentMarker.state!=="new"&&this._currentMarker.state!=="creating"){if(this.mode==="select"){var ee=this.markers.find(function(oe){return oe.ownsTarget(te.target)});ee!==void 0?(this.setCurrentMarker(ee),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(te.clientX,te.clientY),te.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:te.clientX,y:te.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(te.clientX,te.clientY))},ae.prototype.onDblClick=function(te){if(this._isFocused||this.focus(),this.mode==="select"){var ee=this.markers.find(function(oe){return oe.ownsTarget(te.target)});ee!==void 0&&ee!==this._currentMarker&&this.setCurrentMarker(ee),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(te.clientX,te.clientY),te.target):this.setCurrentMarker()}},ae.prototype.onPointerMove=function(te){this.touchPoints!==1&&te.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||te.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(te.clientX,te.clientY)):this.zoomLevel>1&&this.panTo({x:te.clientX,y:te.clientY}))},ae.prototype.onPointerUp=function(te){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(te.clientX,te.clientY)),this.isDragging=!1,this.addUndoStep()},ae.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},ae.prototype.onKeyUp=function(te){this._currentMarker===void 0||this.notesArea!==void 0||te.key!=="Delete"&&te.key!=="Backspace"||this.deleteSelectedMarker()},ae.prototype.clientToLocalCoordinates=function(te,ee){var oe=this.markerImage.getBoundingClientRect();return{x:(te-oe.left)/this.zoomLevel,y:(ee-oe.top)/this.zoomLevel}},ae.prototype.onWindowResize=function(){this.positionUI()},ae.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var te=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=te+"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(te){De.addKey(te)},ae.prototype.addEventListener=function(te,ee){this.eventListeners.addEventListener(te,ee)},ae.prototype.removeEventListener=function(te,ee){this.eventListeners.removeEventListener(te,ee)},ae.prototype.renderState=function(te){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(te),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(ae.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),ae.prototype.focus=function(){var te=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(ee){return ee(new Lt(te))}))},ae.prototype.blur=function(){var te=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(ee){return ee(new Lt(te))}))},ae.instanceCounter=0,ae}()},6551:function(rn,Ft,ie){"use strict";ie.d(Ft,{ZP:function(){return De}});var z=ie(42978),Ke=ie(59301),ge=ie(47273),Ze=0,xe=(0,ge.Z)();function Se(){var Ue;return xe?(Ue=Ze,Ze+=1):Ue="TEST_OR_SSR",Ue}function De(Ue){var Pe=Ke.useState(),de=(0,z.Z)(Pe,2),He=de[0],ye=de[1];return Ke.useEffect(function(){ye("rc_select_".concat(Se()))},[]),Ue||He}},37463:function(rn,Ft,ie){"use strict";ie.d(Ft,{Ac:function(){return St},Xo:function(){return Wt},Wx:function(){return tt},ZP:function(){return nr},lk:function(){return Pt}});var z=ie(54476),Ke=ie(94480),ge=ie(20068),Ze=ie(33885),xe=ie(42978),Se=ie(75931),De=ie(76190),Ue=ie(18929),Pe=ie(48736),de=ie(59301),He=ie(92310),ye=ie.n(He),vt=ie(34280),je=ie(49658),Te=ie(8654),ke=function(et){var Ce=et.className,Le=et.customizeIcon,we=et.customizeIconProps,Re=et.children,ve=et.onMouseDown,Ve=et.onClick,Je=typeof Le=="function"?Le(we):Le;return de.createElement("span",{className:Ce,onMouseDown:function(Qe){Qe.preventDefault(),ve==null||ve(Qe)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:Ve,"aria-hidden":!0},Je!==void 0?Je:de.createElement("span",{className:ye()(Ce.split(/\s+/).map(function(ct){return"".concat(ct,"-icon")}))},Re))},Ne=ke,yt=function(et,Ce,Le,we,Re){var ve=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,Ve=arguments.length>6?arguments[6]:void 0,Je=arguments.length>7?arguments[7]:void 0,ct=de.useMemo(function(){if((0,De.Z)(we)==="object")return we.clearIcon;if(Re)return Re},[we,Re]),Qe=de.useMemo(function(){return!!(!ve&&we&&(Le.length||Ve)&&!(Je==="combobox"&&Ve===""))},[we,ve,Le.length,Ve,Je]);return{allowClear:Qe,clearIcon:de.createElement(Ne,{className:"".concat(et,"-clear"),onMouseDown:Ce,customizeIcon:ct},"\xD7")}},wt=de.createContext(null);function Pt(){return de.useContext(wt)}function bt(){var Ae=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,et=de.useState(!1),Ce=(0,xe.Z)(et,2),Le=Ce[0],we=Ce[1],Re=de.useRef(null),ve=function(){window.clearTimeout(Re.current)};de.useEffect(function(){return ve},[]);var Ve=function(ct,Qe){ve(),Re.current=window.setTimeout(function(){we(ct),Qe&&Qe()},Ae)};return[Le,Ve,ve]}function pt(){var Ae=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,et=de.useRef(null),Ce=de.useRef(null);de.useEffect(function(){return function(){window.clearTimeout(Ce.current)}},[]);function Le(we){(we||et.current===null)&&(et.current=we),window.clearTimeout(Ce.current),Ce.current=window.setTimeout(function(){et.current=null},Ae)}return[function(){return et.current},Le]}function lt(Ae,et,Ce,Le){var we=de.useRef(null);we.current={open:et,triggerOpen:Ce,customizedTrigger:Le},de.useEffect(function(){function Re(ve){var Ve;if(!((Ve=we.current)!==null&&Ve!==void 0&&Ve.customizedTrigger)){var Je=ve.target;Je.shadowRoot&&ve.composed&&(Je=ve.composedPath()[0]||Je),we.current.open&&Ae().filter(function(ct){return ct}).every(function(ct){return!ct.contains(Je)&&ct!==Je})&&we.current.triggerOpen(!1)}}return window.addEventListener("mousedown",Re),function(){return window.removeEventListener("mousedown",Re)}},[])}var _e=ie(10228);function kt(Ae){return Ae&&![_e.Z.ESC,_e.Z.SHIFT,_e.Z.BACKSPACE,_e.Z.TAB,_e.Z.WIN_KEY,_e.Z.ALT,_e.Z.META,_e.Z.WIN_KEY_RIGHT,_e.Z.CTRL,_e.Z.SEMICOLON,_e.Z.EQUALS,_e.Z.CAPS_LOCK,_e.Z.CONTEXT_MENU,_e.Z.F1,_e.Z.F2,_e.Z.F3,_e.Z.F4,_e.Z.F5,_e.Z.F6,_e.Z.F7,_e.Z.F8,_e.Z.F9,_e.Z.F10,_e.Z.F11,_e.Z.F12].includes(Ae)}var nt=ie(26112),it=ie(83836);function Ct(Ae,et,Ce){var Le=(0,Ze.Z)((0,Ze.Z)({},Ae),Ce?et:{});return Object.keys(et).forEach(function(we){var Re=et[we];typeof Re=="function"&&(Le[we]=function(){for(var ve,Ve=arguments.length,Je=new Array(Ve),ct=0;ct<Ve;ct++)Je[ct]=arguments[ct];return Re.apply(void 0,Je),(ve=Ae[we])===null||ve===void 0?void 0:ve.call.apply(ve,[Ae].concat(Je))})}),Le}var ze=Ct,gt=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],ut=function(et,Ce){var Le=et.prefixCls,we=et.id,Re=et.inputElement,ve=et.autoFocus,Ve=et.autoComplete,Je=et.editable,ct=et.activeDescendantId,Qe=et.value,Fe=et.open,$e=et.attrs,qe=(0,Se.Z)(et,gt),Qt=Re||de.createElement("input",null),Ut=Qt,Yt=Ut.ref,kn=Ut.props;return(0,Pe.Kp)(!("maxLength"in Qt.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),Qt=de.cloneElement(Qt,(0,Ze.Z)((0,Ze.Z)((0,Ze.Z)({type:"search"},ze(qe,kn,!0)),{},{id:we,ref:(0,Te.sQ)(Ce,Yt),autoComplete:Ve||"off",autoFocus:ve,className:ye()("".concat(Le,"-selection-search-input"),kn==null?void 0:kn.className),role:"combobox","aria-expanded":Fe||!1,"aria-haspopup":"listbox","aria-owns":"".concat(we,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(we,"_list"),"aria-activedescendant":Fe?ct:void 0},$e),{},{value:Je?Qe:"",readOnly:!Je,unselectable:Je?null:"on",style:(0,Ze.Z)((0,Ze.Z)({},kn.style),{},{opacity:Je?null:0})})),Qt},pe=de.forwardRef(ut),At=pe;function Be(Ae){return Array.isArray(Ae)?Ae:Ae!==void 0?[Ae]:[]}var Nt=typeof window!="undefined"&&window.document&&window.document.documentElement,on=Nt;function Ee(Ae){return Ae!=null}function fe(Ae){return!Ae&&Ae!==0}function Et(Ae){return["string","number"].includes((0,De.Z)(Ae))}function Jt(Ae){var et=void 0;return Ae&&(Et(Ae.title)?et=Ae.title.toString():Et(Ae.label)&&(et=Ae.label.toString())),et}function Dt(Ae,et){on?de.useLayoutEffect(Ae,et):de.useEffect(Ae,et)}function We(Ae){var et;return(et=Ae.key)!==null&&et!==void 0?et:Ae.value}var ot=function(et){et.preventDefault(),et.stopPropagation()},dt=function(et){var Ce=et.id,Le=et.prefixCls,we=et.values,Re=et.open,ve=et.searchValue,Ve=et.autoClearSearchValue,Je=et.inputRef,ct=et.placeholder,Qe=et.disabled,Fe=et.mode,$e=et.showSearch,qe=et.autoFocus,Qt=et.autoComplete,Ut=et.activeDescendantId,Yt=et.tabIndex,kn=et.removeIcon,Ln=et.maxTagCount,Hn=et.maxTagTextLength,Mn=et.maxTagPlaceholder,xn=Mn===void 0?function(hn){return"+ ".concat(hn.length," ...")}:Mn,Pn=et.tagRender,Fn=et.onToggleOpen,Yn=et.onRemove,Un=et.onInputChange,Kn=et.onInputPaste,Cn=et.onInputKeyDown,er=et.onInputMouseDown,jn=et.onInputCompositionStart,dr=et.onInputCompositionEnd,pr=et.onInputBlur,sr=de.useRef(null),ur=(0,de.useState)(0),yr=(0,xe.Z)(ur,2),lr=yr[0],fr=yr[1],Qn=(0,de.useState)(!1),mr=(0,xe.Z)(Qn,2),br=mr[0],zr=mr[1],Er="".concat(Le,"-selection"),Br=Re||Fe==="multiple"&&Ve===!1||Fe==="tags"?ve:"",Ir=Fe==="tags"||Fe==="multiple"&&Ve===!1||$e&&(Re||br);Dt(function(){fr(sr.current.scrollWidth)},[Br]);var Or=function(en,Bn,Gn,dn,tn){return de.createElement("span",{title:Jt(en),className:ye()("".concat(Er,"-item"),(0,ge.Z)({},"".concat(Er,"-item-disabled"),Gn))},de.createElement("span",{className:"".concat(Er,"-item-content")},Bn),dn&&de.createElement(Ne,{className:"".concat(Er,"-item-remove"),onMouseDown:ot,onClick:tn,customizeIcon:kn},"\xD7"))},ir=function(en,Bn,Gn,dn,tn,wn){var Tn=function(Dr){ot(Dr),Fn(!Re)};return de.createElement("span",{onMouseDown:Tn},Pn({label:Bn,value:en,disabled:Gn,closable:dn,onClose:tn,isMaxTag:!!wn}))},rr=function(en){var Bn=en.disabled,Gn=en.label,dn=en.value,tn=!Qe&&!Bn,wn=Gn;if(typeof Hn=="number"&&(typeof Gn=="string"||typeof Gn=="number")){var Tn=String(wn);Tn.length>Hn&&(wn="".concat(Tn.slice(0,Hn),"..."))}var cr=function(Pr){Pr&&Pr.stopPropagation(),Yn(en)};return typeof Pn=="function"?ir(dn,wn,Bn,tn,cr):Or(en,wn,Bn,tn,cr)},Jn=function(en){if(!we.length)return null;var Bn=typeof xn=="function"?xn(en):xn;return typeof Pn=="function"?ir(void 0,Bn,!1,!1,void 0,!0):Or({title:Bn},Bn,!1)},an=de.createElement("div",{className:"".concat(Er,"-search"),style:{width:lr},onFocus:function(){zr(!0)},onBlur:function(){zr(!1)}},de.createElement(At,{ref:Je,open:Re,prefixCls:Le,id:Ce,inputElement:null,disabled:Qe,autoFocus:qe,autoComplete:Qt,editable:Ir,activeDescendantId:Ut,value:Br,onKeyDown:Cn,onMouseDown:er,onChange:Un,onPaste:Kn,onCompositionStart:jn,onCompositionEnd:dr,onBlur:pr,tabIndex:Yt,attrs:(0,nt.Z)(et,!0)}),de.createElement("span",{ref:sr,className:"".concat(Er,"-search-mirror"),"aria-hidden":!0},Br,"\xA0")),pn=de.createElement(it.Z,{prefixCls:"".concat(Er,"-overflow"),data:we,renderItem:rr,renderRest:Jn,suffix:an,itemKey:We,maxCount:Ln});return de.createElement("span",{className:"".concat(Er,"-wrap")},pn,!we.length&&!Br&&de.createElement("span",{className:"".concat(Er,"-placeholder")},ct))},$t=dt,Lt=function(et){var Ce=et.inputElement,Le=et.prefixCls,we=et.id,Re=et.inputRef,ve=et.disabled,Ve=et.autoFocus,Je=et.autoComplete,ct=et.activeDescendantId,Qe=et.mode,Fe=et.open,$e=et.values,qe=et.placeholder,Qt=et.tabIndex,Ut=et.showSearch,Yt=et.searchValue,kn=et.activeValue,Ln=et.maxLength,Hn=et.onInputKeyDown,Mn=et.onInputMouseDown,xn=et.onInputChange,Pn=et.onInputPaste,Fn=et.onInputCompositionStart,Yn=et.onInputCompositionEnd,Un=et.onInputBlur,Kn=et.title,Cn=de.useState(!1),er=(0,xe.Z)(Cn,2),jn=er[0],dr=er[1],pr=Qe==="combobox",sr=pr||Ut,ur=$e[0],yr=Yt||"";pr&&kn&&!jn&&(yr=kn),de.useEffect(function(){pr&&dr(!1)},[pr,kn]);var lr=Qe!=="combobox"&&!Fe&&!Ut?!1:!!yr,fr=Kn===void 0?Jt(ur):Kn,Qn=de.useMemo(function(){return ur?null:de.createElement("span",{className:"".concat(Le,"-selection-placeholder"),style:lr?{visibility:"hidden"}:void 0},qe)},[ur,lr,qe,Le]);return de.createElement("span",{className:"".concat(Le,"-selection-wrap")},de.createElement("span",{className:"".concat(Le,"-selection-search")},de.createElement(At,{ref:Re,prefixCls:Le,id:we,open:Fe,inputElement:Ce,disabled:ve,autoFocus:Ve,autoComplete:Je,editable:sr,activeDescendantId:ct,value:yr,onKeyDown:Hn,onMouseDown:Mn,onChange:function(br){dr(!0),xn(br)},onPaste:Pn,onCompositionStart:Fn,onCompositionEnd:Yn,onBlur:Un,tabIndex:Qt,attrs:(0,nt.Z)(et,!0),maxLength:pr?Ln:void 0})),!pr&&ur?de.createElement("span",{className:"".concat(Le,"-selection-item"),title:fr,style:lr?{visibility:"hidden"}:void 0},ur.label):null,Qn)},Vt=Lt,rt=function(et,Ce){var Le=(0,de.useRef)(null),we=(0,de.useRef)(!1),Re=et.prefixCls,ve=et.open,Ve=et.mode,Je=et.showSearch,ct=et.tokenWithEnter,Qe=et.disabled,Fe=et.prefix,$e=et.autoClearSearchValue,qe=et.onSearch,Qt=et.onSearchSubmit,Ut=et.onToggleOpen,Yt=et.onInputKeyDown,kn=et.onInputBlur,Ln=et.domRef;de.useImperativeHandle(Ce,function(){return{focus:function(fr){Le.current.focus(fr)},blur:function(){Le.current.blur()}}});var Hn=pt(0),Mn=(0,xe.Z)(Hn,2),xn=Mn[0],Pn=Mn[1],Fn=function(fr){var Qn=fr.which,mr=Le.current instanceof HTMLTextAreaElement;!mr&&ve&&(Qn===_e.Z.UP||Qn===_e.Z.DOWN)&&fr.preventDefault(),Yt&&Yt(fr),Qn===_e.Z.ENTER&&Ve==="tags"&&!we.current&&!ve&&(Qt==null||Qt(fr.target.value)),!(mr&&!ve&&~[_e.Z.UP,_e.Z.DOWN,_e.Z.LEFT,_e.Z.RIGHT].indexOf(Qn))&&kt(Qn)&&Ut(!0)},Yn=function(){Pn(!0)},Un=(0,de.useRef)(null),Kn=function(fr){qe(fr,!0,we.current)!==!1&&Ut(!0)},Cn=function(){we.current=!0},er=function(fr){we.current=!1,Ve!=="combobox"&&Kn(fr.target.value)},jn=function(fr){var Qn=fr.target.value;if(ct&&Un.current&&/[\r\n]/.test(Un.current)){var mr=Un.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");Qn=Qn.replace(mr,Un.current)}Un.current=null,Kn(Qn)},dr=function(fr){var Qn=fr.clipboardData,mr=Qn==null?void 0:Qn.getData("text");Un.current=mr||""},pr=function(fr){var Qn=fr.target;if(Qn!==Le.current){var mr=document.body.style.msTouchAction!==void 0;mr?setTimeout(function(){Le.current.focus()}):Le.current.focus()}},sr=function(fr){var Qn=xn();fr.target!==Le.current&&!Qn&&!(Ve==="combobox"&&Qe)&&fr.preventDefault(),(Ve!=="combobox"&&(!Je||!Qn)||!ve)&&(ve&&$e!==!1&&qe("",!0,!1),Ut())},ur={inputRef:Le,onInputKeyDown:Fn,onInputMouseDown:Yn,onInputChange:jn,onInputPaste:dr,onInputCompositionStart:Cn,onInputCompositionEnd:er,onInputBlur:kn},yr=Ve==="multiple"||Ve==="tags"?de.createElement($t,(0,z.Z)({},et,ur)):de.createElement(Vt,(0,z.Z)({},et,ur));return de.createElement("div",{ref:Ln,className:"".concat(Re,"-selector"),onClick:pr,onMouseDown:sr},Fe&&de.createElement("div",{className:"".concat(Re,"-prefix")},Fe),yr)},Ht=de.forwardRef(rt),st=Ht,ae=ie(65030),te=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],ee=function(et){var Ce=et===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:Ce,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:Ce,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:Ce,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:Ce,adjustY:1},htmlRegion:"scroll"}}},oe=function(et,Ce){var Le=et.prefixCls,we=et.disabled,Re=et.visible,ve=et.children,Ve=et.popupElement,Je=et.animation,ct=et.transitionName,Qe=et.dropdownStyle,Fe=et.dropdownClassName,$e=et.direction,qe=$e===void 0?"ltr":$e,Qt=et.placement,Ut=et.builtinPlacements,Yt=et.dropdownMatchSelectWidth,kn=et.dropdownRender,Ln=et.dropdownAlign,Hn=et.getPopupContainer,Mn=et.empty,xn=et.getTriggerDOMNode,Pn=et.onPopupVisibleChange,Fn=et.onPopupMouseEnter,Yn=(0,Se.Z)(et,te),Un="".concat(Le,"-dropdown"),Kn=Ve;kn&&(Kn=kn(Ve));var Cn=de.useMemo(function(){return Ut||ee(Yt)},[Ut,Yt]),er=Je?"".concat(Un,"-").concat(Je):ct,jn=typeof Yt=="number",dr=de.useMemo(function(){return jn?null:Yt===!1?"minWidth":"width"},[Yt,jn]),pr=Qe;jn&&(pr=(0,Ze.Z)((0,Ze.Z)({},pr),{},{width:Yt}));var sr=de.useRef(null);return de.useImperativeHandle(Ce,function(){return{getPopupElement:function(){var yr;return(yr=sr.current)===null||yr===void 0?void 0:yr.popupElement}}}),de.createElement(ae.Z,(0,z.Z)({},Yn,{showAction:Pn?["click"]:[],hideAction:Pn?["click"]:[],popupPlacement:Qt||(qe==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:Cn,prefixCls:Un,popupTransitionName:er,popup:de.createElement("div",{onMouseEnter:Fn},Kn),ref:sr,stretch:dr,popupAlign:Ln,popupVisible:Re,getPopupContainer:Hn,popupClassName:ye()(Fe,(0,ge.Z)({},"".concat(Un,"-empty"),Mn)),popupStyle:pr,getTriggerDOMNode:xn,onPopupVisibleChange:Pn}),ve)},se=de.forwardRef(oe),re=se,he=ie(66712);function be(Ae,et){var Ce=Ae.key,Le;return"value"in Ae&&(Le=Ae.value),Ce!=null?Ce:Le!==void 0?Le:"rc-index-key-".concat(et)}function ht(Ae){return typeof Ae!="undefined"&&!Number.isNaN(Ae)}function Me(Ae,et){var Ce=Ae||{},Le=Ce.label,we=Ce.value,Re=Ce.options,ve=Ce.groupLabel,Ve=Le||(et?"children":"label");return{label:Ve,value:we||"value",options:Re||"options",groupLabel:ve||Ve}}function Ye(Ae){var et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ce=et.fieldNames,Le=et.childrenAsData,we=[],Re=Me(Ce,!1),ve=Re.label,Ve=Re.value,Je=Re.options,ct=Re.groupLabel;function Qe(Fe,$e){Array.isArray(Fe)&&Fe.forEach(function(qe){if($e||!(Je in qe)){var Qt=qe[Ve];we.push({key:be(qe,we.length),groupOption:$e,data:qe,label:qe[ve],value:Qt})}else{var Ut=qe[ct];Ut===void 0&&Le&&(Ut=qe.label),we.push({key:be(qe,we.length),group:!0,data:qe,label:Ut}),Qe(qe[Je],!0)}})}return Qe(Ae,!1),we}function mt(Ae){var et=(0,Ze.Z)({},Ae);return"props"in et||Object.defineProperty(et,"props",{get:function(){return(0,Pe.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),et}}),et}var It=function(et,Ce,Le){if(!Ce||!Ce.length)return null;var we=!1,Re=function Ve(Je,ct){var Qe=(0,he.Z)(ct),Fe=Qe[0],$e=Qe.slice(1);if(!Fe)return[Je];var qe=Je.split(Fe);return we=we||qe.length>1,qe.reduce(function(Qt,Ut){return[].concat((0,Ke.Z)(Qt),(0,Ke.Z)(Ve(Ut,$e)))},[]).filter(Boolean)},ve=Re(et,Ce);return we?typeof Le!="undefined"?ve.slice(0,Le):ve:null},xt=de.createContext(null),Xt=xt;function Kt(Ae){var et=Ae.visible,Ce=Ae.values;if(!et)return null;var Le=50;return de.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(Ce.slice(0,Le).map(function(we){var Re=we.label,ve=we.value;return["number","string"].includes((0,De.Z)(Re))?Re:ve}).join(", ")),Ce.length>Le?", ...":null)}var jt=["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"],_t=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],Zt=function(et){return et==="tags"||et==="multiple"},ln=de.forwardRef(function(Ae,et){var Ce,Le=Ae.id,we=Ae.prefixCls,Re=Ae.className,ve=Ae.showSearch,Ve=Ae.tagRender,Je=Ae.direction,ct=Ae.omitDomProps,Qe=Ae.displayValues,Fe=Ae.onDisplayValuesChange,$e=Ae.emptyOptions,qe=Ae.notFoundContent,Qt=qe===void 0?"Not Found":qe,Ut=Ae.onClear,Yt=Ae.mode,kn=Ae.disabled,Ln=Ae.loading,Hn=Ae.getInputElement,Mn=Ae.getRawInputElement,xn=Ae.open,Pn=Ae.defaultOpen,Fn=Ae.onDropdownVisibleChange,Yn=Ae.activeValue,Un=Ae.onActiveValueChange,Kn=Ae.activeDescendantId,Cn=Ae.searchValue,er=Ae.autoClearSearchValue,jn=Ae.onSearch,dr=Ae.onSearchSplit,pr=Ae.tokenSeparators,sr=Ae.allowClear,ur=Ae.prefix,yr=Ae.suffixIcon,lr=Ae.clearIcon,fr=Ae.OptionList,Qn=Ae.animation,mr=Ae.transitionName,br=Ae.dropdownStyle,zr=Ae.dropdownClassName,Er=Ae.dropdownMatchSelectWidth,Br=Ae.dropdownRender,Ir=Ae.dropdownAlign,Or=Ae.placement,ir=Ae.builtinPlacements,rr=Ae.getPopupContainer,Jn=Ae.showAction,an=Jn===void 0?[]:Jn,pn=Ae.onFocus,hn=Ae.onBlur,en=Ae.onKeyUp,Bn=Ae.onKeyDown,Gn=Ae.onMouseDown,dn=(0,Se.Z)(Ae,jt),tn=Zt(Yt),wn=(ve!==void 0?ve:tn)||Yt==="combobox",Tn=(0,Ze.Z)({},dn);_t.forEach(function(jr){delete Tn[jr]}),ct==null||ct.forEach(function(jr){delete Tn[jr]});var cr=de.useState(!1),Dr=(0,xe.Z)(cr,2),Pr=Dr[0],Rr=Dr[1];de.useEffect(function(){Rr((0,je.Z)())},[]);var Ar=de.useRef(null),Fr=de.useRef(null),Ur=de.useRef(null),Hr=de.useRef(null),Kr=de.useRef(null),ti=de.useRef(!1),Ei=bt(),Ni=(0,xe.Z)(Ei,3),xi=Ni[0],si=Ni[1],Ri=Ni[2];de.useImperativeHandle(et,function(){var jr,kr;return{focus:(jr=Hr.current)===null||jr===void 0?void 0:jr.focus,blur:(kr=Hr.current)===null||kr===void 0?void 0:kr.blur,scrollTo:function(Ci){var ii;return(ii=Kr.current)===null||ii===void 0?void 0:ii.scrollTo(Ci)},nativeElement:Ar.current||Fr.current}});var Wr=de.useMemo(function(){var jr;if(Yt!=="combobox")return Cn;var kr=(jr=Qe[0])===null||jr===void 0?void 0:jr.value;return typeof kr=="string"||typeof kr=="number"?String(kr):""},[Cn,Yt,Qe]),_i=Yt==="combobox"&&typeof Hn=="function"&&Hn()||null,qr=typeof Mn=="function"&&Mn(),xr=(0,Te.x1)(Fr,qr==null||(Ce=qr.props)===null||Ce===void 0?void 0:Ce.ref),$r=de.useState(!1),Gr=(0,xe.Z)($r,2),Sr=Gr[0],Nr=Gr[1];(0,vt.Z)(function(){Nr(!0)},[]);var Tr=(0,Ue.Z)(!1,{defaultValue:Pn,value:xn}),ui=(0,xe.Z)(Tr,2),Oi=ui[0],fi=ui[1],ni=Sr?Oi:!1,xo=!Qt&&$e;(kn||xo&&ni&&Yt==="combobox")&&(ni=!1);var so=xo?!1:ni,gr=de.useCallback(function(jr){var kr=jr!==void 0?jr:!ni;kn||(fi(kr),ni!==kr&&(Fn==null||Fn(kr)))},[kn,ni,fi,Fn]),Mr=de.useMemo(function(){return(pr||[]).some(function(jr){return[`
`,`\r
`].includes(jr)})},[pr]),Cr=de.useContext(Xt)||{},wr=Cr.maxCount,Zr=Cr.rawValues,Xr=function(kr,yi,Ci){if(!(tn&&ht(wr)&&(Zr==null?void 0:Zr.size)>=wr)){var ii=!0,ci=kr;Un==null||Un(null);var Yi=It(kr,pr,ht(wr)?wr-Zr.size:void 0),Vi=Ci?null:Yi;return Yt!=="combobox"&&Vi&&(ci="",dr==null||dr(Vi),gr(!1),ii=!1),jn&&Wr!==ci&&jn(ci,{source:yi?"typing":"effect"}),ii}},Ki=function(kr){!kr||!kr.trim()||jn(kr,{source:"submit"})};de.useEffect(function(){!ni&&!tn&&Yt!=="combobox"&&Xr("",!1,!1)},[ni]),de.useEffect(function(){Oi&&kn&&fi(!1),kn&&!ti.current&&si(!1)},[kn]);var Ii=pt(),vi=(0,xe.Z)(Ii,2),ri=vi[0],Gi=vi[1],eo=de.useRef(!1),Fi=function(kr){var yi=ri(),Ci=kr.key,ii=Ci==="Enter";if(ii&&(Yt!=="combobox"&&kr.preventDefault(),ni||gr(!0)),Gi(!!Wr),Ci==="Backspace"&&!yi&&tn&&!Wr&&Qe.length){for(var ci=(0,Ke.Z)(Qe),Yi=null,Vi=ci.length-1;Vi>=0;Vi-=1){var oo=ci[Vi];if(!oo.disabled){ci.splice(Vi,1),Yi=oo;break}}Yi&&Fe(ci,{type:"remove",values:[Yi]})}for(var $i=arguments.length,zi=new Array($i>1?$i-1:0),Ji=1;Ji<$i;Ji++)zi[Ji-1]=arguments[Ji];if(ni&&(!ii||!eo.current)){var co;ii&&(eo.current=!0),(co=Kr.current)===null||co===void 0||co.onKeyDown.apply(co,[kr].concat(zi))}Bn==null||Bn.apply(void 0,[kr].concat(zi))},to=function(kr){for(var yi=arguments.length,Ci=new Array(yi>1?yi-1:0),ii=1;ii<yi;ii++)Ci[ii-1]=arguments[ii];if(ni){var ci;(ci=Kr.current)===null||ci===void 0||ci.onKeyUp.apply(ci,[kr].concat(Ci))}kr.key==="Enter"&&(eo.current=!1),en==null||en.apply(void 0,[kr].concat(Ci))},io=function(kr){var yi=Qe.filter(function(Ci){return Ci!==kr});Fe(yi,{type:"remove",values:[kr]})},Xi=function(){eo.current=!1},Do=de.useRef(!1),Ga=function(){si(!0),kn||(pn&&!Do.current&&pn.apply(void 0,arguments),an.includes("focus")&&gr(!0)),Do.current=!0},ya=function(){ti.current=!0,si(!1,function(){Do.current=!1,ti.current=!1,gr(!1)}),!kn&&(Wr&&(Yt==="tags"?jn(Wr,{source:"submit"}):Yt==="multiple"&&jn("",{source:"blur"})),hn&&hn.apply(void 0,arguments))},no=[];de.useEffect(function(){return function(){no.forEach(function(jr){return clearTimeout(jr)}),no.splice(0,no.length)}},[]);var uo=function(kr){var yi,Ci=kr.target,ii=(yi=Ur.current)===null||yi===void 0?void 0:yi.getPopupElement();if(ii&&ii.contains(Ci)){var ci=setTimeout(function(){var $i=no.indexOf(ci);if($i!==-1&&no.splice($i,1),Ri(),!Pr&&!ii.contains(document.activeElement)){var zi;(zi=Hr.current)===null||zi===void 0||zi.focus()}});no.push(ci)}for(var Yi=arguments.length,Vi=new Array(Yi>1?Yi-1:0),oo=1;oo<Yi;oo++)Vi[oo-1]=arguments[oo];Gn==null||Gn.apply(void 0,[kr].concat(Vi))},Ui=de.useState({}),ba=(0,xe.Z)(Ui,2),xa=ba[1];function Ua(){xa({})}var Ca;qr&&(Ca=function(kr){gr(kr)}),lt(function(){var jr;return[Ar.current,(jr=Ur.current)===null||jr===void 0?void 0:jr.getPopupElement()]},so,gr,!!qr);var Va=de.useMemo(function(){return(0,Ze.Z)((0,Ze.Z)({},Ae),{},{notFoundContent:Qt,open:ni,triggerOpen:so,id:Le,showSearch:wn,multiple:tn,toggleOpen:gr})},[Ae,Qt,so,ni,Le,wn,tn,gr]),_o=!!yr||Ln,Ko;_o&&(Ko=de.createElement(Ne,{className:ye()("".concat(we,"-arrow"),(0,ge.Z)({},"".concat(we,"-arrow-loading"),Ln)),customizeIcon:yr,customizeIconProps:{loading:Ln,searchValue:Wr,open:ni,focused:xi,showSearch:wn}}));var Co=function(){var kr;Ut==null||Ut(),(kr=Hr.current)===null||kr===void 0||kr.focus(),Fe([],{type:"clear",values:Qe}),Xr("",!1,!1)},Xo=yt(we,Co,Qe,sr,lr,kn,Wr,Yt),Sa=Xo.allowClear,Yo=Xo.clearIcon,To=de.createElement(fr,{ref:Kr}),wa=ye()(we,Re,(0,ge.Z)((0,ge.Z)((0,ge.Z)((0,ge.Z)((0,ge.Z)((0,ge.Z)((0,ge.Z)((0,ge.Z)((0,ge.Z)((0,ge.Z)({},"".concat(we,"-focused"),xi),"".concat(we,"-multiple"),tn),"".concat(we,"-single"),!tn),"".concat(we,"-allow-clear"),sr),"".concat(we,"-show-arrow"),_o),"".concat(we,"-disabled"),kn),"".concat(we,"-loading"),Ln),"".concat(we,"-open"),ni),"".concat(we,"-customize-input"),_i),"".concat(we,"-show-search"),wn)),Lo=de.createElement(re,{ref:Ur,disabled:kn,prefixCls:we,visible:so,popupElement:To,animation:Qn,transitionName:mr,dropdownStyle:br,dropdownClassName:zr,direction:Je,dropdownMatchSelectWidth:Er,dropdownRender:Br,dropdownAlign:Ir,placement:Or,builtinPlacements:ir,getPopupContainer:rr,empty:$e,getTriggerDOMNode:function(kr){return Fr.current||kr},onPopupVisibleChange:Ca,onPopupMouseEnter:Ua},qr?de.cloneElement(qr,{ref:xr}):de.createElement(st,(0,z.Z)({},Ae,{domRef:Fr,prefixCls:we,inputElement:_i,ref:Hr,id:Le,prefix:ur,showSearch:wn,autoClearSearchValue:er,mode:Yt,activeDescendantId:Kn,tagRender:Ve,values:Qe,open:ni,onToggleOpen:gr,activeValue:Yn,searchValue:Wr,onSearch:Xr,onSearchSubmit:Ki,onRemove:io,tokenWithEnter:Mr,onInputBlur:Xi}))),ki;return qr?ki=Lo:ki=de.createElement("div",(0,z.Z)({className:wa},Tn,{ref:Ar,onMouseDown:uo,onKeyDown:Fi,onKeyUp:to,onFocus:Ga,onBlur:ya}),de.createElement(Kt,{visible:xi&&!ni,values:Qe}),Lo,Ko,Sa&&Yo),de.createElement(wt.Provider,{value:Va},ki)}),St=ln,qt=function(){return null};qt.isSelectOptGroup=!0;var Wt=qt,Oe=function(){return null};Oe.isSelectOption=!0;var tt=Oe,Tt=ie(80547),zt=ie(2738),Ie=ie(48911);function Xe(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var ft=["disabled","title","children","style","className"];function Mt(Ae){return typeof Ae=="string"||typeof Ae=="number"}var Gt=function(et,Ce){var Le=Pt(),we=Le.prefixCls,Re=Le.id,ve=Le.open,Ve=Le.multiple,Je=Le.mode,ct=Le.searchValue,Qe=Le.toggleOpen,Fe=Le.notFoundContent,$e=Le.onPopupScroll,qe=de.useContext(Xt),Qt=qe.maxCount,Ut=qe.flattenOptions,Yt=qe.onActiveValue,kn=qe.defaultActiveFirstOption,Ln=qe.onSelect,Hn=qe.menuItemSelectedIcon,Mn=qe.rawValues,xn=qe.fieldNames,Pn=qe.virtual,Fn=qe.direction,Yn=qe.listHeight,Un=qe.listItemHeight,Kn=qe.optionRender,Cn="".concat(we,"-item"),er=(0,Tt.Z)(function(){return Ut},[ve,Ut],function(Jn,an){return an[0]&&Jn[1]!==an[1]}),jn=de.useRef(null),dr=de.useMemo(function(){return Ve&&ht(Qt)&&(Mn==null?void 0:Mn.size)>=Qt},[Ve,Qt,Mn==null?void 0:Mn.size]),pr=function(an){an.preventDefault()},sr=function(an){var pn;(pn=jn.current)===null||pn===void 0||pn.scrollTo(typeof an=="number"?{index:an}:an)},ur=de.useCallback(function(Jn){return Je==="combobox"?!1:Mn.has(Jn)},[Je,(0,Ke.Z)(Mn).toString(),Mn.size]),yr=function(an){for(var pn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,hn=er.length,en=0;en<hn;en+=1){var Bn=(an+en*pn+hn)%hn,Gn=er[Bn]||{},dn=Gn.group,tn=Gn.data;if(!dn&&!(tn!=null&&tn.disabled)&&(ur(tn.value)||!dr))return Bn}return-1},lr=de.useState(function(){return yr(0)}),fr=(0,xe.Z)(lr,2),Qn=fr[0],mr=fr[1],br=function(an){var pn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;mr(an);var hn={source:pn?"keyboard":"mouse"},en=er[an];if(!en){Yt(null,-1,hn);return}Yt(en.value,an,hn)};(0,de.useEffect)(function(){br(kn!==!1?yr(0):-1)},[er.length,ct]);var zr=de.useCallback(function(Jn){return Je==="combobox"?String(Jn).toLowerCase()===ct.toLowerCase():Mn.has(Jn)},[Je,ct,(0,Ke.Z)(Mn).toString(),Mn.size]);(0,de.useEffect)(function(){var Jn=setTimeout(function(){if(!Ve&&ve&&Mn.size===1){var pn=Array.from(Mn)[0],hn=er.findIndex(function(en){var Bn=en.data;return ct?String(Bn.value).startsWith(ct):Bn.value===pn});hn!==-1&&(br(hn),sr(hn))}});if(ve){var an;(an=jn.current)===null||an===void 0||an.scrollTo(void 0)}return function(){return clearTimeout(Jn)}},[ve,ct]);var Er=function(an){an!==void 0&&Ln(an,{selected:!Mn.has(an)}),Ve||Qe(!1)};if(de.useImperativeHandle(Ce,function(){return{onKeyDown:function(an){var pn=an.which,hn=an.ctrlKey;switch(pn){case _e.Z.N:case _e.Z.P:case _e.Z.UP:case _e.Z.DOWN:{var en=0;if(pn===_e.Z.UP?en=-1:pn===_e.Z.DOWN?en=1:Xe()&&hn&&(pn===_e.Z.N?en=1:pn===_e.Z.P&&(en=-1)),en!==0){var Bn=yr(Qn+en,en);sr(Bn),br(Bn,!0)}break}case _e.Z.TAB:case _e.Z.ENTER:{var Gn,dn=er[Qn];dn&&!(dn!=null&&(Gn=dn.data)!==null&&Gn!==void 0&&Gn.disabled)&&!dr?Er(dn.value):Er(void 0),ve&&an.preventDefault();break}case _e.Z.ESC:Qe(!1),ve&&an.stopPropagation()}},onKeyUp:function(){},scrollTo:function(an){sr(an)}}}),er.length===0)return de.createElement("div",{role:"listbox",id:"".concat(Re,"_list"),className:"".concat(Cn,"-empty"),onMouseDown:pr},Fe);var Br=Object.keys(xn).map(function(Jn){return xn[Jn]}),Ir=function(an){return an.label};function Or(Jn,an){var pn=Jn.group;return{role:pn?"presentation":"option",id:"".concat(Re,"_list_").concat(an)}}var ir=function(an){var pn=er[an];if(!pn)return null;var hn=pn.data||{},en=hn.value,Bn=pn.group,Gn=(0,nt.Z)(hn,!0),dn=Ir(pn);return pn?de.createElement("div",(0,z.Z)({"aria-label":typeof dn=="string"&&!Bn?dn:null},Gn,{key:an},Or(pn,an),{"aria-selected":zr(en)}),en):null},rr={role:"listbox",id:"".concat(Re,"_list")};return de.createElement(de.Fragment,null,Pn&&de.createElement("div",(0,z.Z)({},rr,{style:{height:0,width:0,overflow:"hidden"}}),ir(Qn-1),ir(Qn),ir(Qn+1)),de.createElement(Ie.Z,{itemKey:"key",ref:jn,data:er,height:Yn,itemHeight:Un,fullHeight:!1,onMouseDown:pr,onScroll:$e,virtual:Pn,direction:Fn,innerProps:Pn?null:rr},function(Jn,an){var pn=Jn.group,hn=Jn.groupOption,en=Jn.data,Bn=Jn.label,Gn=Jn.value,dn=en.key;if(pn){var tn,wn=(tn=en.title)!==null&&tn!==void 0?tn:Mt(Bn)?Bn.toString():void 0;return de.createElement("div",{className:ye()(Cn,"".concat(Cn,"-group"),en.className),title:wn},Bn!==void 0?Bn:dn)}var Tn=en.disabled,cr=en.title,Dr=en.children,Pr=en.style,Rr=en.className,Ar=(0,Se.Z)(en,ft),Fr=(0,zt.Z)(Ar,Br),Ur=ur(Gn),Hr=Tn||!Ur&&dr,Kr="".concat(Cn,"-option"),ti=ye()(Cn,Kr,Rr,(0,ge.Z)((0,ge.Z)((0,ge.Z)((0,ge.Z)({},"".concat(Kr,"-grouped"),hn),"".concat(Kr,"-active"),Qn===an&&!Hr),"".concat(Kr,"-disabled"),Hr),"".concat(Kr,"-selected"),Ur)),Ei=Ir(Jn),Ni=!Hn||typeof Hn=="function"||Ur,xi=typeof Ei=="number"?Ei:Ei||Gn,si=Mt(xi)?xi.toString():void 0;return cr!==void 0&&(si=cr),de.createElement("div",(0,z.Z)({},(0,nt.Z)(Fr),Pn?{}:Or(Jn,an),{"aria-selected":zr(Gn),className:ti,title:si,onMouseMove:function(){Qn===an||Hr||br(an)},onClick:function(){Hr||Er(Gn)},style:Pr}),de.createElement("div",{className:"".concat(Kr,"-content")},typeof Kn=="function"?Kn(Jn,{index:an}):xi),de.isValidElement(Hn)||Ur,Ni&&de.createElement(Ne,{className:"".concat(Cn,"-option-state"),customizeIcon:Hn,customizeIconProps:{value:Gn,disabled:Hr,isSelected:Ur}},Ur?"\u2713":null))}))},cn=de.forwardRef(Gt),En=cn,Sn=function(Ae,et){var Ce=de.useRef({values:new Map,options:new Map}),Le=de.useMemo(function(){var Re=Ce.current,ve=Re.values,Ve=Re.options,Je=Ae.map(function(Fe){if(Fe.label===void 0){var $e;return(0,Ze.Z)((0,Ze.Z)({},Fe),{},{label:($e=ve.get(Fe.value))===null||$e===void 0?void 0:$e.label})}return Fe}),ct=new Map,Qe=new Map;return Je.forEach(function(Fe){ct.set(Fe.value,Fe),Qe.set(Fe.value,et.get(Fe.value)||Ve.get(Fe.value))}),Ce.current.values=ct,Ce.current.options=Qe,Je},[Ae,et]),we=de.useCallback(function(Re){return et.get(Re)||Ce.current.options.get(Re)},[et]);return[Le,we]};function sn(Ae,et){return Be(Ae).join("").toUpperCase().includes(et)}var yn=function(Ae,et,Ce,Le,we){return de.useMemo(function(){if(!Ce||Le===!1)return Ae;var Re=et.options,ve=et.label,Ve=et.value,Je=[],ct=typeof Le=="function",Qe=Ce.toUpperCase(),Fe=ct?Le:function(qe,Qt){return we?sn(Qt[we],Qe):Qt[Re]?sn(Qt[ve!=="children"?ve:"label"],Qe):sn(Qt[Ve],Qe)},$e=ct?function(qe){return mt(qe)}:function(qe){return qe};return Ae.forEach(function(qe){if(qe[Re]){var Qt=Fe(Ce,$e(qe));if(Qt)Je.push(qe);else{var Ut=qe[Re].filter(function(Yt){return Fe(Ce,$e(Yt))});Ut.length&&Je.push((0,Ze.Z)((0,Ze.Z)({},qe),{},(0,ge.Z)({},Re,Ut)))}return}Fe(Ce,$e(qe))&&Je.push(qe)}),Je},[Ae,Le,we,Ce,et])},gn=ie(6551),zn=ie(11592),bn=["children","value"],vn=["children"];function un(Ae){var et=Ae,Ce=et.key,Le=et.props,we=Le.children,Re=Le.value,ve=(0,Se.Z)(Le,bn);return(0,Ze.Z)({key:Ce,value:Re!==void 0?Re:Ce,children:we},ve)}function On(Ae){var et=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,zn.Z)(Ae).map(function(Ce,Le){if(!de.isValidElement(Ce)||!Ce.type)return null;var we=Ce,Re=we.type.isSelectOptGroup,ve=we.key,Ve=we.props,Je=Ve.children,ct=(0,Se.Z)(Ve,vn);return et||!Re?un(Ce):(0,Ze.Z)((0,Ze.Z)({key:"__RC_SELECT_GRP__".concat(ve===null?Le:ve,"__"),label:ve},ct),{},{options:On(Je)})}).filter(function(Ce){return Ce})}var mn=function(et,Ce,Le,we,Re){return de.useMemo(function(){var ve=et,Ve=!et;Ve&&(ve=On(Ce));var Je=new Map,ct=new Map,Qe=function(qe,Qt,Ut){Ut&&typeof Ut=="string"&&qe.set(Qt[Ut],Qt)},Fe=function $e(qe){for(var Qt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ut=0;Ut<qe.length;Ut+=1){var Yt=qe[Ut];!Yt[Le.options]||Qt?(Je.set(Yt[Le.value],Yt),Qe(ct,Yt,Le.label),Qe(ct,Yt,we),Qe(ct,Yt,Re)):$e(Yt[Le.options],!0)}};return Fe(ve),{options:ve,valueOptions:Je,labelOptions:ct}},[et,Ce,Le,we,Re])},Dn=mn;function Wn(Ae){var et=de.useRef();et.current=Ae;var Ce=de.useCallback(function(){return et.current.apply(et,arguments)},[]);return Ce}function Zn(Ae){var et=Ae.mode,Ce=Ae.options,Le=Ae.children,we=Ae.backfill,Re=Ae.allowClear,ve=Ae.placeholder,Ve=Ae.getInputElement,Je=Ae.showSearch,ct=Ae.onSearch,Qe=Ae.defaultOpen,Fe=Ae.autoFocus,$e=Ae.labelInValue,qe=Ae.value,Qt=Ae.inputValue,Ut=Ae.optionLabelProp,Yt=isMultiple(et),kn=Je!==void 0?Je:Yt||et==="combobox",Ln=Ce||convertChildrenToData(Le);if(warning(et!=="tags"||Ln.every(function(Pn){return!Pn.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),et==="tags"||et==="combobox"){var Hn=Ln.some(function(Pn){return Pn.options?Pn.options.some(function(Fn){return typeof("value"in Fn?Fn.value:Fn.key)=="number"}):typeof("value"in Pn?Pn.value:Pn.key)=="number"});warning(!Hn,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(et!=="combobox"||!Ut,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(et==="combobox"||!we,"`backfill` only works with `combobox` mode."),warning(et==="combobox"||!Ve,"`getInputElement` only work with `combobox` mode."),noteOnce(et!=="combobox"||!Ve||!Re||!ve,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),ct&&!kn&&et!=="combobox"&&et!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!Qe||Fe,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),qe!=null){var Mn=toArray(qe);warning(!$e||Mn.every(function(Pn){return _typeof(Pn)==="object"&&("key"in Pn||"value"in Pn)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!Yt||Array.isArray(qe),"`value` should be array when `mode` is `multiple` or `tags`")}if(Le){var xn=null;toNodeArray(Le).some(function(Pn){if(!React.isValidElement(Pn)||!Pn.type)return!1;var Fn=Pn,Yn=Fn.type;if(Yn.isSelectOption)return!1;if(Yn.isSelectOptGroup){var Un=toNodeArray(Pn.props.children).every(function(Kn){return!React.isValidElement(Kn)||!Pn.type||Kn.type.isSelectOption?!0:(xn=Kn.type,!1)});return!Un}return xn=Yn,!0}),xn&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(xn.displayName||xn.name||xn,"`.")),warning(Qt===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function An(Ae,et){if(Ae){var Ce=function Le(we){for(var Re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ve=0;ve<we.length;ve++){var Ve=we[ve];if(Ve[et==null?void 0:et.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!Re&&Array.isArray(Ve[et==null?void 0:et.options])&&Le(Ve[et==null?void 0:et.options],!0))break}};Ce(Ae)}}var Xn=null,Nn=["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"],ar=["inputValue"];function qn(Ae){return!Ae||(0,De.Z)(Ae)!=="object"}var Bt=de.forwardRef(function(Ae,et){var Ce=Ae.id,Le=Ae.mode,we=Ae.prefixCls,Re=we===void 0?"rc-select":we,ve=Ae.backfill,Ve=Ae.fieldNames,Je=Ae.inputValue,ct=Ae.searchValue,Qe=Ae.onSearch,Fe=Ae.autoClearSearchValue,$e=Fe===void 0?!0:Fe,qe=Ae.onSelect,Qt=Ae.onDeselect,Ut=Ae.dropdownMatchSelectWidth,Yt=Ut===void 0?!0:Ut,kn=Ae.filterOption,Ln=Ae.filterSort,Hn=Ae.optionFilterProp,Mn=Ae.optionLabelProp,xn=Ae.options,Pn=Ae.optionRender,Fn=Ae.children,Yn=Ae.defaultActiveFirstOption,Un=Ae.menuItemSelectedIcon,Kn=Ae.virtual,Cn=Ae.direction,er=Ae.listHeight,jn=er===void 0?200:er,dr=Ae.listItemHeight,pr=dr===void 0?20:dr,sr=Ae.labelRender,ur=Ae.value,yr=Ae.defaultValue,lr=Ae.labelInValue,fr=Ae.onChange,Qn=Ae.maxCount,mr=(0,Se.Z)(Ae,Nn),br=(0,gn.ZP)(Ce),zr=Zt(Le),Er=!!(!xn&&Fn),Br=de.useMemo(function(){return kn===void 0&&Le==="combobox"?!1:kn},[kn,Le]),Ir=de.useMemo(function(){return Me(Ve,Er)},[JSON.stringify(Ve),Er]),Or=(0,Ue.Z)("",{value:ct!==void 0?ct:Je,postState:function(Mr){return Mr||""}}),ir=(0,xe.Z)(Or,2),rr=ir[0],Jn=ir[1],an=Dn(xn,Fn,Ir,Hn,Mn),pn=an.valueOptions,hn=an.labelOptions,en=an.options,Bn=de.useCallback(function(gr){var Mr=Be(gr);return Mr.map(function(Cr){var wr,Zr,Xr,Ki,Ii;if(qn(Cr))wr=Cr;else{var vi;Xr=Cr.key,Zr=Cr.label,wr=(vi=Cr.value)!==null&&vi!==void 0?vi:Xr}var ri=pn.get(wr);if(ri){var Gi;if(Zr===void 0&&(Zr=ri==null?void 0:ri[Mn||Ir.label]),Xr===void 0&&(Xr=(Gi=ri==null?void 0:ri.key)!==null&&Gi!==void 0?Gi:wr),Ki=ri==null?void 0:ri.disabled,Ii=ri==null?void 0:ri.title,0)var eo}return{label:Zr,value:wr,key:Xr,disabled:Ki,title:Ii}})},[Ir,Mn,pn]),Gn=(0,Ue.Z)(yr,{value:ur}),dn=(0,xe.Z)(Gn,2),tn=dn[0],wn=dn[1],Tn=de.useMemo(function(){var gr,Mr=zr&&tn===null?[]:tn,Cr=Bn(Mr);return Le==="combobox"&&fe((gr=Cr[0])===null||gr===void 0?void 0:gr.value)?[]:Cr},[tn,Bn,Le,zr]),cr=Sn(Tn,pn),Dr=(0,xe.Z)(cr,2),Pr=Dr[0],Rr=Dr[1],Ar=de.useMemo(function(){if(!Le&&Pr.length===1){var gr=Pr[0];if(gr.value===null&&(gr.label===null||gr.label===void 0))return[]}return Pr.map(function(Mr){var Cr;return(0,Ze.Z)((0,Ze.Z)({},Mr),{},{label:(Cr=typeof sr=="function"?sr(Mr):Mr.label)!==null&&Cr!==void 0?Cr:Mr.value})})},[Le,Pr,sr]),Fr=de.useMemo(function(){return new Set(Pr.map(function(gr){return gr.value}))},[Pr]);de.useEffect(function(){if(Le==="combobox"){var gr,Mr=(gr=Pr[0])===null||gr===void 0?void 0:gr.value;Jn(Ee(Mr)?String(Mr):"")}},[Pr]);var Ur=Wn(function(gr,Mr){var Cr=Mr!=null?Mr:gr;return(0,ge.Z)((0,ge.Z)({},Ir.value,gr),Ir.label,Cr)}),Hr=de.useMemo(function(){if(Le!=="tags")return en;var gr=(0,Ke.Z)(en),Mr=function(wr){return pn.has(wr)};return(0,Ke.Z)(Pr).sort(function(Cr,wr){return Cr.value<wr.value?-1:1}).forEach(function(Cr){var wr=Cr.value;Mr(wr)||gr.push(Ur(wr,Cr.label))}),gr},[Ur,en,pn,Pr,Le]),Kr=yn(Hr,Ir,rr,Br,Hn),ti=de.useMemo(function(){return Le!=="tags"||!rr||Kr.some(function(gr){return gr[Hn||"value"]===rr})||Kr.some(function(gr){return gr[Ir.value]===rr})?Kr:[Ur(rr)].concat((0,Ke.Z)(Kr))},[Ur,Hn,Le,Kr,rr,Ir]),Ei=function gr(Mr){var Cr=(0,Ke.Z)(Mr).sort(function(wr,Zr){return Ln(wr,Zr,{searchValue:rr})});return Cr.map(function(wr){return Array.isArray(wr.options)?(0,Ze.Z)((0,Ze.Z)({},wr),{},{options:wr.options.length>0?gr(wr.options):wr.options}):wr})},Ni=de.useMemo(function(){return Ln?Ei(ti):ti},[ti,Ln,rr]),xi=de.useMemo(function(){return Ye(Ni,{fieldNames:Ir,childrenAsData:Er})},[Ni,Ir,Er]),si=function(Mr){var Cr=Bn(Mr);if(wn(Cr),fr&&(Cr.length!==Pr.length||Cr.some(function(Xr,Ki){var Ii;return((Ii=Pr[Ki])===null||Ii===void 0?void 0:Ii.value)!==(Xr==null?void 0:Xr.value)}))){var wr=lr?Cr:Cr.map(function(Xr){return Xr.value}),Zr=Cr.map(function(Xr){return mt(Rr(Xr.value))});fr(zr?wr:wr[0],zr?Zr:Zr[0])}},Ri=de.useState(null),Wr=(0,xe.Z)(Ri,2),_i=Wr[0],qr=Wr[1],xr=de.useState(0),$r=(0,xe.Z)(xr,2),Gr=$r[0],Sr=$r[1],Nr=Yn!==void 0?Yn:Le!=="combobox",Tr=de.useCallback(function(gr,Mr){var Cr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},wr=Cr.source,Zr=wr===void 0?"keyboard":wr;Sr(Mr),ve&&Le==="combobox"&&gr!==null&&Zr==="keyboard"&&qr(String(gr))},[ve,Le]),ui=function(Mr,Cr,wr){var Zr=function(){var io,Xi=Rr(Mr);return[lr?{label:Xi==null?void 0:Xi[Ir.label],value:Mr,key:(io=Xi==null?void 0:Xi.key)!==null&&io!==void 0?io:Mr}:Mr,mt(Xi)]};if(Cr&&qe){var Xr=Zr(),Ki=(0,xe.Z)(Xr,2),Ii=Ki[0],vi=Ki[1];qe(Ii,vi)}else if(!Cr&&Qt&&wr!=="clear"){var ri=Zr(),Gi=(0,xe.Z)(ri,2),eo=Gi[0],Fi=Gi[1];Qt(eo,Fi)}},Oi=Wn(function(gr,Mr){var Cr,wr=zr?Mr.selected:!0;wr?Cr=zr?[].concat((0,Ke.Z)(Pr),[gr]):[gr]:Cr=Pr.filter(function(Zr){return Zr.value!==gr}),si(Cr),ui(gr,wr),Le==="combobox"?qr(""):(!Zt||$e)&&(Jn(""),qr(""))}),fi=function(Mr,Cr){si(Mr);var wr=Cr.type,Zr=Cr.values;(wr==="remove"||wr==="clear")&&Zr.forEach(function(Xr){ui(Xr.value,!1,wr)})},ni=function(Mr,Cr){if(Jn(Mr),qr(null),Cr.source==="submit"){var wr=(Mr||"").trim();if(wr){var Zr=Array.from(new Set([].concat((0,Ke.Z)(Fr),[wr])));si(Zr),ui(wr,!0),Jn("")}return}Cr.source!=="blur"&&(Le==="combobox"&&si(Mr),Qe==null||Qe(Mr))},xo=function(Mr){var Cr=Mr;Le!=="tags"&&(Cr=Mr.map(function(Zr){var Xr=hn.get(Zr);return Xr==null?void 0:Xr.value}).filter(function(Zr){return Zr!==void 0}));var wr=Array.from(new Set([].concat((0,Ke.Z)(Fr),(0,Ke.Z)(Cr))));si(wr),wr.forEach(function(Zr){ui(Zr,!0)})},so=de.useMemo(function(){var gr=Kn!==!1&&Yt!==!1;return(0,Ze.Z)((0,Ze.Z)({},an),{},{flattenOptions:xi,onActiveValue:Tr,defaultActiveFirstOption:Nr,onSelect:Oi,menuItemSelectedIcon:Un,rawValues:Fr,fieldNames:Ir,virtual:gr,direction:Cn,listHeight:jn,listItemHeight:pr,childrenAsData:Er,maxCount:Qn,optionRender:Pn})},[Qn,an,xi,Tr,Nr,Oi,Un,Fr,Ir,Kn,Yt,Cn,jn,pr,Er,Pn]);return de.createElement(Xt.Provider,{value:so},de.createElement(St,(0,z.Z)({},mr,{id:br,prefixCls:Re,ref:et,omitDomProps:ar,mode:Le,displayValues:Ar,onDisplayValuesChange:fi,direction:Cn,searchValue:rr,onSearch:ni,autoClearSearchValue:$e,onSearchSplit:xo,dropdownMatchSelectWidth:Yt,OptionList:En,emptyOptions:!xi.length,activeValue:_i,activeDescendantId:"".concat(br,"_list_").concat(Gr)})))}),nn=Bt;nn.Option=tt,nn.OptGroup=Wt;var $n=nn,nr=$n},22711:function(rn,Ft,ie){"use strict";ie.r(Ft),ie.d(Ft,{ResizableTextArea:function(){return ze},default:function(){return At}});var z=ie(54476),Ke=ie(20068),ge=ie(33885),Ze=ie(94480),xe=ie(42978),Se=ie(75931),De=ie(92310),Ue=ie.n(De),Pe=ie(36901),de=ie(66003),He=ie(30292),ye=ie(18929),vt=ie(59301),je=ie(76190),Te=ie(29301),ke=ie(34280),Ne=ie(16089),yt=`
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;
`,wt=["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"],Pt={},bt;function pt(Be){var Nt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,on=Be.getAttribute("id")||Be.getAttribute("data-reactid")||Be.getAttribute("name");if(Nt&&Pt[on])return Pt[on];var Ee=window.getComputedStyle(Be),fe=Ee.getPropertyValue("box-sizing")||Ee.getPropertyValue("-moz-box-sizing")||Ee.getPropertyValue("-webkit-box-sizing"),Et=parseFloat(Ee.getPropertyValue("padding-bottom"))+parseFloat(Ee.getPropertyValue("padding-top")),Jt=parseFloat(Ee.getPropertyValue("border-bottom-width"))+parseFloat(Ee.getPropertyValue("border-top-width")),Dt=wt.map(function(ot){return"".concat(ot,":").concat(Ee.getPropertyValue(ot))}).join(";"),We={sizingStyle:Dt,paddingSize:Et,borderSize:Jt,boxSizing:fe};return Nt&&on&&(Pt[on]=We),We}function lt(Be){var Nt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,on=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,Ee=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;bt||(bt=document.createElement("textarea"),bt.setAttribute("tab-index","-1"),bt.setAttribute("aria-hidden","true"),bt.setAttribute("name","hiddenTextarea"),document.body.appendChild(bt)),Be.getAttribute("wrap")?bt.setAttribute("wrap",Be.getAttribute("wrap")):bt.removeAttribute("wrap");var fe=pt(Be,Nt),Et=fe.paddingSize,Jt=fe.borderSize,Dt=fe.boxSizing,We=fe.sizingStyle;bt.setAttribute("style","".concat(We,";").concat(yt)),bt.value=Be.value||Be.placeholder||"";var ot=void 0,dt=void 0,$t,Lt=bt.scrollHeight;if(Dt==="border-box"?Lt+=Jt:Dt==="content-box"&&(Lt-=Et),on!==null||Ee!==null){bt.value=" ";var Vt=bt.scrollHeight-Et;on!==null&&(ot=Vt*on,Dt==="border-box"&&(ot=ot+Et+Jt),Lt=Math.max(ot,Lt)),Ee!==null&&(dt=Vt*Ee,Dt==="border-box"&&(dt=dt+Et+Jt),$t=Lt>dt?"":"hidden",Lt=Math.min(dt,Lt))}var rt={height:Lt,overflowY:$t,resize:"none"};return ot&&(rt.minHeight=ot),dt&&(rt.maxHeight=dt),rt}var _e=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],kt=0,nt=1,it=2,Ct=vt.forwardRef(function(Be,Nt){var on=Be,Ee=on.prefixCls,fe=on.defaultValue,Et=on.value,Jt=on.autoSize,Dt=on.onResize,We=on.className,ot=on.style,dt=on.disabled,$t=on.onChange,Lt=on.onInternalAutoSize,Vt=(0,Se.Z)(on,_e),rt=(0,ye.Z)(fe,{value:Et,postState:function(tt){return tt!=null?tt:""}}),Ht=(0,xe.Z)(rt,2),st=Ht[0],ae=Ht[1],te=function(tt){ae(tt.target.value),$t==null||$t(tt)},ee=vt.useRef();vt.useImperativeHandle(Nt,function(){return{textArea:ee.current}});var oe=vt.useMemo(function(){return Jt&&(0,je.Z)(Jt)==="object"?[Jt.minRows,Jt.maxRows]:[]},[Jt]),se=(0,xe.Z)(oe,2),re=se[0],he=se[1],be=!!Jt,ht=function(){try{if(document.activeElement===ee.current){var tt=ee.current,Tt=tt.selectionStart,zt=tt.selectionEnd,Ie=tt.scrollTop;ee.current.setSelectionRange(Tt,zt),ee.current.scrollTop=Ie}}catch(Xe){}},Me=vt.useState(it),Ye=(0,xe.Z)(Me,2),mt=Ye[0],It=Ye[1],xt=vt.useState(),Xt=(0,xe.Z)(xt,2),Kt=Xt[0],jt=Xt[1],_t=function(){It(kt)};(0,ke.Z)(function(){be&&_t()},[Et,re,he,be]),(0,ke.Z)(function(){if(mt===kt)It(nt);else if(mt===nt){var Oe=lt(ee.current,!1,re,he);It(it),jt(Oe)}else ht()},[mt]);var Zt=vt.useRef(),ln=function(){Ne.Z.cancel(Zt.current)},St=function(tt){mt===it&&(Dt==null||Dt(tt),Jt&&(ln(),Zt.current=(0,Ne.Z)(function(){_t()})))};vt.useEffect(function(){return ln},[]);var qt=be?Kt:null,Wt=(0,ge.Z)((0,ge.Z)({},ot),qt);return(mt===kt||mt===nt)&&(Wt.overflowY="hidden",Wt.overflowX="hidden"),vt.createElement(Te.Z,{onResize:St,disabled:!(Jt||Dt)},vt.createElement("textarea",(0,z.Z)({},Vt,{ref:ee,style:Wt,className:Ue()(Ee,We,(0,Ke.Z)({},"".concat(Ee,"-disabled"),dt)),disabled:dt,value:st,onChange:te})))}),ze=Ct,gt=["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"],ut=vt.forwardRef(function(Be,Nt){var on,Ee=Be.defaultValue,fe=Be.value,Et=Be.onFocus,Jt=Be.onBlur,Dt=Be.onChange,We=Be.allowClear,ot=Be.maxLength,dt=Be.onCompositionStart,$t=Be.onCompositionEnd,Lt=Be.suffix,Vt=Be.prefixCls,rt=Vt===void 0?"rc-textarea":Vt,Ht=Be.showCount,st=Be.count,ae=Be.className,te=Be.style,ee=Be.disabled,oe=Be.hidden,se=Be.classNames,re=Be.styles,he=Be.onResize,be=Be.onClear,ht=Be.onPressEnter,Me=Be.readOnly,Ye=Be.autoSize,mt=Be.onKeyDown,It=(0,Se.Z)(Be,gt),xt=(0,ye.Z)(Ee,{value:fe,defaultValue:Ee}),Xt=(0,xe.Z)(xt,2),Kt=Xt[0],jt=Xt[1],_t=Kt==null?"":String(Kt),Zt=vt.useState(!1),ln=(0,xe.Z)(Zt,2),St=ln[0],qt=ln[1],Wt=vt.useRef(!1),Oe=vt.useState(null),tt=(0,xe.Z)(Oe,2),Tt=tt[0],zt=tt[1],Ie=(0,vt.useRef)(null),Xe=(0,vt.useRef)(null),ft=function(){var nn;return(nn=Xe.current)===null||nn===void 0?void 0:nn.textArea},Mt=function(){ft().focus()};(0,vt.useImperativeHandle)(Nt,function(){var Bt;return{resizableTextArea:Xe.current,focus:Mt,blur:function(){ft().blur()},nativeElement:((Bt=Ie.current)===null||Bt===void 0?void 0:Bt.nativeElement)||ft()}}),(0,vt.useEffect)(function(){qt(function(Bt){return!ee&&Bt})},[ee]);var Gt=vt.useState(null),cn=(0,xe.Z)(Gt,2),En=cn[0],Sn=cn[1];vt.useEffect(function(){if(En){var Bt;(Bt=ft()).setSelectionRange.apply(Bt,(0,Ze.Z)(En))}},[En]);var sn=(0,de.Z)(st,Ht),yn=(on=sn.max)!==null&&on!==void 0?on:ot,gn=Number(yn)>0,zn=sn.strategy(_t),bn=!!yn&&zn>yn,vn=function(nn,$n){var nr=$n;!Wt.current&&sn.exceedFormatter&&sn.max&&sn.strategy($n)>sn.max&&(nr=sn.exceedFormatter($n,{max:sn.max}),$n!==nr&&Sn([ft().selectionStart||0,ft().selectionEnd||0])),jt(nr),(0,He.rJ)(nn.currentTarget,nn,Dt,nr)},un=function(nn){Wt.current=!0,dt==null||dt(nn)},On=function(nn){Wt.current=!1,vn(nn,nn.currentTarget.value),$t==null||$t(nn)},mn=function(nn){vn(nn,nn.target.value)},Dn=function(nn){nn.key==="Enter"&&ht&&ht(nn),mt==null||mt(nn)},Wn=function(nn){qt(!0),Et==null||Et(nn)},Zn=function(nn){qt(!1),Jt==null||Jt(nn)},An=function(nn){jt(""),Mt(),(0,He.rJ)(ft(),nn,Dt)},Xn=Lt,Nn;sn.show&&(sn.showFormatter?Nn=sn.showFormatter({value:_t,count:zn,maxLength:yn}):Nn="".concat(zn).concat(gn?" / ".concat(yn):""),Xn=vt.createElement(vt.Fragment,null,Xn,vt.createElement("span",{className:Ue()("".concat(rt,"-data-count"),se==null?void 0:se.count),style:re==null?void 0:re.count},Nn)));var ar=function(nn){var $n;he==null||he(nn),($n=ft())!==null&&$n!==void 0&&$n.style.height&&zt(!0)},qn=!Ye&&!Ht&&!We;return vt.createElement(Pe.BaseInput,{ref:Ie,value:_t,allowClear:We,handleReset:An,suffix:Xn,prefixCls:rt,classNames:(0,ge.Z)((0,ge.Z)({},se),{},{affixWrapper:Ue()(se==null?void 0:se.affixWrapper,(0,Ke.Z)((0,Ke.Z)({},"".concat(rt,"-show-count"),Ht),"".concat(rt,"-textarea-allow-clear"),We))}),disabled:ee,focused:St,className:Ue()(ae,bn&&"".concat(rt,"-out-of-range")),style:(0,ge.Z)((0,ge.Z)({},te),Tt&&!qn?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Nn=="string"?Nn:void 0}},hidden:oe,readOnly:Me,onClear:be},vt.createElement(ze,(0,z.Z)({},It,{autoSize:Ye,maxLength:ot,onKeyDown:Dn,onChange:mn,onFocus:Wn,onBlur:Zn,onCompositionStart:un,onCompositionEnd:On,className:Ue()(se==null?void 0:se.textarea),style:(0,ge.Z)((0,ge.Z)({},re==null?void 0:re.textarea),{},{resize:te==null?void 0:te.resize}),disabled:ee,prefixCls:rt,onResize:ar,ref:Xe,readOnly:Me})))}),pe=ut,At=pe},48911:function(rn,Ft,ie){"use strict";ie.d(Ft,{Z:function(){return st}});var z=ie(54476),Ke=ie(76190),ge=ie(33885),Ze=ie(20068),xe=ie(42978),Se=ie(75931),De=ie(92310),Ue=ie.n(De),Pe=ie(29301),de=ie(70425),He=ie(34280),ye=ie(59301),vt=ie(4676),je=ye.forwardRef(function(ae,te){var ee=ae.height,oe=ae.offsetY,se=ae.offsetX,re=ae.children,he=ae.prefixCls,be=ae.onInnerResize,ht=ae.innerProps,Me=ae.rtl,Ye=ae.extra,mt={},It={display:"flex",flexDirection:"column"};return oe!==void 0&&(mt={height:ee,position:"relative",overflow:"hidden"},It=(0,ge.Z)((0,ge.Z)({},It),{},(0,Ze.Z)((0,Ze.Z)((0,Ze.Z)((0,Ze.Z)((0,Ze.Z)({transform:"translateY(".concat(oe,"px)")},Me?"marginRight":"marginLeft",-se),"position","absolute"),"left",0),"right",0),"top",0))),ye.createElement("div",{style:mt},ye.createElement(Pe.Z,{onResize:function(Xt){var Kt=Xt.offsetHeight;Kt&&be&&be()}},ye.createElement("div",(0,z.Z)({style:It,className:Ue()((0,Ze.Z)({},"".concat(he,"-holder-inner"),he)),ref:te},ht),re,Ye)))});je.displayName="Filler";var Te=je;function ke(ae){var te=ae.children,ee=ae.setRef,oe=ye.useCallback(function(se){ee(se)},[]);return ye.cloneElement(te,{ref:oe})}function Ne(ae,te,ee,oe,se,re,he,be){var ht=be.getKey;return ae.slice(te,ee+1).map(function(Me,Ye){var mt=te+Ye,It=he(Me,mt,{style:{width:oe},offsetX:se}),xt=ht(Me);return ye.createElement(ke,{key:xt,setRef:function(Kt){return re(Me,Kt)}},It)})}function yt(ae,te,ee,oe){var se=ee-ae,re=te-ee,he=Math.min(se,re)*2;if(oe<=he){var be=Math.floor(oe/2);return oe%2?ee+be+1:ee-be}return se>re?ee-(oe-re):ee+(oe-se)}function wt(ae,te,ee){var oe=ae.length,se=te.length,re,he;if(oe===0&&se===0)return null;oe<se?(re=ae,he=te):(re=te,he=ae);var be={__EMPTY_ITEM__:!0};function ht(Xt){return Xt!==void 0?ee(Xt):be}for(var Me=null,Ye=Math.abs(oe-se)!==1,mt=0;mt<he.length;mt+=1){var It=ht(re[mt]),xt=ht(he[mt]);if(It!==xt){Me=mt,Ye=Ye||It!==ht(he[mt+1]);break}}return Me===null?null:{index:Me,multiple:Ye}}function Pt(ae,te,ee){var oe=ye.useState(ae),se=(0,xe.Z)(oe,2),re=se[0],he=se[1],be=ye.useState(null),ht=(0,xe.Z)(be,2),Me=ht[0],Ye=ht[1];return ye.useEffect(function(){var mt=wt(re||[],ae||[],te);(mt==null?void 0:mt.index)!==void 0&&(ee==null||ee(mt.index),Ye(ae[mt.index])),he(ae)},[ae]),[Me]}var bt=ie(16089),pt=(typeof navigator=="undefined"?"undefined":(0,Ke.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),lt=pt,_e=function(ae,te,ee,oe){var se=(0,ye.useRef)(!1),re=(0,ye.useRef)(null);function he(){clearTimeout(re.current),se.current=!0,re.current=setTimeout(function(){se.current=!1},50)}var be=(0,ye.useRef)({top:ae,bottom:te,left:ee,right:oe});return be.current.top=ae,be.current.bottom=te,be.current.left=ee,be.current.right=oe,function(ht,Me){var Ye=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,mt=ht?Me<0&&be.current.left||Me>0&&be.current.right:Me<0&&be.current.top||Me>0&&be.current.bottom;return Ye&&mt?(clearTimeout(re.current),se.current=!1):(!mt||se.current)&&he(),!se.current&&mt}};function kt(ae,te,ee,oe,se,re,he){var be=(0,ye.useRef)(0),ht=(0,ye.useRef)(null),Me=(0,ye.useRef)(null),Ye=(0,ye.useRef)(!1),mt=_e(te,ee,oe,se);function It(Zt,ln){if(bt.Z.cancel(ht.current),!mt(!1,ln)){var St=Zt;if(!St._virtualHandled)St._virtualHandled=!0;else return;be.current+=ln,Me.current=ln,lt||St.preventDefault(),ht.current=(0,bt.Z)(function(){var qt=Ye.current?10:1;he(be.current*qt,!1),be.current=0})}}function xt(Zt,ln){he(ln,!0),lt||Zt.preventDefault()}var Xt=(0,ye.useRef)(null),Kt=(0,ye.useRef)(null);function jt(Zt){if(ae){bt.Z.cancel(Kt.current),Kt.current=(0,bt.Z)(function(){Xt.current=null},2);var ln=Zt.deltaX,St=Zt.deltaY,qt=Zt.shiftKey,Wt=ln,Oe=St;(Xt.current==="sx"||!Xt.current&&qt&&St&&!ln)&&(Wt=St,Oe=0,Xt.current="sx");var tt=Math.abs(Wt),Tt=Math.abs(Oe);Xt.current===null&&(Xt.current=re&&tt>Tt?"x":"y"),Xt.current==="y"?It(Zt,Oe):xt(Zt,Wt)}}function _t(Zt){ae&&(Ye.current=Zt.detail===Me.current)}return[jt,_t]}function nt(ae,te,ee,oe){var se=ye.useMemo(function(){return[new Map,[]]},[ae,ee.id,oe]),re=(0,xe.Z)(se,2),he=re[0],be=re[1],ht=function(Ye){var mt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ye,It=he.get(Ye),xt=he.get(mt);if(It===void 0||xt===void 0)for(var Xt=ae.length,Kt=be.length;Kt<Xt;Kt+=1){var jt,_t=ae[Kt],Zt=te(_t);he.set(Zt,Kt);var ln=(jt=ee.get(Zt))!==null&&jt!==void 0?jt:oe;if(be[Kt]=(be[Kt-1]||0)+ln,Zt===Ye&&(It=Kt),Zt===mt&&(xt=Kt),It!==void 0&&xt!==void 0)break}return{top:be[It-1]||0,bottom:be[xt]}};return ht}var it=ie(67732),Ct=ie(83652),ze=function(){function ae(){(0,it.Z)(this,ae),(0,Ze.Z)(this,"maps",void 0),(0,Ze.Z)(this,"id",0),(0,Ze.Z)(this,"diffRecords",new Map),this.maps=Object.create(null)}return(0,Ct.Z)(ae,[{key:"set",value:function(ee,oe){this.diffRecords.set(ee,this.maps[ee]),this.maps[ee]=oe,this.id+=1}},{key:"get",value:function(ee){return this.maps[ee]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),ae}(),gt=ze;function ut(ae){var te=parseFloat(ae);return isNaN(te)?0:te}function pe(ae,te,ee){var oe=ye.useState(0),se=(0,xe.Z)(oe,2),re=se[0],he=se[1],be=(0,ye.useRef)(new Map),ht=(0,ye.useRef)(new gt),Me=(0,ye.useRef)(0);function Ye(){Me.current+=1}function mt(){var xt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;Ye();var Xt=function(){var _t=!1;be.current.forEach(function(Zt,ln){if(Zt&&Zt.offsetParent){var St=Zt.offsetHeight,qt=getComputedStyle(Zt),Wt=qt.marginTop,Oe=qt.marginBottom,tt=ut(Wt),Tt=ut(Oe),zt=St+tt+Tt;ht.current.get(ln)!==zt&&(ht.current.set(ln,zt),_t=!0)}}),_t&&he(function(Zt){return Zt+1})};if(xt)Xt();else{Me.current+=1;var Kt=Me.current;Promise.resolve().then(function(){Kt===Me.current&&Xt()})}}function It(xt,Xt){var Kt=ae(xt),jt=be.current.get(Kt);Xt?(be.current.set(Kt,Xt),mt()):be.current.delete(Kt),!jt!=!Xt&&(Xt?te==null||te(xt):ee==null||ee(xt))}return(0,ye.useEffect)(function(){return Ye},[]),[It,mt,ht.current,re]}var At=14/15;function Be(ae,te,ee){var oe=(0,ye.useRef)(!1),se=(0,ye.useRef)(0),re=(0,ye.useRef)(0),he=(0,ye.useRef)(null),be=(0,ye.useRef)(null),ht,Me=function(xt){if(oe.current){var Xt=Math.ceil(xt.touches[0].pageX),Kt=Math.ceil(xt.touches[0].pageY),jt=se.current-Xt,_t=re.current-Kt,Zt=Math.abs(jt)>Math.abs(_t);Zt?se.current=Xt:re.current=Kt;var ln=ee(Zt,Zt?jt:_t,!1,xt);ln&&xt.preventDefault(),clearInterval(be.current),ln&&(be.current=setInterval(function(){Zt?jt*=At:_t*=At;var St=Math.floor(Zt?jt:_t);(!ee(Zt,St,!0)||Math.abs(St)<=.1)&&clearInterval(be.current)},16))}},Ye=function(){oe.current=!1,ht()},mt=function(xt){ht(),xt.touches.length===1&&!oe.current&&(oe.current=!0,se.current=Math.ceil(xt.touches[0].pageX),re.current=Math.ceil(xt.touches[0].pageY),he.current=xt.target,he.current.addEventListener("touchmove",Me,{passive:!1}),he.current.addEventListener("touchend",Ye,{passive:!0}))};ht=function(){he.current&&(he.current.removeEventListener("touchmove",Me),he.current.removeEventListener("touchend",Ye))},(0,He.Z)(function(){return ae&&te.current.addEventListener("touchstart",mt,{passive:!0}),function(){var It;(It=te.current)===null||It===void 0||It.removeEventListener("touchstart",mt),ht(),clearInterval(be.current)}},[ae])}function Nt(ae){return Math.floor(Math.pow(ae,.5))}function on(ae,te){var ee="touches"in ae?ae.touches[0]:ae;return ee[te?"pageX":"pageY"]-window[te?"scrollX":"scrollY"]}function Ee(ae,te,ee){ye.useEffect(function(){var oe=te.current;if(ae&&oe){var se=!1,re,he,be=function(){bt.Z.cancel(re)},ht=function It(){be(),re=(0,bt.Z)(function(){ee(he),It()})},Me=function(){se=!1,be()},Ye=function(xt){if(!(xt.target.draggable||xt.button!==0)){var Xt=xt;Xt._virtualHandled||(Xt._virtualHandled=!0,se=!0)}},mt=function(xt){if(se){var Xt=on(xt,!1),Kt=oe.getBoundingClientRect(),jt=Kt.top,_t=Kt.bottom;if(Xt<=jt){var Zt=jt-Xt;he=-Nt(Zt),ht()}else if(Xt>=_t){var ln=Xt-_t;he=Nt(ln),ht()}else be()}};return oe.addEventListener("mousedown",Ye),oe.ownerDocument.addEventListener("mouseup",Me),oe.ownerDocument.addEventListener("mousemove",mt),oe.ownerDocument.addEventListener("dragend",Me),function(){oe.removeEventListener("mousedown",Ye),oe.ownerDocument.removeEventListener("mouseup",Me),oe.ownerDocument.removeEventListener("mousemove",mt),oe.ownerDocument.removeEventListener("dragend",Me),be()}}},[ae])}var fe=10;function Et(ae,te,ee,oe,se,re,he,be){var ht=ye.useRef(),Me=ye.useState(null),Ye=(0,xe.Z)(Me,2),mt=Ye[0],It=Ye[1];return(0,He.Z)(function(){if(mt&&mt.times<fe){if(!ae.current){It(function(sn){return(0,ge.Z)({},sn)});return}re();var xt=mt.targetAlign,Xt=mt.originAlign,Kt=mt.index,jt=mt.offset,_t=ae.current.clientHeight,Zt=!1,ln=xt,St=null;if(_t){for(var qt=xt||Xt,Wt=0,Oe=0,tt=0,Tt=Math.min(te.length-1,Kt),zt=0;zt<=Tt;zt+=1){var Ie=se(te[zt]);Oe=Wt;var Xe=ee.get(Ie);tt=Oe+(Xe===void 0?oe:Xe),Wt=tt}for(var ft=qt==="top"?jt:_t-jt,Mt=Tt;Mt>=0;Mt-=1){var Gt=se(te[Mt]),cn=ee.get(Gt);if(cn===void 0){Zt=!0;break}if(ft-=cn,ft<=0)break}switch(qt){case"top":St=Oe-jt;break;case"bottom":St=tt-_t+jt;break;default:{var En=ae.current.scrollTop,Sn=En+_t;Oe<En?ln="top":tt>Sn&&(ln="bottom")}}St!==null&&he(St),St!==mt.lastTop&&(Zt=!0)}Zt&&It((0,ge.Z)((0,ge.Z)({},mt),{},{times:mt.times+1,targetAlign:ln,lastTop:St}))}},[mt,ae.current]),function(xt){if(xt==null){be();return}if(bt.Z.cancel(ht.current),typeof xt=="number")he(xt);else if(xt&&(0,Ke.Z)(xt)==="object"){var Xt,Kt=xt.align;"index"in xt?Xt=xt.index:Xt=te.findIndex(function(Zt){return se(Zt)===xt.key});var jt=xt.offset,_t=jt===void 0?0:jt;It({times:0,index:Xt,offset:_t,originAlign:Kt})}}}var Jt=ye.forwardRef(function(ae,te){var ee=ae.prefixCls,oe=ae.rtl,se=ae.scrollOffset,re=ae.scrollRange,he=ae.onStartMove,be=ae.onStopMove,ht=ae.onScroll,Me=ae.horizontal,Ye=ae.spinSize,mt=ae.containerSize,It=ae.style,xt=ae.thumbStyle,Xt=ae.showScrollBar,Kt=ye.useState(!1),jt=(0,xe.Z)(Kt,2),_t=jt[0],Zt=jt[1],ln=ye.useState(null),St=(0,xe.Z)(ln,2),qt=St[0],Wt=St[1],Oe=ye.useState(null),tt=(0,xe.Z)(Oe,2),Tt=tt[0],zt=tt[1],Ie=!oe,Xe=ye.useRef(),ft=ye.useRef(),Mt=ye.useState(Xt),Gt=(0,xe.Z)(Mt,2),cn=Gt[0],En=Gt[1],Sn=ye.useRef(),sn=function(){Xt===!0||Xt===!1||(clearTimeout(Sn.current),En(!0),Sn.current=setTimeout(function(){En(!1)},3e3))},yn=re-mt||0,gn=mt-Ye||0,zn=ye.useMemo(function(){if(se===0||yn===0)return 0;var An=se/yn;return An*gn},[se,yn,gn]),bn=function(Xn){Xn.stopPropagation(),Xn.preventDefault()},vn=ye.useRef({top:zn,dragging:_t,pageY:qt,startTop:Tt});vn.current={top:zn,dragging:_t,pageY:qt,startTop:Tt};var un=function(Xn){Zt(!0),Wt(on(Xn,Me)),zt(vn.current.top),he(),Xn.stopPropagation(),Xn.preventDefault()};ye.useEffect(function(){var An=function(qn){qn.preventDefault()},Xn=Xe.current,Nn=ft.current;return Xn.addEventListener("touchstart",An,{passive:!1}),Nn.addEventListener("touchstart",un,{passive:!1}),function(){Xn.removeEventListener("touchstart",An),Nn.removeEventListener("touchstart",un)}},[]);var On=ye.useRef();On.current=yn;var mn=ye.useRef();mn.current=gn,ye.useEffect(function(){if(_t){var An,Xn=function(qn){var Bt=vn.current,nn=Bt.dragging,$n=Bt.pageY,nr=Bt.startTop;bt.Z.cancel(An);var Ae=Xe.current.getBoundingClientRect(),et=mt/(Me?Ae.width:Ae.height);if(nn){var Ce=(on(qn,Me)-$n)*et,Le=nr;!Ie&&Me?Le-=Ce:Le+=Ce;var we=On.current,Re=mn.current,ve=Re?Le/Re:0,Ve=Math.ceil(ve*we);Ve=Math.max(Ve,0),Ve=Math.min(Ve,we),An=(0,bt.Z)(function(){ht(Ve,Me)})}},Nn=function(){Zt(!1),be()};return window.addEventListener("mousemove",Xn,{passive:!0}),window.addEventListener("touchmove",Xn,{passive:!0}),window.addEventListener("mouseup",Nn,{passive:!0}),window.addEventListener("touchend",Nn,{passive:!0}),function(){window.removeEventListener("mousemove",Xn),window.removeEventListener("touchmove",Xn),window.removeEventListener("mouseup",Nn),window.removeEventListener("touchend",Nn),bt.Z.cancel(An)}}},[_t]),ye.useEffect(function(){return sn(),function(){clearTimeout(Sn.current)}},[se]),ye.useImperativeHandle(te,function(){return{delayHidden:sn}});var Dn="".concat(ee,"-scrollbar"),Wn={position:"absolute",visibility:cn?null:"hidden"},Zn={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return Me?(Object.assign(Wn,{height:8,left:0,right:0,bottom:0}),Object.assign(Zn,(0,Ze.Z)({height:"100%",width:Ye},Ie?"left":"right",zn))):(Object.assign(Wn,(0,Ze.Z)({width:8,top:0,bottom:0},Ie?"right":"left",0)),Object.assign(Zn,{width:"100%",height:Ye,top:zn})),ye.createElement("div",{ref:Xe,className:Ue()(Dn,(0,Ze.Z)((0,Ze.Z)((0,Ze.Z)({},"".concat(Dn,"-horizontal"),Me),"".concat(Dn,"-vertical"),!Me),"".concat(Dn,"-visible"),cn)),style:(0,ge.Z)((0,ge.Z)({},Wn),It),onMouseDown:bn,onMouseMove:sn},ye.createElement("div",{ref:ft,className:Ue()("".concat(Dn,"-thumb"),(0,Ze.Z)({},"".concat(Dn,"-thumb-moving"),_t)),style:(0,ge.Z)((0,ge.Z)({},Zn),xt),onMouseDown:un}))}),Dt=Jt,We=20;function ot(){var ae=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,ee=ae/te*ae;return isNaN(ee)&&(ee=0),ee=Math.max(ee,We),Math.floor(ee)}var dt=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],$t=[],Lt={overflowY:"auto",overflowAnchor:"none"};function Vt(ae,te){var ee=ae.prefixCls,oe=ee===void 0?"rc-virtual-list":ee,se=ae.className,re=ae.height,he=ae.itemHeight,be=ae.fullHeight,ht=be===void 0?!0:be,Me=ae.style,Ye=ae.data,mt=ae.children,It=ae.itemKey,xt=ae.virtual,Xt=ae.direction,Kt=ae.scrollWidth,jt=ae.component,_t=jt===void 0?"div":jt,Zt=ae.onScroll,ln=ae.onVirtualScroll,St=ae.onVisibleChange,qt=ae.innerProps,Wt=ae.extraRender,Oe=ae.styles,tt=ae.showScrollBar,Tt=tt===void 0?"optional":tt,zt=(0,Se.Z)(ae,dt),Ie=ye.useCallback(function(an){return typeof It=="function"?It(an):an==null?void 0:an[It]},[It]),Xe=pe(Ie,null,null),ft=(0,xe.Z)(Xe,4),Mt=ft[0],Gt=ft[1],cn=ft[2],En=ft[3],Sn=!!(xt!==!1&&re&&he),sn=ye.useMemo(function(){return Object.values(cn.maps).reduce(function(an,pn){return an+pn},0)},[cn.id,cn.maps]),yn=Sn&&Ye&&(Math.max(he*Ye.length,sn)>re||!!Kt),gn=Xt==="rtl",zn=Ue()(oe,(0,Ze.Z)({},"".concat(oe,"-rtl"),gn),se),bn=Ye||$t,vn=(0,ye.useRef)(),un=(0,ye.useRef)(),On=(0,ye.useRef)(),mn=(0,ye.useState)(0),Dn=(0,xe.Z)(mn,2),Wn=Dn[0],Zn=Dn[1],An=(0,ye.useState)(0),Xn=(0,xe.Z)(An,2),Nn=Xn[0],ar=Xn[1],qn=(0,ye.useState)(!1),Bt=(0,xe.Z)(qn,2),nn=Bt[0],$n=Bt[1],nr=function(){$n(!0)},Ae=function(){$n(!1)},et={getKey:Ie};function Ce(an){Zn(function(pn){var hn;typeof an=="function"?hn=an(pn):hn=an;var en=Yn(hn);return vn.current.scrollTop=en,en})}var Le=(0,ye.useRef)({start:0,end:bn.length}),we=(0,ye.useRef)(),Re=Pt(bn,Ie),ve=(0,xe.Z)(Re,1),Ve=ve[0];we.current=Ve;var Je=ye.useMemo(function(){if(!Sn)return{scrollHeight:void 0,start:0,end:bn.length-1,offset:void 0};if(!yn){var an;return{scrollHeight:((an=un.current)===null||an===void 0?void 0:an.offsetHeight)||0,start:0,end:bn.length-1,offset:void 0}}for(var pn=0,hn,en,Bn,Gn=bn.length,dn=0;dn<Gn;dn+=1){var tn=bn[dn],wn=Ie(tn),Tn=cn.get(wn),cr=pn+(Tn===void 0?he:Tn);cr>=Wn&&hn===void 0&&(hn=dn,en=pn),cr>Wn+re&&Bn===void 0&&(Bn=dn),pn=cr}return hn===void 0&&(hn=0,en=0,Bn=Math.ceil(re/he)),Bn===void 0&&(Bn=bn.length-1),Bn=Math.min(Bn+1,bn.length-1),{scrollHeight:pn,start:hn,end:Bn,offset:en}},[yn,Sn,Wn,bn,En,re]),ct=Je.scrollHeight,Qe=Je.start,Fe=Je.end,$e=Je.offset;Le.current.start=Qe,Le.current.end=Fe,ye.useLayoutEffect(function(){var an=cn.getRecord();if(an.size===1){var pn=Array.from(an.keys())[0],hn=an.get(pn),en=bn[Qe];if(en&&hn===void 0){var Bn=Ie(en);if(Bn===pn){var Gn=cn.get(pn),dn=Gn-he;Ce(function(tn){return tn+dn})}}}cn.resetRecord()},[ct]);var qe=ye.useState({width:0,height:re}),Qt=(0,xe.Z)(qe,2),Ut=Qt[0],Yt=Qt[1],kn=function(pn){Yt({width:pn.offsetWidth,height:pn.offsetHeight})},Ln=(0,ye.useRef)(),Hn=(0,ye.useRef)(),Mn=ye.useMemo(function(){return ot(Ut.width,Kt)},[Ut.width,Kt]),xn=ye.useMemo(function(){return ot(Ut.height,ct)},[Ut.height,ct]),Pn=ct-re,Fn=(0,ye.useRef)(Pn);Fn.current=Pn;function Yn(an){var pn=an;return Number.isNaN(Fn.current)||(pn=Math.min(pn,Fn.current)),pn=Math.max(pn,0),pn}var Un=Wn<=0,Kn=Wn>=Pn,Cn=Nn<=0,er=Nn>=Kt,jn=_e(Un,Kn,Cn,er),dr=function(){return{x:gn?-Nn:Nn,y:Wn}},pr=(0,ye.useRef)(dr()),sr=(0,de.zX)(function(an){if(ln){var pn=(0,ge.Z)((0,ge.Z)({},dr()),an);(pr.current.x!==pn.x||pr.current.y!==pn.y)&&(ln(pn),pr.current=pn)}});function ur(an,pn){var hn=an;pn?((0,vt.flushSync)(function(){ar(hn)}),sr()):Ce(hn)}function yr(an){var pn=an.currentTarget.scrollTop;pn!==Wn&&Ce(pn),Zt==null||Zt(an),sr()}var lr=function(pn){var hn=pn,en=Kt?Kt-Ut.width:0;return hn=Math.max(hn,0),hn=Math.min(hn,en),hn},fr=(0,de.zX)(function(an,pn){pn?((0,vt.flushSync)(function(){ar(function(hn){var en=hn+(gn?-an:an);return lr(en)})}),sr()):Ce(function(hn){var en=hn+an;return en})}),Qn=kt(Sn,Un,Kn,Cn,er,!!Kt,fr),mr=(0,xe.Z)(Qn,2),br=mr[0],zr=mr[1];Be(Sn,vn,function(an,pn,hn,en){var Bn=en;return jn(an,pn,hn)?!1:!Bn||!Bn._virtualHandled?(Bn&&(Bn._virtualHandled=!0),br({preventDefault:function(){},deltaX:an?pn:0,deltaY:an?0:pn}),!0):!1}),Ee(yn,vn,function(an){Ce(function(pn){return pn+an})}),(0,He.Z)(function(){function an(hn){var en=Un&&hn.detail<0,Bn=Kn&&hn.detail>0;Sn&&!en&&!Bn&&hn.preventDefault()}var pn=vn.current;return pn.addEventListener("wheel",br,{passive:!1}),pn.addEventListener("DOMMouseScroll",zr,{passive:!0}),pn.addEventListener("MozMousePixelScroll",an,{passive:!1}),function(){pn.removeEventListener("wheel",br),pn.removeEventListener("DOMMouseScroll",zr),pn.removeEventListener("MozMousePixelScroll",an)}},[Sn,Un,Kn]),(0,He.Z)(function(){if(Kt){var an=lr(Nn);ar(an),sr({x:an})}},[Ut.width,Kt]);var Er=function(){var pn,hn;(pn=Ln.current)===null||pn===void 0||pn.delayHidden(),(hn=Hn.current)===null||hn===void 0||hn.delayHidden()},Br=Et(vn,bn,cn,he,Ie,function(){return Gt(!0)},Ce,Er);ye.useImperativeHandle(te,function(){return{nativeElement:On.current,getScrollInfo:dr,scrollTo:function(pn){function hn(en){return en&&(0,Ke.Z)(en)==="object"&&("left"in en||"top"in en)}hn(pn)?(pn.left!==void 0&&ar(lr(pn.left)),Br(pn.top)):Br(pn)}}}),(0,He.Z)(function(){if(St){var an=bn.slice(Qe,Fe+1);St(an,bn)}},[Qe,Fe,bn]);var Ir=nt(bn,Ie,cn,he),Or=Wt==null?void 0:Wt({start:Qe,end:Fe,virtual:yn,offsetX:Nn,offsetY:$e,rtl:gn,getSize:Ir}),ir=Ne(bn,Qe,Fe,Kt,Nn,Mt,mt,et),rr=null;re&&(rr=(0,ge.Z)((0,Ze.Z)({},ht?"height":"maxHeight",re),Lt),Sn&&(rr.overflowY="hidden",Kt&&(rr.overflowX="hidden"),nn&&(rr.pointerEvents="none")));var Jn={};return gn&&(Jn.dir="rtl"),ye.createElement("div",(0,z.Z)({ref:On,style:(0,ge.Z)((0,ge.Z)({},Me),{},{position:"relative"}),className:zn},Jn,zt),ye.createElement(Pe.Z,{onResize:kn},ye.createElement(_t,{className:"".concat(oe,"-holder"),style:rr,ref:vn,onScroll:yr,onMouseEnter:Er},ye.createElement(Te,{prefixCls:oe,height:ct,offsetX:Nn,offsetY:$e,scrollWidth:Kt,onInnerResize:Gt,ref:un,innerProps:qt,rtl:gn,extra:Or},ir))),yn&&ct>re&&ye.createElement(Dt,{ref:Ln,prefixCls:oe,scrollOffset:Wn,scrollRange:ct,rtl:gn,onScroll:ur,onStartMove:nr,onStopMove:Ae,spinSize:xn,containerSize:Ut.height,style:Oe==null?void 0:Oe.verticalScrollBar,thumbStyle:Oe==null?void 0:Oe.verticalScrollBarThumb,showScrollBar:Tt}),yn&&Kt>Ut.width&&ye.createElement(Dt,{ref:Hn,prefixCls:oe,scrollOffset:Nn,scrollRange:Kt,rtl:gn,onScroll:ur,onStartMove:nr,onStopMove:Ae,spinSize:Mn,containerSize:Ut.width,horizontal:!0,style:Oe==null?void 0:Oe.horizontalScrollBar,thumbStyle:Oe==null?void 0:Oe.horizontalScrollBarThumb,showScrollBar:Tt}))}var rt=ye.forwardRef(Vt);rt.displayName="List";var Ht=rt,st=Ht},93314:function(rn){"use strict";rn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMwAAACaCAYAAADl9acYAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXQd4U1Ubfs/NaJtO9kzLahFQEJkiUBBFUFFkCCjiAAVFERT5FREQQQXBBcpysWRP2RtkKRsEOphNodCZdDfjnv85CU2TZt2bhABNDw9PmtzvrO+c957xLQIP0pkz1yrQIEmwwcDzHhTj91klEo7jpcG5zetWUJdmRjmPvTM9GI9JgSGvadOoLE9KJJ5kPp2YXLtZdO1kT8ooz2vigCNelvPYezPEG7z0CDAn4pJqPvJA5A3vdcl/S3LEy3Iee29OeIOX5YDx3nh4VFI5YDxin6DM5YARxKb7g6gcMHd+nMoBc+d57LKGhCQ1ZURBCoVL2nKCO8sBZWW50x1TOWDuLP8FlV4OGEFs8glROWB8wmbPKikHjGf882bucsB4k5t3qKxywNwhxrpRbJkGTOx0ehlA3d9e5VEtzA3ulGe55zmg1QOfrCVo34BgQGvr5rLDRl4RRZG+5NjBESBc4FHw1LlrCAuPsCo0JjKi7J5hYqfTXADBq4byCJLf82Nf3kA3OfD9LgKdgeCzZ4CUTJ1VKQFyKQgpmeMSjiKvQC+oplspN/wOMDcBVFv0Bo+KwYJ4VE50H3Jg7j6CWzkEX74A3MrSgTfeKZpSaBCHcAVn/JunBHlFPDR5BkG9LMjPt7mZLOtbskQADea9wqOW9coqiGHlRPcHBxYcJriQQvB9P+v2cqCwWFxgoOJk6JeTNX4HmJMAHv6xP4/6VXw/+OxNx/bM/pIohdUE9VW/VxwjOHiJYO5A6xolpGSpYW3jIW4w/A8wM+h+UHSY2pvHgzV9NXymeor0wPc7Cf7XzWJ/4Nsm+Ly2LzZx+OwZ3yuVbzhNsPEMwcI3rM8wMikHiURi5gNbbQoKrc84zpjkj2eYzQC6f96DomUd305ctrp8tp5gSk/f1utzlFhUOHYthy9f8D1gdpwnWHiEYOVQ6zNM6QM/AY+CImHnF9YtfwTMCgB9P+5G0SHa9xP3bk2gT9cBU3r6Hjp95nBYNcz3gDlwkRhX843vlfS59PmFHfjFzgC/2pJ1nEEnEIpIAG+834Wia2Ox7PJ8wt0twLz7J8Gsl3zf316zCVYPsz5oe85F1yUcu0YwcQPBjlElZyjL8wsrQeyBn+XxK8DETqefgyACFCPe6kjxfDPfT6C7BpilBLMG+L6/A34h+P1VikCZ60nuTYpzN4AxqznjCqPOMZ1RSp9f2OVLYZH1lbOrNvjVlswIGEAKYOyrj1K82NL3E+huAWbEMnbFSn1+Qzd4AcE3fajPZV6X04D3lnHGM4xOawKFJwLLYiD5H2AoCkHwJQMLA42v090CzJjVBBN7UCh8rN3AgDrqCYq6lX3L6RQ1MGQRhwWvA7UrALbnFzCJjOhG+d2WjFCkUYKZPZpSDIv1PWDGrycY34NCahI0+yxN/Ivg3c4UlUN8VqWxok/XEfRrSdG0tm/rzcoHBv7KYc5AILqqLWDcOb/45RmGEFyhFL8/0Yga33y+Tl9uJhjxOEVIoG9rnrqVKSJSRFb0fb3tG1A81sC39TLRSu85HL57Eaii0Bm3oqEKqZXSJaUURUxTU0Tyuy0ZAc5SYCUbxE+6+x4w3+0kGNiWooqP3/Qz9xB0bUTRsLqI2eEFUlbvA9WBJxv5ltdMit9jFocpLwB1InQIkBEQTmLUHStOBoMBOr24K2+/AwwPHOKArS2iKCY9VzKIg34jyMgTv6f1wpwqL8JLHKgUTLHwjZIxZTKg0V2Bzg2tLzvYBYA75xe/25J1mkEnGAzYyXE40KQmMK23uLeLN8b1j0ME7epTxFTzRmnCy/jzXyCqIny+NVryDzFeKfd+xLcrDOMMO8MMfgx45iFrOZA7AstiTvvVoZ91usM3tClHcLpeZWDmAN8DZtlRgkY1KJr5+BC87hQQLAeebCwcZN6gXH6MgG2P+rfyDmD+WLoV8xZugkIRiNh2TTHghcfRoF4tFBZpkXgpGQ81rmdu9puLOLzwMPBYPR1Cgzw/v7CC/WpLxjrc/jtaT2LApRrhwC+DfA+Y9aeI0dKzbT3vTCChk3r7eaBABzzfTGgO79CtPUmM9b7U2jv9bf3kOyjSlihLcoSg93MdkZ2Th227j2Hoq8/inTeeNzZ+xFIOsTHAsw/pAeL5+cUvAdPuG1pVRnArQgEsGex7wGw7RxAgBTo19M4EEjqtD1wEkrPYm15oDu/QbfkPSM0hHsu8du0/gSnfLkFGVrbThjFLynULJ6FOZHUw2RNbyd/qUJLFHZV+ywr9aksWO4Ou0BK8KueRz/bVq++CUuD+RGbhB3R/0LeAOZEEnFIRvPGYb+vdGw+cvU7w3uOe1dv+mfeRk5svCMUfvz8AA3o9jgkbCJQVgPe7lGTz5MDvj4f+VXs/JH1ip1PmAkHy17u8z42bjl4lxjf9C809m0CCZo4FUVwKsDPOJLz0ZTp6Fdh6jtnWe1bvuCm/4q/tRwQ1/b03e2LIwGfw1RaCkADg425AOvPkYCHZd0cG43dbsk4zaDFgWHiHcG85wjBQoEhnMhAzf5r/Jihkf9/+fjXDtDXqGA108+Eqcy0DYAfwMU95NnEFzVgLovibwK8HCab19qze61s24Pf5K7A5KwB5vHM1CblMij9m/Q87rtc1jsek54CMPIBayGD0BgP0ImUw/gwYFiqjllhHGAcvAkuPcijU8cgv0KGgSGv8LNJqweu1MOh14A3ss+S78W+Dzuo3RsPoTy0YgIjQALFz0C36tBzg570EE3p4NnHFVn5TA0zaSPDzy57Vu2bIS6jF67BDHYBHgnVI0kow+6ZjLyZNm9RD+35jkZINfNO7ZIVhEn+e16NQ6157/OqWjJ1h9n1IXoydTi8AeGD+KzxqinCEsfkswfBJC2HQacXOG7v0B+e9CGXVUK+U5aoQdm5iE3eqh296R/XoDEBu0e3/hcz3FzF+Z292trI91Zgav7N2tKrDrrfFTdgTI4dAl61BipZDDXYINRCMvBrusNvBikAMHT8LTM3/pwElK4xMAuQV6uBuKK4yA5hEVfY8SvmmHCETGyjDtzqbQLHf0KMgaCnWEcaW/whGT1mAHHZP6oW09bueaFy3khdKcl0EO+y+v4xgphs2MWxbs+K46bLCDIoi6+9iVLKY4PbTp8UB5t8h/UB53qimz1aJA9lyLExz7H1vyMCnUa15L/x9EfhtkIk/nh74y9ShPz5JnUGA26qFZIdcTofWqR5xxd5Uip1O9wDoJNYRxs4LBB9PXYxUdaHrGSqAYuWUp9GmSQ0BlN4h8cTq8qVfOGgKStpBeAoJb4DEYPrPsU89b/5e/LvEYPubLCIQX06NEtWpfwa/yA4h0FEgqVCK71OCUeTARdLLfbpg9PAXsfGsBBtOA0uHmKpyV0PZsqFl5lo5QaXWgRqNw4pTHiEYGa2M+KX0yMROpxsA9BDrCGNvAsG4GcuQdMt45eJx+nXsk3iyNbOY9k161wOry8/GqZCr1t4GBA/O3T0Nm7gSDl/89IBRHiU0nRk3CgU3knEmT4pZN51rrjI5TN2oGmCOMP44BKx7B8jINemP8ZRCK2Y5LNXAMrMlS0hSpwKw9TRGME+XHf5ekybEfPCInU7/BDBArCOMw5cIPvt+JRJUGqHj7JRu2rsd0P+JGBuanELTTVpwwO3/cnjFxNcTwMz95hquxud5pd+skIEfR6NJA+F2y6o1S3Fj4xpj/X9lBmK7OsDuChMUKMf+v36AXC4Fc4QxYwew/X0gM8/k5VKvN0BvcF9gfc8CJuGWuh4twgoQnJSBzK+nDP+3eLTsBahJSNL8DdD29kaUAFsDSU4vpVJp3FTETqdzAbwl1hHGySSCCTPX41RimlcmzthBrTCsV1Obss5cJ2hWXQupTIoiHUW+1nRYZkcn5kRbTzlIOQq5hBmimfRu2RwoeU4gl5rAFiI3Odpmb/NRK0zXu+zgKzZtWZWK/VvTxWZzSP/EK5HoEivcxsFQWIBzk8caVxmWmMT+g6thNlfMg/p1xYfv9DXSMEcYEzYAu247wnBXQ9myE/fslixRpf6FUgw2N5bgDChmk6Lw33MMqkqlg8JeVKmn8hRjHI0QIdgbiJynGWhiZ9AZoPhgaEeK50Q4wmDCvwmzt+HwGe8EcH67V1N8MshWV4UBpnlNLQID3Lcn5nkKrZ6iUEex4azEqC08di0BW1XDgsTP+2NHsrH6F+/0m9Xetns1PN9b3IWHPi8XyetXIOPoEeg1WbhYKMGK9CCoiiSoWq0SnuvWzqhLVuyoz+wI411mmi3epZI9Lt2zgElIUht9INtpdDJPMUsSGf59NCFFxc8TknI6AoZ9LqbCmj+V4X33zMAEAOMHtaXoJ0KLVpUJjJuzD3v+vSh+xtnJ0ffxaMwY0dHuCtO8pg6BAcK3LI4axCTai/4hRsBM3kww5DGK6o5vYx32S52pw9QxbEi8k6o2DMeoj2q5VVhqNnB29JsI0TP5M6Dj5Gg7dwmkpVZOsyOMtyg4joDyBhRq3d+Osbru3S2ZSp0LCmf+9ZM5CUY3qBWx3LREUy5RpbkKQOl0FAimvrksPAME08Q6wmD74DGz/8H2A/+5NdClM8U2r4VFE7rZBcwjtXQIkHsOGLbSLP7XBJhvdxD0fJiinhs+pVk5n41IBM/UFryQSHggvpxRooovpsgdFwjoD8MQri3ZIso/XYzm9a2FwDfUAFPxX/AaRYSCeCR/KW7fvQuYJE0RQF3vSQh2UQn3bsOaYXEJSZrPADrJBfP5BceCVx+4LO0r1hGG3gC8//Np/LXrmJjxdUhbv1YE9vzU22eAmbOPBRmieNCNFzvP8/jhaxVSL3vn4M9zBJN/bgSZgJsyplZ0KQ24oSZgq8vmE4V4+9hrkNIS8O5uPhbNOz+CprWpWRhd7Ahj9svMYM871rT38pbM/q2XvelHoeU4bpxBgt+Jjr8MAqfi80NXZEW/H1UEuOMIY/zCRPyxZr9XABMSJMP5pbelahYlsjNMi1p6402Pp8lyhWEhIBpVp2hdV1yp6nwgPAhYvzQF/+zOEpfZCfXgz6LRIMrxKsq0B5YcKsL6UxRFvBygelBdLjhZGMCx/RfTKWMCUGZzbAClvJEmtiGH97oEGLdhzBHGjL4UDyvLOmBUmn9AaamAay7GimAXgdErzG1RlX36k9el+PlgsPFtK9YRxtwtNzBl7havTZoLywYhuJRbSCNgauvBlAg9TQYDjyVHOeOWbOVxoEoo0Mn2JttpNZvOcmhfn0KTXoTr8TlITSnCrRSt8TMvV7gj79KVPDskCo+1tb/rZkLScavzcTlTARBrZUu+MB1coHNHZ8rQXEzvH4T+8yWY9DzQrj6QptFDzzRlPUj37JbM5pZMeCfZK5CNgsPt3PlbEny3LwSlHWEIqWLzcTWGfbFaCKkgml0zeyNaaa3QdqcAs+msSa2k+4OCmmYm2nyWQ98W9idabo4eqSla3EopMn6m3mRgKkJ6KlM6dV5Plz418ES3CjZE7Ar9w2X5UGXbv3bmC1NBAiqBEOf34zFhKlzLq40PuxK0i8qFutBzRdd7FjDx1zSDCKELxA2tmZoyyztqqc9tUdDlDAm+2hUCdxxhHIwrwOAJy5EvIkSCsz78Nq4rnmhpfU/BANOytgEydwQmpSpjQro/b68we+JNArzej4jjKouz0q+luDwGAzWCxnI1Kr0qPfpEZTzXv6pVwUzf6+MVBTiX6vi+hxoKQfUF4AJswWZZGF+UCUN2IsYMaINnbcVd4jp0m/qePcNcvJlTldcaUm5vVN3qnKNM1zUcJm4LhTuOMP65qMWYGWtxJcU76jGT3nwUrz1j7ZnCCBilAbLS96RucIFJtv88ZpLD/HMZSEgFXmkrrqANp2yjEYsroYRar6f44I3zxh9qNwnH8FHWNxBLj2ix6F85SKltmGV9lBrAF6RConCuh8fotCn7MSC2Fob3ELkPddDBexYwrL2JSZqtFPQpdwfHUT7mf+zjTWFwxxHG8St6zPhtCw6cZXcSnqdhLzTF2FethZcMMK2UBki9DBgmbz18mYAJbMUk5shiYBsxORzT5ucZ8PHbcUaC4OpBGDe55AbiShqP9/40gHLOt058UZbxXMPJnQuUKK+DLi8DEs0R/PJBLIIVwjULHPXgnt2SsQbHq7JeIJSYFIi8mNgeeeT6cFRQAItFOsL4L5li0do9WLrLriK06FZ2e7QO5v3PwugcgDcBo9MbsPT2CnMxFcYwdiNFuMhlKjcs/J23AMMEoONHJhj5JA2T44tvS2TTo5cX4kKqY5X9YuYacq9CEhzlMngmr8uGQasFLUpDPcUV/DCiKwrcNBwrrvueBsyKFVTSvG32aQraRPRMdJKBWaa+vSrcqNAo1hEGsyD8Y/1R/LzmjFea1EBZAbtn9rIqywiYSB5Siecey3U6A5YeN23JmCCPORIcK8IWhV0ps1Wpj8hzjyPmsDPN5P+ZNCWInMOXPz9g/PtgohZfbpEZ3SE5TxSGXBUkIa61vPnCDLCzFEuGrOMY1q02Xunq2VS6p7dkrKOJ17N7UAPP1PG9moatCoOBJ9go0hEGe+P+vC4e3yw84JX2VAoLxMmFL9sApnUkD4kXAKPV6bHsuNQIGDb5p28nmCwixmZSJnA5jeCZh1x3NzfpKi7M/xlFGRmo0qoNqnfohPAG1mcH1dUCfDP+sqkwjuCreY2Mf478swiJGa6V3Az518EFVgHhXMu0DYUZ4G8Dhuqy0Sg0EfM+8myHf88DhjEzIUmzAaA9XA+ZcIqR60KRp+XgjiOM3Sdu4s0vtyAkSIrgQCmCg6QIYZ+BMuPf7Dfzs9vP2bPi34ICZTh2szJ6NM41HuyrV7f2G8tWmNZRPCSc5yuMJWCYGcjHawm+7Sv8DPPfdSBfS9C5oWveHhg+GFqNyfRBEhgIeWgY2kz7AZysRDh5KT4fP0y5vZ0lwBdzGoO9FwbOK4S6KMDpCkP1eaD6fCNghCSDNhe8zmTsVznrMD59XIGa7Wx194SUVUxzT2/JihuZmJJThWoNZ0HgNY/EH28MRUY+B7GOMFibcrJzkJuXB3Z1zXHc7U9ivNlh0mX2aXpm/7ekLA57E6R44zHm5slWAs0A0ybKpDDoaWLhHJafMK0wLIm1ujx0iYD56WgrQO3ryuplSN6xzajkqM83+RCr1aUrol95A5zUJIT971QO5n2bZPybXYRNntsYvx4guLJrL1qkbsD2moOQHP6wlUskRkt5PfiCm5AEC/exa9DmgNcVoVL2KQy59RsqhAQg6tPvwAU5U1F0zvH7AjCsC4mqnE6UGpitvsfSJ0IIHb8lmNzIlkCsIwxPJzDLf10NrDtJMNyBjzDvAkaH5SdkbgOGOf5oVAN4sKawnl+YOwspf+81EzPIh9VvgCbvfoDAKlVx9JAai+ZcNz4PVBBE9W+M07uPo9/laeBgknSeC22ObbVeQ06QCRzselivuQhZBNveCX+JGAoyEZEThyE3fkIYNa00yh69UPdF6y2wsJ6ZqO6LLZl5pUlW9wHFMkrh6mTokgdf7QzG5UwpxDrCcFmwAAImPPztIMHorva3RkbA1GEhGoRPDkfVMj/EVoARaabM2vliCxj9QQtJ1GDAtU3rcGPXDmjVWWDfWWJbtHp9BiCwRScU6KQICJRg4VEp4g8ex4tXvrFSpGT0JxXNsKraIEgVFaHLuQ5ZSE1wAeLsEioRFZ5PnAVlTok5hiQwCG1+mAupwr1V5r4CDGNkgkrzEij93Znqi5CB/XafAhduySDWEYaQsl3RFGiB6Tsce4NkgGlbx+WtqatqjM9ZlOAVJ0tWmPeWEvzYX3gYcOY9cuKzsLE1EVK5oagQJ7/4DDlXS67gZTVqI6dlXxwNaIXrJ06j75UZkFhoHbNyK7Zqh2E3usHAlCupDgFhtSAJEmdsxsqJqZSHevmJaHPoC6vm1nvpNdTu7t6R+L4DjAk06t7M+tKuDb+QkQTw00EFTl2XQawjDIHFOyVj6h+frSeY4uC2it1MRVXgIeUIpBLTWcjdxMJArDgpN2/JPlpF8PlzwoPDjl9v0vZ1N2k1apz+ehJyVaZzS3HimUMKIoWUWrusqtDqUTR46308/bUKekghU1QBkbq+PbPXPkNuEog8DAOS5+ABzVEzSWj9GDSf+JVbXbovAcNs+oODFYSjsp8oqCm2gcj06z9BOHJNbjTZ7RDt/oQQWa2ZXEw0ZWY1yYzYGdCYuj5L7AJNwgBlvHRgj3mjnfvtx0YlS/Zcp9dj6wU5nmpiysccdLMYm5UECr3HruHwQ3/P+KPLzcWZ6VOQfdG5xWbVzl0R9fJgEI7DjO0Eu85rQSTuH1lbV45HbmYSzl1OR+2im4g0ZEJpyETdAC26zpnv1tDdt4AptulPNJ1rplMKUY6uFh8PxL5LARDrCMMtLtvJJAYw3qqTlcOCw7JYLUoBwWHZWWvBIYJxz3jeAiZxv7R0AZJ3bIetdT1B7T4voebTPc0VMbe2G08Wur26sII+6JyD5x4JQU6+FkfOp+DA2es4fO4GsvO1qFk5BE3qVEaTupWNn9G1K0AmILT1fQ8YxhhKqfTi9ewBoPQjSiFAxAasOh2AbfGBRr0qMY4wPJ86phLuFmBm7ibo2oSioYAL+uPXgKvpBIMe9VavgctnE5C7fyuyz58Bc2oRVKMWaj7XBxVbWGuELjxMsOxIAYjUtaqMo9Z90CkHz7WwXkoNPMXZy2k4ePYGDvx3HVdSTHIjBqCVn7verJQJwBQzjKnzJyRlPcZJuJ6UxwsAHEoP/joXgA3nAiHWEYa3ps7dAgyTeTwSRdHcuecDYzdXHCN4oBrwaH3v9Fqr55GWmY2ICNe3XWtOEvyy17MVZmRsLnq2dH4bdv5qBt6Ytg3d29TDOAFvhjIFmNLDGp+c1UxCycs8xTu3jcrMJDvi5VhxOghiHWF4Z+rcvRXGGBy2EvCYABB8sZHggycpqoa6f+lgya/MXC20RUUIDXV9gGJueb/d5tkZ5r0OOejd2nldm/+5gkkLDuOzQe3QrY1r2+0yDZjiwbp4PUNJeelKSqlZSX3/ZRkWHVNArCMMbwFm/AaC8c9Qt65rPWkDCw7Lggw9YVLhcprWnCCoH5qKGmHUaC4tl8sgl0kgl7FPqWhdt6upuQiWc1AoXN96MSd849ez62/31YPeeSwHL7Z1DpixvxzA7hNJWP9lL1RmjgtcJL8ADOOBSkWDCqiGaQoYlYn+TZJh/hEF3HGE4YqpQp7/sC0PrzRPhYxPg9yQjmCkoTA/HUV5aZDq0wBZBQQ0my6kKFE028/BGODpOYHBYfPy8qDT6aDT6Y2flolpUxeDhznscAWkfxKzEFNDAbncteIk8xIzYinxSBj1VrtcvPSo4y0Zs0Z96qPVqFpBgcXjnhXEx/saMCZfZNmTQCjTmZCAEC0oUglPU3iOnDEYtCcb16nCrDaN6ZxKU1HK0xOEIOrMDSlmHnDPEYZLzhoKAW0aivLSQXRpCKRp4HTpKMxNAy1KN36XE+cRAHjKIb/pckhk7h967bXz70STao47wWHZ9bZebwJOMYDY38Zrb4vEtKwZeAKMq5IJSDKZFOuPpqFr8yqCNBjYDd3AXwwgnPu+2Qa3zccrjzleNY7G3cR7P+7G8+2jMWaAMH8r9zVg4pKynudA1jmawExnjKf8fwRkAwF+j46MuJSoyupEKdkdnyoh0/e65wjDUX1c3MdA3hUEEO+YL6fU+BwRNUQa07tAM7v5OpNM8LoXg8PqDXrotHrojUDSQafXgXmrKZ3i0uV4vKkwiT2TJ/WcqYWBBLp8PzkieK1NIV5r71iO8/2qE1i2O8542GeHfiHpvgbMRVX2RzzlpwnpKCGEOa76i5dynxCeTriaTvpP2RnqliMMhwC9MBaBBaeFNEcQTU7FvpDWeU0QrVCiCynA7jjHip9Cy3FFxxz/mVYi0//sPD2u5wWgXUOBSmkAXvtVj7R819s3R215ta0Orz/m2FVVnwkbkJyWa7xOZtfKQtJ9DZiEpKzXAfKbkI6W0JAiQrDyZjZ5adyWUM4dRxiO6qOqRVCkLRPXHCfUt2gjhLXw7jmGBYdl18Uf+Tg47K4LBCz0uZh6P1oJnL/p/qH/5dYGvNnBfv5rN7PRb9JGVAoLwoavrC1enQ3gfQ2YC1ey6kil3CV2lhE7S7MKuMIxf4UGuuMIw1FdhszjCLk6XmxTHNLrqRT5TVdAJnNfPaR04cbgsPsIJjzrmbqL2E4evgxsPy+uXubM7+Vfmbss9661X2lDMdhuABRgyc4LmLnmJGKbKfHlW8KNyu5rwLBBS0zSbKBuWGOyWCoj1rrnCMPRZNEX5SLk3ACmVih2PjmkV9WYiso1RHrec1I7i1HJ5Ct3Kjiso6rPXgeY9P6bPsKB2uSRWKSlZbjNy3FjhuOTD5kIzja9891OnEhMxVs9muHVbsL5e98DJu5ydkNOxh934enfhmPsUDl0ZRgCZUS0IwyHWzJmqPPfcATorrk9yKUzZld5DTKlKUCQNxLr98jlJhV/X6ZrmcBXmwnmDBReb2R0CxQWmiOaiG5uj+5dsOyPH23yMd2ybmNWg6nJfDv8cbRpLDzO6H0PGMaN2zYyi8Q6/Ru+Ogw6A8FfIh1hOBs5evE7KLJ3ih5cRxluSR5FWLNxXiuPFeRJ6D53G5KWC3y4gmDhG8IAw7Ssa9Vlpsrup8jaNXHh+A6bAnYcu4bPfjto/H3z1D4IZ5JcgalMAIb1NVGlHkwpmQ1QwRf3H6wPRU6Re44wHPHXcGMTQm7+LJD9rsnU+soIaO2ux1z75Yu163fdStcUuYXA6wsIVg4VBpjMLDUeaOrgAOK6OjNFcvwhVCiluzbh90PYdvQqqlcMxuovSjSkhRRbZgDDOnsxOaczpYaFlEKQp4Sxm0KQlidxyxGGI+Zqs+IRfuUDIbwXTJMWsxghIc79CAsu7C6Ndg0lAAAdVklEQVStMEws88Jsgg3DhQEmSXUdLdt55hLJuIKs/g2x7UvcdrJtWPcxq40q/h2bKfGViAM/K69MAYZ16NKlzHCDlHwBwr0FUKdr7efbQpCs8a4jjMKCfITHDQRH3d97l578qmqTUblWczGYcErLzjDT+/hej63HLA5r32YOCl135dyFeHTuahtsynVOa4qvPv8II4aVyLJOXUzFsG9NW+bXuz+EISK9lJc5wBSz69KNzEheLxlFQVnEIrvmUlN3B+NiuncdYWi1OsjjP0KQznvxIDVVh0Bem1kreCcZg8N2pwhzX4juVkN6zebwx+u8oHr/OXoCPXrZBpsSW/GAvj3wy6yvzdl+WnsKi3aYnKFPHtIBnZu79qBpWWeZBUxxJ69coYE6ae4zlOqfIyBPM59uxc++36/AuZvedYTBJNz6+OkIL3AVn1b40N8K6oawRu8Jz+CCcvImgiEdKKoLF7p7pe4B8zl8148XVO+uPQcwYNAwj+tt0iga/+4t0Z4a8MUms9HY0vE9ECnUHc7tlpR5wFhyfA+l0lqq7L4A/QlAhTmHgnA8We51Rxh5FxejcvZSjwe7uIAk/cOo0nqK18qbsYPghebUGO7Dl+n1Pzh89iwvqN71G7fhzbc/9Lh5LALCzr+PQVMkR2w0Na4u566m49J1tVElRqyDEb8CTDH3LyblPMhTw67fjwZVPXTV+44wspP2oVq6IBU3QRPiprYWwtvOE0QrhGj2PoKO0dSoR+fL9O5SDm/H8oLq/XP5Gowc7R2tic9/XIlNyU2wY5RH1gJGVvklYFjHL6k0Ty85EbhxV6KceNsRRuatS6h1fYTX5mK+IQR5TZcbDb+8kVhw2MY1KFrV8UZpwsv4ZC3BCw8LC0o7/7fF+HRCydnDWS1FOSmQh1S363aX5XtlxGTEBfbCxveAIMFCB/s1+i1gGDsGL9Cvvpgm6eVtRxgZGZmomTQYHNUKn01OKHlIcEG5AfWE+eB2WefKY0DVMCDWO0G5XNZXTMDOTu3qUzxuinDhNH0/cx6+nGYrpS+diflxLkhPgFRRGfIQ+wzq9OxA5DUei5VDgYruObw0V+vXgOn8LR3L85jibUcY6iw1KiV9CLnhpqt5Ieg5DxkOV16PRyKFyTBcFbrxDPNZJj44rKtyXT1nvsYaVqeC4k1OmfoDfpjl2ncYb9CiMOOS0edyUOVoEGM4cuvUuGkrBHdbgIVvALWs4++6arLNc78GTOx0yq6efvS2I4zs7ByEJY1HkNYUactZ4kkg9FwE9JIKMEgijH8bjN/Z36bftCQcudLaeKC6q9KEPd8dB2Tliw8OK6x0x1Q/7SWoGkrRt4XrksZN/Brzfl3skpB59S9IN13hy0KrQxZkK+ANCQ1Do7ePYO5AoIF1DFqX5Zcm8G/AfENfB8Fv3naEkZubi6CkbxCou2yc9CZARJgBwcCRVlgZV3KC0aSmAhwnQYBcYowHI5FIwIN9MjPfkt/shcUQPdq3Mxy5DLDwfQNFBod1t77ifMyxuVxCBdX7wZgJWLzUdXh3Zh7NtmSgPCQBIQgIt+8/qtmw3fj5zep4yDoGregu+TVgOk2nTNl8pbcdYeTnFyA9U2MMDhQYIIFcwoGTSGCgnHHLECTnIJVIMG2H1BjywtcCRBYc9shlgrdEBocVPbtKZVjyDwGLLyqk3mHvjsGa9ZtdV0k4FGZdBa/NM/JbUcX+wSy692z8PDoWAjwpOa3TvwEzjXajHLa0b0DxSXfvnA9cj3AJxfe7TG5bq4aKyeU5bWIqsOkswcguvu3zyuPE6IBDSL2DBr+Hrdv3uOxshVqNkZqwH7q8NCNtYKUG4CS2V2G1OozE7ClvoZOHFx3+DZjptD0F/m4RRTHpOd9OHja4c/cRdHuQGh3r+TKxScuMuXz9kmDRmM/dgKB6+wwYgv0HjrhkS6+Bb2PlbzNQpDbZILEtGdualU4VH3gaX0/92ii89HZSVpY7NQllzvOLfYG7W7d7Nqe3a/NGA1hR7WfQZhKKU0yAN62396wkhTKFyUPa1qVo6KXDvNB62YH/2x0EXzzv/cnjrA07zhPsT4SgepkeGdMnc5V++nE6Phz/PTITmEIlhSykOmQK24M/W3mmzV2Lpxp7f5z9BjCPT6P1DRwuetMRhqsBtnzOnFHEVAMeVvp24hbpmata4lHcFzH9LKZl8TJXn4Cgep98+kWcPmtSknSWVi/7BZNmrsc/G2eC1xVAqqgEeYjtVRjhpPji1wN49qE7x+uYyAi7C4E3XvA+XWFU6Vo1ABsP2MzJwvDlMnjTEYarAbZ8zrYoVUKBR+vduUF01J67YUR2OhmYs49g9suu+9uhy/OIT2DyFedpz/bVWLXtFL77/F3o8zMhCQxHQJh9nZ/RU5diYJc7p95QZgCTnKHLppTaHK3Zm3bwYhkqKIDFg72/VLsabLZFYbYhnRu6nkCuyhL7/G4AJuEWwKT9QsyUWz3WDdeSkl1268zR3ThwLgtDBzyFIo0KnDwYgRH2VfYrP/jCzKTdX3pPZ8ll60wE990Kk5yhi6OU2kSaZx5OBy2UIkDqPUcYAnloJDtwkSC7AHj6Dm4THK4wIoPDiumXI1pVJjBqBcGqYa5fEA+16IxbqaabL2cp+dJJ3MqRoGXL1si7cRKcNAiBFe2vIopqDZemn133kqsyvf38fgTMJkops4WxSUOWSFGoI9joRUcYQhl+SgUkZZK7EtBp3DpgsjhzdqHdckiXlQcMWcReTq4Bw+z5mV2/sxQcrMCVuH+NoQof7DwESf/+aTz4B1WyH8tDHl7zhDpxlwA9A4+7alXAfQcYVYb2V1C8YY8N7y6XQl1AsGoojyD3vZK6zWHm9siDmK9u13u3Mgrtb71GbZCbm+e0mbVq1cDJIyavMK99OAvrfp0IfVEOFJWj7earUKUG9mxZ45WuOzqv2Cv8vgNMcqZuCuXpWHudGb1GipvZxKuOMLwyIn5eSGSDR8AiQDtLDzZ+ALu3rTKSzPrzAMa//xK0OSlQVLHZfd8uhuDQ/p1QKDyPiFCmAaNK17KD3g/2mP/ZXxJcyeAw/xUeNT3UZPXzOe7V7tes2wx6vcFpme3btcaa5SbX2gfP56Dnk62NipiKqo7tB1at+BMPPdjE47a6kr1YVnD/rTAZ+r6U8ivscWnyVgnibnL4sT+P+l6yN/F4NMoLQLXIh2zizpRmy9PduuCP+ab3YE4h8OCjzyMzfrvDMwyjm/rVZPR8vofHHC7TgLmRpetoMFC7Ximm75TgVDJn1G96srHrw6jHnC4vQBAHqipd+zvu/2JP/Dhjsrm8zv0n4sSWHx3KYRjh0DcH44NRnt8sl2nApGTROnqD7oq9kZq1T4IjV0Q7/xc06OVE7nPg6DS2bXL+AqvW4hVEdvnEXEna2bW4uGY4pEGO99ZPPv4YZs3y3DNpmQYM42hyujaBAjbXJxvOcFhxggHGI+UD92dGeU67HDg6/SGAd36GqfHoMNTuULJaFGZexem5T4CTOL7ufCCmAf7dv0EQ11MyrWN6WmYq84C5lqEdyVF8J4hTlkQc+URZUSbMG4PowsVlSEhSO3zlBtm5+alR0UOPD+KaZ5fa0aQryM+3oi/d/ocfaYOCQudxQCeOHYUPRrxpLocZk8U0i8Wt1HSHLQ+Qy3Hj0jFjzE1Xya8Bw4IuJWfoFgJ42RWjip8TQlbVqijtbwz3dw8kfwJM23YdkaXWOOX6tMljMWzIQCuawW9/hJVrNznNt37Fr+jc8VGXI+rXgCnmjipT353w/Es80IIALDAIM56QMFBQSpmkLAUEJzmeX1qrSuBfLrnqQwJ/AkyXJ7sh+bo5ALZdLs+cPgmvDuxj9ezPFesxbETJucZexrfeeAnTv3QdQqTMAyY5TdeZEspcjdjXjfDm5Ka4REDerF1F5tos0Ev1+hNger7QGxfiLzrl3PyfpqJfb+sr4vSMTDR4qCOYy15HSVmrJs4ddx3Dp8wDRpWhvQQKYfGjvTGJCS4rK8nvPDhvt9WfADPwlUE4etx5ROpFv/6A55950mYkn+zxMv45etLpCB/esw5NGjm3Vy77gEnX+lyQIua2xFOM+hNghg8fjp17Djhl2aolc9C1i21A1x9//h3jJn3jNO+EsaPwocWFgT3isg+Y8hXGatzv51uyTz75GGvWb3E66Teu+h0dLYIlFRNfuapCs7bOgzG1a9MCW9ezKI+OU5kHTPkZxnrw72fAfP3VFPy+yK42k7mTOzf+idYt7cfB7PBkH6cmzsz/29ULhxAe5thlT5kHjOV0SUzKfp6CLwkMAnIjJjLcyo3bRZV6Kk8xxpyPIjsmqiQgYkKS5jpAzfauBFzP6Miw9Z5urdzN709bsjmzZ+K7mb84ZdWBnavR9MFGdmm+/XE+Jn7pXOy2cP536NnD8UrkX4BRaSZQSieauUnIphhl+LNWoFJpFlFKSy7yCYmLUYabRyBBpdkISp8pzkMImRitDP/c3QnvaT5/AsyyJQswYcq3Tll29O+NaBht/45HyLZs0Et9MOvbSQ7r8DfArKOUPm/BjSkxkRFWl++JKvUuSvF4CSCwO1oZ0aX4e0KSmmn2fWoBmPXRynAf2ymW9MCfALNt8zqMGD3BKWDOHt2BKKVj36+du/XD8VNnHZZRu2YNnD+xqxwwjAOJKvU1SlHiDYGgT4wywspZb8I19QUQlBhPULokJqqCecVJUKl7g8JkocS0zQiSopURUZ6uFO7m9yfA/HtoL14Z8r5TViWe2Y9qVR2HUftp7kJ84iLGjLNVqsysMKcTk2s3i67t0KXIheTsSlJK0yilJRqVFPVjoiIuW59z1Ew5q8T9EsE3McoI85km4Zq6HgjMvn4IIVRPSJVGtcMy3J30nuTzJ8AkXjiJZ3uXRD+2xzdV/BGEhzsO1JlyMxWNHnncqRDzmymfYuhg+9pS3gKMq/kqZE54pBp85sy1CjRIEmww2BfnKoKC23NEsrzk/IKc/PycRjzTzrudQoLCAi3BwH6mlH6eV5Bjjo3HEUIUitALoDBfpfDU0C+/IM+5gEAIB9ygCVGEXXeUrawpX2bcvIx2jzuPHJ167SQCA5yHZevR9w3s+9uxy9mnn+qMZQtYyFPb5Awwaek3BcUBkEg4jhQY8po2jcpyY8gtprAnuV3kTVCpPwKFOcgkIdgbrYzobJntokrTgKfUKjY4B/RvEBlRAjTT1m4Ppehk0fIxMcoI51KxO9Q3f1phaFEmHmhuNWQ2XNWknHMYpq+YePGytXhnpPkYalNGSEgwkuIOQyq11V721grjjeng0QrjqgGJKs0SSqmF/ynyfUxk+CjLfAlJWR0BYmWFKZVyHevVDPvbmk7zHUBHFv9GCPkzWhkuWOPZVVvFPPcnwFQI5lE1qrlD9jA1/bSkUy7Zl52TiwYPdkBhUZFD2u0blqBta9u6/AcwSZrzFNR8PcxR8mqDqHCm2m9O8Uma/gTUKjY4R0h0A2W4lcbfxWuaQTyhC8yAAbkQHRne2OVI3QECfwIME7pWr9sC+QUFdjkZFhqK5MR/BHH5taEfOtUa+GT0u/hk9Ds2ZfkFYG7coIo8gyabUpiDHUqItGl9ZYjV/WJikmYUBbW66A+RhgfXrEmsLJsuqXIfMlD9mZIVBoZgSXhYaTpBI+chkb8BpknLJ6BKvmGXa1WrVMbFs/sFcXT7rv3o8/Iwh7SO1GT8AjCJydmPUp4/ZMGdwmhleCghRG+11VKpp4HiI4vfNDGRETbG4JRSaaJKk8Ni9ZhBw3HtomuHHRY0Wl4kEgsYL1bt9aJcWVyyCnv1HYBz5+x78K9Zswb27NwqqF16gwGxnZ9Eerr9y01mffnv4QNQKIIElceIfKl0y+q7Y2eY+CTNOwS05NqDkKMxyvDWpTmRqNIsppRanEXIhRgHW60ElYb5I21VXAYFGd4wMtxzTwqCh8dE6G+AGfzW2zhwwPLdV8KwunXqYOtm4VpKX0+bjt//cKxs+cu8n9Gh/WOCR6TMACZRlT2PUr7E0Jtw82KUYUNLcyL+mno3ISi5hiFkV4wy/Al7HEtQZc8F5d8q2ZZx86OVYebvgrnsIaG/Aeaj/43Fhr/smxs3bBiDDWtXCubohbg49OzVzyH9kMGv46MPzXc7LsstO4BJ0hyloC3Nkxt4JzoyYnZpDiRcU8eBwOxTlFK6uGFUhVfscSoxSf02BcwrCgE5Fh0Zbl5xXHLXSwRiAXM/ayuztn88/mv8PM/qrsbMyRbNH8KeLVYSAJdcZnKd/87H26Vr3uxB7NtmrR1d5s8w7LxxUZWdQ0Etzhvk0eja4TaSq4Qko4cFs5iYI9y0Bsqw/9kFTLKmLeWp+cxCQAobKMNszkUuR8xDAn8DzLTv5mDy1B/tcq1d25bYus4+mByxedacBRg7cardxxzH4VrcYSt1/zIPmMuqzKZ6ylnatRpCpPlhNWvWtLr5unmTBmdrNbmWnCOUjIqOCv/eHjdv3LihyNUrspmzjOLnUsI3q6esaL498xALgrL7G2B+W7gcI8fYVw5/PPYxrFvO3DcIT2npGWj4cGfo9Vb3P+YCmMSfSf6LU5kHTPy17FcJ4f8o2Y6R89GR4Taepy+pNNEGShOsAYN+0VERDi2WEpM05yioWf5CKfdaw6gws3xG+LC5T+lvgNmwaQcGDravgNm9a2csX2hfpcUZh/u/+i42b9ttl2T40Ffx1eclm4wyD5jEJM131FoqvyRaGW7tuMqo7pIVSynZa8k1Cr5jw8iKVlJ+y+elb9UIyPfRpbQH3IeCsJz+BphDR46jW0+7x0qj4RczABObNm7ZhZdef89uNmaMxozS/GaFSVSp91KKWAtufBQTGTG9NHcuXtf05w3WUn4CNIiOjHAYhTQhST0agFmHjBDsi1ZGlOiYiR05N+j9DTDxiZfRqoOVzZ+Za/369MD8WfbPI85Yq9Pp0fDhTmDumEondo5hZssRtzWgy/QKw1T5L6o0WZbq+pTiiYZRETYWQolJ2R9Q8DMsGRakDFcoCbGvhwEg/pq6CyEwO7MigKaBMrwCU/l3Y+67lcXfAMNC9tVp1M4ur159uQ9mznBsLemMwWMnTMOsueaduxXp0j9m4ZluJpvCMg2YxCR1fQqY9cDYRA4MC6usDCc2r5KEJDVbKdiKUZzUMZERFZwxWaXSVCwE0i1tbFytSm6hwkkmR4Cxp9rPirnfr5WZM75KymYwGGw99Qr1XmmPnefjEtG2k6UxbgmV5TmmbAMmWd2H8jBLsgjBtWhlhN1wuglJmiWAlTbz+Rg7lwOlmZ2oUl+lFGaLS8Khb3TtCLNFprcBUro8fwMM6z/zYpmaZutc/L23X8eUCZaaTeK437l7Pxw/aWu+3Oyhxvh7h2lIyzZgktRTKGCOY0kI1kUrI+xaICUkqZl715LzB8WumKgIu1J+y2FIVKnXUgqzTT8BvoyOjHBsbCFuDF1SiwWMywLvIoEQXTLWvB49+yAhwcpsydjqYUOHYNT79g/vQrq1bPkqTPj8CxtSdo759/DfCA1lLrcdp/te0p+g0myCRWhx5jGmYVQFu5f4CSpNHCg1S/kJIYuileGDXDE6/lrWBOY5xkxHyOYYZbjZq4yr/J4+90fAvPbGWzh8xFaNf8S772D4OzYaT4JZnJubi/Ydu9gNqTF39kx0irX1qGlZuM8Bc+PGZa86k8jVVzwGwOwRQQLD4CCpxq5LkFxDxXOgCC5mAOEwO5jLdHnlUqAP72KA5FcLxqWHSDPNajiCR8tNwlx9xav2sjo6w9ymTeCobjTR3bpjQlaDvLbddjnrptAV5oPRH2PTZlsPmLVrVv1q7+bf57rJSmO2Zu36TM3LLzArmAVWqo+qD/dD96c6Y1T3CiASx/F1JNpku9t9T9rjLO8d01a+Uw0uL/fucCCoSqPvCYGN9JJS8n5B2nn7ejMCmxpUpUl7TsL9HRHdBVWbD0CYspXRNZA+Lz394IQq91SI4HLACBxUfydTVGs8FpROseUDHZafGufRCtNxOh1nyM+YKFVUMqs86fLSaW7y0U1n5j/teahlLw5eOWC8yMyyXJSiWqMhoLBRGiOUvpaXFueRalLsdPongAGMfwUZl6G4sARtcw4e/XrXNhv7qbvN43sCMGcSUyy1Asw8aRpdw+gcw9FzMcwrLktMnnLaEg4oqjV8DpSzsRSjPAYUpF9Y5gmvOs2gbXke069tm8A9l7enaYNQWXCAhKMNK4ZFdl6yxqHfO0/qdDfvPQEYdxtfns93HIj9xpBm0BVUpgYteH0ReL0W1FAEWXDl/w5+VvEhIS1JSbli98VYnLdGjbr7furWZVGYXDawYlAAgmTSMY8vXn1XXGk56k+ZBYw3ViV7TLvXVipXk1DIRHZGwyYxex47nf4LwJ6xXuK+0cR5CDERjdjzWs8IXsvdvJRTGDDt7HXt9QLtmIJbF34QUcQdJS2zgLmjXPPHwmu2UCj0+SxYr1XiCN8l91a8fT19kXwqBv9Xg975fuHZaw9reZN6YLWqlfYe2rGoRO4motxiwIvI4pS0HDDe4qSflDPrqS5aA6UyAtAR23dz3u52gyffH3vj9HYWrcE0Nyl0lCOjC255dnXtrXaWA8ZbnPSTcna/3PsyBa0LILPLkjWVvN3tyk2emp+fljTEVC5N43j0zU2Ps/KM6u06xZRXDhgx3Cqnxe6Xe12gYKFJSF6XJaudK3qJ5xdRVG3ETNvZJcI5nqPPFt6ME629IL5a4TnKNGAopfLkbIRIDAgBj2BQnUJPiUIqQRD7JNSgAIgCBIGUkkCOIIAHH0gIFwBKAkH5QEogJwRyUCKn4OWEcDJCIQeBnFLIACoFAfOgLQX7TnH7O5UCHAdQCQjhQKkEIKbvAGf8m4DAFAqEEGIcCnLbbMH4m3FDAtDbtj70dtADCmb7w/6B8gB4gBiMfxNiAGW/se8sogLRg0IPYvyvA2D6DqIn7DuFlhJoKeV1BJwWhGophZZQaEG4QhBaSClfxIEr/HbR1mZrli2unp/8X6tcHW92bhJdv/6cLRvW/AIiyweHPIMEubXDkEsI0QqfhibK4KqNXqEA86hxOF9X1B1Zl5mDlHsq3dOASU2lIQYZKuv0usrgSCUJIRUBvgLlSQVKEMGBhPOgEaB8OEDCKBBGYAyJEUKBEAI2ocuTOxw4dfoMzp0/j/j4RJw5+x/i4uJZGBKbotq0boWFf9jGwKSAjgDMwUkuBXIIkA3QbBBOw4GoeVANoVATjmYBXJaB0syWrR79SSaX33rhuef7zpr2P/u+ad3pjBfz3BXAUEq5lCzUNhj0dQmhUQBRArQWBalBCGoAtBqlqAZAuM9QLzKlvCjgzaHDceCgydslc+Eqk8nNoSiYIRn7r9PpUCEiAn/vMxvAepN1BYTgFkBuUYoUApoCEBYcWEUpuSaRSK/UqIBkQghbZX2W7jhgKKWylCx9WwOPdoTQhylIE0IRbemzzGe9La+oTHGA+aWjBIkE9Byl5JSEw6EaFaRHCCFs+3lH0h0FTHK6bjIFhoNtm8pTOQd8wgGiJsBPtSvLrAIPe6vqOw8YguGg5YDx1oCVl+OCA4SoCb1PAcO6Zt6SAe0IpQ9TigcBRANwHhSxfGaUc8A1B1g4s0RC8B8l5JQE9/mWzFF/iw/9hOjrGkCiYKDmQz9AaxKCqpSSagAtP/S7njRllIIUEELZgT+VgqZwIDeMh34JUUlAr1FaRg/9noxm8bUy1esq6+1cK5vORiS8/FrZEy7fmbzOrpUBqgGImhCoCUqulaU8zSBSWbpEh/SqVYmVz+0700rxpd7RM4z45ng3hz3BJSREoadQSDkSZKBQgPIKUAeCS8IHMiElE16aBZeAnICTWQouCYHUJMQ0Ci9vCy6JlIJKOJOAkqNMcGkrwCTMFJdYCCwtBZilBZbsO5NWwiQPoaUFlsQouGQSS8oTkzCzRHAJGIWVtLTgEryOAtpiwSUTWjJhJqi14JKnKCKEFoKgEITLlxDk63laICXIh4Hme0Nw6d3RvzOl/R8AdGoXzom1qQAAAABJRU5ErkJggg=="},16722:function(rn,Ft,ie){"use strict";ie.d(Ft,{Z:function(){return Ue}});const z=Pe=>typeof Pe=="object"&&Pe!=null&&Pe.nodeType===1,Ke=(Pe,de)=>(!de||Pe!=="hidden")&&Pe!=="visible"&&Pe!=="clip",ge=(Pe,de)=>{if(Pe.clientHeight<Pe.scrollHeight||Pe.clientWidth<Pe.scrollWidth){const He=getComputedStyle(Pe,null);return Ke(He.overflowY,de)||Ke(He.overflowX,de)||(ye=>{const vt=(je=>{if(!je.ownerDocument||!je.ownerDocument.defaultView)return null;try{return je.ownerDocument.defaultView.frameElement}catch(Te){return null}})(ye);return!!vt&&(vt.clientHeight<ye.scrollHeight||vt.clientWidth<ye.scrollWidth)})(Pe)}return!1},Ze=(Pe,de,He,ye,vt,je,Te,ke)=>je<Pe&&Te>de||je>Pe&&Te<de?0:je<=Pe&&ke<=He||Te>=de&&ke>=He?je-Pe-ye:Te>de&&ke<He||je<Pe&&ke>He?Te-de+vt:0,xe=Pe=>{const de=Pe.parentElement;return de==null?Pe.getRootNode().host||null:de},Se=(Pe,de)=>{var He,ye,vt,je;if(typeof document=="undefined")return[];const{scrollMode:Te,block:ke,inline:Ne,boundary:yt,skipOverflowHiddenElements:wt}=de,Pt=typeof yt=="function"?yt:Dt=>Dt!==yt;if(!z(Pe))throw new TypeError("Invalid target");const bt=document.scrollingElement||document.documentElement,pt=[];let lt=Pe;for(;z(lt)&&Pt(lt);){if(lt=xe(lt),lt===bt){pt.push(lt);break}lt!=null&&lt===document.body&&ge(lt)&&!ge(document.documentElement)||lt!=null&&ge(lt,wt)&&pt.push(lt)}const _e=(ye=(He=window.visualViewport)==null?void 0:He.width)!=null?ye:innerWidth,kt=(je=(vt=window.visualViewport)==null?void 0:vt.height)!=null?je:innerHeight,{scrollX:nt,scrollY:it}=window,{height:Ct,width:ze,top:gt,right:ut,bottom:pe,left:At}=Pe.getBoundingClientRect(),{top:Be,right:Nt,bottom:on,left:Ee}=(Dt=>{const We=window.getComputedStyle(Dt);return{top:parseFloat(We.scrollMarginTop)||0,right:parseFloat(We.scrollMarginRight)||0,bottom:parseFloat(We.scrollMarginBottom)||0,left:parseFloat(We.scrollMarginLeft)||0}})(Pe);let fe=ke==="start"||ke==="nearest"?gt-Be:ke==="end"?pe+on:gt+Ct/2-Be+on,Et=Ne==="center"?At+ze/2-Ee+Nt:Ne==="end"?ut+Nt:At-Ee;const Jt=[];for(let Dt=0;Dt<pt.length;Dt++){const We=pt[Dt],{height:ot,width:dt,top:$t,right:Lt,bottom:Vt,left:rt}=We.getBoundingClientRect();if(Te==="if-needed"&&gt>=0&&At>=0&&pe<=kt&&ut<=_e&&(We===bt&&!ge(We)||gt>=$t&&pe<=Vt&&At>=rt&&ut<=Lt))return Jt;const Ht=getComputedStyle(We),st=parseInt(Ht.borderLeftWidth,10),ae=parseInt(Ht.borderTopWidth,10),te=parseInt(Ht.borderRightWidth,10),ee=parseInt(Ht.borderBottomWidth,10);let oe=0,se=0;const re="offsetWidth"in We?We.offsetWidth-We.clientWidth-st-te:0,he="offsetHeight"in We?We.offsetHeight-We.clientHeight-ae-ee:0,be="offsetWidth"in We?We.offsetWidth===0?0:dt/We.offsetWidth:0,ht="offsetHeight"in We?We.offsetHeight===0?0:ot/We.offsetHeight:0;if(bt===We)oe=ke==="start"?fe:ke==="end"?fe-kt:ke==="nearest"?Ze(it,it+kt,kt,ae,ee,it+fe,it+fe+Ct,Ct):fe-kt/2,se=Ne==="start"?Et:Ne==="center"?Et-_e/2:Ne==="end"?Et-_e:Ze(nt,nt+_e,_e,st,te,nt+Et,nt+Et+ze,ze),oe=Math.max(0,oe+it),se=Math.max(0,se+nt);else{oe=ke==="start"?fe-$t-ae:ke==="end"?fe-Vt+ee+he:ke==="nearest"?Ze($t,Vt,ot,ae,ee+he,fe,fe+Ct,Ct):fe-($t+ot/2)+he/2,se=Ne==="start"?Et-rt-st:Ne==="center"?Et-(rt+dt/2)+re/2:Ne==="end"?Et-Lt+te+re:Ze(rt,Lt,dt,st,te+re,Et,Et+ze,ze);const{scrollLeft:Me,scrollTop:Ye}=We;oe=ht===0?0:Math.max(0,Math.min(Ye+oe/ht,We.scrollHeight-ot/ht+he)),se=be===0?0:Math.max(0,Math.min(Me+se/be,We.scrollWidth-dt/be+re)),fe+=Ye-oe,Et+=Me-se}Jt.push({el:We,top:oe,left:se})}return Jt},De=Pe=>Pe===!1?{block:"end",inline:"nearest"}:(de=>de===Object(de)&&Object.keys(de).length!==0)(Pe)?Pe:{block:"start",inline:"nearest"};function Ue(Pe,de){if(!Pe.isConnected||!(vt=>{let je=vt;for(;je&&je.parentNode;){if(je.parentNode===document)return!0;je=je.parentNode instanceof ShadowRoot?je.parentNode.host:je.parentNode}return!1})(Pe))return;const He=(vt=>{const je=window.getComputedStyle(vt);return{top:parseFloat(je.scrollMarginTop)||0,right:parseFloat(je.scrollMarginRight)||0,bottom:parseFloat(je.scrollMarginBottom)||0,left:parseFloat(je.scrollMarginLeft)||0}})(Pe);if((vt=>typeof vt=="object"&&typeof vt.behavior=="function")(de))return de.behavior(Se(Pe,de));const ye=typeof de=="boolean"||de==null?void 0:de.behavior;for(const{el:vt,top:je,left:Te}of Se(Pe,De(de))){const ke=je-He.top+He.bottom,Ne=Te-He.left+He.right;vt.scroll({top:ke,left:Ne,behavior:ye})}}}}]);