h5educoderbuild/static/js/10.7f9f53fd.chunk.js

1 line
17 KiB
JavaScript

(this.webpackJsonph5=this.webpackJsonph5||[]).push([[10],{177:function(e,t,n){"use strict";var a=new function(e){var t={},n={subscribe:function(e,n){return t[e]||(t[e]=[]),t[e].push(n),this.unsubscribe.bind(null,e,n)},unsubscribe:function(e,n){var a=t[e],c=-1;if(a){for(var r=0;r<a.length;r++)if(a[r].name===n.name){c=r;break}if(0<=c)return t[e].splice(c,1),!0}return!1},publish:function(e){if(!t[e])return!1;var n=Array.prototype.slice.call(arguments,1);return t[e].forEach((function(e){e.apply(null,n)})),this}};return n};t.a=a},530:function(e,t,n){"use strict";var a=n(0),c=n.n(a);t.a=function(e){var t,n,r,i,l,o,s=e.onLeft,u=e.onRight,d=e.children,p=e.cls,m=Object(a.useRef)(),f=(document.documentElement.clientWidth||document.body.clientWidth)/2;function h(e){var a=e.changedTouches[0];t=a.pageX,n=a.pageY,o=(new Date).getTime()}function g(e){var a=e.changedTouches[0];i=a.pageY-n,r=a.pageX-t,l=(new Date).getTime()-o,(Math.abs(r)>f||l<=320)&&Math.abs(r)>Math.abs(i)&&(r<0?s&&s():u&&u())}return Object(a.useEffect)((function(){var e=m.current;return e&&(e.addEventListener("touchstart",h),e.addEventListener("touchend",g)),function(){e.removeEventListener("touchstart",h),e.removeEventListener("touchend",g)}}),[m.current,h,g]),c.a.createElement("div",{ref:m,className:p,style:{width:"100%",height:"100%"}},d)}},549:function(e,t,n){"use strict";var a=n(188),c=n(0),r=n.n(c),i=(n(181),n(176)),l=n(182),o=n.n(l),s=n(183),u=[],d=["<ul>"],p=new o.a.Renderer,m=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function f(){u.length=0,d=["<ul>"]}var h={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function g(){return function e(t,n,a,c){if(n>=t.length||t[n].level<=a)return n;var r=t[n];c.push("<li><a href='#"+r.anchor+"'>"+r.text+"</a>");var i=[];return n=e(t,++n,r.level,i),0<i.length&&(c.push("<ul>"),i.forEach((function(e){c.push(e)})),c.push("</ul>")),c.push("</li>"),e(t,n,a,c)}(u,0,0,d),d.push("</ul>"),d.join("")}var b={heading:function(e){var t=m.exec(e);if(t)return{type:"heading",raw:t[0],depth:t[1].length,text:t[2]}},fences:function(e){var t=this.rules.block.fences.exec(e);if(t){var n=t[0],a=function(e,t){var n=e.match(/^(\s+)(?:```)/);if(null===n)return t;var a=n[1];return t.split("\n").map((function(e){var t=e.match(/^\s+/);return null!==t&&Object(i.a)(t,1)[0].length>=a.length?e.slice(a.length):e})).join("\n")}(n,t[3]||""),c=t[2]?t[2].trim():t[2];if(0<=["latex","katex","math"].indexOf(c)){var r=E(),l=a;w[a=r]={type:"block",expression:l}}return{type:"code",raw:n,lang:c,text:a}}}},v=/(?:\${2})([^\n`]+?)(?:\${2})/gi,A=0,E=function(){return"__special_katext_id_".concat(A++,"__")},w={};function k(){A=0,w={}}function j(e){return e.replace(v,(function(e,t){var n=E();return w[n]={type:"inline",expression:t},n}))}var O=p.listitem;p.listitem=function(e){return O(j(e))};var y=p.paragraph;p.paragraph=function(e){return y(j(e))};var S=p.tablecell;p.tablecell=function(e,t){return S(j(e),t)},p.code=function(e,t,n){var a=(t||"").match(/\S*/)[0];return a?0<=["latex","katex","math"].indexOf(a)?"<p class='editormd-tex'>".concat(e,"</p>"):'<pre class="prettyprint linenums"><code class="language-'.concat(t,'">').concat(n?e:Object(s.escape)(e,!0),"</code></pre>\n"):'<pre class="prettyprint linenums"><code>'+(n?e:Object(s.escape)(e,!0))+"</code></pre>"},p.heading=function(e,t,n){var a=this.options.headerPrefix+n.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return u.push({anchor:a,level:t,text:e}),"<h"+t+' id="'+a+'">'+e+"</h"+t+">"},o.a.setOptions({silent:!0,gfm:!0,pedantic:!1}),o.a.use({tokenizer:b,renderer:p});var R=o.a,C=(n(559),n(184)),I=/<pre[^>]*>/g;t.a=function(e){var t=e.value,n=void 0===t?"":t,i=e.className,l=e.showTextOnly,o=e.showLines,s=e.style,u=void 0===s?{}:s,d=String(n),p=Object(c.useMemo)((function(){var e="https://data.educoder.net";try{d=d.replace(/\(\s+\/api\/attachments\/|\(\/api\/attachments\/|\(\/attachments\/download\//g,"("+e+"/api/attachments/").replace(/\"\/api\/attachments\/|\"\/attachments\/download\//g,'"'+e+"/api/attachments/").replace(/\(\s+\/files\/uploads\/|\(\/files\/uploads\//g,'"'+e+"/files/uploads/")}catch(e){}var t=R(d),n=w;if(d.match(/\[TOC\]/)&&(t=t.replace("<p>[TOC]</p>",g()),f()),t=(t=t.replace(/(__special_katext_id_\d+__)/g,(function(e,t){var a,c,r=n[t],i=r.type,l=r.expression;return Object(C.renderToString)((a=l,(c=document.createElement("div")).innerHTML=a,(0===c.childNodes.length?"":c.childNodes[0].nodeValue)||""),{displayMode:"block"===i,throwOnError:!1,output:"html"})}))).replace(/\u2581/g,"\u2581\u2581\u2581"),k(),l){var a=document.createElement("div");return a.innerHTML=t,a.innerText}return t}),[d]),m=Object(c.useRef)();function b(e){var t=e.target;if("A"===t.tagName.toUpperCase()){var n=t.getAttribute("href");if(n.startsWith("#")){e.preventDefault();var a=document.getElementById(n.replace("#",""));a&&a.scrollIntoView(!0)}}}return(h.WebkitLineClamp=o)&&(u=Object(a.a)({},u,{},h)),Object(c.useEffect)((function(){if(m.current&&p&&p.match(I)&&window.PR.prettyPrint(),m.current)return m.current.addEventListener("click",b),function(){m.current.removeEventListener("click",b),k(),f()}}),[p,m.current,b]),r.a.createElement(r.a.Fragment,null,r.a.createElement("div",{ref:m,style:Object(a.a)({},u),className:"".concat(i||""," markdown-body"),dangerouslySetInnerHTML:{__html:p}}))}},599:function(e,t,n){},600:function(e,t,n){},601:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAYAAACpSkzOAAAAAXNSR0IArs4c6QAAAtlJREFUSEu9Vl1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kzOAAAAAXNSR0IArs4c6QAAArVJREFUSEu9lk9oE0EUxr8329qGnrRURURFvYhYLwUVzc5uFSyK6CkUvAjqrSgVxFurB/Ek1rsgRSj2oghaKEY6u2o1Z2mlpjdJselFwXqIyTzZsK35s5tMpJjbZr43v/fevHnzCP/pR6ac2dnZLYVCYZ/WeocQQluWtZRIJBb7+vp+mOzREDQ3N7dpZWXlMhENaq2PE5FVuSkR/Wbmt0Q0obUed123GAeNBSmlzhHRGDPvNfEYwIJlWUPJZDIdpY8EKaVGiGiUmYUhpCxj5pJlWTdt235Qa1cH8jwvANxuBVCrFUIM27Y9VpXmyg/f989rrZ8DiIyUiF6USqV7gQ0R3SWikzEOFYUQA7Ztv1lbX98wm8125HK5BQC7G0TzyHGcq8G653mTzJyKPXyi+eXl5d5UKlUqO7YmVEpdA/CwScqMQWHUl6SU47WgDwCObjBoWko5sA5Kp9Pb2tvblwyqrKWIABSYudt13Z/l1CmlkgB8g0qbcBznYnhGL5n5bDMbIuqVUn4qgzzPSzHzpIHReynlidC5eQAHmtlorQf6+/unWwIByDmOs5OZyfO8XwA6WwK1kDrd09OTyOfzW4noazNIWHl/U9dCMUAIcZiZtzPztAGouhjCc/rIzEcMjI0lRFRd3iHoOjNX9aeIHZ8Ui8Xh4P+2tranAE41ohJR/YWdmZnpJKKgBe0ybEGvmPlMA+3nfD5/qK4FBQa+71/QWj+La6oAKi9sLCh8Lk5HNtWKnncHwEiMp98ALIZrBwFsjtIJIW7Uvkl1z0FwR5RSo0QUwIxnihBYIqJbUsr7tQ7EbhS+TUFx7DEpMyL6wsxDjuO8jtI39Hhqaqqjq6vrCjMPAjgGoGo4ARAMI+8ATDDz438aTmq9ymQy3aurq/uFEOVxS2sddPus67rfjSI2EW2E5g/qA08qp9sFxwAAAABJRU5ErkJggg=="},604:function(e,t,n){},648:function(e,t,n){"use strict";n.r(t);var a=n(176),c=n(0),r=n.n(c),i=n(16),l=(n(527),n(551)),o=n.n(l),s=(n(186),n(187)),u=n.n(s),d=(n(552),n(553)),p=n.n(d),m=(n(555),n(556)),f=n.n(m),h=(n(557),n(558)),g=n.n(h),b=(n(93),n(13)),v=n.n(b),A=(n(599),n(600),n(32)),E=n.n(A),w=n(58),k=n(177),j=n(549),O=n(601),y=n.n(O),S=n(602),R=n.n(S);function C(e){var t=Object(i.h)(),n=t.identifier,l=t.educoder_session,s=t.autologin_trustie,d=Object(i.f)(),m=Object(i.g)(),h=Object(i.i)(),b=Object(c.useState)(!1),A=Object(a.a)(b,2),O=A[0],S=A[1],C=Object(c.useState)(null),I=Object(a.a)(C,2),x=I[0],U=I[1],N=Object(c.useState)([]),F=Object(a.a)(N,2),Q=F[0],T=F[1],z=Object(c.useState)(!1),B=Object(a.a)(z,2),W=(B[0],B[1],Object(c.useState)(0)),L=Object(a.a)(W,2),D=(L[0],L[1],Object(c.useState)(["\u9898\u76ee\u5217\u8868","\u4e0a\u4e00\u9898","\u4e0b\u4e00\u9898","\u7b54\u9898"])),M=Object(a.a)(D,2),V=M[0],q=M[1],P=Object(c.useState)(!1),Y=Object(a.a)(P,2),J=Y[0],X=Y[1],G=Object(c.useState)(null),H=Object(a.a)(G,2),Z=H[0],K=(H[1],Object(c.useState)("null")),_=Object(a.a)(K,2),$=_[0],ee=_[1],te=Object(c.useRef)(!1);Object(c.useEffect)((function(){te.current=!1}),[Z]);var ne=[{},{name:"\u7b80\u5355",color:"#07C160",backcolor:"#E5FFED"},{name:"\u9002\u4e2d",color:"#2EA4FF",backcolor:"#E5F8FF"},{name:"\u56f0\u96be",color:"#FF9D18",backcolor:"#FFF4E2"}];function ae(e,t){var a=!(1<arguments.length&&void 0!==t)||t;E.a.get("/problems/".concat(e,"/start.json"),{}).then((function(e){if(S(!1),e.data){var t=new RegExp(n,"g"),c=m.pathname.replace(t,e.data.identifier);a&&(h.isExact||(c=c.replace("/code",""))),d.replace(c)}}))}function ce(e){0===e?ae(x.above_question):1===e&&ae(x.under_question)}Object(c.useEffect)((function(){var e=[];e.push({id:"educoder_session",value:l}),e.push({id:"autologin_trustie",value:s}),Object(w.c)(e)}),[l,s]),Object(c.useEffect)((function(){!function(t){if(t){te.current=!1;var n="/myproblems/".concat(t,".json");E.a.get(n,{}).then((function(n){var a;if(S(!1),n.data.hack){var c=n.data.hack.description;ee(c),U(n.data.hack),q(["\u9898\u76ee\u5217\u8868",n.data.hack.above_question&&"\u4e0a\u4e00\u9898",n.data.hack.under_question&&"\u4e0b\u4e00\u9898","\u7b54\u9898"]),"1"===localStorage.getItem("type")&&e.callback&&e.callback()}a=t,E.a.get("/problems/my_hack_list.json",{params:{identifier:a,id:a,page:1,per_page:1e3}}).then((function(e){e.data&&T(e.data.data)})),e.onGetTaskInfo(n.data),PR.prettyPrint()}))}else v.a.info("\u8be5\u5b9e\u8bad\u4e0d\u652f\u6301\u8df3\u5173")}(n)}),[n]);var re=function(){var t="/educodermd/hack/".concat(n,"/").concat(l,"/").concat(s,"/code?type=1");e.history.push(t),e.callback&&e.callback()};return Object(c.useEffect)((function(){var t=k.a.subscribe("to-task",(function(){te.current?e.callback():re(Z)})),n=k.a.subscribe("reset-game",(function(){window.location.reload()})),a=k.a.subscribe("next-game",(function(e){ae(e,!1)}));return function(){t(),n(),a()}}),[Z,re,te.current]),r.a.createElement("div",{className:"wx-code-flex"},r.a.createElement("div",{style:{position:"fixed",height:"100%",width:"100%",top:0,overflow:"hidden"}},r.a.createElement(p.a,{unselectedTintColor:"#949494",tintColor:"#33A3F4",barTintColor:"white",tabBarPosition:"bottom",prerenderingSiblingsNumber:0},V.map((function(e,t){return r.a.createElement(p.a.Item,{title:"\u7b54\u9898"===e?"":e,key:t,selectedIcon:r.a.createElement("div",null,"\u9898\u76ee\u5217\u8868"===e?r.a.createElement("i",{className:"iconfont iconguankamulu"}):"\u4e0a\u4e00\u9898"===e?r.a.createElement("i",{className:"iconfont iconshangyiguan"}):"\u4e0b\u4e00\u9898"===e?r.a.createElement("i",{className:"iconfont iconxiayiguan"}):"\u7b54\u9898"===e?r.a.createElement("div",{className:"wx-pt-btn"},"\u7b54\u9898"):""),selected:!0,onPress:function(){return function(e){"\u9898\u76ee\u5217\u8868"===e?S(!0):"\u7b54\u9898"===e?re():"\u4e0a\u4e00\u9898"===e?ce(0):"\u4e0b\u4e00\u9898"===e&&ce(1)}(e)}},r.a.createElement(g.a,{size:"lg"}),r.a.createElement(f.a,null,null===x?"":r.a.createElement("div",{className:"challengestitle"}," ",x&&x.name)),r.a.createElement(g.a,{size:"lg"}),r.a.createElement(f.a,null,null===x?"":r.a.createElement(j.a,{value:$,style:{height:"calc(100vh - 88px)",paddingBottom:"50px"}})),r.a.createElement("div",{className:"inputBox"},r.a.createElement("input",{className:"copyInput apiInput",value:"https://www.educoder.net/tasks/".concat(n),readOnly:!0})))})))),r.a.createElement(u.a,{visible:J,transparent:!0,maskClosable:!1,onClose:function(){return X(!1)},title:"\u8be5\u9879\u76ee\u8fd1\u671f\u5c06\u63d0\u4f9b\u5c0f\u7a0b\u5e8f\u5165\u53e3\uff0c\u8bf7\u5229\u7528\u4e0b\u9762\u7684\u7f51\u5740\u5728\u7535\u8111\u7aef\u64cd\u4f5c\uff1a",footer:[{text:"\u6211\u77e5\u9053\u4e86",onPress:function(){return X(!1)}}],wrapProps:{onTouchStart:null}},r.a.createElement("div",{style:{height:100,overflow:"scroll"}},r.a.createElement("div",{className:"mt10"},"\u5b9e\u8bad\u5730\u5740\uff1ahttps://www.educoder.ne"),r.a.createElement("div",null,"t/tasks/",n),r.a.createElement("div",{className:"mt10 color51 ml10",onClick:function(){var e,t;e=document.querySelector(".inputBox input"),t=document.createRange(),window.getSelection().removeAllRanges(),t.selectNode(e),window.getSelection().addRange(t),document.execCommand("copy")?v.a.info("\u590d\u5236\u6210\u529f\uff01"):v.a.info("\u590d\u5236\u5931\u8d25\uff0c\u8bf7\u624b\u52a8\u590d\u5236\uff01"),window.getSelection().removeAllRanges()}},"\u590d\u5236\u94fe\u63a5",r.a.createElement("i",{className:"iconfont iconfuzhi1 ml5 color51"})))),r.a.createElement(u.a,{popup:!0,visible:O,onClose:function(){return S(!1)},animationType:"slide-up"},r.a.createElement(o.a,{renderHeader:function(){return r.a.createElement("div",null,r.a.createElement("div",{className:"fl Jumpoff"},"\u5171",Q&&Q.length,"\u9898"),r.a.createElement("div",{className:"fr closebutton",onClick:function(){return S(!1)}},"\u5173\u95ed"))},className:"popup-list"},Q.map((function(e,t){return r.a.createElement(o.a.Item,{key:t,onClick:function(){return ae(e.identifier)}},r.a.createElement("div",{className:e.identifier?"conlistfont fl ml10":"conlistfontclose fl ml10"},r.a.createElement("span",{style:{color:ne[e.difficult].color,background:ne[e.difficult].backcolor,textAlign:"center",lineHeight:"20px",height:20,width:42,borderRadius:"20px",fontSize:13,display:"inline-flex",justifyContent:"center",marginRight:10}},ne[e.difficult].name),e.name),(null==e?void 0:e.opened)&&!(null!=e&&e.passed)&&r.a.createElement("div",{style:{position:"absolute",right:10,top:10}},r.a.createElement("img",{style:{width:13,height:13},src:R.a}),r.a.createElement("span",{style:{fontSize:"14px",color:"#333333",marginLeft:"4px"}},"\u672a\u901a\u8fc7")),(null==e?void 0:e.opened)&&(null==e?void 0:e.passed)&&r.a.createElement("div",{style:{position:"absolute",right:10,top:10}},r.a.createElement("img",{style:{width:13,height:13},src:y.a}),r.a.createElement("span",{style:{fontSize:"14px",color:"#333333",marginLeft:"4px"}},"\u5df2\u901a\u5173")))})))))}n(603),E.a.defaults.withCredentials=!0;var I=n(530),x=(n(604),Object(c.lazy)((function(){return n.e(3).then(n.bind(null,646))}))),U=/(?:\/educodermd\/)[^ \/]+\/[^ \/]+\/[^ \/]+$/i;t.default=function(e){var t=Object(c.useState)(0),n=Object(a.a)(t,2),l=n[0],o=n[1],s=Object(c.useState)(null),u=Object(a.a)(s,2),d=u[0],p=u[1],m=Object(c.useCallback)((function(){0===l&&k.a.publish("to-task")}),[l]),f=Object(c.useCallback)((function(){1===l&&(o(0),k.a.publish("update-cost-time"))}),[l]);function h(){o(1)}return Object(c.useEffect)((function(){function e(){localStorage.setItem("type","9"),U.test(location.pathname)&&o(0)}return window.addEventListener("popstate",e),function(){window.removeEventListener("popstate",e)}}),[]),r.a.createElement(I.a,{cls:l?"task-game-panel right":"task-game-panel",onLeft:m,onRight:f},r.a.createElement("div",{className:"task-game-panel-body"},r.a.createElement("div",{className:"left-panel"},r.a.createElement(C,Object.assign({},e,{callback:h,onGetTaskInfo:function(e){p(e)}}))),r.a.createElement("div",{className:"right-panel"},r.a.createElement(i.c,null,r.a.createElement(i.a,{path:"/educodermd/hack/:identifier/:educoder_session/:autologin_trustie/code",render:function(e){return r.a.createElement(x,Object.assign({},e,{callback:h,taskData:d}))}})))))}}}]);