(self.webpackChunk=self.webpackChunk||[]).push([[5382],{89489:function(In,Yt,Te){"use strict";Te.d(Yt,{Z:function(){return ie}});var te=Te(54476),Ot=Te(59301),y={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"},je=y,be=Te(7657),z=function(ee,ce){return Ot.createElement(be.Z,(0,te.Z)({},ee,{ref:ce,icon:je}))},E=Ot.forwardRef(z),ie=E},59477:function(In,Yt,Te){"use strict";Te.d(Yt,{Z:function(){return ie}});var te=Te(54476),Ot=Te(59301),y={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"},je=y,be=Te(7657),z=function(ee,ce){return Ot.createElement(be.Z,(0,te.Z)({},ee,{ref:ce,icon:je}))},E=Ot.forwardRef(z),ie=E},40001:function(In,Yt,Te){"use strict";Te.d(Yt,{Z:function(){return ie}});var te=Te(54476),Ot=Te(59301),y={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"},je=y,be=Te(7657),z=function(ee,ce){return Ot.createElement(be.Z,(0,te.Z)({},ee,{ref:ce,icon:je}))},E=Ot.forwardRef(z),ie=E},26227:function(In,Yt,Te){"use strict";Te.d(Yt,{Z:function(){return ie}});var te=Te(54476),Ot=Te(59301),y={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"},je=y,be=Te(7657),z=function(ee,ce){return Ot.createElement(be.Z,(0,te.Z)({},ee,{ref:ce,icon:je}))},E=Ot.forwardRef(z),ie=E},49198:function(In,Yt,Te){"use strict";Te.d(Yt,{Z:function(){return ie}});var te=Te(54476),Ot=Te(59301),y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"},je=y,be=Te(7657),z=function(ee,ce){return Ot.createElement(be.Z,(0,te.Z)({},ee,{ref:ce,icon:je}))},E=Ot.forwardRef(z),ie=E},41464:function(In,Yt,Te){"use strict";Te.d(Yt,{Z:function(){return ie}});var te=Te(54476),Ot=Te(59301),y={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"},je=y,be=Te(7657),z=function(ee,ce){return Ot.createElement(be.Z,(0,te.Z)({},ee,{ref:ce,icon:je}))},E=Ot.forwardRef(z),ie=E},73331:function(In,Yt,Te){"use strict";Te.d(Yt,{Z:function(){return ie}});var te=Te(54476),Ot=Te(59301),y={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"},je=y,be=Te(7657),z=function(ee,ce){return Ot.createElement(be.Z,(0,te.Z)({},ee,{ref:ce,icon:je}))},E=Ot.forwardRef(z),ie=E},15277:function(In,Yt,Te){"use strict";Te.d(Yt,{Z:function(){return ie}});var te=Te(54476),Ot=Te(59301),y={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"},je=y,be=Te(7657),z=function(ee,ce){return Ot.createElement(be.Z,(0,te.Z)({},ee,{ref:ce,icon:je}))},E=Ot.forwardRef(z),ie=E},52671:function(In,Yt,Te){"use strict";Te.d(Yt,{Z:function(){return ie}});var te=Te(54476),Ot=Te(59301),y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{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.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"},je=y,be=Te(7657),z=function(ee,ce){return Ot.createElement(be.Z,(0,te.Z)({},ee,{ref:ce,icon:je}))},E=Ot.forwardRef(z),ie=E},8657:function(In,Yt,Te){"use strict";Te.d(Yt,{Z:function(){return ie}});var te=Te(54476),Ot=Te(59301),y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"},je=y,be=Te(7657),z=function(ee,ce){return Ot.createElement(be.Z,(0,te.Z)({},ee,{ref:ce,icon:je}))},E=Ot.forwardRef(z),ie=E},56082:function(In,Yt,Te){"use strict";Te.d(Yt,{Z:function(){return ie}});var te=Te(54476),Ot=Te(59301),y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"},je=y,be=Te(7657),z=function(ee,ce){return Ot.createElement(be.Z,(0,te.Z)({},ee,{ref:ce,icon:je}))},E=Ot.forwardRef(z),ie=E},33853:function(In,Yt,Te){"use strict";Te.d(Yt,{Z:function(){return ie}});var te=Te(54476),Ot=Te(59301),y={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"},je=y,be=Te(7657),z=function(ee,ce){return Ot.createElement(be.Z,(0,te.Z)({},ee,{ref:ce,icon:je}))},E=Ot.forwardRef(z),ie=E},15075:function(In,Yt,Te){"use strict";Te.d(Yt,{Z:function(){return ie}});var te=Te(54476),Ot=Te(59301),y={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-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:"minus-square",theme:"outlined"},je=y,be=Te(7657),z=function(ee,ce){return Ot.createElement(be.Z,(0,te.Z)({},ee,{ref:ce,icon:je}))},E=Ot.forwardRef(z),ie=E},43531:function(In,Yt,Te){"use strict";Te.d(Yt,{Z:function(){return ie}});var te=Te(54476),Ot=Te(59301),y={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"},je=y,be=Te(7657),z=function(ee,ce){return Ot.createElement(be.Z,(0,te.Z)({},ee,{ref:ce,icon:je}))},E=Ot.forwardRef(z),ie=E},61485:function(In,Yt,Te){"use strict";Te.d(Yt,{Z:function(){return ie}});var te=Te(54476),Ot=Te(59301),y={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"},je=y,be=Te(7657),z=function(ee,ce){return Ot.createElement(be.Z,(0,te.Z)({},ee,{ref:ce,icon:je}))},E=Ot.forwardRef(z),ie=E},47472:function(In,Yt,Te){"use strict";Te.d(Yt,{Z:function(){return ie}});var te=Te(54476),Ot=Te(59301),y={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"},je=y,be=Te(7657),z=function(ee,ce){return Ot.createElement(be.Z,(0,te.Z)({},ee,{ref:ce,icon:je}))},E=Ot.forwardRef(z),ie=E},87395:function(In,Yt,Te){"use strict";Te.d(Yt,{Z:function(){return ie}});var te=Te(54476),Ot=Te(59301),y={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"},je=y,be=Te(7657),z=function(ee,ce){return Ot.createElement(be.Z,(0,te.Z)({},ee,{ref:ce,icon:je}))},E=Ot.forwardRef(z),ie=E},3706:function(){"use strict"},96772:function(){"use strict"},50718:function(In,Yt){"use strict";Yt.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},45936: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 In={},Yt="5.0",Te={},te=null,Ot=!1,y=!1,je=null,be=!1,z=null,E=null,ie=0;ie4?parseFloat(Ke):5};In.setHTML5Codebase=function(Ke,Ye){E=Ke,tt(Ke,Ye)},In.setJavaCodebase=In.setJavaCodebaseVersion=In.isCompiledInstalled=In.setPreCompiledScriptPath=In.setPreCompiledResourcePath=function(){},In.setHTML5CodebaseVersion=function(Ke,Ye){var Xe=parseFloat(Ke);if(Xe!==NaN&&Xe<5){console.log("The GeoGebra HTML5 codebase version "+Xe+" is deprecated. Using version latest instead.");return}z=Ke,Ue(Ke,Ye)},In.getHTML5CodebaseVersion=function(){return re},In.getParameters=function(){return Te},In.setFontsCSSURL=function(Ke){ge=Ke},In.setGiacJSURL=function(Ke){},In.setJNLPFile=function(Ke){ee=Ke},In.setJNLPBaseDir=function(Ke){},In.inject=function(){function Ke(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Ye="auto",Xe=Te.id,ot,Qe=!1,ft=0;ft=5)return!0;var Ke=In.getAppletObject();return Ke&&typeof Ke.recalculateEnvironments=="function"?(Ke.recalculateEnvironments(),!0):!1},In.startAnimation=function(){var Ke=In.getAppletObject();return Ke&&typeof Ke.startAnimation=="function"?(Ke.startAnimation(),!0):!1},In.stopAnimation=function(){var Ke=In.getAppletObject();return Ke&&typeof Ke.stopAnimation=="function"?(Ke.stopAnimation(),!0):!1},In.getAppletObject=function(){var Ke=Te.id!==void 0?Te.id:"ggbApplet";return window[Ke]},In.resize=function(){};var Oe=function(Ke,Ye,Xe){var ot=document.createElement("param");ot.setAttribute("name",Ye),ot.setAttribute("value",Xe),Ke.appendChild(ot)},Pe=function(Ke){return Ke&&Ke!=="false"},Le=function(Ke,Ye,Xe){ke(re)<=4.2&&(Xe=!0);var ot=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==re||ggbHTML5LoadedCodebaseIsWebSimple&&!ue)&&(ot=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Qe=document.createElement("div");Qe.classList.add("appletParameters","notranslate");var ft=Ye.width,at=Ye.height;if(Ye.disableAutoScale=Ye.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Ye.disableAutoScale,Ye.width!==void 0)if(ke(re)<=4.4)Pe(Ye.showToolBar)&&(Ye.height-=7),Pe(Ye.showAlgebraInput)&&(Ye.height-=37),Ye.width<605&&Pe(Ye.showToolBar)&&(Ye.width=605,ft=605);else{var qe=100;(Pe(Ye.showToolBar)||Pe(Ye.showMenuBar))&&(Ye.hasOwnProperty("customToolBar")&&(Ye.customToolbar=Ye.customToolBar),qe=Pe(Ye.showMenuBar)?245:155),ft=5?(Ye.appletOnLoad=function(lt){var vt=Ke.querySelector(".ggb_preview");vt&&vt.parentNode.removeChild(vt),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(ne),window.GGBT_wsf_view&&$(window).trigger("resize"),Re(lt)},fe||ne.appendChild(Me)):Qe.appendChild(Me),ne.appendChild(Qe),fe||Ke.appendChild(ne),setTimeout(function(){In.resize()},1)}else{var ze=document.createElement("div");ze.className="applet_scaler",ze.style.position="relative",ze.style.display="block",ze.appendChild(Qe),Ke.appendChild(ze),Ye.appletOnLoad=function(lt){In.resize(),Re(lt)}}function we(lt,vt){vt&&typeof vt.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(lt,vt.appletOnLoad):renderGGBElement(lt),rt("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",vt)}function ve(lt,vt){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:lt,params:vt}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(ct){we(ct.article,ct.params)}),html5AppletsToProcess=null)},ke(re)<5&&(lt.className+=" geogebraweb")):we(lt,vt)}if(ot){scriptLoadStarted=!0;for(var Ie=0;Ie0?(Fe.remove(),ne.attr("id","fullscreencontent").show(),jQuery(Re).append(ne),window.dispatchEvent(new Event("resize"))):Le(Fe,Ye,!1),window.GGBT_wsf_view.launchFullScreen(Re)}else ae=ot,Le(Ke,Ye,!1);if(!window.GGBT_wsf_view)for(at=0;atKe/4*3&&(Fe=Ke/4*3),Re=Fe/5.8,qe.setAttribute("src",he),qe.setAttribute("width",Fe),qe.setAttribute("height",Re);var ne=(Ke-Fe)/2,fe=(Ye-Re)/2;qe.style.left=ne+"px",qe.style.top=fe+"px",Qe.appendChild(qe)}}return Qe.appendChild(at),Qe},nt=function(Ke){return Ke=Ke.toLowerCase(),Ke==="html5"||Ke==="screenshot"?Ke:"html5"},_e=["web","webSimple","web3d","tablet","tablet3d","phone"],Ue=function(Ke,Ye){if(re=Ke,Ye){tt(re,!0);return}var Xe=!Ot;if(Xe){var ot=ke(re);!isNaN(ot)&&ot<4.4&&(Xe=!1)}var Qe,ft;window.location.protocol.substr(0,4)==="http"?Qe=window.location.protocol:Qe="http:";var at=re.indexOf("//");at>0?ft=re:at===0?ft=Qe+re:ft="https://www.geogebra.org/apps/5.2.814.0/";for(var qe in _e)if(re.slice(_e[qe].length*-1)===_e[qe]||re.slice((_e[qe].length+1)*-1)===_e[qe]+"/"){tt(ft,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Xe&&!te.is3D&&!te.AV&&!te.SV&&!te.CV&&!te.EV2&&!te.CP&&!te.PC&&!te.DA&&!te.FI&&!te.PV&&!Pe(Te.showToolBar)&&!Pe(Te.showMenuBar)&&!Pe(Te.showAlgebraInput)&&!Pe(Te.enableRightClick)&&(!Te.appName||Te.appName=="classic")?ft+="webSimple/":ft+="web3d/",tt(ft,!1)},tt=function(Ke,Ye){if(Ke.requirejs){ce=Ke;return}Ke.slice(-1)!=="/"&&(Ke+="/"),ce=Ke,Ye===null&&(Ye=Ke.indexOf("http")===-1),x=Ye,se="web.nocache.js",ue=!1;var Xe=ce.split("/");Xe.length>1&&(!Ye&&Xe[Xe.length-2]==="webSimple"?(se="webSimple.nocache.js",ue=!0):_e.indexOf(Xe[Xe.length-2])>=0&&(se=Xe[Xe.length-2]+".nocache.js")),Xe=Ke.split("/"),re=Xe[Xe.length-3],re.substr(0,4)==="test"?re=re.substr(4,1)+"."+re.substr(5,1):(re.substr(0,3)==="war"||re.substr(0,4)==="beta")&&(re="5.0");var ot=parseFloat(re);ot!==NaN&&ot<5&&Ke.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+ot+" is deprecated. Using version latest instead."),Ue("5.0",Ye))},rt=function(Ke,Ye){window.console&&window.console.log&&(!Ye||typeof Ye.showLogging=="undefined"||Ye.showLogging&&Ye.showLogging!=="false")&&console.log(Ke)};Te.material_id!==void 0?Ae(et):et();function et(){var Ke=Yt;z!==null?Ke=z:parseFloat(Ke)<5&&(Ke="5.0"),Ue(Ke,!1),E!==null&&tt(E,x),be=!0}return In},GGBAppletUtils=function(){"use strict";function In(){return window.GGBT_wsf_edit!==void 0}function Yt(be,z){z!=1?(be.style.transformOrigin="0% 0% 0px",be.style.webkitTransformOrigin="0% 0% 0px",be.style.transform="scale("+z+","+z+")",be.style.webkitTransform="scale("+z+","+z+")",be.style.maxWidth="initial",be.querySelector(".ggb_preview")!==null&&(be.querySelector(".ggb_preview").style.maxWidth="initial"),be.querySelectorAll(".ggb_preview img")[0]!==void 0&&(be.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),be.querySelectorAll(".ggb_preview img")[1]!==void 0&&(be.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(be.style.transform="none",be.style.webkitTransform="none")}function Te(be,z,E,ie,oe,ee){var ce=null;if(ee!=null&&ee!="")for(var x=be.parentNode;x!=null;)if((" "+x.className+" ").indexOf(" "+ee+" ")>-1){ce=x;break}else x=x.parentNode;var ae=0,re=0,se=0,ue=0,pe=0,he=0,ye=0;if(ce)ae=ce.offsetWidth,re=Math.max(ie?ce.offsetWidth:0,ce.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(ae=Math.min(window.innerWidth,document.documentElement.clientWidth),re=Math.min(window.innerHeight,document.documentElement.clientHeight),se=ae):(ae=window.innerWidth,re=window.innerHeight,se=window.innerWidth),be){var ge=be.getBoundingClientRect();ge.left>0&&ge.left<=ae&&(oe===void 0||!oe)&&(document.dir==="rtl"?(pe=ae-ge.width-ge.left,he=se<=480?10:30):(he=ge.left,pe=se<=480?10:30),ue=he+pe)}if(be&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var xe=be.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(ue=40,ye=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(ue=0,ye=40)}}return be&&((E===void 0||!E)&&z>0&&z+ue1&&(ee=!0)),z&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(ee=!0),!(be.hasOwnProperty("disableAutoScale")&&be.disableAutoScale))oe=te(be,z,ee,E,be.scaleContainerClass);else return ie;return ee&&(!be.hasOwnProperty("scale")||ie===1)?oe:Math.min(ie,oe)}function y(be){var z=Math.min(window.innerWidth,document.documentElement.clientWidth),E=Math.min(window.innerHeight,document.documentElement.clientHeight),ie=be.getBoundingClientRect(),oe=(z-ie.width)/2,ee=(E-ie.height)/2;ee<0&&(ee=0),be.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(oe<40?be.style.left="40px":be.style.left=oe+"px",be.style.top=ee+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(ee<40?be.style.top="40px":be.style.top=ee+"px",be.style.left=oe+"px")}function je(be,z){var E=be.querySelector(".appletParameters");if(E){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(z.id!==E.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(be)}if(E.parentElement&&/fullscreen/.test(E.parentElement.className))return;var ie=Ot(z,be);In()&&E.setAttribute("data-param-scale",ie);for(var oe=null,ee=0;ee=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(In){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(In){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(In){var Yt=c[In];return Yt==null?null:Yt},r=d,webModule.__errFn=e}function B(){function In(be){var z=be.lastIndexOf(rb);z==-1&&(z=be.length);var E=be.indexOf(sb);E==-1&&(E=be.length);var ie=be.lastIndexOf(tb,Math.min(E,z));return ie>=O?be.substring(O,ie+P):W}function Yt(be){if(!be.match(/^\w+:\/\//)){var z=o.createElement(ub);z.src=be+vb,be=In(z.src)}return be}function Te(){var be=__gwt_getMetaProperty(wb);return be!=null?be:W}function te(){for(var be=o.getElementsByTagName(_),z=O;zO?be[be.length-P].href:W}function y(){var be=o.location;return be.href==be.protocol+zb+be.host+be.pathname+be.search+be.hash}var je=Te();return je==W&&(je=te()),je==W&&(je=Ot()),je==W&&y()&&(je=In(o.location.href)),je=Yt(je),je}function C(In){return In.match(/^\//)||In.match(/^[a-zA-Z]+:\/\//)?In:webModule.__moduleBase+In}function D(){var In=[],Yt=O,Te=[],te=[];function Ot(be){var z=te[be](),E=Te[be];if(z in E)return z;var ie=[];for(var oe in E)ie[E[oe]]=oe;throw r&&r(be,ie,z),null}if(__gwt_isKnownPropertyValue=function(be,z){return z in Te[be]},webModule.__getPropMap=function(){var be={};for(var z in Te)Te.hasOwnProperty(z)&&(be[z]=Ot(z));return be},webModule.__computePropValue=Ot,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var y;try{y=Cb;var je=y.indexOf(Db);je!=-1&&(Yt=parseInt(y.substring(je+P),$),y=y.substring(O,je))}catch(be){}return webModule.__softPermutationId=Yt,C(y+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})()},8240:function(In,Yt,Te){"use strict";Te.d(Yt,{Ax:function(){return je},Ds:function(){return be},KI:function(){return E},SI:function(){return y},f1:function(){return Ot}});var te=Te(35783);function Ot(ie){let oe=!0;if(ie.length>0){for(let ee=0;eenew Promise((se,ue)=>{var pe=ge=>{try{ye(re.next(ge))}catch(xe){ue(xe)}},he=ge=>{try{ye(re.throw(ge))}catch(xe){ue(xe)}},ye=ge=>ge.done?se(ge.value):Promise.resolve(ge.value).then(pe,he);ye((re=re.apply(x,ae)).next())}),ce=({data:x,className:ae,fullWidth:re,style:se={},onClose:ue,onOk:pe,showFullTools:he,noAssociationId:ye})=>{const ge=(0,te.useRef)(null),xe=(0,te.useRef)(null),ke=(0,te.useRef)(null),De=(0,te.useRef)(null),[Be,Ae]=(0,te.useState)(!1),[Se,Ee]=(0,te.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,te.useEffect)(()=>(ke.current||(ke.current=document.createElement("style"),document.head.appendChild(ke.current)),x!=null&&x.visible?(document.body.setAttribute("data-custom","y-hidden"),ke.current.innerHTML=" html { overflow-y: hidden; }",x!=null&&x.src&&Oe()):(document.body.removeAttribute("data-custom"),ke.current&&(document.head.removeChild(ke.current),ke.current=null)),()=>{document.body.removeAttribute("data-custom"),ke.current&&(document.head.removeChild(ke.current),ke.current=null)}),[x==null?void 0:x.visible]);const Oe=()=>oe(void 0,null,function*(){Ae(!0),Ee("\u6B63\u5728\u52A0\u8F7D\u4E2D");const me=yield(0,ie.ZJ)(x==null?void 0:x.src);ge.current.src="",ge.current.src=me,ge.current.onload=function(){Ne()},Ae(!1),Ee("")}),Pe=me=>oe(void 0,null,function*(){Ae(!0),Ee("\u6B63\u5728\u4FDD\u5B58\u4E2D");const Ve=yield(0,E.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:x.title,file:me.dataUrl}});Ve!=null&&Ve.id&&!ye?(yield(0,E.ZP)(`/api/attachments/${x.id}/add_subitem.json`,{method:"post",body:{subitem_id:Ve==null?void 0:Ve.id,settings:JSON.stringify(me.state)}})).status===0&&pe():Ve!=null&&Ve.id&&pe(Ve),Ae(!1),Ee("")}),Le=()=>{const me=document.querySelector('a[href="https://markerjs.com/"]');me&&me.parentNode&&(me.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(Ze=>{const We=document.querySelector(Ze.name);We&&We.setAttribute("title",Ze.title)})},Ne=()=>{xe.current=new z.hP(ge.current),xe.current.targetRoot=De.current,xe.current.addEventListener("render",Pe),xe.current.addEventListener("beforeclose",ue),he&&(xe.current.availableMarkerTypes=xe.current.ALL_MARKER_TYPES,xe.current.uiStyleSettings.redoButtonVisible=!0,xe.current.uiStyleSettings.notesButtonVisible=!0,xe.current.uiStyleSettings.zoomButtonVisible=!0,xe.current.uiStyleSettings.zoomOutButtonVisible=!0,xe.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=xe.current.uiStyleSettings,xe.current.show(),x!=null&&x.snapshotData&&xe.current.restoreState(x.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Le()},300)};return te.createElement(te.Fragment,null,(x==null?void 0:x.visible)&&te.createElement(be.Z,{spinning:Be,tip:Se,style:{position:"absolute",width:"100vw"}},te.createElement("div",{ref:De,className:je()(Ot.imageDimensions,ae,re?Ot.fullWidth:""),style:se},te.createElement("img",{className:Ot.img,ref:ge}))))}},9043:function(In,Yt,Te){"use strict";var te=Te(59301),Ot=Te(77019),y=Te(5269),je=Te(31691),be=Te(7939),z=Te(56375),E=Te(50718),ie=Te(48136),oe=Te(59301);const ee=(0,te.forwardRef)(({callback:ce,showSaveButton:x,value:ae=""},re)=>{const se=(0,te.useRef)(),ue=[{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 "}]}]}],pe=[{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}`}]}]}],he=xe=>{se.current.setValue(se.current.getValue()+" "+xe.value+" ")},ye=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:oe.createElement(Ot.Z,{className:E.Z.lists,gutter:[10,10]},ue.map((xe,ke)=>oe.createElement(y.Z,{flex:"110px",className:E.Z.item},oe.createElement("div",null,oe.createElement(z.Z,{value:`$$${xe.value}$$`}),xe.name),oe.createElement("div",{className:E.Z.children},xe.children.map((De,Be)=>oe.createElement("div",{key:Be},oe.createElement("h1",null,De.name),oe.createElement(Ot.Z,{gutter:[10,10]},De.data.map((Ae,Se)=>oe.createElement(y.Z,{key:Se,onClick:()=>he(Ae),className:E.Z.diamond},oe.createElement(z.Z,{value:"`$$"+Ae.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:oe.createElement(Ot.Z,{className:E.Z.lists,gutter:[10,10]},pe.map((xe,ke)=>oe.createElement(y.Z,{flex:"110px",className:E.Z.item},oe.createElement("div",null,oe.createElement(z.Z,{value:"`$$"+xe.value+"$$`"}),xe.name),oe.createElement("div",{className:E.Z.children},xe.children.map((De,Be)=>oe.createElement("div",{key:Be},De.name&&oe.createElement("h1",null,De.name),oe.createElement(Ot.Z,{gutter:[10,10]},De.data.map((Ae,Se)=>oe.createElement(y.Z,{key:Se,onClick:()=>he(Ae),className:E.Z.diamond},oe.createElement(z.Z,{value:"`$$"+Ae.value+"$$`"}))))))))))}],ge=()=>{var xe=document.createElement("div");xe.innerHTML=se.current.getValue();var ke=xe.innerText;return ce&&ce(ke),ke};return(0,te.useImperativeHandle)(re,()=>({getData:ge})),oe.createElement("div",{className:E.Z.mathWrap},oe.createElement(je.default,{defaultActiveKey:"1",items:ye}),oe.createElement("math-field",{locale:"zh_cn",className:E.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:se,style:{width:800,marginTop:30,fontSize:18}},ae||""),x&&oe.createElement("div",{className:E.Z.button},oe.createElement(be.ZP,{size:"large",onClick:ge,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});Yt.Z=ee},71347:function(In,Yt,Te){"use strict";var te=Te(59301),Ot=Te(93314),y=Te(7939),je=Object.defineProperty,be=Object.defineProperties,z=Object.getOwnPropertyDescriptors,E=Object.getOwnPropertySymbols,ie=Object.prototype.hasOwnProperty,oe=Object.prototype.propertyIsEnumerable,ee=(re,se,ue)=>se in re?je(re,se,{enumerable:!0,configurable:!0,writable:!0,value:ue}):re[se]=ue,ce=(re,se)=>{for(var ue in se||(se={}))ie.call(se,ue)&&ee(re,ue,se[ue]);if(E)for(var ue of E(se))oe.call(se,ue)&&ee(re,ue,se[ue]);return re},x=(re,se)=>be(re,z(se));const ae=({img:re,buttonProps:se={},styles:ue={},customText:pe,ButtonText:he,ButtonClick:ye,Buttonclass:ge,ButtonTwo:xe,imgStyles:ke,loading:De=!1,className:Be=""})=>te.createElement("section",{className:`tc animated fadeIn ${Be}`,style:ce({color:"#999",margin:"100px auto",visibility:De?"hidden":"visible"},ue)},te.createElement("img",{src:re||Ot,style:x(ce({},ke),{pointerEvents:"none",userSelect:"none"})}),te.createElement("p",{className:"mt20 font14"},pe||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),he&&te.createElement(y.ZP,ce({className:ge,onClick:ye},se),he),xe&&xe);Yt.Z=ae},98893:function(In,Yt,Te){"use strict";Te.d(Yt,{Z:function(){return ge}});var te=Te(59301),Ot={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",showClose:"showClose___edZQA",embed:"embed___hvpEJ"},y=Te(7939),je=Te(70557),be=Te(94871),z=Te(25399),E=Te(68911),ie=Te(58870),oe=Te(71347),ee=Te(35783),ce=Te(25341),x=Te(59301),ae=Object.defineProperty,re=Object.getOwnPropertySymbols,se=Object.prototype.hasOwnProperty,ue=Object.prototype.propertyIsEnumerable,pe=(xe,ke,De)=>ke in xe?ae(xe,ke,{enumerable:!0,configurable:!0,writable:!0,value:De}):xe[ke]=De,he=(xe,ke)=>{for(var De in ke||(ke={}))se.call(ke,De)&&pe(xe,De,ke[De]);if(re)for(var De of re(ke))ue.call(ke,De)&&pe(xe,De,ke[De]);return xe},ye=(xe,ke,De)=>new Promise((Be,Ae)=>{var Se=Pe=>{try{Oe(De.next(Pe))}catch(Le){Ae(Le)}},Ee=Pe=>{try{Oe(De.throw(Pe))}catch(Le){Ae(Le)}},Oe=Pe=>Pe.done?Be(Pe.value):Promise.resolve(Pe.value).then(Se,Ee);Oe((De=De.apply(xe,ke)).next())}),ge=({editOffice:xe="view",data:ke,issaver:De,onSaver:Be,theme:Ae,type:Se,filename:Ee,monacoEditor:Oe,className:Pe,style:Le,close:Ne,onClose:me,hasMask:Ve,disabledDownload:Ze,onImgDimensions:We,showNodata:nt,recordInfo:_e})=>{const[Ue,tt]=(0,te.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[rt,et]=(0,te.useState)(""),[Ke,Ye]=(0,te.useState)(),Xe=window.ENV==="build"?"/react/build":"",ot=location.host.startsWith("localhost")?ee.Z.PROXY_SERVER:ee.Z.API_SERVER,ft=10*(1024*1024),at=(0,te.useRef)();ke!=null&&ke.startsWith("/api")&&Se!=="txt"&&(ke=ee.Z.API_SERVER+ke);const qe=ze=>ze.substring(ze.lastIndexOf("/")+1).split(".").pop();Ee&&Oe&&(Oe.filename=Ee),(0,te.useEffect)(()=>{var ze,we;const ve=(we=(ze=document.cookie)==null?void 0:ze.replace(/\s/g,""))==null?void 0:we.split(";");ve==null||ve.map(Ie=>{let $e=Ie.split("=");$e[0]==="_educoder_session"&&et($e[1])})},[]),(0,te.useEffect)(()=>{Se==="office"&&(ke.indexOf("bigfilescdn.")>-1||ke.indexOf("bigfiles1")>-1?Ye({url:ke,fileType:qe(ke),model:ke.indexOf("model=edit")?"edit":"view"}):ke.indexOf("coze")>-1?Ye({url:ke,fileType:"doc",model:"view"}):Re())},[Se,ke]);function Fe(ze){return ye(this,null,function*(){ze.data.type==="pdfdata"&&(Be(ze.data.data),window.removeEventListener("message",Fe,!1)),console.log("mess---:",ze.data)})}const Re=()=>ye(void 0,null,function*(){console.log("data:",ke);let ze=ke;ke.startsWith("http")||(ze=location.origin+ze);let we=new URL(ze).pathname.split("/").pop();const ve=yield(0,ie.gJ)({attachment_id:we});ve.url=ot+ve.url,Ye(ve)}),ne=()=>{if(ke.startsWith("http")||ke.startsWith("blob:")){fe();return}(0,E.Sv)(Ee||"educoder",ke,Ee)},fe=()=>{_e&&(0,ce.fc)({id:_e==null?void 0:_e.id,watch_type:1,course_id:_e==null?void 0:_e.course_id}),(0,E.Nd)(Ee||"educoder",decodeURIComponent(ke))};(0,te.useEffect)(()=>(window.addEventListener("message",Me),()=>{window.removeEventListener("message",Me)}),[]);const Me=ze=>{var we;((we=ze==null?void 0:ze.data)==null?void 0:we.type)==="closePop"&&me()};return x.createElement("div",{style:he({},Le||{}),className:`${Ve&&Ot.bgBlack} ${Se?Ot.wrp:"hide"}`},!!Se&&Ne&&x.createElement("div",{id:"closePop",className:Ot.close,ref:at},!!We&&x.createElement(z.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>at.current},x.createElement("span",{onClick:()=>{me(),We()}},x.createElement("i",{className:"icon-yulanpizhu"}))),!Ze&&window.parent===window&&x.createElement(z.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>at.current},x.createElement("span",{onClick:fe},x.createElement("i",{className:"icon-quxiaozhiding"}))),De&&x.createElement(z.Z,{title:"\u4FDD\u5B58pdf\u5E76\u9000\u51FA",getPopupContainer:()=>at.current},x.createElement("span",{className:"",onClick:()=>{const ze=document.getElementById("pdfiframe");window.addEventListener("message",Fe,!1),setTimeout(()=>{ze.contentWindow.postMessage("getData","*")},300)}},x.createElement("i",{className:"icon-baocun"}))),x.createElement(z.Z,{title:"\u5173\u95ED",getPopupContainer:()=>at.current},x.createElement("span",{className:"",onClick:()=>{me()}},x.createElement("i",{className:"icon-guanbi1"})))),x.createElement("div",{className:`${Ot[Pe]} ${Pe} ${Ot.monaco} ${Se==="txt"?"show":"hide"}`},Se==="txt"&&x.createElement(x.Fragment,null,x.createElement(be.ZP,he({},Oe)))),Se==="audio"&&x.createElement("audio",{src:`${(ke==null?void 0:ke.indexOf("http://"))>-1||(ke==null?void 0:ke.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${ke}`,autoPlay:!0}),Se==="video"&&x.createElement(x.Fragment,null,(ke==null?void 0:ke.indexOf("http"))>-1?x.createElement("video",{controls:!0,src:`${ke}`,autoPlay:!0}):x.createElement("video",{controls:!0,src:`data:video/mp4;base64,${ke}`,autoPlay:!0})),Se==="office"&&Ke&&x.createElement("iframe",{src:`${Xe}/office.html?key=${Ke.key}&url=${btoa(Ke.url)}&callbackUrl=${ot+(Ke.callbackUrl||"")}&fileType=${Ke.fileType}&title=${Ke.title||""}&model=${xe}&officeServer=${ee.Z.ONLYOFFICE}&disabledDownload=${!!Ze}`}),Se==="html"&&x.createElement("iframe",{src:ke+"&disposition=inline"}),Se==="pdf"&&x.createElement("iframe",{id:"pdfiframe",src:`${Xe}/js/pdf/index.html?filename=${Ee||"educoder.pdf"}&url=${encodeURIComponent(ke)}&disabledDownload=${!!Ze}&model=${xe}`}),Se==="image"&&x.createElement("img",{src:`${(ke==null?void 0:ke.indexOf("http://"))>-1||(ke==null?void 0:ke.indexOf("https://"))>-1?"":"data:image/png;base64,"}${ke}`}),(Se==="other"||Se==="download")&&x.createElement(x.Fragment,null,nt?x.createElement(oe.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:x.createElement(y.ZP,{icon:x.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:ne,disabled:Ze},"\u4E0B\u8F7D")}):x.createElement(y.ZP,{type:"primary",size:"middle",onClick:ne,disabled:Ze},x.createElement(je.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")),Se==="flowChart"&&x.createElement("div",{className:"embed"},x.createElement("iframe",{src:`/drawio/src/main/webapp/viewer.html?id=${ke||""}&gapi=0&od=0&db=0&gh=0&gl=0`,width:"100%",height:"100%",frameBorder:"0"})))}},56375:function(In,Yt,Te){"use strict";Te.d(Yt,{z:function(){return Oe},Z:function(){return Pe}});var te=Te(59301),Ot=Te(64310),y=Te(74410),je=Te(64018),be=Te(16471),z=Te(35783),E=Te(68911),ie=Te(15342),oe=Te(44104),ee=Te(7939),ce=Te(1012),x=Te(98893),ae=Te(59301),se=({html:Le})=>{const Ne=(0,te.useRef)(null),me=(0,te.useRef)(null),Ve=`.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,te.useEffect)(()=>{const Ze=Ne.current.attachShadow({mode:"open"});me.current=document.createElement("div"),me.current.className="markdown-body",me.current.innerHTML=Le,Ze.appendChild(me.current);const We=document.createElement("style");return We.textContent=Ve,Ze.appendChild(We),()=>{Ze.innerHTML=""}},[]),(0,te.useEffect)(()=>{me.current&&(me.current.innerHTML=Le)},[Le]),ae.createElement("div",{ref:Ne})};function ue(Le){const Ne=["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"],me=new RegExp(`\\b(${Ne.join("|")})\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s>]*)`,"gi"),Ve=/]*>/gi;return Le.replace(me,"").replace(Ve,"").trim()}var pe={mdBody:"mdBody___raKXb",button:"button___Ch5Pc",previewFlowChart:"previewFlowChart___vY1dq"},he=Object.defineProperty,ye=Object.getOwnPropertySymbols,ge=Object.prototype.hasOwnProperty,xe=Object.prototype.propertyIsEnumerable,ke=(Le,Ne,me)=>Ne in Le?he(Le,Ne,{enumerable:!0,configurable:!0,writable:!0,value:me}):Le[Ne]=me,De=(Le,Ne)=>{for(var me in Ne||(Ne={}))ge.call(Ne,me)&&ke(Le,me,Ne[me]);if(ye)for(var me of ye(Ne))xe.call(Ne,me)&&ke(Le,me,Ne[me]);return Le};const Be="@\u2581\u2581@",Ae="@\u2581@",Se=/]*>/g;function Ee(Le){let Ne=document.createElement("div");return Ne.innerHTML=Le,Ne.childNodes.length===0?"":Ne.childNodes[0].nodeValue}const Oe=(Le,Ne)=>{Le=Le||"";const me=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Ve=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Ze=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,We=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return Ne?Le.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(me,(nt,_e,Ue,tt,rt,et,Ke)=>{const Ye=_e||tt||et,Xe=Ue||rt||Ke||"?";return z.Z.API_SERVER+"/api/attachments/"+Ye+Xe+"&t="+(0,E.Jn)(Ye,Date.now())+(nt.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(Le=Le.replace(We,(nt,_e,Ue,tt,rt,et,Ke)=>{const Ye=_e||tt||et,Xe=Ue||rt||Ke||"?";return z.Z.API_SERVER+"/attachments/download/"+Ye+Xe+"&t="+(0,E.Jn)(Ye,Date.now())+(nt.indexOf(")")>-1?")":"&")}).replace(me,(nt,_e,Ue,tt,rt,et,Ke)=>{const Ye=_e||tt||et,Xe=Ue||rt||Ke||"?";return z.Z.API_SERVER+"/api/attachments/"+Ye+Xe+"&t="+(0,E.Jn)(Ye,Date.now())+(nt.indexOf(")")>-1?")":"&")}).replace(Ve,(nt,_e,Ue,tt,rt)=>{const et=_e||tt,Ke=Ue||rt||"";return'"'+z.Z.API_SERVER+"/api/attachments/"+et+Ke+et+Ke+"&t="+(0,E.Jn)(et,Date.now())}).replace(Ze,(nt,_e,Ue,tt,rt)=>{const et=_e||tt,Ke=Ue||rt||"";return"("+z.Z.API_SERVER+"/files/uploads/"+et+Ke+et+Ke+"&t="+(0,E.Jn)(et,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,` `),Le)};var Pe=({value:Le="",edit:Ne=!1,className:me,showTextOnly:Ve,showLines:Ze,style:We={},stylesPrev:nt={},highlightKeywords:_e,showProgramFill:Ue,isProgramFill:tt,disabledFill:rt=!1,programFillValue:et,openEditor:Ke=()=>{},onFillChange:Ye=Qe=>{},onFillBlur:Xe=()=>{},onFillFocus:ot=()=>{}})=>{let Qe=ue(String(Le||""));const ft=(0,te.useRef)(),at=(0,te.useRef)(),[qe,Fe]=(0,te.useState)(""),[Re,ne]=(0,te.useState)("office"),[fe,Me]=(0,te.useState)([]),ze=(0,te.useRef)("a"+(0,ce.Z)()),we={},ve=Et=>//i.test(Et||""),Ie=(Et,kt,Nt)=>{const yt=document.createElement(Et===Ae?"input":"textarea");yt.style.width="100%",yt.style.height=Et===Ae?"40px":"151px",yt.rows=5,yt.spellcheck=!1,yt.name="edu-program-fill",yt.placeholder="\u8BF7\u8F93\u5165",yt.dataset.id=kt;const Pt=Object.keys(we).length;return we[Pt]=yt,`${yt.outerHTML}`};function $e(Et){return Et=Et.replace(/!\[.*?\]\(.*?\)/g,""),Et=Et.replace(/\[.*?\]\(.*?\)/g,""),Et=Et.replace(new RegExp("","gs"),""),Et=Et.replace(//g,""),Et=Et.replace(//g,""),Et=Et.replace(new RegExp(".*?<\\/video>","gs"),""),Et=Et.replace(new RegExp(".*?<\\/audio>","gs"),""),Et=Et.replace(new RegExp(".*?<\\/style>","gs"),""),Et=Et.replace(new RegExp(".*?<\\/script>","gs"),""),Et}const Ge=Et=>!Ve&&ve(Qe)?Et:Et.replace(/([\s\S]+?)<\/style>/gim,function(kt,Nt){let yt=Nt.replace(/(\n|\r)/g,"").split("}"),Pt=[];return yt.map(Kt=>{Kt!=""&&Pt.push(`.${ze.current} ${Kt}`)}),``}),Je=(0,te.useMemo)(()=>{(0,y.Iy)();try{const yt=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,Pt=/\"\/api\/attachments\/|\"\/attachments\/download\//g,Kt=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,nn=/\(\/attachments\/download\//g;Qe=Qe.replace(nn,"("+z.Z.API_SERVER+"/attachments/download/").replace(yt,"("+z.Z.API_SERVER+"/api/attachments/").replace(Pt,'"'+z.Z.API_SERVER+"/api/attachments/").replace(Kt,'"'+z.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,` `),ft.current.style.display="none"}catch(yt){}if(Ue){let yt=-1;return Qe=Qe.replaceAll("<","<").replaceAll(">",">").replace(/(@▁▁@|@▁@)/g,function(Pt,Kt,nn){var xt;return++yt,Ie(Pt,yt,(xt=et==null?void 0:et[yt])==null?void 0:xt.value.replaceAll("<","<").replaceAll(">",">"))}),`
${Ge(Qe||"")}
`}let Et=Ge(Qe);Et=(0,y.ZP)(Et);const kt=(0,y.ez)();Qe.match(/\[TOC\]/)&&(Et=Et.replace("

[TOC]

",(0,y.Qv)()),(0,y.Iy)()),Et=Et.replace(/(__special_katext_id_\d+__)/g,(yt,Pt)=>{const{type:Kt,expression:nn}=kt[Pt];return(0,ie.renderToString)(Ee(nn)||"",{displayMode:Kt==="block",throwOnError:!1,output:"html"})}),Et=Et.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,y.AL)();const Nt=document.createElement("div");if(Nt.innerHTML=Et,Ve)return Nt.innerText;if(_e){const yt=_e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return ct(Nt,yt),Nt.innerHTML}return setTimeout(()=>mt(),500),Nt.innerHTML},[Qe,_e]);(0,te.useEffect)(()=>{st.current&&st.current.querySelectorAll(["input","textarea"]).forEach(kt=>{kt.oninput=ut,kt.onblur=lt,kt.onfocus=vt})},[fe]),(0,te.useEffect)(()=>{var Et,kt,Nt,yt,Pt;if(et!=null&&et.length)try{const Kt=st.current.querySelectorAll(".edu-program-fill-score"),nn=st.current.querySelectorAll('[name="edu-program-fill"]');for(const[xt,Ct]of nn.entries())Ct.value=((Et=et==null?void 0:et[xt])==null?void 0:Et.value)||"",((kt=et==null?void 0:et[xt])==null?void 0:kt.type)==="warning"?Ct.className="program-fill-warning":((Nt=et==null?void 0:et[xt])==null?void 0:Nt.type)==="success"?Ct.className="program-fill-success":Ct.className="";for(const[xt,Ct]of Kt.entries())Ct.innerHTML=(yt=et==null?void 0:et[xt])!=null&&yt.score?`${(Pt=et==null?void 0:et[xt])==null?void 0:Pt.score}\u5206`:"";Me(et)}catch(Kt){console.log(Kt,"error")}},[et]);const ut=Et=>{fe[Et.target.dataset.id]=fe[Et.target.dataset.id]||{},fe[Et.target.dataset.id].value=Et.target.value,Me([...fe]),Ye(fe,Et.target.dataset.id)},lt=Et=>{fe[Et.target.dataset.id]=fe[Et.target.dataset.id]||{},fe[Et.target.dataset.id].value=Et.target.value,Me([...fe]),Xe(fe,Et.target.dataset.id)},vt=Et=>{fe[Et.target.dataset.id]=fe[Et.target.dataset.id]||{},fe[Et.target.dataset.id].value=Et.target.value,Me([...fe]),ot(fe,Et.target.dataset.id)};function ct(Et,kt){return Et.childNodes.forEach(Nt=>{var yt;if(Nt.childNodes.length>0)ct(Nt,kt);else if(Nt.nodeName!=="IMG")if(Nt.innerHTML)Nt.innerHTML=(yt=Nt.innerHTML)==null?void 0:yt.replace(new RegExp(kt,"gi"),'$&');else{const Pt=document.createElement("span");Pt.innerHTML=Nt.textContent.replace(new RegExp(kt,"gi"),'$&'),Nt.replaceWith(Pt)}})}const st=(0,te.useRef)();y.jb.WebkitLineClamp=Ze,Ze&&(We=De(De({},We),y.jb));function At(Et){let kt=Et.target;if(kt.tagName.toUpperCase()==="A"){let Nt=kt.getAttribute("href");if(Nt.indexOf("office")>-1)Et.preventDefault(),Fe(Nt),ne("office");else if(Nt.indexOf("application/pdf")>-1)Et.preventDefault(),Fe(Nt),ne("pdf");else if(Nt.indexOf("text/html")>-1)Et.preventDefault(),Fe(Nt),ne("html");else if(Nt.startsWith("#")){Et.preventDefault();let yt=document.getElementById(Nt.replace("#",""));yt&&yt.scrollIntoView(!0)}}}const mt=()=>{var Et;const kt=(Et=st.current)==null?void 0:Et.querySelectorAll("video");kt==null||kt.forEach(Nt=>{if(Nt.oncontextmenu=()=>!1,Nt.src.indexOf(".m3u8")>-1&&!Nt.canPlayType("application/vnd.apple.mpegurl")){if(be.ZP.isSupported()){var yt=new be.ZP;yt.loadSource(Nt.src),yt.attachMedia(Nt)}}})};(0,te.useEffect)(()=>{if(st.current&&Je&&Je.match(Se)&&window.PR.prettyPrint(),st.current)return st.current.addEventListener("click",At),()=>{var Et;(Et=st.current)==null||Et.removeEventListener("click",At),(0,y.AL)(),(0,y.Iy)()}},[Je,st.current,At]);const Dt=Et=>{Et.target.nodeName==="IMG"&&Et.target.className.indexOf("draw-flowchart")>-1?(ft.current.style.zIndex=1,ft.current.style.display="flex",ft.current.style.width=Et.target.clientWidth+"px",ft.current.style.height=Et.target.clientHeight+"px",ft.current.style.top=Et.target.offsetTop+"px",ft.current.style.left=Et.target.offsetLeft+"px",Et.target.id&&(at.current=Et.target.id)):ft.current.style.display="none"},jt=()=>{ft.current.style.display="none"};return(0,te.useEffect)(()=>{var Et;const kt=Nt=>{Nt.preventDefault(),Nt.clipboardData.setData("text",window.getSelection().toString())};return(Et=st.current)==null||Et.addEventListener("copy",kt),()=>{var Nt;(Nt=st.current)==null||Nt.removeEventListener("copy",kt)}},[st.current]),te.createElement("div",{style:{position:"relative"},onMouseLeave:jt},Ve&&te.createElement("div",{ref:st,className:`${pe.mdBody} `},Je),!Ve&&!ve(Je)&&te.createElement("div",{ref:st,style:De({},We),onMouseOver:Dt,className:`${me||""} ${rt?"disabled-fill":""} markdown-body ${pe.mdBody} ${ze.current}`,dangerouslySetInnerHTML:{__html:Je}}),!Ve&&ve(Je)&&te.createElement(se,{html:Je}),te.createElement("div",{ref:ft,className:`${pe.button} ${Ne?"":pe.previewFlowChart}`},te.createElement(oe.Z,null,te.createElement(ee.ZP,{onClick:()=>{Ne?Ke(at.current):(Fe(at.current),ne("flowChart"))}},Ne?"\u7F16\u8F91":"\u9884\u89C8"))),te.createElement(x.Z,{close:!0,data:qe,type:qe!=null&&qe.length?Re:"",style:De({},nt),onClose:()=>Fe("")}))}},14820:function(In,Yt,Te){"use strict";Te.d(Yt,{cT:function(){return Se},pe:function(){return De}});var te=Te(59301),Ot=Te(94968),y=Te(6767),je=Te(22972),be=Te(28209),z=Te.n(be),E=Te(1012),ie=Te(63823),oe=Te(47257),ee=Te.n(oe),ce=Object.defineProperty,x=Object.defineProperties,ae=Object.getOwnPropertyDescriptors,re=Object.getOwnPropertySymbols,se=Object.prototype.hasOwnProperty,ue=Object.prototype.propertyIsEnumerable,pe=(Oe,Pe,Le)=>Pe in Oe?ce(Oe,Pe,{enumerable:!0,configurable:!0,writable:!0,value:Le}):Oe[Pe]=Le,he=(Oe,Pe)=>{for(var Le in Pe||(Pe={}))se.call(Pe,Le)&&pe(Oe,Le,Pe[Le]);if(re)for(var Le of re(Pe))ue.call(Pe,Le)&&pe(Oe,Le,Pe[Le]);return Oe},ye=(Oe,Pe)=>x(Oe,ae(Pe)),ge=(Oe,Pe)=>{var Le={};for(var Ne in Oe)se.call(Oe,Ne)&&Pe.indexOf(Ne)<0&&(Le[Ne]=Oe[Ne]);if(Oe!=null&&re)for(var Ne of re(Oe))Pe.indexOf(Ne)<0&&ue.call(Oe,Ne)&&(Le[Ne]=Oe[Ne]);return Le},xe=(Oe,Pe,Le)=>new Promise((Ne,me)=>{var Ve=nt=>{try{We(Le.next(nt))}catch(_e){me(_e)}},Ze=nt=>{try{We(Le.throw(nt))}catch(_e){me(_e)}},We=nt=>nt.done?Ne(nt.value):Promise.resolve(nt.value).then(Ve,Ze);We((Le=Le.apply(Oe,Pe)).next())});const{Dragger:ke}=Ot.default,De=Oe=>{const Pe="bf3c199c2470cb477d907b1e0917c17b",Le="5183666c72eec9e4";var Ne=z().enc.Utf8.parse(Pe);let me=z().enc.Utf8.parse(Le);var Ve=z().AES.decrypt(Oe,Ne,{iv:me,mode:z().mode.CBC});return Ve.toString(z().enc.Utf8)};let Be;const Ae=Oe=>xe(void 0,[Oe],function*({identifier:Pe,oldFilename:Le,newFilename:Ne}){var me,Ve,Ze,We,nt,_e;const Ue=yield Fetch("/api/buckets/get_upload_token_for_big_files.json",{method:"get"});Ue.data=JSON.parse(De(Ue.data));const tt=new OSS({endpoint:(me=Ue==null?void 0:Ue.data)==null?void 0:me.end_point,region:(Ve=Ue==null?void 0:Ue.data)==null?void 0:Ve.region,accessKeyId:(Ze=Ue==null?void 0:Ue.data)==null?void 0:Ze.access_key_id,accessKeySecret:(We=Ue==null?void 0:Ue.data)==null?void 0:We.access_key_secret,bucket:(nt=Ue==null?void 0:Ue.data)==null?void 0:nt.bucket,stsToken:(_e=Ue==null?void 0:Ue.data)==null?void 0:_e.security_token});return new Promise((rt,et)=>{console.log(11111,`${Pe}/${Le}`,`${Pe}/${Ne}`,Ue.data),tt.copy(`/${Pe}/${Le}`,`/${Pe}/${Ne}`).then(Ke=>{console.log("\u62F7\u8D1D\u6210\u529F",Ke)}).catch(Ke=>{console.log(Ke)})})}),Se=(Oe,Pe,Le)=>xe(void 0,null,function*(){var Ne,me,Ve,Ze,We,nt;Pe.file_name=Oe.name;const _e=yield(0,je.ZP)("/api/buckets/get_upload_token.json",{method:"get"});console.log("decrypt(res.data):",De(_e.data)),_e.data=JSON.parse(De(_e.data));const Ue=Oe.name.split(".");Ue.pop();const tt=Pe.realFileName?Ue.join(""):(0,E.Z)(),rt=new(ee())({endpoint:(Ne=_e==null?void 0:_e.data)==null?void 0:Ne.end_point,region:(me=_e==null?void 0:_e.data)==null?void 0:me.region,accessKeyId:(Ve=_e==null?void 0:_e.data)==null?void 0:Ve.access_key_id,accessKeySecret:(Ze=_e==null?void 0:_e.data)==null?void 0:Ze.access_key_secret,bucket:(We=_e==null?void 0:_e.data)==null?void 0:We.bucket,stsToken:(nt=_e==null?void 0:_e.data)==null?void 0:nt.security_token});return new Promise((et,Ke)=>{var Ye;rt.multipartUpload(`${tt}`,new Blob([Oe],{type:Oe.type}),ye(he({timeout:200*1e3,partSize:102400},Le),{callback:{url:(Ye=_e==null?void 0:_e.data)==null?void 0:Ye.callback_url,host:_e==null?void 0:_e.data.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+(0,je.rz)(Pe)}})).then(function(Xe){var ot;Oe.response=(ot=Xe.data)==null?void 0:ot.data,et(Xe==null?void 0:Xe.data)}).catch(function(Xe){Ke(Xe),console.log("err:",Xe)})})}),Ee=Oe=>{var Pe=Oe,{user:Le,cancelUpload:Ne}=Pe,me=ge(Pe,["user","cancelUpload"]);const[Ve,Ze]=(0,te.useState)([]);let[We,nt]=(0,te.useState)();const _e={onRemove:tt=>{Ze([...Ve.filter(rt=>rt.name!==tt.name)]),me.onChange(Ve.filter(rt=>rt.name!==tt.name))},disabled:me.disabled,multiple:!0,fileList:Ve==null?void 0:Ve.map(tt=>tt.file),customRequest:()=>{},beforeUpload:tt=>xe(void 0,null,function*(){let rt=me.maxSize||1073741824;if(Ve.filter(et=>et.name===tt.name).length){y.ZP.info(`${tt.name}\u5DF2\u5B58\u5728\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9`);return}return(tt==null?void 0:tt.size)>rt?(y.ZP.info(`\u6587\u4EF6\u8D85\u8FC7${rt/1024/1024/1024}GB\uFF0C\u4E0D\u7B26\u5408\u4E0A\u4F20\u8981\u6C42`),!1):(Ve.push({name:tt.name,file:tt}),Ze([...Ve]),me.onChange(Ve),!1)})},Ue=(tt,rt)=>xe(void 0,null,function*(){var et,Ke,Ye,Xe,ot,Qe;rt.file_name=tt.name;const ft=tt.name,at=yield(0,je.ZP)("/api/buckets/get_upload_token_for_big_files.json",{method:"get"});if(at.data=JSON.parse(De(at.data)),(at==null?void 0:at.status)!==0){Ve[Ve.findIndex(Re=>Re.name===ft)].status="error",Ve[Ve.findIndex(Re=>Re.name===ft)].file.status="error",me.onChange(Ve),y.ZP.warning("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u5C1D\u8BD5");return}We=new(ee())({endpoint:(et=at==null?void 0:at.data)==null?void 0:et.end_point,region:(Ke=at==null?void 0:at.data)==null?void 0:Ke.region,accessKeyId:(Ye=at==null?void 0:at.data)==null?void 0:Ye.access_key_id,accessKeySecret:(Xe=at==null?void 0:at.data)==null?void 0:Xe.access_key_secret,bucket:(ot=at==null?void 0:at.data)==null?void 0:ot.bucket,stsToken:(Qe=at==null?void 0:at.data)==null?void 0:Qe.security_token}),console.log(tt,"file"),nt(We);const qe=tt.name.split(".");qe.pop();const Fe=ft.indexOf(".")>-1?rt.realFileName?qe.join("."):(0,E.Z)():ft;return new Promise((Re,ne)=>{var fe;try{We.multipartUpload(`${me.identifier}/${Fe}${ft.indexOf(".")>-1?"."+ft.split(".").pop():""}`,new Blob([tt.file],{type:tt.file.type}),{timeout:3600*1e3,partSize:1002400,progress:(Me,ze,we)=>{try{console.log("\u8FDB\u5EA6",Me,ze,we);const ve=Ve.findIndex(Ie=>Ie.name===ft);Ve[ve].file.percent=Me*100,Ve[ve].tempCheckpoint=ze,Ze([...Ve])}catch(ve){}},checkpoint:Ve[Ve.findIndex(Me=>Me.name===ft)].tempCheckpoint,callback:{customValue:{id:ft+""},url:(fe=at==null?void 0:at.data)==null?void 0:fe.callback_url,host:at==null?void 0:at.data.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+(0,je.rz)(rt)}}).then(function(Me){var ze,we,ve;const Ie=Ve.findIndex(Ge=>Ge.name===ft);let $e="done";if(((ze=Me.data)==null?void 0:ze.status)===0){tt.response=(we=Me.data)==null?void 0:we.data;const Ge=Ve.findIndex(Je=>Je.name===ft);Ve[Ge].status="done",Ve[Ge].file.status="done"}else y.ZP.warning((ve=Me.data)==null?void 0:ve.message),$e="error";Ve[Ie].status=$e,Ve[Ie].file.status=$e,me.onChange(Ve),Re(Me==null?void 0:Me.data)}).catch(function(Me){Ve[Ve.findIndex(ze=>ze.name===ft)].status="error",Ve[Ve.findIndex(ze=>ze.name===ft)].file.status="error",y.ZP.warning("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u5C1D\u8BD5"),Ze([...Ve]),me.onChange(Ve),ne(Me),console.log("err:",Me)})}catch(Me){}})});return(0,te.useEffect)(()=>{Ve.every(tt=>tt==="done"||tt==="error")&&me.onComplete(Ve)},[Ve]),(0,te.useEffect)(()=>{Ne&&(We==null||We.cancel())},[Ne]),(0,te.useEffect)(()=>{me.uploading&&Ve.map(tt=>xe(void 0,null,function*(){var rt;if((!tt.status||tt.status==="error")&&!Ne){tt.status="uploading",tt.file.status="uploading";const et=yield Ue(tt,{login:(rt=Le==null?void 0:Le.userInfo)==null?void 0:rt.login,container_type:me.container_type,container_id:me.container_id,description:me.description,realFileName:me.realFileName})}}))},[me.uploading]),te.createElement(ke,ye(he({},_e),{height:me.height,className:me.className}),te.createElement("p",{className:"ant-upload-hint"},me.text||"\u62D6\u62FD\u6587\u4EF6\u6216\u8005\u70B9\u51FB\u4E0A\u4F20"))};Yt.ZP=(0,ie.connect)(({loading:Oe,globalSetting:Pe,user:Le})=>({globalSetting:Pe,loading:Oe.models.competitions,user:Le}))(Ee)},56383:function(In,Yt,Te){"use strict";Te.d(Yt,{h:function(){return xe}});var te=Te(59301),Ot=Te(82326),y=Te(28284),je=Te(7939),be=Te(89780),z=Te.n(be),E=Te(3706),ie=Te(96772),oe=Object.defineProperty,ee=Object.defineProperties,ce=Object.getOwnPropertyDescriptors,x=Object.getOwnPropertySymbols,ae=Object.prototype.hasOwnProperty,re=Object.prototype.propertyIsEnumerable,se=(ke,De,Be)=>De in ke?oe(ke,De,{enumerable:!0,configurable:!0,writable:!0,value:Be}):ke[De]=Be,ue=(ke,De)=>{for(var Be in De||(De={}))ae.call(De,Be)&&se(ke,Be,De[Be]);if(x)for(var Be of x(De))re.call(De,Be)&&se(ke,Be,De[Be]);return ke},pe=(ke,De)=>ee(ke,ce(De));const he=Ot.default.Option,ye={labelCol:{span:4},wrapperCol:{span:20}},ge={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"]};Yt.Z=({callback:ke,onCancel:De})=>{const[Be,Ae]=(0,te.useState)("python");function Se(Oe){Ae(ge[Oe][1])}function Ee(Oe){ke(Oe)}return te.createElement(y.default,pe(ue({},ye),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:Ee,style:{width:500}}),te.createElement(y.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},te.createElement(Ot.default,{getPopupContainer:Oe=>Oe.parentNode,onChange:Se},Object.keys(ge).map(Oe=>te.createElement(he,{key:Oe,value:Oe},ge[Oe][0])))),te.createElement(y.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},te.createElement(xe,{mode:Be})),te.createElement("div",{className:"flex-container flex-end"},te.createElement(je.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),te.createElement(je.ZP,{type:"ghost",onClick:De},"\u53D6\u6D88")))};function xe({value:ke,onChange:De,mode:Be,options:Ae={}}){const Se=(0,te.useRef)(),[Ee,Oe]=(0,te.useState)();return(0,te.useEffect)(()=>{if(Ee){let Pe=function(Le){const Ne=Le.getValue();De&&De(Ne)};return Ee.on("change",Pe),()=>{Ee.off("change",Pe)}}},[Ee,De]),(0,te.useEffect)(()=>{Ee&&Ee.setOption("mode",Be)},[Ee,Be]),(0,te.useEffect)(()=>{Ee&&(ke!==Ee.getValue()||ke==="")&&setTimeout(()=>{Ee.setValue(ke||"")},300)},[Ee,ke]),(0,te.useEffect)(()=>{if(Se.current&&!Ee){const Pe=z().fromTextArea(Se.current,ue({mode:Be,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},Ae));Oe(Pe)}},[Se.current,Ee]),te.createElement("div",{className:"my-codemirror-container"},te.createElement("textarea",{ref:Se}))}},32862:function(In,Yt,Te){"use strict";Te.d(Yt,{Z:function(){return Wt}});var te=Te(59301),Ot=Te(63823),y=Te(89780),je=Te.n(y),be=Te(76374),z=Te(3706),E=Te(6313),ie=Te(25717),oe=Te(99498),ee=Te(25419),ce=Te(67549),x=Te(56375),ae=({value:Ht="",className:hn,showTextOnly:cn,showLines:mn,style:Bn={}})=>{const Pn=(0,te.useMemo)(()=>"",[Ht]);return te.createElement(te.Fragment,null,te.createElement("div",{dangerouslySetInnerHTML:{__html:Pn}}))},re=Object.defineProperty,se=Object.defineProperties,ue=Object.getOwnPropertyDescriptors,pe=Object.getOwnPropertySymbols,he=Object.prototype.hasOwnProperty,ye=Object.prototype.propertyIsEnumerable,ge=(Ht,hn,cn)=>hn in Ht?re(Ht,hn,{enumerable:!0,configurable:!0,writable:!0,value:cn}):Ht[hn]=cn,xe=(Ht,hn)=>{for(var cn in hn||(hn={}))he.call(hn,cn)&&ge(Ht,cn,hn[cn]);if(pe)for(var cn of pe(hn))ye.call(hn,cn)&&ge(Ht,cn,hn[cn]);return Ht},ke=(Ht,hn)=>se(Ht,ue(hn));let De=[{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 Be({onActionCallback:Ht,title:hn,icon:cn,actionName:mn,className:Bn="",children:Pn}){function gn(){Ht(mn)}return te.createElement("a",{title:hn,className:Bn,onClick:gn},te.createElement("i",{className:`${cn}`}),Pn)}var Ae=({watch:Ht,showNullButton:hn,showNullProgramButton:cn,onActionCallback:mn,fullScreen:Bn,insertTemp:Pn,hidetoolBar:gn,extraUse:Ln})=>{const Kn=[...De,{title:`${Ht?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${Ht?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return te.createElement("ul",{className:"markdown-toolbar-container"},!gn&&Kn.map((sr,nr)=>te.createElement("li",{key:nr},sr.actionName?te.createElement(Be,ke(xe({},sr),{onActionCallback:mn})):te.createElement("span",{className:"v-line"}))),hn?te.createElement("li",null,te.createElement(Be,{icon:"iconfont icon-tianjia5 insert-blank",className:"btn-null ml5",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:mn},te.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u65B0\u589E\u586B\u7A7A\u9879"))):null,cn?te.createElement(te.Fragment,null,te.createElement("li",null,te.createElement(Be,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:mn},te.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u5355\u884C\u586B\u7A7A\u9879"))),te.createElement("li",null,te.createElement(Be,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:mn},te.createElement("span",{className:"fill-tip"},"\u6DFB\u52A0\u591A\u884C\u586B\u7A7A\u9879")))):null,Pn&&te.createElement("li",null,te.createElement(Be,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${Pn}`,onActionCallback:mn},te.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),Ln&&te.createElement("li",null,Ln),te.createElement("li",{className:"btn-full-screen"},te.createElement(Be,{icon:`${Bn?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:Bn?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:mn})))},Se=Te(88969),Ee=Te(28284),Oe=Te(37568),Pe=Te(7939),Le=Object.defineProperty,Ne=Object.defineProperties,me=Object.getOwnPropertyDescriptors,Ve=Object.getOwnPropertySymbols,Ze=Object.prototype.hasOwnProperty,We=Object.prototype.propertyIsEnumerable,nt=(Ht,hn,cn)=>hn in Ht?Le(Ht,hn,{enumerable:!0,configurable:!0,writable:!0,value:cn}):Ht[hn]=cn,_e=(Ht,hn)=>{for(var cn in hn||(hn={}))Ze.call(hn,cn)&&nt(Ht,cn,hn[cn]);if(Ve)for(var cn of Ve(hn))We.call(hn,cn)&&nt(Ht,cn,hn[cn]);return Ht},Ue=(Ht,hn)=>Ne(Ht,me(hn));const tt={labelCol:{span:4},wrapperCol:{span:20}};var rt=({callback:Ht,onCancel:hn})=>{function cn(mn){Ht(mn)}return te.createElement(Ee.default,Ue(_e({},tt),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:cn,style:{width:500}}),te.createElement(Ee.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},te.createElement(Oe.default,null)),te.createElement(Ee.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},te.createElement(Oe.default,null)),te.createElement("div",{className:"flex-container flex-end"},te.createElement(Pe.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),te.createElement(Pe.ZP,{type:"ghost",onClick:hn},"\u53D6\u6D88")))},et=Te(56383),Ke=Te(79203),Ye=Te(62957),Xe=Te(77019),ot=Te(78265),Qe=Te(59301),ft=({callback:Ht,onCancel:hn})=>{const cn=document.createElement("canvas"),mn=cn.getContext("2d");cn.width=1e3,cn.height=800,mn.fillStyle="#ffffff",mn.fillRect(0,0,cn.width,cn.height);const Bn=cn.toDataURL("image/png");return Qe.createElement(Ye.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Qe.createElement(Xe.Z,{style:{height:"100vh"}},Qe.createElement(ot.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:Bn,visible:!0,title:String(Date.now())},onOk:Pn=>{Ht({src:Pn.url})},onClose:hn})))},at=Te(36207),qe=Te(5269),Fe=Te(6767),Re={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re",drawerWrap:"drawerWrap___MfDw8"},ne=Te(59301),Me=(0,te.forwardRef)(({onCancel:Ht,editImgId:hn,callback:cn},mn)=>{let Bn=(0,te.useRef)(),Pn=(0,te.useRef)(),gn=(0,te.useRef)(),Ln=(0,te.useRef)(!1);const Kn=(0,te.useRef)(!1);console.log("ref:",mn);const[sr,nr]=(0,te.useState)(0),[ln,rn]=(0,te.useState)("100vh");return(0,te.useEffect)(()=>{nr(1)},[]),(0,te.useImperativeHandle)(mn,()=>({setHeight:rn})),ne.createElement("div",{ref:Kn,className:"body-overflow-initial"},ne.createElement(at.Z,{width:"100vw",height:ln,footer:null,closable:!0,placement:"bottom",open:!!sr,destroyOnClose:!0,maskClosable:!1,mask:!1,rootClassName:`zIndex-9999 ${Re.drawerWrap}`,onClose:()=>{window.saveDrawData(Wn=>{cn({src:`/api/attachments/${Wn}`,id:Wn})})},title:ne.createElement(Xe.Z,{align:"middle"},ne.createElement(qe.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),ne.createElement(qe.Z,{onClick:()=>{rn(ln==="60px"?"100vh":"60px")}},ne.createElement("span",{className:"current c-blue",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77")),ne.createElement(qe.Z,{onClick:()=>{window.saveDrawData(Wn=>{if(Wn===null){Fe.ZP.warning({content:"\u5185\u5BB9\u4E3A\u7A7A\uFF0C\u8BF7\u5148\u7ED8\u5236\u6D41\u7A0B\u56FE",key:"saveFlowChart"});return}Fe.ZP.success({content:"\u4FDD\u5B58\u6210\u529F",key:"saveFlowChart",style:{zIndex:999999999}}),cn({src:`/api/attachments/${Wn}`,id:Wn,disabledClose:!0})})}},ne.createElement(Pe.ZP,{type:"primary",className:"ml20"},"\u4FDD\u5B58")))},ne.createElement("iframe",{src:`/drawio/src/main/webapp/?id=${hn||""}&gapi=0&od=0&db=0&gh=0&gl=0&local=0`,width:"100%",height:"100%",frameBorder:"0",ref:Pn})))}),ze=Te(35783),we=Te(47889),ve=Te(4875);const Ie=we.ZP.Group,$e={margin:"0 8px"};var Ge=({callback:Ht,onCancel:hn})=>{function cn(mn){Ht(mn)}return te.createElement(Ee.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:cn},te.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},te.createElement("span",{style:$e},"\u5355\u5143\u683C\u6570\uFF1A"),te.createElement("span",{style:$e},"\u884C\u6570"),te.createElement(Ee.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},te.createElement(ve.Z,null)),te.createElement("span",{style:$e},"\u5217\u6570"),te.createElement(Ee.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},te.createElement(ve.Z,null))),te.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},te.createElement("span",{style:$e},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),te.createElement(Ee.default.Item,{name:"align"},te.createElement(Ie,null,te.createElement(we.ZP,{value:"default"},te.createElement("i",{className:"fa fa-align-justify"})),te.createElement(we.ZP,{value:"left"},te.createElement("i",{className:"fa fa-align-left"})),te.createElement(we.ZP,{value:"center"},te.createElement("i",{className:"fa fa-align-center"})),te.createElement(we.ZP,{value:"right"},te.createElement("i",{className:"fa fa-align-right"}))))),te.createElement("div",{className:"flex-container flex-end"},te.createElement(Pe.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),te.createElement(Pe.ZP,{type:"ghost",onClick:hn},"\u53D6\u6D88")))},Je=Te(58755),ut=Te(45936),lt=Te.n(ut),ct=(0,te.forwardRef)(({use3d:Ht,width:hn,height:cn,callback:mn,showSaveButton:Bn},Pn)=>{const gn=(0,te.useRef)(),Ln=(0,te.useRef)(),[Kn,sr]=(0,te.useState)(!1),nr=(0,te.useRef)({id:gn,appName:"graphing",width:hn||1e3,height:cn||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,te.useEffect)(()=>{Ln.current=new(lt())(nr.current,!0),window.onload=function(){Ln.current.inject("applet_container")}},[]);const ln=()=>{var rn=window.ggbApplet.getPNGBase64(1,!0,72);return mn&&mn(rn),rn};return(0,te.useEffect)(()=>{nr.current.appName=Kn?"3D":"graphing",Ln.current.inject("applet_container")},[Kn]),(0,te.useEffect)(()=>{sr(Ht)},[Ht]),(0,te.useImperativeHandle)(Pn,()=>({getImgData:ln})),te.createElement(te.Fragment,null,te.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:gn}),te.createElement(Xe.Z,{align:"middle"},te.createElement(qe.Z,{flex:1},te.createElement(Je.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:Kn,onChange:rn=>sr(rn)})),te.createElement(qe.Z,null,te.createElement(Pe.ZP,{size:"large",onClick:ln,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),st=Te(9043);const At="link",mt="upload-image",Dt="add-flowchart",jt="draw-image",Et="add-flowchart",kt="code-block",Nt="add-table",yt="------------",Pt={default:yt,left:`:${yt}`,center:`:${yt}:`,right:`${yt}:`};var Kt=Te(2408),nn=Te(68911);function xt(){}let Ct=0;const zt=1e4,en="\u2581",un="@\u2581\u2581@",Cn="@\u2581@",Nn=` **\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`,_n=["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 yn(Ht){return/^\d+$/.test(Ht)?`${Ht}px`:Ht}const pn=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",on={[pn+"-B"]:"bold",[pn+"-I"]:"italic"},Vt={[At]:"\u6DFB\u52A0\u94FE\u63A5",[kt]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[mt]:"\u6DFB\u52A0\u56FE\u7247",[jt]:"\u6DFB\u52A0\u753B\u56FE",[Dt]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Nt]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Wt=({defaultValue:Ht="",onChange:hn,width:cn="100%",height:mn=400,miniToolbar:Bn=!1,isFocus:Pn=!1,watch:gn,insertTemp:Ln,mode:Kn="markdown",id:sr="markdown-editor-id",showResizeBar:nr=!1,noStorage:ln=!1,showNullButton:rn=!1,showNullProgramButton:Wn=!1,hidetoolBar:Zn=!1,fullScreen:Mt=!1,onBlur:Gt,onCMBeforeChange:St,onFullScreen:Rt,className:Tt="",disablePaste:_t=!1,disabled:bt=!1,disabledFill:Ut=!1,placeholder:Lt="",values:qt="",extraUse:Ft,onAddBlank:$t})=>{const[Zt,Xt]=(0,te.useState)(null),[Tn,On]=(0,te.useState)(Ht),[Mn,rr]=(0,te.useState)(gn),[lr,hr]=(0,te.useState)(Mt),[er,Qn]=(0,te.useState)(""),[Fn,pr]=(0,te.useState)(0),[wr,Sr]=(0,te.useState)(mn),[Cr,Jn]=(0,te.useState)(!1),[yr,An]=(0,te.useState)(0),[xn,tr]=(0,te.useState)(0),br=(0,te.useRef)(),Er=(0,te.useRef)(),Hr=(0,te.useRef)(),kr=(0,te.useRef)(),Ur=(0,te.useRef)(),Tr=(0,te.useRef)(),ei=(0,Ot.useDispatch)();(0,te.useEffect)(()=>{const Gn=window.scrollY||window.pageYOffset;On(qt),Zt==null||Zt.setValue(qt),window.scrollTo(0,Gn)},[qt]),(0,te.useEffect)(()=>{Rt==null||Rt(lr)},[lr]),(0,te.useEffect)(()=>{if(br.current){let Gn=function(qn,or){var ti;if(_t){or.preventDefault();return}const Ti=or.clipboardData;if(Ti){const mi=Ti.types.toString(),ki=Ti.items;if(mi==="Files"||Ti.types.indexOf("Files")>-1){if(or.preventDefault(),Kn=="stex")return;try{let Oi=ki[1];((ti=ki[0])==null?void 0:ti.kind)==="file"&&(Oi=ki[0]);const Ii=Oi.getAsFile(),_i=Ii.name.split(".").pop();(0,Ke.I)(Ii,Ni=>{var Ri,so,xo;Ni.id?((Ri=Ii==null?void 0:Ii.type)==null?void 0:Ri.indexOf("image"))>-1?zn.replaceSelection(``):((so=Ii==null?void 0:Ii.type)==null?void 0:so.indexOf("video"))>-1?zn.replaceSelection(``):((xo=Ii==null?void 0:Ii.type)==null?void 0:xo.indexOf("pdf"))>-1?zn.replaceSelection(`${Ii.name}`):_n.includes(_i)?zn.replaceSelection(`${Ii.name}`):zn.replaceSelection(`[${Ii.name}](/api/attachments/${Ni.id}?type=${Ni.content_type})`):(Ni==null?void 0:Ni.status)===401&&(document.location.href="/user/login")})}catch(Oi){Fe.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const zn=je().fromTextArea(br.current,{mode:Kn,lineNumbers:!Bn,lineWrapping:!0,value:Ht,autoCloseTags:!0,autoCloseBrackets:!0});return zn.on("keyup",function(qn,or){or.keyCode===8&&(qn.getValue()==""?zn.setOption("placeholder",Lt):zn.setOption("placeholder",null))}),zn.on("keydown",function(qn,or){if(or.keyCode===8){var ti=wi(qn);ti&&or.preventDefault()}}),Pn&&zn.focus(),zn.on("paste",Gn),bt&&zn.on("beforeChange",function(qn,or){(or.origin==="paste"||or.origin==="+input")&&or.cancel()}),Xt(zn),()=>{zn.off("paste",Gn)}}},[]);const si=(0,te.useCallback)(()=>{if(Er.current)try{}catch(Gn){console.log(Gn,"---- to set md editor body height")}},[wr,Er,lr]);(0,te.useEffect)(()=>{function Gn(){let zn=new be.Z(qn=>{for(let or of qn)(or.target.offsetHeight>0||or.target.offsetWidth>0)&&(si(),Zt.setSize("100%","100%"),Zt.refresh())});return zn.observe(br.current.parentElement),zn}if(Zt){const zn=Gn();return()=>{var qn,or;(qn=br.current)!=null&&qn.parentElement&&zn.unobserve((or=br.current)==null?void 0:or.parentElement)}}},[Zt,si]),(0,te.useEffect)(()=>{if(Zt){let Gn=[];for(const[zn,qn]of Object.entries(on)){let or={[zn]:()=>{Kr(qn)}};Gn.push(or),Zt.addKeyMap(or)}return()=>{for(let zn of Gn)Zt.removeKeyMap(zn)}}},[Zt]),(0,te.useEffect)(()=>{Mt!==lr&&hr(Mt)},[Mt]),(0,Kt.Z)(()=>{if(!ln&&Fn>0){let Gn=new Date().getTime(),zn=window.sessionStorage.getItem(sr);Gn>=Fn+zt&&(!zn||zn!==Tn)&&(window.sessionStorage.setItem(sr,Tn),Jn(!0))}},zt),(0,te.useEffect)(()=>{rr(gn)},[Zt,gn]),(0,te.useEffect)(()=>{Zt&&Pn&&Zt.focus()},[Zt,Pn]),(0,te.useEffect)(()=>{if(Mn&&Zt){let Gn=function(qn){let or=qn.target;if(kr.current){let ti=or.scrollTop/or.scrollHeight;kr.current.scrollTop=kr.current.scrollHeight*ti}};const zn=Zt.getScrollerElement();return zn.addEventListener("scroll",Gn),()=>{zn.removeEventListener("scroll",Gn)}}},[Zt,Mn]),(0,te.useEffect)(()=>{if(Zt&&St){let Gn=function(zn,qn){St(zn,qn)};return Zt.on("beforeChange",Gn),()=>{Zt.off("beforeChange",Gn)}}},[Zt,St]),(0,te.useEffect)(()=>{if(Zt&&Gt){let Gn=function(){Gt(Zt.getValue())};return Zt.on("blur",Gn),()=>{Zt.off("blur",Gn)}}},[Zt,Gt]);function wi(Gn,zn){var qn=Gn.getDoc(),or=qn.getCursor(),ti=qn.getLine(or.line),Ti=ti.charAt(or.ch-1),mi=ti.lastIndexOf("@\u2581@",or.ch),ki=ti.lastIndexOf("@\u2581\u2581@",or.ch),Oi=mi>ki?mi:ki,Ii=mi>ki?3:4;if(un.indexOf(Ti)===-1)return null;if(console.log("change1:",zn,Gn,ti,or,Oi,mi,ki,Ti),Oi>=0&&or.ch-Oi<5){var _i=Oi+Ii;return qn.replaceRange("",{line:or.line,ch:Oi},{line:or.line,ch:_i}),{line:or.line,ch:_i}}return null}(0,te.useEffect)(()=>{if(Zt){let Gn=function(zn,qn){const or=zn.getValue();On(or),pr(new Date().getTime()),zn.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),hn&&(Wn?hn(or,Un(or)):hn(or))};return Zt.on("change",Gn),()=>{Zt.off("change",Gn)}}},[Zt,hn]),(0,te.useEffect)(()=>{if(Zt)if(Ht==null)Zt.setValue(""),On("");else{const Gn=window.scrollY||window.pageYOffset;Ht!==Zt.getValue()&&(Zt.setValue(Ht),On(Ht),Zt.setCursor(bt?1:Zt.lineCount(),0),window.scrollTo(0,Gn))}},[Zt,Ht]);const Kr=(0,te.useCallback)(Gn=>{const zn=Zt.getCursor(),qn=Zt.getSelection();let or=qn.split(` `);switch(Gn){case"bold":return Zt.replaceSelection("**"+qn+"**"),qn===""&&Zt.setCursor(zn.line,zn.ch+2),Zt.focus();case"italic":return Zt.replaceSelection("*"+qn+"*"),qn===""&&Zt.setCursor(zn.line,zn.ch+1),Zt.focus();case"code":return Zt.replaceSelection("`"+qn+"`"),qn===""&&Zt.setCursor(zn.line,zn.ch+1),Zt.focus();case"inline-latex":return(0,nn.Ye)(ei)?void 0:(Qn("inline-latex"),Zt.focus());case"latex":return Zt.replaceSelection("```latex\n"+qn+"\n```"),Zt.setCursor(zn.line+1,qn.length+1),Zt.focus();case"line-break":return Zt.replaceSelection(`
`),Zt.focus();case"list-ul":return qn===""?Zt.replaceSelection("- "+qn):Zt.replaceSelection(or.map(ti=>ti===""?"":`- ${ti}`).join(` `)),Zt.focus();case"list-ol":return qn===""?Zt.replaceSelection("1. "+qn):Zt.replaceSelection(or.map((ti,Ti)=>ti===""?"":`${Ti+1}. ${ti}`).join(` `)),Zt.focus();case"add-null-ch":$t==null||$t();return;case"add-signal":return qn===""&&Zt.setCursor(zn.line,zn.ch),Zt.replaceSelection(Cn),Zt.focus();case"add-multiple":return qn===""&&Zt.setCursor(zn.line,zn.ch),Zt.replaceSelection(un),Zt.focus();case"inster-template-1":return qn===""&&Zt.setCursor(zn.line,zn.ch),Zt.replaceSelection(Nn),Zt.focus();case"eraser":return Zt.setValue(""),Zt.focus();case"trigger-watch":return rr(!Mn),Zt.focus();case"trigger-full-screen":return hr(!lr),Zt.focus();case At:Qn(At);return;case kt:Qn(kt);return;case mt:Qn(mt);return;case jt:Qn(jt);return;case"maths-latex":if((0,nn.Ye)(ei))return;Qn("maths-latex");return;case Dt:Ur.current="",sessionStorage.removeItem("file_id"),Qn(Dt);return;case Nt:Qn(Nt);return;default:throw new Error}},[Zt,Mn,lr]),gi=(0,te.useCallback)((Gn,zn)=>{var qn,or,ti,Ti,mi,ki;Gn!=null&&Gn.disabledClose||Qn("");const{src:Oi,alt:Ii,id:_i}=Gn||{};switch(er){case At:const{title:Po,link:jo}=Gn;return Zt.replaceSelection(`[${Po}](${jo})`),Zt.focus();case kt:const{language:wo,content:ni}=Gn;return Zt.replaceSelection(["```"+wo,ni,"```"].join(` `)),Zt.focus();case"maths-latex":for(var Ni=atob(Gn),Ri=new Uint8Array(Ni.length),so=0;so{yi.id?Zt.replaceSelection(`![,](/api/attachments/${yi.id}?type=${yi.content_type})`):(yi==null?void 0:yi.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":if((0,nn.Ye)(ei))return;Zt.replaceSelection("`$$"+Gn+"$$`");break;case Et:if(!_i)return;Zt.getValue().indexOf(Oi)===-1?Zt.replaceSelection(`
${Ii||
`):document.getElementById(_i).src=ze.Z.API_SERVER+Oi+"?t="+Date.now();break;case mt:case jt:const Vr=zn,Qi=(ti=(or=(qn=Vr==null?void 0:Vr.name)==null?void 0:qn.split("."))==null?void 0:or.pop)==null?void 0:ti.call(or);return((Ti=Vr==null?void 0:Vr.type)==null?void 0:Ti.indexOf("image"))>-1||!(Vr!=null&&Vr.type)?Vr!=null&&Vr.align||Vr!=null&&Vr.width?Zt.replaceSelection(`

${Ii||

`):Zt.replaceSelection(`${Ii||`):((mi=Vr==null?void 0:Vr.type)==null?void 0:mi.indexOf("video"))>-1?Zt.replaceSelection(``):((ki=Vr==null?void 0:Vr.type)==null?void 0:ki.indexOf("pdf"))>-1?Zt.replaceSelection(`${Vr.name}`):_n.includes(Qi)?Zt.replaceSelection(`${Vr.name}`):Zt.replaceSelection(`[${Vr.name}](${Oi})`),Zt.focus();case Nt:const{row:qi,col:li,align:Zi}=Gn;let Yi=` `;for(let yi=0;yi{switch(er){case At:return te.createElement(rt,{callback:gi,onCancel:bi});case kt:return te.createElement(et.Z,{callback:gi,onCancel:bi});case mt:return te.createElement(Ke.Z,{callback:gi,onCancel:bi});case Dt:return te.createElement(Me,{editImgId:Ur.current,callback:gi,onCancel:bi});case Nt:return te.createElement(Ge,{callback:gi,onCancel:bi});case"maths-latex":return te.createElement(ct,{showSaveButton:!0,callback:gi});case"inline-latex":return te.createElement(st.Z,{showSaveButton:!0,callback:gi});default:return null}},[er]);function bi(){Qn("")}(0,te.useEffect)(()=>{if(Hr.current){let Gn=function(mi){ti=!0,Ti=mi.pageY},zn=function(){ti=!1},qn=function(mi){if(ti){let ki=mi.pageY-Ti;ki<0&&(ki=0),ki>300&&(ki=300);let Oi=mn+ki+"px";Sr(Oi)}},or=Hr.current,ti=!1,Ti=0;return or.addEventListener("mousedown",Gn),document.addEventListener("mousemove",qn),document.addEventListener("mouseup",zn),()=>{or.removeEventListener("mousedown",Gn),document.removeEventListener("mousemove",qn),document.removeEventListener("mouseup",zn)}}},[Zt,Hr]),(0,te.useEffect)(()=>{Sr(mn)},[mn]);const Or=yn(cn),Pr=yn(wr),ur={width:Or,height:Pr},Dn=(0,te.useMemo)(()=>{if(Fn){let Gn=new Date(Fn),zn=Gn.getHours(),qn=Gn.getMinutes(),or=Gn.getSeconds();return zn=zn<10?"0"+zn:zn,qn=qn<10?"0"+qn:qn,or=or<10?"0"+or:or,`${zn}:${qn}:${or}`}return 0},[Fn]),Un=Gn=>{const zn=[];if(Wn){let qn=-1;Gn=Gn.replace(/(@▁▁@|@▁@)/g,function(or,ti,Ti){zn.push({multiLine:or!==Cn})})}return zn};function Vn(){window.sessionStorage.removeItem(sr),Jn(!1),pr(0)}function $n(){Jn(!1),pr(0),Zt.setValue(window.sessionStorage.getItem(sr))}(0,te.useEffect)(()=>{Vt[er]&&er!==jt&&er!==Dt&&setTimeout(()=>{const Gn=document.getElementsByClassName("markdown-popup-form")[0],zn=window.innerWidth/2-Gn.offsetWidth/2,qn=window.innerHeight/2-Gn.offsetHeight/2;An(zn),tr(qn)},0)},[er]);const cr=Gn=>{Gn.preventDefault();const zn=Gn.clientX-yr,qn=Gn.clientY-xn;document.body.onmousemove=or=>{let ti=or.clientX-zn,Ti=or.clientY-qn;const mi=document.getElementsByClassName("markdown-popup-form")[0],ki=window.innerWidth-mi.offsetWidth,Oi=window.innerHeight-mi.offsetHeight;ti=Math.max(0,Math.min(ti,ki)),Ti=Math.max(0,Math.min(Ti,Oi)),jr(or.clientX,or.clientY,zn,qn)&&(An(ti),tr(Ti))},document.body.onmouseup=function(){document.body.onmousemove=null}},jr=(Gn,zn,qn,or)=>{const ti=document.body.clientHeight,Ti=document.body.clientWidth;return Gn<20&&qn>Gn||Gn>Ti-20&&qnzn||zn>ti-20&&or{var zn;Ur.current=Gn,(zn=Tr.current)==null||zn.setHeight("100vh"),setTimeout(()=>{Qn("add-flowchart")},150)}})):null))),nr?te.createElement("a",{ref:Hr,className:"editor-resize"}):null,er===jt&&te.createElement(ft,{callback:gi,onCancel:bi}),er===Dt&&te.createElement(Me,{ref:Tr,editImgId:Ur.current,callback:gi,onCancel:bi}),te.createElement(Se.Z,null,Vt[er]&&er!==jt&&er!==Dt?te.createElement(Ye.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:yr,top:xn},title:te.createElement("div",{style:{cursor:"move"},onMouseDown:cr},Vt[er]),open:!0,onCancel:bi,footer:null,destroyOnClose:!0,width:er===Dt?"1200px":null,height:er===Dt?"80vh":null,className:"markdown-popup-form"},di):null))}},79203:function(In,Yt,Te){"use strict";Te.d(Yt,{Z:function(){return De},I:function(){return Ae}});var te=Te(28284),Ot=Te(6767),y=Te(37568),je=Te(44104),be=Te(4875),z=Te(47889),E=Te(7939),ie=Te(8240),oe=Te(59301),ee=Te(59301),ce=Object.defineProperty,x=Object.defineProperties,ae=Object.getOwnPropertyDescriptors,re=Object.getOwnPropertySymbols,se=Object.prototype.hasOwnProperty,ue=Object.prototype.propertyIsEnumerable,pe=(Se,Ee,Oe)=>Ee in Se?ce(Se,Ee,{enumerable:!0,configurable:!0,writable:!0,value:Oe}):Se[Ee]=Oe,he=(Se,Ee)=>{for(var Oe in Ee||(Ee={}))se.call(Ee,Oe)&&pe(Se,Oe,Ee[Oe]);if(re)for(var Oe of re(Ee))ue.call(Ee,Oe)&&pe(Se,Oe,Ee[Oe]);return Se},ye=(Se,Ee)=>x(Se,ae(Ee));const{useForm:ge}=te.default,xe={width:280,marginRight:10},ke={labelCol:{span:5},wrapperCol:{span:19}};var De=({callback:Se,onCancel:Ee})=>{const[Oe]=ge();let Pe=(0,oe.useRef)();function Le(Ve){Pe.current.width=Oe.getFieldValue("width"),Pe.current.align=Oe.getFieldValue("align"),Se(Ve,Pe.current)}function Ne(Ve,Ze){if(Ve.status===-1){Ot.ZP.error(Ve.message);return}Oe.setFieldsValue({src:`/api/attachments/${Ve.id}`,type:Ze.type})}function me(Ve){let Ze=Ve.target.files[0];Pe.current=Ze,Ae(Ze,Ne)}return ee.createElement(te.default,ye(he({form:Oe},ke),{className:"upload-image-panel",onFinish:Le,style:{width:470,overflow:"hidden"}}),ee.createElement(te.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},ee.createElement("div",{className:"flex-container"},ee.createElement(te.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},ee.createElement(y.default,{style:xe})),ee.createElement(Be,{onFileChange:me}))),ee.createElement(te.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},ee.createElement(y.default,{style:{width:264}})),ee.createElement(te.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},ee.createElement(je.Z,null,ee.createElement(te.default.Item,{name:"width",style:{margin:0}},ee.createElement(be.Z,{style:{width:264}})),ee.createElement("span",{className:"ml8"},"%"))),ee.createElement(te.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},ee.createElement(z.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"}]})),ee.createElement("aside",null,ee.createElement(te.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},ee.createElement(E.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ee.createElement(E.ZP,{type:"default",onClick:Ee},"\u53D6\u6D88"))))};function Be({onFileChange:Se}){return ee.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",ee.createElement("input",{type:"file",onChange:Se}))}function Ae(Se,Ee){if(!Se)throw new String("\u6CA1\u6709\u6587\u4EF6");let Oe=new FormData;Oe.append("editormd-image-file",Se),Oe.append("file_param_name","editormd-image-file"),Oe.append("byxhr","true");var Pe=new window.XMLHttpRequest;Pe.withCredentials=!0,Pe.addEventListener("load",function(Le){Ee(JSON.parse(Le.target.responseText),Se)},!1),Pe.addEventListener("error",function(Le){console.error(Le)},!1),Pe.open("POST",`${ie.KI}/api/attachments.json`),Pe.send(Oe)}},88969:function(In,Yt,Te){"use strict";Te.d(Yt,{Z:function(){return y}});var te=Te(59301),Ot=Te(4676);class y extends te.Component{constructor(be){super(be);const z=window.document;this.node=z.createElement("div"),z.body.appendChild(this.node)}render(){const{children:be}=this.props;return(0,Ot.createPortal)(be,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},94871:function(In,Yt,Te){"use strict";Te.d(Yt,{SV:function(){return ft},ZP:function(){return Qe}});var te=Te(59301),Ot=Te(76374);const y={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"]},je={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"]},be={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 ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)},{label:"include ",content:["#include "].join(` `)}]},z={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(` `)}]},E={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 ie=Te(53184),oe=Te.n(ie),ee=(at,qe,Fe)=>new Promise((Re,ne)=>{var fe=we=>{try{ze(Fe.next(we))}catch(ve){ne(ve)}},Me=we=>{try{ze(Fe.throw(we))}catch(ve){ne(ve)}},ze=we=>we.done?Re(we.value):Promise.resolve(we.value).then(fe,Me);ze((Fe=Fe.apply(at,qe)).next())});const ce={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"]}},x=(at,qe,Fe,Re)=>{const ne=qe.getValueInRange({startLineNumber:1,startColumn:1,endLineNumber:Fe.lineNumber,endColumn:Fe.column});return Array.from(new Set(ne.match(/\b\w{2,}\b/g)||[])).map(Me=>({label:Me,kind:at.languages.CompletionItemKind.Text,insertText:Me,range:Re}))},ae=(at,qe,Fe,Re)=>{at.languages.registerCompletionItemProvider(qe,{provideCompletionItems(ne,fe){const Me=ne.getWordUntilPosition(fe),ze={startLineNumber:fe.lineNumber,endLineNumber:fe.lineNumber,startColumn:Me.startColumn,endColumn:Me.endColumn},we=ne.getLineContent(fe.lineNumber).substring(Me.startColumn-2,Me.endColumn);return{suggestions:[...x(at,ne,fe,ze),...Fe.map(Ie=>({label:Ie,kind:at.languages.CompletionItemKind.Keyword,documentation:Ie,insertText:Ie,insertTextRules:at.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ze})),...Re.map(Ie=>({label:Ie.label,kind:at.languages.CompletionItemKind.Snippet,documentation:Ie.content,insertText:we.startsWith("#")?Ie.content.replace(/#/,""):Ie.content,insertTextRules:at.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:ze}))]}}})};var re=at=>{ce.languages.forEach(qe=>{at.languages.registerDocumentFormattingEditProvider(qe,{provideDocumentFormattingEdits(Fe){return ee(this,null,function*(){const Re=oe()(Fe.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:Fe.getFullModelRange(),text:Re}]})}})}),ae(at,"java",je.keywords,je.quickKey),ae(at,"cpp",be.keywords,be.quickKey),ae(at,"c",y.keywords,[]),ae(at,"python",z.keywords,z.quickKey),ae(at,"scala",E.keywords,E.quickKey)};const se="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var ue=Object.defineProperty,pe=(at,qe,Fe)=>qe in at?ue(at,qe,{enumerable:!0,configurable:!0,writable:!0,value:Fe}):at[qe]=Fe,he=(at,qe,Fe)=>pe(at,typeof qe!="symbol"?qe+"":qe,Fe);const ye=class Hu{constructor(qe,Fe,Re){this.placeholder=qe,this.editor=Fe,this.monaco=Re,Fe.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return Hu.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)}};he(ye,"ID","editor.widget.placeholderHint");var xe=ye,ke=Te(96236),De=Te(6767),Be=Te(25399),Ae=Te(89392),Se=Te(99936),Ee=Te(56102),Oe=Object.defineProperty,Pe=Object.defineProperties,Le=Object.getOwnPropertyDescriptors,Ne=Object.getOwnPropertySymbols,me=Object.prototype.hasOwnProperty,Ve=Object.prototype.propertyIsEnumerable,Ze=(at,qe,Fe)=>qe in at?Oe(at,qe,{enumerable:!0,configurable:!0,writable:!0,value:Fe}):at[qe]=Fe,We=(at,qe)=>{for(var Fe in qe||(qe={}))me.call(qe,Fe)&&Ze(at,Fe,qe[Fe]);if(Ne)for(var Fe of Ne(qe))Ve.call(qe,Fe)&&Ze(at,Fe,qe[Fe]);return at},nt=(at,qe)=>Pe(at,Le(qe)),_e=(at,qe)=>{var Fe={};for(var Re in at)me.call(at,Re)&&qe.indexOf(Re)<0&&(Fe[Re]=at[Re]);if(at!=null&&Ne)for(var Re of Ne(at))qe.indexOf(Re)<0&&Ve.call(at,Re)&&(Fe[Re]=at[Re]);return Fe},Ue=(at,qe,Fe)=>new Promise((Re,ne)=>{var fe=we=>{try{ze(Fe.next(we))}catch(ve){ne(ve)}},Me=we=>{try{ze(Fe.throw(we))}catch(ve){ne(ve)}},ze=we=>we.done?Re(we.value):Promise.resolve(we.value).then(fe,Me);ze((Fe=Fe.apply(at,qe)).next())});function tt(at){return/^\d+$/.test(at)?`${at}px`:at}function rt(){}let et=!1;const Ke={"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 Ye(at=[]){let qe=at;if(Array.isArray(at)){for(let Fe=0;FeUe(void 0,null,function*(){try{yield navigator.clipboard.writeText(" "),console.log("\u5185\u5BB9\u5DF2\u81EA\u52A8\u590D\u5236\u5230\u526A\u8D34\u677F:")}catch(at){console.error("\u81EA\u52A8\u590D\u5236\u5931\u8D25:",at)}});var Qe=at=>{var qe=at,{width:Fe="100%",height:Re="100%",value:ne,language:fe="javascript",style:Me={},options:ze={},overrideServices:we={},theme:ve="vs-dark",onEditBlur:Ie,isCopy:$e=!1,onSave:Ge,autoHeight:Je=!1,forbidCopy:ut=!1,forbidCopyTips:lt,onChange:vt=rt,editorDidMount:ct=rt,onFocus:st=rt,onBreakPoint:At=rt,breakPointValue:mt=[],filename:Dt="educoder.txt",errorLine:jt,errorContent:Et="",highlightLine:kt,openBreakPoint:Nt=!1,placeholder:yt="",showMiniMap:Pt=!0}=qe,Kt=_e(qe,["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 nn=(0,te.useRef)(),xt=(0,te.useRef)({}),Ct=(0,te.useRef)(),zt=(0,te.useRef)(),en=(0,te.useRef)([]),un=(0,te.useRef)(!1),Cn=(0,te.useRef)(),Nn=(0,te.useRef)(),_n=(0,te.useRef)(!1),[yn,Rn]=(0,te.useState)(!1);function pn(){let ln;return nn.current&&(ln=new Ot.Z(rn=>{for(let Wn of rn)(Wn.target.offsetHeight>0||Wn.target.offsetWidth>0)&&xt.current.instance.layout()}),ln.observe(nn.current)),ln}function on(){De.ZP.warning({content:decodeURIComponent(lt||se),key:"monaco-editor-tip"})}const Vt=()=>{let ln=xt.current.instance;if(ne!=null&&ln&&yn){const rn=ln.getModel();rn&&ne!==rn.getValue()&&(et=!0,rn.setValue(ne),ln.layout(),et=!1)}};(0,te.useEffect)(()=>{const ln=Se.Z.subscribe("formatDocument",rn=>{var Wn;let Zn=xt.current.instance;(Wn=Zn==null?void 0:Zn.getAction)==null||Wn.call(Zn,"editor.action.formatDocument").run()});return window.updateMonacoValue=rn=>{vt(rn)},ln},[]),(0,te.useEffect)(()=>{var ln;let rn=xt.current.instance;zt.current&&clearTimeout(zt.current),zt.current=setTimeout(()=>{Vt()},500),ne&&(ne!=null&&ne.length)&&((ln=rn==null?void 0:rn.updateOptions)==null||ln.call(rn,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(ne.split(/\r\n|\r|\n/g).length))+3,5)}))},[ne,yn,xt.current]),(0,te.useEffect)(()=>{if(jt&&xt.current&&xt.current.instance){let rn=xt.current.instance;rn.changeViewZones(function(Wn){var Zn=document.createElement("div");Zn.style.padding="10px 20px",Zn.style.width="calc(100% - 20px)",Zn.className="my-error-line-wrp",Zn.innerHTML=Et,Wn.addZone({afterLineNumber:jt||11,heightInLines:3,domNode:Zn})});var ln={domNode:null,getId:function(){return"my.overlay.widget"},getDomNode:function(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.innerHTML="",this.domNode.style.width="100%",this.domNode.style.padding="20px 100px",this.domNode.style.right="0px",this.domNode.style.top="50px",this.domNode.style.position="relative",this.domNode.style.color="#333"),this.domNode},getPosition:function(){return null}};rn.addOverlayWidget(ln),rn.revealPositionInCenter({lineNumber:20,column:1})}},[jt,xt.current,yn]);const Wt=(ln="",rn)=>{if(!ln||ln.trim()==="")return!0;const Zn=xt.current.instance.getModel().getLineTokens(rn);let Mt=!1;for(let Gt=0;Gt<2;Gt++)Zn.getStandardTokenType(Gt)===1&&(Mt=!0);return Mt};(0,te.useEffect)(()=>{var ln;const rn=(ln=xt.current)==null?void 0:ln.instance;if(rn&&yn&&ut){const Wn=rn.onDidBlurEditorWidget(()=>{_n.current=!1}),Zn=rn.onDidFocusEditorText(()=>{_n.current=!0});return()=>{Wn.dispose(),Zn.dispose()}}},[xt.current,yn,ut]),(0,te.useEffect)(()=>{var ln;if((ln=xt.current)!=null&&ln.instance&&yn&&Nt){let rn=xt.current.instance,Wn=rn.getModel();if(!Wn)return;(()=>{var Ft;let $t=[],Zt=[];const Xt=Wn.getAllDecorations();for(let On of Xt)On.options.className==="highlighted-line"&&($t.push((Ft=On==null?void 0:On.range)==null?void 0:Ft.startLineNumber),Zt.push(On==null?void 0:On.id));if(kt===$t[0])return;Wn.deltaDecorations(Zt,[]);const Tn=Wn.getLineCount();kt&&kt<=Tn&&(rn.deltaDecorations([],[{range:new Xe.Range(kt,1,kt,Wn.getLineMaxColumn(kt)),options:{isWholeLine:!0,className:"highlighted-line"}}]),rn.revealLineInCenter(kt))})();const Mt=(Ft=!1)=>{var $t;let Zt=[],Xt=[];const Tn=Wn.getAllDecorations();for(let On of Tn)On.options.linesDecorationsClassName==="breakpoints-select"&&(Zt.push(($t=On==null?void 0:On.range)==null?void 0:$t.startLineNumber),Xt.push(On==null?void 0:On.id));if(Ft)return{lines:Zt,ids:Xt};At(Zt)},Gt=Ft=>Ue(void 0,null,function*(){let $t={range:new Xe.Range(Ft,1,Ft,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield Wn.deltaDecorations([],[$t]),Mt()}),St=Ft=>Ue(void 0,null,function*(){let $t=[];const Zt=rn.getLineDecorations(Ft);for(let Xt of Zt)Xt.options.linesDecorationsClassName==="breakpoints-select"&&$t.push(Xt.id);yield Wn.deltaDecorations($t,[]),Mt()}),Rt=Ft=>{let $t=rn.getLineDecorations(Ft);for(let Zt of $t)if(Zt.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,Ae.isEqual)(mt,Mt(!0).lines)){Wn.deltaDecorations(Mt(!0).ids,[]);const Ft=mt.map($t=>({range:new Xe.Range($t,1,$t,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));Wn.deltaDecorations([],Ft)}const Tt=rn.onDidChangeModelContent(Ft=>{let $t=rn.getPosition();if($t){let Zt=$t.lineNumber;clearTimeout(Nn.current),Nn.current=setTimeout(()=>{Wt(Wn.getLineContent(Zt),Zt)?St(Zt):Rt(Zt)?(St(Zt),Gt(Zt)):Mt()},100)}}),_t=rn.onMouseDown(Ft=>{var $t,Zt,Xt;if(Ft.target.detail&&((Xt=(Zt=($t=Ft.target)==null?void 0:$t.element)==null?void 0:Zt.className)!=null&&Xt.includes("line-numbers"))){let Tn=Ft.target.position.lineNumber;if(Wt(Wn.getLineContent(Tn),Tn))return;Rt(Tn)?St(Tn):Gt(Tn)}}),bt=Ft=>{let $t={range:new Xe.Range(Ft,1,Ft,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};en.current=rn.deltaDecorations(en.current,[$t])},Ut=()=>{en.current=rn.deltaDecorations(en.current,[])},Lt=rn.onMouseMove(Ft=>{var $t,Zt,Xt;if(Ut(),Ft.target.detail&&((Xt=(Zt=($t=Ft.target)==null?void 0:$t.element)==null?void 0:Zt.className)!=null&&Xt.includes("line-numbers"))){let Tn=Ft.target.position.lineNumber;if(Wt(Wn.getLineContent(Tn),Tn))return;bt(Tn)}}),qt=rn.onMouseLeave(()=>{Ut()});return()=>{Tt.dispose(),_t.dispose(),Lt.dispose(),qt.dispose()}}},[xt.current,yn,mt,kt,Nt,fe]),(0,te.useEffect)(()=>{var ln;(ln=xt.current)!=null&&ln.instance&&Nt&&xt.current.instance.setPosition({lineNumber:0,column:0})},[kt]);function Ht(){let ln=xt.current.instance;if(ln){const rn=ln.getSelection(),Wn=xt.current.pastePos||{},Zn=new Xe.Range(Wn.startLineNumber||rn.endLineNumber,Wn.startColumn||rn.endColumn,Wn.endLineNumber||rn.endLineNumber,Wn.endColumn||rn.endColumn);setTimeout(()=>{ln.executeEdits("",[{range:Zn,text:""}])},300)}}function hn(ln){(window.navigator.platform.match("Mac")?ln.metaKey:ln.ctrlKey)&&ln.keyCode==83&&(ln.preventDefault(),Ge())}const cn=()=>{if(Je&&xt.current.instance){const ln=xt.current.instance.getContentHeight();sr(ln{if(!_n.current)return;const{keyCode:rn,ctrlKey:Wn,metaKey:Zn,target:Mt,type:Gt}=ln;return(Gt==="paste"||(rn===67||rn===86)&&(Zn||Wn))&&Mt.nodeName==="TEXTAREA"&&(on(),ln.preventDefault()),!1};function Pn(ln,rn){var Wn=window.URL||window.webkitURL||window,Zn=new Blob([rn]),Mt=document.createElementNS("http://www.w3.org/1999/xhtml","a");Mt.href=Wn.createObjectURL(Zn),Mt.download=ln,mn(Mt)}(0,te.useEffect)(()=>{cn()},[cn]),(0,te.useEffect)(()=>{nn.current&&!yn&&Promise.all([Te.e(8909),Te.e(1859)]).then(Te.bind(Te,71448)).then(ln=>{try{Xe=ln,xt.current.instance=Xe.editor.create(nn.current,{value:ne,language:Ye(fe),theme:ve,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0,minimap:{enabled:Pt||!1}},we);const rn=xt.current.instance;let Mt=[...ke.BH._menuItems].find(Tt=>Tt[0]._debugName=="EditorContext")[1],Gt=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],St=(Tt,_t)=>{var bt,Ut;let Lt=Tt._first;do _t.includes((Ut=(bt=Lt.element)==null?void 0:bt.command)==null?void 0:Ut.id)&&Tt._remove(Lt);while(Lt=Lt.next)};if(ct(rn,Xe),setTimeout(()=>{cn(),xt.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{Pn(Dt||"educoder.txt",rn.getValue())}})},500),xt.current.subscription=rn.onDidChangeModelContent(Tt=>{un.current?clearTimeout(Cn.current):(cn(),vt(rn.getValue(),Tt)),Cn.current=setTimeout(()=>{un.current=!1},500)}),window.Monaco||re(Xe,Ye(fe)),ut&&(St(Mt,Gt),nn.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",Bn),window.removeEventListener("paste",Bn),window.addEventListener("keydown",Bn),window.addEventListener("paste",Bn)),window.Monaco=Xe,Ie&&rn.onDidBlurEditorWidget(()=>{Ie(rn.getValue())}),st&&rn.onDidFocusEditorText(()=>{ut&&ot(),st(rn.getValue())}),ut){ot();try{rn.onDidPaste(Tt=>{const _t=rn.getSelection(),bt=xt.current.pastePos||{},Ut=new Xe.Range(bt.startLineNumber||_t.endLineNumber,bt.startColumn||_t.endColumn,bt.endLineNumber||_t.endLineNumber,bt.endColumn||_t.endColumn);rn.executeEdits("",[{range:Tt.range,text:""}])})}catch(Tt){}}let Rt=pn();return yt&&typeof yt=="string"&&new xe(yt,rn,Xe),Rn(!0),()=>{const Tt=xt.current.instance;Tt.dispose();const _t=Tt.getModel();_t&&_t.dispose(),xt.current.subscription&&xt.current.subscription.dispose(),Rt.unobserve(nn.current)}}catch(rn){}})},[]),(0,te.useEffect)(()=>{if(xt.current.instance&&yn)return document.addEventListener("keydown",hn,!1),()=>{document.removeEventListener("keydown",hn)}},[Ge,yn]),(0,te.useEffect)(()=>{let ln=xt.current.instance;if(ln&&yn){let rn=Ye(fe);Xe.editor.setModelLanguage(ln.getModel(),rn)}},[fe,yn]),(0,te.useEffect)(()=>{xt.current.instance&&yn&&Xe.editor.setTheme(ve)},[ve,yn]),(0,te.useEffect)(()=>{let ln=xt.current.instance;Ct.current=ze,ln&&yn&&(ln.updateOptions(We({},ze)),setTimeout(()=>{ln.getModel().updateOptions(We({},ze))},200))},[JSON.stringify(ze),yn]),(0,te.useEffect)(()=>{let ln=xt.current.instance;ln&&yn&&ln.layout()},[Fe,Re,yn]);const[gn,Ln]=(0,te.useState)(tt(Fe)),[Kn,sr]=(0,te.useState)(tt(Re)),nr=nt(We({},Me),{width:gn,height:Kn,position:"relative"});return te.createElement("div",{className:"my-monaco-editor",ref:nn,style:nr,onFocus:()=>{ut&&ot()}},$e&&te.createElement(Ee.CopyToClipboard,{text:ne,onCopy:()=>De.ZP.success("\u590D\u5236\u6210\u529F")},te.createElement(Be.Z,{title:"\u590D\u5236\u4EE3\u7801"},te.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},te.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function ft({width:at="100%",height:qe="100%",original:Fe,modified:Re,language:ne,options:fe={}}){const Me=(0,te.useRef)(),[ze,we]=(0,te.useState)(null);function ve(Je){let ut;return Me.current&&(ut=new Ot.Z(lt=>{for(let vt of lt)(vt.target.offsetHeight>0||vt.target.offsetWidth>0)&&Je.layout()}),ut.observe(Me.current)),ut}(0,te.useEffect)(()=>(Me.current&&Promise.all([Te.e(8909),Te.e(9404)]).then(Te.bind(Te,2550)).then(Je=>{Xe=Je;const ut=Xe.editor.createDiffEditor(Me.current,nt(We({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},fe),{wordWrap:!0}));we(ut);let lt=ve(ut);return()=>{ut.dispose();const vt=ut.getModel();vt&&vt.dispose(),lt.unobserve(Me.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,te.useEffect)(()=>{ze&&ze.setModel({original:Xe.editor.createModel(Fe,ne),modified:Xe.editor.createModel(Re,ne)})},[Fe,Re,ne,ze]);const Ie=tt(at),$e=tt(qe),Ge={width:Ie,height:$e};return te.createElement("div",{className:"my-diff-editor",ref:Me,style:Ge})}},64194:function(In,Yt,Te){"use strict";Te.d(Yt,{Z:function(){return ce}});var te={flex_box_center:"flex_box_center___AQ53o",flex_space_between:"flex_space_between___i2aIa",flex_box_vertical_center:"flex_box_vertical_center___sPEKB",flex_box_center_end:"flex_box_center_end___GhSSH",flex_box_column:"flex_box_column___R9_Hb",list:"list___jb2Ay",wrap:"wrap___VsQDr",lockWrap:"lockWrap___g1k1T",li:"li___IxCLC",cover:"cover___Mu8wr",img:"img___IpFLA",movebq:"movebq___mF7wt",bq:"bq___Bil0T",sign:"sign___DXJ4d",name:"name___l7FoJ",e:"e___pXQUG",unit:"unit___wCIFR",tags:"tags___w_Mil",tag1:"tag1___dxm7r",tag2:"tag2___llZkf",wrapisCurrent:"wrapisCurrent___qIfQT",tagsDom:"tagsDom___COQg7",hiddenbq:"hiddenbq___TqlUF"},Ot=Te(29787),y=Te(25399),je=Te(89787),be=Te(92310),z=Te.n(be),E=Te(68911),ie=Te(71347),oe=Te(59301),ce=({className:x,dataSource:ae=[],col:re=4,right:se,bottom:ue=23,precision:pe=0,wrapWidth:he=1200,trackEventItems:ye,loading:ge,onRemove:xe=()=>{},isCurrent:ke=!0,showProgress:De=!1,showAlias:Be=!1,category:Ae,hiddenClick:Se})=>{const Ee=Math.floor((he-(re-1)*se)/re),Oe=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:"/images/tjzx.png",swimg:"/images/sw_tjzx.png",ptclass:"sprite-70",swclass:"sprite-68"},{name:"101\u8BA1\u5212",ptimg:"/images/jh.png",swimg:"/images/sw_jh.png",ptclass:"sprite-60",swclass:"sprite-65"},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:"/images/gjyl.png",swimg:"/images/sw_gjyl.png",ptclass:"sprite-58",swclass:"sprite-63"},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:"/images/sjyl.png",swimg:"/images/sw_sjyl.png",ptclass:"sprite-62",swclass:"sprite-67"},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:"/images/jpkc.png",swimg:"/images/sw_jpkc.png",ptclass:"sprite-61",swclass:"sprite-66"},{name:"\u519B\u961F\u4E00\u6D41",ptimg:"/images/jdyl.png",swimg:"/images/sw_jdyl.png",ptclass:"sprite-59",swclass:"sprite-64"},{name:"\u65B0\u578B\u6559\u6750",ptimg:"/images/xxjc.png",swimg:"/images/sw_xxjc.png",ptclass:"sprite-71",swclass:"sprite-69"}];return oe.createElement(Ot.Z,{spinning:ge},oe.createElement("div",{className:z()(te.list,x)},!!(ae!=null&&ae.length)&&(ae==null?void 0:ae.map((Pe,Le)=>{var Ne,me,Ve,Ze,We,nt,_e,Ue,tt,rt,et,Ke,Ye;const{name:Xe,id:ot,identifier:Qe,featured:ft,school_name:at,image_url:qe,excellent:Fe,is_plan:Re}=Pe;return oe.createElement("div",{key:ot,className:ke&&De?te.wrapisCurrent:te.wrap,style:{width:Ee,marginRight:(1+Le)%re===0?0:se+pe,marginBottom:ue}},oe.createElement("a",{className:te.li,onClick:ne=>{ne.preventDefault(),ne.stopPropagation(),ye&&(0,E.L9)([ye]),(0,E.xg)(`/paths/${Qe}`)}},oe.createElement("div",{className:te.img},oe.createElement("img",{className:te.cover,src:`${qe}`}),(Ne=Pe==null?void 0:Pe.subject_tags)==null?void 0:Ne.map((ne,fe)=>{var Me,ze;if(fe===0){const ve=(Me=Oe.find(Ie=>Ie.name==ne))==null?void 0:Me.swclass;return oe.createElement("span",{className:`sprite ${ve} ${te.sign}`,style:{left:"-4px"}})}const we=(ze=Oe.find(ve=>ve.name==ne))==null?void 0:ze.ptclass;return oe.createElement("span",{className:`sprite ${we} ${te.sign}`,style:{left:`${48+52*(fe-1)+2*fe}px`}})}),oe.createElement("div",{className:te.tagsDom},oe.createElement("div",{className:"flex flex-wrap gap-10px item-center"},(Pe==null?void 0:Pe.excellent)&&oe.createElement("div",{className:te.bq},"\u5F00\u653E\u8BFE\u7A0B"),((me=Pe==null?void 0:Pe.custom_tags)==null?void 0:me.length)>0&&oe.createElement(y.Z,{title:(We=(Ze=Pe==null?void 0:Pe.custom_tags)==null?void 0:Ze[((Ve=Pe==null?void 0:Pe.custom_tags)==null?void 0:Ve.length)-1])==null?void 0:We.tag_name},oe.createElement("div",{className:"px-6px rounded-2px c-white h-16px flex item-center",style:{maxWidth:"62px",background:"#3061D0",border:"0.5px solid #8FAFF8"}},oe.createElement("span",{className:"multi-llipsis1e text-10px"},(Ue=(_e=Pe==null?void 0:Pe.custom_tags)==null?void 0:_e[((nt=Pe==null?void 0:Pe.custom_tags)==null?void 0:nt.length)-1])==null?void 0:Ue.tag_name))))),Ae=="hide"&&(Pe==null?void 0:Pe.studying)&&ke&&oe.createElement("div",{className:`${te.movebq} user-path-items`,onClick:ne=>{ne.stopPropagation(),xe(Pe)}},oe.createElement("i",{className:"iconfont icon-yichu1 font12"}),oe.createElement("span",null,"\u79FB\u9664")),!["collect","payed"].includes(Ae)&&ke&&oe.createElement("div",{className:`${te.hiddenbq} user-path-items`,onClick:ne=>{ne.stopPropagation(),Se(Pe)}},oe.createElement("i",{className:`iconfont ${Ae=="hide"?"icon-chakan2":"icon-yincangtiaojianshezhi"} font12`}),oe.createElement("span",null,Ae=="hide"?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF"))),oe.createElement("div",{className:te.name},oe.createElement(y.Z,{title:Be&&(Pe!=null&&Pe.excellent_alias_name)?oe.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${Xe}`,oe.createElement("br",null),oe.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${Pe==null?void 0:Pe.excellent_alias_name}`)):Xe},oe.createElement("span",{className:te.e},Be&&(Pe==null?void 0:Pe.excellent_alias_name)||Xe))),ke&&De&&((tt=Pe==null?void 0:Pe.progress)==null?void 0:tt.all_score)!=0&&oe.createElement("div",{style:{padding:"0px 10px",color:"#333",marginTop:10}},oe.createElement(je.Z,{strokeColor:"#44d7b6",gap:"small",percent:(((rt=Pe==null?void 0:Pe.progress)==null?void 0:rt.my_score)/((et=Pe==null?void 0:Pe.progress)==null?void 0:et.all_score)*100).toFixed(),showInfo:!1}),"\u5DF2\u5B8C\u6210 ",(Ke=Pe==null?void 0:Pe.progress)==null?void 0:Ke.my_score,"/",(Ye=Pe==null?void 0:Pe.progress)==null?void 0:Ye.all_score),(!ke||!De)&&oe.createElement(y.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${at}`},oe.createElement("div",{className:te.unit},oe.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),at)),(!ke||!De)&&oe.createElement("div",{className:te.tags},oe.createElement("div",null,oe.createElement(y.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},oe.createElement("span",null,oe.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),oe.createElement("span",null,Pe.stages_count))),oe.createElement(y.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},oe.createElement("span",null,oe.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),oe.createElement("span",null,Pe.members_count)))))))})),!ae.length&&oe.createElement(ie.Z,null)))}},29596:function(In,Yt,Te){"use strict";Te.d(Yt,{jL:function(){return je},w9:function(){return Ue},QD:function(){return mt},cQ:function(){return Le.Z},op:function(){return ut},O5:function(){return pn},_b:function(){return yt},t7:function(){return pe},Gi:function(){return Xe},YG:function(){return Ke},qp:function(){return ee},vr:function(){return Et},qE:function(){return ct},Je:function(){return ge},wb:function(){return Pe},cq:function(){return Fe},tp:function(){return ae}});var te=Te(59301),Ot={flex_box_center:"flex_box_center___NeSU8",flex_space_between:"flex_space_between___ImTGl",flex_box_vertical_center:"flex_box_vertical_center___BtRd9",flex_box_center_end:"flex_box_center_end___qcLe3",flex_box_column:"flex_box_column___Ze_3q",banner:"banner___PoUBO",content:"content___XoDjy",btns:"btns___Pb35j"},je=({dataSource:on=[],img:Vt,imgWidth:Wt=346,title:Ht,sunTitle:hn,bannerExtraContent:cn})=>te.createElement("div",{className:Ot.banner},te.createElement("div",{className:Ot.content},te.createElement("aside",null,te.createElement("p",null,te.createElement("b",null,Ht),te.createElement("span",null,hn)),on.length>0&&te.createElement("div",{className:Ot.btns},on.map((mn,Bn)=>te.createElement("div",{key:Bn,onClick:mn.click},mn.name,mn.sign?te.createElement("span",{className:"sprite sprite-33"}):null))),cn),Vt&&te.createElement("img",{style:{marginTop:33,marginRight:38},src:Vt,width:Wt}))),be={flex_box_center:"flex_box_center___hG6RI",flex_space_between:"flex_space_between___ss3Fh",flex_box_vertical_center:"flex_box_vertical_center___K80p9",flex_box_center_end:"flex_box_center_end___qmXX3",flex_box_column:"flex_box_column___GFV8F",row:"row___aXJjm",title:"title___HUKL0",tagsWrap:"tagsWrap___XB2W3",action:"action___VdHb1",bar:"bar___t1kKC",tag:"tag___V7Eft",name:"name___Hk1Ip",num:"num___xQpcH",active:"active___XryTX",tagsBorderWrap:"tagsBorderWrap___OMxjs"},z=Te(92310),E=Te.n(z),ie=Te(89392),ee=({dataSource:on=[],value:Vt,onChange:Wt,onTitleChange:Ht,className:hn,title:cn,titleWidth:mn=41,style:Bn={},fontColor:Pn="#6A7283",showCount:gn})=>{const[Ln,Kn]=(0,te.useState)(1),[sr,nr]=(0,te.useState)(!1),ln=(0,te.useRef)(null),rn=(0,te.useRef)(null);return(0,te.useEffect)(()=>{var Wn;on.length!==0&&(((Wn=ln==null?void 0:ln.current)==null?void 0:Wn.clientHeight)>97?Kn(1):Kn(0)),on.length===0&&Kn(0),nr(!1)},[on]),te.createElement("div",{className:E()(be.row,hn,"fadeIn","animated"),style:Bn},te.createElement("div",{onClick:(0,ie.throttle)(()=>Ht==null?void 0:Ht(),2e3),style:{width:mn,marginTop:sr?12:4},className:`${be.title} ${Ht?"current":""}`},cn),te.createElement("div",{className:sr?`${be.tagsWrap} ${be.tagsBorderWrap}`:be.tagsWrap},te.createElement("div",{className:be.bar,ref:rn,style:Ln>0?{height:Ln===1?97:"auto",overflow:Ln===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},te.createElement("div",{className:be.tag,ref:ln},on==null?void 0:on.map(Wn=>te.createElement("span",{onClick:()=>Wt(Wn.id),key:Wn.id,style:{color:Pn},className:Vt===Wn.id?be.active:""},te.createElement("span",{title:Wn.name,className:be.name},Wn.name),!!gn&&te.createElement("span",{className:be.num},Wn.count))))),!!Ln&&te.createElement(te.Fragment,null,Ln===1?te.createElement("div",{onClick:()=>{var Wn;Kn(2),((Wn=ln==null?void 0:ln.current)==null?void 0:Wn.clientHeight)>245?nr(!0):nr(!1)},className:be.action},"\u5C55\u5F00",te.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):te.createElement("div",{onClick:()=>{rn.current.scrollTop=0,Kn(1),nr(!1)},className:be.action},"\u6536\u8D77",te.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},ce={flex_box_center:"flex_box_center___aK2n3",flex_space_between:"flex_space_between___HX0Oh",flex_box_vertical_center:"flex_box_vertical_center___LJOJr",flex_box_center_end:"flex_box_center_end___SCakF",flex_box_column:"flex_box_column___AYv4m",tabs:"tabs___GTqPV",active:"active___F26E8"},ae=({dataSource:on=[],value:Vt,onChange:Wt,className:Ht,style:hn={}})=>te.createElement("div",{style:hn,className:E()(ce.tabs,Ht)},on.map(cn=>te.createElement("span",{onClick:()=>Wt(cn.id),className:Vt===cn.id?ce.active:"",key:cn.id},cn.name))),re={flex_box_center:"flex_box_center___yX6Oa",flex_space_between:"flex_space_between___t7oqF",flex_box_vertical_center:"flex_box_vertical_center___dEIHy",flex_box_center_end:"flex_box_center_end___taQDF",flex_box_column:"flex_box_column___xY_Lr",input:"input___PW2zI",dropdown:"dropdown___vSy8B",menu:"menu___NiyBu",text:"text___Grueu",b1:"b1___ZKryM",b2:"b2___aKyGa"},se=Te(37568),pe=({dataSource:on=[],value:Vt="",onChange:Wt,onInputChange:Ht=()=>{},className:hn,style:cn={},placeholder:mn,allowClear:Bn=!1})=>{var Pn;const[gn,Ln]=(0,te.useState)(""),[Kn,sr]=(0,te.useState)("");(0,te.useEffect)(()=>{var rn;let Wn=Vt;(rn=JSON.stringify(Vt))!=null&&rn.includes("{")&&(Ln(Vt.id),Wn=Vt.value||"");try{sr(decodeURIComponent(Wn||""))}catch(Zn){sr(decodeURIComponent(Wn||""))}},[Vt]);const nr=()=>{Wt(encodeURIComponent(Kn),gn||null)},ln=rn=>{rn!==gn&&(Ln(rn),Wt(encodeURIComponent(Kn),rn))};return te.createElement("div",{className:E()(re.input,hn),style:cn},!!on.length&&te.createElement("div",{className:re.dropdown},te.createElement("div",{className:re.text},(Pn=on.find(rn=>rn.id===gn))==null?void 0:Pn.name,te.createElement("i",{className:"iconfont icon-zhankai4"}),te.createElement("b",{className:re.b1}),te.createElement("b",{className:re.b2})),te.createElement("div",{className:re.menu},on.map((rn,Wn)=>te.createElement("div",{key:Wn,onClick:()=>ln(rn.id)},rn.name)))),te.createElement(se.default,{onPressEnter:nr,value:Kn,onChange:rn=>{sr(rn.target.value),Ht(encodeURIComponent(rn.target.value),gn||null)},placeholder:mn,variant:"borderless",allowClear:Bn,onClear:()=>Wt("",gn||null)}),te.createElement("i",{onClick:nr,className:"iconfont icon-sousuo9 font14 current"}))},he={flex_box_center:"flex_box_center___tol8o",flex_space_between:"flex_space_between___Z235C",flex_box_vertical_center:"flex_box_vertical_center___Wq1sZ",flex_box_center_end:"flex_box_center_end___LLxom",flex_box_column:"flex_box_column___DbMSN",quickPager:"quickPager___GM30J",disabled:"disabled___Ozc8I"},ge=({value:on,onChange:Vt,className:Wt,total:Ht,pageSize:hn,style:cn={}})=>{const mn=on<2,Bn=on>=Math.ceil(Ht/hn);return Ht<=hn?te.createElement(te.Fragment,null):te.createElement("div",{className:E()(he.quickPager,Wt),style:cn},te.createElement("div",{onClick:()=>{mn||Vt(on-1,"prev")},className:mn?he.disabled:""},"\u4E0A\u4E00\u9875"),te.createElement("div",{onClick:()=>{Bn||Vt(on+1,"next")},className:Bn?he.disabled:""},"\u4E0B\u4E00\u9875"))},xe={flex_box_center:"flex_box_center___FO7TP",flex_space_between:"flex_space_between___LotYx",flex_box_vertical_center:"flex_box_vertical_center___bWdaw",flex_box_center_end:"flex_box_center_end___mVJ1o",flex_box_column:"flex_box_column___M83Mm",list:"list___oOsiS",wrap:"wrap___G6T7F",lockWrap:"lockWrap___Rl79E",li:"li___oZZ7l",cover:"cover___b2bYW",img:"img___IQX7w",sign:"sign___HkT6C",name:"name___SsJx8",e:"e___TMqq0",tags:"tags___bcjyo",rate:"rate___YACg7"},ke=Te(29787),De=Te(25399),Be=Te(63139),Ae=Te(35783),Se=Te(68911),Ee=Te(71347),Pe=({className:on,dataSource:Vt=[],col:Wt=4,right:Ht,bottom:hn=23,precision:cn=0,wrapWidth:mn=1200,trackEventItems:Bn,loading:Pn})=>{const gn=Math.floor((mn-(Wt-1)*Ht)/Wt);return te.createElement(ke.Z,{spinning:Pn},te.createElement("div",{className:E()(xe.list,on)},!!Vt.length&&Vt.map((Ln,Kn)=>{const{name:sr,id:nr,identifier:ln,power:rn,cover_image_id:Wn,pic:Zn}=Ln;return te.createElement("div",{className:xe.wrap,key:nr,style:{width:gn,marginRight:(1+Kn)%Wt===0?0:Ht+cn,marginBottom:hn}},te.createElement("a",{target:"_blank",href:`/shixuns/${ln}/challenges`,className:xe.li,onClick:Mt=>{Mt.preventDefault(),Bn&&(0,Se.L9)([Bn]),rn&&(0,Se.xg)(`/shixuns/${ln}/challenges`)}},te.createElement("div",{className:xe.img},te.createElement("img",{className:xe.cover,src:`${Zn}`}),Ln.is_jupyter&&te.createElement("span",{className:`sprite sprite-43 ${xe.sign}`}),Ln.is_jupyter_lab&&te.createElement("span",{className:`sprite sprite-42 ${xe.sign}`}),Ln.is_unity_3d&&te.createElement("span",{className:`sprite sprite-44 ${xe.sign}`})),te.createElement("div",{className:xe.name},te.createElement(De.Z,{title:sr||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},te.createElement("span",{className:xe.e},sr||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),te.createElement("div",{className:xe.tags},te.createElement(De.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},te.createElement("span",null,te.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),te.createElement("span",null,Ln.challenges_count))),!!Ln.myshixuns_count&&te.createElement(De.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},te.createElement("span",null,te.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),te.createElement("span",null,Ln.myshixuns_count))),te.createElement(De.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},te.createElement("span",null,te.createElement("span",null,Ln.level))),te.createElement("div",{className:xe.rate},te.createElement(Be.Z,{allowHalf:!0,disabled:!0,defaultValue:Ln.score_info}),te.createElement("span",null,"\xA0",Ln.score_info?`${Ln.score_info}\u5206`:"5\u5206")))),!rn&&te.createElement("div",{className:xe.lockWrap},te.createElement("img",{src:`${Ae.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),te.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!Vt.length&&te.createElement(Ee.Z,null)))},Le=Te(64194),Ne={flex_box_center:"flex_box_center___eMcr7",flex_space_between:"flex_space_between___HcNca",flex_box_vertical_center:"flex_box_vertical_center___ZnvVN",flex_box_center_end:"flex_box_center_end___fdgDf",flex_box_column:"flex_box_column___SEKvd",list:"list___L1hmU",hidden:"hidden___NniIi",wrap:"wrap___pKgcW",btnsTop:"btnsTop___Lrm6T",lockWrap:"lockWrap___SMhkK",top:"top___udHSB",sign:"sign___uwRpq",name:"name___Fpf90",img:"img___AMLhL",text:"text___KiTb7",btns:"btns___i6IuZ",bottom:"bottom____k2sh"},me=Te(62957),Ve=Te(96599),Ze="data:image/png;base64,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",We=Te(59301),nt=(on,Vt,Wt)=>new Promise((Ht,hn)=>{var cn=Pn=>{try{Bn(Wt.next(Pn))}catch(gn){hn(gn)}},mn=Pn=>{try{Bn(Wt.throw(Pn))}catch(gn){hn(gn)}},Bn=Pn=>Pn.done?Ht(Pn.value):Promise.resolve(Pn.value).then(cn,mn);Bn((Wt=Wt.apply(on,Vt)).next())}),Ue=({className:on,dataSource:Vt=[],col:Wt=4,right:Ht,bottom:hn=23,precision:cn=0,wrapWidth:mn=1200,trackEventItems:Bn,loading:Pn,category:gn,hiddenClick:Ln,handleVery:Kn=()=>!0,isCurrent:sr})=>{const[nr,ln]=me.default.useModal(),rn=Math.floor((mn-(Wt-1)*Ht)/Wt),Wn=Zn=>nt(void 0,null,function*(){nr.confirm({title:"\u7F6E\u9876",width:500,content:We.createElement("div",null,"\u60A8\u786E\u5B9A\u8981\u5C06",We.createElement("span",{className:"c-blue"},"\u201C",Zn.name,"\u201D"),"\u8BFE\u5802\u7F6E\u9876\u5417\uFF1F"),okText:"\u786E\u8BA4\u7F6E\u9876",centered:!0,cancelText:"\u53D6\u6D88"})});return We.createElement(ke.Z,{spinning:Pn},ln,We.createElement("div",{className:E()(Ne.list,on)},!!Vt.length&&Vt.map((Zn,Mt)=>{const{subject_identifier:Gt,id:St,identifier:Rt,power:Tt}=Zn,_t=Zn.is_public!=0&&Zn.is_public;return We.createElement("div",{className:Ne.wrap,key:St,style:{width:rn,marginRight:(1+Mt)%Wt===0?0:Ht+cn,marginBottom:hn}},Zn.homepage_show&&We.createElement("div",{className:Ne.btnsTop},We.createElement(Ve.default,{color:"red"},"\u7F6E\u9876")),We.createElement("a",{className:Ne.li,onClick:bt=>{bt.preventDefault(),Kn(Zn==null?void 0:Zn.first_category_url)&&(Bn&&(0,Se.L9)([Bn]),(0,Se.xg)(Zn.first_category_url))}},We.createElement("div",{className:Ne.top},We.createElement(De.Z,{title:Zn.name},We.createElement("div",{className:Ne.name},Zn.name)),We.createElement("img",{className:Ne.img,src:Ae.Z.IMG_SERVER+"/images/"+Zn.avatar_url}),We.createElement("div",{className:Ne.text,title:Zn.creator},Zn.creator),Gt&&We.createElement("div",{className:Ne.btns},We.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),We.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),_t&&We.createElement("div",{className:Ne.sign},"\u516C\u5F00"),sr&&We.createElement("div",{className:Ne.hidden,onClick:bt=>{bt.stopPropagation(),Ln(Zn)}},We.createElement("i",{className:`iconfont ${gn=="hide"?"icon-chakan2":"icon-yincangtiaojianshezhi"} font12`}),gn=="hide"?"\u53D6\u6D88\u9690\u85CF":"\u9690\u85CF")),We.createElement("div",{className:Ne.bottom},Zn.visits>0&&We.createElement(De.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},We.createElement("span",null,We.createElement("i",{className:"iconfont icon-liulanyan"}),We.createElement("span",null,Zn.visits))),Zn.course_members_count>0&&We.createElement(De.Z,{title:"\u6210\u5458",placement:"bottom"},We.createElement("span",null,We.createElement("i",{className:"iconfont icon-chengyuan"}),Zn.course_members_count)),Zn.tasks_count>0&&We.createElement(De.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},We.createElement("span",null,We.createElement("i",{className:"iconfont icon-zuoye"}),Zn.tasks_count)),Zn.is_end?We.createElement("div",{style:{color:"#6B758B"}}):We.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!Zn.is_accessible&&We.createElement("div",{className:Ne.lockWrap},We.createElement("img",{src:`${Ae.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),We.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!Vt.length&&We.createElement(Ee.Z,null)))},tt={flex_box_center:"flex_box_center___d27mZ",flex_space_between:"flex_space_between___qfRU9",flex_box_vertical_center:"flex_box_vertical_center___fCRld",flex_box_center_end:"flex_box_center_end___ORMV8",flex_box_column:"flex_box_column___PNKtZ",tabs:"tabs___alpa7",tabsWrap:"tabsWrap___aCQjw",tab:"tab___MKLr4",active:"active___nl_4v"},rt=Te(63823),Ke=({dataSource:on=[],value:Vt,onChange:Wt,className:Ht,style:hn={},tabBarExtraContent:cn})=>te.createElement("div",{className:E()(tt.tabs,Ht),style:hn},te.createElement("div",{className:tt.tabsWrap},on.map((mn,Bn)=>!(mn!=null&&mn.hide)&&te.createElement("aside",{className:tt.tab,onClick:()=>{Wt(mn.id),mn.link&&rt.history.push(mn.link)},key:Bn},te.createElement("div",{className:Vt===mn.id?tt.active:""},mn.name),(mn==null?void 0:mn.resetCount)==null&&(mn==null?void 0:mn.total)!==void 0&&te.createElement("span",null,"\uFF08",mn==null?void 0:mn.total,"\uFF09"),(mn==null?void 0:mn.resetCount)!==void 0&&(mn==null?void 0:mn.total)!==void 0&&te.createElement(De.Z,{title:(mn==null?void 0:mn.tip)!=null?mn==null?void 0:mn.tip:""},te.createElement("span",{style:{color:"#9096A3"}},"\uFF08",te.createElement("span",{style:{color:"#000"}},mn==null?void 0:mn.resetCount),"/",te.createElement("span",null,mn==null?void 0:mn.total),"\uFF09"))))),te.createElement("div",{className:tt.tabBar},cn)),Xe=({className:on,style:Vt={},children:Wt})=>te.createElement("div",{className:E()(on),style:Vt},Wt),ot={flex_box_center:"flex_box_center___e6HxQ",flex_space_between:"flex_space_between___RnXYe",flex_box_vertical_center:"flex_box_vertical_center___lVxPk",flex_box_center_end:"flex_box_center_end___bu8yv",flex_box_column:"flex_box_column___JczGj",orderWrap:"orderWrap___ZfyGX",orderIconWrap:"orderIconWrap___XTB_O",orderAsc:"orderAsc___KWHmA",orderDesc:"orderDesc___rHdbB",active:"active___a7eSP",cursorPointer:"cursorPointer___gs9kL",orderTextWrap:"orderTextWrap___teAKn"},Qe=Te(75727),ft=Te(93041);const at=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var Fe=({sortValue:on,dropValue:Vt,className:Wt,onSort:Ht,onDrop:hn,dataSource:cn=at})=>{var mn;return te.createElement("div",{className:E()(ot.orderWrap,Wt)},te.createElement(Qe.Z,{dropdownRender:()=>te.createElement(ft.default,null,cn.map((Bn,Pn)=>te.createElement(ft.default.Item,{key:Pn,onClick:()=>hn(Bn.id)},Bn.name)))},te.createElement("span",{className:ot.orderTextWrap},(mn=cn.find(Bn=>Vt===Bn.id))==null?void 0:mn.name)),te.createElement("span",{className:ot.orderIconWrap},te.createElement("span",{className:ot.orderAsc},te.createElement("i",{className:on==="asc"?`iconfont icon-sanjiaoxing-up font12 ${ot.cursorPointer} ${ot.active}`:`iconfont icon-sanjiaoxing-up font12 ${ot.cursorPointer}`,onClick:()=>Ht(on==="asc"?"desc":"asc")})),te.createElement("span",{className:ot.orderDesc},te.createElement("i",{className:on==="desc"?`iconfont icon-sanjiaoxing-down font12 ${ot.cursorPointer} ${ot.active}`:`iconfont icon-sanjiaoxing-down font12 ${ot.cursorPointer}`,onClick:()=>Ht(on==="asc"?"desc":"asc")}))))},Re={flex_box_center:"flex_box_center___LCi0B",flex_space_between:"flex_space_between___hzONe",flex_box_vertical_center:"flex_box_vertical_center___ZyQRE",flex_box_center_end:"flex_box_center_end___XKM74",flex_box_column:"flex_box_column___p8LCU",btn:"btn___In02G","mediacy-round":"mediacy-round___uveEv","mediacy-default":"mediacy-default___dDxsd",default:"default___K791v"},ne=Te(7939),fe=Object.defineProperty,Me=Object.getOwnPropertySymbols,ze=Object.prototype.hasOwnProperty,we=Object.prototype.propertyIsEnumerable,ve=(on,Vt,Wt)=>Vt in on?fe(on,Vt,{enumerable:!0,configurable:!0,writable:!0,value:Wt}):on[Vt]=Wt,Ie=(on,Vt)=>{for(var Wt in Vt||(Vt={}))ze.call(Vt,Wt)&&ve(on,Wt,Vt[Wt]);if(Me)for(var Wt of Me(Vt))we.call(Vt,Wt)&&ve(on,Wt,Vt[Wt]);return on},$e=(on,Vt)=>{var Wt={};for(var Ht in on)ze.call(on,Ht)&&Vt.indexOf(Ht)<0&&(Wt[Ht]=on[Ht]);if(on!=null&&Me)for(var Ht of Me(on))Vt.indexOf(Ht)<0&&we.call(on,Ht)&&(Wt[Ht]=on[Ht]);return Wt},Ge=(on,Vt,Wt)=>new Promise((Ht,hn)=>{var cn=Pn=>{try{Bn(Wt.next(Pn))}catch(gn){hn(gn)}},mn=Pn=>{try{Bn(Wt.throw(Pn))}catch(gn){hn(gn)}},Bn=Pn=>Pn.done?Ht(Pn.value):Promise.resolve(Pn.value).then(cn,mn);Bn((Wt=Wt.apply(on,Vt)).next())}),ut=on=>{var Vt=on,{className:Wt,style:Ht,children:hn,loading:cn=!1,openLoading:mn,onClick:Bn=()=>{},size:Pn="middle",shape:gn="round"}=Vt,Ln=$e(Vt,["className","style","children","loading","openLoading","onClick","size","shape"]);const[Kn,sr]=(0,te.useState)(!1);return te.createElement(ne.ZP,Ie({onClick:(0,ie.throttle)(nr=>Ge(void 0,null,function*(){mn&&sr(!0);try{yield Bn(nr)}catch(ln){console.log("error",ln)}mn&&sr(!1)}),2e3,{leading:!0,trailing:!1}),className:E()(Re.btn,Re[`${Pn}-${gn}`],Wt),style:Ht,size:Pn,shape:gn,loading:Kn||cn},Ln),hn)},lt={flex_box_center:"flex_box_center___TB7bQ",flex_space_between:"flex_space_between___oBlTb",flex_box_vertical_center:"flex_box_vertical_center___b5XbB",flex_box_center_end:"flex_box_center_end___CNhe7",flex_box_column:"flex_box_column___yHXKW",head:"head___ghH72",node:"node___mjPEy"},ct=({className:on,style:Vt,children:Wt=null,onClick:Ht,title:hn})=>te.createElement("div",{className:E()(lt.head,on),style:Vt},te.createElement("span",{className:"primary-hover",onClick:Ht},te.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),te.createElement("b",{title:hn},hn),te.createElement("div",{className:lt.node},Wt)),st={flex_box_center:"flex_box_center___AlHuF",flex_space_between:"flex_space_between___vN2LW",flex_box_vertical_center:"flex_box_vertical_center___Ac7D2",flex_box_center_end:"flex_box_center_end___y38I7",flex_box_column:"flex_box_column___iQE6P",btns:"btns___sNgTb",confirm:"confirm___Ozirl",cancel:"cancel___aiq1I"},mt=({confirmShow:on=!0,confirmTitle:Vt,confirmClick:Wt,cancelShow:Ht=!0,cancelTitle:hn,cancelClick:cn,className:mn,style:Bn,confirmLoading:Pn=!1})=>te.createElement("div",{className:E()(st.btns,mn),style:Bn},on&&te.createElement(ne.ZP,{loading:Pn,onClick:Wt,type:"primary",className:st.confirm},Vt),Ht&&te.createElement(ne.ZP,{onClick:cn,className:st.cancel},hn)),Dt={flex_box_center:"flex_box_center___jkpdr",flex_space_between:"flex_space_between___OtsL8",flex_box_vertical_center:"flex_box_vertical_center___rbcb_",flex_box_center_end:"flex_box_center_end___zBR21",flex_box_column:"flex_box_column___nS_eP",fixedBottom:"fixedBottom___oJl7m",wrap:"wrap___A3Oq1",center:"center____VL1y"},Et=({className:on,style:Vt={},LeftContent:Wt,children:Ht,RightContent:hn})=>te.createElement("div",{className:E()(Dt.fixedBottom,on),style:Vt},te.createElement("div",{className:Dt.wrap},te.createElement("div",{className:Dt.left},Wt),te.createElement("div",{className:Dt.center},Ht),te.createElement("div",{className:Dt.right},hn))),kt={flex_box_center:"flex_box_center___tY8Yn",flex_space_between:"flex_space_between___vHdYA",flex_box_vertical_center:"flex_box_vertical_center___pa61F",flex_box_center_end:"flex_box_center_end___HyDXt",flex_box_column:"flex_box_column___UjZek",crumbs:"crumbs___V41Oe",hover:"hover___bEIVd"},yt=({className:on,style:Vt={},dataSource:Wt=[]})=>te.createElement("div",{className:E()(kt.crumbs,on),style:Vt},Wt.map((Ht,hn)=>hnrt.history.push(Ht.path)},Ht.name):te.createElement("span",null,Ht.name),te.createElement("span",null,"\xA0",">","\xA0")):te.createElement("span",{key:hn,style:{color:"#5F6368"}},Ht.name))),Pt=Te(11938),Kt=Object.defineProperty,nn=Object.defineProperties,xt=Object.getOwnPropertyDescriptors,Ct=Object.getOwnPropertySymbols,zt=Object.prototype.hasOwnProperty,en=Object.prototype.propertyIsEnumerable,un=(on,Vt,Wt)=>Vt in on?Kt(on,Vt,{enumerable:!0,configurable:!0,writable:!0,value:Wt}):on[Vt]=Wt,Cn=(on,Vt)=>{for(var Wt in Vt||(Vt={}))zt.call(Vt,Wt)&&un(on,Wt,Vt[Wt]);if(Ct)for(var Wt of Ct(Vt))en.call(Vt,Wt)&&un(on,Wt,Vt[Wt]);return on},Nn=(on,Vt)=>nn(on,xt(Vt)),_n=(on,Vt)=>{var Wt={};for(var Ht in on)zt.call(on,Ht)&&Vt.indexOf(Ht)<0&&(Wt[Ht]=on[Ht]);if(on!=null&&Ct)for(var Ht of Ct(on))Vt.indexOf(Ht)<0&&en.call(on,Ht)&&(Wt[Ht]=on[Ht]);return Wt};const{Countdown:yn}=Pt.default;var pn=on=>{var Vt=on,{onChange:Wt}=Vt,Ht=_n(Vt,["onChange"]);const[hn,cn]=(0,te.useState)(null);(0,te.useEffect)(()=>{typeof hn=="number"&&hn>=0&&Wt(hn)},[hn]);const mn=Bn=>{const Pn=Math.floor(Bn/1e3);cn(Pn)};return te.createElement(yn,Nn(Cn({},Ht),{onChange:mn}))}},2408:function(In,Yt,Te){"use strict";Te.d(Yt,{Z:function(){return Ot}});var te=Te(59301);function Ot(y,je){const be=(0,te.useRef)();(0,te.useEffect)(()=>{be.current=y}),(0,te.useEffect)(()=>{function z(){be.current()}if(je!==null){let E=setInterval(z,je);return()=>clearInterval(E)}},[je])}},951:function(In,Yt,Te){"use strict";Te.d(Yt,{Z:function(){return Ve}});var te=Te(59301),Ot=Te(37568),y=Te(28284),je=Te(6767),be=Te(62957),z=Te(29787),E=Te(94968),ie=Te(25399),oe=Te(89787),ee=Te(82326),ce=Te(47889),x={flex_box_center:"flex_box_center___SntrE",flex_space_between:"flex_space_between___g4tse",flex_box_vertical_center:"flex_box_vertical_center___ooGcI",flex_box_center_end:"flex_box_center_end___UM2Cs",flex_box_column:"flex_box_column___vRGBc",prompt:"prompt___a_aRk",box:"box___X84XK",row:"row___wofpN",icon:"icon___ixIOQ"},ae=Te(22972),re=Te(68911),se=Te(14820),ue=Te(1012),pe=Te(47257),he=Te.n(pe),ye=Te(46709),ge=Te(29596),xe=Te(10102),ke=Te(63823),De=Te(59301),Be=Object.defineProperty,Ae=Object.getOwnPropertySymbols,Se=Object.prototype.hasOwnProperty,Ee=Object.prototype.propertyIsEnumerable,Oe=(Ze,We,nt)=>We in Ze?Be(Ze,We,{enumerable:!0,configurable:!0,writable:!0,value:nt}):Ze[We]=nt,Pe=(Ze,We)=>{for(var nt in We||(We={}))Se.call(We,nt)&&Oe(Ze,nt,We[nt]);if(Ae)for(var nt of Ae(We))Ee.call(We,nt)&&Oe(Ze,nt,We[nt]);return Ze},Le=(Ze,We,nt)=>new Promise((_e,Ue)=>{var tt=Ke=>{try{et(nt.next(Ke))}catch(Ye){Ue(Ye)}},rt=Ke=>{try{et(nt.throw(Ke))}catch(Ye){Ue(Ye)}},et=Ke=>Ke.done?_e(Ke.value):Promise.resolve(Ke.value).then(tt,rt);et((nt=nt.apply(Ze,We)).next())});const Ne=Ot.default.TextArea,me=({dataSetInfo:Ze,attachmentInfo:We,visible:nt,user:_e,dispatch:Ue,onClose:tt=()=>{},onSuccess:rt=()=>{}})=>{var et,Ke;const[Ye,Xe]=(0,te.useState)([]),[ot,Qe]=(0,te.useState)(!1),[ft,at]=(0,te.useState)(!1),[qe]=y.default.useForm(),[Fe,Re]=(0,te.useState)([]),[ne,fe]=(0,te.useState)({}),Me=(0,te.useRef)([]),[ze,we]=(0,te.useState)([]),ve=window.location.href.includes("xust.educoder.net");(0,te.useEffect)(()=>{if(nt){if(Ze){const{title:mt,is_public:Dt,desc:jt,attachments:Et,data_set_tags:kt,subject:Nt}=Ze||{},yt=Et.map(Kt=>({id:String(Math.random()).slice(-6),name:Kt.title,response:{attachment_id:Kt.id},size:Kt.size,description:Kt.description||"",percent:100,status:"done"}));Xe(yt),Re(kt);const Pt={title:mt,is_public:Dt,desc:jt,subject_id:Nt==null?void 0:Nt.id};qe.setFieldsValue(Pt)}if(We){const mt=We.map(Dt=>({id:String(Math.random()).slice(-6),name:Dt.title,response:{attachment_id:Dt.id},size:Dt.size,description:Dt.description||"",percent:100,status:"done"}));Xe(mt)}Ie(),vt()}},[nt]),(0,te.useEffect)(()=>{Me.current=Ye},[Ye]),(0,te.useEffect)(()=>{Ye!=null&&Ye.length?qe.setFields([{name:"attachments",errors:[]}]):qe.setFields([{name:"attachments",errors:["\u6570\u636E\u96C6\u4E0D\u80FD\u4E3A\u7A7A"]}])},[Ye.length]),(0,te.useEffect)(()=>{Fe!=null&&Fe.length?qe.setFields([{name:"tag_ids",errors:[]}]):qe.setFields([{name:"tag_ids",errors:["\u6570\u636E\u96C6\u6807\u7B7E\u4E0D\u80FD\u4E3A\u7A7A"]}])},[Fe.length]);const Ie=()=>Le(void 0,null,function*(){at(!0);const mt=yield(0,ae.ZP)("/api/data_sets/extra_info.jsoin",{method:"get"});mt.status===0&&(fe(mt==null?void 0:mt.data),at(!1))}),$e={multiple:!0,withCredentials:!0,showUploadList:!1,beforeUpload:mt=>Le(void 0,null,function*(){var Dt,jt,Et,kt,Nt,yt;if(((kt=(Et=(jt=(Dt=mt.name)==null?void 0:Dt.split("."))==null?void 0:jt.slice(0,-1))==null?void 0:Et.join("."))==null?void 0:kt.length)>60)return je.ZP.warning(`\u300A${mt.name}\u300B\u6587\u4EF6\u540D\u79F0\u8FC7\u957F\uFF0C\u65E0\u6CD5\u4E0A\u4F20`),Promise.reject();if([...ne.data_set_filenames,...Me.current.map(zt=>zt.name)].includes(mt.name))return je.ZP.warning(`\u300A${mt.name}\u300B\u5DF2\u5B58\u5728\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9`),Promise.reject();const Kt=mt.size/1024/1024/1024;let nn=ne==null?void 0:ne.data_sets_filesize;if(Me.current.forEach(zt=>{nn+=zt==null?void 0:zt.size}),nn=nn/1024/1024/1024,ve){if(Kt>100)return je.ZP.warning(`\u300A${mt.name}\u300B\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u5355\u4E2A\u6587\u4EF6\u4E0A\u4F20\u5927\u5C0F\u9650\u5236(100GB)`),Promise.reject()}else if((0,xe.Ny)()){if(Kt>50)return je.ZP.warning(`\u300A${mt.name}\u300B\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u5355\u4E2A\u6587\u4EF6\u4E0A\u4F20\u5927\u5C0F\u9650\u5236(50GB)`),Promise.reject()}else if(Kt>2)return je.ZP.warning(`\u300A${mt.name}\u300B\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u5355\u4E2A\u6587\u4EF6\u4E0A\u4F20\u5927\u5C0F\u9650\u5236(2GB)`),Promise.reject();if(nn+Kt>(ve?100:(Nt=_e==null?void 0:_e.userInfo)==null?void 0:Nt.cloud_space)&&!(ne!=null&&ne.current_user_no_limit))return je.ZP.warning(`\u300A${mt.name}\u300B\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u50A8\u5B58\u7A7A\u95F4\u5927\u5C0F\u9650\u5236(${(yt=_e==null?void 0:_e.userInfo)==null?void 0:yt.cloud_space}GB)`),Promise.reject();const Ct={id:String(Math.random()).slice(-6),name:mt.name,size:mt.size,file:mt,description:"",percent:0,status:"uploading"};return ut(Ct,{login:ne==null?void 0:ne.login,container_type:"DataSet",container_id:null,description:"",realFileName:!1}),Xe(zt=>[...zt,Ct]),Promise.reject()})},Ge=mt=>Le(void 0,null,function*(){var Dt,jt,Et;const kt=Me.current.find(Nt=>Nt.name===mt.name);(Dt=kt==null?void 0:kt.response)!=null&&Dt.attachment_id&&(yield(0,ae.ZP)("/api/data_sets/single_destroy_files.json",{method:"delete",body:{attachment_id:(jt=kt==null?void 0:kt.response)==null?void 0:jt.attachment_id}})),kt!=null&&kt.client&&((Et=kt==null?void 0:kt.client)==null||Et.cancel()),Xe(Nt=>Nt.filter(yt=>yt.name!==mt.name))}),Je=()=>{var mt;(mt=Me.current)==null||mt.forEach(Dt=>{var jt;Dt!=null&&Dt.client&&((jt=Dt==null?void 0:Dt.client)==null||jt.cancel())})};console.log(Ye,"fileList1");const ut=(mt,Dt)=>Le(void 0,null,function*(){var jt,Et,kt,Nt,yt,Pt,Kt,nn,xt;Dt.file_name=mt.name;const Ct=mt.name,zt=yield(0,ae.ZP)("/api/buckets/get_data_set_token.json",{method:"get"});if((zt==null?void 0:zt.status)!==0){Xe(Nn=>(Nn[Nn.findIndex(_n=>_n.name===Ct)].status="error",[...Nn])),je.ZP.warning("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u5C1D\u8BD5");return}zt.data=JSON.parse((0,se.pe)(zt.data));const en=new(he())({endpoint:(jt=zt==null?void 0:zt.data)==null?void 0:jt.end_point,region:(Et=zt==null?void 0:zt.data)==null?void 0:Et.region,accessKeyId:(kt=zt==null?void 0:zt.data)==null?void 0:kt.access_key_id,accessKeySecret:(Nt=zt==null?void 0:zt.data)==null?void 0:Nt.access_key_secret,bucket:(yt=zt==null?void 0:zt.data)==null?void 0:yt.bucket,stsToken:(Pt=zt==null?void 0:zt.data)==null?void 0:Pt.security_token}),un=mt.name.split(".");un.pop();const Cn=Dt.realFileName?un.join("."):(0,ue.Z)();en.multipartUpload(`datasets/${Dt==null?void 0:Dt.login}/${Cn}${Ct.indexOf(".")>-1?"."+Ct.split(".").pop():""}`,new Blob([mt.file],{type:mt.file.type}),{timeout:3600*1e3,partSize:1002400,progress:(Nn,_n,yn)=>{console.log("\u8FDB\u5EA6",Nn,_n,yn),Xe(Rn=>{const pn=Rn.findIndex(on=>on.name===Ct);return Rn[pn].client=en,Rn[pn].percent=Nn*100,Rn[pn].checkpoint=_n,[...Rn]})},checkpoint:(nn=Me.current[(Kt=Me.current)==null?void 0:Kt.findIndex(Nn=>Nn.name===Ct)])==null?void 0:nn.checkpoint,callback:{customValue:{id:Ct+""},url:(xt=zt==null?void 0:zt.data)==null?void 0:xt.callback_url,host:zt==null?void 0:zt.data.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+(0,ae.rz)(Dt)}}).then(function(Nn){Xe(_n=>{var yn,Rn,pn;const on=_n.findIndex(Wt=>Wt.name===Ct);let Vt="done";return((yn=Nn.data)==null?void 0:yn.status)===0?_n[on].response=(Rn=Nn.data)==null?void 0:Rn.data:(je.ZP.warning((pn=Nn.data)==null?void 0:pn.message),Vt="error"),_n[on].status=Vt,[..._n]})}).catch(function(Nn){console.log("\u63A5\u53E3\u9519\u8BEF\uFF1A",Nn),(Nn==null?void 0:Nn.name)!=="cancel"&&Xe(_n=>{const yn=_n.findIndex(Rn=>Rn.name===Ct);return _n[yn].status="error",[..._n]})})}),lt=mt=>(mt=mt||"",mt=String(mt),mt=mt.replace(/\s+/g,""),mt);function vt(){return Le(this,null,function*(){var mt;let Dt=yield(0,ae.ZP)(`/api/users/${(mt=_e==null?void 0:_e.userInfo)==null?void 0:mt.login}/subjects.json`,{method:"get",params:{page:1,per_page:800,category:"manage",sort_by:"updated_at",sort_direction:"desc"}});Dt&&we(Dt==null?void 0:Dt.subjects)})}const ct=()=>Le(void 0,null,function*(){var mt;const Dt=qe.getFieldsValue(),{title:jt,is_public:Et,desc:kt,subject_id:Nt}=Dt,yt=[];if(lt(jt)||yt.push({name:"title",errors:["\u6570\u636E\u96C6\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A"]}),Ye!=null&&Ye.length||yt.push({name:"attachments",errors:["\u6570\u636E\u96C6\u4E0D\u80FD\u4E3A\u7A7A"]}),Fe!=null&&Fe.length||yt.push({name:"tag_ids",errors:["\u6570\u636E\u96C6\u6807\u7B7E\u4E0D\u80FD\u4E3A\u7A7A"]}),yt.length){qe.setFields(yt);return}const Pt=Ye.map(Ct=>{var zt;return{attachment_id:(zt=Ct.response)==null?void 0:zt.attachment_id,description:Ct.description}});Qe(!0);const Kt=(0,re.TG)(),nn={title:Dt.title,attachments:Pt,tag_ids:Fe.map(Ct=>Ct.id),is_public:Et,desc:kt,subject_id:Nt,homework_common_id:Kt||void 0};let xt;Ze?xt=yield(0,ae.ZP)(`/api/data_sets/${Ze==null?void 0:Ze.id}.json`,{method:"put",body:nn}):xt=yield(0,ae.ZP)("/api/data_sets.json",{method:"post",body:nn}),xt.status===0&&(je.ZP.success("\u64CD\u4F5C\u6210\u529F"),rt((mt=xt==null?void 0:xt.data)==null?void 0:mt.data_set_id),Ue({type:"user/getUserInfo"})),Qe(!1)}),st=mt=>{Re(mt)},At=Ye.some(mt=>mt.status==="uploading");return console.log("fileList",Ye),De.createElement(be.default,{destroyOnClose:!0,confirmLoading:ot,bodyStyle:{paddingLeft:16,paddingTop:20},okButtonProps:{disabled:At},title:Ze?"\u7F16\u8F91\u6570\u636E\u96C6":"\u521B\u5EFA\u6570\u636E\u96C6",width:660,onCancel:()=>{if(At){be.default.confirm({title:"\u5173\u95ED\u5F39\u6846\u63D0\u793A",content:"\u6709\u6587\u4EF6\u672A\u4E0A\u4F20\uFF0C\u662F\u5426\u786E\u5B9A\u79BB\u5F00\uFF1F",okText:"\u79BB\u5F00",cancelText:"\u53D6\u6D88",onOk:()=>{tt()}});return}tt()},okText:"\u786E\u5B9A",onOk:ct,open:nt,afterClose:()=>{Xe([]),Re([]),Qe(!1),at(!1),Je(),qe.resetFields()}},De.createElement(z.Z,{spinning:ft},!(ne!=null&&ne.current_user_no_limit)&&!ft&&De.createElement("div",{className:x.prompt},De.createElement("i",{className:"icon icon-tishi11 font12 mr10"}),"\u6E29\u99A8\u63D0\u793A:\u5E73\u53F0\u4E3A\u7528\u6237\u63D0\u4F9B\u4E86",De.createElement("span",{style:{color:"#3061D0",margin:"0 5px"}},ve?100:(et=_e==null?void 0:_e.userInfo)==null?void 0:et.cloud_space,"GB"),"\u7684\u6570\u636E\u96C6\u5B58\u50A8\u7A7A\u95F4\uFF0C\u60A8\u76EE\u524D\u5DF2\u4F7F\u7528\u4E86",De.createElement("span",{style:{color:"#FF9D18",margin:"0 5px"}},((ne==null?void 0:ne.data_sets_filesize)/(1024*1024*1024)).toFixed(2),"GB")),De.createElement(y.default,{form:qe,colon:!1,labelCol:{span:4},wrapperCol:{span:20},size:"large"},De.createElement(y.default.Item,{label:"\u6570\u636E\u96C6\u540D\u79F0",name:"title",rules:[{required:!0,message:"\u6570\u636E\u96C6\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A"}]},De.createElement(Ot.default,{placeholder:"\u8BF7\u8F93\u5165\u6570\u636E\u96C6\u540D\u79F0",showCount:!0,maxLength:60})),De.createElement(y.default.Item,{style:{marginBottom:0},name:"attachments",label:"\u4E0A\u4F20\u6570\u636E\u96C6",rules:[{required:!0,message:"\u6570\u636E\u96C6\u4E0D\u80FD\u4E3A\u7A7A"}]},De.createElement("div",{style:{position:"relative"}},De.createElement(E.default,Pe({},$e),De.createElement(ge.op,{style:{borderRadius:2}},De.createElement("i",{className:"icon-shangchuan3 mr5 font14"}),"\u4E0A\u4F20\u6587\u4EF6")),De.createElement("div",{style:{color:"#9096A3",fontSize:"12px",marginLeft:"10px",position:"absolute",left:"115px",top:"-2px"}},De.createElement("div",null,"1.\u5355\u4E2A\u6587\u4EF6\u4E0D\u80FD\u8D85\u8FC7",ve?100:(0,xe.Ny)()?50:2,"G"),De.createElement("div",null,"2.",ne!=null&&ne.current_user_no_limit?"":`\u4E2A\u4EBA\u4E0A\u4F20\u603B\u4F53\u79EF\u4E0D\u8D85\u8FC7${ve?100:(Ke=_e==null?void 0:_e.userInfo)==null?void 0:Ke.cloud_space}GB\uFF0C`,"\u6587\u4EF6\u540D\u4E0D\u8D85\u8FC760\u5B57")))),De.createElement("div",{className:x.box},Ye.map(mt=>De.createElement("div",{key:mt.id,className:x.row},De.createElement("div",{className:x.icon},mt.status==="done"&&De.createElement("i",{className:"iconfont icon-wancheng",style:{color:"#19CB70"}}),mt.status==="error"&&De.createElement("i",{className:"iconfont icon-cuowu",style:{color:"#E30000",marginLeft:1,fontSize:13}})),De.createElement("div",{style:{width:176}},De.createElement(ie.Z,{title:mt==null?void 0:mt.name},De.createElement("div",{style:{color:mt.status==="error"?"#E30000":"#3061D0",textDecoration:"underline"}},(0,re.tP)(mt==null?void 0:mt.name,9))),mt.status==="uploading"&&De.createElement(oe.Z,{strokeColor:"#3061D0",trailColor:"rgba(144, 150, 163, 0.1)",percent:mt.percent,showInfo:!1,size:[168,4]})),De.createElement("i",{onClick:()=>Ge(mt),className:"iconfont icon-shanchu14 font14 ml20 mr20",style:{cursor:"pointer",color:"#F65160"}}),De.createElement(Ot.default,{value:mt.description,onChange:Dt=>{Xe(jt=>{const Et=jt.findIndex(kt=>kt.name===mt.name);return jt[Et].description=Dt.target.value,[...jt]})},placeholder:"\u5907\u6CE8\u8BF4\u660E",showCount:!0,maxLength:255,style:{width:"286px"}})))),De.createElement(y.default.Item,{label:"\u6807\u7B7E",name:"tag_ids",rules:[{required:!0,message:"\u6570\u636E\u96C6\u6807\u7B7E\u4E0D\u80FD\u4E3A\u7A7A"}]},De.createElement(ye.Z,{isTagsValue:!0,width:"514",selectWidth:"514",placeholder:"\u6DFB\u52A0\u6807\u7B7E",getDataSet:st,tags:Fe})),De.createElement(y.default.Item,{label:"\u9009\u62E9\u8BFE\u7A0B",name:"subject_id",rules:[{required:!1,message:"\u6570\u636E\u96C6\u6807\u7B7E\u4E0D\u80FD\u4E3A\u7A7A"}]},De.createElement(ee.default,{placeholder:"\u9009\u62E9\u8BFE\u7A0B",allowClear:!0},ze==null?void 0:ze.map(mt=>De.createElement(ee.default.Option,{value:mt==null?void 0:mt.id},mt==null?void 0:mt.name)))),De.createElement(y.default.Item,{initialValue:0,label:"\u662F\u5426\u516C\u5F00",name:"is_public",rules:[{required:!0}]},De.createElement(ce.ZP.Group,null,De.createElement(ce.ZP,{value:1},"\u662F"),De.createElement(ce.ZP,{value:0},"\u5426"))),De.createElement("div",{style:{position:"relative",left:"100px",top:"-20px",width:"400px",color:"#9096A3",fontSize:"12px"}},"\u516C\u5F00\u9700\u8981\u7BA1\u7406\u5458\u5BA1\u6838\u901A\u8FC7\u540E\u53EF\u88AB\u5176\u4ED6\u7528\u6237\u8BBF\u95EE"),De.createElement(y.default.Item,{label:"\u7B80\u4ECB\u6458\u8981",name:"desc",style:{marginBottom:0}},De.createElement(Ne,{placeholder:"\u6B64\u6570\u636E\u96C6\u4E3B\u8981\u5305\u542B\u4EC0\u4E48\u5185\u5BB9\uFF0C\u53EF\u4EE5\u7528\u6765\u505A\u4EC0\u4E48\uFF1F"})))))};var Ve=(0,ke.connect)(({user:Ze,dispatch:We})=>({user:Ze,dispatch:We}))(me)},59092:function(In,Yt,Te){"use strict";Te.r(Yt),Te.d(Yt,{default:function(){return on}});var te=Te(59301),Ot=Te(63823),y=Te(29787),je=Te(91882),be=Te(25399),z=Te(62957),E=Te(62673),ie=Te(6767),oe=Te(75727),ee=Te(47889),ce=Te(70858),x={flex_box_center:"flex_box_center___eNs_C",flex_space_between:"flex_space_between___oJc0d",flex_box_vertical_center:"flex_box_vertical_center___MoDEY",flex_box_center_end:"flex_box_center_end___BtlAV",flex_box_column:"flex_box_column___nUGZ8",bg:"bg___kj21E",wrap:"wrap___TtbC8",leftContent:"leftContent___FGaJd",header:"header___kobCa",headerBack:"headerBack___TI5PF",title:"title___B5Aew",time:"time___Ab938",introduction:"introduction___JKUBJ",from:"from___WId6_",bottom:"bottom___Expju",user_img:"user_img___igguI",user_name:"user_name___xNcx6",tags_name:"tags_name___xhTee",buttonList:"buttonList___ayDi1",buttonItem:"buttonItem___p_BX_",rightContent:"rightContent___XTwKA",share:"share___o0Kxt",publicStyle:"publicStyle___I8HuS",more:"more___ZQSDV",collectStyle:"collectStyle___FwPiJ",collectActiveStyle:"collectActiveStyle___vbqkD",content:"content___dl660",addTypeRadio:"addTypeRadio___iEl2Y",addBtn:"addBtn___SYc61",shixunTooltip:"shixunTooltip___krR3m",pageStyle:"pageStyle___UXmCF",pageCan:"pageCan___yNiQI",pageUnCan:"pageUnCan___M1D84",dropList:"dropList___KP6TZ",dropName:"dropName___hgrPU"},ae=Te(35783),re={flex_box_center:"flex_box_center___Kaphe",flex_space_between:"flex_space_between___dzJWD",flex_box_vertical_center:"flex_box_vertical_center___iwu7i",flex_box_center_end:"flex_box_center_end___izksF",flex_box_column:"flex_box_column___ntJPh",content:"content___gDHym",addTypeRadio:"addTypeRadio___oUKH0",introduceNoData:"introduceNoData___iILly",introduceAdd:"introduceAdd___v9keU",introduceText:"introduceText___iTf1W",introduceButton:"introduceButton___bwZMR",close:"close___csBZw",submit:"submit___SQ6af",introduceContent:"introduceContent___Yad8G",introduceTitle:"introduceTitle___DfmXh",introContentWrap:"introContentWrap___bmjAL",action:"action___DPbIq",fileTable:"fileTable___xqsXc",addBtn:"addBtn___em6e3",wrap:"wrap___Q3aN8",colorBlue:"colorBlue____HNqk",repeatedName:"repeatedName___RIjaL",row:"row___ngnyh",icon:"icon___fQvup"},se=Te(32862),ue=Te(56375),pe=Te(28284),he=Te(37568),ye=Te(94968),ge=Te(89787),xe=Te(65212),ke=Te(66649),De=Te.n(ke),Be=Te(68911),Ae=Te(79809),Se=Te(22972),Ee=Te(47257),Oe=Te.n(Ee),Pe=Te(14820),Le=Te(1012),Ne=Te(10102),me=Te(59301),Ve=Object.defineProperty,Ze=Object.defineProperties,We=Object.getOwnPropertyDescriptors,nt=Object.getOwnPropertySymbols,_e=Object.prototype.hasOwnProperty,Ue=Object.prototype.propertyIsEnumerable,tt=(Vt,Wt,Ht)=>Wt in Vt?Ve(Vt,Wt,{enumerable:!0,configurable:!0,writable:!0,value:Ht}):Vt[Wt]=Ht,rt=(Vt,Wt)=>{for(var Ht in Wt||(Wt={}))_e.call(Wt,Ht)&&tt(Vt,Ht,Wt[Ht]);if(nt)for(var Ht of nt(Wt))Ue.call(Wt,Ht)&&tt(Vt,Ht,Wt[Ht]);return Vt},et=(Vt,Wt)=>Ze(Vt,We(Wt)),Ke=(Vt,Wt,Ht)=>new Promise((hn,cn)=>{var mn=gn=>{try{Pn(Ht.next(gn))}catch(Ln){cn(Ln)}},Bn=gn=>{try{Pn(Ht.throw(gn))}catch(Ln){cn(Ln)}},Pn=gn=>gn.done?hn(gn.value):Promise.resolve(gn.value).then(mn,Bn);Pn((Ht=Ht.apply(Vt,Wt)).next())});const Ye=({polls:Vt,globalSetting:Wt,loading:Ht,dispatch:hn,user:cn,dataSetInfo:mn,indexType:Bn,getInfo:Pn})=>{const gn=(0,Ot.useParams)(),[Ln,Kn]=(0,te.useState)(!1),[sr,nr]=(0,te.useState)(0),ln=(0,te.useRef)(null),rn=(0,te.useRef)(null),[Wn,Zn]=(0,te.useState)(""),[Mt,Gt]=(0,te.useState)(""),[St]=pe.default.useForm(),[Rt,Tt]=(0,te.useState)([]),_t=(0,te.useRef)([]),[bt,Ut]=(0,te.useState)(!1),[Lt,qt]=(0,te.useState)(!1),[Ft,$t]=(0,te.useState)(""),Zt=Rt.some(An=>An.status==="uploading"),Xt=window.location.href.includes("xust.educoder.net"),[Tn,On]=(0,te.useState)(!1),[Mn,rr]=(0,te.useState)([]),[lr,hr]=(0,te.useState)(!1),[er,Qn]=(0,te.useState)(0),[Fn,pr]=(0,te.useState)({page:1,limit:10,type:"",id:""}),wr=(An,xn)=>Ke(void 0,null,function*(){hr(!0);const tr=yield(0,xe.iw)({container_type:An||(Fn==null?void 0:Fn.type),container_id:xn||(Fn==null?void 0:Fn.id),page:Fn.page,limit:Fn.limit});rr(tr==null?void 0:tr.data),Qn(tr==null?void 0:tr.total_count),hr(!1)});(0,te.useEffect)(()=>{var An;((An=ln==null?void 0:ln.current)==null?void 0:An.clientHeight)>80?nr(1):nr(0)},[Wn]),(0,te.useEffect)(()=>{_t.current=Rt},[Rt]),(0,te.useEffect)(()=>{Zn(mn==null?void 0:mn.introduce),Gt(mn==null?void 0:mn.introduce)},[mn==null?void 0:mn.introduce]);const Sr={multiple:!1,withCredentials:!0,showUploadList:!1,fileList:Rt==null?void 0:Rt.map(An=>An.file),beforeUpload:An=>Ke(void 0,null,function*(){var xn,tr,br,Er,Hr;if(((Er=(br=(tr=(xn=An.name)==null?void 0:xn.split("."))==null?void 0:tr.slice(0,-1))==null?void 0:br.join("."))==null?void 0:Er.length)>60)return ie.ZP.warning(`\u300A${An.name}\u300B\u6587\u4EF6\u540D\u79F0\u8FC7\u957F\uFF0C\u65E0\u6CD5\u4E0A\u4F20`),Promise.reject();if([..._t.current.map(ei=>ei.name)].includes(An.name))return ie.ZP.warning(`\u300A${An.name}\u300B\u5DF2\u5B58\u5728\uFF0C\u8BF7\u91CD\u65B0\u9009\u62E9`),Promise.reject();const Ur=An.size/1024/1024/1024;if(Xt){if(Ur>100)return ie.ZP.warning(`\u300A${An.name}\u300B\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u5355\u4E2A\u6587\u4EF6\u4E0A\u4F20\u5927\u5C0F\u9650\u5236(100GB)`),Promise.reject()}else if(Ur>2)return ie.ZP.warning(`\u300A${An.name}\u300B\u6587\u4EF6\u65E0\u6CD5\u4E0A\u4F20\u3002\u8D85\u8FC7\u5355\u4E2A\u6587\u4EF6\u4E0A\u4F20\u5927\u5C0F\u9650\u5236(2GB)`),Promise.reject();const Tr={id:String(Math.random()).slice(-6),name:An.name,size:An.size,file:An,description:"",percent:0,status:"uploading"};return yr(Tr,{login:(Hr=cn==null?void 0:cn.userInfo)==null?void 0:Hr.login,container_type:"DataSet",container_id:null,description:"",realFileName:!1}),Tt(ei=>[...ei,Tr]),Promise.reject()})},Cr=An=>Ke(void 0,null,function*(){var xn,tr,br;const Er=_t.current.find(Hr=>Hr.name===An.name);(xn=Er==null?void 0:Er.response)!=null&&xn.attachment_id&&(yield(0,Se.ZP)("/api/data_sets/single_destroy_files.json",{method:"delete",body:{attachment_id:(tr=Er==null?void 0:Er.response)==null?void 0:tr.attachment_id}})),Er!=null&&Er.client&&((br=Er==null?void 0:Er.client)==null||br.cancel()),Tt(Hr=>Hr.filter(kr=>kr.name!==An.name))}),Jn=()=>{var An;(An=_t.current)==null||An.forEach(xn=>{var tr;xn!=null&&xn.client&&((tr=xn==null?void 0:xn.client)==null||tr.cancel())})},yr=(An,xn)=>Ke(void 0,null,function*(){var tr,br,Er,Hr,kr,Ur,Tr,ei,si;xn.file_name=An.name;const wi=An.name,Kr=yield(0,Se.ZP)("/api/buckets/get_data_set_token.json",{method:"get"});if((Kr==null?void 0:Kr.status)!==0){Tt(Or=>(Or[Or.findIndex(Pr=>Pr.name===wi)].status="error",[...Or])),ie.ZP.warning("\u4E0A\u4F20\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u5C1D\u8BD5");return}Kr.data=JSON.parse((0,Pe.pe)(Kr.data));const gi=new(Oe())({endpoint:(tr=Kr==null?void 0:Kr.data)==null?void 0:tr.end_point,region:(br=Kr==null?void 0:Kr.data)==null?void 0:br.region,accessKeyId:(Er=Kr==null?void 0:Kr.data)==null?void 0:Er.access_key_id,accessKeySecret:(Hr=Kr==null?void 0:Kr.data)==null?void 0:Hr.access_key_secret,bucket:(kr=Kr==null?void 0:Kr.data)==null?void 0:kr.bucket,stsToken:(Ur=Kr==null?void 0:Kr.data)==null?void 0:Ur.security_token}),di=An.name.split(".");di.pop();const bi=xn.realFileName?di.join("."):(0,Le.Z)();gi.multipartUpload(`datasets/${xn==null?void 0:xn.login}/${bi}${wi.indexOf(".")>-1?"."+wi.split(".").pop():""}`,new Blob([An.file],{type:An.file.type}),{timeout:3600*1e3,partSize:1002400,progress:(Or,Pr,ur)=>{console.log("\u8FDB\u5EA6",Or,Pr,ur),console.log("client--",gi),Tt(Dn=>{const Un=Dn.findIndex(Vn=>Vn.name===wi);return Un!==-1&&(Dn[Un].client=gi,Dn[Un].percent=Or*100,Dn[Un].checkpoint=Pr),[...Dn]})},checkpoint:(ei=_t.current[(Tr=_t.current)==null?void 0:Tr.findIndex(Or=>Or.name===wi)])==null?void 0:ei.checkpoint,callback:{customValue:{id:wi+""},url:(si=Kr==null?void 0:Kr.data)==null?void 0:si.callback_url,host:Kr==null?void 0:Kr.data.bucket_host,body:"bucket=${bucket}&object=${object}&etag=${etag}&size=${size}&mimeType=${mimeType}&my_var=${x:my_var}&"+(0,Se.rz)(xn)}}).then(function(Or){Tt(Pr=>{var ur,Dn,Un;const Vn=Pr.findIndex(cr=>cr.name===wi);let $n="done";return Vn!==-1&&(((ur=Or.data)==null?void 0:ur.status)===0?Pr[Vn].response=(Dn=Or.data)==null?void 0:Dn.data:(ie.ZP.warning((Un=Or.data)==null?void 0:Un.message),$n="error"),Pr[Vn].status=$n),[...Pr]})}).catch(function(Or){console.log("\u63A5\u53E3\u9519\u8BEF\uFF1A",Or),(Or==null?void 0:Or.name)!=="cancel"&&Tt(Pr=>{const ur=Pr.findIndex(Dn=>Dn.name===wi);return ur!==-1&&(Pr[ur].status="error"),[...Pr]})})});return me.createElement("div",{className:re.content},!Ln&&!Wn&&Bn&&me.createElement("div",{className:re.introduceNoData,onClick:()=>{Kn(!0)}},me.createElement("div",{className:re.introduceAdd},me.createElement("i",{className:"icon icon-tianjia4 mr5 font12"})," \u6DFB\u52A0\u6570\u636E\u96C6\u4ECB\u7ECD"),me.createElement("div",{className:re.introduceText},"\u8BA9\u4F60\u7684\u6570\u636E\u96C6\u66F4\u53D7\u6B22\u8FCE")),!Ln&&Wn&&me.createElement("div",{className:re.introduceContent},me.createElement("div",{className:re.introduceTitle},"\u6570\u636E\u96C6\u4ECB\u7ECD",Bn&&me.createElement("i",{className:"icon icon-bianji9 font14 ml10",style:{color:"#3061D0",cursor:"pointer"},onClick:()=>{Kn(!0)}})),me.createElement("div",{className:re.introContentWrap},me.createElement("div",null,me.createElement("div",{ref:rn,style:sr>0?{height:sr===1?80:"auto",overflow:sr===1?"hidden":"auto"}:{paddingRight:0}},me.createElement("div",{ref:ln},me.createElement(ue.Z,{value:Wn,style:{fontSize:"14px"}}))),!!sr&&me.createElement(te.Fragment,null,sr===1?me.createElement("div",{onClick:()=>{nr(2)},className:re.action},"\u5C55\u5F00",me.createElement("i",{className:"iconfont icon-zhankaixiaojiantou",style:{fontSize:"10px",marginLeft:"3px"}})):me.createElement("div",{onClick:()=>{nr(1)},className:re.action},"\u6536\u8D77",me.createElement("i",{className:"iconfont icon-shouqixiaojiantou",style:{fontSize:"10px",marginLeft:"3px"}})))))),Ln&&me.createElement("div",{style:{marginTop:"30px"}},me.createElement(se.Z,{watch:!0,onChange:An=>{Gt(An)},defaultValue:Mt,placeholder:"\u8BF7\u5728\u6B64\u8F93\u5165\u5185\u5BB9\uFF0C\u6700\u591A5000\u4E2A\u5B57\u7B26"}),me.createElement("div",{className:re.introduceButton},me.createElement("div",{className:re.close,onClick:An=>{An.stopPropagation(),Kn(!1)}},"\u53D6\u6D88"),me.createElement("div",{className:re.submit,onClick:An=>{An.stopPropagation(),(0,xe.R2)({id:gn==null?void 0:gn.id,introduce:Mt}).then(xn=>{(xn==null?void 0:xn.status)==0&&(ie.ZP.success("\u64CD\u4F5C\u6210\u529F"),Kn(!1),Pn(!0))})}},"\u786E\u8BA4"))),me.createElement("div",{className:re.fileTable},me.createElement("div",null,"\u6587\u4EF6\u5217\u8868"),Bn&&me.createElement("div",{className:re.addBtn,onClick:()=>{Ut(!0)}},"\u4E0A\u4F20\u6587\u4EF6")),me.createElement(ce.default,{dataSource:mn==null?void 0:mn.attachments,pagination:!1,style:{marginTop:"20px"},scroll:{y:300},columns:[{title:"\u6587\u4EF6",align:"left",width:400,dataIndex:"title",ellipsis:!0},{title:"\u5907\u6CE8",align:"left",dataIndex:"description",ellipsis:!0},{title:"\u521B\u5EFA\u65F6\u95F4",align:"left",ellipsis:!0,dataIndex:"created_on",render:An=>me.createElement("span",{style:{color:"#666666"}},An?De()(An).format("YYYY-MM-DD"):"--")},{title:"\u6587\u4EF6\u5927\u5C0F",align:"left",dataIndex:"filesize",ellipsis:!0},{title:"\u4E0B\u8F7D\u6570",align:"center",dataIndex:"downloads",ellipsis:!0,render:(An,xn)=>me.createElement("span",{style:{color:"#3061D0",cursor:"pointer"},onClick:()=>Ke(void 0,null,function*(){var tr;((0,Ne.Ny)()||((tr=cn==null?void 0:cn.userInfo)==null?void 0:tr.login)==="mfflo3p2e")&&(On(!0),Fn.type=xn==null?void 0:xn.container_type,Fn.id=xn==null?void 0:xn.container_id,Fn.page=1,Fn.limit=10,pr(rt({},Fn)),yield wr(xn==null?void 0:xn.container_type,xn==null?void 0:xn.container_id))})},An||"0")},{title:"\u64CD\u4F5C",align:"right",dataIndex:"role",width:Bn?130:60,render:(An,xn,tr)=>me.createElement("span",{style:{color:"#3061D0"}},me.createElement("div",{style:{display:"flex"}},me.createElement("div",{style:{marginRight:"10px",color:"#3061D0",cursor:"pointer"},onClick:()=>Ke(void 0,null,function*(){if(!(0,Ne.bg)()){hn({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}});return}yield(0,Be.Nd)(xn.title,xn==null?void 0:xn.download_url),yield(0,xe.SG)({id:xn==null?void 0:xn.id}),Pn()})},"\u4E0B\u8F7D"),Bn&&me.createElement("div",{style:{marginRight:"10px",color:"#3061D0",cursor:"pointer"},onClick:()=>{var br,Er,Hr,kr;let Ur=(Er=xn==null?void 0:xn.title)==null?void 0:Er.substring(((br=xn==null?void 0:xn.title)==null?void 0:br.lastIndexOf("."))+1);St.setFieldsValue({title:(kr=xn==null?void 0:xn.title)==null?void 0:kr.substring(0,(Hr=xn==null?void 0:xn.title)==null?void 0:Hr.lastIndexOf(".")),description:xn==null?void 0:xn.description}),z.default.confirm({icon:null,title:"\u7F16\u8F91",width:700,centered:!0,content:me.createElement("div",null,me.createElement(pe.default,{form:St,colon:!1,labelCol:{span:3},style:{marginBottom:"-20px"},wrapperCol:{span:21}},me.createElement(pe.default.Item,{label:"\u6587\u4EF6\u540D\u79F0",name:"title",rules:[{required:!0,message:"\u5FC5\u586B\u9879"}]},me.createElement(he.default,{placeholder:"\u6587\u4EF6\u540D\u79F0\u6700\u591A\u53EF\u8F93\u5165255\u5B57",size:"large",suffix:me.createElement("span",null,".",Ur)})),me.createElement(pe.default.Item,{label:"\u5907\u6CE8",name:"description"},me.createElement(Ae.Z,{placeholder:"\u5907\u6CE8\u8BF4\u660E\uFF0C\u6700\u591A255\u5B57",size:"large"})))),onOk:()=>Ke(void 0,null,function*(){yield St.validateFields(),(0,xe.A0)({id:gn==null?void 0:gn.id,attachment_id:xn.id,filename:St.getFieldValue("title")+"."+Ur,description:St.getFieldValue("description")}).then(Tr=>{(Tr==null?void 0:Tr.status)==0&&(ie.ZP.success("\u7F16\u8F91\u6210\u529F"),Pn())})})})}},"\u7F16\u8F91"),Bn&&me.createElement("div",{style:{color:"#9096A3",cursor:"pointer"},onClick:()=>{z.default.confirm({icon:null,centered:!0,title:"\u63D0\u793A",content:"\u5220\u9664\u6570\u636E\u96C6\u4E0D\u4F1A\u5F71\u54CD\u5230\u5F15\u7528\u8BE5\u6570\u636E\u96C6\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4F46\u5220\u9664\u540E\u6570\u636E\u5C06\u4E0D\u53EF\u6062\u590D\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u5220\u9664",onOk:()=>Ke(void 0,null,function*(){(0,xe.Il)({attachment_id:xn==null?void 0:xn.id}).then(br=>{(br==null?void 0:br.status)==0&&(ie.ZP.success("\u5220\u9664\u6210\u529F"),hn({type:"user/getUserInfo"}),Pn(!0))})})})}},"\u5220\u9664")))}]}),me.createElement(z.default,{centered:!0,keyboard:!1,maskClosable:!1,destroyOnClose:!0,open:bt,title:"\u4E0A\u4F20\u6587\u4EF6",okButtonProps:{loading:Lt,disabled:Zt},width:"1000px",onOk:()=>Ke(void 0,null,function*(){const An=Rt.map(tr=>{var br;return{attachment_id:(br=tr.response)==null?void 0:br.attachment_id,description:Ft}});if(Rt.length===0){ie.ZP.info("\u8BF7\u5148\u4E0A\u4F20\u6587\u4EF6\uFF01");return}qt(!0);const xn=yield(0,Se.ZP)(`/api/data_sets/${gn==null?void 0:gn.id}/upload_attachments.json`,{method:"post",body:{attachments:An}});(xn==null?void 0:xn.status)==0&&(ie.ZP.success("\u4E0A\u4F20\u6210\u529F\uFF01"),Pn(),Ut(!1),hn({type:"user/getUserInfo"})),qt(!1)}),onCancel:()=>{if(Zt){z.default.confirm({title:"\u5173\u95ED\u5F39\u6846\u63D0\u793A",content:"\u6709\u6587\u4EF6\u672A\u4E0A\u4F20\uFF0C\u662F\u5426\u786E\u5B9A\u79BB\u5F00\uFF1F",okText:"\u79BB\u5F00",cancelText:"\u53D6\u6D88",onOk:()=>{Ut(!1)}});return}Ut(!1)},afterClose:()=>{Tt([]),$t(""),qt(!1),Jn()}},me.createElement("div",{className:re.wrap},me.createElement("div",{className:"mb10"},me.createElement("span",{style:{color:"#ff4d4f",marginRight:"5px"}},"*"),"\u9009\u62E9\u6587\u4EF6 ",me.createElement("span",{className:"c-light-black"},"(\u5355\u4E2A\u6587\u4EF6\u4E0D\u8D85\u8FC7",Xt?"100":"2","GB)")),me.createElement("div",null,me.createElement(ye.default.Dragger,et(rt({},Sr),{height:300}),me.createElement("div",null,me.createElement("i",{className:`iconfont icon-shangchuan font50 ${re.colorBlue}`})),me.createElement("div",{className:"font14 mt30"},"\u62D6\u62FD\u6587\u4EF6\u6216",me.createElement("span",{className:`${re.colorBlue} ml5`},"\u70B9\u51FB\u6B64\u5904\u4E0A\u4F20")))),me.createElement("div",{className:re.box},Rt.map(An=>me.createElement("div",{key:An.id,className:re.row},me.createElement("div",{style:{display:"flex",alignItems:"center"}},me.createElement("div",{className:re.icon},An.status==="done"&&me.createElement("i",{className:"iconfont icon-wancheng",style:{color:"#19CB70"}}),An.status==="error"&&me.createElement("i",{className:"iconfont icon-cuowu",style:{color:"#E30000",marginLeft:1,fontSize:13}})),me.createElement("div",{style:{flex:1}},me.createElement(be.Z,{title:An==null?void 0:An.name},me.createElement("div",{style:{width:"100%",color:An.status==="error"?"#E30000":"#3061D0",textDecoration:"underline"}},(0,Be.tP)(An==null?void 0:An.name,9))),An.status==="uploading"&&me.createElement(ge.Z,{strokeColor:"#3061D0",trailColor:"rgba(144, 150, 163, 0.1)",percent:An.percent,showInfo:!1,style:{width:"900px"}}))),me.createElement("i",{onClick:()=>Cr(An),className:"iconfont icon-shanchu14 font14 ml20",style:{cursor:"pointer",color:"#F65160"}})))),me.createElement("div",{style:{marginTop:"20px"}},"\u5907\u6CE8\uFF1A"),me.createElement("div",null,me.createElement(he.default,{allowClear:!0,value:Ft,onChange:An=>{$t(An.target.value)},bordered:!1,showCount:!0,maxLength:255,placeholder:"\u8BF7\u586B\u5199\u5907\u6CE8\u4FE1\u606F"})))),me.createElement(z.default,{centered:!0,keyboard:!1,maskClosable:!1,destroyOnClose:!0,open:Tn,title:"\u4E0B\u8F7D\u4FE1\u606F",width:"730px",onCancel:()=>{On(!1)},footer:null},me.createElement("div",null,me.createElement(ce.default,{dataSource:Mn,scroll:{y:47*6},className:"mt10 mb10",loading:lr,pagination:{total:er||0,onChange:(An,xn)=>Ke(void 0,null,function*(){Fn.page=An,Fn.limit=xn,pr(rt({},Fn)),yield wr()}),onShowSizeChange:(An,xn)=>Ke(void 0,null,function*(){Fn.page=1,Fn.limit=xn,pr(rt({},Fn)),yield wr()}),current:Fn==null?void 0:Fn.page,pageSize:Fn==null?void 0:Fn.limit,showTotal:An=>me.createElement(me.Fragment,null,"\u5171",me.createElement("span",{className:"ml5 mr5",style:{color:"#3061d0"}},An),"\u6761\u6570\u636E")},columns:[{title:"\u67E5\u770B\u4EBA",align:"left",width:150,dataIndex:"real_name",ellipsis:!0,render:An=>me.createElement("span",null,An||"--")},{title:"\u5355\u4F4D",align:"left",width:260,ellipsis:!0,dataIndex:"school_name",render:An=>me.createElement("span",null,An||"--")},{title:"\u90E8\u95E8",align:"left",width:150,ellipsis:!0,dataIndex:"department_name",render:An=>me.createElement("span",null,An||"--")},{title:"\u6240\u9009\u65F6\u95F4",dataIndex:"created_at",ellipsis:!0,render:An=>me.createElement("span",{style:{color:"#666666"}},An?De()(An).format("YYYY-MM-DD"):"--")}]}))))};var Xe=(0,Ot.connect)(({polls:Vt,loading:Wt,user:Ht,globalSetting:hn})=>({polls:Vt,globalSetting:hn,user:Ht,loading:Wt.effects}))(Ye),ot=Te(26227),Qe=Te(77019),ft=Te(5269),at=Te(7939),qe={flex_box_center:"flex_box_center___kjELP",flex_space_between:"flex_space_between___IoBKu",flex_box_vertical_center:"flex_box_vertical_center___NuujF",flex_box_center_end:"flex_box_center_end___Kc5UK",flex_box_column:"flex_box_column___ebFBu",reply:"reply___xDf2z",replyList:"replyList___zMH5f",comment:"comment___qHsYF",content:"content___vTju0",commentItem:"commentItem___aGdcc",commentParItem:"commentParItem___XkqkQ",submitStyle:"submitStyle___RwXx8"},Fe=Te(84493),Re=Te(59301),ne=Object.defineProperty,fe=Object.defineProperties,Me=Object.getOwnPropertyDescriptors,ze=Object.getOwnPropertySymbols,we=Object.prototype.hasOwnProperty,ve=Object.prototype.propertyIsEnumerable,Ie=(Vt,Wt,Ht)=>Wt in Vt?ne(Vt,Wt,{enumerable:!0,configurable:!0,writable:!0,value:Ht}):Vt[Wt]=Ht,$e=(Vt,Wt)=>{for(var Ht in Wt||(Wt={}))we.call(Wt,Ht)&&Ie(Vt,Ht,Wt[Ht]);if(ze)for(var Ht of ze(Wt))ve.call(Wt,Ht)&&Ie(Vt,Ht,Wt[Ht]);return Vt},Ge=(Vt,Wt)=>fe(Vt,Me(Wt)),Je=(Vt,Wt,Ht)=>new Promise((hn,cn)=>{var mn=gn=>{try{Pn(Ht.next(gn))}catch(Ln){cn(Ln)}},Bn=gn=>{try{Pn(Ht.throw(gn))}catch(Ln){cn(Ln)}},Pn=gn=>gn.done?hn(gn.value):Promise.resolve(gn.value).then(mn,Bn);Pn((Ht=Ht.apply(Vt,Wt)).next())});De().locale("ZH-cn");function ut({user:Vt,vlist:Wt=[],dispatch:Ht,params:hn,id:cn,memo_replies:mn,forumsDetail:Bn}){return Re.createElement("aside",{className:qe.comment},Wt.map(function(Pn,gn){var Ln,Kn;return Re.createElement(Qe.Z,{key:gn,className:qe.commentItem},Re.createElement(ft.Z,{span:24},Re.createElement(Qe.Z,null,Re.createElement(ft.Z,{flex:"1"},Re.createElement("a",{href:`/users/${Pn.user_login}`,target:"_blank",style:{color:"#9096A3",fontSize:"12px"}},Pn==null?void 0:Pn.username),Re.createElement("span",{style:{color:"#9096A3",fontSize:"12px",marginLeft:"10px"}},Pn.time)),(Pn.can_delete||Pn.user_id===((Ln=Vt.userInfo)==null?void 0:Ln.user_id)||Pn.user_login===((Kn=Vt.userInfo)==null?void 0:Kn.login))&&Re.createElement(ft.Z,{className:"forums-comment-delete",style:{display:"none"}},Re.createElement(be.Z,{title:"\u5220\u9664"},Re.createElement(ot.Z,{className:"current",onClick:()=>{z.default.confirm({centered:!0,width:530,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:Re.createElement("div",{className:"font16 tc"},"\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u6761\u56DE\u590D\u5417\uFF1F"),onOk:()=>Je(this,null,function*(){const sr=yield(0,Fe.sW)({id:Pn.id,memo_type:"data_set"}),nr=mn.find(ln=>ln.id===cn).children.filter(ln=>ln.id!==Pn.id);mn.find(ln=>ln.id===cn).children=nr,Ht({type:"forumsDetail/setForumsDetailData",payload:Ge($e({},Bn.forumsDetailData),{memo_replies:[...mn],memo_type:"data_set"})})})})}}))))),Re.createElement(ft.Z,null,Re.createElement(ue.Z,{value:Pn.content,style:{color:"#232B40",fontSize:"14px"}})))}))}var lt=ut,vt=Te(59301),ct=Object.defineProperty,st=Object.defineProperties,At=Object.getOwnPropertyDescriptors,mt=Object.getOwnPropertySymbols,Dt=Object.prototype.hasOwnProperty,jt=Object.prototype.propertyIsEnumerable,Et=(Vt,Wt,Ht)=>Wt in Vt?ct(Vt,Wt,{enumerable:!0,configurable:!0,writable:!0,value:Ht}):Vt[Wt]=Ht,kt=(Vt,Wt)=>{for(var Ht in Wt||(Wt={}))Dt.call(Wt,Ht)&&Et(Vt,Ht,Wt[Ht]);if(mt)for(var Ht of mt(Wt))jt.call(Wt,Ht)&&Et(Vt,Ht,Wt[Ht]);return Vt},Nt=(Vt,Wt)=>st(Vt,At(Wt)),yt=(Vt,Wt,Ht)=>new Promise((hn,cn)=>{var mn=gn=>{try{Pn(Ht.next(gn))}catch(Ln){cn(Ln)}},Bn=gn=>{try{Pn(Ht.throw(gn))}catch(Ln){cn(Ln)}},Pn=gn=>gn.done?hn(gn.value):Promise.resolve(gn.value).then(mn,Bn);Pn((Ht=Ht.apply(Vt,Wt)).next())});De().locale("ZH-cn");const Pt=({user:Vt,forumsDetail:Wt,globalSetting:Ht,loading:hn,dispatch:cn,handleClick:mn,memoId:Bn},Pn)=>{const{memo:gn,memo_replies:Ln}=Wt.forumsDetailData||{},Kn=(0,Ot.useParams)(),[sr,nr]=(0,te.useState)(""),[ln,rn]=(0,te.useState)(""),[Wn,Zn]=(0,te.useState)(-1),[Mt,Gt]=(0,te.useState)(!1),[St,Rt]=(0,te.useState)(!1),[Tt,_t]=(0,te.useState)(1);(0,te.useEffect)(()=>{Gt((gn==null?void 0:gn.reply_for_memo_count)>10)},[gn==null?void 0:gn.reply_for_memo_count]),(0,te.useEffect)(()=>{cn({type:"forumsDetail/getForumsDetailData",payload:{id:Bn,memo_type:"data_set"}})},[]);const bt=()=>yt(void 0,null,function*(){var Lt;const qt=Tt+1;_t(qt);const Ft=yield(0,Fe.z5)({id:Bn,page:qt,memo_type:"data_set"});Ft!=null&&Ft.memo_replies&&(cn({type:"forumsDetail/setForumsDetailData",payload:Nt(kt({},Wt.forumsDetailData),{memo_replies:[...Ln,...Ft.memo_replies]})}),Gt(((Lt=Ft.memo_replies)==null?void 0:Lt.length)===10))}),Ut=Lt=>{var qt,Ft,$t,Zt;return Nt(kt({},Lt),{image_url:(qt=Vt.userInfo)==null?void 0:qt.image_url,children:[],user_id:(Ft=Vt.userInfo)==null?void 0:Ft.user_id,user_login:($t=Vt.userInfo)==null?void 0:$t.login,username:(Zt=Vt.userInfo)==null?void 0:Zt.username,time:`${(0,Be.li)((new Date().getTime()-new Date(Lt.created_at).getTime())/1e3)}\u524D`})};return vt.createElement("section",{className:qe.wrap},!!(Ln!=null&&Ln.length)&&vt.createElement("aside",{className:qe.content},vt.createElement("aside",{className:qe.replyList},Ln==null?void 0:Ln.map(function(Lt,qt){var Ft,$t,Zt;return vt.createElement(Qe.Z,{gutter:[12,12],key:qt},vt.createElement(ft.Z,{flex:"40px"},vt.createElement("a",{href:`/users/${Lt.user_login}`,target:"_blank"},vt.createElement("img",{alt:"\u7528\u6237\u5934\u50CF",width:"46",height:"46",src:`${ae.Z.IMG_SERVER}/images/${Lt==null?void 0:Lt.image_url}`}))),vt.createElement(ft.Z,{flex:"1"},vt.createElement(Qe.Z,{align:"middle",className:qe.commentParItem},vt.createElement(ft.Z,{span:24},vt.createElement(Qe.Z,null,vt.createElement(ft.Z,{flex:"1"},vt.createElement("a",{href:`/users/${Lt.user_login}`,target:"_blank"},vt.createElement("span",{style:{color:"#9096A3",fontSize:"12px"}},Lt==null?void 0:Lt.username)),vt.createElement("span",{style:{color:"#9096A3",fontSize:"12px",marginLeft:"10px"}},Lt.time)),(Lt.can_delete||Lt.user_id===((Ft=Vt.userInfo)==null?void 0:Ft.user_id)||Lt.user_login===(($t=Vt.userInfo)==null?void 0:$t.login))&&vt.createElement(ft.Z,{className:"forums-comment-par-delete",style:{display:"none"}},vt.createElement(be.Z,{title:"\u5220\u9664"},vt.createElement(ot.Z,{className:"current",onClick:()=>{z.default.confirm({centered:!0,width:530,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:vt.createElement("div",{className:"font16 tc"},"\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u6761\u56DE\u590D\u5417\uFF1F"),onOk:()=>yt(this,null,function*(){const Xt=yield(0,Fe.sW)({id:Lt.id,memo_type:"data_set"}),Tn=Ln.filter(On=>On.id!==Lt.id);cn({type:"forumsDetail/setForumsDetailData",payload:Nt(kt({},Wt.forumsDetailData),{memo_replies:[...Tn],memo_type:"data_set"})})})})}}))))),vt.createElement(ft.Z,{span:24,style:{marginTop:"5px"}},vt.createElement("div",{onClick:mn},vt.createElement(ue.Z,{value:Lt.content,style:{color:"#232B40",fontSize:"14px"}}))),!!((Zt=Lt==null?void 0:Lt.children)!=null&&Zt.length)&&vt.createElement(lt,{user:Vt,id:Lt==null?void 0:Lt.id,vlist:Lt==null?void 0:Lt.children,dispatch:cn,params:Kn,memo_replies:Ln,forumsDetail:Wt}),vt.createElement(ft.Z,{span:24,className:"mt5 c-light-black"},Wn===qt?vt.createElement("aside",null,vt.createElement(se.Z,{onChange:Xt=>{rn(Xt)},height:150,isFocus:!0,placeholder:"\u6211\u8981\u56DE\u590D..."}),vt.createElement(Qe.Z,null,vt.createElement(ft.Z,{span:24,className:"tr"},vt.createElement(at.ZP,{type:"primary",size:"middle",onClick:()=>yt(this,null,function*(){if(ln==="")ie.ZP.error("\u8BF7\u8F93\u5165\u5185\u5BB9");else{const Xt=yield(0,Fe.ts)({parent_id:Lt.id,content:ln,memo_type:"data_set"});rn(null),Xt&&(Zn(-1),Ln.find(Tn=>Tn.id===Xt.parent_id).children.push(Ut(Xt)),cn({type:"forumsDetail/setForumsDetailData",payload:Nt(kt({},Wt.forumsDetailData),{memo:Nt(kt({},gn),{reply_for_memo_count:(gn==null?void 0:gn.reply_for_memo_count)+1}),memo_replies:[...Ln],memo_type:"data_set"})}))}})},"\u53D1\u9001")))):vt.createElement("div",{className:"tr",style:{textAlign:"left"}},vt.createElement("span",{className:"iconfont icon-xiaopinglun mr30 current font14",onClick:()=>Zn(qt)}),vt.createElement(be.Z,{title:Lt.user_praise?"\u53D6\u6D88\u70B9\u8D5E":"\u70B9\u8D5E"},vt.createElement("span",{className:Lt.user_praise?"c-orange":"c-gery-888"},vt.createElement("i",{className:"iconfont icon-dianzan4 mr5 current font14",onClick:()=>yt(this,null,function*(){const Xt=yield(0,Fe.vL)({id:Lt.id,container_type:"Memo",type:Lt.user_praise?0:1,memo_type:"data_set"});(Xt==null?void 0:Xt.praise_count)>=0&&(Ln.find(Tn=>Tn.id===Lt.id).user_praise=!Lt.user_praise,Ln.find(Tn=>Tn.id===Lt.id).praise_count=Xt==null?void 0:Xt.praise_count,cn({type:"forumsDetail/setForumsDetailData",payload:Nt(kt({},Wt.forumsDetailData),{memo_replies:[...Ln],memo_type:"data_set"})}))})}),Lt.praise_count>0?Lt.praise_count:"")))))))}))),Mt&&vt.createElement("aside",{className:"bg-white pb20",style:{display:"flex",justifyContent:"center",marginTop:"20px"}},vt.createElement(Qe.Z,{justify:"space-between"},vt.createElement(ft.Z,null),vt.createElement(ft.Z,null,Mt&&vt.createElement("a",{style:{color:"#3061D0",fontSize:"14px"},onClick:bt},"\u67E5\u770B\u66F4\u591A\u8BC4\u8BBA",vt.createElement("i",{className:"icon icon-zhankaixiaojiantou ",style:{fontSize:"10px",marginLeft:"3px"}}))))),vt.createElement("aside",{className:qe.reply},vt.createElement(se.Z,{onBlur:()=>Rt(!1),isFocus:St,defaultValue:sr,id:"writeForumsReviewId",onChange:Lt=>{nr(Lt)},placeholder:"\u6211\u8981\u56DE\u590D...",height:240}),vt.createElement(Qe.Z,null,vt.createElement(ft.Z,{flex:"1"}),vt.createElement(ft.Z,null,vt.createElement("div",{className:qe.submitStyle,style:{width:"60px",height:"32px",textAlign:"center"},onClick:()=>yt(void 0,null,function*(){if(sr==="")ie.ZP.error("\u8BF7\u8F93\u5165\u5185\u5BB9");else{const Lt=yield(0,Fe.ts)({parent_id:gn==null?void 0:gn.id,content:sr,memo_type:"data_set"});nr(null),Lt&&cn({type:"forumsDetail/setForumsDetailData",payload:Nt(kt({},Wt.forumsDetailData),{memo:Nt(kt({},gn),{reply_for_memo_count:(gn==null?void 0:gn.reply_for_memo_count)+1}),memo_replies:[Ut(Lt),...Ln],memo_type:"data_set"})})}})},"\u53D1\u9001")))))};var Kt=(0,Ot.connect)(({user:Vt,forumsDetail:Wt,loading:Ht,globalSetting:hn})=>({user:Vt,forumsDetail:Wt,globalSetting:hn,loading:Ht.models.forumsDetail}),null,null,{forwardRef:!0})((0,te.forwardRef)(Pt)),nn=Te(29596),xt=Te(951),Ct=Te(59301),zt=Object.defineProperty,en=Object.getOwnPropertySymbols,un=Object.prototype.hasOwnProperty,Cn=Object.prototype.propertyIsEnumerable,Nn=(Vt,Wt,Ht)=>Wt in Vt?zt(Vt,Wt,{enumerable:!0,configurable:!0,writable:!0,value:Ht}):Vt[Wt]=Ht,_n=(Vt,Wt)=>{for(var Ht in Wt||(Wt={}))un.call(Wt,Ht)&&Nn(Vt,Ht,Wt[Ht]);if(en)for(var Ht of en(Wt))Cn.call(Wt,Ht)&&Nn(Vt,Ht,Wt[Ht]);return Vt},yn=(Vt,Wt,Ht)=>new Promise((hn,cn)=>{var mn=gn=>{try{Pn(Ht.next(gn))}catch(Ln){cn(Ln)}},Bn=gn=>{try{Pn(Ht.throw(gn))}catch(Ln){cn(Ln)}},Pn=gn=>gn.done?hn(gn.value):Promise.resolve(gn.value).then(mn,Bn);Pn((Ht=Ht.apply(Vt,Wt)).next())});let Rn={public:"\u516C\u5F00\u6570\u636E\u96C6",mine:"\u6211\u7684\u6570\u636E\u96C6",share:"\u56E2\u961F\u5171\u4EAB",collect:"\u6211\u6536\u85CF\u7684"};const pn=({polls:Vt,globalSetting:Wt,loading:Ht,dispatch:hn,user:cn})=>{var mn,Bn,Pn;const gn=(0,Ot.useParams)(),[Ln]=(0,Ot.useSearchParams)(),[Kn,sr]=(0,te.useState)(!1),[nr,ln]=(0,te.useState)(1),[rn,Wn]=(0,te.useState)(null),[Zn,Mt]=(0,te.useState)(""),[Gt,St]=(0,te.useState)(),[Rt,Tt]=(0,te.useState)(1),[_t,bt]=(0,te.useState)(1),Ut=(0,te.useRef)([]),[Lt,qt]=(0,te.useState)([]),[Ft,$t]=(0,te.useState)(!1),[Zt,Xt]=(0,te.useState)(!1),[Tn,On]=(0,te.useState)(!1),[Mn,rr]=(0,te.useState)([]),[lr,hr]=(0,te.useState)(!1),[er,Qn]=(0,te.useState)(0),[Fn,pr]=(0,te.useState)({page:1,limit:10}),wr=()=>yn(void 0,null,function*(){hr(!0);const xn=yield(0,xe.iw)({container_type:rn==null?void 0:rn.container_type,container_id:rn==null?void 0:rn.container_id,page:Fn==null?void 0:Fn.page,limit:Fn==null?void 0:Fn.limit});(xn==null?void 0:xn.status)==0&&(rr(xn==null?void 0:xn.data),Qn(xn==null?void 0:xn.total_count),hr(!1))});(0,te.useEffect)(()=>{Jn(),(0,Se.ZP)("/api/teach_group_shares.json",{method:"get"}).then(xn=>{(xn==null?void 0:xn.status)==0&&qt(xn==null?void 0:xn.groups)})},[]),(0,te.useEffect)(()=>{nr==2&&Cr()},[nr,Rt]);const Sr=(xn,tr)=>(xn=Math.max(xn,0),tr=Math.max(tr,1),Math.ceil(xn/tr)),Cr=()=>{(0,xe.Ce)({id:gn==null?void 0:gn.id,page:Rt,limit:16}).then(xn=>{var tr,br;(xn==null?void 0:xn.status)==0&&(St((tr=xn==null?void 0:xn.data)==null?void 0:tr.shixuns),bt(Sr((br=xn==null?void 0:xn.data)==null?void 0:br.count,16)))})},Jn=(xn=!1)=>{Xt(!0),(0,xe.Ru)(gn==null?void 0:gn.id).then(tr=>{var br,Er;(tr==null?void 0:tr.status)==0&&(Wn(tr==null?void 0:tr.data),sr((0,Ne.Ny)()||((br=tr==null?void 0:tr.data)==null?void 0:br.is_creator)),Ut.current=(Er=tr==null?void 0:tr.data)==null?void 0:Er.share_group_ids,xn&&Mt(new Date),Xt(!1))})},yr=()=>{$t(!1)},An=()=>{Jn(),$t(!1)};return Ct.createElement(y.Z,{spinning:Zt},Ct.createElement("section",{className:x.bg},rn&&Ct.createElement(Ct.Fragment,null,Ct.createElement("div",{className:"edu-container"},Ct.createElement("aside",{className:"mt10"},Ct.createElement(je.Z,{separator:">"},Ct.createElement(je.Z.Item,null,Ct.createElement(Ot.Link,{to:"/dataset"},"\u6570\u636E\u96C6")),Ct.createElement(je.Z.Item,null,Ct.createElement(Ot.Link,{to:`/dataset?tabId=${Ln.get("tabId")}`},Rn[Ln.get("tabId")])),Ct.createElement(je.Z.Item,null,rn==null?void 0:rn.title))),Ct.createElement("aside",{className:x.wrap},Ct.createElement("div",{className:x.leftContent,style:{width:Kn?"78%":"87%"}},Ct.createElement("div",{className:x.header},Ct.createElement("div",{className:x.headerBack,onClick:()=>{Ot.history.push(`/dataset?tabId=${Ln.get("tabId")}`)}},Ct.createElement("i",{className:"iconfont icon-fanhui4 ",style:{fontSize:"10px",margin:"0 3px 0 5px"}}),"\u8FD4\u56DE"),Ct.createElement("div",{className:x.title},rn==null?void 0:rn.title),Ct.createElement("div",{className:x.time},rn==null?void 0:rn.create_at)),Ct.createElement("div",{className:x.introduction},rn==null?void 0:rn.desc),Ct.createElement("div",{className:x.bottom},((mn=rn==null?void 0:rn.user_info)==null?void 0:mn.image_url)&&Ct.createElement("img",{className:x.user_img,alt:"\u7528\u6237\u5934\u50CF",src:`${ae.Z.IMG_SERVER}/images/${(Bn=rn==null?void 0:rn.user_info)==null?void 0:Bn.image_url}`}),Ct.createElement("div",{className:x.user_name},rn==null?void 0:rn.user_info_name),(Pn=rn==null?void 0:rn.data_set_tags)==null?void 0:Pn.map((xn,tr)=>{var br;return tr<3?Ct.createElement("div",{key:tr,className:x.tags_name},xn==null?void 0:xn.tag_name):tr==3?Ct.createElement(be.Z,{key:tr,title:(br=rn==null?void 0:rn.data_set_tags)==null?void 0:br.map((Er,Hr)=>{var kr;if(Hr>2)return(Er==null?void 0:Er.tag_name)+(Hr===((kr=rn==null?void 0:rn.data_set_tags)==null?void 0:kr.length)-1?"":"\u3001")}).join("")},Ct.createElement("div",{key:tr,className:x.tags_name},"...")):null}),Ct.createElement("div",{className:x.buttonList},Ct.createElement(be.Z,{title:`\u5F15\u7528\u6570\uFF1A${rn==null?void 0:rn.used_count}`},Ct.createElement("div",{className:`${x.buttonItem} current`},Ct.createElement("i",{className:"iconfont icon-yinyong font12 mr5"}),rn==null?void 0:rn.used_count)),Ct.createElement(be.Z,{title:`\u6D4F\u89C8\u6570\uFF1A${rn==null?void 0:rn.visited_count}`},Ct.createElement("div",{className:`${x.buttonItem} current`,onClick:()=>yn(void 0,null,function*(){var xn;((0,Ne.Ny)()||((xn=cn==null?void 0:cn.userInfo)==null?void 0:xn.login)==="mfflo3p2e")&&(On(!0),Fn.page=1,Fn.limit=10,pr(_n({},Fn)),yield wr())})},Ct.createElement("i",{className:"iconfont icon-chakanrenshu font12 mr5"}),rn==null?void 0:rn.visited_count)),Ct.createElement(be.Z,{title:`\u8BC4\u8BBA\u6570\uFF1A${rn==null?void 0:rn.comment_count}`},Ct.createElement("div",{className:`${x.buttonItem} current`},Ct.createElement("i",{className:"iconfont icon-xiaopinglun font12 mr5"}),rn==null?void 0:rn.comment_count))))),Ct.createElement("div",{className:x.rightContent,style:{width:Kn?"22%":"13%"}},Kn?Ct.createElement("div",{style:{display:"flex",marginLeft:"auto"}},Ct.createElement("div",{className:x.share,onClick:()=>yn(void 0,null,function*(){z.default.confirm({centered:!0,width:530,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u5171\u4EAB\u81F3\u6559\u7814\u56E2\u961F",maskClosable:!0,icon:null,content:Ct.createElement("div",{className:`font14 ${x.overflow}`},Ct.createElement("div",{className:x.tips},"\u63D0\u793A\uFF1A\u5171\u4EAB\u540E\u7684\u6570\u636E\u96C6\u652F\u6301\u56E2\u961F\u6210\u5458\u8FDB\u884C\u7F16\u8F91\uFF0C\u5982\u9700\u64A4\u9500\u672C\u6570\u636E\u96C6\u5BF9\u9009\u4E2D\u6559\u7814\u56E2\u961F\u7684\u5206\u4EAB\uFF0C\u53D6\u6D88\u9009\u4E2D\u5E76\u786E\u5B9A\u5373\u53EF\u3002"),Ct.createElement(E.default.Group,{style:{marginTop:"10px"},defaultValue:rn==null?void 0:rn.share_group_ids,onChange:xn=>{Ut.current=xn}},Lt==null?void 0:Lt.map(xn=>Ct.createElement(E.default,{key:xn==null?void 0:xn.group_id,value:xn==null?void 0:xn.group_id},xn==null?void 0:xn.name)))),onOk:()=>{(0,xe.l5)({ids:[rn==null?void 0:rn.id],clazz:"DataSet",group_ids:Ut.current}).then(xn=>{(xn==null?void 0:xn.status)==0&&(ie.ZP.success("\u5171\u4EAB\u6210\u529F"),Jn())})}})})},"\u5171\u4EAB"),Ct.createElement("div",{className:x.publicStyle,onClick:()=>{z.default.confirm({centered:!0,okText:"\u786E\u5B9A",icon:null,cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",content:(rn==null?void 0:rn.public_status)==0?"\u7533\u8BF7\u516C\u5F00\u9700\u8981\u5F85\u5E73\u53F0\u7BA1\u7406\u5458\u5BA1\u6838\u901A\u8FC7\u540E\uFF0C\u81EA\u52A8\u516C\u5F00":(rn==null?void 0:rn.public_status)==1?"\u53D6\u6D88\u516C\u5F00\u540E\uFF0C\u5176\u4ED6\u7528\u6237\u5C06\u4E0D\u53EF\u89C1\uFF0C\u540C\u65F6\u518D\u6B21\u516C\u5F00\u9700\u8981\u91CD\u65B0\u8FDB\u884C\u7533\u8BF7":"\u64A4\u9500\u7533\u8BF7\u516C\u5F00\u540E\uFF0C\u7533\u8BF7\u8BB0\u5F55\u5C06\u5220\u9664\uFF0C\u5982\u9700\u516C\u5F00\u8BF7\u518D\u6B21\u7533\u8BF7",onOk:()=>yn(void 0,null,function*(){let xn;switch(rn==null?void 0:rn.public_status){case 0:xn=(0,xe.To)(rn==null?void 0:rn.id);break;case 1:xn=(0,xe.a6)(rn==null?void 0:rn.id);break;case 2:xn=(0,xe.Dx)(rn==null?void 0:rn.id);break;default:return}xn.then(tr=>{(tr==null?void 0:tr.status)===0&&(ie.ZP.success("\u64CD\u4F5C\u6210\u529F"),Jn())})})})}},(rn==null?void 0:rn.public_status)==0?"\u7533\u8BF7\u516C\u5F00":(rn==null?void 0:rn.public_status)==1?"\u53D6\u6D88\u516C\u5F00":"\u64A4\u9500\u7533\u8BF7\u516C\u5F00"),Ct.createElement(oe.Z,{menu:{items:[{label:Ct.createElement("div",null,"\u7F16\u8F91"),key:"4",onClick:()=>{$t(!0)}},{label:Ct.createElement("div",{onClick:()=>{z.default.confirm({centered:!0,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",icon:null,content:"\u5220\u9664\u6570\u636E\u96C6\u4E2D\u7684\u6587\u4EF6\u4E0D\u4F1A\u5F71\u54CD\u5230\u5F15\u7528\u8BE5\u6570\u636E\u96C6\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4F46\u5220\u9664\u540E\u6570\u636E\u5C06\u4E0D\u53EF\u6062\u590D\uFF0C\u8BF7\u786E\u8BA4\u662F\u5426\u5220\u9664",onOk(){return yn(this,null,function*(){(0,xe.pP)(rn==null?void 0:rn.id).then(xn=>{(xn==null?void 0:xn.status)==0&&(ie.ZP.success("\u5220\u9664\u6210\u529F"),Ot.history.push("/dataset"))})})}})}},"\u5220\u9664"),key:"5"}]}},Ct.createElement("div",{className:x.more},Ct.createElement("i",{className:"iconfont icon-gengduo6 font12"})))):Ct.createElement("div",{className:rn!=null&&rn.current_user_is_collect?x.collectActiveStyle:x.collectStyle,onClick:()=>{let xn;rn!=null&&rn.current_user_is_collect?xn=(0,xe.R9)({container_id:rn==null?void 0:rn.id,container_type:"DataSet"}):xn=(0,xe.nW)({container_id:rn==null?void 0:rn.id,container_type:"DataSet"}),xn.then(tr=>{(tr==null?void 0:tr.status)===0&&Jn()})}},Ct.createElement("i",{className:"iconfont icon-shoucang4 font12"})," ",rn==null?void 0:rn.collect_count))),Ct.createElement("div",{className:x.content},Ct.createElement("div",{style:{display:"flex",alignItems:"center"}},Ct.createElement(ee.ZP.Group,{className:x.addTypeRadio,optionType:"button",options:[{label:"\u8BE6\u60C5",value:1},{label:"\u5B9E\u8DF5\u9879\u76EE",value:2},{label:"\u8BA8\u8BBA",value:3}],onChange:xn=>{var tr;ln((tr=xn==null?void 0:xn.target)==null?void 0:tr.value)},value:nr}),Ct.createElement("div",{className:x.addBtn,onClick:()=>{window.open(`/shixuns/new?dataSetId=${gn==null?void 0:gn.id}`)}},"\u521B\u5EFA\u5B9E\u8DF5\u9879\u76EE")),nr==1&&Ct.createElement(Xe,{dataSetInfo:rn,getInfo:Jn,key:Zn,indexType:Kn}),nr==2&&Ct.createElement("div",null,Ct.createElement("div",{className:x.shixunTooltip},Ct.createElement("i",{className:"icon icon-tishi11 font12 mr10"}),"\u6E29\u99A8\u63D0\u793A\uFF1A\u4EC5\u5C55\u793A\u5F15\u7528\u8BE5\u6570\u636E\u96C6\u4E14\u516C\u5F00\u7684\u5B9E\u8DF5\u9879\u76EE"),Ct.createElement(nn.wb,{dataSource:Gt,right:23,col:4,precision:1,loading:!1,wrapWidth:1140,trackEventItems:["\u5B9E\u8DF5\u9879\u76EE","\u9996\u9875","\u5B9E\u8BAD\u5217\u8868\u67E5\u770B\u8BE6\u60C5"]}),_t>1&&Ct.createElement("div",{className:x.pageStyle},Ct.createElement("div",{className:Rt==1?x.pageUnCan:x.pageCan,style:{marginRight:"10px"},onClick:()=>{Rt>1&&Tt(Rt-1)}},"\u4E0A\u4E00\u9875"),Ct.createElement("div",{className:Rt==_t?x.pageUnCan:x.pageCan,style:{marginLeft:"10px"},onClick:()=>{Rt<_t&&Tt(Rt+1)}},"\u4E0B\u4E00\u9875"))),nr==3&&Ct.createElement(Kt,{memoId:rn==null?void 0:rn.memo_id})))),Ct.createElement(xt.Z,{dataSetInfo:rn,visible:Ft,onClose:yr,onSuccess:An}),Ct.createElement(z.default,{centered:!0,keyboard:!1,maskClosable:!1,destroyOnClose:!0,open:Tn,title:"\u6D4F\u89C8\u4FE1\u606F",width:"730px",onCancel:()=>{On(!1)},footer:null},Ct.createElement("div",null,Ct.createElement(ce.default,{dataSource:Mn,loading:lr,className:"mt10 mb10",scroll:{y:47*6},pagination:{total:er||0,onChange:(xn,tr)=>{Fn.page=xn,Fn.limit=tr,pr(_n({},Fn)),wr()},current:Fn==null?void 0:Fn.page,pageSize:Fn==null?void 0:Fn.limit,showTotal:xn=>Ct.createElement(Ct.Fragment,null,"\u5171",Ct.createElement("span",{className:"ml5 mr5",style:{color:"#3061d0"}},xn),"\u6761\u6570\u636E")},columns:[{title:"\u67E5\u770B\u4EBA",align:"left",width:150,dataIndex:"real_name",ellipsis:!0,render:xn=>Ct.createElement("span",null,xn||"--")},{title:"\u5355\u4F4D",align:"left",width:260,ellipsis:!0,dataIndex:"school_name",render:xn=>Ct.createElement("span",null,xn||"--")},{title:"\u90E8\u95E8",align:"left",width:150,ellipsis:!0,dataIndex:"department_name",render:xn=>Ct.createElement("span",null,xn||"--")},{title:"\u6240\u9009\u65F6\u95F4",dataIndex:"created_at",ellipsis:!0,render:xn=>Ct.createElement("span",{style:{color:"#666666"}},xn?De()(xn).format("YYYY-MM-DD"):"--")}]})))))};var on=(0,Ot.connect)(({polls:Vt,loading:Wt,user:Ht,globalSetting:hn})=>({polls:Vt,globalSetting:hn,user:Ht,loading:Wt.effects}))(pn)},46709:function(In,Yt,Te){"use strict";Te.d(Yt,{Z:function(){return ce}});var te=Te(59301),Ot=Te(63823),y=Te(82326),je=Te(29787),be=Te(6767),z={flex_box_center:"flex_box_center___OmLFa",flex_space_between:"flex_space_between___Pwqhp",flex_box_vertical_center:"flex_box_vertical_center___UJzms",flex_box_center_end:"flex_box_center_end___qMu25",flex_box_column:"flex_box_column___AimtA",selectList:"selectList___hGJUN",selectHeader:"selectHeader___HxdBZ",selectContent:"selectContent___oWjby",contentTitle:"contentTitle___xlVyW",contentTags:"contentTags___BGCLU",tagName:"tagName___MIGDL",tagNameActive:"tagNameActive___JCRev",activeStyle:"activeStyle___FvXnt",activeLabel:"activeLabel___RzW9T",activeValue:"activeValue___qxoch",activeItem:"activeItem___NfFjA",activeClose:"activeClose___Su7dS",activeSubmit:"activeSubmit___gjhQA"},E=Te(65212),ie=Te(59301),oe=(x,ae,re)=>new Promise((se,ue)=>{var pe=ge=>{try{ye(re.next(ge))}catch(xe){ue(xe)}},he=ge=>{try{ye(re.throw(ge))}catch(xe){ue(xe)}},ye=ge=>ge.done?se(ge.value):Promise.resolve(ge.value).then(pe,he);ye((re=re.apply(x,ae)).next())});const ee=({user:x,width:ae,selectWidth:re,tags:se,getDataSet:ue,placeholder:pe="\u5168\u90E8\u6807\u7B7E",isTagsValue:he=!1})=>{const[ye,ge]=(0,te.useState)([]),[xe,ke]=(0,te.useState)([]),[De,Be]=(0,te.useState)(!1),Ae=(0,te.useRef)(null);(0,te.useEffect)(()=>{Se()},[]);const Se=()=>oe(void 0,null,function*(){Be(!0),yield(0,E.bj)({}).then(Oe=>{(Oe==null?void 0:Oe.status)==0&&ge(Oe==null?void 0:Oe.data)}),Be(!1)}),Ee=se==null?void 0:se.map(Oe=>Oe.tag_name).join("\u3001");return ie.createElement(y.default,{onFocus:()=>{ke(se)},ref:Ae,style:{width:re?re+"px":300},placeholder:(se==null?void 0:se.length)>0?he?ie.createElement("span",{className:"c-grey-333"},Ee):`\u5DF2\u9009\u4E2D${se==null?void 0:se.length}\u4E2A\u6807\u7B7E`:pe,size:"large",dropdownStyle:{width:ae+"px",zIndex:1e3},className:z.selectStyle,dropdownRender:()=>ie.createElement("div",{className:z.selectList,style:{width:ae+"px"}},ie.createElement("div",{className:z.selectHeader},"\u8BF7\u9009\u62E91\uFF5E5\u4E2A\u6807\u7B7E"),ie.createElement(je.Z,{spinning:De},ie.createElement("div",{className:z.selectContent},ye==null?void 0:ye.map((Oe,Pe)=>{var Le;return ie.createElement("aside",{key:Pe},ie.createElement("div",{className:z.contentTitle,style:{marginTop:Pe>0?"20px":"0"}},Oe==null?void 0:Oe.tag_type_cn),ie.createElement("div",{className:z.contentTags},(Le=Oe==null?void 0:Oe.child)==null?void 0:Le.map((Ne,me)=>{var Ve;return ie.createElement("div",{key:me,className:(Ve=xe==null?void 0:xe.map(Ze=>Ze==null?void 0:Ze.id))!=null&&Ve.includes(Ne==null?void 0:Ne.id)?z.tagNameActive:z.tagName,onClick:()=>{var Ze;(Ze=xe==null?void 0:xe.map(We=>We==null?void 0:We.id))!=null&&Ze.includes(Ne==null?void 0:Ne.id)?ke(xe.filter(We=>(We==null?void 0:We.id)!=(Ne==null?void 0:Ne.id))):(xe==null?void 0:xe.length)<5?ke([...xe,Ne]):be.ZP.warning("\u6700\u591A\u53EF\u9009\u62E95\u4E2A\u6807\u7B7E")}},Ne==null?void 0:Ne.tag_name)})))}))),ie.createElement("div",{className:z.activeStyle},ie.createElement("div",{className:z.activeLabel},"\u5DF2\u9009\u6807\u7B7E:"),ie.createElement("div",{className:z.activeValue,style:{width:ae-120+"px"}},xe==null?void 0:xe.map((Oe,Pe)=>ie.createElement("div",{key:Pe,className:z.activeItem},Oe==null?void 0:Oe.tag_name,ie.createElement("i",{className:"iconfont icon-guanbi11 ml5 mr5",style:{fontSize:"10px",cursor:"pointer"},onClick:()=>{ke(xe.filter(Le=>(Le==null?void 0:Le.id)!==(Oe==null?void 0:Oe.id)))}}))))),ie.createElement("div",{style:{display:"flex",marginBottom:"20px"}},ie.createElement("div",{className:z.activeClose,onClick:Oe=>{Oe.stopPropagation(),ue([...se]),ke([]),setTimeout(()=>{Ae.current&&Ae.current.blur()},10)}},"\u53D6\u6D88"),ie.createElement("div",{className:z.activeSubmit,onClick:Oe=>{Oe.stopPropagation(),ue([...xe]),ke([]),setTimeout(()=>{Ae.current&&Ae.current.blur()},10)}},"\u786E\u8BA4")))})};var ce=(0,Ot.connect)(({user:x})=>({user:x}))(ee)},65212:function(In,Yt,Te){"use strict";Te.d(Yt,{A0:function(){return De},Ce:function(){return he},Dx:function(){return x},Il:function(){return ke},R2:function(){return pe},R9:function(){return se},Ru:function(){return ue},SG:function(){return Ae},To:function(){return ce},_S:function(){return ee},a6:function(){return ae},bj:function(){return oe},iw:function(){return Be},l5:function(){return xe},nW:function(){return re},pP:function(){return ge},pi:function(){return ye}});var te=Te(22972),Ot=Object.defineProperty,y=Object.getOwnPropertySymbols,je=Object.prototype.hasOwnProperty,be=Object.prototype.propertyIsEnumerable,z=(Se,Ee,Oe)=>Ee in Se?Ot(Se,Ee,{enumerable:!0,configurable:!0,writable:!0,value:Oe}):Se[Ee]=Oe,E=(Se,Ee)=>{for(var Oe in Ee||(Ee={}))je.call(Ee,Oe)&&z(Se,Oe,Ee[Oe]);if(y)for(var Oe of y(Ee))be.call(Ee,Oe)&&z(Se,Oe,Ee[Oe]);return Se},ie=(Se,Ee,Oe)=>new Promise((Pe,Le)=>{var Ne=Ze=>{try{Ve(Oe.next(Ze))}catch(We){Le(We)}},me=Ze=>{try{Ve(Oe.throw(Ze))}catch(We){Le(We)}},Ve=Ze=>Ze.done?Pe(Ze.value):Promise.resolve(Ze.value).then(Ne,me);Ve((Oe=Oe.apply(Se,Ee)).next())});function oe(Se){return ie(this,null,function*(){return(0,te.ZP)("/api/data_sets/tags.json",{method:"get",params:E({},Se)})})}function ee(Se){return ie(this,null,function*(){return(0,te.ZP)("/api/data_sets.json",{method:"get",params:E({},Se)})})}function ce(Se){return ie(this,null,function*(){return(0,te.ZP)(`/api/data_sets/${Se}/apply_public.json`,{method:"post"})})}function x(Se){return ie(this,null,function*(){return(0,te.ZP)(`/api/data_sets/${Se}/revoke_apply_public.json`,{method:"post"})})}function ae(Se){return ie(this,null,function*(){return(0,te.ZP)(`/api/data_sets/${Se}/cancel_public.json`,{method:"post"})})}function re(Se){return ie(this,null,function*(){return(0,te.ZP)("/api/collections.json",{method:"post",body:E({},Se)})})}function se(Se){return ie(this,null,function*(){return(0,te.ZP)("/api/collections/cancel.json",{method:"delete",body:E({},Se)})})}function ue(Se){return ie(this,null,function*(){return(0,te.ZP)(`/api/data_sets/${Se}.json`,{method:"get"})})}function pe(Se){return ie(this,null,function*(){return(0,te.ZP)(`/api/data_sets/${Se==null?void 0:Se.id}/edit_introduce.json`,{method:"put",body:E({},Se)})})}function he(Se){return ie(this,null,function*(){return(0,te.ZP)(`/api/data_sets/${Se==null?void 0:Se.id}/used_shixuns.json`,{method:"get",params:E({},Se)})})}function ye(Se){return ie(this,null,function*(){return(0,te.ZP)(`/api/shixuns/${Se}/data_sets_list.json`,{method:"get"})})}function ge(Se){return ie(this,null,function*(){return(0,te.ZP)(`/api/data_sets/${Se}/delete.json`,{method:"delete"})})}function xe(Se){return ie(this,null,function*(){return(0,te.ZP)("/api/teach_group_shares.json",{method:"post",body:E({},Se)})})}function ke(Se){return ie(this,null,function*(){return(0,te.ZP)("/api/data_sets/single_destroy_files.json",{method:"delete",body:E({},Se)})})}function De(Se){return ie(this,null,function*(){return(0,te.ZP)(`/api/data_sets/${Se==null?void 0:Se.id}/edit_file_info.json`,{method:"put",body:E({},Se)})})}function Be(Se){return ie(this,null,function*(){return(0,te.ZP)("/api/visit_logs.json",{method:"get",params:E({},Se)})})}function Ae(Se){return ie(this,null,function*(){return(0,te.ZP)(`/api/attachments/${Se==null?void 0:Se.id}/update_download.json`,{method:"get"})})}},74410:function(In,Yt,Te){"use strict";Te.d(Yt,{AL:function(){return xe},Iy:function(){return ce},Qv:function(){return re},ez:function(){return ge},jb:function(){return x}});var te=Te(32834),Ot=Te.n(te),y=Te(11690),je=Te.n(y);let be=1;function z(Se,Ee){const Oe=Se.match(/^(\s+)(?:```)/);if(Oe===null)return Ee;const Pe=Oe[1];return Ee.split(` `).map(Le=>{const Ne=Le.match(/^\s+/);if(Ne===null)return Le;const[me]=Ne;return me.length>=Pe.length?Le.slice(Pe.length):Le}).join(` `)}let E=[],ie=["