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

2 lines
40 KiB

(window.webpackJsonp=window.webpackJsonp||[]).push([[232],{"EF+S":function(se,fe,y){se.exports={bg:"bg___3hUp0",header:"header___1T3qP",user:"user___3gcln",titleWrap:"titleWrap___BPyXW",title:"title___1hc9j",endTimeWrap:"endTimeWrap___tCmLs",colorGray:"colorGray___2s62a",main:"main___g8cKX",loadFail:"loadFail___1h3vW",reload:"reload___2TZng",failIcon:"failIcon___3mbwQ",failWrap:"failWrap___138EN",failReload:"failReload___3eeAm",dataSetButton:"dataSetButton___38M58",dataSetText:"dataSetText___k4Y8a",dataSetOpen:"dataSetOpen___Eqml_",mymove:"mymove___3BEqr"}},Flby:function(se,fe,y){se.exports={drawerWrap:"drawerWrap___30u-E",drawer:"drawer___25Cz3",title:"title___2sb8_",titleIcon:"titleIcon___2sEYD",filePathWrap:"filePathWrap___1lqDk",filePathContent:"filePathContent___3g6vP",folderName:"folderName___1_P2P",copy:"copy___2Lnre",listWrap:"listWrap___W2kd8",item:"item___2WUk2",itemText:"itemText___2QG3L"}},qgvg:function(se,fe){se.exports="data:image/gif;base64,R0lGODlhFAAQAOZVAD6Q33p6ezZto2VnaW5vcDuCxiYvNysvM1tdXzNij5eXlyg0QTA0OExOUWZnaS8zN19hYzFYf0Oi/Sg1QoeHh2JjZWZoaTdzrTRmljl5tzFZgDBWez6P3Tl4tjl8uzdxqWBiYys/VCUqL39/gHV2dy4yNScyPDJeiEpNTzk8P0CX6jc7PiYuNWlqaywwNDZtojAzNytDWScrLitAVUGb8Xl6eoWFhTp+wDNgjWRmZ4+QkFdZWzo9QIODgyo/Uzh3syg0QCczPmprbTRllW9wcSotMVJUVjZupDuEylBSVUGb8kxPUZGRkTd0rUGc82JkZUKe9j2M1zg7P4iIiEOj/yUpLQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh/wtYTVAgRGF0YVhNUDw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ1IDc5LjE2MzQ5OSwgMjAxOC8wOC8xMy0xNjo0MDoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTkgKE1hY2ludG9zaCkiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6N0U3Nzk1NkY5QkRGMTFFQUIzQzFDQjY5MEVFODZDMDciIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6N0U3Nzk1NzA5QkRGMTFFQUIzQzFDQjY5MEVFODZDMDciPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDo3RTc3OTU2RDlCREYxMUVBQjNDMUNCNjkwRUU4NkMwNyIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDo3RTc3OTU2RTlCREYxMUVBQjNDMUNCNjkwRUU4NkMwNyIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PgH//v38+/r5+Pf29fTz8vHw7+7t7Ovq6ejn5uXk4+Lh4N/e3dzb2tnY19bV1NPS0dDPzs3My8rJyMfGxcTDwsHAv769vLu6ubi3trW0s7KxsK+urayrqqmop6alpKOioaCfnp2cm5qZmJeWlZSTkpGQj46NjIuKiYiHhoWEg4KBgH9+fXx7enl4d3Z1dHNycXBvbm1sa2ppaGdmZWRjYmFgX15dXFtaWVhXVlVUU1JRUE9OTUxLSklIR0ZFRENCQUA/Pj08Ozo5ODc2NTQzMjEwLy4tLCsqKSgnJiUkIyIhIB8eHRwbGhkYFxYVFBMSERAPDg0MCwoJCAcGBQQDAgEAACH5BAUyAFUALAAAAAAUABAAAAd5gFWCg4RSLoSIiVUPFlNEhAwDCIoyST1TUwGCBwM6AweJPCSYmJpVCAMMgykgFRUtFKSlilVCsreZtAS4sqaJu7yzisDBvhAKyBDEvL6Iy7jNhA7BwoklKA0NRiO30bRFOzakpqiqtItPsTWbA0wWoOcrOUuEMA6TgQAh+QQFMgBVACwAAAAAFAAQAAAHeIBVgoOEISaEiIlVExlUSIQLAgmKIidOVFQAggYCNAIGiTFRmJiaVQkCC4MzHxcXHhKkpYpVN7K3mbQFuLKmibu8s4rAwb4YpBjEvL6IyrjMhB3BwolBGxEROCq30LQsQ1CkpqiqtItNsRybAkpHoOY+PxqEQC+TgQA7"},sUu2:function(se,fe,y){"use strict";y.r(fe);var vt=y("T2oS"),Ie=y("W9HT"),yt=y("+L6B"),pe=y("2/Rp"),Et=y("2qtc"),ce=y("kLXV"),_t=y("miYZ"),le=y("tsqr"),M=y("9og8"),Q=y("tJVT"),ke=y("PpiC"),gt=y("aHsQ"),Me=y("sGsY"),b=y("q1tI"),l=y.n(b),Ge=y("Ty5D"),me=y("9kvl"),We=y("m3rI"),de=y("VTBJ"),Be={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M536.1 273H488c-4.4 0-8 3.6-8 8v275.3c0 2.6 1.2 5 3.3 6.5l165.3 120.7c3.6 2.6 8.6 1.9 11.2-1.7l28.6-39c2.7-3.7 1.9-8.7-1.7-11.2L544.1 528.5V281c0-4.4-3.6-8-8-8zm219.8 75.2l156.8 38.3c5 1.2 9.9-2.6 9.9-7.7l.8-161.5c0-6.7-7.7-10.5-12.9-6.3L752.9 334.1a8 8 0 003 14.1zm167.7 301.1l-56.7-19.5a8 8 0 00-10.1 4.8c-1.9 5.1-3.9 10.1-6 15.1-17.8 42.1-43.3 80-75.9 112.5a353 353 0 01-112.5 75.9 352.18 352.18 0 01-137.7 27.8c-47.8 0-94.1-9.3-137.7-27.8a353 353 0 01-112.5-75.9c-32.5-32.5-58-70.4-75.9-112.5A353.44 353.44 0 01171 512c0-47.8 9.3-94.2 27.8-137.8 17.8-42.1 43.3-80 75.9-112.5a353 353 0 01112.5-75.9C430.6 167.3 477 158 524.8 158s94.1 9.3 137.7 27.8A353 353 0 01775 261.7c10.2 10.3 19.8 21 28.6 32.3l59.8-46.8C784.7 146.6 662.2 81.9 524.6 82 285 82.1 92.6 276.7 95 516.4 97.4 751.9 288.9 942 524.8 942c185.5 0 343.5-117.6 403.7-282.3 1.5-4.2-.7-8.9-4.9-10.4z"}}]},name:"history",theme:"outlined"},Ye=Be,ve=y("6VBw"),Re=function(u,E){return b.createElement(ve.a,Object(de.a)(Object(de.a)({},u),{},{ref:E,icon:Ye}))};Re.displayName="HistoryOutlined";var ze=b.forwardRef(Re),Je={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M168 504.2c1-43.7 10-86.1 26.9-126 17.3-41 42.1-77.7 73.7-109.4S337 212.3 378 195c42.4-17.9 87.4-27 133.9-27s91.5 9.1 133.8 27A341.5 341.5 0 01755 268.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.7 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c0-6.7-7.7-10.5-12.9-6.3l-56.4 44.1C765.8 155.1 646.2 92 511.8 92 282.7 92 96.3 275.6 92 503.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8zm756 7.8h-60c-4.4 0-7.9 3.5-8 7.8-1 43.7-10 86.1-26.9 126-17.3 41-42.1 77.8-73.7 109.4A342.45 342.45 0 01512.1 856a342.24 342.24 0 01-243.2-100.8c-9.9-9.9-19.2-20.4-27.8-31.4l60.2-47a8 8 0 00-3-14.1l-175.7-43c-5-1.2-9.9 2.6-9.9 7.7l-.7 181c0 6.7 7.7 10.5 12.9 6.3l56.4-44.1C258.2 868.9 377.8 932 512.2 932c229.2 0 415.5-183.7 419.8-411.8a8 8 0 00-8-8.2z"}}]},name:"sync",theme:"outlined"},Ve=Je,Ue=function(u,E){return b.createElement(ve.a,Object(de.a)(Object(de.a)({},u),{},{ref:E,icon:Ve}))};Ue.displayName="SyncOutlined";var He=b.forwardRef(Ue),Xe=y("GIiI"),Ze=y("EF+S"),P=y.n(Ze),re=y("ErOA");function I(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */I=function(){return u};var i,u={},E=Object.prototype,s=E.hasOwnProperty,G=Object.defineProperty||function(r,e,t){r[e]=t.value},V=typeof Symbol=="function"?Symbol:{},U=V.iterator||"@@iterator",ae=V.asyncIterator||"@@asyncIterator",T=V.toStringTag||"@@toStringTag";function v(r,e,t){return Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}),r[e]}try{v({},"")}catch(r){v=function(t,n,o){return t[n]=o}}function X(r,e,t,n){var o=e&&e.prototype instanceof W?e:W,a=Object.create(o.prototype),c=new C(n||[]);return G(a,"_invoke",{value:q(r,t,c)}),a}function z(r,e,t){try{return{type:"normal",arg:r.call(e,t)}}catch(n){return{type:"throw",arg:n}}}u.wrap=X;var N="suspendedStart",ee="suspendedYield",K="executing",D="completed",d={};function W(){}function x(){}function _(){}var B={};v(B,U,function(){return this});var J=Object.getPrototypeOf,F=J&&J(J(k([])));F&&F!==E&&s.call(F,U)&&(B=F);var j=_.prototype=W.prototype=Object.create(B);function H(r){["next","throw","return"].forEach(function(e){v(r,e,function(t){return this._invoke(e,t)})})}function w(r,e){function t(o,a,c,f){var h=z(r[o],r,a);if(h.type!=="throw"){var L=h.arg,g=L.value;return g&&typeof g=="object"&&s.call(g,"__await")?e.resolve(g.__await).then(function(O){t("next",O,c,f)},function(O){t("throw",O,c,f)}):e.resolve(g).then(function(O){L.value=O,c(L)},function(O){return t("throw",O,c,f)})}f(h.arg)}var n;G(this,"_invoke",{value:function(a,c){function f(){return new e(function(h,L){t(a,c,h,L)})}return n=n?n.then(f,f):f()}})}function q(r,e,t){var n=N;return function(o,a){if(n===K)throw new Error("Generator is already running");if(n===D){if(o==="throw")throw a;return{value:i,done:!0}}for(t.method=o,t.arg=a;;){var c=t.delegate;if(c){var f=Z(c,t);if(f){if(f===d)continue;return f}}if(t.method==="next")t.sent=t._sent=t.arg;else if(t.method==="throw"){if(n===N)throw n=D,t.arg;t.dispatchException(t.arg)}else t.method==="return"&&t.abrupt("return",t.arg);n=K;var h=z(r,e,t);if(h.type==="normal"){if(n=t.done?D:ee,h.arg===d)continue;return{value:h.arg,done:t.done}}h.type==="throw"&&(n=D,t.method="throw",t.arg=h.arg)}}}function Z(r,e){var t=e.method,n=r.iterator[t];if(n===i)return e.delegate=null,t==="throw"&&r.iterator.return&&(e.method="return",e.arg=i,Z(r,e),e.method==="throw")||t!=="return"&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+t+"' method")),d;var o=z(n,r.iterator,e.arg);if(o.type==="throw")return e.method="throw",e.arg=o.arg,e.delegate=null,d;var a=o.arg;return a?a.done?(e[r.resultName]=a.value,e.next=r.nextLoc,e.method!=="return"&&(e.method="next",e.arg=i),e.delegate=null,d):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function te(r){var e={tryLoc:r[0]};1 in r&&(e.catchLoc=r[1]),2 in r&&(e.finallyLoc=r[2],e.afterLoc=r[3]),this.tryEntries.push(e)}function R(r){var e=r.completion||{};e.type="normal",delete e.arg,r.completion=e}function C(r){this.tryEntries=[{tryLoc:"root"}],r.forEach(te,this),this.reset(!0)}function k(r){if(r||r===""){var e=r[U];if(e)return e.call(r);if(typeof r.next=="function")return r;if(!isNaN(r.length)){var t=-1,n=function o(){for(;++t<r.length;)if(s.call(r,t))return o.value=r[t],o.done=!1,o;return o.value=i,o.done=!0,o};return n.next=n}}throw new TypeError(typeof r+" is not iterable")}return x.prototype=_,G(j,"constructor",{value:_,configurable:!0}),G(_,"constructor",{value:x,configurable:!0}),x.displayName=v(_,T,"GeneratorFunction"),u.isGeneratorFunction=function(r){var e=typeof r=="function"&&r.constructor;return!!e&&(e===x||(e.displayName||e.name)==="GeneratorFunction")},u.mark=function(r){return Object.setPrototypeOf?Object.setPrototypeOf(r,_):(r.__proto__=_,v(r,T,"GeneratorFunction")),r.prototype=Object.create(j),r},u.awrap=function(r){return{__await:r}},H(w.prototype),v(w.prototype,ae,function(){return this}),u.AsyncIterator=w,u.async=function(r,e,t,n,o){o===void 0&&(o=Promise);var a=new w(X(r,e,t,n),o);return u.isGeneratorFunction(e)?a:a.next().then(function(c){return c.done?c.value:a.next()})},H(j),v(j,T,"Generator"),v(j,U,function(){return this}),v(j,"toString",function(){return"[object Generator]"}),u.keys=function(r){var e=Object(r),t=[];for(var n in e)t.push(n);return t.reverse(),function o(){for(;t.length;){var a=t.pop();if(a in e)return o.value=a,o.done=!1,o}return o.done=!0,o}},u.values=k,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=i,this.done=!1,this.delegate=null,this.method="next",this.arg=i,this.tryEntries.forEach(R),!e)for(var t in this)t.charAt(0)==="t"&&s.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=i)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if(e.type==="throw")throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(L,g){return c.type="throw",c.arg=e,t.next=L,g&&(t.method="next",t.arg=i),!!g}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],c=a.completion;if(a.tryLoc==="root")return n("end");if(a.tryLoc<=this.prev){var f=s.call(a,"catchLoc"),h=s.call(a,"finallyLoc");if(f&&h){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(f){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!h)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&s.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&(e==="break"||e==="continue")&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var c=a?a.completion:{};return c.type=e,c.arg=t,a?(this.method="next",this.next=a.finallyLoc,d):this.complete(c)},complete:function(e,t){if(e.type==="throw")throw e.arg;return e.type==="break"||e.type==="continue"?this.next=e.arg:e.type==="return"?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):e.type==="normal"&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),R(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var o=n.completion;if(o.type==="throw"){var a=o.arg;R(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:k(e),resultName:t,nextLoc:n},this.method==="next"&&(this.arg=i),d}},u}function Qe(i){return ye.apply(this,arguments)}function ye(){return ye=Object(M.a)(I().mark(function i(u){return I().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.abrupt("return",Object(re.a)("/api/jupyters/save_with_tpi.json",{method:"Get",params:u}));case 1:case"end":return s.stop()}},i)})),ye.apply(this,arguments)}function $e(i){return Ee.apply(this,arguments)}function Ee(){return Ee=Object(M.a)(I().mark(function i(u){return I().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.abrupt("return",Object(re.a)("/api/tasks/".concat(u.identifier,"/jupyter.json"),{method:"Get",params:u}));case 1:case"end":return s.stop()}},i)})),Ee.apply(this,arguments)}function Ke(i){return _e.apply(this,arguments)}function _e(){return _e=Object(M.a)(I().mark(function i(u){return I().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.abrupt("return",Object(re.a)("/api/jupyters/get_info_with_tpi.json",{method:"Get",params:u}));case 1:case"end":return s.stop()}},i)})),_e.apply(this,arguments)}function qe(i){return ge.apply(this,arguments)}function ge(){return ge=Object(M.a)(I().mark(function i(u){return I().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.abrupt("return",Object(re.a)("/api/jupyters/timeinfo_with_tpi.json",{method:"Get",params:u}));case 1:case"end":return s.stop()}},i)})),ge.apply(this,arguments)}function et(i){return Ae.apply(this,arguments)}function Ae(){return Ae=Object(M.a)(I().mark(function i(u){return I().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.abrupt("return",Object(re.a)("/api/jupyters/reset_with_tpi.json",{method:"Get",params:u}));case 1:case"end":return s.stop()}},i)})),Ae.apply(this,arguments)}function tt(i){return be.apply(this,arguments)}function be(){return be=Object(M.a)(I().mark(function i(u){return I().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.abrupt("return",Object(re.a)("/api/jupyters/active_with_tpi.json",{method:"Get",params:u}));case 1:case"end":return s.stop()}},i)})),be.apply(this,arguments)}function rt(i){return we.apply(this,arguments)}function we(){return we=Object(M.a)(I().mark(function i(u){return I().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.abrupt("return",Object(re.a)("/api/myshixuns/".concat(u.identifier,"/sync_code.json"),{method:"Post",params:u}));case 1:case"end":return s.stop()}},i)})),we.apply(this,arguments)}function nt(i){return Oe.apply(this,arguments)}function Oe(){return Oe=Object(M.a)(I().mark(function i(u){return I().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:return s.abrupt("return",Object(re.a)("/api/shixuns/".concat(u.identifier,"/get_data_sets.json"),{method:"Get",params:u}));case 1:case"end":return s.stop()}},i)})),Oe.apply(this,arguments)}var At=y("bbsP"),at=y("/wGt"),ot={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494zM504 618H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM312 490v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8z"}}]},name:"file-text",theme:"outlined"},it=ot,Pe=function(u,E){return b.createElement(ve.a,Object(de.a)(Object(de.a)({},u),{},{ref:E,icon:it}))};Pe.displayName="FileTextOutlined";var ut=b.forwardRef(Pe),Ne=y("P5Jw"),st=y("RotF"),ct=y.n(st),lt=y("Flby"),$=y.n(lt);function Le(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Le=function(){return u};var i,u={},E=Object.prototype,s=E.hasOwnProperty,G=Object.defineProperty||function(r,e,t){r[e]=t.value},V=typeof Symbol=="function"?Symbol:{},U=V.iterator||"@@iterator",ae=V.asyncIterator||"@@asyncIterator",T=V.toStringTag||"@@toStringTag";function v(r,e,t){return Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}),r[e]}try{v({},"")}catch(r){v=function(t,n,o){return t[n]=o}}function X(r,e,t,n){var o=e&&e.prototype instanceof W?e:W,a=Object.create(o.prototype),c=new C(n||[]);return G(a,"_invoke",{value:q(r,t,c)}),a}function z(r,e,t){try{return{type:"normal",arg:r.call(e,t)}}catch(n){return{type:"throw",arg:n}}}u.wrap=X;var N="suspendedStart",ee="suspendedYield",K="executing",D="completed",d={};function W(){}function x(){}function _(){}var B={};v(B,U,function(){return this});var J=Object.getPrototypeOf,F=J&&J(J(k([])));F&&F!==E&&s.call(F,U)&&(B=F);var j=_.prototype=W.prototype=Object.create(B);function H(r){["next","throw","return"].forEach(function(e){v(r,e,function(t){return this._invoke(e,t)})})}function w(r,e){function t(o,a,c,f){var h=z(r[o],r,a);if(h.type!=="throw"){var L=h.arg,g=L.value;return g&&typeof g=="object"&&s.call(g,"__await")?e.resolve(g.__await).then(function(O){t("next",O,c,f)},function(O){t("throw",O,c,f)}):e.resolve(g).then(function(O){L.value=O,c(L)},function(O){return t("throw",O,c,f)})}f(h.arg)}var n;G(this,"_invoke",{value:function(a,c){function f(){return new e(function(h,L){t(a,c,h,L)})}return n=n?n.then(f,f):f()}})}function q(r,e,t){var n=N;return function(o,a){if(n===K)throw new Error("Generator is already running");if(n===D){if(o==="throw")throw a;return{value:i,done:!0}}for(t.method=o,t.arg=a;;){var c=t.delegate;if(c){var f=Z(c,t);if(f){if(f===d)continue;return f}}if(t.method==="next")t.sent=t._sent=t.arg;else if(t.method==="throw"){if(n===N)throw n=D,t.arg;t.dispatchException(t.arg)}else t.method==="return"&&t.abrupt("return",t.arg);n=K;var h=z(r,e,t);if(h.type==="normal"){if(n=t.done?D:ee,h.arg===d)continue;return{value:h.arg,done:t.done}}h.type==="throw"&&(n=D,t.method="throw",t.arg=h.arg)}}}function Z(r,e){var t=e.method,n=r.iterator[t];if(n===i)return e.delegate=null,t==="throw"&&r.iterator.return&&(e.method="return",e.arg=i,Z(r,e),e.method==="throw")||t!=="return"&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+t+"' method")),d;var o=z(n,r.iterator,e.arg);if(o.type==="throw")return e.method="throw",e.arg=o.arg,e.delegate=null,d;var a=o.arg;return a?a.done?(e[r.resultName]=a.value,e.next=r.nextLoc,e.method!=="return"&&(e.method="next",e.arg=i),e.delegate=null,d):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function te(r){var e={tryLoc:r[0]};1 in r&&(e.catchLoc=r[1]),2 in r&&(e.finallyLoc=r[2],e.afterLoc=r[3]),this.tryEntries.push(e)}function R(r){var e=r.completion||{};e.type="normal",delete e.arg,r.completion=e}function C(r){this.tryEntries=[{tryLoc:"root"}],r.forEach(te,this),this.reset(!0)}function k(r){if(r||r===""){var e=r[U];if(e)return e.call(r);if(typeof r.next=="function")return r;if(!isNaN(r.length)){var t=-1,n=function o(){for(;++t<r.length;)if(s.call(r,t))return o.value=r[t],o.done=!1,o;return o.value=i,o.done=!0,o};return n.next=n}}throw new TypeError(typeof r+" is not iterable")}return x.prototype=_,G(j,"constructor",{value:_,configurable:!0}),G(_,"constructor",{value:x,configurable:!0}),x.displayName=v(_,T,"GeneratorFunction"),u.isGeneratorFunction=function(r){var e=typeof r=="function"&&r.constructor;return!!e&&(e===x||(e.displayName||e.name)==="GeneratorFunction")},u.mark=function(r){return Object.setPrototypeOf?Object.setPrototypeOf(r,_):(r.__proto__=_,v(r,T,"GeneratorFunction")),r.prototype=Object.create(j),r},u.awrap=function(r){return{__await:r}},H(w.prototype),v(w.prototype,ae,function(){return this}),u.AsyncIterator=w,u.async=function(r,e,t,n,o){o===void 0&&(o=Promise);var a=new w(X(r,e,t,n),o);return u.isGeneratorFunction(e)?a:a.next().then(function(c){return c.done?c.value:a.next()})},H(j),v(j,T,"Generator"),v(j,U,function(){return this}),v(j,"toString",function(){return"[object Generator]"}),u.keys=function(r){var e=Object(r),t=[];for(var n in e)t.push(n);return t.reverse(),function o(){for(;t.length;){var a=t.pop();if(a in e)return o.value=a,o.done=!1,o}return o.done=!0,o}},u.values=k,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=i,this.done=!1,this.delegate=null,this.method="next",this.arg=i,this.tryEntries.forEach(R),!e)for(var t in this)t.charAt(0)==="t"&&s.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=i)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if(e.type==="throw")throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(L,g){return c.type="throw",c.arg=e,t.next=L,g&&(t.method="next",t.arg=i),!!g}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],c=a.completion;if(a.tryLoc==="root")return n("end");if(a.tryLoc<=this.prev){var f=s.call(a,"catchLoc"),h=s.call(a,"finallyLoc");if(f&&h){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(f){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!h)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&s.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&(e==="break"||e==="continue")&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var c=a?a.completion:{};return c.type=e,c.arg=t,a?(this.method="next",this.next=a.finallyLoc,d):this.complete(c)},complete:function(e,t){if(e.type==="throw")throw e.arg;return e.type==="break"||e.type==="continue"?this.next=e.arg:e.type==="return"?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):e.type==="normal"&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),R(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var o=n.completion;if(o.type==="throw"){var a=o.arg;R(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:k(e),resultName:t,nextLoc:n},this.method==="next"&&(this.arg=i),d}},u}var dt=function(u){var E=u.globalSetting,s=u.loading,G=u.dispatch,V=u.visible,U=u.identifier,ae=Object(b.useState)([]),T=Object(Q.a)(ae,2),v=T[0],X=T[1],z=Object(b.useState)(),N=Object(Q.a)(z,2),ee=N[0],K=N[1],D=Object(b.useState)(),d=Object(Q.a)(D,2),W=d[0],x=d[1],_=Object(b.useState)(),B=Object(Q.a)(_,2),J=B[0],F=B[1],j=Object(b.useState)({page:1,limit:20,identifier:null}),H=Object(Q.a)(j,2),w=H[0],q=H[1];Object(b.useEffect)(function(){if(!U)return;w.identifier=U,q(w),Z(w)},[U]);var Z=function(){var R=Object(M.a)(Le().mark(function C(k){var r,e;return Le().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,nt(k);case 2:r=n.sent,r&&(X(r.data_sets||[]),F(((e=r.data_sets)===null||e===void 0?void 0:e.length)===20),K(r.data_sets_count),x(r.folder_name));case 4:case"end":return n.stop()}},C)}));return function(k){return R.apply(this,arguments)}}(),te=function(){w.page=w.page+1,q(w),Z(w)};return l.a.createElement(at.a,{placement:"right",closable:!1,mask:!1,visible:V,className:$.a.drawerWrap},l.a.createElement("div",{className:$.a.drawer},l.a.createElement("h2",{className:$.a.title},l.a.createElement("i",{className:"iconfont icon-base ".concat($.a.titleIcon)}),"\u6570\u636E\u96C6"),l.a.createElement("div",{className:$.a.filePathWrap},l.a.createElement("span",{className:"ml50"},"\u6587\u4EF6\u8DEF\u5F84"),l.a.createElement("div",{className:$.a.filePathContent},l.a.createElement("span",{className:$.a.folderName},W),l.a.createElement(Ne.CopyToClipboard,{text:W,onCopy:function(){return le.b.success("\u590D\u5236\u6210\u529F")}},l.a.createElement("span",{className:"".concat($.a.copy," current")},"\u590D\u5236\u5730\u5740")))),l.a.createElement("div",{className:$.a.listWrap},l.a.createElement(ct.a,{initialLoad:!1,pageStart:1,threshold:20,loadMore:function(C){return te()},hasMore:J,useWindow:!1},v.map(function(R,C){return l.a.createElement("div",{className:$.a.item},l.a.createElement("span",{className:$.a.itemText,title:R.title},l.a.createElement(ut,{style:{color:"#28b887",fontSize:25}}),R.title),l.a.createElement(Ne.CopyToClipboard,{text:R.file_path,onCopy:function(){return le.b.success("\u590D\u5236\u6210\u529F")}},l.a.createElement("span",{className:"".concat($.a.copy," current")},"\u590D\u5236\u5730\u5740")))})))))},ft=Object(me.a)(function(i){var u=i.loading,E=i.globalSetting;return{globalSetting:E,loading:u}})(dt);function Y(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */Y=function(){return u};var i,u={},E=Object.prototype,s=E.hasOwnProperty,G=Object.defineProperty||function(r,e,t){r[e]=t.value},V=typeof Symbol=="function"?Symbol:{},U=V.iterator||"@@iterator",ae=V.asyncIterator||"@@asyncIterator",T=V.toStringTag||"@@toStringTag";function v(r,e,t){return Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}),r[e]}try{v({},"")}catch(r){v=function(t,n,o){return t[n]=o}}function X(r,e,t,n){var o=e&&e.prototype instanceof W?e:W,a=Object.create(o.prototype),c=new C(n||[]);return G(a,"_invoke",{value:q(r,t,c)}),a}function z(r,e,t){try{return{type:"normal",arg:r.call(e,t)}}catch(n){return{type:"throw",arg:n}}}u.wrap=X;var N="suspendedStart",ee="suspendedYield",K="executing",D="completed",d={};function W(){}function x(){}function _(){}var B={};v(B,U,function(){return this});var J=Object.getPrototypeOf,F=J&&J(J(k([])));F&&F!==E&&s.call(F,U)&&(B=F);var j=_.prototype=W.prototype=Object.create(B);function H(r){["next","throw","return"].forEach(function(e){v(r,e,function(t){return this._invoke(e,t)})})}function w(r,e){function t(o,a,c,f){var h=z(r[o],r,a);if(h.type!=="throw"){var L=h.arg,g=L.value;return g&&typeof g=="object"&&s.call(g,"__await")?e.resolve(g.__await).then(function(O){t("next",O,c,f)},function(O){t("throw",O,c,f)}):e.resolve(g).then(function(O){L.value=O,c(L)},function(O){return t("throw",O,c,f)})}f(h.arg)}var n;G(this,"_invoke",{value:function(a,c){function f(){return new e(function(h,L){t(a,c,h,L)})}return n=n?n.then(f,f):f()}})}function q(r,e,t){var n=N;return function(o,a){if(n===K)throw new Error("Generator is already running");if(n===D){if(o==="throw")throw a;return{value:i,done:!0}}for(t.method=o,t.arg=a;;){var c=t.delegate;if(c){var f=Z(c,t);if(f){if(f===d)continue;return f}}if(t.method==="next")t.sent=t._sent=t.arg;else if(t.method==="throw"){if(n===N)throw n=D,t.arg;t.dispatchException(t.arg)}else t.method==="return"&&t.abrupt("return",t.arg);n=K;var h=z(r,e,t);if(h.type==="normal"){if(n=t.done?D:ee,h.arg===d)continue;return{value:h.arg,done:t.done}}h.type==="throw"&&(n=D,t.method="throw",t.arg=h.arg)}}}function Z(r,e){var t=e.method,n=r.iterator[t];if(n===i)return e.delegate=null,t==="throw"&&r.iterator.return&&(e.method="return",e.arg=i,Z(r,e),e.method==="throw")||t!=="return"&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+t+"' method")),d;var o=z(n,r.iterator,e.arg);if(o.type==="throw")return e.method="throw",e.arg=o.arg,e.delegate=null,d;var a=o.arg;return a?a.done?(e[r.resultName]=a.value,e.next=r.nextLoc,e.method!=="return"&&(e.method="next",e.arg=i),e.delegate=null,d):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function te(r){var e={tryLoc:r[0]};1 in r&&(e.catchLoc=r[1]),2 in r&&(e.finallyLoc=r[2],e.afterLoc=r[3]),this.tryEntries.push(e)}function R(r){var e=r.completion||{};e.type="normal",delete e.arg,r.completion=e}function C(r){this.tryEntries=[{tryLoc:"root"}],r.forEach(te,this),this.reset(!0)}function k(r){if(r||r===""){var e=r[U];if(e)return e.call(r);if(typeof r.next=="function")return r;if(!isNaN(r.length)){var t=-1,n=function o(){for(;++t<r.length;)if(s.call(r,t))return o.value=r[t],o.done=!1,o;return o.value=i,o.done=!0,o};return n.next=n}}throw new TypeError(typeof r+" is not iterable")}return x.prototype=_,G(j,"constructor",{value:_,configurable:!0}),G(_,"constructor",{value:x,configurable:!0}),x.displayName=v(_,T,"GeneratorFunction"),u.isGeneratorFunction=function(r){var e=typeof r=="function"&&r.constructor;return!!e&&(e===x||(e.displayName||e.name)==="GeneratorFunction")},u.mark=function(r){return Object.setPrototypeOf?Object.setPrototypeOf(r,_):(r.__proto__=_,v(r,T,"GeneratorFunction")),r.prototype=Object.create(j),r},u.awrap=function(r){return{__await:r}},H(w.prototype),v(w.prototype,ae,function(){return this}),u.AsyncIterator=w,u.async=function(r,e,t,n,o){o===void 0&&(o=Promise);var a=new w(X(r,e,t,n),o);return u.isGeneratorFunction(e)?a:a.next().then(function(c){return c.done?c.value:a.next()})},H(j),v(j,T,"Generator"),v(j,U,function(){return this}),v(j,"toString",function(){return"[object Generator]"}),u.keys=function(r){var e=Object(r),t=[];for(var n in e)t.push(n);return t.reverse(),function o(){for(;t.length;){var a=t.pop();if(a in e)return o.value=a,o.done=!1,o}return o.done=!0,o}},u.values=k,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=i,this.done=!1,this.delegate=null,this.method="next",this.arg=i,this.tryEntries.forEach(R),!e)for(var t in this)t.charAt(0)==="t"&&s.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=i)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if(e.type==="throw")throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(L,g){return c.type="throw",c.arg=e,t.next=L,g&&(t.method="next",t.arg=i),!!g}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],c=a.completion;if(a.tryLoc==="root")return n("end");if(a.tryLoc<=this.prev){var f=s.call(a,"catchLoc"),h=s.call(a,"finallyLoc");if(f&&h){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(f){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!h)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&s.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var a=o;break}}a&&(e==="break"||e==="continue")&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var c=a?a.completion:{};return c.type=e,c.arg=t,a?(this.method="next",this.next=a.finallyLoc,d):this.complete(c)},complete:function(e,t){if(e.type==="throw")throw e.arg;return e.type==="break"||e.type==="continue"?this.next=e.arg:e.type==="return"?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):e.type==="normal"&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),R(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var o=n.completion;if(o.type==="throw"){var a=o.arg;R(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:k(e),resultName:t,nextLoc:n},this.method==="next"&&(this.arg=i),d}},u}var je=Me.a.Countdown,ne=function(i){return i[i.LoadFail=1]="LoadFail",i[i.ReLoad=2]="ReLoad",i[i.Success=3]="Success",i}(ne||{}),ht=function(u){var E,s,G=u.globalSetting,V=u.loading,U=u.dispatch,ae=Object(ke.a)(u,["globalSetting","loading","dispatch"]),T=Object(Ge.m)(),v=Object(b.useState)(!0),X=Object(Q.a)(v,2),z=X[0],N=X[1],ee=Object(b.useRef)(!0),K=Object(b.useState)({}),D=Object(Q.a)(K,2),d=D[0],W=D[1],x=Object(b.useState)(),_=Object(Q.a)(x,2),B=_[0],J=_[1],F=Object(b.useRef)(),j=Object(b.useState)(ne.Success),H=Object(Q.a)(j,2),w=H[0],q=H[1],Z=Object(b.useState)(),te=Object(Q.a)(Z,2),R=te[0],C=te[1],k=Object(b.useState)(),r=Object(Q.a)(k,2),e=r[0],t=r[1],n=Object(b.useState)(!1),o=Object(Q.a)(n,2),a=o[0],c=o[1];Object(b.useEffect)(function(){return U({type:"globalSetting/headerFooterToggle",payload:!1}),function(){U({type:"globalSetting/headerFooterToggle",payload:!0})}},[]),Object(b.useEffect)(function(){return window.addEventListener("message",h),function(){window.removeEventListener("message",h)}},[]),Object(b.useEffect)(function(){g(),O()},[T.identifier]),Object(b.useEffect)(function(){d.tpm_modified&&f()},[d]);var f=function(){Ce({title:"\u66F4\u65B0\u901A\u77E5",content:l.a.createElement("p",null,"\u5173\u5361\u4EFB\u52A1\u7684\u4EE3\u7801\u6587\u4EF6\u6709\u66F4\u65B0\u5566~",l.a.createElement("br",null)," \u66F4\u65B0\u64CD\u4F5C\u5C06\u4FDD\u7559\u5DF2\u5B8C\u6210\u7684\u8BC4\u6D4B\u8BB0\u5F55\u548C\u6210\u7EE9\u3002",l.a.createElement("br",null),"\u8FD8\u672A\u5B8C\u6210\u8BC4\u6D4B\u7684\u4EFB\u52A1\u4EE3\u7801\uFF0C\u8BF7\u81EA\u884C\u4FDD\u5B58\uFF01")})},h=function(A){(A==null?void 0:A.data)==="jupytermessage"&&ee.current&&(ee.current=!1,L(),setTimeout(function(){return ee.current=!0},500))},L=function(){var S=Object(M.a)(Y().mark(function A(){var p;return Y().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return m.next=2,Qe({identifier:T.identifier,jupyter_port:F.current});case 2:p=m.sent,p.status===0&&le.b.success("\u4FDD\u5B58\u6210\u529F!");case 4:case"end":return m.stop()}},A)}));return function(){return S.apply(this,arguments)}}(),g=function(){var S=Object(M.a)(Y().mark(function A(){var p;return Y().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return m.next=2,$e({identifier:T.identifier});case 2:p=m.sent,p&&W(p);case 4:case"end":return m.stop()}},A)}));return function(){return S.apply(this,arguments)}}(),O=function(){var S=Object(M.a)(Y().mark(function A(){var p;return Y().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return m.next=2,Ke({identifier:T.identifier});case 2:if(p=m.sent,N(!1),!(p==null?void 0:p.url)){m.next=10;break}return De(),J(p.url),F.current=p.port,q(ne.Success),m.abrupt("return");case 10:p.url===-1?q(ne.LoadFail):q(ne.ReLoad);case 11:case"end":return m.stop()}},A)}));return function(){return S.apply(this,arguments)}}(),De=function(){var S=Object(M.a)(Y().mark(function A(){var p;return Y().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return m.next=2,qe({identifier:T.identifier});case 2:if(p=m.sent,!((p==null?void 0:p.status)!==0)){m.next=5;break}return m.abrupt("return");case 5:if(p==null?void 0:p.useSeconds){m.next=8;break}return Fe(),m.abrupt("return");case 8:(p==null?void 0:p.remainingSeconds)&&(C(Date.now()+p.remainingSeconds*1e3),t(p.remainingSeconds-300<=0?Date.now()+1e3:Date.now()+(p.remainingSeconds-300)*1e3));case 9:case"end":return m.stop()}},A)}));return function(){return S.apply(this,arguments)}}(),Fe=function(){he(!0),N(!0),ce.a.confirm({centered:!0,title:"\u91CD\u7F6E\u73AF\u5883",content:" \u662F\u5426\u786E\u5B9A\u91CD\u7F6E\u73AF\u5883\uFF1F",okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:function(){Se()},onCancel:function(){he(!1),N(!1)}})},Se=function(){var S=Object(M.a)(Y().mark(function A(){var p;return Y().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return m.next=2,et({identifier:T.identifier});case 2:if(p=m.sent,!((p==null?void 0:p.status)!==0)){m.next=5;break}return m.abrupt("return");case 5:le.b.success("\u91CD\u7F6E\u6210\u529F!"),N(!1),setTimeout(function(){return window.location.reload()},300);case 8:case"end":return m.stop()}},A)}));return function(){return S.apply(this,arguments)}}(),pt=function(){ce.a.destroyAll(),ce.a.confirm({centered:!0,title:"\u670D\u52A1\u4E2D\u65AD\u63D0\u9192",content:l.a.createElement("div",{className:"tc font14"},"jupyter\u5C06\u4E8E",l.a.createElement("span",null,l.a.createElement(je,{value:R,format:"HH:mm:ss",onFinish:xe})),"\u65F6\u95F4\u540E\u670D\u52A1\u4E2D\u65AD\uFF0C\u662F\u5426\u9700\u8981\u5EF6\u957F\u4F7F\u7528\u65F6\u95F4\uFF1F"),okText:"\u7ACB\u5373\u5EF6\u957F",cancelText:"\u4E0D\u9700\u8981",onOk:function(){var A=Object(M.a)(Y().mark(function oe(){var m;return Y().wrap(function(ie){for(;;)switch(ie.prev=ie.next){case 0:return ie.next=2,tt({identifier:T.identifier});case 2:if(m=ie.sent,!(m.status===0)){ie.next=7;break}return ie.next=6,De();case 6:le.b.success("\u5EF6\u957F\u6210\u529F!");case 7:case"end":return ie.stop()}},oe)}));function p(){return A.apply(this,arguments)}return p}()})},xe=function(){ce.a.destroyAll(),ce.a.confirm({centered:!0,title:"\u5012\u8BA1\u65F6\u622A\u6B62",content:l.a.createElement("p",{className:"tc font14"},"\u670D\u52A1\u5DF2\u4E2D\u65AD\uFF0C\u662F\u5426\u786E\u8BA4\u91CD\u7F6E\u5B9E\u9A8C\u73AF\u5883\uFF1F"),okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:function(){Se()}})},he=function(A){var p=document.getElementById("taskJupyterIframe");if(!p)return;A?p.contentWindow.postMessage("stopParent","*"):p.contentWindow.postMessage("clonsParent","*")},mt=function(){N(!0),he(!0),Ce({title:"\u91CD\u7F6E\u5B9E\u8BAD",content:l.a.createElement("div",{className:"tc font14"},"\u4F60\u5728\u672C\u6587\u4EF6\u4E2D\u4FEE\u6539\u7684\u5185\u5BB9\u5C06\u4E22\u5931,",l.a.createElement("br",null),"\u662F\u5426\u786E\u5B9A\u91CD\u65B0\u52A0\u8F7D\u521D\u59CB\u4EE3\u7801\uFF1F")})},Ce=function(A){ce.a.confirm({centered:!0,title:A.title,content:A.content,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",onOk:function(){var p=Object(M.a)(Y().mark(function m(){var Te;return Y().wrap(function(ue){for(;;)switch(ue.prev=ue.next){case 0:return ue.next=2,rt({identifier:T.identifier});case 2:if(Te=ue.sent,!(Te.status!==0)){ue.next=5;break}return ue.abrupt("return");case 5:le.b.success("\u64CD\u4F5C\u6210\u529F"),N(!1),setTimeout(function(){return window.location.reload()},300);case 8:case"end":return ue.stop()}},m)}));function oe(){return p.apply(this,arguments)}return oe}(),onCancel:function(){he(!1),N(!1)}})};return l.a.createElement(Ie.a,{spinning:z,tip:"\u52A0\u8F7D\u4E2D..."},l.a.createElement("section",{className:P.a.bg},l.a.createElement("header",{className:P.a.header},l.a.createElement("div",{className:P.a.user},l.a.createElement("img",{src:"".concat(We.a.IMG_SERVER,"/images/").concat(d==null||((E=d.user)===null||E===void 0)?void 0:E.image_url),alt:"\u7528\u6237\u5934\u50CF"}),l.a.createElement("span",{className:"ml10"},d==null||((s=d.user)===null||s===void 0)?void 0:s.name)),l.a.createElement("div",{className:P.a.titleWrap},l.a.createElement("span",{className:P.a.title},d==null?void 0:d.name),l.a.createElement("span",null,l.a.createElement(je,{value:R,format:"HH:mm:ss",onFinish:xe}),l.a.createElement("span",{className:P.a.endTimeWrap},e&&l.a.createElement(je,{value:e,format:"HH:mm:ss",onFinish:pt})))),l.a.createElement("div",{className:P.a.actionWrap},d.tpm_modified&&l.a.createElement("img",{src:y("qgvg"),onClick:f,style:{position:"relative",top:-1,marginRight:8,cursor:"pointer"}}),l.a.createElement(pe.a,{icon:l.a.createElement(ze,null),className:"".concat(P.a.colorGray," font14"),type:"link",onClick:mt},"\u91CD\u7F6E\u5B9E\u8BAD"),l.a.createElement(pe.a,{icon:l.a.createElement(He,null),className:"".concat(P.a.colorGray," font14"),type:"link",onClick:Fe},"\u91CD\u7F6E\u73AF\u5883"),l.a.createElement(pe.a,{icon:l.a.createElement(Xe.a,null),className:"".concat(P.a.colorGray," font14"),type:"link",onClick:function(){return me.c.push("/shixuns/".concat(d.identifier,"/challenges"))}},"\u9000\u51FA\u5B9E\u8BAD"))),l.a.createElement("main",{className:P.a.main},l.a.createElement("div",{className:"".concat(P.a.dataSetButton," ").concat(a?P.a.dataSetOpen:""),onClick:function(){return c(!a)}},l.a.createElement("span",{className:P.a.dataSetText},"\u6570\u636E\u96C6")),w===ne.LoadFail&&l.a.createElement("div",{className:P.a.loadFail}," "),w===ne.ReLoad&&l.a.createElement("div",{className:P.a.reload},l.a.createElement("div",{className:P.a.failWrap},l.a.createElement("i",{className:"iconfont icon-jiazaishibai1 ".concat(P.a.failIcon)}),l.a.createElement("p",{className:"font12"},"\u52A0\u8F7D\u5B9E\u8BAD\u5931\u8D25\uFF0C",l.a.createElement("span",{className:P.a.failReload,onClick:O},"\u91CD\u65B0\u52A0\u8F7D")))),w===ne.Success&&l.a.createElement("iframe",{id:"taskJupyterIframe",width:"100%",height:"100%",src:B}),l.a.createElement(ft,{visible:a,identifier:d.identifier}))))},bt=fe.default=Object(me.a)(function(i){var u=i.loading,E=i.globalSetting;return{globalSetting:E,loading:u}})(ht)}}]);