|
|
(window.webpackJsonp=window.webpackJsonp||[]).push([[160,6,8,9,10,13],{"+QRC":
|
|
|
/*!*************************************************!*\
|
|
|
!*** ./node_modules/copy-to-clipboard/index.js ***!
|
|
|
\*************************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! all exports used */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,n){"use strict";var r=n(/*! toggle-selection */"E9nw"),a={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,i,o,l,s,c,u=!1;t||(t={}),n=t.debug||!1;try{if(o=r(),l=document.createRange(),s=document.getSelection(),(c=document.createElement("span")).textContent=e,c.style.all="unset",c.style.position="fixed",c.style.top=0,c.style.clip="rect(0, 0, 0, 0)",c.style.whiteSpace="pre",c.style.webkitUserSelect="text",c.style.MozUserSelect="text",c.style.msUserSelect="text",c.style.userSelect="text",c.addEventListener("copy",(function(r){if(r.stopPropagation(),t.format)if(r.preventDefault(),void 0===r.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var i=a[t.format]||a.default;window.clipboardData.setData(i,e)}else r.clipboardData.clearData(),r.clipboardData.setData(t.format,e);t.onCopy&&(r.preventDefault(),t.onCopy(r.clipboardData))})),document.body.appendChild(c),l.selectNodeContents(c),s.addRange(l),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");u=!0}catch(r){n&&console.error("unable to copy using execCommand: ",r),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),u=!0}catch(r){n&&console.error("unable to copy using clipboardData: ",r),n&&console.error("falling back to prompt"),i=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(i,e)}}finally{s&&("function"==typeof s.removeRange?s.removeRange(l):s.removeAllRanges()),c&&document.body.removeChild(c),o()}return u}},"/GNS":
|
|
|
/*!*********************************************!*\
|
|
|
!*** ./src/assets/images/icons/search1.png ***!
|
|
|
\*********************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,n){e.exports=n.p+"static/search1.c4136dd4.png"},"1Sn+":
|
|
|
/*!*************************************************!*\
|
|
|
!*** ./src/components/Header/search-input.less ***!
|
|
|
\*************************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,n){},"1XHU":
|
|
|
/*!********************************************!*\
|
|
|
!*** ./src/components/AuthModal/index.tsx ***!
|
|
|
\********************************************/
|
|
|
/*! exports provided: default */
|
|
|
/*! exports used: default */function(e,t,n){"use strict";n(/*! antd/es/modal/style */"2qtc");var r=n(/*! antd/es/modal */"kLXV"),a=n(/*! react */"q1tI"),i=n.n(a),o=n(/*! umi */"9kvl"),l=n(/*! @/assets/images/cert/shimingrenzheng.png */"3wET"),s=n.n(l),c=n(/*! @/assets/images/cert/zhiyerenzheng.png */"bUJZ"),u=n.n(c),d=n(/*! ./index.less?modules */"Ct/S"),f=n.n(d);t.a=Object(o.a)((function(e){var t=e.paperlibrary,n=e.loading;return{paperlibrary:t,globalSetting:e.globalSetting,loading:n.effects}}))((function(e){var t=e.visible,n=e.occupationValue,a=e.onCancel,l=void 0===a?function(){}:a,c=function(){return i.a.createElement("div",{className:f.a.flexColumn},i.a.createElement("img",{className:f.a.img,src:u.a}),i.a.createElement("span",{className:f.a.content},"未职业认证"))},d=function(){return i.a.createElement("div",{className:f.a.flexColumn},i.a.createElement("img",{className:f.a.img,src:s.a}),i.a.createElement("span",{className:f.a.content},"未实名认证"))};return i.a.createElement(r.a,{centered:!0,keyboard:!1,closable:!1,destroyOnClose:!0,visible:t,title:"因为以下原因,您暂时不能进行操作",okText:"立即认证",cancelText:"取消",width:"600px",onOk:function(){l(),o.d.push("/account/certification")},onCancel:function(){l()}},i.a.createElement("div",{className:f.a.tilte},"请在完成条件后重试"),i.a.createElement("div",{className:f.a.flexRow},3===n?i.a.createElement(i.a.Fragment,null,d(),c()):2===n?c():d()))}))},"1ZF9":
|
|
|
/*!*****************************************!*\
|
|
|
!*** ./src/assets/images/Authorize.png ***!
|
|
|
\*****************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,n){e.exports=n.p+"static/Authorize.cc9c212f.png"},"3wET":
|
|
|
/*!****************************************************!*\
|
|
|
!*** ./src/assets/images/cert/shimingrenzheng.png ***!
|
|
|
\****************************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAAXNSR0IArs4c6QAACE5JREFUWAmtWH1snVUZ/533tuvYVreyjGy3Y6srTBo2srI4XbtKgFQxIrKYzeAfk8AfCzHbCkPMjPjBP0aCsjr1D01USCQ6oosyiLF8xMGqc2BHauUj1I2Ntghs7dqytuu99/j7nfOee9/73js+jKd53+d5n3Oe5/zO8zznOafX4EO2ta/bhqlJfM4adFJ1hQWyxiIrM5QNG2CY7EnKei5agMf7V5pR9X3QRv0P1pr77WaO3AGLDoKokZYlY2hBtFqLDHLse9ZE2De41hyoNiYte19AzX22nfPdT8NtnJr6UgkIAl/dTLKXwHupeM9gqzmcBpH8rm6JI7ZYm3nhBfyAQHYlFcr4NL6yTn4kEamPxkxkutevx+5Hjcmnh+u7KqB1fXbR+Az2U195UmyWnjH8E1ULvGgsKDlRghTg8MnhPQvrsPVYqxnziqV3BSCBGZuUe21LMUGUKGx6F42K14rZJ6oWeFG19+w3eGnhPLSlQUVOM34pTGfHsR95tCBPozlOFCh5q++YOj7uqyfUxhqDbAYQjxzB8JFuoJ739qRrZ22L5tKcSQx+Kb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f+x59jnMXEa9k2u5mgdrASdHBqV1BTu7hiExGEfPss6b6Rh/9PP1glMDl2xZdtA8vMjRaFTl7tLqVQN86sOukJnmx8jD3FstpTCxw8+ciH+0nvv4gFlb/v9tJbAAAAAElFTkSuQmCC"},"498V":
|
|
|
/*!****************************************!*\
|
|
|
!*** ./src/components/Header/logo.svg ***!
|
|
|
\****************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,n){e.exports=n.p+"static/logo.22b9a281.svg"},"4qgm":
|
|
|
/*!*********************************************!*\
|
|
|
!*** ./src/assets/images/icons/tx-live.png ***!
|
|
|
\*********************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAAwCAYAAABE1blzAAAIeUlEQVRoQ72aa2wU1xXHf2dm1jYEBClJGgofIFJLU0W04AdQWgJSW0UprZRIpB/aJBTxStIShWchJvbytA2lBCKKeajhQ5s2tGpFK1G1UowqKNjYBkraJCqqiCDEDZSncezdmTnVnd2FxaztmfWaa632w9459/7v75xzz71j4R61ssM6TkrYqMon3qesPjFNLt6LoWWgB5n1ttr/GcMCLKrE5qFgPJf3gRXN5XJgoMcfUIFlR/QxiqgVhyfVA/MxTWKgPuZvL51UtUyTjwdK6IAI/NLbWlQylhctWC0xPuN35Zi+gFUMfpIzoqxsLpffDoTIggssb9KvqLBJYnxD3dvUepq8OIAPquxzfCobJ8v5QgotmMAxDVoyYjAvi81KcRiWk1qPKm/RPIvHqy2T5FeFElkQgeVNWq42m8TmcU0G8ZVXC2ia5vOW47Lq2BQ5m5ehrIf6JbC0WQdbsMSH5ZbNED/R3+mYDHSL5kcqVLZOZB8imq/lvAWWHdWpOGySIqYEwvKk1mtsmtl5/M72WNk4Wf6dj8jIAqce1qGJEparsgSHQVoIar3M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X3FZibbWqlE0iCwZOdr/adWcBfNtarzqvS7tkWt1QtNE2uGGrAhNpzXty8qDLV7IjBDUy3ioszHwspk2lux5tOgHkt3xaU1quuF7V9wF+2Rpk0dwjhTXypcQ9lYdD9bB4LaPSPYPdOqsAcYh8336yulOSyF/vT7P83Gv9qVBJysAAAAAElFTkSuQmCC"},"4u4S":
|
|
|
/*!*********************************************!*\
|
|
|
!*** ./src/assets/images/icons/groups2.png ***!
|
|
|
\*********************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALoAAABSCAYAAADjGc4eAAASm0lEQVR4Xu2dd5QUVRbGfz3kJDkKCJJBAVFWRUUkGFBQEFRWFhUWmBlAoqCoMGKAVcC8CLKLBEEkKCZMgKjkqIIIKCKiMCAsUfLUntuvi+7pqeqq7q7pcbrrncMfTL10v/f1q/vuu/eWR0vmBaA/bnERiGMEPFoaSaTzLhrt4lhOV7QER8Aj8mtDKMJxlqJxeYLj4Yofpwh4ie4l+wAqcopVaFSJU1ldsRIYgfNE95K9L5dyjq/RuCCBMXFFj0MEMhHdS/ZUbkTjQzTyxqG8rkgJikAWonvJnkIvNCYmKCau2HGIgCHRfWQfg8awOJTZFSkBETAnuoaHFN4GOiUgLq7IcYaAKdG9u3oaBUlnCRpXxZncrjgJhkBIonvJ3o+ynGUlGhcnGDauuHGEgCXRfWbHupxjORol40h2V5QEQsAW0X1kb8FZPgHyJxA+rqhxgoBtovts7N3IYGqcyO6KkUAIhEV0H9nTyGBkAmHkihoHCIRNdJ+NfToaXeNAfleEBEEgMqKnkZ+9fAY0TxCcXDFzOQIREd27qw+kFCdZgUbtXI6BO/0EQCBiovts7DU4w0qgTAJg5YqYixGIiui+w2kzMlgEFMzFODg/9dLVISkPHN0PJw+b91+gGGSchTMnnJ9DcI9FSsNFTeHgL5C+DbRzmWt48mT9m5OzkvFLXAgHdsLJI072bNl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0CY/bnVXQRii0DHWkEJbYKG95ABnmSX6LFdFnc0pxEISXTPWTxaN+Ztn+US3Wng3f5ii4A50U/hydOZeT94P8rkEj22y+KO5jQCRkT3eI6T5GnPHH/ea5foTgPv9hdbBLIS/RD58t7C7C0rAyfiEj22y+KO5jQCmYm+j3yeG5m97ZvgYVyiOw28219sEfATfTd5klozZ2vAR6b8U3GJHttlcUdzGgFF9J8gbyvmb/nFrHuX6E4D7/YXWwTurLWJQnnbMGPLnlADu0SP7bK4ozmNQLe6pZn2wwGrbv8PSygpSs9Cw9cAAAAASUVORK5CYII="},"55Ip":
|
|
|
/*!***************************************************************!*\
|
|
|
!*** ./node_modules/react-router-dom/esm/react-router-dom.js ***!
|
|
|
\***************************************************************/
|
|
|
/*! exports provided: MemoryRouter, Prompt, Redirect, Route, Router, StaticRouter, Switch, generatePath, matchPath, useHistory, useLocation, useParams, useRouteMatch, withRouter, BrowserRouter, HashRouter, Link, NavLink */
|
|
|
/*! exports used: Link, NavLink */function(e,t,n){"use strict";n.d(t,"a",(function(){return v})),n.d(t,"b",(function(){return y}));var r=n(/*! react-router */"Ty5D"),a=n(/*! @babel/runtime/helpers/esm/inheritsLoose */"dI71"),i=n(/*! react */"q1tI"),o=n.n(i),l=n(/*! history */"YS25"),s=(n(/*! prop-types */"17x9"),n(/*! @babel/runtime/helpers/esm/extends */"wx14")),c=n(/*! @babel/runtime/helpers/esm/objectWithoutPropertiesLoose */"zLVn"),u=n(/*! tiny-invariant */"9R94");o.a.Component;o.a.Component;var d=function(e,t){return"function"==typeof e?e(t):e},f=function(e,t){return"string"==typeof e?Object(l.c)(e,null,null,t):e},p=function(e){return e},h=o.a.forwardRef;void 0===h&&(h=p);var m=h((function(e,t){var n=e.innerRef,r=e.navigate,a=e.onClick,i=Object(c.a)(e,["innerRef","navigate","onClick"]),l=i.target,u=Object(s.a)({},i,{onClick:function(e){try{a&&a(e)}catch(t){throw e.preventDefault(),t}e.defaultPrevented||0!==e.button||l&&"_self"!==l||function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}(e)||(e.preventDefault(),r())}});return u.ref=p!==h&&t||n,o.a.createElement("a",u)}));var v=h((function(e,t){var n=e.component,a=void 0===n?m:n,i=e.replace,l=e.to,v=e.innerRef,g=Object(c.a)(e,["component","replace","to","innerRef"]);return o.a.createElement(r.e.Consumer,null,(function(e){e||Object(u.a)(!1);var n=e.history,r=f(d(l,e.location),e.location),c=r?n.createHref(r):"",m=Object(s.a)({},g,{href:c,navigate:function(){var t=d(l,e.location);(i?n.replace:n.push)(t)}});return p!==h?m.ref=t||v:m.innerRef=v,o.a.createElement(a,m)}))})),g=function(e){return e},b=o.a.forwardRef;void 0===b&&(b=g);var y=b((function(e,t){var n=e["aria-current"],a=void 0===n?"page":n,i=e.activeClassName,l=void 0===i?"active":i,p=e.activeStyle,h=e.className,m=e.exact,y=e.isActive,x=e.location,E=e.sensitive,C=e.strict,A=e.style,O=e.to,k=e.innerRef,w=Object(c.a)(e,["aria-current","activeClassName","activeStyle","className","exact","isActive","location","sensitive","strict","style","to","innerRef"]);return o.a.createElement(r.e.Consumer,null,(function(e){e||Object(u.a)(!1);var n=x||e.location,i=f(d(O,n),n),c=i.pathname,S=c&&c.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1"),j=S?Object(r.f)(n.pathname,{path:S,exact:m,sensitive:E,strict:C}):null,N=!!(y?y(j,n):j),I=N?function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((function(e){return e})).join(" ")}(h,l):h,M=N?Object(s.a)({},A,{},p):A,T=Object(s.a)({"aria-current":N&&a||null,className:I,style:M,to:i},w);return g!==b?T.ref=t||k:T.innerRef=k,o.a.createElement(v,T)}))}))},"5D2P":
|
|
|
/*!*******************************************!*\
|
|
|
!*** ./src/assets/images/icons/done3.png ***!
|
|
|
\*******************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Module is not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r7+zu6urq2MbPMoSuavieSt9b6zJyU7+OonXVygIjWKKUOxCGFhaA4cj0AF/KS7z8D4DmMfpTIGdcQOgtgldZaJlpss9auA/B1q/Kgrhjm+08B3JuEF/ediE44T2IikiOP1Uqp7/IYDePeElFvXhwAY2nTqJCXkTiZ1XgBcT9jmplHxYEd4SR04kRER0ul0ur169dLWKVqYb7/IpVSjHB9IctSShzQWq9JQySMeyG/MI1ewhxYnqeYq2itnePYGPMmgO6iyAP4v5gTwBzl9Cta68RdnDHmWQAtz3WyOjRTTodZYSsRvZoRbLvWemeU7vDw8P2e532eETtSjZmf931/d31HtkguHdIWUw3oWmttm60NDQ1dVS6XZat6V8EOTMplitwpNJ5K7ALwQg5Da7XWszbnxphRAE/lwIxSnQnd5mMVGYWsZ///MvMK3/ePiFVjjFyADLSBvCyo0vuzj1VCo3J5kflgi5lPE9EKIprHzFIqtKO1PtiqWzLGyIb6oRyW5ZynBOCOHBhRqmNa61nHnhedjQZBcDsRycS7pg0E8kD+LZse3/d/agS5/I7XG0JpI4B9ebqsQN1NWuuWly2X7xVTvfestXfXarWDRHRTgT2aCMXMv3metzJp/5F4SymWhoaG5pfLZVlpL9k1a7VaVRs2bEi89HZyIOwu2b1tukQX3TL3OHGYsjw1GBwc7Oro6Kg7UthTA7mhn5yc3NfX1ycPQ5xbmhGYBSqPPYhINkMPAJDHHrJ4pWlTAOShx1FmvnSPPVoxbHxu43neAmauP7eRf2nTz2yI6FStViv0uc1/ndZCH8rgOooAAAAASUVORK5CYII="},"5ToH":
|
|
|
/*!**********************************************************************************************!*\
|
|
|
!*** ./src/pages/Innovation/Detail/components/CodePane/components/Commit/index.less?modules ***!
|
|
|
\**********************************************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,n){e.exports={flex_box_center:"flex_box_center___33gcj",flex_space_between:"flex_space_between___T78rP",flex_box_vertical_center:"flex_box_vertical_center___3TkLW",flex_box_center_end:"flex_box_center_end___28ci-",flex_box_column:"flex_box_column___2cYZa",commitWrap:"commitWrap___3DS6e",wrap:"wrap___27_7P",colorGray:"colorGray___1iCmm",content:"content___FXxFe",itemTime:"itemTime___31sMt",imageUrl:"imageUrl___3QbLf",blueLight:"blueLight___2waUe",divider:"divider___3hBKE",empty:"empty___3LuSi"}},"5vmQ":
|
|
|
/*!************************************************************************************!*\
|
|
|
!*** ./src/pages/Innovation/Detail/components/CodePane/DirTree/index.less?modules ***!
|
|
|
\************************************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,n){e.exports={flex_box_center:"flex_box_center___3fqXx",flex_space_between:"flex_space_between___1hBEK",flex_box_vertical_center:"flex_box_vertical_center___34bPY",flex_box_center_end:"flex_box_center_end___1cCOL",flex_box_column:"flex_box_column___3BN0C",headLeft:"headLeft___1MGfY",colorBlue:"colorBlue___2wJdL",wrap:"wrap___CkJux",nodata:"nodata___3SiLO",nodataText:"nodataText___3gtlE",content:"content___21lwj",gitCode:"gitCode___3Y_YV",ellipsis:"ellipsis___2dzoN",menu:"menu___1KAyS",overlayClass:"overlayClass___129Ah",tips:"tips___1VJre"}},"6+eU":
|
|
|
/*!************************************************************!*\
|
|
|
!*** ./node_modules/rc-pagination/es/index.js + 4 modules ***!
|
|
|
\************************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/createClass.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/createSuper.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/extends.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/inherits.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/classnames/index.js (<- Module is not an ECMAScript module) */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-pagination/es/locale/zh_CN.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/react/index.js (<- Module is not an ECMAScript module) */function(e,t,n){"use strict";n.d(t,"a",(function(){return O}));var r=n("wx14"),a=n("rePB"),i=n("VTBJ"),o=n("1OyB"),l=n("vuIU"),s=n("Ji7U"),c=n("LK+K"),u=n("q1tI"),d=n.n(u),f=n("TSYQ"),p=n.n(f),h=function(e){var t,n="".concat(e.rootPrefixCls,"-item"),r=p()(n,"".concat(n,"-").concat(e.page),(t={},Object(a.a)(t,"".concat(n,"-active"),e.active),Object(a.a)(t,e.className,!!e.className),Object(a.a)(t,"".concat(n,"-disabled"),!e.page),t));return d.a.createElement("li",{title:e.showTitle?e.page:null,className:r,onClick:function(){e.onClick(e.page)},onKeyPress:function(t){e.onKeyPress(t,e.onClick,e.page)},tabIndex:"0"},e.itemRender(e.page,"page",d.a.createElement("a",{rel:"nofollow"},e.page)))},m=13,v=38,g=40,b=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(){var e;Object(o.a)(this,n);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return(e=t.call.apply(t,[this].concat(a))).state={goInputText:""},e.buildOptionText=function(t){return"".concat(t," ").concat(e.props.locale.items_per_page)},e.changeSize=function(t){e.props.changeSize(Number(t))},e.handleChange=function(t){e.setState({goInputText:t.target.value})},e.handleBlur=function(t){var n=e.props,r=n.goButton,a=n.quickGo,i=n.rootPrefixCls,o=e.state.goInputText;r||""===o||t.relatedTarget&&(t.relatedTarget.className.indexOf("".concat(i,"-prev"))>=0||t.relatedTarget.className.indexOf("".concat(i,"-next"))>=0)||(e.setState({goInputText:""}),a(e.getValidValue()))},e.go=function(t){""!==e.state.goInputText&&(t.keyCode!==m&&"click"!==t.type||(e.setState({goInputText:""}),e.props.quickGo(e.getValidValue())))},e}return Object(l.a)(n,[{key:"getValidValue",value:function(){var e=this.state,t=e.goInputText,n=e.current;return!t||isNaN(t)?n:Number(t)}},{key:"getPageSizeOptions",value:function(){var e=this.props,t=e.pageSize,n=e.pageSizeOptions;return n.some((function(e){return e.toString()===t.toString()}))?n:n.concat([t.toString()]).sort((function(e,t){return(isNaN(Number(e))?0:Number(e))-(isNaN(Number(t))?0:Number(t))}))}},{key:"render",value:function(){var e=this,t=this.props,n=t.pageSize,r=t.locale,a=t.rootPrefixCls,i=t.changeSize,o=t.quickGo,l=t.goButton,s=t.selectComponentClass,c=t.buildOptionText,u=t.selectPrefixCls,f=t.disabled,p=this.state.goInputText,h="".concat(a,"-options"),m=s,v=null,g=null,b=null;if(!i&&!o)return null;var y=this.getPageSizeOptions();if(i&&m){var x=y.map((function(t,n){return d.a.createElement(m.Option,{key:n,value:t.toString()},(c||e.buildOptionText)(t))}));v=d.a.createElement(m,{disabled:f,prefixCls:u,showSearch:!1,className:"".concat(h,"-size-changer"),optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(n||y[0]).toString(),onChange:this.changeSize,getPopupContainer:function(e){return e.parentNode}},x)}return o&&(l&&(b="boolean"==typeof l?d.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:f,className:"".concat(h,"-quick-jumper-button")},r.jump_to_confirm):d.a.createElement("span",{onClick:this.go,onKeyUp:this.go},l)),g=d.a.createElement("div",{className:"".concat(h,"-quick-jumper")},r.jump_to,d.a.createElement("input",{disabled:f,type:"text",value:p,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),r.page,b)),d.a.createElement("li",{className:"".concat(h)},v,g)}}]),n}(d.a.Component);b.defaultProps={pageSizeOptions:["10","20","50","100"]};var y=b,x=n("N2Kk");function E(){}function C(e,t,n){var r=void 0===e?t.pageSize:e;return Math.floor((n.total-1)/r)+1}var A=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(e){var r;Object(o.a)(this,n),(r=t.call(this,e)).getJumpPrevPage=function(){return Math.max(1,r.state.current-(r.props.showLessItems?3:5))},r.getJumpNextPage=function(){return Math.min(C(void 0,r.state,r.props),r.state.current+(r.props.showLessItems?3:5))},r.getItemIcon=function(e,t){var n=r.props.prefixCls,a=e||d.a.createElement("button",{type:"button","aria-label":t,className:"".concat(n,"-item-link")});return"function"==typeof e&&(a=d.a.createElement(e,Object(i.a)({},r.props))),a},r.savePaginationNode=function(e){r.paginationNode=e},r.isValid=function(e){return"number"==typeof(t=e)&&isFinite(t)&&Math.floor(t)===t&&e!==r.state.current;var t},r.shouldDisplayQuickJumper=function(){var e=r.props,t=e.showQuickJumper,n=e.pageSize;return!(e.total<=n)&&t},r.handleKeyDown=function(e){e.keyCode!==v&&e.keyCode!==g||e.preventDefault()},r.handleKeyUp=function(e){var t=r.getValidValue(e);t!==r.state.currentInputValue&&r.setState({currentInputValue:t}),e.keyCode===m?r.handleChange(t):e.keyCode===v?r.handleChange(t-1):e.keyCode===g&&r.handleChange(t+1)},r.changePageSize=function(e){var t=r.state.current,n=C(e,r.state,r.props);t=t>n?n:t,0===n&&(t=r.state.current),"number"==typeof e&&("pageSize"in r.props||r.setState({pageSize:e}),"current"in r.props||r.setState({current:t,currentInputValue:t})),r.props.onShowSizeChange(t,e),"onChange"in r.props&&r.props.onChange&&r.props.onChange(t,e)},r.handleChange=function(e){var t=r.props.disabled,n=e;if(r.isValid(n)&&!t){var a=C(void 0,r.state,r.props);n>a?n=a:n<1&&(n=1),"current"in r.props||r.setState({current:n,currentInputValue:n});var i=r.state.pageSize;return r.props.onChange(n,i),n}return r.state.current},r.prev=function(){r.hasPrev()&&r.handleChange(r.state.current-1)},r.next=function(){r.hasNext()&&r.handleChange(r.state.current+1)},r.jumpPrev=function(){r.handleChange(r.getJumpPrevPage())},r.jumpNext=function(){r.handleChange(r.getJumpNextPage())},r.hasPrev=function(){return r.state.current>1},r.hasNext=function(){return r.state.current<C(void 0,r.state,r.props)},r.runIfEnter=function(e,t){if("Enter"===e.key||13===e.charCode){for(var n=arguments.length,r=new Array(n>2?n-2:0),a=2;a<n;a++)r[a-2]=arguments[a];t.apply(void 0,r)}},r.runIfEnterPrev=function(e){r.runIfEnter(e,r.prev)},r.runIfEnterNext=function(e){r.runIfEnter(e,r.next)},r.runIfEnterJumpPrev=function(e){r.runIfEnter(e,r.jumpPrev)},r.runIfEnterJumpNext=function(e){r.runIfEnter(e,r.jumpNext)},r.handleGoTO=function(e){e.keyCode!==m&&"click"!==e.type||r.handleChange(r.state.currentInputValue)};var a=e.onChange!==E;"current"in e&&!a&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var l=e.defaultCurrent;"current"in e&&(l=e.current);var s=e.defaultPageSize;return"pageSize"in e&&(s=e.pageSize),l=Math.min(l,C(s,void 0,e)),r.state={current:l,currentInputValue:l,pageSize:s},r}return Object(l.a)(n,[{key:"componentDidUpdate",value:function(e,t){var n=this.props.prefixCls;if(t.current!==this.state.current&&this.paginationNode){var r=this.paginationNode.querySelector(".".concat(n,"-item-").concat(t.current));r&&document.activeElement===r&&r.blur()}}},{key:"getValidValue",value:function(e){var t=e.target.value,n=C(void 0,this.state,this.props),r=this.state.currentInputValue;return""===t?t:isNaN(Number(t))?r:t>=n?n:Number(t)}},{key:"getShowSizeChanger",value:function(){var e=this.props,t=e.showSizeChanger,n=e.total,r=e.totalBoundaryShowSizeChanger;return void 0!==t?t:n>r}},{key:"renderPrev",value:function(e){var t=this.props,n=t.prevIcon,r=(0,t.itemRender)(e,"prev",this.getItemIcon(n,"prev page")),a=!this.hasPrev();return Object(u.isValidElement)(r)?Object(u.cloneElement)(r,{disabled:a}):r}},{key:"renderNext",value:function(e){var t=this.props,n=t.nextIcon,r=(0,t.itemRender)(e,"next",this.getItemIcon(n,"next page")),a=!this.hasNext();return Object(u.isValidElement)(r)?Object(u.cloneElement)(r,{disabled:a}):r}},{key:"render",value:function(){var e=this,t=this.props,n=t.prefixCls,i=t.className,o=t.style,l=t.disabled,s=t.hideOnSinglePage,c=t.total,f=t.locale,m=t.showQuickJumper,v=t.showLessItems,g=t.showTitle,b=t.showTotal,x=t.simple,E=t.itemRender,A=t.showPrevNextJumpers,O=t.jumpPrevIcon,k=t.jumpNextIcon,w=t.selectComponentClass,S=t.selectPrefixCls,j=t.pageSizeOptions,N=this.state,I=N.current,M=N.pageSize,T=N.currentInputValue;if(!0===s&&c<=M)return null;var D=C(void 0,this.state,this.props),R=[],L=null,B=null,P=null,K=null,F=null,z=m&&m.goButton,Q=v?1:2,W=I-1>0?I-1:0,H=I+1<D?I+1:D,J=Object.keys(this.props).reduce((function(t,n){return"data-"!==n.substr(0,5)&&"aria-"!==n.substr(0,5)&&"role"!==n||(t[n]=e.props[n]),t}),{});if(x)return z&&(F="boolean"==typeof z?d.a.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},f.jump_to_confirm):d.a.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},z),F=d.a.createElement("li",{title:g?"".concat(f.jump_to).concat(I,"/").concat(D):null,className:"".concat(n,"-simple-pager")},F)),d.a.createElement("ul",Object(r.a)({className:p()(n,"".concat(n,"-simple"),Object(a.a)({},"".concat(n,"-disabled"),l),i),style:o,ref:this.savePaginationNode},J),d.a.createElement("li",{title:g?f.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:p()("".concat(n,"-prev"),Object(a.a)({},"".concat(n,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},this.renderPrev(W)),d.a.createElement("li",{title:g?"".concat(I,"/").concat(D):null,className:"".concat(n,"-simple-pager")},d.a.createElement("input",{type:"text",value:T,disabled:l,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,size:"3"}),d.a.createElement("span",{className:"".concat(n,"-slash")},"/"),D),d.a.createElement("li",{title:g?f.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:p()("".concat(n,"-next"),Object(a.a)({},"".concat(n,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(H)),F);if(D<=3+2*Q){var U={locale:f,rootPrefixCls:n,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:g,itemRender:E};D||R.push(d.a.createElement(h,Object(r.a)({},U,{key:"noPager",page:D,className:"".concat(n,"-disabled")})));for(var V=1;V<=D;V+=1){var G=I===V;R.push(d.a.createElement(h,Object(r.a)({},U,{key:V,page:V,active:G})))}}else{var Y=v?f.prev_3:f.prev_5,Z=v?f.next_3:f.next_5;A&&(L=d.a.createElement("li",{title:g?Y:null,key:"prev",onClick:this.jumpPrev,tabIndex:"0",onKeyPress:this.runIfEnterJumpPrev,className:p()("".concat(n,"-jump-prev"),Object(a.a)({},"".concat(n,"-jump-prev-custom-icon"),!!O))},E(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(O,"prev page"))),B=d.a.createElement("li",{title:g?Z:null,key:"next",tabIndex:"0",onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:p()("".concat(n,"-jump-next"),Object(a.a)({},"".concat(n,"-jump-next-custom-icon"),!!k))},E(this.getJumpNextPage(),"jump-next",this.getItemIcon(k,"next page")))),K=d.a.createElement(h,{locale:f,last:!0,rootPrefixCls:n,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:D,page:D,active:!1,showTitle:g,itemRender:E}),P=d.a.createElement(h,{locale:f,rootPrefixCls:n,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:g,itemRender:E});var q=Math.max(1,I-Q),X=Math.min(I+Q,D);I-1<=Q&&(X=1+2*Q),D-I<=Q&&(q=D-2*Q);for(var _=q;_<=X;_+=1){var $=I===_;R.push(d.a.createElement(h,{locale:f,rootPrefixCls:n,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:_,page:_,active:$,showTitle:g,itemRender:E}))}I-1>=2*Q&&3!==I&&(R[0]=Object(u.cloneElement)(R[0],{className:"".concat(n,"-item-after-jump-prev")}),R.unshift(L)),D-I>=2*Q&&I!==D-2&&(R[R.length-1]=Object(u.cloneElement)(R[R.length-1],{className:"".concat(n,"-item-before-jump-next")}),R.push(B)),1!==q&&R.unshift(P),X!==D&&R.push(K)}var ee=null;b&&(ee=d.a.createElement("li",{className:"".concat(n,"-total-text")},b(c,[0===c?0:(I-1)*M+1,I*M>c?c:I*M])));var te=!this.hasPrev()||!D,ne=!this.hasNext()||!D;return d.a.createElement("ul",Object(r.a)({className:p()(n,i,Object(a.a)({},"".concat(n,"-disabled"),l)),style:o,unselectable:"unselectable",ref:this.savePaginationNode},J),ee,d.a.createElement("li",{title:g?f.prev_page:null,onClick:this.prev,tabIndex:te?null:0,onKeyPress:this.runIfEnterPrev,className:p()("".concat(n,"-prev"),Object(a.a)({},"".concat(n,"-disabled"),te)),"aria-disabled":te},this.renderPrev(W)),R,d.a.createElement("li",{title:g?f.next_page:null,onClick:this.next,tabIndex:ne?null:0,onKeyPress:this.runIfEnterNext,className:p()("".concat(n,"-next"),Object(a.a)({},"".concat(n,"-disabled"),ne)),"aria-disabled":ne},this.renderNext(H)),d.a.createElement(y,{disabled:l,locale:f,rootPrefixCls:n,selectComponentClass:w,selectPrefixCls:S,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:I,pageSize:M,pageSizeOptions:j,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:z}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n={};if("current"in e&&(n.current=e.current,e.current!==t.current&&(n.currentInputValue=n.current)),"pageSize"in e&&e.pageSize!==t.pageSize){var r=t.current,a=C(e.pageSize,t,e);r=r>a?a:r,"current"in e||(n.current=r,n.currentInputValue=r),n.pageSize=e.pageSize}return n}}]),n}(d.a.Component);A.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:E,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:E,locale:x.a,style:{},itemRender:function(e,t,n){return n},totalBoundaryShowSizeChanger:50};var O=A},"6Fuo":
|
|
|
/*!******************************************************************!*\
|
|
|
!*** ./src/components/Header/components/Join/index.less?modules ***!
|
|
|
\******************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,n){e.exports={flex_box_center:"flex_box_center___3p8A0",flex_space_between:"flex_space_between___2wMwo",flex_box_vertical_center:"flex_box_vertical_center___2fKhV",flex_box_center_end:"flex_box_center_end___27Yk8",flex_box_column:"flex_box_column___3Khbo",rightMenu:"rightMenu___20Eel",joinMenu:"joinMenu___2blJt",joinBoard:"joinBoard___2XUXK",joinCol:"joinCol___3o5gp"}},"6RRn":
|
|
|
/*!*******************************************!*\
|
|
|
!*** ./node_modules/rc-table/es/index.js ***!
|
|
|
\*******************************************/
|
|
|
/*! exports provided: Summary, Column, ColumnGroup, INTERNAL_COL_DEFINE, default */
|
|
|
/*! exports used: INTERNAL_COL_DEFINE, Summary, default */function(e,t,n){"use strict";var r=n(/*! ./Table */"wCXF"),a=n(/*! ./Footer */"n6Qo");n.d(t,"b",(function(){return a.a}));n(/*! ./sugar/Column */"IBYe"),n(/*! ./sugar/ColumnGroup */"6eGT");var i=n(/*! ./utils/legacyUtil */"hW8S");n.d(t,"a",(function(){return i.a})),t.c=r.b},"6eGT":
|
|
|
/*!*******************************************************!*\
|
|
|
!*** ./node_modules/rc-table/es/sugar/ColumnGroup.js ***!
|
|
|
\*******************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/*! exports used: default */function(e,t,n){"use strict";t.a=function(e){return null}},"7ZXX":
|
|
|
/*!**********************************************!*\
|
|
|
!*** ./src/assets/images/classrooms/err.png ***!
|
|
|
\**********************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,n){e.exports=n.p+"static/err.6e7c5817.png"},"7ahc":
|
|
|
/*!*************************************************************!*\
|
|
|
!*** ./src/components/markdown-editor/code-block/index.tsx ***!
|
|
|
\*************************************************************/
|
|
|
/*! exports provided: default, MyCodeMirror */
|
|
|
/*! exports used: MyCodeMirror, default */function(e,t,n){"use strict";n.d(t,"a",(function(){return v}));var r=n(/*! ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/objectSpread2 */"k1fw"),a=n(/*! ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/extends */"0Owb"),i=(n(/*! antd/es/button/style */"+L6B"),n(/*! antd/es/button */"2/Rp")),o=(n(/*! antd/es/form/style */"y8nQ"),n(/*! antd/es/form */"Vl3Y")),l=n(/*! ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/slicedToArray */"tJVT"),s=(n(/*! antd/es/select/style */"OaEy"),n(/*! antd/es/select */"2fM7")),c=n(/*! react */"q1tI"),u=n.n(c),d=n(/*! codemirror */"VrN/"),f=n.n(d),p=(n(/*! codemirror/lib/codemirror.css */"p77/"),n(/*! codemirror/theme/blackboard.css */"c5Ni"),s.a.Option),h={labelCol:{span:4},wrapperCol:{span:20}},m={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"]};function v(e){var t=e.value,n=e.onChange,a=e.mode,i=e.options,o=void 0===i?{}:i,s=Object(c.useRef)(),d=Object(c.useState)(),p=Object(l.a)(d,2),h=p[0],m=p[1];return Object(c.useEffect)((function(){if(h){function e(e){var t=e.getValue();n&&n(t)}return h.on("change",e),function(){h.off("change",e)}}}),[h,n]),Object(c.useEffect)((function(){h&&h.setOption("mode",a)}),[h,a]),Object(c.useEffect)((function(){h&&(t===h.getValue()&&""!==t||setTimeout((function(){h.setValue(t||" ")}),300))}),[h,t]),Object(c.useEffect)((function(){if(s.current&&!h){var e=f.a.fromTextArea(s.current,Object(r.a)({mode:a,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},o));m(e)}}),[s.current,h]),u.a.createElement("div",{className:"my-codemirror-container"},u.a.createElement("textarea",{ref:s}))}t.b=function(e){var t=e.callback,n=e.onCancel,r=Object(c.useState)("python"),d=Object(l.a)(r,2),f=d[0],g=d[1];return u.a.createElement(o.a,Object(a.a)({},h,{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:function(e){t(e)}}),u.a.createElement(o.a.Item,{label:"代码语言",name:"language"},u.a.createElement(s.a,{onChange:function(e){g(m[e][1])}},Object.keys(m).map((function(e){return u.a.createElement(p,{key:e,value:e},m[e][0])})))),u.a.createElement(o.a.Item,{label:"代码内容",name:"content",rules:[{required:!0,message:"请输入代码内容"}]},u.a.createElement(v,{mode:f})),u.a.createElement("div",{className:"flex-container flex-end"},u.a.createElement(i.a,{type:"primary",htmlType:"submit",style:{marginRight:10}},"确定"),u.a.createElement(i.a,{type:"ghost",onClick:n},"取消")))}},"7v3h":
|
|
|
/*!**************************************!*\
|
|
|
!*** ./src/assets/images/empty2.png ***!
|
|
|
\**************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,n){e.exports=n.p+"static/empty2.dd73f390.png"},"8/bI":
|
|
|
/*!*************************************!*\
|
|
|
!*** ./src/assets/images/empty.png ***!
|
|
|
\*************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,n){e.exports=n.p+"static/empty.8918e228.png"},"815F":
|
|
|
/*!***************************************************!*\
|
|
|
!*** ./node_modules/rc-tree/es/utils/treeUtil.js ***!
|
|
|
\***************************************************/
|
|
|
/*! exports provided: getKey, warningWithoutKey, convertTreeToData, flattenTreeData, traverseDataNodes, convertDataToEntities, getTreeNodeProps, convertNodePropsToEventData */
|
|
|
/*! exports used: convertDataToEntities, convertNodePropsToEventData, convertTreeToData, flattenTreeData, getKey, getTreeNodeProps */function(e,t,n){"use strict";n.d(t,"e",(function(){return c})),n.d(t,"c",(function(){return u})),n.d(t,"d",(function(){return d})),n.d(t,"a",(function(){return p})),n.d(t,"f",(function(){return h})),n.d(t,"b",(function(){return m}));var r=n(/*! @babel/runtime/helpers/esm/toConsumableArray */"KQm4"),a=n(/*! @babel/runtime/helpers/esm/objectSpread2 */"VTBJ"),i=n(/*! @babel/runtime/helpers/esm/objectWithoutProperties */"Ff2n"),o=n(/*! rc-util/es/Children/toArray */"Zm9Q"),l=n(/*! rc-util/es/warning */"Kwbf"),s=n(/*! ../util */"OZM5");function c(e,t){return null!=e?e:t}function u(e){return function e(t){return Object(o.a)(t).map((function(t){if(!Object(s.i)(t))return Object(l.a)(!t,"Tree/TreeNode can only accept TreeNode as children."),null;var n=t.key,r=t.props,o=r.children,c=Object(i.a)(r,["children"]),u=Object(a.a)({key:n},c),d=e(o);return d.length&&(u.children=d),u})).filter((function(e){return e}))}(e)}function d(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=new Set(!0===t?[]:t),i=[];function o(e){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return e.map((function(u,d){var f=Object(s.h)(l?l.pos:"0",d),p=c(u.key,f),h=Object(a.a)(Object(a.a)({},u),{},{parent:l,pos:f,children:null,data:u,isStart:[].concat(Object(r.a)(l?l.isStart:[]),[0===d]),isEnd:[].concat(Object(r.a)(l?l.isEnd:[]),[d===e.length-1])});return i.push(h),!0===t||n.has(p)?h.children=o(u.children||[],h):h.children=[],h}))}return o(e),i}function f(e,t,n){var r;n?"string"==typeof n?r=function(e){return e[n]}:"function"==typeof n&&(r=function(e){return n(e)}):r=function(e,t){return c(e.key,t)},function n(a,i,o){var l=a?a.children:e,c=a?Object(s.h)(o.pos,i):"0";if(a){var u=r(a,c),d={node:a,index:i,pos:c,key:u,parentPos:o.node?o.pos:null,level:o.level+1};t(d)}l&&l.forEach((function(e,t){n(e,t,{node:a,pos:c,level:o?o.level+1:-1})}))}(null)}function p(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.initWrapper,r=t.processEntity,a=t.onProcessFinished,i=arguments.length>2?arguments[2]:void 0,o={},l={},s={posEntities:o,keyEntities:l};return n&&(s=n(s)||s),f(e,(function(e){var t=e.node,n=e.index,a=e.pos,i=e.key,u=e.parentPos,d={node:t,index:n,key:i,pos:a,level:e.level},f=c(i,a);o[a]=d,l[f]=d,d.parent=o[u],d.parent&&(d.parent.children=d.parent.children||[],d.parent.children.push(d)),r&&r(d,s)}),i),a&&a(s),s}function h(e,t){var n=t.expandedKeys,r=t.selectedKeys,a=t.loadedKeys,i=t.loadingKeys,o=t.checkedKeys,l=t.halfCheckedKeys,s=t.dragOverNodeKey,c=t.dropPosition,u=t.keyEntities[e];return{eventKey:e,expanded:-1!==n.indexOf(e),selected:-1!==r.indexOf(e),loaded:-1!==a.indexOf(e),loading:-1!==i.indexOf(e),checked:-1!==o.indexOf(e),halfChecked:-1!==l.indexOf(e),pos:String(u?u.pos:""),dragOver:s===e&&0===c,dragOverGapTop:s===e&&-1===c,dragOverGapBottom:s===e&&1===c}}function m(e){var t=e.data,n=e.expanded,r=e.selected,i=e.checked,o=e.loaded,s=e.loading,c=e.halfChecked,u=e.dragOver,d=e.dragOverGapTop,f=e.dragOverGapBottom,p=e.pos,h=e.active,m=Object(a.a)(Object(a.a)({},t),{},{expanded:n,selected:r,checked:i,loaded:o,loading:s,halfChecked:c,dragOver:u,dragOverGapTop:d,dragOverGapBottom:f,pos:p,active:h});return"props"in m||Object.defineProperty(m,"props",{get:function(){return Object(l.a)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),m}},"A/g1":
|
|
|
/*!*******************************************!*\
|
|
|
!*** ./src/assets/images/icons/done1.png ***!
|
|
|
\*******************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAACXBIWXMAAAsTAAALEwEAmpwYAAAF92lUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNi4wLWMwMDMgNzkuMTY0NTI3LCAyMDIwLzEwLzE1LTE3OjQ4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qQhbG/Qvl9C2OSIqMWvwHasUdWSW6Umojbh/VPNgTlOCCLWElsOB3hO7BL6XLHfCqOaXuYsA466aPR6XnAZQ8qHKB4fWJP4kNV7SrV3ymqwNVAFiTUe85HzLedaKNxfd/h4FvuPdoA9Hvj7ftmhMAkFbZyaxaQH1a3XwurL9tp4kN7fsUQz5fTnxbGH8GFt7DcwpecTuMFmlIaZ+bjOgvF2u7d/gnIWZR+Q1KPowcIIaAhQSarqmH/xE0TpQbb92M9uT7kdz+/HqfDB0EcF/ZRi1ggYFER/cYcMtMOO3jzlmVjXKDrkt5uv9are9ZLJ8L6UcJ+HplVotygVRlYLFwM4GWf2njl/ymq1fqrSgM3J1Sfz5Rnd15ulp/tiGtPV6h0aIwaCDxUPc/F8sfOQdqTKnbrvjMf9fOK7ZLCyv8Jom1s9qvsHANttQw4dhY++6BW+sKFlNJr7E9K6wOZEoT0YU3ogvXm5OSMK5KQ347v7oggZbr3j/+PWwUnoj9jyHCk+OP7p3Kry+6nL33uvazqbD+6+W35RDmrtGOPW8Va7JcjzemtC+frTKWfgJyCQmxI/GZ7x+warfdUKy/rj47UZXdnlHZXHprJWBcFKZsGX1k16t2spI7oqbr3iOTkdzGyz7z8tK5s4eAN4UiHxx5dO94Ka2jLd2Gq95TI/e9tXoqbBytZLJzwAUGdY+273nc6Y294z3p1sRW2ZhSt02Gsg+eDxknyl07FYWRY8I+aZptYx27B0Bw/Bp3faHRcs13EsCWiWpjZ8DEU+Ecxe7IKjVl5GMy8zAJMQSIwbH27rL+7FH2jUzTNfUwgMMAkFiFlf5MrstviA4PU61HIuo1KQRCdkGeJCDJoCQkkkzyOFVF4mOxyv9u8x8opnU6UeBF0wAAAABJRU5ErkJggg=="},BU3w:
|
|
|
/*!***************************************************!*\
|
|
|
!*** ./node_modules/rc-util/es/Dom/dynamicCSS.js ***!
|
|
|
\***************************************************/
|
|
|
/*! exports provided: injectCSS, updateCSS */
|
|
|
/*! exports used: updateCSS */function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(/*! ./canUseDom */"MNnm");function a(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function i(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!Object(r.a)())return null;var i,o=document.createElement("style");(null===(t=n.csp)||void 0===t?void 0:t.nonce)&&(o.nonce=null===(i=n.csp)||void 0===i?void 0:i.nonce);o.innerHTML=e;var l=a(n),s=l.firstChild;return n.prepend&&l.prepend?l.prepend(o):n.prepend&&s?l.insertBefore(o,s):l.appendChild(o),o}var o=new Map;function l(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=a(n);if(!o.has(r)){var l=i("",n),s=l.parentNode;o.set(r,s),s.removeChild(l)}var c=Array.from(o.get(r).children).find((function(e){return"STYLE"===e.tagName&&e["rc-util-key"]===t}));if(c){var u,d,f;if((null===(u=n.csp)||void 0===u?void 0:u.nonce)&&c.nonce!==(null===(d=n.csp)||void 0===d?void 0:d.nonce))c.nonce=null===(f=n.csp)||void 0===f?void 0:f.nonce;return c.innerHTML!==e&&(c.innerHTML=e),c}var p=i(e,n);return p["rc-util-key"]=t,p}},"Cs+z":
|
|
|
/*!******************************************!*\
|
|
|
!*** ./src/components/HomeModal/jqr.png ***!
|
|
|
\******************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,n){e.exports=n.p+"static/jqr.b801d45b.png"},"Ct/S":
|
|
|
/*!*****************************************************!*\
|
|
|
!*** ./src/components/AuthModal/index.less?modules ***!
|
|
|
\*****************************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,n){e.exports={tilte:"tilte___1Tz7i",flexRow:"flexRow___3w9_D",flexColumn:"flexColumn___2HzC_",footerWrap:"footerWrap___12F5M",img:"img___3ED9Z",content:"content___rqPDY",modalContent:"modalContent___2h4ne"}},Cy2x:
|
|
|
/*!**********************************************************************!*\
|
|
|
!*** ./src/pages/Innovation/Tasks/Collaborate/index.tsx + 2 modules ***!
|
|
|
\**********************************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@ant-design/icons/es/icons/PlusOutlined.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/slicedToArray.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/regenerator/index.js (<- Module is not an ECMAScript module) */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./src/pages/Innovation/Tasks/Collaborate/components/ChangeManagerModal/index.less?modules (<- Module is not an ECMAScript module) */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./src/pages/Innovation/Tasks/Collaborate/index.less?modules (<- Module is not an ECMAScript module) */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./src/.umi-production/core/umiExports.ts */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./src/components/Header/index.tsx */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./src/components/SelectUser/index.tsx */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./src/utils/env.ts */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./src/utils/fetch.ts */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/button/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/button/style/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/message/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/message/style/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/modal/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/modal/style/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/pagination/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/pagination/style/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/radio/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/radio/style/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/skeleton/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/skeleton/style/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/tabs/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/tabs/style/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/react-router/esm/react-router.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/react/index.js (<- Module is not an ECMAScript module) */function(e,t,n){"use strict";n("DjyN");var r=n("NUBc"),a=(n("cWXX"),n("/ezw")),i=(n("+L6B"),n("2/Rp")),o=(n("miYZ"),n("tsqr")),l=(n("2qtc"),n("kLXV")),s=n("9og8"),c=n("tJVT"),u=n("WmNS"),d=n.n(u),f=n("q1tI"),p=n.n(f),h=n("Ty5D"),m=n("9kvl"),v=n("m3rI"),g=(n("7Kak"),n("9yH6")),b=n("PpiC"),y=n("cU5J"),x=n.n(y),E=Object(m.a)((function(e){var t=e.shixunsDetail,n=e.loading;return{shixunsDetail:t,globalSetting:e.globalSetting,loading:n}}))((function(e){var t=e.shixunsDetail,n=(e.globalSetting,e.loading),r=e.dispatch,a=e.onReloadData,i=(Object(b.a)(e,["shixunsDetail","globalSetting","loading","dispatch","onReloadData"]),Object(f.useState)()),u=Object(c.a)(i,2),h=u[0],m=u[1],v=Object(f.useState)([]),y=Object(c.a)(v,2),E=y[0],C=y[1];Object(f.useEffect)((function(){"Collaborators-ChangeManager"===t.actionTabs.key&&A()}),[t.actionTabs.key]);var A=function(){var e=Object(s.a)(d.a.mark((function e(){var n,a;return d.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,r({type:"shixunsDetail/getChangeManager",payload:{id:null===(n=t.actionTabs.params)||void 0===n?void 0:n.id}});case 2:a=e.sent,C(a||[]);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),O=function(){var e=Object(s.a)(d.a.mark((function e(){var n,i;return d.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(h){e.next=3;break}return o.b.info("所选人员为空,没有更换成功"),e.abrupt("return");case 3:return e.next=5,r({type:"shixunsDetail/changeManager",payload:{id:null===(n=t.actionTabs.params)||void 0===n?void 0:n.id,user_id:h}});case 5:i=e.sent,k(),i&&(a(),o.b.info(i.message));case 8:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),k=function(){r({type:"shixunsDetail/setActionTabs",payload:{}}),m(null)};return p.a.createElement(l.a,{centered:!0,keyboard:!1,closable:!1,title:"更换管理员",visible:"Collaborators-ChangeManager"===t.actionTabs.key,confirmLoading:n.effects["shixunsDetail/changeManager"],onOk:O,onCancel:k},p.a.createElement("div",null,p.a.createElement("div",{className:x.a.title},"选择的成员将会成为新的管理员",p.a.createElement("br",null),"您将不再拥有管理员的权限,但您仍是合作团队的一员"),p.a.createElement("div",{className:x.a.content},E.length?p.a.createElement(g.a.Group,{value:h,onChange:function(e){return m(e.target.value)}},E.map((function(e,t){return p.a.createElement(g.a,{className:x.a.radio,key:t,value:e.user_id},e.name)}))):p.a.createElement("div",{className:x.a.add},p.a.createElement("span",null,"请先将新的管理员通过",p.a.createElement("a",{className:x.a.colorBlue,onClick:function(){var e;r({type:"shixunsDetail/setActionTabs",payload:{key:"Collaborators-AddCollaborator",params:{id:null===(e=t.actionTabs.params)||void 0===e?void 0:e.id}}})}},'"添加合作者"'),"加入合作者列表")))))})),C=(n("Znn+"),n("ZTPi")),A=n("ju9d"),O=C.a.TabPane,k=function(e){var t=e.visible,n=e.onCancel,r=(e.onSelectGroup,e.shixunId),a=e.onSelectCollaborator;return p.a.createElement(l.a,{title:"添加合作者",visible:t,width:1100,centered:!0,keyboard:!1,onCancel:n,maskClosable:!1,destroyOnClose:!0,forceRender:!0,bodyStyle:{minHeight:400,padding:"0 20px 20px 20px"},footer:null},p.a.createElement(C.a,{defaultActiveKey:"1"},p.a.createElement(O,{tab:"搜索添加",key:"1"},p.a.createElement(A.a,{type:1,onCancel:n,container_type:2,container_id:r,onSelect:a}))))},w=n("bL63"),S=n.n(w),j=n("xvlK"),N=n("ruvs"),I=n("ErOA");t.a=Object(m.a)((function(e){var t=e.shixunsDetail,n=e.loading;return{shixunsDetail:t,globalSetting:e.globalSetting,user:e.user,loading:n}}))((function(e){var t,n,u,m,g,b=e.shixunsDetail,y=(e.globalSetting,e.loading,e.user),x=e.dispatch,C=e.position,A=Object(f.useRef)(),O=Object(f.useState)(0),w=Object(c.a)(O,2),M=w[0],T=w[1],D=Object(f.useState)([]),R=Object(c.a)(D,2),L=R[0],B=R[1],P=Object(f.useState)({id:null,page:1}),K=Object(c.a)(P,2),F=K[0],z=K[1],Q=Object(h.i)(),W=Object(f.useState)({}),H=Object(c.a)(W,2),J=H[0],U=H[1],V=(null===(t=y.userInfo)||void 0===t||null===(n=t.shixun)||void 0===n||n.editable,(null===(u=y.userInfo)||void 0===u?void 0:u.role)<=2||(null===(m=y.userInfo)||void 0===m||null===(g=m.shixun)||void 0===g?void 0:g.is_creator));Object(f.useEffect)((function(){A.current=null==Q?void 0:Q.taskId,F.id=null==Q?void 0:Q.taskId,z(F),G(F)}),[]);var G=function(){var e=Object(s.a)(d.a.mark((function e(t){var n;return d.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(I.a)("/api/sci/projects/".concat(null==Q?void 0:Q.taskId,"/get_project_partners.json"),{method:"get"});case 2:(n=e.sent)&&(B(n.users||[]),T(n.users_count),U(n));case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Y=function(){var e=Object(s.a)(d.a.mark((function e(){var t;return d.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return F.page=1,z(F),t=Object(N.b)(),e.next=5,x({type:"user/getUserInfo",payload:t});case 5:return e.next=7,G(F);case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();function Z(){x({type:"shixunsDetail/setActionTabs",payload:{}})}var q,X,_={visible:"Collaborators-AddCollaborator"===b.actionTabs.key,onCancel:Z,shixunId:A.current,onSelectCollaborator:(X=Object(s.a)(d.a.mark((function e(t){return d.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Z(),e.next=3,Object(I.a)("/api/sci/projects/".concat(A.current,"/bacht_add_project_partners.json"),{method:"POST",body:{user_ids:t}});case 3:e.sent&&(o.b.success("添加成功"),Y());case 5:case"end":return e.stop()}}),e)}))),function(e){return X.apply(this,arguments)}),onSelectGroup:(q=Object(s.a)(d.a.mark((function e(t){return d.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return Z(),e.next=3,x({type:"shixunsDetail/addTeachGroupMember",payload:{identifier:A.current,group_id:t.group_id}});case 3:e.sent&&(o.b.success("添加成功"),Y());case 5:case"end":return e.stop()}}),e)}))),function(e){return q.apply(this,arguments)})};return p.a.createElement("section",null,p.a.createElement("div",{className:S.a.wrap},p.a.createElement("div",{className:S.a.content},p.a.createElement("div",{className:S.a.head},p.a.createElement("span",{className:S.a.headCount},"合作者(",M,"人)"),p.a.createElement("div",null,p.a.createElement(i.a,{className:S.a.button,style:{marginRight:"detail"===C?0:"20px"},onClick:function(){x({type:"shixunsDetail/setActionTabs",payload:{key:"Collaborators-AddCollaborator",params:{id:A.current}}})},icon:p.a.createElement(j.a,null)},"添加合作者"))),p.a.createElement("div",{className:S.a.list},p.a.createElement(a.a,{loading:!1,active:!0,avatar:{size:40},paragraph:{rows:3},className:"mt30"},L.map((function(e,t){return p.a.createElement("div",{style:{display:"inline-block",width:"50%"},key:t},p.a.createElement("div",{className:S.a.itemWrap},p.a.createElement("a",{target:"_blank",className:S.a.imgWrap},p.a.createElement("img",{alt:"用户头像",height:"48",width:"48",className:S.a.img,src:"".concat(v.a.IMG_SERVER,"/images/").concat(null==e?void 0:e.image_url)}),(null==e?void 0:e.is_creator)&&p.a.createElement("span",{className:S.a.manager},"创建者")),p.a.createElement("div",{className:S.a.itemContent},p.a.createElement("div",{className:S.a.nameWrap},p.a.createElement("a",{target:"_blank",className:S.a.name},null==e?void 0:e.user_name),p.a.createElement("div",{className:S.a.actionGroup},null!=e&&e.is_creator||!(V||null!=J&&J.current_user_is_creator)?null:p.a.createElement("a",{className:S.a.deletetitle,onClick:function(){return t=e.id,void l.a.confirm({centered:!0,okText:"确定",cancelText:"取消",title:"提示",content:p.a.createElement("div",{className:S.a.modal},"确定要删除吗?"),onOk:(n=Object(s.a)(d.a.mark((function e(){return d.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(I.a)("/api/sci/projects/".concat(null==Q?void 0:Q.taskId,"/del_project_partner.json"),{method:"DELETE",body:{user_id:t}});case 2:e.sent,o.b.info("删除成功"),F.page=1,z(F),G(F);case 7:case"end":return e.stop()}}),e)}))),function(){return n.apply(this,arguments)})});var t,n}},"删除"))),p.a.createElement("p",{className:S.a.schoolWrap},p.a.createElement("span",{className:S.a.school},null==e?void 0:e.school_name)))))}))))),M>10&&p.a.createElement("div",{className:S.a.countWrap},p.a.createElement(r.a,{showQuickJumper:!1,showSizeChanger:!1,total:M,onChange:function(e){return function(e){F.page=e,z(F),G(F)}(e)},pageSize:10,current:F.page}))),p.a.createElement(E,{onReloadData:Y}),p.a.createElement(k,_))}))},E7E6:
|
|
|
/*!********************************************!*\
|
|
|
!*** ./src/assets/images/icons/search.png ***!
|
|
|
\********************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADUCAYAAADZTGx+AAAgAElEQVR4Xu2dC3BU13nHv7MrIQkQQoCEtAIEAmxig4GACxhogpM6NY7jOKZO4nimwcFot23SNNNO02napJN0JjN9TNMm5eG3x4+YSeI3ftUGjCDGQMBgG4wxb+0u4mEeQhJI2tP539WR7i77uPfuvXfvar8zs7Mr7bnn8Z3vt9/5zlMQB5aAQQmsW7fO397eHujp6Rkfi8XGExFeDX2vABHVSSlrhBDDiKhdSnlOCBGWUu4mol1lZWWv3nfffccNZueJaMITpeBCeEICjz/++LCOjo5GIpogpWwUQjT2vU/A/wCClNJvtbBCCCml3CaEeGzChAmPLF269LLVtNx6jgFxS9IeyOehhx6q7OnpmSilnEhE2gsA4L0PhjHZillRUUHl5WUUf6+giopyKi+Pv8rKyrSX3++nnp4e7XXpUgedP3+ezp37lE6ebKPe3l4tCyFEhIj+UwjxaHNz8+ls+ebrewYkX5J3IN9169YNv3DhwsRYLIbXJAWBDoZRmbKFYkPRhw4dqgEwdCgAwOfyPiDKyefzWS454Dh58iQdPPiJBk0fKN1E9KyU8gehUKjVcuIOPciAOCRYJ5J95JFHyq9cuaJZACHEJCklIOgHQUqZ0QIAACg/FB+//niPwxD/H3793QqwJkePHqW2tjaSUsKinCOibwWDwfVulcFIPgyIESm5FGfDhg0lBw8ehOM7qbe3dxIggCXAe58VgBOcts0AgP6XfwCACho2bBgNGTLEpZoYz6arq4vee2+PBooQosvv999y//33bzaegrMxGRBn5ZuQOpR77dq1dVB4BQCsQB8AgGB8JicY3RsAgNewYQO//EOHDnPdAtgttr1736cjR44g2VP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qKcFVV1VmLVS3qx/4fQLyzKIIkCJoAAAAASUVORK5CYII="},E9nw:
|
|
|
/*!************************************************!*\
|
|
|
!*** ./node_modules/toggle-selection/index.js ***!
|
|
|
\************************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! all exports used */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach((function(t){e.addRange(t)})),t&&t.focus()}}},FOrL:
|
|
|
/*!********************************************!*\
|
|
|
!*** ./src/assets/images/icons/nodata.png ***!
|
|
|
\********************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,n){e.exports=n.p+"static/nodata.a6b3f948.png"},FPkq:
|
|
|
/*!**************************************!*\
|
|
|
!*** ./src/assets/images/qrCode.png ***!
|
|
|
\**************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,n){e.exports=n.p+"static/qrCode.dd0fe9b2.png"},GABl:
|
|
|
/*!********************************************!*\
|
|
|
!*** ./src/assets/images/icons/chrome.png ***!
|
|
|
\********************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAYAAADFeBvrAAAKi0lEQVRoQ71ae3BU1Rn//e7dzYuioNRsHlSqRiUB2eUx0hbaKAHEAMWxiQ6PTUAUGCuIQNVOZ0xnrHUE5GHHIqOwCag8BlQiQnnUokgt5AE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xD2+WikbdifqDHND2vb/PpDm5/oXcV3XRey+tsaKH1tTLhyh661H0xCsmyaQCW1dg1HTHwpMWLbmcpneBJH7Wg+QVdCwFKI/z7R/fWdHyDULaiCIL5jdScM3Y6X+m04/aXIPQGJnwJs/OCTm8yEjYSDMLSurQPkI5CrcoK2ja0vobBTpsD3l2nKU/mGe43DFiV5Ksb8SNUCj9lrlhOUl5r8JwG9evjMBhDmdjkJYBp2luLPHHrL+nq8jxv8BV2A7FHmr6w0AAAAASUVORK5CYII="},GfqC:
|
|
|
/*!********************************************************!*\
|
|
|
!*** ./node_modules/rc-upload/es/index.js + 6 modules ***!
|
|
|
\********************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/classnames/index.js (<- Module is not an ECMAScript module) */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/react/index.js (<- Module is not an ECMAScript module) */function(e,t,n){"use strict";var r=n("q1tI"),a=n.n(r),i=n("TSYQ"),o=n.n(i);function l(e){var t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch(e){return t}}function s(e){var t=new XMLHttpRequest;e.onProgress&&t.upload&&(t.upload.onprogress=function(t){t.total>0&&(t.percent=t.loaded/t.total*100),e.onProgress(t)});var n=new FormData;e.data&&Object.keys(e.data).forEach((function(t){var r=e.data[t];Array.isArray(r)?r.forEach((function(e){n.append(t+"[]",e)})):n.append(t,e.data[t])})),e.file instanceof Blob?n.append(e.filename,e.file,e.file.name):n.append(e.filename,e.file),t.onerror=function(t){e.onError(t)},t.onload=function(){return t.status<200||t.status>=300?e.onError(function(e,t){var n="cannot "+e.method+" "+e.action+" "+t.status+"'",r=new Error(n);return r.status=t.status,r.method=e.method,r.url=e.action,r}(e,t),l(t)):e.onSuccess(l(t),t)},t.open(e.method,e.action,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);var r=e.headers||{};return null!==r["X-Requested-With"]&&t.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(r).forEach((function(e){null!==r[e]&&t.setRequestHeader(e,r[e])})),t.send(n),{abort:function(){t.abort()}}}var c=+new Date,u=0;function d(){return"rc-upload-"+c+"-"+ ++u}var f=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),r=e.name||"",a=e.type||"",i=a.replace(/\/.*$/,"");return n.some((function(e){var t,n,o=e.trim();return"."===o.charAt(0)?(t=r.toLowerCase(),n=o.toLowerCase(),-1!==t.indexOf(n,t.length-n.length)):/\/\*$/.test(o)?i===o.replace(/\/.*$/,""):a===o}))}return!0};var p=function(e,t,n){var r=function e(r,a){a=a||"",r.isFile?r.file((function(e){n(e)&&(r.fullPath&&!e.webkitRelativePath&&(Object.defineProperties(e,{webkitRelativePath:{writable:!0}}),e.webkitRelativePath=r.fullPath.replace(/^\//,""),Object.defineProperties(e,{webkitRelativePath:{writable:!1}})),t([e]))})):r.isDirectory&&function(e,t){var n=e.createReader(),r=[];!function e(){n.readEntries((function(n){var a=Array.prototype.slice.apply(n);r=r.concat(a),!a.length?t(r):e()}))}()}(r,(function(t){t.forEach((function(t){e(t,""+a+r.name+"/")}))}))};e.forEach((function(e){r(e.webkitGetAsEntry())}))},h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},m=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,a=!1,i=void 0;try{for(var o,l=e[Symbol.iterator]();!(r=(o=l.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){a=!0,i=e}finally{try{!r&&l.return&&l.return()}finally{if(a)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},v=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function y(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var x=function(e){function t(){var e,n,r;b(this,t);for(var a=arguments.length,i=Array(a),o=0;o<a;o++)i[o]=arguments[o];return n=r=y(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),r.state={uid:d()},r.reqs={},r.onChange=function(e){var t=e.target.files;r.uploadFiles(t),r.reset()},r.onClick=function(e){var t=r.fileInput;if(t){var n=r.props,a=n.children,i=n.onClick;a&&"button"===a.type&&(t.parentNode.focus(),t.parentNode.querySelector("button").blur()),t.click(),i&&i(e)}},r.onKeyDown=function(e){"Enter"===e.key&&r.onClick()},r.onFileDrop=function(e){var t=r.props.multiple;if(e.preventDefault(),"dragover"!==e.type)if(r.props.directory)p(Array.prototype.slice.call(e.dataTransfer.items),r.uploadFiles,(function(e){return f(e,r.props.accept)}));else{var n=Array.prototype.slice.call(e.dataTransfer.files).filter((function(e){return f(e,r.props.accept)}));!1===t&&(n=n.slice(0,1)),r.uploadFiles(n)}},r.uploadFiles=function(e){var t=Array.prototype.slice.call(e);t.map((function(e){return e.uid=d(),e})).forEach((function(e){r.upload(e,t)}))},r.saveFileInput=function(e){r.fileInput=e},y(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),v(t,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"upload",value:function(e,t){var n=this,r=this.props;if(!r.beforeUpload)return setTimeout((function(){return n.post(e)}),0);var a=r.beforeUpload(e,t);a&&a.then?a.then((function(t){var r=Object.prototype.toString.call(t);return"[object File]"===r||"[object Blob]"===r?n.post(t):n.post(e)})).catch((function(e){console.log(e)})):!1!==a&&setTimeout((function(){return n.post(e)}),0)}},{key:"post",value:function(e){var t=this;if(this._isMounted){var n=this.props,r=n.onStart,a=n.onProgress,i=n.transformFile,o=void 0===i?function(e){return e}:i;new Promise((function(t){var r=n.action;return"function"==typeof r&&(r=r(e)),t(r)})).then((function(i){var l=e.uid,c=n.customRequest||s;Promise.resolve(o(e)).then((function(e){var t=n.data;return"function"==typeof t&&(t=t(e)),Promise.all([e,t])})).catch((function(e){console.error(e)})).then((function(o){var s=m(o,2),u=s[0],d=s[1],f={action:i,filename:n.name,data:d,file:u,headers:n.headers,withCredentials:n.withCredentials,method:n.method||"post",onProgress:a?function(t){a(t,e)}:null,onSuccess:function(r,a){delete t.reqs[l],n.onSuccess(r,e,a)},onError:function(r,a){delete t.reqs[l],n.onError(r,a,e)}};r(e),t.reqs[l]=c(f)}))}))}}},{key:"reset",value:function(){this.setState({uid:d()})}},{key:"abort",value:function(e){var t=this.reqs;if(e){var n=e;e&&e.uid&&(n=e.uid),t[n]&&t[n].abort&&t[n].abort(),delete t[n]}else Object.keys(t).forEach((function(e){t[e]&&t[e].abort&&t[e].abort(),delete t[e]}))}},{key:"render",value:function(){var e,t,n=this.props,r=n.component,i=n.prefixCls,l=n.className,s=n.disabled,c=n.id,u=n.style,d=n.multiple,f=n.accept,p=n.children,m=n.directory,v=n.openFileDialogOnClick,b=n.onMouseEnter,y=n.onMouseLeave,x=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(n,["component","prefixCls","className","disabled","id","style","multiple","accept","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"]),E=o()((g(e={},i,!0),g(e,i+"-disabled",s),g(e,l,l),e)),C=s?{}:{onClick:v?this.onClick:function(){},onKeyDown:v?this.onKeyDown:function(){},onMouseEnter:b,onMouseLeave:y,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return a.a.createElement(r,h({},C,{className:E,role:"button",style:u}),a.a.createElement("input",h({},(t=x,Object.keys(t).reduce((function(e,n){return"data-"!==n.substr(0,5)&&"aria-"!==n.substr(0,5)&&"role"!==n||(e[n]=t[n]),e}),{})),{id:c,type:"file",ref:this.saveFileInput,onClick:function(e){return e.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:f,directory:m?"directory":null,webkitdirectory:m?"webkitdirectory":null,multiple:d,onChange:this.onChange})),p)}}]),t}(r.Component),E=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},C=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function A(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function O(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function k(){}var w=function(e){function t(){var e,n,r;A(this,t);for(var a=arguments.length,i=Array(a),o=0;o<a;o++)i[o]=arguments[o];return n=r=O(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),r.saveUploader=function(e){r.uploader=e},O(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),C(t,[{key:"abort",value:function(e){this.uploader.abort(e)}},{key:"render",value:function(){return a.a.createElement(x,E({},this.props,{ref:this.saveUploader}))}}]),t}(r.Component);w.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:k,onError:k,onSuccess:k,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var S=w;t.a=S},HpTS:
|
|
|
/*!********************************************************!*\
|
|
|
!*** ./src/assets/images/classrooms/small_program.png ***!
|
|
|
\********************************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,n){e.exports=n.p+"static/small_program.f74069ec.png"},IBYe:
|
|
|
/*!**************************************************!*\
|
|
|
!*** ./node_modules/rc-table/es/sugar/Column.js ***!
|
|
|
\**************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/*! exports used: default */function(e,t,n){"use strict";t.a=function(e){return null}},JWDV:
|
|
|
/*!****************************************************!*\
|
|
|
!*** ./src/assets/images/icons/charpter-white.svg ***!
|
|
|
\****************************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,n){e.exports=n.p+"static/charpter-white.5fa14f93.svg"},JeFH:
|
|
|
/*!********************************************!*\
|
|
|
!*** ./src/assets/images/icons/blibli.png ***!
|
|
|
\********************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGgAAAAwCAYAAAD9wT87AAAe2UlEQVR4XtVcB5QUVbr+blV1T+ieGWaYBAwgOSgooJLjENeA6a2KCVfZNbum3VXXsG9VdFfc1TXtGlfXLCKgEiRnUAHJWRzAyTl3V9V957vV1dPTM+M4Hn2Pd8/xIHRV9f3vn77/+/9qgVaWlHIggHMB+AA8K4TIbe2ek/FzKWUmgLGw7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ZYjDbPxslSFLAfGUEIIcZ3gppTpvd6zLqweOVZuI0TUVDRgSOzjVy5yWFKSmTNn6vv2LxlMx7jdEMtiZcbR6h/kdmh7nkIlctlUCiLnQNL7Xs7W5g6mrq+sTExNDg6gM9eE5xFEM4HhLL4pJKYdwvg5msCsgg4AwFceueyptKZ/XNO3pkIdqkPaXVdAGjfwkt1FTzeXveCAN7QYNp/gMDEzxYFhaLAaneaH8xTY5hrvasu1/5ebmzuvcuXOTn8KRUpLZ5sQpWVD+EgvfAKEcBWQ1mjUK554XYFvnw7YEhAhCSr6pYULTv2R6aklBAwC5Y3uJief2VyqtEoHGG5rT/4nVVN+EPaCsBB0pkT0gyyyDpq+HEB8DWNTSa/PNbbgt/yal5NkxyzI90VRVdI3+HSFpmyuk0MeTeGXnkspgrE/0aGgfyxxqoJPPQGe/BxxcDYtiBiQ042to2mfsZwkheGA/ywr9NhJlIBekZBFqOrZ5kgCFhYUJqampbAWzp9LCsgDLrgB/t0foByDkdkB1UrdFv5j0s0j1Ax8qpfxdqP/U8h1mIABN5EEYhyHELgBUBv87IAS98/9utUhA19TUZMXFxc0AcCZbIqG5A+YFvhvEMEQXVm4s6Jon6VKzA053dTI46OH8hMARhbwa5OCbboU/9e8//BRH8j9mLdQoDqqNCwAAAABJRU5ErkJggg=="},Jky8:
|
|
|
/*!**********************************************************************!*\
|
|
|
!*** ./src/components/Header/components/Join/JoinClassroomModal.tsx ***!
|
|
|
\**********************************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/*! exports used: default */function(e,t,n){"use strict";n(/*! antd/es/checkbox/style */"sRBo");var r,a=n(/*! antd/es/checkbox */"kaz8"),i=(n(/*! antd/es/input/style */"5NDa"),n(/*! antd/es/input */"5rEg")),o=(n(/*! antd/es/message/style */"miYZ"),n(/*! antd/es/message */"tsqr")),l=n(/*! ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/asyncToGenerator */"9og8"),s=(n(/*! antd/es/modal/style */"2qtc"),n(/*! antd/es/modal */"kLXV")),c=n(/*! ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/slicedToArray */"tJVT"),u=n(/*! ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/regenerator */"WmNS"),d=n.n(u),f=n(/*! react */"q1tI"),p=n.n(f),h=n(/*! umi */"9kvl"),m=n(/*! @/service/home */"6CvP"),v=n(/*! @/components/AuthModal */"1XHU"),g=n(/*! @/utils/util */"1vsH");!function(e){e[e.Professor=1]="Professor",e[e.AssistantProfessor=2]="AssistantProfessor",e[e.Student=3]="Student"}(r||(r={}));t.a=Object(h.a)((function(e){return{user:e.user}}))((function(e){var t=e.visible,n=e.user,u=e.onCancel,b=void 0===u?function(){}:u,y=Object(f.useState)(),x=Object(c.a)(y,2),E=x[0],C=x[1],A=Object(f.useState)([]),O=Object(c.a)(A,2),k=O[0],w=O[1],S=Object(f.useState)(!1),j=Object(c.a)(S,2),N=j[0],I=j[1],M=Object(f.useState)(!1),T=Object(c.a)(M,2),D=T[0],R=T[1],L=Object(f.useState)(),B=Object(c.a)(L,2),P=B[0],K=B[1];Object(f.useEffect)((function(){var e,t;null!=n&&null!==(e=n.userInfo)&&void 0!==e&&e.identity&&w(["student"===(null==n||null===(t=n.userInfo)||void 0===t?void 0:t.identity)?3:1])}),[n]);var F=function(e,t){k.includes(r.Professor)?s.a.confirm({centered:!0,okText:"确定",cancelText:"取消",title:"提示",content:p.a.createElement("div",{className:"tc"},t||"申请已提交,请等待审核"),onOk:function(){h.d.push("/classrooms/".concat(e,"/students"))}}):h.d.push("/classrooms/".concat(e,"/students"))},z=function(){var e=Object(l.a)(d.a.mark((function e(){var t;return d.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(E){e.next=3;break}return o.b.info("邀请码不能为空"),e.abrupt("return");case 3:return I(!0),e.next=6,Object(m.c)({invite_code:E,professor:k.includes(r.Professor)?1:null,assistant_professor:k.includes(r.AssistantProfessor)?1:null,student:k.includes(r.Student)?1:null});case 6:if(t=e.sent,I(!1),-2!==(null==t?void 0:t.status)){e.next=22;break}if(Q(),"该课堂要求成员完成实名认证"!==t.message){e.next=14;break}return R(!0),K(1),e.abrupt("return");case 14:if("该课堂要求成员完成职业认证"!==t.message){e.next=18;break}return R(!0),K(2),e.abrupt("return");case 18:if("该课堂要求成员完成实名和职业认证"!==t.message){e.next=22;break}return R(!0),K(3),e.abrupt("return");case 22:if(0!==(null==t?void 0:t.status)){e.next=27;break}return Object(g.ab)(["教学课堂","首页","加入课堂"]),Q(),(null==t?void 0:t.course_id)&&F(t.course_id,t.message),e.abrupt("return");case 27:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Q=function(){var e=Object(l.a)(d.a.mark((function e(){return d.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:b();case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return p.a.createElement(p.a.Fragment,null,p.a.createElement(s.a,{centered:!0,keyboard:!1,closable:!1,title:"加入课堂",visible:t,confirmLoading:N,onOk:z,onCancel:Q},p.a.createElement("div",{className:"tc"},p.a.createElement("div",null,p.a.createElement("span",null,"课堂邀请码:"),p.a.createElement(i.a,{placeholder:"请输入5位课堂邀请码或6位分班邀请码",style:{width:270},value:E,onChange:function(e){e.target.value.length>=7?o.b.info("请输入5位课堂邀请码或6位分班邀请码!"):C(e.target.value)}})),p.a.createElement("div",{className:"mt10 font14"},p.a.createElement("span",null,"身份:"),p.a.createElement(a.a.Group,{value:k,onChange:function(e){return w(e)}},p.a.createElement(a.a,{value:r.Professor,disabled:k.includes(2)},"教师"),p.a.createElement(a.a,{value:r.AssistantProfessor,disabled:k.includes(1)},"助教"),p.a.createElement(a.a,{value:r.Student},"学生/参赛者"))))),p.a.createElement(v.a,{visible:D,onCancel:function(){return R(!1)},occupationValue:P}))}))},Jq4h:
|
|
|
/*!*******************************************!*\
|
|
|
!*** ./src/assets/images/user/qrcode.png ***!
|
|
|
\*******************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,n){e.exports=n.p+"static/qrcode.54870d9b.png"},KUBS:
|
|
|
/*!**************************************************************************************!*\
|
|
|
!*** ./src/pages/Innovation/Detail/components/CodePane/DirTree/AddFile.less?modules ***!
|
|
|
\**************************************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,n){e.exports={wrap:"wrap___3sliA",modal:"modal___1a97-",title:"title___2LzwK",path:"path___10GWZ",colorBlue:"colorBlue___2Bn0D",width240:"width240___2eUex",filePath:"filePath___3Oexf"}},LSTS:
|
|
|
/*!*********************************************************************!*\
|
|
|
!*** ./node_modules/react-infinite-scroller/dist/InfiniteScroll.js ***!
|
|
|
\*********************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! all exports used */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(/*! react */"q1tI"),i=l(a),o=l(n(/*! prop-types */"17x9"));function l(e){return e&&e.__esModule?e:{default:e}}var s=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.scrollListener=n.scrollListener.bind(n),n.eventListenerOptions=n.eventListenerOptions.bind(n),n.mousewheelListener=n.mousewheelListener.bind(n),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"componentDidMount",value:function(){this.pageLoaded=this.props.pageStart,this.options=this.eventListenerOptions(),this.attachScrollListener()}},{key:"componentDidUpdate",value:function(){if(this.props.isReverse&&this.loadMore){var e=this.getParentElement(this.scrollComponent);e.scrollTop=e.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}},{key:"componentWillUnmount",value:function(){this.detachScrollListener(),this.detachMousewheelListener()}},{key:"isPassiveSupported",value:function(){var e=!1,t={get passive(){e=!0}};try{document.addEventListener("test",null,t),document.removeEventListener("test",null,t)}catch(e){}return e}},{key:"eventListenerOptions",value:function(){var e=this.props.useCapture;return this.isPassiveSupported()&&(e={useCapture:this.props.useCapture,passive:!0}),e}},{key:"setDefaultLoader",value:function(e){this.defaultLoader=e}},{key:"detachMousewheelListener",value:function(){var e=window;!1===this.props.useWindow&&(e=this.scrollComponent.parentNode),e.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}},{key:"detachScrollListener",value:function(){var e=window;!1===this.props.useWindow&&(e=this.getParentElement(this.scrollComponent)),e.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),e.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}},{key:"getParentElement",value:function(e){var t=this.props.getScrollParent&&this.props.getScrollParent();return null!=t?t:e&&e.parentNode}},{key:"filterProps",value:function(e){return e}},{key:"attachScrollListener",value:function(){var e=this.getParentElement(this.scrollComponent);if(this.props.hasMore&&e){var t=window;!1===this.props.useWindow&&(t=e),t.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),t.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),t.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}}},{key:"mousewheelListener",value:function(e){1!==e.deltaY||this.isPassiveSupported()||e.preventDefault()}},{key:"scrollListener",value:function(){var e=this.scrollComponent,t=window,n=this.getParentElement(e),r=void 0;if(this.props.useWindow){var a=document.documentElement||document.body.parentNode||document.body,i=void 0!==t.pageYOffset?t.pageYOffset:a.scrollTop;r=this.props.isReverse?i:this.calculateOffset(e,i)}else r=this.props.isReverse?n.scrollTop:e.scrollHeight-n.scrollTop-n.clientHeight;r<Number(this.props.threshold)&&e&&null!==e.offsetParent&&(this.detachScrollListener(),this.beforeScrollHeight=n.scrollHeight,this.beforeScrollTop=n.scrollTop,"function"==typeof this.props.loadMore&&(this.props.loadMore(this.pageLoaded+=1),this.loadMore=!0))}},{key:"calculateOffset",value:function(e,t){return e?this.calculateTopPosition(e)+(e.offsetHeight-t-window.innerHeight):0}},{key:"calculateTopPosition",value:function(e){return e?e.offsetTop+this.calculateTopPosition(e.offsetParent):0}},{key:"render",value:function(){var e=this,t=this.filterProps(this.props),n=t.children,r=t.element,a=t.hasMore,o=(t.initialLoad,t.isReverse),l=t.loader,s=(t.loadMore,t.pageStart,t.ref),c=(t.threshold,t.useCapture,t.useWindow,t.getScrollParent,function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["children","element","hasMore","initialLoad","isReverse","loader","loadMore","pageStart","ref","threshold","useCapture","useWindow","getScrollParent"]));c.ref=function(t){e.scrollComponent=t,s&&s(t)};var u=[n];return a&&(l?o?u.unshift(l):u.push(l):this.defaultLoader&&(o?u.unshift(this.defaultLoader):u.push(this.defaultLoader))),i.default.createElement(r,c,u)}}]),t}(a.Component);s.propTypes={children:o.default.node.isRequired,element:o.default.node,hasMore:o.default.bool,initialLoad:o.default.bool,isReverse:o.default.bool,loader:o.default.node,loadMore:o.default.func.isRequired,pageStart:o.default.number,ref:o.default.func,getScrollParent:o.default.func,threshold:o.default.number,useCapture:o.default.bool,useWindow:o.default.bool},s.defaultProps={element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null},t.default=s,e.exports=t.default},LdHM:
|
|
|
/*!********************************************************!*\
|
|
|
!*** ./node_modules/rc-select/es/index.js + 6 modules ***!
|
|
|
\********************************************************/
|
|
|
/*! exports provided: Option, OptGroup, default */
|
|
|
/*! exports used: OptGroup, Option, default */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/createClass.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/createSuper.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/inherits.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/typeof.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/classnames/index.js (<- Module is not an ECMAScript module) */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-select/es/TransBtn.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-select/es/generate.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-select/es/utils/commonUtil.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-select/es/utils/valueUtil.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/Children/toArray.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/KeyCode.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/hooks/useMemo.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/pickAttrs.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/warning.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-virtual-list/es/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/react/index.js (<- Module is not an ECMAScript module) */function(e,t,n){"use strict";n.d(t,"b",(function(){return E})),n.d(t,"a",(function(){return A}));var r=n("1OyB"),a=n("vuIU"),i=n("Ji7U"),o=n("LK+K"),l=n("q1tI"),s=n("rePB"),c=n("Ff2n"),u=n("ODXe"),d=n("4IlW"),f=n("bX4T"),p=n("YrtM"),h=n("TSYQ"),m=n.n(h),v=n("+nKL"),g=n("8OUc"),b=l.forwardRef((function(e,t){var n=e.prefixCls,r=e.id,a=e.flattenOptions,i=e.childrenAsData,o=e.values,h=e.searchValue,b=e.multiple,y=e.defaultActiveFirstOption,x=e.height,E=e.itemHeight,C=e.notFoundContent,A=e.open,O=e.menuItemSelectedIcon,k=e.virtual,w=e.onSelect,S=e.onToggleOpen,j=e.onActiveValue,N=e.onScroll,I=e.onMouseEnter,M="".concat(n,"-item"),T=Object(p.a)((function(){return a}),[A,a],(function(e,t){return t[0]&&e[1]!==t[1]})),D=l.useRef(null),R=function(e){e.preventDefault()},L=function(e){D.current&&D.current.scrollTo({index:e})},B=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=T.length,r=0;r<n;r+=1){var a=(e+r*t+n)%n,i=T[a],o=i.group,l=i.data;if(!o&&!l.disabled)return a}return-1},P=l.useState((function(){return B(0)})),K=Object(u.a)(P,2),F=K[0],z=K[1],Q=function(e){z(e);var t=T[e];t?j(t.data.value,e):j(null,-1)};l.useEffect((function(){Q(!1!==y?B(0):-1)}),[T.length,h]),l.useEffect((function(){var e=setTimeout((function(){if(!b&&A&&1===o.size){var e=Array.from(o)[0],t=T.findIndex((function(t){return t.data.value===e}));Q(t),L(t)}}));return function(){return clearTimeout(e)}}),[A]);var W=function(e){void 0!==e&&w(e,{selected:!o.has(e)}),b||S(!1)};if(l.useImperativeHandle(t,(function(){return{onKeyDown:function(e){var t=e.which;switch(t){case d.a.UP:case d.a.DOWN:var n=0;if(t===d.a.UP?n=-1:t===d.a.DOWN&&(n=1),0!==n){var r=B(F+n,n);L(r),Q(r)}break;case d.a.ENTER:var a=T[F];a&&!a.data.disabled?W(a.data.value):W(void 0),A&&e.preventDefault();break;case d.a.ESC:S(!1)}},onKeyUp:function(){},scrollTo:function(e){L(e)}}})),0===T.length)return l.createElement("div",{role:"listbox",id:"".concat(r,"_list"),className:"".concat(M,"-empty"),onMouseDown:R},C);function H(e){var t=T[e];if(!t)return null;var n=t.data||{},a=n.value,s=n.label,c=n.children,u=Object(f.a)(n,!0),d=i?c:s;return t?l.createElement("div",Object.assign({"aria-label":"string"==typeof d?d:null},u,{key:e,role:"option",id:"".concat(r,"_list_").concat(e),"aria-selected":o.has(a)}),a):null}return l.createElement(l.Fragment,null,l.createElement("div",{role:"listbox",id:"".concat(r,"_list"),style:{height:0,width:0,overflow:"hidden"}},H(F-1),H(F),H(F+1)),l.createElement(v.a,{itemKey:"key",ref:D,data:T,height:x,itemHeight:E,fullHeight:!1,onMouseDown:R,onScroll:N,virtual:k,onMouseEnter:I},(function(e,t){var n,r=e.group,a=e.groupOption,u=e.data,d=u.label,f=u.key;if(r)return l.createElement("div",{className:m()(M,"".concat(M,"-group"))},void 0!==d?d:f);var p=u.disabled,h=u.value,v=u.title,b=u.children,y=u.style,x=u.className,E=Object(c.a)(u,["disabled","value","title","children","style","className"]),C=o.has(h),A="".concat(M,"-option"),k=m()(M,A,x,(n={},Object(s.a)(n,"".concat(A,"-grouped"),a),Object(s.a)(n,"".concat(A,"-active"),F===t&&!p),Object(s.a)(n,"".concat(A,"-disabled"),p),Object(s.a)(n,"".concat(A,"-selected"),C),n)),w=i?b:d,S=!O||"function"==typeof O||C;return l.createElement("div",Object.assign({},E,{"aria-selected":C,className:k,title:v,onMouseMove:function(){F===t||p||Q(t)},onClick:function(){p||W(h)},style:y}),l.createElement("div",{className:"".concat(A,"-content")},w||h),l.isValidElement(O)||C,S&&l.createElement(g.a,{className:"".concat(M,"-option-state"),customizeIcon:O,customizeIconProps:{isSelected:C}},C?"✓":null))})))}));b.displayName="OptionList";var y=b,x=function(){return null};x.isSelectOption=!0;var E=x,C=function(){return null};C.isSelectOptGroup=!0;var A=C,O=n("VTBJ"),k=n("Zm9Q");function w(e){var t=e.key,n=e.props,r=n.children,a=n.value,i=Object(c.a)(n,["children","value"]);return Object(O.a)({key:t,value:void 0!==a?a:t,children:r},i)}function S(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return Object(k.a)(e).map((function(e,n){if(!l.isValidElement(e)||!e.type)return null;var r=e.type.isSelectOptGroup,a=e.key,i=e.props,o=i.children,s=Object(c.a)(i,["children"]);return t||!r?w(e):Object(O.a)(Object(O.a)({key:"__RC_SELECT_GRP__".concat(null===a?n:a,"__"),label:a},s),{},{options:S(o)})})).filter((function(e){return e}))}var j=n("2Qr1"),N=n("qNPg"),I=n("U8pU"),M=n("Kwbf"),T=n("WKfj");var D=function(e){var t=e.mode,n=e.options,r=e.children,a=e.backfill,i=e.allowClear,o=e.placeholder,s=e.getInputElement,c=e.showSearch,u=e.onSearch,d=e.defaultOpen,f=e.autoFocus,p=e.labelInValue,h=e.value,m=e.inputValue,v=e.optionLabelProp,g="multiple"===t||"tags"===t,b=void 0!==c?c:g||"combobox"===t,y=n||S(r);if(Object(M.a)("tags"!==t||y.every((function(e){return!e.disabled})),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),"tags"===t||"combobox"===t){var x=y.some((function(e){return e.options?e.options.some((function(e){return"number"==typeof("value"in e?e.value:e.key)})):"number"==typeof("value"in e?e.value:e.key)}));Object(M.a)(!x,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(Object(M.a)("combobox"!==t||!v,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),Object(M.a)("combobox"===t||!a,"`backfill` only works with `combobox` mode."),Object(M.a)("combobox"===t||!s,"`getInputElement` only work with `combobox` mode."),Object(M.b)("combobox"!==t||!s||!i||!o,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),u&&!b&&"combobox"!==t&&"tags"!==t&&Object(M.a)(!1,"`onSearch` should work with `showSearch` instead of use alone."),Object(M.b)(!d||f,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),null!=h){var E=Object(T.d)(h);Object(M.a)(!p||E.every((function(e){return"object"===Object(I.a)(e)&&("key"in e||"value"in e)})),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),Object(M.a)(!g||Array.isArray(h),"`value` should be array when `mode` is `multiple` or `tags`")}if(r){var C=null;Object(k.a)(r).some((function(e){if(!l.isValidElement(e)||!e.type)return!1;var t=e.type;return!t.isSelectOption&&(t.isSelectOptGroup?!Object(k.a)(e.props.children).every((function(t){return!(l.isValidElement(t)&&e.type&&!t.type.isSelectOption)||(C=t.type,!1)})):(C=t,!0))})),C&&Object(M.a)(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(C.displayName||C.name||C,"`.")),Object(M.a)(void 0===m,"`inputValue` is deprecated, please use `searchValue` instead.")}},R=Object(N.a)({prefixCls:"rc-select",components:{optionList:y},convertChildrenToData:S,flattenOptions:j.d,getLabeledValue:j.e,filterOptions:j.b,isValueDisabled:j.g,findValueOption:j.c,warningProps:D,fillOptionsWithMissingValue:j.a}),L=function(e){Object(i.a)(n,e);var t=Object(o.a)(n);function n(){var e;return Object(r.a)(this,n),(e=t.apply(this,arguments)).selectRef=l.createRef(),e.focus=function(){e.selectRef.current.focus()},e.blur=function(){e.selectRef.current.blur()},e}return Object(a.a)(n,[{key:"render",value:function(){return l.createElement(R,Object.assign({ref:this.selectRef},this.props))}}]),n}(l.Component);L.Option=E,L.OptGroup=A;var B=L;t.c=B},NLgs:
|
|
|
/*!***********************************!*\
|
|
|
!*** ./src/utils/verifyLogin.tsx ***!
|
|
|
\***********************************/
|
|
|
/*! exports provided: handleVerify, handleVerifyLogin, handleProfleCompletedModal, handleProfessionalCertificationModal, handleCanShixunAddModal, AuthorizeModel, ShixunStatusModel */
|
|
|
/*! exports used: AuthorizeModel, ShixunStatusModel, handleCanShixunAddModal, handleProfessionalCertificationModal, handleVerify, handleVerifyLogin */function(e,t,n){"use strict";n.d(t,"e",(function(){return E})),n.d(t,"f",(function(){return C})),n.d(t,"d",(function(){return O})),n.d(t,"c",(function(){return k})),n.d(t,"a",(function(){return w})),n.d(t,"b",(function(){return S}));n(/*! antd/es/message/style */"miYZ");var r=n(/*! antd/es/message */"tsqr"),a=n(/*! ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/asyncToGenerator */"9og8"),i=(n(/*! antd/es/modal/style */"2qtc"),n(/*! antd/es/modal */"kLXV")),o=n(/*! ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/regenerator */"WmNS"),l=n.n(o),s=n(/*! react */"q1tI"),c=n.n(s),u=n(/*! umi */"9kvl"),d=n(/*! ./authority */"xKgJ"),f=n(/*! ./util */"1vsH"),p=n(/*! @ant-design/icons */"RCxd"),h=n(/*! @/assets/images/403Qrcode.png */"mOS8"),m=n.n(h),v=n(/*! @/assets/images/Authorize.png */"1ZF9"),g=n.n(v),b=n(/*! @/assets/images/studnetqun.png */"WdTA"),y=n.n(b),x=n(/*! ./env */"m3rI"),E=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return!(!C(e)||!A(t))},C=function(e){return!!Object(d.p)()||(e({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),!1)},A=function(){var e,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=Object(u.c)()._store.getState(),r=n.user;return!(null===(e=r.userInfo)||void 0===e||!e.profile_completed)||(i.a.confirm({title:"提示",width:530,centered:!0,content:t?"按照有关政策规定,特殊实验需要先绑定手机号才能使用,请先绑定手机号码":"您需要去完善您的个人资料,才能使用此功能",okText:"立即完善",cancelText:"稍后完善",onOk:function(){u.d.push("/account/profile/edit")}}),!1)},O=function(){var e;return!(null===(e=Object(u.c)()._store.getState().user.userInfo)||void 0===e||!e.professional_certification)||(i.a.confirm({title:"提示",centered:!0,content:c.a.createElement("div",{className:"tc"},"您需要去完成您的职业认证,才能使用此功能"),okText:"立即完善",cancelText:"稍后完善",onOk:function(){Object(f.Q)("/account/certification")}}),!1)},k=function(){return!!Object(d.a)()||(i.a.warning({centered:!0,width:530,title:"提示",content:c.a.createElement("div",{className:"tc",style:{marginLeft:-38}},c.a.createElement("p",null,"您可以扫码加群@群管理员,申请操作权限哦!"),c.a.createElement("img",{src:Object(d.t)()?y.a:"".concat(x.a.IMG_SERVER,"/images/educoder/qqqun20191230.png"),width:200})),okText:"我知道了",maskClosable:!0}),!1)},w=function(e,t){return!!e||(i.a.confirm({centered:!0,zIndex:1e4,width:530,title:"提示",content:c.a.createElement("div",null,c.a.createElement("p",null,t||"该实践资源需授权后才可使用。 您可以在QQ服务群向管理员申请,获得继续操作的权限。"),c.a.createElement("div",{style:{marginLeft:"110px"}},c.a.createElement("img",{src:g.a,width:200}),c.a.createElement("div",{style:{marginLeft:"35px"}},"群号:","714336072"))),okText:"立即联系",cancelText:"取消",onOk:function(){Object(f.Q)("https://qm.qq.com/cgi-bin/qm/qr?k=tIyDPXUtE0yEk-MOJxhH55lTUJS-nYAM&jump_from=webapi")}}),!1)},S=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=Object(u.c)()._store.getState(),o=n.shixunsDetail.detail;return 2===(null==o?void 0:o.public)||1===(null==o?void 0:o.public)||3===(null==o?void 0:o.shixun_status)?(i.a.info({centered:!0,icon:c.a.createElement(p.a,{style:{color:"#faad14"}}),width:460,title:"提示",content:c.a.createElement("div",{className:"tc",style:{marginLeft:-38}},c.a.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start",paddingLeft:38,margin:"12px 0"}},c.a.createElement("span",null,"该实践项目的状态为",2===(null==o?void 0:o.public)?"已公开":1===(null==o?void 0:o.public)?"待审核":"已关闭",",",t,"。"),c.a.createElement("p",null,"如有需要,请联系平台管理员进行技术支持。")),c.a.createElement("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:m.a,alt:"二维码",width:160})),okText:"我知道了"}),!0):2===(null==o?void 0:o.shixun_status)&&(i.a.confirm({centered:!0,icon:c.a.createElement(p.a,null),title:"提示",content:c.a.createElement("div",null,c.a.createElement("span",null,"该实践项目已发布,",t,"。"),c.a.createElement("br",null),c.a.createElement("span",null,"如有需要,您可以撤销发布后,再进行操作。")),okText:"撤销发布",cancelText:"取消",onOk:function(){var t;i.a.confirm({width:440,centered:!0,icon:c.a.createElement(p.a,{style:{color:"#faad14"}}),title:"提示",content:"撤销发布后,学员将无法进行练习。是否确认撤销发布?",okText:"确定撤销发布",cancelText:"取消",onOk:(t=Object(a.a)(l.a.mark((function t(){return l.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e({type:"shixunsDetail/cancelRelease",payload:{id:null==o?void 0:o.identifier}});case 2:401!==t.sent.status&&(r.b.success("撤销发布成功。实训回到未发布的状态。"),e({type:"shixunsDetail/getShixunsDetail",payload:{id:null==o?void 0:o.identifier}}),e({type:"practiceSetting/getCommonData",payload:{id:null==o?void 0:o.identifier}}));case 4:case"end":return t.stop()}}),t)}))),function(){return t.apply(this,arguments)})})}}),!0)}},Nmxd:
|
|
|
/*!*******************************************!*\
|
|
|
!*** ./src/assets/images/icons/done2.png ***!
|
|
|
\*******************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAF4ElEQVRoQ91aW2wUVRj+/rPbSivURIgKjZcHjUYTgZ0lthgv3V0LSqB9IAQeNNEIaKKwZbcFnuQJoZ1piyYawJjIiwZDwiVBaHd28QItaWeLD4KJPgimiA+YCAZj6Z7fzPZiu7e57WriJE0f5v++//tm/j3nn3MOoQyXcmJ/LdfeCBOjEUA9EdUzUA9g0ST9VQJGmXkU5n/CAN2q043Vm295TU9uCRS9MwCiFWBqAmD++R1yjQNIgTgF5tNGuCPtEJ8Nd2xgWarzPil9UbBsA1G1m6R5GOYxkOgRItM71NRxzQmnIwMBvStKoCiAB50kcRB7mcG96XB7r12MLQNPJXrvzdD4QQZW2yX2EkfACR/7N56PRH+14rE0sDSpLRaM4wA/YEVW3vt0RRLWjIRi35biLWkgmOhaz0SflleYMzZi3jAcaf+sGKqoAUVX3wbwnrN0FYveYoTj7xdiL2ggqKsvMnCyYnJcEBPw0nA4/kUuNM9AINX9MMnMIEDzXeSpIISvs/A1pJu2/TgzSZ4BRVf7ALxQQSVeqPuNcLy5qIHJcb7HS4ZKYxncNnOemH4DyqmehaiW58D8UKVFeOIn+gljYrmxsu2XWa2Eomt7AN7uidwd+CKBPy8EZdA7hSlprxGO7Zg2EPxSW8q35WDZehv7Ri4KEuuGQtu+y4UoSe0DML9ZkIp5jKpEw/BzsZFsCSkpNQYJ1X7eskQWF6+rbwD4sGQWgbjRFNcmDCS0oyBuKYsseyRFxS/TteWSZT+IaktSMR0zIrFWajzcXTM2X95w0c/bk5ofVVT8k6e77vT7qY+A5TbIx6uvizoKJNUVxDhlA1COkKLis5Wgq2bZmOVj62LCSlIS2m4Q77SF8BZkJd667nPzM71LSqLrEx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I1BN46riNeeTGvEazx21Ao5DmcRs5QHfV6UbQ+3GbvwHH7EQQahyMxwAAAABJRU5ErkJggg=="},NvD2:
|
|
|
/*!******************************************************!*\
|
|
|
!*** ./node_modules/rc-tree/es/utils/conductUtil.js ***!
|
|
|
\******************************************************/
|
|
|
/*! exports provided: isCheckDisabled, conductCheck */
|
|
|
/*! exports used: conductCheck */function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(/*! rc-util/es/warning */"Kwbf");function a(e,t){var n=new Set;return e.forEach((function(e){t.has(e)||n.add(e)})),n}function i(e){var t=e||{},n=t.disabled,r=t.disableCheckbox,a=t.checkable;return!(!n&&!r)||!1===a}function o(e,t,n,o){var l,s=[];l=o||i;var c=new Set(e.filter((function(e){var t=!!n[e];return t||s.push(e),t}))),u=new Map,d=0;return Object.keys(n).forEach((function(e){var t=n[e],r=t.level,a=u.get(r);a||(a=new Set,u.set(r,a)),a.add(t),d=Math.max(d,r)})),Object(r.a)(!s.length,"Tree missing follow keys: ".concat(s.slice(0,100).map((function(e){return"'".concat(e,"'")})).join(", "))),!0===t?function(e,t,n,r){for(var i=new Set(e),o=new Set,l=0;l<=n;l+=1){(t.get(l)||new Set).forEach((function(e){var t=e.key,n=e.node,a=e.children,o=void 0===a?[]:a;i.has(t)&&!r(n)&&o.filter((function(e){return!r(e.node)})).forEach((function(e){i.add(e.key)}))}))}for(var s=new Set,c=n;c>=0;c-=1){(t.get(c)||new Set).forEach((function(e){var t=e.parent,n=e.node;if(!r(n)&&e.parent&&!s.has(e.parent.key))if(r(e.parent.node))s.add(t.key);else{var a=!0,l=!1;(t.children||[]).filter((function(e){return!r(e.node)})).forEach((function(e){var t=e.key,n=i.has(t);a&&!n&&(a=!1),l||!n&&!o.has(t)||(l=!0)})),a&&i.add(t.key),l&&o.add(t.key),s.add(t.key)}}))}return{checkedKeys:Array.from(i),halfCheckedKeys:Array.from(a(o,i))}}(c,u,d,l):function(e,t,n,r,i){for(var o=new Set(e),l=new Set(t),s=0;s<=r;s+=1){(n.get(s)||new Set).forEach((function(e){var t=e.key,n=e.node,r=e.children,a=void 0===r?[]:r;o.has(t)||l.has(t)||i(n)||a.filter((function(e){return!i(e.node)})).forEach((function(e){o.delete(e.key)}))}))}l=new Set;for(var c=new Set,u=r;u>=0;u-=1){(n.get(u)||new Set).forEach((function(e){var t=e.parent,n=e.node;if(!i(n)&&e.parent&&!c.has(e.parent.key))if(i(e.parent.node))c.add(t.key);else{var r=!0,a=!1;(t.children||[]).filter((function(e){return!i(e.node)})).forEach((function(e){var t=e.key,n=o.has(t);r&&!n&&(r=!1),a||!n&&!l.has(t)||(a=!0)})),r||o.delete(t.key),a&&l.add(t.key),c.add(t.key)}}))}return{checkedKeys:Array.from(o),halfCheckedKeys:Array.from(a(l,o))}}(c,t.halfCheckedKeys,u,d,l)}},OZM5:
|
|
|
/*!*****************************************!*\
|
|
|
!*** ./node_modules/rc-tree/es/util.js ***!
|
|
|
\*****************************************/
|
|
|
/*! exports provided: arrDel, arrAdd, posToArr, getPosition, isTreeNode, getDragNodesKeys, calcDropPosition, calcSelectedKeys, convertDataToTree, parseCheckedKeys, conductExpandParent, getDataAndAria */
|
|
|
/*! exports used: arrAdd, arrDel, calcDropPosition, calcSelectedKeys, conductExpandParent, getDataAndAria, getDragNodesKeys, getPosition, isTreeNode, parseCheckedKeys, posToArr */function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return l})),n.d(t,"k",(function(){return s})),n.d(t,"h",(function(){return c})),n.d(t,"i",(function(){return u})),n.d(t,"g",(function(){return d})),n.d(t,"c",(function(){return f})),n.d(t,"d",(function(){return p})),n.d(t,"j",(function(){return h})),n.d(t,"e",(function(){return m})),n.d(t,"f",(function(){return v}));var r=n(/*! @babel/runtime/helpers/esm/toConsumableArray */"KQm4"),a=n(/*! @babel/runtime/helpers/esm/typeof */"U8pU"),i=(n(/*! @babel/runtime/helpers/esm/objectWithoutProperties */"Ff2n"),n(/*! react */"q1tI"),n(/*! rc-util/es/warning */"Kwbf"));n(/*! ./TreeNode */"WaYH");function o(e,t){var n=e.slice(),r=n.indexOf(t);return r>=0&&n.splice(r,1),n}function l(e,t){var n=e.slice();return-1===n.indexOf(t)&&n.push(t),n}function s(e){return e.split("-")}function c(e,t){return"".concat(e,"-").concat(t)}function u(e){return e&&e.type&&e.type.isTreeNode}function d(e,t){var n=[e];return function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];t.forEach((function(t){var r=t.key,a=t.children;n.push(r),e(a)}))}(t[e].children),n}function f(e,t){var n=e.clientY,r=t.selectHandle.getBoundingClientRect(),a=r.top,i=r.bottom,o=r.height,l=Math.max(.25*o,2);return n<=a+l?-1:n>=i-l?1:0}function p(e,t){if(e)return t.multiple?e.slice():e.length?[e[0]]:e}function h(e){if(!e)return null;var t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else{if("object"!==Object(a.a)(e))return Object(i.a)(!1,"`checkedKeys` is not an array or an object"),null;t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0}}return t}function m(e,t){var n=new Set;return(e||[]).forEach((function(e){!function e(r){if(!n.has(r)){var a=t[r];if(a){n.add(r);var i=a.parent;a.node.disabled||i&&e(i.key)}}}(e)})),Object(r.a)(n)}function v(e){var t={};return Object.keys(e).forEach((function(n){(n.startsWith("data-")||n.startsWith("aria-"))&&(t[n]=e[n])})),t}},Ohmc:
|
|
|
/*!*******************************************!*\
|
|
|
!*** ./src/assets/images/certificate.jpg ***!
|
|
|
\*******************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,n){e.exports=n.p+"static/certificate.fc32dc1b.jpg"},P5Jw:
|
|
|
/*!***********************************************************!*\
|
|
|
!*** ./node_modules/react-copy-to-clipboard/lib/index.js ***!
|
|
|
\***********************************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! exports used: CopyToClipboard */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,n){"use strict";var r=n(/*! ./Component */"rHrb").CopyToClipboard;r.CopyToClipboard=r,e.exports=r},RMFE:
|
|
|
/*!**********************************!*\
|
|
|
!*** ./src/assets/images/hb.png ***!
|
|
|
\**********************************/
|
|
|
/*! no static exports found */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAWgAAAFyCAYAAADYqEAoAAAAAXNSR0IArs4c6QAADetJREFUeAHt1jFqXUEQRUHLaP9b/jZObmYU9MAJSlGDxNBUPw76+vz9+eWHAAECBHICv3MbWYgAAQIE/gkItA+BAAECUQGBjh7GWgQIEBBo3wABAgSiAgIdPYy1CBAgINC+AQIECEQFBDp6GGsRIEBAoH0DBAgQiAoIdPQw1iJAgIBA+wYIECAQFRDo6GGsRYAAAYH2DRAgQCAqINDRw1iLAAECAu0bIECAQFRAoKOHsRYBAgQE2jdAgACBqIBARw9jLQIECAi0b4AAAQJRAYGOHsZaBAgQEGjfAAECBKICAh09jLUIECAg0L4BAgQIRAUEOnoYaxEgQECgfQMECBCICgh09DDWIkCAgED7BggQIBAVEOjoYaxFgAABgfYNECBAICog0NHDWIsAAQIC7RsgQIBAVECgo4exFgECBATaN0CAAIGogEBHD2MtAgQICLRvgAABAlEBgY4exloECBAQaN8AAQIEogICHT2MtQgQICDQvgECBAhEBQQ6ehhrESBAQKB9AwQIEIgKCHT0MNYiQICAQPsGCBAgEBUQ6OhhrEWAAAGB9g0QIEAgKiDQ0cNYiwABAgLtGyBAgEBUQKCjh7EWAQIEBNo3QIAAgaiAQEcPYy0CBAh8/5Tg6+vrp3/q7wgQIEDgPwKfz+c/v92v/Ac9CxMBAgRSAgKdOodlCBAgMAGBnoWJAAECKQGBTp3DMgQIEJiAQM/CRIAAgZSAQKfOYRkCBAhMQKBnYSJAgEBKQKBT57AMAQIEJiDQszARIEAg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D/oA0RPECBA4IWAQL9Q9SYBAgQOBAT6ANETBAgQeCEg0C9UvUmAAIEDAYE+QPQEAQIEXggI9AtVbxIgQOBAQKAPED1BgACBFwIC/ULVmwQIEDgQEOgDRE8QIEDghYBAv1D1JgECBA4EBPoA0RMECBB4ISDQL1S9SYAAgQMBgT5A9AQBAgReCAj0C1VvEiBA4EBAoA8QPUGAAIEXAgL9QtWbBAgQOBAQ6ANETxAgQOCFgEC/UPUmAQIEDgQE+gDREwQIEHghINAvVL1JgACBAwGBPkD0BAECBF4ICPQLVW8SIEDgQECgDxA9QYAAgRcCAv1C1ZsECBA4EBDoA0RPECBA4IWAQL9Q9SYBAgQOBAT6ANETBAgQeCEg0C9UvUmAAIEDAYE+QPQEAQIEXggI9AtVbxIgQOBAQKAPED1BgACBFwIC/ULVmwQIEDgQEOgDRE8QIEDghYBAv1D1JgECBA4EBPoA0RMECBB4ISDQL1S9SYAAgQMBgT5A9AQBAgReCAj0C1VvEiBA4EBAoA8QPUGAAIEXAgL9QtWbBAgQOBAQ6ANETxAgQOCFgEC/UPUmAQIEDgQE+gDREwQIEHghINAvVL1JgACBAwGBPkD0BAECBF4ICPQLVW8SIEDgQECgDxA9QYAAgRcCAv1C1ZsECBA4EBDoA0RPECBA4IXAH7PYDOHnuk1pAAAAAElFTkSuQmCC"},RotF:
|
|
|
/*!*******************************************************!*\
|
|
|
!*** ./node_modules/react-infinite-scroller/index.js ***!
|
|
|
\*******************************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,n){e.exports=n(/*! ./dist/InfiniteScroll */"LSTS")},"SA+Z":
|
|
|
/*!********************************************************!*\
|
|
|
!*** ./node_modules/@babel/runtime/helpers/toArray.js ***!
|
|
|
\********************************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,n){var r=n(/*! ./arrayWithHoles.js */"wTVA"),a=n(/*! ./iterableToArray.js */"EbDI"),i=n(/*! ./unsupportedIterableToArray.js */"ZhPi"),o=n(/*! ./nonIterableRest.js */"wkBT");e.exports=function(e){return r(e)||a(e)||i(e)||o()},e.exports.__esModule=!0,e.exports.default=e.exports},SMhR:
|
|
|
/*!*****************************************!*\
|
|
|
!*** ./src/assets/images/teacherQQ.png ***!
|
|
|
\*****************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAcYAAAHGCAYAAADuYispAAAAAklEQVR4AewaftIAABHTSURBVO3BQY4cy5IEQdNA3//KNo2/8NU8XzCQyCpSReivSJKk/zmRJEnjRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ40SSJI0TSZI0TiRJ0jiRJEnjRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ40SSJI0TSZI0TiRJ0jiRJEnjRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNH7yMiB/s7a5AWTTNhsgN9pmA2TTNp8MyI22uQHkv7TNDSCbttkAudE2bwJyo22eBGTTNhsgf7O2ecuJJEkaJ5IkaZxIkqRxIkmSxokkSRonkiRpnEiSpPGTD9c2nwzIk9pmA2TTNjeAPAnIpm1uANm0zQbIDSBPAXIDyKZtPhmQG22zAfLN2uaTAflUJ5IkaZxIkqRxIkmSxokkSRonkiRpnEiSpHEiSZLGT74ckCe1zZOAbNpm0zYbIDfaZgPkRts8qW1utM0GyKZtntI2GyBPArJpmw2QTds8CcimbW4A+WRAntQ23+pEkiSNE0mSNE4kSdI4kSRJ40SSJI0TSZI0TiRJ0viJXtU2T2qbDZA3Adm0zZOAbNpm0zYbIJu2+VZtswGyaZsbbbMBsmmbDZBN29xoG32mE0mSNE4kSdI4kSRJ40SSJI0TSZI0TiRJ0jiRJEnjJ3oVkC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4kSRJ40SSJI0TSZI0TiRJ0jiRJEnjRJIkjRNJkjROJEnSOJEkSeNEkiSNE0mSNE4kSdI4kSRJ4/8ATrCgy9kbxW8AAAAASUVORK5CYII="},TGq3:
|
|
|
/*!***********************************************!*\
|
|
|
!*** ./src/assets/images/icons/lockclose.svg ***!
|
|
|
\***********************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,n){e.exports=n.p+"static/lockclose.365036e8.svg"},"VrN/":
|
|
|
/*!***************************************************!*\
|
|
|
!*** ./node_modules/codemirror/lib/codemirror.js ***!
|
|
|
\***************************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! all exports used */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,n){e.exports=function(){"use strict";var e=navigator.userAgent,t=navigator.platform,n=/gecko\/\d/i.test(e),r=/MSIE \d/.test(e),a=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(e),i=/Edge\/(\d+)/.exec(e),o=r||a||i,l=o&&(r?document.documentMode||6:+(i||a)[1]),s=!i&&/WebKit\//.test(e),c=s&&/Qt\/\d+\.\d+/.test(e),u=!i&&/Chrome\//.test(e),d=/Opera\//.test(e),f=/Apple Computer/.test(navigator.vendor),p=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(e),h=/PhantomJS/.test(e),m=!i&&/AppleWebKit/.test(e)&&/Mobile\/\w+/.test(e),v=/Android/.test(e),g=m||v||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(e),b=m||/Mac/.test(t),y=/\bCrOS\b/.test(e),x=/win/i.test(t),E=d&&e.match(/Version\/(\d*\.\d*)/);E&&(E=Number(E[1])),E&&E>=15&&(d=!1,s=!0);var C=b&&(c||d&&(null==E||E<12.11)),A=n||o&&l>=9;function O(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var k,w=function(e,t){var n=e.className,r=O(t).exec(n);if(r){var a=n.slice(r.index+r[0].length);e.className=n.slice(0,r.index)+(a?r[1]+a:"")}};function S(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function j(e,t){return S(e).appendChild(t)}function N(e,t,n,r){var a=document.createElement(e);if(n&&(a.className=n),r&&(a.style.cssText=r),"string"==typeof t)a.appendChild(document.createTextNode(t));else if(t)for(var i=0;i<t.length;++i)a.appendChild(t[i]);return a}function I(e,t,n,r){var a=N(e,t,n,r);return a.setAttribute("role","presentation"),a}function M(e,t){if(3==t.nodeType&&(t=t.parentNode),e.contains)return e.contains(t);do{if(11==t.nodeType&&(t=t.host),t==e)return!0}while(t=t.parentNode)}function T(){var e;try{e=document.activeElement}catch(t){e=document.body||null}for(;e&&e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}function D(e,t){var n=e.className;O(t).test(n)||(e.className+=(n?" ":"")+t)}function R(e,t){for(var n=e.split(" "),r=0;r<n.length;r++)n[r]&&!O(n[r]).test(t)&&(t+=" "+n[r]);return t}k=document.createRange?function(e,t,n,r){var a=document.createRange();return a.setEnd(r||e,n),a.setStart(e,t),a}:function(e,t,n){var r=document.body.createTextRange();try{r.moveToElementText(e.parentNode)}catch(e){return r}return r.collapse(!0),r.moveEnd("character",n),r.moveStart("character",t),r};var L=function(e){e.select()};function B(e){var t=Array.prototype.slice.call(arguments,1);return function(){return e.apply(null,t)}}function P(e,t,n){for(var r in t||(t={}),e)!e.hasOwnProperty(r)||!1===n&&t.hasOwnProperty(r)||(t[r]=e[r]);return t}function K(e,t,n,r,a){null==t&&-1==(t=e.search(/[^\s\u00a0]/))&&(t=e.length);for(var i=r||0,o=a||0;;){var l=e.indexOf("\t",i);if(l<0||l>=t)return o+(t-i);o+=l-i,o+=n-o%n,i=l+1}}m?L=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:o&&(L=function(e){try{e.select()}catch(e){}});var F=function(){this.id=null,this.f=null,this.time=0,this.handler=B(this.onTimeout,this)};function z(e,t){for(var n=0;n<e.length;++n)if(e[n]==t)return n;return-1}F.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},F.prototype.set=function(e,t){this.f=t;var n=+new Date+e;(!this.id||n<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,e),this.time=n)};var Q={toString:function(){return"CodeMirror.Pass"}},W={scroll:!1},H={origin:"*mouse"},J={origin:"+move"};function U(e,t,n){for(var r=0,a=0;;){var i=e.indexOf("\t",r);-1==i&&(i=e.length);var o=i-r;if(i==e.length||a+o>=t)return r+Math.min(o,t-a);if(a+=i-r,r=i+1,(a+=n-a%n)>=t)return r}}var V=[""];function G(e){for(;V.length<=e;)V.push(Y(V)+" ");return V[e]}function Y(e){return e[e.length-1]}function Z(e,t){for(var n=[],r=0;r<e.length;r++)n[r]=t(e[r],r);return n}function q(){}function X(e,t){var n;return Object.create?n=Object.create(e):(q.prototype=e,n=new q),t&&P(t,n),n}var _=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function $(e){return/\w/.test(e)||e>""&&(e.toUpperCase()!=e.toLowerCase()||_.test(e))}function ee(e,t){return t?!!(t.source.indexOf("\\w")>-1&&$(e))||t.test(e):$(e)}function te(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var ne=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function re(e){return e.charCodeAt(0)>=768&&ne.test(e)}function ae(e,t,n){for(;(n<0?t>0:t<e.length)&&re(e.charAt(t));)t+=n;return t}function ie(e,t,n){for(var r=t>n?-1:1;;){if(t==n)return t;var a=(t+n)/2,i=r<0?Math.ceil(a):Math.floor(a);if(i==t)return e(i)?t:n;e(i)?n=i:t=i+r}}var oe=null;function le(e,t,n){var r;oe=null;for(var a=0;a<e.length;++a){var i=e[a];if(i.from<t&&i.to>t)return a;i.to==t&&(i.from!=i.to&&"before"==n?r=a:oe=a),i.from==t&&(i.from!=i.to&&"before"!=n?r=a:oe=a)}return null!=r?r:oe}var se=function(){var e=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,t=/[stwN]/,n=/[LRr]/,r=/[Lb1n]/,a=/[1n]/;function i(e,t,n){this.level=e,this.from=t,this.to=n}return function(o,l){var s="ltr"==l?"L":"R";if(0==o.length||"ltr"==l&&!e.test(o))return!1;for(var c,u=o.length,d=[],f=0;f<u;++f)d.push((c=o.charCodeAt(f))<=247?"bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN".charAt(c):1424<=c&&c<=1524?"R":1536<=c&&c<=1785?"nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111".charAt(c-1536):1774<=c&&c<=2220?"r":8192<=c&&c<=8203?"w":8204==c?"b":"L");for(var p=0,h=s;p<u;++p){var m=d[p];"m"==m?d[p]=h:h=m}for(var v=0,g=s;v<u;++v){var b=d[v];"1"==b&&"r"==g?d[v]="n":n.test(b)&&(g=b,"r"==b&&(d[v]="R"))}for(var y=1,x=d[0];y<u-1;++y){var E=d[y];"+"==E&&"1"==x&&"1"==d[y+1]?d[y]="1":","!=E||x!=d[y+1]||"1"!=x&&"n"!=x||(d[y]=x),x=E}for(var C=0;C<u;++C){var A=d[C];if(","==A)d[C]="N";else if("%"==A){var O=void 0;for(O=C+1;O<u&&"%"==d[O];++O);for(var k=C&&"!"==d[C-1]||O<u&&"1"==d[O]?"1":"N",w=C;w<O;++w)d[w]=k;C=O-1}}for(var S=0,j=s;S<u;++S){var N=d[S];"L"==j&&"1"==N?d[S]="L":n.test(N)&&(j=N)}for(var I=0;I<u;++I)if(t.test(d[I])){var M=void 0;for(M=I+1;M<u&&t.test(d[M]);++M);for(var T="L"==(I?d[I-1]:s),D=T==("L"==(M<u?d[M]:s))?T?"L":"R":s,R=I;R<M;++R)d[R]=D;I=M-1}for(var L,B=[],P=0;P<u;)if(r.test(d[P])){var K=P;for(++P;P<u&&r.test(d[P]);++P);B.push(new i(0,K,P))}else{var F=P,z=B.length,Q="rtl"==l?1:0;for(++P;P<u&&"L"!=d[P];++P);for(var W=F;W<P;)if(a.test(d[W])){F<W&&(B.splice(z,0,new i(1,F,W)),z+=Q);var H=W;for(++W;W<P&&a.test(d[W]);++W);B.splice(z,0,new i(2,H,W)),z+=Q,F=W}else++W;F<P&&B.splice(z,0,new i(1,F,P))}return"ltr"==l&&(1==B[0].level&&(L=o.match(/^\s+/))&&(B[0].from=L[0].length,B.unshift(new i(0,0,L[0].length))),1==Y(B).level&&(L=o.match(/\s+$/))&&(Y(B).to-=L[0].length,B.push(new i(0,u-L[0].length,u)))),"rtl"==l?B.reverse():B}}();function ce(e,t){var n=e.order;return null==n&&(n=e.order=se(e.text,t)),n}var ue=[],de=function(e,t,n){if(e.addEventListener)e.addEventListener(t,n,!1);else if(e.attachEvent)e.attachEvent("on"+t,n);else{var r=e._handlers||(e._handlers={});r[t]=(r[t]||ue).concat(n)}};function fe(e,t){return e._handlers&&e._handlers[t]||ue}function pe(e,t,n){if(e.removeEventListener)e.removeEventListener(t,n,!1);else if(e.detachEvent)e.detachEvent("on"+t,n);else{var r=e._handlers,a=r&&r[t];if(a){var i=z(a,n);i>-1&&(r[t]=a.slice(0,i).concat(a.slice(i+1)))}}}function he(e,t){var n=fe(e,t);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),a=0;a<n.length;++a)n[a].apply(null,r)}function me(e,t,n){return"string"==typeof t&&(t={type:t,preventDefault:function(){this.defaultPrevented=!0}}),he(e,n||t.type,e,t),Ee(t)||t.codemirrorIgnore}function ve(e){var t=e._handlers&&e._handlers.cursorActivity;if(t)for(var n=e.curOp.cursorActivityHandlers||(e.curOp.cursorActivityHandlers=[]),r=0;r<t.length;++r)-1==z(n,t[r])&&n.push(t[r])}function ge(e,t){return fe(e,t).length>0}function be(e){e.prototype.on=function(e,t){de(this,e,t)},e.prototype.off=function(e,t){pe(this,e,t)}}function ye(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function xe(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function Ee(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function Ce(e){ye(e),xe(e)}function Ae(e){return e.target||e.srcElement}function Oe(e){var t=e.which;return null==t&&(1&e.button?t=1:2&e.button?t=3:4&e.button&&(t=2)),b&&e.ctrlKey&&1==t&&(t=3),t}var ke,we,Se=function(){if(o&&l<9)return!1;var e=N("div");return"draggable"in e||"dragDrop"in e}();function je(e){if(null==ke){var t=N("span","");j(e,N("span",[t,document.createTextNode("x")])),0!=e.firstChild.offsetHeight&&(ke=t.offsetWidth<=1&&t.offsetHeight>2&&!(o&&l<8))}var n=ke?N("span",""):N("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}function Ne(e){if(null!=we)return we;var t=j(e,document.createTextNode("AخA")),n=k(t,0,1).getBoundingClientRect(),r=k(t,1,2).getBoundingClientRect();return S(e),!(!n||n.left==n.right)&&(we=r.right-n.right<3)}var Ie,Me=3!="\n\nb".split(/\n/).length?function(e){for(var t=0,n=[],r=e.length;t<=r;){var a=e.indexOf("\n",t);-1==a&&(a=e.length);var i=e.slice(t,"\r"==e.charAt(a-1)?a-1:a),o=i.indexOf("\r");-1!=o?(n.push(i.slice(0,o)),t+=o+1):(n.push(i),t=a+1)}return n}:function(e){return e.split(/\r\n?|\n/)},Te=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch(e){return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch(e){}return!(!t||t.parentElement()!=e)&&0!=t.compareEndPoints("StartToEnd",t)},De="oncopy"in(Ie=N("div"))||(Ie.setAttribute("oncopy","return;"),"function"==typeof Ie.oncopy),Re=null,Le={},Be={};function Pe(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Le[e]=t}function Ke(e){if("string"==typeof e&&Be.hasOwnProperty(e))e=Be[e];else if(e&&"string"==typeof e.name&&Be.hasOwnProperty(e.name)){var t=Be[e.name];"string"==typeof t&&(t={name:t}),(e=X(t,e)).name=t.name}else{if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Ke("application/xml");if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Ke("application/json")}return"string"==typeof e?{name:e}:e||{name:"null"}}function Fe(e,t){t=Ke(t);var n=Le[t.name];if(!n)return Fe(e,"text/plain");var r=n(e,t);if(ze.hasOwnProperty(t.name)){var a=ze[t.name];for(var i in a)a.hasOwnProperty(i)&&(r.hasOwnProperty(i)&&(r["_"+i]=r[i]),r[i]=a[i])}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var o in t.modeProps)r[o]=t.modeProps[o];return r}var ze={};function Qe(e,t){P(t,ze.hasOwnProperty(e)?ze[e]:ze[e]={})}function We(e,t){if(!0===t)return t;if(e.copyState)return e.copyState(t);var n={};for(var r in t){var a=t[r];a instanceof Array&&(a=a.concat([])),n[r]=a}return n}function He(e,t){for(var n;e.innerMode&&(n=e.innerMode(t))&&n.mode!=e;)t=n.state,e=n.mode;return n||{mode:e,state:t}}function Je(e,t,n){return!e.startState||e.startState(t,n)}var Ue=function(e,t,n){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};function Ve(e,t){if((t-=e.first)<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var n=e;!n.lines;)for(var r=0;;++r){var a=n.children[r],i=a.chunkSize();if(t<i){n=a;break}t-=i}return n.lines[t]}function Ge(e,t,n){var r=[],a=t.line;return e.iter(t.line,n.line+1,(function(e){var i=e.text;a==n.line&&(i=i.slice(0,n.ch)),a==t.line&&(i=i.slice(t.ch)),r.push(i),++a})),r}function Ye(e,t,n){var r=[];return e.iter(t,n,(function(e){r.push(e.text)})),r}function Ze(e,t){var n=t-e.height;if(n)for(var r=e;r;r=r.parent)r.height+=n}function qe(e){if(null==e.parent)return null;for(var t=e.parent,n=z(t.lines,e),r=t.parent;r;t=r,r=r.parent)for(var a=0;r.children[a]!=t;++a)n+=r.children[a].chunkSize();return n+t.first}function Xe(e,t){var n=e.first;e:do{for(var r=0;r<e.children.length;++r){var a=e.children[r],i=a.height;if(t<i){e=a;continue e}t-=i,n+=a.chunkSize()}return n}while(!e.lines);for(var o=0;o<e.lines.length;++o){var l=e.lines[o].height;if(t<l)break;t-=l}return n+o}function _e(e,t){return t>=e.first&&t<e.first+e.size}function $e(e,t){return String(e.lineNumberFormatter(t+e.firstLineNumber))}function et(e,t,n){if(void 0===n&&(n=null),!(this instanceof et))return new et(e,t,n);this.line=e,this.ch=t,this.sticky=n}function tt(e,t){return e.line-t.line||e.ch-t.ch}function nt(e,t){return e.sticky==t.sticky&&0==tt(e,t)}function rt(e){return et(e.line,e.ch)}function at(e,t){return tt(e,t)<0?t:e}function it(e,t){return tt(e,t)<0?e:t}function ot(e,t){return Math.max(e.first,Math.min(t,e.first+e.size-1))}function lt(e,t){if(t.line<e.first)return et(e.first,0);var n=e.first+e.size-1;return t.line>n?et(n,Ve(e,n).text.length):function(e,t){var n=e.ch;return null==n||n>t?et(e.line,t):n<0?et(e.line,0):e}(t,Ve(e,t.line).text.length)}function st(e,t){for(var n=[],r=0;r<t.length;r++)n[r]=lt(e,t[r]);return n}Ue.prototype.eol=function(){return this.pos>=this.string.length},Ue.prototype.sol=function(){return this.pos==this.lineStart},Ue.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Ue.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},Ue.prototype.eat=function(e){var t=this.string.charAt(this.pos);if("string"==typeof e?t==e:t&&(e.test?e.test(t):e(t)))return++this.pos,t},Ue.prototype.eatWhile=function(e){for(var t=this.pos;this.eat(e););return this.pos>t},Ue.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},Ue.prototype.skipToEnd=function(){this.pos=this.string.length},Ue.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},Ue.prototype.backUp=function(e){this.pos-=e},Ue.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=K(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?K(this.string,this.lineStart,this.tabSize):0)},Ue.prototype.indentation=function(){return K(this.string,null,this.tabSize)-(this.lineStart?K(this.string,this.lineStart,this.tabSize):0)},Ue.prototype.match=function(e,t,n){if("string"!=typeof e){var r=this.string.slice(this.pos).match(e);return r&&r.index>0?null:(r&&!1!==t&&(this.pos+=r[0].length),r)}var a=function(e){return n?e.toLowerCase():e};if(a(this.string.substr(this.pos,e.length))==a(e))return!1!==t&&(this.pos+=e.length),!0},Ue.prototype.current=function(){return this.string.slice(this.start,this.pos)},Ue.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},Ue.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},Ue.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};var ct=function(e,t){this.state=e,this.lookAhead=t},ut=function(e,t,n,r){this.state=t,this.doc=e,this.line=n,this.maxLookAhead=r||0,this.baseTokens=null,this.baseTokenPos=1};function dt(e,t,n,r){var a=[e.state.modeGen],i={};xt(e,t.text,e.doc.mode,n,(function(e,t){return a.push(e,t)}),i,r);for(var o=n.state,l=function(r){n.baseTokens=a;var l=e.state.overlays[r],s=1,c=0;n.state=!0,xt(e,t.text,l.mode,n,(function(e,t){for(var n=s;c<e;){var r=a[s];r>e&&a.splice(s,1,e,a[s+1],r),s+=2,c=Math.min(e,r)}if(t)if(l.opaque)a.splice(n,s-n,e,"overlay "+t),s=n+2;else for(;n<s;n+=2){var i=a[n+1];a[n+1]=(i?i+" ":"")+"overlay "+t}}),i),n.state=o,n.baseTokens=null,n.baseTokenPos=1},s=0;s<e.state.overlays.length;++s)l(s);return{styles:a,classes:i.bgClass||i.textClass?i:null}}function ft(e,t,n){if(!t.styles||t.styles[0]!=e.state.modeGen){var r=pt(e,qe(t)),a=t.text.length>e.options.maxHighlightLength&&We(e.doc.mode,r.state),i=dt(e,t,r);a&&(r.state=a),t.stateAfter=r.save(!a),t.styles=i.styles,i.classes?t.styleClasses=i.classes:t.styleClasses&&(t.styleClasses=null),n===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function pt(e,t,n){var r=e.doc,a=e.display;if(!r.mode.startState)return new ut(r,!0,t);var i=function(e,t,n){for(var r,a,i=e.doc,o=n?-1:t-(e.doc.mode.innerMode?1e3:100),l=t;l>o;--l){if(l<=i.first)return i.first;var s=Ve(i,l-1),c=s.stateAfter;if(c&&(!n||l+(c instanceof ct?c.lookAhead:0)<=i.modeFrontier))return l;var u=K(s.text,null,e.options.tabSize);(null==a||r>u)&&(a=l-1,r=u)}return a}(e,t,n),o=i>r.first&&Ve(r,i-1).stateAfter,l=o?ut.fromSaved(r,o,i):new ut(r,Je(r.mode),i);return r.iter(i,t,(function(n){ht(e,n.text,l);var r=l.line;n.stateAfter=r==t-1||r%5==0||r>=a.viewFrom&&r<a.viewTo?l.save():null,l.nextLine()})),n&&(r.modeFrontier=l.line),l}function ht(e,t,n,r){var a=e.doc.mode,i=new Ue(t,e.options.tabSize,n);for(i.start=i.pos=r||0,""==t&&mt(a,n.state);!i.eol();)vt(a,i,n.state),i.start=i.pos}function mt(e,t){if(e.blankLine)return e.blankLine(t);if(e.innerMode){var n=He(e,t);return n.mode.blankLine?n.mode.blankLine(n.state):void 0}}function vt(e,t,n,r){for(var a=0;a<10;a++){r&&(r[0]=He(e,n).mode);var i=e.token(t,n);if(t.pos>t.start)return i}throw new Error("Mode "+e.name+" failed to advance stream.")}ut.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return null!=t&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},ut.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},ut.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},ut.fromSaved=function(e,t,n){return t instanceof ct?new ut(e,We(e.mode,t.state),n,t.lookAhead):new ut(e,We(e.mode,t),n)},ut.prototype.save=function(e){var t=!1!==e?We(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new ct(t,this.maxLookAhead):t};var gt=function(e,t,n){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=n};function bt(e,t,n,r){var a,i,o=e.doc,l=o.mode,s=Ve(o,(t=lt(o,t)).line),c=pt(e,t.line,n),u=new Ue(s.text,e.options.tabSize,c);for(r&&(i=[]);(r||u.pos<t.ch)&&!u.eol();)u.start=u.pos,a=vt(l,u,c.state),r&&i.push(new gt(u,a,We(o.mode,c.state)));return r?i:new gt(u,a,c.state)}function yt(e,t){if(e)for(;;){var n=e.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!n)break;e=e.slice(0,n.index)+e.slice(n.index+n[0].length);var r=n[1]?"bgClass":"textClass";null==t[r]?t[r]=n[2]:new RegExp("(?:^|\\s)"+n[2]+"(?:$|\\s)").test(t[r])||(t[r]+=" "+n[2])}return e}function xt(e,t,n,r,a,i,o){var l=n.flattenSpans;null==l&&(l=e.options.flattenSpans);var s,c=0,u=null,d=new Ue(t,e.options.tabSize,r),f=e.options.addModeClass&&[null];for(""==t&&yt(mt(n,r.state),i);!d.eol();){if(d.pos>e.options.maxHighlightLength?(l=!1,o&&ht(e,t,r,d.pos),d.pos=t.length,s=null):s=yt(vt(n,d,r.state,f),i),f){var p=f[0].name;p&&(s="m-"+(s?p+" "+s:p))}if(!l||u!=s){for(;c<d.start;)a(c=Math.min(d.start,c+5e3),u);u=s}d.start=d.pos}for(;c<d.pos;){var h=Math.min(d.pos,c+5e3);a(h,u),c=h}}var Et=!1,Ct=!1;function At(e,t,n){this.marker=e,this.from=t,this.to=n}function Ot(e,t){if(e)for(var n=0;n<e.length;++n){var r=e[n];if(r.marker==t)return r}}function kt(e,t){for(var n,r=0;r<e.length;++r)e[r]!=t&&(n||(n=[])).push(e[r]);return n}function wt(e,t){if(t.full)return null;var n=_e(e,t.from.line)&&Ve(e,t.from.line).markedSpans,r=_e(e,t.to.line)&&Ve(e,t.to.line).markedSpans;if(!n&&!r)return null;var a=t.from.ch,i=t.to.ch,o=0==tt(t.from,t.to),l=function(e,t,n){var r;if(e)for(var a=0;a<e.length;++a){var i=e[a],o=i.marker;if(null==i.from||(o.inclusiveLeft?i.from<=t:i.from<t)||i.from==t&&"bookmark"==o.type&&(!n||!i.marker.insertLeft)){var l=null==i.to||(o.inclusiveRight?i.to>=t:i.to>t);(r||(r=[])).push(new At(o,i.from,l?null:i.to))}}return r}(n,a,o),s=function(e,t,n){var r;if(e)for(var a=0;a<e.length;++a){var i=e[a],o=i.marker;if(null==i.to||(o.inclusiveRight?i.to>=t:i.to>t)||i.from==t&&"bookmark"==o.type&&(!n||i.marker.insertLeft)){var l=null==i.from||(o.inclusiveLeft?i.from<=t:i.from<t);(r||(r=[])).push(new At(o,l?null:i.from-t,null==i.to?null:i.to-t))}}return r}(r,i,o),c=1==t.text.length,u=Y(t.text).length+(c?a:0);if(l)for(var d=0;d<l.length;++d){var f=l[d];if(null==f.to){var p=Ot(s,f.marker);p?c&&(f.to=null==p.to?null:p.to+u):f.to=a}}if(s)for(var h=0;h<s.length;++h){var m=s[h];null!=m.to&&(m.to+=u),null==m.from?Ot(l,m.marker)||(m.from=u,c&&(l||(l=[])).push(m)):(m.from+=u,c&&(l||(l=[])).push(m))}l&&(l=St(l)),s&&s!=l&&(s=St(s));var v=[l];if(!c){var g,b=t.text.length-2;if(b>0&&l)for(var y=0;y<l.length;++y)null==l[y].to&&(g||(g=[])).push(new At(l[y].marker,null,null));for(var x=0;x<b;++x)v.push(g);v.push(s)}return v}function St(e){for(var t=0;t<e.length;++t){var n=e[t];null!=n.from&&n.from==n.to&&!1!==n.marker.clearWhenEmpty&&e.splice(t--,1)}return e.length?e:null}function jt(e){var t=e.markedSpans;if(t){for(var n=0;n<t.length;++n)t[n].marker.detachLine(e);e.markedSpans=null}}function Nt(e,t){if(t){for(var n=0;n<t.length;++n)t[n].marker.attachLine(e);e.markedSpans=t}}function It(e){return e.inclusiveLeft?-1:0}function Mt(e){return e.inclusiveRight?1:0}function Tt(e,t){var n=e.lines.length-t.lines.length;if(0!=n)return n;var r=e.find(),a=t.find(),i=tt(r.from,a.from)||It(e)-It(t);if(i)return-i;var o=tt(r.to,a.to)||Mt(e)-Mt(t);return o||t.id-e.id}function Dt(e,t){var n,r=Ct&&e.markedSpans;if(r)for(var a=void 0,i=0;i<r.length;++i)(a=r[i]).marker.collapsed&&null==(t?a.from:a.to)&&(!n||Tt(n,a.marker)<0)&&(n=a.marker);return n}function Rt(e){return Dt(e,!0)}function Lt(e){return Dt(e,!1)}function Bt(e,t){var n,r=Ct&&e.markedSpans;if(r)for(var a=0;a<r.length;++a){var i=r[a];i.marker.collapsed&&(null==i.from||i.from<t)&&(null==i.to||i.to>t)&&(!n||Tt(n,i.marker)<0)&&(n=i.marker)}return n}function Pt(e,t,n,r,a){var i=Ve(e,t),o=Ct&&i.markedSpans;if(o)for(var l=0;l<o.length;++l){var s=o[l];if(s.marker.collapsed){var c=s.marker.find(0),u=tt(c.from,n)||It(s.marker)-It(a),d=tt(c.to,r)||Mt(s.marker)-Mt(a);if(!(u>=0&&d<=0||u<=0&&d>=0)&&(u<=0&&(s.marker.inclusiveRight&&a.inclusiveLeft?tt(c.to,n)>=0:tt(c.to,n)>0)||u>=0&&(s.marker.inclusiveRight&&a.inclusiveLeft?tt(c.from,r)<=0:tt(c.from,r)<0)))return!0}}}function Kt(e){for(var t;t=Rt(e);)e=t.find(-1,!0).line;return e}function Ft(e,t){var n=Ve(e,t),r=Kt(n);return n==r?t:qe(r)}function zt(e,t){if(t>e.lastLine())return t;var n,r=Ve(e,t);if(!Qt(e,r))return t;for(;n=Lt(r);)r=n.find(1,!0).line;return qe(r)+1}function Qt(e,t){var n=Ct&&t.markedSpans;if(n)for(var r=void 0,a=0;a<n.length;++a)if((r=n[a]).marker.collapsed){if(null==r.from)return!0;if(!r.marker.widgetNode&&0==r.from&&r.marker.inclusiveLeft&&Wt(e,t,r))return!0}}function Wt(e,t,n){if(null==n.to){var r=n.marker.find(1,!0);return Wt(e,r.line,Ot(r.line.markedSpans,n.marker))}if(n.marker.inclusiveRight&&n.to==t.text.length)return!0;for(var a=void 0,i=0;i<t.markedSpans.length;++i)if((a=t.markedSpans[i]).marker.collapsed&&!a.marker.widgetNode&&a.from==n.to&&(null==a.to||a.to!=n.from)&&(a.marker.inclusiveLeft||n.marker.inclusiveRight)&&Wt(e,t,a))return!0}function Ht(e){for(var t=0,n=(e=Kt(e)).parent,r=0;r<n.lines.length;++r){var a=n.lines[r];if(a==e)break;t+=a.height}for(var i=n.parent;i;i=(n=i).parent)for(var o=0;o<i.children.length;++o){var l=i.children[o];if(l==n)break;t+=l.height}return t}function Jt(e){if(0==e.height)return 0;for(var t,n=e.text.length,r=e;t=Rt(r);){var a=t.find(0,!0);r=a.from.line,n+=a.from.ch-a.to.ch}for(r=e;t=Lt(r);){var i=t.find(0,!0);n-=r.text.length-i.from.ch,n+=(r=i.to.line).text.length-i.to.ch}return n}function Ut(e){var t=e.display,n=e.doc;t.maxLine=Ve(n,n.first),t.maxLineLength=Jt(t.maxLine),t.maxLineChanged=!0,n.iter((function(e){var n=Jt(e);n>t.maxLineLength&&(t.maxLineLength=n,t.maxLine=e)}))}var Vt=function(e,t,n){this.text=e,Nt(this,t),this.height=n?n(this):1};function Gt(e){e.parent=null,jt(e)}Vt.prototype.lineNo=function(){return qe(this)},be(Vt);var Yt={},Zt={};function qt(e,t){if(!e||/^\s*$/.test(e))return null;var n=t.addModeClass?Zt:Yt;return n[e]||(n[e]=e.replace(/\S+/g,"cm-$&"))}function Xt(e,t){var n=I("span",null,null,s?"padding-right: .1px":null),r={pre:I("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var a=0;a<=(t.rest?t.rest.length:0);a++){var i=a?t.rest[a-1]:t.line,o=void 0;r.pos=0,r.addToken=$t,Ne(e.display.measure)&&(o=ce(i,e.doc.direction))&&(r.addToken=en(r.addToken,o)),r.map=[],nn(i,r,ft(e,i,t!=e.display.externalMeasured&&qe(i))),i.styleClasses&&(i.styleClasses.bgClass&&(r.bgClass=R(i.styleClasses.bgClass,r.bgClass||"")),i.styleClasses.textClass&&(r.textClass=R(i.styleClasses.textClass,r.textClass||""))),0==r.map.length&&r.map.push(0,0,r.content.appendChild(je(e.display.measure))),0==a?(t.measure.map=r.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(r.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(s){var l=r.content.lastChild;(/\bcm-tab\b/.test(l.className)||l.querySelector&&l.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return he(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=R(r.pre.className,r.textClass||"")),r}function _t(e){var t=N("span","•","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function $t(e,t,n,r,a,i,s){if(t){var c,u=e.splitSpaces?function(e,t){if(e.length>1&&!/ /.test(e))return e;for(var n=t,r="",a=0;a<e.length;a++){var i=e.charAt(a);" "!=i||!n||a!=e.length-1&&32!=e.charCodeAt(a+1)||(i=" "),r+=i,n=" "==i}return r}(t,e.trailingSpace):t,d=e.cm.state.specialChars,f=!1;if(d.test(t)){c=document.createDocumentFragment();for(var p=0;;){d.lastIndex=p;var h=d.exec(t),m=h?h.index-p:t.length-p;if(m){var v=document.createTextNode(u.slice(p,p+m));o&&l<9?c.appendChild(N("span",[v])):c.appendChild(v),e.map.push(e.pos,e.pos+m,v),e.col+=m,e.pos+=m}if(!h)break;p+=m+1;var g=void 0;if("\t"==h[0]){var b=e.cm.options.tabSize,y=b-e.col%b;(g=c.appendChild(N("span",G(y),"cm-tab"))).setAttribute("role","presentation"),g.setAttribute("cm-text","\t"),e.col+=y}else"\r"==h[0]||"\n"==h[0]?((g=c.appendChild(N("span","\r"==h[0]?"␍":"","cm-invalidchar"))).setAttribute("cm-text",h[0]),e.col+=1):((g=e.cm.options.specialCharPlaceholder(h[0])).setAttribute("cm-text",h[0]),o&&l<9?c.appendChild(N("span",[g])):c.appendChild(g),e.col+=1);e.map.push(e.pos,e.pos+1,g),e.pos++}}else e.col+=t.length,c=document.createTextNode(u),e.map.push(e.pos,e.pos+t.length,c),o&&l<9&&(f=!0),e.pos+=t.length;if(e.trailingSpace=32==u.charCodeAt(t.length-1),n||r||a||f||i||s){var x=n||"";r&&(x+=r),a&&(x+=a);var E=N("span",[c],x,i);if(s)for(var C in s)s.hasOwnProperty(C)&&"style"!=C&&"class"!=C&&E.setAttribute(C,s[C]);return e.content.appendChild(E)}e.content.appendChild(c)}}function en(e,t){return function(n,r,a,i,o,l,s){a=a?a+" cm-force-border":"cm-force-border";for(var c=n.pos,u=c+r.length;;){for(var d=void 0,f=0;f<t.length&&!((d=t[f]).to>c&&d.from<=c);f++);if(d.to>=u)return e(n,r,a,i,o,l,s);e(n,r.slice(0,d.to-c),a,i,null,l,s),i=null,r=r.slice(d.to-c),c=d.to}}}function tn(e,t,n,r){var a=!r&&n.widgetNode;a&&e.map.push(e.pos,e.pos+t,a),!r&&e.cm.display.input.needsContentAttribute&&(a||(a=e.content.appendChild(document.createElement("span"))),a.setAttribute("cm-marker",n.id)),a&&(e.cm.display.input.setUneditable(a),e.content.appendChild(a)),e.pos+=t,e.trailingSpace=!1}function nn(e,t,n){var r=e.markedSpans,a=e.text,i=0;if(r)for(var o,l,s,c,u,d,f,p=a.length,h=0,m=1,v="",g=0;;){if(g==h){s=c=u=l="",f=null,d=null,g=1/0;for(var b=[],y=void 0,x=0;x<r.length;++x){var E=r[x],C=E.marker;if("bookmark"==C.type&&E.from==h&&C.widgetNode)b.push(C);else if(E.from<=h&&(null==E.to||E.to>h||C.collapsed&&E.to==h&&E.from==h)){if(null!=E.to&&E.to!=h&&g>E.to&&(g=E.to,c=""),C.className&&(s+=" "+C.className),C.css&&(l=(l?l+";":"")+C.css),C.startStyle&&E.from==h&&(u+=" "+C.startStyle),C.endStyle&&E.to==g&&(y||(y=[])).push(C.endStyle,E.to),C.title&&((f||(f={})).title=C.title),C.attributes)for(var A in C.attributes)(f||(f={}))[A]=C.attributes[A];C.collapsed&&(!d||Tt(d.marker,C)<0)&&(d=E)}else E.from>h&&g>E.from&&(g=E.from)}if(y)for(var O=0;O<y.length;O+=2)y[O+1]==g&&(c+=" "+y[O]);if(!d||d.from==h)for(var k=0;k<b.length;++k)tn(t,0,b[k]);if(d&&(d.from||0)==h){if(tn(t,(null==d.to?p+1:d.to)-h,d.marker,null==d.from),null==d.to)return;d.to==h&&(d=!1)}}if(h>=p)break;for(var w=Math.min(p,g);;){if(v){var S=h+v.length;if(!d){var j=S>w?v.slice(0,w-h):v;t.addToken(t,j,o?o+s:s,u,h+j.length==g?c:"",l,f)}if(S>=w){v=v.slice(w-h),h=w;break}h=S,u=""}v=a.slice(i,i=n[m++]),o=qt(n[m++],t.cm.options)}}else for(var N=1;N<n.length;N+=2)t.addToken(t,a.slice(i,i=n[N]),qt(n[N+1],t.cm.options))}function rn(e,t,n){this.line=t,this.rest=function(e){for(var t,n;t=Lt(e);)e=t.find(1,!0).line,(n||(n=[])).push(e);return n}(t),this.size=this.rest?qe(Y(this.rest))-n+1:1,this.node=this.text=null,this.hidden=Qt(e,t)}function an(e,t,n){for(var r,a=[],i=t;i<n;i=r){var o=new rn(e.doc,Ve(e.doc,i),i);r=i+o.size,a.push(o)}return a}var on=null,ln=null;function sn(e,t){var n=fe(e,t);if(n.length){var r,a=Array.prototype.slice.call(arguments,2);on?r=on.delayedCallbacks:ln?r=ln:(r=ln=[],setTimeout(cn,0));for(var i=function(e){r.push((function(){return n[e].apply(null,a)}))},o=0;o<n.length;++o)i(o)}}function cn(){var e=ln;ln=null;for(var t=0;t<e.length;++t)e[t]()}function un(e,t,n,r){for(var a=0;a<t.changes.length;a++){var i=t.changes[a];"text"==i?pn(e,t):"gutter"==i?mn(e,t,n,r):"class"==i?hn(e,t):"widget"==i&&vn(e,t,r)}t.changes=null}function dn(e){return e.node==e.text&&(e.node=N("div",null,null,"position: relative"),e.text.parentNode&&e.text.parentNode.replaceChild(e.node,e.text),e.node.appendChild(e.text),o&&l<8&&(e.node.style.zIndex=2)),e.node}function fn(e,t){var n=e.display.externalMeasured;return n&&n.line==t.line?(e.display.externalMeasured=null,t.measure=n.measure,n.built):Xt(e,t)}function pn(e,t){var n=t.text.className,r=fn(e,t);t.text==t.node&&(t.node=r.pre),t.text.parentNode.replaceChild(r.pre,t.text),t.text=r.pre,r.bgClass!=t.bgClass||r.textClass!=t.textClass?(t.bgClass=r.bgClass,t.textClass=r.textClass,hn(e,t)):n&&(t.text.className=n)}function hn(e,t){!function(e,t){var n=t.bgClass?t.bgClass+" "+(t.line.bgClass||""):t.line.bgClass;if(n&&(n+=" CodeMirror-linebackground"),t.background)n?t.background.className=n:(t.background.parentNode.removeChild(t.background),t.background=null);else if(n){var r=dn(t);t.background=r.insertBefore(N("div",null,n),r.firstChild),e.display.input.setUneditable(t.background)}}(e,t),t.line.wrapClass?dn(t).className=t.line.wrapClass:t.node!=t.text&&(t.node.className="");var n=t.textClass?t.textClass+" "+(t.line.textClass||""):t.line.textClass;t.text.className=n||""}function mn(e,t,n,r){if(t.gutter&&(t.node.removeChild(t.gutter),t.gutter=null),t.gutterBackground&&(t.node.removeChild(t.gutterBackground),t.gutterBackground=null),t.line.gutterClass){var a=dn(t);t.gutterBackground=N("div",null,"CodeMirror-gutter-background "+t.line.gutterClass,"left: "+(e.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px; width: "+r.gutterTotalWidth+"px"),e.display.input.setUneditable(t.gutterBackground),a.insertBefore(t.gutterBackground,t.text)}var i=t.line.gutterMarkers;if(e.options.lineNumbers||i){var o=dn(t),l=t.gutter=N("div",null,"CodeMirror-gutter-wrapper","left: "+(e.options.fixedGutter?r.fixedPos:-r.gutterTotalWidth)+"px");if(e.display.input.setUneditable(l),o.insertBefore(l,t.text),t.line.gutterClass&&(l.className+=" "+t.line.gutterClass),!e.options.lineNumbers||i&&i["CodeMirror-linenumbers"]||(t.lineNumber=l.appendChild(N("div",$e(e.options,n),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+r.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+e.display.lineNumInnerWidth+"px"))),i)for(var s=0;s<e.display.gutterSpecs.length;++s){var c=e.display.gutterSpecs[s].className,u=i.hasOwnProperty(c)&&i[c];u&&l.appendChild(N("div",[u],"CodeMirror-gutter-elt","left: "+r.gutterLeft[c]+"px; width: "+r.gutterWidth[c]+"px"))}}}function vn(e,t,n){t.alignable&&(t.alignable=null);for(var r=O("CodeMirror-linewidget"),a=t.node.firstChild,i=void 0;a;a=i)i=a.nextSibling,r.test(a.className)&&t.node.removeChild(a);bn(e,t,n)}function gn(e,t,n,r){var a=fn(e,t);return t.text=t.node=a.pre,a.bgClass&&(t.bgClass=a.bgClass),a.textClass&&(t.textClass=a.textClass),hn(e,t),mn(e,t,n,r),bn(e,t,r),t.node}function bn(e,t,n){if(yn(e,t.line,t,n,!0),t.rest)for(var r=0;r<t.rest.length;r++)yn(e,t.rest[r],t,n,!1)}function yn(e,t,n,r,a){if(t.widgets)for(var i=dn(n),o=0,l=t.widgets;o<l.length;++o){var s=l[o],c=N("div",[s.node],"CodeMirror-linewidget"+(s.className?" "+s.className:""));s.handleMouseEvents||c.setAttribute("cm-ignore-events","true"),xn(s,c,n,r),e.display.input.setUneditable(c),a&&s.above?i.insertBefore(c,n.gutter||n.text):i.appendChild(c),sn(s,"redraw")}}function xn(e,t,n,r){if(e.noHScroll){(n.alignable||(n.alignable=[])).push(t);var a=r.wrapperWidth;t.style.left=r.fixedPos+"px",e.coverGutter||(a-=r.gutterTotalWidth,t.style.paddingLeft=r.gutterTotalWidth+"px"),t.style.width=a+"px"}e.coverGutter&&(t.style.zIndex=5,t.style.position="relative",e.noHScroll||(t.style.marginLeft=-r.gutterTotalWidth+"px"))}function En(e){if(null!=e.height)return e.height;var t=e.doc.cm;if(!t)return 0;if(!M(document.body,e.node)){var n="position: relative;";e.coverGutter&&(n+="margin-left: -"+t.display.gutters.offsetWidth+"px;"),e.noHScroll&&(n+="width: "+t.display.wrapper.clientWidth+"px;"),j(t.display.measure,N("div",[e.node],null,n))}return e.height=e.node.parentNode.offsetHeight}function Cn(e,t){for(var n=Ae(t);n!=e.wrapper;n=n.parentNode)if(!n||1==n.nodeType&&"true"==n.getAttribute("cm-ignore-events")||n.parentNode==e.sizer&&n!=e.mover)return!0}function An(e){return e.lineSpace.offsetTop}function On(e){return e.mover.offsetHeight-e.lineSpace.offsetHeight}function kn(e){if(e.cachedPaddingH)return e.cachedPaddingH;var t=j(e.measure,N("pre","x","CodeMirror-line-like")),n=window.getComputedStyle?window.getComputedStyle(t):t.currentStyle,r={left:parseInt(n.paddingLeft),right:parseInt(n.paddingRight)};return isNaN(r.left)||isNaN(r.right)||(e.cachedPaddingH=r),r}function wn(e){return 50-e.display.nativeBarWidth}function Sn(e){return e.display.scroller.clientWidth-wn(e)-e.display.barWidth}function jn(e){return e.display.scroller.clientHeight-wn(e)-e.display.barHeight}function Nn(e,t,n){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};for(var r=0;r<e.rest.length;r++)if(e.rest[r]==t)return{map:e.measure.maps[r],cache:e.measure.caches[r]};for(var a=0;a<e.rest.length;a++)if(qe(e.rest[a])>n)return{map:e.measure.maps[a],cache:e.measure.caches[a],before:!0}}function In(e,t,n,r){return Dn(e,Tn(e,t),n,r)}function Mn(e,t){if(t>=e.display.viewFrom&&t<e.display.viewTo)return e.display.view[ur(e,t)];var n=e.display.externalMeasured;return n&&t>=n.lineN&&t<n.lineN+n.size?n:void 0}function Tn(e,t){var n=qe(t),r=Mn(e,n);r&&!r.text?r=null:r&&r.changes&&(un(e,r,n,ir(e)),e.curOp.forceUpdate=!0),r||(r=function(e,t){var n=qe(t=Kt(t)),r=e.display.externalMeasured=new rn(e.doc,t,n);r.lineN=n;var a=r.built=Xt(e,r);return r.text=a.pre,j(e.display.lineMeasure,a.pre),r}(e,t));var a=Nn(r,t,n);return{line:t,view:r,rect:null,map:a.map,cache:a.cache,before:a.before,hasHeights:!1}}function Dn(e,t,n,r,a){t.before&&(n=-1);var i,s=n+(r||"");return t.cache.hasOwnProperty(s)?i=t.cache[s]:(t.rect||(t.rect=t.view.text.getBoundingClientRect()),t.hasHeights||(function(e,t,n){var r=e.options.lineWrapping,a=r&&Sn(e);if(!t.measure.heights||r&&t.measure.width!=a){var i=t.measure.heights=[];if(r){t.measure.width=a;for(var o=t.text.firstChild.getClientRects(),l=0;l<o.length-1;l++){var s=o[l],c=o[l+1];Math.abs(s.bottom-c.bottom)>2&&i.push((s.bottom+c.top)/2-n.top)}}i.push(n.bottom-n.top)}}(e,t.view,t.rect),t.hasHeights=!0),(i=function(e,t,n,r){var a,i=Bn(t.map,n,r),s=i.node,c=i.start,u=i.end,d=i.collapse;if(3==s.nodeType){for(var f=0;f<4;f++){for(;c&&re(t.line.text.charAt(i.coverStart+c));)--c;for(;i.coverStart+u<i.coverEnd&&re(t.line.text.charAt(i.coverStart+u));)++u;if((a=o&&l<9&&0==c&&u==i.coverEnd-i.coverStart?s.parentNode.getBoundingClientRect():Pn(k(s,c,u).getClientRects(),r)).left||a.right||0==c)break;u=c,c-=1,d="right"}o&&l<11&&(a=function(e,t){if(!window.screen||null==screen.logicalXDPI||screen.logicalXDPI==screen.deviceXDPI||!function(e){if(null!=Re)return Re;var t=j(e,N("span","x")),n=t.getBoundingClientRect(),r=k(t,0,1).getBoundingClientRect();return Re=Math.abs(n.left-r.left)>1}(e))return t;var n=screen.logicalXDPI/screen.deviceXDPI,r=screen.logicalYDPI/screen.deviceYDPI;return{left:t.left*n,right:t.right*n,top:t.top*r,bottom:t.bottom*r}}(e.display.measure,a))}else{var p;c>0&&(d=r="right"),a=e.options.lineWrapping&&(p=s.getClientRects()).length>1?p["right"==r?p.length-1:0]:s.getBoundingClientRect()}if(o&&l<9&&!c&&(!a||!a.left&&!a.right)){var h=s.parentNode.getClientRects()[0];a=h?{left:h.left,right:h.left+ar(e.display),top:h.top,bottom:h.bottom}:Ln}for(var m=a.top-t.rect.top,v=a.bottom-t.rect.top,g=(m+v)/2,b=t.view.measure.heights,y=0;y<b.length-1&&!(g<b[y]);y++);var x=y?b[y-1]:0,E=b[y],C={left:("right"==d?a.right:a.left)-t.rect.left,right:("left"==d?a.left:a.right)-t.rect.left,top:x,bottom:E};return a.left||a.right||(C.bogus=!0),e.options.singleCursorHeightPerLine||(C.rtop=m,C.rbottom=v),C}(e,t,n,r)).bogus||(t.cache[s]=i)),{left:i.left,right:i.right,top:a?i.rtop:i.top,bottom:a?i.rbottom:i.bottom}}var Rn,Ln={left:0,right:0,top:0,bottom:0};function Bn(e,t,n){for(var r,a,i,o,l,s,c=0;c<e.length;c+=3)if(l=e[c],s=e[c+1],t<l?(a=0,i=1,o="left"):t<s?i=1+(a=t-l):(c==e.length-3||t==s&&e[c+3]>t)&&(a=(i=s-l)-1,t>=s&&(o="right")),null!=a){if(r=e[c+2],l==s&&n==(r.insertLeft?"left":"right")&&(o=n),"left"==n&&0==a)for(;c&&e[c-2]==e[c-3]&&e[c-1].insertLeft;)r=e[2+(c-=3)],o="left";if("right"==n&&a==s-l)for(;c<e.length-3&&e[c+3]==e[c+4]&&!e[c+5].insertLeft;)r=e[(c+=3)+2],o="right";break}return{node:r,start:a,end:i,collapse:o,coverStart:l,coverEnd:s}}function Pn(e,t){var n=Ln;if("left"==t)for(var r=0;r<e.length&&(n=e[r]).left==n.right;r++);else for(var a=e.length-1;a>=0&&(n=e[a]).left==n.right;a--);return n}function Kn(e){if(e.measure&&(e.measure.cache={},e.measure.heights=null,e.rest))for(var t=0;t<e.rest.length;t++)e.measure.caches[t]={}}function Fn(e){e.display.externalMeasure=null,S(e.display.lineMeasure);for(var t=0;t<e.display.view.length;t++)Kn(e.display.view[t])}function zn(e){Fn(e),e.display.cachedCharWidth=e.display.cachedTextHeight=e.display.cachedPaddingH=null,e.options.lineWrapping||(e.display.maxLineChanged=!0),e.display.lineNumChars=null}function Qn(){return u&&v?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function Wn(){return u&&v?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function Hn(e){var t=0;if(e.widgets)for(var n=0;n<e.widgets.length;++n)e.widgets[n].above&&(t+=En(e.widgets[n]));return t}function Jn(e,t,n,r,a){if(!a){var i=Hn(t);n.top+=i,n.bottom+=i}if("line"==r)return n;r||(r="local");var o=Ht(t);if("local"==r?o+=An(e.display):o-=e.display.viewOffset,"page"==r||"window"==r){var l=e.display.lineSpace.getBoundingClientRect();o+=l.top+("window"==r?0:Wn());var s=l.left+("window"==r?0:Qn());n.left+=s,n.right+=s}return n.top+=o,n.bottom+=o,n}function Un(e,t,n){if("div"==n)return t;var r=t.left,a=t.top;if("page"==n)r-=Qn(),a-=Wn();else if("local"==n||!n){var i=e.display.sizer.getBoundingClientRect();r+=i.left,a+=i.top}var o=e.display.lineSpace.getBoundingClientRect();return{left:r-o.left,top:a-o.top}}function Vn(e,t,n,r,a){return r||(r=Ve(e.doc,t.line)),Jn(e,r,In(e,r,t.ch,a),n)}function Gn(e,t,n,r,a,i){function o(t,o){var l=Dn(e,a,t,o?"right":"left",i);return o?l.left=l.right:l.right=l.left,Jn(e,r,l,n)}r=r||Ve(e.doc,t.line),a||(a=Tn(e,r));var l=ce(r,e.doc.direction),s=t.ch,c=t.sticky;if(s>=r.text.length?(s=r.text.length,c="before"):s<=0&&(s=0,c="after"),!l)return o("before"==c?s-1:s,"before"==c);function u(e,t,n){return o(n?e-1:e,1==l[t].level!=n)}var d=le(l,s,c),f=oe,p=u(s,d,"before"==c);return null!=f&&(p.other=u(s,f,"before"!=c)),p}function Yn(e,t){var n=0;t=lt(e.doc,t),e.options.lineWrapping||(n=ar(e.display)*t.ch);var r=Ve(e.doc,t.line),a=Ht(r)+An(e.display);return{left:n,right:n,top:a,bottom:a+r.height}}function Zn(e,t,n,r,a){var i=et(e,t,n);return i.xRel=a,r&&(i.outside=r),i}function qn(e,t,n){var r=e.doc;if((n+=e.display.viewOffset)<0)return Zn(r.first,0,null,-1,-1);var a=Xe(r,n),i=r.first+r.size-1;if(a>i)return Zn(r.first+r.size-1,Ve(r,i).text.length,null,1,1);t<0&&(t=0);for(var o=Ve(r,a);;){var l=er(e,o,a,t,n),s=Bt(o,l.ch+(l.xRel>0||l.outside>0?1:0));if(!s)return l;var c=s.find(1);if(c.line==a)return c;o=Ve(r,a=c.line)}}function Xn(e,t,n,r){r-=Hn(t);var a=t.text.length,i=ie((function(t){return Dn(e,n,t-1).bottom<=r}),a,0);return{begin:i,end:a=ie((function(t){return Dn(e,n,t).top>r}),i,a)}}function _n(e,t,n,r){return n||(n=Tn(e,t)),Xn(e,t,n,Jn(e,t,Dn(e,n,r),"line").top)}function $n(e,t,n,r){return!(e.bottom<=n)&&(e.top>n||(r?e.left:e.right)>t)}function er(e,t,n,r,a){a-=Ht(t);var i=Tn(e,t),o=Hn(t),l=0,s=t.text.length,c=!0,u=ce(t,e.doc.direction);if(u){var d=(e.options.lineWrapping?nr:tr)(e,t,n,i,u,r,a);l=(c=1!=d.level)?d.from:d.to-1,s=c?d.to:d.from-1}var f,p,h=null,m=null,v=ie((function(t){var n=Dn(e,i,t);return n.top+=o,n.bottom+=o,!!$n(n,r,a,!1)&&(n.top<=a&&n.left<=r&&(h=t,m=n),!0)}),l,s),g=!1;if(m){var b=r-m.left<m.right-r,y=b==c;v=h+(y?0:1),p=y?"after":"before",f=b?m.left:m.right}else{c||v!=s&&v!=l||v++,p=0==v?"after":v==t.text.length?"before":Dn(e,i,v-(c?1:0)).bottom+o<=a==c?"after":"before";var x=Gn(e,et(n,v,p),"line",t,i);f=x.left,g=a<x.top?-1:a>=x.bottom?1:0}return Zn(n,v=ae(t.text,v,1),p,g,r-f)}function tr(e,t,n,r,a,i,o){var l=ie((function(l){var s=a[l],c=1!=s.level;return $n(Gn(e,et(n,c?s.to:s.from,c?"before":"after"),"line",t,r),i,o,!0)}),0,a.length-1),s=a[l];if(l>0){var c=1!=s.level,u=Gn(e,et(n,c?s.from:s.to,c?"after":"before"),"line",t,r);$n(u,i,o,!0)&&u.top>o&&(s=a[l-1])}return s}function nr(e,t,n,r,a,i,o){var l=Xn(e,t,r,o),s=l.begin,c=l.end;/\s/.test(t.text.charAt(c-1))&&c--;for(var u=null,d=null,f=0;f<a.length;f++){var p=a[f];if(!(p.from>=c||p.to<=s)){var h=Dn(e,r,1!=p.level?Math.min(c,p.to)-1:Math.max(s,p.from)).right,m=h<i?i-h+1e9:h-i;(!u||d>m)&&(u=p,d=m)}}return u||(u=a[a.length-1]),u.from<s&&(u={from:s,to:u.to,level:u.level}),u.to>c&&(u={from:u.from,to:c,level:u.level}),u}function rr(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==Rn){Rn=N("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)Rn.appendChild(document.createTextNode("x")),Rn.appendChild(N("br"));Rn.appendChild(document.createTextNode("x"))}j(e.measure,Rn);var n=Rn.offsetHeight/50;return n>3&&(e.cachedTextHeight=n),S(e.measure),n||1}function ar(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=N("span","xxxxxxxxxx"),n=N("pre",[t],"CodeMirror-line-like");j(e.measure,n);var r=t.getBoundingClientRect(),a=(r.right-r.left)/10;return a>2&&(e.cachedCharWidth=a),a||10}function ir(e){for(var t=e.display,n={},r={},a=t.gutters.clientLeft,i=t.gutters.firstChild,o=0;i;i=i.nextSibling,++o){var l=e.display.gutterSpecs[o].className;n[l]=i.offsetLeft+i.clientLeft+a,r[l]=i.clientWidth}return{fixedPos:or(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:t.wrapper.clientWidth}}function or(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function lr(e){var t=rr(e.display),n=e.options.lineWrapping,r=n&&Math.max(5,e.display.scroller.clientWidth/ar(e.display)-3);return function(a){if(Qt(e.doc,a))return 0;var i=0;if(a.widgets)for(var o=0;o<a.widgets.length;o++)a.widgets[o].height&&(i+=a.widgets[o].height);return n?i+(Math.ceil(a.text.length/r)||1)*t:i+t}}function sr(e){var t=e.doc,n=lr(e);t.iter((function(e){var t=n(e);t!=e.height&&Ze(e,t)}))}function cr(e,t,n,r){var a=e.display;if(!n&&"true"==Ae(t).getAttribute("cm-not-content"))return null;var i,o,l=a.lineSpace.getBoundingClientRect();try{i=t.clientX-l.left,o=t.clientY-l.top}catch(e){return null}var s,c=qn(e,i,o);if(r&&c.xRel>0&&(s=Ve(e.doc,c.line).text).length==c.ch){var u=K(s,s.length,e.options.tabSize)-s.length;c=et(c.line,Math.max(0,Math.round((i-kn(e.display).left)/ar(e.display))-u))}return c}function ur(e,t){if(t>=e.display.viewTo)return null;if((t-=e.display.viewFrom)<0)return null;for(var n=e.display.view,r=0;r<n.length;r++)if((t-=n[r].size)<0)return r}function dr(e,t,n,r){null==t&&(t=e.doc.first),null==n&&(n=e.doc.first+e.doc.size),r||(r=0);var a=e.display;if(r&&n<a.viewTo&&(null==a.updateLineNumbers||a.updateLineNumbers>t)&&(a.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=a.viewTo)Ct&&Ft(e.doc,t)<a.viewTo&&pr(e);else if(n<=a.viewFrom)Ct&&zt(e.doc,n+r)>a.viewFrom?pr(e):(a.viewFrom+=r,a.viewTo+=r);else if(t<=a.viewFrom&&n>=a.viewTo)pr(e);else if(t<=a.viewFrom){var i=hr(e,n,n+r,1);i?(a.view=a.view.slice(i.index),a.viewFrom=i.lineN,a.viewTo+=r):pr(e)}else if(n>=a.viewTo){var o=hr(e,t,t,-1);o?(a.view=a.view.slice(0,o.index),a.viewTo=o.lineN):pr(e)}else{var l=hr(e,t,t,-1),s=hr(e,n,n+r,1);l&&s?(a.view=a.view.slice(0,l.index).concat(an(e,l.lineN,s.lineN)).concat(a.view.slice(s.index)),a.viewTo+=r):pr(e)}var c=a.externalMeasured;c&&(n<c.lineN?c.lineN+=r:t<c.lineN+c.size&&(a.externalMeasured=null))}function fr(e,t,n){e.curOp.viewChanged=!0;var r=e.display,a=e.display.externalMeasured;if(a&&t>=a.lineN&&t<a.lineN+a.size&&(r.externalMeasured=null),!(t<r.viewFrom||t>=r.viewTo)){var i=r.view[ur(e,t)];if(null!=i.node){var o=i.changes||(i.changes=[]);-1==z(o,n)&&o.push(n)}}}function pr(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function hr(e,t,n,r){var a,i=ur(e,t),o=e.display.view;if(!Ct||n==e.doc.first+e.doc.size)return{index:i,lineN:n};for(var l=e.display.viewFrom,s=0;s<i;s++)l+=o[s].size;if(l!=t){if(r>0){if(i==o.length-1)return null;a=l+o[i].size-t,i++}else a=l-t;t+=a,n+=a}for(;Ft(e.doc,n)!=n;){if(i==(r<0?0:o.length-1))return null;n+=r*o[i-(r<0?1:0)].size,i+=r}return{index:i,lineN:n}}function mr(e){for(var t=e.display.view,n=0,r=0;r<t.length;r++){var a=t[r];a.hidden||a.node&&!a.changes||++n}return n}function vr(e){e.display.input.showSelection(e.display.input.prepareSelection())}function gr(e,t){void 0===t&&(t=!0);for(var n=e.doc,r={},a=r.cursors=document.createDocumentFragment(),i=r.selection=document.createDocumentFragment(),o=0;o<n.sel.ranges.length;o++)if(t||o!=n.sel.primIndex){var l=n.sel.ranges[o];if(!(l.from().line>=e.display.viewTo||l.to().line<e.display.viewFrom)){var s=l.empty();(s||e.options.showCursorWhenSelecting)&&br(e,l.head,a),s||xr(e,l,i)}}return r}function br(e,t,n){var r=Gn(e,t,"div",null,null,!e.options.singleCursorHeightPerLine),a=n.appendChild(N("div"," ","CodeMirror-cursor"));if(a.style.left=r.left+"px",a.style.top=r.top+"px",a.style.height=Math.max(0,r.bottom-r.top)*e.options.cursorHeight+"px",r.other){var i=n.appendChild(N("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));i.style.display="",i.style.left=r.other.left+"px",i.style.top=r.other.top+"px",i.style.height=.85*(r.other.bottom-r.other.top)+"px"}}function yr(e,t){return e.top-t.top||e.left-t.left}function xr(e,t,n){var r=e.display,a=e.doc,i=document.createDocumentFragment(),o=kn(e.display),l=o.left,s=Math.max(r.sizerWidth,Sn(e)-r.sizer.offsetLeft)-o.right,c="ltr"==a.direction;function u(e,t,n,r){t<0&&(t=0),t=Math.round(t),r=Math.round(r),i.appendChild(N("div",null,"CodeMirror-selected","position: absolute; left: "+e+"px;\n top: "+t+"px; width: "+(null==n?s-e:n)+"px;\n height: "+(r-t)+"px"))}function d(t,n,r){var i,o,d=Ve(a,t),f=d.text.length;function p(n,r){return Vn(e,et(t,n),"div",d,r)}function h(t,n,r){var a=_n(e,d,null,t),i="ltr"==n==("after"==r)?"left":"right";return p("after"==r?a.begin:a.end-(/\s/.test(d.text.charAt(a.end-1))?2:1),i)[i]}var m=ce(d,a.direction);return function(e,t,n,r){if(!e)return r(t,n,"ltr",0);for(var a=!1,i=0;i<e.length;++i){var o=e[i];(o.from<n&&o.to>t||t==n&&o.to==t)&&(r(Math.max(o.from,t),Math.min(o.to,n),1==o.level?"rtl":"ltr",i),a=!0)}a||r(t,n,"ltr")}(m,n||0,null==r?f:r,(function(e,t,a,d){var v="ltr"==a,g=p(e,v?"left":"right"),b=p(t-1,v?"right":"left"),y=null==n&&0==e,x=null==r&&t==f,E=0==d,C=!m||d==m.length-1;if(b.top-g.top<=3){var A=(c?x:y)&&C,O=(c?y:x)&&E?l:(v?g:b).left,k=A?s:(v?b:g).right;u(O,g.top,k-O,g.bottom)}else{var w,S,j,N;v?(w=c&&y&&E?l:g.left,S=c?s:h(e,a,"before"),j=c?l:h(t,a,"after"),N=c&&x&&C?s:b.right):(w=c?h(e,a,"before"):l,S=!c&&y&&E?s:g.right,j=!c&&x&&C?l:b.left,N=c?h(t,a,"after"):s),u(w,g.top,S-w,g.bottom),g.bottom<b.top&&u(l,g.bottom,null,b.top),u(j,b.top,N-j,b.bottom)}(!i||yr(g,i)<0)&&(i=g),yr(b,i)<0&&(i=b),(!o||yr(g,o)<0)&&(o=g),yr(b,o)<0&&(o=b)})),{start:i,end:o}}var f=t.from(),p=t.to();if(f.line==p.line)d(f.line,f.ch,p.ch);else{var h=Ve(a,f.line),m=Ve(a,p.line),v=Kt(h)==Kt(m),g=d(f.line,f.ch,v?h.text.length+1:null).end,b=d(p.line,v?0:null,p.ch).start;v&&(g.top<b.top-2?(u(g.right,g.top,null,g.bottom),u(l,b.top,b.left,b.bottom)):u(g.right,g.top,b.left-g.right,g.bottom)),g.bottom<b.top&&u(l,g.bottom,null,b.top)}n.appendChild(i)}function Er(e){if(e.state.focused){var t=e.display;clearInterval(t.blinker);var n=!0;t.cursorDiv.style.visibility="",e.options.cursorBlinkRate>0?t.blinker=setInterval((function(){e.hasFocus()||kr(e),t.cursorDiv.style.visibility=(n=!n)?"":"hidden"}),e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function Cr(e){e.state.focused||(e.display.input.focus(),Or(e))}function Ar(e){e.state.delayingBlurEvent=!0,setTimeout((function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,kr(e))}),100)}function Or(e,t){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1),"nocursor"!=e.options.readOnly&&(e.state.focused||(he(e,"focus",e,t),e.state.focused=!0,D(e.display.wrapper,"CodeMirror-focused"),e.curOp||e.display.selForContextMenu==e.doc.sel||(e.display.input.reset(),s&&setTimeout((function(){return e.display.input.reset(!0)}),20)),e.display.input.receivedFocus()),Er(e))}function kr(e,t){e.state.delayingBlurEvent||(e.state.focused&&(he(e,"blur",e,t),e.state.focused=!1,w(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout((function(){e.state.focused||(e.display.shift=!1)}),150))}function wr(e){for(var t=e.display,n=t.lineDiv.offsetTop,r=0;r<t.view.length;r++){var a=t.view[r],i=e.options.lineWrapping,s=void 0,c=0;if(!a.hidden){if(o&&l<8){var u=a.node.offsetTop+a.node.offsetHeight;s=u-n,n=u}else{var d=a.node.getBoundingClientRect();s=d.bottom-d.top,!i&&a.text.firstChild&&(c=a.text.firstChild.getBoundingClientRect().right-d.left-1)}var f=a.line.height-s;if((f>.005||f<-.005)&&(Ze(a.line,s),Sr(a.line),a.rest))for(var p=0;p<a.rest.length;p++)Sr(a.rest[p]);if(c>e.display.sizerWidth){var h=Math.ceil(c/ar(e.display));h>e.display.maxLineLength&&(e.display.maxLineLength=h,e.display.maxLine=a.line,e.display.maxLineChanged=!0)}}}}function Sr(e){if(e.widgets)for(var t=0;t<e.widgets.length;++t){var n=e.widgets[t],r=n.node.parentNode;r&&(n.height=r.offsetHeight)}}function jr(e,t,n){var r=n&&null!=n.top?Math.max(0,n.top):e.scroller.scrollTop;r=Math.floor(r-An(e));var a=n&&null!=n.bottom?n.bottom:r+e.wrapper.clientHeight,i=Xe(t,r),o=Xe(t,a);if(n&&n.ensure){var l=n.ensure.from.line,s=n.ensure.to.line;l<i?(i=l,o=Xe(t,Ht(Ve(t,l))+e.wrapper.clientHeight)):Math.min(s,t.lastLine())>=o&&(i=Xe(t,Ht(Ve(t,s))-e.wrapper.clientHeight),o=s)}return{from:i,to:Math.max(o,i+1)}}function Nr(e,t){var n=e.display,r=rr(e.display);t.top<0&&(t.top=0);var a=e.curOp&&null!=e.curOp.scrollTop?e.curOp.scrollTop:n.scroller.scrollTop,i=jn(e),o={};t.bottom-t.top>i&&(t.bottom=t.top+i);var l=e.doc.height+On(n),s=t.top<r,c=t.bottom>l-r;if(t.top<a)o.scrollTop=s?0:t.top;else if(t.bottom>a+i){var u=Math.min(t.top,(c?l:t.bottom)-i);u!=a&&(o.scrollTop=u)}var d=e.options.fixedGutter?0:n.gutters.offsetWidth,f=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:n.scroller.scrollLeft-d,p=Sn(e)-n.gutters.offsetWidth,h=t.right-t.left>p;return h&&(t.right=t.left+p),t.left<10?o.scrollLeft=0:t.left<f?o.scrollLeft=Math.max(0,t.left+d-(h?0:10)):t.right>p+f-3&&(o.scrollLeft=t.right+(h?0:10)-p),o}function Ir(e,t){null!=t&&(Dr(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+t)}function Mr(e){Dr(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function Tr(e,t,n){null==t&&null==n||Dr(e),null!=t&&(e.curOp.scrollLeft=t),null!=n&&(e.curOp.scrollTop=n)}function Dr(e){var t=e.curOp.scrollToPos;t&&(e.curOp.scrollToPos=null,Rr(e,Yn(e,t.from),Yn(e,t.to),t.margin))}function Rr(e,t,n,r){var a=Nr(e,{left:Math.min(t.left,n.left),top:Math.min(t.top,n.top)-r,right:Math.max(t.right,n.right),bottom:Math.max(t.bottom,n.bottom)+r});Tr(e,a.scrollLeft,a.scrollTop)}function Lr(e,t){Math.abs(e.doc.scrollTop-t)<2||(n||sa(e,{top:t}),Br(e,t,!0),n&&sa(e),ra(e,100))}function Br(e,t,n){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),(e.display.scroller.scrollTop!=t||n)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function Pr(e,t,n,r){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),(n?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!r||(e.doc.scrollLeft=t,da(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function Kr(e){var t=e.display,n=t.gutters.offsetWidth,r=Math.round(e.doc.height+On(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?n:0,docHeight:r,scrollHeight:r+wn(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}var Fr=function(e,t,n){this.cm=n;var r=this.vert=N("div",[N("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),a=this.horiz=N("div",[N("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");r.tabIndex=a.tabIndex=-1,e(r),e(a),de(r,"scroll",(function(){r.clientHeight&&t(r.scrollTop,"vertical")})),de(a,"scroll",(function(){a.clientWidth&&t(a.scrollLeft,"horizontal")})),this.checkedZeroWidth=!1,o&&l<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Fr.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,n=e.scrollHeight>e.clientHeight+1,r=e.nativeBarWidth;if(n){this.vert.style.display="block",this.vert.style.bottom=t?r+"px":"0";var a=e.viewHeight-(t?r:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+a)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=n?r+"px":"0",this.horiz.style.left=e.barLeft+"px";var i=e.viewWidth-e.barLeft-(n?r:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+i)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(0==r&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?r:0,bottom:t?r:0}},Fr.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Fr.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Fr.prototype.zeroWidthHack=function(){var e=b&&!p?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new F,this.disableVert=new F},Fr.prototype.enableZeroWidthBar=function(e,t,n){e.style.pointerEvents="auto",t.set(1e3,(function r(){var a=e.getBoundingClientRect();("vert"==n?document.elementFromPoint(a.right-1,(a.top+a.bottom)/2):document.elementFromPoint((a.right+a.left)/2,a.bottom-1))!=e?e.style.pointerEvents="none":t.set(1e3,r)}))},Fr.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var zr=function(){};function Qr(e,t){t||(t=Kr(e));var n=e.display.barWidth,r=e.display.barHeight;Wr(e,t);for(var a=0;a<4&&n!=e.display.barWidth||r!=e.display.barHeight;a++)n!=e.display.barWidth&&e.options.lineWrapping&&wr(e),Wr(e,Kr(e)),n=e.display.barWidth,r=e.display.barHeight}function Wr(e,t){var n=e.display,r=n.scrollbars.update(t);n.sizer.style.paddingRight=(n.barWidth=r.right)+"px",n.sizer.style.paddingBottom=(n.barHeight=r.bottom)+"px",n.heightForcer.style.borderBottom=r.bottom+"px solid transparent",r.right&&r.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=r.bottom+"px",n.scrollbarFiller.style.width=r.right+"px"):n.scrollbarFiller.style.display="",r.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=r.bottom+"px",n.gutterFiller.style.width=t.gutterWidth+"px"):n.gutterFiller.style.display=""}zr.prototype.update=function(){return{bottom:0,right:0}},zr.prototype.setScrollLeft=function(){},zr.prototype.setScrollTop=function(){},zr.prototype.clear=function(){};var Hr={native:Fr,null:zr};function Jr(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&w(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new Hr[e.options.scrollbarStyle]((function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),de(t,"mousedown",(function(){e.state.focused&&setTimeout((function(){return e.display.input.focus()}),0)})),t.setAttribute("cm-not-content","true")}),(function(t,n){"horizontal"==n?Pr(e,t):Lr(e,t)}),e),e.display.scrollbars.addClass&&D(e.display.wrapper,e.display.scrollbars.addClass)}var Ur=0;function Vr(e){var t;e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Ur},t=e.curOp,on?on.ops.push(t):t.ownsGroup=on={ops:[t],delayedCallbacks:[]}}function Gr(e){var t=e.curOp;t&&function(e,t){var n=e.ownsGroup;if(n)try{!function(e){var t=e.delayedCallbacks,n=0;do{for(;n<t.length;n++)t[n].call(null);for(var r=0;r<e.ops.length;r++){var a=e.ops[r];if(a.cursorActivityHandlers)for(;a.cursorActivityCalled<a.cursorActivityHandlers.length;)a.cursorActivityHandlers[a.cursorActivityCalled++].call(null,a.cm)}}while(n<t.length)}(n)}finally{on=null,t(n)}}(t,(function(e){for(var t=0;t<e.ops.length;t++)e.ops[t].cm.curOp=null;!function(e){for(var t=e.ops,n=0;n<t.length;n++)Yr(t[n]);for(var r=0;r<t.length;r++)Zr(t[r]);for(var a=0;a<t.length;a++)qr(t[a]);for(var i=0;i<t.length;i++)Xr(t[i]);for(var o=0;o<t.length;o++)_r(t[o])}(e)}))}function Yr(e){var t=e.cm,n=t.display;!function(e){var t=e.display;!t.scrollbarsClipped&&t.scroller.offsetWidth&&(t.nativeBarWidth=t.scroller.offsetWidth-t.scroller.clientWidth,t.heightForcer.style.height=wn(e)+"px",t.sizer.style.marginBottom=-t.nativeBarWidth+"px",t.sizer.style.borderRightWidth=wn(e)+"px",t.scrollbarsClipped=!0)}(t),e.updateMaxLine&&Ut(t),e.mustUpdate=e.viewChanged||e.forceUpdate||null!=e.scrollTop||e.scrollToPos&&(e.scrollToPos.from.line<n.viewFrom||e.scrollToPos.to.line>=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new ia(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function Zr(e){e.updatedDisplay=e.mustUpdate&&oa(e.cm,e.update)}function qr(e){var t=e.cm,n=t.display;e.updatedDisplay&&wr(t),e.barMeasure=Kr(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=In(t,n.maxLine,n.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+e.adjustWidthTo+wn(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-Sn(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection())}function Xr(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft<t.doc.scrollLeft&&Pr(t,Math.min(t.display.scroller.scrollLeft,e.maxScrollLeft),!0),t.display.maxLineChanged=!1);var n=e.focus&&e.focus==T();e.preparedSelection&&t.display.input.showSelection(e.preparedSelection,n),(e.updatedDisplay||e.startHeight!=t.doc.height)&&Qr(t,e.barMeasure),e.updatedDisplay&&ua(t,e.barMeasure),e.selectionChanged&&Er(t),t.state.focused&&e.updateInput&&t.display.input.reset(e.typing),n&&Cr(e.cm)}function _r(e){var t=e.cm,n=t.display,r=t.doc;e.updatedDisplay&&la(t,e.update),null==n.wheelStartX||null==e.scrollTop&&null==e.scrollLeft&&!e.scrollToPos||(n.wheelStartX=n.wheelStartY=null),null!=e.scrollTop&&Br(t,e.scrollTop,e.forceScroll),null!=e.scrollLeft&&Pr(t,e.scrollLeft,!0,!0),e.scrollToPos&&function(e,t){if(!me(e,"scrollCursorIntoView")){var n=e.display,r=n.sizer.getBoundingClientRect(),a=null;if(t.top+r.top<0?a=!0:t.bottom+r.top>(window.innerHeight||document.documentElement.clientHeight)&&(a=!1),null!=a&&!h){var i=N("div","",null,"position: absolute;\n top: "+(t.top-n.viewOffset-An(e.display))+"px;\n height: "+(t.bottom-t.top+wn(e)+n.barHeight)+"px;\n left: "+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(i),i.scrollIntoView(a),e.display.lineSpace.removeChild(i)}}}(t,function(e,t,n,r){var a;null==r&&(r=0),e.options.lineWrapping||t!=n||(n="before"==(t=t.ch?et(t.line,"before"==t.sticky?t.ch-1:t.ch,"after"):t).sticky?et(t.line,t.ch+1,"before"):t);for(var i=0;i<5;i++){var o=!1,l=Gn(e,t),s=n&&n!=t?Gn(e,n):l,c=Nr(e,a={left:Math.min(l.left,s.left),top:Math.min(l.top,s.top)-r,right:Math.max(l.left,s.left),bottom:Math.max(l.bottom,s.bottom)+r}),u=e.doc.scrollTop,d=e.doc.scrollLeft;if(null!=c.scrollTop&&(Lr(e,c.scrollTop),Math.abs(e.doc.scrollTop-u)>1&&(o=!0)),null!=c.scrollLeft&&(Pr(e,c.scrollLeft),Math.abs(e.doc.scrollLeft-d)>1&&(o=!0)),!o)break}return a}(t,lt(r,e.scrollToPos.from),lt(r,e.scrollToPos.to),e.scrollToPos.margin));var a=e.maybeHiddenMarkers,i=e.maybeUnhiddenMarkers;if(a)for(var o=0;o<a.length;++o)a[o].lines.length||he(a[o],"hide");if(i)for(var l=0;l<i.length;++l)i[l].lines.length&&he(i[l],"unhide");n.wrapper.offsetHeight&&(r.scrollTop=t.display.scroller.scrollTop),e.changeObjs&&he(t,"changes",t,e.changeObjs),e.update&&e.update.finish()}function $r(e,t){if(e.curOp)return t();Vr(e);try{return t()}finally{Gr(e)}}function ea(e,t){return function(){if(e.curOp)return t.apply(e,arguments);Vr(e);try{return t.apply(e,arguments)}finally{Gr(e)}}}function ta(e){return function(){if(this.curOp)return e.apply(this,arguments);Vr(this);try{return e.apply(this,arguments)}finally{Gr(this)}}}function na(e){return function(){var t=this.cm;if(!t||t.curOp)return e.apply(this,arguments);Vr(t);try{return e.apply(this,arguments)}finally{Gr(t)}}}function ra(e,t){e.doc.highlightFrontier<e.display.viewTo&&e.state.highlight.set(t,B(aa,e))}function aa(e){var t=e.doc;if(!(t.highlightFrontier>=e.display.viewTo)){var n=+new Date+e.options.workTime,r=pt(e,t.highlightFrontier),a=[];t.iter(r.line,Math.min(t.first+t.size,e.display.viewTo+500),(function(i){if(r.line>=e.display.viewFrom){var o=i.styles,l=i.text.length>e.options.maxHighlightLength?We(t.mode,r.state):null,s=dt(e,i,r,!0);l&&(r.state=l),i.styles=s.styles;var c=i.styleClasses,u=s.classes;u?i.styleClasses=u:c&&(i.styleClasses=null);for(var d=!o||o.length!=i.styles.length||c!=u&&(!c||!u||c.bgClass!=u.bgClass||c.textClass!=u.textClass),f=0;!d&&f<o.length;++f)d=o[f]!=i.styles[f];d&&a.push(r.line),i.stateAfter=r.save(),r.nextLine()}else i.text.length<=e.options.maxHighlightLength&&ht(e,i.text,r),i.stateAfter=r.line%5==0?r.save():null,r.nextLine();if(+new Date>n)return ra(e,e.options.workDelay),!0})),t.highlightFrontier=r.line,t.modeFrontier=Math.max(t.modeFrontier,r.line),a.length&&$r(e,(function(){for(var t=0;t<a.length;t++)fr(e,a[t],"text")}))}}var ia=function(e,t,n){var r=e.display;this.viewport=t,this.visible=jr(r,e.doc,t),this.editorIsHidden=!r.wrapper.offsetWidth,this.wrapperHeight=r.wrapper.clientHeight,this.wrapperWidth=r.wrapper.clientWidth,this.oldDisplayWidth=Sn(e),this.force=n,this.dims=ir(e),this.events=[]};function oa(e,t){var n=e.display,r=e.doc;if(t.editorIsHidden)return pr(e),!1;if(!t.force&&t.visible.from>=n.viewFrom&&t.visible.to<=n.viewTo&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&0==mr(e))return!1;fa(e)&&(pr(e),t.dims=ir(e));var a=r.first+r.size,i=Math.max(t.visible.from-e.options.viewportMargin,r.first),o=Math.min(a,t.visible.to+e.options.viewportMargin);n.viewFrom<i&&i-n.viewFrom<20&&(i=Math.max(r.first,n.viewFrom)),n.viewTo>o&&n.viewTo-o<20&&(o=Math.min(a,n.viewTo)),Ct&&(i=Ft(e.doc,i),o=zt(e.doc,o));var l=i!=n.viewFrom||o!=n.viewTo||n.lastWrapHeight!=t.wrapperHeight||n.lastWrapWidth!=t.wrapperWidth;!function(e,t,n){var r=e.display;0==r.view.length||t>=r.viewTo||n<=r.viewFrom?(r.view=an(e,t,n),r.viewFrom=t):(r.viewFrom>t?r.view=an(e,t,r.viewFrom).concat(r.view):r.viewFrom<t&&(r.view=r.view.slice(ur(e,t))),r.viewFrom=t,r.viewTo<n?r.view=r.view.concat(an(e,r.viewTo,n)):r.viewTo>n&&(r.view=r.view.slice(0,ur(e,n)))),r.viewTo=n}(e,i,o),n.viewOffset=Ht(Ve(e.doc,n.viewFrom)),e.display.mover.style.top=n.viewOffset+"px";var c=mr(e);if(!l&&0==c&&!t.force&&n.renderedView==n.view&&(null==n.updateLineNumbers||n.updateLineNumbers>=n.viewTo))return!1;var u=function(e){if(e.hasFocus())return null;var t=T();if(!t||!M(e.display.lineDiv,t))return null;var n={activeElt:t};if(window.getSelection){var r=window.getSelection();r.anchorNode&&r.extend&&M(e.display.lineDiv,r.anchorNode)&&(n.anchorNode=r.anchorNode,n.anchorOffset=r.anchorOffset,n.focusNode=r.focusNode,n.focusOffset=r.focusOffset)}return n}(e);return c>4&&(n.lineDiv.style.display="none"),function(e,t,n){var r=e.display,a=e.options.lineNumbers,i=r.lineDiv,o=i.firstChild;function l(t){var n=t.nextSibling;return s&&b&&e.display.currentWheelTarget==t?t.style.display="none":t.parentNode.removeChild(t),n}for(var c=r.view,u=r.viewFrom,d=0;d<c.length;d++){var f=c[d];if(f.hidden);else if(f.node&&f.node.parentNode==i){for(;o!=f.node;)o=l(o);var p=a&&null!=t&&t<=u&&f.lineNumber;f.changes&&(z(f.changes,"gutter")>-1&&(p=!1),un(e,f,u,n)),p&&(S(f.lineNumber),f.lineNumber.appendChild(document.createTextNode($e(e.options,u)))),o=f.node.nextSibling}else{var h=gn(e,f,u,n);i.insertBefore(h,o)}u+=f.size}for(;o;)o=l(o)}(e,n.updateLineNumbers,t.dims),c>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,function(e){if(e&&e.activeElt&&e.activeElt!=T()&&(e.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(e.activeElt.nodeName)&&e.anchorNode&&M(document.body,e.anchorNode)&&M(document.body,e.focusNode))){var t=window.getSelection(),n=document.createRange();n.setEnd(e.anchorNode,e.anchorOffset),n.collapse(!1),t.removeAllRanges(),t.addRange(n),t.extend(e.focusNode,e.focusOffset)}}(u),S(n.cursorDiv),S(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,l&&(n.lastWrapHeight=t.wrapperHeight,n.lastWrapWidth=t.wrapperWidth,ra(e,400)),n.updateLineNumbers=null,!0}function la(e,t){for(var n=t.viewport,r=!0;;r=!1){if(r&&e.options.lineWrapping&&t.oldDisplayWidth!=Sn(e))r&&(t.visible=jr(e.display,e.doc,n));else if(n&&null!=n.top&&(n={top:Math.min(e.doc.height+On(e.display)-jn(e),n.top)}),t.visible=jr(e.display,e.doc,n),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break;if(!oa(e,t))break;wr(e);var a=Kr(e);vr(e),Qr(e,a),ua(e,a),t.force=!1}t.signal(e,"update",e),e.display.viewFrom==e.display.reportedViewFrom&&e.display.viewTo==e.display.reportedViewTo||(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function sa(e,t){var n=new ia(e,t);if(oa(e,n)){wr(e),la(e,n);var r=Kr(e);vr(e),Qr(e,r),ua(e,r),n.finish()}}function ca(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px"}function ua(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+wn(e)+"px"}function da(e){var t=e.display,n=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var r=or(t)-t.scroller.scrollLeft+e.doc.scrollLeft,a=t.gutters.offsetWidth,i=r+"px",o=0;o<n.length;o++)if(!n[o].hidden){e.options.fixedGutter&&(n[o].gutter&&(n[o].gutter.style.left=i),n[o].gutterBackground&&(n[o].gutterBackground.style.left=i));var l=n[o].alignable;if(l)for(var s=0;s<l.length;s++)l[s].style.left=i}e.options.fixedGutter&&(t.gutters.style.left=r+a+"px")}}function fa(e){if(!e.options.lineNumbers)return!1;var t=e.doc,n=$e(e.options,t.first+t.size-1),r=e.display;if(n.length!=r.lineNumChars){var a=r.measure.appendChild(N("div",[N("div",n)],"CodeMirror-linenumber CodeMirror-gutter-elt")),i=a.firstChild.offsetWidth,o=a.offsetWidth-i;return r.lineGutter.style.width="",r.lineNumInnerWidth=Math.max(i,r.lineGutter.offsetWidth-o)+1,r.lineNumWidth=r.lineNumInnerWidth+o,r.lineNumChars=r.lineNumInnerWidth?n.length:-1,r.lineGutter.style.width=r.lineNumWidth+"px",ca(e.display),!0}return!1}function pa(e,t){for(var n=[],r=!1,a=0;a<e.length;a++){var i=e[a],o=null;if("string"!=typeof i&&(o=i.style,i=i.className),"CodeMirror-linenumbers"==i){if(!t)continue;r=!0}n.push({className:i,style:o})}return t&&!r&&n.push({className:"CodeMirror-linenumbers",style:null}),n}function ha(e){var t=e.gutters,n=e.gutterSpecs;S(t),e.lineGutter=null;for(var r=0;r<n.length;++r){var a=n[r],i=a.className,o=a.style,l=t.appendChild(N("div",null,"CodeMirror-gutter "+i));o&&(l.style.cssText=o),"CodeMirror-linenumbers"==i&&(e.lineGutter=l,l.style.width=(e.lineNumWidth||1)+"px")}t.style.display=n.length?"":"none",ca(e)}function ma(e){ha(e.display),dr(e),da(e)}function va(e,t,r,a){var i=this;this.input=r,i.scrollbarFiller=N("div",null,"CodeMirror-scrollbar-filler"),i.scrollbarFiller.setAttribute("cm-not-content","true"),i.gutterFiller=N("div",null,"CodeMirror-gutter-filler"),i.gutterFiller.setAttribute("cm-not-content","true"),i.lineDiv=I("div",null,"CodeMirror-code"),i.selectionDiv=N("div",null,null,"position: relative; z-index: 1"),i.cursorDiv=N("div",null,"CodeMirror-cursors"),i.measure=N("div",null,"CodeMirror-measure"),i.lineMeasure=N("div",null,"CodeMirror-measure"),i.lineSpace=I("div",[i.measure,i.lineMeasure,i.selectionDiv,i.cursorDiv,i.lineDiv],null,"position: relative; outline: none");var c=I("div",[i.lineSpace],"CodeMirror-lines");i.mover=N("div",[c],null,"position: relative"),i.sizer=N("div",[i.mover],"CodeMirror-sizer"),i.sizerWidth=null,i.heightForcer=N("div",null,null,"position: absolute; height: 50px; width: 1px;"),i.gutters=N("div",null,"CodeMirror-gutters"),i.lineGutter=null,i.scroller=N("div",[i.sizer,i.heightForcer,i.gutters],"CodeMirror-scroll"),i.scroller.setAttribute("tabIndex","-1"),i.wrapper=N("div",[i.scrollbarFiller,i.gutterFiller,i.scroller],"CodeMirror"),o&&l<8&&(i.gutters.style.zIndex=-1,i.scroller.style.paddingRight=0),s||n&&g||(i.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(i.wrapper):e(i.wrapper)),i.viewFrom=i.viewTo=t.first,i.reportedViewFrom=i.reportedViewTo=t.first,i.view=[],i.renderedView=null,i.externalMeasured=null,i.viewOffset=0,i.lastWrapHeight=i.lastWrapWidth=0,i.updateLineNumbers=null,i.nativeBarWidth=i.barHeight=i.barWidth=0,i.scrollbarsClipped=!1,i.lineNumWidth=i.lineNumInnerWidth=i.lineNumChars=null,i.alignWidgets=!1,i.cachedCharWidth=i.cachedTextHeight=i.cachedPaddingH=null,i.maxLine=null,i.maxLineLength=0,i.maxLineChanged=!1,i.wheelDX=i.wheelDY=i.wheelStartX=i.wheelStartY=null,i.shift=!1,i.selForContextMenu=null,i.activeTouch=null,i.gutterSpecs=pa(a.gutters,a.lineNumbers),ha(i),r.init(i)}ia.prototype.signal=function(e,t){ge(e,t)&&this.events.push(arguments)},ia.prototype.finish=function(){for(var e=0;e<this.events.length;e++)he.apply(null,this.events[e])};var ga=0,ba=null;function ya(e){var t=e.wheelDeltaX,n=e.wheelDeltaY;return null==t&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(t=e.detail),null==n&&e.detail&&e.axis==e.VERTICAL_AXIS?n=e.detail:null==n&&(n=e.wheelDelta),{x:t,y:n}}function xa(e){var t=ya(e);return t.x*=ba,t.y*=ba,t}function Ea(e,t){var r=ya(t),a=r.x,i=r.y,o=e.display,l=o.scroller,c=l.scrollWidth>l.clientWidth,u=l.scrollHeight>l.clientHeight;if(a&&c||i&&u){if(i&&b&&s)e:for(var f=t.target,p=o.view;f!=l;f=f.parentNode)for(var h=0;h<p.length;h++)if(p[h].node==f){e.display.currentWheelTarget=f;break e}if(a&&!n&&!d&&null!=ba)return i&&u&&Lr(e,Math.max(0,l.scrollTop+i*ba)),Pr(e,Math.max(0,l.scrollLeft+a*ba)),(!i||i&&u)&&ye(t),void(o.wheelStartX=null);if(i&&null!=ba){var m=i*ba,v=e.doc.scrollTop,g=v+o.wrapper.clientHeight;m<0?v=Math.max(0,v+m-50):g=Math.min(e.doc.height,g+m+50),sa(e,{top:v,bottom:g})}ga<20&&(null==o.wheelStartX?(o.wheelStartX=l.scrollLeft,o.wheelStartY=l.scrollTop,o.wheelDX=a,o.wheelDY=i,setTimeout((function(){if(null!=o.wheelStartX){var e=l.scrollLeft-o.wheelStartX,t=l.scrollTop-o.wheelStartY,n=t&&o.wheelDY&&t/o.wheelDY||e&&o.wheelDX&&e/o.wheelDX;o.wheelStartX=o.wheelStartY=null,n&&(ba=(ba*ga+n)/(ga+1),++ga)}}),200)):(o.wheelDX+=a,o.wheelDY+=i))}}o?ba=-.53:n?ba=15:u?ba=-.7:f&&(ba=-1/3);var Ca=function(e,t){this.ranges=e,this.primIndex=t};Ca.prototype.primary=function(){return this.ranges[this.primIndex]},Ca.prototype.equals=function(e){if(e==this)return!0;if(e.primIndex!=this.primIndex||e.ranges.length!=this.ranges.length)return!1;for(var t=0;t<this.ranges.length;t++){var n=this.ranges[t],r=e.ranges[t];if(!nt(n.anchor,r.anchor)||!nt(n.head,r.head))return!1}return!0},Ca.prototype.deepCopy=function(){for(var e=[],t=0;t<this.ranges.length;t++)e[t]=new Aa(rt(this.ranges[t].anchor),rt(this.ranges[t].head));return new Ca(e,this.primIndex)},Ca.prototype.somethingSelected=function(){for(var e=0;e<this.ranges.length;e++)if(!this.ranges[e].empty())return!0;return!1},Ca.prototype.contains=function(e,t){t||(t=e);for(var n=0;n<this.ranges.length;n++){var r=this.ranges[n];if(tt(t,r.from())>=0&&tt(e,r.to())<=0)return n}return-1};var Aa=function(e,t){this.anchor=e,this.head=t};function Oa(e,t,n){var r=e&&e.options.selectionsMayTouch,a=t[n];t.sort((function(e,t){return tt(e.from(),t.from())})),n=z(t,a);for(var i=1;i<t.length;i++){var o=t[i],l=t[i-1],s=tt(l.to(),o.from());if(r&&!o.empty()?s>0:s>=0){var c=it(l.from(),o.from()),u=at(l.to(),o.to()),d=l.empty()?o.from()==o.head:l.from()==l.head;i<=n&&--n,t.splice(--i,2,new Aa(d?u:c,d?c:u))}}return new Ca(t,n)}function ka(e,t){return new Ca([new Aa(e,t||e)],0)}function wa(e){return e.text?et(e.from.line+e.text.length-1,Y(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}function Sa(e,t){if(tt(e,t.from)<0)return e;if(tt(e,t.to)<=0)return wa(t);var n=e.line+t.text.length-(t.to.line-t.from.line)-1,r=e.ch;return e.line==t.to.line&&(r+=wa(t).ch-t.to.ch),et(n,r)}function ja(e,t){for(var n=[],r=0;r<e.sel.ranges.length;r++){var a=e.sel.ranges[r];n.push(new Aa(Sa(a.anchor,t),Sa(a.head,t)))}return Oa(e.cm,n,e.sel.primIndex)}function Na(e,t,n){return e.line==t.line?et(n.line,e.ch-t.ch+n.ch):et(n.line+(e.line-t.line),e.ch)}function Ia(e){e.doc.mode=Fe(e.options,e.doc.modeOption),Ma(e)}function Ma(e){e.doc.iter((function(e){e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null)})),e.doc.modeFrontier=e.doc.highlightFrontier=e.doc.first,ra(e,100),e.state.modeGen++,e.curOp&&dr(e)}function Ta(e,t){return 0==t.from.ch&&0==t.to.ch&&""==Y(t.text)&&(!e.cm||e.cm.options.wholeLineUpdateBefore)}function Da(e,t,n,r){function a(e){return n?n[e]:null}function i(e,n,a){!function(e,t,n,r){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),null!=e.order&&(e.order=null),jt(e),Nt(e,n);var a=r?r(e):1;a!=e.height&&Ze(e,a)}(e,n,a,r),sn(e,"change",e,t)}function o(e,t){for(var n=[],i=e;i<t;++i)n.push(new Vt(c[i],a(i),r));return n}var l=t.from,s=t.to,c=t.text,u=Ve(e,l.line),d=Ve(e,s.line),f=Y(c),p=a(c.length-1),h=s.line-l.line;if(t.full)e.insert(0,o(0,c.length)),e.remove(c.length,e.size-c.length);else if(Ta(e,t)){var m=o(0,c.length-1);i(d,d.text,p),h&&e.remove(l.line,h),m.length&&e.insert(l.line,m)}else if(u==d)if(1==c.length)i(u,u.text.slice(0,l.ch)+f+u.text.slice(s.ch),p);else{var v=o(1,c.length-1);v.push(new Vt(f+u.text.slice(s.ch),p,r)),i(u,u.text.slice(0,l.ch)+c[0],a(0)),e.insert(l.line+1,v)}else if(1==c.length)i(u,u.text.slice(0,l.ch)+c[0]+d.text.slice(s.ch),a(0)),e.remove(l.line+1,h);else{i(u,u.text.slice(0,l.ch)+c[0],a(0)),i(d,f+d.text.slice(s.ch),p);var g=o(1,c.length-1);h>1&&e.remove(l.line+1,h-1),e.insert(l.line+1,g)}sn(e,"change",e,t)}function Ra(e,t,n){!function e(r,a,i){if(r.linked)for(var o=0;o<r.linked.length;++o){var l=r.linked[o];if(l.doc!=a){var s=i&&l.sharedHist;n&&!s||(t(l.doc,s),e(l.doc,r,s))}}}(e,null,!0)}function La(e,t){if(t.cm)throw new Error("This document is already in use.");e.doc=t,t.cm=e,sr(e),Ia(e),Ba(e),e.options.lineWrapping||Ut(e),e.options.mode=t.modeOption,dr(e)}function Ba(e){("rtl"==e.doc.direction?D:w)(e.display.lineDiv,"CodeMirror-rtl")}function Pa(e){this.done=[],this.undone=[],this.undoDepth=1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=e||1}function Ka(e,t){var n={from:rt(t.from),to:wa(t),text:Ge(e,t.from,t.to)};return Ha(e,n,t.from.line,t.to.line+1),Ra(e,(function(e){return Ha(e,n,t.from.line,t.to.line+1)}),!0),n}function Fa(e){for(;e.length&&Y(e).ranges;)e.pop()}function za(e,t,n,r){var a=e.history;a.undone.length=0;var i,o,l=+new Date;if((a.lastOp==r||a.lastOrigin==t.origin&&t.origin&&("+"==t.origin.charAt(0)&&a.lastModTime>l-(e.cm?e.cm.options.historyEventDelay:500)||"*"==t.origin.charAt(0)))&&(i=function(e,t){return t?(Fa(e.done),Y(e.done)):e.done.length&&!Y(e.done).ranges?Y(e.done):e.done.length>1&&!e.done[e.done.length-2].ranges?(e.done.pop(),Y(e.done)):void 0}(a,a.lastOp==r)))o=Y(i.changes),0==tt(t.from,t.to)&&0==tt(t.from,o.to)?o.to=wa(t):i.changes.push(Ka(e,t));else{var s=Y(a.done);for(s&&s.ranges||Wa(e.sel,a.done),i={changes:[Ka(e,t)],generation:a.generation},a.done.push(i);a.done.length>a.undoDepth;)a.done.shift(),a.done[0].ranges||a.done.shift()}a.done.push(n),a.generation=++a.maxGeneration,a.lastModTime=a.lastSelTime=l,a.lastOp=a.lastSelOp=r,a.lastOrigin=a.lastSelOrigin=t.origin,o||he(e,"historyAdded")}function Qa(e,t,n,r){var a=e.history,i=r&&r.origin;n==a.lastSelOp||i&&a.lastSelOrigin==i&&(a.lastModTime==a.lastSelTime&&a.lastOrigin==i||function(e,t,n,r){var a=t.charAt(0);return"*"==a||"+"==a&&n.ranges.length==r.ranges.length&&n.somethingSelected()==r.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}(e,i,Y(a.done),t))?a.done[a.done.length-1]=t:Wa(t,a.done),a.lastSelTime=+new Date,a.lastSelOrigin=i,a.lastSelOp=n,r&&!1!==r.clearRedo&&Fa(a.undone)}function Wa(e,t){var n=Y(t);n&&n.ranges&&n.equals(e)||t.push(e)}function Ha(e,t,n,r){var a=t["spans_"+e.id],i=0;e.iter(Math.max(e.first,n),Math.min(e.first+e.size,r),(function(n){n.markedSpans&&((a||(a=t["spans_"+e.id]={}))[i]=n.markedSpans),++i}))}function Ja(e){if(!e)return null;for(var t,n=0;n<e.length;++n)e[n].marker.explicitlyCleared?t||(t=e.slice(0,n)):t&&t.push(e[n]);return t?t.length?t:null:e}function Ua(e,t){var n=function(e,t){var n=t["spans_"+e.id];if(!n)return null;for(var r=[],a=0;a<t.text.length;++a)r.push(Ja(n[a]));return r}(e,t),r=wt(e,t);if(!n)return r;if(!r)return n;for(var a=0;a<n.length;++a){var i=n[a],o=r[a];if(i&&o)e:for(var l=0;l<o.length;++l){for(var s=o[l],c=0;c<i.length;++c)if(i[c].marker==s.marker)continue e;i.push(s)}else o&&(n[a]=o)}return n}function Va(e,t,n){for(var r=[],a=0;a<e.length;++a){var i=e[a];if(i.ranges)r.push(n?Ca.prototype.deepCopy.call(i):i);else{var o=i.changes,l=[];r.push({changes:l});for(var s=0;s<o.length;++s){var c=o[s],u=void 0;if(l.push({from:c.from,to:c.to,text:c.text}),t)for(var d in c)(u=d.match(/^spans_(\d+)$/))&&z(t,Number(u[1]))>-1&&(Y(l)[d]=c[d],delete c[d])}}}return r}function Ga(e,t,n,r){if(r){var a=e.anchor;if(n){var i=tt(t,a)<0;i!=tt(n,a)<0?(a=t,t=n):i!=tt(t,n)<0&&(t=n)}return new Aa(a,t)}return new Aa(n||t,t)}function Ya(e,t,n,r,a){null==a&&(a=e.cm&&(e.cm.display.shift||e.extend)),$a(e,new Ca([Ga(e.sel.primary(),t,n,a)],0),r)}function Za(e,t,n){for(var r=[],a=e.cm&&(e.cm.display.shift||e.extend),i=0;i<e.sel.ranges.length;i++)r[i]=Ga(e.sel.ranges[i],t[i],null,a);$a(e,Oa(e.cm,r,e.sel.primIndex),n)}function qa(e,t,n,r){var a=e.sel.ranges.slice(0);a[t]=n,$a(e,Oa(e.cm,a,e.sel.primIndex),r)}function Xa(e,t,n,r){$a(e,ka(t,n),r)}function _a(e,t,n){var r=e.history.done,a=Y(r);a&&a.ranges?(r[r.length-1]=t,ei(e,t,n)):$a(e,t,n)}function $a(e,t,n){ei(e,t,n),Qa(e,e.sel,e.cm?e.cm.curOp.id:NaN,n)}function ei(e,t,n){(ge(e,"beforeSelectionChange")||e.cm&&ge(e.cm,"beforeSelectionChange"))&&(t=function(e,t,n){var r={ranges:t.ranges,update:function(t){this.ranges=[];for(var n=0;n<t.length;n++)this.ranges[n]=new Aa(lt(e,t[n].anchor),lt(e,t[n].head))},origin:n&&n.origin};return he(e,"beforeSelectionChange",e,r),e.cm&&he(e.cm,"beforeSelectionChange",e.cm,r),r.ranges!=t.ranges?Oa(e.cm,r.ranges,r.ranges.length-1):t}(e,t,n));var r=n&&n.bias||(tt(t.primary().head,e.sel.primary().head)<0?-1:1);ti(e,ri(e,t,r,!0)),n&&!1===n.scroll||!e.cm||Mr(e.cm)}function ti(e,t){t.equals(e.sel)||(e.sel=t,e.cm&&(e.cm.curOp.updateInput=1,e.cm.curOp.selectionChanged=!0,ve(e.cm)),sn(e,"cursorActivity",e))}function ni(e){ti(e,ri(e,e.sel,null,!1))}function ri(e,t,n,r){for(var a,i=0;i<t.ranges.length;i++){var o=t.ranges[i],l=t.ranges.length==e.sel.ranges.length&&e.sel.ranges[i],s=ii(e,o.anchor,l&&l.anchor,n,r),c=ii(e,o.head,l&&l.head,n,r);(a||s!=o.anchor||c!=o.head)&&(a||(a=t.ranges.slice(0,i)),a[i]=new Aa(s,c))}return a?Oa(e.cm,a,t.primIndex):t}function ai(e,t,n,r,a){var i=Ve(e,t.line);if(i.markedSpans)for(var o=0;o<i.markedSpans.length;++o){var l=i.markedSpans[o],s=l.marker,c="selectLeft"in s?!s.selectLeft:s.inclusiveLeft,u="selectRight"in s?!s.selectRight:s.inclusiveRight;if((null==l.from||(c?l.from<=t.ch:l.from<t.ch))&&(null==l.to||(u?l.to>=t.ch:l.to>t.ch))){if(a&&(he(s,"beforeCursorEnter"),s.explicitlyCleared)){if(i.markedSpans){--o;continue}break}if(!s.atomic)continue;if(n){var d=s.find(r<0?1:-1),f=void 0;if((r<0?u:c)&&(d=oi(e,d,-r,d&&d.line==t.line?i:null)),d&&d.line==t.line&&(f=tt(d,n))&&(r<0?f<0:f>0))return ai(e,d,t,r,a)}var p=s.find(r<0?-1:1);return(r<0?c:u)&&(p=oi(e,p,r,p.line==t.line?i:null)),p?ai(e,p,t,r,a):null}}return t}function ii(e,t,n,r,a){var i=r||1,o=ai(e,t,n,i,a)||!a&&ai(e,t,n,i,!0)||ai(e,t,n,-i,a)||!a&&ai(e,t,n,-i,!0);return o||(e.cantEdit=!0,et(e.first,0))}function oi(e,t,n,r){return n<0&&0==t.ch?t.line>e.first?lt(e,et(t.line-1)):null:n>0&&t.ch==(r||Ve(e,t.line)).text.length?t.line<e.first+e.size-1?et(t.line+1,0):null:new et(t.line,t.ch+n)}function li(e){e.setSelection(et(e.firstLine(),0),et(e.lastLine()),W)}function si(e,t,n){var r={canceled:!1,from:t.from,to:t.to,text:t.text,origin:t.origin,cancel:function(){return r.canceled=!0}};return n&&(r.update=function(t,n,a,i){t&&(r.from=lt(e,t)),n&&(r.to=lt(e,n)),a&&(r.text=a),void 0!==i&&(r.origin=i)}),he(e,"beforeChange",e,r),e.cm&&he(e.cm,"beforeChange",e.cm,r),r.canceled?(e.cm&&(e.cm.curOp.updateInput=2),null):{from:r.from,to:r.to,text:r.text,origin:r.origin}}function ci(e,t,n){if(e.cm){if(!e.cm.curOp)return ea(e.cm,ci)(e,t,n);if(e.cm.state.suppressEdits)return}if(!(ge(e,"beforeChange")||e.cm&&ge(e.cm,"beforeChange"))||(t=si(e,t,!0))){var r=Et&&!n&&function(e,t,n){var r=null;if(e.iter(t.line,n.line+1,(function(e){if(e.markedSpans)for(var t=0;t<e.markedSpans.length;++t){var n=e.markedSpans[t].marker;!n.readOnly||r&&-1!=z(r,n)||(r||(r=[])).push(n)}})),!r)return null;for(var a=[{from:t,to:n}],i=0;i<r.length;++i)for(var o=r[i],l=o.find(0),s=0;s<a.length;++s){var c=a[s];if(!(tt(c.to,l.from)<0||tt(c.from,l.to)>0)){var u=[s,1],d=tt(c.from,l.from),f=tt(c.to,l.to);(d<0||!o.inclusiveLeft&&!d)&&u.push({from:c.from,to:l.from}),(f>0||!o.inclusiveRight&&!f)&&u.push({from:l.to,to:c.to}),a.splice.apply(a,u),s+=u.length-3}}return a}(e,t.from,t.to);if(r)for(var a=r.length-1;a>=0;--a)ui(e,{from:r[a].from,to:r[a].to,text:a?[""]:t.text,origin:t.origin});else ui(e,t)}}function ui(e,t){if(1!=t.text.length||""!=t.text[0]||0!=tt(t.from,t.to)){var n=ja(e,t);za(e,t,n,e.cm?e.cm.curOp.id:NaN),pi(e,t,n,wt(e,t));var r=[];Ra(e,(function(e,n){n||-1!=z(r,e.history)||(gi(e.history,t),r.push(e.history)),pi(e,t,null,wt(e,t))}))}}function di(e,t,n){var r=e.cm&&e.cm.state.suppressEdits;if(!r||n){for(var a,i=e.history,o=e.sel,l="undo"==t?i.done:i.undone,s="undo"==t?i.undone:i.done,c=0;c<l.length&&(a=l[c],n?!a.ranges||a.equals(e.sel):a.ranges);c++);if(c!=l.length){for(i.lastOrigin=i.lastSelOrigin=null;;){if(!(a=l.pop()).ranges){if(r)return void l.push(a);break}if(Wa(a,s),n&&!a.equals(e.sel))return void $a(e,a,{clearRedo:!1});o=a}var u=[];Wa(o,s),s.push({changes:u,generation:i.generation}),i.generation=a.generation||++i.maxGeneration;for(var d=ge(e,"beforeChange")||e.cm&&ge(e.cm,"beforeChange"),f=function(n){var r=a.changes[n];if(r.origin=t,d&&!si(e,r,!1))return l.length=0,{};u.push(Ka(e,r));var i=n?ja(e,r):Y(l);pi(e,r,i,Ua(e,r)),!n&&e.cm&&e.cm.scrollIntoView({from:r.from,to:wa(r)});var o=[];Ra(e,(function(e,t){t||-1!=z(o,e.history)||(gi(e.history,r),o.push(e.history)),pi(e,r,null,Ua(e,r))}))},p=a.changes.length-1;p>=0;--p){var h=f(p);if(h)return h.v}}}}function fi(e,t){if(0!=t&&(e.first+=t,e.sel=new Ca(Z(e.sel.ranges,(function(e){return new Aa(et(e.anchor.line+t,e.anchor.ch),et(e.head.line+t,e.head.ch))})),e.sel.primIndex),e.cm)){dr(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,r=n.viewFrom;r<n.viewTo;r++)fr(e.cm,r,"gutter")}}function pi(e,t,n,r){if(e.cm&&!e.cm.curOp)return ea(e.cm,pi)(e,t,n,r);if(t.to.line<e.first)fi(e,t.text.length-1-(t.to.line-t.from.line));else if(!(t.from.line>e.lastLine())){if(t.from.line<e.first){var a=t.text.length-1-(e.first-t.from.line);fi(e,a),t={from:et(e.first,0),to:et(t.to.line+a,t.to.ch),text:[Y(t.text)],origin:t.origin}}var i=e.lastLine();t.to.line>i&&(t={from:t.from,to:et(i,Ve(e,i).text.length),text:[t.text[0]],origin:t.origin}),t.removed=Ge(e,t.from,t.to),n||(n=ja(e,t)),e.cm?function(e,t,n){var r=e.doc,a=e.display,i=t.from,o=t.to,l=!1,s=i.line;e.options.lineWrapping||(s=qe(Kt(Ve(r,i.line))),r.iter(s,o.line+1,(function(e){if(e==a.maxLine)return l=!0,!0}))),r.sel.contains(t.from,t.to)>-1&&ve(e),Da(r,t,n,lr(e)),e.options.lineWrapping||(r.iter(s,i.line+t.text.length,(function(e){var t=Jt(e);t>a.maxLineLength&&(a.maxLine=e,a.maxLineLength=t,a.maxLineChanged=!0,l=!1)})),l&&(e.curOp.updateMaxLine=!0)),function(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontier<t-10)){for(var n=e.first,r=t-1;r>n;r--){var a=Ve(e,r).stateAfter;if(a&&(!(a instanceof ct)||r+a.lookAhead<t)){n=r+1;break}}e.highlightFrontier=Math.min(e.highlightFrontier,n)}}(r,i.line),ra(e,400);var c=t.text.length-(o.line-i.line)-1;t.full?dr(e):i.line!=o.line||1!=t.text.length||Ta(e.doc,t)?dr(e,i.line,o.line+1,c):fr(e,i.line,"text");var u=ge(e,"changes"),d=ge(e,"change");if(d||u){var f={from:i,to:o,text:t.text,removed:t.removed,origin:t.origin};d&&sn(e,"change",e,f),u&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(f)}e.display.selForContextMenu=null}(e.cm,t,r):Da(e,t,r),ei(e,n,W),e.cantEdit&&ii(e,et(e.firstLine(),0))&&(e.cantEdit=!1)}}function hi(e,t,n,r,a){var i;r||(r=n),tt(r,n)<0&&(n=(i=[r,n])[0],r=i[1]),"string"==typeof t&&(t=e.splitLines(t)),ci(e,{from:n,to:r,text:t,origin:a})}function mi(e,t,n,r){n<e.line?e.line+=r:t<e.line&&(e.line=t,e.ch=0)}function vi(e,t,n,r){for(var a=0;a<e.length;++a){var i=e[a],o=!0;if(i.ranges){i.copied||((i=e[a]=i.deepCopy()).copied=!0);for(var l=0;l<i.ranges.length;l++)mi(i.ranges[l].anchor,t,n,r),mi(i.ranges[l].head,t,n,r)}else{for(var s=0;s<i.changes.length;++s){var c=i.changes[s];if(n<c.from.line)c.from=et(c.from.line+r,c.from.ch),c.to=et(c.to.line+r,c.to.ch);else if(t<=c.to.line){o=!1;break}}o||(e.splice(0,a+1),a=0)}}}function gi(e,t){var n=t.from.line,r=t.to.line,a=t.text.length-(r-n)-1;vi(e.done,n,r,a),vi(e.undone,n,r,a)}function bi(e,t,n,r){var a=t,i=t;return"number"==typeof t?i=Ve(e,ot(e,t)):a=qe(t),null==a?null:(r(i,a)&&e.cm&&fr(e.cm,a,n),i)}function yi(e){this.lines=e,this.parent=null;for(var t=0,n=0;n<e.length;++n)e[n].parent=this,t+=e[n].height;this.height=t}function xi(e){this.children=e;for(var t=0,n=0,r=0;r<e.length;++r){var a=e[r];t+=a.chunkSize(),n+=a.height,a.parent=this}this.size=t,this.height=n,this.parent=null}Aa.prototype.from=function(){return it(this.anchor,this.head)},Aa.prototype.to=function(){return at(this.anchor,this.head)},Aa.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch},yi.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,t){for(var n=e,r=e+t;n<r;++n){var a=this.lines[n];this.height-=a.height,Gt(a),sn(a,"delete")}this.lines.splice(e,t)},collapse:function(e){e.push.apply(e,this.lines)},insertInner:function(e,t,n){this.height+=n,this.lines=this.lines.slice(0,e).concat(t).concat(this.lines.slice(e));for(var r=0;r<t.length;++r)t[r].parent=this},iterN:function(e,t,n){for(var r=e+t;e<r;++e)if(n(this.lines[e]))return!0}},xi.prototype={chunkSize:function(){return this.size},removeInner:function(e,t){this.size-=t;for(var n=0;n<this.children.length;++n){var r=this.children[n],a=r.chunkSize();if(e<a){var i=Math.min(t,a-e),o=r.height;if(r.removeInner(e,i),this.height-=o-r.height,a==i&&(this.children.splice(n--,1),r.parent=null),0==(t-=i))break;e=0}else e-=a}if(this.size-t<25&&(this.children.length>1||!(this.children[0]instanceof yi))){var l=[];this.collapse(l),this.children=[new yi(l)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t<this.children.length;++t)this.children[t].collapse(e)},insertInner:function(e,t,n){this.size+=t.length,this.height+=n;for(var r=0;r<this.children.length;++r){var a=this.children[r],i=a.chunkSize();if(e<=i){if(a.insertInner(e,t,n),a.lines&&a.lines.length>50){for(var o=a.lines.length%25+25,l=o;l<a.lines.length;){var s=new yi(a.lines.slice(l,l+=25));a.height-=s.height,this.children.splice(++r,0,s),s.parent=this}a.lines=a.lines.slice(0,o),this.maybeSpill()}break}e-=i}},maybeSpill:function(){if(!(this.children.length<=10)){var e=this;do{var t=new xi(e.children.splice(e.children.length-5,5));if(e.parent){e.size-=t.size,e.height-=t.height;var n=z(e.parent.children,e);e.parent.children.splice(n+1,0,t)}else{var r=new xi(e.children);r.parent=e,e.children=[r,t],e=r}t.parent=e.parent}while(e.children.length>10);e.parent.maybeSpill()}},iterN:function(e,t,n){for(var r=0;r<this.children.length;++r){var a=this.children[r],i=a.chunkSize();if(e<i){var o=Math.min(t,i-e);if(a.iterN(e,o,n))return!0;if(0==(t-=o))break;e=0}else e-=i}}};var Ei=function(e,t,n){if(n)for(var r in n)n.hasOwnProperty(r)&&(this[r]=n[r]);this.doc=e,this.node=t};function Ci(e,t,n){Ht(t)<(e.curOp&&e.curOp.scrollTop||e.doc.scrollTop)&&Ir(e,n)}Ei.prototype.clear=function(){var e=this.doc.cm,t=this.line.widgets,n=this.line,r=qe(n);if(null!=r&&t){for(var a=0;a<t.length;++a)t[a]==this&&t.splice(a--,1);t.length||(n.widgets=null);var i=En(this);Ze(n,Math.max(0,n.height-i)),e&&($r(e,(function(){Ci(e,n,-i),fr(e,r,"widget")})),sn(e,"lineWidgetCleared",e,this,r))}},Ei.prototype.changed=function(){var e=this,t=this.height,n=this.doc.cm,r=this.line;this.height=null;var a=En(this)-t;a&&(Qt(this.doc,r)||Ze(r,r.height+a),n&&$r(n,(function(){n.curOp.forceUpdate=!0,Ci(n,r,a),sn(n,"lineWidgetChanged",n,e,qe(r))})))},be(Ei);var Ai=0,Oi=function(e,t){this.lines=[],this.type=t,this.doc=e,this.id=++Ai};function ki(e,t,n,r,a){if(r&&r.shared)return function(e,t,n,r,a){(r=P(r)).shared=!1;var i=[ki(e,t,n,r,a)],o=i[0],l=r.widgetNode;return Ra(e,(function(e){l&&(r.widgetNode=l.cloneNode(!0)),i.push(ki(e,lt(e,t),lt(e,n),r,a));for(var s=0;s<e.linked.length;++s)if(e.linked[s].isParent)return;o=Y(i)})),new wi(i,o)}(e,t,n,r,a);if(e.cm&&!e.cm.curOp)return ea(e.cm,ki)(e,t,n,r,a);var i=new Oi(e,a),o=tt(t,n);if(r&&P(r,i,!1),o>0||0==o&&!1!==i.clearWhenEmpty)return i;if(i.replacedWith&&(i.collapsed=!0,i.widgetNode=I("span",[i.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||i.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(i.widgetNode.insertLeft=!0)),i.collapsed){if(Pt(e,t.line,t,n,i)||t.line!=n.line&&Pt(e,n.line,t,n,i))throw new Error("Inserting collapsed marker partially overlapping an existing one");Ct=!0}i.addToHistory&&za(e,{from:t,to:n,origin:"markText"},e.sel,NaN);var l,s=t.line,c=e.cm;if(e.iter(s,n.line+1,(function(e){c&&i.collapsed&&!c.options.lineWrapping&&Kt(e)==c.display.maxLine&&(l=!0),i.collapsed&&s!=t.line&&Ze(e,0),function(e,t){e.markedSpans=e.markedSpans?e.markedSpans.concat([t]):[t],t.marker.attachLine(e)}(e,new At(i,s==t.line?t.ch:null,s==n.line?n.ch:null)),++s})),i.collapsed&&e.iter(t.line,n.line+1,(function(t){Qt(e,t)&&Ze(t,0)})),i.clearOnEnter&&de(i,"beforeCursorEnter",(function(){return i.clear()})),i.readOnly&&(Et=!0,(e.history.done.length||e.history.undone.length)&&e.clearHistory()),i.collapsed&&(i.id=++Ai,i.atomic=!0),c){if(l&&(c.curOp.updateMaxLine=!0),i.collapsed)dr(c,t.line,n.line+1);else if(i.className||i.startStyle||i.endStyle||i.css||i.attributes||i.title)for(var u=t.line;u<=n.line;u++)fr(c,u,"text");i.atomic&&ni(c.doc),sn(c,"markerAdded",c,i)}return i}Oi.prototype.clear=function(){if(!this.explicitlyCleared){var e=this.doc.cm,t=e&&!e.curOp;if(t&&Vr(e),ge(this,"clear")){var n=this.find();n&&sn(this,"clear",n.from,n.to)}for(var r=null,a=null,i=0;i<this.lines.length;++i){var o=this.lines[i],l=Ot(o.markedSpans,this);e&&!this.collapsed?fr(e,qe(o),"text"):e&&(null!=l.to&&(a=qe(o)),null!=l.from&&(r=qe(o))),o.markedSpans=kt(o.markedSpans,l),null==l.from&&this.collapsed&&!Qt(this.doc,o)&&e&&Ze(o,rr(e.display))}if(e&&this.collapsed&&!e.options.lineWrapping)for(var s=0;s<this.lines.length;++s){var c=Kt(this.lines[s]),u=Jt(c);u>e.display.maxLineLength&&(e.display.maxLine=c,e.display.maxLineLength=u,e.display.maxLineChanged=!0)}null!=r&&e&&this.collapsed&&dr(e,r,a+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&ni(e.doc)),e&&sn(e,"markerCleared",e,this,r,a),t&&Gr(e),this.parent&&this.parent.clear()}},Oi.prototype.find=function(e,t){var n,r;null==e&&"bookmark"==this.type&&(e=1);for(var a=0;a<this.lines.length;++a){var i=this.lines[a],o=Ot(i.markedSpans,this);if(null!=o.from&&(n=et(t?i:qe(i),o.from),-1==e))return n;if(null!=o.to&&(r=et(t?i:qe(i),o.to),1==e))return r}return n&&{from:n,to:r}},Oi.prototype.changed=function(){var e=this,t=this.find(-1,!0),n=this,r=this.doc.cm;t&&r&&$r(r,(function(){var a=t.line,i=qe(t.line),o=Mn(r,i);if(o&&(Kn(o),r.curOp.selectionChanged=r.curOp.forceUpdate=!0),r.curOp.updateMaxLine=!0,!Qt(n.doc,a)&&null!=n.height){var l=n.height;n.height=null;var s=En(n)-l;s&&Ze(a,a.height+s)}sn(r,"markerChanged",r,e)}))},Oi.prototype.attachLine=function(e){if(!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;t.maybeHiddenMarkers&&-1!=z(t.maybeHiddenMarkers,this)||(t.maybeUnhiddenMarkers||(t.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(e)},Oi.prototype.detachLine=function(e){if(this.lines.splice(z(this.lines,e),1),!this.lines.length&&this.doc.cm){var t=this.doc.cm.curOp;(t.maybeHiddenMarkers||(t.maybeHiddenMarkers=[])).push(this)}},be(Oi);var wi=function(e,t){this.markers=e,this.primary=t;for(var n=0;n<e.length;++n)e[n].parent=this};function Si(e){return e.findMarks(et(e.first,0),e.clipPos(et(e.lastLine())),(function(e){return e.parent}))}function ji(e){for(var t=function(t){var n=e[t],r=[n.primary.doc];Ra(n.primary.doc,(function(e){return r.push(e)}));for(var a=0;a<n.markers.length;a++){var i=n.markers[a];-1==z(r,i.doc)&&(i.parent=null,n.markers.splice(a--,1))}},n=0;n<e.length;n++)t(n)}wi.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var e=0;e<this.markers.length;++e)this.markers[e].clear();sn(this,"clear")}},wi.prototype.find=function(e,t){return this.primary.find(e,t)},be(wi);var Ni=0,Ii=function(e,t,n,r,a){if(!(this instanceof Ii))return new Ii(e,t,n,r,a);null==n&&(n=0),xi.call(this,[new yi([new Vt("",null)])]),this.first=n,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=n;var i=et(n,0);this.sel=ka(i),this.history=new Pa(null),this.id=++Ni,this.modeOption=t,this.lineSep=r,this.direction="rtl"==a?"rtl":"ltr",this.extend=!1,"string"==typeof e&&(e=this.splitLines(e)),Da(this,{from:i,to:i,text:e}),$a(this,ka(i),W)};Ii.prototype=X(xi.prototype,{constructor:Ii,iter:function(e,t,n){n?this.iterN(e-this.first,t-e,n):this.iterN(this.first,this.first+this.size,e)},insert:function(e,t){for(var n=0,r=0;r<t.length;++r)n+=t[r].height;this.insertInner(e-this.first,t,n)},remove:function(e,t){this.removeInner(e-this.first,t)},getValue:function(e){var t=Ye(this,this.first,this.first+this.size);return!1===e?t:t.join(e||this.lineSeparator())},setValue:na((function(e){var t=et(this.first,0),n=this.first+this.size-1;ci(this,{from:t,to:et(n,Ve(this,n).text.length),text:this.splitLines(e),origin:"setValue",full:!0},!0),this.cm&&Tr(this.cm,0,0),$a(this,ka(t),W)})),replaceRange:function(e,t,n,r){hi(this,e,t=lt(this,t),n=n?lt(this,n):t,r)},getRange:function(e,t,n){var r=Ge(this,lt(this,e),lt(this,t));return!1===n?r:r.join(n||this.lineSeparator())},getLine:function(e){var t=this.getLineHandle(e);return t&&t.text},getLineHandle:function(e){if(_e(this,e))return Ve(this,e)},getLineNumber:function(e){return qe(e)},getLineHandleVisualStart:function(e){return"number"==typeof e&&(e=Ve(this,e)),Kt(e)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(e){return lt(this,e)},getCursor:function(e){var t=this.sel.primary();return null==e||"head"==e?t.head:"anchor"==e?t.anchor:"end"==e||"to"==e||!1===e?t.to():t.from()},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:na((function(e,t,n){Xa(this,lt(this,"number"==typeof e?et(e,t||0):e),null,n)})),setSelection:na((function(e,t,n){Xa(this,lt(this,e),lt(this,t||e),n)})),extendSelection:na((function(e,t,n){Ya(this,lt(this,e),t&<(this,t),n)})),extendSelections:na((function(e,t){Za(this,st(this,e),t)})),extendSelectionsBy:na((function(e,t){Za(this,st(this,Z(this.sel.ranges,e)),t)})),setSelections:na((function(e,t,n){if(e.length){for(var r=[],a=0;a<e.length;a++)r[a]=new Aa(lt(this,e[a].anchor),lt(this,e[a].head));null==t&&(t=Math.min(e.length-1,this.sel.primIndex)),$a(this,Oa(this.cm,r,t),n)}})),addSelection:na((function(e,t,n){var r=this.sel.ranges.slice(0);r.push(new Aa(lt(this,e),lt(this,t||e))),$a(this,Oa(this.cm,r,r.length-1),n)})),getSelection:function(e){for(var t,n=this.sel.ranges,r=0;r<n.length;r++){var a=Ge(this,n[r].from(),n[r].to());t=t?t.concat(a):a}return!1===e?t:t.join(e||this.lineSeparator())},getSelections:function(e){for(var t=[],n=this.sel.ranges,r=0;r<n.length;r++){var a=Ge(this,n[r].from(),n[r].to());!1!==e&&(a=a.join(e||this.lineSeparator())),t[r]=a}return t},replaceSelection:function(e,t,n){for(var r=[],a=0;a<this.sel.ranges.length;a++)r[a]=e;this.replaceSelections(r,t,n||"+input")},replaceSelections:na((function(e,t,n){for(var r=[],a=this.sel,i=0;i<a.ranges.length;i++){var o=a.ranges[i];r[i]={from:o.from(),to:o.to(),text:this.splitLines(e[i]),origin:n}}for(var l=t&&"end"!=t&&function(e,t,n){for(var r=[],a=et(e.first,0),i=a,o=0;o<t.length;o++){var l=t[o],s=Na(l.from,a,i),c=Na(wa(l),a,i);if(a=l.to,i=c,"around"==n){var u=e.sel.ranges[o],d=tt(u.head,u.anchor)<0;r[o]=new Aa(d?c:s,d?s:c)}else r[o]=new Aa(s,s)}return new Ca(r,e.sel.primIndex)}(this,r,t),s=r.length-1;s>=0;s--)ci(this,r[s]);l?_a(this,l):this.cm&&Mr(this.cm)})),undo:na((function(){di(this,"undo")})),redo:na((function(){di(this,"redo")})),undoSelection:na((function(){di(this,"undo",!0)})),redoSelection:na((function(){di(this,"redo",!0)})),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,n=0,r=0;r<e.done.length;r++)e.done[r].ranges||++t;for(var a=0;a<e.undone.length;a++)e.undone[a].ranges||++n;return{undo:t,redo:n}},clearHistory:function(){var e=this;this.history=new Pa(this.history.maxGeneration),Ra(this,(function(t){return t.history=e.history}),!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(e){return e&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(e){return this.history.generation==(e||this.cleanGeneration)},getHistory:function(){return{done:Va(this.history.done),undone:Va(this.history.undone)}},setHistory:function(e){var t=this.history=new Pa(this.history.maxGeneration);t.done=Va(e.done.slice(0),null,!0),t.undone=Va(e.undone.slice(0),null,!0)},setGutterMarker:na((function(e,t,n){return bi(this,e,"gutter",(function(e){var r=e.gutterMarkers||(e.gutterMarkers={});return r[t]=n,!n&&te(r)&&(e.gutterMarkers=null),!0}))})),clearGutter:na((function(e){var t=this;this.iter((function(n){n.gutterMarkers&&n.gutterMarkers[e]&&bi(t,n,"gutter",(function(){return n.gutterMarkers[e]=null,te(n.gutterMarkers)&&(n.gutterMarkers=null),!0}))}))})),lineInfo:function(e){var t;if("number"==typeof e){if(!_e(this,e))return null;if(t=e,!(e=Ve(this,e)))return null}else if(null==(t=qe(e)))return null;return{line:t,handle:e,text:e.text,gutterMarkers:e.gutterMarkers,textClass:e.textClass,bgClass:e.bgClass,wrapClass:e.wrapClass,widgets:e.widgets}},addLineClass:na((function(e,t,n){return bi(this,e,"gutter"==t?"gutter":"class",(function(e){var r="text"==t?"textClass":"background"==t?"bgClass":"gutter"==t?"gutterClass":"wrapClass";if(e[r]){if(O(n).test(e[r]))return!1;e[r]+=" "+n}else e[r]=n;return!0}))})),removeLineClass:na((function(e,t,n){return bi(this,e,"gutter"==t?"gutter":"class",(function(e){var r="text"==t?"textClass":"background"==t?"bgClass":"gutter"==t?"gutterClass":"wrapClass",a=e[r];if(!a)return!1;if(null==n)e[r]=null;else{var i=a.match(O(n));if(!i)return!1;var o=i.index+i[0].length;e[r]=a.slice(0,i.index)+(i.index&&o!=a.length?" ":"")+a.slice(o)||null}return!0}))})),addLineWidget:na((function(e,t,n){return function(e,t,n,r){var a=new Ei(e,n,r),i=e.cm;return i&&a.noHScroll&&(i.display.alignWidgets=!0),bi(e,t,"widget",(function(t){var n=t.widgets||(t.widgets=[]);if(null==a.insertAt?n.push(a):n.splice(Math.min(n.length-1,Math.max(0,a.insertAt)),0,a),a.line=t,i&&!Qt(e,t)){var r=Ht(t)<e.scrollTop;Ze(t,t.height+En(a)),r&&Ir(i,a.height),i.curOp.forceUpdate=!0}return!0})),i&&sn(i,"lineWidgetAdded",i,a,"number"==typeof t?t:qe(t)),a}(this,e,t,n)})),removeLineWidget:function(e){e.clear()},markText:function(e,t,n){return ki(this,lt(this,e),lt(this,t),n,n&&n.type||"range")},setBookmark:function(e,t){var n={replacedWith:t&&(null==t.nodeType?t.widget:t),insertLeft:t&&t.insertLeft,clearWhenEmpty:!1,shared:t&&t.shared,handleMouseEvents:t&&t.handleMouseEvents};return ki(this,e=lt(this,e),e,n,"bookmark")},findMarksAt:function(e){var t=[],n=Ve(this,(e=lt(this,e)).line).markedSpans;if(n)for(var r=0;r<n.length;++r){var a=n[r];(null==a.from||a.from<=e.ch)&&(null==a.to||a.to>=e.ch)&&t.push(a.marker.parent||a.marker)}return t},findMarks:function(e,t,n){e=lt(this,e),t=lt(this,t);var r=[],a=e.line;return this.iter(e.line,t.line+1,(function(i){var o=i.markedSpans;if(o)for(var l=0;l<o.length;l++){var s=o[l];null!=s.to&&a==e.line&&e.ch>=s.to||null==s.from&&a!=e.line||null!=s.from&&a==t.line&&s.from>=t.ch||n&&!n(s.marker)||r.push(s.marker.parent||s.marker)}++a})),r},getAllMarks:function(){var e=[];return this.iter((function(t){var n=t.markedSpans;if(n)for(var r=0;r<n.length;++r)null!=n[r].from&&e.push(n[r].marker)})),e},posFromIndex:function(e){var t,n=this.first,r=this.lineSeparator().length;return this.iter((function(a){var i=a.text.length+r;if(i>e)return t=e,!0;e-=i,++n})),lt(this,et(n,t))},indexFromPos:function(e){var t=(e=lt(this,e)).ch;if(e.line<this.first||e.ch<0)return 0;var n=this.lineSeparator().length;return this.iter(this.first,e.line,(function(e){t+=e.text.length+n})),t},copy:function(e){var t=new Ii(Ye(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return t.scrollTop=this.scrollTop,t.scrollLeft=this.scrollLeft,t.sel=this.sel,t.extend=!1,e&&(t.history.undoDepth=this.history.undoDepth,t.setHistory(this.getHistory())),t},linkedDoc:function(e){e||(e={});var t=this.first,n=this.first+this.size;null!=e.from&&e.from>t&&(t=e.from),null!=e.to&&e.to<n&&(n=e.to);var r=new Ii(Ye(this,t,n),e.mode||this.modeOption,t,this.lineSep,this.direction);return e.sharedHist&&(r.history=this.history),(this.linked||(this.linked=[])).push({doc:r,sharedHist:e.sharedHist}),r.linked=[{doc:this,isParent:!0,sharedHist:e.sharedHist}],function(e,t){for(var n=0;n<t.length;n++){var r=t[n],a=r.find(),i=e.clipPos(a.from),o=e.clipPos(a.to);if(tt(i,o)){var l=ki(e,i,o,r.primary,r.primary.type);r.markers.push(l),l.parent=r}}}(r,Si(this)),r},unlinkDoc:function(e){if(e instanceof So&&(e=e.doc),this.linked)for(var t=0;t<this.linked.length;++t)if(this.linked[t].doc==e){this.linked.splice(t,1),e.unlinkDoc(this),ji(Si(this));break}if(e.history==this.history){var n=[e.id];Ra(e,(function(e){return n.push(e.id)}),!0),e.history=new Pa(null),e.history.done=Va(this.history.done,n),e.history.undone=Va(this.history.undone,n)}},iterLinkedDocs:function(e){Ra(this,e)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(e){return this.lineSep?e.split(this.lineSep):Me(e)},lineSeparator:function(){return this.lineSep||"\n"},setDirection:na((function(e){var t;"rtl"!=e&&(e="ltr"),e!=this.direction&&(this.direction=e,this.iter((function(e){return e.order=null})),this.cm&&$r(t=this.cm,(function(){Ba(t),dr(t)})))}))}),Ii.prototype.eachLine=Ii.prototype.iter;var Mi=0;function Ti(e){var t=this;if(Di(t),!me(t,e)&&!Cn(t.display,e)){ye(e),o&&(Mi=+new Date);var n=cr(t,e,!0),r=e.dataTransfer.files;if(n&&!t.isReadOnly())if(r&&r.length&&window.FileReader&&window.File)for(var a=r.length,i=Array(a),l=0,s=function(){++l==a&&ea(t,(function(){var e={from:n=lt(t.doc,n),to:n,text:t.doc.splitLines(i.filter((function(e){return null!=e})).join(t.doc.lineSeparator())),origin:"paste"};ci(t.doc,e),_a(t.doc,ka(lt(t.doc,n),lt(t.doc,wa(e))))}))()},c=function(e,n){if(t.options.allowDropFileTypes&&-1==z(t.options.allowDropFileTypes,e.type))s();else{var r=new FileReader;r.onerror=function(){return s()},r.onload=function(){var e=r.result;/[\x00-\x08\x0e-\x1f]{2}/.test(e)||(i[n]=e),s()},r.readAsText(e)}},u=0;u<r.length;u++)c(r[u],u);else{if(t.state.draggingText&&t.doc.sel.contains(n)>-1)return t.state.draggingText(e),void setTimeout((function(){return t.display.input.focus()}),20);try{var d=e.dataTransfer.getData("Text");if(d){var f;if(t.state.draggingText&&!t.state.draggingText.copy&&(f=t.listSelections()),ei(t.doc,ka(n,n)),f)for(var p=0;p<f.length;++p)hi(t.doc,"",f[p].anchor,f[p].head,"drag");t.replaceSelection(d,"around","paste"),t.display.input.focus()}}catch(e){}}}}function Di(e){e.display.dragCursor&&(e.display.lineSpace.removeChild(e.display.dragCursor),e.display.dragCursor=null)}function Ri(e){if(document.getElementsByClassName){for(var t=document.getElementsByClassName("CodeMirror"),n=[],r=0;r<t.length;r++){var a=t[r].CodeMirror;a&&n.push(a)}n.length&&n[0].operation((function(){for(var t=0;t<n.length;t++)e(n[t])}))}}var Li=!1;function Bi(){var e;Li||(de(window,"resize",(function(){null==e&&(e=setTimeout((function(){e=null,Ri(Pi)}),100))})),de(window,"blur",(function(){return Ri(kr)})),Li=!0)}function Pi(e){var t=e.display;t.cachedCharWidth=t.cachedTextHeight=t.cachedPaddingH=null,t.scrollbarsClipped=!1,e.setSize()}for(var Ki={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},Fi=0;Fi<10;Fi++)Ki[Fi+48]=Ki[Fi+96]=String(Fi);for(var zi=65;zi<=90;zi++)Ki[zi]=String.fromCharCode(zi);for(var Qi=1;Qi<=12;Qi++)Ki[Qi+111]=Ki[Qi+63235]="F"+Qi;var Wi={};function Hi(e){var t,n,r,a,i=e.split(/-(?!$)/);e=i[i.length-1];for(var o=0;o<i.length-1;o++){var l=i[o];if(/^(cmd|meta|m)$/i.test(l))a=!0;else if(/^a(lt)?$/i.test(l))t=!0;else if(/^(c|ctrl|control)$/i.test(l))n=!0;else{if(!/^s(hift)?$/i.test(l))throw new Error("Unrecognized modifier name: "+l);r=!0}}return t&&(e="Alt-"+e),n&&(e="Ctrl-"+e),a&&(e="Cmd-"+e),r&&(e="Shift-"+e),e}function Ji(e){var t={};for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];if(/^(name|fallthrough|(de|at)tach)$/.test(n))continue;if("..."==r){delete e[n];continue}for(var a=Z(n.split(" "),Hi),i=0;i<a.length;i++){var o=void 0,l=void 0;i==a.length-1?(l=a.join(" "),o=r):(l=a.slice(0,i+1).join(" "),o="...");var s=t[l];if(s){if(s!=o)throw new Error("Inconsistent bindings for "+l)}else t[l]=o}delete e[n]}for(var c in t)e[c]=t[c];return e}function Ui(e,t,n,r){var a=(t=Zi(t)).call?t.call(e,r):t[e];if(!1===a)return"nothing";if("..."===a)return"multi";if(null!=a&&n(a))return"handled";if(t.fallthrough){if("[object Array]"!=Object.prototype.toString.call(t.fallthrough))return Ui(e,t.fallthrough,n,r);for(var i=0;i<t.fallthrough.length;i++){var o=Ui(e,t.fallthrough[i],n,r);if(o)return o}}}function Vi(e){var t="string"==typeof e?e:Ki[e.keyCode];return"Ctrl"==t||"Alt"==t||"Shift"==t||"Mod"==t}function Gi(e,t,n){var r=e;return t.altKey&&"Alt"!=r&&(e="Alt-"+e),(C?t.metaKey:t.ctrlKey)&&"Ctrl"!=r&&(e="Ctrl-"+e),(C?t.ctrlKey:t.metaKey)&&"Mod"!=r&&(e="Cmd-"+e),!n&&t.shiftKey&&"Shift"!=r&&(e="Shift-"+e),e}function Yi(e,t){if(d&&34==e.keyCode&&e.char)return!1;var n=Ki[e.keyCode];return null!=n&&!e.altGraphKey&&(3==e.keyCode&&e.code&&(n=e.code),Gi(n,e,t))}function Zi(e){return"string"==typeof e?Wi[e]:e}function qi(e,t){for(var n=e.doc.sel.ranges,r=[],a=0;a<n.length;a++){for(var i=t(n[a]);r.length&&tt(i.from,Y(r).to)<=0;){var o=r.pop();if(tt(o.from,i.from)<0){i.from=o.from;break}}r.push(i)}$r(e,(function(){for(var t=r.length-1;t>=0;t--)hi(e.doc,"",r[t].from,r[t].to,"+delete");Mr(e)}))}function Xi(e,t,n){var r=ae(e.text,t+n,n);return r<0||r>e.text.length?null:r}function _i(e,t,n){var r=Xi(e,t.ch,n);return null==r?null:new et(t.line,r,n<0?"after":"before")}function $i(e,t,n,r,a){if(e){"rtl"==t.doc.direction&&(a=-a);var i=ce(n,t.doc.direction);if(i){var o,l=a<0?Y(i):i[0],s=a<0==(1==l.level)?"after":"before";if(l.level>0||"rtl"==t.doc.direction){var c=Tn(t,n);o=a<0?n.text.length-1:0;var u=Dn(t,c,o).top;o=ie((function(e){return Dn(t,c,e).top==u}),a<0==(1==l.level)?l.from:l.to-1,o),"before"==s&&(o=Xi(n,o,1))}else o=a<0?l.to:l.from;return new et(r,o,s)}}return new et(r,a<0?n.text.length:0,a<0?"before":"after")}Wi.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Wi.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Wi.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Wi.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Wi.default=b?Wi.macDefault:Wi.pcDefault;var eo={selectAll:li,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),W)},killLine:function(e){return qi(e,(function(t){if(t.empty()){var n=Ve(e.doc,t.head.line).text.length;return t.head.ch==n&&t.head.line<e.lastLine()?{from:t.head,to:et(t.head.line+1,0)}:{from:t.head,to:et(t.head.line,n)}}return{from:t.from(),to:t.to()}}))},deleteLine:function(e){return qi(e,(function(t){return{from:et(t.from().line,0),to:lt(e.doc,et(t.to().line+1,0))}}))},delLineLeft:function(e){return qi(e,(function(e){return{from:et(e.from().line,0),to:e.from()}}))},delWrappedLineLeft:function(e){return qi(e,(function(t){var n=e.charCoords(t.head,"div").top+5;return{from:e.coordsChar({left:0,top:n},"div"),to:t.from()}}))},delWrappedLineRight:function(e){return qi(e,(function(t){var n=e.charCoords(t.head,"div").top+5,r=e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:n},"div");return{from:t.from(),to:r}}))},undo:function(e){return e.undo()},redo:function(e){return e.redo()},undoSelection:function(e){return e.undoSelection()},redoSelection:function(e){return e.redoSelection()},goDocStart:function(e){return e.extendSelection(et(e.firstLine(),0))},goDocEnd:function(e){return e.extendSelection(et(e.lastLine()))},goLineStart:function(e){return e.extendSelectionsBy((function(t){return to(e,t.head.line)}),{origin:"+move",bias:1})},goLineStartSmart:function(e){return e.extendSelectionsBy((function(t){return no(e,t.head)}),{origin:"+move",bias:1})},goLineEnd:function(e){return e.extendSelectionsBy((function(t){return function(e,t){var n=Ve(e.doc,t),r=function(e){for(var t;t=Lt(e);)e=t.find(1,!0).line;return e}(n);return r!=n&&(t=qe(r)),$i(!0,e,n,t,-1)}(e,t.head.line)}),{origin:"+move",bias:-1})},goLineRight:function(e){return e.extendSelectionsBy((function(t){var n=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:e.display.lineDiv.offsetWidth+100,top:n},"div")}),J)},goLineLeft:function(e){return e.extendSelectionsBy((function(t){var n=e.cursorCoords(t.head,"div").top+5;return e.coordsChar({left:0,top:n},"div")}),J)},goLineLeftSmart:function(e){return e.extendSelectionsBy((function(t){var n=e.cursorCoords(t.head,"div").top+5,r=e.coordsChar({left:0,top:n},"div");return r.ch<e.getLine(r.line).search(/\S/)?no(e,t.head):r}),J)},goLineUp:function(e){return e.moveV(-1,"line")},goLineDown:function(e){return e.moveV(1,"line")},goPageUp:function(e){return e.moveV(-1,"page")},goPageDown:function(e){return e.moveV(1,"page")},goCharLeft:function(e){return e.moveH(-1,"char")},goCharRight:function(e){return e.moveH(1,"char")},goColumnLeft:function(e){return e.moveH(-1,"column")},goColumnRight:function(e){return e.moveH(1,"column")},goWordLeft:function(e){return e.moveH(-1,"word")},goGroupRight:function(e){return e.moveH(1,"group")},goGroupLeft:function(e){return e.moveH(-1,"group")},goWordRight:function(e){return e.moveH(1,"word")},delCharBefore:function(e){return e.deleteH(-1,"codepoint")},delCharAfter:function(e){return e.deleteH(1,"char")},delWordBefore:function(e){return e.deleteH(-1,"word")},delWordAfter:function(e){return e.deleteH(1,"word")},delGroupBefore:function(e){return e.deleteH(-1,"group")},delGroupAfter:function(e){return e.deleteH(1,"group")},indentAuto:function(e){return e.indentSelection("smart")},indentMore:function(e){return e.indentSelection("add")},indentLess:function(e){return e.indentSelection("subtract")},insertTab:function(e){return e.replaceSelection("\t")},insertSoftTab:function(e){for(var t=[],n=e.listSelections(),r=e.options.tabSize,a=0;a<n.length;a++){var i=n[a].from(),o=K(e.getLine(i.line),i.ch,r);t.push(G(r-o%r))}e.replaceSelections(t)},defaultTab:function(e){e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertTab")},transposeChars:function(e){return $r(e,(function(){for(var t=e.listSelections(),n=[],r=0;r<t.length;r++)if(t[r].empty()){var a=t[r].head,i=Ve(e.doc,a.line).text;if(i)if(a.ch==i.length&&(a=new et(a.line,a.ch-1)),a.ch>0)a=new et(a.line,a.ch+1),e.replaceRange(i.charAt(a.ch-1)+i.charAt(a.ch-2),et(a.line,a.ch-2),a,"+transpose");else if(a.line>e.doc.first){var o=Ve(e.doc,a.line-1).text;o&&(a=new et(a.line,1),e.replaceRange(i.charAt(0)+e.doc.lineSeparator()+o.charAt(o.length-1),et(a.line-1,o.length-1),a,"+transpose"))}n.push(new Aa(a,a))}e.setSelections(n)}))},newlineAndIndent:function(e){return $r(e,(function(){for(var t=e.listSelections(),n=t.length-1;n>=0;n--)e.replaceRange(e.doc.lineSeparator(),t[n].anchor,t[n].head,"+input");t=e.listSelections();for(var r=0;r<t.length;r++)e.indentLine(t[r].from().line,null,!0);Mr(e)}))},openLine:function(e){return e.replaceSelection("\n","start")},toggleOverwrite:function(e){return e.toggleOverwrite()}};function to(e,t){var n=Ve(e.doc,t),r=Kt(n);return r!=n&&(t=qe(r)),$i(!0,e,r,t,1)}function no(e,t){var n=to(e,t.line),r=Ve(e.doc,n.line),a=ce(r,e.doc.direction);if(!a||0==a[0].level){var i=Math.max(n.ch,r.text.search(/\S/)),o=t.line==n.line&&t.ch<=i&&t.ch;return et(n.line,o?0:i,n.sticky)}return n}function ro(e,t,n){if("string"==typeof t&&!(t=eo[t]))return!1;e.display.input.ensurePolled();var r=e.display.shift,a=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),n&&(e.display.shift=!1),a=t(e)!=Q}finally{e.display.shift=r,e.state.suppressEdits=!1}return a}var ao=new F;function io(e,t,n,r){var a=e.state.keySeq;if(a){if(Vi(t))return"handled";if(/\'$/.test(t)?e.state.keySeq=null:ao.set(50,(function(){e.state.keySeq==a&&(e.state.keySeq=null,e.display.input.reset())})),oo(e,a+" "+t,n,r))return!0}return oo(e,t,n,r)}function oo(e,t,n,r){var a=function(e,t,n){for(var r=0;r<e.state.keyMaps.length;r++){var a=Ui(t,e.state.keyMaps[r],n,e);if(a)return a}return e.options.extraKeys&&Ui(t,e.options.extraKeys,n,e)||Ui(t,e.options.keyMap,n,e)}(e,t,r);return"multi"==a&&(e.state.keySeq=t),"handled"==a&&sn(e,"keyHandled",e,t,n),"handled"!=a&&"multi"!=a||(ye(n),Er(e)),!!a}function lo(e,t){var n=Yi(t,!0);return!!n&&(t.shiftKey&&!e.state.keySeq?io(e,"Shift-"+n,t,(function(t){return ro(e,t,!0)}))||io(e,n,t,(function(t){if("string"==typeof t?/^go[A-Z]/.test(t):t.motion)return ro(e,t)})):io(e,n,t,(function(t){return ro(e,t)})))}var so=null;function co(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField()||(t.curOp.focus=T(),me(t,e)))){o&&l<11&&27==e.keyCode&&(e.returnValue=!1);var r=e.keyCode;t.display.shift=16==r||e.shiftKey;var a=lo(t,e);d&&(so=a?r:null,a||88!=r||De||!(b?e.metaKey:e.ctrlKey)||t.replaceSelection("",null,"cut")),n&&!b&&!a&&46==r&&e.shiftKey&&!e.ctrlKey&&document.execCommand&&document.execCommand("cut"),18!=r||/\bCodeMirror-crosshair\b/.test(t.display.lineDiv.className)||function(e){var t=e.display.lineDiv;function n(e){18!=e.keyCode&&e.altKey||(w(t,"CodeMirror-crosshair"),pe(document,"keyup",n),pe(document,"mouseover",n))}D(t,"CodeMirror-crosshair"),de(document,"keyup",n),de(document,"mouseover",n)}(t)}}function uo(e){16==e.keyCode&&(this.doc.sel.shift=!1),me(this,e)}function fo(e){var t=this;if(!(e.target&&e.target!=t.display.input.getField()||Cn(t.display,e)||me(t,e)||e.ctrlKey&&!e.altKey||b&&e.metaKey)){var n=e.keyCode,r=e.charCode;if(d&&n==so)return so=null,void ye(e);if(!d||e.which&&!(e.which<10)||!lo(t,e)){var a=String.fromCharCode(null==r?n:r);"\b"!=a&&(function(e,t,n){return io(e,"'"+n+"'",t,(function(t){return ro(e,t,!0)}))}(t,e,a)||t.display.input.onKeyPress(e))}}}var po,ho,mo=function(e,t,n){this.time=e,this.pos=t,this.button=n};function vo(e){var t=this,n=t.display;if(!(me(t,e)||n.activeTouch&&n.input.supportsTouch()))if(n.input.ensurePolled(),n.shift=e.shiftKey,Cn(n,e))s||(n.scroller.draggable=!1,setTimeout((function(){return n.scroller.draggable=!0}),100));else if(!yo(t,e)){var r=cr(t,e),a=Oe(e),i=r?function(e,t){var n=+new Date;return ho&&ho.compare(n,e,t)?(po=ho=null,"triple"):po&&po.compare(n,e,t)?(ho=new mo(n,e,t),po=null,"double"):(po=new mo(n,e,t),ho=null,"single")}(r,a):"single";window.focus(),1==a&&t.state.selectingText&&t.state.selectingText(e),r&&function(e,t,n,r,a){var i="Click";return"double"==r?i="Double"+i:"triple"==r&&(i="Triple"+i),io(e,Gi(i=(1==t?"Left":2==t?"Middle":"Right")+i,a),a,(function(t){if("string"==typeof t&&(t=eo[t]),!t)return!1;var r=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),r=t(e,n)!=Q}finally{e.state.suppressEdits=!1}return r}))}(t,a,r,i,e)||(1==a?r?function(e,t,n,r){o?setTimeout(B(Cr,e),0):e.curOp.focus=T();var a,i=function(e,t,n){var r=e.getOption("configureMouse"),a=r?r(e,t,n):{};if(null==a.unit){var i=y?n.shiftKey&&n.metaKey:n.altKey;a.unit=i?"rectangle":"single"==t?"char":"double"==t?"word":"line"}return(null==a.extend||e.doc.extend)&&(a.extend=e.doc.extend||n.shiftKey),null==a.addNew&&(a.addNew=b?n.metaKey:n.ctrlKey),null==a.moveOnDrag&&(a.moveOnDrag=!(b?n.altKey:n.ctrlKey)),a}(e,n,r),c=e.doc.sel;e.options.dragDrop&&Se&&!e.isReadOnly()&&"single"==n&&(a=c.contains(t))>-1&&(tt((a=c.ranges[a]).from(),t)<0||t.xRel>0)&&(tt(a.to(),t)>0||t.xRel<0)?function(e,t,n,r){var a=e.display,i=!1,c=ea(e,(function(t){s&&(a.scroller.draggable=!1),e.state.draggingText=!1,pe(a.wrapper.ownerDocument,"mouseup",c),pe(a.wrapper.ownerDocument,"mousemove",u),pe(a.scroller,"dragstart",d),pe(a.scroller,"drop",c),i||(ye(t),r.addNew||Ya(e.doc,n,null,null,r.extend),s&&!f||o&&9==l?setTimeout((function(){a.wrapper.ownerDocument.body.focus({preventScroll:!0}),a.input.focus()}),20):a.input.focus())})),u=function(e){i=i||Math.abs(t.clientX-e.clientX)+Math.abs(t.clientY-e.clientY)>=10},d=function(){return i=!0};s&&(a.scroller.draggable=!0),e.state.draggingText=c,c.copy=!r.moveOnDrag,a.scroller.dragDrop&&a.scroller.dragDrop(),de(a.wrapper.ownerDocument,"mouseup",c),de(a.wrapper.ownerDocument,"mousemove",u),de(a.scroller,"dragstart",d),de(a.scroller,"drop",c),Ar(e),setTimeout((function(){return a.input.focus()}),20)}(e,r,t,i):function(e,t,n,r){var a=e.display,i=e.doc;ye(t);var o,l,s=i.sel,c=s.ranges;if(r.addNew&&!r.extend?(l=i.sel.contains(n),o=l>-1?c[l]:new Aa(n,n)):(o=i.sel.primary(),l=i.sel.primIndex),"rectangle"==r.unit)r.addNew||(o=new Aa(n,n)),n=cr(e,t,!0,!0),l=-1;else{var u=go(e,n,r.unit);o=r.extend?Ga(o,u.anchor,u.head,r.extend):u}r.addNew?-1==l?(l=c.length,$a(i,Oa(e,c.concat([o]),l),{scroll:!1,origin:"*mouse"})):c.length>1&&c[l].empty()&&"char"==r.unit&&!r.extend?($a(i,Oa(e,c.slice(0,l).concat(c.slice(l+1)),0),{scroll:!1,origin:"*mouse"}),s=i.sel):qa(i,l,o,H):(l=0,$a(i,new Ca([o],0),H),s=i.sel);var d=n;function f(t){if(0!=tt(d,t))if(d=t,"rectangle"==r.unit){for(var a=[],c=e.options.tabSize,u=K(Ve(i,n.line).text,n.ch,c),f=K(Ve(i,t.line).text,t.ch,c),p=Math.min(u,f),h=Math.max(u,f),m=Math.min(n.line,t.line),v=Math.min(e.lastLine(),Math.max(n.line,t.line));m<=v;m++){var g=Ve(i,m).text,b=U(g,p,c);p==h?a.push(new Aa(et(m,b),et(m,b))):g.length>b&&a.push(new Aa(et(m,b),et(m,U(g,h,c))))}a.length||a.push(new Aa(n,n)),$a(i,Oa(e,s.ranges.slice(0,l).concat(a),l),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var y,x=o,E=go(e,t,r.unit),C=x.anchor;tt(E.anchor,C)>0?(y=E.head,C=it(x.from(),E.anchor)):(y=E.anchor,C=at(x.to(),E.head));var A=s.ranges.slice(0);A[l]=function(e,t){var n=t.anchor,r=t.head,a=Ve(e.doc,n.line);if(0==tt(n,r)&&n.sticky==r.sticky)return t;var i=ce(a);if(!i)return t;var o=le(i,n.ch,n.sticky),l=i[o];if(l.from!=n.ch&&l.to!=n.ch)return t;var s,c=o+(l.from==n.ch==(1!=l.level)?0:1);if(0==c||c==i.length)return t;if(r.line!=n.line)s=(r.line-n.line)*("ltr"==e.doc.direction?1:-1)>0;else{var u=le(i,r.ch,r.sticky),d=u-o||(r.ch-n.ch)*(1==l.level?-1:1);s=u==c-1||u==c?d<0:d>0}var f=i[c+(s?-1:0)],p=s==(1==f.level),h=p?f.from:f.to,m=p?"after":"before";return n.ch==h&&n.sticky==m?t:new Aa(new et(n.line,h,m),r)}(e,new Aa(lt(i,C),y)),$a(i,Oa(e,A,l),H)}}var p=a.wrapper.getBoundingClientRect(),h=0;function m(t){e.state.selectingText=!1,h=1/0,t&&(ye(t),a.input.focus()),pe(a.wrapper.ownerDocument,"mousemove",v),pe(a.wrapper.ownerDocument,"mouseup",g),i.history.lastSelOrigin=null}var v=ea(e,(function(t){0!==t.buttons&&Oe(t)?function t(n){var o=++h,l=cr(e,n,!0,"rectangle"==r.unit);if(l)if(0!=tt(l,d)){e.curOp.focus=T(),f(l);var s=jr(a,i);(l.line>=s.to||l.line<s.from)&&setTimeout(ea(e,(function(){h==o&&t(n)})),150)}else{var c=n.clientY<p.top?-20:n.clientY>p.bottom?20:0;c&&setTimeout(ea(e,(function(){h==o&&(a.scroller.scrollTop+=c,t(n))})),50)}}(t):m(t)})),g=ea(e,m);e.state.selectingText=g,de(a.wrapper.ownerDocument,"mousemove",v),de(a.wrapper.ownerDocument,"mouseup",g)}(e,r,t,i)}(t,r,i,e):Ae(e)==n.scroller&&ye(e):2==a?(r&&Ya(t.doc,r),setTimeout((function(){return n.input.focus()}),20)):3==a&&(A?t.display.input.onContextMenu(e):Ar(t)))}}function go(e,t,n){if("char"==n)return new Aa(t,t);if("word"==n)return e.findWordAt(t);if("line"==n)return new Aa(et(t.line,0),lt(e.doc,et(t.line+1,0)));var r=n(e,t);return new Aa(r.from,r.to)}function bo(e,t,n,r){var a,i;if(t.touches)a=t.touches[0].clientX,i=t.touches[0].clientY;else try{a=t.clientX,i=t.clientY}catch(e){return!1}if(a>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;r&&ye(t);var o=e.display,l=o.lineDiv.getBoundingClientRect();if(i>l.bottom||!ge(e,n))return Ee(t);i-=l.top-o.viewOffset;for(var s=0;s<e.display.gutterSpecs.length;++s){var c=o.gutters.childNodes[s];if(c&&c.getBoundingClientRect().right>=a)return he(e,n,e,Xe(e.doc,i),e.display.gutterSpecs[s].className,t),Ee(t)}}function yo(e,t){return bo(e,t,"gutterClick",!0)}function xo(e,t){Cn(e.display,t)||function(e,t){return!!ge(e,"gutterContextMenu")&&bo(e,t,"gutterContextMenu",!1)}(e,t)||me(e,t,"contextmenu")||A||e.display.input.onContextMenu(t)}function Eo(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),zn(e)}mo.prototype.compare=function(e,t,n){return this.time+400>e&&0==tt(t,this.pos)&&n==this.button};var Co={toString:function(){return"CodeMirror.Init"}},Ao={},Oo={};function ko(e,t,n){if(!t!=!(n&&n!=Co)){var r=e.display.dragFunctions,a=t?de:pe;a(e.display.scroller,"dragstart",r.start),a(e.display.scroller,"dragenter",r.enter),a(e.display.scroller,"dragover",r.over),a(e.display.scroller,"dragleave",r.leave),a(e.display.scroller,"drop",r.drop)}}function wo(e){e.options.lineWrapping?(D(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(w(e.display.wrapper,"CodeMirror-wrap"),Ut(e)),sr(e),dr(e),zn(e),setTimeout((function(){return Qr(e)}),100)}function So(e,t){var n=this;if(!(this instanceof So))return new So(e,t);this.options=t=t?P(t):{},P(Ao,t,!1);var r=t.value;"string"==typeof r?r=new Ii(r,t.mode,null,t.lineSeparator,t.direction):t.mode&&(r.modeOption=t.mode),this.doc=r;var a=new So.inputStyles[t.inputStyle](this),i=this.display=new va(e,r,a,t);for(var c in i.wrapper.CodeMirror=this,Eo(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Jr(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new F,keySeq:null,specialChars:null},t.autofocus&&!g&&i.input.focus(),o&&l<11&&setTimeout((function(){return n.display.input.reset(!0)}),20),function(e){var t=e.display;de(t.scroller,"mousedown",ea(e,vo)),de(t.scroller,"dblclick",o&&l<11?ea(e,(function(t){if(!me(e,t)){var n=cr(e,t);if(n&&!yo(e,t)&&!Cn(e.display,t)){ye(t);var r=e.findWordAt(n);Ya(e.doc,r.anchor,r.head)}}})):function(t){return me(e,t)||ye(t)}),de(t.scroller,"contextmenu",(function(t){return xo(e,t)})),de(t.input.getField(),"contextmenu",(function(n){t.scroller.contains(n.target)||xo(e,n)}));var n,r={end:0};function a(){t.activeTouch&&(n=setTimeout((function(){return t.activeTouch=null}),1e3),(r=t.activeTouch).end=+new Date)}function i(e,t){if(null==t.left)return!0;var n=t.left-e.left,r=t.top-e.top;return n*n+r*r>400}de(t.scroller,"touchstart",(function(a){if(!me(e,a)&&!function(e){if(1!=e.touches.length)return!1;var t=e.touches[0];return t.radiusX<=1&&t.radiusY<=1}(a)&&!yo(e,a)){t.input.ensurePolled(),clearTimeout(n);var i=+new Date;t.activeTouch={start:i,moved:!1,prev:i-r.end<=300?r:null},1==a.touches.length&&(t.activeTouch.left=a.touches[0].pageX,t.activeTouch.top=a.touches[0].pageY)}})),de(t.scroller,"touchmove",(function(){t.activeTouch&&(t.activeTouch.moved=!0)})),de(t.scroller,"touchend",(function(n){var r=t.activeTouch;if(r&&!Cn(t,n)&&null!=r.left&&!r.moved&&new Date-r.start<300){var o,l=e.coordsChar(t.activeTouch,"page");o=!r.prev||i(r,r.prev)?new Aa(l,l):!r.prev.prev||i(r,r.prev.prev)?e.findWordAt(l):new Aa(et(l.line,0),lt(e.doc,et(l.line+1,0))),e.setSelection(o.anchor,o.head),e.focus(),ye(n)}a()})),de(t.scroller,"touchcancel",a),de(t.scroller,"scroll",(function(){t.scroller.clientHeight&&(Lr(e,t.scroller.scrollTop),Pr(e,t.scroller.scrollLeft,!0),he(e,"scroll",e))})),de(t.scroller,"mousewheel",(function(t){return Ea(e,t)})),de(t.scroller,"DOMMouseScroll",(function(t){return Ea(e,t)})),de(t.wrapper,"scroll",(function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0})),t.dragFunctions={enter:function(t){me(e,t)||Ce(t)},over:function(t){me(e,t)||(function(e,t){var n=cr(e,t);if(n){var r=document.createDocumentFragment();br(e,n,r),e.display.dragCursor||(e.display.dragCursor=N("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),e.display.lineSpace.insertBefore(e.display.dragCursor,e.display.cursorDiv)),j(e.display.dragCursor,r)}}(e,t),Ce(t))},start:function(t){return function(e,t){if(o&&(!e.state.draggingText||+new Date-Mi<100))Ce(t);else if(!me(e,t)&&!Cn(e.display,t)&&(t.dataTransfer.setData("Text",e.getSelection()),t.dataTransfer.effectAllowed="copyMove",t.dataTransfer.setDragImage&&!f)){var n=N("img",null,null,"position: fixed; left: 0; top: 0;");n.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",d&&(n.width=n.height=1,e.display.wrapper.appendChild(n),n._top=n.offsetTop),t.dataTransfer.setDragImage(n,0,0),d&&n.parentNode.removeChild(n)}}(e,t)},drop:ea(e,Ti),leave:function(t){me(e,t)||Di(e)}};var s=t.input.getField();de(s,"keyup",(function(t){return uo.call(e,t)})),de(s,"keydown",ea(e,co)),de(s,"keypress",ea(e,fo)),de(s,"focus",(function(t){return Or(e,t)})),de(s,"blur",(function(t){return kr(e,t)}))}(this),Bi(),Vr(this),this.curOp.forceUpdate=!0,La(this,r),t.autofocus&&!g||this.hasFocus()?setTimeout((function(){n.hasFocus()&&!n.state.focused&&Or(n)}),20):kr(this),Oo)Oo.hasOwnProperty(c)&&Oo[c](this,t[c],Co);fa(this),t.finishInit&&t.finishInit(this);for(var u=0;u<jo.length;++u)jo[u](this);Gr(this),s&&t.lineWrapping&&"optimizelegibility"==getComputedStyle(i.lineDiv).textRendering&&(i.lineDiv.style.textRendering="auto")}So.defaults=Ao,So.optionHandlers=Oo;var jo=[];function No(e,t,n,r){var a,i=e.doc;null==n&&(n="add"),"smart"==n&&(i.mode.indent?a=pt(e,t).state:n="prev");var o=e.options.tabSize,l=Ve(i,t),s=K(l.text,null,o);l.stateAfter&&(l.stateAfter=null);var c,u=l.text.match(/^\s*/)[0];if(r||/\S/.test(l.text)){if("smart"==n&&((c=i.mode.indent(a,l.text.slice(u.length),l.text))==Q||c>150)){if(!r)return;n="prev"}}else c=0,n="not";"prev"==n?c=t>i.first?K(Ve(i,t-1).text,null,o):0:"add"==n?c=s+e.options.indentUnit:"subtract"==n?c=s-e.options.indentUnit:"number"==typeof n&&(c=s+n),c=Math.max(0,c);var d="",f=0;if(e.options.indentWithTabs)for(var p=Math.floor(c/o);p;--p)f+=o,d+="\t";if(f<c&&(d+=G(c-f)),d!=u)return hi(i,d,et(t,0),et(t,u.length),"+input"),l.stateAfter=null,!0;for(var h=0;h<i.sel.ranges.length;h++){var m=i.sel.ranges[h];if(m.head.line==t&&m.head.ch<u.length){var v=et(t,u.length);qa(i,h,new Aa(v,v));break}}}So.defineInitHook=function(e){return jo.push(e)};var Io=null;function Mo(e){Io=e}function To(e,t,n,r,a){var i=e.doc;e.display.shift=!1,r||(r=i.sel);var o=+new Date-200,l="paste"==a||e.state.pasteIncoming>o,s=Me(t),c=null;if(l&&r.ranges.length>1)if(Io&&Io.text.join("\n")==t){if(r.ranges.length%Io.text.length==0){c=[];for(var u=0;u<Io.text.length;u++)c.push(i.splitLines(Io.text[u]))}}else s.length==r.ranges.length&&e.options.pasteLinesPerSelection&&(c=Z(s,(function(e){return[e]})));for(var d=e.curOp.updateInput,f=r.ranges.length-1;f>=0;f--){var p=r.ranges[f],h=p.from(),m=p.to();p.empty()&&(n&&n>0?h=et(h.line,h.ch-n):e.state.overwrite&&!l?m=et(m.line,Math.min(Ve(i,m.line).text.length,m.ch+Y(s).length)):l&&Io&&Io.lineWise&&Io.text.join("\n")==s.join("\n")&&(h=m=et(h.line,0)));var v={from:h,to:m,text:c?c[f%c.length]:s,origin:a||(l?"paste":e.state.cutIncoming>o?"cut":"+input")};ci(e.doc,v),sn(e,"inputRead",e,v)}t&&!l&&Ro(e,t),Mr(e),e.curOp.updateInput<2&&(e.curOp.updateInput=d),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function Do(e,t){var n=e.clipboardData&&e.clipboardData.getData("Text");if(n)return e.preventDefault(),t.isReadOnly()||t.options.disableInput||$r(t,(function(){return To(t,n,0,null,"paste")})),!0}function Ro(e,t){if(e.options.electricChars&&e.options.smartIndent)for(var n=e.doc.sel,r=n.ranges.length-1;r>=0;r--){var a=n.ranges[r];if(!(a.head.ch>100||r&&n.ranges[r-1].head.line==a.head.line)){var i=e.getModeAt(a.head),o=!1;if(i.electricChars){for(var l=0;l<i.electricChars.length;l++)if(t.indexOf(i.electricChars.charAt(l))>-1){o=No(e,a.head.line,"smart");break}}else i.electricInput&&i.electricInput.test(Ve(e.doc,a.head.line).text.slice(0,a.head.ch))&&(o=No(e,a.head.line,"smart"));o&&sn(e,"electricInput",e,a.head.line)}}}function Lo(e){for(var t=[],n=[],r=0;r<e.doc.sel.ranges.length;r++){var a=e.doc.sel.ranges[r].head.line,i={anchor:et(a,0),head:et(a+1,0)};n.push(i),t.push(e.getRange(i.anchor,i.head))}return{text:t,ranges:n}}function Bo(e,t,n,r){e.setAttribute("autocorrect",n?"":"off"),e.setAttribute("autocapitalize",r?"":"off"),e.setAttribute("spellcheck",!!t)}function Po(){var e=N("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),t=N("div",[e],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return s?e.style.width="1000px":e.setAttribute("wrap","off"),m&&(e.style.border="1px solid black"),Bo(e),t}function Ko(e,t,n,r,a){var i=t,o=n,l=Ve(e,t.line),s=a&&"rtl"==e.direction?-n:n;function c(i){var o,c;if("codepoint"==r){var u=l.text.charCodeAt(t.ch+(r>0?0:-1));o=isNaN(u)?null:new et(t.line,Math.max(0,Math.min(l.text.length,t.ch+n*(u>=55296&&u<56320?2:1))),-n)}else o=a?function(e,t,n,r){var a=ce(t,e.doc.direction);if(!a)return _i(t,n,r);n.ch>=t.text.length?(n.ch=t.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var i=le(a,n.ch,n.sticky),o=a[i];if("ltr"==e.doc.direction&&o.level%2==0&&(r>0?o.to>n.ch:o.from<n.ch))return _i(t,n,r);var l,s=function(e,n){return Xi(t,e instanceof et?e.ch:e,n)},c=function(n){return e.options.lineWrapping?(l=l||Tn(e,t),_n(e,t,l,n)):{begin:0,end:t.text.length}},u=c("before"==n.sticky?s(n,-1):n.ch);if("rtl"==e.doc.direction||1==o.level){var d=1==o.level==r<0,f=s(n,d?1:-1);if(null!=f&&(d?f<=o.to&&f<=u.end:f>=o.from&&f>=u.begin)){var p=d?"before":"after";return new et(n.line,f,p)}}var h=function(e,t,r){for(var i=function(e,t){return t?new et(n.line,s(e,1),"before"):new et(n.line,e,"after")};e>=0&&e<a.length;e+=t){var o=a[e],l=t>0==(1!=o.level),c=l?r.begin:s(r.end,-1);if(o.from<=c&&c<o.to)return i(c,l);if(c=l?o.from:s(o.to,-1),r.begin<=c&&c<r.end)return i(c,l)}},m=h(i+r,r,u);if(m)return m;var v=r>0?u.end:s(u.begin,-1);return null==v||r>0&&v==t.text.length||!(m=h(r>0?0:a.length-1,r,c(v)))?null:m}(e.cm,l,t,n):_i(l,t,n);if(null==o){if(i||(c=t.line+s)<e.first||c>=e.first+e.size||(t=new et(c,t.ch,t.sticky),!(l=Ve(e,c))))return!1;t=$i(a,e.cm,l,t.line,s)}else t=o;return!0}if("char"==r||"codepoint"==r)c();else if("column"==r)c(!0);else if("word"==r||"group"==r)for(var u=null,d="group"==r,f=e.cm&&e.cm.getHelper(t,"wordChars"),p=!0;!(n<0)||c(!p);p=!1){var h=l.text.charAt(t.ch)||"\n",m=ee(h,f)?"w":d&&"\n"==h?"n":!d||/\s/.test(h)?null:"p";if(!d||p||m||(m="s"),u&&u!=m){n<0&&(n=1,c(),t.sticky="after");break}if(m&&(u=m),n>0&&!c(!p))break}var v=ii(e,t,i,o,!0);return nt(i,v)&&(v.hitSide=!0),v}function Fo(e,t,n,r){var a,i,o=e.doc,l=t.left;if("page"==r){var s=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),c=Math.max(s-.5*rr(e.display),3);a=(n>0?t.bottom:t.top)+n*c}else"line"==r&&(a=n>0?t.bottom+3:t.top-3);for(;(i=qn(e,l,a)).outside;){if(n<0?a<=0:a>=o.height){i.hitSide=!0;break}a+=5*n}return i}var zo=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new F,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};function Qo(e,t){var n=Mn(e,t.line);if(!n||n.hidden)return null;var r=Ve(e.doc,t.line),a=Nn(n,r,t.line),i=ce(r,e.doc.direction),o="left";i&&(o=le(i,t.ch)%2?"right":"left");var l=Bn(a.map,t.ch,o);return l.offset="right"==l.collapse?l.end:l.start,l}function Wo(e,t){return t&&(e.bad=!0),e}function Ho(e,t,n){var r;if(t==e.display.lineDiv){if(!(r=e.display.lineDiv.childNodes[n]))return Wo(e.clipPos(et(e.display.viewTo-1)),!0);t=null,n=0}else for(r=t;;r=r.parentNode){if(!r||r==e.display.lineDiv)return null;if(r.parentNode&&r.parentNode==e.display.lineDiv)break}for(var a=0;a<e.display.view.length;a++){var i=e.display.view[a];if(i.node==r)return Jo(i,t,n)}}function Jo(e,t,n){var r=e.text.firstChild,a=!1;if(!t||!M(r,t))return Wo(et(qe(e.line),0),!0);if(t==r&&(a=!0,t=r.childNodes[n],n=0,!t)){var i=e.rest?Y(e.rest):e.line;return Wo(et(qe(i),i.text.length),a)}var o=3==t.nodeType?t:null,l=t;for(o||1!=t.childNodes.length||3!=t.firstChild.nodeType||(o=t.firstChild,n&&(n=o.nodeValue.length));l.parentNode!=r;)l=l.parentNode;var s=e.measure,c=s.maps;function u(t,n,r){for(var a=-1;a<(c?c.length:0);a++)for(var i=a<0?s.map:c[a],o=0;o<i.length;o+=3){var l=i[o+2];if(l==t||l==n){var u=qe(a<0?e.line:e.rest[a]),d=i[o]+r;return(r<0||l!=t)&&(d=i[o+(r?1:0)]),et(u,d)}}}var d=u(o,l,n);if(d)return Wo(d,a);for(var f=l.nextSibling,p=o?o.nodeValue.length-n:0;f;f=f.nextSibling){if(d=u(f,f.firstChild,0))return Wo(et(d.line,d.ch-p),a);p+=f.textContent.length}for(var h=l.previousSibling,m=n;h;h=h.previousSibling){if(d=u(h,h.firstChild,-1))return Wo(et(d.line,d.ch+m),a);m+=h.textContent.length}}zo.prototype.init=function(e){var t=this,n=this,r=n.cm,a=n.div=e.lineDiv;function i(e){for(var t=e.target;t;t=t.parentNode){if(t==a)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(t.className))break}return!1}function o(e){if(i(e)&&!me(r,e)){if(r.somethingSelected())Mo({lineWise:!1,text:r.getSelections()}),"cut"==e.type&&r.replaceSelection("",null,"cut");else{if(!r.options.lineWiseCopyCut)return;var t=Lo(r);Mo({lineWise:!0,text:t.text}),"cut"==e.type&&r.operation((function(){r.setSelections(t.ranges,0,W),r.replaceSelection("",null,"cut")}))}if(e.clipboardData){e.clipboardData.clearData();var o=Io.text.join("\n");if(e.clipboardData.setData("Text",o),e.clipboardData.getData("Text")==o)return void e.preventDefault()}var l=Po(),s=l.firstChild;r.display.lineSpace.insertBefore(l,r.display.lineSpace.firstChild),s.value=Io.text.join("\n");var c=document.activeElement;L(s),setTimeout((function(){r.display.lineSpace.removeChild(l),c.focus(),c==a&&n.showPrimarySelection()}),50)}}Bo(a,r.options.spellcheck,r.options.autocorrect,r.options.autocapitalize),de(a,"paste",(function(e){!i(e)||me(r,e)||Do(e,r)||l<=11&&setTimeout(ea(r,(function(){return t.updateFromDOM()})),20)})),de(a,"compositionstart",(function(e){t.composing={data:e.data,done:!1}})),de(a,"compositionupdate",(function(e){t.composing||(t.composing={data:e.data,done:!1})})),de(a,"compositionend",(function(e){t.composing&&(e.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)})),de(a,"touchstart",(function(){return n.forceCompositionEnd()})),de(a,"input",(function(){t.composing||t.readFromDOMSoon()})),de(a,"copy",o),de(a,"cut",o)},zo.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},zo.prototype.prepareSelection=function(){var e=gr(this.cm,!1);return e.focus=document.activeElement==this.div,e},zo.prototype.showSelection=function(e,t){e&&this.cm.display.view.length&&((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},zo.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},zo.prototype.showPrimarySelection=function(){var e=this.getSelection(),t=this.cm,r=t.doc.sel.primary(),a=r.from(),i=r.to();if(t.display.viewTo==t.display.viewFrom||a.line>=t.display.viewTo||i.line<t.display.viewFrom)e.removeAllRanges();else{var o=Ho(t,e.anchorNode,e.anchorOffset),l=Ho(t,e.focusNode,e.focusOffset);if(!o||o.bad||!l||l.bad||0!=tt(it(o,l),a)||0!=tt(at(o,l),i)){var s=t.display.view,c=a.line>=t.display.viewFrom&&Qo(t,a)||{node:s[0].measure.map[2],offset:0},u=i.line<t.display.viewTo&&Qo(t,i);if(!u){var d=s[s.length-1].measure,f=d.maps?d.maps[d.maps.length-1]:d.map;u={node:f[f.length-1],offset:f[f.length-2]-f[f.length-3]}}if(c&&u){var p,h=e.rangeCount&&e.getRangeAt(0);try{p=k(c.node,c.offset,u.offset,u.node)}catch(e){}p&&(!n&&t.state.focused?(e.collapse(c.node,c.offset),p.collapsed||(e.removeAllRanges(),e.addRange(p))):(e.removeAllRanges(),e.addRange(p)),h&&null==e.anchorNode?e.addRange(h):n&&this.startGracePeriod()),this.rememberSelection()}else e.removeAllRanges()}}},zo.prototype.startGracePeriod=function(){var e=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout((function(){e.gracePeriod=!1,e.selectionChanged()&&e.cm.operation((function(){return e.cm.curOp.selectionChanged=!0}))}),20)},zo.prototype.showMultipleSelections=function(e){j(this.cm.display.cursorDiv,e.cursors),j(this.cm.display.selectionDiv,e.selection)},zo.prototype.rememberSelection=function(){var e=this.getSelection();this.lastAnchorNode=e.anchorNode,this.lastAnchorOffset=e.anchorOffset,this.lastFocusNode=e.focusNode,this.lastFocusOffset=e.focusOffset},zo.prototype.selectionInEditor=function(){var e=this.getSelection();if(!e.rangeCount)return!1;var t=e.getRangeAt(0).commonAncestorContainer;return M(this.div,t)},zo.prototype.focus=function(){"nocursor"!=this.cm.options.readOnly&&(this.selectionInEditor()&&document.activeElement==this.div||this.showSelection(this.prepareSelection(),!0),this.div.focus())},zo.prototype.blur=function(){this.div.blur()},zo.prototype.getField=function(){return this.div},zo.prototype.supportsTouch=function(){return!0},zo.prototype.receivedFocus=function(){var e=this;this.selectionInEditor()?this.pollSelection():$r(this.cm,(function(){return e.cm.curOp.selectionChanged=!0})),this.polling.set(this.cm.options.pollInterval,(function t(){e.cm.state.focused&&(e.pollSelection(),e.polling.set(e.cm.options.pollInterval,t))}))},zo.prototype.selectionChanged=function(){var e=this.getSelection();return e.anchorNode!=this.lastAnchorNode||e.anchorOffset!=this.lastAnchorOffset||e.focusNode!=this.lastFocusNode||e.focusOffset!=this.lastFocusOffset},zo.prototype.pollSelection=function(){if(null==this.readDOMTimeout&&!this.gracePeriod&&this.selectionChanged()){var e=this.getSelection(),t=this.cm;if(v&&u&&this.cm.display.gutterSpecs.length&&function(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}(e.anchorNode))return this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),void this.focus();if(!this.composing){this.rememberSelection();var n=Ho(t,e.anchorNode,e.anchorOffset),r=Ho(t,e.focusNode,e.focusOffset);n&&r&&$r(t,(function(){$a(t.doc,ka(n,r),W),(n.bad||r.bad)&&(t.curOp.selectionChanged=!0)}))}}},zo.prototype.pollContent=function(){null!=this.readDOMTimeout&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var e,t,n,r=this.cm,a=r.display,i=r.doc.sel.primary(),o=i.from(),l=i.to();if(0==o.ch&&o.line>r.firstLine()&&(o=et(o.line-1,Ve(r.doc,o.line-1).length)),l.ch==Ve(r.doc,l.line).text.length&&l.line<r.lastLine()&&(l=et(l.line+1,0)),o.line<a.viewFrom||l.line>a.viewTo-1)return!1;o.line==a.viewFrom||0==(e=ur(r,o.line))?(t=qe(a.view[0].line),n=a.view[0].node):(t=qe(a.view[e].line),n=a.view[e-1].node.nextSibling);var s,c,u=ur(r,l.line);if(u==a.view.length-1?(s=a.viewTo-1,c=a.lineDiv.lastChild):(s=qe(a.view[u+1].line)-1,c=a.view[u+1].node.previousSibling),!n)return!1;for(var d=r.doc.splitLines(function(e,t,n,r,a){var i="",o=!1,l=e.doc.lineSeparator(),s=!1;function c(){o&&(i+=l,s&&(i+=l),o=s=!1)}function u(e){e&&(c(),i+=e)}function d(t){if(1==t.nodeType){var n=t.getAttribute("cm-text");if(n)return void u(n);var i,f=t.getAttribute("cm-marker");if(f){var p=e.findMarks(et(r,0),et(a+1,0),(v=+f,function(e){return e.id==v}));return void(p.length&&(i=p[0].find(0))&&u(Ge(e.doc,i.from,i.to).join(l)))}if("false"==t.getAttribute("contenteditable"))return;var h=/^(pre|div|p|li|table|br)$/i.test(t.nodeName);if(!/^br$/i.test(t.nodeName)&&0==t.textContent.length)return;h&&c();for(var m=0;m<t.childNodes.length;m++)d(t.childNodes[m]);/^(pre|p)$/i.test(t.nodeName)&&(s=!0),h&&(o=!0)}else 3==t.nodeType&&u(t.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "));var v}for(;d(t),t!=n;)t=t.nextSibling,s=!1;return i}(r,n,c,t,s)),f=Ge(r.doc,et(t,0),et(s,Ve(r.doc,s).text.length));d.length>1&&f.length>1;)if(Y(d)==Y(f))d.pop(),f.pop(),s--;else{if(d[0]!=f[0])break;d.shift(),f.shift(),t++}for(var p=0,h=0,m=d[0],v=f[0],g=Math.min(m.length,v.length);p<g&&m.charCodeAt(p)==v.charCodeAt(p);)++p;for(var b=Y(d),y=Y(f),x=Math.min(b.length-(1==d.length?p:0),y.length-(1==f.length?p:0));h<x&&b.charCodeAt(b.length-h-1)==y.charCodeAt(y.length-h-1);)++h;if(1==d.length&&1==f.length&&t==o.line)for(;p&&p>o.ch&&b.charCodeAt(b.length-h-1)==y.charCodeAt(y.length-h-1);)p--,h++;d[d.length-1]=b.slice(0,b.length-h).replace(/^\u200b+/,""),d[0]=d[0].slice(p).replace(/\u200b+$/,"");var E=et(t,p),C=et(s,f.length?Y(f).length-h:0);return d.length>1||d[0]||tt(E,C)?(hi(r.doc,d,E,C,"+input"),!0):void 0},zo.prototype.ensurePolled=function(){this.forceCompositionEnd()},zo.prototype.reset=function(){this.forceCompositionEnd()},zo.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},zo.prototype.readFromDOMSoon=function(){var e=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout((function(){if(e.readDOMTimeout=null,e.composing){if(!e.composing.done)return;e.composing=null}e.updateFromDOM()}),80))},zo.prototype.updateFromDOM=function(){var e=this;!this.cm.isReadOnly()&&this.pollContent()||$r(this.cm,(function(){return dr(e.cm)}))},zo.prototype.setUneditable=function(e){e.contentEditable="false"},zo.prototype.onKeyPress=function(e){0==e.charCode||this.composing||(e.preventDefault(),this.cm.isReadOnly()||ea(this.cm,To)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0))},zo.prototype.readOnlyChanged=function(e){this.div.contentEditable=String("nocursor"!=e)},zo.prototype.onContextMenu=function(){},zo.prototype.resetPosition=function(){},zo.prototype.needsContentAttribute=!0;var Uo=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new F,this.hasSelection=!1,this.composing=null};Uo.prototype.init=function(e){var t=this,n=this,r=this.cm;this.createField(e);var a=this.textarea;function i(e){if(!me(r,e)){if(r.somethingSelected())Mo({lineWise:!1,text:r.getSelections()});else{if(!r.options.lineWiseCopyCut)return;var t=Lo(r);Mo({lineWise:!0,text:t.text}),"cut"==e.type?r.setSelections(t.ranges,null,W):(n.prevInput="",a.value=t.text.join("\n"),L(a))}"cut"==e.type&&(r.state.cutIncoming=+new Date)}}e.wrapper.insertBefore(this.wrapper,e.wrapper.firstChild),m&&(a.style.width="0px"),de(a,"input",(function(){o&&l>=9&&t.hasSelection&&(t.hasSelection=null),n.poll()})),de(a,"paste",(function(e){me(r,e)||Do(e,r)||(r.state.pasteIncoming=+new Date,n.fastPoll())})),de(a,"cut",i),de(a,"copy",i),de(e.scroller,"paste",(function(t){if(!Cn(e,t)&&!me(r,t)){if(!a.dispatchEvent)return r.state.pasteIncoming=+new Date,void n.focus();var i=new Event("paste");i.clipboardData=t.clipboardData,a.dispatchEvent(i)}})),de(e.lineSpace,"selectstart",(function(t){Cn(e,t)||ye(t)})),de(a,"compositionstart",(function(){var e=r.getCursor("from");n.composing&&n.composing.range.clear(),n.composing={start:e,range:r.markText(e,r.getCursor("to"),{className:"CodeMirror-composing"})}})),de(a,"compositionend",(function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)}))},Uo.prototype.createField=function(e){this.wrapper=Po(),this.textarea=this.wrapper.firstChild},Uo.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},Uo.prototype.prepareSelection=function(){var e=this.cm,t=e.display,n=e.doc,r=gr(e);if(e.options.moveInputWithCursor){var a=Gn(e,n.sel.primary().head,"div"),i=t.wrapper.getBoundingClientRect(),o=t.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,a.top+o.top-i.top)),r.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,a.left+o.left-i.left))}return r},Uo.prototype.showSelection=function(e){var t=this.cm.display;j(t.cursorDiv,e.cursors),j(t.selectionDiv,e.selection),null!=e.teTop&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},Uo.prototype.reset=function(e){if(!this.contextMenuPending&&!this.composing){var t=this.cm;if(t.somethingSelected()){this.prevInput="";var n=t.getSelection();this.textarea.value=n,t.state.focused&&L(this.textarea),o&&l>=9&&(this.hasSelection=n)}else e||(this.prevInput=this.textarea.value="",o&&l>=9&&(this.hasSelection=null))}},Uo.prototype.getField=function(){return this.textarea},Uo.prototype.supportsTouch=function(){return!1},Uo.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!g||T()!=this.textarea))try{this.textarea.focus()}catch(e){}},Uo.prototype.blur=function(){this.textarea.blur()},Uo.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Uo.prototype.receivedFocus=function(){this.slowPoll()},Uo.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,(function(){e.poll(),e.cm.state.focused&&e.slowPoll()}))},Uo.prototype.fastPoll=function(){var e=!1,t=this;t.pollingFast=!0,t.polling.set(20,(function n(){t.poll()||e?(t.pollingFast=!1,t.slowPoll()):(e=!0,t.polling.set(60,n))}))},Uo.prototype.poll=function(){var e=this,t=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||!t.state.focused||Te(n)&&!r&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var a=n.value;if(a==r&&!t.somethingSelected())return!1;if(o&&l>=9&&this.hasSelection===a||b&&/[\uf700-\uf7ff]/.test(a))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var i=a.charCodeAt(0);if(8203!=i||r||(r=""),8666==i)return this.reset(),this.cm.execCommand("undo")}for(var s=0,c=Math.min(r.length,a.length);s<c&&r.charCodeAt(s)==a.charCodeAt(s);)++s;return $r(t,(function(){To(t,a.slice(s),r.length-s,null,e.composing?"*compose":null),a.length>1e3||a.indexOf("\n")>-1?n.value=e.prevInput="":e.prevInput=a,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))})),!0},Uo.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Uo.prototype.onKeyPress=function(){o&&l>=9&&(this.hasSelection=null),this.fastPoll()},Uo.prototype.onContextMenu=function(e){var t=this,n=t.cm,r=n.display,a=t.textarea;t.contextMenuPending&&t.contextMenuPending();var i=cr(n,e),c=r.scroller.scrollTop;if(i&&!d){n.options.resetSelectionOnContextMenu&&-1==n.doc.sel.contains(i)&&ea(n,$a)(n.doc,ka(i),W);var u,f=a.style.cssText,p=t.wrapper.style.cssText,h=t.wrapper.offsetParent.getBoundingClientRect();if(t.wrapper.style.cssText="position: static",a.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(e.clientY-h.top-5)+"px; left: "+(e.clientX-h.left-5)+"px;\n z-index: 1000; background: "+(o?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);",s&&(u=window.scrollY),r.input.focus(),s&&window.scrollTo(null,u),r.input.reset(),n.somethingSelected()||(a.value=t.prevInput=" "),t.contextMenuPending=g,r.selForContextMenu=n.doc.sel,clearTimeout(r.detectingSelectAll),o&&l>=9&&v(),A){Ce(e);var m=function(){pe(window,"mouseup",m),setTimeout(g,20)};de(window,"mouseup",m)}else setTimeout(g,50)}function v(){if(null!=a.selectionStart){var e=n.somethingSelected(),i=""+(e?a.value:"");a.value="⇚",a.value=i,t.prevInput=e?"":"",a.selectionStart=1,a.selectionEnd=i.length,r.selForContextMenu=n.doc.sel}}function g(){if(t.contextMenuPending==g&&(t.contextMenuPending=!1,t.wrapper.style.cssText=p,a.style.cssText=f,o&&l<9&&r.scrollbars.setScrollTop(r.scroller.scrollTop=c),null!=a.selectionStart)){(!o||o&&l<9)&&v();var e=0,i=function(){r.selForContextMenu==n.doc.sel&&0==a.selectionStart&&a.selectionEnd>0&&""==t.prevInput?ea(n,li)(n):e++<10?r.detectingSelectAll=setTimeout(i,500):(r.selForContextMenu=null,r.input.reset())};r.detectingSelectAll=setTimeout(i,200)}}},Uo.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled="nocursor"==e,this.textarea.readOnly=!!e},Uo.prototype.setUneditable=function(){},Uo.prototype.needsContentAttribute=!1,function(e){var t=e.optionHandlers;function n(n,r,a,i){e.defaults[n]=r,a&&(t[n]=i?function(e,t,n){n!=Co&&a(e,t,n)}:a)}e.defineOption=n,e.Init=Co,n("value","",(function(e,t){return e.setValue(t)}),!0),n("mode",null,(function(e,t){e.doc.modeOption=t,Ia(e)}),!0),n("indentUnit",2,Ia,!0),n("indentWithTabs",!1),n("smartIndent",!0),n("tabSize",4,(function(e){Ma(e),zn(e),dr(e)}),!0),n("lineSeparator",null,(function(e,t){if(e.doc.lineSep=t,t){var n=[],r=e.doc.first;e.doc.iter((function(e){for(var a=0;;){var i=e.text.indexOf(t,a);if(-1==i)break;a=i+t.length,n.push(et(r,i))}r++}));for(var a=n.length-1;a>=0;a--)hi(e.doc,t,n[a],et(n[a].line,n[a].ch+t.length))}})),n("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,(function(e,t,n){e.state.specialChars=new RegExp(t.source+(t.test("\t")?"":"|\t"),"g"),n!=Co&&e.refresh()})),n("specialCharPlaceholder",_t,(function(e){return e.refresh()}),!0),n("electricChars",!0),n("inputStyle",g?"contenteditable":"textarea",(function(){throw new Error("inputStyle can not (yet) be changed in a running editor")}),!0),n("spellcheck",!1,(function(e,t){return e.getInputField().spellcheck=t}),!0),n("autocorrect",!1,(function(e,t){return e.getInputField().autocorrect=t}),!0),n("autocapitalize",!1,(function(e,t){return e.getInputField().autocapitalize=t}),!0),n("rtlMoveVisually",!x),n("wholeLineUpdateBefore",!0),n("theme","default",(function(e){Eo(e),ma(e)}),!0),n("keyMap","default",(function(e,t,n){var r=Zi(t),a=n!=Co&&Zi(n);a&&a.detach&&a.detach(e,r),r.attach&&r.attach(e,a||null)})),n("extraKeys",null),n("configureMouse",null),n("lineWrapping",!1,wo,!0),n("gutters",[],(function(e,t){e.display.gutterSpecs=pa(t,e.options.lineNumbers),ma(e)}),!0),n("fixedGutter",!0,(function(e,t){e.display.gutters.style.left=t?or(e.display)+"px":"0",e.refresh()}),!0),n("coverGutterNextToScrollbar",!1,(function(e){return Qr(e)}),!0),n("scrollbarStyle","native",(function(e){Jr(e),Qr(e),e.display.scrollbars.setScrollTop(e.doc.scrollTop),e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)}),!0),n("lineNumbers",!1,(function(e,t){e.display.gutterSpecs=pa(e.options.gutters,t),ma(e)}),!0),n("firstLineNumber",1,ma,!0),n("lineNumberFormatter",(function(e){return e}),ma,!0),n("showCursorWhenSelecting",!1,vr,!0),n("resetSelectionOnContextMenu",!0),n("lineWiseCopyCut",!0),n("pasteLinesPerSelection",!0),n("selectionsMayTouch",!1),n("readOnly",!1,(function(e,t){"nocursor"==t&&(kr(e),e.display.input.blur()),e.display.input.readOnlyChanged(t)})),n("screenReaderLabel",null,(function(e,t){t=""===t?null:t,e.display.input.screenReaderLabelChanged(t)})),n("disableInput",!1,(function(e,t){t||e.display.input.reset()}),!0),n("dragDrop",!0,ko),n("allowDropFileTypes",null),n("cursorBlinkRate",530),n("cursorScrollMargin",0),n("cursorHeight",1,vr,!0),n("singleCursorHeightPerLine",!0,vr,!0),n("workTime",100),n("workDelay",100),n("flattenSpans",!0,Ma,!0),n("addModeClass",!1,Ma,!0),n("pollInterval",100),n("undoDepth",200,(function(e,t){return e.doc.history.undoDepth=t})),n("historyEventDelay",1250),n("viewportMargin",10,(function(e){return e.refresh()}),!0),n("maxHighlightLength",1e4,Ma,!0),n("moveInputWithCursor",!0,(function(e,t){t||e.display.input.resetPosition()})),n("tabindex",null,(function(e,t){return e.display.input.getField().tabIndex=t||""})),n("autofocus",null),n("direction","ltr",(function(e,t){return e.doc.setDirection(t)}),!0),n("phrases",null)}(So),function(e){var t=e.optionHandlers,n=e.helpers={};e.prototype={constructor:e,focus:function(){window.focus(),this.display.input.focus()},setOption:function(e,n){var r=this.options,a=r[e];r[e]==n&&"mode"!=e||(r[e]=n,t.hasOwnProperty(e)&&ea(this,t[e])(this,n,a),he(this,"optionChange",this,e))},getOption:function(e){return this.options[e]},getDoc:function(){return this.doc},addKeyMap:function(e,t){this.state.keyMaps[t?"push":"unshift"](Zi(e))},removeKeyMap:function(e){for(var t=this.state.keyMaps,n=0;n<t.length;++n)if(t[n]==e||t[n].name==e)return t.splice(n,1),!0},addOverlay:ta((function(t,n){var r=t.token?t:e.getMode(this.options,t);if(r.startState)throw new Error("Overlays may not be stateful.");!function(e,t,n){for(var r=0,a=n(t);r<e.length&&n(e[r])<=a;)r++;e.splice(r,0,t)}(this.state.overlays,{mode:r,modeSpec:t,opaque:n&&n.opaque,priority:n&&n.priority||0},(function(e){return e.priority})),this.state.modeGen++,dr(this)})),removeOverlay:ta((function(e){for(var t=this.state.overlays,n=0;n<t.length;++n){var r=t[n].modeSpec;if(r==e||"string"==typeof e&&r.name==e)return t.splice(n,1),this.state.modeGen++,void dr(this)}})),indentLine:ta((function(e,t,n){"string"!=typeof t&&"number"!=typeof t&&(t=null==t?this.options.smartIndent?"smart":"prev":t?"add":"subtract"),_e(this.doc,e)&&No(this,e,t,n)})),indentSelection:ta((function(e){for(var t=this.doc.sel.ranges,n=-1,r=0;r<t.length;r++){var a=t[r];if(a.empty())a.head.line>n&&(No(this,a.head.line,e,!0),n=a.head.line,r==this.doc.sel.primIndex&&Mr(this));else{var i=a.from(),o=a.to(),l=Math.max(n,i.line);n=Math.min(this.lastLine(),o.line-(o.ch?0:1))+1;for(var s=l;s<n;++s)No(this,s,e);var c=this.doc.sel.ranges;0==i.ch&&t.length==c.length&&c[r].from().ch>0&&qa(this.doc,r,new Aa(i,c[r].to()),W)}}})),getTokenAt:function(e,t){return bt(this,e,t)},getLineTokens:function(e,t){return bt(this,et(e),t,!0)},getTokenTypeAt:function(e){e=lt(this.doc,e);var t,n=ft(this,Ve(this.doc,e.line)),r=0,a=(n.length-1)/2,i=e.ch;if(0==i)t=n[2];else for(;;){var o=r+a>>1;if((o?n[2*o-1]:0)>=i)a=o;else{if(!(n[2*o+1]<i)){t=n[2*o+2];break}r=o+1}}var l=t?t.indexOf("overlay "):-1;return l<0?t:0==l?null:t.slice(0,l-1)},getModeAt:function(t){var n=this.doc.mode;return n.innerMode?e.innerMode(n,this.getTokenAt(t).state).mode:n},getHelper:function(e,t){return this.getHelpers(e,t)[0]},getHelpers:function(e,t){var r=[];if(!n.hasOwnProperty(t))return r;var a=n[t],i=this.getModeAt(e);if("string"==typeof i[t])a[i[t]]&&r.push(a[i[t]]);else if(i[t])for(var o=0;o<i[t].length;o++){var l=a[i[t][o]];l&&r.push(l)}else i.helperType&&a[i.helperType]?r.push(a[i.helperType]):a[i.name]&&r.push(a[i.name]);for(var s=0;s<a._global.length;s++){var c=a._global[s];c.pred(i,this)&&-1==z(r,c.val)&&r.push(c.val)}return r},getStateAfter:function(e,t){var n=this.doc;return pt(this,(e=ot(n,null==e?n.first+n.size-1:e))+1,t).state},cursorCoords:function(e,t){var n=this.doc.sel.primary();return Gn(this,null==e?n.head:"object"==typeof e?lt(this.doc,e):e?n.from():n.to(),t||"page")},charCoords:function(e,t){return Vn(this,lt(this.doc,e),t||"page")},coordsChar:function(e,t){return qn(this,(e=Un(this,e,t||"page")).left,e.top)},lineAtHeight:function(e,t){return e=Un(this,{top:e,left:0},t||"page").top,Xe(this.doc,e+this.display.viewOffset)},heightAtLine:function(e,t,n){var r,a=!1;if("number"==typeof e){var i=this.doc.first+this.doc.size-1;e<this.doc.first?e=this.doc.first:e>i&&(e=i,a=!0),r=Ve(this.doc,e)}else r=e;return Jn(this,r,{top:0,left:0},t||"page",n||a).top+(a?this.doc.height-Ht(r):0)},defaultTextHeight:function(){return rr(this.display)},defaultCharWidth:function(){return ar(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,n,r,a){var i,o,l,s=this.display,c=(e=Gn(this,lt(this.doc,e))).bottom,u=e.left;if(t.style.position="absolute",t.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(t),s.sizer.appendChild(t),"over"==r)c=e.top;else if("above"==r||"near"==r){var d=Math.max(s.wrapper.clientHeight,this.doc.height),f=Math.max(s.sizer.clientWidth,s.lineSpace.clientWidth);("above"==r||e.bottom+t.offsetHeight>d)&&e.top>t.offsetHeight?c=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=d&&(c=e.bottom),u+t.offsetWidth>f&&(u=f-t.offsetWidth)}t.style.top=c+"px",t.style.left=t.style.right="","right"==a?(u=s.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==a?u=0:"middle"==a&&(u=(s.sizer.clientWidth-t.offsetWidth)/2),t.style.left=u+"px"),n&&(i=this,o={left:u,top:c,right:u+t.offsetWidth,bottom:c+t.offsetHeight},null!=(l=Nr(i,o)).scrollTop&&Lr(i,l.scrollTop),null!=l.scrollLeft&&Pr(i,l.scrollLeft))},triggerOnKeyDown:ta(co),triggerOnKeyPress:ta(fo),triggerOnKeyUp:uo,triggerOnMouseDown:ta(vo),execCommand:function(e){if(eo.hasOwnProperty(e))return eo[e].call(null,this)},triggerElectric:ta((function(e){Ro(this,e)})),findPosH:function(e,t,n,r){var a=1;t<0&&(a=-1,t=-t);for(var i=lt(this.doc,e),o=0;o<t&&!(i=Ko(this.doc,i,a,n,r)).hitSide;++o);return i},moveH:ta((function(e,t){var n=this;this.extendSelectionsBy((function(r){return n.display.shift||n.doc.extend||r.empty()?Ko(n.doc,r.head,e,t,n.options.rtlMoveVisually):e<0?r.from():r.to()}),J)})),deleteH:ta((function(e,t){var n=this.doc.sel,r=this.doc;n.somethingSelected()?r.replaceSelection("",null,"+delete"):qi(this,(function(n){var a=Ko(r,n.head,e,t,!1);return e<0?{from:a,to:n.head}:{from:n.head,to:a}}))})),findPosV:function(e,t,n,r){var a=1,i=r;t<0&&(a=-1,t=-t);for(var o=lt(this.doc,e),l=0;l<t;++l){var s=Gn(this,o,"div");if(null==i?i=s.left:s.left=i,(o=Fo(this,s,a,n)).hitSide)break}return o},moveV:ta((function(e,t){var n=this,r=this.doc,a=[],i=!this.display.shift&&!r.extend&&r.sel.somethingSelected();if(r.extendSelectionsBy((function(o){if(i)return e<0?o.from():o.to();var l=Gn(n,o.head,"div");null!=o.goalColumn&&(l.left=o.goalColumn),a.push(l.left);var s=Fo(n,l,e,t);return"page"==t&&o==r.sel.primary()&&Ir(n,Vn(n,s,"div").top-l.top),s}),J),a.length)for(var o=0;o<r.sel.ranges.length;o++)r.sel.ranges[o].goalColumn=a[o]})),findWordAt:function(e){var t=Ve(this.doc,e.line).text,n=e.ch,r=e.ch;if(t){var a=this.getHelper(e,"wordChars");"before"!=e.sticky&&r!=t.length||!n?++r:--n;for(var i=t.charAt(n),o=ee(i,a)?function(e){return ee(e,a)}:/\s/.test(i)?function(e){return/\s/.test(e)}:function(e){return!/\s/.test(e)&&!ee(e)};n>0&&o(t.charAt(n-1));)--n;for(;r<t.length&&o(t.charAt(r));)++r}return new Aa(et(e.line,n),et(e.line,r))},toggleOverwrite:function(e){null!=e&&e==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?D(this.display.cursorDiv,"CodeMirror-overwrite"):w(this.display.cursorDiv,"CodeMirror-overwrite"),he(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==T()},isReadOnly:function(){return!(!this.options.readOnly&&!this.doc.cantEdit)},scrollTo:ta((function(e,t){Tr(this,e,t)})),getScrollInfo:function(){var e=this.display.scroller;return{left:e.scrollLeft,top:e.scrollTop,height:e.scrollHeight-wn(this)-this.display.barHeight,width:e.scrollWidth-wn(this)-this.display.barWidth,clientHeight:jn(this),clientWidth:Sn(this)}},scrollIntoView:ta((function(e,t){null==e?(e={from:this.doc.sel.primary().head,to:null},null==t&&(t=this.options.cursorScrollMargin)):"number"==typeof e?e={from:et(e,0),to:null}:null==e.from&&(e={from:e,to:null}),e.to||(e.to=e.from),e.margin=t||0,null!=e.from.line?function(e,t){Dr(e),e.curOp.scrollToPos=t}(this,e):Rr(this,e.from,e.to,e.margin)})),setSize:ta((function(e,t){var n=this,r=function(e){return"number"==typeof e||/^\d+$/.test(String(e))?e+"px":e};null!=e&&(this.display.wrapper.style.width=r(e)),null!=t&&(this.display.wrapper.style.height=r(t)),this.options.lineWrapping&&Fn(this);var a=this.display.viewFrom;this.doc.iter(a,this.display.viewTo,(function(e){if(e.widgets)for(var t=0;t<e.widgets.length;t++)if(e.widgets[t].noHScroll){fr(n,a,"widget");break}++a})),this.curOp.forceUpdate=!0,he(this,"refresh",this)})),operation:function(e){return $r(this,e)},startOperation:function(){return Vr(this)},endOperation:function(){return Gr(this)},refresh:ta((function(){var e=this.display.cachedTextHeight;dr(this),this.curOp.forceUpdate=!0,zn(this),Tr(this,this.doc.scrollLeft,this.doc.scrollTop),ca(this.display),(null==e||Math.abs(e-rr(this.display))>.5||this.options.lineWrapping)&&sr(this),he(this,"refresh",this)})),swapDoc:ta((function(e){var t=this.doc;return t.cm=null,this.state.selectingText&&this.state.selectingText(),La(this,e),zn(this),this.display.input.reset(),Tr(this,e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,sn(this,"swapDoc",this,t),t})),phrase:function(e){var t=this.options.phrases;return t&&Object.prototype.hasOwnProperty.call(t,e)?t[e]:e},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},be(e),e.registerHelper=function(t,r,a){n.hasOwnProperty(t)||(n[t]=e[t]={_global:[]}),n[t][r]=a},e.registerGlobalHelper=function(t,r,a,i){e.registerHelper(t,r,i),n[t]._global.push({pred:a,val:i})}}(So);var Vo="iter insert remove copy getEditor constructor".split(" ");for(var Go in Ii.prototype)Ii.prototype.hasOwnProperty(Go)&&z(Vo,Go)<0&&(So.prototype[Go]=function(e){return function(){return e.apply(this.doc,arguments)}}(Ii.prototype[Go]));return be(Ii),So.inputStyles={textarea:Uo,contenteditable:zo},So.defineMode=function(e){So.defaults.mode||"null"==e||(So.defaults.mode=e),Pe.apply(this,arguments)},So.defineMIME=function(e,t){Be[e]=t},So.defineMode("null",(function(){return{token:function(e){return e.skipToEnd()}}})),So.defineMIME("text/plain","null"),So.defineExtension=function(e,t){So.prototype[e]=t},So.defineDocExtension=function(e,t){Ii.prototype[e]=t},So.fromTextArea=function(e,t){if((t=t?P(t):{}).value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),null==t.autofocus){var n=T();t.autofocus=n==e||null!=e.getAttribute("autofocus")&&n==document.body}function r(){e.value=l.getValue()}var a;if(e.form&&(de(e.form,"submit",r),!t.leaveSubmitMethodAlone)){var i=e.form;a=i.submit;try{var o=i.submit=function(){r(),i.submit=a,i.submit(),i.submit=o}}catch(e){}}t.finishInit=function(n){n.save=r,n.getTextArea=function(){return e},n.toTextArea=function(){n.toTextArea=isNaN,r(),e.parentNode.removeChild(n.getWrapperElement()),e.style.display="",e.form&&(pe(e.form,"submit",r),t.leaveSubmitMethodAlone||"function"!=typeof e.form.submit||(e.form.submit=a))}},e.style.display="none";var l=So((function(t){return e.parentNode.insertBefore(t,e.nextSibling)}),t);return l},function(e){e.off=pe,e.on=de,e.wheelEventPixels=xa,e.Doc=Ii,e.splitLines=Me,e.countColumn=K,e.findColumn=U,e.isWordChar=$,e.Pass=Q,e.signal=he,e.Line=Vt,e.changeEnd=wa,e.scrollbarModel=Hr,e.Pos=et,e.cmpPos=tt,e.modes=Le,e.mimeModes=Be,e.resolveMode=Ke,e.getMode=Fe,e.modeExtensions=ze,e.extendMode=Qe,e.copyState=We,e.startState=Je,e.innerMode=He,e.commands=eo,e.keyMap=Wi,e.keyName=Yi,e.isModifierKey=Vi,e.lookupKey=Ui,e.normalizeKeyMap=Ji,e.StringStream=Ue,e.SharedTextMarker=wi,e.TextMarker=Oi,e.LineWidget=Ei,e.e_preventDefault=ye,e.e_stopPropagation=xe,e.e_stop=Ce,e.addClass=D,e.contains=M,e.rmClass=w,e.keyNames=Ki}(So),So.version="5.58.2",So}()},W6BS:
|
|
|
/*!************************************************!*\
|
|
|
!*** ./src/assets/images/icons/weibaitong.png ***!
|
|
|
\************************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADgAAAA4CAYAAACohjseAAAVs0lEQVRoQ+2aa6xlZ3nff++677Xv+9zPHM/YHo+xwQ4E14GKKESkiFsSM8bYQBIEkaBEAkqbRmo/9FulSoX2Qz9GVVQJqUJBhKKA1KRJCIlowwdDDDa+jOd65syc275f1v1d1fOufYYE2ZhJZKRWXjOjvffaa6/1/p//8/yfyzuqLMuS/48P9RrA/8fZfY3B2yXQBHQpf185tBUK+SvH8uV2H/eK1/+jGfwRIBC5ks/Vq/yplq2Wqz+B/ONg5LNlrlz+Qhnot373iih+wgX/YIAivrJgjTKA9BKcYa/Uy/MnUEpD0S2AyzdKkMslZYklbwVYWZpXQSygrSVoc+4fcPzUAKtsom4xpIGiLCkMZbJGs1LkvOHPfJbrhRX5/CM/NDwJZlXiqBKlc7AEjg1aI2iVDXZpoeS9AFXlkmV1W8z+VACLE7dbMiWLE2CFADLgqig6SakCSs4jizcvAvBHMVkqxxhKkePqAs8S1mxyLUxqw6AYKLdtbMtGINpiKKUM07bc96dk9BUBykIFoNYVC/JewMkCDDh18p0so6w+GzfT+FoWC7Yl11curQpFVCoyJQsvDThP6crNdVldi0KLcwogyzJGssVrxYWXAOWzwWg84eXd92UByoK0WHEJqBCA4oC6ChstYHRJIW6lZHWQlsoYQH6rypyOLZ5Xuahx3NIi1TAvLBIcHIlUw8rfcWFLFmzhmPBUxi0NKIRdAVi5qmPAL88LrS9z/AigmHBpCcOaCIUA1BVj4ma6LCi1FkjLBZRoVRrLR9piXjhkysI2mqJxhY2lQUrDjG3iV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rgElYE5Aua57u4962etfNYAvx7YISJIkxrXFxdvtlnFJW+Yiy+MnecrtIn/VAN7uQl6t618D+GpZ9md139cY/FlZ+tV6zmsMvlqW/Vnd9/8CAe3hZpCQX/4AAAAASUVORK5CYII="},WaYH:
|
|
|
/*!*********************************************************!*\
|
|
|
!*** ./node_modules/rc-tree/es/TreeNode.js + 1 modules ***!
|
|
|
\*********************************************************/
|
|
|
/*! exports provided: InternalTreeNode, default */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/createClass.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/createSuper.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/inherits.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/classnames/index.js (<- Module is not an ECMAScript module) */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-tree/es/contextTypes.js because of ./node_modules/rc-tree/es/Tree.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-tree/es/util.js because of ./node_modules/antd/es/table/hooks/useSelection.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-tree/es/utils/treeUtil.js because of ./node_modules/antd/es/table/hooks/useSelection.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/react/index.js (<- Module is not an ECMAScript module) */function(e,t,n){"use strict";var r=n("rePB"),a=n("Ff2n"),i=n("VTBJ"),o=n("1OyB"),l=n("vuIU"),s=n("JX7q"),c=n("Ji7U"),u=n("LK+K"),d=n("q1tI"),f=n("TSYQ"),p=n.n(f),h=n("sboe"),m=n("OZM5"),v=function(e){var t=e.prefixCls,n=e.level,a=e.isStart,i=e.isEnd;if(!n)return null;for(var o="".concat(t,"-indent-unit"),l=[],s=0;s<n;s+=1){var c;l.push(d.createElement("span",{key:s,className:p()(o,(c={},Object(r.a)(c,"".concat(o,"-start"),a[s+1]),Object(r.a)(c,"".concat(o,"-end"),i[s+1]),Object(r.a)(c,"".concat(o,"-end-first-level"),!s&&i[0]),c))}))}return d.createElement("span",{"aria-hidden":"true",className:"".concat(t,"-indent")},l)},g=n("815F"),b=function(e){Object(c.a)(n,e);var t=Object(u.a)(n);function n(){var e;return Object(o.a)(this,n),(e=t.apply(this,arguments)).state={dragNodeHighlight:!1},e.onSelectorClick=function(t){(0,e.props.context.onNodeClick)(t,Object(g.b)(e.props)),e.isSelectable()?e.onSelect(t):e.onCheck(t)},e.onSelectorDoubleClick=function(t){(0,e.props.context.onNodeDoubleClick)(t,Object(g.b)(e.props))},e.onSelect=function(t){if(!e.isDisabled()){var n=e.props.context.onNodeSelect;t.preventDefault(),n(t,Object(g.b)(e.props))}},e.onCheck=function(t){if(!e.isDisabled()){var n=e.props,r=n.disableCheckbox,a=n.checked,i=e.props.context.onNodeCheck;if(e.isCheckable()&&!r){t.preventDefault();var o=!a;i(t,Object(g.b)(e.props),o)}}},e.onMouseEnter=function(t){(0,e.props.context.onNodeMouseEnter)(t,Object(g.b)(e.props))},e.onMouseLeave=function(t){(0,e.props.context.onNodeMouseLeave)(t,Object(g.b)(e.props))},e.onContextMenu=function(t){(0,e.props.context.onNodeContextMenu)(t,Object(g.b)(e.props))},e.onDragStart=function(t){var n=e.props.context.onNodeDragStart;t.stopPropagation(),e.setState({dragNodeHighlight:!0}),n(t,Object(s.a)(e));try{t.dataTransfer.setData("text/plain","")}catch(e){}},e.onDragEnter=function(t){var n=e.props.context.onNodeDragEnter;t.preventDefault(),t.stopPropagation(),n(t,Object(s.a)(e))},e.onDragOver=function(t){var n=e.props.context.onNodeDragOver;t.preventDefault(),t.stopPropagation(),n(t,Object(s.a)(e))},e.onDragLeave=function(t){var n=e.props.context.onNodeDragLeave;t.stopPropagation(),n(t,Object(s.a)(e))},e.onDragEnd=function(t){var n=e.props.context.onNodeDragEnd;t.stopPropagation(),e.setState({dragNodeHighlight:!1}),n(t,Object(s.a)(e))},e.onDrop=function(t){var n=e.props.context.onNodeDrop;t.preventDefault(),t.stopPropagation(),e.setState({dragNodeHighlight:!1}),n(t,Object(s.a)(e))},e.onExpand=function(t){(0,e.props.context.onNodeExpand)(t,Object(g.b)(e.props))},e.setSelectHandle=function(t){e.selectHandle=t},e.getNodeState=function(){var t=e.props.expanded;return e.isLeaf()?null:t?"open":"close"},e.hasChildren=function(){var t=e.props.eventKey;return!!((e.props.context.keyEntities[t]||{}).children||[]).length},e.isLeaf=function(){var t=e.props,n=t.isLeaf,r=t.loaded,a=e.props.context.loadData,i=e.hasChildren();return!1!==n&&(n||!a&&!i||a&&r&&!i)},e.isDisabled=function(){var t=e.props.disabled;return!(!e.props.context.disabled&&!t)},e.isCheckable=function(){var t=e.props.checkable,n=e.props.context.checkable;return!(!n||!1===t)&&n},e.syncLoadData=function(t){var n=t.expanded,r=t.loading,a=t.loaded,i=e.props.context,o=i.loadData,l=i.onNodeLoad;r||o&&n&&!e.isLeaf()&&(e.hasChildren()||a||l(Object(g.b)(e.props)))},e.renderSwitcher=function(){var t=e.props,n=t.expanded,r=t.switcherIcon,a=e.props.context,o=a.prefixCls,l=a.switcherIcon,s=r||l;if(e.isLeaf())return d.createElement("span",{className:p()("".concat(o,"-switcher"),"".concat(o,"-switcher-noop"))},"function"==typeof s?s(Object(i.a)(Object(i.a)({},e.props),{},{isLeaf:!0})):s);var c=p()("".concat(o,"-switcher"),"".concat(o,"-switcher_").concat(n?"open":"close"));return d.createElement("span",{onClick:e.onExpand,className:c},"function"==typeof s?s(Object(i.a)(Object(i.a)({},e.props),{},{isLeaf:!1})):s)},e.renderCheckbox=function(){var t=e.props,n=t.checked,r=t.halfChecked,a=t.disableCheckbox,i=e.props.context.prefixCls,o=e.isDisabled(),l=e.isCheckable();if(!l)return null;var s="boolean"!=typeof l?l:null;return d.createElement("span",{className:p()("".concat(i,"-checkbox"),n&&"".concat(i,"-checkbox-checked"),!n&&r&&"".concat(i,"-checkbox-indeterminate"),(o||a)&&"".concat(i,"-checkbox-disabled")),onClick:e.onCheck},s)},e.renderIcon=function(){var t=e.props.loading,n=e.props.context.prefixCls;return d.createElement("span",{className:p()("".concat(n,"-iconEle"),"".concat(n,"-icon__").concat(e.getNodeState()||"docu"),t&&"".concat(n,"-icon_loading"))})},e.renderSelector=function(){var t,n,r=e.state.dragNodeHighlight,a=e.props,i=a.title,o=a.selected,l=a.icon,s=a.loading,c=a.data,u=e.props.context,f=u.prefixCls,h=u.showIcon,m=u.icon,v=u.draggable,g=u.loadData,b=u.titleRender,y=e.isDisabled(),x="".concat(f,"-node-content-wrapper");if(h){var E=l||m;t=E?d.createElement("span",{className:p()("".concat(f,"-iconEle"),"".concat(f,"-icon__customize"))},"function"==typeof E?E(e.props):E):e.renderIcon()}else g&&s&&(t=e.renderIcon());n="function"==typeof i?i(c):b?b(c):i;var C=d.createElement("span",{className:"".concat(f,"-title")},n);return d.createElement("span",{ref:e.setSelectHandle,title:"string"==typeof i?i:"",className:p()("".concat(x),"".concat(x,"-").concat(e.getNodeState()||"normal"),!y&&(o||r)&&"".concat(f,"-node-selected"),!y&&v&&"draggable"),draggable:!y&&v||void 0,"aria-grabbed":!y&&v||void 0,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onContextMenu:e.onContextMenu,onClick:e.onSelectorClick,onDoubleClick:e.onSelectorDoubleClick,onDragStart:v?e.onDragStart:void 0},t,C)},e}return Object(l.a)(n,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var e=this.props.selectable,t=this.props.context.selectable;return"boolean"==typeof e?e:t}},{key:"render",value:function(){var e,t=this.props,n=t.eventKey,i=t.className,o=t.style,l=t.dragOver,s=t.dragOverGapTop,c=t.dragOverGapBottom,u=t.isLeaf,f=t.isStart,h=t.isEnd,b=t.expanded,y=t.selected,x=t.checked,E=t.halfChecked,C=t.loading,A=t.domRef,O=t.active,k=t.onMouseMove,w=Object(a.a)(t,["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","onMouseMove"]),S=this.props.context,j=S.prefixCls,N=S.filterTreeNode,I=S.draggable,M=S.keyEntities,T=this.isDisabled(),D=Object(m.f)(w),R=(M[n]||{}).level,L=h[h.length-1];return d.createElement("div",Object.assign({ref:A,className:p()(i,"".concat(j,"-treenode"),(e={},Object(r.a)(e,"".concat(j,"-treenode-disabled"),T),Object(r.a)(e,"".concat(j,"-treenode-switcher-").concat(b?"open":"close"),!u),Object(r.a)(e,"".concat(j,"-treenode-checkbox-checked"),x),Object(r.a)(e,"".concat(j,"-treenode-checkbox-indeterminate"),E),Object(r.a)(e,"".concat(j,"-treenode-selected"),y),Object(r.a)(e,"".concat(j,"-treenode-loading"),C),Object(r.a)(e,"".concat(j,"-treenode-active"),O),Object(r.a)(e,"".concat(j,"-treenode-leaf-last"),L),Object(r.a)(e,"drag-over",!T&&l),Object(r.a)(e,"drag-over-gap-top",!T&&s),Object(r.a)(e,"drag-over-gap-bottom",!T&&c),Object(r.a)(e,"filter-node",N&&N(Object(g.b)(this.props))),e)),style:o,onDragEnter:I?this.onDragEnter:void 0,onDragOver:I?this.onDragOver:void 0,onDragLeave:I?this.onDragLeave:void 0,onDrop:I?this.onDrop:void 0,onDragEnd:I?this.onDragEnd:void 0,onMouseMove:k},D),d.createElement(v,{prefixCls:j,level:R,isStart:f,isEnd:h}),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),n}(d.Component),y=function(e){return d.createElement(h.a.Consumer,null,(function(t){return d.createElement(b,Object.assign({},e,{context:t}))}))};y.displayName="TreeNode",y.defaultProps={title:"---"},y.isTreeNode=1;t.a=y},WdTA:
|
|
|
/*!******************************************!*\
|
|
|
!*** ./src/assets/images/studnetqun.png ***!
|
|
|
\******************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,n){e.exports=n.p+"static/studnetqun.598eeb43.png"},WkQV:
|
|
|
/*!**********************************************************************!*\
|
|
|
!*** ./src/pages/Innovation/Detail/components/DataSetPane/index.tsx ***!
|
|
|
\**********************************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/*! exports used: default */function(e,t,n){"use strict";n(/*! antd/es/table/style */"g9YV");var r=n(/*! antd/es/table */"wCAj"),a=(n(/*! antd/es/button/style */"+L6B"),n(/*! antd/es/button */"2/Rp")),i=n(/*! ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/slicedToArray */"tJVT"),o=(n(/*! antd/es/message/style */"miYZ"),n(/*! antd/es/message */"tsqr")),l=(n(/*! antd/es/tooltip/style */"5Dmo"),n(/*! antd/es/tooltip */"3S7+")),s=n(/*! react */"q1tI"),c=n.n(s),u=n(/*! @/service/innovation */"fr4D"),d=n(/*! react-copy-to-clipboard */"P5Jw"),f=[{title:"文件名",dataIndex:"filename",width:"19%",ellipsis:!0},{title:"备注",dataIndex:"description",width:"19%",ellipsis:!0},{title:"创建时间",dataIndex:"created_on",width:"19%",ellipsis:!0},{title:"文件路径",dataIndex:"path",width:"19%",render:function(e){return c.a.createElement("div",{style:{display:"flex"}},c.a.createElement(l.a,{title:e},c.a.createElement("span",{style:{width:"80%",display:"inline-block",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"}},e)),c.a.createElement(d.CopyToClipboard,{text:e,onCopy:function(){return o.b.success("复制成功")}},c.a.createElement("i",{className:"iconfont icon-fuzhi2 current ml5 mr40",style:{color:"#165DFF",marginLeft:30}})))}},{title:"最后修改人",dataIndex:"author",width:"14%",ellipsis:!0},{title:"大小",dataIndex:"filesize",width:"10%",ellipsis:!0}],p=function(e){var t=e.detail,n=Object(s.useState)(t),o=Object(i.a)(n,2),l=o[0],d=o[1],p=Object(s.useState)(1),h=Object(i.a)(p,2),m=h[0],v=h[1];Object(s.useEffect)((function(){t&&d(t)}),[t]);var g=Object(s.useMemo)((function(){return{position:["bottomCenter"],pageSize:10,showSizeChanger:!1,current:m,showQuickJumper:{goButton:c.a.createElement(a.a,null,"GO")},total:null==l?void 0:l.data_sets_count,onChange:function(e){v(e),Object(u.l)("".concat(null==t?void 0:t.id),{limit:10,page:e}).then((function(e){d(e)}))}}}),[m,l]);return c.a.createElement(r.a,{columns:f,dataSource:null==l?void 0:l.data_sets,rowKey:"attachment_id",pagination:g})};t.a=Object(s.memo)(p)},Xsq0:
|
|
|
/*!*************************************************!*\
|
|
|
!*** ./src/assets/images/banner/mainbanner.jpg ***!
|
|
|
\*************************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,n){e.exports=n.p+"static/mainbanner.0a951716.jpg"},Y1PL:
|
|
|
/*!**********************************************************!*\
|
|
|
!*** ./node_modules/rc-textarea/es/index.js + 7 modules ***!
|
|
|
\**********************************************************/
|
|
|
/*! exports provided: ResizableTextArea, default */
|
|
|
/*! all exports used */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/createClass.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/createSuper.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/extends.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/inherits.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/classnames/index.js (<- Module is not an ECMAScript module) */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/Children/toArray.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/Dom/findDOMNode.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/omit.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/ref.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/warning.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/react/index.js (<- Module is not an ECMAScript module) */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js (<- Module uses injected variables (global)) */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/shallowequal/index.js (<- Module is not an ECMAScript module) */function(e,t,n){"use strict";n.r(t),n.d(t,"ResizableTextArea",(function(){return D}));var r=n("wx14"),a=n("1OyB"),i=n("vuIU"),o=n("Ji7U"),l=n("LK+K"),s=n("q1tI"),c=n("VTBJ"),u=n("rePB"),d=n("Zm9Q"),f=(n("Kwbf"),n("c+Xe")),p=n("m+aA"),h=n("bdgK"),m=new Map;var v=new h.default((function(e){e.forEach((function(e){var t,n=e.target;null===(t=m.get(n))||void 0===t||t.forEach((function(e){return e(n)}))}))}));var g=function(e){Object(o.a)(n,e);var t=Object(l.a)(n);function n(){return Object(a.a)(this,n),t.apply(this,arguments)}return Object(i.a)(n,[{key:"render",value:function(){return this.props.children}}]),n}(s.Component),b=s.createContext(null);function y(e){var t=e.children,n=e.disabled,r=s.useRef(null),a=s.useRef(null),i=s.useContext(b),o=s.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),l=s.isValidElement(t)&&Object(f.c)(t),u=l?t.ref:null,d=s.useMemo((function(){return Object(f.a)(u,r)}),[u,r]),h=s.useRef(e);h.current=e;var y=s.useCallback((function(e){var t=h.current,n=t.onResize,r=t.data,a=e.getBoundingClientRect(),l=a.width,s=a.height,u=e.offsetWidth,d=e.offsetHeight,f=Math.floor(l),p=Math.floor(s);if(o.current.width!==f||o.current.height!==p||o.current.offsetWidth!==u||o.current.offsetHeight!==d){var m={width:f,height:p,offsetWidth:u,offsetHeight:d};o.current=m;var v=u===Math.round(l)?l:u,g=d===Math.round(s)?s:d,b=Object(c.a)(Object(c.a)({},m),{},{offsetWidth:v,offsetHeight:g});null==i||i(b,e,r),n&&Promise.resolve().then((function(){n(b,e)}))}}),[]);return s.useEffect((function(){var e,t,i=Object(p.a)(r.current)||Object(p.a)(a.current);return i&&!n&&(e=i,t=y,m.has(e)||(m.set(e,new Set),v.observe(e)),m.get(e).add(t)),function(){return function(e,t){m.has(e)&&(m.get(e).delete(t),m.get(e).size||(v.unobserve(e),m.delete(e)))}(i,y)}}),[r.current,n]),s.createElement(g,{ref:a},l?s.cloneElement(t,{ref:d}):t)}function x(e){var t=e.children;return Object(d.a)(t).map((function(t,n){var a=(null==t?void 0:t.key)||"".concat("rc-observer-key","-").concat(n);return s.createElement(y,Object(r.a)({},e,{key:a}),t)}))}x.Collection=function(e){var t=e.children,n=e.onBatchResize,r=s.useRef(0),a=s.useRef([]),i=s.useContext(b),o=s.useCallback((function(e,t,o){r.current+=1;var l=r.current;a.current.push({size:e,element:t,data:o}),Promise.resolve().then((function(){l===r.current&&(null==n||n(a.current),a.current=[])})),null==i||i(e,t,o)}),[n,i]);return s.createElement(b.Provider,{value:o},t)};var E,C=x,A=n("bT9E"),O=n("TSYQ"),k=n.n(O),w="\n min-height:0 !important;\n max-height:none !important;\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important\n",S=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break"],j={};function N(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&j[n])return j[n];var r=window.getComputedStyle(e),a=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),i=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),o=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),l=S.map((function(e){return"".concat(e,":").concat(r.getPropertyValue(e))})).join(";"),s={sizingStyle:l,paddingSize:i,borderSize:o,boxSizing:a};return t&&n&&(j[n]=s),s}var I,M=n("Gytx"),T=n.n(M);!function(e){e[e.NONE=0]="NONE",e[e.RESIZING=1]="RESIZING",e[e.RESIZED=2]="RESIZED"}(I||(I={}));var D=function(e){Object(o.a)(n,e);var t=Object(l.a)(n);function n(e){var i;return Object(a.a)(this,n),(i=t.call(this,e)).nextFrameActionId=void 0,i.resizeFrameId=void 0,i.textArea=void 0,i.saveTextArea=function(e){i.textArea=e},i.handleResize=function(e){var t=i.state.resizeStatus,n=i.props,r=n.autoSize,a=n.onResize;t===I.NONE&&("function"==typeof a&&a(e),r&&i.resizeOnNextFrame())},i.resizeOnNextFrame=function(){cancelAnimationFrame(i.nextFrameActionId),i.nextFrameActionId=requestAnimationFrame(i.resizeTextarea)},i.resizeTextarea=function(){var e=i.props.autoSize;if(e&&i.textArea){var t=e.minRows,n=e.maxRows,r=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;E||((E=document.createElement("textarea")).setAttribute("tab-index","-1"),E.setAttribute("aria-hidden","true"),document.body.appendChild(E)),e.getAttribute("wrap")?E.setAttribute("wrap",e.getAttribute("wrap")):E.removeAttribute("wrap");var a=N(e,t),i=a.paddingSize,o=a.borderSize,l=a.boxSizing,s=a.sizingStyle;E.setAttribute("style","".concat(s,";").concat(w)),E.value=e.value||e.placeholder||"";var c,u=Number.MIN_SAFE_INTEGER,d=Number.MAX_SAFE_INTEGER,f=E.scrollHeight;if("border-box"===l?f+=o:"content-box"===l&&(f-=i),null!==n||null!==r){E.value=" ";var p=E.scrollHeight-i;null!==n&&(u=p*n,"border-box"===l&&(u=u+i+o),f=Math.max(u,f)),null!==r&&(d=p*r,"border-box"===l&&(d=d+i+o),c=f>d?"":"hidden",f=Math.min(d,f))}return{height:f,minHeight:u,maxHeight:d,overflowY:c,resize:"none"}}(i.textArea,!1,t,n);i.setState({textareaStyles:r,resizeStatus:I.RESIZING},(function(){cancelAnimationFrame(i.resizeFrameId),i.resizeFrameId=requestAnimationFrame((function(){i.setState({resizeStatus:I.RESIZED},(function(){i.resizeFrameId=requestAnimationFrame((function(){i.setState({resizeStatus:I.NONE}),i.fixFirefoxAutoScroll()}))}))}))}))}},i.renderTextArea=function(){var e=i.props,t=e.prefixCls,n=void 0===t?"rc-textarea":t,a=e.autoSize,o=e.onResize,l=e.className,d=e.disabled,f=i.state,p=f.textareaStyles,h=f.resizeStatus,m=Object(A.a)(i.props,["prefixCls","onPressEnter","autoSize","defaultValue","onResize"]),v=k()(n,l,Object(u.a)({},"".concat(n,"-disabled"),d));"value"in m&&(m.value=m.value||"");var g=Object(c.a)(Object(c.a)(Object(c.a)({},i.props.style),p),h===I.RESIZING?{overflowX:"hidden",overflowY:"hidden"}:null);return s.createElement(C,{onResize:i.handleResize,disabled:!(a||o)},s.createElement("textarea",Object(r.a)({},m,{className:v,style:g,ref:i.saveTextArea})))},i.state={textareaStyles:{},resizeStatus:I.NONE},i}return Object(i.a)(n,[{key:"componentDidUpdate",value:function(e){e.value===this.props.value&&T()(e.autoSize,this.props.autoSize)||this.resizeTextarea()}},{key:"componentWillUnmount",value:function(){cancelAnimationFrame(this.nextFrameActionId),cancelAnimationFrame(this.resizeFrameId)}},{key:"fixFirefoxAutoScroll",value:function(){try{if(document.activeElement===this.textArea){var e=this.textArea.selectionStart,t=this.textArea.selectionEnd;this.textArea.setSelectionRange(e,t)}}catch(e){}}},{key:"render",value:function(){return this.renderTextArea()}}]),n}(s.Component),R=function(e){Object(o.a)(n,e);var t=Object(l.a)(n);function n(e){var r;Object(a.a)(this,n),(r=t.call(this,e)).resizableTextArea=void 0,r.focus=function(){r.resizableTextArea.textArea.focus()},r.saveTextArea=function(e){r.resizableTextArea=e},r.handleChange=function(e){var t=r.props.onChange;r.setValue(e.target.value,(function(){r.resizableTextArea.resizeTextarea()})),t&&t(e)},r.handleKeyDown=function(e){var t=r.props,n=t.onPressEnter,a=t.onKeyDown;13===e.keyCode&&n&&n(e),a&&a(e)};var i=void 0===e.value||null===e.value?e.defaultValue:e.value;return r.state={value:i},r}return Object(i.a)(n,[{key:"setValue",value:function(e,t){"value"in this.props||this.setState({value:e},t)}},{key:"blur",value:function(){this.resizableTextArea.textArea.blur()}},{key:"render",value:function(){return s.createElement(D,Object(r.a)({},this.props,{value:this.state.value,onKeyDown:this.handleKeyDown,onChange:this.handleChange,ref:this.saveTextArea}))}}],[{key:"getDerivedStateFromProps",value:function(e){return"value"in e?{value:e.value}:null}}]),n}(s.Component);t.default=R},ZW9T:
|
|
|
/*!************************************************************!*\
|
|
|
!*** ./src/components/monaco-editor/index.jsx + 1 modules ***!
|
|
|
\************************************************************/
|
|
|
/*! exports provided: getLanguageByMirrorName, default, DiffEditor */
|
|
|
/*! exports used: DiffEditor, default */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelper.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/objectSpread2.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/slicedToArray.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/message/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/message/style/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/react/index.js (<- Module is not an ECMAScript module) */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js (<- Module uses injected variables (global)) */function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var r=n("k1fw"),a=(n("miYZ"),n("tsqr")),i=n("rAM+"),o=n("tJVT"),l=n("PpiC"),s=n("q1tI"),c=n.n(s),u=n("bdgK");function d(e,t,n,a,i){var o=t.getWordUntilPosition(n),l={startLineNumber:n.lineNumber,endLineNumber:n.lineNumber,startColumn:o.startColumn,endColumn:o.endColumn},s=a.map((function(t){return{label:t,kind:e.languages.CompletionItemKind.Keyword,insertText:t,insertTextRules:e.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:l}}));return i.map((function(e){s.push(Object(r.a)(Object(r.a)({},e),{},{range:l}))})),s}n("LvDl");function f(e){return/^\d+$/.test(e)?"".concat(e,"px"):e}function p(){}var h={"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"};function m(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=e;if(Array.isArray(e)){for(var n=0;n<e.length;n++){var r=h[e[n]];if(r)return r}return t[0]}return h[t]||t}var v=null;t.b=function(e){var t=e.width,h=void 0===t?"100%":t,g=e.height,b=void 0===g?"100%":g,y=e.value,x=e.language,E=void 0===x?"javascript":x,C=e.style,A=void 0===C?{}:C,O=e.options,k=void 0===O?{}:O,w=e.overrideServices,S=void 0===w?{}:w,j=e.theme,N=void 0===j?"vs-dark":j,I=e.onEditBlur,M=e.onSave,T=e.autoHeight,D=void 0!==T&&T,R=e.forbidCopy,L=void 0!==R&&R,B=e.onChange,P=void 0===B?p:B,K=e.editorDidMount,F=void 0===K?p:K,z=e.onFocus,Q=void 0===z?p:z,W=e.filename,H=void 0===W?"educoder.txt":W,J=(Object(l.a)(e,["width","height","value","language","style","options","overrideServices","theme","onEditBlur","onSave","autoHeight","forbidCopy","onChange","editorDidMount","onFocus","filename"]),Object(s.useRef)()),U=Object(s.useRef)({}),V=Object(s.useRef)(),G=Object(s.useRef)(!1),Y=Object(s.useRef)(),Z=Object(s.useState)(!1),q=Object(o.a)(Z,2),X=q[0],_=q[1];function $(){a.b.warn(decodeURIComponent("该任务关卡设置了禁止复制粘贴,请手动输入代码。"))}function ee(){var e=U.current.instance;if(e){var t=e.getSelection(),n=U.current.pastePos||{},r=new v.Range(n.startLineNumber||t.endLineNumber,n.startColumn||t.endColumn,n.endLineNumber||t.endLineNumber,n.endColumn||t.endColumn);setTimeout((function(){e.executeEdits("",[{range:r,text:""}])}),300)}}function te(e){(window.navigator.platform.match("Mac")?e.metaKey:e.ctrlKey)&&83==e.keyCode&&(e.preventDefault(),M())}Object(s.useEffect)((function(){V.current&&clearTimeout(V.current),V.current=setTimeout((function(){!function(){var e=U.current.instance;if(null!=y&&e&&X){var t=e.getModel();t&&y!==t.getValue()&&(!0,t.setValue(y),e.layout(),!1)}}()}),500)}),[y,X,U.current]);var ne=function(){if(D&&U.current.instance){var e=U.current.instance.getContentHeight();ue(e<b?b:e)}else ue(b)};function re(e,t){var n,r,a=window.URL||window.webkitURL||window,i=new Blob([t]),o=document.createElementNS("http://www.w3.org/1999/xhtml","a");o.href=a.createObjectURL(i),o.download=e,n=o,(r=document.createEvent("MouseEvents")).initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),n.dispatchEvent(r)}Object(s.useEffect)((function(){ne()}),[ne]),Object(s.useEffect)((function(){J.current&&!X&&n.e(/*! import() | monaco-editor */27).then(n.t.bind(null,/*! monaco-editor/esm/vs/editor/editor.api.js */"M/lh",7)).then((function(e){try{v=e,U.current.instance=v.editor.create(J.current,{value:y,language:m(E),theme:N,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0},S);var t=U.current.instance;if(F(t,v),setTimeout((function(){ne(),U.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:function(){re(H||"educoder.txt",t.getValue())}})}),500),U.current.subscription=t.onDidChangeModelContent((function(e){G.current?clearTimeout(Y.current):(ne(),P(t.getValue(),e)),Y.current=setTimeout((function(){G.current=!1}),500)})),window.Monaco||function(e){var t={label:"ifelse",kind:e.languages.CompletionItemKind.Method,insertText:["if (${1:condition}) {","\t$0","} else {","\t","}"].join("\n"),insertTextRules:e.languages.CompletionItemInsertTextRule.InsertAsSnippet},n=["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","inline","restrict","_Bool","_Complex","_Imaginary","_Alignas","_Alignof","_Atomic","_Static_assert","_Noreturn","_Thread_local","_Generic"];e.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(r,a){return{suggestions:d(e,r,a,n,[t])}}});var r=["False","None","True","and","as","assert","break","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","in","is","lambda","nonlocal","not","or","pass","raise","return","try","while","with","yield"];e.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(t,n){var a=[{label:"print",kind:e.languages.CompletionItemKind.Snippet,insertText:["print($0)"].join("\n"),insertTextRules:e.languages.CompletionItemInsertTextRule.InsertAsSnippet}];return{suggestions:d(e,t,n,r,a)}}});var a=["abstract","assert","boolean","break","byte","case","catch","char","class","const","continue","default","do","double","else","enum","extends","final","finally","float","for","goto","if","implements","import","instance of","int","interface","long","native","new","package","private","protected","public","return","strictfp","short","static","super","switch","synchronized","this","throw","throws","transient","try","void","volatile","while"];e.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(n,r){var i=[t,{label:"main",kind:e.languages.CompletionItemKind.Snippet,insertText:["public static void main(String[] args) {","\t$0","}"].join("\n"),insertTextRules:e.languages.CompletionItemInsertTextRule.InsertAsSnippet},{label:"System.out.print",kind:e.languages.CompletionItemKind.Snippet,insertText:["System.out.print($0)"].join("\n"),insertTextRules:e.languages.CompletionItemInsertTextRule.InsertAsSnippet}];return{suggestions:d(e,n,r,a,i)}}})}(v),L&&(t.addCommand(v.KeyMod.CtrlCmd|v.KeyMod.Shift|v.KeyCode.KEY_V,(function(){return $(),null})),t.addCommand(v.KeyMod.CtrlCmd|v.KeyCode.KEY_C,(function(){return $(),null}))),window.Monaco=v,I&&t.onDidBlurEditorWidget((function(){I(t.getValue())})),Q&&t.onDidFocusEditorText((function(){Q(t.getValue())})),L){t.addCommand(v.KeyMod.CtrlCmd|v.KeyCode.KEY_V,(function(){return $(),null})),t.onDidPaste((function(e){U.current.pastePos=e}));try{window.addEventListener("paste",ee)}catch(e){}}var n=function(){var e;return J.current&&(e=new u.default((function(e){var t,n=Object(i.a)(e);try{for(n.s();!(t=n.n()).done;){var r=t.value;(r.target.offsetHeight>0||r.target.offsetWidth>0)&&U.current.instance.layout()}}catch(e){n.e(e)}finally{n.f()}}))).observe(J.current),e}();return _(!0),function(){var e=U.current.instance;e.dispose();var t=e.getModel();t&&t.dispose(),U.current.subscription&&U.current.subscription.dispose(),L&&window.removeEventListener("paste",ee),n.unobserve(J.current)}}catch(e){}}))}),[]),Object(s.useEffect)((function(){if(U.current.instance&&X)return document.addEventListener("keydown",te,!1),function(){document.removeEventListener("keydown",te)}}),[M,X]),Object(s.useEffect)((function(){var e=U.current.instance;if(e&&X){var t=m(E);v.editor.setModelLanguage(e.getModel(),t),console.log("language:",E,e.getModel(),t)}}),[E,X]),Object(s.useEffect)((function(){U.current.instance&&X&&v.editor.setTheme(N)}),[N,X]),Object(s.useEffect)((function(){var e=U.current.instance;e&&X&&(e.updateOptions(Object(r.a)({},k)),setTimeout((function(){e.getModel().updateOptions(Object(r.a)({},k))}),200))}),[JSON.stringify(k),X]),Object(s.useEffect)((function(){var e=U.current.instance;e&&X&&e.layout()}),[h,b,X]);var ae=Object(s.useState)(f(h)),ie=Object(o.a)(ae,2),oe=ie[0],le=(ie[1],Object(s.useState)(f(b))),se=Object(o.a)(le,2),ce=se[0],ue=se[1],de=Object(r.a)(Object(r.a)({},A),{},{width:oe,height:ce});return c.a.createElement("div",{className:"my-monaco-editor",ref:J,style:de})};function g(e){var t=e.width,a=void 0===t?"100%":t,l=e.height,d=void 0===l?"100%":l,p=e.original,h=e.modified,m=e.language,g=e.options,b=void 0===g?{}:g,y=Object(s.useRef)(),x=Object(s.useState)(null),E=Object(o.a)(x,2),C=E[0],A=E[1];Object(s.useEffect)((function(){y.current&&n.e(/*! import() | monaco-editor */27).then(n.t.bind(null,/*! monaco-editor/esm/vs/editor/editor.api.js */"M/lh",7)).then((function(e){var t=(v=e).editor.createDiffEditor(y.current,Object(r.a)(Object(r.a)({enableSplitViewResizing:!1,scrollBeyondLastLine:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1,horizontal:"hidden",lineNumbers:"off",ignoreTrimWhitespace:!1,followsCaret:!0,ignoreCharChanges:!0,minimap:{enabled:!1},readOnly:!0},b),{},{wordWrap:!0}));A(t);var n=function(e){var t;return y.current&&(t=new u.default((function(t){var n,r=Object(i.a)(t);try{for(r.s();!(n=r.n()).done;){var a=n.value;(a.target.offsetHeight>0||a.target.offsetWidth>0)&&e.layout()}}catch(e){r.e(e)}finally{r.f()}}))).observe(y.current),t}(t);return function(){t.dispose();var e=t.getModel();e&&e.dispose(),n.unobserve(y.current)}}))}),[]),Object(s.useEffect)((function(){C&&C.setModel({original:v.editor.createModel(p,m),modified:v.editor.createModel(h,m)})}),[p,h,m,C]);var O={width:f(a),height:f(d)};return c.a.createElement("div",{className:"my-diff-editor",ref:y,style:O})}},ZaFS:
|
|
|
/*!*****************************************************************************************!*\
|
|
|
!*** ./src/pages/Innovation/Detail/components/CodePane/DirTree/UploadFile.less?modules ***!
|
|
|
\*****************************************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,n){e.exports={wrap:"wrap___1Ov0Q",title:"title___qleZg",path:"path___3MTzj",colorBlue:"colorBlue___3MDCw"}},ZpRC:
|
|
|
/*!*************************************************************************!*\
|
|
|
!*** ./node_modules/scroll-into-view-if-needed/es/index.js + 1 modules ***!
|
|
|
\*************************************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/*! exports used: default */function(e,t,n){"use strict";function r(e){return"object"==typeof e&&null!=e&&1===e.nodeType}function a(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function i(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return a(n.overflowY,t)||a(n.overflowX,t)||function(e){var t=function(e){if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}}(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)}(e)}return!1}function o(e,t,n,r,a,i,o,l){return i<e&&o>t||i>e&&o<t?0:i<=e&&l<=n||o>=t&&l>=n?i-e-r:o>t&&l<n||i<e&&l>n?o-t+a:0}var l=function(e,t){var n=window,a=t.scrollMode,l=t.block,s=t.inline,c=t.boundary,u=t.skipOverflowHiddenElements,d="function"==typeof c?c:function(e){return e!==c};if(!r(e))throw new TypeError("Invalid target");for(var f=document.scrollingElement||document.documentElement,p=[],h=e;r(h)&&d(h);){if((h=h.parentElement)===f){p.push(h);break}null!=h&&h===document.body&&i(h)&&!i(document.documentElement)||null!=h&&i(h,u)&&p.push(h)}for(var m=n.visualViewport?n.visualViewport.width:innerWidth,v=n.visualViewport?n.visualViewport.height:innerHeight,g=window.scrollX||pageXOffset,b=window.scrollY||pageYOffset,y=e.getBoundingClientRect(),x=y.height,E=y.width,C=y.top,A=y.right,O=y.bottom,k=y.left,w="start"===l||"nearest"===l?C:"end"===l?O:C+x/2,S="center"===s?k+E/2:"end"===s?A:k,j=[],N=0;N<p.length;N++){var I=p[N],M=I.getBoundingClientRect(),T=M.height,D=M.width,R=M.top,L=M.right,B=M.bottom,P=M.left;if("if-needed"===a&&C>=0&&k>=0&&O<=v&&A<=m&&C>=R&&O<=B&&k>=P&&A<=L)return j;var K=getComputedStyle(I),F=parseInt(K.borderLeftWidth,10),z=parseInt(K.borderTopWidth,10),Q=parseInt(K.borderRightWidth,10),W=parseInt(K.borderBottomWidth,10),H=0,J=0,U="offsetWidth"in I?I.offsetWidth-I.clientWidth-F-Q:0,V="offsetHeight"in I?I.offsetHeight-I.clientHeight-z-W:0;if(f===I)H="start"===l?w:"end"===l?w-v:"nearest"===l?o(b,b+v,v,z,W,b+w,b+w+x,x):w-v/2,J="start"===s?S:"center"===s?S-m/2:"end"===s?S-m:o(g,g+m,m,F,Q,g+S,g+S+E,E),H=Math.max(0,H+b),J=Math.max(0,J+g);else{H="start"===l?w-R-z:"end"===l?w-B+W+V:"nearest"===l?o(R,B,T,z,W+V,w,w+x,x):w-(R+T/2)+V/2,J="start"===s?S-P-F:"center"===s?S-(P+D/2)+U/2:"end"===s?S-L+Q+U:o(P,L,D,F,Q+U,S,S+E,E);var G=I.scrollLeft,Y=I.scrollTop;w+=Y-(H=Math.max(0,Math.min(Y+H,I.scrollHeight-T+V))),S+=G-(J=Math.max(0,Math.min(G+J,I.scrollWidth-D+U)))}j.push({el:I,top:H,left:J})}return j};function s(e){return e===Object(e)&&0!==Object.keys(e).length}t.a=function(e,t){var n=!e.ownerDocument.documentElement.contains(e);if(s(t)&&"function"==typeof t.behavior)return t.behavior(n?[]:l(e,t));if(!n){var r=function(e){return!1===e?{block:"end",inline:"nearest"}:s(e)?e:{block:"start",inline:"nearest"}}(t);return function(e,t){void 0===t&&(t="auto");var n="scrollBehavior"in document.body.style;e.forEach((function(e){var r=e.el,a=e.top,i=e.left;r.scroll&&n?r.scroll({top:a,left:i,behavior:t}):(r.scrollTop=a,r.scrollLeft=i)}))}(l(e,r),r.behavior)}}},Zss7:
|
|
|
/*!**********************************************!*\
|
|
|
!*** ./node_modules/tinycolor2/tinycolor.js ***!
|
|
|
\**********************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,n){var r;!function(a){var i=/^\s+/,o=/\s+$/,l=0,s=a.round,c=a.min,u=a.max,d=a.random;function f(e,t){if(t=t||{},(e=e||"")instanceof f)return e;if(!(this instanceof f))return new f(e,t);var n=function(e){var t={r:0,g:0,b:0},n=1,r=null,l=null,s=null,d=!1,f=!1;"string"==typeof e&&(e=function(e){e=e.replace(i,"").replace(o,"").toLowerCase();var t,n=!1;if(I[e])e=I[e],n=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};if(t=H.rgb.exec(e))return{r:t[1],g:t[2],b:t[3]};if(t=H.rgba.exec(e))return{r:t[1],g:t[2],b:t[3],a:t[4]};if(t=H.hsl.exec(e))return{h:t[1],s:t[2],l:t[3]};if(t=H.hsla.exec(e))return{h:t[1],s:t[2],l:t[3],a:t[4]};if(t=H.hsv.exec(e))return{h:t[1],s:t[2],v:t[3]};if(t=H.hsva.exec(e))return{h:t[1],s:t[2],v:t[3],a:t[4]};if(t=H.hex8.exec(e))return{r:L(t[1]),g:L(t[2]),b:L(t[3]),a:F(t[4]),format:n?"name":"hex8"};if(t=H.hex6.exec(e))return{r:L(t[1]),g:L(t[2]),b:L(t[3]),format:n?"name":"hex"};if(t=H.hex4.exec(e))return{r:L(t[1]+""+t[1]),g:L(t[2]+""+t[2]),b:L(t[3]+""+t[3]),a:F(t[4]+""+t[4]),format:n?"name":"hex8"};if(t=H.hex3.exec(e))return{r:L(t[1]+""+t[1]),g:L(t[2]+""+t[2]),b:L(t[3]+""+t[3]),format:n?"name":"hex"};return!1}(e));"object"==typeof e&&(J(e.r)&&J(e.g)&&J(e.b)?(p=e.r,h=e.g,m=e.b,t={r:255*D(p,255),g:255*D(h,255),b:255*D(m,255)},d=!0,f="%"===String(e.r).substr(-1)?"prgb":"rgb"):J(e.h)&&J(e.s)&&J(e.v)?(r=P(e.s),l=P(e.v),t=function(e,t,n){e=6*D(e,360),t=D(t,100),n=D(n,100);var r=a.floor(e),i=e-r,o=n*(1-t),l=n*(1-i*t),s=n*(1-(1-i)*t),c=r%6;return{r:255*[n,l,o,o,s,n][c],g:255*[s,n,n,l,o,o][c],b:255*[o,o,s,n,n,l][c]}}(e.h,r,l),d=!0,f="hsv"):J(e.h)&&J(e.s)&&J(e.l)&&(r=P(e.s),s=P(e.l),t=function(e,t,n){var r,a,i;function o(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=D(e,360),t=D(t,100),n=D(n,100),0===t)r=a=i=n;else{var l=n<.5?n*(1+t):n+t-n*t,s=2*n-l;r=o(s,l,e+1/3),a=o(s,l,e),i=o(s,l,e-1/3)}return{r:255*r,g:255*a,b:255*i}}(e.h,r,s),d=!0,f="hsl"),e.hasOwnProperty("a")&&(n=e.a));var p,h,m;return n=T(n),{ok:d,format:e.format||f,r:c(255,u(t.r,0)),g:c(255,u(t.g,0)),b:c(255,u(t.b,0)),a:n}}(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=s(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=s(this._r)),this._g<1&&(this._g=s(this._g)),this._b<1&&(this._b=s(this._b)),this._ok=n.ok,this._tc_id=l++}function p(e,t,n){e=D(e,255),t=D(t,255),n=D(n,255);var r,a,i=u(e,t,n),o=c(e,t,n),l=(i+o)/2;if(i==o)r=a=0;else{var s=i-o;switch(a=l>.5?s/(2-i-o):s/(i+o),i){case e:r=(t-n)/s+(t<n?6:0);break;case t:r=(n-e)/s+2;break;case n:r=(e-t)/s+4}r/=6}return{h:r,s:a,l:l}}function h(e,t,n){e=D(e,255),t=D(t,255),n=D(n,255);var r,a,i=u(e,t,n),o=c(e,t,n),l=i,s=i-o;if(a=0===i?0:s/i,i==o)r=0;else{switch(i){case e:r=(t-n)/s+(t<n?6:0);break;case t:r=(n-e)/s+2;break;case n:r=(e-t)/s+4}r/=6}return{h:r,s:a,v:l}}function m(e,t,n,r){var a=[B(s(e).toString(16)),B(s(t).toString(16)),B(s(n).toString(16))];return r&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0):a.join("")}function v(e,t,n,r){return[B(K(r)),B(s(e).toString(16)),B(s(t).toString(16)),B(s(n).toString(16))].join("")}function g(e,t){t=0===t?0:t||10;var n=f(e).toHsl();return n.s-=t/100,n.s=R(n.s),f(n)}function b(e,t){t=0===t?0:t||10;var n=f(e).toHsl();return n.s+=t/100,n.s=R(n.s),f(n)}function y(e){return f(e).desaturate(100)}function x(e,t){t=0===t?0:t||10;var n=f(e).toHsl();return n.l+=t/100,n.l=R(n.l),f(n)}function E(e,t){t=0===t?0:t||10;var n=f(e).toRgb();return n.r=u(0,c(255,n.r-s(-t/100*255))),n.g=u(0,c(255,n.g-s(-t/100*255))),n.b=u(0,c(255,n.b-s(-t/100*255))),f(n)}function C(e,t){t=0===t?0:t||10;var n=f(e).toHsl();return n.l-=t/100,n.l=R(n.l),f(n)}function A(e,t){var n=f(e).toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,f(n)}function O(e){var t=f(e).toHsl();return t.h=(t.h+180)%360,f(t)}function k(e){var t=f(e).toHsl(),n=t.h;return[f(e),f({h:(n+120)%360,s:t.s,l:t.l}),f({h:(n+240)%360,s:t.s,l:t.l})]}function w(e){var t=f(e).toHsl(),n=t.h;return[f(e),f({h:(n+90)%360,s:t.s,l:t.l}),f({h:(n+180)%360,s:t.s,l:t.l}),f({h:(n+270)%360,s:t.s,l:t.l})]}function S(e){var t=f(e).toHsl(),n=t.h;return[f(e),f({h:(n+72)%360,s:t.s,l:t.l}),f({h:(n+216)%360,s:t.s,l:t.l})]}function j(e,t,n){t=t||6,n=n||30;var r=f(e).toHsl(),a=360/n,i=[f(e)];for(r.h=(r.h-(a*t>>1)+720)%360;--t;)r.h=(r.h+a)%360,i.push(f(r));return i}function N(e,t){t=t||6;for(var n=f(e).toHsv(),r=n.h,a=n.s,i=n.v,o=[],l=1/t;t--;)o.push(f({h:r,s:a,v:i})),i=(i+l)%1;return o}f.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,r=this.toRgb();return e=r.r/255,t=r.g/255,n=r.b/255,.2126*(e<=.03928?e/12.92:a.pow((e+.055)/1.055,2.4))+.7152*(t<=.03928?t/12.92:a.pow((t+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:a.pow((n+.055)/1.055,2.4))},setAlpha:function(e){return this._a=T(e),this._roundA=s(100*this._a)/100,this},toHsv:function(){var e=h(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=h(this._r,this._g,this._b),t=s(360*e.h),n=s(100*e.s),r=s(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=p(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=p(this._r,this._g,this._b),t=s(360*e.h),n=s(100*e.s),r=s(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return m(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return function(e,t,n,r,a){var i=[B(s(e).toString(16)),B(s(t).toString(16)),B(s(n).toString(16)),B(K(r))];if(a&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)&&i[3].charAt(0)==i[3].charAt(1))return i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0);return i.join("")}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:s(this._r),g:s(this._g),b:s(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+s(this._r)+", "+s(this._g)+", "+s(this._b)+")":"rgba("+s(this._r)+", "+s(this._g)+", "+s(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:s(100*D(this._r,255))+"%",g:s(100*D(this._g,255))+"%",b:s(100*D(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+s(100*D(this._r,255))+"%, "+s(100*D(this._g,255))+"%, "+s(100*D(this._b,255))+"%)":"rgba("+s(100*D(this._r,255))+"%, "+s(100*D(this._g,255))+"%, "+s(100*D(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(M[m(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+v(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?"GradientType = 1, ":"";if(e){var a=f(e);n="#"+v(a._r,a._g,a._b,a._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,r=this._a<1&&this._a>=0;return t||!r||"hex"!==e&&"hex6"!==e&&"hex3"!==e&&"hex4"!==e&&"hex8"!==e&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this._a?this.toName():this.toRgbString()},clone:function(){return f(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(x,arguments)},brighten:function(){return this._applyModification(E,arguments)},darken:function(){return this._applyModification(C,arguments)},desaturate:function(){return this._applyModification(g,arguments)},saturate:function(){return this._applyModification(b,arguments)},greyscale:function(){return this._applyModification(y,arguments)},spin:function(){return this._applyModification(A,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(j,arguments)},complement:function(){return this._applyCombination(O,arguments)},monochromatic:function(){return this._applyCombination(N,arguments)},splitcomplement:function(){return this._applyCombination(S,arguments)},triad:function(){return this._applyCombination(k,arguments)},tetrad:function(){return this._applyCombination(w,arguments)}},f.fromRatio=function(e,t){if("object"==typeof e){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]="a"===r?e[r]:P(e[r]));e=n}return f(e,t)},f.equals=function(e,t){return!(!e||!t)&&f(e).toRgbString()==f(t).toRgbString()},f.random=function(){return f.fromRatio({r:d(),g:d(),b:d()})},f.mix=function(e,t,n){n=0===n?0:n||50;var r=f(e).toRgb(),a=f(t).toRgb(),i=n/100;return f({r:(a.r-r.r)*i+r.r,g:(a.g-r.g)*i+r.g,b:(a.b-r.b)*i+r.b,a:(a.a-r.a)*i+r.a})},f.readability=function(e,t){var n=f(e),r=f(t);return(a.max(n.getLuminance(),r.getLuminance())+.05)/(a.min(n.getLuminance(),r.getLuminance())+.05)},f.isReadable=function(e,t,n){var r,a,i=f.readability(e,t);switch(a=!1,(r=function(e){var t,n;t=((e=e||{level:"AA",size:"small"}).level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA");"small"!==n&&"large"!==n&&(n="small");return{level:t,size:n}}(n)).level+r.size){case"AAsmall":case"AAAlarge":a=i>=4.5;break;case"AAlarge":a=i>=3;break;case"AAAsmall":a=i>=7}return a},f.mostReadable=function(e,t,n){var r,a,i,o,l=null,s=0;a=(n=n||{}).includeFallbackColors,i=n.level,o=n.size;for(var c=0;c<t.length;c++)(r=f.readability(e,t[c]))>s&&(s=r,l=f(t[c]));return f.isReadable(e,l,{level:i,size:o})||!a?l:(n.includeFallbackColors=!1,f.mostReadable(e,["#fff","#000"],n))};var I=f.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},M=f.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(I);function T(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function D(e,t){(function(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)})(e)&&(e="100%");var n=function(e){return"string"==typeof e&&-1!=e.indexOf("%")}(e);return e=c(t,u(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),a.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function R(e){return c(1,u(0,e))}function L(e){return parseInt(e,16)}function B(e){return 1==e.length?"0"+e:""+e}function P(e){return e<=1&&(e=100*e+"%"),e}function K(e){return a.round(255*parseFloat(e)).toString(16)}function F(e){return L(e)/255}var z,Q,W,H=(Q="[\\s|\\(]+("+(z="(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)")+")[,|\\s]+("+z+")[,|\\s]+("+z+")\\s*\\)?",W="[\\s|\\(]+("+z+")[,|\\s]+("+z+")[,|\\s]+("+z+")[,|\\s]+("+z+")\\s*\\)?",{CSS_UNIT:new RegExp(z),rgb:new RegExp("rgb"+Q),rgba:new RegExp("rgba"+W),hsl:new RegExp("hsl"+Q),hsla:new RegExp("hsla"+W),hsv:new RegExp("hsv"+Q),hsva:new RegExp("hsva"+W),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/});function J(e){return!!H.CSS_UNIT.exec(e)}e.exports?e.exports=f:void 0===(r=function(){return f}.call(t,n,t,e))||(e.exports=r)}(Math)},bL63:
|
|
|
/*!*******************************************************************!*\
|
|
|
!*** ./src/pages/Innovation/Tasks/Collaborate/index.less?modules ***!
|
|
|
\*******************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,n){e.exports={bg:"bg___1pgJK",wrap:"wrap___3w7gA",modal:"modal___Z863a",content:"content_____WML",head:"head___74qy3",headCount:"headCount___DydFZ",button:"button___FkPST",itemWrap:"itemWrap___2VFfI",imgWrap:"imgWrap___3YSCX",img:"img___31A6T",manager:"manager___7OBds",itemContent:"itemContent___NJ5LZ",nameWrap:"nameWrap___1nFjv",name:"name___1KHZI",actionGroup:"actionGroup___2FPTE",deleteIcon:"deleteIcon___OtxKH",schoolWrap:"schoolWrap___3vfoh",school:"school___2QmIS",countWrap:"countWrap___22ogC",deletetitle:"deletetitle___3lzPN",yseTitle:"yseTitle___3xmOc"}},bT9E:
|
|
|
/*!*****************************************!*\
|
|
|
!*** ./node_modules/rc-util/es/omit.js ***!
|
|
|
\*****************************************/
|
|
|
/*! exports provided: default */
|
|
|
/*! exports used: default */function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(/*! @babel/runtime/helpers/esm/objectSpread2 */"VTBJ");function a(e,t){var n=Object(r.a)({},e);return Array.isArray(t)&&t.forEach((function(e){delete n[e]})),n}},bUJZ:
|
|
|
/*!**************************************************!*\
|
|
|
!*** ./src/assets/images/cert/zhiyerenzheng.png ***!
|
|
|
\**************************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAAXNSR0IArs4c6QAABq1JREFUWAmVWGuIVVUU/vaZ2zjjOC9TwzFtwAjKHlJBNj4IYgJp/hghIWEE/ahAlCypqB8JoSiRJljQw6KoEGz6oQmNvxqdoB9hailZoZbj2xlndHzMvWf3rX3OOnefc888XLDv2nvttdda+1tr73PONbhJsnZdM64NPsll7YCZBYQtQMAmFPayz2ZPcNCFmvpdxrzR56bG+WPGqQc79PoShOEKGLMQ1hbcOstfsSA8j4wpcrIbQbDFTFzfmaeSlY0ZkB14bT5suIFBtGUXMzj6YzTChbQvXMifN+ghemtMw8Z90WT+74gBWbu9Cv0979HJyvyllI6JkKcjRkQ/MJvR1LbamKUlEWUpNyDbt6oJpeJ2GmCdeDQaAp7ayN14B4b1VVVYapo39Wd1KwJywVy/Tnjt3V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4dguud/XeRt2FXAj3IkgLDIdlY+ODMIJ/LfOB4b5rnPhV0LOADVlWsBn99Ix5VOo9/enLrb8H80nuXyh1Jldgek42Me0dJfTxB1qyiRy3bXfb+JxL/JIy9F3utxxSZrok+MWzjPgxjmxTG0ySKcjvKJ1m4UH+6L3oVK4JUehcpELioYOrWcdsUbmfRY9LrQmxEmBr7XztgHV5KKXciyBSSAaoM8ZA0kwc2R3tO4j4m1JWkTqIRopebLZy4G57/De2Q90PxshVt0ILPqGyPD74MBaPlIYmNoY3V6PefoY8+tefIUJhWtShSxoZIval4mz395l4fICbCNS1VOABV/GwRCZIx9HaOhhSJDxEYr7hr5jShCSsf16xiaYcGVyb+juEq2sgFU/5xXgvlfp/BrTV8M0vc+2Ue2nOdVTiLnZYLNZdnKVKkY1pKNC22reD10OKb+Ik5x7hSvFK7s/wNfhQ5uiYP7YCuxfV64Rh06MtI+22JbGYw7x6VGyd5XZztYmDPKl2OZ9KKpWDq+9Lb61/bkcRBUiww/F+vo2s+RYf3aFP3Z9u62pieHzU9q2pzAe7VHiVo4SgD8vH4gwS83z/algRCWdMreIqqJY98Ripm9z6phWpCC+9v1jL3096tr350GbtJ0XjLivSFkcU8LsJ7Xz+e6V/3dMRZFmBD6ixvRw+2vMC1f5oBuZxgxIl9oPq5ewCOVzaSFl0WPGd+gUMwEh/sPK8A+rl250qq3R+LgDUiN2a2Mzwsv8GJP6sjMp5xuna6LSGzXzL8HvQjBpp3n5Up9MjJf+B5WVB7lfjXHfAAAAAElFTkSuQmCC"},biw7:
|
|
|
/*!**********************************************************!*\
|
|
|
!*** ./node_modules/rc-table/es/context/TableContext.js ***!
|
|
|
\**********************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/*! exports used: default */function(e,t,n){"use strict";var r=n(/*! react */"q1tI"),a=r.createContext(null);t.a=a},c5Ni:
|
|
|
/*!******************************************************!*\
|
|
|
!*** ./node_modules/codemirror/theme/blackboard.css ***!
|
|
|
\******************************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,n){},cRFk:
|
|
|
/*!**************************************************!*\
|
|
|
!*** ./src/assets/images/RepositoryNoneData.png ***!
|
|
|
\**************************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,n){e.exports=n.p+"static/RepositoryNoneData.828085a8.png"},cU5J:
|
|
|
/*!*************************************************************************************************!*\
|
|
|
!*** ./src/pages/Innovation/Tasks/Collaborate/components/ChangeManagerModal/index.less?modules ***!
|
|
|
\*************************************************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,n){e.exports={title:"title___3fOal",content:"content___3uANE",add:"add___1spp2",colorBlue:"colorBlue___hain-",radio:"radio___3M5zN"}},csWT:
|
|
|
/*!********************************************!*\
|
|
|
!*** ./src/assets/images/icons/choose.svg ***!
|
|
|
\********************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,n){e.exports=n.p+"static/choose.4ad1045f.svg"},djh8:
|
|
|
/*!********************************************!*\
|
|
|
!*** ./src/assets/images/icons/qrCode.png ***!
|
|
|
\********************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,n){e.exports=n.p+"static/qrCode.42927872.png"},dmUQ:
|
|
|
/*!**************************************************************!*\
|
|
|
!*** ./node_modules/rc-input-number/es/index.js + 1 modules ***!
|
|
|
\**************************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/createClass.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/inherits.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/classnames/index.js (<- Module is not an ECMAScript module) */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/KeyCode.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/react/index.js (<- Module is not an ECMAScript module) */function(e,t,n){"use strict";var r=n("Ff2n"),a=n("rePB"),i=n("1OyB"),o=n("vuIU"),l=n("Ji7U"),s=n("md7G"),c=n("foSv"),u=n("q1tI"),d=n.n(u),f=n("TSYQ"),p=n.n(f),h=n("4IlW");function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach((function(t){Object(a.a)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Object(c.a)(e);if(t){var a=Object(c.a)(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return Object(s.a)(this,n)}}function b(){}function y(e){e.preventDefault()}var x=Number.MAX_SAFE_INTEGER||Math.pow(2,53)-1,E=function(e){return null!=e},C=function(e,t){return t===e||"number"==typeof t&&"number"==typeof e&&isNaN(t)&&isNaN(e)},A=function(e){Object(l.a)(n,e);var t=g(n);function n(e){var r;Object(i.a)(this,n),(r=t.call(this,e)).onKeyDown=function(e){var t=r.props,n=t.onKeyDown,a=t.onPressEnter;if(e.keyCode===h.a.UP){var i=r.getRatio(e);r.up(e,i,null),r.stop()}else if(e.keyCode===h.a.DOWN){var o=r.getRatio(e);r.down(e,o,null),r.stop()}else e.keyCode===h.a.ENTER&&a&&a(e);if(r.recordCursorPosition(),r.lastKeyCode=e.keyCode,n){for(var l=arguments.length,s=new Array(l>1?l-1:0),c=1;c<l;c++)s[c-1]=arguments[c];n.apply(void 0,[e].concat(s))}},r.onKeyUp=function(e){var t=r.props.onKeyUp;if(r.stop(),r.recordCursorPosition(),t){for(var n=arguments.length,a=new Array(n>1?n-1:0),i=1;i<n;i++)a[i-1]=arguments[i];t.apply(void 0,[e].concat(a))}},r.onChange=function(e){var t=r.props.onChange;r.state.focused&&(r.inputting=!0),r.rawInput=r.props.parser(r.getValueFromEvent(e)),r.setState({inputValue:r.rawInput}),t(r.toNumber(r.rawInput))},r.onMouseUp=function(){var e=r.props.onMouseUp;r.recordCursorPosition(),e&&e.apply(void 0,arguments)},r.onFocus=function(){var e;r.setState({focused:!0}),(e=r.props).onFocus.apply(e,arguments)},r.onBlur=function(){var e=r.props.onBlur;r.inputting=!1,r.setState({focused:!1});var t=r.getCurrentValidValue(r.state.inputValue),n=r.setValue(t,b);if(e){var a=r.input.value,i=r.getInputDisplayValue({focus:!1,value:n});r.input.value=i?Number(i):i,e.apply(void 0,arguments),r.input.value=a}},r.getRatio=function(e){var t=1;return e.metaKey||e.ctrlKey?t=.1:e.shiftKey&&(t=10),t},r.getFullNum=function(e){return isNaN(e)?e:/e/i.test(String(e))?Number(e).toFixed(18).replace(/\.?0+$/,""):e},r.getPrecision=function(e){if(E(r.props.precision))return r.props.precision;var t=String(e);if(t.indexOf("e-")>=0)return parseInt(t.slice(t.indexOf("e-")+2),10);var n=0;return t.indexOf(".")>=0&&(n=t.length-t.indexOf(".")-1),n},r.getInputDisplayValue=function(e){var t,n=e||r.state,a=n.focused,i=n.inputValue,o=n.value;null==(t=a?i:r.toPrecisionAsStep(o))&&(t="");var l=r.formatWrapper(t);return E(r.props.decimalSeparator)&&(l=l.toString().replace(".",r.props.decimalSeparator)),l},r.recordCursorPosition=function(){try{r.cursorStart=r.input.selectionStart,r.cursorEnd=r.input.selectionEnd,r.currentValue=r.input.value,r.cursorBefore=r.input.value.substring(0,r.cursorStart),r.cursorAfter=r.input.value.substring(r.cursorEnd)}catch(e){}},r.restoreByAfter=function(e){if(void 0===e)return!1;var t=r.input.value,n=t.lastIndexOf(e);if(-1===n)return!1;var a=r.cursorBefore.length;return r.lastKeyCode===h.a.DELETE&&r.cursorBefore.charAt(a-1)===e[0]?(r.fixCaret(a,a),!0):n+e.length===t.length&&(r.fixCaret(n,n),!0)},r.partRestoreByAfter=function(e){return void 0!==e&&Array.prototype.some.call(e,(function(t,n){var a=e.substring(n);return r.restoreByAfter(a)}))},r.isNotCompleteNumber=function(e){return isNaN(e)||""===e||null===e||e&&e.toString().indexOf(".")===e.toString().length-1},r.stop=function(){r.autoStepTimer&&clearTimeout(r.autoStepTimer)},r.down=function(e,t,n){r.pressingUpOrDown=!0,r.step("down",e,t,n)},r.up=function(e,t,n){r.pressingUpOrDown=!0,r.step("up",e,t,n)},r.saveInput=function(e){r.input=e};var a=e.value;void 0===a&&(a=e.defaultValue),r.state={focused:e.autoFocus};var o=r.getValidValue(r.toNumber(a));return r.state=v(v({},r.state),{},{inputValue:r.toPrecisionAsStep(o),value:o}),r}return Object(o.a)(n,[{key:"componentDidMount",value:function(){this.componentDidUpdate(null)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.value,r=t.onChange,a=t.max,i=t.min,o=this.state.focused;if(e){if(!C(e.value,n)||!C(e.max,a)||!C(e.min,i)){var l,s=o?n:this.getValidValue(n);l=this.pressingUpOrDown?s:this.inputting?this.rawInput:this.toPrecisionAsStep(s),this.setState({value:s,inputValue:l})}var c="value"in this.props?n:this.state.value;"max"in this.props&&e.max!==a&&"number"==typeof c&&c>a&&r&&r(a),"min"in this.props&&e.min!==i&&"number"==typeof c&&c<i&&r&&r(i)}try{if(void 0!==this.cursorStart&&this.state.focused)if(this.partRestoreByAfter(this.cursorAfter)||this.state.value===this.props.value){if(this.currentValue===this.input.value)switch(this.lastKeyCode){case h.a.BACKSPACE:this.fixCaret(this.cursorStart-1,this.cursorStart-1);break;case h.a.DELETE:this.fixCaret(this.cursorStart+1,this.cursorStart+1)}}else{var u=this.cursorStart+1;this.cursorAfter?this.lastKeyCode===h.a.BACKSPACE?u=this.cursorStart-1:this.lastKeyCode===h.a.DELETE&&(u=this.cursorStart):u=this.input.value.length,this.fixCaret(u,u)}}catch(e){}this.lastKeyCode=null,this.pressingUpOrDown&&this.props.focusOnUpDown&&this.state.focused&&document.activeElement!==this.input&&this.focus()}},{key:"componentWillUnmount",value:function(){this.stop()}},{key:"getCurrentValidValue",value:function(e){var t=e;return t=""===t?"":this.isNotCompleteNumber(parseFloat(t))?this.state.value:this.getValidValue(t),this.toNumber(t)}},{key:"getValueFromEvent",value:function(e){var t=e.target.value.trim().replace(/。/g,".");return E(this.props.decimalSeparator)&&(t=t.replace(this.props.decimalSeparator,".")),t}},{key:"getValidValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.props.min,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.props.max,r=parseFloat(e);return isNaN(r)?e:(r<t&&(r=t),r>n&&(r=n),r)}},{key:"setValue",value:function(e,t){var n=this.props.precision,r=this.isNotCompleteNumber(parseFloat(e))?null:parseFloat(e),a=this.state.value,i=void 0===a?null:a,o=this.state.inputValue,l=void 0===o?null:o,s="number"==typeof r?r.toFixed(n):"".concat(r),c=r!==i||s!=="".concat(l);return"value"in this.props?(l=this.toPrecisionAsStep(this.state.value),this.setState({inputValue:l},t)):this.setState({value:r,inputValue:this.toPrecisionAsStep(e)},t),c&&this.props.onChange(r),r}},{key:"getMaxPrecision",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=this.props,r=n.precision,a=n.step;if(E(r))return r;var i=this.getPrecision(t),o=this.getPrecision(a),l=this.getPrecision(e);return e?Math.max(l,i+o):i+o}},{key:"getPrecisionFactor",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=this.getMaxPrecision(e,t);return Math.pow(10,n)}},{key:"focus",value:function(){this.input.focus(),this.recordCursorPosition()}},{key:"blur",value:function(){this.input.blur()}},{key:"select",value:function(){this.input.select()}},{key:"formatWrapper",value:function(e){return this.props.formatter?this.props.formatter(e):e}},{key:"toPrecisionAsStep",value:function(e){if(this.isNotCompleteNumber(e)||""===e)return e;var t=Math.abs(this.getMaxPrecision(e));return isNaN(t)?e.toString():Number(e).toFixed(t)}},{key:"toNumber",value:function(e){var t=this.props.precision,n=this.state.focused,r=e&&e.length>16&&n;return this.isNotCompleteNumber(e)||r?e:E(t)?Math.round(e*Math.pow(10,t))/Math.pow(10,t):Number(e)}},{key:"upStep",value:function(e,t){var n=this.props.step,r=this.getPrecisionFactor(e,t),a=Math.abs(this.getMaxPrecision(e,t)),i=((r*e+r*n*t)/r).toFixed(a);return this.toNumber(i)}},{key:"downStep",value:function(e,t){var n=this.props.step,r=this.getPrecisionFactor(e,t),a=Math.abs(this.getMaxPrecision(e,t)),i=((r*e-r*n*t)/r).toFixed(a);return this.toNumber(i)}},{key:"step",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,a=arguments.length>3?arguments[3]:void 0;this.stop(),t&&(t.persist(),t.preventDefault());var i=this.props;if(!i.disabled){var o=this.getCurrentValidValue(this.state.inputValue)||0;if(!this.isNotCompleteNumber(o)){var l=this["".concat(e,"Step")](o,r),s=l>i.max||l<i.min;l>i.max?l=i.max:l<i.min&&(l=i.min),this.setValue(l,null),this.setState({focused:!0},(function(){n.pressingUpOrDown=!1})),s||(this.autoStepTimer=setTimeout((function(){n[e](t,r,!0)}),a?200:600))}}}},{key:"fixCaret",value:function(e,t){if(void 0!==e&&void 0!==t&&this.input&&this.input.value)try{var n=this.input.selectionStart,r=this.input.selectionEnd;e===n&&t===r||this.input.setSelectionRange(e,t)}catch(e){}}},{key:"render",value:function(){var e,t=this.props,n=t.prefixCls,i=t.disabled,o=t.readOnly,l=t.useTouch,s=t.autoComplete,c=t.upHandler,u=t.downHandler,f=t.className,h=t.max,m=t.min,v=t.style,g=t.title,x=t.onMouseEnter,E=t.onMouseLeave,C=t.onMouseOver,A=t.onMouseOut,O=t.required,k=t.onClick,w=t.tabIndex,S=t.type,j=t.placeholder,N=t.id,I=t.inputMode,M=t.pattern,T=t.step,D=t.maxLength,R=t.autoFocus,L=t.name,B=t.onPaste,P=t.onInput,K=Object(r.a)(t,["prefixCls","disabled","readOnly","useTouch","autoComplete","upHandler","downHandler","className","max","min","style","title","onMouseEnter","onMouseLeave","onMouseOver","onMouseOut","required","onClick","tabIndex","type","placeholder","id","inputMode","pattern","step","maxLength","autoFocus","name","onPaste","onInput"]),F=this.state,z=F.value,Q=F.focused,W=p()(n,(e={},Object(a.a)(e,f,!!f),Object(a.a)(e,"".concat(n,"-disabled"),i),Object(a.a)(e,"".concat(n,"-focused"),Q),e)),H={};Object.keys(K).forEach((function(e){"data-"!==e.substr(0,5)&&"aria-"!==e.substr(0,5)&&"role"!==e||(H[e]=K[e])}));var J=!o&&!i,U=this.getInputDisplayValue(null),V=(z||0===z)&&(isNaN(z)||Number(z)>=h)||i||o,G=(z||0===z)&&(isNaN(z)||Number(z)<=m)||i||o,Y=p()("".concat(n,"-handler"),"".concat(n,"-handler-up"),Object(a.a)({},"".concat(n,"-handler-up-disabled"),V)),Z=p()("".concat(n,"-handler"),"".concat(n,"-handler-down"),Object(a.a)({},"".concat(n,"-handler-down-disabled"),G)),q=l?{onTouchStart:V?b:this.up,onTouchEnd:this.stop}:{onMouseDown:V?b:this.up,onMouseUp:this.stop,onMouseLeave:this.stop},X=l?{onTouchStart:G?b:this.down,onTouchEnd:this.stop}:{onMouseDown:G?b:this.down,onMouseUp:this.stop,onMouseLeave:this.stop};return d.a.createElement("div",{className:W,style:v,title:g,onMouseEnter:x,onMouseLeave:E,onMouseOver:C,onMouseOut:A,onFocus:function(){return null},onBlur:function(){return null}},d.a.createElement("div",{className:"".concat(n,"-handler-wrap")},d.a.createElement("span",Object.assign({unselectable:"on"},q,{role:"button","aria-label":"Increase Value","aria-disabled":V,className:Y}),c||d.a.createElement("span",{unselectable:"on",className:"".concat(n,"-handler-up-inner"),onClick:y})),d.a.createElement("span",Object.assign({unselectable:"on"},X,{role:"button","aria-label":"Decrease Value","aria-disabled":G,className:Z}),u||d.a.createElement("span",{unselectable:"on",className:"".concat(n,"-handler-down-inner"),onClick:y}))),d.a.createElement("div",{className:"".concat(n,"-input-wrap")},d.a.createElement("input",Object.assign({role:"spinbutton","aria-valuemin":m,"aria-valuemax":h,"aria-valuenow":z,required:O,type:S,placeholder:j,onPaste:B,onClick:k,onMouseUp:this.onMouseUp,className:"".concat(n,"-input"),tabIndex:w,autoComplete:s,onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:J?this.onKeyDown:b,onKeyUp:J?this.onKeyUp:b,autoFocus:R,maxLength:D,readOnly:o,disabled:i,max:h,min:m,step:T,name:L,title:g,id:N,onChange:this.onChange,ref:this.saveInput,value:this.getFullNum(U),pattern:M,inputMode:I,onInput:P},H))))}}]),n}(d.a.Component);A.defaultProps={focusOnUpDown:!0,useTouch:!1,prefixCls:"rc-input-number",max:x,min:-x,step:1,style:{},onChange:b,onKeyDown:b,onPressEnter:b,onFocus:b,onBlur:b,parser:function(e){return e.replace(/[^\w.-]+/g,"")},required:!1,autoComplete:"off"};var O=A;t.a=O},fAei:
|
|
|
/*!******************************************************!*\
|
|
|
!*** ./node_modules/rc-tree/es/index.js + 4 modules ***!
|
|
|
\******************************************************/
|
|
|
/*! exports provided: TreeNode, default */
|
|
|
/*! exports used: TreeNode, default */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/createClass.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/createSuper.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/inherits.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/classnames/index.js (<- Module is not an ECMAScript module) */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-motion/es/index.js (<- Module is referenced from these modules with unsupported syntax: ./node_modules/antd/lib/button/LoadingIcon.js (referenced with cjs require)) */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-tree/es/TreeNode.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-tree/es/contextTypes.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-tree/es/util.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-tree/es/utils/conductUtil.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-tree/es/utils/treeUtil.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/KeyCode.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/warning.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-virtual-list/es/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/react/index.js (<- Module is not an ECMAScript module) */function(e,t,n){"use strict";n.d(t,"a",(function(){return C.a}));var r=n("rePB"),a=n("VTBJ"),i=n("KQm4"),o=n("1OyB"),l=n("vuIU"),s=n("Ji7U"),c=n("LK+K"),u=n("q1tI"),d=n("4IlW"),f=n("Kwbf"),p=n("TSYQ"),h=n.n(p),m=n("sboe"),v=n("OZM5"),g=n("815F"),b=n("ODXe"),y=n("Ff2n"),x=n("+nKL"),E=n("8XRh"),C=n("WaYH"),A=function(e,t){var n=e.className,r=e.style,a=e.motion,i=e.motionNodes,o=e.motionType,l=e.onMotionStart,s=e.onMotionEnd,c=e.active,d=e.treeNodeRequiredProps,f=Object(y.a)(e,["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"]),p=u.useState(!0),v=Object(b.a)(p,2),x=v[0],A=v[1],O=u.useContext(m.a).prefixCls,k=u.useRef(!1),w=function(){k.current||s(),k.current=!0};return Object(u.useEffect)((function(){i&&"hide"===o&&x&&A(!1)}),[i]),Object(u.useEffect)((function(){return i&&l(),function(){i&&w()}}),[]),i?u.createElement(E.default,Object.assign({ref:t,visible:x},a,{motionAppear:"show"===o,onAppearEnd:w,onLeaveEnd:w}),(function(e,t){var n=e.className,r=e.style;return u.createElement("div",{ref:t,className:h()("".concat(O,"-treenode-motion"),n),style:r},i.map((function(e){var t=e.data,n=t.key,r=Object(y.a)(t,["key"]),a=e.isStart,i=e.isEnd;delete r.children;var o=Object(g.f)(n,d);return u.createElement(C.a,Object.assign({},r,o,{active:c,data:e.data,key:n,isStart:a,isEnd:i}))})))})):u.createElement(C.a,Object.assign({domRef:t,className:n,style:r},f,{active:c}))};A.displayName="MotionTreeNode";var O=u.forwardRef(A);function k(e,t,n){var r=e.findIndex((function(e){return e.data.key===n})),a=e[r+1],i=t.findIndex((function(e){return e.data.key===n}));if(a){var o=t.findIndex((function(e){return e.data.key===a.data.key}));return t.slice(i+1,o)}return t.slice(i+1)}var w={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},S=function(){},j="RC_TREE_MOTION_".concat(Math.random()),N={key:j},I={key:j,level:0,index:0,pos:"0",node:N},M={parent:null,children:[],pos:I.pos,data:N,isStart:[],isEnd:[]};function T(e,t,n,r){return!1!==t&&n?e.slice(0,Math.ceil(n/r)+1):e}function D(e){var t=e.data.key,n=e.pos;return Object(g.e)(t,n)}var R=u.forwardRef((function(e,t){var n=e.prefixCls,r=e.data,a=(e.selectable,e.checkable,e.expandedKeys),i=e.selectedKeys,o=e.checkedKeys,l=e.loadedKeys,s=e.loadingKeys,c=e.halfCheckedKeys,d=e.keyEntities,f=e.disabled,p=e.dragging,h=e.dragOverNodeKey,m=e.dropPosition,v=e.motion,E=e.height,C=e.itemHeight,A=e.virtual,N=e.focusable,I=e.activeItem,R=e.focused,L=e.tabIndex,B=e.onKeyDown,P=e.onFocus,K=e.onBlur,F=e.onActiveChange,z=e.onListChangeStart,Q=e.onListChangeEnd,W=Object(y.a)(e,["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"]),H=u.useRef(null);u.useImperativeHandle(t,(function(){return{scrollTo:function(e){H.current.scrollTo(e)}}}));var J=u.useState(a),U=Object(b.a)(J,2),V=U[0],G=U[1],Y=u.useState(r),Z=Object(b.a)(Y,2),q=Z[0],X=Z[1],_=u.useState(r),$=Object(b.a)(_,2),ee=$[0],te=$[1],ne=u.useState([]),re=Object(b.a)(ne,2),ae=re[0],ie=re[1],oe=u.useState(null),le=Object(b.a)(oe,2),se=le[0],ce=le[1];function ue(){X(r),te(r),ie([]),ce(null),Q()}u.useEffect((function(){G(a);var e=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=e.length,r=t.length;if(1!==Math.abs(n-r))return{add:!1,key:null};function a(e,t){var n=new Map;e.forEach((function(e){n.set(e,!0)}));var r=t.filter((function(e){return!n.has(e)}));return 1===r.length?r[0]:null}return n<r?{add:!0,key:a(e,t)}:{add:!1,key:a(t,e)}}(V,a);if(null!==e.key)if(e.add){var t=q.findIndex((function(t){return t.data.key===e.key})),n=T(k(q,r,e.key),A,E,C),i=q.slice();i.splice(t+1,0,M),te(i),ie(n),ce("show")}else{var o=r.findIndex((function(t){return t.data.key===e.key})),l=T(k(r,q,e.key),A,E,C),s=r.slice();s.splice(o+1,0,M),te(s),ie(l),ce("hide")}else q!==r&&(X(r),te(r))}),[a,r]),u.useEffect((function(){p||ue()}),[p]);var de=v?ee:r,fe={expandedKeys:a,selectedKeys:i,loadedKeys:l,loadingKeys:s,checkedKeys:o,halfCheckedKeys:c,dragOverNodeKey:h,dropPosition:m,keyEntities:d};return u.createElement(u.Fragment,null,R&&I&&u.createElement("span",{style:w,"aria-live":"assertive"},function(e){for(var t=String(e.data.key),n=e;n.parent;)n=n.parent,t="".concat(n.data.key," > ").concat(t);return t}(I)),u.createElement("div",{role:"tree"},u.createElement("input",{style:w,disabled:!1===N||f,tabIndex:!1!==N?L:null,onKeyDown:B,onFocus:P,onBlur:K,value:"",onChange:S})),u.createElement(x.a,Object.assign({},W,{data:de,itemKey:D,height:E,fullHeight:!1,virtual:A,itemHeight:C,prefixCls:"".concat(n,"-list"),ref:H}),(function(e){var t=e.pos,n=e.data,r=n.key,a=Object(y.a)(n,["key"]),i=e.isStart,o=e.isEnd,l=Object(g.e)(r,t);delete a.children;var s=Object(g.f)(l,fe);return u.createElement(O,Object.assign({},a,s,{active:I&&r===I.data.key,pos:t,data:e.data,isStart:i,isEnd:o,motion:v,motionNodes:r===j?ae:null,motionType:se,onMotionStart:z,onMotionEnd:ue,treeNodeRequiredProps:fe,onMouseMove:function(){F(null)}}))})))}));R.displayName="NodeList";var L=R,B=n("NvD2"),P=function(e){Object(s.a)(n,e);var t=Object(c.a)(n);function n(){var e;return Object(o.a)(this,n),(e=t.apply(this,arguments)).destroyed=!1,e.state={keyEntities:{},selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],dragging:!1,dragNodesKeys:[],dragOverNodeKey:null,dropPosition:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null},e.listRef=u.createRef(),e.onNodeDragStart=function(t,n){var r=e.state,a=r.expandedKeys,i=r.keyEntities,o=e.props.onDragStart,l=n.props.eventKey;e.dragNode=n;var s=Object(v.b)(a,l);e.setState({dragging:!0,dragNodesKeys:Object(v.g)(l,i)}),e.setExpandedKeys(s),o&&o({event:t,node:Object(g.b)(n.props)})},e.onNodeDragEnter=function(t,n){var r=e.state,a=r.expandedKeys,o=r.keyEntities,l=r.dragNodesKeys,s=e.props.onDragEnter,c=n.props,u=c.pos,d=c.eventKey;if(e.dragNode&&-1===l.indexOf(d)){var f=Object(v.c)(t,n);e.dragNode.props.eventKey!==d||0!==f?setTimeout((function(){e.setState({dragOverNodeKey:d,dropPosition:f}),e.delayedDragEnterLogic||(e.delayedDragEnterLogic={}),Object.keys(e.delayedDragEnterLogic).forEach((function(t){clearTimeout(e.delayedDragEnterLogic[t])})),e.delayedDragEnterLogic[u]=window.setTimeout((function(){if(e.state.dragging){var r=Object(i.a)(a),l=o[d];l&&(l.children||[]).length&&(r=Object(v.a)(a,d)),"expandedKeys"in e.props||e.setExpandedKeys(r),s&&s({event:t,node:Object(g.b)(n.props),expandedKeys:r})}}),400)}),0):e.setState({dragOverNodeKey:"",dropPosition:null})}},e.onNodeDragOver=function(t,n){var r=e.state.dragNodesKeys,a=e.props.onDragOver,i=n.props.eventKey;if(-1===r.indexOf(i)){if(e.dragNode&&i===e.state.dragOverNodeKey){var o=Object(v.c)(t,n);if(o===e.state.dropPosition)return;e.setState({dropPosition:o})}a&&a({event:t,node:Object(g.b)(n.props)})}},e.onNodeDragLeave=function(t,n){var r=e.props.onDragLeave;e.setState({dragOverNodeKey:""}),r&&r({event:t,node:Object(g.b)(n.props)})},e.onNodeDragEnd=function(t,n){var r=e.props.onDragEnd;e.setState({dragOverNodeKey:""}),e.cleanDragState(),r&&r({event:t,node:Object(g.b)(n.props)}),e.dragNode=null},e.onNodeDrop=function(t,n){var r=e.state,a=r.dragNodesKeys,i=void 0===a?[]:a,o=r.dropPosition,l=e.props.onDrop,s=n.props,c=s.eventKey,u=s.pos;if(e.setState({dragOverNodeKey:""}),e.cleanDragState(),-1===i.indexOf(c)){var d=Object(v.k)(u),p={event:t,node:Object(g.b)(n.props),dragNode:e.dragNode?Object(g.b)(e.dragNode.props):null,dragNodesKeys:i.slice(),dropPosition:o+Number(d[d.length-1]),dropToGap:!1};0!==o&&(p.dropToGap=!0),l&&l(p),e.dragNode=null}else Object(f.a)(!1,"Can not drop to dragNode(include it's children node)")},e.cleanDragState=function(){e.state.dragging&&e.setState({dragging:!1})},e.onNodeClick=function(t,n){var r=e.props.onClick;r&&r(t,n)},e.onNodeDoubleClick=function(t,n){var r=e.props.onDoubleClick;r&&r(t,n)},e.onNodeSelect=function(t,n){var r=e.state.selectedKeys,a=e.state.keyEntities,i=e.props,o=i.onSelect,l=i.multiple,s=n.selected,c=n.key,u=!s,d=(r=u?l?Object(v.a)(r,c):[c]:Object(v.b)(r,c)).map((function(e){var t=a[e];return t?t.node:null})).filter((function(e){return e}));e.setUncontrolledState({selectedKeys:r}),o&&o(r,{event:"select",selected:u,node:n,selectedNodes:d,nativeEvent:t.nativeEvent})},e.onNodeCheck=function(t,n,r){var a,o=e.state,l=o.keyEntities,s=o.checkedKeys,c=o.halfCheckedKeys,u=e.props,d=u.checkStrictly,f=u.onCheck,p=n.key,h={event:"check",node:n,checked:r,nativeEvent:t.nativeEvent};if(d){var m=r?Object(v.a)(s,p):Object(v.b)(s,p);a={checked:m,halfChecked:Object(v.b)(c,p)},h.checkedNodes=m.map((function(e){return l[e]})).filter((function(e){return e})).map((function(e){return e.node})),e.setUncontrolledState({checkedKeys:m})}else{var g=Object(B.a)([].concat(Object(i.a)(s),[p]),!0,l),b=g.checkedKeys,y=g.halfCheckedKeys;if(!r){var x=new Set(b);x.delete(p);var E=Object(B.a)(Array.from(x),{checked:!1,halfCheckedKeys:y},l);b=E.checkedKeys,y=E.halfCheckedKeys}a=b,h.checkedNodes=[],h.checkedNodesPositions=[],h.halfCheckedKeys=y,b.forEach((function(e){var t=l[e];if(t){var n=t.node,r=t.pos;h.checkedNodes.push(n),h.checkedNodesPositions.push({node:n,pos:r})}})),e.setUncontrolledState({checkedKeys:b},!1,{halfCheckedKeys:y})}f&&f(a,h)},e.onNodeLoad=function(t){return new Promise((function(n){e.setState((function(r){var a=r.loadedKeys,i=void 0===a?[]:a,o=r.loadingKeys,l=void 0===o?[]:o,s=e.props,c=s.loadData,u=s.onLoad,d=t.key;return c&&-1===i.indexOf(d)&&-1===l.indexOf(d)?(c(t).then((function(){var r=e.state,a=r.loadedKeys,i=r.loadingKeys,o=Object(v.a)(a,d),l=Object(v.b)(i,d);u&&u(o,{event:"load",node:t}),e.setUncontrolledState({loadedKeys:o}),e.setState({loadingKeys:l}),n()})),{loadingKeys:Object(v.a)(l,d)}):{}}))}))},e.onNodeMouseEnter=function(t,n){var r=e.props.onMouseEnter;r&&r({event:t,node:n})},e.onNodeMouseLeave=function(t,n){var r=e.props.onMouseLeave;r&&r({event:t,node:n})},e.onNodeContextMenu=function(t,n){var r=e.props.onRightClick;r&&(t.preventDefault(),r({event:t,node:n}))},e.onFocus=function(){var t=e.props.onFocus;e.setState({focused:!0}),t&&t.apply(void 0,arguments)},e.onBlur=function(){var t=e.props.onBlur;e.setState({focused:!1}),e.onActiveChange(null),t&&t.apply(void 0,arguments)},e.getTreeNodeRequiredProps=function(){var t=e.state;return{expandedKeys:t.expandedKeys||[],selectedKeys:t.selectedKeys||[],loadedKeys:t.loadedKeys||[],loadingKeys:t.loadingKeys||[],checkedKeys:t.checkedKeys||[],halfCheckedKeys:t.halfCheckedKeys||[],dragOverNodeKey:t.dragOverNodeKey,dropPosition:t.dropPosition,keyEntities:t.keyEntities}},e.setExpandedKeys=function(t){var n=e.state.treeData,r=Object(g.d)(n,t);e.setUncontrolledState({expandedKeys:t,flattenNodes:r},!0)},e.onNodeExpand=function(t,n){var r=e.state.expandedKeys,a=e.state.listChanging,i=e.props,o=i.onExpand,l=i.loadData,s=n.key,c=n.expanded;if(!a){var u=r.indexOf(s),d=!c;if(Object(f.a)(c&&-1!==u||!c&&-1===u,"Expand state not sync with index check"),r=d?Object(v.a)(r,s):Object(v.b)(r,s),e.setExpandedKeys(r),o&&o(r,{node:n,expanded:d,nativeEvent:t.nativeEvent}),d&&l){var p=e.onNodeLoad(n);p&&p.then((function(){var t=Object(g.d)(e.state.treeData,r);e.setUncontrolledState({flattenNodes:t})}))}}},e.onListChangeStart=function(){e.setUncontrolledState({listChanging:!0})},e.onListChangeEnd=function(){setTimeout((function(){e.setUncontrolledState({listChanging:!1})}))},e.onActiveChange=function(t){var n=e.state.activeKey,r=e.props.onActiveChange;n!==t&&(e.setState({activeKey:t}),null!==t&&e.scrollTo({key:t}),r&&r(t))},e.getActiveItem=function(){var t=e.state,n=t.activeKey,r=t.flattenNodes;return null===n?null:r.find((function(e){return e.data.key===n}))||null},e.offsetActiveKey=function(t){var n=e.state,r=n.flattenNodes,a=n.activeKey,i=r.findIndex((function(e){return e.data.key===a}));-1===i&&t<0&&(i=r.length);var o=r[i=(i+t+r.length)%r.length];if(o){var l=o.data.key;e.onActiveChange(l)}else e.onActiveChange(null)},e.onKeyDown=function(t){var n=e.state,r=n.activeKey,i=n.expandedKeys,o=n.checkedKeys,l=e.props,s=l.onKeyDown,c=l.checkable,u=l.selectable;switch(t.which){case d.a.UP:e.offsetActiveKey(-1),t.preventDefault();break;case d.a.DOWN:e.offsetActiveKey(1),t.preventDefault()}var f=e.getActiveItem();if(f&&f.data){var p=e.getTreeNodeRequiredProps(),h=!1===f.data.isLeaf||!!(f.data.children||[]).length,m=Object(g.b)(Object(a.a)(Object(a.a)({},Object(g.f)(r,p)),{},{data:f.data,active:!0}));switch(t.which){case d.a.LEFT:h&&i.includes(r)?e.onNodeExpand({},m):f.parent&&e.onActiveChange(f.parent.data.key),t.preventDefault();break;case d.a.RIGHT:h&&!i.includes(r)?e.onNodeExpand({},m):f.children&&f.children.length&&e.onActiveChange(f.children[0].data.key),t.preventDefault();break;case d.a.ENTER:case d.a.SPACE:!c||m.disabled||!1===m.checkable||m.disableCheckbox?c||!u||m.disabled||!1===m.selectable||e.onNodeSelect({},m):e.onNodeCheck({},m,!o.includes(r))}}s&&s(t)},e.setUncontrolledState=function(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!e.destroyed){var i=!1,o=!0,l={};Object.keys(t).forEach((function(n){n in e.props?o=!1:(i=!0,l[n]=t[n])})),!i||n&&!o||e.setState(Object(a.a)(Object(a.a)({},l),r))}},e.scrollTo=function(t){e.listRef.current.scrollTo(t)},e}return Object(l.a)(n,[{key:"componentWillUnmount",value:function(){this.destroyed=!0}},{key:"render",value:function(){var e,t=this.state,n=t.focused,a=t.flattenNodes,i=t.keyEntities,o=t.dragging,l=t.activeKey,s=this.props,c=s.prefixCls,d=s.className,f=s.style,p=s.showLine,g=s.focusable,b=s.tabIndex,y=void 0===b?0:b,x=s.selectable,E=s.showIcon,C=s.icon,A=s.switcherIcon,O=s.draggable,k=s.checkable,w=s.checkStrictly,S=s.disabled,j=s.motion,N=s.loadData,I=s.filterTreeNode,M=s.height,T=s.itemHeight,D=s.virtual,R=s.titleRender,B=s.onContextMenu,P=Object(v.f)(this.props);return u.createElement(m.a.Provider,{value:{prefixCls:c,selectable:x,showIcon:E,icon:C,switcherIcon:A,draggable:O,checkable:k,checkStrictly:w,disabled:S,keyEntities:i,loadData:N,filterTreeNode:I,titleRender:R,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop}},u.createElement("div",{className:h()(c,d,(e={},Object(r.a)(e,"".concat(c,"-show-line"),p),Object(r.a)(e,"".concat(c,"-focused"),n),Object(r.a)(e,"".concat(c,"-active-focused"),null!==l),e))},u.createElement(L,Object.assign({ref:this.listRef,prefixCls:c,style:f,data:a,disabled:S,selectable:x,checkable:!!k,motion:j,dragging:o,height:M,itemHeight:T,virtual:D,focusable:g,focused:n,tabIndex:y,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:B},this.getTreeNodeRequiredProps(),P))))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n,i=t.prevProps,o={prevProps:e};function l(t){return!i&&t in e||i&&i[t]!==e[t]}if(l("treeData")?n=e.treeData:l("children")&&(Object(f.a)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),n=Object(g.c)(e.children)),n){o.treeData=n;var s=Object(g.a)(n);o.keyEntities=Object(a.a)(Object(r.a)({},j,I),s.keyEntities)}var c,u=o.keyEntities||t.keyEntities;if(l("expandedKeys")||i&&l("autoExpandParent"))o.expandedKeys=e.autoExpandParent||!i&&e.defaultExpandParent?Object(v.e)(e.expandedKeys,u):e.expandedKeys;else if(!i&&e.defaultExpandAll){var d=Object(a.a)({},u);delete d[j],o.expandedKeys=Object.keys(d).map((function(e){return d[e].key}))}else!i&&e.defaultExpandedKeys&&(o.expandedKeys=e.autoExpandParent||e.defaultExpandParent?Object(v.e)(e.defaultExpandedKeys,u):e.defaultExpandedKeys);if(o.expandedKeys||delete o.expandedKeys,n||o.expandedKeys){var p=Object(g.d)(n||t.treeData,o.expandedKeys||t.expandedKeys);o.flattenNodes=p}if((e.selectable&&(l("selectedKeys")?o.selectedKeys=Object(v.d)(e.selectedKeys,e):!i&&e.defaultSelectedKeys&&(o.selectedKeys=Object(v.d)(e.defaultSelectedKeys,e))),e.checkable)&&(l("checkedKeys")?c=Object(v.j)(e.checkedKeys)||{}:!i&&e.defaultCheckedKeys?c=Object(v.j)(e.defaultCheckedKeys)||{}:n&&(c=Object(v.j)(e.checkedKeys)||{checkedKeys:t.checkedKeys,halfCheckedKeys:t.halfCheckedKeys}),c)){var h=c,m=h.checkedKeys,b=void 0===m?[]:m,y=h.halfCheckedKeys,x=void 0===y?[]:y;if(!e.checkStrictly){var E=Object(B.a)(b,!0,u);b=E.checkedKeys,x=E.halfCheckedKeys}o.checkedKeys=b,o.halfCheckedKeys=x}return l("loadedKeys")&&(o.loadedKeys=e.loadedKeys),o}}]),n}(u.Component);P.defaultProps={prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[]},P.TreeNode=C.a;var K=P;t.b=K},fr4D:
|
|
|
/*!***********************************!*\
|
|
|
!*** ./src/service/innovation.ts ***!
|
|
|
\***********************************/
|
|
|
/*! exports provided: createProject, editProject, getMirrorRepos, getProjectList, deleteProject, getProjectDetail, getDataSetList, removeDataSets, startEnvironment, forkProject, getProjectDataSet, getRunningLogs, getDataSetDetail, updateDataSetIntro, getJupyterHostList, addJupyterHost, editJupyterHost, getJupyterHostDetail, deleteJupyterHost, getRunningList, deletePod */
|
|
|
/*! exports used: addJupyterHost, createProject, deleteJupyterHost, deleteProject, editJupyterHost, editProject, forkProject, getDataSetDetail, getDataSetList, getJupyterHostList, getMirrorRepos, getProjectDataSet, getProjectDetail, getProjectList, getRunningList, getRunningLogs, startEnvironment, updateDataSetIntro */function(e,t,n){"use strict";n.d(t,"b",(function(){return l})),n.d(t,"f",(function(){return c})),n.d(t,"k",(function(){return d})),n.d(t,"n",(function(){return p})),n.d(t,"d",(function(){return m})),n.d(t,"m",(function(){return g})),n.d(t,"i",(function(){return y})),n.d(t,"q",(function(){return E})),n.d(t,"g",(function(){return A})),n.d(t,"l",(function(){return k})),n.d(t,"p",(function(){return S})),n.d(t,"h",(function(){return N})),n.d(t,"r",(function(){return M})),n.d(t,"j",(function(){return D})),n.d(t,"a",(function(){return L})),n.d(t,"e",(function(){return P})),n.d(t,"c",(function(){return F})),n.d(t,"o",(function(){return Q}));var r=n(/*! ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/asyncToGenerator */"9og8"),a=n(/*! ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/regenerator */"WmNS"),i=n.n(a),o=n(/*! @/utils/fetch */"ErOA");function l(e){return s.apply(this,arguments)}function s(){return(s=Object(r.a)(i.a.mark((function e(t){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Object(o.a)("/api/sci/projects.json",{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function c(e,t){return u.apply(this,arguments)}function u(){return(u=Object(r.a)(i.a.mark((function e(t,n){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Object(o.a)("/api/sci/projects/".concat(n,".json"),{method:"put",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function d(e){return f.apply(this,arguments)}function f(){return(f=Object(r.a)(i.a.mark((function e(t){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Object(o.a)("/api/sci/projects/sci_mirror_repositories.json",{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function p(e){return h.apply(this,arguments)}function h(){return(h=Object(r.a)(i.a.mark((function e(t){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Object(o.a)("/api/sci/projects.json",{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function m(e,t){return v.apply(this,arguments)}function v(){return(v=Object(r.a)(i.a.mark((function e(t,n){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Object(o.a)("/api/sci/projects/".concat(t,".json"),{method:"delete",body:n}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function g(e){return b.apply(this,arguments)}function b(){return(b=Object(r.a)(i.a.mark((function e(t){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Object(o.a)("/api/sci/projects/".concat(t,".json"),{method:"get"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function y(e){return x.apply(this,arguments)}function x(){return(x=Object(r.a)(i.a.mark((function e(t){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Object(o.a)("/api/sci/projects/data_sets.json",{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function E(e){return C.apply(this,arguments)}function C(){return(C=Object(r.a)(i.a.mark((function e(t){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Object(o.a)("/api/sci/projects/".concat(t,"/start_environment.json"),{method:"post"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function A(e,t){return O.apply(this,arguments)}function O(){return(O=Object(r.a)(i.a.mark((function e(t,n){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Object(o.a)("/api/sci/projects/".concat(t,"/fork_sci_project.json"),{method:"post",body:n}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function k(e,t){return w.apply(this,arguments)}function w(){return(w=Object(r.a)(i.a.mark((function e(t,n){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Object(o.a)("/api/sci/projects/".concat(t,"/get_data_sets.json"),{method:"get",params:n}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function S(e){return j.apply(this,arguments)}function j(){return(j=Object(r.a)(i.a.mark((function e(t){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Object(o.a)("/api/sci/projects/".concat(t,"/running_logs.json"),{method:"get"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function N(e){return I.apply(this,arguments)}function I(){return(I=Object(r.a)(i.a.mark((function e(t){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Object(o.a)("/api/sci/projects/attachment_detail.json",{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function M(e){return T.apply(this,arguments)}function T(){return(T=Object(r.a)(i.a.mark((function e(t){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Object(o.a)("/api/sci/projects/update_attachment_introduce.json",{method:"PUT",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function D(e){return R.apply(this,arguments)}function R(){return(R=Object(r.a)(i.a.mark((function e(t){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Object(o.a)("/api/sci/projects/jupyter_host_list.json",{method:"get",params:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function L(e){return B.apply(this,arguments)}function B(){return(B=Object(r.a)(i.a.mark((function e(t){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Object(o.a)("/api/sci/projects/add_jupyter_host.json",{method:"post",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function P(e){return K.apply(this,arguments)}function K(){return(K=Object(r.a)(i.a.mark((function e(t){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Object(o.a)("/api/sci/projects/edit_jupyter_host.json",{method:"put",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function F(e){return z.apply(this,arguments)}function z(){return(z=Object(r.a)(i.a.mark((function e(t){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Object(o.a)("/api/sci/projects/delete_jupyter_host.json",{method:"delete",body:t}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Q(){return W.apply(this,arguments)}function W(){return(W=Object(r.a)(i.a.mark((function e(){return i.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Object(o.a)("/api/sci/projects/get_running_list.json",{method:"get"}));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}},fyJ8:
|
|
|
/*!************************************************!*\
|
|
|
!*** ./node_modules/rc-table/es/Cell/index.js ***!
|
|
|
\************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/*! exports used: default */function(e,t,n){"use strict";var r=n(/*! @babel/runtime/helpers/esm/defineProperty */"rePB"),a=n(/*! @babel/runtime/helpers/esm/objectSpread2 */"VTBJ"),i=n(/*! @babel/runtime/helpers/esm/objectWithoutProperties */"Ff2n"),o=n(/*! @babel/runtime/helpers/esm/typeof */"U8pU"),l=n(/*! react */"q1tI"),s=n(/*! classnames */"TSYQ"),c=n.n(s),u=n(/*! rc-util/es/ref */"c+Xe"),d=n(/*! ../utils/valueUtil */"sR1s");var f=l.forwardRef((function(e,t){var n,s,f,p,h=e.prefixCls,m=e.className,v=e.record,g=e.index,b=e.dataIndex,y=e.render,x=e.children,E=e.component,C=void 0===E?"td":E,A=e.colSpan,O=e.rowSpan,k=e.fixLeft,w=e.fixRight,S=e.firstFixLeft,j=e.lastFixLeft,N=e.firstFixRight,I=e.lastFixRight,M=e.appendNode,T=e.additionalProps,D=void 0===T?{}:T,R=e.ellipsis,L=e.align,B=e.rowType,P=e.isSticky,K="".concat(h,"-cell");if(x)f=x;else{var F=Object(d.b)(v,b);if(f=F,y){var z=y(F,v,g);!(p=z)||"object"!==Object(o.a)(p)||Array.isArray(p)||l.isValidElement(p)?f=z:(f=z.children,s=z.props)}}"object"!==Object(o.a)(f)||Array.isArray(f)||l.isValidElement(f)||(f=null),R&&(j||N)&&(f=l.createElement("span",{className:"".concat(K,"-content")},f));var Q=s||{},W=Q.colSpan,H=Q.rowSpan,J=Q.style,U=Q.className,V=Object(i.a)(Q,["colSpan","rowSpan","style","className"]),G=void 0!==W?W:A,Y=void 0!==H?H:O;if(0===G||0===Y)return null;var Z={},q="number"==typeof k,X="number"==typeof w;q&&(Z.position="sticky",Z.left=k),X&&(Z.position="sticky",Z.right=w);var _,$={};L&&($.textAlign=L);var ee=!0===R?{showTitle:!0}:R;ee&&(ee.showTitle||"header"===B)&&("string"==typeof f||"number"==typeof f?_=f.toString():l.isValidElement(f)&&"string"==typeof f.props.children&&(_=f.props.children));var te,ne=Object(a.a)(Object(a.a)(Object(a.a)({title:_},V),D),{},{colSpan:G&&1!==G?G:null,rowSpan:Y&&1!==Y?Y:null,className:c()(K,m,(n={},Object(r.a)(n,"".concat(K,"-fix-left"),q),Object(r.a)(n,"".concat(K,"-fix-left-first"),S),Object(r.a)(n,"".concat(K,"-fix-left-last"),j),Object(r.a)(n,"".concat(K,"-fix-right"),X),Object(r.a)(n,"".concat(K,"-fix-right-first"),N),Object(r.a)(n,"".concat(K,"-fix-right-last"),I),Object(r.a)(n,"".concat(K,"-ellipsis"),R),Object(r.a)(n,"".concat(K,"-with-append"),M),Object(r.a)(n,"".concat(K,"-fix-sticky"),(q||X)&&P),n),D.className,U),style:Object(a.a)(Object(a.a)(Object(a.a)(Object(a.a)({},D.style),$),Z),J),ref:(te=C,"string"==typeof te||Object(u.c)(te)?t:null)});return l.createElement(C,Object.assign({},ne),M,f)}));f.displayName="Cell";var p=l.memo(f,(function(e,t){return!!t.shouldCellUpdate&&!t.shouldCellUpdate(t.record,e.record)}));t.a=p},h78n:
|
|
|
/*!**********************************************************!*\
|
|
|
!*** ./node_modules/rc-progress/es/index.js + 3 modules ***!
|
|
|
\**********************************************************/
|
|
|
/*! exports provided: Line, Circle, default */
|
|
|
/*! exports used: Circle */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/classnames/index.js (<- Module is not an ECMAScript module) */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/react/index.js (<- Module is not an ECMAScript module) */function(e,t,n){"use strict";n.d(t,"a",(function(){return A}));var r=n("q1tI"),a=n.n(r),i=n("TSYQ"),o=n.n(i),l={className:"",percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,style:{},trailColor:"#D9D9D9",trailWidth:1},s=function(e){var t=e.map((function(){return Object(r.useRef)()})),n=Object(r.useRef)();return Object(r.useEffect)((function(){var e=Date.now(),r=!1;Object.keys(t).forEach((function(a){var i=t[a].current;if(i){r=!0;var o=i.style;o.transitionDuration=".3s, .3s, .3s, .06s",n.current&&e-n.current<100&&(o.transitionDuration="0s, 0s")}})),r&&(n.current=Date.now())})),[t]};function c(){return(c=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function u(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,a=!1,i=void 0;try{for(var o,l=e[Symbol.iterator]();!(r=(o=l.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){a=!0,i=e}finally{try{r||null==l.return||l.return()}finally{if(a)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return d(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return d(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function f(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var p=function(e){var t=e.className,n=e.percent,r=e.prefixCls,i=e.strokeColor,l=e.strokeLinecap,d=e.strokeWidth,p=e.style,h=e.trailColor,m=e.trailWidth,v=e.transition,g=f(e,["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"]);delete g.gapPosition;var b=Array.isArray(n)?n:[n],y=Array.isArray(i)?i:[i],x=u(s(b),1)[0],E=d/2,C=100-d/2,A="M ".concat("round"===l?E:0,",").concat(E,"\n L ").concat("round"===l?C:100,",").concat(E),O="0 0 100 ".concat(d),k=0;return a.a.createElement("svg",c({className:o()("".concat(r,"-line"),t),viewBox:O,preserveAspectRatio:"none",style:p},g),a.a.createElement("path",{className:"".concat(r,"-line-trail"),d:A,strokeLinecap:l,stroke:h,strokeWidth:m||d,fillOpacity:"0"}),b.map((function(e,t){var n={strokeDasharray:"".concat(e,"px, 100px"),strokeDashoffset:"-".concat(k,"px"),transition:v||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},i=y[t]||y[y.length-1];return k+=e,a.a.createElement("path",{key:t,className:"".concat(r,"-line-path"),d:A,strokeLinecap:l,stroke:i,strokeWidth:d,fillOpacity:"0",ref:x[t],style:n})})))};p.defaultProps=l;function h(){return(h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function m(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,a=!1,i=void 0;try{for(var o,l=e[Symbol.iterator]();!(r=(o=l.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){a=!0,i=e}finally{try{r||null==l.return||l.return()}finally{if(a)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return v(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return v(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function g(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var b=0;function y(e){return+e.replace("%","")}function x(e){return Array.isArray(e)?e:[e]}function E(e,t,n,r){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,i=arguments.length>5?arguments[5]:void 0,o=50-r/2,l=0,s=-o,c=0,u=-2*o;switch(i){case"left":l=-o,s=0,c=2*o,u=0;break;case"right":l=o,s=0,c=-2*o,u=0;break;case"bottom":s=o,u=2*o}var d="M 50,50 m ".concat(l,",").concat(s,"\n a ").concat(o,",").concat(o," 0 1 1 ").concat(c,",").concat(-u,"\n a ").concat(o,",").concat(o," 0 1 1 ").concat(-c,",").concat(u),f=2*Math.PI*o,p={stroke:n,strokeDasharray:"".concat(t/100*(f-a),"px ").concat(f,"px"),strokeDashoffset:"-".concat(a/2+e/100*(f-a),"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s"};return{pathString:d,pathStyle:p}}var C=function(e){var t,n=e.prefixCls,i=e.strokeWidth,l=e.trailWidth,c=e.gapDegree,u=e.gapPosition,d=e.trailColor,f=e.strokeLinecap,p=e.style,v=e.className,C=e.strokeColor,A=e.percent,O=g(e,["prefixCls","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"]),k=Object(r.useMemo)((function(){return b+=1}),[]),w=E(0,100,d,i,c,u),S=w.pathString,j=w.pathStyle,N=x(A),I=x(C),M=I.find((function(e){return"[object Object]"===Object.prototype.toString.call(e)})),T=m(s(N),1)[0];return a.a.createElement("svg",h({className:o()("".concat(n,"-circle"),v),viewBox:"0 0 100 100",style:p},O),M&&a.a.createElement("defs",null,a.a.createElement("linearGradient",{id:"".concat(n,"-gradient-").concat(k),x1:"100%",y1:"0%",x2:"0%",y2:"0%"},Object.keys(M).sort((function(e,t){return y(e)-y(t)})).map((function(e,t){return a.a.createElement("stop",{key:t,offset:e,stopColor:M[e]})})))),a.a.createElement("path",{className:"".concat(n,"-circle-trail"),d:S,stroke:d,strokeLinecap:f,strokeWidth:l||i,fillOpacity:"0",style:j}),(t=0,N.map((function(e,r){var o=I[r]||I[I.length-1],l="[object Object]"===Object.prototype.toString.call(o)?"url(#".concat(n,"-gradient-").concat(k,")"):"",s=E(t,e,o,i,c,u);return t+=e,a.a.createElement("path",{key:r,className:"".concat(n,"-circle-path"),d:s.pathString,stroke:l,strokeLinecap:f,strokeWidth:i,opacity:0===e?0:1,fillOpacity:"0",style:s.pathStyle,ref:T[r]})}))).reverse())};C.defaultProps=l;var A=C},hW8S:
|
|
|
/*!******************************************************!*\
|
|
|
!*** ./node_modules/rc-table/es/utils/legacyUtil.js ***!
|
|
|
\******************************************************/
|
|
|
/*! exports provided: INTERNAL_COL_DEFINE, getExpandableProps, getDataAndAriaProps */
|
|
|
/*! exports used: INTERNAL_COL_DEFINE, getDataAndAriaProps, getExpandableProps */function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"c",(function(){return o})),n.d(t,"b",(function(){return l}));var r=n(/*! @babel/runtime/helpers/esm/objectSpread2 */"VTBJ"),a=n(/*! @babel/runtime/helpers/esm/objectWithoutProperties */"Ff2n"),i=(n(/*! rc-util/es/warning */"Kwbf"),"RC_TABLE_INTERNAL_COL_DEFINE");function o(e){var t=e.expandable,n=Object(a.a)(e,["expandable"]);return"expandable"in e?Object(r.a)(Object(r.a)({},n),t):n}function l(e){return Object.keys(e).reduce((function(t,n){return"data-"!==n.substr(0,5)&&"aria-"!==n.substr(0,5)||(t[n]=e[n]),t}),{})}},hkyu:
|
|
|
/*!********************************************************************************************************!*\
|
|
|
!*** ./src/pages/Innovation/Detail/components/CodePane/DirTree/SelectFilePathModal/index.less?modules ***!
|
|
|
\********************************************************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,n){e.exports={wrap:"wrap___hPGmS",content:"content___1XTHE",mainPathWrap:"mainPathWrap___11rfN",colorBlue:"colorBlue___2VVM9"}},izBO:
|
|
|
/*!********************************************************!*\
|
|
|
!*** ./src/pages/Innovation/Detail/index.less?modules ***!
|
|
|
\********************************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,n){e.exports={project_detail_wrapper:"project_detail_wrapper___rJ-Mx",nav:"nav___3BChd",title:"title___GTqUx",fork_btn:"fork_btn___nboaj",desc:"desc___1z6g-",info:"info___3PtJ2",create_time:"create_time___nwaZK",operation:"operation___1m5fw",delete_btn:"delete_btn___xeY9n",fork_modal:"fork_modal___Ei2wB",huanj:"huanj___PC6QJ",divtitle:"divtitle___1gI6J"}},jXuf:
|
|
|
/*!****************************************************************************!*\
|
|
|
!*** ./src/pages/Innovation/Detail/components/CodePane/index.less?modules ***!
|
|
|
\****************************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,n){e.exports={flex_box_center:"flex_box_center___3Ouij",flex_space_between:"flex_space_between___3WHV3",flex_box_vertical_center:"flex_box_vertical_center___3K6xk",flex_box_center_end:"flex_box_center_end___3I9F3",flex_box_column:"flex_box_column___2SmSH",menu:"menu___2J6wm",warehouse:"warehouse___d9ftl",header:"header___hc_Il",title:"title___PreFj",content:"content___2IjnJ",left:"left___Fe2wU",right:"right___1Fnvj",loading:"loading___GJpKF",empty:"empty___16OZa",tabs:"tabs___2OSoH",line:"line___1Uk38",footer:"footer___2CyzV",commit:"commit___2v0hU",blueLight:"blueLight___2iJfz",filePathWrp:"filePathWrp___6LEw5",filePath:"filePath___4ZJkW",bottom0:"bottom0___4DQ3y"}},ji0R:
|
|
|
/*!*******************************************!*\
|
|
|
!*** ./src/assets/images/icons/douyu.jpg ***!
|
|
|
\*******************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,n){e.exports=n.p+"static/douyu.3e6df9ee.jpg"},ju9d:
|
|
|
/*!*********************************************!*\
|
|
|
!*** ./src/components/SelectUser/index.tsx ***!
|
|
|
\*********************************************/
|
|
|
/*! exports provided: default */
|
|
|
/*! exports used: default */function(e,t,n){"use strict";n(/*! antd/es/table/style */"g9YV");var r,a=n(/*! antd/es/table */"wCAj"),i=(n(/*! antd/es/message/style */"miYZ"),n(/*! antd/es/message */"tsqr")),o=(n(/*! antd/es/tooltip/style */"5Dmo"),n(/*! antd/es/tooltip */"3S7+")),l=(n(/*! antd/es/checkbox/style */"sRBo"),n(/*! antd/es/checkbox */"kaz8")),s=n(/*! ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/toConsumableArray */"oBTY"),c=n(/*! ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/asyncToGenerator */"9og8"),u=n(/*! ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/slicedToArray */"tJVT"),d=n(/*! ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/objectSpread2 */"k1fw"),f=(n(/*! antd/es/button/style */"+L6B"),n(/*! antd/es/button */"2/Rp")),p=(n(/*! antd/es/auto-complete/style */"O3gP"),n(/*! antd/es/auto-complete */"lrIw")),h=(n(/*! antd/es/form/style */"y8nQ"),n(/*! antd/es/form */"Vl3Y")),m=(n(/*! antd/es/input/style */"5NDa"),n(/*! antd/es/input */"5rEg")),v=n(/*! ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/regenerator */"WmNS"),g=n.n(v),b=n(/*! react */"q1tI"),y=n.n(b),x=n(/*! umi */"55Ip"),E=n(/*! moment */"wd/R"),C=n.n(E),A=n(/*! react-infinite-scroller */"RotF"),O=n.n(A),k=n(/*! @/assets/images/icons/search.png */"E7E6"),w=n.n(k),S=n(/*! @/service/classrooms */"oUNq"),j=[];function N(e){var t=e.onSearch,n=e.schools;return y.a.createElement(h.a,{layout:"inline",onFinish:t,initialValues:{keyword:"",school_name:""},className:"search-form"},y.a.createElement(h.a.Item,{label:"姓名",name:"keyword",rules:[{required:!0,message:"请输入姓名"}]},y.a.createElement(m.a,{allowClear:!0,style:{width:370},size:"large"})),y.a.createElement(h.a.Item,{label:"单位",name:"school_name"},y.a.createElement(p.a,{options:n,style:{width:400},size:"large",showSearch:!0,filterOption:function(e,t){return-1!==t.value.toUpperCase().indexOf(e.toUpperCase())},placeholder:"请输入单位名称"})),y.a.createElement(h.a.Item,null,y.a.createElement(f.a,{type:"primary",htmlType:"submit"},"搜索")))}function I(e,t){switch(t.type){case r.INITDATA:case r.SETQUERY:return Object(d.a)(Object(d.a)({},e),t.payload);case r.SETPAGE:return Object(d.a)(Object(d.a)({},e),{},{page:t.payload,reload:!1});case r.SHOWLOADING:return Object(d.a)(Object(d.a)({},e),{},{loading:t.payload});case r.INITSCHOOLS:return Object(d.a)(Object(d.a)({},e),{},{schools:t.payload});case r.SELECTEDIDS:return Object(d.a)(Object(d.a)({},e),{},{selectedIds:t.payload});default:throw new Error}}!function(e){e[e.INITDATA=0]="INITDATA",e[e.INITSCHOOLS=1]="INITSCHOOLS",e[e.SHOWLOADING=2]="SHOWLOADING",e[e.SELECTEDIDS=3]="SELECTEDIDS",e[e.SETQUERY=4]="SETQUERY",e[e.SETPAGE=5]="SETPAGE"}(r||(r={}));var M={data:[],schools:[],loading:!1,selectedIds:[],query:null,page:1,count:0,reload:!1};t.a=function(e){var t=e.onSelect,n=e.onCancel,p=e.container_id,h=e.container_type,m=Object(b.useReducer)(I,M),v=Object(u.a)(m,2),E=v[0],A=v[1],k=E.data,T=E.schools,D=E.loading,R=E.selectedIds,L=E.page,B=E.count,P=E.query,K=E.reload;Object(b.useEffect)((function(){function e(){return(e=Object(c.a)(g.a.mark((function e(){var t,n,a;return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(S.wb)(Object(d.a)(Object(d.a)({},P),{},{page:L,container_type:h,container_id:p}));case 2:t=e.sent,n=t.users,a=t.user_count,A({type:r.INITDATA,payload:{data:K?n:[].concat(Object(s.a)(k),Object(s.a)(n)),count:a}});case 6:case"end":return e.stop()}}),e)})))).apply(this,arguments)}P&&function(){e.apply(this,arguments)}()}),[L,P,K,p,h]),Object(b.useEffect)((function(){function e(){return(e=Object(c.a)(g.a.mark((function e(){var t,n;return g.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(S.kb)({});case 2:t=e.sent,n=t.school_names,A({type:r.INITSCHOOLS,payload:n.map((function(e){return{value:e}}))});case 5:case"end":return e.stop()}}),e)})))).apply(this,arguments)}!function(){e.apply(this,arguments)}()}),[]);var F=[{title:"",dataIndex:"added",width:40,ellipsis:!0,render:function(e,t){return y.a.createElement(l.a,{value:t.numid,checked:R.includes(t.numid),disabled:!!e})}},{title:"姓名",width:100,ellipsis:!0,dataIndex:"username",render:function(e,t){return y.a.createElement(o.a,{placement:"bottom",title:e},y.a.createElement(x.a,{className:"bold c-black",to:"/users/".concat(t.login),target:"_blank"},e||"--"))}},{title:"手机",width:100,dataIndex:"phone",ellipsis:!0,render:function(e){return y.a.createElement(o.a,{placement:"bottom",title:e},y.a.createElement("span",null,e||"--"))}},{title:"邮箱",dataIndex:"email",width:100,ellipsis:!0,render:function(e){return y.a.createElement(o.a,{placement:"bottom",title:e},y.a.createElement("span",null,e||"--"))}},{title:"学号/工号",width:100,dataIndex:"student_number",ellipsis:!0,render:function(e){return y.a.createElement(o.a,{placement:"bottom",title:e},y.a.createElement("span",null,e||"--"))}},{title:"学校/单位",width:150,dataIndex:"school_name",ellipsis:!0,render:function(e){return y.a.createElement(o.a,{placement:"bottom",title:e},y.a.createElement("span",null,e||"--"))}},{title:"院系/部门",dataIndex:"depart_name",width:130,ellipsis:!0,render:function(e){return y.a.createElement(o.a,{placement:"bottom",title:e},y.a.createElement("span",null,e||"--"))}},{title:"实名认证",dataIndex:"auth",width:100,render:function(e){return e?"是":"否"}},{title:"最后登录时间",dataIndex:"last_login_on",width:140,ellipsis:!0,render:function(e){return y.a.createElement(o.a,{placement:"bottom",title:e},y.a.createElement("span",null,C()(e).format("YYYY-MM-DD HH:mm")))}},{title:"状态",dataIndex:"added",width:80,render:function(e){if(1===e)return y.a.createElement("span",{className:"c-green"},"已添加")}}];var z=B>10*L;return y.a.createElement("div",{className:"select-user-container"},y.a.createElement(N,{onSearch:function(e){A({type:r.SETQUERY,payload:{page:1,reload:!0,query:e}})},schools:T}),P?y.a.createElement(y.a.Fragment,null,y.a.createElement("div",{className:"flexd-table-header mt20"},y.a.createElement(a.a,{pagination:!1,dataSource:j,columns:F})),y.a.createElement("div",{style:{maxHeight:260,overflow:"auto",marginBottom:20}},y.a.createElement(O.a,{initialLoad:!1,pageStart:1,threshold:20,loadMore:function(e){A({type:r.SETPAGE,payload:e})},hasMore:z,useWindow:!1},y.a.createElement(a.a,{loading:D,showHeader:!1,pagination:!1,dataSource:k,columns:F,onRow:function(e){return{onClick:function(t){var n,a;1!==e.added&&(n=e.numid,(a=R.indexOf(n))>=0?R.splice(a,1):R.push(n),A({type:r.SELECTEDIDS,payload:Object(s.a)(R)}))}}}}))),y.a.createElement("div",{className:"flex-container flex-end"},y.a.createElement(f.a,{type:"ghost",style:{marginRight:10},onClick:n},"取消"),y.a.createElement(f.a,{type:"primary",onClick:function(){0===R.length?i.b.warn("请先在下面列表中选择要添加成员"):(t(R,p),A({type:r.INITDATA,payload:{data:[],count:0,page:1,selectedIds:[],query:null,reload:!1}}))}},"确定"))):y.a.createElement("div",{className:"tc font16 c-light-black mt40 pb30"},y.a.createElement("img",{src:w.a,width:"100",alt:""}),y.a.createElement("br",null),y.a.createElement("p",{className:"mt20"},"请搜索要添加的人员")))}},k3GJ:
|
|
|
/*!*******************************************************!*\
|
|
|
!*** ./node_modules/rc-tabs/es/index.js + 50 modules ***!
|
|
|
\*******************************************************/
|
|
|
/*! exports provided: TabPane, default */
|
|
|
/*! exports used: TabPane, default */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/classCallCheck.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/createClass.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/createSuper.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/extends.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/inherits.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/typeof.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/regenerator/index.js (<- Module is not an ECMAScript module) */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/classnames/index.js (<- Module is not an ECMAScript module) */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/mini-store/esm/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/raf/index.js (<- Module is not an ECMAScript module) */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-align/es/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-dropdown/es/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-resize-observer/es/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/Children/toArray.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/Dom/addEventListener.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/Dom/canUseDom.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/Dom/contains.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/Dom/findDOMNode.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/KeyCode.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/Portal.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/createChainedFunction.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/hooks/useMergedState.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/omit.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/raf.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/ref.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/warning.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/react-dom/index.js (<- Module is not an ECMAScript module) */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/react/index.js (<- Module is not an ECMAScript module) */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/resize-observer-polyfill/dist/ResizeObserver.es.js (<- Module uses injected variables (global)) */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/shallowequal/index.js (<- Module is not an ECMAScript module) */function(e,t,n){"use strict";n.d(t,"a",(function(){return Ut}));var r=n("rePB"),a=n("ODXe"),i=n("Ff2n"),o=n("VTBJ"),l=n("q1tI"),s=n("TSYQ"),c=n.n(s),u=n("Zm9Q"),d=n("6cGi"),f=n("KQm4"),p=n("xEkU"),h=n.n(p),m=n("t23M");function v(e){var t=Object(l.useRef)(),n=Object(l.useRef)(!1);return Object(l.useEffect)((function(){return function(){n.current=!0,h.a.cancel(t.current)}}),[]),function(){for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];n.current||(h.a.cancel(t.current),t.current=h()((function(){e.apply(void 0,a)})))}}var g=n("4IlW");var b=l.forwardRef((function(e,t){var n,a=e.prefixCls,i=e.id,o=e.active,s=e.rtl,u=e.tab,d=u.key,f=u.tab,p=u.disabled,h=u.closeIcon,m=e.tabBarGutter,v=e.tabPosition,b=e.closable,y=e.renderWrapper,x=e.removeAriaLabel,E=e.editable,C=e.onClick,A=e.onRemove,O=e.onFocus,k="".concat(a,"-tab");l.useEffect((function(){return A}),[]);var w={};"top"===v||"bottom"===v?w[s?"marginLeft":"marginRight"]=m:w.marginBottom=m;var S=E&&!1!==b&&!p;function j(e){p||C(e)}var N=l.createElement("div",{key:d,ref:t,className:c()(k,(n={},Object(r.a)(n,"".concat(k,"-with-remove"),S),Object(r.a)(n,"".concat(k,"-active"),o),Object(r.a)(n,"".concat(k,"-disabled"),p),n)),style:w,onClick:j},l.createElement("div",{role:"tab","aria-selected":o,id:i&&"".concat(i,"-tab-").concat(d),className:"".concat(k,"-btn"),"aria-controls":i&&"".concat(i,"-panel-").concat(d),"aria-disabled":p,tabIndex:p?null:0,onClick:function(e){e.stopPropagation(),j(e)},onKeyDown:function(e){[g.a.SPACE,g.a.ENTER].includes(e.which)&&(e.preventDefault(),j(e))},onFocus:O},f),S&&l.createElement("button",{type:"button","aria-label":x||"remove",tabIndex:0,className:"".concat(k,"-remove"),onClick:function(e){var t;e.stopPropagation(),(t=e).preventDefault(),t.stopPropagation(),E.onEdit("remove",{key:d,event:t})}},h||E.removeIcon||"×"));return y&&(N=y(N)),N})),y={width:0,height:0,left:0,top:0};var x={width:0,height:0,left:0,top:0,right:0};var E=n("wx14"),C=n("1OyB"),A=n("vuIU"),O=n("JX7q"),k=n("Ji7U"),w=n("LK+K"),S=n("I8Z2"),j=n("bT9E"),N=n("2GS6"),I=n("Gytx"),M=n.n(I),T=n("U8pU"),D=/iPhone/i,R=/iPod/i,L=/iPad/i,B=/\bAndroid(?:.+)Mobile\b/i,P=/Android/i,K=/\bAndroid(?:.+)SD4930UR\b/i,F=/\bAndroid(?:.+)(?:KF[A-Z]{2,4})\b/i,z=/Windows Phone/i,Q=/\bWindows(?:.+)ARM\b/i,W=/BlackBerry/i,H=/BB10/i,J=/Opera Mini/i,U=/\b(CriOS|Chrome)(?:.+)Mobile/i,V=/Mobile(?:.+)Firefox\b/i;function G(e,t){return e.test(t)}function Y(e){var t=e||("undefined"!=typeof navigator?navigator.userAgent:""),n=(t||"").split("[FBAN");if(void 0!==n[1]){var r=n;t=Object(a.a)(r,1)[0]}if(void 0!==(n=t.split("Twitter"))[1]){var i=n;t=Object(a.a)(i,1)[0]}var o={apple:{phone:G(D,t)&&!G(z,t),ipod:G(R,t),tablet:!G(D,t)&&G(L,t)&&!G(z,t),device:(G(D,t)||G(R,t)||G(L,t))&&!G(z,t)},amazon:{phone:G(K,t),tablet:!G(K,t)&&G(F,t),device:G(K,t)||G(F,t)},android:{phone:!G(z,t)&&G(K,t)||!G(z,t)&&G(B,t),tablet:!G(z,t)&&!G(K,t)&&!G(B,t)&&(G(F,t)||G(P,t)),device:!G(z,t)&&(G(K,t)||G(F,t)||G(B,t)||G(P,t))||G(/\bokhttp\b/i,t)},windows:{phone:G(z,t),tablet:G(Q,t),device:G(z,t)||G(Q,t)},other:{blackberry:G(W,t),blackberry10:G(H,t),opera:G(J,t),firefox:G(V,t),chrome:G(U,t),device:G(W,t)||G(H,t)||G(J,t)||G(V,t)||G(U,t)},any:null,phone:null,tablet:null};return o.any=o.apple.device||o.android.device||o.windows.device||o.other.device,o.phone=o.apple.phone||o.android.phone||o.windows.phone,o.tablet=o.apple.tablet||o.android.tablet||o.windows.tablet,o}var Z=Object(o.a)(Object(o.a)({},Y()),{},{isMobile:Y});function q(){}function X(e,t,n){var r=t||"";return e.key||"".concat(r,"item_").concat(n)}function _(e){return"".concat(e,"-menu-")}function $(e,t){var n=-1;l.Children.forEach(e,(function(e){n+=1,e&&e.type&&e.type.isMenuItemGroup?l.Children.forEach(e.props.children,(function(e){t(e,n+=1)})):t(e,n)}))}var ee=["defaultSelectedKeys","selectedKeys","defaultOpenKeys","openKeys","mode","getPopupContainer","onSelect","onDeselect","onDestroy","openTransitionName","openAnimation","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","triggerSubMenuAction","level","selectable","multiple","onOpenChange","visible","focusable","defaultActiveFirst","prefixCls","inlineIndent","parentMenu","title","rootPrefixCls","eventKey","active","onItemHover","onTitleMouseEnter","onTitleMouseLeave","onTitleClick","popupAlign","popupOffset","isOpen","renderMenuItem","manualRef","subMenuKey","disabled","index","isSelected","store","activeKey","builtinPlacements","overflowedIndicator","motion","attribute","value","popupClassName","inlineCollapsed","menu","theme","itemIcon","expandIcon"],te=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e&&"function"==typeof e.getBoundingClientRect&&e.getBoundingClientRect().width;if(n){if(t){var r=getComputedStyle(e),a=r.marginLeft,i=r.marginRight;n+=+a.replace("px","")+ +i.replace("px","")}n=+n.toFixed(6)}return n||0},ne=function(e,t,n){e&&"object"===Object(T.a)(e.style)&&(e.style[t]=n)},re=n("bdgK"),ae=n("i8i4"),ie=n.n(ae),oe=n("wgJM"),le=n("l4aY"),se=n("m+aA"),ce=n("c+Xe"),ue=n("zT1h"),de=n("QC+M");function fe(e,t,n){return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}var pe=n("MNnm");function he(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}var me,ve,ge,be=(me=Object(pe.a)(),ve="undefined"!=typeof window?window:{},ge={animationend:he("Animation","AnimationEnd"),transitionend:he("Transition","TransitionEnd")},me&&("AnimationEvent"in ve||delete ge.animationend.animation,"TransitionEvent"in ve||delete ge.transitionend.transition),ge),ye={};if(Object(pe.a)()){var xe=document.createElement("div");ye=xe.style}var Ee={};function Ce(e){if(Ee[e])return Ee[e];var t=be[e];if(t)for(var n=Object.keys(t),r=n.length,a=0;a<r;a+=1){var i=n[a];if(Object.prototype.hasOwnProperty.call(t,i)&&i in ye)return Ee[e]=t[i],Ee[e]}return""}var Ae=Ce("animationend"),Oe=Ce("transitionend"),ke=!(!Ae||!Oe),we=Ae||"animationend",Se=Oe||"transitionend";function je(e,t){return e?"object"===Object(T.a)(e)?e[t.replace(/-\w/g,(function(e){return e[1].toUpperCase()}))]:"".concat(e,"-").concat(t):null}function Ne(e){var t=Object(l.useRef)(!1),n=Object(l.useState)(e),r=Object(a.a)(n,2),i=r[0],o=r[1];return Object(l.useEffect)((function(){return function(){t.current=!0}}),[]),[i,function(e){t.current||o(e)}]}var Ie=Object(pe.a)()?l.useLayoutEffect:l.useEffect,Me=["prepare","start","active","end"];function Te(e){return"active"===e||"end"===e}var De=function(e,t){var n=l.useState("none"),r=Object(a.a)(n,2),i=r[0],o=r[1],s=function(){var e=l.useRef(null);function t(){oe.a.cancel(e.current)}return l.useEffect((function(){return function(){t()}}),[]),[function n(r){var a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;t();var i=Object(oe.a)((function(){a<=1?r({isCanceled:function(){return i!==e.current}}):n(r,a-1)}));e.current=i},t]}(),c=Object(a.a)(s,2),u=c[0],d=c[1];return Ie((function(){if("none"!==i&&"end"!==i){var e=Me.indexOf(i),n=Me[e+1],r=t(i);!1===r?o(n):u((function(e){function t(){e.isCanceled()||o(n)}!0===r?t():Promise.resolve(r).then(t)}))}}),[e,i]),l.useEffect((function(){return function(){d()}}),[]),[function(){o("prepare")},i]};function Re(e,t,n,i){var s=i.motionEnter,c=void 0===s||s,u=i.motionAppear,d=void 0===u||u,f=i.motionLeave,p=void 0===f||f,h=i.motionDeadline,m=i.motionLeaveImmediately,v=i.onAppearPrepare,g=i.onEnterPrepare,b=i.onLeavePrepare,y=i.onAppearStart,x=i.onEnterStart,E=i.onLeaveStart,C=i.onAppearActive,A=i.onEnterActive,O=i.onLeaveActive,k=i.onAppearEnd,w=i.onEnterEnd,S=i.onLeaveEnd,j=i.onVisibleChanged,N=Ne(),I=Object(a.a)(N,2),M=I[0],T=I[1],D=Ne("none"),R=Object(a.a)(D,2),L=R[0],B=R[1],P=Ne(null),K=Object(a.a)(P,2),F=K[0],z=K[1],Q=Object(l.useRef)(!1),W=Object(l.useRef)(null),H=Object(l.useRef)(!1),J=Object(l.useRef)(null);function U(){return n()||J.current}var V=Object(l.useRef)(!1);function G(e){var t,n=U();e&&!e.deadline&&e.target!==n||("appear"===L&&V.current?t=null==k?void 0:k(n,e):"enter"===L&&V.current?t=null==w?void 0:w(n,e):"leave"===L&&V.current&&(t=null==S?void 0:S(n,e)),!1===t||H.current||(B("none"),z(null)))}var Y=function(e){var t=Object(l.useRef)(),n=Object(l.useRef)(e);n.current=e;var r=l.useCallback((function(e){n.current(e)}),[]);function a(e){e&&(e.removeEventListener(Se,r),e.removeEventListener(we,r))}return l.useEffect((function(){return function(){a(t.current)}}),[]),[function(e){t.current&&t.current!==e&&a(t.current),e&&e!==t.current&&(e.addEventListener(Se,r),e.addEventListener(we,r),t.current=e)},a]}(G),Z=Object(a.a)(Y,1)[0],q=l.useMemo((function(){var e,t,n;switch(L){case"appear":return e={},Object(r.a)(e,"prepare",v),Object(r.a)(e,"start",y),Object(r.a)(e,"active",C),e;case"enter":return t={},Object(r.a)(t,"prepare",g),Object(r.a)(t,"start",x),Object(r.a)(t,"active",A),t;case"leave":return n={},Object(r.a)(n,"prepare",b),Object(r.a)(n,"start",E),Object(r.a)(n,"active",O),n;default:return{}}}),[L]),X=De(L,(function(e){if("prepare"===e){var t=q.prepare;return!!t&&t(U())}var n;ee in q&&z((null===(n=q[ee])||void 0===n?void 0:n.call(q,U(),null))||null);return"active"===ee&&(Z(U()),h>0&&(clearTimeout(W.current),W.current=setTimeout((function(){G({deadline:!0})}),h))),!0})),_=Object(a.a)(X,2),$=_[0],ee=_[1],te=Te(ee);V.current=te,Ie((function(){T(t);var n,r=Q.current;(Q.current=!0,e)&&(!r&&t&&d&&(n="appear"),r&&t&&c&&(n="enter"),(r&&!t&&p||!r&&m&&!t&&p)&&(n="leave"),n&&(B(n),$()))}),[t]),Object(l.useEffect)((function(){("appear"===L&&!d||"enter"===L&&!c||"leave"===L&&!p)&&B("none")}),[d,c,p]),Object(l.useEffect)((function(){return function(){clearTimeout(W.current),H.current=!0}}),[]),Object(l.useEffect)((function(){void 0!==M&&"none"===L&&(null==j||j(M))}),[M,L]);var ne=F;return q.prepare&&"start"===ee&&(ne=Object(o.a)({transition:"none"},ne)),[L,ee,ne,null!=M?M:t]}var Le=function(e){Object(k.a)(n,e);var t=Object(w.a)(n);function n(){return Object(C.a)(this,n),t.apply(this,arguments)}return Object(A.a)(n,[{key:"render",value:function(){return this.props.children}}]),n}(l.Component);var Be=function(e){var t=e;function n(e){return!(!e.motionName||!t)}"object"===Object(T.a)(e)&&(t=e.transitionSupport);var i=l.forwardRef((function(e,t){var i=e.visible,s=void 0===i||i,u=e.removeOnLeave,d=void 0===u||u,f=e.forceRender,p=e.children,h=e.motionName,m=e.leavedClassName,v=e.eventProps,g=n(e),b=Object(l.useRef)(),y=Object(l.useRef)();var x=Re(g,s,(function(){try{return Object(se.a)(b.current||y.current)}catch(e){return null}}),e),E=Object(a.a)(x,4),C=E[0],A=E[1],O=E[2],k=E[3],w=l.useRef(k);k&&(w.current=!0);var S=Object(l.useRef)(t);S.current=t;var j,N=l.useCallback((function(e){b.current=e,Object(ce.b)(S.current,e)}),[]),I=Object(o.a)(Object(o.a)({},v),{},{visible:s});if(p)if("none"!==C&&n(e)){var M,T;"prepare"===A?T="prepare":Te(A)?T="active":"start"===A&&(T="start"),j=p(Object(o.a)(Object(o.a)({},I),{},{className:c()(je(h,C),(M={},Object(r.a)(M,je(h,"".concat(C,"-").concat(T)),T),Object(r.a)(M,h,"string"==typeof h),M)),style:O}),N)}else j=k?p(Object(o.a)({},I),N):!d&&w.current?p(Object(o.a)(Object(o.a)({},I),{},{className:m}),N):f?p(Object(o.a)(Object(o.a)({},I),{},{style:{display:"none"}}),N):null;else j=null;return l.createElement(Le,{ref:y},j)}));return i.displayName="CSSMotion",i}(ke);function Pe(e){var t;return t=e&&"object"===Object(T.a)(e)&&"key"in e?e:{key:e},Object(o.a)(Object(o.a)({},t),{},{key:String(t.key)})}function Ke(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.map(Pe)}function Fe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],r=0,a=t.length,i=Ke(e),l=Ke(t);i.forEach((function(e){for(var t=!1,i=r;i<a;i+=1){var s=l[i];if(s.key===e.key){r<i&&(n=n.concat(l.slice(r,i).map((function(e){return Object(o.a)(Object(o.a)({},e),{},{status:"add"})}))),r=i),n.push(Object(o.a)(Object(o.a)({},s),{},{status:"keep"})),r+=1,t=!0;break}}t||n.push(Object(o.a)(Object(o.a)({},e),{},{status:"remove"}))})),r<a&&(n=n.concat(l.slice(r).map((function(e){return Object(o.a)(Object(o.a)({},e),{},{status:"add"})}))));var s={};n.forEach((function(e){var t=e.key;s[t]=(s[t]||0)+1}));var c=Object.keys(s).filter((function(e){return s[e]>1}));return c.forEach((function(e){(n=n.filter((function(t){var n=t.key,r=t.status;return n!==e||"remove"!==r}))).forEach((function(t){t.key===e&&(t.status="keep")}))})),n}var ze=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];!function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Be,n=function(e){Object(k.a)(r,e);var n=Object(w.a)(r);function r(){var e;return Object(C.a)(this,r),(e=n.apply(this,arguments)).state={keyEntities:[]},e.removeKey=function(t){e.setState((function(e){return{keyEntities:e.keyEntities.map((function(e){return e.key!==t?e:Object(o.a)(Object(o.a)({},e),{},{status:"removed"})}))}}))},e}return Object(A.a)(r,[{key:"render",value:function(){var e=this,n=this.state.keyEntities,r=this.props,a=r.component,o=r.children,s=r.onVisibleChanged,c=Object(i.a)(r,["component","children","onVisibleChanged"]),u=a||l.Fragment,d={};return ze.forEach((function(e){d[e]=c[e],delete c[e]})),delete c.keys,l.createElement(u,c,n.map((function(n){var r=n.status,a=Object(i.a)(n,["status"]),c="add"===r||"keep"===r;return l.createElement(t,Object(E.a)({},d,{key:a.key,visible:c,eventProps:a,onVisibleChanged:function(t){null==s||s(t,{key:a.key}),t||e.removeKey(a.key)}}),o)})))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.keys,r=t.keyEntities,a=Ke(n);return{keyEntities:Fe(r,a).filter((function(e){var t=r.find((function(t){var n=t.key;return e.key===n}));return!t||"removed"!==t.status||"remove"!==e.status}))}}}]),r}(l.Component);n.defaultProps={component:"div"}}(ke);var Qe=Be;function We(e){var t=e.prefixCls,n=e.motion,r=e.animation,a=e.transitionName;return n||(r?{motionName:"".concat(t,"-").concat(r)}:a?{motionName:a}:null)}function He(e){var t=e.prefixCls,n=e.visible,r=e.zIndex,a=e.mask,i=e.maskMotion,s=e.maskAnimation,u=e.maskTransitionName;if(!a)return null;var d={};return(i||u||s)&&(d=Object(o.a)({motionAppear:!0},We({motion:i,prefixCls:t,transitionName:u,animation:s}))),l.createElement(Qe,Object(E.a)({},d,{visible:n,removeOnLeave:!0}),(function(e){var n=e.className;return l.createElement("div",{style:{zIndex:r},className:c()("".concat(t,"-mask"),n)})}))}var Je=n("9mu1"),Ue=n("o0o1"),Ve=n.n(Ue),Ge=n("HaE+"),Ye=["measure","align",null,"motion"],Ze=l.forwardRef((function(e,t){var n=e.visible,r=e.prefixCls,i=e.className,s=e.style,u=e.children,d=e.zIndex,f=e.stretch,p=e.destroyPopupOnHide,h=e.forceRender,m=e.align,v=e.point,g=e.getRootDomNode,b=e.getClassNameFromAlign,y=e.onAlign,x=e.onMouseEnter,C=e.onMouseLeave,A=e.onMouseDown,O=e.onTouchStart,k=Object(l.useRef)(),w=Object(l.useRef)(),S=Object(l.useState)(),j=Object(a.a)(S,2),N=j[0],I=j[1],M=function(e){var t=l.useState({width:0,height:0}),n=Object(a.a)(t,2),r=n[0],i=n[1];return[l.useMemo((function(){var t={};if(e){var n=r.width,a=r.height;-1!==e.indexOf("height")&&a?t.height=a:-1!==e.indexOf("minHeight")&&a&&(t.minHeight=a),-1!==e.indexOf("width")&&n?t.width=n:-1!==e.indexOf("minWidth")&&n&&(t.minWidth=n)}return t}),[e,r]),function(e){i({width:e.offsetWidth,height:e.offsetHeight})}]}(f),T=Object(a.a)(M,2),D=T[0],R=T[1];var L=function(e,t){var n=Object(l.useState)(null),r=Object(a.a)(n,2),i=r[0],o=r[1],s=Object(l.useRef)(),c=Object(l.useRef)(!1);function u(e){c.current||o(e)}function d(){oe.a.cancel(s.current)}return Object(l.useEffect)((function(){u("measure")}),[e]),Object(l.useEffect)((function(){switch(i){case"measure":t()}i&&(s.current=Object(oe.a)(Object(Ge.a)(Ve.a.mark((function e(){var t,n;return Ve.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=Ye.indexOf(i),(n=Ye[t+1])&&-1!==t&&u(n);case 3:case"end":return e.stop()}}),e)})))))}),[i]),Object(l.useEffect)((function(){return function(){c.current=!0,d()}}),[]),[i,function(e){d(),s.current=Object(oe.a)((function(){u((function(e){switch(i){case"align":return"motion";case"motion":return"stable"}return e})),null==e||e()}))}]}(n,(function(){f&&R(g())})),B=Object(a.a)(L,2),P=B[0],K=B[1],F=Object(l.useRef)();function z(){var e;null===(e=k.current)||void 0===e||e.forceAlign()}function Q(e,t){var n=b(t);N!==n&&I(n),"align"===P&&(N!==n?Promise.resolve().then((function(){z()})):K((function(){var e;null===(e=F.current)||void 0===e||e.call(F)})),null==y||y(e,t))}var W=Object(o.a)({},We(e));function H(){return new Promise((function(e){F.current=e}))}["onAppearEnd","onEnterEnd","onLeaveEnd"].forEach((function(e){var t=W[e];W[e]=function(e,n){return K(),null==t?void 0:t(e,n)}})),l.useEffect((function(){W.motionName||"motion"!==P||K()}),[W.motionName,P]),l.useImperativeHandle(t,(function(){return{forceAlign:z,getElement:function(){return w.current}}}));var J=Object(o.a)(Object(o.a)({},D),{},{zIndex:d,opacity:"motion"!==P&&"stable"!==P&&n?0:void 0,pointerEvents:"stable"===P?void 0:"none"},s),U=!0;!(null==m?void 0:m.points)||"align"!==P&&"stable"!==P||(U=!1);var V=u;return l.Children.count(u)>1&&(V=l.createElement("div",{className:"".concat(r,"-content")},u)),l.createElement(Qe,Object(E.a)({visible:n,ref:w,leavedClassName:"".concat(r,"-hidden")},W,{onAppearPrepare:H,onEnterPrepare:H,removeOnLeave:p,forceRender:h}),(function(e,t){var n=e.className,a=e.style,s=c()(r,i,N,n);return l.createElement(Je.a,{target:v||g,key:"popup",ref:k,monitorWindowResize:!0,disabled:U,align:m,onAlign:Q},l.createElement("div",{ref:t,className:s,onMouseEnter:x,onMouseLeave:C,onMouseDownCapture:A,onTouchStartCapture:O,style:Object(o.a)(Object(o.a)({},a),J)},V))}))}));Ze.displayName="PopupInner";var qe=Ze,Xe=l.forwardRef((function(e,t){var n=e.prefixCls,r=e.visible,a=e.zIndex,i=e.children,s=e.mobile,u=(s=void 0===s?{}:s).popupClassName,d=s.popupStyle,f=s.popupMotion,p=void 0===f?{}:f,h=s.popupRender,m=l.useRef();l.useImperativeHandle(t,(function(){return{forceAlign:function(){},getElement:function(){return m.current}}}));var v=Object(o.a)({zIndex:a},d),g=i;return l.Children.count(i)>1&&(g=l.createElement("div",{className:"".concat(n,"-content")},i)),h&&(g=h(g)),l.createElement(Qe,Object(E.a)({visible:r,ref:m,removeOnLeave:!0},p),(function(e,t){var r=e.className,a=e.style,i=c()(n,u,r);return l.createElement("div",{ref:t,className:i,style:Object(o.a)(Object(o.a)({},a),v)},g)}))}));Xe.displayName="MobilePopupInner";var _e=Xe,$e=["visible","mobile"],et=l.forwardRef((function(e,t){var n=e.visible,r=e.mobile,s=Object(i.a)(e,$e),c=Object(l.useState)(n),u=Object(a.a)(c,2),d=u[0],f=u[1],p=Object(l.useState)(!1),h=Object(a.a)(p,2),m=h[0],v=h[1],g=Object(o.a)(Object(o.a)({},s),{},{visible:d});Object(l.useEffect)((function(){f(n),n&&r&&v(function(){if("undefined"==typeof navigator||"undefined"==typeof window)return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return!(!/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)&&!/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(null==e?void 0:e.substr(0,4)))}())}),[n,r]);var b=m?l.createElement(_e,Object(E.a)({},g,{mobile:r,ref:t})):l.createElement(qe,Object(E.a)({},g,{ref:t}));return l.createElement("div",null,l.createElement(He,g),b)}));et.displayName="Popup";var tt=et,nt=l.createContext(null);function rt(){}function at(){return""}function it(e){return e?e.ownerDocument:window.document}var ot=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"];var lt,st,ct=(lt=de.a,(st=function(e){Object(k.a)(n,e);var t=Object(w.a)(n);function n(e){var r,a;return Object(C.a)(this,n),(r=t.call(this,e)).popupRef=l.createRef(),r.triggerRef=l.createRef(),r.attachId=void 0,r.clickOutsideHandler=void 0,r.touchOutsideHandler=void 0,r.contextMenuOutsideHandler1=void 0,r.contextMenuOutsideHandler2=void 0,r.mouseDownTimeout=void 0,r.focusTime=void 0,r.preClickTime=void 0,r.preTouchTime=void 0,r.delayTimer=void 0,r.hasPopupMouseDown=void 0,r.onMouseEnter=function(e){var t=r.props.mouseEnterDelay;r.fireEvents("onMouseEnter",e),r.delaySetPopupVisible(!0,t,t?null:e)},r.onMouseMove=function(e){r.fireEvents("onMouseMove",e),r.setPoint(e)},r.onMouseLeave=function(e){r.fireEvents("onMouseLeave",e),r.delaySetPopupVisible(!1,r.props.mouseLeaveDelay)},r.onPopupMouseEnter=function(){r.clearDelayTimer()},r.onPopupMouseLeave=function(e){var t;e.relatedTarget&&!e.relatedTarget.setTimeout&&Object(le.a)(null===(t=r.popupRef.current)||void 0===t?void 0:t.getElement(),e.relatedTarget)||r.delaySetPopupVisible(!1,r.props.mouseLeaveDelay)},r.onFocus=function(e){r.fireEvents("onFocus",e),r.clearDelayTimer(),r.isFocusToShow()&&(r.focusTime=Date.now(),r.delaySetPopupVisible(!0,r.props.focusDelay))},r.onMouseDown=function(e){r.fireEvents("onMouseDown",e),r.preClickTime=Date.now()},r.onTouchStart=function(e){r.fireEvents("onTouchStart",e),r.preTouchTime=Date.now()},r.onBlur=function(e){r.fireEvents("onBlur",e),r.clearDelayTimer(),r.isBlurToHide()&&r.delaySetPopupVisible(!1,r.props.blurDelay)},r.onContextMenu=function(e){e.preventDefault(),r.fireEvents("onContextMenu",e),r.setPopupVisible(!0,e)},r.onContextMenuClose=function(){r.isContextMenuToShow()&&r.close()},r.onClick=function(e){if(r.fireEvents("onClick",e),r.focusTime){var t;if(r.preClickTime&&r.preTouchTime?t=Math.min(r.preClickTime,r.preTouchTime):r.preClickTime?t=r.preClickTime:r.preTouchTime&&(t=r.preTouchTime),Math.abs(t-r.focusTime)<20)return;r.focusTime=0}r.preClickTime=0,r.preTouchTime=0,r.isClickToShow()&&(r.isClickToHide()||r.isBlurToHide())&&e&&e.preventDefault&&e.preventDefault();var n=!r.state.popupVisible;(r.isClickToHide()&&!n||n&&r.isClickToShow())&&r.setPopupVisible(!r.state.popupVisible,e)},r.onPopupMouseDown=function(){var e;r.hasPopupMouseDown=!0,clearTimeout(r.mouseDownTimeout),r.mouseDownTimeout=window.setTimeout((function(){r.hasPopupMouseDown=!1}),0),r.context&&(e=r.context).onPopupMouseDown.apply(e,arguments)},r.onDocumentClick=function(e){if(!r.props.mask||r.props.maskClosable){var t=e.target,n=r.getRootDomNode(),a=r.getPopupDomNode();Object(le.a)(n,t)&&!r.isContextMenuOnly()||Object(le.a)(a,t)||r.hasPopupMouseDown||r.close()}},r.getRootDomNode=function(){var e=r.props.getTriggerDOMNode;if(e)return e(r.triggerRef.current);try{var t=Object(se.a)(r.triggerRef.current);if(t)return t}catch(e){}return ie.a.findDOMNode(Object(O.a)(r))},r.getPopupClassNameFromAlign=function(e){var t=[],n=r.props,a=n.popupPlacement,i=n.builtinPlacements,o=n.prefixCls,l=n.alignPoint,s=n.getPopupClassNameFromAlign;return a&&i&&t.push(function(e,t,n,r){for(var a=n.points,i=Object.keys(e),o=0;o<i.length;o+=1){var l=i[o];if(fe(e[l].points,a,r))return"".concat(t,"-placement-").concat(l)}return""}(i,o,e,l)),s&&t.push(s(e)),t.join(" ")},r.getComponent=function(){var e=r.props,t=e.prefixCls,n=e.destroyPopupOnHide,a=e.popupClassName,i=e.onPopupAlign,o=e.popupMotion,s=e.popupAnimation,c=e.popupTransitionName,u=e.popupStyle,d=e.mask,f=e.maskAnimation,p=e.maskTransitionName,h=e.maskMotion,m=e.zIndex,v=e.popup,g=e.stretch,b=e.alignPoint,y=e.mobile,x=e.forceRender,C=r.state,A=C.popupVisible,O=C.point,k=r.getPopupAlign(),w={};return r.isMouseEnterToShow()&&(w.onMouseEnter=r.onPopupMouseEnter),r.isMouseLeaveToHide()&&(w.onMouseLeave=r.onPopupMouseLeave),w.onMouseDown=r.onPopupMouseDown,w.onTouchStart=r.onPopupMouseDown,l.createElement(tt,Object(E.a)({prefixCls:t,destroyPopupOnHide:n,visible:A,point:b&&O,className:a,align:k,onAlign:i,animation:s,getClassNameFromAlign:r.getPopupClassNameFromAlign},w,{stretch:g,getRootDomNode:r.getRootDomNode,style:u,mask:d,zIndex:m,transitionName:c,maskAnimation:f,maskTransitionName:p,maskMotion:h,ref:r.popupRef,motion:o,mobile:y,forceRender:x}),"function"==typeof v?v():v)},r.attachParent=function(e){oe.a.cancel(r.attachId);var t,n=r.props,a=n.getPopupContainer,i=n.getDocument,o=r.getRootDomNode();a?(o||0===a.length)&&(t=a(o)):t=i(r.getRootDomNode()).body,t?t.appendChild(e):r.attachId=Object(oe.a)((function(){r.attachParent(e)}))},r.getContainer=function(){var e=(0,r.props.getDocument)(r.getRootDomNode()).createElement("div");return e.style.position="absolute",e.style.top="0",e.style.left="0",e.style.width="100%",r.attachParent(e),e},r.setPoint=function(e){r.props.alignPoint&&e&&r.setState({point:{pageX:e.pageX,pageY:e.pageY}})},r.handlePortalUpdate=function(){r.state.prevPopupVisible!==r.state.popupVisible&&r.props.afterPopupVisibleChange(r.state.popupVisible)},r.triggerContextValue={onPopupMouseDown:r.onPopupMouseDown},a="popupVisible"in e?!!e.popupVisible:!!e.defaultPopupVisible,r.state={prevPopupVisible:a,popupVisible:a},ot.forEach((function(e){r["fire".concat(e)]=function(t){r.fireEvents(e,t)}})),r}return Object(A.a)(n,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var e,t=this.props;if(this.state.popupVisible)return this.clickOutsideHandler||!this.isClickToHide()&&!this.isContextMenuToShow()||(e=t.getDocument(this.getRootDomNode()),this.clickOutsideHandler=Object(ue.a)(e,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(e=e||t.getDocument(this.getRootDomNode()),this.touchOutsideHandler=Object(ue.a)(e,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(e=e||t.getDocument(this.getRootDomNode()),this.contextMenuOutsideHandler1=Object(ue.a)(e,"scroll",this.onContextMenuClose)),void(!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(ue.a)(window,"blur",this.onContextMenuClose)));this.clearOutsideHandler()}},{key:"componentWillUnmount",value:function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout),oe.a.cancel(this.attachId)}},{key:"getPopupDomNode",value:function(){var e;return(null===(e=this.popupRef.current)||void 0===e?void 0:e.getElement())||null}},{key:"getPopupAlign",value:function(){var e=this.props,t=e.popupPlacement,n=e.popupAlign,r=e.builtinPlacements;return t&&r?function(e,t,n){var r=e[t]||{};return Object(o.a)(Object(o.a)({},r),n)}(r,t,n):n}},{key:"setPopupVisible",value:function(e,t){var n=this.props.alignPoint,r=this.state.popupVisible;this.clearDelayTimer(),r!==e&&("popupVisible"in this.props||this.setState({popupVisible:e,prevPopupVisible:r}),this.props.onPopupVisibleChange(e)),n&&t&&e&&this.setPoint(t)}},{key:"delaySetPopupVisible",value:function(e,t,n){var r=this,a=1e3*t;if(this.clearDelayTimer(),a){var i=n?{pageX:n.pageX,pageY:n.pageY}:null;this.delayTimer=window.setTimeout((function(){r.setPopupVisible(e,i),r.clearDelayTimer()}),a)}else this.setPopupVisible(e,n)}},{key:"clearDelayTimer",value:function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)}},{key:"clearOutsideHandler",value:function(){this.clickOutsideHandler&&(this.clickOutsideHandler.remove(),this.clickOutsideHandler=null),this.contextMenuOutsideHandler1&&(this.contextMenuOutsideHandler1.remove(),this.contextMenuOutsideHandler1=null),this.contextMenuOutsideHandler2&&(this.contextMenuOutsideHandler2.remove(),this.contextMenuOutsideHandler2=null),this.touchOutsideHandler&&(this.touchOutsideHandler.remove(),this.touchOutsideHandler=null)}},{key:"createTwoChains",value:function(e){var t=this.props.children.props,n=this.props;return t[e]&&n[e]?this["fire".concat(e)]:t[e]||n[e]}},{key:"isClickToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("click")||-1!==n.indexOf("click")}},{key:"isContextMenuOnly",value:function(){var e=this.props.action;return"contextMenu"===e||1===e.length&&"contextMenu"===e[0]}},{key:"isContextMenuToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("contextMenu")||-1!==n.indexOf("contextMenu")}},{key:"isClickToHide",value:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("click")||-1!==n.indexOf("click")}},{key:"isMouseEnterToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("hover")||-1!==n.indexOf("mouseEnter")}},{key:"isMouseLeaveToHide",value:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("hover")||-1!==n.indexOf("mouseLeave")}},{key:"isFocusToShow",value:function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("focus")||-1!==n.indexOf("focus")}},{key:"isBlurToHide",value:function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("focus")||-1!==n.indexOf("blur")}},{key:"forcePopupAlign",value:function(){var e;this.state.popupVisible&&(null===(e=this.popupRef.current)||void 0===e||e.forceAlign())}},{key:"fireEvents",value:function(e,t){var n=this.props.children.props[e];n&&n(t);var r=this.props[e];r&&r(t)}},{key:"close",value:function(){this.setPopupVisible(!1)}},{key:"render",value:function(){var e=this.state.popupVisible,t=this.props,n=t.children,r=t.forceRender,a=t.alignPoint,i=t.className,s=t.autoDestroy,u=l.Children.only(n),d={key:"trigger"};this.isContextMenuToShow()?d.onContextMenu=this.onContextMenu:d.onContextMenu=this.createTwoChains("onContextMenu"),this.isClickToHide()||this.isClickToShow()?(d.onClick=this.onClick,d.onMouseDown=this.onMouseDown,d.onTouchStart=this.onTouchStart):(d.onClick=this.createTwoChains("onClick"),d.onMouseDown=this.createTwoChains("onMouseDown"),d.onTouchStart=this.createTwoChains("onTouchStart")),this.isMouseEnterToShow()?(d.onMouseEnter=this.onMouseEnter,a&&(d.onMouseMove=this.onMouseMove)):d.onMouseEnter=this.createTwoChains("onMouseEnter"),this.isMouseLeaveToHide()?d.onMouseLeave=this.onMouseLeave:d.onMouseLeave=this.createTwoChains("onMouseLeave"),this.isFocusToShow()||this.isBlurToHide()?(d.onFocus=this.onFocus,d.onBlur=this.onBlur):(d.onFocus=this.createTwoChains("onFocus"),d.onBlur=this.createTwoChains("onBlur"));var f=c()(u&&u.props&&u.props.className,i);f&&(d.className=f);var p=Object(o.a)({},d);Object(ce.c)(u)&&(p.ref=Object(ce.a)(this.triggerRef,u.ref));var h,m=l.cloneElement(u,p);return(e||this.popupRef.current||r)&&(h=l.createElement(lt,{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),!e&&s&&(h=null),l.createElement(nt.Provider,{value:this.triggerContextValue},m,h)}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=e.popupVisible,r={};return void 0!==n&&t.popupVisible!==n&&(r.popupVisible=n,r.prevPopupVisible=t.popupVisible),r}}]),n}(l.Component)).contextType=nt,st.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:at,getDocument:it,onPopupVisibleChange:rt,afterPopupVisibleChange:rt,onPopupAlign:rt,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[],autoDestroy:!1},st),ut={adjustX:1,adjustY:1},dt={topLeft:{points:["bl","tl"],overflow:ut,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:ut,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:ut,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:ut,offset:[4,0]}},ft={topLeft:{points:["bl","tl"],overflow:ut,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:ut,offset:[0,7]},rightTop:{points:["tr","tl"],overflow:ut,offset:[-4,0]},leftTop:{points:["tl","tr"],overflow:ut,offset:[4,0]}},pt=0,ht={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"},mt=function(e,t,n){var a=_(t),i=e.getState();e.setState({defaultActiveFirst:Object(o.a)(Object(o.a)({},i.defaultActiveFirst),{},Object(r.a)({},a,n))})},vt=function(e){Object(k.a)(n,e);var t=Object(w.a)(n);function n(e){var r;Object(C.a)(this,n),(r=t.call(this,e)).onDestroy=function(e){r.props.onDestroy(e)},r.onKeyDown=function(e){var t=e.keyCode,n=r.menuInstance,a=r.props.store,i=r.getVisible();if(t===g.a.ENTER)return r.onTitleClick(e),mt(a,r.props.eventKey,!0),!0;if(t===g.a.RIGHT)return i?n.onKeyDown(e):(r.triggerOpenChange(!0),mt(a,r.props.eventKey,!0)),!0;if(t===g.a.LEFT){var o;if(!i)return;return(o=n.onKeyDown(e))||(r.triggerOpenChange(!1),o=!0),o}return!i||t!==g.a.UP&&t!==g.a.DOWN?void 0:n.onKeyDown(e)},r.onOpenChange=function(e){r.props.onOpenChange(e)},r.onPopupVisibleChange=function(e){r.triggerOpenChange(e,e?"mouseenter":"mouseleave")},r.onMouseEnter=function(e){var t=r.props,n=t.eventKey,a=t.onMouseEnter,i=t.store;mt(i,r.props.eventKey,!1),a({key:n,domEvent:e})},r.onMouseLeave=function(e){var t=r.props,n=t.parentMenu,a=t.eventKey,i=t.onMouseLeave;n.subMenuInstance=Object(O.a)(r),i({key:a,domEvent:e})},r.onTitleMouseEnter=function(e){var t=r.props,n=t.eventKey,a=t.onItemHover,i=t.onTitleMouseEnter;a({key:n,hover:!0}),i({key:n,domEvent:e})},r.onTitleMouseLeave=function(e){var t=r.props,n=t.parentMenu,a=t.eventKey,i=t.onItemHover,o=t.onTitleMouseLeave;n.subMenuInstance=Object(O.a)(r),i({key:a,hover:!1}),o({key:a,domEvent:e})},r.onTitleClick=function(e){var t=Object(O.a)(r).props;t.onTitleClick({key:t.eventKey,domEvent:e}),"hover"!==t.triggerSubMenuAction&&(r.triggerOpenChange(!r.getVisible(),"click"),mt(t.store,r.props.eventKey,!1))},r.onSubMenuClick=function(e){"function"==typeof r.props.onClick&&r.props.onClick(r.addKeyPath(e))},r.onSelect=function(e){r.props.onSelect(e)},r.onDeselect=function(e){r.props.onDeselect(e)},r.getPrefixCls=function(){return"".concat(r.props.rootPrefixCls,"-submenu")},r.getActiveClassName=function(){return"".concat(r.getPrefixCls(),"-active")},r.getDisabledClassName=function(){return"".concat(r.getPrefixCls(),"-disabled")},r.getSelectedClassName=function(){return"".concat(r.getPrefixCls(),"-selected")},r.getOpenClassName=function(){return"".concat(r.props.rootPrefixCls,"-submenu-open")},r.getVisible=function(){return r.state.isOpen},r.getMode=function(){return r.state.mode},r.saveMenuInstance=function(e){r.menuInstance=e},r.addKeyPath=function(e){return Object(o.a)(Object(o.a)({},e),{},{keyPath:(e.keyPath||[]).concat(r.props.eventKey)})},r.triggerOpenChange=function(e,t){var n=r.props.eventKey,a=function(){r.onOpenChange({key:n,item:Object(O.a)(r),trigger:t,open:e})};"mouseenter"===t?r.mouseenterTimeout=setTimeout((function(){a()}),0):a()},r.isChildrenSelected=function(){var e={find:!1};return function e(t,n,r){t&&!r.find&&l.Children.forEach(t,(function(t){if(t){var a=t.type;if(!a||!(a.isSubMenu||a.isMenuItem||a.isMenuItemGroup))return;-1!==n.indexOf(t.key)?r.find=!0:t.props.children&&e(t.props.children,n,r)}}))}(r.props.children,r.props.selectedKeys,e),e.find},r.isInlineMode=function(){return"inline"===r.getMode()},r.adjustWidth=function(){if(r.subMenuTitle&&r.menuInstance){var e=ae.findDOMNode(r.menuInstance);e.offsetWidth>=r.subMenuTitle.offsetWidth||(e.style.minWidth="".concat(r.subMenuTitle.offsetWidth,"px"))}},r.saveSubMenuTitle=function(e){r.subMenuTitle=e},r.getBaseProps=function(){var e=Object(O.a)(r).props,t=r.getMode();return{mode:"horizontal"===t?"vertical":t,visible:r.getVisible(),level:e.level+1,inlineIndent:e.inlineIndent,focusable:!1,onClick:r.onSubMenuClick,onSelect:r.onSelect,onDeselect:r.onDeselect,onDestroy:r.onDestroy,selectedKeys:e.selectedKeys,eventKey:"".concat(e.eventKey,"-menu-"),openKeys:e.openKeys,motion:e.motion,onOpenChange:r.onOpenChange,subMenuOpenDelay:e.subMenuOpenDelay,parentMenu:Object(O.a)(r),subMenuCloseDelay:e.subMenuCloseDelay,forceSubMenuRender:e.forceSubMenuRender,triggerSubMenuAction:e.triggerSubMenuAction,builtinPlacements:e.builtinPlacements,defaultActiveFirst:e.store.getState().defaultActiveFirst[_(e.eventKey)],multiple:e.multiple,prefixCls:e.rootPrefixCls,id:r.internalMenuId,manualRef:r.saveMenuInstance,itemIcon:e.itemIcon,expandIcon:e.expandIcon,direction:e.direction}},r.getMotion=function(e,t){var n=Object(O.a)(r).haveRendered,a=r.props,i=a.motion,l=a.rootPrefixCls;return Object(o.a)(Object(o.a)({},i),{},{leavedClassName:"".concat(l,"-hidden"),removeOnLeave:!1,motionAppear:n||!t||"inline"!==e})};var a=e.store,i=e.eventKey,s=a.getState().defaultActiveFirst;r.isRootMenu=!1;var c=!1;return s&&(c=s[i]),mt(a,i,c),r.state={mode:e.mode,isOpen:e.isOpen},r}return Object(A.a)(n,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var e=this,t=this.props,n=t.mode,r=t.parentMenu,a=t.manualRef,i=t.isOpen,o=function(){e.setState({mode:n,isOpen:i})},l=i!==this.state.isOpen,s=n!==this.state.mode;(s||l)&&(oe.a.cancel(this.updateStateRaf),s?this.updateStateRaf=Object(oe.a)(o):o()),a&&a(this),"horizontal"===n&&(null==r?void 0:r.isRootMenu)&&i&&(this.minWidthTimeout=setTimeout((function(){return e.adjustWidth()}),0))}},{key:"componentWillUnmount",value:function(){var e=this.props,t=e.onDestroy,n=e.eventKey;t&&t(n),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout),oe.a.cancel(this.updateStateRaf)}},{key:"renderPopupMenu",value:function(e,t){var n=this.getBaseProps();return l.createElement(wt,Object(E.a)({},n,{id:this.internalMenuId,className:e,style:t}),this.props.children)}},{key:"renderChildren",value:function(){var e=this,t=this.getBaseProps(),n=t.mode,a=t.visible,i=t.forceSubMenuRender,o=t.direction,s=this.getMotion(n,a);if(this.haveRendered=!0,this.haveOpened=this.haveOpened||a||i,!this.haveOpened)return l.createElement("div",null);var u=c()("".concat(t.prefixCls,"-sub"),Object(r.a)({},"".concat(t.prefixCls,"-rtl"),"rtl"===o));return this.isInlineMode()?l.createElement(Qe,Object(E.a)({visible:t.visible,forceRender:i},s),(function(t){var n=t.className,r=t.style,a=c()(u,n);return e.renderPopupMenu(a,r)})):this.renderPopupMenu(u)}},{key:"render",value:function(){var e,t,n,a=Object(o.a)({},this.props),i=this.getVisible(),s=this.getPrefixCls(),u=this.isInlineMode(),d=this.getMode(),f=c()(s,"".concat(s,"-").concat(d),(e={},Object(r.a)(e,a.className,!!a.className),Object(r.a)(e,this.getOpenClassName(),i),Object(r.a)(e,this.getActiveClassName(),a.active||i&&!u),Object(r.a)(e,this.getDisabledClassName(),a.disabled),Object(r.a)(e,this.getSelectedClassName(),this.isChildrenSelected()),e));this.internalMenuId||(a.eventKey?this.internalMenuId="".concat(a.eventKey,"$Menu"):(pt+=1,this.internalMenuId="$__$".concat(pt,"$Menu")));var p={},h={},m={};a.disabled||(p={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},h={onClick:this.onTitleClick},m={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var v={},g="rtl"===a.direction;u&&(g?v.paddingRight=a.inlineIndent*a.level:v.paddingLeft=a.inlineIndent*a.level);var b={};this.getVisible()&&(b={"aria-owns":this.internalMenuId});var y=null;"horizontal"!==d&&(y=this.props.expandIcon,"function"==typeof this.props.expandIcon&&(y=l.createElement(this.props.expandIcon,Object(o.a)({},this.props))));var x=l.createElement("div",Object(E.a)({ref:this.saveSubMenuTitle,style:v,className:"".concat(s,"-title"),role:"button"},m,h,{"aria-expanded":i},b,{"aria-haspopup":"true",title:"string"==typeof a.title?a.title:void 0}),a.title,y||l.createElement("i",{className:"".concat(s,"-arrow")})),C=this.renderChildren(),A=(null===(t=a.parentMenu)||void 0===t?void 0:t.isRootMenu)?a.parentMenu.props.getPopupContainer:function(e){return e.parentNode},O=ht[d],k=a.popupOffset?{offset:a.popupOffset}:{},w=c()((n={},Object(r.a)(n,a.popupClassName,a.popupClassName&&!u),Object(r.a)(n,"".concat(s,"-rtl"),g),n)),S=a.disabled,j=a.triggerSubMenuAction,N=a.subMenuOpenDelay,I=a.forceSubMenuRender,M=a.subMenuCloseDelay,T=a.builtinPlacements;ee.forEach((function(e){return delete a[e]})),delete a.onClick;var D=g?Object(o.a)(Object(o.a)({},ft),T):Object(o.a)(Object(o.a)({},dt),T);delete a.direction;var R=this.getBaseProps(),L=u?null:this.getMotion(R.mode,R.visible);return l.createElement("li",Object(E.a)({},a,p,{className:f,role:"menuitem"}),l.createElement(ct,{prefixCls:s,popupClassName:c()("".concat(s,"-popup"),w),getPopupContainer:A,builtinPlacements:D,popupPlacement:O,popupVisible:!u&&i,popupAlign:k,popup:u?null:C,action:S||u?[]:[j],mouseEnterDelay:N,mouseLeaveDelay:M,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:I,popupMotion:L},x),u?C:null)}}]),n}(l.Component);vt.defaultProps={onMouseEnter:q,onMouseLeave:q,onTitleMouseEnter:q,onTitleMouseLeave:q,onTitleClick:q,manualRef:q,mode:"vertical",title:""};var gt=Object(S.b)((function(e,t){var n=e.openKeys,r=e.activeKey,a=e.selectedKeys,i=t.eventKey,o=t.subMenuKey;return{isOpen:n.indexOf(i)>-1,active:r[o]===i,selectedKeys:a}}))(vt);gt.isSubMenu=!0;var bt=gt,yt=function(e){Object(k.a)(n,e);var t=Object(w.a)(n);function n(){var e;return Object(C.a)(this,n),(e=t.apply(this,arguments)).resizeObserver=null,e.mutationObserver=null,e.originalTotalWidth=0,e.overflowedItems=[],e.menuItemSizes=[],e.cancelFrameId=null,e.state={lastVisibleIndex:void 0},e.childRef=l.createRef(),e.getMenuItemNodes=function(){var t=e.props.prefixCls,n=e.childRef.current;return n?[].slice.call(n.children).filter((function(e){return e.className.split(" ").indexOf("".concat(t,"-overflowed-submenu"))<0})):[]},e.getOverflowedSubMenuItem=function(t,n,r){var a=e.props,s=a.overflowedIndicator,c=a.level,u=a.mode,d=a.prefixCls,f=a.theme;if(1!==c||"horizontal"!==u)return null;var p=e.props.children[0].props,h=(p.children,p.title,p.style),m=Object(i.a)(p,["children","title","style"]),v=Object(o.a)({},h),g="".concat(t,"-overflowed-indicator"),b="".concat(t,"-overflowed-indicator");0===n.length&&!0!==r?v=Object(o.a)(Object(o.a)({},v),{},{display:"none"}):r&&(v=Object(o.a)(Object(o.a)({},v),{},{visibility:"hidden",position:"absolute"}),g="".concat(g,"-placeholder"),b="".concat(b,"-placeholder"));var y=f?"".concat(d,"-").concat(f):"",x={};return ee.forEach((function(e){void 0!==m[e]&&(x[e]=m[e])})),l.createElement(bt,Object(E.a)({title:s,className:"".concat(d,"-overflowed-submenu"),popupClassName:y},x,{key:g,eventKey:b,disabled:!1,style:v}),n)},e.setChildrenWidthAndResize=function(){if("horizontal"===e.props.mode){var t=e.childRef.current;if(t){var n=t.children;if(n&&0!==n.length){var r=t.children[n.length-1];ne(r,"display","inline-block");var a=e.getMenuItemNodes(),i=a.filter((function(e){return e.className.split(" ").indexOf("menuitem-overflowed")>=0}));i.forEach((function(e){ne(e,"display","inline-block")})),e.menuItemSizes=a.map((function(e){return te(e,!0)})),i.forEach((function(e){ne(e,"display","none")})),e.overflowedIndicatorWidth=te(t.children[t.children.length-1],!0),e.originalTotalWidth=e.menuItemSizes.reduce((function(e,t){return e+t}),0),e.handleResize(),ne(r,"display","none")}}}},e.handleResize=function(){if("horizontal"===e.props.mode){var t=e.childRef.current;if(t){var n=te(t);e.overflowedItems=[];var r,a=0;e.originalTotalWidth>n+.5&&(r=-1,e.menuItemSizes.forEach((function(t){(a+=t)+e.overflowedIndicatorWidth<=n&&(r+=1)}))),e.setState({lastVisibleIndex:r})}}},e}return Object(A.a)(n,[{key:"componentDidMount",value:function(){var e=this;if(this.setChildrenWidthAndResize(),1===this.props.level&&"horizontal"===this.props.mode){var t=this.childRef.current;if(!t)return;this.resizeObserver=new re.default((function(t){t.forEach((function(){var t=e.cancelFrameId;cancelAnimationFrame(t),e.cancelFrameId=requestAnimationFrame(e.setChildrenWidthAndResize)}))})),[].slice.call(t.children).concat(t).forEach((function(t){e.resizeObserver.observe(t)})),"undefined"!=typeof MutationObserver&&(this.mutationObserver=new MutationObserver((function(){e.resizeObserver.disconnect(),[].slice.call(t.children).concat(t).forEach((function(t){e.resizeObserver.observe(t)})),e.setChildrenWidthAndResize()})),this.mutationObserver.observe(t,{attributes:!1,childList:!0,subTree:!1}))}}},{key:"componentWillUnmount",value:function(){this.resizeObserver&&this.resizeObserver.disconnect(),this.mutationObserver&&this.mutationObserver.disconnect(),cancelAnimationFrame(this.cancelFrameId)}},{key:"renderChildren",value:function(e){var t=this,n=this.state.lastVisibleIndex;return(e||[]).reduce((function(r,a,i){var o=a;if("horizontal"===t.props.mode){var s=t.getOverflowedSubMenuItem(a.props.eventKey,[]);void 0!==n&&-1!==t.props.className.indexOf("".concat(t.props.prefixCls,"-root"))&&(i>n&&(o=l.cloneElement(a,{style:{display:"none"},eventKey:"".concat(a.props.eventKey,"-hidden"),className:"".concat("menuitem-overflowed")})),i===n+1&&(t.overflowedItems=e.slice(n+1).map((function(e){return l.cloneElement(e,{key:e.props.eventKey,mode:"vertical-left"})})),s=t.getOverflowedSubMenuItem(a.props.eventKey,t.overflowedItems)));var c=[].concat(Object(f.a)(r),[s,o]);return i===e.length-1&&c.push(t.getOverflowedSubMenuItem(a.props.eventKey,[],!0)),c}return[].concat(Object(f.a)(r),[o])}),[])}},{key:"render",value:function(){var e=this.props,t=(e.visible,e.prefixCls,e.overflowedIndicator,e.mode,e.level,e.tag),n=e.children,r=(e.theme,Object(i.a)(e,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"])),a=t;return l.createElement(a,Object(E.a)({ref:this.childRef},r),this.renderChildren(n))}}]),n}(l.Component);yt.defaultProps={tag:"div",className:""};var xt=yt;function Et(e,t,n){var a=e.getState();e.setState({activeKey:Object(o.a)(Object(o.a)({},a.activeKey),{},Object(r.a)({},t,n))})}function Ct(e){return e.eventKey||"0-menu-"}function At(e,t){var n,r=t,a=e.children,i=e.eventKey;if(r&&($(a,(function(e,t){e&&e.props&&!e.props.disabled&&r===X(e,i,t)&&(n=!0)})),n))return r;return r=null,e.defaultActiveFirst?($(a,(function(e,t){r||!e||e.props.disabled||(r=X(e,i,t))})),r):r}function Ot(e){if(e){var t=this.instanceArray.indexOf(e);-1!==t?this.instanceArray[t]=e:this.instanceArray.push(e)}}var kt=function(e){Object(k.a)(n,e);var t=Object(w.a)(n);function n(e){var a;return Object(C.a)(this,n),(a=t.call(this,e)).onKeyDown=function(e,t){var n,r=e.keyCode;if(a.getFlatInstanceArray().forEach((function(t){t&&t.props.active&&t.onKeyDown&&(n=t.onKeyDown(e))})),n)return 1;var i=null;return r!==g.a.UP&&r!==g.a.DOWN||(i=a.step(r===g.a.UP?-1:1)),i?(e.preventDefault(),Et(a.props.store,Ct(a.props),i.props.eventKey),"function"==typeof t&&t(i),1):void 0},a.onItemHover=function(e){var t=e.key,n=e.hover;Et(a.props.store,Ct(a.props),n?t:null)},a.onDeselect=function(e){a.props.onDeselect(e)},a.onSelect=function(e){a.props.onSelect(e)},a.onClick=function(e){a.props.onClick(e)},a.onOpenChange=function(e){a.props.onOpenChange(e)},a.onDestroy=function(e){a.props.onDestroy(e)},a.getFlatInstanceArray=function(){return a.instanceArray},a.step=function(e){var t=a.getFlatInstanceArray(),n=a.props.store.getState().activeKey[Ct(a.props)],r=t.length;if(!r)return null;e<0&&(t=t.concat().reverse());var i=-1;if(t.every((function(e,t){return!e||e.props.eventKey!==n||(i=t,!1)})),a.props.defaultActiveFirst||-1===i||(o=t.slice(i,r-1)).length&&!o.every((function(e){return!!e.props.disabled}))){var o,l=(i+1)%r,s=l;do{var c=t[s];if(c&&!c.props.disabled)return c;s=(s+1)%r}while(s!==l);return null}},a.renderCommonMenuItem=function(e,t,n){var r=a.props.store.getState(),i=Object(O.a)(a).props,s=X(e,i.eventKey,t),c=e.props;if(!c||"string"==typeof e.type)return e;var u=s===r.activeKey,d=Object(o.a)(Object(o.a)({mode:c.mode||i.mode,level:i.level,inlineIndent:i.inlineIndent,renderMenuItem:a.renderMenuItem,rootPrefixCls:i.prefixCls,index:t,parentMenu:i.parentMenu,manualRef:c.disabled?void 0:Object(N.a)(e.ref,Ot.bind(Object(O.a)(a))),eventKey:s,active:!c.disabled&&u,multiple:i.multiple,onClick:function(e){(c.onClick||q)(e),a.onClick(e)},onItemHover:a.onItemHover,motion:i.motion,subMenuOpenDelay:i.subMenuOpenDelay,subMenuCloseDelay:i.subMenuCloseDelay,forceSubMenuRender:i.forceSubMenuRender,onOpenChange:a.onOpenChange,onDeselect:a.onDeselect,onSelect:a.onSelect,builtinPlacements:i.builtinPlacements,itemIcon:c.itemIcon||a.props.itemIcon,expandIcon:c.expandIcon||a.props.expandIcon},n),{},{direction:i.direction});return("inline"===i.mode||Z.any)&&(d.triggerSubMenuAction="click"),l.cloneElement(e,Object(o.a)(Object(o.a)({},d),{},{key:s||t}))},a.renderMenuItem=function(e,t,n){if(!e)return null;var r=a.props.store.getState(),i={openKeys:r.openKeys,selectedKeys:r.selectedKeys,triggerSubMenuAction:a.props.triggerSubMenuAction,subMenuKey:n};return a.renderCommonMenuItem(e,t,i)},e.store.setState({activeKey:Object(o.a)(Object(o.a)({},e.store.getState().activeKey),{},Object(r.a)({},e.eventKey,At(e,e.activeKey)))}),a.instanceArray=[],a}return Object(A.a)(n,[{key:"componentDidMount",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"shouldComponentUpdate",value:function(e){return this.props.visible||e.visible||this.props.className!==e.className||!M()(this.props.style,e.style)}},{key:"componentDidUpdate",value:function(e){var t=this.props,n="activeKey"in t?t.activeKey:t.store.getState().activeKey[Ct(t)],r=At(t,n);if(r!==n)Et(t.store,Ct(t),r);else if("activeKey"in e){r!==At(e,e.activeKey)&&Et(t.store,Ct(t),r)}}},{key:"render",value:function(){var e=this,t=Object(E.a)({},this.props);this.instanceArray=[];var n={className:c()(t.prefixCls,t.className,"".concat(t.prefixCls,"-").concat(t.mode)),role:t.role||"menu"};t.id&&(n.id=t.id),t.focusable&&(n.tabIndex=0,n.onKeyDown=this.onKeyDown);var r=t.prefixCls,a=t.eventKey,i=t.visible,o=t.level,s=t.mode,d=t.overflowedIndicator,f=t.theme;return ee.forEach((function(e){return delete t[e]})),delete t.onClick,l.createElement(xt,Object(E.a)({},t,{prefixCls:r,mode:s,tag:"ul",level:o,theme:f,visible:i,overflowedIndicator:d},n),Object(u.a)(t.children).map((function(t,n){return e.renderMenuItem(t,n,a||"0-menu-")})))}}]),n}(l.Component);kt.defaultProps={prefixCls:"rc-menu",className:"",mode:"vertical",level:1,inlineIndent:24,visible:!0,focusable:!0,style:{},manualRef:q};var wt=Object(S.b)()(kt),St=n("Kwbf");function jt(e,t,n){var r=e.prefixCls,a=e.motion,i=e.defaultMotions,o=void 0===i?{}:i,l=e.openAnimation,s=e.openTransitionName,c=t.switchingModeFromInline;if(a)return a;if("object"===Object(T.a)(l)&&l)Object(St.a)(!1,"Object type of `openAnimation` is removed. Please use `motion` instead.");else if("string"==typeof l)return{motionName:"".concat(r,"-open-").concat(l)};if(s)return{motionName:s};var u=o[n];return u||(c?null:o.other)}var Nt=function(e){Object(k.a)(n,e);var t=Object(w.a)(n);function n(e){var r;Object(C.a)(this,n),(r=t.call(this,e)).onSelect=function(e){var t=Object(O.a)(r).props;if(t.selectable){var n=r.store.getState().selectedKeys,a=e.key;n=t.multiple?n.concat([a]):[a],"selectedKeys"in t||r.store.setState({selectedKeys:n}),t.onSelect(Object(o.a)(Object(o.a)({},e),{},{selectedKeys:n}))}},r.onClick=function(e){var t=r.getRealMenuMode(),n=Object(O.a)(r),a=n.store,i=n.props.onOpenChange;"inline"===t||"openKeys"in r.props||(a.setState({openKeys:[]}),i([])),r.props.onClick(e)},r.onKeyDown=function(e,t){r.innerMenu.getWrappedInstance().onKeyDown(e,t)},r.onOpenChange=function(e){var t=Object(O.a)(r).props,n=r.store.getState().openKeys.concat(),a=!1,i=function(e){var t=!1;if(e.open)(t=-1===n.indexOf(e.key))&&n.push(e.key);else{var r=n.indexOf(e.key);(t=-1!==r)&&n.splice(r,1)}a=a||t};Array.isArray(e)?e.forEach(i):i(e),a&&("openKeys"in r.props||r.store.setState({openKeys:n}),t.onOpenChange(n))},r.onDeselect=function(e){var t=Object(O.a)(r).props;if(t.selectable){var n=r.store.getState().selectedKeys.concat(),a=e.key,i=n.indexOf(a);-1!==i&&n.splice(i,1),"selectedKeys"in t||r.store.setState({selectedKeys:n}),t.onDeselect(Object(o.a)(Object(o.a)({},e),{},{selectedKeys:n}))}},r.onMouseEnter=function(e){r.restoreModeVerticalFromInline();var t=r.props.onMouseEnter;t&&t(e)},r.onTransitionEnd=function(e){var t="width"===e.propertyName&&e.target===e.currentTarget,n=e.target.className,a="[object SVGAnimatedString]"===Object.prototype.toString.call(n)?n.animVal:n,i="font-size"===e.propertyName&&a.indexOf("anticon")>=0;(t||i)&&r.restoreModeVerticalFromInline()},r.setInnerMenu=function(e){r.innerMenu=e},r.isRootMenu=!0;var a=e.defaultSelectedKeys,i=e.defaultOpenKeys;return"selectedKeys"in e&&(a=e.selectedKeys||[]),"openKeys"in e&&(i=e.openKeys||[]),r.store=Object(S.c)({selectedKeys:a,openKeys:i,activeKey:{"0-menu-":At(e,e.activeKey)}}),r.state={switchingModeFromInline:!1,prevProps:e,inlineOpenKeys:[],store:r.store},r}return Object(A.a)(n,[{key:"componentDidMount",value:function(){this.updateMiniStore(),this.updateMenuDisplay()}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.siderCollapsed,r=t.inlineCollapsed,a=t.onOpenChange;(!e.inlineCollapsed&&r||!e.siderCollapsed&&n)&&a([]),this.updateMiniStore(),this.updateMenuDisplay()}},{key:"updateMenuDisplay",value:function(){var e=this.props.collapsedWidth,t=this.store,n=this.prevOpenKeys;this.getInlineCollapsed()&&(0===e||"0"===e||"0px"===e)?(this.prevOpenKeys=t.getState().openKeys.concat(),this.store.setState({openKeys:[]})):n&&(this.store.setState({openKeys:n}),this.prevOpenKeys=null)}},{key:"getRealMenuMode",value:function(){var e=this.props.mode,t=this.state.switchingModeFromInline,n=this.getInlineCollapsed();return t&&n?"inline":n?"vertical":e}},{key:"getInlineCollapsed",value:function(){var e=this.props,t=e.inlineCollapsed,n=e.siderCollapsed;return void 0!==n?n:t}},{key:"restoreModeVerticalFromInline",value:function(){this.state.switchingModeFromInline&&this.setState({switchingModeFromInline:!1})}},{key:"updateMiniStore",value:function(){"selectedKeys"in this.props&&this.store.setState({selectedKeys:this.props.selectedKeys||[]}),"openKeys"in this.props&&this.store.setState({openKeys:this.props.openKeys||[]})}},{key:"render",value:function(){var e=Object(o.a)({},Object(j.a)(this.props,["collapsedWidth","siderCollapsed","defaultMotions"])),t=this.getRealMenuMode();return e.className+=" ".concat(e.prefixCls,"-root"),"rtl"===e.direction&&(e.className+=" ".concat(e.prefixCls,"-rtl")),delete(e=Object(o.a)(Object(o.a)({},e),{},{mode:t,onClick:this.onClick,onOpenChange:this.onOpenChange,onDeselect:this.onDeselect,onSelect:this.onSelect,onMouseEnter:this.onMouseEnter,onTransitionEnd:this.onTransitionEnd,parentMenu:this,motion:jt(this.props,this.state,t)})).openAnimation,delete e.openTransitionName,l.createElement(S.a,{store:this.store},l.createElement(wt,Object(E.a)({},e,{ref:this.setInnerMenu}),this.props.children))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t.store,a=r.getState(),i={},o={prevProps:e};return"inline"===n.mode&&"inline"!==e.mode&&(o.switchingModeFromInline=!0),"openKeys"in e?i.openKeys=e.openKeys||[]:((e.inlineCollapsed&&!n.inlineCollapsed||e.siderCollapsed&&!n.siderCollapsed)&&(o.switchingModeFromInline=!0,o.inlineOpenKeys=a.openKeys,i.openKeys=[]),(!e.inlineCollapsed&&n.inlineCollapsed||!e.siderCollapsed&&n.siderCollapsed)&&(i.openKeys=t.inlineOpenKeys,o.inlineOpenKeys=[])),Object.keys(i).length&&r.setState(i),o}}]),n}(l.Component);Nt.defaultProps={selectable:!0,onClick:q,onSelect:q,onOpenChange:q,onDeselect:q,defaultSelectedKeys:[],defaultOpenKeys:[],subMenuOpenDelay:.1,subMenuCloseDelay:.1,triggerSubMenuAction:"hover",prefixCls:"rc-menu",className:"",mode:"vertical",style:{},builtinPlacements:{},overflowedIndicator:l.createElement("span",null,"···")};var It=Nt,Mt=function(e){Object(k.a)(n,e);var t=Object(w.a)(n);function n(){var e;return Object(C.a)(this,n),(e=t.apply(this,arguments)).onKeyDown=function(t){if(t.keyCode===g.a.ENTER)return e.onClick(t),!0},e.onMouseLeave=function(t){var n=e.props,r=n.eventKey,a=n.onItemHover,i=n.onMouseLeave;a({key:r,hover:!1}),i({key:r,domEvent:t})},e.onMouseEnter=function(t){var n=e.props,r=n.eventKey,a=n.onItemHover,i=n.onMouseEnter;a({key:r,hover:!0}),i({key:r,domEvent:t})},e.onClick=function(t){var n=e.props,r=n.eventKey,a=n.multiple,i=n.onClick,o=n.onSelect,l=n.onDeselect,s=n.isSelected,c={key:r,keyPath:[r],item:Object(O.a)(e),domEvent:t};i(c),a?s?l(c):o(c):s||o(c)},e.saveNode=function(t){e.node=t},e}return Object(A.a)(n,[{key:"componentDidMount",value:function(){this.callRef()}},{key:"componentDidUpdate",value:function(){this.callRef()}},{key:"componentWillUnmount",value:function(){var e=this.props;e.onDestroy&&e.onDestroy(e.eventKey)}},{key:"getPrefixCls",value:function(){return"".concat(this.props.rootPrefixCls,"-item")}},{key:"getActiveClassName",value:function(){return"".concat(this.getPrefixCls(),"-active")}},{key:"getSelectedClassName",value:function(){return"".concat(this.getPrefixCls(),"-selected")}},{key:"getDisabledClassName",value:function(){return"".concat(this.getPrefixCls(),"-disabled")}},{key:"callRef",value:function(){this.props.manualRef&&this.props.manualRef(this)}},{key:"render",value:function(){var e,t=Object(o.a)({},this.props),n=c()(this.getPrefixCls(),t.className,(e={},Object(r.a)(e,this.getActiveClassName(),!t.disabled&&t.active),Object(r.a)(e,this.getSelectedClassName(),t.isSelected),Object(r.a)(e,this.getDisabledClassName(),t.disabled),e)),a=Object(o.a)(Object(o.a)({},t.attribute),{},{title:"string"==typeof t.title?t.title:void 0,className:n,role:t.role||"menuitem","aria-disabled":t.disabled});"option"===t.role?a=Object(o.a)(Object(o.a)({},a),{},{role:"option","aria-selected":t.isSelected}):null!==t.role&&"none"!==t.role||(a.role="none");var i={onClick:t.disabled?null:this.onClick,onMouseLeave:t.disabled?null:this.onMouseLeave,onMouseEnter:t.disabled?null:this.onMouseEnter},s=Object(o.a)({},t.style);"inline"===t.mode&&("rtl"===t.direction?s.paddingRight=t.inlineIndent*t.level:s.paddingLeft=t.inlineIndent*t.level),ee.forEach((function(e){return delete t[e]})),delete t.direction;var u=this.props.itemIcon;return"function"==typeof this.props.itemIcon&&(u=l.createElement(this.props.itemIcon,this.props)),l.createElement("li",Object(E.a)({},Object(j.a)(t,["onClick","onMouseEnter","onMouseLeave","onSelect"]),a,i,{style:s,ref:this.saveNode}),t.children,u)}}]),n}(l.Component);Mt.isMenuItem=!0,Mt.defaultProps={onSelect:q,onMouseEnter:q,onMouseLeave:q,manualRef:q};var Tt=Object(S.b)((function(e,t){var n=e.activeKey,r=e.selectedKeys,a=t.eventKey;return{active:n[t.subMenuKey]===a,isSelected:Array.isArray(r)?-1!==r.indexOf(a):r===a}}))(Mt),Dt=function(e){Object(k.a)(n,e);var t=Object(w.a)(n);function n(){var e;return Object(C.a)(this,n),(e=t.apply(this,arguments)).renderInnerMenuItem=function(t){var n=e.props;return(0,n.renderMenuItem)(t,n.index,e.props.subMenuKey)},e}return Object(A.a)(n,[{key:"render",value:function(){var e=Object(E.a)({},this.props),t=e.className,n=void 0===t?"":t,r=e.rootPrefixCls,a="".concat(r,"-item-group-title"),i="".concat(r,"-item-group-list"),o=e.title,s=e.children;return ee.forEach((function(t){return delete e[t]})),delete e.direction,l.createElement("li",Object(E.a)({},e,{onClick:function(e){return e.stopPropagation()},className:"".concat(n," ").concat(r,"-item-group")}),l.createElement("div",{className:a,title:"string"==typeof o?o:void 0},o),l.createElement("ul",{className:i},l.Children.map(s,this.renderInnerMenuItem)))}}]),n}(l.Component);Dt.isMenuItemGroup=!0,Dt.defaultProps={disabled:!0};var Rt=function(e){var t=e.className,n=e.rootPrefixCls,r=e.style;return l.createElement("li",{className:"".concat(t," ").concat(n,"-item-divider"),style:r})};Rt.defaultProps={disabled:!0,className:"",style:{}};var Lt=It,Bt=n("eDIo");var Pt=l.forwardRef((function(e,t){var n=e.prefixCls,r=e.editable,a=e.locale,i=e.style;return r&&!1!==r.showAdd?l.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:i,"aria-label":(null==a?void 0:a.addAriaLabel)||"Add tab",onClick:function(e){r.onEdit("add",{event:e})}},r.addIcon||"+"):null}));var Kt=l.forwardRef((function(e,t){var n=e.prefixCls,i=e.id,o=e.tabs,s=e.locale,u=e.mobile,d=e.moreIcon,f=void 0===d?"More":d,p=e.moreTransitionName,h=e.style,m=e.className,v=e.editable,b=e.tabBarGutter,y=e.rtl,x=e.onTabClick,E=Object(l.useState)(!1),C=Object(a.a)(E,2),A=C[0],O=C[1],k=Object(l.useState)(null),w=Object(a.a)(k,2),S=w[0],j=w[1],N="".concat(i,"-more-popup"),I="".concat(n,"-dropdown"),M=null!==S?"".concat(N,"-").concat(S):null,T=null==s?void 0:s.dropdownAriaLabel,D=l.createElement(Lt,{onClick:function(e){var t=e.key,n=e.domEvent;x(t,n),O(!1)},id:N,tabIndex:-1,role:"listbox","aria-activedescendant":M,selectedKeys:[S],"aria-label":void 0!==T?T:"expanded dropdown"},o.map((function(e){return l.createElement(Tt,{key:e.key,id:"".concat(N,"-").concat(e.key),role:"option","aria-controls":i&&"".concat(i,"-panel-").concat(e.key),disabled:e.disabled},e.tab)})));function R(e){for(var t=o.filter((function(e){return!e.disabled})),n=t.findIndex((function(e){return e.key===S}))||0,r=t.length,a=0;a<r;a+=1){var i=t[n=(n+e+r)%r];if(!i.disabled)return void j(i.key)}}Object(l.useEffect)((function(){var e=document.getElementById(M);e&&e.scrollIntoView&&e.scrollIntoView(!1)}),[S]),Object(l.useEffect)((function(){A||j(null)}),[A]);var L=Object(r.a)({},y?"marginLeft":"marginRight",b);o.length||(L.visibility="hidden",L.order=1);var B=c()(Object(r.a)({},"".concat(I,"-rtl"),y)),P=u?null:l.createElement(Bt.a,{prefixCls:I,overlay:D,trigger:["hover"],visible:A,transitionName:p,onVisibleChange:O,overlayClassName:B,mouseEnterDelay:.1,mouseLeaveDelay:.1},l.createElement("button",{type:"button",className:"".concat(n,"-nav-more"),style:L,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":N,id:"".concat(i,"-more"),"aria-expanded":A,onKeyDown:function(e){var t=e.which;if(A)switch(t){case g.a.UP:R(-1),e.preventDefault();break;case g.a.DOWN:R(1),e.preventDefault();break;case g.a.ESC:O(!1);break;case g.a.SPACE:case g.a.ENTER:null!==S&&x(S,e)}else[g.a.DOWN,g.a.SPACE,g.a.ENTER].includes(t)&&(O(!0),e.preventDefault())}},f));return l.createElement("div",{className:c()("".concat(n,"-nav-operations"),m),style:h,ref:t},P,l.createElement(Pt,{prefixCls:n,locale:s,editable:v}))})),Ft=Object(l.createContext)(null),zt=Math.pow(.995,20);function Qt(e,t){var n=l.useRef(e),r=l.useState({}),i=Object(a.a)(r,2)[1];return[n.current,function(e){var r="function"==typeof e?e(n.current):e;r!==n.current&&t(r,n.current),n.current=r,i({})}]}var Wt=function(e){var t,n=e.position,r=e.prefixCls,a=e.extra;if(!a)return null;var i=a;return"right"===n&&(t=i.right||!i.left&&i||null),"left"===n&&(t=i.left||null),t?l.createElement("div",{className:"".concat(r,"-extra-content")},t):null};var Ht=l.forwardRef((function(e,t){var n,i,s=l.useContext(Ft),u=s.prefixCls,d=s.tabs,p=e.className,g=e.style,E=e.id,C=e.animated,A=e.activeKey,O=e.rtl,k=e.extra,w=e.editable,S=e.locale,j=e.tabPosition,N=e.tabBarGutter,I=e.children,M=e.onTabClick,T=e.onTabScroll,D=Object(l.useRef)(),R=Object(l.useRef)(),L=Object(l.useRef)(),B=Object(l.useRef)(),P=(i=Object(l.useRef)(new Map),[function(e){return i.current.has(e)||i.current.set(e,l.createRef()),i.current.get(e)},function(e){i.current.delete(e)}]),K=Object(a.a)(P,2),F=K[0],z=K[1],Q="top"===j||"bottom"===j,W=Qt(0,(function(e,t){Q&&T&&T({direction:e>t?"left":"right"})})),H=Object(a.a)(W,2),J=H[0],U=H[1],V=Qt(0,(function(e,t){!Q&&T&&T({direction:e>t?"top":"bottom"})})),G=Object(a.a)(V,2),Y=G[0],Z=G[1],q=Object(l.useState)(0),X=Object(a.a)(q,2),_=X[0],$=X[1],ee=Object(l.useState)(0),te=Object(a.a)(ee,2),ne=te[0],re=te[1],ae=Object(l.useState)(0),ie=Object(a.a)(ae,2),oe=ie[0],le=ie[1],se=Object(l.useState)(0),ce=Object(a.a)(se,2),ue=ce[0],de=ce[1],fe=Object(l.useState)(null),pe=Object(a.a)(fe,2),he=pe[0],me=pe[1],ve=Object(l.useState)(null),ge=Object(a.a)(ve,2),be=ge[0],ye=ge[1],xe=Object(l.useState)(0),Ee=Object(a.a)(xe,2),Ce=Ee[0],Ae=Ee[1],Oe=Object(l.useState)(0),ke=Object(a.a)(Oe,2),we=ke[0],Se=ke[1],je=function(e){var t=Object(l.useRef)([]),n=Object(l.useState)({}),r=Object(a.a)(n,2)[1],i=Object(l.useRef)("function"==typeof e?e():e),o=v((function(){var e=i.current;t.current.forEach((function(t){e=t(e)})),t.current=[],i.current=e,r({})}));return[i.current,function(e){t.current.push(e),o()}]}(new Map),Ne=Object(a.a)(je,2),Ie=Ne[0],Me=Ne[1],Te=function(e,t,n){return Object(l.useMemo)((function(){for(var n,r=new Map,a=t.get(null===(n=e[0])||void 0===n?void 0:n.key)||y,i=a.left+a.width,l=0;l<e.length;l+=1){var s,c=e[l].key,u=t.get(c);if(!u)u=t.get(null===(s=e[l-1])||void 0===s?void 0:s.key)||y;var d=r.get(c)||Object(o.a)({},u);d.right=i-d.left-d.width,r.set(c,d)}return r}),[e.map((function(e){return e.key})).join("_"),t,n])}(d,Ie,_),De="".concat(u,"-nav-operations-hidden"),Re=0,Le=0;function Be(e){return e<Re?[Re,!1]:e>Le?[Le,!1]:[e,!0]}Q?O?(Re=0,Le=Math.max(0,_-he)):(Re=Math.min(0,he-_),Le=0):(Re=Math.min(0,be-ne),Le=0);var Pe=Object(l.useRef)(),Ke=Object(l.useState)(),Fe=Object(a.a)(Ke,2),ze=Fe[0],Qe=Fe[1];function We(){Qe(Date.now())}function He(){window.clearTimeout(Pe.current)}function Je(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:A,t=Te.get(e);if(t)if(Q){var n=J;O?t.right<J?n=t.right:t.right+t.width>J+he&&(n=t.right+t.width-he):t.left<-J?n=-t.left:t.left+t.width>-J+he&&(n=-(t.left+t.width-he)),Z(0),U(Be(n)[0])}else{var r=Y;t.top<-Y?r=-t.top:t.top+t.height>-Y+be&&(r=-(t.top+t.height-be)),U(0),Z(Be(r)[0])}}!function(e,t){var n=Object(l.useState)(),r=Object(a.a)(n,2),i=r[0],o=r[1],s=Object(l.useState)(0),c=Object(a.a)(s,2),u=c[0],d=c[1],f=Object(l.useState)(0),p=Object(a.a)(f,2),h=p[0],m=p[1],v=Object(l.useState)(),g=Object(a.a)(v,2),b=g[0],y=g[1],x=Object(l.useRef)(),E=Object(l.useRef)(0),C=Object(l.useRef)(!1),A=Object(l.useRef)(),O=Object(l.useRef)(null);O.current={onTouchStart:function(e){var t=e.touches[0],n=t.screenX,r=t.screenY;o({x:n,y:r}),window.clearInterval(x.current)},onTouchMove:function(e){if(i){e.preventDefault();var n=e.touches[0],r=n.screenX,a=n.screenY;o({x:r,y:a});var l=r-i.x,s=a-i.y;t(l,s);var c=Date.now();d(c),m(c-u),y({x:l,y:s})}},onTouchEnd:function(){if(i&&(o(null),y(null),b)){var e=b.x/h,n=b.y/h,r=Math.abs(e),a=Math.abs(n);if(Math.max(r,a)<.1)return;var l=e,s=n;x.current=window.setInterval((function(){Math.abs(l)<.01&&Math.abs(s)<.01?window.clearInterval(x.current):t(20*(l*=zt),20*(s*=zt))}),20)}},onWheel:function(e){var n=e.deltaX,r=e.deltaY,a=0,i=Math.abs(n),o=Math.abs(r);i===o?a="x"===A.current?n:r:i>o?(a=n,A.current="x"):(a=r,A.current="y");var l=Date.now();l-E.current>100&&(C.current=!1),(t(-a,-a)||C.current)&&(e.preventDefault(),C.current=!0),E.current=l}},l.useEffect((function(){function t(e){O.current.onTouchMove(e)}function n(e){O.current.onTouchEnd(e)}return document.addEventListener("touchmove",t,{passive:!1}),document.addEventListener("touchend",n,{passive:!1}),e.current.addEventListener("touchstart",(function(e){O.current.onTouchStart(e)}),{passive:!1}),e.current.addEventListener("wheel",(function(e){O.current.onWheel(e)})),function(){document.removeEventListener("touchmove",t),document.removeEventListener("touchend",n)}}),[])}(D,(function(e,t){var n=!1;function r(e,t){e((function(e){var r=Be(e+t),i=Object(a.a)(r,2),o=i[0],l=i[1];return n=l,o}))}if(Q){if(he>=_)return n;r(U,e)}else{if(be>=ne)return n;r(Z,t)}return He(),We(),n})),Object(l.useEffect)((function(){return He(),ze&&(Pe.current=window.setTimeout((function(){Qe(0)}),100)),He}),[ze]);var Ue=function(e,t,n,r,a){var i,o,s,c=a.tabs,u=a.tabPosition,d=a.rtl;["top","bottom"].includes(u)?(i="width",o=d?"right":"left",s=Math.abs(t.left)):(i="height",o="top",s=-t.top);var f=t[i],p=n[i],h=r[i],m=f;return p+h>f&&(m=f-h),Object(l.useMemo)((function(){if(!c.length)return[0,0];for(var t=c.length,n=t,r=0;r<t;r+=1){var a=e.get(c[r].key)||x;if(a[o]+a[i]>s+m){n=r-1;break}}for(var l=0,u=t-1;u>=0;u-=1){if((e.get(c[u].key)||x)[o]<s){l=u+1;break}}return[l,n]}),[e,s,m,u,c.map((function(e){return e.key})).join("_"),d])}(Te,{width:he,height:be,left:J,top:Y},{width:oe,height:ue},{width:Ce,height:we},Object(o.a)(Object(o.a)({},e),{},{tabs:d})),Ve=Object(a.a)(Ue,2),Ge=Ve[0],Ye=Ve[1],Ze=d.map((function(e){var t=e.key;return l.createElement(b,{id:E,prefixCls:u,key:t,rtl:O,tab:e,closable:e.closable,editable:w,active:t===A,tabPosition:j,tabBarGutter:N,renderWrapper:I,removeAriaLabel:null==S?void 0:S.removeAriaLabel,ref:F(t),onClick:function(e){M(t,e)},onRemove:function(){z(t)},onFocus:function(){Je(t),We(),O||(D.current.scrollLeft=0),D.current.scrollTop=0}})})),qe=v((function(){var e,t,n,r,a,i,o,l,s,c=(null===(e=D.current)||void 0===e?void 0:e.offsetWidth)||0,u=(null===(t=D.current)||void 0===t?void 0:t.offsetHeight)||0,f=(null===(n=B.current)||void 0===n?void 0:n.offsetWidth)||0,p=(null===(r=B.current)||void 0===r?void 0:r.offsetHeight)||0,h=(null===(a=L.current)||void 0===a?void 0:a.offsetWidth)||0,m=(null===(i=L.current)||void 0===i?void 0:i.offsetHeight)||0;me(c),ye(u),Ae(f),Se(p);var v=((null===(o=R.current)||void 0===o?void 0:o.offsetWidth)||0)-f,g=((null===(l=R.current)||void 0===l?void 0:l.offsetHeight)||0)-p;$(v),re(g);var b=null===(s=L.current)||void 0===s?void 0:s.className.includes(De);le(v-(b?0:h)),de(g-(b?0:m)),Me((function(){var e=new Map;return d.forEach((function(t){var n=t.key,r=F(n).current;r&&e.set(n,{width:r.offsetWidth,height:r.offsetHeight,left:r.offsetLeft,top:r.offsetTop})})),e}))})),Xe=d.slice(0,Ge),_e=d.slice(Ye+1),$e=[].concat(Object(f.a)(Xe),Object(f.a)(_e)),et=Object(l.useState)(),tt=Object(a.a)(et,2),nt=tt[0],rt=tt[1],at=Te.get(A),it=Object(l.useRef)();function ot(){h.a.cancel(it.current)}Object(l.useEffect)((function(){var e={};return at&&(Q?(O?e.right=at.right:e.left=at.left,e.width=at.width):(e.top=at.top,e.height=at.height)),ot(),it.current=h()((function(){rt(e)})),ot}),[at,Q,O]),Object(l.useEffect)((function(){Je()}),[A,at,Te,Q]),Object(l.useEffect)((function(){qe()}),[O,N,A,d.map((function(e){return e.key})).join("_")]);var lt,st,ct,ut,dt=!!$e.length,ft="".concat(u,"-nav-wrap");return Q?O?(st=J>0,lt=J+he<_):(lt=J<0,st=-J+he<_):(ct=Y<0,ut=-Y+be<ne),l.createElement("div",{ref:t,role:"tablist",className:c()("".concat(u,"-nav"),p),style:g,onKeyDown:function(){We()}},l.createElement(Wt,{position:"left",extra:k,prefixCls:u}),l.createElement(m.a,{onResize:qe},l.createElement("div",{className:c()(ft,(n={},Object(r.a)(n,"".concat(ft,"-ping-left"),lt),Object(r.a)(n,"".concat(ft,"-ping-right"),st),Object(r.a)(n,"".concat(ft,"-ping-top"),ct),Object(r.a)(n,"".concat(ft,"-ping-bottom"),ut),n)),ref:D},l.createElement(m.a,{onResize:qe},l.createElement("div",{ref:R,className:"".concat(u,"-nav-list"),style:{transform:"translate(".concat(J,"px, ").concat(Y,"px)"),transition:ze?"none":void 0}},Ze,l.createElement(Pt,{ref:B,prefixCls:u,locale:S,editable:w,style:{visibility:dt?"hidden":null}}),l.createElement("div",{className:c()("".concat(u,"-ink-bar"),Object(r.a)({},"".concat(u,"-ink-bar-animated"),C.inkBar)),style:nt}))))),l.createElement(Kt,Object.assign({},e,{ref:L,prefixCls:u,tabs:$e,className:!dt&&De})),l.createElement(Wt,{position:"right",extra:k,prefixCls:u}))}));function Jt(e){var t=e.id,n=e.activeKey,a=e.animated,i=e.tabPosition,o=e.rtl,s=e.destroyInactiveTabPane,u=l.useContext(Ft),d=u.prefixCls,f=u.tabs,p=a.tabPane,h=f.findIndex((function(e){return e.key===n}));return l.createElement("div",{className:c()("".concat(d,"-content-holder"))},l.createElement("div",{className:c()("".concat(d,"-content"),"".concat(d,"-content-").concat(i),Object(r.a)({},"".concat(d,"-content-animated"),p)),style:h&&p?Object(r.a)({},o?"marginRight":"marginLeft","-".concat(h,"00%")):null},f.map((function(e){return l.cloneElement(e.node,{key:e.key,prefixCls:d,tabKey:e.key,id:t,animated:p,active:e.key===n,destroyInactiveTabPane:s})}))))}function Ut(e){var t=e.prefixCls,n=e.forceRender,r=e.className,i=e.style,s=e.id,u=e.active,d=e.animated,f=e.destroyInactiveTabPane,p=e.tabKey,h=e.children,m=l.useState(n),v=Object(a.a)(m,2),g=v[0],b=v[1];l.useEffect((function(){u?b(!0):f&&b(!1)}),[u,f]);var y={};return u||(d?(y.visibility="hidden",y.height=0,y.overflowY="hidden"):y.display="none"),l.createElement("div",{id:s&&"".concat(s,"-panel-").concat(p),role:"tabpanel",tabIndex:u?0:-1,"aria-labelledby":s&&"".concat(s,"-tab-").concat(p),"aria-hidden":!u,style:Object(o.a)(Object(o.a)({},y),i),className:c()("".concat(t,"-tabpane"),u&&"".concat(t,"-tabpane-active"),r)},(u||g||n)&&h)}var Vt=0;var Gt=l.forwardRef((function(e,t){var n,s,f=e.id,p=e.prefixCls,h=void 0===p?"rc-tabs":p,m=e.className,v=e.children,g=e.direction,b=e.activeKey,y=e.defaultActiveKey,x=e.editable,E=e.animated,C=e.tabPosition,A=void 0===C?"top":C,O=e.tabBarGutter,k=e.tabBarStyle,w=e.tabBarExtraContent,S=e.locale,j=e.moreIcon,N=e.moreTransitionName,I=e.destroyInactiveTabPane,M=e.renderTabBar,T=e.onChange,D=e.onTabClick,R=e.onTabScroll,L=Object(i.a)(e,["id","prefixCls","className","children","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll"]),B=function(e){return Object(u.a)(e).map((function(e){if(l.isValidElement(e)){var t=void 0!==e.key?String(e.key):void 0;return Object(o.a)(Object(o.a)({key:t},e.props),{},{node:e})}return null})).filter((function(e){return e}))}(v),P="rtl"===g;s=!1===E?{inkBar:!1,tabPane:!1}:Object(o.a)({inkBar:!0,tabPane:!1},!0!==E?E:null);var K=Object(l.useState)(!1),F=Object(a.a)(K,2),z=F[0],Q=F[1];Object(l.useEffect)((function(){var e;Q((e=navigator.userAgent||navigator.vendor||window.opera,!(!/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)&&!/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e.substr(0,4)))))}),[]);var W=Object(d.a)((function(){var e;return null===(e=B[0])||void 0===e?void 0:e.key}),{value:b,defaultValue:y}),H=Object(a.a)(W,2),J=H[0],U=H[1],V=Object(l.useState)((function(){return B.findIndex((function(e){return e.key===J}))})),G=Object(a.a)(V,2),Y=G[0],Z=G[1];Object(l.useEffect)((function(){var e,t=B.findIndex((function(e){return e.key===J}));-1===t&&(t=Math.max(0,Math.min(Y,B.length-1)),U(null===(e=B[t])||void 0===e?void 0:e.key));Z(t)}),[B.map((function(e){return e.key})).join("_"),J,Y]);var q=Object(d.a)(null,{value:f}),X=Object(a.a)(q,2),_=X[0],$=X[1],ee=A;z&&!["left","right"].includes(A)&&(ee="top"),Object(l.useEffect)((function(){f||($("rc-tabs-".concat(Vt)),Vt+=1)}),[]);var te,ne={id:_,activeKey:J,animated:s,tabPosition:ee,rtl:P,mobile:z},re=Object(o.a)(Object(o.a)({},ne),{},{editable:x,locale:S,moreIcon:j,moreTransitionName:N,tabBarGutter:O,onTabClick:function(e,t){null==D||D(e,t),U(e),null==T||T(e)},onTabScroll:R,extra:w,style:k,panes:v});return te=M?M(re,Ht):l.createElement(Ht,Object.assign({},re)),l.createElement(Ft.Provider,{value:{tabs:B,prefixCls:h}},l.createElement("div",Object.assign({ref:t,id:f,className:c()(h,"".concat(h,"-").concat(ee),(n={},Object(r.a)(n,"".concat(h,"-mobile"),z),Object(r.a)(n,"".concat(h,"-editable"),x),Object(r.a)(n,"".concat(h,"-rtl"),P),n),m)},L),te,l.createElement(Jt,Object.assign({destroyInactiveTabPane:I},ne,{animated:s}))))}));Gt.TabPane=Ut;var Yt=Gt;t.b=Yt},kPWJ:
|
|
|
/*!****************************************!*\
|
|
|
!*** ./src/assets/images/question.gif ***!
|
|
|
\****************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,n){e.exports=n.p+"static/question.cb52bef9.gif"},kPYp:
|
|
|
/*!******************************************!*\
|
|
|
!*** ./src/assets/images/icons/zoom.png ***!
|
|
|
\******************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAF8AAAAUCAYAAADr0+FaAAANEklEQVRYR8WZe5RX1XXHP/vce3/zHoaXgFp5DQyOQLRgUTEtDW1qYyVmZUGNklRdiRpKE3lHfPyc4TngIBgfC0wx1ixt1NRWal2kotbE2lbRiCIISBCGhzDAvGd+87v37K5z5zfDzMCM46pr9fw1a+45+5zz3fvs/d3fn4yr1F8Do0UIUb74UFR8Gm3IO/Wf8MThat7mOYnaDZUmNUF/htpWLlePK4xwCcoQICHQbOGoKDuM4U1p5r0Px1DNrDPrezzQs+qNPUh/o4xXj6tRJhlhGEqeQNrCCYXdGvGfFt5JNHLoozJp7WyvdI0OtR4LEK7CstUIWyJLTSRcLfCnvlAiUKSgCEfV8o6NeMVE/G53itOUiXX3Sxcx2ov4qhG+qjBWoFChWYUqIt6V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eFDsnJjsFvYzt9Bf9cbKe0Ui8DnlYY1z2sXcETzfSavdMKB0OI4/7C42EtD5tcLhef+w1c0U0DcpYcXXUauYOus8Mdns1W2eIpy3Y18FGXrjipZmzAMLIoM4ZZQqwmdh7Oaltv3E0id1lMlR1hRJnk8PK+H0mqu7DmHBDB4vw6HtneQ8N06YNalIp4HmF6X8EfV6ljRfk5EmNxJvIdn09ksdYIs7oV2d7h7uGrhUOEzP14ibzoNgXmC3wjQx3dbwZdwM6YcbHpNJFDKjxr4dHOunv3rcY9rANNC7dbR4WFkbhIP7ddFxSxTK3Cr0nzgFMz2+05Su37saTsWJRVS5VnuHnnAnmtp8vPnKne+1NY4jlZwtDfWpob6ijzhQ098fyLVmn/bJ97PMPtQJ5r8Dxck5VUMyqXP0wEzEHjNFHQR438rPPZtuyiKpTtmsdjrji7SGmJmBJrGYZSlIsyfYD7oaJVlVqEAwbejSJeafR5t6dOsfOGTuXMTTHeBExHmCzCaDTurLPEFWOlXqFKlI+s8prfwG92lnXVXkoq9HwTcD/KdSp8mGrmyVSaf+pJJmjff/gKHZaTxR3G8E1rKWyoY4MvbOwJfIdIcSUX+8Ic1yg6yT6Eb7Q1Wc4BORRk+RQZQ2DD3n8Y+Lwn4edT/cEcOd0xL6nmyn5knWghPzuL7JQQJMC0umjzafUbaG5J0XigjFSfeHuHYZXSJIH0Iz+VJtczBL6H58pLZAhTaVqKCmnYfoSWc4l6Tko/nscg8clvMtQPyOFUn/oRVCauJZcs+jeHJFLHOX1wFTW9MkEnyg0kP2EpitJ4+YVU/S8v1xqrW4H9MAAAAABJRU5ErkJggg=="},l2Kq:
|
|
|
/*!***********************************************!*\
|
|
|
!*** ./src/assets/images/forums/match_ad.jpg ***!
|
|
|
\***********************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,n){e.exports=n.p+"static/match_ad.24dc22fd.jpg"},lzim:
|
|
|
/*!********************************************!*\
|
|
|
!*** ./src/components/ImagesIcon/index.ts ***!
|
|
|
\********************************************/
|
|
|
/*! exports provided: qrCode, searchIcon, search1Icon, noDataIcon, smallProgramIcon, anonyIcon, errIcon, chromeIcon, firefoxIcon, exportExerciseTemplate, txLiveIcon, blibliIcon, douyuIcon, weibaitongIcon, zoomIcon, groups1Icon, groups2Icon, groups3Icon, matchAdIcon, hbIcon, lockcloseIcon, teacherQQIcon, emptyIcon, charpterWhiteIcon, mainbannerBg, certificateIcon, chooseIcon, emptyIcon2, repositoryNoneDataIcon, questionIcon, noticeIcon, qrCodeIcon, done1Icon, done2Icon, done3Icon, UserQrCode */
|
|
|
/*! exports used: UserQrCode, anonyIcon, blibliIcon, certificateIcon, charpterWhiteIcon, chooseIcon, chromeIcon, done1Icon, done2Icon, done3Icon, douyuIcon, emptyIcon, emptyIcon2, errIcon, exportExerciseTemplate, firefoxIcon, hbIcon, lockcloseIcon, mainbannerBg, matchAdIcon, noDataIcon, noticeIcon, qrCode, qrCodeIcon, questionIcon, repositoryNoneDataIcon, search1Icon, searchIcon, smallProgramIcon, teacherQQIcon, txLiveIcon, weibaitongIcon, zoomIcon */function(e,t,n){"use strict";var r=n(/*! @/assets/images/icons/search.png */"E7E6"),a=n.n(r);n.d(t,"B",(function(){return a.a}));var i=n(/*! @/assets/images/icons/search1.png */"/GNS"),o=n.n(i);n.d(t,"A",(function(){return o.a}));var l=n(/*! @/assets/images/icons/nodata.png */"FOrL"),s=n.n(l);n.d(t,"u",(function(){return s.a}));var c=n(/*! @/assets/images/classrooms/small_program.png */"HpTS"),u=n.n(c);n.d(t,"C",(function(){return u.a}));var d=n(/*! @/assets/images/icons/anony.png */"tWlo"),f=n.n(d);n.d(t,"b",(function(){return f.a}));var p=n(/*! @/assets/images/classrooms/err.png */"7ZXX"),h=n.n(p);n.d(t,"n",(function(){return h.a}));var m=n(/*! @/assets/images/icons/chrome.png */"GABl"),v=n.n(m);n.d(t,"g",(function(){return v.a}));var g=n(/*! @/assets/images/icons/firefox.png */"onxn"),b=n.n(g);n.d(t,"p",(function(){return b.a}));var y=n(/*! @/assets/images/classrooms/export_exercise-template.png */"nKGa"),x=n.n(y);n.d(t,"o",(function(){return x.a}));var E=n(/*! @/assets/images/icons/tx-live.png */"4qgm"),C=n.n(E);n.d(t,"E",(function(){return C.a}));var A=n(/*! @/assets/images/icons/blibli.png */"JeFH"),O=n.n(A);n.d(t,"c",(function(){return O.a}));var k=n(/*! @/assets/images/icons/douyu.jpg */"ji0R"),w=n.n(k);n.d(t,"k",(function(){return w.a}));var S=n(/*! @/assets/images/icons/weibaitong.png */"W6BS"),j=n.n(S);n.d(t,"F",(function(){return j.a}));var N=n(/*! @/assets/images/icons/zoom.png */"kPYp"),I=n.n(N);n.d(t,"G",(function(){return I.a}));n(/*! @/assets/images/icons/groups1.png */"nukY"),n(/*! @/assets/images/icons/groups2.png */"4u4S"),n(/*! @/assets/images/icons/groups3.png */"yslc");var M=n(/*! @/assets/images/forums/match_ad.jpg */"l2Kq"),T=n.n(M);n.d(t,"t",(function(){return T.a}));var D=n(/*! @/assets/images/hb.png */"RMFE"),R=n.n(D);n.d(t,"q",(function(){return R.a}));var L=n(/*! @/assets/images/icons/lockclose.svg */"TGq3"),B=n.n(L);n.d(t,"r",(function(){return B.a}));var P=n(/*! @/assets/images/teacherQQ.png */"SMhR"),K=n.n(P);n.d(t,"D",(function(){return K.a}));var F=n(/*! @/assets/images/empty.png */"8/bI"),z=n.n(F);n.d(t,"l",(function(){return z.a}));var Q=n(/*! @/assets/images/icons/charpter-white.svg */"JWDV"),W=n.n(Q);n.d(t,"e",(function(){return W.a}));var H=n(/*! @/assets/images/banner/mainbanner.jpg */"Xsq0"),J=n.n(H);n.d(t,"s",(function(){return J.a}));var U=n(/*! @/assets/images/certificate.jpg */"Ohmc"),V=n.n(U);n.d(t,"d",(function(){return V.a}));var G=n(/*! @/assets/images/icons/choose.svg */"csWT"),Y=n.n(G);n.d(t,"f",(function(){return Y.a}));var Z=n(/*! @/assets/images/empty2.png */"7v3h"),q=n.n(Z);n.d(t,"m",(function(){return q.a}));var X=n(/*! @/assets/images/RepositoryNoneData.png */"cRFk"),_=n.n(X);n.d(t,"z",(function(){return _.a}));var $=n(/*! @/assets/images/question.gif */"kPWJ"),ee=n.n($);n.d(t,"y",(function(){return ee.a}));var te=n(/*! @/assets/images/notice.gif */"qgvg"),ne=n.n(te);n.d(t,"v",(function(){return ne.a}));var re=n(/*! @/assets/images/qrCode.png */"FPkq"),ae=n.n(re);n.d(t,"x",(function(){return ae.a}));var ie=n(/*! @/assets/images/icons/done1.png */"A/g1"),oe=n.n(ie);n.d(t,"h",(function(){return oe.a}));var le=n(/*! @/assets/images/icons/done2.png */"Nmxd"),se=n.n(le);n.d(t,"i",(function(){return se.a}));var ce=n(/*! @/assets/images/icons/done3.png */"5D2P"),ue=n.n(ce);n.d(t,"j",(function(){return ue.a}));var de=n(/*! @/assets/images/icons/qrCode.png */"djh8"),fe=n.n(de);n.d(t,"w",(function(){return fe.a}));var pe=n(/*! @/assets/images/user/qrcode.png */"Jq4h"),he=n.n(pe);n.d(t,"a",(function(){return he.a}))},mOS8:
|
|
|
/*!*****************************************!*\
|
|
|
!*** ./src/assets/images/403Qrcode.png ***!
|
|
|
\*****************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,n){e.exports=n.p+"static/403Qrcode.6c17b6f4.png"},n6Qo:
|
|
|
/*!**************************************************************!*\
|
|
|
!*** ./node_modules/rc-table/es/Footer/index.js + 2 modules ***!
|
|
|
\**************************************************************/
|
|
|
/*! exports provided: default, FooterComponents */
|
|
|
/*! exports used: FooterComponents, default */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-table/es/Cell/index.js because of ./node_modules/antd/es/table/Table.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-table/es/context/TableContext.js because of ./node_modules/antd/es/table/Table.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/react/index.js (<- Module is not an ECMAScript module) */function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n("q1tI"),a=n("biw7"),i=n("fyJ8");t.b=function(e){var t=e.children,n=r.useContext(a.a).prefixCls;return r.createElement("tfoot",{className:"".concat(n,"-summary")},t)};var o={Cell:function(e){var t=e.className,n=e.index,o=e.children,l=e.colSpan,s=e.rowSpan,c=r.useContext(a.a),u=c.prefixCls,d=c.fixedInfoList[n];return r.createElement(i.a,Object.assign({className:t,index:n,component:"td",prefixCls:u,record:null,dataIndex:null,render:function(){return{children:o,props:{colSpan:l,rowSpan:s}}}},d))},Row:function(e){return r.createElement("tr",Object.assign({},e))}}},nKGa:
|
|
|
/*!*******************************************************************!*\
|
|
|
!*** ./src/assets/images/classrooms/export_exercise-template.png ***!
|
|
|
\*******************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,n){e.exports=n.p+"static/export_exercise-template.f7655c19.png"},nukY:
|
|
|
/*!*********************************************!*\
|
|
|
!*** ./src/assets/images/icons/groups1.png ***!
|
|
|
\*********************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALoAAABSCAYAAADjGc4eAAAMkklEQVR4Xu2dWWwcSRnHv7Yd577v+74vkgWEQCAEy6IVWuCB62GVICFIYkcsvMC+LW8LL7BIiTiEhCweInjgPrRCC2KBJTBVYzm24yRO4ty3kziJj9ie+tC/d9oaT2b67ume7irJsjdbVf19X/266quvjjaEEG8w8yukk7ZAii1gMHODEOK3RPRSivXUqmXcAgb07+jomDk2NvYPZn4u4/bQ6qfUAiboSEKI5cz8XyJanVJdtVoZtsAE6EXYdzPzv4hoToZtolVPoQUmgV6E/QVm/hMRNaVQX61SRi3wDOiwg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j6Se7t4Av0ItXV5zMyo257s2pcybVAp5Bx+dbpJS4T/GzSVVKy6UtUG4Bz6BLKV9TSuHr0TppC9SNBTyBXrwd9zf6o1x1075a0KIFXIMupdyulMItW7FcPKRbTFsgiAVcgd7e3j6vUCggwrI5yMN0WW2BuCzgCDpi5EKIPxLRi3EJqZ+rLRDUAo6gCyFeZ+ZXgz5Il9cWiNMCtqBLKb+glPplnALqZ2sLhGGBqqDn8/m9Sql30v6xrTCMqOtIvgUqgt7T07NwcHAQe8vXJV8FLaG2gLMFngEdX3+WUr7JzB9zLq5zaAvUhwWeAV0I8QYzv1If4msptQXcWWAS6Llc7gARtbkrqnNpC9SPBSZAb29vf9/4+Dg+phXblc71YzYtab1ZwAS9s7Nz6cjICK50ju0jWvVmOC1vfVnAKF7pjPsRP1RfomtptQXcWwB7y3+slDrkvojOqS1QfxZw3AJQfyppibNkgWPHjrGDvsowjMMa9CxRkUJdHUAfNwzjQGtr6wkNegobP0sq2YD+1DCMz7e2tv4B9tCgZ4mKFOpaBfTBxsbGTx85cuRvlsoa9BQ2fpZUqgD6w4aGhhdbWlpwS8VE0qBniYoU6loKumEYdxobG184fPhwR7mqGvQUNn6WVCoB/VpDQ8PzLS0tZyvpr0HPEhUp1LUI+gUi+vjRo0cvV1NRg57Cxs+SSsePH+9qamr6xKFDh27a6a1BzxIVKdS1ra1t4cGDB/udVPs/YIoD4AHLutsAAAAASUVORK5CYII="},onxn:
|
|
|
/*!*********************************************!*\
|
|
|
!*** ./src/assets/images/icons/firefox.png ***!
|
|
|
\*********************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAYAAADFeBvrAAAQFElEQVRoQ71aCXRUVZr+7ttqr6yVPSRASCBIVFBUWgUURZFW7FYa9Xhc2lHWGdM9bYszaqa1tcUFV9RRu3V6etw4DQJqY4M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p5ED:
|
|
|
/*!*********************************************!*\
|
|
|
!*** ./src/components/PreviewAll/index.tsx ***!
|
|
|
\*********************************************/
|
|
|
/*! exports provided: default */
|
|
|
/*! exports used: default */function(e,t,n){"use strict";n(/*! antd/es/button/style */"+L6B");var r=n(/*! antd/es/button */"2/Rp"),a=(n(/*! antd/es/tooltip/style */"5Dmo"),n(/*! antd/es/tooltip */"3S7+")),i=n(/*! ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/objectSpread2 */"k1fw"),o=n(/*! ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/slicedToArray */"tJVT"),l=n(/*! react */"q1tI"),s=n.n(l),c=n(/*! ./index.less?modules */"vHTk"),u=n.n(c),d=n(/*! @ant-design/icons */"yEEn"),f=n(/*! @/components/monaco-editor */"ZW9T"),p=n(/*! @/utils/util */"1vsH");t.a=function(e){var t=e.name,n=e.data,c=(e.theme,e.type),h=e.filename,m=e.monacoEditor,v=e.className,g=e.style,b=e.close,y=e.onClose,x=e.hasMask,E=Object(l.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),C=Object(o.a)(E,2),A=(C[0],C[1],Object(l.useState)("")),O=Object(o.a)(A,2),k=(O[0],O[1]),w=Object(l.useRef)();h&&(m.filename=h),Object(l.useEffect)((function(){var e,t,n=null===(e=document.cookie)||void 0===e||null===(t=e.replace(/\s/g,""))||void 0===t?void 0:t.split(";");null==n||n.map((function(e){var t=e.split("=");"_educoder_session"===t[0]&&k(t[1])}))}),[]);var S=function(){n.startsWith("http")||n.startsWith("/")?j():Object(p.x)(h||"educoder",n,h)},j=function(){Object(p.v)(h||t,n)};return console.log("data:",n,"fileanme:",h," name:",t),s.a.createElement("div",{style:Object(i.a)({},g||{}),className:"".concat(x&&u.a.bgBlack," ").concat(c?u.a.wrp:"hide")},b&&s.a.createElement("div",{className:u.a.close,ref:w},s.a.createElement(a.a,{title:"点击下载此文件",getPopupContainer:function(){return w.current}},s.a.createElement("span",{onClick:j},s.a.createElement("i",{className:"icon-quxiaozhiding"}))),s.a.createElement(a.a,{title:"关闭",getPopupContainer:function(){return w.current}},s.a.createElement("span",{className:"",onClick:y},s.a.createElement("i",{className:"icon-guanbi1"})))),s.a.createElement("div",{className:"".concat(u.a[v]," ").concat(v," ").concat(u.a.monaco," ").concat("txt"===c?"show":"hide")},"txt"===c&&s.a.createElement(f.b,m)),"audio"===c&&s.a.createElement("audio",{src:"".concat(null!=n&&n.startsWith("/")||(null==n?void 0:n.indexOf("https://"))>-1?n:"data:audio/mp3;base64,").concat(n),autoPlay:!0}),"video"===c&&s.a.createElement(s.a.Fragment,null,null!=n&&n.startsWith("/")?s.a.createElement("video",{controls:!0,src:"".concat(n),autoPlay:!0}):s.a.createElement("video",{controls:!0,src:"data:video/mp4;base64,".concat(n),autoPlay:!0})),"html"===c&&s.a.createElement("iframe",{src:n+"&disposition=inline"}),"pdf"===c&&s.a.createElement("embed",{className:u.a.embed,src:n}),"pdfeditor"===c&&s.a.createElement("div",null,s.a.createElement("iframe",{src:"https://a1office.co/solutions/editor/pdf-editor/查重文档1-8839d79b81e8bda0d298ca058913ab88.pdf"}),s.a.createElement("div",{style:{position:"absolute",left:"1px",top:"1px",width:180,height:60,background:"#f9f9f9"}})),"image"===c&&s.a.createElement(s.a.Fragment,null,s.a.createElement("img",{src:"".concat(null!=n&&n.startsWith("/")||(null==n?void 0:n.indexOf("https://"))>-1?"":"data:image/png;base64,").concat(n)})),"other"===c&&s.a.createElement("div",null,s.a.createElement(r.a,{type:"primary",size:"large",onClick:S},s.a.createElement(d.a,null),"点击下载")),("download"===c||"office"===c)&&s.a.createElement(r.a,{type:"primary",size:"large",onClick:S},s.a.createElement(d.a,null),"点击下载"))}},"p77/":
|
|
|
/*!****************************************************!*\
|
|
|
!*** ./node_modules/codemirror/lib/codemirror.css ***!
|
|
|
\****************************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,n){},qgvg:
|
|
|
/*!**************************************!*\
|
|
|
!*** ./src/assets/images/notice.gif ***!
|
|
|
\**************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t){e.exports="data:image/gif;base64,R0lGODlhFAAQAOZVAD6Q33p6ezZto2VnaW5vcDuCxiYvNysvM1tdXzNij5eXlyg0QTA0OExOUWZnaS8zN19hYzFYf0Oi/Sg1QoeHh2JjZWZoaTdzrTRmljl5tzFZgDBWez6P3Tl4tjl8uzdxqWBiYys/VCUqL39/gHV2dy4yNScyPDJeiEpNTzk8P0CX6jc7PiYuNWlqaywwNDZtojAzNytDWScrLitAVUGb8Xl6eoWFhTp+wDNgjWRmZ4+QkFdZWzo9QIODgyo/Uzh3syg0QCczPmprbTRllW9wcSotMVJUVjZupDuEylBSVUGb8kxPUZGRkTd0rUGc82JkZUKe9j2M1zg7P4iIiEOj/yUpLQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh/wtYTVAgRGF0YVhNUDw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ1IDc5LjE2MzQ5OSwgMjAxOC8wOC8xM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dmZWRjYmFgX15dXFtaWVhXVlVUU1JRUE9OTUxLSklIR0ZFRENCQUA/Pj08Ozo5ODc2NTQzMjEwLy4tLCsqKSgnJiUkIyIhIB8eHRwbGhkYFxYVFBMSERAPDg0MCwoJCAcGBQQDAgEAACH5BAUyAFUALAAAAAAUABAAAAd5gFWCg4RSLoSIiVUPFlNEhAwDCIoyST1TUwGCBwM6AweJPCSYmJpVCAMMgykgFRUtFKSlilVCsreZtAS4sqaJu7yzisDBvhAKyBDEvL6Iy7jNhA7BwoklKA0NRiO30bRFOzakpqiqtItPsTWbA0wWoOcrOUuEMA6TgQAh+QQFMgBVACwAAAAAFAAQAAAHeIBVgoOEISaEiIlVExlUSIQLAgmKIidOVFQAggYCNAIGiTFRmJiaVQkCC4MzHxcXHhKkpYpVN7K3mbQFuLKmibu8s4rAwb4YpBjEvL6IyrjMhB3BwolBGxEROCq30LQsQ1CkpqiqtItNsRybAkpHoOY+PxqEQC+TgQA7"},"rAM+":
|
|
|
/*!*******************************************************************************************************************!*\
|
|
|
!*** ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelper.js ***!
|
|
|
\*******************************************************************************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/*! exports used: default */function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(/*! @babel/runtime/helpers/esm/unsupportedIterableToArray */"Qw5x");function a(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=Object(r.a)(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var a=0,i=function(){};return{s:i,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,l=!0,s=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return l=e.done,e},e:function(e){s=!0,o=e},f:function(){try{l||null==n.return||n.return()}finally{if(s)throw o}}}}},rHrb:
|
|
|
/*!***************************************************************!*\
|
|
|
!*** ./node_modules/react-copy-to-clipboard/lib/Component.js ***!
|
|
|
\***************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! all exports used */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CopyToClipboard=void 0;var r=i(n(/*! react */"q1tI")),a=i(n(/*! copy-to-clipboard */"+QRC"));function i(e){return e&&e.__esModule?e:{default:e}}function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e,t){if(null==e)return{};var n,r,a=function(e,t){if(null==e)return{};var n,r,a={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(e,t){return!t||"object"!==o(t)&&"function"!=typeof t?p(e):t}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function p(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var v=function(e){function t(){var e,n;c(this,t);for(var i=arguments.length,o=new Array(i),l=0;l<i;l++)o[l]=arguments[l];return m(p(n=d(this,(e=f(t)).call.apply(e,[this].concat(o)))),"onClick",(function(e){var t=n.props,i=t.text,o=t.onCopy,l=t.children,s=t.options,c=r.default.Children.only(l),u=(0,a.default)(i,s);o&&o(i,u),c&&c.props&&"function"==typeof c.props.onClick&&c.props.onClick(e)})),n}var n,i,o;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(t,e),n=t,(i=[{key:"render",value:function(){var e=this.props,t=(e.text,e.onCopy,e.options,e.children),n=s(e,["text","onCopy","options","children"]),a=r.default.Children.only(t);return r.default.cloneElement(a,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(n,!0).forEach((function(t){m(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(n).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},n,{onClick:this.onClick}))}}])&&u(n.prototype,i),o&&u(n,o),t}(r.default.PureComponent);t.CopyToClipboard=v,m(v,"defaultProps",{onCopy:void 0,options:void 0})},ruvs:
|
|
|
/*!*****************************************************!*\
|
|
|
!*** ./src/components/Header/index.tsx + 4 modules ***!
|
|
|
\*****************************************************/
|
|
|
/*! exports provided: getCourseParam, default */
|
|
|
/*! exports used: default, getCourseParam */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/objectSpread2.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/slicedToArray.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/regenerator/index.js (<- Module is not an ECMAScript module) */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./src/components/Header/components/Join/index.less?modules (<- Module is not an ECMAScript module) */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./src/components/Header/components/User/index.less?modules (<- Module is not an ECMAScript module) */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./src/components/Header/index.less?modules (<- Module is not an ECMAScript module) */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./src/.umi-production/core/umiExports.ts */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./src/components/Header/components/Join/JoinClassroomModal.tsx */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./src/components/ImagesIcon/index.ts */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./src/service/home.ts */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./src/service/user.ts */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./src/utils/authority.ts */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./src/utils/env.ts */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./src/utils/util.tsx */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./src/utils/verifyLogin.tsx */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./src/components/Header/logo.svg (<- Module is not an ECMAScript module) */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./src/components/HomeModal/jqr.png (<- Module is not an ECMAScript module) */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/button/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/button/style/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/col/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/col/style/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/dropdown/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/dropdown/style/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/input/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/input/style/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/layout/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/layout/style/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/menu/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/menu/style/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/message/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/message/style/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/modal/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/modal/style/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/radio/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/radio/style/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/row/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/row/style/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/react-router-dom/esm/react-router-dom.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/react-router/esm/react-router.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/react/index.js (<- Module is not an ECMAScript module) */function(e,t,n){"use strict";n.d(t,"b",(function(){return $}));n("2qtc");var r,a=n("kLXV"),i=n("9og8"),o=n("tJVT"),l=n("PpiC"),s=n("k1fw"),c=(n("5NDa"),n("5rEg")),u=(n("B9cy"),n("Ol7k")),d=n("WmNS"),f=n.n(d),p=n("q1tI"),h=n.n(p),m=n("Ty5D"),v=n("55Ip"),g=n("9kvl"),b=n("lzim"),y=n("xrsn"),x=n.n(y),E=(n("1Sn+"),n("qVdP"),n("jsC+")),C=(n("14J3"),n("BMrR")),A=(n("jCWc"),n("kPKH")),O=(n("lUTK"),n("BvKs")),k=(n("miYZ"),n("tsqr")),w=(n("7Kak"),n("9yH6")),S=n("6CvP"),j=n("1vsH");!function(e){e.Manager="manager",e.Developer="developer",e.Reporter="reporter"}(r||(r={}));var N,I,M=function(e){var t=e.visible,n=e.onCancel,l=void 0===n?function(){}:n,s=Object(p.useState)(),u=Object(o.a)(s,2),d=u[0],m=u[1],v=Object(p.useState)(),b=Object(o.a)(v,2),y=b[0],x=b[1],E=Object(p.useState)(!1),C=Object(o.a)(E,2),A=C[0],O=C[1],N=function(){var e=Object(i.a)(f.a.mark((function e(){var t,n;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(d){e.next=3;break}return k.b.info("请输入开发项目邀请码!"),e.abrupt("return");case 3:if(6===d.length){e.next=6;break}return k.b.info("请输入6位项目邀请码!"),e.abrupt("return");case 6:if(y){e.next=9;break}return k.b.info("请选择一个身份!"),e.abrupt("return");case 9:return O(!0),e.next=12,Object(S.e)({code:d,role:y});case 12:if(t=e.sent,O(!1),I(),!(n={1:"您输入的邀请码错误",2:"您已经是该项目成员",3:"请选择一个角色",4:"您的申请已提交,请等待项目管理员审批",5:"您已经申请加入该项目了,请耐心等待",6:"您已成功加入项目"})[t.status]){e.next=19;break}return k.b.info(n[t.status]),e.abrupt("return");case 19:if(0!==t.status){e.next=22;break}return"reporter"===y?(k.b.success("您加入项目成功!"),Object(j.ab)(["开发项目","加入项目成功"]),g.d.push("/projects/".concat(null==t?void 0:t.project_id))):(Object(j.ab)(["开发项目","加入项目等待审批"]),k.b.success("您的申请已提交,请等待项目管理员审批!")),e.abrupt("return");case 22:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),I=function(){var e=Object(i.a)(f.a.mark((function e(){return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:l();case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return h.a.createElement(h.a.Fragment,null,h.a.createElement(a.a,{centered:!0,keyboard:!1,closable:!1,title:"加入项目",visible:t,confirmLoading:A,onOk:N,onCancel:I},h.a.createElement("div",{className:"tc"},h.a.createElement("div",null,h.a.createElement("span",null,"课堂邀请码:"),h.a.createElement(c.a,{placeholder:"请输入6位开发项目邀请码",style:{width:270},value:d,onChange:function(e){e.target.value.length>=7?k.b.info("请输入6位开发项目邀请码!"):m(e.target.value)}})),h.a.createElement("div",{className:"mt10 font14"},h.a.createElement("span",null,"身份:"),h.a.createElement(w.a.Group,{value:y,onChange:function(e){return x(e.target.value)}},h.a.createElement(w.a,{value:r.Manager},"管理人员"),h.a.createElement(w.a,{value:r.Developer},"开发人员"),h.a.createElement(w.a,{value:r.Reporter},"报告人员"))))))},T=n("Jky8"),D=n("6Fuo"),R=n.n(D),L=n("NLgs");!function(e){e.Projects="projects",e.Shixuns="shixuns",e.Classrooms="classrooms"}(N||(N={})),function(e){e.Classrooms="classrooms",e.Shixuns="shixuns",e.Paths="paths",e.Projects="projects",e.Videos="videos",e.Topics="topics"}(I||(I={}));var B,P=Object(g.a)((function(e){var t=e.homePage,n=e.loading;return{homePage:t,user:e.user,globalSetting:e.globalSetting,loading:n.models.index}}))((function(e){e.homePage;var t,n,r,a,i,s,c,u,d=e.user,f=e.globalSetting,m=(e.loading,e.dispatch),v=(e.location,Object(l.a)(e,["homePage","user","globalSetting","loading","dispatch","location"]),Object(p.useState)()),g=Object(o.a)(v,2),b=g[0],y=g[1],x=Object(p.useState)(),w=Object(o.a)(x,2),S=w[0],j=w[1],D=function(e){var t;Object(L.e)(m)&&(e!==N.Projects||null!==(t=d.userInfo)&&void 0!==t&&t.email?e===N.Classrooms?y(!0):e===N.Projects&&j(!0):k.b.info("请先绑定邮箱,谢谢"))},B=function(e,t){var n;Object(L.e)(m)&&(t!==N.Projects||null!==(n=d.userInfo)&&void 0!==n&&n.email?(t!==N.Shixuns||Object(L.c)())&&e&&(window.location.href=e):k.b.info("请先绑定邮箱,谢谢"))},P=null===(t=((null===(n=f.setting)||void 0===n?void 0:n.navbar)||[]).find((function(e){return e.link==="/".concat(I.Classrooms)})))||void 0===t?void 0:t.hidden,K=null===(r=((null===(a=f.setting)||void 0===a?void 0:a.navbar)||[]).find((function(e){return e.link==="/".concat(I.Shixuns)})))||void 0===r?void 0:r.hidden,F=null===(i=((null===(s=f.setting)||void 0===s?void 0:s.navbar)||[]).find((function(e){return e.link==="/".concat(I.Paths)})))||void 0===i?void 0:i.hidden;null!=f&&null!==(c=f.setting)&&void 0!==c&&c.is_local&&(null!=d&&null!==(u=d.userInfo)&&void 0!==u&&u.is_shixun_marker||(K=!0));var z=function(e){var t,n,r,a,i,o,l,s,c,u,p,m,v,g;return h.a.createElement(h.a.Fragment,null,h.a.createElement(C.a,{justify:"space-around",className:"pt5 pb5"},h.a.createElement(A.a,{className:R.a.joinCol},"学生"!==(null===(t=d.userInfo)||void 0===t?void 0:t.user_identity)&&!P&&h.a.createElement(O.a.Item,e,h.a.createElement("a",{onClick:function(){return B("/classrooms/new")}},null!==(n=d.userInfo)&&void 0!==n&&n.main_site?"新建教学课堂":"新建课堂")),!K&&h.a.createElement(O.a.Item,e,h.a.createElement("a",{onClick:function(){return B("/shixuns/new",N.Shixuns)}},"新建实践项目")),((null===(r=d.userInfo)||void 0===r?void 0:r.main_site)&&(null===(a=d.navigationInfo)||void 0===a?void 0:a.top)||!(null!==(i=d.userInfo)&&void 0!==i&&i.main_site)&&(null===(o=d.navigationInfo)||void 0===o?void 0:o.top)&&!F&&((null===(l=d.userInfo)||void 0===l?void 0:l.admin)||(null===(s=d.userInfo)||void 0===s?void 0:s.is_teacher)||(null===(c=d.userInfo)||void 0===c?void 0:c.business)))&&h.a.createElement(O.a.Item,e,h.a.createElement("a",{onClick:function(){return B("/paths/new")}},"新建实践课程")),!(null!=f&&null!==(u=f.setting)&&void 0!==u&&u.is_local)&&(null===(p=d.userInfo)||void 0===p?void 0:p.main_site)&&h.a.createElement(O.a.Item,e,h.a.createElement("a",{onClick:function(){var e,t;return B("".concat(null===(e=d.navigationInfo)||void 0===e||null===(t=e.top)||void 0===t?void 0:t.old_url,"/projects/deposit/new"),N.Projects)}},"新建开发项目"))),h.a.createElement(A.a,null,h.a.createElement("div",{className:R.a.joinBoard})),h.a.createElement(A.a,{className:R.a.joinCol},!P&&h.a.createElement(O.a.Item,e,h.a.createElement("a",{onClick:function(){return D(N.Classrooms)}},null!==(m=d.userInfo)&&void 0!==m&&m.main_site?"加入教学课堂":"加入课堂")),(null===(v=d.userInfo)||void 0===v?void 0:v.main_site)&&!(null!=f&&null!==(g=f.setting)&&void 0!==g&&g.is_local)&&h.a.createElement(O.a.Item,e,h.a.createElement("a",{onClick:function(){return D(N.Projects)}},"加入开发项目")))))};return h.a.createElement("section",null,h.a.createElement(E.a,{overlay:h.a.createElement(O.a,{className:"".concat(R.a.rightMenu," ").concat(R.a.joinMenu," mt10")},h.a.createElement(z,null)),placement:"bottomRight"},h.a.createElement("span",{style:{lineHeight:"inherit"},className:"iconfont icon-tianjiafangda c-white font18 current ml15 mr15"})),h.a.createElement(T.a,{visible:b,onCancel:function(){return y(!1)}}),h.a.createElement(M,{visible:S,onCancel:function(){return j(!1)}}))})),K=n("vToQ"),F=n.n(K),z=n("xKgJ"),Q=n("jb+D"),W=n("m3rI"),H=function(e){var t=new Date;t.setTime(t.getTime()-1);var n,r,a=(r=RegExp("(^| )"+e+"=([^;]+)(;|$)"),(n=document.cookie.match(r))?decodeURIComponent(n[2]):null);null!=a&&(document.cookie=e+"="+a+";expires="+t.toGMTString())};!function(e){e.Classrooms="classrooms",e.Shixuns="shixuns",e.Paths="paths",e.Projects="projects",e.Videos="videos",e.Topics="topics"}(B||(B={}));var J=Object(g.a)((function(e){var t=e.homePage,n=e.loading;return{homePage:t,user:e.user,globalSetting:e.globalSetting,shixunHomeworks:e.shixunHomeworks,loading:n.models.index}}))((function(e){e.homePage;var t,n,r,a,o,c,u,d,p,m,b,y,x,C=e.user,A=e.globalSetting,w=(e.loading,e.dispatch),S=e.shixunHomeworks,N=(e.location,e.payload),I=void 0===N?{}:N,M=(Object(l.a)(e,["homePage","user","globalSetting","loading","dispatch","shixunHomeworks","location","payload"]),null===(t=((null===(n=A.setting)||void 0===n?void 0:n.navbar)||[]).find((function(e){return e.link==="/".concat(B.Classrooms)})))||void 0===t?void 0:t.hidden),T=null===(r=((null===(a=A.setting)||void 0===a?void 0:a.navbar)||[]).find((function(e){return e.link==="/".concat(B.Shixuns)})))||void 0===r?void 0:r.hidden,D=null===(o=((null===(c=A.setting)||void 0===c?void 0:c.navbar)||[]).find((function(e){return e.link==="/".concat(B.Paths)})))||void 0===o?void 0:o.hidden,R=(null===(u=C.userInfo)||void 0===u?void 0:u.admin)||(null===(d=C.userInfo)||void 0===d?void 0:d.business)||(null===(p=C.userInfo)||void 0===p?void 0:p.is_shixun_marker)||(null===(m=C.userInfo)||void 0===m?void 0:m.is_teacher)||"学生"!==(null===(b=C.userInfo)||void 0===b?void 0:b.user_identity);return Object(z.p)()?h.a.createElement(E.a,{className:"".concat(F.a.height67," pr25"),overlay:function(){return Object(j.p)()?h.a.createElement(O.a,{className:"".concat(F.a.rightMenu," ").concat(F.a.menuWrap)},h.a.createElement(O.a.Item,null,h.a.createElement(v.a,{to:"/account/profile"},"账号管理"))):h.a.createElement(O.a,{className:"".concat(F.a.rightMenu," ").concat(F.a.menuWrap)},h.a.createElement(O.a.Item,null,h.a.createElement(v.a,{to:"/users/".concat(null===(e=C.userInfo)||void 0===e?void 0:e.login,"/classrooms")},"我的个人主页")),!M&&h.a.createElement(O.a.Item,null,h.a.createElement(v.a,{to:"/users/".concat(null===(t=C.userInfo)||void 0===t?void 0:t.login,"/classrooms")},null!==(n=C.userInfo)&&void 0!==n&&n.main_site?"我的教学课堂":"我的课堂")),!T&&h.a.createElement(O.a.Item,null,h.a.createElement(v.a,{to:"/users/".concat(null===(r=C.userInfo)||void 0===r?void 0:r.login,"/shixuns")},"我的实践项目")),!D&&h.a.createElement(O.a.Item,null,h.a.createElement(v.a,{to:"/users/".concat(null===(a=C.userInfo)||void 0===a?void 0:a.login,"/paths")},null!==(o=C.userInfo)&&void 0!==o&&o.main_site?"我的实践课程":"我的课程")),(null===(l=C.userInfo)||void 0===l?void 0:l.main_site)&&!(null!==(c=A.setting)&&void 0!==c&&c.is_local)&&h.a.createElement(O.a.Item,null,h.a.createElement(v.a,{to:"/users/".concat(null===(u=C.userInfo)||void 0===u?void 0:u.login,"/projects")},"我的开发项目")),h.a.createElement(O.a.Item,null,h.a.createElement(v.a,{to:"/users/".concat(null===(d=C.userInfo)||void 0===d?void 0:d.login,"/teach-group")},"我的教研团队")),h.a.createElement(O.a.Item,null,h.a.createElement(v.a,{to:"/users/".concat(null===(p=C.userInfo)||void 0===p?void 0:p.login,"/vspaces")},"我的虚拟社区")),h.a.createElement(O.a.Item,null,h.a.createElement("a",{onClick:function(){Object(L.e)(w)&&g.d.push("/problemset")}},"试题库")),R&&h.a.createElement(O.a.Item,null,h.a.createElement("a",{onClick:function(){Object(L.e)(w)&&g.d.push("/paperlibrary")}},"试卷与作业")),(null===(m=C.navigationInfo)||void 0===m||null===(b=m.top)||void 0===b?void 0:b.customer_management_url)&&h.a.createElement(O.a.Item,null,h.a.createElement("a",{href:null===(y=C.navigationInfo)||void 0===y||null===(x=y.top)||void 0===x?void 0:x.customer_management_url},"客户管理")),(null===(E=C.navigationInfo)||void 0===E||null===(S=E.top)||void 0===S?void 0:S.college_identifier)&&h.a.createElement(O.a.Item,null,h.a.createElement(v.a,{to:"/colleges/".concat(null===(N=C.navigationInfo)||void 0===N||null===(B=N.top)||void 0===B?void 0:B.college_identifier,"/statistics")},"学院统计")),(null===(P=C.navigationInfo)||void 0===P||null===(K=P.top)||void 0===K?void 0:K.laboratory_admin_url)&&h.a.createElement(O.a.Item,null,h.a.createElement("a",{href:null===(z=C.navigationInfo)||void 0===z||null===(W=z.top)||void 0===W?void 0:W.laboratory_admin_url},"后台管理")),h.a.createElement(O.a.Item,null,h.a.createElement(v.a,{onClick:function(){"0"===localStorage.getItem("Noviceguide")||w({type:"shixunHomeworks/setActionTabs",payload:{key:"底部弹窗",type:2,href:"/classrooms",text:h.a.createElement("div",null,"OK,接下来,让我们开始新建【教学课堂】,请您找到闪光框并点击 “教学课堂”。")}})},to:"/account/profile"},"账号管理")),h.a.createElement(O.a.Item,{className:F.a.exit},h.a.createElement("a",{onClick:Object(i.a)(f.a.mark((function e(){var t;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(Q.c)({});case 2:1===(null==(t=e.sent)?void 0:t.status)&&(w({type:"user/getUserInfo",payload:Object(s.a)({},I)}),w({type:"user/getNavigationInfo",payload:Object(s.a)({},I)}),H("autologin_trustie"),H("_educoder_session"),localStorage.removeItem("isfirst"),localStorage.removeItem("SystemUpdateadvtime"),localStorage.removeItem("item"),localStorage.removeItem("iscreate"),k.b.success(null==t?void 0:t.message),g.d.replace("/"));case 4:case"end":return e.stop()}}),e)})))},"退出")));var e,t,n,r,a,o,l,c,u,d,p,m,b,y,x,E,S,N,B,P,K,z,W},placement:"bottomRight"},h.a.createElement("section",null,h.a.createElement("aside",null,h.a.createElement("div",{className:1===S.actionTabs.type?F.a.classromediv:""},h.a.createElement("img",{className:"".concat(F.a.userPic," current ml15"),src:"".concat(null===W.a||void 0===W.a?void 0:W.a.IMG_SERVER,"/images/").concat(null===(y=C.userInfo)||void 0===y?void 0:y.image_url),alt:"",onClick:function(){var e;return g.d.push(Object(j.p)()?"/account/profile":"/users/".concat(null===(e=C.userInfo)||void 0===e?void 0:e.login,"/classrooms"))}}),Object(j.p)()&&h.a.createElement("span",{className:"ml10 font16"},null===(x=C.userInfo)||void 0===x?void 0:x.username))))):h.a.createElement("div",{className:"font15 ".concat(A.isIlearning?F.a.login:"")},h.a.createElement("span",{className:"ml10 mr5 current c-white",onClick:function(){w({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}})}},"登录"),h.a.createElement("span",{className:"ml5 mr5"},"|"),h.a.createElement(v.a,{to:"/user/register",className:"ml5 current c-white pr25"},"注册"))})),U=(n("+L6B"),n("2/Rp")),V=n("Cs+z"),G=n.n(V),Y=Object(g.a)((function(e){var t=e.homePage,n=e.loading,r=e.user,a=e.globalSetting,i=e.shixunHomeworks;return{homePage:t,user:r,globalSetting:a,loading:n.models.index,shixunHomeworks:i}}))((function(e){e.homePage,e.user,e.globalSetting,e.loading;var t=e.dispatch,n=(e.location,e.text,e.shixunHomeworks),r=(e.payload,Object(l.a)(e,["homePage","user","globalSetting","loading","dispatch","location","text","shixunHomeworks","payload"]),Object(p.useState)("none")),a=Object(o.a)(r,2),i=a[0],s=a[1];return Object(p.useEffect)((function(){"底部弹窗"===n.actionTabs.key&&s("flex")}),[n.actionTabs.key]),Object(p.useEffect)((function(){"隐藏"===n.actionTabs.key&&(s("none"),localStorage.setItem("Noviceguide","0"))}),[n.actionTabs.key]),h.a.createElement("div",{style:{display:i,background:"#fff",width:"100%",height:"200px",position:"fixed",bottom:"0px",boxShadow:"0px -4px 6px 0px rgba(204, 204, 204, 0.2)",zIndex:"999"}},h.a.createElement("div",{style:{margin:"0 auto",width:"1200px"}},h.a.createElement("img",{src:G.a,style:{position:"absolute",top:"-32px"}}),h.a.createElement("div",{style:{marginLeft:"151px",marginTop:"40px",fontSize:"18px",color:"#333333"}},n.actionTabs.text),9===n.actionTabs.type?h.a.createElement("div",{style:{display:"flex",justifyContent:"flex-end"}},h.a.createElement(U.a,{type:"primary",onClick:function(){localStorage.setItem("Noviceguide","0"),s("none"),t({type:"shixunHomeworks/setActionTabs",payload:{key:""}})},ghost:!0,style:{marginTop:"30px",width:"138px",height:"40px",position:"absolute",top:"124px"}},"呆会见,有事呼我")):h.a.createElement("div",{style:{display:"flex",justifyContent:"flex-end"}},h.a.createElement(U.a,{type:"primary",onClick:function(){localStorage.setItem("Noviceguide","0"),t({type:"shixunHomeworks/setActionTabs",payload:{key:""}}),s("none")},ghost:!0,style:{marginTop:"30px",width:"138px",height:"40px",position:"absolute",top:"124px"}},"跳过,我自己来"))))})),Z=n("498V"),q=n.n(Z),X=u.a.Header,_=c.a.Search;function $(){var e,t,n=window.location.pathname.split("/"),r={};return!("classrooms"==n[1]&&n.length>3)||null!==(e=n[4])&&void 0!==e&&e.includes("newgold")||null!==(t=n[5])&&void 0!==t&&t.includes("newgold")||"coursesId"===n[2]||(r.course_id=n[2]),"shixuns"===n[1]&&n.length>3&&(r.objective_type="shixun",r.objective_id=n[2]),"paths"===n[1]&&n.length>3&&(r.objective_type="path",r.objective_id=n[2]),Object(s.a)(Object(s.a)({},r),{school:1})}var ee=["/","/classrooms","/account/profile","/account/profile/edit","/classrooms/new"];t.a=Object(g.a)((function(e){var t=e.homePage,n=e.loading,r=e.user,a=e.globalSetting,i=e.shixunHomeworks;return{homePage:t,user:r,globalSetting:a,loading:n.models.index,shixunHomeworks:i}}))((function(e){e.homePage;var t,n=e.user,r=e.globalSetting,i=(e.loading,e.dispatch),c=e.location,d=e.isLogin,f=void 0!==d&&d,g=e.shixunHomeworks,y=(Object(l.a)(e,["homePage","user","globalSetting","loading","dispatch","location","isLogin","shixunHomeworks"]),Object(m.g)()),E=Object(p.useState)(!1),C=Object(o.a)(E,2),A=C[0],O=C[1],k=Object(p.useState)(-1),w=Object(o.a)(k,2),S=w[0],N=w[1],I=Object(p.useState)(!1),M=Object(o.a)(I,2),T=M[0],D=M[1],R=$();c.pathname;Object(p.useEffect)((function(){i({type:"user/getNavigationInfo",payload:Object(s.a)({},R)})}),[r.name]),Object(p.useEffect)((function(){"底部弹窗"===g.actionTabs.key&&(null!=ee&&ee.includes(null==c?void 0:c.pathname)||0===(null==c?void 0:c.pathname.indexOf("/classrooms"))||i({type:"shixunHomeworks/setActionTabs",payload:{key:"隐藏"}}))}),[c.pathname]),Object(p.useEffect)((function(){"底部弹窗"===g.actionTabs.key||g.actionTabs.key||localStorage.setItem("Noviceguide","0")}),[g.actionTabs.key]),Object(p.useEffect)((function(){var e,t,n;null!=r&&r.setting&&(null==r||null===(e=r.setting)||void 0===e||null===(t=e.navbar)||void 0===t||t.map((function(e,t){c.pathname.indexOf(e.link)>-1&&N(t)})),-1===S?Object(j.V)(r.setting.name):Object(j.V)((null===(n=r.setting.navbar[S])||void 0===n?void 0:n.name)||r.setting.name))}),[null==r?void 0:r.setting]);var L=Object(p.useMemo)((function(){var e,t;return null!=r&&null!==(e=r.setting)&&void 0!==e&&e.nav_logo_url?"".concat(W.a.IMG_SERVER,"/").concat(null==r||null===(t=r.setting)||void 0===t?void 0:t.nav_logo_url):"".concat(W.a.IMG_SERVER,"/images/avatars/LaboratorySetting/1nav?t=").concat((new Date).getTime())}),[null==r||null===(t=r.setting)||void 0===t?void 0:t.nav_logo_url]);function B(e){y.push("/search?value="+e)}var K,F,z,Q,H,U=function(){return A?h.a.createElement("div",{onBlur:function(){setTimeout((function(){O(!1)}),300)}},h.a.createElement(_,{placeholder:"实践课程/教学课堂/实践项目/交流问答",className:"search-input mr20",onSearch:B,autoFocus:!0})):h.a.createElement("span",{className:"iconfont icon-sousuo font18 current ml15 mr15",onClick:function(){y.push("/search?value=")}})};return r.showHeader&&r.showHeaderFooter?h.a.createElement(u.a,{className:"".concat(r.isIlearning?x.a["header-iearning"]:x.a.header," ").concat(r.showHeaderFixed?x.a.headerFixed:"")},h.a.createElement(X,{className:"header"},h.a.createElement("section",{className:x.a["edu-menu"]},(!!r.isIlearning||!!r.isPaZhou)&&h.a.createElement(v.a,{style:{display:"flex",alignItems:"center"},onClick:function(){i({type:"shixunHomeworks/setActionTabs",payload:{key:""}})},to:"/"},h.a.createElement("img",{className:x.a.logo,title:null===(K=r.setting)||void 0===K?void 0:K.name,src:r.isPaZhou?L:q.a||L}),!r.isPaZhou&&h.a.createElement("span",{className:x.a.title},"混合增强智慧教育i-Learning平台")),h.a.createElement("ul",{className:"".concat(x.a.menu," ").concat(Object(j.p)()&&"ml0")},Object(j.p)()&&h.a.createElement("li",null,h.a.createElement("a",{href:"/"},"考试系统")),!Object(j.p)()&&r.setting&&r.setting.navbar.map((function(e,t){if(!e.hidden)return h.a.createElement("li",{key:t,className:S===t?x.a.actived:""},"教学课堂"===(null==e?void 0:e.name)&&h.a.createElement(v.a,{onClick:function(){"0"===localStorage.getItem("Noviceguide")||i({type:"shixunHomeworks/setActionTabs",payload:{key:"底部弹窗",type:5,text:h.a.createElement("div",null,"非常棒,咱们已经到达【教学课堂】,平台上已经有几千位老师创建了自己的教学课堂,你也可以轻松完成哟!现在请您点击页面上 “新建课堂”按钮开始新建自己的课堂~")}})},className:4===g.actionTabs.type?x.a.classromediv:"",dangerouslySetInnerHTML:{__html:e.name},to:e.link}),"教学课堂"!=(null==e?void 0:e.name)&&e.link.indexOf("http")<0&&h.a.createElement(v.a,{onClick:function(){i({type:"shixunHomeworks/setActionTabs",payload:{key:""}})},dangerouslySetInnerHTML:{__html:e.name},to:e.link,target:e.link.indexOf("http")>-1?"_blank":"_self"}),"教学课堂"!=(null==e?void 0:e.name)&&e.link.indexOf("http")>-1&&h.a.createElement("a",{target:e.link.indexOf("http")>-1?"_blank":"_self",dangerouslySetInnerHTML:{__html:e.name},href:e.link}))}))),h.a.createElement("div",{className:"search-bar",style:{flex:r.isIlearning?"initial":"1 0 auto"}},!Object(j.p)()&&!(null!=r&&r.isIlearning)&&h.a.createElement(h.a.Fragment,null,h.a.createElement(U,null),!f&&h.a.createElement(P,null),!f&&!(null==n||null===(F=n.userInfo)||void 0===F||!F.login)&&h.a.createElement(v.a,{className:"iconfont icon-xiaoxilingdang c-white ml15 mr15 font18 relative",to:"/messages/".concat(null==n||null===(z=n.userInfo)||void 0===z?void 0:z.login,"/user_tidings")},(null==n||null===(Q=n.navigationInfo)||void 0===Q||null===(H=Q.top)||void 0===H?void 0:H.new_message)&&h.a.createElement("span",{className:x.a.newslight}))),!f&&h.a.createElement(J,{payload:R}))),h.a.createElement(a.a,{centered:!0,destroyOnClose:!0,visible:T,title:"提示",width:"500px",okText:"立即联系",cancelText:"取消",onOk:function(){Object(j.Q)("https://qm.qq.com/cgi-bin/qm/qr?k=DWdqQHAbbfw7_rqm0d-Q_vDn5H6bMp91&jump_from=webapi")},onCancel:function(){return D(!1)}},h.a.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"center"}},h.a.createElement("p",null,"您可以在QQ服务群向管理员申请,获得继续操作的权限"),h.a.createElement("img",{src:b.D,width:200,height:200}),h.a.createElement("p",null,"群号:693542422 ")))),h.a.createElement(Y,null)):h.a.createElement(h.a.Fragment,null)}))},sR1s:
|
|
|
/*!*****************************************************!*\
|
|
|
!*** ./node_modules/rc-table/es/utils/valueUtil.js ***!
|
|
|
\*****************************************************/
|
|
|
/*! exports provided: getPathValue, getColumnsKey, mergeObject, validateValue */
|
|
|
/*! exports used: getColumnsKey, getPathValue, mergeObject, validateValue */function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return o})),n.d(t,"c",(function(){return l})),n.d(t,"d",(function(){return s}));var r=n(/*! @babel/runtime/helpers/esm/typeof */"U8pU");function a(e){return null==e?[]:Array.isArray(e)?e:[e]}function i(e,t){if(!t&&"number"!=typeof t)return e;for(var n=a(t),r=e,i=0;i<n.length;i+=1){if(!r)return null;r=r[n[i]]}return r}function o(e){var t=[],n={};return e.forEach((function(e){for(var r=e||{},i=r.key,o=r.dataIndex,l=i||a(o).join("-")||"RC_TABLE_KEY";n[l];)l="".concat(l,"_next");n[l]=!0,t.push(l)})),t}function l(){var e={};function t(e,n){n&&Object.keys(n).forEach((function(a){var i=n[a];i&&"object"===Object(r.a)(i)?(e[a]=e[a]||{},t(e[a],i)):e[a]=i}))}for(var n=arguments.length,a=new Array(n),i=0;i<n;i++)a[i]=arguments[i];return a.forEach((function(n){t(e,n)})),e}function s(e){return null!=e}},sboe:
|
|
|
/*!*************************************************!*\
|
|
|
!*** ./node_modules/rc-tree/es/contextTypes.js ***!
|
|
|
\*************************************************/
|
|
|
/*! exports provided: TreeContext */
|
|
|
/*! exports used: TreeContext */function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(/*! react */"q1tI"),a=r.createContext(null)},t23M:
|
|
|
/*!*****************************************************!*\
|
|
|
!*** ./node_modules/rc-resize-observer/es/index.js ***!
|
|
|
\*****************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/*! exports used: default */function(e,t,n){"use strict";var r=n(/*! @babel/runtime/helpers/esm/objectSpread2 */"VTBJ"),a=n(/*! @babel/runtime/helpers/esm/classCallCheck */"1OyB"),i=n(/*! @babel/runtime/helpers/esm/createClass */"vuIU"),o=n(/*! @babel/runtime/helpers/esm/inherits */"Ji7U"),l=n(/*! @babel/runtime/helpers/esm/createSuper */"LK+K"),s=n(/*! react */"q1tI"),c=n(/*! rc-util/es/Dom/findDOMNode */"m+aA"),u=n(/*! rc-util/es/Children/toArray */"Zm9Q"),d=n(/*! rc-util/es/warning */"Kwbf"),f=n(/*! rc-util/es/ref */"c+Xe"),p=n(/*! resize-observer-polyfill */"bdgK"),h=function(e){Object(o.a)(n,e);var t=Object(l.a)(n);function n(){var e;return Object(a.a)(this,n),(e=t.apply(this,arguments)).resizeObserver=null,e.childNode=null,e.currentElement=null,e.state={width:0,height:0,offsetHeight:0,offsetWidth:0},e.onResize=function(t){var n=e.props.onResize,a=t[0].target,i=a.getBoundingClientRect(),o=i.width,l=i.height,s=a.offsetWidth,c=a.offsetHeight,u=Math.floor(o),d=Math.floor(l);if(e.state.width!==u||e.state.height!==d||e.state.offsetWidth!==s||e.state.offsetHeight!==c){var f={width:u,height:d,offsetWidth:s,offsetHeight:c};e.setState(f),n&&Promise.resolve().then((function(){n(Object(r.a)(Object(r.a)({},f),{},{offsetWidth:s,offsetHeight:c}))}))}},e.setChildNode=function(t){e.childNode=t},e}return Object(i.a)(n,[{key:"componentDidMount",value:function(){this.onComponentUpdated()}},{key:"componentDidUpdate",value:function(){this.onComponentUpdated()}},{key:"componentWillUnmount",value:function(){this.destroyObserver()}},{key:"onComponentUpdated",value:function(){if(this.props.disabled)this.destroyObserver();else{var e=Object(c.a)(this.childNode||this);e!==this.currentElement&&(this.destroyObserver(),this.currentElement=e),!this.resizeObserver&&e&&(this.resizeObserver=new p.default(this.onResize),this.resizeObserver.observe(e))}}},{key:"destroyObserver",value:function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)}},{key:"render",value:function(){var e=this.props.children,t=Object(u.a)(e);if(t.length>1)Object(d.a)(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(0===t.length)return Object(d.a)(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var n=t[0];if(s.isValidElement(n)&&Object(f.c)(n)){var r=n.ref;t[0]=s.cloneElement(n,{ref:Object(f.a)(r,this.setChildNode)})}return 1===t.length?t[0]:t.map((function(e,t){return!s.isValidElement(e)||"key"in e&&null!==e.key?e:s.cloneElement(e,{key:"".concat("rc-observer-key","-").concat(t)})}))}}]),n}(s.Component);h.displayName="ResizeObserver",t.a=h},tWlo:
|
|
|
/*!*******************************************!*\
|
|
|
!*** ./src/assets/images/icons/anony.png ***!
|
|
|
\*******************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t){e.exports="data:image/png;base64,iV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
/*!******************************************************!*\
|
|
|
!*** ./src/components/PreviewAll/index.less?modules ***!
|
|
|
\******************************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,n){e.exports={wrp:"wrp___z2l1F",bgBlack:"bgBlack___3ezfX",monaco:"monaco___1ypjT",darkBlue:"darkBlue___2ViJc",close:"close___3q-z4",embed:"embed___3dQqc"}},vToQ:
|
|
|
/*!******************************************************************!*\
|
|
|
!*** ./src/components/Header/components/User/index.less?modules ***!
|
|
|
\******************************************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,n){e.exports={flex_box_center:"flex_box_center___3UWMh",flex_space_between:"flex_space_between___2nh9S",flex_box_vertical_center:"flex_box_vertical_center___2Neiq",flex_box_center_end:"flex_box_center_end___2_1FS",flex_box_column:"flex_box_column___2E-v7",userPic:"userPic___3Pu9t",rightMenu:"rightMenu___1qaVl",menuWrap:"menuWrap___3r9jm",exit:"exit___38Urs",classromediv:"classromediv___2R8_g",glow:"glow___323IR",height67:"height67___1DFRI",login:"login___20J7t"}},wCXF:
|
|
|
/*!********************************************************!*\
|
|
|
!*** ./node_modules/rc-table/es/Table.js + 17 modules ***!
|
|
|
\********************************************************/
|
|
|
/*! exports provided: INTERNAL_HOOKS, default */
|
|
|
/*! exports used: INTERNAL_HOOKS, default */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/defineProperty.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/slicedToArray.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@babel/runtime/helpers/esm/typeof.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/classnames/index.js (<- Module is not an ECMAScript module) */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/raf/index.js (<- Module is not an ECMAScript module) */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-resize-observer/es/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-table/es/Cell/index.js because of ./node_modules/antd/es/table/Table.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-table/es/Footer/index.js because of ./node_modules/antd/es/table/Table.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-table/es/context/TableContext.js because of ./node_modules/antd/es/table/Table.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-table/es/hooks/useColumns.js because of ./node_modules/antd/es/table/Table.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-table/es/sugar/Column.js because of ./node_modules/antd/es/table/Table.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-table/es/sugar/ColumnGroup.js because of ./node_modules/antd/es/table/Table.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-table/es/utils/legacyUtil.js because of ./node_modules/antd/es/table/Table.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-table/es/utils/valueUtil.js because of ./node_modules/antd/es/table/Table.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/Dom/addEventListener.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/Dom/css.js because of ./node_modules/rc-image/es/Image.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/getScrollBarSize.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/ref.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/rc-util/es/warning.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/react/index.js (<- Module is not an ECMAScript module) */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/shallowequal/index.js (<- Module is not an ECMAScript module) */function(e,t,n){"use strict";n.d(t,"a",(function(){return _}));var r=n("rePB"),a=n("VTBJ"),i=n("KQm4"),o=n("U8pU"),l=n("ODXe"),s=n("q1tI"),c=n("TSYQ"),u=n.n(c),d=n("Gytx"),f=n.n(d),p=n("Kwbf"),h=n("t23M"),m=n("qx4F"),v=n("6eGT"),g=n("IBYe"),b=n("Ff2n"),y=n("c+Xe"),x=n("fyJ8"),E=n("biw7");function C(e,t,n,r,a){var i,o,l=n[e]||{},s=n[t]||{};"left"===l.fixed?i=r.left[e]:"right"===s.fixed&&(o=r.right[t]);var c=!1,u=!1,d=!1,f=!1,p=n[t+1],h=n[e-1];if("rtl"===a){if(void 0!==i)f=!(h&&"left"===h.fixed);else if(void 0!==o){d=!(p&&"right"===p.fixed)}}else if(void 0!==i){c=!(p&&"left"===p.fixed)}else if(void 0!==o){u=!(h&&"right"===h.fixed)}return{fixLeft:i,fixRight:o,lastFixLeft:c,firstFixRight:u,lastFixRight:d,firstFixLeft:f,isSticky:r.isSticky}}var A=n("sR1s");function O(e){var t,n=e.cells,r=e.stickyOffsets,a=e.flattenColumns,i=e.rowComponent,o=e.cellComponent,l=e.onHeaderRow,c=e.index,u=s.useContext(E.a),d=u.prefixCls,f=u.direction;l&&(t=l(n.map((function(e){return e.column})),c));var p=Object(A.a)(n.map((function(e){return e.column})));return s.createElement(i,Object.assign({},t),n.map((function(e,t){var n,i=e.column,l=C(e.colStart,e.colEnd,a,r,f);return i&&i.onHeaderCell&&(n=e.column.onHeaderCell(i)),s.createElement(x.a,Object.assign({},e,{ellipsis:i.ellipsis,align:i.align,component:o,prefixCls:d,key:p[t]},l,{additionalProps:n,rowType:"header"}))})))}O.displayName="HeaderRow";var k=O;var w=function(e){var t=e.stickyOffsets,n=e.columns,r=e.flattenColumns,a=e.onHeaderRow,i=s.useContext(E.a),o=i.prefixCls,l=i.getComponent,c=s.useMemo((function(){return function(e){var t=[];!function e(n,r){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;t[a]=t[a]||[];var i=r,o=n.filter(Boolean).map((function(n){var r={key:n.key,className:n.className||"",children:n.title,column:n,colStart:i},o=1,l=n.children;return l&&l.length>0&&(o=e(l,i,a+1).reduce((function(e,t){return e+t}),0),r.hasSubColumns=!0),"colSpan"in n&&(o=n.colSpan),"rowSpan"in n&&(r.rowSpan=n.rowSpan),r.colSpan=o,r.colEnd=r.colStart+o-1,t[a].push(r),i+=o,o}));return o}(e,0);for(var n=t.length,r=function(e){t[e].forEach((function(t){"rowSpan"in t||t.hasSubColumns||(t.rowSpan=n-e)}))},a=0;a<n;a+=1)r(a);return t}(n)}),[n]),u=l(["header","wrapper"],"thead"),d=l(["header","row"],"tr"),f=l(["header","cell"],"th");return s.createElement(u,{className:"".concat(o,"-thead")},c.map((function(e,n){return s.createElement(k,{key:n,flattenColumns:r,cells:e,stickyOffsets:t,rowComponent:d,cellComponent:f,onHeaderRow:a,index:n})})))},S=n("hW8S");var j=function(e){for(var t=e.colWidths,n=e.columns,r=[],a=!1,i=(e.columCount||n.length)-1;i>=0;i-=1){var o=t[i],l=n&&n[i],c=l&&l[S.a];(o||c||a)&&(r.unshift(s.createElement("col",Object.assign({key:i,style:{width:o,minWidth:o}},c))),a=!0)}return s.createElement("colgroup",null,r)};var N=s.forwardRef((function(e,t){var n=e.noData,o=e.columns,l=e.flattenColumns,c=e.colWidths,d=e.columCount,f=e.stickyOffsets,p=e.direction,h=e.fixHeader,m=e.offsetHeader,v=e.stickyClassName,g=e.onScroll,x=Object(b.a)(e,["noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","offsetHeader","stickyClassName","onScroll"]),C=s.useContext(E.a),A=C.prefixCls,O=C.scrollbarSize,k=C.isSticky,S=k&&!h?0:O,N=s.useRef(null),I=s.useCallback((function(e){Object(y.b)(t,e),Object(y.b)(N,e)}),[]);s.useEffect((function(){var e;function t(e){var t=e.currentTarget,n=e.deltaX;n&&(g({currentTarget:t,scrollLeft:t.scrollLeft+n}),e.preventDefault())}return null===(e=N.current)||void 0===e||e.addEventListener("wheel",t),function(){var e;null===(e=N.current)||void 0===e||e.removeEventListener("wheel",t)}}),[]);var M=l[l.length-1],T={fixed:M?M.fixed:null,onHeaderCell:function(){return{className:"".concat(A,"-cell-scrollbar")}}},D=Object(s.useMemo)((function(){return S?[].concat(Object(i.a)(o),[T]):o}),[S,o]),R=Object(s.useMemo)((function(){return S?[].concat(Object(i.a)(l),[T]):l}),[S,l]),L=Object(s.useMemo)((function(){var e=f.right,t=f.left;return Object(a.a)(Object(a.a)({},f),{},{left:"rtl"===p?[].concat(Object(i.a)(t.map((function(e){return e+S}))),[0]):t,right:"rtl"===p?e:[].concat(Object(i.a)(e.map((function(e){return e+S}))),[0]),isSticky:k})}),[S,f,k]),B=function(e,t){return Object(s.useMemo)((function(){for(var n=[],r=0;r<t;r+=1){var a=e[r];if(void 0===a)return null;n[r]=a}return n}),[e.join("_"),t])}(c,d);return s.createElement("div",{style:Object(a.a)({overflow:"hidden"},k?{top:m}:{}),ref:I,className:u()("".concat(A,"-header"),Object(r.a)({},v,!!v))},s.createElement("table",{style:{tableLayout:"fixed",visibility:n||B?null:"hidden"}},s.createElement(j,{colWidths:B?[].concat(Object(i.a)(B),[S]):[],columCount:d+1,columns:R}),s.createElement(w,Object.assign({},x,{stickyOffsets:L,columns:D,flattenColumns:R}))))}));N.displayName="FixedHeader";var I=N,M=s.createContext(null);var T=function(e){var t=e.prefixCls,n=e.children,r=e.component,a=e.cellComponent,i=e.fixHeader,o=e.fixColumn,l=e.horizonScroll,c=e.className,u=e.expanded,d=e.componentWidth,f=e.colSpan,p=s.useContext(E.a).scrollbarSize;return s.useMemo((function(){var e=n;return o&&(e=s.createElement("div",{style:{width:d-(i?p:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(t,"-expanded-row-fixed")},e)),s.createElement(r,{className:c,style:{display:u?null:"none"}},s.createElement(x.a,{component:a,prefixCls:t,colSpan:f},e))}),[n,r,i,l,c,u,d,f,p])};function D(e){var t=e.className,n=e.style,r=e.record,i=e.index,o=e.rowKey,c=e.getRowKey,d=e.rowExpandable,f=e.expandedKeys,p=e.onRow,h=e.indent,m=void 0===h?0:h,v=e.rowComponent,g=e.cellComponent,b=e.childrenColumnName,y=s.useContext(E.a),C=y.prefixCls,O=y.fixedInfoList,k=s.useContext(M),w=k.fixHeader,S=k.fixColumn,j=k.horizonScroll,N=k.componentWidth,I=k.flattenColumns,R=k.expandableType,L=k.expandRowByClick,B=k.onTriggerExpand,P=k.rowClassName,K=k.expandedRowClassName,F=k.indentSize,z=k.expandIcon,Q=k.expandedRowRender,W=k.expandIconColumnIndex,H=s.useState(!1),J=Object(l.a)(H,2),U=J[0],V=J[1],G=f&&f.has(e.recordKey);s.useEffect((function(){G&&V(!0)}),[G]);var Y,Z="row"===R&&(!d||d(r)),q="nest"===R,X=b&&r&&r[b],_=Z||q;p&&(Y=p(r,i));var $;"string"==typeof P?$=P:"function"==typeof P&&($=P(r,i,m));var ee,te,ne=Object(A.a)(I),re=s.createElement(v,Object.assign({},Y,{"data-row-key":o,className:u()(t,"".concat(C,"-row"),"".concat(C,"-row-level-").concat(m),$,Y&&Y.className),style:Object(a.a)(Object(a.a)({},n),Y?Y.style:null),onClick:function(e){if(L&&_&&B(r,e),Y&&Y.onClick){for(var t,n=arguments.length,a=new Array(n>1?n-1:0),i=1;i<n;i++)a[i-1]=arguments[i];(t=Y).onClick.apply(t,[e].concat(a))}}}),I.map((function(e,t){var n,a,o=e.render,l=e.dataIndex,c=e.className,u=ne[t],d=O[t];return t===(W||0)&&q&&(n=s.createElement(s.Fragment,null,s.createElement("span",{style:{paddingLeft:"".concat(F*m,"px")},className:"".concat(C,"-row-indent indent-level-").concat(m)}),z({prefixCls:C,expanded:G,expandable:X,record:r,onExpand:B}))),e.onCell&&(a=e.onCell(r,i)),s.createElement(x.a,Object.assign({className:c,ellipsis:e.ellipsis,align:e.align,component:g,prefixCls:C,key:u,record:r,index:i,dataIndex:l,render:o,shouldCellUpdate:e.shouldCellUpdate},d,{appendNode:n,additionalProps:a}))})));if(Z&&(U||G)){var ae=Q(r,i,m+1,G),ie=K&&K(r,i,m);ee=s.createElement(T,{expanded:G,className:u()("".concat(C,"-expanded-row"),"".concat(C,"-expanded-row-level-").concat(m+1),ie),prefixCls:C,fixHeader:w,fixColumn:S,horizonScroll:j,component:v,componentWidth:N,cellComponent:g,colSpan:I.length},ae)}return X&&G&&(te=(r[b]||[]).map((function(t,n){var r=c(t,n);return s.createElement(D,Object.assign({},e,{key:r,rowKey:r,record:t,recordKey:r,index:n,indent:m+1}))}))),s.createElement(s.Fragment,null,re,ee,te)}D.displayName="BodyRow";var R=D,L=s.createContext(null);function B(e){var t=e.columnKey,n=e.onColumnResize,r=s.useRef();return s.useEffect((function(){r.current&&n(t,r.current.offsetWidth)}),[]),s.createElement(h.a,{onResize:function(e){var r=e.offsetWidth;n(t,r)}},s.createElement("td",{ref:r,style:{padding:0,border:0,height:0}},s.createElement("div",{style:{height:0,overflow:"hidden"}}," ")))}var P=s.memo((function(e){var t=e.data,n=e.getRowKey,r=e.measureColumnWidth,a=e.expandedKeys,i=e.onRow,o=e.rowExpandable,l=e.emptyNode,c=e.childrenColumnName,u=s.useContext(L).onColumnResize,d=s.useContext(E.a),f=d.prefixCls,p=d.getComponent,h=s.useContext(M),m=h.fixHeader,v=h.horizonScroll,g=h.flattenColumns,b=h.componentWidth;return s.useMemo((function(){var e,d=p(["body","wrapper"],"tbody"),h=p(["body","row"],"tr"),y=p(["body","cell"],"td");e=t.length?t.map((function(e,t){var r=n(e,t);return s.createElement(R,{key:r,rowKey:r,record:e,recordKey:r,index:t,rowComponent:h,cellComponent:y,expandedKeys:a,onRow:i,getRowKey:n,rowExpandable:o,childrenColumnName:c})})):s.createElement(T,{expanded:!0,className:"".concat(f,"-placeholder"),prefixCls:f,fixHeader:m,fixColumn:v,horizonScroll:v,component:h,componentWidth:b,cellComponent:y,colSpan:g.length},l);var x=Object(A.a)(g);return s.createElement(d,{className:"".concat(f,"-tbody")},r&&s.createElement("tr",{"aria-hidden":"true",className:"".concat(f,"-measure-row"),style:{height:0}},x.map((function(e){return s.createElement(B,{key:e,columnKey:e,onColumnResize:u})}))),e)}),[t,f,i,r,a,n,p,b,l,g])}));P.displayName="Body";var K=P,F=n("wRmb"),z=n("xEkU"),Q=n.n(z);function W(e){var t=Object(s.useRef)(e),n=Object(s.useState)({}),r=Object(l.a)(n,2)[1],a=Object(s.useRef)(null),i=Object(s.useRef)([]);return Object(s.useEffect)((function(){return function(){Q.a.cancel(a.current)}}),[]),[t.current,function(e){null===a.current&&(i.current=[],a.current=Q()((function(){i.current.forEach((function(e){t.current=e(t.current)})),a.current=null,r({})}))),i.current.push(e)}]}var H=function(e,t,n){return Object(s.useMemo)((function(){for(var r=[],a=[],i=0,o=0,l=0;l<t;l+=1)if("rtl"===n){a[l]=o,o+=e[l]||0;var s=t-l-1;r[s]=i,i+=e[s]||0}else{r[l]=i,i+=e[l]||0;var c=t-l-1;a[c]=o,o+=e[c]||0}return{left:r,right:a}}),[e,t,n])};var J=function(e){var t=e.className,n=e.children;return s.createElement("div",{className:t},n)},U=n("n6Qo");function V(e){var t,n=e.prefixCls,a=e.record,i=e.onExpand,o=e.expanded,l=e.expandable,c="".concat(n,"-row-expand-icon");if(!l)return s.createElement("span",{className:u()(c,"".concat(n,"-row-spaced"))});return s.createElement("span",{className:u()(c,(t={},Object(r.a)(t,"".concat(n,"-row-expanded"),o),Object(r.a)(t,"".concat(n,"-row-collapsed"),!o),t)),onClick:function(e){i(a,e),e.stopPropagation()}})}var G=n("zT1h"),Y=n("y0+3"),Z=s.forwardRef((function(e,t){var n,i,o=e.scrollBodyRef,c=e.onScroll,d=e.offsetScroll,f=s.useContext(E.a).prefixCls,p=(null===(n=o.current)||void 0===n?void 0:n.scrollWidth)||0,h=(null===(i=o.current)||void 0===i?void 0:i.clientWidth)||0,v=p&&h*(h/p),g=s.useRef(),b=W({scrollLeft:0,isHiddenScrollBar:!1}),y=Object(l.a)(b,2),x=y[0],C=y[1],A=s.useRef({delta:0,x:0}),O=s.useState(!1),k=Object(l.a)(O,2),w=k[0],S=k[1],j=function(){S(!1)},N=function(e){var t,n=(e||(null===(t=window)||void 0===t?void 0:t.event)).buttons;if(w&&0!==n){var r=A.current.x+e.pageX-A.current.x-A.current.delta;r<=0&&(r=0),r+v>=h&&(r=h-v),c({scrollLeft:r/h*(p+2)}),A.current.x=e.pageX}else w&&S(!1)},I=function(){var e=Object(Y.b)(o.current).top,t=e+o.current.offsetHeight,n=document.documentElement.scrollTop+window.innerHeight;t-Object(m.a)()<=n||e>=n-d?C((function(e){return Object(a.a)(Object(a.a)({},e),{},{isHiddenScrollBar:!0})})):C((function(e){return Object(a.a)(Object(a.a)({},e),{},{isHiddenScrollBar:!1})}))},M=function(e){C((function(t){return Object(a.a)(Object(a.a)({},t),{},{scrollLeft:e/p*h||0})}))};return s.useImperativeHandle(t,(function(){return{setScrollLeft:M}})),s.useEffect((function(){var e=Object(G.a)(document.body,"mouseup",j,!1),t=Object(G.a)(document.body,"mousemove",N,!1);return I(),function(){e.remove(),t.remove()}}),[v,w]),s.useEffect((function(){var e=Object(G.a)(window,"scroll",I,!1),t=Object(G.a)(window,"resize",I,!1);return function(){e.remove(),t.remove()}}),[]),s.useEffect((function(){x.isHiddenScrollBar||C((function(e){var t,n;return Object(a.a)(Object(a.a)({},e),{},{scrollLeft:o.current.scrollLeft/(null===(t=o.current)||void 0===t?void 0:t.scrollWidth)*(null===(n=o.current)||void 0===n?void 0:n.clientWidth)})}))}),[x.isHiddenScrollBar]),p<=h||!v||x.isHiddenScrollBar?null:s.createElement("div",{style:{height:Object(m.a)(),width:h,bottom:d},className:"".concat(f,"-sticky-scroll")},s.createElement("div",{onMouseDown:function(e){e.persist(),A.current.delta=e.pageX-x.scrollLeft,A.current.x=0,S(!0),e.preventDefault()},ref:g,className:u()("".concat(f,"-sticky-scroll-bar"),Object(r.a)({},"".concat(f,"-sticky-scroll-bar-active"),w)),style:{width:"".concat(v,"px"),transform:"translate3d(".concat(x.scrollLeft,"px, 0, 0)")}}))}));var q=[],X={},_="rc-table-internal-hook",$=s.memo((function(e){return e.children}),(function(e,t){return!!f()(e.props,t.props)&&(e.pingLeft!==t.pingLeft||e.pingRight!==t.pingRight)}));function ee(e){var t,n=e.prefixCls,c=e.className,d=e.rowClassName,f=e.style,v=e.data,g=e.rowKey,b=e.scroll,y=e.tableLayout,x=e.direction,O=e.title,k=e.footer,N=e.summary,T=e.id,D=e.showHeader,R=e.components,B=e.emptyText,P=e.onRow,z=e.onHeaderRow,Q=e.internalHooks,G=e.transformColumns,Y=e.internalRefs,ee=e.sticky,te=v||q,ne=!!te.length,re=s.useState(0),ae=Object(l.a)(re,2),ie=ae[0],oe=ae[1];s.useEffect((function(){oe(Object(m.a)())}));var le,se,ce,ue=s.useMemo((function(){return Object(A.c)(R,{})}),[R]),de=s.useCallback((function(e,t){return Object(A.b)(ue,e)||t}),[ue]),fe=s.useMemo((function(){return"function"==typeof g?g:function(e){return e&&e[g]}}),[g]),pe=Object(S.c)(e),he=pe.expandIcon,me=pe.expandedRowKeys,ve=pe.defaultExpandedRowKeys,ge=pe.defaultExpandAllRows,be=pe.expandedRowRender,ye=pe.onExpand,xe=pe.onExpandedRowsChange,Ee=pe.expandRowByClick,Ce=pe.rowExpandable,Ae=pe.expandIconColumnIndex,Oe=pe.expandedRowClassName,ke=pe.childrenColumnName,we=pe.indentSize,Se=he||V,je=ke||"children",Ne=s.useMemo((function(){return be?"row":!!(e.expandable&&Q===_&&e.expandable.__PARENT_RENDER_ICON__||te.some((function(e){return e&&"object"===Object(o.a)(e)&&e[je]})))&&"nest"}),[!!be,te]),Ie=s.useState((function(){return ve||(ge?function(e,t,n){var r=[];return function e(a){(a||[]).forEach((function(a,i){r.push(t(a,i)),e(a[n])}))}(e),r}(te,fe,je):[])})),Me=Object(l.a)(Ie,2),Te=Me[0],De=Me[1],Re=s.useMemo((function(){return new Set(me||Te||[])}),[me,Te]),Le=s.useCallback((function(e){var t,n=fe(e,te.indexOf(e)),r=Re.has(n);r?(Re.delete(n),t=Object(i.a)(Re)):t=[].concat(Object(i.a)(Re),[n]),De(t),ye&&ye(!r,e),xe&&xe(t)}),[fe,Re,te,ye,xe]),Be=s.useState(0),Pe=Object(l.a)(Be,2),Ke=Pe[0],Fe=Pe[1],ze=Object(F.b)(Object(a.a)(Object(a.a)(Object(a.a)({},e),pe),{},{expandable:!!be,expandedKeys:Re,getRowKey:fe,onTriggerExpand:Le,expandIcon:Se,expandIconColumnIndex:Ae,direction:x}),Q===_?G:null),Qe=Object(l.a)(ze,2),We=Qe[0],He=Qe[1],Je=s.useMemo((function(){return{columns:We,flattenColumns:He}}),[We,He]),Ue=s.useRef(),Ve=s.useRef(),Ge=s.useRef(),Ye=s.useState(!1),Ze=Object(l.a)(Ye,2),qe=Ze[0],Xe=Ze[1],_e=s.useState(!1),$e=Object(l.a)(_e,2),et=$e[0],tt=$e[1],nt=W(new Map),rt=Object(l.a)(nt,2),at=rt[0],it=rt[1],ot=Object(A.a)(He).map((function(e){return at.get(e)})),lt=s.useMemo((function(){return ot}),[ot.join("_")]),st=H(lt,He.length,x),ct=b&&Object(A.d)(b.y),ut=b&&Object(A.d)(b.x),dt=ut&&He.some((function(e){return e.fixed})),ft=s.useRef(),pt=function(e,t){return s.useMemo((function(){var n=!!e;return{isSticky:n,stickyClassName:n?"".concat(t,"-sticky-header"):"",offsetHeader:"object"===Object(o.a)(e)&&e.offsetHeader||0,offsetScroll:"object"===Object(o.a)(e)&&e.offsetScroll||0}}),[e,t])}(ee,n),ht=pt.isSticky,mt=pt.offsetHeader,vt=pt.offsetScroll,gt=pt.stickyClassName;ct&&(se={overflowY:"scroll",maxHeight:b.y}),ut&&(le={overflowX:"auto"},ct||(se={overflowY:"hidden"}),ce={width:!0===b.x?"auto":b.x,minWidth:"100%"});var bt=s.useCallback((function(e,t){it((function(n){var r=new Map(n);return r.set(e,t),r}))}),[]),yt=function(e){var t=Object(s.useRef)(e),n=Object(s.useRef)(null);function r(){window.clearTimeout(n.current)}return Object(s.useEffect)((function(){return r}),[]),[function(e){t.current=e,r(),n.current=window.setTimeout((function(){t.current=null,n.current=null}),100)},function(){return t.current}]}(null),xt=Object(l.a)(yt,2),Et=xt[0],Ct=xt[1];function At(e,t){t&&("function"==typeof t?t(e):t.scrollLeft!==e&&(t.scrollLeft=e))}var Ot=function(e){var t,n=e.currentTarget,r=e.scrollLeft,a="number"==typeof r?r:n.scrollLeft,i=n||X;Ct()&&Ct()!==i||(Et(i),At(a,Ve.current),At(a,Ge.current),At(a,null===(t=ft.current)||void 0===t?void 0:t.setScrollLeft));if(n){var o=n.scrollWidth,l=n.clientWidth;Xe(a>0),tt(a<o-l)}},kt=function(){Ge.current&&Ot({currentTarget:Ge.current})};s.useEffect((function(){return kt}),[]),s.useEffect((function(){ut&&kt()}),[ut]),s.useEffect((function(){Q===_&&Y&&(Y.body.current=Ge.current)}));var wt,St,jt=de(["table"],"table"),Nt=s.useMemo((function(){return y||(dt?"max-content"===b.x?"auto":"fixed":ct||He.some((function(e){return e.ellipsis}))?"fixed":"auto")}),[ct,dt,He,y]),It={colWidths:lt,columCount:He.length,stickyOffsets:st,onHeaderRow:z,fixHeader:ct},Mt=s.useMemo((function(){return ne?null:"function"==typeof B?B():B}),[ne,B]),Tt=s.createElement(K,{data:te,measureColumnWidth:ct||ut||ht,expandedKeys:Re,rowExpandable:Ce,getRowKey:fe,onRow:P,emptyNode:Mt,childrenColumnName:je}),Dt=s.createElement(j,{colWidths:He.map((function(e){return e.width})),columns:He}),Rt=N&&s.createElement(U.b,null,N(te)),Lt=de(["body"]);ct||ht?("function"==typeof Lt?(St=Lt(te,{scrollbarSize:ie,ref:Ge,onScroll:Ot}),It.colWidths=He.map((function(e,t){var n=e.width,r=t===We.length-1?n-ie:n;return"number"!=typeof r||Number.isNaN(r)?(Object(p.a)(!1,"When use `components.body` with render props. Each column should have a fixed value."),0):r}))):St=s.createElement("div",{style:Object(a.a)(Object(a.a)({},le),se),onScroll:Ot,ref:Ge,className:u()("".concat(n,"-body"))},s.createElement(jt,{style:Object(a.a)(Object(a.a)({},ce),{},{tableLayout:Nt})},Dt,Tt,Rt),ht&&s.createElement(Z,{ref:ft,offsetScroll:vt,scrollBodyRef:Ge,onScroll:Ot})),wt=s.createElement(s.Fragment,null,!1!==D&&s.createElement(I,Object.assign({noData:!te.length},It,Je,{direction:x,offsetHeader:mt,stickyClassName:gt,ref:Ve,onScroll:Ot})),St)):wt=s.createElement("div",{style:Object(a.a)(Object(a.a)({},le),se),className:u()("".concat(n,"-content")),onScroll:Ot,ref:Ge},s.createElement(jt,{style:Object(a.a)(Object(a.a)({},ce),{},{tableLayout:Nt})},Dt,!1!==D&&s.createElement(w,Object.assign({},It,Je)),Tt,Rt));var Bt=Object(S.b)(e),Pt=s.createElement("div",Object.assign({className:u()(n,c,(t={},Object(r.a)(t,"".concat(n,"-rtl"),"rtl"===x),Object(r.a)(t,"".concat(n,"-ping-left"),qe),Object(r.a)(t,"".concat(n,"-ping-right"),et),Object(r.a)(t,"".concat(n,"-layout-fixed"),"fixed"===y),Object(r.a)(t,"".concat(n,"-fixed-header"),ct),Object(r.a)(t,"".concat(n,"-fixed-column"),dt),Object(r.a)(t,"".concat(n,"-scroll-horizontal"),ut),Object(r.a)(t,"".concat(n,"-has-fix-left"),He[0]&&He[0].fixed),Object(r.a)(t,"".concat(n,"-has-fix-right"),He[He.length-1]&&"right"===He[He.length-1].fixed),t)),style:f,id:T,ref:Ue},Bt),s.createElement($,{pingLeft:qe,pingRight:et,props:Object(a.a)(Object(a.a)({},e),{},{stickyOffsets:st,mergedExpandedKeys:Re})},O&&s.createElement(J,{className:"".concat(n,"-title")},O(te)),s.createElement("div",{className:"".concat(n,"-container")},wt),k&&s.createElement(J,{className:"".concat(n,"-footer")},k(te))));ut&&(Pt=s.createElement(h.a,{onResize:function(e){var t=e.width;kt(),Fe(Ue.current?Ue.current.offsetWidth:t)}},Pt));var Kt=s.useMemo((function(){return{prefixCls:n,getComponent:de,scrollbarSize:ie,direction:x,fixedInfoList:He.map((function(e,t){return C(t,t,He,st,x)})),isSticky:ht}}),[n,de,ie,x,He,st,x,ht]),Ft=s.useMemo((function(){return Object(a.a)(Object(a.a)({},Je),{},{tableLayout:Nt,rowClassName:d,expandedRowClassName:Oe,componentWidth:Ke,fixHeader:ct,fixColumn:dt,horizonScroll:ut,expandIcon:Se,expandableType:Ne,expandRowByClick:Ee,expandedRowRender:be,onTriggerExpand:Le,expandIconColumnIndex:Ae,indentSize:we})}),[Je,Nt,d,Oe,Ke,ct,dt,ut,Se,Ne,Ee,be,Le,Ae,we]),zt=s.useMemo((function(){return{onColumnResize:bt}}),[bt]);return s.createElement(E.a.Provider,{value:Kt},s.createElement(M.Provider,{value:Ft},s.createElement(L.Provider,{value:zt},Pt)))}ee.Column=g.a,ee.ColumnGroup=v.a,ee.Summary=U.a,ee.defaultProps={rowKey:"key",prefixCls:"rc-table",emptyText:function(){return"No Data"}};t.b=ee},wRmb:
|
|
|
/*!******************************************************!*\
|
|
|
!*** ./node_modules/rc-table/es/hooks/useColumns.js ***!
|
|
|
\******************************************************/
|
|
|
/*! exports provided: convertChildrenToColumns, default */
|
|
|
/*! exports used: convertChildrenToColumns, default */function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(/*! @babel/runtime/helpers/esm/defineProperty */"rePB"),a=n(/*! @babel/runtime/helpers/esm/toConsumableArray */"KQm4"),i=n(/*! @babel/runtime/helpers/esm/objectSpread2 */"VTBJ"),o=n(/*! @babel/runtime/helpers/esm/objectWithoutProperties */"Ff2n"),l=n(/*! react */"q1tI"),s=(n(/*! rc-util/es/warning */"Kwbf"),n(/*! rc-util/es/Children/toArray */"Zm9Q")),c=n(/*! ../utils/legacyUtil */"hW8S");function u(e){return Object(s.a)(e).filter((function(e){return l.isValidElement(e)})).map((function(e){var t=e.key,n=e.props,r=n.children,a=Object(o.a)(n,["children"]),l=Object(i.a)({key:t},a);return r&&(l.children=u(r)),l}))}function d(e){return e.reduce((function(e,t){var n=t.fixed,r=!0===n?"left":n,o=t.children;return o&&o.length>0?[].concat(Object(a.a)(e),Object(a.a)(d(o).map((function(e){return Object(i.a)({fixed:r},e)})))):[].concat(Object(a.a)(e),[Object(i.a)(Object(i.a)({},t),{},{fixed:r})])}),[])}t.b=function(e,t){var n=e.prefixCls,a=e.columns,s=e.children,f=e.expandable,p=e.expandedKeys,h=e.getRowKey,m=e.onTriggerExpand,v=e.expandIcon,g=e.rowExpandable,b=e.expandIconColumnIndex,y=e.direction,x=e.expandRowByClick,E=l.useMemo((function(){return a||u(s)}),[a,s]),C=l.useMemo((function(){if(f){var e,t=b||0,a=E[t],i=(e={},Object(r.a)(e,c.a,{className:"".concat(n,"-expand-icon-col")}),Object(r.a)(e,"title",""),Object(r.a)(e,"fixed",a?a.fixed:null),Object(r.a)(e,"className","".concat(n,"-row-expand-icon-cell")),Object(r.a)(e,"render",(function(e,t,r){var a=h(t,r),i=p.has(a),o=!g||g(t),s=v({prefixCls:n,expanded:i,expandable:o,record:t,onExpand:m});return x?l.createElement("span",{onClick:function(e){return e.stopPropagation()}},s):s})),e),o=E.slice();return t>=0&&o.splice(t,0,i),o}return E}),[f,E,h,p,v,y]),A=l.useMemo((function(){var e=C;return t&&(e=t(e)),e.length||(e=[{render:function(){return null}}]),e}),[t,C,y]),O=l.useMemo((function(){return"rtl"===y?function(e){return e.map((function(e){var t=e.fixed,n=Object(o.a)(e,["fixed"]),r=t;return"left"===t?r="right":"right"===t&&(r="left"),Object(i.a)({fixed:r},n)}))}(d(A)):d(A)}),[A,y]);return[A,O]}},xrsn:
|
|
|
/*!**************************************************!*\
|
|
|
!*** ./src/components/Header/index.less?modules ***!
|
|
|
\**************************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! exports used: default */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t,n){e.exports={flex_box_center:"flex_box_center___2cC1r",flex_space_between:"flex_space_between___9TeDx",flex_box_vertical_center:"flex_box_vertical_center___3EIYv",flex_box_center_end:"flex_box_center_end___1Uph0",flex_box_column:"flex_box_column___17_5w",header:"header___1E4MV",logo:"logo___R8PNJ",menu:"menu___Km2Uo",actived:"actived___12Ff0","edu-menu":"edu-menu___2hxbr",newslight:"newslight___jwZR3",classromediv:"classromediv___Cjpgf",glow:"glow___3Nuu5",spandiv:"spandiv___3YPu8","header-iearning":"header-iearning___2Us_L",title:"title___3TtoH",headerFixed:"headerFixed___1V7d4"}},"y0+3":
|
|
|
/*!********************************************!*\
|
|
|
!*** ./node_modules/rc-util/es/Dom/css.js ***!
|
|
|
\********************************************/
|
|
|
/*! exports provided: get, set, getOuterWidth, getOuterHeight, getDocSize, getClientSize, getScroll, getOffset */
|
|
|
/*! exports used: getClientSize, getOffset */function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return a}));function r(){return{width:document.documentElement.clientWidth,height:window.innerHeight||document.documentElement.clientHeight}}function a(e){var t=e.getBoundingClientRect(),n=document.documentElement;return{left:t.left+(window.pageXOffset||n.scrollLeft)-(n.clientLeft||document.body.clientLeft||0),top:t.top+(window.pageYOffset||n.scrollTop)-(n.clientTop||document.body.clientTop||0)}}},yslc:
|
|
|
/*!*********************************************!*\
|
|
|
!*** ./src/assets/images/icons/groups3.png ***!
|
|
|
\*********************************************/
|
|
|
/*! no static exports found */
|
|
|
/*! ModuleConcatenation bailout: Module is not an ECMAScript module */function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhE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HgXuiG7LngMUuqCpkdxkBLMOBa6AW60TCTlS3RMFYnY0BKBpwLnUa9NZl3B/LLtqQkgtmSNwOOhX7whXjU1NKz5e4DdcubH4ZOJgw0Fbrl7c9fg5B7ZYKRwWAMOLgio89+CwTTGTeMATkxYDui63OyQPglcgLIsDAGKAPXhF6YfQvM3HeBENKZdQ1jQGoGLEIvmJ0EvnZ/c79ES2owzB5jwBkDHGhIZ/2R7QC5g9HEGJArAxzyde8D5Gm5AmS4GAO2c3TGB2OgFTLALR1KA6e5SByvUpEp7s+6tELwrMnKYcCl0DmYVOCyzOM3L2dCV44mZInUhdBrVFCPMmdt3MCmLrLsemWBcih0DlfVBMNNWVu2WdlgI7qydCE7tE2FzpVpVOqhdZkbaJSKhsSELruuVxYgG6FzOK+Bekjd+I16exaY0JWlC9mhbRA6h5PBCBpUM369w1jdTOiy63plAaoX+rEQNTewetzmEmfomdCVpQvZoeWWDi3UctrBlePXnHHpTZcdcgZIUQxErnk43vjI2ovuQP8faDGikjbF4FsAAAAASUVORK5CYII="},zXvr:
|
|
|
/*!************************************************************!*\
|
|
|
!*** ./src/pages/Innovation/Detail/index.tsx + 12 modules ***!
|
|
|
\************************************************************/
|
|
|
/*! exports provided: default */
|
|
|
/*! all exports used */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@ant-design/icons/es/icons/DownOutlined.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@ant-design/icons/es/icons/EllipsisOutlined.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@ant-design/icons/es/icons/ForkOutlined.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/objectSpread2.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/slicedToArray.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/helpers/esm/toConsumableArray.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/@umijs/babel-preset-umi/node_modules/@babel/runtime/regenerator/index.js (<- Module is not an ECMAScript module) */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./src/pages/Innovation/Detail/components/CodePane/DirTree/AddFile.less?modules (<- Module is not an ECMAScript module) */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./src/pages/Innovation/Detail/components/CodePane/DirTree/SelectFilePathModal/index.less?modules (<- Module is not an ECMAScript module) */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./src/pages/Innovation/Detail/components/CodePane/DirTree/UploadFile.less?modules (<- Module is not an ECMAScript module) */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./src/pages/Innovation/Detail/components/CodePane/DirTree/index.less?modules (<- Module is not an ECMAScript module) */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./src/pages/Innovation/Detail/components/CodePane/components/Commit/index.less?modules (<- Module is not an ECMAScript module) */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./src/pages/Innovation/Detail/components/CodePane/index.less?modules (<- Module is not an ECMAScript module) */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./src/pages/Innovation/Detail/index.less?modules (<- Module is not an ECMAScript module) */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./src/.umi-production/core/umiExports.ts */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./src/components/ImagesIcon/index.ts */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./src/components/PreviewAll/index.tsx */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./src/components/markdown-editor/code-block/index.tsx */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./src/pages/Innovation/Detail/components/DataSetPane/index.tsx */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./src/pages/Innovation/Tasks/Collaborate/index.tsx */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./src/service/innovation.ts */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./src/service/shixuns.ts */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./src/utils/authority.ts */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./src/utils/env.ts */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./src/utils/fetch.ts */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./src/utils/util.tsx */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./src/utils/verifyLogin.tsx */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/button/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/button/style/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/checkbox/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/checkbox/style/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/col/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/col/style/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/divider/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/divider/style/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/dropdown/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/dropdown/style/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/form/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/form/style/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/input-number/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/input-number/style/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/input/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/input/style/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/menu/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/menu/style/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/message/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/message/style/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/modal/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/modal/style/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/row/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/row/style/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/spin/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/spin/style/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/tabs/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/tabs/style/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/tooltip/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/tooltip/style/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/tree/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/tree/style/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/typography/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/typography/style/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/upload/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/antd/es/upload/style/index.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/moment/moment.js (<- Module is not an ECMAScript module) */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/react-copy-to-clipboard/lib/index.js (<- Module is not an ECMAScript module) */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/react-router/esm/react-router.js */
|
|
|
/*! ModuleConcatenation bailout: Cannot concat with ./node_modules/react/index.js (<- Module is not an ECMAScript module) */function(e,t,n){"use strict";n.r(t);n("T2oS");var r=n("W9HT"),a=(n("giR+"),n("fyUT")),i=(n("miYZ"),n("tsqr")),o=n("9og8"),l=n("k1fw"),s=(n("2qtc"),n("kLXV")),c=(n("/zsF"),n("PArb")),u=(n("14J3"),n("BMrR")),d=(n("jCWc"),n("kPKH")),f=(n("+L6B"),n("2/Rp")),p=(n("y8nQ"),n("Vl3Y")),h=n("tJVT"),m=(n("Znn+"),n("ZTPi")),v=(n("tU7J"),n("wFql")),g=n("WmNS"),b=n.n(g),y=n("q1tI"),x=n.n(y),E=n("0TN8"),C=n("8Skl"),A=n("Ty5D"),O=n("9kvl"),k=n("izBO"),w=n.n(k),S=n("fr4D"),j=n("xKgJ"),N=(n("5NDa"),n("5rEg")),I=Object(O.a)((function(e){return{innovation:e.innovation}}))((function(e){var t=e.dispatch,n=e.innovation,a=e.detail,l=p.a.useForm(),c=Object(h.a)(l,1)[0],u=Object(y.useState)("notyet"),d=Object(h.a)(u,2),f=d[0],m=d[1],v=Object(y.useRef)(),g=function(){var e=Object(o.a)(b.a.mark((function e(){var t,r;return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,c.validateFields();case 3:return t=c.getFieldValue("name"),m("forking"),e.next=7,Object(S.g)("".concat(a.id),{name:t});case 7:0===(r=e.sent).status&&(i.b.success("fork成功"),v.current=r.sci_project_id,"remindModal"===n.openForkModalPosition&&window.localStorage.setItem("hideRemindModal","".concat(n.hideRemindModal))),m("success"),e.next=15;break;case 12:e.prev=12,e.t0=e.catch(0),m("fail");case 15:case"end":return e.stop()}}),e,null,[[0,12]])})));return function(){return e.apply(this,arguments)}}(),E=x.a.createElement(p.a,{autoComplete:"off",form:c,initialValues:{name:a.sci_project.name}},x.a.createElement(p.a.Item,{label:"新项目名称",name:"name",required:!0,rules:[{required:!0,message:"请输入项目名称"}]},x.a.createElement(N.a,{placeholder:"请输入",maxLength:60}))),C={notyet:E,forking:x.a.createElement("div",{style:{height:40}}),success:x.a.createElement("p",null,"项目已经Fork完成,现在就去查看项目吗?"),fail:E};return x.a.createElement(s.a,{title:"Fork项目",width:600,visible:"fork-project"===n.visibleModalName,className:"".concat(w.a.fork_modal),destroyOnClose:!0,centered:!0,onCancel:function(){m("notyet"),c.resetFields(),t({type:"innovation/closeModal"})},onOk:function(){"success"===f?(O.d.push("/innovation/project/detail/".concat(v.current)),location.reload()):g()},okText:"success"===f?"查看项目":"确定"},x.a.createElement(r.a,{tip:"项目Fork中",spinning:"forking"===f},C[f]))})),M=n("wd/R"),T=n.n(M),D=n("m3rI"),R=function(){var e=Object(y.useState)(T()().valueOf()),t=Object(h.a)(e,2),n=t[0],r=t[1],a=Object(y.useMemo)((function(){return"".concat(D.a.API_SERVER,"/rucaptcha?t=").concat(n)}),[n]);return x.a.createElement(u.a,{align:"middle"},x.a.createElement("img",{src:a,alt:""}),x.a.createElement("span",{onClick:function(){r(T()().valueOf())},style:{fontSize:12,fontWeight:400,color:"#165DFF",marginLeft:10,cursor:"pointer"}},"看不清换一张"))},L=Object(O.a)((function(e){return{innovation:e.innovation}}))((function(e){var t=e.dispatch,n=e.innovation,r=e.projectId,a=p.a.useForm(),l=Object(h.a)(a,1)[0],c=function(){var e=Object(o.a)(b.a.mark((function e(){var n;return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,l.validateFields();case 3:return n=l.getFieldsValue(),e.next=6,Object(S.d)(r,{code:n.code});case 6:0===e.sent.status&&(i.b.success("删除成功"),t({type:"innovation/closeModal"}),O.d.replace("/innovation/project")),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(0),t({type:"innovation/closeModal"});case 13:case"end":return e.stop()}}),e,null,[[0,10]])})));return function(){return e.apply(this,arguments)}}();return x.a.createElement(s.a,{title:"删除项目",width:600,okText:"确定删除",okButtonProps:{type:"primary",danger:!0},centered:!0,visible:"delete-project"===n.visibleModalName,destroyOnClose:!0,onCancel:function(){return t({type:"innovation/closeModal"})},onOk:c},x.a.createElement(p.a,{autoComplete:"off",form:l,preserve:!1},x.a.createElement(p.a.Item,{label:"验证码",required:!0},x.a.createElement(p.a.Item,{name:"code",rules:[{required:!0,message:"请输入验证码"}]},x.a.createElement(N.a,{placeholder:"请输入验证码"})),x.a.createElement("span",{style:{color:"#FA6400"}},"删除项目后,将无法恢复,请谨慎操作"),x.a.createElement(R,null))))})),B=(n("qVdP"),n("jsC+")),P=(n("lUTK"),n("BvKs")),K=(n("5Dmo"),n("3S7+")),F=n("PpiC"),z=n("jXuf"),Q=n.n(z),W=n("oBTY"),H=(n("ozfa"),n("MJZm")),J=n("P5Jw"),U=n("KUBS"),V=n.n(U),G=Object(O.a)((function(e){var t=e.shixunsDetail,n=e.loading;return{shixunsDetail:t,globalSetting:e.globalSetting,user:e.user,loading:n.models.index}}))((function(e){e.shixunsDetail,e.globalSetting,e.loading,e.user;var t=e.dispatch,n=e.isRepository,r=Object(F.a)(e,["shixunsDetail","globalSetting","loading","user","dispatch","isRepository"]),a=Object(A.h)(),c=Object(A.i)(),f=Object(y.useState)({}),m=Object(h.a)(f,2),v=(m[0],m[1]),g=Object(y.useRef)(),E=p.a.useForm(),C=Object(h.a)(E,1)[0],O=Object(y.useState)(""),k=Object(h.a)(O,2),w=(k[0],k[1]);Object(y.useEffect)((function(){r.visible&&C.resetFields()}),[r.visible]),Object(y.useEffect)((function(){var e=sessionStorage.getItem("pathArray");if(e){var t=e.split(",").join("/"),n=0===t.indexOf("/")?t.substr(1):t;w(n)}}),[]),Object(y.useEffect)((function(){var e,t;g.current=null===(e=a.pathname)||void 0===e||null===(t=e.split("/"))||void 0===t?void 0:t[2]}),[]);var S=function(){var e=Object(o.a)(b.a.mark((function e(){var a,o,l=arguments;return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=l.length>0&&void 0!==l[0]?l[0]:{},e.next=3,t({type:"shixunsDetail/addRepositoryFiles",payload:{id:c.taskId,message:a.commitMessage,content:"",path:(r.defaultPath?r.defaultPath+"/":"")+a.path+"/"+(a.file||".gitkeep"),secret_repository:!n||void 0}});case 3:null!=(o=e.sent)&&o.url&&(i.b.success("添加成功"),r.onOK({path:(r.defaultPath?r.defaultPath+"/":"")+a.path+"/"+(a.file||".gitkeep"),name:a.path.split("/")[a.path.split("/").length-1]}),r.onClose());case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return x.a.createElement(s.a,{width:"60%",centered:!0,visible:r.visible,wrapClassName:V.a.modal,onOk:function(){C.submit()},onCancel:r.onClose,title:"新建文件夹"},x.a.createElement("section",{className:V.a.bg},x.a.createElement("div",{className:V.a.wrap},x.a.createElement(p.a,{className:"mt10",form:C,scrollToFirstError:!0,layout:"vertical",onFinish:S,onChange:function(){var e,t,n,r,a=Object(l.a)({},C.getFieldsValue()),i=null==a||null===(e=a.path)||void 0===e?void 0:e.split(""),o=null==a||null===(t=a.file)||void 0===t?void 0:t.split("");null!=i&&null!==(n=i.filter((function(e){return"/"==e})))&&void 0!==n&&n.length&&(a.path=a.path.substring(0,a.path.length-1)),null!=o&&null!==(r=o.filter((function(e){return"/"==e})))&&void 0!==r&&r.length&&(a.file=a.file.substring(0,a.path.length-1)),C.setFieldsValue(Object(l.a)({},a)),v(a)}},x.a.createElement(p.a.Item,{label:"文件夹名称:",name:"path"},x.a.createElement(u.a,null,x.a.createElement(d.a,null,x.a.createElement("span",{className:V.a.filePath},r.defaultPath+"/")),x.a.createElement(d.a,{flex:"1"},x.a.createElement(p.a.Item,{name:"path",rules:[{required:!0,message:"请输入文件夹名称"},{whitespace:!0,message:"请勿输入空格"}]},x.a.createElement(N.a,{placeholder:"请输入文件夹名称",size:"large"}))))),x.a.createElement(p.a.Item,{label:"文件名称:",name:"file"},x.a.createElement(N.a,{placeholder:"请输入文件名称,如果不填写系统将在文件夹下创建.gitkeep的默认文件",size:"large"})),x.a.createElement(p.a.Item,{label:"提交信息:",name:"commitMessage",rules:[{required:!0,message:"请输入提交信息"},{whitespace:!0,message:"请勿输入空格"}]},x.a.createElement(N.a,{placeholder:"请输入本次提交的主要信息,合理的描述信息有利于代码历史记录的管理",size:"large"}))))))})),Y=n("7ahc"),Z=Object(O.a)((function(e){var t=e.shixunsDetail,n=e.loading;return{shixunsDetail:t,globalSetting:e.globalSetting,user:e.user,loading:n.models.index}}))((function(e){e.shixunsDetail,e.globalSetting,e.loading,e.user;var t=e.dispatch,n=e.isRepository,r=Object(F.a)(e,["shixunsDetail","globalSetting","loading","user","dispatch","isRepository"]),a=Object(A.h)(),c=Object(A.i)(),f=Object(y.useState)({}),m=Object(h.a)(f,2),v=(m[0],m[1]),g=Object(y.useRef)(),E=p.a.useForm(),C=Object(h.a)(E,1)[0],O=Object(y.useState)(""),k=Object(h.a)(O,2),w=(k[0],k[1]);Object(y.useEffect)((function(){r.visible&&C.resetFields()}),[r.visible]),Object(y.useEffect)((function(){var e=sessionStorage.getItem("pathArray");if(e){var t=e.split(",").join("/"),n=0===t.indexOf("/")?t.substr(1):t;w(n)}}),[]),Object(y.useEffect)((function(){var e,t;g.current=null===(e=a.pathname)||void 0===e||null===(t=e.split("/"))||void 0===t?void 0:t[2]}),[]);var S=function(){var e=Object(o.a)(b.a.mark((function e(){var a,o,l=arguments;return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=l.length>0&&void 0!==l[0]?l[0]:{},e.next=3,t({type:"shixunsDetail/addRepositoryFiles",payload:{id:c.taskId,message:a.commitMessage,content:a.codeMirror,path:(r.defaultPath?r.defaultPath+"/":"")+a.path,secret_repository:!n||void 0}});case 3:null!=(o=e.sent)&&o.url&&(i.b.success("添加成功"),r.onOK({path:(r.defaultPath?r.defaultPath+"/":"")+a.path,name:a.path.split("/")[a.path.split("/").length-1]}),r.onClose());case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return x.a.createElement(s.a,{width:"60%",visible:r.visible,wrapClassName:V.a.modal,centered:!0,onOk:function(){C.submit()},onCancel:r.onClose,title:"新建文件"},x.a.createElement("section",{className:V.a.bg},x.a.createElement("div",{className:V.a.wrap},x.a.createElement(p.a,{className:"mt10",form:C,scrollToFirstError:!0,layout:"vertical",onFinish:S,onChange:function(){var e,t,n=Object(l.a)({},C.getFieldsValue()),r=null==n||null===(e=n.path)||void 0===e?void 0:e.split("");(null==r||null===(t=r.filter((function(e){return"/"==e})))||void 0===t?void 0:t.length)>1&&(n.path=n.path.substring(0,n.path.length-1)),C.setFieldsValue(Object(l.a)({},n)),v(n)}},x.a.createElement(p.a.Item,{label:"文件名称或文件路径:",name:"path"},x.a.createElement(u.a,null,x.a.createElement(d.a,null,x.a.createElement("span",{className:V.a.filePath},r.defaultPath+"/")),x.a.createElement(d.a,{flex:"1"},x.a.createElement(p.a.Item,{name:"path",rules:[{required:!0,message:"请输入文件名称"},{whitespace:!0,message:"请勿输入空格"}]},x.a.createElement(N.a,{placeholder:"请输入文件名称",size:"large"}))))),x.a.createElement(p.a.Item,{label:"提交信息:",name:"commitMessage",rules:[{required:!0,message:"请输入提交信息"},{whitespace:!0,message:"请勿输入空格"}]},x.a.createElement(N.a,{placeholder:"请输入本次提交的主要信息,合理的描述信息有利于代码历史记录的管理",size:"large"})),x.a.createElement("div",{className:"mt10 mb20"},x.a.createElement(p.a.Item,{name:"codeMirror",label:"文件内容:",rules:[{required:!0,message:"请输入文件内容"}]},x.a.createElement(Y.a,{options:{modal:"javascript",lineNumbers:!0,theme:"railscasts",indentUnit:4,matchBrackets:!0,autoRefresh:!0,smartIndent:!0,extraKeys:{"Alt-/":"autocomplete"},autofocus:!0,styleActiveLine:!0,lint:!0,linkurl:"",gutters:["CodeMirror-linenumbers","breakpoints","CodeMirror-lint-markers"]}})))))))})),q=Object(O.a)((function(e){var t=e.shixunsDetail,n=e.loading;return{shixunsDetail:t,globalSetting:e.globalSetting,user:e.user,loading:n.models.index}}))((function(e){e.shixunsDetail,e.globalSetting,e.loading,e.user;var t=e.dispatch,n=e.isRepository,r=Object(F.a)(e,["shixunsDetail","globalSetting","loading","user","dispatch","isRepository"]),a=Object(A.h)(),c=Object(A.i)(),f=Object(y.useState)({}),m=Object(h.a)(f,2),v=(m[0],m[1]),g=Object(y.useRef)(),E=p.a.useForm(),C=Object(h.a)(E,1)[0],O=Object(y.useState)(""),k=Object(h.a)(O,2),w=k[0],S=k[1],j=Object(y.useState)(""),I=Object(h.a)(j,2),M=I[0],T=I[1];Object(y.useEffect)((function(){r.visible&&C.resetFields()}),[r.visible]),Object(y.useEffect)((function(){var e=r.defaultPath.split("/");1===e.length?(S(""),T(r.defaultPath)):(T(e.pop()),S(e.join("/")+"/"))}),[r.defaultPath]),Object(y.useEffect)((function(){var e,t;g.current=null===(e=a.pathname)||void 0===e||null===(t=e.split("/"))||void 0===t?void 0:t[2]}),[]);var D=function(){var e=Object(o.a)(b.a.mark((function e(){var a,o,l=arguments;return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=l.length>0&&void 0!==l[0]?l[0]:{},e.next=3,t({type:"shixunsDetail/moveGitFiles",payload:{id:c.taskId,from:r.defaultPath,to:w+a.path,message:a.commitMessage||"".concat(r.defaultPath," rename to ").concat(w).concat(a.path," "),secret_repository:n}});case 3:0===(null==(o=e.sent)?void 0:o.status)&&(i.b.success("添加成功"),r.onOK({path:a.path,name:a.path}),r.onClose());case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return x.a.createElement(s.a,{width:"40%",visible:r.visible,wrapClassName:V.a.modal,centered:!0,onOk:function(){C.submit()},onCancel:r.onClose,title:"提交说明"},x.a.createElement("section",{className:V.a.bg},x.a.createElement("div",{className:V.a.wrap},x.a.createElement(p.a,{className:"mt10",form:C,scrollToFirstError:!0,layout:"vertical",onFinish:D,onChange:function(){var e,t,n=Object(l.a)({},C.getFieldsValue()),r=null==n||null===(e=n.path)||void 0===e?void 0:e.split("");(null==r||null===(t=r.filter((function(e){return"/"==e})))||void 0===t?void 0:t.length)>1&&(n.path=n.path.substring(0,n.path.length-1)),C.setFieldsValue(Object(l.a)({},n)),v(n)}},x.a.createElement(p.a.Item,{label:"重命名:",name:"path"},x.a.createElement(u.a,null,x.a.createElement(d.a,{flex:"1"},x.a.createElement(p.a.Item,{name:"path",rules:[{required:!0,message:"请输入文件名称"},{whitespace:!0,message:"请勿输入空格"}]},x.a.createElement(N.a,{placeholder:"请输入文件名称",size:"large",defaultValue:M}))))),x.a.createElement(p.a.Item,{label:"提交信息:",name:"commitMessage"},x.a.createElement(N.a,{placeholder:"如不填写,默认提交信息是(".concat(r.defaultPath," rename to 新的名称 )"),size:"large"}))))))})),X=(n("DZo9"),n("8z0m")),_=n("ZaFS"),$=n.n(_),ee=X.a.Dragger,te=Object(O.a)((function(e){var t=e.shixunsDetail,n=e.loading;return{shixunsDetail:t,globalSetting:e.globalSetting,user:e.user,loading:n.models.index}}))((function(e){e.shixunsDetail,e.globalSetting,e.loading,e.user;var t,n=e.dispatch,r=e.isRepository,a=Object(F.a)(e,["shixunsDetail","globalSetting","loading","user","dispatch","isRepository"]),c=(Object(A.h)(),Object(A.i)()),u=Object(y.useState)({}),d=Object(h.a)(u,2),f=d[0],m=d[1],v=Object(y.useRef)(),g=p.a.useForm(),E=Object(h.a)(g,1)[0],C=Object(y.useState)([]),O=Object(h.a)(C,2),k=O[0],w=O[1],S=Object(y.useState)(),j=Object(h.a)(S,2),I=j[0],M=j[1];Object(y.useEffect)((function(){a.visible&&(E.resetFields(),w([]))}),[a.visible]),Object(y.useEffect)((function(){v.current=c.taskId}),[]),Object(y.useEffect)((function(){var e=sessionStorage.getItem("pathArray");if(e){var t=e.split(",").join("/"),n=0===t.indexOf("/")?t.substr(1):t;M(n)}}),[]);var T,R=function(){var e=Object(o.a)(b.a.mark((function e(t){return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.response){e.next=3;break}return i.b.info("还未上传完成,无法进行删除操作!"),e.abrupt("return");case 3:return e.next=5,n({type:"shixunsDetail/deleteGitFile",payload:{id:c.taskId,path:I?"".concat(I,"/").concat(t.name):t.name,message:E.getFieldValue("commitMessage")||"删除了".concat(I?"".concat(I,"/").concat(t.name):t.name),secret_repository:!r||null}});case 5:0===e.sent.status&&(w(k.filter((function(e){return e.uid!==t.uid}))),i.b.info("删除成功"));case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),L={height:300,multiple:!0,withCredentials:!0,data:(T=Object(o.a)(b.a.mark((function e(){return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise(function(){var e=Object(o.a)(b.a.mark((function e(n,i){return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:setTimeout(Object(o.a)(b.a.mark((function e(){var i;return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,E.getFieldsValue();case 2:e.sent,i=Object(l.a)(Object(l.a)({},{path:a.defaultPath?a.defaultPath:"",message:f.commitMessage||"上传了".concat(t)}),r?{}:{secret_repository:!0}),n(i);case 5:case"end":return e.stop()}}),e)}))),200);case 1:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()));case 1:case"end":return e.stop()}}),e)}))),function(){return T.apply(this,arguments)}),fileList:k,method:"post",action:"".concat(D.a.API_SERVER,"/api/sci/projects/").concat(v.current,"/upload_git_file.json"),onChange:function(e){if(t=e.file.name,"done"===e.file.status||"uploading"===e.file.status){var n,r,a;if(w(e.fileList),!e.file.response)return;if(0===(null===(n=e.file.response)||void 0===n?void 0:n.status))return void i.b.success("上传成功!");w(k.filter((function(t){return t.uid!==e.file.uid}))),(null===(r=e.file.response)||void 0===r?void 0:r.message)&&i.b.info(null===(a=e.file.response)||void 0===a?void 0:a.message)}},onRemove:R,beforeUpload:function(e){t=e.name}},B=function(){var e=Object(o.a)(b.a.mark((function e(t){return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,E.validateFields();case 2:a.onClose(),a.onOK({path:a.defaultPath});case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return x.a.createElement(s.a,{visible:a.visible,onOk:B,centered:!0,onCancel:a.onClose,width:"70%"},x.a.createElement("section",{className:$.a.bg},x.a.createElement("div",{className:$.a.wrap},x.a.createElement("div",{className:$.a.title},"上传文件"),x.a.createElement(p.a,{className:"mt10",form:E,scrollToFirstError:!0,layout:"vertical",onFinish:B,onValuesChange:function(){return m(Object(l.a)({},E.getFieldsValue()))}},x.a.createElement(p.a.Item,{label:"提交信息:",name:"commitMessage",rules:[{required:!0,message:"请输入提交信息"},{whitespace:!0,message:"请勿输入空格"}]},x.a.createElement(N.a,{placeholder:"必填,描述主要修改内容(相当于Git Commit message的Header)"})),x.a.createElement(p.a.Item,{label:"选择文件",name:"file",rules:[{required:!0,message:"请选择文件"}]},x.a.createElement(ee,L,x.a.createElement("div",null,x.a.createElement("i",{className:"iconfont icon-shangchuan font50 ".concat($.a.colorBlue)})),x.a.createElement("div",{className:"font14 mt30"},"拖拽文件或",x.a.createElement("span",{className:"".concat($.a.colorBlue," ml5")},"点击此处上传"))))))))})),ne=n("5vmQ"),re=n.n(ne),ae=n("hkyu"),ie=n.n(ae),oe=Object(O.a)((function(e){var t=e.shixunsDetail,n=e.loading;return{shixunsDetail:t,globalSetting:e.globalSetting,loading:n.models.index}}))((function(e){var t=e.shixunsDetail,n=(e.globalSetting,e.loading,e.dispatch),r=e.title,a=e.pathList,c=void 0===a?[]:a,u=e.showInputPath,d=void 0!==u&&u,f=e.isMergeSelectFile,m=void 0!==f&&f,v=e.onFinish,g=void 0===v?function(){}:v,E=p.a.useForm(),C=Object(h.a)(E,1)[0],O=Object(A.i)(),k=Object(A.h)(),w=Object(y.useRef)(),S=Object(y.useState)(""),j=Object(h.a)(S,2),I=j[0],M=j[1],T=Object(y.useState)(""),D=Object(h.a)(T,2),R=D[0],L=D[1],B=Object(y.useState)([]),P=Object(h.a)(B,2),K=P[0],F=P[1],z=Object(y.useState)([]),Q=Object(h.a)(z,2),W=Q[0],H=Q[1];Object(y.useEffect)((function(){var e,t;w.current="repository"===(null===(e=k.pathname)||void 0===e||null===(t=e.split("/"))||void 0===t?void 0:t[3])}),[]),Object(y.useEffect)((function(){if("Repository-SelectFilePath"===t.actionTabs.key){var e=c.join("/"),n=[];c.map((function(t,r){0===r?n.push({val:"根目录",path:""},{val:"/".concat(t),path:e}):n.push({val:"/".concat(t),path:e})})),F(n),M(e),L(e),J(e)}}),[t.actionTabs.key]);var J=function(){var e=Object(o.a)(b.a.mark((function e(t){var r;return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n({type:w.current?"shixunsDetail/getRepository":"shixunsDetail/getSecretRepository",payload:{id:O.taskId,path:t}});case 2:(r=e.sent)&&H(r.trees||[]);case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),U=function(){var e=Object(o.a)(b.a.mark((function e(){var t,r,a;return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=null==C?void 0:C.getFieldsValue(),r=I?"".concat(I).concat(null!=t&&t.name?"/".concat(null==t?void 0:t.name):""):null==t?void 0:t.name,!m){e.next=6;break}return g(r),V(),e.abrupt("return");case 6:if(!d){e.next=16;break}return e.next=9,C.validateFields();case 9:return e.next=11,n({type:"shixunsDetail/uploadGitFolder",payload:Object(l.a)(Object(l.a)({},{id:O.taskId,path:r}),w.current?{}:{secret_repository:!0})});case 11:a=e.sent,g(R),0===a.status&&i.b.info("新建成功"),e.next=18;break;case 16:g(r),i.b.success("选择文件目录成功");case 18:V();case 19:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),V=function(){n({type:"shixunsDetail/setActionTabs",payload:{}}),C.resetFields()};return x.a.createElement(s.a,{centered:!0,title:r||"新建文件夹",closable:!1,keyboard:!1,visible:"Repository-SelectFilePath"===t.actionTabs.key,onOk:U,onCancel:V},x.a.createElement("div",{className:ie.a.wrap},x.a.createElement("div",{className:ie.a.content},x.a.createElement("div",{className:ie.a.mainPathWrap},!(null==K||!K.length)&&K.map((function(e,t){return x.a.createElement("a",{key:t,onClick:function(){return function(e,t){var n=K.filter((function(e,n){return n<=t}));F(n);var r=n.filter((function(e,t){return 0!==t})).map((function(e){return e.val})).join("").substr(1);M(r),J(r)}(0,t)}},e.val)}))),!(null==W||!W.length)&&W.map((function(e,t){return"tree"===e.type&&x.a.createElement("a",{key:t,onClick:function(){return function(e){var t=I;"tree"===e.type&&(K.length?K.push({val:"/".concat(e.name),path:e.name}):K.push({val:"根目录",path:""},{val:"/".concat(e.name),path:e.name}),F(K),t=I?"".concat(I,"/").concat(e.name):e.name,M(t)),J(t)}(e)}},x.a.createElement("i",{className:"iconfont icon-wenjianjia ".concat(ie.a.colorBlue)}),e.name)}))),x.a.createElement("label",{className:"mt5"},"选中的新建文件夹目录:"),x.a.createElement("div",{className:"mt5 mb5"},I),d&&x.a.createElement(p.a,{form:C,scrollToFirstError:!0,className:"mt20"},x.a.createElement(p.a.Item,{name:"name",rules:[{required:!0,message:"请输入名称"},{whitespace:!0,message:"请勿输入空格"}]},x.a.createElement(N.a,{placeholder:"请输入新文件夹名/子文件夹名。(如:src/step1)"})))))})),le=n("GZ0F"),se=n("HBuW"),ce=n("1vsH"),ue=(n("NLgs"),n("lzim")),de=H.a.DirectoryTree,fe=function(){return x.a.createElement("div",{className:"mt20 pb50 ".concat(re.a.nodata)},x.a.createElement("div",{className:re.a.headLeft},"提示:",x.a.createElement("br",null),"此处存放本实训所需的所有代码等相关文件,你可以通过以下",x.a.createElement("br",null),"两种方式来使用:",x.a.createElement("br",null),"1、",x.a.createElement("a",{href:"/forums/2784",target:"_blank"},"Git客户端")," ","上传已有文件来开始使用。",x.a.createElement("br",null),"2、直接在平台上创建文件目录以及相关代码文件。"),x.a.createElement("img",{width:"100%",src:ue.z}))},pe=Object(O.a)((function(e){var t=e.shixunsDetail,n=e.loading,r=e.globalSetting,a=e.practiceSetting;return{shixunsDetail:t,globalSetting:r,user:e.user,practiceSetting:a,loading:n}}))((function(e){var t,n,r=e.shixunsDetail,a=(e.globalSetting,e.loading),c=(e.user,e.activeKey),f=e.dispatch,p=e.practiceSetting,m=e.isRepository,v=e.treeData,g=e.setTreeData,E=e.haveAuth,O=(Object(F.a)(e,["shixunsDetail","globalSetting","loading","user","activeKey","dispatch","practiceSetting","isRepository","treeData","setTreeData","haveAuth"]),Object(A.i)()),k=Object(A.h)(),w=Object(y.useState)(),S=Object(h.a)(w,2),j=S[0],N=(S[1],Object(y.useState)(!1)),I=Object(h.a)(N,2),M=I[0],T=I[1],D=Object(y.useState)(!1),R=Object(h.a)(D,2),L=R[0],z=R[1],Q=Object(y.useState)(!1),H=Object(h.a)(Q,2),U=H[0],V=H[1],Y=Object(y.useState)(!1),X=Object(h.a)(Y,2),_=X[0],$=X[1],ee=Object(y.useState)(""),ne=Object(h.a)(ee,2),ae=ne[0],ie=ne[1],ue=Object(y.useState)([]),pe=Object(h.a)(ue,2),he=pe[0],me=pe[1],ve=Object(y.useState)([]),ge=Object(h.a)(ve,2),be=ge[0],ye=ge[1],xe=Object(y.useState)([]),Ee=Object(h.a)(xe,2),Ce=(Ee[0],Ee[1]),Ae=Object(y.useState)(!1),Oe=Object(h.a)(Ae,2),ke=Oe[0],we=Oe[1],Se=Object(y.useState)(),je=Object(h.a)(Se,2),Ne=(je[0],je[1]),Ie=Object(y.useState)(),Me=Object(h.a)(Ie,2),Te=(Me[0],Me[1]),De=Object(y.useState)(""),Re=Object(h.a)(De,2),Le=(Re[0],Re[1]),Be=Object(y.useState)(),Pe=Object(h.a)(Be,2),Ke=(Pe[0],Pe[1]),Fe=Object(y.useState)(!1),ze=Object(h.a)(Fe,2),Qe=ze[0],We=ze[1];Object(y.useEffect)((function(){g([]),Ze(""),localStorage.warehouseHideTip||we(!0)}),[k.pathname,m]);var He=function(){var e=Object(o.a)(b.a.mark((function e(){var t,n=arguments;return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.length>0&&void 0!==n[0]?n[0]:"",e.next=3,Object(se.Fb)({id:O.taskId,secret_dir_path:t});case 3:e.sent&&Ke(t);case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Je=function(e){return x.a.createElement(P.a,{className:re.a.menu,onClick:function(t){switch(ie(e.path||""),t.key){case"1":Object(ce.ab)(["实践项目","设置","代码仓库","新建文件"]),T(!0);break;case"2":Object(ce.ab)(["实践项目","设置","代码仓库","新建文件夹"]),V(!0);break;case"3":Object(ce.ab)(["实践项目","设置","代码仓库","上传"]),$(!0);break;case"4":Object(ce.ab)(["实践项目","设置","代码仓库","重命名"]),z(!0);break;case"5":Object(ce.ab)(["实践项目","设置","代码仓库","删除"]),_e(e.path,e.name,e);break;case"6":Object(ce.ab)(["实践项目","设置","代码仓库","复制路径"]),$e(e)}}},("topTree"===e.type||"tree"===e.type)&&x.a.createElement(P.a.Item,{key:"1"},"新建文件"),("topTree"===e.type||"tree"===e.type)&&x.a.createElement(P.a.Item,{key:"2"},"新建文件夹"),("topTree"===e.type||"tree"===e.type)&&x.a.createElement(P.a.Item,{key:"3"},"上传"),"topTree"!==e.type&&"tree"!==e.type&&x.a.createElement(P.a.Item,{key:"4"},"重命名"),"topTree"!==e.type&&x.a.createElement(J.CopyToClipboard,{text:"/data/workspace/myshixun/".concat(m?"":"secret/").concat(null==e?void 0:e.path),onCopy:function(){return i.b.success("复制成功")}},x.a.createElement(P.a.Item,{key:"6"},x.a.createElement(x.a.Fragment,null,"复制路径"))),"topTree"!==e.type&&x.a.createElement(P.a.Item,{key:"5"},"删除"))},Ue=function(e,t){return e.map((function(e){return e.path=""==t?t+e.name:t+"/"+e.name,e.title=x.a.createElement(u.a,{className:"font14"},x.a.createElement(d.a,{flex:"1"},x.a.createElement(u.a,null,x.a.createElement(d.a,{flex:"20px"},"blob"===e.type&&x.a.createElement("span",{className:"iconfont icon-wenjian11 font12"})),x.a.createElement(d.a,{flex:"1"},x.a.createElement("span",{className:" multi_ellipsis1"},e.name)))),E&&x.a.createElement(d.a,null,("blob"===e.type||"tree"===e.type)&&x.a.createElement(B.a,{overlay:Je(e),className:re.a.ellipsis},x.a.createElement("i",{className:"iconfont icon-gengduo2 c-555a88"})))),e.disableCheckbox=j&&j!==e.name,e.className="tree"===e.type?re.a.pl23:"",e.checkable="tree"!==e.type,e.isLeaf="tree"!==e.type,e.children="tree"===e.type&&[],e.key=e.path,e}))},Ve=function(e){f({type:"practiceSetting/setSideBarTabs",payload:{selectPath:e}})},Ge=function(){var e=Object(o.a)(b.a.mark((function e(t,n){var r;return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.split("/"),e.next=3,Ze(ae);case 3:setTimeout((function(){Ve(t),he=[r[0]||""],be=[t],ye(Object(W.a)(be)),me(Object(W.a)(he))}),150);case 4:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),Ye=function(e,t){if(""==t)v=Object(W.a)(e),g(Object(W.a)(e));else{var n=function e(t,n,r){return t.map((function(t){return t.key===n?(t.children=Object(W.a)(r),Object(l.a)({},t)):t.children?Object(l.a)(Object(l.a)({},t),{},{children:e(t.children,n,r)}):t}))}(v,t,e);v=n,g(Object(W.a)(n))}};var Ze=function(){var e=Object(o.a)(b.a.mark((function e(){var t,n,r,a,i,o=arguments;return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=o.length>0&&void 0!==o[0]?o[0]:"",e.next=3,f({type:m?"shixunsDetail/getRepositorys":"shixunsDetail/getSecretRepository",payload:{id:O.taskId,path:t}});case 3:return(n=e.sent)&&(null!==(r=n.trees)&&void 0!==r&&r.length?(i=Ue(Object(W.a)(n.trees),t),Ye(i,t),Ce(n.trees||[]),Te(t||""),console.log("handleGetRepository:",i,t),setTimeout((function(){return console.log(v,n.trees,t,999999)}),2e3)):""==t&&g([]),Ne((null===(a=n.commits)||void 0===a?void 0:a[0])||{})),e.abrupt("return",n);case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),qe=function(){var e=Object(o.a)(b.a.mark((function e(t){return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise(function(){var e=Object(o.a)(b.a.mark((function e(n,r){return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.children.length&&n(),Le(t.path),e.next=4,Ze(t.path);case 4:n();case 5:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}()));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Xe=function(){var e=Object(o.a)(b.a.mark((function e(t,n){var r,a;return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(console.log("handleSelectTree",t,n.nativeEvent.target.nodeName,n),r=function(){Ve(n.node.path),t=[n.node.path],ye(Object(W.a)(t))},"svg"!==n.nativeEvent.target.nodeName&&"LI"!==n.nativeEvent.target.nodeName&&"I"!==n.nativeEvent.target.nodeName){e.next=4;break}return e.abrupt("return");case 4:"blob"===n.node.type&&(null!=p&&null!==(a=p.sideBar)&&void 0!==a&&a.confirmLeave?s.a.confirm({title:"离开此页提示",content:"系统可能不会保存您所做的更改。",okText:"离开",cancelText:"取消",onOk:function(){r(),f({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1}})}}):r());case 5:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),_e=function(e,t,n){var r;s.a.confirm({centered:!0,title:"确认需要删除该文件".concat(n.children?"夹":"","?"),okText:"确定",cancelText:"取消",onOk:(r=Object(o.a)(b.a.mark((function t(){var n,r,a;return b.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,f({type:"shixunsDetail/deleteGitFiles",payload:{id:O.taskId,path:e,message:"删除".concat(e),secret_repository:!m||null}});case 2:if(n=t.sent,r=e.split("/"),0!==(null==n?void 0:n.status)){t.next=20;break}return i.b.info("删除成功"),r.splice(r.length-1,1),t.next=9,Ze(r.length>1?r.join("/"):"");case 9:if(null==(a=t.sent)||!a.trees){t.next=13;break}t.next=16;break;case 13:return r.splice(r.length-1,1),t.next=16,Ze(r.length>1?r.join("/"):"");case 16:return Ve(""),t.abrupt("return",!0);case 20:-3===(null==n?void 0:n.status)&&s.a.confirm({title:"删除失败",content:x.a.createElement("div",null,"该文件“",e,"”已经被任务关卡的学员任务文件或评测执行文件使用,请先修改任务关卡中评测设置的文件路径后再删除。"),okText:"前往修改",cancelText:"取消",onOk:function(){window.location.href="/shixuns/".concat(O.taskId,"/edit/").concat(null==n?void 0:n.message,"/tab=2")}});case 21:case"end":return t.stop()}}),t)}))),function(){return r.apply(this,arguments)})})},$e=function(e){console.log(e,"item")},et=function(){var e=Object(o.a)(b.a.mark((function e(t,n){return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(console.log("handleExpand",n),"svg"!==n.nativeEvent.target.nodeName&&"path"!==n.nativeEvent.target.nodeName&&"LI"!==n.nativeEvent.target.nodeName){e.next=5;break}return e.abrupt("return",!0);case 5:return e.next=7,qe(n.node);case 7:he.includes(n.node.path)?he.splice(he.indexOf(n.node.path),1):he.push(n.node.path);case 8:me(Object(W.a)(he));case 9:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),tt=function(){we(!1),localStorage.warehouseHideTip=!0},nt=function(){var e=Object(o.a)(b.a.mark((function e(t){var n,r;return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(console.log(t),t.node.key,t.dragNode.key,n=t.node.pos.split("-"),t.dropPosition-Number(n[n.length-1]),"tree"!==t.dragNode.type){e.next=8;break}return i.b.warn("不支持文件夹移动目录"),e.abrupt("return");case 8:if("tree"===t.node.type){e.next=11;break}return i.b.warn("未移动文件目录位置"),e.abrupt("return");case 11:return e.next=13,f({type:"shixunsDetail/moveGitFiles",payload:{id:O.taskId,from:t.dragNode.path,to:t.node.path+"/"+t.dragNode.name,message:"".concat(t.dragNode.path," move to ").concat(t.node.path+"/"+t.dragNode.name," ")}});case 13:if(0!==e.sent.status){e.next=26;break}return Ve(""),e.next=18,Ze("");case 18:r=0;case 19:if(!(r<he.length)){e.next=26;break}if(""==he[r]){e.next=23;break}return e.next=23,Ze(he[r]);case 23:r++,e.next=19;break;case 26:return e.abrupt("return");case 32:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();return x.a.createElement("section",{className:re.a.bg},x.a.createElement("div",{className:re.a.contentbg},x.a.createElement("div",{className:re.a.wrap},x.a.createElement(u.a,{className:re.a.gitCode},x.a.createElement(d.a,{flex:"1"},x.a.createElement("span",{className:"iconfont icon-daimacangku2 mr8"}),m?"代码仓库":"私密代码仓库"),x.a.createElement(d.a,null,E&&x.a.createElement(B.a,{overlay:Je({type:"topTree"}),className:"current"},x.a.createElement(K.a,{visible:ke,title:x.a.createElement("div",{className:"font16"},x.a.createElement(le.a,{style:{position:"relative",left:-35},onClick:function(){return tt()}}),"点击此处新建文件、新建文件夹、上传文件。",x.a.createElement("span",{onClick:function(){return tt()},className:"iconfont icon-guanbi1 ml8 current font14"})),overlayClassName:re.a.overlayClass,overlayStyle:{maxWidth:500},arrowPointAtCenter:!0,placement:"right",color:"#F7B500"},m&&x.a.createElement("i",{className:"iconfont icon-gengduo2 c-555a88"}),!m&&(null==r||null===(t=r.detail)||void 0===t?void 0:t.secret_repository)&&x.a.createElement("i",{className:"iconfont icon-gengduo2 c-555a88"}))))),!!v.length&&!m&&x.a.createElement("div",{className:"mt20 pl20 pr20 font14 c-white"},x.a.createElement("div",null,"实训评测的时候,系统会临时将私密代码库移动普通代码库的secret目录下面,评测结束会清空secret目录内容。如果私密代码库中存在文件src/test.sh,在普通代码库调用该文件则使用路径:secret/src/test.sh")),v.length?x.a.createElement(x.a.Fragment,null,x.a.createElement("div",{className:re.a.content},"1"===c&&x.a.createElement("div",{className:re.a.tips},"提示:",x.a.createElement("br",null),'代码运行在服务器/data/workspace/myshixun/下,如果代码 需要用到文件路径时,您将鼠标移入仓库文件或目录右侧的"..." 图标,选择复制路径得到文件的绝对路径。'),x.a.createElement(de,{disabled:!!a.effects["shixunsDetail/getFileContents"],multiple:!0,showIcon:!1,treeData:v,switcherIcon:x.a.createElement(C.a,{style:{fontWeight:"bold",fontSize:14,position:"relative",top:3,marginLeft:22}}),onExpand:et,expandedKeys:he,selectedKeys:be,onSelect:Xe,draggable:!0,onDragEnter:function(e){console.log(e)},onDrop:nt,allowDrop:function(e){e.dropNode,e.dropPosition;return!1}}))):"",!v.length&&m&&x.a.createElement(fe,null),!v.length&&!m&&(null==r||null===(n=r.detail)||void 0===n?void 0:n.secret_repository)&&x.a.createElement(fe,null))),x.a.createElement(q,{visible:L,defaultPath:ae,onClose:function(){return z(!1)},isRepository:!m,onOK:function(){var e=Object(o.a)(b.a.mark((function e(t){var n;return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return(n=ae.split("/")).pop(),e.next=4,Ze(n.join("/"));case 4:Ve("");case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()}),x.a.createElement(Z,{visible:M,defaultPath:ae,onClose:function(){return T(!1)},isRepository:m,onOK:function(e){Ge(e.path,e.name)}}),x.a.createElement(G,{visible:U,defaultPath:ae,onClose:function(){return V(!1)},isRepository:m,onOK:function(e){Ge(e.path,e.name)}}),x.a.createElement(te,{defaultPath:ae,visible:_,isRepository:m,onClose:function(){return $(!1)},onOK:function(){var e=Object(o.a)(b.a.mark((function e(t){var n;return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=ae.split("/"),e.next=3,Ze(ae);case 3:he=[n[0]||""],be=[ae],ye(Object(W.a)(be)),me(Object(W.a)(he));case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()}),x.a.createElement(oe,{pathList:null==ae?void 0:ae.split("/"),showInputPath:!0,isMergeSelectFile:Qe,onFinish:function(e){Qe?He(e):Ze(e),We(!1)}}))})),he=n("5ToH"),me=n.n(he),ve=Object(O.a)((function(e){var t=e.shixunsDetail,n=e.loading;return{shixunsDetail:t,globalSetting:e.globalSetting,user:e.user,loading:n.models.index}}))((function(e){e.shixunsDetail,e.globalSetting,e.loading,e.user;var t=e.dispatch,n=e.isRepository,r=(Object(F.a)(e,["shixunsDetail","globalSetting","loading","user","dispatch","isRepository"]),Object(A.i)()),a=Object(y.useState)([]),i=Object(h.a)(a,2),l=i[0],s=i[1];Object(y.useEffect)((function(){f()}),[n]);var f=function(){var e=Object(o.a)(b.a.mark((function e(){var a;return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t({type:"shixunsDetail/getRepositoryCommit",payload:{id:r.taskId,secret_repository:!n||void 0}});case 2:(a=e.sent)&&s(a.commits||[]);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return x.a.createElement(x.a.Fragment,null,""==l&&x.a.createElement("div",{className:me.a.empty},x.a.createElement("img",{src:ue.m,width:"258"}),x.a.createElement("br",null),x.a.createElement("span",{className:"c-grey-c font14"},"暂无提交记录")),""!=l&&x.a.createElement("section",{className:me.a.bg},x.a.createElement("div",{className:me.a.wrap},x.a.createElement("div",{className:me.a.content},null==l?void 0:l.map((function(e){var t,n;return x.a.createElement("div",null,x.a.createElement(u.a,{align:"middle",className:"c-white font16"},x.a.createElement(d.a,null,e.title)),x.a.createElement(u.a,{align:"middle",className:"mt20 "},x.a.createElement(d.a,null,x.a.createElement("img",{className:me.a.imageUrl,src:D.a.IMG_SERVER+"/"+(null===(t=e.author)||void 0===t?void 0:t.image_url)})),x.a.createElement(d.a,{className:me.a.blueLight},x.a.createElement("span",{className:"ml20"},null===(n=e.author)||void 0===n?void 0:n.username)),x.a.createElement(d.a,null,x.a.createElement("span",{className:"ml20 ".concat(me.a.blueLight)},"提交于"),x.a.createElement("span",{className:"ml20 ".concat(me.a.blueLight)},e.time))),x.a.createElement(c.a,{className:me.a.divider}))}))))))})),ge=n("p5ED"),be=m.a.TabPane,ye=Object(O.a)((function(e){var t=e.loading;return{globalSetting:e.globalSetting,loading:t,practiceSetting:e.practiceSetting,shixunsDetail:e.shixunsDetail}}))((function(e){e.globalSetting;var t,n,a,c,p,v,g,E,C,O,k,w,S,j,N,I,M,T,D,R=e.loading,L=e.dispatch,z=e.practiceSetting,W=e.shixunsDetail,H=e.haveAuth,U=(Object(F.a)(e,["globalSetting","loading","dispatch","practiceSetting","shixunsDetail","haveAuth"]),Object(y.useState)("1")),V=Object(h.a)(U,2),G=V[0],Y=V[1],Z=Object(y.useState)("1"),q=Object(h.a)(Z,2),X=q[0],_=q[1],$=Object(y.useState)(),ee=Object(h.a)($,2),te=ee[0],ne=ee[1],re=Object(y.useRef)(),ae=(Object(A.h)(),Object(y.useState)(!0)),ie=Object(h.a)(ae,2),oe=ie[0],le=ie[1],se=Object(y.useState)(["2","1"]),ce=Object(h.a)(se,2),de=ce[0],fe=ce[1],he=Object(y.useState)([]),me=Object(h.a)(he,2),ye=me[0],xe=me[1],Ee=Object(y.useRef)(),Ce=Object(A.i)(),Ae=[{id:"1",name:"代码仓库"},{id:"2",name:x.a.createElement("span",null,x.a.createElement("span",null,"私密代码仓库"),x.a.createElement(K.a,{title:"私密版本库的文件对学员始终隐藏,无法访问查看。"},x.a.createElement("i",{className:"iconfont icon-xiaowenhao",style:{marginLeft:2,fontSize:14}})))}];Object(y.useEffect)((function(){try{var e,t,n,r,a,o,l,s,c,u,d,f,p,h;if(null!=W&&null!==(e=W.fileContent)&&void 0!==e&&null!==(t=e.content)&&void 0!==t&&null!==(n=t.content)&&void 0!==n&&n.length||""==(null==W||null===(r=W.fileContent)||void 0===r||null===(a=r.content)||void 0===a?void 0:a.content))if("txt"===(null==W||null===(o=W.fileContent)||void 0===o?void 0:o.file_type))re.current=window.decodeURIComponent(escape(window.atob(null==W||null===(l=W.fileContent)||void 0===l||null===(s=l.content)||void 0===s?void 0:s.content))),te=window.decodeURIComponent(escape(window.atob(null==W||null===(c=W.fileContent)||void 0===c||null===(u=c.content)||void 0===u?void 0:u.content))),ne(te);else re.current=null==W||null===(d=W.fileContent)||void 0===d||null===(f=d.content)||void 0===f?void 0:f.content,te=null==W||null===(p=W.fileContent)||void 0===p||null===(h=p.content)||void 0===h?void 0:h.content,ne(te)}catch(e){var m,v,g,b;re.current=window.atob(null==W||null===(m=W.fileContent)||void 0===m||null===(v=m.content)||void 0===v?void 0:v.content),te=window.atob(null==W||null===(g=W.fileContent)||void 0===g||null===(b=g.content)||void 0===b?void 0:b.content),ne(te),i.b.warn("请确认文件字符集编码是否为UTF-8")}console.log("codeMirrorSourceValue1212:12",W.fileContent.content)}),[null==W||null===(t=W.fileContent)||void 0===t?void 0:t.content]),Object(y.useEffect)((function(){var e,t=null==z||null===(e=z.sideBar)||void 0===e?void 0:e.selectPath.split("/");fe(t)}),[null==z||null===(n=z.sideBar)||void 0===n?void 0:n.selectPath]);Object(y.useEffect)((function(){new Promise(function(){var e=Object(o.a)(b.a.mark((function e(t,n){var r,a,i,o;return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(""===(null==z||null===(r=z.sideBar)||void 0===r?void 0:r.selectPath)||null==z||null===(a=z.sideBar)||void 0===a||!a.selectPath){e.next=5;break}return e.next=3,L({type:"shixunsDetail/getFileContents",payload:{id:Ce.taskId,path:null==z||null===(i=z.sideBar)||void 0===i?void 0:i.selectPath,secret_repository:!oe||null}});case 3:null!=(o=e.sent)&&o.content||""==(null==o?void 0:o.content)||L({type:"practiceSetting/setSideBarTabs",payload:{selectPath:""}});case 5:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}())}),[null==z||null===(a=z.sideBar)||void 0===a?void 0:a.selectPath]);var Oe=x.a.createElement(P.a,{className:Q.a.menu,onClick:function(e){var t;null!=W&&null!==(t=W.detail)&&void 0!==t&&t.secret_repository||"2"!==e.key||_("1"),Y(e.key),"1"===e.key?le(!0):le(!1)}},x.a.createElement(P.a.Item,{disabled:!0,key:"0"},"切换仓库"),Ae.filter((function(e){var t,n;return null==W||null===(t=W.detail)||void 0===t||!t.init_repository||null!=W&&null!==(n=W.detail)&&void 0!==n&&n.is_jupyter_lab?"2"!==e.id:e})).map((function(e,t){return x.a.createElement(P.a.Item,{className:"leaveClick",key:e.id},e.name)}))),ke=function(){var e=Object(o.a)(b.a.mark((function e(){var t,n,r;return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,L({type:"shixunsDetail/updateRepositoryFiles",payload:{id:Ce.taskId,path:null==W||null===(t=W.fileContent)||void 0===t||null===(n=t.params)||void 0===n?void 0:n.path,content:te,secret_repository:!oe||null}});case 2:null!=(r=e.sent)&&r.content&&(i.b.info("保存成功"),L({type:"practiceSetting/setSideBarTabs",payload:Object(l.a)(Object(l.a)({},z.sideBar),{},{confirmLeave:!1})}));case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();return x.a.createElement("div",{className:Q.a.warehouse,style:{minHeight:600}},x.a.createElement("div",{className:Q.a.header},x.a.createElement(u.a,{align:"middle",className:"w100 c-white",style:{height:60}},x.a.createElement(d.a,{flex:"1"},x.a.createElement(u.a,{align:"middle"},x.a.createElement(d.a,null,x.a.createElement(B.a,{overlay:Oe,className:Q.a.menu},x.a.createElement("span",{className:"font16 c-white current ml20"},Ae.find((function(e){return e.id===G})).name," ",x.a.createElement("span",{style:{color:"#B0B5D6"},className:"iconfont icon-sanjiaoxing font12"})))),x.a.createElement(d.a,{flex:"81px"},x.a.createElement("div",{className:Q.a.line})),x.a.createElement(d.a,null,x.a.createElement(m.a,{className:Q.a.tabs,activeKey:X,onChange:function(e){var t;null!=z&&null!==(t=z.sideBar)&&void 0!==t&&t.confirmLeave?s.a.confirm({title:"离开此页提示",content:"系统可能不会保存您所做的更改。",okText:"离开",cancelText:"取消",onOk:function(){_(e),L({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1,selectPath:""}})}}):(_(e),L({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!1,selectPath:""}}))}},x.a.createElement(be,{tab:x.a.createElement("span",{className:"leaveClick"},"代码文件"),key:"1"}),oe&&(null==W||null===(c=W.detail)||void 0===c?void 0:c.init_repository)&&x.a.createElement(be,{tab:"提交记录",key:"2",className:"leaveClick"}),!oe&&(null==W||null===(p=W.detail)||void 0===p?void 0:p.secret_repository)&&x.a.createElement(be,{tab:"提交记录",key:"2",className:"leaveClick"}))))),(oe&&(null==W||null===(v=W.repository)||void 0===v?void 0:v.git_url)||!oe&&(null==W||null===(g=W.secretRepository)||void 0===g?void 0:g.git_url))&&x.a.createElement(x.a.Fragment,null,x.a.createElement(d.a,null,x.a.createElement("span",{className:Q.a.title},"仓库地址:"),x.a.createElement("input",{readOnly:!0,value:oe?null==W||null===(E=W.repository)||void 0===E?void 0:E.git_url:null==W||null===(C=W.secretRepository)||void 0===C?void 0:C.git_url}),x.a.createElement(J.CopyToClipboard,{text:oe?null==W||null===(O=W.repository)||void 0===O?void 0:O.git_url:null==W||null===(k=W.secretRepository)||void 0===k?void 0:k.git_url,onCopy:function(){return i.b.success("复制成功")}},x.a.createElement(K.a,{placement:"topLeft",title:"点击复制版本库"},x.a.createElement("i",{className:"iconfont icon-fuzhi2 current ml5 mr40"}))))))),x.a.createElement("div",{className:Q.a.content,style:{overflow:"auto"}},"1"===X&&x.a.createElement(x.a.Fragment,null,x.a.createElement("aside",{className:Q.a.left},x.a.createElement(r.a,{spinning:!!R.effects["shixunsDetail/getRepositorys"],wrapperClassName:"".concat(Q.a.loading," ").concat(Q.a.bottom0)},x.a.createElement(pe,{setTreeData:xe,treeData:ye,activeKey:G,isRepository:oe,haveAuth:H}))),x.a.createElement("aside",{className:Q.a.right,ref:Ee},""!==(null==z||null===(w=z.sideBar)||void 0===w?void 0:w.selectPath)&&x.a.createElement(x.a.Fragment,null,x.a.createElement(r.a,{spinning:!!R.effects["shixunsDetail/getFileContents"],wrapperClassName:Q.a.loading},x.a.createElement("div",{className:Q.a.filePathWrp},x.a.createElement(u.a,{align:"middle",className:"w100"},x.a.createElement(d.a,null,x.a.createElement("span",{className:"iconfont icon-daimacangku2 c-white"})),x.a.createElement(d.a,{flex:"40px"},x.a.createElement("div",{className:Q.a.line,style:{marginLeft:20}})),x.a.createElement(d.a,{className:Q.a.filePath},de.map((function(e,t){return x.a.createElement("span",{className:"c-blue"},e)}))))),x.a.createElement("div",{className:R.effects["shixunsDetail/getFileContents"]?"hide":"show"},x.a.createElement(ge.a,{className:"darkBlue",style:{top:66,height:"calc(100% - 60px)",position:"absolute",zIndex:1},filename:null==W||null===(S=W.fileContent)||void 0===S?void 0:S.filename,type:"office"===(null==W||null===(j=W.fileContent)||void 0===j?void 0:j.file_type)?"download":null==W||null===(N=W.fileContent)||void 0===N?void 0:N.file_type,data:te,monacoEditor:{value:te,language:null==W||null===(I=W.fileContent)||void 0===I?void 0:I.language,onChange:function(e){return function(e){ne(e);var t=-1;t=e===re.current?0:1,L({type:"practiceSetting/setSideBarTabs",payload:{confirmLeave:!!t}})}(e)},options:{fontSize:14,readOnly:!H}}}))),"txt"===(null==W||null===(M=W.fileContent)||void 0===M?void 0:M.file_type)&&H&&x.a.createElement(u.a,{align:"middle",justify:"center",className:Q.a.footer},x.a.createElement(d.a,null,x.a.createElement(f.a,{type:"primary",size:"large",onClick:ke},"提交")))),""==(null==z||null===(T=z.sideBar)||void 0===T?void 0:T.selectPath)&&(null==W||null===(D=W.detail)||void 0===D?void 0:D.init_repository)&&x.a.createElement("div",{className:Q.a.empty},x.a.createElement("img",{src:ue.l,width:"258"}),x.a.createElement("br",null),x.a.createElement("span",{className:"c-grey-c"},!(null==ye||!ye.length)&&"在左侧代码仓库区域点击目录打开文件",!(null!=ye&&ye.length)&&"请先在左侧上传文件或新建文件!")))),"2"===X&&x.a.createElement("div",{className:Q.a.commit},x.a.createElement(ve,{isRepository:oe}))))})),xe=n("WkQV"),Ee=n("Cy2x"),Ce=n("ErOA"),Ae=(n("sRBo"),n("kaz8")),Oe=Object(O.a)((function(e){return{innovation:e.innovation}}))((function(e){var t=e.dispatch,n=e.innovation,r=e.openForkModal;return x.a.createElement(s.a,{title:"启动环境",width:600,okText:"Fork项目",okButtonProps:{type:"primary"},centered:!0,visible:"remindfork-project"===n.visibleModalName,destroyOnClose:!0,onCancel:function(){t({type:"innovation/closeModal"})},onOk:function(){r("remindModal")}},x.a.createElement("div",{style:{marginTop:14}},x.a.createElement("p",null,"你不是该项目的创建者/合作者,无法直接启动环境。"),x.a.createElement("p",null,"请先Fork为你个人的项目后,再启动环境。"),x.a.createElement(u.a,null,x.a.createElement(Ae.a,{checked:n.hideRemindModal,onChange:function(e){return t({type:"innovation/save",payload:{hideRemindModal:e.target.checked}})}},"不再提示"))))})),ke=v.a.Paragraph,we=m.a.TabPane,Se=["#FF7E0F","#165DFF","#44D7B6","red"];t.default=Object(O.a)((function(e){return{innovation:e.innovation,user:e.user}}))((function(e){var t,n,v,g,k,N,M,D,R,B,P,K,F=e.user,z=e.dispatch,Q=Object(y.useState)(),W=Object(h.a)(Q,2),H=W[0],J=W[1],U=Object(y.useState)(!0),V=Object(h.a)(U,2),G=V[0],Y=V[1],Z=Object(A.i)().taskId,q=Object(y.useState)("1"),X=Object(h.a)(q,2),_=X[0],$=X[1],ee=Object(y.useMemo)((function(){var e=F.userInfo;return Object(j.v)()||(null==e?void 0:e.user_id)===(null==H?void 0:H.sci_project.user_id)||(null==H?void 0:H.is_partner)}),[F,H]),te=Object(y.useMemo)((function(){var e=F.userInfo;return Object(j.v)()||(null==e?void 0:e.user_id)===(null==H?void 0:H.sci_project.user_id)}),[F,H]),ne=Object(y.useState)(!1),re=Object(h.a)(ne,2),ae=re[0],ie=re[1],oe=Object(y.useState)(!1),le=Object(h.a)(oe,2),se=le[0],ce=le[1],ue=p.a.useForm(),de=Object(h.a)(ue,1)[0];Object(y.useEffect)((function(){Object(S.m)(Z).then((function(e){Y(!1),e.status||J(e)}))}),[]);var fe=function(e){H.my_sci_projects_num>=10&&!Object(j.v)()?z({type:"innovation/openSimpleModal",payload:{title:"项目数量达到上限",children:"每位用户最多只能创建10个项目,你的项目数量已经达到上限。",footer:x.a.createElement(f.a,{onClick:function(){return z({type:"innovation/closeSimpleModal"})},type:"primary"},"我知道了")}}):z({type:"innovation/save",payload:{visibleModalName:"fork-project",openForkModalPosition:e}})};return x.a.createElement(r.a,{spinning:G},H&&x.a.createElement("div",{className:w.a.project_detail_wrapper},x.a.createElement(u.a,{justify:"space-between",align:"middle",style:{marginBottom:10}},x.a.createElement(d.a,{className:w.a.title,span:20},H.sci_project.username," / ",H.sci_project.name),x.a.createElement(d.a,{span:4,style:{textAlign:"right"}},x.a.createElement(f.a,{icon:x.a.createElement(E.a,null),className:w.a.fork_btn,onClick:function(){return fe("forkButton")}},x.a.createElement("span",null,H.sci_project.forked_count)))),x.a.createElement(ke,{ellipsis:{rows:3,expandable:!0,symbol:x.a.createElement("span",{style:{color:"#165dff"}},"展开",x.a.createElement(C.a,null))},className:w.a.desc},H.sci_project.description),x.a.createElement(u.a,{justify:"space-between"},x.a.createElement(d.a,{className:w.a.info},x.a.createElement("span",null,"项目环境:",H.mirror_repository_info.name),x.a.createElement("span",{className:w.a.create_time},"创建时间:",T()(H.sci_project.created_at).format("YYYY-MM-DD HH:mm"))),ee&&x.a.createElement(d.a,{className:w.a.operation},x.a.createElement("span",{onClick:function(){O.d.push("/innovation/project/edit/".concat(Z))}},"编辑"),te&&x.a.createElement("span",{className:w.a.delete_btn,onClick:function(){z({type:"innovation/openModal",payload:"delete-project"})}},"删除"))),x.a.createElement(c.a,null),x.a.createElement(m.a,{activeKey:_,onChange:function(e){$(e)},tabBarExtraContent:{right:x.a.createElement(f.a,{type:"primary"},x.a.createElement("a",{onClick:function(){ee?Object(S.m)(Z).then((function(e){if(J(e),-1===e.verify_info.status)return ie(!0),void de.setFieldsValue({max_cpu:2,min_cpu:.2,max_memory:1024,min_memory:1024,max_disk:1e3,survival_time:.5});0!==e.verify_info.status?(1===e.verify_info.status&&O.d.push("/innovation/tasks/".concat(Z)),2!==e.verify_info.status||s.a.warning({title:"启动环境提示",content:"您申请的环境资源【未通过】,无法启动环境。",okText:"查看审核结果",onOk:function(){$("3")}})):s.a.warning({title:"启动环境提示",content:"环境资源正在【审核中】,审核通过后才能启动环境",okText:"查看审核结果",onOk:function(){$("3")}})})):"true"===window.localStorage.getItem("hideRemindModal")?fe("forkButton"):z({type:"innovation/save",payload:{visibleModalName:"remindfork-project",hideRemindModal:!0}})},target:"_blank"},"启动环境"))}},x.a.createElement(we,{tab:"代码",key:"1"},x.a.createElement(ye,{haveAuth:ee})),x.a.createElement(we,{tab:"数据集",key:"2"},x.a.createElement(xe.a,{detail:H})),x.a.createElement(we,{tab:"合作者",key:"4"},x.a.createElement(Ee.a,{position:"detail"})),x.a.createElement(we,{tab:"环境信息",key:"3"},x.a.createElement("div",{className:w.a.huanj},x.a.createElement("div",{className:w.a.divtitle},x.a.createElement("p",null,"硬件信息"),x.a.createElement("div",{style:{marginLeft:28}},x.a.createElement("div",null,x.a.createElement("label",null,"节点数量:"),x.a.createElement("span",null,(null==H||null===(t=H.sci_project_config)||void 0===t?void 0:t.node_num)||"- -")),x.a.createElement("div",null,x.a.createElement("label",null,"CPU:"),x.a.createElement("span",null,(null==H||null===(n=H.sci_project_config)||void 0===n?void 0:n.max_cpu)+"核"||!1)),x.a.createElement("div",null,x.a.createElement("label",null,"最低CPU:"),x.a.createElement("span",null,(null==H||null===(v=H.sci_project_config)||void 0===v?void 0:v.min_cpu)+"核"||!1)),x.a.createElement("div",null,x.a.createElement("label",null,"内存限制:"),x.a.createElement("span",null,(null==H||null===(g=H.sci_project_config)||void 0===g?void 0:g.max_memory)+"M"||!1)),x.a.createElement("div",null,x.a.createElement("label",null,"内存要求:"),x.a.createElement("span",null,(null==H||null===(k=H.sci_project_config)||void 0===k?void 0:k.min_memory)+"M"||!1)),x.a.createElement("div",null,x.a.createElement("label",null,"磁盘限制:"),x.a.createElement("span",null,(null==H||null===(N=H.sci_project_config)||void 0===N?void 0:N.max_disk)+"G"||!1)),x.a.createElement("div",null,x.a.createElement("label",null,"GPU数量:"),x.a.createElement("span",null,(null==H||null===(M=H.sci_project_config)||void 0===M?void 0:M.gpu)||"- -")))),x.a.createElement("div",{className:w.a.divtitle},x.a.createElement("p",null,"环境时间"),x.a.createElement("div",{style:{marginLeft:28}},x.a.createElement("label",null,"环境时长:"),x.a.createElement("span",null,(null==H||null===(D=H.sci_project_config)||void 0===D?void 0:D.survival_time)+"小时"||!1))),x.a.createElement("div",{className:w.a.divtitle},x.a.createElement("p",null,"审核状态"),x.a.createElement("div",{style:{marginLeft:28}},x.a.createElement("label",null,"审核状态:"),x.a.createElement("span",{style:{color:Se[parseInt("".concat(null==H||null===(R=H.verify_info)||void 0===R?void 0:R.status))+1]}},(null==H||null===(B=H.verify_info)||void 0===B?void 0:B.status_cn)||"- -")),x.a.createElement("div",{style:{marginLeft:28,wordBreak:"break-all"}},x.a.createElement("label",null,"未通过原因:"),x.a.createElement("span",null,(null==H||null===(P=H.verify_info)||void 0===P?void 0:P.refuse_reason)||"- -")))),x.a.createElement("div",{style:{textAlign:"center"}},x.a.createElement(f.a,{disabled:(null==H||null===(K=H.verify_info)||void 0===K?void 0:K.status)<=0,onClick:function(){de.setFieldsValue(Object(l.a)({},null==H?void 0:H.sci_project_config)),ie(!0)},style:{marginTop:30,textAlign:"center"},type:"primary"},"重新申请")))),x.a.createElement(I,{detail:H}),x.a.createElement(L,{projectId:Z}),x.a.createElement(Oe,{openForkModal:fe})),x.a.createElement(s.a,{title:"启动环境",visible:ae,okButtonProps:{loading:se},onCancel:function(){ie(!1)},onOk:function(){de.submit()}},x.a.createElement("div",null,x.a.createElement(p.a,{labelCol:{span:6},wrapperCol:{span:18},form:de,preserve:!1,onFinish:function(){var e=Object(o.a)(b.a.mark((function e(t){return b.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return ce(!0),e.next=3,Object(Ce.a)("/api/sci/projects/".concat(Z,"/commit_verify.json"),{method:"POST",body:Object(l.a)({},t)});case 3:e.sent,ie(!1),Object(S.m)(Z).then((function(e){Y(!1),e.status||J(e)})),i.b.info("提交审核成功"),ce(!1);case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()},x.a.createElement(p.a.Item,{label:"节点数量",name:"node_num",rules:[{required:!0}]},x.a.createElement(a.a,{min:0,style:{width:"100%"}})),x.a.createElement(p.a.Item,{label:"CPU(核)",name:"max_cpu",rules:[{required:!0}]},x.a.createElement(a.a,{min:0,style:{width:"100%"}})),x.a.createElement(p.a.Item,{label:"最低CPU(核)",name:"min_cpu",rules:[{required:!0}]},x.a.createElement(a.a,{min:0,style:{width:"100%"}})),x.a.createElement(p.a.Item,{label:"内存限制(M)",name:"max_memory",rules:[{required:!0}]},x.a.createElement(a.a,{min:0,style:{width:"100%"}})),x.a.createElement(p.a.Item,{label:"内存要求(M)",name:"min_memory",rules:[{required:!0}]},x.a.createElement(a.a,{min:0,style:{width:"100%"}})),x.a.createElement(p.a.Item,{label:"磁盘限制(G)",name:"max_disk",rules:[{required:!0}],initialValue:1},x.a.createElement(a.a,{min:0,style:{width:"100%"}})),x.a.createElement(p.a.Item,{label:"GPU数量",name:"gpu"},x.a.createElement(a.a,{min:0,style:{width:"100%"},precision:0})),x.a.createElement(p.a.Item,{label:"环境时长(小时)",name:"survival_time",rules:[{required:!0}]},x.a.createElement(a.a,{min:.1,style:{width:"100%"},precision:1}))))))}))}}]); |