webpackJsonp([17],{1304:function(e,t,r){e.exports=r(1486)},1393:function(e,t,r){"use strict";r.d(t,"f",function(){return E}),r.d(t,"d",function(){return C}),r.d(t,"g",function(){return j}),r.d(t,"e",function(){return T}),r.d(t,"c",function(){return S}),r.d(t,"b",function(){return D}),r.d(t,"i",function(){return P}),r.d(t,"p",function(){return I}),r.d(t,"m",function(){return B}),r.d(t,"n",function(){return M}),r.d(t,"q",function(){return U}),r.d(t,"a",function(){return L}),r.d(t,"j",function(){return R}),r.d(t,"l",function(){return N}),r.d(t,"h",function(){return G}),r.d(t,"o",function(){return F}),r.d(t,"k",function(){return q});var a=r(1304),o=r.n(a),n=r(12),u=r.n(n);function i(e){return function(){var u=e.apply(this,arguments);return new Promise(function(i,o){return function t(e,r){try{var a=u[e](r),n=a.value}catch(e){return void o(e)}if(!a.done)return Promise.resolve(n).then(function(e){t("next",e)},function(e){t("throw",e)});i(n)}("next")})}}var d,s,c,_,l,p,f,h,y,A,g,m,v,b,w,O,k,x,E=(d=i(o.a.mark(function e(t){var r;return o.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r={},Object.keys(t).forEach(function(e){t[e]&&(r[e]=t[e])}),e.abrupt("return",u.a.get("/problems.json",{params:r}));case 4:case"end":return e.stop()}},e,this)})),function(e){return d.apply(this,arguments)}),C=(s=i(o.a.mark(function e(t){var r;return o.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r="/problems/"+t+".json",e.abrupt("return",u.a.delete(r));case 2:case"end":return e.stop()}},e,this)})),function(e){return s.apply(this,arguments)}),j=(c=i(o.a.mark(function e(t){var r,a,n,i;return o.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.params,a=t.submitType,n=t.identifier,i="add"===a?"/problems.json":"/problems/"+n+".json",e.abrupt("return",n?u.a.put(i,r):u.a.post(i,r));case 3:case"end":return e.stop()}},e,this)})),function(e){return c.apply(this,arguments)}),T=(_=i(o.a.mark(function e(t){var r;return o.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r="/problems/"+t+"/edit.json",e.abrupt("return",u.a.get(r));case 2:case"end":return e.stop()}},e,this)})),function(e){return _.apply(this,arguments)}),S=(l=i(o.a.mark(function e(t,r){var a;return o.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return a="/myproblems/"+t+"/code_debug.json",e.abrupt("return",u.a.get(a,{params:r}));case 2:case"end":return e.stop()}},e,this)})),function(e,t){return l.apply(this,arguments)}),D=(p=i(o.a.mark(function e(t,r){var a;return o.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return a="/myproblems/"+t+"/result.json",e.abrupt("return",u.a.get(a,{params:r}));case 2:case"end":return e.stop()}},e,this)})),function(e,t){return p.apply(this,arguments)}),P=(f=i(o.a.mark(function e(t){var r;return o.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r="/problems/"+t+"/start.json",e.abrupt("return",u.a.get(r));case 2:case"end":return e.stop()}},e,this)})),function(e){return f.apply(this,arguments)}),I=(h=i(o.a.mark(function e(t){var r;return o.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r="/myproblems/"+t+".json",e.abrupt("return",u.a.get(r));case 2:case"end":return e.stop()}},e,this)})),function(e){return h.apply(this,arguments)}),B=(y=i(o.a.mark(function e(t){var r;return o.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r="/myproblems/"+t+"/submit_records.json",e.abrupt("return",u.a.get(r));case 3:case"end":return e.stop()}},e,this)})),function(e){return y.apply(this,arguments)}),M=(A=i(o.a.mark(function e(t){var r;return o.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r={id:t},e.abrupt("return",u.a.get("/myproblems/record_detail.json",{params:r}));case 3:case"end":return e.stop()}},e,this)})),function(e){return A.apply(this,arguments)}),U=(g=i(o.a.mark(function e(t){var r;return o.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r="/problems/"+t+"/publish.json",e.abrupt("return",u.a.post(r));case 2:case"end":return e.stop()}},e,this)})),function(e){return g.apply(this,arguments)}),L=(m=i(o.a.mark(function e(t){var r;return o.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r="/problems/"+t+"/cancel_publish.json",e.abrupt("return",u.a.post(r));case 2:case"end":return e.stop()}},e,this)})),function(e){return m.apply(this,arguments)}),R=(v=i(o.a.mark(function e(t,r){var a;return o.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return a="/myproblems/"+t+"/update_code.json",e.abrupt("return",u.a.post(a,r));case 2:case"end":return e.stop()}},e,this)})),function(e,t){return v.apply(this,arguments)}),N=(b=i(o.a.mark(function e(t){var r;return o.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r="/myproblems/"+t+"/code_submit.json",e.abrupt("return",u.a.get(r));case 2:case"end":return e.stop()}},e,this)})),function(e){return b.apply(this,arguments)}),G=(w=i(o.a.mark(function e(t){var r;return o.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r="/myproblems/"+t+"/sync_code.json",e.abrupt("return",u.a.post(r));case 2:case"end":return e.stop()}},e,this)})),function(e){return w.apply(this,arguments)}),F=(O=i(o.a.mark(function e(){return o.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",u.a.get("/problems/new.json"));case 2:case"end":return e.stop()}},e,this)})),function(){return O.apply(this,arguments)}),q=(k=i(o.a.mark(function e(t){return o.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",u.a.post("/attachments.json",t));case 2:case"end":return e.stop()}},e,this)})),function(e){return k.apply(this,arguments)});x=i(o.a.mark(function e(t){var r;return o.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r="/attachments/"+t,e.abrupt("return",u.a.get(r));case 2:case"end":return e.stop()}},e,this)}))},1486:function(e,t,r){var a=function(){return this}()||Function("return this")(),n=a.regeneratorRuntime&&0<=Object.getOwnPropertyNames(a).indexOf("regeneratorRuntime"),i=n&&a.regeneratorRuntime;if(a.regeneratorRuntime=void 0,e.exports=r(1487),n)a.regeneratorRuntime=i;else try{delete a.regeneratorRuntime}catch(e){a.regeneratorRuntime=void 0}},1487:function(P,e){!function(e){"use strict";var d,t=Object.prototype,s=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},n=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",i=r.toStringTag||"@@toStringTag",o="object"==typeof P,u=e.regeneratorRuntime;if(u)o&&(P.exports=u);else{(u=e.regeneratorRuntime=o?P.exports:{}).wrap=m;var _="suspendedStart",l="suspendedYield",p="executing",f="completed",h={},c={};c[n]=function(){return this};var y=Object.getPrototypeOf,A=y&&y(y(S([])));A&&A!==t&&s.call(A,n)&&(c=A);var g=O.prototype=b.prototype=Object.create(c);w.prototype=g.constructor=O,O.constructor=w,O[i]=w.displayName="GeneratorFunction",u.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===w||"GeneratorFunction"===(t.displayName||t.name))},u.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,O):(e.__proto__=O,i in e||(e[i]="GeneratorFunction")),e.prototype=Object.create(g),e},u.awrap=function(e){return{__await:e}},k(x.prototype),x.prototype[a]=function(){return this},u.AsyncIterator=x,u.async=function(e,t,r,a){var n=new x(m(e,t,r,a));return u.isGeneratorFunction(t)?n:n.next().then(function(e){return e.done?e.value:n.next()})},k(g),g[i]="Generator",g[n]=function(){return this},g.toString=function(){return"[object Generator]"},u.keys=function(r){var a=[];for(var e in r)a.push(e);return a.reverse(),function e(){for(;a.length;){var t=a.pop();if(t in r)return e.value=t,e.done=!1,e}return e.done=!0,e}},u.values=S,T.prototype={constructor:T,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=d,this.done=!1,this.delegate=null,this.method="next",this.arg=d,this.tryEntries.forEach(j),!e)for(var t in this)"t"===t.charAt(0)&&s.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=d)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(r){if(this.done)throw r;var a=this;function e(e,t){return i.type="throw",i.arg=r,a.next=e,t&&(a.method="next",a.arg=d),!!t}for(var t=this.tryEntries.length-1;0<=t;--t){var n=this.tryEntries[t],i=n.completion;if("root"===n.tryLoc)return e("end");if(n.tryLoc<=this.prev){var o=s.call(n,"catchLoc"),u=s.call(n,"finallyLoc");if(o&&u){if(this.prev