1(window.webpackJsonp_N_E=window.webpackJsonp_N_E||[]).push([[7],{"+6XX":function(t,e,r){var n=r("y1pI");t.exports=function(t){return n(this.__data__,t)>-1}},"+K+b":function(t,e,r){var n=r("JHRd");t.exports=function(t){var e=new t.constructor(t.byteLength);return new n(e).set(new n(t)),e}},"+Qka":function(t,e,r){var n=r("fmRc"),a=r("t2Dn"),o=r("cq/+"),i=r("T1AV"),s=r("GoyQ"),u=r("mTTR"),c=r("itsj");t.exports=function t(e,r,p,l,d){e!==r&&o(r,(function(o,u){if(d||(d=new n),s(o))i(e,r,u,p,t,l,d);else{var f=l?l(c(e,u),o,u+"",e,r,d):void 0;void 0===f&&(f=o),a(e,u,f)}}),u)}},"+iFO":function(t,e,r){var n=r("dTAl"),a=r("LcsW"),o=r("6sVZ");t.exports=function(t){return"function"!=typeof t.constructor||o(t)?{}:n(a(t))}},"/luw":function(t,e,r){"use strict";r.d(e,"a",(function(){return ne})),r.d(e,"b",(function(){return Un})),r.d(e,"c",(function(){return da})),r.d(e,"e",(function(){return va})),r.d(e,"f",(function(){return Fi})),r.d(e,"g",(function(){return ou})),r.d(e,"d",(function(){return cu})),r.d(e,"i",(function(){return lu})),r.d(e,"j",(function(){return du})),r.d(e,"m",(function(){return fu})),r.d(e,"k",(function(){return bu})),r.d(e,"n",(function(){return hu})),r.d(e,"o",(function(){return yu})),r.d(e,"l",(function(){return gu})),r.d(e,"h",(function(){return vu}));var n,a,o,i,s,u,c,p,l,d,f,b,h,y,g,v,w,O,m,j,S,x,k,D,_,T,I,L,P,C,W,E,A,N,F,U,z,R,M,B,G,V,J,H,q,Q,K,Y,X,Z,$,tt,et,rt,nt,at,ot,it,st,ut,ct,pt,lt,dt,ft,bt,ht,yt,gt,vt,wt,Ot,mt,jt,St,xt,kt,Dt,_t,Tt,It,Lt,Pt,Ct,Wt,Et,At,Nt,Ft,Ut,zt,Rt,Mt,Bt,Gt,Vt,Jt,Ht=r("rg98"),qt=r("4nv/"),Qt=r("H+61"),Kt=r("UlJF"),Yt=r("cpVT"),Xt=r("EaFg"),Zt=(r("ACih"),r("vJKn")),$t=r.n(Zt),te=r("LvDl"),ee=r("aFzQ"),re=r("OFXb"),ne=(n=ee.j.bound,a=ee.j.bound,o=ee.j.bound,i=ee.j.bound,s=ee.j.bound,u=ee.j.bound,c=ee.j.bound,p=ee.j.bound,l=ee.j.bound,d=ee.j.bound,f=ee.j.bound,b=ee.j.bound,h=ee.j.bound,y=ee.j.bound,g=ee.j.bound,v=ee.j.bound,w=function(){function t(){Object(Qt.a)(this,t),Object(qt.a)(this,"testData",O,this),Object(qt.a)(this,"answerData",m,this),Object(qt.a)(this,"trainings",j,this),Object(qt.a)(this,"content",S,this),Object(qt.a)(this,"grammarTask",x,this),Object(qt.a)(this,"courses",k,this),Object(qt.a)(this,"banners",D,this),Object(qt.a)(this,"fiveDaysQuest",_,this),Object(qt.a)(this,"tasks",T,this),Object(qt.a)(this,"columns",I,this),Object(qt.a)(this,"battles",L,this),Object(qt.a)(this,"battleUsers",P,this),Object(qt.a)(this,"battleId",C,this),Object(qt.a)(this,"battleName",W,this),Object(qt.a)(this,"battleFine",E,this),Object(qt.a)(this,"isNick",A,this),Object(qt.a)(this,"battleStatus",N,this),Object(qt.a)(this,"currentBattle",F,this),Object(qt.a)(this,"leaderboard",U,this),Object(qt.a)(this,"anotherBattle",z,this),Object(qt.a)(this,"hasStart",R,this),Object(qt.a)(this,"battlesFineList",M,this),Object(qt.a)(this,"leaderBoard",B,this),Object(qt.a)(this,"dashboardType",G,this),Object(qt.a)(this,"stepTasks",V,this),Object(qt.a)(this,"currentStepId",J,this),Object(qt.a)(this,"mapSchedule",H,this),Object(qt.a)(this,"isTestFetching",q,this),Object(qt.a)(this,"isDashboardFetching",Q,this),Object(ee.C)(this)}return Object(Kt.a)(t,[{key:"safelyUpdateProp",value:function(t,e,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;this[t]=Object(te.get)(e,r,n)}},{key:"getInitialData",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e,r){return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,re.a.getTestItems(e,r);case 2:this.testData=t.sent;case 3:case"end":return t.stop()}}),t,this)})));return function(e,r){return t.apply(this,arguments)}}()},{key:"sendAnswers",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e,r,n){return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,re.a.setTestItems(e,r,n);case 2:this.answerData=t.sent;case 3:case"end":return t.stop()}}),t,this)})));return function(e,r,n){return t.apply(this,arguments)}}()},{key:"setTestFetchingStatus",value:function(t){this.isTestFetching=t}},{key:"loadAllData",value:function(){var t=Object(Ht.a)($t.a.mark((function t(){var e,r,n,a,o,i,s,u,c,p,l;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,re.a.loadAllData();case 2:e=t.sent,r=e.trainings,n=e.content,a=e.grammarTask,o=e.courses,i=e.banners,s=e.fiveDaysQuest,u=e.tasks,c=e.columns,p=e.type,l=e.schedule,this.isDashboardFetching=!0,this.trainings=r,this.content=n,this.grammarTask=a,this.courses=o,this.banners=i,this.fiveDaysQuest=s,this.tasks=u,this.columns=c,this.dashboardType=p,this.mapSchedule=l,this.safelyUpdateProp("trainings",e,"trainings",[]),this.isDashboardFetching=!1;case 17:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"loadStepData",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e){var r,n;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,re.a.loadStepTasks(e);case 2:r=t.sent,n=r.tasks,this.stepTasks=n,this.currentStepId=e;case 6:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"setBattle",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e,r,n){return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,re.a.setBattle(e,r,n);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)})));return function(e,r,n){return t.apply(this,arguments)}}()},{key:"setBattleAnswer",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e,r){var n;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,re.a.setBattle("update",e,r);case 2:n=t.sent,this.safelyUpdateProp("battleUsers",n,"players",[]),this.safelyUpdateProp("battleStatus",n,"battleStatus");case 5:case"end":return t.stop()}}),t,this)})));return function(e,r){return t.apply(this,arguments)}}()},{key:"updateBattleData",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e){var r;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,re.a.setBattle("update",e);case 2:r=t.sent,this.safelyUpdateProp("battleUsers",r,"players",[]),this.safelyUpdateProp("battleStatus",r,"battleStatus"),this.safelyUpdateProp("isNick",r,"isNick"),this.safelyUpdateProp("hasStart",r,"hasStart"),this.safelyUpdateProp("battleName",r,"battleName"),this.safelyUpdateProp("battleFine",r,"battleFine");case 9:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"forceStartBattle",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e){var r;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,re.a.setBattle("start",e);case 2:r=t.sent,this.safelyUpdateProp("battleUsers",r,"players",[]),this.safelyUpdateProp("battleStatus",r,"battleStatus"),this.safelyUpdateProp("isNick",r,"isNick"),this.safelyUpdateProp("hasStart",r,"hasStart"),this.safelyUpdateProp("battleName",r,"battleName"),this.safelyUpdateProp("battleFine",r,"battleFine");case 9:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"joinBattle",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e,r){var n,a,o;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=r?"share":"join",t.next=3,re.a.setBattle(n,null,
1null,e);case 3:if(a=t.sent,this.safelyUpdateProp("battleUsers",a,"players",[]),this.safelyUpdateProp("battleId",a,"battleId",[]),this.safelyUpdateProp("battleStatus",a,"battleStatus"),this.safelyUpdateProp("isNick",a,"isNick"),this.safelyUpdateProp("hasStart",a,"hasStart"),this.safelyUpdateProp("battleName",a,"battleName"),this.safelyUpdateProp("battleFine",a,"battleFine"),!(o=null===a||void 0===a?void 0:a.anotherBattle)){t.next=17;break}return this.anotherBattle=o,t.abrupt("return",{otherBattle:o});case 17:return t.abrupt("return",{battleId:a.battleId});case 18:case"end":return t.stop()}}),t,this)})));return function(e,r){return t.apply(this,arguments)}}()},{key:"createBattle",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e,r,n){var a;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,re.a.createBattle(e,r,n);case 2:return a=t.sent,this.safelyUpdateProp("battleId",a,"battleId",[]),this.safelyUpdateProp("battleStatus",a,"battleStatus"),this.safelyUpdateProp("isNick",a,"isNick"),this.safelyUpdateProp("hasStart",a,"hasStart"),this.safelyUpdateProp("battleName",a,"battleName"),this.safelyUpdateProp("battleFine",a,"battleFine"),t.abrupt("return",{battleId:a.battleId});case 10:case"end":return t.stop()}}),t,this)})));return function(e,r,n){return t.apply(this,arguments)}}()},{key:"joinBattleById",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e,r){var n,a;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,re.a.setBattle("join",r,null,e);case 2:if(n=t.sent,this.safelyUpdateProp("battleUsers",n,"players"),this.safelyUpdateProp("battleId",n,"battleId",[]),this.safelyUpdateProp("battleStatus",n,"battleStatus"),this.safelyUpdateProp("isNick",n,"isNick"),this.safelyUpdateProp("hasStart",n,"hasStart"),this.safelyUpdateProp("battleName",n,"battleName"),this.safelyUpdateProp("battleFine",n,"battleFine"),!(a=null===n||void 0===n?void 0:n.anotherBattle)){t.next=16;break}return this.anotherBattle=a,t.abrupt("return",{otherBattle:a});case 16:return t.abrupt("return",{battleId:n.battleId});case 17:case"end":return t.stop()}}),t,this)})));return function(e,r){return t.apply(this,arguments)}}()},{key:"loadBattles",value:function(){var t=Object(Ht.a)($t.a.mark((function t(){var e;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,re.a.setBattle("list");case 2:e=t.sent,this.safelyUpdateProp("battles",e,"battles"),this.safelyUpdateProp("battlesFineList",e,"fineList");case 5:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"loadBattleByTag",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e){var r,n,a;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,re.a.setBattle("list");case 2:r=t.sent,this.safelyUpdateProp("battlesFineList",r,"fineList"),n=null===r||void 0===r?void 0:r.battles,(a=Object(te.find)(n,{tag:e}))&&(this.currentBattle=a);case 7:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"getLeaderBoardBattle",value:function(){var t=Object(Ht.a)($t.a.mark((function t(){var e;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,re.a.getLeaderBoard("battle");case 2:e=t.sent,this.safelyUpdateProp("leaderBoard",e,"leaderBoard",[]);case 4:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()}]),t}(),O=Object(Xt.a)(w.prototype,"testData",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),m=Object(Xt.a)(w.prototype,"answerData",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),j=Object(Xt.a)(w.prototype,"trainings",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),S=Object(Xt.a)(w.prototype,"content",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),x=Object(Xt.a)(w.prototype,"grammarTask",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),k=Object(Xt.a)(w.prototype,"courses",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),D=Object(Xt.a)(w.prototype,"banners",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),_=Object(Xt.a)(w.prototype,"fiveDaysQuest",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),T=Object(Xt.a)(w.prototype,"tasks",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),I=Object(Xt.a)(w.prototype,"columns",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),L=Object(Xt.a)(w.prototype,"battles",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),P=Object(Xt.a)(w.prototype,"battleUsers",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),C=Object(Xt.a)(w.prototype,"battleId",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),W=Object(Xt.a)(w.prototype,"battleName",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),E=Object(Xt.a)(w.prototype,"battleFine",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),A=Object(Xt.a)(w.prototype,"isNick",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),N=Object(Xt.a)(w.prototype,"battleStatus",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),F=Object(Xt.a)(w.prototype,"currentBattle",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),U=Object(Xt.a)(w.prototype,"leaderboard",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),z=Object(Xt.a)(w.prototype,"anotherBattle",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),R=Object(Xt.a)(w.prototype,"hasStart",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),M=Object(Xt.a)(w.prototype,"battlesFineList",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),B=Object(Xt.a)(w.prototype,"leaderBoard",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),G=Object(Xt.a)(w.prototype,"dashboardType",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),V=Object(Xt.a)(w.prototype,"stepTasks",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),J=Object(Xt.a)(w.prototype,"currentStepId",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),H=Object(Xt.a)(w.prototype,"mapSchedule",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),q=Object(Xt.a)(w.prototype,"isTestFetching",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Q=Object(Xt.a)(w.prototype,"isDashboardFetching",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Object(Xt.a)(w.prototype,"safelyUpdateProp",[n],Object.getOwnPropertyDescriptor(w.prototype,"safelyUpdateProp"),w.prototype),Object(Xt.a)(w.prototype,"getInitialData",[a],Object.getOwnPropertyDescriptor(w.prototype,"getInitialData"),w.prototype),Object(Xt.a)(w.prototype,"sendAnswers",[o],Object.getOwnPropertyDescriptor(w.prototype,"sendAnswers"),w.prototype),Object(Xt.a)(w.prototype,"setTestFetchingStatus",[i],Object.getOwnPropertyDescriptor(w.prototype,"setTestFetchingStatus"),w.prototype),Object(Xt.a)(w.prototype,"loadAllData",[s],Object.getOwnPropertyDescriptor(w.prototype,"loadAllData"),w.prototype),Object(Xt.a)(w.prototype,"loadStepData",[u],Object.getOwnPropertyDescriptor(w.prototype,"loadStepData"),w.prototype),Object(Xt.a)(w.prototype,"setBattle",[c],Ob
1ject.getOwnPropertyDescriptor(w.prototype,"setBattle"),w.prototype),Object(Xt.a)(w.prototype,"setBattleAnswer",[p],Object.getOwnPropertyDescriptor(w.prototype,"setBattleAnswer"),w.prototype),Object(Xt.a)(w.prototype,"updateBattleData",[l],Object.getOwnPropertyDescriptor(w.prototype,"updateBattleData"),w.prototype),Object(Xt.a)(w.prototype,"forceStartBattle",[d],Object.getOwnPropertyDescriptor(w.prototype,"forceStartBattle"),w.prototype),Object(Xt.a)(w.prototype,"joinBattle",[f],Object.getOwnPropertyDescriptor(w.prototype,"joinBattle"),w.prototype),Object(Xt.a)(w.prototype,"createBattle",[b],Object.getOwnPropertyDescriptor(w.prototype,"createBattle"),w.prototype),Object(Xt.a)(w.prototype,"joinBattleById",[h],Object.getOwnPropertyDescriptor(w.prototype,"joinBattleById"),w.prototype),Object(Xt.a)(w.prototype,"loadBattles",[y],Object.getOwnPropertyDescriptor(w.prototype,"loadBattles"),w.prototype),Object(Xt.a)(w.prototype,"loadBattleByTag",[g],Object.getOwnPropertyDescriptor(w.prototype,"loadBattleByTag"),w.prototype),Object(Xt.a)(w.prototype,"getLeaderBoardBattle",[v],Object.getOwnPropertyDescriptor(w.prototype,"getLeaderBoardBattle"),w.prototype),w),ae=r("dhJC"),oe=r("z7pX"),ie=r("E80+"),se=r("Jojw"),ue=r("tXiB"),ce=r("NvxM"),pe=function(){var t=arguments;return Object(Ht.a)($t.a.mark((function e(){var r;return $t.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.length>0&&void 0!==t[0]?t[0]:1,e.next=3,Object(ue.a)(ce.f.GET_LEONEWS,{apiVersion:ce.a,page:r});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e)})))()},le=function(t){return Object(Ht.a)($t.a.mark((function e(){var r,n;return $t.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.tag,n=t.level,e.next=3,Object(ue.a)(ce.f.GET_LEONEWS,{apiVersion:ce.a,filter:{tag:r,level:n},page:1});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e)})))()},de=["parsedSentences","parsedTitle","text","addedWords","pageLearningStatus"];function fe(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function be(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?fe(Object(r),!0).forEach((function(e){Object(Yt.a)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):fe(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var he,ye,ge,ve,we,Oe,me,je,Se,xe,ke,De,_e,Te,Ie,Le,Pe,Ce,We,Ee,Ae,Ne,Fe,Ue,ze,Re,Me,Be,Ge,Ve,Je,He,qe,Qe,Ke,Ye,Xe,Ze,$e,tr,er,rr,nr,ar,or,ir,sr,ur,cr,pr,lr,dr,fr,br,hr,yr,gr,vr,wr,Or,mr,jr,Sr,xr,kr,Dr,_r,Tr,Ir,Lr,Pr,Cr,Wr,Er,Ar,Nr,Fr,Ur,zr,Rr,Mr,Br,Gr,Vr,Jr,Hr,qr,Qr,Kr,Yr,Xr,Zr,$r,tn,en,rn,nn,an,on,sn,un,cn,pn,ln,dn,fn,bn,hn,yn,gn,vn,wn,On,mn,jn,Sn,xn,kn,Dn,_n,Tn,In,Ln,Pn,Cn,Wn,En,An,Nn,Fn,Un=(K=ee.j.bound,Y=ee.j.bound,X=ee.j.bound,Z=ee.j.bound,$=ee.j.bound,tt=ee.j.bound,et=ee.j.bound,rt=ee.j.bound,nt=ee.j.bound,at=ee.j.bound,ot=ee.j.bound,it=ee.j.bound,st=ee.j.bound,ut=ee.j.bound,ct=ee.j.bound,pt=ee.j.bound,lt=ee.j.bound,dt=ee.j.bound,ft=ee.j.bound,bt=ee.j.bound,ht=function(){function t(){var e=this;Object(Qt.a)(this,t),Object(qt.a)(this,"popular",yt,this),Object(qt.a)(this,"news",gt,this),Object(qt.a)(this,"recommended",vt,this),Object(qt.a)(this,"collections",wt,this),Object(qt.a)(this,"parentCategoryName",Ot,this),Object(qt.a)(this,"categoryName",mt,this),Object(qt.a)(this,"categories",jt,this),Object(qt.a)(this,"subcategories",St,this),Object(qt.a)(this,"content",xt,this),Object(qt.a)(this,"offset",kt,this),Object(qt.a)(this,"prevOffset",Dt,this),Object(qt.a)(this,"music",_t,this),Object(qt.a)(this,"video",Tt,this),Object(qt.a)(this,"books",It,this),Object(qt.a)(this,"collectionsAll",Lt,this),Object(qt.a)(this,"globalInterests",Pt,this),Object(qt.a)(this,"contentById",Ct,this),Object(qt.a)(this,"searchSuggest",Wt,this),Object(qt.a)(this,"stateNotify",Et,this),Object(qt.a)(this,"stateConfirm",At,this),Object(qt.a)(this,"toRemoveId",Nt,this),Object(qt.a)(this,"totalPages",Ft,this),Object(qt.a)(this,"filtersState",Ut,this),Object(qt.a)(this,"isPremShow",zt,this),Object(qt.a)(this,"isFetching",Rt,this),Object(qt.a)(this,"contentForEdit",Mt,this),Object(qt.a)(this,"all",Bt,this),Object(qt.a)(this,"myAll",Gt,this),Object(qt.a)(this,"isNewsLimitReached",Vt,this),Object(qt.a)(this,"recommendationCategories",Jt,this),Object(Yt.a)(this,"stateNotifyTimeout",null),Object(Yt.a)(this,"switchStateNotify",(function(){clearTimeout(e.stateNotifyTimeout),e.stateNotify=100,e.stateNotifyTimeout=setTimeout((function(){e.stateNotify=0}),1500)})),Object(ee.C)(this)}return Object(Kt.a)(t,[{key:"loadData",value:function(t,e){"popular"===t?this.loadPopularContent({page:1,perPage:16}):"all"===t?this.loadAllContent():"music"===t?this.loadMusicContent():"video"===t?this.loadVideoContent():"books"===t?this.loadBooksContent():"recommended"===t?this.loadRecommendedContent():"myAll"===t?this.loadMyContent():"collection"===t&&this.loadCollections()}},{key:"resetOffset",value:function(t){this.offset[t]={}}},{key:"loadPopularContent",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e){var r,n;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,ie.a.loadTopContent(e);case 2:return r=t.sent,n=r[0],this.popular=n,this.totalPages=r[1].totalPages,t.abrupt("return",n);case 7:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"loadLeonews",value:function(){var t=Object(Ht.a)($t.a.mark((function t(){var e,r,n=arguments;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=n.length>0&&void 0!==n[0]?n[0]:1,t.next=3,pe(e);case 3:return r=t.sent,1!==e&&this.news?r.news.length?this.news=be(be({},this.news),{}
1,{news:[].concat(Object(oe.a)(this.news.news),Object(oe.a)(r.news))}):this.isNewsLimitReached=!0:this.news=r,t.abrupt("return",{response:r,isLimitReached:this.isNewsLimitReached});case 6:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"setLeonewsFilters",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e){var r,n,a;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=e.tag,n=e.level,this.isNewsLimitReached=!1,t.next=4,le({tag:r,level:n});case 4:return a=t.sent,this.news=a,t.abrupt("return",a);case 7:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"loadMusicContent",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e){var r,n;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,ie.a.loadMusicContent(e);case 2:return r=t.sent,n=r[0],this.music=n,this.totalPages=r[1]&&r[1].totalPages,t.abrupt("return",n);case 7:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"loadVideoContent",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e){var r,n;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,ie.a.loadVideoContent(e);case 2:return r=t.sent,n=r[0],this.video=n,this.totalPages=r[1]&&r[1].totalPages,t.abrupt("return",n);case 7:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"loadBooksContent",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e){var r,n;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,ie.a.loadBooksContent(e);case 2:return r=t.sent,n=r[0],this.books=n,this.totalPages=r[1]&&r[1].totalPages,t.abrupt("return",n);case 7:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"loadAllContent",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e){var r,n;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,ie.a.loadAllContent(e);case 2:return r=t.sent,n=r[0],this.all=n,this.totalPages=r[1].totalPages,t.abrupt("return",n);case 7:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"loadMyContent",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e){var r,n;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,ie.a.loadMyContent(e);case 2:return r=t.sent,n=r[0],this.myAll=n,this.totalPages=r[1].totalPages,t.abrupt("return",n);case 7:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"loadRecommendedContent",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e){var r,n;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,ie.a.loadRecommendedContent(e);case 2:return r=t.sent,n=r[0],this.recommended=n,this.totalPages=r[1].totalPages,t.abrupt("return",n);case 7:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"getJungleContent",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e){var r,n,a,o,i,s,u,c;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=e&&e.page||1,n=e&&e.categoryType||"all",a=e&&(e.categoryId||e.tagId)||"all",o="".concat(n,"-").concat(a),i=r>1&&this.offset[o]&&this.offset[o][r-1],e.offsetId=i||null,t.next=8,ie.a.getJungleContent(e);case 8:return s=t.sent,u=s.data,c=s.offsetId,this.content[o]=u,this.offset[o]||(this.offset[o]={}),this.offset[o][r]=c,t.abrupt("return",u);case 15:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"loadCollections",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e){var r,n;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,ie.a.loadCollections(e);case 2:return r=t.sent,n=r,this.collections=n,this.totalPages=r[1].totalPages,t.abrupt("return",n);case 7:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"getJungleCategories",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e,r,n,a){var o,i,s;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,ie.a.getJungleCategories(e,n||r,a);case 2:if(o=t.sent,i=o&&o.data,this.categoryName=r?o.categoryName:null,!n){t.next=12;break}return t.next=8,ie.a.getJungleCategories(e,r);case 8:s=t.sent,this.parentCategoryName=r?s.categoryName:null,t.next=13;break;case 12:this.parentCategoryName=null;case 13:return r&&(this.subcategories=i),this.categories[e]=i,t.abrupt("return",i);case 16:case"end":return t.stop()}}),t,this)})));return function(e,r,n,a){return t.apply(this,arguments)}}()},{key:"getJungleRecommendations",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e){var r,n;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,ie.a.getJungleRecommendations(e);case 2:n=t.sent,this.content.recommendations=n.data,this.recommendationCategories=null!==(r=n.categoryList)&&void 0!==r?r:[];case 5:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"getJungleCategoriesForEdit",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e,r,n){var a,o;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,ie.a.getJungleCategories(e,r,n);case 2:return a=t.sent,o=a&&a.data,this.categoryName=r?a.categoryName:null,r?this.subcategories=o:this.categories[e]=o,t.abrupt("return",o);case 7:case"end":return t.stop()}}),t,this)})));return function(e,r,n){return t.apply(this,arguments)}}()},{key:"loadCollectionsAll",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e){var r,n;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,ie.a.loadCollectionsAll(e);case 2:return r=t.sent,n=r,this.collectionsAll=n,t.abrupt("return",n);case 6:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"loadCollectionsAllNew",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e){var r;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,ie.a.getJungleCategories("collections");case 2:return r=t.sent,this.collectionsAll=r,t.abrupt("return",r);case 5:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"loadGlobalInterests",value:function(){var t=Object(Ht.a)($t.a.mark((function t(){return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,ie.a.getGlobalInterests();case 2:return this.globalInterests=t.sent,t.abrupt("return",this.globalInterests);case 4:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"loadContentForEdit",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e){var r;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,ie.a.loadContentForEdit(e);case 2:return r=t.sent,this.contentForEdit[e]=r,t.abrupt("return",r);case 5:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"loadContent",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e,r){var n,a,o,i,s,u,c,p,l;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.isFetching=!0,t.next=3,ie.a.loadContent(e,r);case 3:return n=t.sent,a=n.parsedSentences,o=n.parsedTitle,i=n.text,s=n.addedWords,u=n.pageLearningStatus,c=Object(ae.a)(n,de),p=n.lastViewedPage,(l=be(be({},this.contentById[e]),c)).pages=be(be({},l.pages),{},Object(Yt.a)({},r||p,{parsedSentences:a,parsedTitle:o,text:i,addedWords:s,learningStatus:u})),this.isFetching=!1,this.contentById[e]=l,t.abrupt("return",l);case 11:case"end":return t.stop()}}),t,this)})));return function(e,r){return t.apply(this,arguments)}}()},{key:"loadSearchSuggest",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e){return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,ie.a.loadSearch(e);case 2:return this.searchSuggest=t.sent,t.abrupt("return",this.searchSuggest);case 4:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"setContentLearningStatus",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e,r){var n,a,o=this;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,ie.a.setContentLearningStatus(e,r);case 2:return n=t.sent,a=this.content,e&&(Object.keys(a).map((function(t){a[t].map((function(n,a){n.id===r&&(n.learningStatus=se.j[e],o.content[t][a].learningStatus=se.j[e])}))})),se.j[e]>0&&this.switchStateNotify()),t.abrupt("return",n);case 6:case"end":return t.stop()}}),t,this)})));return function(e,r){return t.apply(this,arguments)}}()}]),t}(),yt=Object(Xt.a)(ht.prototype,"popular",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),gt=Object(Xt.a)(ht.prototype,"news",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),vt=Object(Xt.a)(ht.prototype,"recommended",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),wt=Object(Xt.a)(ht.prototype,"collections",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),Ot=Object(Xt.a)(ht.prototype,"parentCategoryName",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),mt=Object(Xt.a)(ht.prototype,"categoryName",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),jt=Object(Xt.a)(ht.prototype,"categories",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{video:[],music:[],books:[]}}}),St=Object(Xt.a)(ht.prototype,"subcategories",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),xt=Object(Xt.a)(ht.prototype,"content",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),kt=Object(Xt.a)(ht.prototype,"offset",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),Dt=Object(Xt.a)(ht.prototype,"prevOffset",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),_t=Object(Xt.a)(ht.prototype,"music",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),Tt=Object(Xt.a)(ht.prototype,"video",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),It=Object(Xt.a)(ht.prototype,"books",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),Lt=Object(Xt.a)(ht.prototype,"collectionsAll",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),Pt=Object(Xt.a)(ht.prototype,"globalInterests",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),Ct=Object(Xt.a)(ht.prototype,"contentById",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),Wt=Object(Xt.a)(ht.prototype,"searchSuggest",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),Et=Object(Xt.a)(ht.prototype,"stateNotify",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),At=Object(Xt.a)(ht.prototype,"stateConfirm",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Nt=Object(Xt.a)(ht.prototype,"toRemoveId",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Ft=Object(Xt.a)(ht.prototype,"totalPages",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Ut=Object(Xt.a)(ht.prototype,"filtersState",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),zt=Object(Xt.a)(ht.prototype,"isPremShow",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Rt=Object(Xt.a)(ht.prototype,"isFetching",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Mt=Object(Xt.a)(ht.prototype,"contentForEdit",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),Bt=Object(Xt.a)(ht.prototype,"all",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),Gt=Object(Xt.a)(ht.prototype,"myAll",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),Vt=Object(Xt.a)(ht.prototype,"isNewsLimitReached",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Jt=Object(Xt.a)(ht.prototype,"recommendationCategories",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),Object(Xt.a)(ht.prototype,"loadPopularContent",[K],Object.getOwnPropertyDescriptor(ht.prototype,"loadPopularContent"),ht.prototype),Object(Xt.a)(ht.prototype,"loadLeonews",[Y],Object.getOwnPropertyDescriptor(ht.prototype,"loadLeonews"),ht.prototype),Object(Xt.a)(ht.prototype,"loadMusicContent",[X],Ob
1ject.getOwnPropertyDescriptor(ht.prototype,"loadMusicContent"),ht.prototype),Object(Xt.a)(ht.prototype,"loadVideoContent",[Z],Object.getOwnPropertyDescriptor(ht.prototype,"loadVideoContent"),ht.prototype),Object(Xt.a)(ht.prototype,"loadBooksContent",[$],Object.getOwnPropertyDescriptor(ht.prototype,"loadBooksContent"),ht.prototype),Object(Xt.a)(ht.prototype,"loadAllContent",[tt],Object.getOwnPropertyDescriptor(ht.prototype,"loadAllContent"),ht.prototype),Object(Xt.a)(ht.prototype,"loadMyContent",[et],Object.getOwnPropertyDescriptor(ht.prototype,"loadMyContent"),ht.prototype),Object(Xt.a)(ht.prototype,"loadRecommendedContent",[rt],Object.getOwnPropertyDescriptor(ht.prototype,"loadRecommendedContent"),ht.prototype),Object(Xt.a)(ht.prototype,"getJungleContent",[nt],Object.getOwnPropertyDescriptor(ht.prototype,"getJungleContent"),ht.prototype),Object(Xt.a)(ht.prototype,"loadCollections",[at],Object.getOwnPropertyDescriptor(ht.prototype,"loadCollections"),ht.prototype),Object(Xt.a)(ht.prototype,"getJungleCategories",[ot],Object.getOwnPropertyDescriptor(ht.prototype,"getJungleCategories"),ht.prototype),Object(Xt.a)(ht.prototype,"getJungleRecommendations",[it],Object.getOwnPropertyDescriptor(ht.prototype,"getJungleRecommendations"),ht.prototype),Object(Xt.a)(ht.prototype,"getJungleCategoriesForEdit",[st],Object.getOwnPropertyDescriptor(ht.prototype,"getJungleCategoriesForEdit"),ht.prototype),Object(Xt.a)(ht.prototype,"loadCollectionsAll",[ut],Object.getOwnPropertyDescriptor(ht.prototype,"loadCollectionsAll"),ht.prototype),Object(Xt.a)(ht.prototype,"loadCollectionsAllNew",[ct],Object.getOwnPropertyDescriptor(ht.prototype,"loadCollectionsAllNew"),ht.prototype),Object(Xt.a)(ht.prototype,"loadGlobalInterests",[pt],Object.getOwnPropertyDescriptor(ht.prototype,"loadGlobalInterests"),ht.prototype),Object(Xt.a)(ht.prototype,"loadContentForEdit",[lt],Object.getOwnPropertyDescriptor(ht.prototype,"loadContentForEdit"),ht.prototype),Object(Xt.a)(ht.prototype,"loadContent",[dt],Object.getOwnPropertyDescriptor(ht.prototype,"loadContent"),ht.prototype),Object(Xt.a)(ht.prototype,"loadSearchSuggest",[ft],Object.getOwnPropertyDescriptor(ht.prototype,"loadSearchSuggest"),ht.prototype),Object(Xt.a)(ht.prototype,"setContentLearningStatus",[bt],Object.getOwnPropertyDescriptor(ht.prototype,"setContentLearningStatus"),ht.prototype),ht),zn=function(t){return Object(Ht.a)($t.a.mark((function e(){var r,n,a,o,i,s,u,c,p;return $t.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(ue.a)(ce.f.GET_LEARNING_MAIN,{apiVersion:ce.a,wordSetId:t});case 2:return r=e.sent,n=r.data,a=n[0],o=a.word,i=a.grammar,s=a.reading,u=a.audio,c=a.speaking,p=n[0].wordSets,e.abrupt("return",{wordTrainings:o,grammarTrainings:i,readingTrainings:s,audioTrainings:u,speakingTrainings:c,wordSetsIdsNames:p});case 7:case"end":return e.stop()}}),e)})))()},Rn=function(){return Object(Ht.a)($t.a.mark((function t(){var e,r,n,a,o;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(ue.a)(ce.f.GET_COURSES,{apiVersion:ce.a});case 2:return e=t.sent,r=e.grammar,n=e.thematic,a=e.banner,o=e.intensive,t.abrupt("return",{grammarCourses:r,thematicOfCourses:n,banners:a,intensives:o});case 8:case"end":return t.stop()}}),t)})))()},Mn=function(t){return Object(Ht.a)($t.a.mark((function e(){var r,n;return $t.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=parseInt(""+t,10),r=isFinite(n)?{courseId:n}:{courseName:t},e.next=4,Object(ue.a)(ce.f.GET_COURSE_MODULES,{apiVersion:ce.a,courseId:r.courseId||0,courseName:r.courseName});case 4:return e.abrupt("return",e.sent);case 5:case"end":return e.stop()}}),e)})))()},Bn=function(){return Object(Ht.a)($t.a.mark((function t(){return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(ue.a)(ce.f.GET_GRAMMAR_RULES,{apiVersion:ce.c,trainingName:"grammar_getrules"});case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)})))()},Gn=function(t){return Object(Ht.a)($t.a.mark((function e(){var r;return $t.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=parseInt(""+t,10),e.next=3,Object(ue.a)(ce.f.GET_COURSE_LESSONS,{apiVersion:ce.a,moduleId:r});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e)})))()},Vn=function(t){return Object(Ht.a)($t.a.mark((function e(){var r;return $t.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=parseInt(""+t,10),e.next=3,Object(ue.a)(ce.f.GET_COURSE_LESSON,{apiVersion:ce.a,lessonId:r});case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e)})))()},Jn=function(t,e){return Object(Ht.a)($t.a.mark((function r(){var n,a;return $t.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=parseInt(""+t,10),a=parseInt(""+e,10),r.next=4,Object(ue.a)(ce.f.GET_COURSE_LESSON,{apiVersion:ce.a,moduleId:n,itemId:a});case 4:return r.abrupt("return",r.sent);case 5:case"end":return r.stop()}}),r)})))()},Hn=function(t,e){return Object(Ht.a)($t.a.mark((function r(){var n,a;return $t.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=parseInt(""+t,10),a=e?parseInt(""+e,10):void 0,r.next=4,Object(ue.a)(ce.f.GET_COURSE_TASK,{apiVersion:ce.a,itemId:n,moduleId:a});case 4:return r.abrupt("return",r.sent);case 5:case"end":return r.stop()}}),r)})))()},qn=function(t,e,r){return Object(Ht.a)($t.a.mark((function n(){var a,o;return $t.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return a=parseInt(""+t,10),n.next=3,Object(ue.a)(ce.f.SET_COURSE_TASK,{apiVersion:ce.a,action:"answer",itemId:a,moduleId:e,valueList:r});case 3:return o=n.sent,fu.applyTrainingStatus(o),n.abrupt("return",o);case 6:case"end":return n.stop()}}),n)})))()},Qn=function(t){return Object(Ht.a)($t.a.mark((function e(){return $t.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(ue.a)(ce.f.PROCESS_CALL,{apiVersion:ce.a,trainingName:"setcourseitem",data:{moduleId:t,action:"reset"}});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})))()},Kn=function(t,e,r){return Object(Ht.a)($t.a.mark((function n(){var a,o,i;return $t.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return a={wordSetId:e},o=new URLSearchParams(window.location.search),(i=o.get("newsSessionId"))&&(a.news_session_id=+i),n.next=4,Object(ue.a)(ce.f.PROCESS_CALL,{apiFlag:r,api_call:"process_training",apiVersion:ce.b,trainingName:"word_get_".concat(t),data:a});case 4:return n.abrupt("return",n.sent);case 5:case"end":return n.stop()}}),n)})))()},Yn=function(t,e,r){return Object(Ht.a)($t.a.mark((function n(){return $t.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Object(ue.a)(ce.f.PROCESS_CALL,{api_call:"process_training",apiVersion:ce.b,trainingName:"word_set_".concat(t),data:{words:e,wordSetId:r}});case 2:return n.abrupt("return",n.sent);case 3:case"end":return n.stop()}}),n)})))()},Xn=function(t,e){return Object(Ht.a)($t.a.mark((function r(){return $t.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,Object(ue.a)(ce.f.PROCESS_CALL,{api_call:"process_training",apiVersion:ce.b,trainingName:"word_set_word_mix",data:{answersResultOnTraining:t,wordSetId:e}});case 2:return r.abrupt("return",r.sent);case 3:case"end":return r.stop()}}),r)})))()},Zn=function(t){return Object(Ht.a)($t.a.mark((function e(){return $t.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(ue.a)(ce.f.PROCESS_CALL,{api_call:"process_training",apiVersion:ce.b,trainingName:"word_get_word_mix",data:{excludedWordIds:t,contentId:0,wordSetId:"dictionary"}});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})))()},$n=function(t){return Object(Ht.a)($t.a.mark((function e(){return $t.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Object(ue.a)(ce.f.GET_SET_LIST,{apiVersion:ce.b,data:{training:t}}));case 1:case"end":return e.stop()}}),e)})))()},ta=function(){return Object(Ht.a)($t.a.mark((function t(){return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",Object(ue.a)(ce.f.GET_STORY_SETS,{apiVersion:ce.b}));case 1:case"end":return t.stop()}}),t)})))()},ea=function(){return Object(Ht.a)($t.a.mark((function t(){return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",Object(ue.a)(ce.f.GET_PHRASE_SETS,{apiVersion:ce.b}));case 1:case"end":return t.stop()}}),t)})))()},ra=function(t,e,r){return Object(Ht.a)($t.a.mark((function n(){return $t.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",Object(ue.a)(ce.f.LOAD_TRAINING,{apiVersion:ce.b,data:{training:t,textId:e,reset:r}}));case 1:case"end":return n.stop()}}),n)})))()},na=function(t){return Object(Ht.a)($t.a.mark((function e(){return $t.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Object(ue.a)(ce.f.LOAD_STORY,{apiVersion:ce.b,story:t}));case 1:case"end":return e.stop()}}),e)})))()},aa=function(t){return Object(Ht.a)($t.a.mark((function e(){return $t.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Object(ue.a)(ce.f.LOAD_PHRASE_COLLECTION,{apiVersion:ce.b,data:{collection:t}}));case 1:case"end":return e.stop()}}),e)})))()},oa=function(t,e,r){return Object(Ht.a)($t.a.mark((function n(){return $t.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",Object(ue.a)(ce.f.SAVE_READING_TRAINING_RESULT,{apiVersion:ce.b,data:{training:t,textId:e,mistakes:r}}));case 1:case"end":return n.stop()}}),n)})))()},ia=function(t,e){return Object(Ht.a)($t.a.mark((function r(){return $t.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Object(ue.a)(ce.f.LISTENING_TRAIN_STORY,{apiVersion:ce.b,data:{story:t,numMistakes:e}}));case 1:case"end":return r.stop()}}),r)})))()},sa=function(t,e){return Object(Ht.a)($t.a.mark((function r(){return $t.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Object(ue.a)(ce.f.LISTENING_TRAIN_PHRASES,{apiVersion:ce.b,data:{collection:t,numCorrect:e}}));case 1:case"end":return r.stop()}}),r)})))()},ua=function(t){return Object(Ht.a)($t.a.mark((function e(){return $t.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Object(ue.a)(ce.f.GRAMMAR_GET_PAGES,{apiVersion:ce.b,ruleId:t}));case 1:case"end":return e.stop()}}),e)})))()},ca=function(t,e,r){return Object(Ht.a)($t.a.mark((function n(){return $t.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",Object(ue.a)(ce.f.GRAMMAR_GET_TAG_EXPRESSIONS,{apiVersion:ce.b,tagId:t,offset:e,limit:r}));case 1:case"end":return n.stop()}}),n)})))()},pa=function(t){return Object(Ht.a)($t.a.mark((function e(){return $t.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Object(ue.a)(ce.f.GRAMMAR_GET_RULE_EXPRESSIONS,{apiVersion:ce.b,ruleId:t}));case 1:case"end":return e.stop()}}),e)})))()},la=function(t,e){return Object(Ht.a)($t.a.mark((function r(){return $t.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Object(ue.a)(ce.f.GRAMMAR_SAVE_TRAINING_RESULT,{apiVersion:ce.b,ruleId:t,answers:e}));case 1:case"end":return r.stop()}}),r)})))()},da=(he=ee.j.bound,ye=ee.j.bound,ge=ee.j.bound,ve=ee.j.bound,we=ee.j.bound,Oe=ee.j.bound,me=ee.j.bound,je=ee.j.bound,Se=ee.j.bound,xe=ee.j.bound,ke=ee.j.bound,De=ee.j.bound,_e=ee.j.bound,Te=ee.j.bound,Ie=ee.j.bound,Le=ee.j.bound,Pe=ee.j.bound,Ce=ee.j.bound,We=ee.j.bound,Ee=ee.j.bound,Ae=ee.j.bound,Ne=ee.j.bound,Fe=ee.j.bound,Ue=ee.j.bound,ze=ee.j.bound,Re=ee.j.bound,Me=ee.j.bound,Be=function(){function t(){Object(Qt.a)(this,t),Object(qt.a)(this,"wordTrainings",Ge,this),Object(qt.a)(this,"grammarTrainings",Ve,this),Object(qt.a)(this,"readingTrainings",Je,this),Object(qt.a)(this,"audioTrainings",He,this),Object(qt.a)(this,"speakingTrainings",qe,this),Object(qt.a)(this,"trainingDetails",Qe,this),Object(qt.a)(this,"trainingDetailsStatus",Ke,this),Object(qt.a)(this,"trainingResults",Ye,this),Object(qt.a)(this,"wordSetsIdsNames",Xe,this),Object(qt.a)(this,"isFetching",Ze,this),Object(qt.a)(this,"experienceSkills",$e,this),Object(qt.a)(this,"grammarTraining",tr,this),Object(qt.a)(this,"grammarRule",er,this),Object(qt.a)(this,"grammarTags",rr,this),Object(qt.a)(this,"grammarResults",nr,this),Object(qt.a)(this,"grammarRuleId",ar,this),Object(qt.a)(this,"grammarRuleTitle",or,this),Object(qt.a)(this,"grammarCourses",ir,this),Object(qt.a)(this,"grammarTrainingsDetails",sr,this),Object(qt.a)(this,"thematicOfCourses",ur,this),Object(qt.a)(this,"banners",cr,this),Object(qt.a)(this,"intensives",pr,this),Object(qt.a)(this,"lastCourseDetails",lr,this),Object(qt.a)(this,"courses",dr,this),Object(qt.a)(this,"lastModuleDetails",fr,this),Object(qt.a)(this,"lastLessonDetail
1s",br,this),Object(qt.a)(this,"lastTaskDetails",hr,this),Object(qt.a)(this,"lastRuleDetails",yr,this),Object(qt.a)(this,"lastCheatDetails",gr,this),Object(qt.a)(this,"lastAnswerDetails",vr,this),Object(qt.a)(this,"lastAnswerDetailsCbn",wr,this),Object(qt.a)(this,"modules",Or,this),Object(qt.a)(this,"reservedWords",mr,this),Object(qt.a)(this,"finalData",jr,this),Object(qt.a)(this,"newDayOnRoad",Sr,this),Object(qt.a)(this,"addedXp",xr,this),Object(qt.a)(this,"prevHungry",kr,this),Object(qt.a)(this,"prevHungryLessonId",Dr,this),Object(ee.C)(this)}return Object(Kt.a)(t,[{key:"loadLearnData",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e){var r,n=this;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.isFetching=!0,t.next=3,zn(e);case 3:return r=t.sent,Object(ee.I)((function(){var t=r.wordTrainings,e=r.grammarTrainings,a=r.readingTrainings,o=r.audioTrainings,i=r.speakingTrainings,s=r.wordSetsIdsNames;n.wordTrainings=t,n.grammarTrainings=e,n.readingTrainings=a,n.audioTrainings=o,n.speakingTrainings=i,n.wordSetsIdsNames=s,n.isFetching=!1})),t.abrupt("return",r);case 6:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"loadCourses",value:function(){var t=Object(Ht.a)($t.a.mark((function t(){var e,r,n,a,o,i=this;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Rn();case 2:e=t.sent,r=e.grammarCourses,n=e.thematicOfCourses,a=e.banners,o=e.intensives,Object(ee.I)((function(){i.grammarCourses=r,i.thematicOfCourses=n,i.banners=a,i.intensives=o}));case 8:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}()},{key:"resetNewDayOnRoad",value:function(){this.newDayOnRoad=!1}},{key:"loadCourseModules",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e){var r,n=this;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Mn(e);case 2:r=t.sent,Object(ee.I)((function(){n.lastCourseDetails=r}));case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()},{key:"loadGrammarRules",value:function(){var t=Object(Ht.a)($t.a.mark((function t(){var e,r=this;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Bn();case 2:e=t.sent,Object(ee.I)((function(){r.grammarTrainingsDetails=e}));case 4:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}()},{key:"loadCourseLessons",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e){var r,n=this;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.newDayOnRoad=!1,t.next=3,Gn(e);case 3:r=t.sent,Object(ee.I)((function(){n.lastModuleDetails=r}));case 5:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"loadCourseLesson",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e){var r,n=this;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Vn(e);case 2:r=t.sent,Object(ee.I)((function(){n.lastLessonDetails=r}));case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()},{key:"loadCourseLessonByTask",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e,r){var n,a=this;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Jn(e,r);case 2:n=t.sent,Object(ee.I)((function(){a.lastLessonDetails=n}));case 4:case"end":return t.stop()}}),t)})));return function(e,r){return t.apply(this,arguments)}}()},{key:"loadTaskRule",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e,r){var n,a=this;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Hn(e,r);case 2:n=t.sent,Object(ee.I)((function(){a.lastRuleDetails=n}));case 4:case"end":return t.stop()}}),t)})));return function(e,r){return t.apply(this,arguments)}}()},{key:"loadCourseTask",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e,r){var n,a,o,i=this;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Hn(e,r);case 2:n=t.sent,a=null===n||void 0===n?void 0:n.result,o=a&&a.reduce((function(t,e){return t+e.isCheat}
1),0),Object(ee.I)((function(){i.lastTaskDetails=n,i.lastTaskDetails.cheatStatus=o>0?1:0,i.lastAnswerDetails=a,(null===n||void 0===n?void 0:n.groupTask)&&n.groupTask.map((function(t){return i.lastAnswerDetailsCbn[t.itemId]=t.result})),i.lastRuleDetails=[],i.experienceSkills=[]}));case 6:case"end":return t.stop()}}),t)})));return function(e,r){return t.apply(this,arguments)}}()},{key:"snapshotHungry",value:function(){var t,e,r,n=null!==(t=null===(e=this.lastLessonDetails)||void 0===e?void 0:e.lessonId)&&void 0!==t?t:null;if(null===n||this.prevHungryLessonId!==n){var a=null===(r=fu.userStatus)||void 0===r?void 0:r.hungry;"number"===typeof a&&(this.prevHungryLessonId=n,this.prevHungry=a)}}},{key:"resetHungrySnapshot",value:function(){this.prevHungry=null,this.prevHungryLessonId=null}},{key:"setCourseTask",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e,r,n){var a,o,i,s,u,c,p=this;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.snapshotHungry(),t.next=3,qn(e,r,n);case 3:a=t.sent,o=null===a||void 0===a?void 0:a.result,i=o&&o.reduce((function(t,e){return t+(e.isCorrect-(e.isCheat||0))}),0)||0,s=o&&o.reduce((function(t,e){return t+e.isCheat}),0)||0,u=o&&o.length||0,c=u>i?1:2,Object(ee.I)((function(){var t;p.lastTaskDetails.itemStatus=c,p.lastTaskDetails.cheatStatus=s>0?1:0,p.lastAnswerDetails=null===a||void 0===a?void 0:a.result,null!==a&&void 0!==a&&null!==(t=a.extra)&&void 0!==t&&t.new_day_on_road&&(p.newDayOnRoad=!0),p.addedXp+=null===a||void 0===a?void 0:a.xpAdded,p.finalData=null===a||void 0===a?void 0:a.extra,p.experienceSkills=null===a||void 0===a?void 0:a.experienceSkills}));case 10:case"end":return t.stop()}}),t,this)})));return function(e,r,n){return t.apply(this,arguments)}}()},{key:"setCourseTaskCbn",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e,r,n){var a,o,i,s,u,c,p=this;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.snapshotHungry(),t.next=3,qn(e,r,n);case 3:a=t.sent,o=null===a||void 0===a?void 0:a.result,i=o&&o.reduce((function(t,e){return t+(e.isCorrect-(e.isCheat||0))}),0)||0,s=o&&o.reduce((function(t,e){return t+e.isCheat}),0)||0,u=o&&o.length||0,c=u>i?1:2,Object(ee.I)((function(){p.lastTaskDetails.itemStatus=1!==p.lastTaskDetails.itemStatus?c:p.lastTaskDetails.itemStatus,p.lastTaskDetails.cheatStatus=p.lastTaskDetails.cheatStatus+s,p.lastAnswerDetailsCbn[e]=null===a||void 0===a?void 0:a.result,p.experienceSkills=null===a||void 0===a?void 0:a.experienceSkills}));case 10:case"end":return t.stop()}}),t,this)})));return function(e,r,n){return t.apply(this,arguments)}}()},{key:"setCourseTaskCheat",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e,r,n){var a,o=this;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,qn(e,r,n);case 2:a=t.sent,Object(ee.I)((function(){o.lastCheatDetails=null===a||void 0===a?void 0:a.cheatResponse}));case 4:case"end":return t.stop()}}),t)})));return function(e,r,n){return t.apply(this,arguments)}}()},{key:"clearAnswerData",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e){return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.lastAnswerDetailsCbn={},this.lastAnswerDetails=[],this.lastTaskDetails.itemStatus=0,this.lastTaskDetails.cheatStatus=0;case 4:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"restartModule",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e){var r,n=this;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Qn(e);case 2:return t.next=4,Gn(e);case 4:r=t.sent,Object(ee.I)((function(){n.lastModuleDetails=r}));case 6:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()},{key:"getTraining",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e,r,n){var a,o=this;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.trainingDetailsStatus="fetching",t.next=3,Kn(e,r,n);case 3:a=t.sent,Object(ee.I)((function(){o.trainingDetails=a,o.trainingDetailsStatus="ready"}));case 5:case"end":return t.stop()}}),t,this)})));return function(e,r,n){return t.apply(this,arguments)}}()},{key:"setTraining",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e,r,n){var a,o=this;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Yn(e,r,n);case 2:return a=t.sent,Object(ee.I)((function(){o.trainingResults=a})),fu.applyTrainingStatus(a),t.abrupt("return",a);case 6:case"end":return t.stop()}}),t)})));return function(e,r,n){return t.apply(this,arguments)}}()},{key:"setTrainingWordMix",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e,r){var n,a=this;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Xn(e,r);case 2:return n=t.sent,Object(ee.I)((function(){a.trainingResults=n})),fu.applyTrainingStatus(n),t.abrupt("return",n);case 6:case"end":return t.stop()}}),t)})));return function(e,r){return t.apply(this,arguments)}}()},{key:"getReservedWords",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e){var r,n=this;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Zn(e);case 2:r=t.sent,Object(ee.I)((function(){n.reservedWords=r}));case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()},{key:"getSetList",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e){var r,n;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,$n(e);case 2:if(r=t.sent,!Object(te.isNull)(r)&&!Object(te.isEmpty)(r)){t.next=5;break}return t.abrupt("return",{error_msg:"Empty data"});case 5:return n=r.map((function(t){var e={exercise:{},progress:{trainedItems:[],untrainedItems:[],isSelected:!1}};return e.exercise.id=t.id,e.exercise.name=t.name,e.exercise.level=t.level,e.exercise.images=t.images,Object.keys(t.textsTrained).forEac
1h((function(r){var n=+r;t.textsTrained[r]?e.progress.trainedItems.push(n):e.progress.untrainedItems.push(n)})),e.progress.isStarted=t.isStarted,e})),t.abrupt("return",n);case 7:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()},{key:"getStorySets",value:function(){var t=Object(Ht.a)($t.a.mark((function t(){var e,r;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,ta();case 2:if(e=t.sent,!Object(te.isNull)(e)&&!Object(te.isEmpty)(e)){t.next=5;break}return t.abrupt("return",{error_msg:"Empty data"});case 5:return r=e.map((function(t){var e={exercise:{},progress:{trainedItems:[],untrainedItems:[]}};return e.exercise.id=t.set.id,e.exercise.name=t.set.name,e.exercise.level=t.set.level,e.exercise.images=t.set.images,e.exercise.iconUpdatedAt=t.set.iconUpdatedAt,e.progress.trainedItems=t.progress.trainedItems,e.progress.untrainedItems=t.progress.untrainedItems,e.progress.isStarted=t.progress.isStarted,e})),t.abrupt("return",r);case 7:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}()},{key:"getPhraseSets",value:function(){var t=Object(Ht.a)($t.a.mark((function t(){var e,r;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,ea();case 2:if(e=t.sent,!Object(te.isNull)(e)&&!Object(te.isEmpty)(e)){t.next=5;break}return t.abrupt("return",{error_msg:"Empty data"});case 5:if(!e.error_msg){t.next=7;break}return t.abrupt("return",e);case 7:return r=e.map((function(t){var e={exercise:{},progress:{trainedItems:[],untrainedItems:[]}};return e.exercise.id=t.set.id,e.exercise.name=t.set.name,e.exercise.level=t.set.level,e.exercise.images=t.set.images,e.exercise.iconUpdatedAt=t.set.iconUpdatedAt,e.progress.trainedItems=t.progress.trainedItems,e.progress.untrainedItems=t.progress.untrainedItems,e.progress.isStarted=t.progress.isStarted,e})),t.abrupt("return",r);case 9:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}()},{key:"loadTraining",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e,r,n){var a;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.newDayOnRoad=!1,this.addedXp=0,t.next=4,ra(e,r,n);case 4:if(a=t.sent,!Object(te.isNull)(a)&&!Object(te.isEmpty)(a)){t.next=7;break}return t.abrupt("return",{error_msg:"Empty data"});case 7:return a.config.constrains.time*=1e3,t.abrupt("return",a);case 9:case"end":return t.stop()}}),t,this)})));return function(e,r,n){return t.apply(this,arguments)}}()},{key:"loadStory",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e){var r;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,na(e);case 2:if(r=t.sent,!Object(te.isNull)(r)&&!Object(te.isEmpty)(r)){t.next=5;break}return t.abrupt("return",{error_msg:"Empty data"});case 5:return t.abrupt("return",r);case 6:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()},{key:"loadPhraseCollection",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e){var r;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,aa(e);case 2:if(r=t.sent,!Object(te.isNull)(r)&&!Object(te.isEmpty)(r)){t.next=5;break}return t.abrupt("return",{error_msg:"Empty data"});case 5:return t.abrupt("return",r);case 6:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()},{key:"saveReadingTrainingResult",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e,r,n){var a;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,oa(e,r,n);case 2:return a=t.sent,fu.applyTrainingStatus(null===a||void 0===a?void 0:a.learningProgress),t.abrupt("return",a);case 5:case"end":return t.stop()}}),t)})));return function(e,r,n){return t.apply(this,arguments)}}()},{key:"listeningTrainStory",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e,r){var n;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,ia(e,r);case 2:return n=t.sent,fu.applyTrainingStatus(null===n||void 0===n?void 0:n.learningProgress),t.abrupt("return",n);case 5:case"end":return t.stop()}}),t)})));return function(e,r){return t.apply(this,arguments)}}()},{key:"listeningTrainPhrases",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e,r){var n;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,sa(e,r);case 2:return n=t.sent,fu.applyTrainingStatus(null===n||void 0===n?void 0:n.learningProgress),t.abrupt("return",n);case 5:case"end":return t.stop()}}),t)})));return function(e,r){return t.apply(this,arguments)}}()},{key:"findRuleIdByCode",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e){var r,n,a,o,i=this;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=e&&e.split("?")[0].split("#")[0],t.next=3,Bn();case 3:return n=t.sent,a=null,o="",(null===n||void 0===n?void 0:n.category)&&n.category.map((function(t){t.modules&&t.modules.map((function(t){(t.grammarCode===r||t.url.slice(-(r.length+1))==="/".concat(r))&&!a&&
1(a=t.id,o=t.code)}))})),Object(ee.I)((function(){i.grammarTrainingsDetails=n,i.grammarRuleId=a,i.grammarRuleTitle=o})),t.abrupt("return",a);case 9:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()},{key:"getGrammarPages",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e){var r,n=this;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,ua(e);case 2:return r=t.sent,Object(ee.I)((function(){n.grammarTraining=r&&r.data})),t.abrupt("return",r&&r.data);case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()},{key:"getGrammarPagesByCode",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e){var r;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.findRuleIdByCode(e);case 2:return r=t.sent,t.abrupt("return",this.getGrammarPages(r));case 4:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"getGrammarTagExpressions",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e,r,n){var a,o=this;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,ca(e,r,n);case 2:return a=t.sent,Object(ee.I)((function(){0===r&&(o.grammarTags[e]=null),o.grammarTags[e]=Object(te.unionBy)(o.grammarTags[e],a.data,"id")})),t.abrupt("return",a&&a.data);case 5:case"end":return t.stop()}}),t)})));return function(e,r,n){return t.apply(this,arguments)}}()},{key:"getGrammarRuleExpressions",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e){var r,n=this;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,pa(e);case 2:return r=t.sent,Object(ee.I)((function(){n.grammarRule=r})),t.abrupt("return",r);case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()},{key:"getGrammarRuleExpressionsByCode",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e){var r;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.findRuleIdByCode(e);case 2:return r=t.sent,t.abrupt("return",this.getGrammarRuleExpressions(r));case 4:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"setGrammarTrainingResult",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e,r){var n,a=this;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,la(e,r);case 2:return n=t.sent,Object(ee.I)((function(){a.grammarResults=n})),fu.applyTrainingStatus(null===n||void 0===n?void 0:n.learningProgress),t.abrupt("return",n);case 6:case"end":return t.stop()}}),t)})));return function(e,r){return t.apply(this,arguments)}}()},{key:"setFetchingStatus",value:function(t){this.isFetching=t}}]),t}(),Ge=Object(Xt.a)(Be.prototype,"wordTrainings",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),Ve=Object(Xt.a)(Be.prototype,"grammarTrainings",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),Je=Object(Xt.a)(Be.prototype,"readingTrainings",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),He=Object(Xt.a)(Be.prototype,"audioTrainings",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),qe=Object(Xt.a)(Be.prototype,"speakingTrainings",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),Qe=Object(Xt.a)(Be.prototype,"trainingDetails",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),Ke=Object(Xt.a)(Be.prototype,"trainingDetailsStatus",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return"undefined"}}),Ye=Object(Xt.a)(Be.prototype,"trainingResults",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),Xe=Object(Xt.a)(Be.prototype,"wordSetsIdsNames",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),Ze=Object(Xt.a)(Be.prototype,"isFetching",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),$e=Object(Xt.a)(Be.prototype,"experienceSkills",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),tr=Object(Xt.a)(Be.prototype,"grammarTraining",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),er=Object(Xt.a)(Be.prototype,"grammarRule",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),rr=Object(Xt.a)(Be.prototype,"grammarTags",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),nr=Object(Xt.a)(Be.prototype,"grammarResults",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),ar=Object(Xt.a)(Be.prototype,"grammarRuleId",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),or=Object(Xt.a)(Be.prototype,"grammarRuleTitle",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),ir=Object(Xt.a)(Be.prototype,"grammarCourses",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),sr=Object(Xt.a)(Be.prototype,"grammarTrainingsDetails",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),ur=Object(Xt.a)(Be.prototype,"thematicOfCourses",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),cr=Object(Xt.a)(Be.prototype,"banners",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),pr=Object(Xt.a)(Be.prototype,"intensives",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),lr=Object(Xt.a)(Be.prototype,"lastCourseDetails",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),dr=Object(Xt.a)(Be.prototype,"courses",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new Map}}),fr=Object(Xt.a)(Be.prototype,"lastModuleDetails",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}
1),br=Object(Xt.a)(Be.prototype,"lastLessonDetails",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),hr=Object(Xt.a)(Be.prototype,"lastTaskDetails",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),yr=Object(Xt.a)(Be.prototype,"lastRuleDetails",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),gr=Object(Xt.a)(Be.prototype,"lastCheatDetails",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),vr=Object(Xt.a)(Be.prototype,"lastAnswerDetails",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),wr=Object(Xt.a)(Be.prototype,"lastAnswerDetailsCbn",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),Or=Object(Xt.a)(Be.prototype,"modules",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new Map}}),mr=Object(Xt.a)(Be.prototype,"reservedWords",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),jr=Object(Xt.a)(Be.prototype,"finalData",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Sr=Object(Xt.a)(Be.prototype,"newDayOnRoad",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),xr=Object(Xt.a)(Be.prototype,"addedXp",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),kr=Object(Xt.a)(Be.prototype,"prevHungry",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Dr=Object(Xt.a)(Be.prototype,"prevHungryLessonId",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Object(Xt.a)(Be.prototype,"loadLearnData",[he],Object.getOwnPropertyDescriptor(Be.prototype,"loadLearnData"),Be.prototype),Object(Xt.a)(Be.prototype,"loadCourses",[ye],Object.getOwnPropertyDescriptor(Be.prototype,"loadCourses"),Be.prototype),Object(Xt.a)(Be.prototype,"loadCourseModules",[ge],Object.getOwnPropertyDescriptor(Be.prototype,"loadCourseModules"),Be.prototype),Object(Xt.a)(Be.prototype,"loadGrammarRules",[ve],Object.getOwnPropertyDescriptor(Be.prototype,"loadGrammarRules"),Be.prototype),Object(Xt.a)(Be.prototype,"loadCourseLessons",[we],Object.getOwnPropertyDescriptor(Be.prototype,"loadCourseLessons"),Be.prototype),Object(Xt.a)(Be.prototype,"loadCourseLesson",[Oe],Object.getOwnPropertyDescriptor(Be.prototype,"loadCourseLesson"),Be.prototype),Object(Xt.a)(Be.prototype,"loadCourseLessonByTask",[me],Object.getOwnPropertyDescriptor(Be.prototype,"loadCourseLessonByTask"),Be.prototype),Object(Xt.a)(Be.prototype,"loadTaskRule",[je],Object.getOwnPropertyDescriptor(Be.prototype,"loadTaskRule"),Be.prototype),Object(Xt.a)(Be.prototype,"loadCourseTask",[Se],Object.getOwnPropertyDescriptor(Be.prototype,"loadCourseTask"),Be.prototype),Object(Xt.a)(Be.prototype,"snapshotHungry",[xe],Object.getOwnPropertyDescriptor(Be.prototype,"snapshotHungry"),Be.prototype),Object(Xt.a)(Be.prototype,"resetHungrySnapshot",[ke],Object.getOwnPropertyDescriptor(Be.prototype,"resetHungrySnapshot"),Be.prototype),Object(Xt.a)(Be.prototype,"setCourseTask",[De],Object.getOwnPropertyDescriptor(Be.prototype,"setCourseTask"),Be.prototype),Object(Xt.a)(Be.prototype,"setCourseTaskCbn",[_e],Object.getOwnPropertyDescriptor(Be.prototype,"setCourseTaskCbn"),Be.prototype),Object(Xt.a)(Be.prototype,"setCourseTaskCheat",[Te],Object.getOwnPropertyDescriptor(Be.prototype,"setCourseTaskCheat"),Be.prototype),Object(Xt.a)(Be.prototype,"clearAnswerData",[Ie],Object.getOwnPropertyDescriptor(Be.prototype,"clearAnswerData"),Be.prototype),Object(Xt.a)(Be.prototype,"restartModule",[Le],Object.getOwnPropertyDescriptor(Be.prototype,"restartModule"),Be.prototype),Object(Xt.a)(Be.prototype,"getTraining",[Pe],Object.getOwnPropertyDescriptor(Be.prototype,"getTraining"),Be.prototype),Object(Xt.a)(Be.prototype,"setTraining",[Ce],Object.getOwnPropertyDescriptor(Be.prototype,"setTraining"),Be.prototype),Object(Xt.a)(Be.prototype,"setTrainingWordMix",[We],Object.getOwnPropertyDescriptor(Be.prototype,"setTrainingWordMix"),Be.prototype),Object(Xt.a)(Be.prototype,"getReservedWords",[Ee],Object.getOwnPropertyDescriptor(Be.prototype,"getReservedWords"),Be.prototype),Object(Xt.a)(Be.prototype,"loadTraining",[Ae],Object.getOwnPropertyDescriptor(Be.prototype,"loadTraining"),Be.prototype),Object(Xt.a)(Be.prototype,"findRuleIdByCode",[Ne],Object.getOwnPropertyDescriptor(Be.prototype,"findRuleIdByCode"),Be.prototype),Object(Xt.a)(Be.prototype,"getGrammarPages",[Fe],Object.getOwnPropertyDescriptor(Be.prototype,"getGrammarPages"),Be.prototype),Object(Xt.a)(Be.prototype,"getGrammarTagExpressions",[Ue],Object.getOwnPropertyDescriptor(Be.prototype,"getGrammarTagExpressions"),Be.prototype),Object(Xt.a)(Be.prototype,"getGrammarRuleExpressions",[ze],Object.getOwnPropertyDescriptor(Be.prototype,"getGrammarRuleExpressions"),Be.prototype),Object(Xt.a)(Be.prototype,"setGrammarTrainingResult",[Re],Object.getOwnPropertyDescriptor(Be.prototype,"setGrammarTrainingResult"),Be.prototype),Object(Xt.a)(Be.prototype,"setFetchingStatus",[Me],Object.getOwnPropertyDescriptor(Be.prototype,"setFetchingStatus"),Be.prototype),Be),fa=r("7z17");function ba(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}var ha,ya,ga,va=(_r=ee.j.bound,Tr=ee.j.bound,Ir=ee.j.bound,Lr=ee.j.bound,Pr=ee.j.bound,Cr=ee.j.bound,Wr=ee.j.bound,Er=ee.j.bound,Ar=ee.j.bound,Nr=ee.j.bound,Fr=ee.j.bound,Ur=ee.j.bound,zr=ee.j.bound,Rr=ee.j.bound,Mr=ee.j.bound,Br=ee.j.bound,Gr=ee.j.bound,Vr=ee.j.bound,Jr=ee.j.bound,Hr=ee.j.bound,qr=ee.j.bound,Qr=ee.j.bound,Kr=ee.j.bound,Yr=ee.j.bound,Xr=ee.j.bound,Zr=ee.j.bound,$r=ee.j.bound,tn=ee.j.bound,en=ee.j.bound,rn=ee.j.bound,nn=ee.j.bound,an=ee.j.bound,on=ee.j.bound,sn=function(){function t(){Object(Qt.a)(this,t),Object(qt.a)(this,"isFetching",un,this),Object(qt.a)(this,"isFetchingData",cn,this),Object(qt.a)(this,"campaigns",pn,this),Object(qt.a)(this,"campaign",ln,this),Object(qt.a)(this,"paymentSystems",dn,this),Object(qt.a)(this,"currencyList",fn,this),Object(qt.a)(this,"currency",bn,this),Object(qt.a)(this,"invoiceData",hn,this),Object(qt.a)(this,"invoiceDetails",yn,this),Object(qt.a)(this,"cloudpaymentsData",gn,this),Object(qt.a)(this,"userProfile",vn,this),Object(qt.a)(this,"userJournal",wn,this),Object(qt.a)(this,"userSumStats",On,this),Object(qt.a)(this,"userStatus",mn,this),Object(qt.a)(this,"isUrgentRowVisible",jn,this),Object(qt.a)(this,"userCurtain",Sn,this),Object(qt.a)(this,"userStorage",xn,this),Object(qt.a)(this,"languages",kn,this),Object(qt.a)(this,"locales",Dn,this),Object(qt.a)(this,"availableLangs",_n,this),Object(qt.a)(this,"trialDays",Tn,this),Object(qt.a)(this,"trialPrice",In,this),Object(qt.a)(this,"trialCurrency",Ln,this),Object(qt.a)(this,"referalList",Pn,this),Object(qt.a)(this,"popupState",Cn,this),Object(qt.a)(this,"appleSession",Wn,this),Object(qt.a)(this,"applePay",En,this),Object(qt.a)(this,"googlePay",An,this),Object(qt.a)(this,"wizardingFaculty",Nn,this),Object(qt.a)(this,"referral",Fn,this),Object(ee.C)(this)}return Object(Kt.a)(t,[{key:"getReferalData",value:function(){var t=Object(Ht.a)($t.a.mark((function t(){var e,r=this;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,fa.a.getReferalData();case 2:return e=t.sent,Object(ee.I)((function(){r.referalList=e.data})),t.abrupt("return",e.data);case 5:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}()},{key:"setFetchingStatus",value:function(t){this.isFetching=t}},{key:"setUrgentRowVisibleStatus",value:function(t){this.isUrgentRowVisible=t}}
1,{key:"setPopupState",value:function(t,e){this.popupState[t]=e}},{key:"setFetchingDataStatus",value:function(t,e){this.isFetchingData[t]=e}},{key:"loadCampaign",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e,r){var n,a=this;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,fa.a.loadCampaign(e,r);case 2:return n=t.sent,Object(ee.I)((function(){a.campaign=(null===n||void 0===n?void 0:n.campaign)&&n.campaign[0],a.paymentSystems=n.paymentSystems,a.currency=n.currency,a.trialCurrency=n.trialCurrency,a.trialDays=n.trialDays,a.trialPrice=n.trialPrice,a.currencyList=null===n||void 0===n?void 0:n.currencyList})),t.abrupt("return",this.campaign);case 5:case"end":return t.stop()}}),t,this)})));return function(e,r){return t.apply(this,arguments)}}()},{key:"loadCampaigns",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e,r){var n,a=this;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,fa.a.loadCampaigns(e,r);case 2:return n=t.sent,Object(ee.I)((function(){a.campaigns=n.campaign,a.paymentSystems=n.paymentSystems,a.currency=n.currency,a.currencyList=null===n||void 0===n?void 0:n.currencyList})),t.abrupt("return",n);case 5:case"end":return t.stop()}}),t)})));return function(e,r){return t.apply(this,arguments)}}()},{key:"loadCampaignsV2",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e,r){var n,a=this;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,fa.a.loadCampaignsV2(e,r);case 2:return n=t.sent,Object(ee.I)((function(){a.campaigns=n.campaign,a.paymentSystems=n.paymentSystems,a.currency=n.currency,a.trialCurrency=n.trialCurrency,a.trialDays=n.trialDays,a.trialPrice=n.trialPrice,a.currencyList=null===n||void 0===n?void 0:n.currencyList})),t.abrupt("return",n);case 5:case"end":return t.stop()}}),t)})));return function(e,r){return t.apply(this,arguments)}}()},{key:"loadCampaignsCommon",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e,r,n,a){var o,i=this;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,fa.a.loadCampaignsCommon(e,r,n,a);case 2:if(o=t.sent,Object(ee.I)((function(){te.isNil(a)?i.campaigns=o.campaign:i.campaign=(null===o||void 0===o?void 0:o.campaign)&&o.campaign[0],i.paymentSystems=o.paymentSystems,i.currency=o.currency,i.trialCurrency=o.trialCurrency,i.trialDays=o.trialDays,i.trialPrice=o.trialPrice,i.currencyList=null===o||void 0===o?void 0:o.currencyList})),te.isNil(a)){t.next=8;break}return t.abrupt("return",null!==o&&void 0!==o&&o.campaign?o.campaign[0]:{});case 8:return t.abrupt("return",o);case 9:case"end":return t.stop()}}),t)})));return function(e,r,n,a){return t.apply(this,arguments)}}()},{key:"applyTrainingStatus",value:function(t){if(t){var e=t.extra;null!=t.hungry&&(this.userStatus.hungry=t.hungry),e&&"number"===typeof e.xp_points_daily_left&&(this.userStatus.xp_points_daily_left=e.xp_points_daily_left),e&&e.new_day_on_road&&(this.userStatus.today_on_road=1,this.userStatus.days_on_road=this.userStatus.days_on_road+1)}}},{key:"applyContentLearningState",value:function(t){var e,r;if(t&&this.userStatus){var n=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?ba(Object(r),!0).forEach((function(e){Object(Yt.a)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ba(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({},this.userStatus);"number"===typeof t.hungry&&(n.hungry=t.hungry),null!==(e=t.extra)&&void 0!==e&&e.new_day_on_road&&(n.today_on_road=t.extra.new_day_on_road),null!==(r=t.extra)&&void 0!==r&&r.total_days_on_road&&(n.days_on_road=t.extra.total_days_on_road),"number"===typeof t.xp_points_daily&&"number"===typeof t.xp_points_daily_norm&&(n.xp_remaining=Math.max(0,t.xp_points_daily_norm-t.xp_points_daily)),this.userStatus=n}}},{key:"getInvoice",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e){var r,n=this;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,fa.a.getInvoice(e);case 2:return r=t.sent,Object(ee.I)((function(){n.invoiceData=r})),t.abrupt("return",r);case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()},{key:"getInvoiceDetails",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e){var r,n=this;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,fa.a.getInvoiceDetails(e);case 2:return r=t.sent,Object(ee.I)((function(){n.invoiceDetails=r})),t.abrupt("return",r);case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()},{key:"initPaymentCloudpayments",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e){var r,n=this;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,fa.a.initPaymentCloudpayments(e);case 2:return r=t.sent,Object(ee.I)((function(){n.cloudpaymentsData=r})),t.abrupt("return",r);case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()},{key:"getUserProfile",value:function(){var t=Object(Ht.a)($t.a.mark((function t(){var e,r=this;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,fa.a.getUserProfile();case 2:return e=t.sent,Object(ee.I)((function(){r.userProfile=e})),t.abrupt("return",e);case 5:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}()},{key:"getUserWizardingFaculty",value:function(){var t=Object(Ht.a)($t.a.mark((function t(){var e,r=this;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,fa.a.getUserWizardingFaculty();case 2:return e=t.sent,Object(ee.I)((function(){r.wizardingFaculty=e})),t.abrupt("return",e);case 5:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}()},{key:"getUserJournal",value:function(){var t=Object(Ht.a)($t.a.mark((function t(){var e,r,n=this;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,fa.a.getUserJournal();case 2:return e=t.sent,t.next=5,this._prepareUserSumStats(e);case 5:return r=t.sent,Object(ee.I)((function(){n.userJournal=e,n.userSumStats=r})),t.abrupt("return",e);case 8:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"_prepareUserSumStats",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e){var r,n,a,o,i,s,u,c,p,l,d,f,b,h,y,g,v,w,O,m,j,S,x,k,D;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(te.isNil(e)||te.isNil(e.dailyStat)||!te.isArray(e.dailyStat)){t.next=8;break}return S=te.filter(e.dailyStat,(function(t){return t.day<1})),x=te.filter(e.dailyStat,(function(t){return t.day<7})),k=te.filter(e.dailyStat,(function(t){return t.day<30})),D=te.filter(e.dailyStat,(function(t){return t.day<100})),t.abrupt("return",{today:{as:(null===S||void 0===S||null===(r=S[0])||void 0===r?void 0:r.as)||0,at:(null===S||void 0===S||null===(n=S[0])||void 0===n?void 0:n.at)||0,cl:(null===S||void 0===S||null===(a=S[0])||void 0===a?void 0:a.cl)||0,cm:(null===S||void 0===S||null===(o=S[0])||void 0===o?void 0:o.cm)||0,gr:(null===S||void 0===S||null===(i=S[0])||void 0===i?void 0:i.gr)||0,hungry:(null===S||void 0===S||null===(s=S[0])||void 0===s?void 0:s.hungry)||0,jc:(null===S||void 0===S||null===(u=S[0])||void 0===u?void 0:u.jc)||0,jp:(null===S||void 0===S||null===(c=S[0])||void 0===c?void 0:c.jp)||0,pht:(null===S||void 0===S||null===(p=S[0])||void 0===p?void 0:p.pht)||0,rs:(null===S||void 0===S||null===(l=S[0])||void 0===l?void 0:l.rs)||0,rt:(null===S||void 0===S||null===(d=S[0])||void 0===d?void 0:d.rt)||0,sg:(null===S||void 0===S||null===(f=S[0])||void 0===f?void 0:f.sg)||0,sl:(null===S||void 0===S||null===(b=S[0])||void 0===b?void 0:b.sl)||0,sr:(null===S||void 0===S||null===(h=S[0])||void 0===h?void 0:h.sr)||0,ss:(null===S||void 0===S||null===(y=S[0])||void 0===y?void 0:y.ss)||0,sv:(null===S||void 0===S||null===(g=S[0])||void 0===g?void 0:g.sv)||0,sw:(null===S||void 0===S||null===(v=S[0])||void 0===v?void 0:v.sw)||0,upt:(null===S||void 0===S||null===(w=S[0])||void 0===w?void 0:w.upt)||0,wn:(null===S||void 0===S||null===(O=S[0])||void 0===O?void 0:O.wn)||0,wt:(null===S||void 0===S||null===(m=S[0])||void 0===m?void 0:m.wt)||0,xp:(null===S||void 0===S||null===(j=S[0])||void 0===j?void 0:j.xp)||0},week:{as:te.sumBy(x,"as")||0,at:te.sumBy(x,"at")||0,cl:te.sumBy(x,"cl")||0,cm:te.sumBy(x,"cm")||0,gr:te.sumBy(x,"gr")||0,hungry:te.sumBy(x,"hungry")||0,jc:te.sumBy(x,"jc")||0,jp:te.sumBy(x,"jp")||0,pht:te.sumBy(x,"pht")||0,rs:te.sumBy(x,"rs")||0,rt:te.sumBy(x,"rt")||0,sg:te.sumBy(x,"sg")||0,sl:te.sumBy(x,"sl")||
10,sr:te.sumBy(x,"sr")||0,ss:te.sumBy(x,"ss")||0,sv:te.sumBy(x,"sv")||0,sw:te.sumBy(x,"sw")||0,upt:te.sumBy(x,"upt")||0,wn:te.sumBy(x,"wn")||0,wt:te.sumBy(x,"wt")||0,xp:te.sumBy(x,"xp")||0},month:{as:te.sumBy(k,"as")||0,at:te.sumBy(k,"at")||0,cl:te.sumBy(k,"cl")||0,cm:te.sumBy(k,"cm")||0,gr:te.sumBy(k,"gr")||0,hungry:te.sumBy(k,"hungry")||0,jc:te.sumBy(k,"jc")||0,jp:te.sumBy(k,"jp")||0,pht:te.sumBy(k,"pht")||0,rs:te.sumBy(k,"rs")||0,rt:te.sumBy(k,"rt")||0,sg:te.sumBy(k,"sg")||0,sl:te.sumBy(k,"sl")||0,sr:te.sumBy(k,"sr")||0,ss:te.sumBy(k,"ss")||0,sv:te.sumBy(k,"sv")||0,sw:te.sumBy(k,"sw")||0,upt:te.sumBy(k,"upt")||0,wn:te.sumBy(k,"wn")||0,wt:te.sumBy(k,"wt")||0,xp:te.sumBy(k,"xp")||0},quarter:{as:te.sumBy(D,"as")||0,at:te.sumBy(D,"at")||0,cl:te.sumBy(D,"cl")||0,cm:te.sumBy(D,"cm")||0,gr:te.sumBy(D,"gr")||0,hungry:te.sumBy(D,"hungry")||0,jc:te.sumBy(D,"jc")||0,jp:te.sumBy(D,"jp")||0,pht:te.sumBy(D,"pht")||0,rs:te.sumBy(D,"rs")||0,rt:te.sumBy(D,"rt")||0,sg:te.sumBy(D,"sg")||0,sl:te.sumBy(D,"sl")||0,sr:te.sumBy(D,"sr")||0,ss:te.sumBy(D,"ss")||0,sv:te.sumBy(D,"sv")||
10,sw:te.sumBy(D,"sw")||0,upt:te.sumBy(D,"upt")||0,wn:te.sumBy(D,"wn")||0,wt:te.sumBy(D,"wt")||0,xp:te.sumBy(D,"xp")||0}});case 8:return t.abrupt("return",{today:{as:0,at:0,cl:0,cm:0,gr:0,hungry:0,jc:0,jp:0,pht:0,rs:0,rt:0,sg:0,sl:0,sr:0,ss:0,sv:0,sw:0,upt:0,wn:0,wt:0,xp:0},week:{as:0,at:0,cl:0,cm:0,gr:0,hungry:0,jc:0,jp:0,pht:0,rs:0,rt:0,sg:0,sl:0,sr:0,ss:0,sv:0,sw:0,upt:0,wn:0,wt:0,xp:0},month:{as:0,at:0,cl:0,cm:0,gr:0,hungry:0,jc:0,jp:0,pht:0,rs:0,rt:0,sg:0,sl:0,sr:0,ss:0,sv:0,sw:0,upt:0,wn:0,wt:0,xp:0},quarter:{as:0,at:0,cl:0,cm:0,gr:0,hungry:0,jc:0,jp:0,pht:0,rs:0,rt:0,sg:0,sl:0,sr:0,ss:0,sv:0,sw:0,upt:0,wn:0,wt:0,xp:0}});case 9:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()},{key:"setUserStatusAcceptInvite",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e){var r;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,fa.a.setUserStatusAcceptInvite(e);case 2:return r=t.sent,t.abrupt("return",r.data);case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()},{key:"setUserStatusAcceptNotification",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e){var r;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,fa.a.setUserStatusAcceptNotification(e);case 2:return r=t.sent,t.abrupt("return",r.data);case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()},{key:"setUserStatusCurtain",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e,r,n){var a,o=this;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,fa.a.setUserStatusCurtain(e,r,n);case 2:return a=t.sent,Object(ee.I)((function(){o.userCurtain={}})),t.abrupt("return",a.data);case 5:case"end":return t.stop()}}),t)})));return function(e,r,n){return t.apply(this,arguments)}}()},{key:"setUserStatusDeleteNotification",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e,r){var n;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,fa.a.setUserStatusDeleteNotification(e,r);case 2:return n=t.sent,t.abrupt("return",n.data);case 4:case"end":return t.stop()}}),t)})));return function(e,r){return t.apply(this,arguments)}}()},{key:"setUserStatusAcceptNotificationAll",value:function(){var t=Object(Ht.a)($t.a.mark((function t(){var e;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,fa.a.setUserStatusAcceptNotificationAll();case 2:return e=t.sent,t.abrupt("return",e.data);case 4:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}()},{key:"setUserStatusDeleteNotificationAll",value:function(){var t=Object(Ht.a)($t.a.mark((function t(){var e;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,fa.a.setUserStatusDeleteNotificationAll();case 2:return e=t.sent,t.abrupt("return",e.data);case 4:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}()},{key:"setUserStatusCalendar",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e,r){var n;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,fa.a.setUserStatusCalendar(e,r);case 2:return n=t.sent,t.abrupt("return",n);case 4:case"end":return t.stop()}}),t)})));return function(e,r){return t.apply(this,arguments)}}()},{key:"deleteUserProfile",value:function(){var t=Object(Ht.a)($t.a.mark((function t(){var e,r=this;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.setFetchingStatus(!0),t.next=3,fa.a.deleteUserProfile();case 3:return e=t.sent,Object(ee.I)((function(){r.setFetchingStatus(!1)})),t.abrupt("return",e);case 6:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"authenticate",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e,r){var n;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,fa.a.authenticate(e,r);case 2:return n=t.sent,t.abrupt("return",n);case 4:case"end":return t.stop()}}),t)})));return function(e,r){return t.apply(this,arguments)}}()},{key:"register",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e,r){var n;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,fa.a.register(e,r);case 2:return n=t.sent,t.abrupt("return",n);case 4:case"end":return t.stop()}}),t)})));return function(e,r){return t.apply(this,arguments)}}()},{key:"changeEmail",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e,r){var n,a=this;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.setFetchingStatus(!0),t.next=3,fa.a.changeEmail(e,r);case 3:return n=t.sent,Object(ee.I)((function(){a.setFetchingStatus(!1)})),t.abrupt("return",n);case 6:case"end":return t.stop()}}),t,this)})));return function(e,r){return t.apply(this,arguments)}}()},{key:"changePassword",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e,r){var n,a=this;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.setFetchingStatus(!0),t.next=3,fa.a.changePassword(e,r);case 3:return n=t.sent,Object(ee.I)((function(){a.setFetchingStatus(!1)})),t.abrupt("return",n);case 6:case"end":return t.stop()}}),t,this)})));return function(e,r){return t.apply(this,arguments)}}()},{key:"setUserProfile",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e){var r,n=this;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.setFetchingStatus(!0),t.next=3,fa.a.setUserProfile(e);case 3:return r=t.sent,Object(ee.I)((function(){n.userProfile=r,n.setFetchingStatus(!1)})),t.abrupt("return",r);case 6:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"setPromocode",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e){var r,n=this;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.setFetchingStatus(!0),t.next=3,fa.a.setPromocode(e);case 3:return r=t.sent,Object(ee.I)((function(){n.setFetchingStatus(!1)})),t.abrupt("return",r);case 6:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"getUserStatus",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e,r){var n,a=this;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.setFetchingDataStatus("userStatus",!0),t.next=3,fa.a.getUserStatus(e,r);case 3:return n=t.sent,Object(ee.I)((function(){var t;a.userStatus=n.data,a.userCurtain=null===(t=n.data)||void 0===t?void 0:t.curtain,a.setFetchingDataStatus("userStatus",!1)})),t.abrupt("return",n.data);case 6:case"end":return t.stop()}}),t,this)})));return function(e,r){return t.apply(this,arguments)}}()},{key:"getUserCalendar",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e){var r;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,fa.a.getUserCalendar(e);case 2:return r=t.sent,t.abrupt("return",r.data);case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()},{key:"getCustomCurtain",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e){var r,n=this;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,fa.a.getCustomCurtain(e);case 2:return r=t.sent,Object(ee.I)((function(){var t;n.userStatus=r.data,n.userCurtain=null===(t=r.data)||void 0===t?void 0:t.curtain})),t.abrupt("return",r.data);case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()},{key:"getUserStorage",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e){var r,n,a=this;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,fa.a.getUserStorage(e);case 2:return n=t.sent,Object(ee.I)((function(){var t,r,o;a.userStatus=n.data,e?a.userStorage[e]=null===(t=n.data)||void 0===t||null===(r=t.storage)||void 0===r?void 0:r.keyName:a.userStorage=null===(o=n.data)||void 0===o?void 0:o.storage})),t.abrupt("return",null===(r=n.data)||void 0===r?void 0:r.storage);case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()},{key:"setUserStorageAdd",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e,r){var n;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,fa.a.setUserStorage(e,r,1);case 2:return n=t.sent,t.abrupt("return",n.data);case 4:case"end":return t.stop()}}),t)})));return function(e,r){return t.apply(this,arguments)}}()},{key:"setUserStorageDel",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e,r){var n;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,fa.a.setUserStorage(e,r,-1);case 2:return n=t.sent,t.abrupt("return",n.data);case 4:case"end":return t.stop()}}),t)})));return function(e,r){return t.apply(this,arguments)}}()},{key:"setUserStorageMod",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e,r){var n;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,fa.a.setUserStorage(e,r,0);case 2:return n=t.sent,t.abrupt("return",n.data);case 4:case"end":return t.stop()}}),t)})));return function(e,r){return t.apply(this,arguments)}}()},{key:"getUsersLanguages",value:function(){var t=Object(Ht.a)($t.a.mark((function t(){var e,r=this;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,fa.a.getUsersLanguages();case 2:return e=t.sent,Object(ee.I)((function(){var t,n;r.languages=null===(t=e.data)||void 0===t?void 0:t.languages;var a=e.data.languages,o=a&&(n=[]).concat.apply(n,[a.top,a.others]),i=te.sortBy(o,["comingSoon","name"]),s={};i.map((function(t){t.comingSoon||(s[t.id]=t.name)})),r.availableLangs=s})),t.abrupt("return",e.data);case 5:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}()},{key:"getUsersLocales",value:function(){var t=Object(Ht.a)($t.a.mark((function t(){var e,r=this;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,fa.a.getUsersLocales();case 2:return e=t.sent,Object(ee.I)((function(){var t;r.locales=null===(t=e.data)||void 0===t?void 0:t.locales})),t.abrupt("return",e.data);case 5:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}()},{key:"sendFeedback",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e){var r;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,fa.a.sendFeedback(e);case 2:return r=t.sent,t.abrupt("return",r);case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()},{key:"sendCopyRight",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e){var r;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,fa.a.sendCopyRight(e);case 2:return r=t.sent,t.abrupt("return",r);case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()},{key:"sendAppleSession",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e){var r,n=this;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,fa.a.sendAppleSession(e);case 2:return r=t.sent,Object(ee.I)((function(){n.appleSession=r})),t.abrupt("return",r);case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()},{key:"makeApplePay",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e){var r,n=this;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,fa.a.makeApplePay(e);case 2:return r=t.sent,Object(ee.I)((function(){n.applePay=r})),t.abrupt("return",r);case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()},{key:"makeGooglePay",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e){var r,n=this;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,fa.a.makeGooglePay(e);case 2:return r=t.sent,Object(ee.I)((function(){n.googlePay=r})),t.abrupt("return",r);case 5:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()}]),t}(),un=Object(Xt.a)(sn.prototype,"isFetching",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),cn=Object(Xt.a)(sn.prototype,"isFetchingData",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{products:!1,invoice:!1,cloudpayments:!1,userProfile:!1,userStatus:!1,userStorage:!1,userAvatar:!1,journal:!1}}}),pn=Object(Xt.a)(sn.prototype,"campaigns",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),ln=Object(Xt.a)(sn.prototype,"campaign",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),dn=Object(Xt.a)(sn.prototype,"paymentSystems",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),fn=Object(Xt.a)(sn.prototype,"currencyList",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),bn=Object(Xt.a)(sn.prototype,"currency",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),hn=Object(Xt.a)(sn.prototype,"invoiceData",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),yn=Object(Xt.a)(sn.prototype,"invoiceDetails",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),gn=Object(Xt.a)(sn.prototype,"cloudpaymentsData",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),vn=Object(Xt.a)(sn.prototype,"userProfile",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),wn=Object(Xt.a)(sn.prototype,"userJournal",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),On=Object(Xt.a)(sn.prototype,"userSumStats",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),mn=Object(Xt.a)(sn.prototype,"userStatus",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),jn=Object(Xt.a)(sn.prototype,"isUrgentRowVisible",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Sn=Object(Xt.a)(sn.prototype,"userCurtain",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),xn=Object(Xt.a)(sn.prototype,"userStorage",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),kn=Object(Xt.a)(sn.prototype,"languages",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),Dn=Object(Xt.a)(sn.prototype,"locales",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_n=Object(Xt.a)(sn.prototype,"availableLangs",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),Tn=Object(Xt.a)(sn.prototype,"trialDays",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),In=Object(Xt.a)(sn.prototype,"trialPrice",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Ln=Object(Xt.a)(sn.prototype,"trialCurrency",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Pn=Object(Xt.a)(sn.prototype,"referalList",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Cn=Object(Xt.a)(sn.prototype,"popupState",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),Wn=Object(Xt.a)(sn.prototype,"appleSession",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),En=Object(Xt.a)(sn.prototype,"applePay",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),An=Object(Xt.a)(sn.prototype,"googlePay",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),Nn=Object(Xt.a)(sn.prototype,"wizardingFaculty",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Fn=Object(Xt.a)(sn.prototype,"referral",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),Object(Xt.a)(sn.prototype,"getReferalData",[_r],Object.getOwnPropertyDescriptor(sn.prototype,"getReferalData"),sn.prototype),Object(Xt.a)(sn.prototype,"setFetchingStatus",[Tr],Object.getOwnPropertyDescriptor(sn.prototype,"setFetchingStatus"),sn.prototype),Object(Xt.a)(sn.prototype,"setUrgentRowVisibleStatus",[Ir],O
1bject.getOwnPropertyDescriptor(sn.prototype,"setUrgentRowVisibleStatus"),sn.prototype),Object(Xt.a)(sn.prototype,"setPopupState",[Lr],Object.getOwnPropertyDescriptor(sn.prototype,"setPopupState"),sn.prototype),Object(Xt.a)(sn.prototype,"setFetchingDataStatus",[Pr],Object.getOwnPropertyDescriptor(sn.prototype,"setFetchingDataStatus"),sn.prototype),Object(Xt.a)(sn.prototype,"loadCampaign",[Cr],Object.getOwnPropertyDescriptor(sn.prototype,"loadCampaign"),sn.prototype),Object(Xt.a)(sn.prototype,"loadCampaigns",[Wr],Object.getOwnPropertyDescriptor(sn.prototype,"loadCampaigns"),sn.prototype),Object(Xt.a)(sn.prototype,"loadCampaignsV2",[Er],Object.getOwnPropertyDescriptor(sn.prototype,"loadCampaignsV2"),sn.prototype),Object(Xt.a)(sn.prototype,"loadCampaignsCommon",[Ar],Object.getOwnPropertyDescriptor(sn.prototype,"loadCampaignsCommon"),sn.prototype),Object(Xt.a)(sn.prototype,"applyTrainingStatus",[Nr],Object.getOwnPropertyDescriptor(sn.prototype,"applyTrainingStatus"),sn.prototype),Object(Xt.a)(sn.prototype,"applyContentLearningState",[ee.j],Object.getOwnPropertyDescriptor(sn.prototype,"applyContentLearningState"),sn.prototype),Object(Xt.a)(sn.prototype,"getInvoice",[Fr],Object.getOwnPropertyDescriptor(sn.prototype,"getInvoice"),sn.prototype),Object(Xt.a)(sn.prototype,"getInvoiceDetails",[Ur],Object.getOwnPropertyDescriptor(sn.prototype,"getInvoiceDetails"),sn.prototype),Object(Xt.a)(sn.prototype,"initPaymentCloudpayments",[zr],Object.getOwnPropertyDescriptor(sn.prototype,"initPaymentCloudpayments"),sn.prototype),Object(Xt.a)(sn.prototype,"getUserProfile",[Rr],Object.getOwnPropertyDescriptor(sn.prototype,"getUserProfile"),sn.prototype),Object(Xt.a)(sn.prototype,"getUserWizardingFaculty",[Mr],Object.getOwnPropertyDescriptor(sn.prototype,"getUserWizardingFaculty"),sn.prototype),Object(Xt.a)(sn.prototype,"getUserJournal",[Br],Object.getOwnPropertyDescriptor(sn.prototype,"getUserJournal"),sn.prototype),Object(Xt.a)(sn.prototype,"setUserStatusCurtain",[Gr],Object.getOwnPropertyDescriptor(sn.prototype,"setUserStatusCurtain"),sn.prototype),Object(Xt.a)(sn.prototype,"deleteUserProfile",[Vr],Object.getOwnPropertyDescriptor(sn.prototype,"deleteUserProfile"),sn.prototype),Object(Xt.a)(sn.prototype,"changeEmail",[Jr],Object.getOwnPropertyDescriptor(sn.prototype,"changeEmail"),sn.prototype),Object(Xt.a)(sn.prototype,"changePassword",[Hr],Object.getOwnPropertyDescriptor(sn.prototype,"changePassword"),sn.prototype),Object(Xt.a)(sn.prototype,"setUserProfile",[qr],Object.getOwnPropertyDescriptor(sn.prototype,"setUserProfile"),sn.prototype),Object(Xt.a)(sn.prototype,"setPromocode",[Qr],Object.getOwnPropertyDescriptor(sn.prototype,"setPromocode"),sn.prototype),Object(Xt.a)(sn.prototype,"getUserStatus",[Kr],Object.getOwnPropertyDescriptor(sn.prototype,"getUserStatus"),sn.prototype),Object(Xt.a)(sn.prototype,"getCustomCurtain",[Yr],Object.getOwnPropertyDescriptor(sn.prototype,"getCustomCurtain"),sn.prototype),Object(Xt.a)(sn.prototype,"getUserStorage",[Xr],Object.getOwnPropertyDescriptor(sn.prototype,"getUserStorage"),sn.prototype),Object(Xt.a)(sn.prototype,"setUserStorageAdd",[Zr],Object.getOwnPropertyDescriptor(sn.prototype,"setUserStorageAdd"),sn.prototype),Object(Xt.a)(sn.prototype,"setUserStorageDel",[$r],Object.getOwnPropertyDescriptor(sn.prototype,"setUserStorageDel"),sn.prototype),Object(Xt.a)(sn.prototype,"setUserStorageMod",[tn],Object.getOwnPropertyDescriptor(sn.prototype,"setUserStorageMod"),sn.prototype),Object(Xt.a)(sn.prototype,"getUsersLanguages",[en],Object.getOwnPropertyDescriptor(sn.prototype,"getUsersLanguages"),sn.prototype),Object(Xt.a)(sn.prototype,"getUsersLocales",[rn],Object.getOwnPropertyDescriptor(sn.prototype,"getUsersLocales"),sn.prototype),Object(Xt.a)(sn.prototype,"sendAppleSession",[nn],Object.getOwnPropertyDescriptor(sn.prototype,"sendAppleSession"),sn.prototype),Object(Xt.a)(sn.prototype,"makeApplePay",[an],Object.getOwnPropertyDescriptor(sn.prototype,"makeApplePay"),sn.prototype),Object(Xt.a)(sn.prototype,"makeGooglePay",[on],Object.getOwnPropertyDescriptor(sn.prototype,"makeGooglePay"),sn.prototype),sn);function wa(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Oa(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};
1e%2?wa(Object(r),!0).forEach((function(e){Object(Yt.a)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):wa(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function ma(t){return Array.isArray(t)?t:t.split(",").map((function(t){return t.trim()})).map((function(t){return t.split(" ")})).flat().filter((function(t){return""!==t}))}!function(t){t.add="add",t.update="update",t.delete="delete"}(ha||(ha={})),function(t){t.add="add",t.update="update",t.delete="delete"}(ya||(ya={})),function(t){t.add="add",t.update="update",t.delete="delete",t.issue="issue",t.cancel="cancel",t.addItem="addItem",t.updateItem="updateItem"}(ga||(ga={}));var ja,Sa,xa,ka,Da,_a,Ta,Ia,La,Pa,Ca,Wa,Ea,Aa,Na,Fa,Ua,za,Ra,Ma,Ba,Ga,Va,Ja,Ha,qa,Qa,Ka,Ya,Xa,Za,$a,to,eo,ro,no,ao,oo,io,so,uo,co,po,lo,fo,bo,ho,yo,go,vo,wo,Oo,mo,jo,So,xo,ko,Do,_o,To,Io,Lo,Po=function(){return Object(Ht.a)($t.a.mark((function t(){var e;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(ue.a)(ce.f.GET_DASHBOARD_STUDENT,{apiVersion:ce.b,op:"loadDashboardStudent",apiCall:"process_training",trainingName:"getDashboardStudent"});case 2:return e=t.sent,t.abrupt("return",{data:e.data,firstEntrance:e.firstEntrance});case 4:case"end":return t.stop()}}),t)})))()},Co=function(){return Object(Ht.a)($t.a.mark((function t(){var e;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(ue.a)(ce.f.GET_TEACHER_GROUPS,{apiVersion:ce.a,op:"loadTeacherGroups",apiCall:"process_training",trainingName:"GetTeacherGroups"});case 2:return e=t.sent,t.abrupt("return",e.data);case 4:case"end":return t.stop()}}),t)})))()},Wo=function(t){return Object(Ht.a)($t.a.mark((function e(){var r,n,a,o;return $t.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.groupName,n=t.level,a=t.picture,e.next=3,Object(ue.a)(ce.f.SET_TEACHER_GROUPS,{apiVersion:ce.a,op:"addGroup",apiCall:"process_training",trainingName:"setTeacherGroups",data:{action:"add",valueList:{groupName:r,level:n,picture:a}}});case 3:return o=e.sent,e.abrupt("return",o.data);case 5:case"end":return e.stop()}}),e)})))()},Eo=function(t,e){return Object(Ht.a)($t.a.mark((function r(){var n,a,o,i;return $t.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=e.groupName,a=e.level,o=e.picture,r.next=3,Object(ue.a)(ce.f.SET_TEACHER_GROUPS,{apiVersion:ce.a,op:"updateGroup",apiCall:"process_training",trainingName:"setTeacherGroups",data:{action:"update",groupId:t,valueList:{groupName:n,level:a,picture:o}}});case 3:return i=r.sent,r.abrupt("return",i.data);case 5:case"end":return r.stop()}}),r)})))()},Ao=function(t){return Object(Ht.a)($t.a.mark((function e(){var r;return $t.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(ue.a)(ce.f.SET_TEACHER_GROUPS,{apiVersion:ce.a,op:"deleteGroup",apiCall:"process_training",trainingName:"setTeacherGroups",data:{action:"delete",groupId:t}});case 2:return r=e.sent,e.abrupt("return",r.data.groupId);case 4:case"end":return e.stop()}}),e)})))()},No=function(t){return Object(Ht.a)($t.a.mark((function e(){var r;return $t.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(ue.a)(ce.f.GET_TEACHER_STUDENTS,{apiVersion:ce.a,op:"loadTeacherStudents",apiCall:"process_training",trainingName:"getTeacherStudents",data:{groupId:Number(t)}});case 2:return r=e.sent,e.abrupt("return",{data:r.data,groupCurrent:r.groupCurrent,otherGroups:r.groups});case 4:case"end":return e.stop()}}),e)})))()},Fo=function(t){return Object(Ht.a)($t.a.mark((function e(){return $t.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(ue.a)(ce.f.GET_TEACHER_STUDENT_CARD,{apiVersion:ce.a,op:"getStudentInfo",apiCall:"process_training",trainingName:"getTeacherStudentCard",data:{studentId:t}});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})))()},Uo=function(t,e){return Object(Ht.a)($t.a.mark((function r(){var n;return $t.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,Object(ue.a)(ce.f.SET_TEACHER_STUDENTS,{apiVersion:ce.a,op:"addStudent",apiCall:"process_training",trainingName:"setTeacher
1Students",data:{valueData:t.map((function(t){return{action:"add",studentId:t,valueList:e}}))}});case 2:return n=r.sent,r.abrupt("return",n.data);case 4:case"end":return r.stop()}}),r)})))()},zo=function(t,e){return Object(Ht.a)($t.a.mark((function r(){var n;return $t.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,Object(ue.a)(ce.f.SET_TEACHER_STUDENTS,{apiVersion:ce.a,op:"updateStudent",apiCall:"process_training",trainingName:"setTeacherStudents",data:{valueData:t.map((function(t){return{action:"update",studentId:t,valueList:e}}))}});case 2:return n=r.sent,r.abrupt("return",n.data);case 4:case"end":return r.stop()}}),r)})))()},Ro=function(t,e){return Object(Ht.a)($t.a.mark((function e(){var r;return $t.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(ue.a)(ce.f.SET_TEACHER_STUDENTS,{apiVersion:ce.a,op:"deleteStudent",apiCall:"process_training",trainingName:"setTeacherStudents",data:{valueData:t.map((function(t){return{action:"delete",studentId:t}}))}});case 2:return r=e.sent,e.abrupt("return",r.data);case 4:case"end":return e.stop()}}),e)})))()},Mo=function(t,e,r){return Object(Ht.a)($t.a.mark((function n(){var a,o;return $t.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return a=ma(e),n.next=3,Object(ue.a)(ce.f.SET_TEACHER_STUDENTS,{apiVersion:ce.a,op:"inviteUsers",apiCall:"process_training",trainingName:"setTeacherStudents",data:{valueData:a.map((function(e){return{action:"invite",valueList:{groupId:t,email:e,text:r}}}))}});case 3:return o=n.sent,n.abrupt("return",o.data);case 5:case"end":return n.stop()}}),n)})))()},Bo=function(t,e){return Object(Ht.a)($t.a.mark((function r(){var n;return $t.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,Object(ue.a)(ce.f.SET_TEACHER_STUDENTS,{apiVersion:ce.a,op:"sendToStudents",apiCall:"process_training",trainingName:"setTeacherStudents",data:{valueData:t.map((function(t){return{action:"send",studentId:t,valueList:{text:e}}}))}});case 2:return n=r.sent,r.abrupt("return",n.data);case 4:case"end":return r.stop()}}),r)})))()},Go=function(){var t=arguments;return Object(Ht.a)($t.a.mark((function e(){var r,n,a,o,i;return $t.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.length>0&&void 0!==t[0]?t[0]:{},n=r.groupId,a=r.active,o=void 0===a?1:a,e.next=4,Object(ue.a)(ce.f.GET_TEACHER_LESSONS,{apiVersion:ce.a,op:"loadTeacherLessons",apiCall:"process_training",trainingName:"getTeacherLessons",data:{groupId:n,lessonStatus:o}});case 4:return i=e.sent,e.abrupt("return",i.data.map((function(t){return{id:t.lessonId,name:t.lessonName,status:t.lessonStatus,types:t.lessonTypes,created:t.created,countItems:t.countItems,level:t.level,deadline:t.deadline}})));case 6:case"end":return e.stop()}}),e)})))()},Vo=function(t,e){return Object(Ht.a)($t.a.mark((function r(){var n,a,o,i,s,u,c,p,l,d,f,b;return $t.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=e.level,a=e.itemDetails,r.next=3,Object(ue.a)(ce.f.SET_TEACHER_LESSONS,{apiVersion:ce.a,op:"actionWithLesson",apiCall:"process_training",trainingName:"setTeacherLessons",data:{action:"add",valueList:{lessonName:t,level:n,itemDetails:a}}});case 3:return o=r.sent,i=o.data,s=i.lessonId,u=i.lessonName,c=i.lessonStatus,p=i.lessonTypes,l=i.created,d=i.countItems,f=i.level,b=i.deadline,r.abrupt("return",{id:s,name:u,status:c,types:p,created:l,countItems:d,level:f,deadline:b});case 7:case"end":return r.stop()}}),r)})))()},Jo=function(t,e){return Object(Ht.a)($t.a.mark((function r(){var n,a,o,i,s,u,c,p,l,d,f,b,h,y;return $t.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=e.itemId,a=e.name,o=e.level,i=e.itemDetails,r.next=3,Object(ue.a)(ce.f.SET_TEACHER_LESSONS,{apiVersion:ce.a,op:"actionWithLesson",apiCall:"process_training",trainingName:"setTeacherLessons",data:{action:"update",lessonId:t,itemId:n,valueList:{lessonName:a,level:o,itemDetails:i}}});case 3:return s=r.sent,u=s.data,c=u.lessonId,p=u.lessonName,l=u.lessonStatus,d=u.lessonTypes,f=u.created,b=u.countItems,h=u.level,y=u.deadline,r.abrupt("return",{id:c,name:p,status:l,types:d,created:f,countItems:b,level:h,deadline:y});case 7:case"end":return r.stop()}}),r)})))()},Ho=function(t,e){return Object(Ht.a)($t.a.mark((function r(){var n,a;return $t.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=(e||{}).itemId,a=void 0===n?null:n,r.next=3,Object(ue.a)(ce.f.SET_TEACHER_LESSONS,{apiVersion:ce.a,op:"actionWithLesson",apiCall:"process_training",trainingName:"setTeacherLessons",data:{action:"delete",lessonId:t,itemId:a,valueList:{}}});case 3:return r.sent,r.abrupt("return",{lessonId:t,itemId:a});case 5:case"end":return r.stop()}}),r)})))()},qo=function(t,e,r){return Object(Ht.a)($t.a.mark((function n(){var a,o,i;return $t.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return a=r.lessonName,o=r.dateStart,i=r.dateDeadline,n.next=3,Object(ue.a)(ce.f.SET_TEACHER_LESSONS,{apiVersion:ce.a,op:"actionWithLesson",apiCall:"process_training",trainingName:"setTeacherLessons",data:{action:"issue",lessonId:t,groupIds:e,valueList:{lessonName:a,dateStart:o,dateDeadline:i}}});case 3:return n.abrupt("return",!0);case 4:case"end":return n.stop()}}),n)})))()},Qo=function(t){return Object(Ht.a)($t.a.mark((function e(){var r;return $t.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(ue.a)(ce.f.GET_TEACHER_LESSON_ITEMS,{apiVersion:ce.a,op:"lessonItems",apiCall:"process_training",trainingName:"getTeacherLessonItems",data:{lessonId:t}}
1);case 2:return r=e.sent,e.abrupt("return",r.data.map((function(t){return{id:t.itemId,name:t.itemName,type:t.itemType,subtype:t.itemSubtype,url:t.itemUrl,created:t.created,isPremium:!!t.isPremium,details:t.itemDetails}})));case 4:case"end":return e.stop()}}),e)})))()},Ko=function(t,e){return Object(Ht.a)($t.a.mark((function r(){var n;return $t.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=e.itemDetails,r.next=3,Object(ue.a)(ce.f.SET_TEACHER_LESSONS,{apiVersion:ce.a,op:"actionWithLesson",apiCall:"process_training",trainingName:"setTeacherLessons",data:{action:"add",lessonId:t,valueList:{itemDetails:n}}});case 3:return r.abrupt("return",!0);case 4:case"end":return r.stop()}}),r)})))()},Yo=function(t,e){return Object(Ht.a)($t.a.mark((function r(){var n,a;return $t.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=e.itemDetails,a=e.itemId,r.next=3,Object(ue.a)(ce.f.SET_TEACHER_LESSONS,{apiVersion:ce.a,op:"actionWithLesson",apiCall:"process_training",trainingName:"setTeacherLessons",data:{action:"update",lessonId:t,itemId:a,valueList:{itemDetails:n}}});case 3:return r.abrupt("return",!0);case 4:case"end":return r.stop()}}),r)})))()},Xo=function(t,e){return Object(Ht.a)($t.a.mark((function r(){var n;return $t.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,Object(ue.a)(ce.f.GET_TEACHER_ITEM_CASES,{apiVersion:ce.a,op:"lessonItemCases",apiCall:"process_training",trainingName:"getTeacherItemCases",data:Oa(Oa({},t?{itemDetails:t}:{}),{},{level:e,attrList:{id:"id",title:"title",configId:"configId",element:"element",embedText:"embedText",values:"values"}})});case 2:return n=r.sent,r.abrupt("return",n&&n.data&&n.data.length>0?n.data[0]:null);case 4:case"end":return r.stop()}}),r)})))()},Zo=function(t){return Object(Ht.a)($t.a.mark((function e(){var r;return $t.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(ue.a)(ce.f.GET_USER_STATUS_PT,{apiVersion:ce.a,op:"getUserStatus",userId:t||null,apiCall:"process_training",trainingName:"getUserStatus"});case 2:return r=e.sent,e.abrupt("return",r);case 4:case"end":return e.stop()}}),e)})))()},$o=function(t){return Object(Ht.a)($t.a.mark((function e(){var r;return $t.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(ue.a)(ce.f.SET_USER_STATUS_PT,{apiVersion:ce.a,op:"setUserStatus",userId:t||null,apiCall:"process_training",trainingName:"setUserStatus",data:{valueList:{invitation:{accepted:!0}}}});case 2:return r=e.sent,e.abrupt("return",r);case 4:case"end":return e.stop()}}),e)})))()},ti=function(t){return Object(Ht.a)($t.a.mark((function e(){var r,n,a,o,i,s,u,c;return $t.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.base64,n=t.directory,e.next=3,Object(ue.a)(ce.f.UPLOAD_IMAGE,{apiVersion:ce.a,base64:r,directory:"uploads/picture/"+n});case 3:return a=e.sent,o=a.url,i=a.size,s=a.mimetype,u=a.status,c=a.error,e.abrupt("return",{url:o,size:i,mimetype:s,status:u,error:c});case 6:case"end":return e.stop()}}),e)})))()},ei=function(t,e,r,n){return Object(Ht.a)($t.a.mark((function a(){var o;return $t.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,Object(ue.a)(ce.f.GET_USER_LIST,{apiVersion:ce.a,type:1,page:t,perPage:e,search:n,order:r});case 2:return o=a.sent,a.abrupt("return",o);case 4:case"end":return a.stop()}}),a)})))()},ri=function(t,e,r,n,a,o){return Object(Ht.a)($t.a.mark((function i(){var s;return $t.a.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,Object(ue.a)(ce.f.GET_TUTOR,{apiVersion:ce.d,offset:t,perPage:e,search:n,tags:a,orderDirection:r,mode:o});case 2:return s=i.sent,i.abrupt("return",s);case 4:case"end":return i.stop()}}),i)})))()},ni=function(t,e,r){return Object(Ht.a)($t.a.mark((function n(){var a;return $t.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Object(ue.a)(ce.f.GET_TUTOR,{apiVersion:ce.d,tutorId:t,targetLang:e,mode:r});case 2:return a=n.sent,n.abrupt("return",a);case 4:case"end":return n.stop()}}),n)})))()},ai=function(t,e){return Object(Ht.a)($t.a.mark((function r(){var n;return $t.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,Object(ue.a)(ce.f.SET_TUTOR,{apiVersion:ce.d,valueList:t,tutorId:e});case 2:return n=r.sent,r.abrupt("return",n);case 4:case"end":return r.stop()}}),r)})))()},oi=function(t){return Object(Ht.a)($t.a.mark((function e(){var r;return $t.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(ue.a)(ce.f.GET_TUTOR,Oa({apiVersion:ce.d},t));case 2:return r=e.sent,e.abrupt("return",r);case 4:case"end":return e.stop()}}),e)})))()};function ii(t,e){var r="undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(!t)return;if("string"===typeof t)return si(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return si(t,e)}(t))||e&&t&&"number"===typeof t.length){r&&(t=r);var n=0,a=function(){};return{s:a,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(t){throw t},f:a}}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,i=!0,s=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return i=t.done,t},e:function(t){s=!0,o=t},f:function(){try{i||null==r.return||r.return()}finally{if(s)throw o}}}}function si(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}!function(t){t[t.nonActive=0]="nonActive",t[t.active=1]="active"}(Lo||(Lo={}));var ui,ci,pi,li,di,fi,bi,hi,yi,gi,vi,wi,Oi,mi,ji,Si,xi,ki,Di,_i,Ti,Ii,Li,Pi,Ci,Wi,Ei,Ai,Ni,Fi=(ja=ee.j.bound,Sa=ee.j.bound,xa=ee.j.bound,ka=ee.j.bound,Da=ee.j.bound,_a=ee.j.bound,Ta=ee.j.bound,Ia=ee.j.bound,La=ee.j.bound,Pa=ee.j.bound,Ca=ee.j.bound,Wa=ee.j.bound,Ea=ee.j.bound,Aa=ee.j.bound,Na=ee.j.bound,Fa=ee.j.bound,Ua=ee.j.bound,za=ee.j.bound,Ra=ee.j.bound,Ma=ee.j.bound,Ba=ee.j.bound,Ga=ee.j.bound,Va=ee.j.bound,Ja=ee.j.bound,Ha=ee.j.bound,qa=ee.
1j.bound,Qa=ee.j.bound,Ka=ee.j.bound,Ya=ee.j.bound,Xa=ee.j.bound,Za=ee.j.bound,$a=ee.j.bound,to=ee.j.bound,eo=function(){function t(){Object(Qt.a)(this,t),Object(Yt.a)(this,"_groupsIndexes",new Map),Object(Yt.a)(this,"_studentIndexes",new Map),Object(Yt.a)(this,"_lessonsIndexes",new Map),Object(Yt.a)(this,"_lessonItemsIndexes",{}),Object(qt.a)(this,"groups",ro,this),Object(qt.a)(this,"students",no,this),Object(qt.a)(this,"studentsCards",ao,this),Object(qt.a)(this,"currentStudentCard",oo,this),Object(qt.a)(this,"groupCurrent",io,this),Object(qt.a)(this,"otherGroups",so,this),Object(qt.a)(this,"dashboardStudentData",uo,this),Object(qt.a)(this,"dashboardStudentFirstEntrance",co,this),Object(qt.a)(this,"isFetching",po,this),Object(qt.a)(this,"lessons",lo,this),Object(qt.a)(this,"lessonSelections",fo,this),Object(qt.a)(this,"lessonCases",bo,this),Object(qt.a)(this,"lessonItems",ho,this),Object(qt.a)(this,"lastCasesStep",yo,this),Object(qt.a)(this,"isFinishSelectionCases",go,this),Object(qt.a)(this,"isSkippedStepsForCases",vo,this),Object(qt.a)(this,"isLoadedDataForAllCases",wo,this),Object(qt.a)(this,"userStatus",Oo,this),Object(qt.a)(this,"currentSelectedValue",mo,this),Object(qt.a)(this,"corpList",jo,this),Object(qt.a)(this,"corpListCount",So,this),Object(qt.a)(this,"tutorList",xo,this),Object(qt.a)(this,"tutorListTags",ko,this),Object(qt.a)(this,"tutorListLangs",Do,this),Object(qt.a)(this,"tutorListCount",_o,this),Object(qt.a)(this,"currentTutor",To,this),Object(qt.a)(this,"tutorUni",Io,this),Object(ee.C)(this)}return Object(Kt.a)(t,[{key:"setFetchingStatus",value:function(t){this.isFetching=t}},{key:"loadDashboardStudent",value:function(){var t=Object(Ht.a)($t.a.mark((function t(){var e;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Po();case 2:return e=t.sent,this.dashboardStudentData=e.data,this.dashboardStudentFirstEntrance=e.firstEntrance,t.abrupt("return",e);case 6:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"loadGroups",value:function(){var t=Object(Ht.a)($t.a.mark((function t(){var e,r=this;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Co();case 2:return(e=t.sent).forEach((function(t,e){r._groupsIndexes.set(t.groupId,e)})),this.groups=e,t.abrupt("return",e);case 6:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"getLoadedGroup",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e){return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.groups[this._groupsIndexes.get(e)]);case 1:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"addGroup",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e){var r,n,a,o;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=e.groupName,n=e.level,a=e.picture,t.next=3,Wo({groupName:r,level:n,picture:a});case 3:if(o=t.sent,!this._groupsIndexes.get(o.groupId)){t.next=6;break}throw new Error("Group already exists (".concat(JSON.stringify(o),")"));case 6:return this.groups.push(o),this._groupsIndexes.set(o.groupId,this.groups.length-1),t.abrupt("return",o);case 9:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"deleteGroup",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e){var r,n;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Ao(e);case 2:if(r=t.sent,"undefined"!==typeof(n=this._groupsIndexes.get(r))){t.next=6;break}throw new Error("Failed delete - group with id = ".concat(e," doesn't exists"));case 6:return this.groups.splice(n,1),this._updateGroupsIndexes(),t.abrupt("return",!0);case 9:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"updateGroup",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e,r){var n,a,o,i,s;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=r.groupName,a=r.level,o=r.picture,t.next=3,Eo(e,{groupName:n,level:a,picture:o});case 3:return i=t.sent,s=this._groupsIndexes.get(i.groupId),this.groups.splice(s,1,i),t.abrupt("return",i);case 7:case"end":return t.stop()}}),t,this)})));return function(e,r){return t.apply(this,arguments)}}()},{key:"loadStudents",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e){var r,n=this;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,No(e);case 2:return r=t.sent,this.students=r.data,this.groupCurrent=r.groupCurrent,this.otherGroups=r.otherGroups,r.data.forEach((function(t,e){n._studentIndexes.set(t.userId,e)})),t.abrupt("return",r.data);case 8:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"getStudentCard",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e){var r;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Fo(e);case 2:return r=t.sent,this.studentsCards.set(r.userId,r),this.currentStudentCard=r,t.abrupt("return",r);case 6:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"addStudent",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e,r){var n,a,o;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(n=this._getStudentById(e))){t.next=3;break}throw new Error("Student already exists (".concat(JSON.stringify(n),")"));case 3:return t.next=5,Uo([e],r);case 5:return a=t.sent,o=a[0],this.students.push(o),t.abrupt("return",o);case 9:case"end":return t.stop()}}),t,this)})));return function(e,r){return t.apply(this,arguments)}}()},{key:"deleteStudent",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e){var r,n;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("undefined"!==typeof(r=this._studentIndexes.get(e))){t.next=3;break}throw new Error("Failed delete - student with id = ".concat(e," doesn't exists"));case 3:return n=this._getStudentById(e).groupId,t.next=6,Ro([e],n);case 6:return this.students.splice(r,1),this._updateStudentsIndexes(),t.abrupt("return",!0);case 9:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"_updateStudent",value:function(t){var e=this._studentIndexes.get(t.userId);this.students[e]=t}},{key:"_getStudentById",value:function(t){var e=this._studentIndexes.get(t);return this.students[e]}},{key:"updateStudent",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e,r,n){var a,o;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,zo([e],r);case 2:return a=t.sent,o=a[0],n||this._updateStudent(o),t.abrupt("return",o);case 6:case"end":return t.stop()}}),t,this)})));return function(e,r,n){return t.apply(this,arguments)}}()},{key:"moveStudents",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e,r,n){var a,o=this;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,zo(e,{groupId:r});case 2:return a=t.sent,n||a.forEach((function(t){o._updateStudent(t)})),t.abrupt("return",!0);case 5:case"end":return t.stop()}}),t)})));return function(e,r,n){return t.apply(this,arguments)}}()},{key:"moveStudent",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e,r,n){return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.moveStudents([e],r,n);case 2:return t.abrupt("return",!0);case 3:case"end":return t.stop()}}),t,this)})));return function(e,r,n){return t.apply(this,arguments)}}()},{key:"inviteUsers",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e,r,n){var a;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Mo(e,r,n);case 2:return a=t.sent,t.abrupt("return",a);case 4:case"end":return t.stop()}}),t)})));return function(e,r,n){return t.apply(this,arguments)}}()},{key:"sendToStudents",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e,r){var n;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Bo(e,r);case 2:return n=t.sent,t.abrupt("return",n);case 4:case"end":return t.stop()}}),t)})));return function(e,r){return t.apply(this,arguments)}}()},{key:"loadLessons",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e,r){var n;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Go({groupId:e,active:r});case 2:return n=t.sent,this.lessons=n,this._updateLessonsIndexes(),t.abrupt("return",n);case 6:case"end":return t.stop()}}),t,this)})));return function(e,r){return t.apply(this,arguments)}}()},{key:"getLessonById",value:function(t){var e=this._lessonsIndexes.get(t);return this.lessons[e]}},{key:"addLesson",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e,r){var n,a,o,i;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=r.level,a=r.itemDetails,t.next=3,Vo(e,{level:n,itemDetails:a});case 3:if(o=t.sent,!(i=this.getLessonById(o.id))){t.next=7;break}throw new Error("Lesson already exists (".concat(JSON.stringify(i),")"));case 7:return this.lessons.push(o),this._lessonsIndexes.set(o.id,this.lessons.length-1),t.abrupt("return",o);case 10:case"end":return t.stop()}}),t,this)})));return function(e,r){return t.apply(this,arguments)}}()},{key:"deleteLesson",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e){var r;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("undefined"!==typeof(r=this._lessonsIndexes.get(e))){t.next=3;break}throw new Error("Failed delete lesson with id = ".concat(e," doesn't exists (maybe you must call loadLessons before?) "));case 3:return t.next=5,Ho(e);case 5:this.lessons.splice(r,1),this._updateLessonsIndexes(),delete this.lessonItems[e];case 8:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"updateLesson",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e,r){var n,a;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("undefined"!==typeof(n=this._lessonsIndexes.get(e))){t.next=3;break}throw new Error("Failed update lesson with id = ".concat(e," doesn't exists (maybe you must call loadLessons before?) "));case 3:return t.next=5,Jo(e,r);case 5:return a=t.sent,this.lessons[n]=a,t.abrupt("return",a);case 8:case"end":return t.stop()}}),t,this)})));return function(e,r){return t.apply(this,arguments)}}()},{key:"issueLessonToStudents",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e,r,n){var a,o,i,s;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this._checkLesson(e),a=n.lessonName,o=n.dateStart,i=n.dateDeadline,t.next=4,qo(e,r,{lessonName:a,dateStart:o,dateDeadline:i});case 4:return s=t.sent,t.abrupt("return",s);case 6:case"end":return t.stop()}}),t,this)})));return function(e,r,n){return t.apply(this,arguments)}}()},{key:"loadLessonItems",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e){var r,n;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Qo(e);case 2:return r=t.sent,this.lessonItems[e]=r,n=new Map,r.forEach((function(t,e){n.set(t.id,e)})),this._lessonItemsIndexes[e]=n,t.abrupt("return",r);case 8:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"getLessonItemById",value:function(t,e){var r=this._lessonItemsIndexes[t].get(e);return this.lessonItems[t][r]}},{key:"addLessonItem",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e,r){var n,a;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this._checkLesson(e),n=r.itemDetails,t.next=4,Ko(e,{itemDetails:n});case 4:return a=t.sent,this.loadLessonItems(e),t.abrupt("return",a);case 7:case"end":return t.stop()}}),t,this)})));return function(e,r){return t.apply(this,arguments)}}()},{key:"updateLessonItem",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e,r,n){var a,o;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this._fullCheckLessonItem(e,r),a=n.itemDetails,t.next=4,Yo(e,{itemId:r,itemDetails:a});case 4:return o=t.sent,this.loadLessonItems(e),t.abrupt("return",o);case 7:case"end":return t.stop()}}),t,this)})));return function(e,r,n){return t.apply(this,arguments)}}()},{key:"deleteLessonItem",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e,r){var n;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this._fullCheckLessonItem(e,r),n=this.lessonItems[e],t.next=4,Ho(e,{itemId:r});case 4:this.lessonItems[e]=n.filter((function(t){return t.id!==r}));case 5:case"end":return t.stop()}}),t,this)})));return function(e,r){return t.apply(this,arguments)}}()},{key:"curLessonCases",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e,r){var n,a,o,i;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=r&&r>
1-1?r:null,this.isLoadedDataForAllCases,a=e-1,this.resetLessonSelections(a),0!==this.lessonCases.length&&(!this.lessonCases[a-1]||this.lessonSelections[a-1]),o=[],0!==this.lessonSelections.length&&(o=this.lessonSelections.map((function(t){return{id:t.id}}))),t.next=9,Xo(o,n);case 9:if(!(i=t.sent)){t.next=18;break}return this.lastCasesStep=a,this.lessonCases[this.lastCasesStep]=i,this.lastCasesStep++,this.currentSelectedValue=o&&o[0]&&o[0].id,t.abrupt("return",i);case 18:return this.isSkippedStepsForCases=!0,this.isLoadedDataForAllCases=!1,t.abrupt("return",i);case 21:case"end":return t.stop()}}),t,this)})));return function(e,r){return t.apply(this,arguments)}}()},{key:"loadLessonCases",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e){var r,n,a,o=this;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=JSON.parse(JSON.stringify(e)),this.resetLessonSelections(),r=ii(e);try{for(a=function(){var t=n.value,e=t.id,r=t.values.find((function(t){return t.id===e}));o.lessonCases.push(t),o.lessonSelections.push(r)},r.s();!(n=r.n()).done;)a()}catch(i){r.e(i)}finally{r.f()}this.isLoadedDataForAllCases=this.checkLastStepForCases(),this.lastCasesStep=this.lessonCases.length,this.isFinishSelectionCases=this._checkFinishSelection();case 7:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"checkLastStepForCases",value:function(t){return t||this.lastCasesStep&&(t=this.getSelectedCaseOnStep(this.lastCasesStep)),!!t&&(null===t.nextLevel||"undefined"===typeof t.nextLevel)}},{key:"_checkFinishSelection",value:function(){return!(!this.isLoadedDataForAllCases||this.lastCasesStep!==this.lessonCases.length||this.lastCasesStep!==this.lessonSelections.length)}},{key:"selectLessonCase",value:function(t,e){var r=e-1;if(this.resetLessonSelections(e),!this.lessonCases[r]||!this.lessonCases[r].values.find((function(e){return e===t})))throw new Error("Bad selection cases");this.lessonSelections.length===r?this.lessonSelections.push(t):this.lessonSelections[r]=t,this.isLoadedDataForAllCases=this.checkLastStepForCases(t),this.isFinishSelectionCases=this._checkFinishSelection()}},{key:"getItemDetails",value:function(){return this.lessonSelections.map((function(t){return{id:t.id}}))}},{key:"resetLessonSelections",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(t>this.lessonCases.length)throw new Error("Allow only stepAfter less or equal than lessonCases count");this.lessonSelections.splice(t,this.lessonSelections.length),this.lessonCases.splice(t,this.lessonCases.length),this.lastCasesStep=t,this.isFinishSelectionCases=!1,this.isSkippedStepsForCases=!1,this.isLoadedDataForAllCases=this.checkLastStepForCases()}},{key:"getCasesOnStep",value:function(t){if(t<1)throw new Error("Step arg must be greater of one");return this.lessonCases[t-1]}},{key:"getSelectedCaseOnStep",value:function(t){if(t<1)throw new Error("Step arg must be greater of one");var e=t-1;return e>=this.lessonSelections.length?null:this.lessonSelections[e]}},{key:"_updateIndexes",value:function(t,e){var r=this;e.clear(),t.forEach((function(t,e){r._lessonsIndexes.set(t,e)}))}},{key:"_updateGroupsIndexes",value:function(){this._updateIndexes(this.groups.map((function(t){return t.groupId})),this._groupsIndexes)}},{key:"_updateStudentsIndexes",value:function(){this._updateIndexes(this.students.map((function(t){return t.userId})),this._studentIndexes)}},{key:"_updateLessonsIndexes",value:function(){this._updateIndexes(this.lessons.map((function(t){return t.id})),this._lessonsIndexes)}},{key:"_checkLesson",value:function(t){if("undefined"===typeof this._lessonsIndexes.get(t))throw new Error("Failed: lesson with id = ".concat(t," doesn't exists (maybe you must call loadLessons before?) "))}},{key:"_checkLessonItems",value:function(t){if("undefined"===typeof this.lessonItems[t])throw new Error("Failed: not found lesson items for lesson with id = ".concat(t," doesn't exists for lesson with id = ").concat(t," (maybe you must call loadLessonItems before?)"))}},{key:"_checkLessonItem",value:function(t,e){if(!this.getLessonItemById(t,e))throw new Error("Failed: lessonItem with id = ".concat(e," not found for lesson with id = ").concat(t))}},{key:"_fullCheckLessonItem",value:function(t,e){this._checkLesson(t),this._checkLessonItems(t),this._checkLessonItem(t,e)}},{key:"getUserStatus",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e){var r;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Zo(e);case 2:return r=t.sent,t.abrupt("return",r.data);case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()},{key:"setUserStatusAcceptInvite",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e){var r;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,$o(e);case 2:return r=t.sent,t.abrupt("return",r.data);case 4:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()},{key:"uploadImage",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e){return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,ti(e);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()},{key:"getCorpList",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e,r,n,a){var o;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,ei(e,r,n,a);case 2:return o=t.sent,this.corpList=o.data,this.corpListCount=o.count,t.abrupt("return",o.data);case 6:case"end":return t.stop()}}),t,this)})));return function(e,r,n,a){return t.apply(this,arguments)}}()},{key:"getTutorList",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e,r,n,a,o,i){var s;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,ri(e,r,n,a,o,i);case 2:return s=t.sent,this.tutorList=s.tutors,this.tutorListTags=s.tags,this.tutorListLangs=s.targetLangList,this.tutorListCount=s.count,t.abrupt("return",s.data);case 8:case"end":return t.stop()}}),t,this)})));return function(e,r,n,a,o,i){return t.apply(this,arguments)}}()},{key:"setTutor",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e,r){var n;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,ai(e,r);case 2:return n=t.sent,t.abrupt("return",n);case 4:case"end":return t.stop()}}),t)})));return function(e,r){return t.apply(this,arguments)}}()},{key:"getTutorUni",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e){var r;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,oi(e);case 2:return r=t.sent,this.tutorUni=r,t.abrupt("return",r);case 5:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"getTutor",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e,r,n){var a;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,ni(e,r,n);case 2:return a=t.sent,this.currentTutor=a.tutors,this.tutorListTags=a.tags,this.tutorListLangs=a.targetLangList,this.tutorListCount=a.count,t.abrupt("return",a);case 8:case"end":return t.stop()}}),t,this)})));return function(e,r,n){return t.apply(this,arguments)}}()}]),t}(),ro=Object(Xt.a)(eo.prototype,"groups",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),no=Object(Xt.a)(eo.prototype,"students",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),ao=Object(Xt.a)(eo.prototype,"studentsCards",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return new Map}}),oo=Object(Xt.a)(eo.prototype,"currentStudentCard",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),io=Object(Xt.a)(eo.prototype,"groupCurrent",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),so=Object(Xt.a)(eo.prototype,"otherGroups",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),uo=Object(Xt.a)(eo.prototype,"dashboardStudentData",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),co=Object(Xt.a)(eo.prototype,"dashboardStudentFirstEntrance",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),po=Object(Xt.a)(eo.prototype,"isFetching",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),lo=Object(Xt.a)(eo.prototype,"lessons",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),fo=Object(Xt.a)(eo.prototype,"lessonSelections",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),bo=Object(Xt.a)(eo.prototype,"lessonCases",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),ho=Object(Xt.a)(eo.prototype,"lessonItems",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),yo=Object(Xt.a)(eo.prototype,"lastCasesStep",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return 0}}),go=Object(Xt.a)(eo.prototype,"isFinishSelectionCases",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),vo=Object(Xt.a)(eo.prototype,"isSkippedStepsForCases",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}
1),wo=Object(Xt.a)(eo.prototype,"isLoadedDataForAllCases",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Oo=Object(Xt.a)(eo.prototype,"userStatus",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),mo=Object(Xt.a)(eo.prototype,"currentSelectedValue",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return""}}),jo=Object(Xt.a)(eo.prototype,"corpList",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),So=Object(Xt.a)(eo.prototype,"corpListCount",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),xo=Object(Xt.a)(eo.prototype,"tutorList",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),ko=Object(Xt.a)(eo.prototype,"tutorListTags",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Do=Object(Xt.a)(eo.prototype,"tutorListLangs",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),_o=Object(Xt.a)(eo.prototype,"tutorListCount",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),To=Object(Xt.a)(eo.prototype,"currentTutor",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Io=Object(Xt.a)(eo.prototype,"tutorUni",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:null}),Object(Xt.a)(eo.prototype,"loadDashboardStudent",[ja],Object.getOwnPropertyDescriptor(eo.prototype,"loadDashboardStudent"),eo.prototype),Object(Xt.a)(eo.prototype,"loadGroups",[Sa],Object.getOwnPropertyDescriptor(eo.prototype,"loadGroups"),eo.prototype),Object(Xt.a)(eo.prototype,"getLoadedGroup",[xa],Object.getOwnPropertyDescriptor(eo.prototype,"getLoadedGroup"),eo.prototype),Object(Xt.a)(eo.prototype,"addGroup",[ka],Object.getOwnPropertyDescriptor(eo.prototype,"addGroup"),eo.prototype),Object(Xt.a)(eo.prototype,"deleteGroup",[Da],Object.getOwnPropertyDescriptor(eo.prototype,"deleteGroup"),eo.prototype),Object(Xt.a)(eo.prototype,"updateGroup",[_a],Object.getOwnPropertyDescriptor(eo.prototype,"updateGroup"),eo.prototype),Object(Xt.a)(eo.prototype,"loadStudents",[Ta],Object.getOwnPropertyDescriptor(eo.prototype,"loadStudents"),eo.prototype),Object(Xt.a)(eo.prototype,"getStudentCard",[Ia],Object.getOwnPropertyDescriptor(eo.prototype,"getStudentCard"),eo.prototype),Object(Xt.a)(eo.prototype,"addStudent",[La],Object.getOwnPropertyDescriptor(eo.prototype,"addStudent"),eo.prototype),Object(Xt.a)(eo.prototype,"deleteStudent",[Pa],Object.getOwnPropertyDescriptor(eo.prototype,"deleteStudent"),eo.prototype),Object(Xt.a)(eo.prototype,"_updateStudent",[Ca],Object.getOwnPropertyDescriptor(eo.prototype,"_updateStudent"),eo.prototype),Object(Xt.a)(eo.prototype,"loadLessons",[Wa],Object.getOwnPropertyDescriptor(eo.prototype,"loadLessons"),eo.prototype),Object(Xt.a)(eo.prototype,"addLesson",[Ea],Object.getOwnPropertyDescriptor(eo.prototype,"addLesson"),eo.prototype),Object(Xt.a)(eo.prototype,"deleteLesson",[Aa],Object.getOwnPropertyDescriptor(eo.prototype,"deleteLesson"),eo.prototype),Object(Xt.a)(eo.prototype,"updateLesson",[Na],Object.getOwnPropertyDescriptor(eo.prototype,"updateLesson"),eo.prototype),Object(Xt.a)(eo.prototype,"issueLessonToStudents",[Fa],Object.getOwnPropertyDescriptor(eo.prototype,"issueLessonToStudents"),eo.prototype),Object(Xt.a)(eo.prototype,"loadLessonItems",[Ua],Object.getOwnPropertyDescriptor(eo.prototype,"loadLessonItems"),eo.prototype),Object(Xt.a)(eo.prototype,"addLessonItem",[za],Object.getOwnPropertyDescriptor(eo.prototype,"addLessonItem"),eo.prototype),Object(Xt.a)(eo.prototype,"updateLessonItem",[Ra],Object.getOwnPropertyDescriptor(eo.prototype,"updateLessonItem"),eo.prototype),Object(Xt.a)(eo.prototype,"deleteLessonItem",[Ma],Object.getOwnPropertyDescriptor(eo.prototype,"deleteLessonItem"),eo.prototype),Object(Xt.a)(eo.prototype,"curLessonCases",[Ba],Object.getOwnPropertyDescriptor(eo.prototype,"curLessonCases"),eo.prototype),Object(Xt.a)(eo.prototype,"loadLessonCases",[Ga],Object.getOwnPropertyDescriptor(eo.prototype,"loadLessonCases"),eo.prototype),Object(Xt.a)(eo.prototype,"selectLessonCase",[Va],Object.getOwnPropertyDescriptor(eo.prototype,"selectLessonCase"),eo.prototype),Object(Xt.a)(eo.prototype,"resetLessonSelections",[Ja],Object.getOwnPropertyDescriptor(eo.prototype,"resetLessonSelections"),eo.prototype),Object(Xt.a)(eo.prototype,"_fullCheckLessonItem",[Ha],Object.getOwnPropertyDescriptor(eo.prototype,"_fullCheckLessonItem"),eo.prototype),Object(Xt.a)(eo.prototype,"getUserStatus",[qa],Object.getOwnPropertyDescriptor(eo.prototype,"getUserStatus"),eo.prototype),Object(Xt.a)(eo.prototype,"setUserStatusAcceptInvite",[Qa],Object.getOwnPropertyDescriptor(eo.prototype,"setUserStatusAcceptInvite"),eo.prototype),Object(Xt.a)(eo.prototype,"uploadImage",[Ka],Object.getOwnPropertyDescriptor(eo.prototype,"uploadImage"),eo.prototype),Object(Xt.a)(eo.prototype,"getCorpList",[Ya],Object.getOwnPropertyDescriptor(eo.prototype,"getCorpList"),eo.prototype),Object(Xt.a)(eo.prototype,"getTutorList",[Xa],Object.getOwnPropertyDescriptor(eo.prototype,"getTutorList"),eo.prototype),Object(Xt.a)(eo.prototype,"setTutor",[Za],Object.getOwnPropertyDescriptor(eo.prototype,"setTutor"),eo.prototype),Object(Xt.a)(eo.prototype,"getTutorUni",[$a],Object.getOwnPropertyDescriptor(eo.prototype,"getTutorUni"),eo.prototype),Object(Xt.a)(eo.prototype,"getTutor",[to],Object.getOwnPropertyDescriptor(eo.prototype,"getTutor"),eo.prototype),eo),Ui=r("mQFe");function zi(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Ri(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};
1e%2?zi(Object(r),!0).forEach((function(e){Object(Yt.a)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):zi(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}!function(t){t.myDictsAll="myDictsAll",t.myAllOnLearning="myAllOnLearning",t.myWordsetsOnLearning="myWordsetsOnLearning",t.myPhrasebooksOnLearning="myPhrasebooksOnLearning"}(Ni||(Ni={}));var Mi,Bi,Gi,Vi,Ji,Hi,qi,Qi,Ki,Yi,Xi,Zi,$i,ts,es,rs,ns,as,os,is,ss,us,cs,ps,ls,ds,fs,bs,hs,ys,gs,vs,ws,Os,ms,js,Ss,xs,ks,Ds,_s,Ts,Is,Ls,Ps,Cs,Ws,Es,As,Ns,Fs,Us,zs,Rs,Ms,Bs,Gs,Vs,Js,Hs,qs,Qs,Ks,Ys,Xs,Zs,$s,tu,eu,ru=[Ui.a.all],nu=new Map([[Ui.d.recommended,{request:"recomm"}],[Ui.d.popular,{request:"popular"}],[Ui.d.allDicts,{request:"allDicts"}],[Ui.d.myAll,{request:"myAll"}],[Ui.d.myOnLearning,{request:"myOnLearning"}],[Ui.d.globalSets,{request:"global"}],[Ui.d.myStat,{request:"stat"}]]),au=new Map([[Ui.d.myOnLearning,[[[Ui.a.wordset],{storeField:"myWordsetsOnLearning",loadMethod:"loadMyWordsetsOnLearning"}],[[Ui.a.phrasebook],{storeField:"myPhrasebooksOnLearning",loadMethod:"loadMyPhrasebookOnLearning"}],[[Ui.a.wordset,Ui.a.phrasebook],{storeField:"myAllOnLearning",loadMethod:"loadMyAllOnLearning"}]]],[Ui.d.myAll,[[[Ui.a.wordset,Ui.a.phrasebook],{storeField:"myDictsAll",loadMethod:"loadMyDictsAll"}]]],[Ui.d.popular,[[[Ui.a.wordset],{storeField:"popularDicts",loadMethod:"loadPopularDicts"}]]],[Ui.d.allDicts,[[[Ui.a.wordset],{storeField:"allDicts",loadMethod:"loadAllDicts"}]]],[Ui.d.recommended,[[[Ui.a.wordset],{storeField:"recommDicts",loadMethod:"loadRecommWordsets"}],[[Ui.a.phrasebook],{storeField:"recommPhrasebooks",loadMethod:"loadRecommPhrasebooks"}],[[Ui.a.wordset,Ui.a.phrasebook],{storeField:"recommAll",loadMethod:"loadAllRecommDicts"}]]],[Ui.d.globalSets,[[[Ui.a.wordset],{storeField:"globalWordDictsSubset",loadMethod:"loadGlobalWordDictsSubset"}],[[Ui.a.phrasebook],{storeField:"globalPhraseDictsSubset",loadMethod:"loadGlobalPhraseDictsSubset"}],[[Ui.a.wordset,Ui.a.phrasebook],{storeField:"globalAllDictsSubset",loadMethod:"loadAllGlobalDicts"}]]],[Ui.d.myStat,[[[],{storeField:"statOfMyDict",loadMethod:"loadStatOfMyDict"}]]]]),ou=(ui=ee.j.bound,ci=ee.j.bound,pi=ee.j.bound,li=ee.j.bound,di=ee.j.bound,fi=ee.j.bound,bi=ee.j.bound,hi=ee.j.bound,yi=ee.j.bound,gi=function(){function t(){var e=this;Object(Qt.a)(this,t),Object(Yt.a)(this,"optsSpecs",au),Object(qt.a)(this,"myDictsAll",vi,this),Object(qt.a)(this,"isAuth",wi,this),Object(qt.a)(this,"showAuth",Oi,this),Object(qt.a)(this,"stateConfirm",mi,this),Object(qt.a)(this,"toRemoveId",ji,this),Object(qt.a)(this,"recommDicts",Si,this),Object(qt.a)(this,"recommPhrasebooks",xi,this),Object(qt.a)(this,"recommAll",ki,this),Object(qt.a)(this,"allDicts",Di,this),Object(qt.a)(this,"popularDicts",_i,this),Object(qt.a)(this,"statOfMyDict",Ti,this),Object(qt.a)(this,"myAllOnLearning",Ii,this),Object(qt.a)(this,"myWordsetsOnLearning",Li,this),Object(qt.a)(this,"myPhrasebooksOnLearning",Pi,this),Object(qt.a)(this,"globalWordDictsSubset",Ci,this),Object(qt.a)(this,"globalPhraseDictsSubset",Wi,this),Object(qt.a)(this,"globalAllDictsSubset",Ei,this),Object(Yt.a)(this,"stateNotify",null),Object(Yt.a)(this,"stateNotifyTimeout",null),Object(qt.a)(this,"switchWordSetId",Ai,this),Object(Yt.a)(this,"switchStateNotify",(function(){clearTimeout(e.stateNotifyTimeout),e.stateNotify=100,e.stateNotifyTimeout=setTimeout((function(){e.stateNotify=0}),1500)})),Object(ee.C)(this)}return Object(Kt.a)(t,[{key:"_arGet",value:function(t,e){e=e||[];var r=t.find((function(t){var r=t[0];return Array.isArray(r)&&(r=r.slice()).sort(),te.isEqual(r,e)}));return r?r[1]:null}},{key:"_getSetsSpec",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[Ui.a.all],r=au.get(t);return this._arGet(r,e&&e.slice().sort())}},{key:"_getCategory",value:function(t){if(t.find((function(t){return t===Ui.a.all}))||te.isEqual(t.sort(),[Ui.a.wordset,Ui.a.phrasebook].sort()))return Ui.a.all;if(1===t.length)return t[0];throw new Error("Not implemented for categories: "+t)}},{key:"loadSets",value:function(){var t=Object(Ht.a)($t.a.mark((function t(){var e,r,n,a,o,i,s,u=this,c=arguments;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=c.length>0&&void 0!==c[0]?c[0]:[],r=ru,n=1,a=20,o=[],i=e.map((function(t,e){var i,s=t.wordSetsType,c=t.opts,p=void 0===c?{}:c,l=p.categories,d=void 0===l?r:l,f=p.page,b=void 0===f?n:f,h=p.perPage,y=void 0===h?a:h,g=p.subOp;d&&(i=u._getCategory(d));
1var v=nu.get(s),w=u._getSetsSpec(s,d);if(!w)throw new Error("Not found setsSpec for wordSetsType = ".concat(s,", categories = ").concat(d));return o[e]=w.storeField,{req:v.request,opts:{category:i,page:b,perPage:y,subOp:g}}})),t.next=8,Ui.e.loadSets(i);case 8:return(s=t.sent).forEach((function(t,e){u[o[e]]=t})),t.abrupt("return",s);case 11:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}()},{key:"loadAllRecommDicts",value:function(){var t=Object(Ht.a)($t.a.mark((function t(){return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.loadSets([{wordSetsType:Ui.d.recommended,opts:{categories:[Ui.a.wordset,Ui.a.phrasebook]}}]);case 2:return t.abrupt("return",t.sent[0]);case 3:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"loadRecommPhrasebooks",value:function(){var t=Object(Ht.a)($t.a.mark((function t(){var e;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.loadSets([{wordSetsType:Ui.d.recommended,opts:{categories:[Ui.a.phrasebook]}}]);case 2:return e=t.sent,t.abrupt("return",e[0]);case 4:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"loadRecommWordsets",value:function(){var t=Object(Ht.a)($t.a.mark((function t(){var e;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.loadSets([{wordSetsType:Ui.d.recommended,opts:{categories:[Ui.a.wordset]}}]);case 2:return e=t.sent,t.abrupt("return",e[0]);case 4:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"loadRecommDicts",value:function(){var t=Object(Ht.a)($t.a.mark((function t(){var e,r,n,a=arguments;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=a.length>0&&void 0!==a[0]?a[0]:{},(r=e.category)!==Ui.a.wordset){t.next=6;break}return t.next=5,this.loadRecommWordsets();case 5:n=t.sent;case 6:if(r!==Ui.a.phrasebook){t.next=10;break}return t.next=9,this.loadRecommPhrasebooks();case 9:n=t.sent;case 10:return t.abrupt("return",n);case 11:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"loadPopularDicts",value:function(){var t=Object(Ht.a)($t.a.mark((function t(){var e;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.loadSets([{wordSetsType:Ui.d.popular,opts:{categories:[Ui.a.wordset]}}]);case 2:return e=t.sent,t.abrupt("return",e[0]);case 4:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"loadAllDicts",value:function(){var t=Object(Ht.a)($t.a.mark((function t(){var e;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.loadSets([{wordSetsType:Ui.d.allDicts,opts:{categories:[Ui.a.wordset]}}]);case 2:return e=t.sent,t.abrupt("return",e[0]);case 4:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"loadMyDictsAll",value:function(){var t=Object(Ht.a)($t.a.mark((function t(){var e;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.loadSets([{wordSetsType:Ui.d.myAll,opts:{categories:[Ui.a.wordset,Ui.a.phrasebook]}}]);case 2:return e=t.sent,t.abrupt("return",e[0]);case 4:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"loadMySetsOnLearning",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e){var r,n;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=e.subOp,n=e.categories,t.next=3,this.loadSets([{wordSetsType:Ui.d.myOnLearning,opts:{subOp:r,categories:n}}]);case 3:return t.abrupt("return",t.sent[0]);case 4:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"loadMyAllOnLearning",value:function(){var t=Object(Ht.a)($t.a.mark((function t(){return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.loadMySetsOnLearning({subOp:"loadMyAllOnLearning",categories:[Ui.a.wordset,Ui.a.phrasebook]});case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"loadMyWordsetsOnLearning",value:function(){var t=Object(Ht.a)($t.a.mark((function t(){return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.loadMySetsOnLearning({subOp:"loadMyWordsetsOnLearning",categories:[Ui.a.wordset]});case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"loadMyPhrasebooksOnLearning",value:function(){var t=Object(Ht.a)($t.a.mark((function t(){return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.loadMySetsOnLearning({subOp:"loadMyPhrasebooksOnLearning",categories:[Ui.a.phrasebook]});case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"loadGlobalDicts",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e){return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.loadSets([{wordSetsType:Ui.d.globalSets,opts:e}]);case 2:return t.abrupt("return",t.sent[0]);case 3:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"loadAllGlobalDicts",value:function(){var t=Object(Ht.a)($t.a.mark((function t(){return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.loadGlobalDicts({categories:[Ui.a.wordset,Ui.a.phrasebook],subOp:"loadAllGlobalDicts"});case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"loadGlobalWordDictsSubset",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e,r){return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.loadGlobalDicts({page:e,perPage:r,categories:[Ui.a.wordset],subOp:"loadGlobalWordDictsSubset"});case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t,this)})));return function(e,r){return t.apply(this,arguments)}}()},{key:"loadGlobalPhraseDictsSubset",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e,r){return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.loadGlobalDicts({page:e,perPage:r,categories:[Ui.a.phrasebook],subOp:"loadGlobalPhraseDictsSubset"});case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t,this)})));return function(e,r){return t.apply(this,arguments)}}()},{key:"loadStatOfMyDict",value:function(){var t=Object(Ht.a)($t.a.mark((function t(){return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.loadSets([{wordSetsType:Ui.d.myStat,opts:{subOp:"loadStatOfMyDict",categories:null}}]);case 2:return t.abrupt("return",t.sent[0]);case 3:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"filter",value:function(t,e,r){return Ui.e.filter(t,e,r)}},{key:"_removeWordSet",value:function(t,e){var r=this[e].filter((function(e){return e.id!==t}));this[e]=r}},{key:"_addWordSet",value:function(t,e){var r=!1,n=this[e].map((function(e){return e.id===t.id?(r=!0,t):e}));r||n.push(t),this[e]=n}},{key:"_addWordSetToMy",value:function(t){var e=this,r=t.category,n=function(r){e._addWordSet(t,r)};return n(Ni.myDictsAll),t.status===Ui.b.Learning&&(n(Ni.myAllOnLearning),r===Ui.a.wordset?n(Ni.myWordsetsOnLearning):r===Ui.a.phrasebook&&n(Ni.myPhrasebooksOnLearning)),this[Ni.myDictsAll]}},{key:"_removeWordSetFromMy",value:function(t){var e=this,r=this[Ni.myDictsAll].find((function(e){return e.id===t}));if(r){var n=r.category,a=function(n){e._removeWordSet(t,n);var a=e[n].filter((function(t){return t.id!==r.id}));e[n]=a};a(Ni.myDictsAll),r.status===Ui.b.Learning&&(a(Ni.myAllOnLearning),n===Ui.a.wordset?a(Ni.myWordsetsOnLearning):n===Ui.a.phrasebook&&a(Ni.myPhrasebooksOnLearning))}return this[Ni.myDictsAll]}},{key:"addDictToOnLearning",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e){var r;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Ui.e.addWordSet(e);case 2:return(r=t.sent).error||(this.switchWordSetId(e,r.id),this.switchStateNotify(),this._addWordSetToMy(r)),t.abrupt("return",r);case 5:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"createDictInMyAll",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e,r){var n,a;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Ui.e.createWordSet(e,r);case 2:return n=t.sent,a=this._addWordSetToMy(n),t.abrupt("return",[n,a]);case 5:case"end":return t.stop()}}),t,this)})));return function(e,r){return t.apply(this,arguments)}}()},{key:"removeDictFromMyAll",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e){var r,n,a;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Ui.e.removeWordSet(e);case 2:return r=this._removeWordSetFromMy(e),n=this.myDictsAll.filter((function(t){return t.id!==e})),a=this.myWordsetsOnLearning.filter((function(t){return t.id!==e})),this.myDictsAll=n,this.myWordsetsOnLearning=a,this.switchWordSetId(e,null),t.abrupt("return",r);case 9:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"removeDictFromMyAllFromAllDicts",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e){var r,n,a;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Ui.e.removeWordSetFromAllDicts(e);case 2:return r=this._removeWordSetFromMy(e),n=this.myDictsAll.filter((function(t){return t.id!==e})),a=this.myWordsetsOnLearning.filter((function(t){return t.id!==e})),this.myDictsAll=n,this.myWordsetsOnLearning=a,this.switchWordSetId(e,null),t.abrupt("return",r);case 9:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"removeDictFromAny",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e){return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Ui.e.removeWordSet(e);case 2:this.switchWordSetId(e,null);case 3:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"addToTrainings",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e,r){return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Ui.e.addToTrainings(e,r);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)})));return function(e,r){return t.apply(this,arguments)}}()}]),t}(),vi=Object(Xt.a)(gi.prototype,"myDictsAll",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),wi=Object(Xt.a)(gi.prototype,"isAuth",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),Oi=Object(Xt.a)(gi.prototype,"showAuth",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),mi=Object(Xt.a)(gi.prototype,"stateConfirm",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),ji=Object(Xt.a)(gi.prototype,"toRemoveId",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Si=Object(Xt.a)(gi.prototype,"recommDicts",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),xi=Object(Xt.a)(gi.prototype,"recommPhrasebooks",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),ki=Object(Xt.a)(gi.prototype,"recommAll",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),Di=Object(Xt.a)(gi.prototype,"allDicts",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),_i=Object(Xt.a)(gi.prototype,"popularDicts",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),Ti=Object(Xt.a)(gi.prototype,"statOfMyDict",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),Ii=Object(Xt.a)(gi.prototype,"myAllOnLearning",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),Li=Object(Xt.a)(gi.prototype,"myWordsetsOnLearning",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),Pi=Object(Xt.a)(gi.prototype,"myPhrasebooksOnLearning",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),Ci=Object(Xt.a)(gi.prototype,"globalWordDictsSubset",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),Wi=Object(Xt.a)(gi.prototype,"globalPhraseDictsSubset",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),Ei=Object(Xt.a)(gi.prototype,"globalAllDictsSubset",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),Object(Xt.a)(gi.prototype,"loadSets",[ui],Object.getOwnPropertyDescriptor(gi.prototype,"loadSets"),gi.prototype),Object(Xt.a)(gi.prototype,"_removeWordSet",[ci],Object.getOwnPropertyDescriptor(gi.prototype,"_removeWordSet"),gi.prototype),Object(Xt.a)(gi.prototype,"_addWordSet",[pi],Object.getOwnPropertyDescriptor(gi.prototype,"_addWordSet"),gi.prototype),Object(Xt.a)(gi.prototype,"_removeWordSetFromMy",[li],Object.getOwnPropertyDescriptor(gi.prototype,"_removeWordSetFromMy"),gi.prototype),Object(Xt.a)(gi.prototype,"addDictToOnLearning",[di],Object.getOwnPropertyDescriptor(gi.prototype,"addDictToOnLearning"),gi.prototype),Object(Xt.a)(gi.prototype,"removeDictFromMyAll",[fi],Object.getOwnPropertyDescriptor(gi.prototype,"removeDictFromMyAll"),gi.prototype),Object(Xt.a)(gi.prototype,"removeDictFromMyAllFromAllDicts",[bi],Object.getOwnPropertyDescriptor(gi.prototype,"removeDictFromMyAllFromAllDicts"),gi.prototype),Object(Xt.a)(gi.prototype,"removeDictFromAny",[hi],Object.getOwnPropertyDescriptor(gi.prototype,"removeDictFromAny"),gi.prototype),Ai=Object(Xt.a)(gi.prototype,"switchWordSetId",[yi],{
1configurable:!0,enumerable:!0,writable:!0,initializer:function(){var t=this;return function(e,r){var n=function(t){return(t||[]).map((function(t){return(r?t.id:t.wordSetId)===e?Ri(Ri({},t),{},{wordSetId:r}):t}))};t.myDictsAll=n(t.myDictsAll),t.recommDicts=n(t.recommDicts),t.recommAll=n(t.recommAll),t.allDicts=n(t.allDicts),t.recommPhrasebooks=n(t.recommPhrasebooks),t.popularDicts=n(t.popularDicts),t.myAllOnLearning=n(t.myAllOnLearning),t.myWordsetsOnLearning=n(t.myWordsetsOnLearning),t.myPhrasebooksOnLearning=n(t.myPhrasebooksOnLearning),t.globalWordDictsSubset=n(t.globalWordDictsSubset),t.globalPhraseDictsSubset=n(t.globalPhraseDictsSubset),t.globalAllDictsSubset=n(t.globalAllDictsSubset),t.loadStatOfMyDict(),t.loadMyWordsetsOnLearning(),t.loadMyDictsAll()}}}),gi),iu=r("D+0b");function su(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function uu(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?su(Object(r),!0).forEach((function(e){Object(Yt.a)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):su(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var cu=(Mi=ee.j.bound,Bi=ee.j.bound,Gi=ee.j.bound,Vi=ee.j.bound,Ji=ee.j.bound,Hi=ee.j.bound,qi=ee.j.bound,Qi=ee.j.bound,Ki=ee.j.bound,Yi=ee.j.bound,Xi=ee.j.bound,Zi=ee.j.bound,$i=ee.j.bound,ts=ee.j.bound,es=ee.j.bound,rs=ee.j.bound,ns=ee.j.bound,as=ee.j.bound,os=ee.j.bound,is=ee.j.bound,ss=ee.j.bound,us=ee.j.bound,cs=ee.j.bound,ps=ee.j.bound,ls=ee.j.bound,ds=ee.j.bound,fs=ee.j.bound,bs=ee.j.bound,hs=ee.j.bound,ys=ee.j.bound,gs=ee.j.bound,vs=ee.j.bound,ws=ee.j.bound,Os=ee.j.bound,ms=function(){function t(){Object(Qt.a)(this,t),Object(qt.a)(this,"wordsMyDictUnclassify",js,this),Object(qt.a)(this,"wordsMyDict",Ss,this),Object(qt.a)(this,"words",xs,this),Object(qt.a)(this,"filteredWords",ks,this),Object(qt.a)(this,"curFilter",Ds,this),Object(qt.a)(this,"curDictNameOrId",_s,this),Object(qt.a)(this,"isFetching",Ts,this),Object(qt.a)(this,"isWordUpdating",Is,this),Object(qt.a)(this,"periodsCounts",Ls,this),Object(qt.a)(this,"periodsIds",Ps,this),Object(qt.a)(this,"trainings",Cs,this),Object(qt.a)(this,"compactWords",Ws,this),Object(qt.a)(this,"new_isFetching",Es,this),Object(qt.a)(this,"new_curDictNameOrId",As,this),Object(qt.a)(this,"new_curFilter",Ns,this),Object(qt.a)(this,"new_periodsCounts",Fs,this),Object(qt.a)(this,"new_periodsIds",Us,this),Object(qt.a)(this,"new_wordsMyDict",zs,this),Object(qt.a)(this,"new_words",Rs,this),Object(qt.a)(this,"new_filteredWords",Ms,this),Object(qt.a)(this,"new_trainings",Bs,this),Object(qt.a)(this,"new_listWordSets",Gs,this),Object(qt.a)(this,"chunk",Vs,this),Object(qt.a)(this,"new_compactWords",Js,this),Object(qt.a)(this,"new_wordsMyDictUnclassify",Hs,this),Object(qt.a)(this,"isPremShow",qs,this),Object(qt.a)(this,"fromWordSet",Qs,this),Object(qt.a)(this,"new_fromWordSet",Ks,this),Object(qt.a)(this,"wordsLastPart",Ys,this),Object(qt.a)(this,"new_wordsLastPart",Xs,this),Object(qt.a)(this,"new_filteredWordsLastPart",Zs,this),Object(qt.a)(this,"filteredWordsUnclassify",$s,this),Object(qt.a)(this,"cardWord",tu,this),Object(qt.a)(this,"wordCard",eu,this),Object(Yt.a)(this,"generateMergedFilteredWords",(function(t,e){var r=[];return t.forEach((function(t){var n=te.find(e,{period:t.period}),a=t.words,o=n.words,i=te.union(a,o),s=te.uniqBy(i,"wordId"),u=uu(uu({},n),{},{words:s});r.push(u)})),r})),Object(Yt.a)(this,"_insertElements",(function(t,e,r,n){r=r||0,t.length>r&&t.length>1&&(r=t.length),n=r+e.length;var a=t.slice(0,r),o=t.slice(n);return[].concat(a,e,o)})),this._init(),Object(ee.C)(this)}return Object(Kt.a)(t,[{key:"_init",value:function(){this.clean(),this.isPremShow=!1,this.fromWordSet=null,this.new_fromWordSet=null,this.wordsLastPart=[],this.new_wordsLastPart=[],this.new_filteredWordsLastPart=[]}},{key:"clean",value:function(){this.wordsMyDictUnclassify=[],this.wordsMyDict=[],this.words={},this.filteredWords=[],this.curFilter=se.c.All,this.curDictNameOrId=null,this.isFetching=!0,this.isWordUpdating=!1,this.periodsCounts=null,this.periodsIds=null,this.trainings=[],this.compactWords=[],this.new_isFetching=!0,this.new_curDictNameOrId=null,this.new_curFilter=null,this.new_periodsCounts=null,this.new_periodsIds=null,this.new_wordsMyDict=[],this.new_words=null,this.new_filteredWords=[],this.new_trainings=[],this.new_listWordSets=[],this.chunk=null,this.new_compactWords=[],this.new_wordsMyDictUnclassify=[]}},{key:"cleanAll",value:function(){this._init()}},{key:"getWord",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e){var r;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,iu.a.new_loadWordById(e,4);case 2:return r=t.sent,this.cardWord=r,t.abrupt("return",r);case 5:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"getWordForCard",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e,r,n){var a;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,iu.a.new_loadWordForCard(e,r,n);case 2:return a=t.sent,this.cardWord=a,t.abrupt("return",a);case 5:case"end":return t.stop()}}),t,this)})));return function(e,r,n){return t.apply(this,arguments)}}()},{key:"loadWord",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e,r){var n;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,iu.a.new_loadWordById(e,r);case 2:return n=t.sent,t.abrupt("return",this.updateWordInStore(n));case 4:case"end":return t.stop()}}),t,this)})));return function(e,r){return t.apply(this,arguments)}}()},{key:"_values",value:function(t){return Object.keys(t).map((function(e){return t[e]}))}},{key:"updateWordInStore",value:function(t){var e=Object.assign({},this.words);return e[t.wordId]=t,this._updateWords(this._values(e)),this.getWord(t.wordId)}},{key:"loadWordsForDict",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e,r){var n,a,o,i,s,u,c,p,l,d;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(iu.a.isOwnDict(e)&&(n={search:r.search,c
1ategory:r.category,status:r.status,training:r.training},this.loadPeriodsCounts(e,n)),this.curDictNameOrId=e,this.isFetching=!0,!iu.a.isOwnDict(e)){t.next=9;break}return t.next=6,iu.a.loadWordsMyDict(r);case 6:a=t.sent,t.next=13;break;case 9:return o=iu.a.normalizeId(e),t.next=12,iu.a.loadWordsForDict(o,r);case 12:a=t.sent;case 13:return this.isFetching=!1,this.fromWordSet=a.wordSet,s=(i=r||{}).page,u=void 0===s?null:s,c=i.perPage,p=void 0===c?null:c,l=i.status,(d=void 0===l?null:l)&&(this.curFilter=d),t.abrupt("return",this._updateWords(a.words,u,p));case 18:case"end":return t.stop()}}),t,this)})));return function(e,r){return t.apply(this,arguments)}}()},{key:"new_loadWordsForDict",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e,r){var n,a,o,i;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.new_curDictNameOrId=e,this.isFetching=!0,n=e&&iu.a.normalizeId(e),t.next=5,iu.a.new_loadWordsForDict(n,r);case 5:return a=t.sent,this.isFetching=!1,this.new_fromWordSet=a.wordSet,this.new_trainings=a.trainings,this.new_listWordSets=a.listWordSets,o=(r||{}).status,(i=void 0===o?null:o)&&(this.new_curFilter=i),iu.a.isOwnDict(e)&&(this.new_periodsCounts=iu.a.getPeriodsCounts(a.words)),this.new_wordsMyDict=a.words,this.new_filteredWordsLastPart=a.words,this.new_filteredWords=te.isNil(this.new_filteredWords)||te.isEmpty(this.new_filteredWords)?a.words:this.generateMergedFilteredWords(this.new_filteredWords,this.new_filteredWordsLastPart),this.new_wordsMyDictUnclassify=this._newutil_extractAllWords(a.words),this.new_words=iu.a.getWordsByIds(this.wordsMyDictUnclassify),t.abrupt("return",a.words);case 19:case"end":return t.stop()}}),t,this)})));return function(e,r){return t.apply(this,arguments)}}()},{key:"_newutil_extractAllWords",value:function(t){var e=[];return t.forEach((function(t){e=e.concat(t.words)})),e}},{key:"new_loadWordsMyDict",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e,r){return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.new_loadWordsForDict(se.f.my,r);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t,this)})));return function(e,r){return t.apply(this,arguments)}}()},{key:"loadWordsMyDict",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e){return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.curDictNameOrId=se.f.my,t.next=3,this.loadWordsForDict(se.f.my,e);case 3:return t.abrupt("return",t.sent);case 4:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"_updateWords",value:function(t,e,r){if(this.wordsLastPart=t,e){var n=(e-1)*r,a=this._insertElements(this.wordsMyDictUnclassify,t,n);this.wordsMyDictUnclassify=a}else this.wordsMyDictUnclassify=t;this.words=iu.a.getWordsByIds(this.wordsMyDictUnclassify);var o=iu.a.classifyWords(this.wordsMyDictUnclassify);return this.wordsMyDict=o,this.filter(),o}},{key:"filter",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.curFilter,e=iu.a.filter(this.wordsMyDictUnclassify,t);this.filteredWordsUnclassify=e;var r=iu.a.classifyWords(e);return this.filteredWords=r,this.curFilter=t,r}},{key:"updateLearningStatus",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e,r){var n,a,o,i=arguments;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=i.length>2&&void 0!==i[2]?i[2]:this.curDictNameOrId,t.next=3,iu.a.updateLearningStatus(e,r,n);case 3:return a=t.sent,t.next=6,Object.assign({},this.words);case 6:return o=t.sent,a.forEach((function(t){o[t.wordId]=t})),t.next=10,this._updateWords(this._values(o));case 10:case"end":return t.stop()}}),t,this)})));return function(e,r){return t.apply(this,arguments)}}()},{key:"updateLearningStatusWithoutStoreUpdate",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e,r){var n,a,o,i=arguments;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=i.length>2&&void 0!==i[2]?i[2]:this.curDictNameOrId,t.next=3,iu.a.updateLearningStatus(e,r,n);case 3:return a=t.sent,t.next=6,Object.assign({},this.words);case 6:o=t.sent,a.forEach((function(t){o[t.wordId]=t}));case 8:case"end":return t.stop()}}),t,this)})));return function(e,r){return t.apply(this,arguments)}}()},{key:"new_updateLearningStatus",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e,r){var n,a,o=this,i=arguments;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=i.length>2&&void 0!==i[2]?i[2]:this.curDictNameOrId,t.next=3,iu.a.new_updateLearningStatus(e,r,n);case 3:return(a=t.sent).forEach((function(t){var e=null;o.new_filteredWords.forEach((function(r){te.some(r.words,{wordId:t.wordId})&&(r.period,e=te.find(r.words,{wordId:t.wordId}))})),e&&te.merge(e,t)})),t.abrupt("return",a);case 6:case"end":return t.stop()}}),t,this)})));return function(e,r){return t.apply(this,arguments)}}()},{key:"setWordUpdatingStatus",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e){return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this.isWordUpdating=e;case 1:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"updateWord",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e,r,n){var a,o,i,s=arguments;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return a=s.length>3&&void 0!==s[3]?s[3]:this.curDictNameOrId,t.next=3,iu.a.updateWord(Object.assign({},r),n,a);case 3:return o=t.sent,i=Object.assign({},this.words),this.curFilter!==o.learningStatus&&this.curFilter!==se.c.All?delete i[e]:i[e]=o,Object.keys(i).forEac
1h((function(t){var e=i[t],r=e.relatedWords;r&&(e.relatedWords=r.map((function(t){return t.wordId===o.wordId&&(t=iu.a.updateRelatedWordFromWord(t,o)),t}))),i[e.wordId]=e})),this._updateWords(this._values(i)),this.cardWord=o,t.abrupt("return",o);case 10:case"end":return t.stop()}}),t,this)})));return function(e,r,n){return t.apply(this,arguments)}}()},{key:"uploadImage",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e){return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,iu.a.uploadImage(e);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()},{key:"deleteWords",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e){var r,n,a=arguments;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=a.length>1&&void 0!==a[1]?a[1]:this.curDictNameOrId,t.next=3,iu.a.deleteWords(e,r);case 3:n=Object.assign({},this.words),e.forEach((function(t){return delete n[t]})),this._updateWords(this._values(n));case 6:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"new_deleteWords",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e,r,n,a){var o,i,s=arguments;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=s.length>4&&void 0!==s[4]?s[4]:this.new_curDictNameOrId,t.next=3,iu.a.new_deleteWords(e,r,n,a,o);case 3:return i=t.sent,this.chunk=i.chunk,t.abrupt("return",i.chunk);case 6:case"end":return t.stop()}}),t,this)})));return function(e,r,n,a){return t.apply(this,arguments)}}()},{key:"deleteWordsFromAllDicts",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e){var r,n,a=arguments;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=a.length>1&&void 0!==a[1]?a[1]:this.curDictNameOrId,t.next=3,iu.a.deleteWords(e,r);case 3:n=Object.assign({},this.words),e.forEach((function(t){return delete n[t]})),this._updateWords(this._values(n));case 6:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"new_deleteWordsFromAllDicts",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e,r,n,a){var o,i,s=arguments;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=s.length>4&&void 0!==s[4]?s[4]:this.new_curDictNameOrId,t.next=3,iu.a.new_deleteWordsFromAllDicts(e,r,n,a,o);case 3:return i=t.sent,this.chunk=i.chunk,t.abrupt("return",i.chunk);case 6:case"end":return t.stop()}}),t,this)})));return function(e,r,n,a){return t.apply(this,arguments)}}()},{key:"deleteWord",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e){var r,n=arguments;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=n.length>1&&void 0!==n[1]?n[1]:this.curDictNameOrId,this.fromWordSet.countWords=this.fromWordSet.countWords-1,t.abrupt("return",this.deleteWords([e],r));case 3:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"new_deleteWord",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e){var r,n,a,o,i=arguments;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=i.length>1&&void 0!==i[1]?i[1]:this.curDictNameOrId,n=null,a="",this.new_filteredWords.forEach((function(t){te.some(t.words,{wordId:e})&&(a=t.period,n=te.find(t.words,{wordId:e}))})),n&&(this.new_fromWordSet.countWords=this.new_fromWordSet.countWords-1,o=te.find(this.new_filteredWords,{period:a}),te.merge(o,{periodCount:o.periodCount-1}),te.remove(o.words,n)),t.abrupt("return",this.new_deleteWords([e],null,null,null,r));case 6:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"addWords",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e){var r,n,a,o,i,s,u=this,c=arguments;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=c.length>1&&void 0!==c[1]?c[1]:se.f.my,n=c.length>2?c[2]:void 0,a=c.length>3?c[3]:void 0,o=c.length>4?c[4]:void 0,t.next=6,iu.a.addWords(e,r,n,a,o);case 6:return i=t.sent,s=Object.assign({}
1,this.words),i.forEach((function(t){t&&t.wordId&&(s[t.wordId]=t),t.NotEnoughMeatballs&&(u.isPremShow=!0)})),this._updateWords(this._values(s)),t.abrupt("return",i);case 11:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"new_addWords",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e){var r,n,a,o,i,s=this,u=arguments;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=u.length>1&&void 0!==u[1]?u[1]:se.f.my,n=u.length>2?u[2]:void 0,a=u.length>3?u[3]:void 0,o=u.length>4?u[4]:void 0,t.next=6,iu.a.new_addWords(e,r,n,a,o);case 6:return(i=t.sent).forEach((function(t){t.NotEnoughMeatballs&&(s.isPremShow=!0)})),t.abrupt("return",i);case 9:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()},{key:"new_addWordsToAnotherWordset",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e,r,n,a,o,i){var s,u,c=this,p=arguments;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return p.length>6&&void 0!==p[6]&&p[6],s=p.length>7&&void 0!==p[7]?p[7]:this.new_curDictNameOrId,t.next=4,iu.a.new_addWordsToAnotherWordset(e,r,n,a,o,i,s);case 4:return u=t.sent,this.chunk=u.chunk,u.data.forEach((function(t){t.NotEnoughMeatballs&&(c.isPremShow=!0)})),t.abrupt("return",u.chunk);case 9:case"end":return t.stop()}}),t,this)})));return function(e,r,n,a,o,i){return t.apply(this,arguments)}}()},{key:"addWordsWithoutStoreUpdate",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e){var r,n,a,o,i,s,u=this,c=arguments;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=c.length>1&&void 0!==c[1]?c[1]:se.f.my,n=c.length>2?c[2]:void 0,a=c.length>3?c[3]:void 0,o=c.length>4?c[4]:void 0,t.next=6,iu.a.addWords(e,r,n,a,o);case 6:return i=t.sent,s=Object.assign({},this.words),i.forEach((function(t){t&&t.wordId&&(s[t.wordId]=t),t.NotEnoughMeatballs&&(u.isPremShow=!0)})),t.abrupt("return",i);case 10:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"addWord",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e){var r,n,a,o=arguments;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=o.length>1&&void 0!==o[1]?o[1]:se.f.my,n=o.length>2?o[2]:void 0,t.next=4,this.addWords([e],r,n);case 4:return a=t.sent,t.abrupt("return",a[0]);case 6:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"addWordWithoutStoreUpdate",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e){var r,n,a,o=arguments;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=o.length>1&&void 0!==o[1]?o[1]:se.f.my,n=o.length>2?o[2]:void 0,t.next=4,this.addWordsWithoutStoreUpdate([e],r,n);case 4:return a=t.sent,t.abrupt("return",a[0]);case 6:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"new_addWord",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e){var r,n,a,o=arguments;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=o.length>1&&void 0!==o[1]?o[1]:se.f.my,n=o.length>2?o[2]:void 0,t.next=4,this.new_addWords([e],r,n);case 4:return a=t.sent,t.abrupt("return",a[0]);case 6:case"end":return t.stop()}}),t,this)})));return function(e){return t.apply(this,arguments)}}()},{key:"loadWordsIds",value:function(){var t=Object(Ht.a)($t.a.mark((function t(){var e,r,n,a=arguments;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=a.length>0&&void 0!==a[0]?a[0]:se.f.my,r=a.length>1?a[1]:void 0,t.next=4,iu.a.loadPeriodsIds(e,r);case 4:return n=t.sent,this.periodsIds=n,t.abrupt("return",n);case 7:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"loadPeriodsCounts",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e,r){var n;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,iu.a.new_loadPeriodsIds(e,r);case 2:return n=t.sent,this.new_periodsIds=n,t.abrupt("return",n);case 5:case"end":return t.stop()}}),t,this)})));return function(e,r){return t.apply(this,arguments)}}()},{key:"loadCompactWords",value:function(){var t=Object(Ht.a)($t.a.mark((function t(){var e,r,n,a=arguments;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=a.length>0&&void 0!==a[0]?a[0]:this.curDictNameOrId,r=a.length>1?a[1]:void 0,t.next=4,iu.a.loadCompactWords(e,r);case 4:return n=t.sent,this.compactWords=n,t.abrupt("return",n);case 7:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"new_loadCompactWords",value:function(){var t=Object(Ht.a)($t.a.mark((function t(){var e,r,n,a,o=arguments;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=o.length>0&&void 0!==o[0]?o[0]:this.curDictNameOrId,r=o.length>1?o[1]:void 0,n=o.length>2?o[2]:void 0,t.next=5,iu.a.new_loadCompactWords(e,r,n);case 5:return a=t.sent,this.new_compactWords=a,t.abrupt("return",a);case 8:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"getTranslate",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e){return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,iu.a.getTranslate(e);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()},{key:"getWordCard",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e,r,n){var a;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.isFetching=!0,t.next=3,iu.a.getWordCard(e,r,n);case 3:return a=t.sent,this.wordCard=a,this.isFetching=!1,t.abrupt("return",a);case 7:case"end":return t.stop()}}),t,this)})));return function(e,r,n){return t.apply(this,arguments)}}()},{key:"loadTrainings",value:function(){var t=Object(Ht.a)($t.a.mark((function t(){var e;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,iu.a.loadTrainings();case 2:return e=t.sent,this.trainings=e,t.abrupt("return",e);case 5:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"new_addNewWord",value:function(){var t=Object(Ht.a)($t.a.mark((function t(){var e,r,n,a,o,i,s=this,u=arguments;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=u.length>0&&void 0!==u[0]?u[0]:this.new_curDictNameOrId,r=u.length>1?u[1]:void 0,n=u.length>2?u[2]:void 0,a=u.length>3?u[3]:void 0,o=u.length>4?u[4]:void 0,u.length>5?u[5]:void 0,t.next=8,iu.a.new_addNewWord(e,r,n,a,o);case 8:return(i=t.sent).data.forEach((function(t){t.NotEnoughMeatballs&&(s.isPremShow=!0)})),t.abrupt("return",i);case 11:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"new_loadTrainings",value:function(){var t=Object(Ht.a)($t.a.mark((function t(){var e;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,iu.a.new_loadTrainings();case 2:return e=t.sent,this.new_trainings=e,t.abrupt("return",e);case 5:case"end":return t.stop()}}),t,this)})));return function(){return t.apply(this,arguments)}}()},{key:"saveWordsToTraining",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e,r){var n,a=arguments;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=a.length>2&&void 0!==a[2]?a[2]:this.curDictNameOrId,t.next=3,iu.a.saveWordsToTraining(e,r,n);case 3:case"end":return t.stop()}}),t,this)})));return function(e,r){return t.apply(this,arguments)}}()},{key:"new_saveWordsToTraining",value:function(){var t=Object(Ht.a)($t.a.mark((function t(e,r,n,a,o){var i,s,u=arguments;return $t.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(u.length>5&&void 0!==u[5]&&u[5],i=u.length>6&&void 0!==u[6]?u[6]:this.new_curDictNameOrId,te.isNil(n)){t.next=11;break}
1return t.next=5,iu.a.new_saveWordsToTraining(e,r,n,a,o,"training",i);case 5:return s=t.sent,this.chunk=s.chunk,t.abrupt("return",s.chunk);case 11:return t.abrupt("return");case 12:case"end":return t.stop()}}),t,this)})));return function(e,r,n,a,o){return t.apply(this,arguments)}}()}]),t}(),js=Object(Xt.a)(ms.prototype,"wordsMyDictUnclassify",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),Ss=Object(Xt.a)(ms.prototype,"wordsMyDict",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),xs=Object(Xt.a)(ms.prototype,"words",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return{}}}),ks=Object(Xt.a)(ms.prototype,"filteredWords",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),Ds=Object(Xt.a)(ms.prototype,"curFilter",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return se.c.All}}),_s=Object(Xt.a)(ms.prototype,"curDictNameOrId",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Ts=Object(Xt.a)(ms.prototype,"isFetching",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),Is=Object(Xt.a)(ms.prototype,"isWordUpdating",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Ls=Object(Xt.a)(ms.prototype,"periodsCounts",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Ps=Object(Xt.a)(ms.prototype,"periodsIds",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Cs=Object(Xt.a)(ms.prototype,"trainings",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),Ws=Object(Xt.a)(ms.prototype,"compactWords",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),Es=Object(Xt.a)(ms.prototype,"new_isFetching",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!0}}),As=Object(Xt.a)(ms.prototype,"new_curDictNameOrId",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Ns=Object(Xt.a)(ms.prototype,"new_curFilter",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Fs=Object(Xt.a)(ms.prototype,"new_periodsCounts",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Us=Object(Xt.a)(ms.prototype,"new_periodsIds",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),zs=Object(Xt.a)(ms.prototype,"new_wordsMyDict",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),Rs=Object(Xt.a)(ms.prototype,"new_words",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Ms=Object(Xt.a)(ms.prototype,"new_filteredWords",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),Bs=Object(Xt.a)(ms.prototype,"new_trainings",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),Gs=Object(Xt.a)(ms.prototype,"new_listWordSets",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),Vs=Object(Xt.a)(ms.prototype,"chunk",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Js=Object(Xt.a)(ms.prototype,"new_compactWords",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),Hs=Object(Xt.a)(ms.prototype,"new_wordsMyDictUnclassify",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),qs=Object(Xt.a)(ms.prototype,"isPremShow",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return!1}}),Qs=Object(Xt.a)(ms.prototype,"fromWordSet",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Ks=Object(Xt.a)(ms.prototype,"new_fromWordSet",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Ys=Object(Xt.a)(ms.prototype,"wordsLastPart",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),Xs=Object(Xt.a)(ms.prototype,"new_wordsLastPart",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),Zs=Object(Xt.a)(ms.prototype,"new_filteredWordsLastPart",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),$s=Object(Xt.a)(ms.prototype,"filteredWordsUnclassify",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return[]}}),tu=Object(Xt.a)(ms.prototype,"cardWord",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),eu=Object(Xt.a)(ms.prototype,"wordCard",[ee.D],{configurable:!0,enumerable:!0,writable:!0,initializer:function(){return null}}),Object(Xt.a)(ms.prototype,"loadWord",[Mi],Object.getOwnPropertyDescriptor(ms.prototype,"loadWord"),ms.prototype),Object(Xt.a)(ms.prototype,"loadWordsForDict",[Bi],Object.getOwnPropertyDescriptor(ms.prototype,"loadWordsForDict"),ms.prototype),Object(Xt.a)(ms.prototype,"new_loadWordsForDict",[Gi],Object.getOwnPropertyDescriptor(ms.prototype,"new_loadWordsForDict"),ms.prototype),Object(Xt.a)(ms.prototype,"_newutil_extractAllWords",[Vi],Object.getOwnPropertyDescriptor(ms.prototype,"_newutil_extractAllWords"),ms.prototype),Object(Xt.a)(ms.prototype,"new_loadWordsMyDict",[Ji],Object.getOwnPropertyDescriptor(ms.prototype,"new_loadWordsMyDict"),ms.prototype),Object(Xt.a)(ms.prototype,"loadWordsMyDict",[Hi],Object.getOwnPropertyDescriptor(ms.prototype,"loadWordsMyDict"),ms.prototype),Object(Xt.a)(ms.prototype,"filter",[qi],Ob
1ject.getOwnPropertyDescriptor(ms.prototype,"filter"),ms.prototype),Object(Xt.a)(ms.prototype,"new_updateLearningStatus",[Qi],Object.getOwnPropertyDescriptor(ms.prototype,"new_updateLearningStatus"),ms.prototype),Object(Xt.a)(ms.prototype,"updateWord",[Ki],Object.getOwnPropertyDescriptor(ms.prototype,"updateWord"),ms.prototype),Object(Xt.a)(ms.prototype,"uploadImage",[Yi],Object.getOwnPropertyDescriptor(ms.prototype,"uploadImage"),ms.prototype),Object(Xt.a)(ms.prototype,"deleteWords",[Xi],Object.getOwnPropertyDescriptor(ms.prototype,"deleteWords"),ms.prototype),Object(Xt.a)(ms.prototype,"new_deleteWords",[Zi],Object.getOwnPropertyDescriptor(ms.prototype,"new_deleteWords"),ms.prototype),Object(Xt.a)(ms.prototype,"deleteWordsFromAllDicts",[$i],Object.getOwnPropertyDescriptor(ms.prototype,"deleteWordsFromAllDicts"),ms.prototype),Object(Xt.a)(ms.prototype,"new_deleteWordsFromAllDicts",[ts],Object.getOwnPropertyDescriptor(ms.prototype,"new_deleteWordsFromAllDicts"),ms.prototype),Object(Xt.a)(ms.prototype,"deleteWord",[es],Object.getOwnPropertyDescriptor(ms.prototype,"deleteWord"),ms.prototype),Object(Xt.a)(ms.prototype,"new_deleteWord",[rs],Object.getOwnPropertyDescriptor(ms.prototype,"new_deleteWord"),ms.prototype),Object(Xt.a)(ms.prototype,"addWords",[ns],Object.getOwnPropertyDescriptor(ms.prototype,"addWords"),ms.prototype),Object(Xt.a)(ms.prototype,"new_addWords",[as],Object.getOwnPropertyDescriptor(ms.prototype,"new_addWords"),ms.prototype),Object(Xt.a)(ms.prototype,"new_addWordsToAnotherWordset",[os],Object.getOwnPropertyDescriptor(ms.prototype,"new_addWordsToAnotherWordset"),ms.prototype),Object(Xt.a)(ms.prototype,"addWordsWithoutStoreUpdate",[is],Object.getOwnPropertyDescriptor(ms.prototype,"addWordsWithoutStoreUpdate"),ms.prototype),Object(Xt.a)(ms.prototype,"addWord",[ss],Object.getOwnPropertyDescriptor(ms.prototype,"addWord"),ms.prototype),Object(Xt.a)(ms.prototype,"addWordWithoutStoreUpdate",[us],Object.getOwnPropertyDescriptor(ms.prototype,"addWordWithoutStoreUpdate"),ms.prototype),Object(Xt.a)(ms.prototype,"new_addWord",[cs],Object.getOwnPropertyDescriptor(ms.prototype,"new_addWord"),ms.prototype),Object(Xt.a)(ms.prototype,"loadWordsIds",[ps],Object.getOwnPropertyDescriptor(ms.prototype,"loadWordsIds"),ms.prototype),Object(Xt.a)(ms.prototype,"loadPeriodsCounts",[ls],Object.getOwnPropertyDescriptor(ms.prototype,"loadPeriodsCounts"),ms.prototype),Object(Xt.a)(ms.prototype,"loadCompactWords",[ds],Object.getOwnPropertyDescriptor(ms.prototype,"loadCompactWords"),ms.prototype),Object(Xt.a)(ms.prototype,"new_loadCompactWords",[fs],Object.getOwnPropertyDescriptor(ms.prototype,"new_loadCompactWords"),ms.prototype),Object(Xt.a)(ms.prototype,"getTranslate",[bs],Object.getOwnPropertyDescriptor(ms.prototype,"getTranslate"),ms.prototype),Object(Xt.a)(ms.prototype,"getWordCard",[hs],Object.getOwnPropertyDescriptor(ms.prototype,"getWordCard"),ms.prototype),Object(Xt.a)(ms.prototype,"loadTrainings",[ys],Object.getOwnPropertyDescriptor(ms.prototype,"loadTrainings"),ms.prototype),Object(Xt.a)(ms.prototype,"new_addNewWord",[gs],Object.getOwnPropertyDescriptor(ms.prototype,"new_addNewWord"),ms.prototype),Object(Xt.a)(ms.prototype,"new_loadTrainings",[vs],Object.getOwnPropertyDescriptor(ms.prototype,"new_loadTrainings"),ms.prototype),Object(Xt.a)(ms.prototype,"saveWordsToTraining",[ws],Object.getOwnPropertyDescriptor(ms.prototype,"saveWordsToTraining"),ms.prototype),Object(Xt.a)(ms.prototype,"new_saveWordsToTraining",[Os],Object.getOwnPropertyDescriptor(ms.prototype,"new_saveWordsToTraining"),ms.prototype),ms),pu=function(){function t(){var e=this;Object(Qt.a)(this,t),Object(Yt.a)(this,"isOpen",!1),Object(Yt.a)(this,"open",(function(){e.isOpen=!0})),Object(Yt.a)(this,"close",(function(){e.isOpen=!1})),Object(ee.B)(this)}return Object(Kt.a)(t,[{key:"requireAuth",value:function(){var t;return(null===(t=fu.userStatus)||void 0===t||!t.isAuthorized)&&(this.open(),!0)}}]),t}(),lu=new ne,du=new Un,fu=new va,bu=new da,hu=new Fi,yu=new ou,gu=new cu,vu=new pu},"03A+":function(t,e,r){var n=r("JTzB"),a=r("ExA7"),o=Object.prototype,i=o.hasOwnProperty,s=o.propertyIsEnumerable,u=n(function(){return arguments}())?n:function(t){return a(t)&&i.call(t,"callee")&&!s.call(t,"callee")};t.exports=u},"0Cz8":function(t,e,r){var n=r("Xi7e"),a=r("ebwN"),o=r("e4Nc");t.exports=function(t,e){var r=this.__data__;if(r instanceof n){var i=r.__data__;if(!a||i.length<199)return i.push([t,e]),this.size=++r.size,this;r=this.__data__=new o(i)}return r.set(t,e),this.size=r.size,this}},"2gN3":function(t,e,r){var n=r("Kz5y")["__core-js_shared__"];t.exports=n},"3Fdi":function(t,e){var r=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return r.call(t)}catch(e){}try{return t+""}catch(e){}}return""}},"3L66":function(t,e,r){var n=r("MMmD"),a=r("ExA7");t.exports=function(t){return a(t)&&n(t)}}
1,"4kuk":function(t,e,r){var n=r("SfRM"),a=r("Hvzi"),o=r("u8Dt"),i=r("ekgI"),s=r("JSQU");function u(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}u.prototype.clear=n,u.prototype.delete=a,u.prototype.get=o,u.prototype.has=i,u.prototype.set=s,t.exports=u},"4nv/":function(t,e,r){"use strict";function n(t,e,r,n){r&&Object.defineProperty(t,e,{enumerable:r.enumerable,configurable:r.configurable,writable:r.writable,value:r.initializer?r.initializer.call(n):void 0})}r.d(e,"a",(function(){return n}))},"5Tg0":function(t,e,r){(function(t){var n=r("Kz5y"),a=e&&!e.nodeType&&e,o=a&&"object"==typeof t&&t&&!t.nodeType&&t,i=o&&o.exports===a?n.Buffer:void 0,s=i?i.allocUnsafe:void 0;t.exports=function(t,e){if(e)return t.slice();var r=t.length,n=s?s(r):new t.constructor(r);return t.copy(n),n}}).call(this,r("LY0y")(t))},"6sVZ":function(t,e){var r=Object.prototype;t.exports=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||r)}},"77Zs":function(t,e,r){var n=r("Xi7e");t.exports=function(){this.__data__=new n,this.size=0}},"7Ix3":function(t,e){t.exports=function(t){var e=[];if(null!=t)for(var r in Object(t))e.push(r);return e}},"88Gu":function(t,e){var r=Date.now;t.exports=function(t){var e=0,n=0;return function(){var a=r(),o=16-(a-n);if(n=a,o>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}},ACih:function(t,e,r){"use strict"},AP2z:function(t,e,r){var n=r("nmnc"),a=Object.prototype,o=a.hasOwnProperty,i=a.toString,s=n?n.toStringTag:void 0;t.exports=function(t){var e=o.call(t,s),r=t[s];try{t[s]=void 0;var n=!0}catch(u){}var a=i.call(t);return n&&(e?t[s]=r:delete t[s]),a}},B8du:function(t,e){t.exports=function(){return!1}},Cwc5:function(t,e,r){var n=r("NKxu"),a=r("Npjl");t.exports=function(t,e){var r=a(t,e);return n(r)?r:void 0}},"D+0b":function(t,e,r){"use strict";r.d(e,"a",(function(){return tt}));var n,a=r("xvhg"),o=r("rg98"),i=r("cpVT"),s=r("vJKn"),u=r.n(s),c=r("tXiB"),p=r("NvxM"),l=r("QkVN"),d=r.n(l),f=r("J2iB"),b=r.n(f),h=r("Jojw"),y=r("H+61"),g=r("UlJF"),v=864e5,w=7*v,O=5*w,m=[[0,w,h.e.newPeriod],[w,2*w,h.e.beforeWeek],[2*w,3*w,h.e.beforeTwoWeek],[3*w,4*w,h.e.beforeThreeWeek],[4*w,O,h.e.beforeFourWeek]],j=[h.e.newPeriod,h.e.beforeWeek,h.e.beforeTwoWeek,h.e.beforeThreeWeek,h.e.beforeFourWeek],S="getMonthYearParts",x=function(){function t(){var e=this;Object(y.a)(this,t),Object(i.a)(this,"limits",{MONTHS_LIMIT_MS:31536e6,DAY_MS:v}),Object(i.a)(this,"isDiap",(function(t,e,r){return t>e&&e<r})),Object(i.a)(this,"getPeriod",(function(t){var r,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:+new Date;if((t*=1e3)<n-O)r=h.e.beforeMoreFourWeek;else{var a=m.find((function(r){var a=+r[0],o=+r[1];return e.isDiap(t,n-o,n-a)}));r=a[2]}return r}))}return Object(g.a)(t,[{key:"getPeriodSpec",value:function(t){return-1!==j.indexOf(t)?{type:t,period:t,words:null}:{type:h.e.beforeMoreFourWeek,period:h.e.beforeMoreFourWeek,words:null}}},{key:"getLongTimeAgoSpecs",value:function(t){var e=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Math.floor(+new Date/1e3),n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{byYear:!1},a=n.byYear;(t=t.slice()).sort((function(t,e){return e._created-t._created}));var o=[],i={},s=this.formatMonthYearKeys.bind(this);return t.forEach((function(t){+new Date(1e3*t._created)<1e3*r-e.limits.MONTHS_LIMIT_MS&&a&&(s=e.formatYearKeys.bind(e));var n=s(t._created),u=n.type,c=n.period;if(i[c]){o[o.length-1].words.push(t)}else{var p=function(t){var r=e.getMonthYearParts.bind(e)(t._created);return{type:u,period:c,dateParts:r,words:[t]}}(t);i[p.period]=!0,o.push(p)}})),o}},{key:"formatMonthYearKeys",value:function(t){var e=new Date(1e3*t),r="month-year-"+(e.getMonth()+1)+"-"+e.getFullYear();return{type:h.e.yearMonth,period:r}}},{key:"formatYearKeys",value:function(t){var e="year-"+new Date(1e3*t).getFullYear();return{type:h.e.year,period:e}}},{key:S,value:function(t){var e=new Date(1e3*t);return{month:e.getMonth()+1,year:e.getFullYear()}}},{key:"getYearParts",value:function(t){return{month:null,year:new Date(1e3*t).getFullYear()}}}]),t}();function k(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function D(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};
1e%2?k(Object(r),!0).forEach((function(e){Object(i.a)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):k(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var _={id:"id",name:"name",areaName:"an",created:"cd",type:"type",category:"cat",contentType:"ct",status:"st",source:"src",countWords:"cw",countWordsLearned:"cl",picture:"pic",pictures:"pics",translate:"tr",context:"ctx",wordValue:"wd",wordType:"wt",translations:"trs",wordSets:"ws",learningStatus:"ls",progress:"pi",transcription:"scr",pronunciation:"pron",votes:"vt",relatedWords:"rw",association:"as",origin:"wo",areaId:"aid",combinedTranslation:"trc",isUserTranslate:"ut",speechPartId:"pid",wordLemmaId:"lid",wordLemmaValue:"lwd"},T={association:"as",created:"cd",combinedTranslation:"trc",id:"id",learningStatus:"ls",origin:"wo",progress:"pi",pronunciation:"pron",relatedWords:"rw",trainings:"trainings",transcription:"scr",translations:"trs",wordSets:"ws",wordType:"wt",wordValue:"wd"},I={association:"as",combinedTranslation:"trc",created:"cd",id:"id",learningStatus:"ls",listWordSets:"listWordSets",origin:"wo",picture:"pic",progress:"pi",pronunciation:"pron",relatedWords:"rw",speechPartId:"pid",trainings:"trainings",transcription:"scr",translations:"trs",wordLemmaId:"lid",wordLemmaValue:"lwd",wordSets:"ws",wordType:"wt",wordValue:"wd"},L={my:1,jungle:2,internet:3,megaGlobal:-1},P={0:h.d.New,1:h.d.Learning,2:h.d.Learned},C=(n={},Object(i.a)(n,h.d.New,0),Object(i.a)(n,h.d.Learning,1),Object(i.a)(n,h.d.Learned,2),n),W=new x;function E(t){return _[t]}function A(t){var e={};return Object.keys(t).forEach((function(r){e[function(t){var e={};return Object.keys(_).forEach((function(t){e[_[t]]=t})),e[t]||t}(r)]=t[r]})),e}function N(t){var e;if("string"===typeof t){if(e=parseInt(t,10),isNaN(e)){var r=Object.keys(L).find((function(e){return L[e]===t}));e=r?parseInt(r,10):L[t]}}else e=t;return e}function F(t){var e=C[t];return"undefined"===typeof e?0:e}function U(t){var e=P[t]||null;return"undefined"===typeof e?null:e}function z(t){return 25*t.progress}function R(t){return{1:"word",2:"phrase",3:"sentence"}[t]}function M(t){return t.userData&&t.userData.nativeLanguage}function B(t){var e=t.translationId,r=t.translationText,n=t.wordText,a=t.wordSetIdFrom,o=t.context,i=t.pageId,s=t.contentId,u=t.selectedN,c=t.mainN,p=t.wordSetIdTo,l=t.chatBranch,d=t.newsSessionId,f=a?{globalSetId:a}:{},b=null!==r&&"undefined"!==typeof r,h=null!==n&&"undefined"!==typeof n;return null!==e&&"undefined"!==typeof e?{valueList:D(D({},f),{},{wordSetId:p,wordValue:n,translation:{ctx:o,id:e,pid:i,cid:s,tr:r,main:c,selected:u,chatBranch:l,news_session_id:d}})}:b?h?{valueList:D(D({},f),{},{wordValue:n,wordSetId:p,translation:{ctx:o,tr:r,pid:i,cid:s,chatBranch:l,newsSessionId:d}})}:{valueList:D(D({},f),{},{wordValue:n,translation:{ctx:o,tr:r,pid:i,cid:s,chatBranch:l,newsSessionId:d}})}:{wordSetId:a}}function G(t){var e=t.wordSetIdFrom,r=t.wordSetIdTo;return{valueList:D(D({},e?{globalSetId:e}:{}),{},{wordSetId:r})}}function V(t){var e;t=A(t);var r=Object.assign({},t),n=r.translate,a=r.votes,o=void 0===a?0:a,i=r.context,s=void 0===i?"":i,u=r.isUserTranslate;u=!!u;var c=r.pictures;return c&&(e=c[0],c=c.slice(1)),Object.assign(r,{translate:n,curPicture:e,pictures:c,votes:o,context:s,isUserTranslate:u}),r}function J(t){return t.slice().map((function(t){var e={},r=t=A(t),n=r.wordValue,a=r.origin,o=r.pronunciation,i=r.translations,s=t.id;return Object.assign(e,{wordId:s,value:n,origin:a,audio:o}),i&&(e.translations=i.map(V)),e.progressPercent=z(t),e}))}function H(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.userLang,n=void 0===r?null:r,a=t.wordValue,o=t.wordSets,i=t.origin,s=void 0===i?"":i,u=t.association,c=void 0===u?"":u,p=t.combinedTranslation,l=t.id;l||(l=t.wordId);var d=t.wordType,f=t.relatedWords;f&&(f=J(f));var h,y,g,v={wordId:l,userLang:n,value:a,wordType:d=R(d),wordSets:o,association:c,origin:s,combinedTranslation:p,mainTranslation:{},translations:[],progressPercent:0,learningStatus:null,_date:"",_created:0}
1,w=t.translations&&t.translations.map(V),O=t.translations&&!b()(w)&&w[0],m="[".concat(t.transcription||"","]"),j=z(t),S=j+"%";if(O){var x=O.translate;h=void 0===x?null:x;var k=O.curPicture;y=void 0===k?null:k;var D=O.pictures;g=void 0===D?[]:D,O&&O.picture&&(y=O.picture),g=Array.isArray(g)?g.slice(1):[]}else y=t.picture;var _=U(t.learningStatus),T=t.pronunciation,I={id:t.wordLemmaId,value:t.wordLemmaValue},L=new Date(1e3*t.created).toDateString(),P=t.created;return Object.assign(v,{_date:L,_created:P,userLang:n,mainTranslation:O,translations:w,translate:h,curPicture:y,pictures:g,transcription:m,audio:T,lemma:I,relatedWords:f,progress:S,progressPercent:j,learningStatus:_}),v}function q(t){var e=[];return t.data.forEach((function(r){var n=H(r,{userLang:M(t)});e.push(n)})),e}function Q(t){var e=t.created;return{wordId:t.id,_created:e}}function K(t){var e={new:h.e.newPeriod,week_1:h.e.beforeWeek,week_2:h.e.beforeTwoWeek,week_3:h.e.beforeThreeWeek},r=null,n=null;if(/week_[1-3]/.test(t)||"new"===t)n=e[t];else{var a=t.match(/month_([0-9]+)/);if(a){n=t,r={year:null,month:parseInt(a[1],10)}}else{var o=t.match(/year_([0-9]+)/);if(o)n=t,r={year:parseInt(o[1],10),month:null}}}return[n,r]}function Y(t){var e,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:+new Date,n=(e={},Object(i.a)(e,h.e.newPeriod,[]),Object(i.a)(e,h.e.beforeWeek,[]),Object(i.a)(e,h.e.beforeTwoWeek,[]),Object(i.a)(e,h.e.beforeThreeWeek,[]),Object(i.a)(e,h.e.beforeFourWeek,[]),Object(i.a)(e,h.e.beforeMoreFourWeek,[]),e),a=!(!t||!t.length)&&null!==t[0].learningStatus;t.forEach((function(t){var e=W.getPeriod(t._created,r)||0;n[e].push(t)}));var o=[];[h.e.newPeriod,h.e.beforeWeek,h.e.beforeTwoWeek,h.e.beforeThreeWeek,h.e.beforeFourWeek].forEach((function(t){var e=W.getPeriodSpec(t);e.words=n[t],e.words&&e.words.length>0&&o.push(e)}));var s=W.getLongTimeAgoSpecs(n[h.e.beforeMoreFourWeek],r/1e3);return o=o.concat(s),a&&o.forEach((function(t){t.words=t.words&&t.words.sort((function(t,e){return e._created===t._created?e.wordId-t.wordId:e._created-t._created}))})),o}function X(t){return N(t)===L.my}function Z(t){var e=N(t),r=e>0;return X(e)||!r}function $(t,e){var r=t.association,n=t.context,a=t.translationId,o=t.translationsOps,s=t.pictureUrl;if(o&&a)throw new Error("Both translationsOps and translationId - denied");if(s&&a)throw new Error("Both pictureUrl and translationId - denied");if(n&&a)throw new Error("Both context and translationId - denied");var u="update",c=t.learningStatus;c&&(c=F(c));var p={learningStatus:c,association:r};if("undefined"!==typeof n&&(p.translation={},p.translation[E("id")]=e.mainTranslation.id,p.translation[E("context")]=n),a&&(p.translation=Object(i.a)({},E("id"),a)),s||o)if(p.translation={},s){var l=e.mainTranslation.id;p.translation={id:l},p.translation[E("picture")]=s}else if(o){var d=o.add,f=o.del;if(d){var b=d.translate;b&&(p.translation[E("translate")]=b)}else if(f){var h=f.id;if(h)return p.translation[E("id")]=h,[p,u="delete"]}}return[p,u]}var tt={normalizeId:N,isMyDict:X,isOwnDict:Z,filter:function(t,e){return e===h.c.All||e===h.a.All?t:(-1!==[h.a.Word,h.a.Phrase,h.a.Sentence].indexOf(e)?r="wordType":-1!==[h.c.New,h.c.Learning,h.c.Learned].indexOf(e)&&(r="learningStatus"),t=t.filter((function(t){return t[r]===e})));var r},getWordsByIds:function(t){var e={};return t.forEach((function(t){e[t.wordId]=t})),e},classifyWords:Y,getPeriodsCounts:function(t){var e={};return t.forEach((function(t){t.period&&(e[t.period]=t.periodCount)})),e},updateRelatedWordFromWord:function(t,e){var r=Object.assign({},t);return r.value=e.value,r.origin=e.origin,r.audio=e.audio,r.progressPercent=e.progressPercent,r.translations=e.translations&&e.translations.slice(),r},loadWordById:function(t){return Object(o.a)(u.a.mark((function e(){var r;return u.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(c.a)(p.f.GET_WORDS,{apiVersion:p.a,wordIds:[t],attrList:T,userData:{nativeLanguage:"lang_id_src"}});case 2:return r=e.sent,e.abrupt("return",H(r.data[0],{userLang:M(r)}));case 4:case"end":return e.stop()}}),e)})))()},new_loadWordById:function(t,e,r){return Object(o.a)(u.a.mark((function n(){var a;return u.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Object(c.a)(p.f.GET_WORDS,{apiVersion:p.b,mode:e.toString(),wordIds:[t],attrList:I,userData:{nativeLanguage:"lang_id_src"},category:null===r||void 0===r?void 0:r.category,status:null===r||void 0===r?void 0:r.status,search:null===r||void 0===r?void 0:r.search,training:null===r||void 0===r?void 0:r.training,wordSetId:null===r||void 0===r?void 0:r.wordSetId});case 2:return a=n.sent,n.abrupt("return",H(a.data[0].words[0],{userLang:M(a)}));case 4:case"end":return n.stop()}}),n)})))()},new_loadWordForCard:function(t,e,r){return Object(o.a)(u.a.mark((function n(){var a;return u.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Object(c.a)(p.f.GET_WORDS,{apiVersion:p.b,mode:e.toString(),wordIds:[t],attrList:I,userData:{nativeLanguage:"lang_id_src"},category:null===r||void 0===r?void 0:r.category,status:null===r||void 0===r?void 0:r.status,search:null===r||void 0===r?void 0:r.search,training:null===r||void 0===r?void 0:r.training,wordSetId:null===r||void 0===r?void 0:r.wordSetId});case 2:return a=n.sent,n.abrupt("return",[H(a.data[0].words[0],{userLang:M(a)}),a.wordList]);case 4:case"end":return n.stop()}}),n)})))()},loadWordsMyDict:function(t){return Object(o.a)(u.a.mark((function e(){var r,n,a,o,i,s,l,d,f,b,h,y,g,v;return u.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=(r=t||{}).page,a=void 0===n?1:n,o=r.perPage,i=void 0===o?10:o,s=r.search,l=void 0===s?null:s,d=r.category,f=void 0===d?"":d,b=r.status,h=void 0===b?"":b,y=r.training,g=void 0===y?null:y,e.next=3,Object(c.a)(p.f.GET_WORDS,{apiVersion:p.a,attrList:T,search:l,perPage:i,page:a,category:f,status:h,training:g,userData:{nativeLanguage:"lang_id_src"}});case 3:return v=e.sent,e.abrupt("return",{words:q(v),wordSet:v.wordSet,trainings:v.trainings});case 5:case"end":return e.stop()}}),e)})))()},loadWordsForDict:function(t,e){return Object(o.a)(u.a.mark((function r(){var n,a,o,i,s,l,d,f,b,h,y,g,v,w;return u.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return a=(n=e||{}).page,o=void 0===a?1:a,i=n.perPage,s=void 0===i?10:i,l=n.search,d=void 0===l?null:l,f=n.category,b=void 0===f?"":f,h=n.status,y=void 0===h?"":h,g=n.training,v=void 0===g?null:g,r.next=3,Object(c.a)(p.f.GET_WORDS,{apiVersion:p.a,attrList:T,userData:{nativeLanguage:"lang_id_src"},wordSetIds:[t],search:d,perPage:s,page:o,category:b,status:y,training:v});case 3:return w=r.sent,r.abrupt("return",{words:q(w),wordSet:w.wordSet,trainings:w.trainings});case 5:case"end":return r.stop()}}),r)})))()},new_loadWordsForDict:function(t){var e=arguments;return Object(o.a)(u.a.mark((function r(){var n,o,i,s,l,f,b,y,g,v,w,O;return u.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=e.length>1&&void 0!==e[1]?e[1]:{},o=n.offset,i=n.perPage,s=n.search,l=n.category,f=n.status,b=n.training,y=n.dateGroup,g={category:h.g.All,dateGroup:"start",mode:"basic",perPage:20,status:h.h.All},(v=d()({apiVersion:p.b,attrList:I},g,{wordSetId:t,offset:o,perPage:i,search:s,category:l,status:f,training:b,dateGroup:y})).dateGroup=String(v.dateGroup),r.next=7,Object(c.a)(p.f.GET_WORDS,v);case 7:return w=r.sent,O=w.data.map((function(t){var e=K(t.groupName),r=Object(a.a)(e,2);return{period:r[0],dateParts:r[1],periodCount:t.groupCount,words:t.words?t.words.map((function(t){return H(t,{userLang:M(w)})})):t.words}})),r.abrupt("return",{words:O,wordSet:w.wordSet,trainings:w.trainings||[],listWordSets:w.listWordSets||[]});case 10:case"end":return r.stop()}}),r)})))()},getWordsFromNews:function(t){return Object(o.a)(u.a.mark((function e(){var r;return u.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(c.a)(p.f.GET_WORDS,{apiVersion:p.a,attrList:{association:"as",combinedTranslation:"trc",created:"cd",id:"id",learningStatus:"ls",listWords:"listWordSets",origin:"wo",picture:"pic",progress:"pi",pronunciation:"pron",relatedWords:"rw",speechPartId:"pid",trainings:"trainings",transcription:"scr",translations:"trs",wordLemmaId:"lid",wordLemmaValue:"lwd",wordSets:"ws",wordType:"wt",wordValue:"wd"},category:"",dateGroup:"start",IDs:[{}],mode:"basic",news_session_id:t,offset:null,search:"",status:"",training:null,wordSetId:2});case 2:return r=e.sent,e.abrupt("return",r);case 4:case"end":return e.stop()}}),e)})))()},addWords:function(t,e,r,n,i,s,l,d){return Object(o.a)(u.a.mark((function o(){var f,b,h,y,g,v;return u.a.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return f=Array.isArray(e)&&2===e.length?[N(e[0]),N(e[1])]:[void 0,N(e)],b=f,h=Object(a.a)(b,2),y=h[0],g=h[1],1,1,o.next=6,Object(c.a)(p.f.SET_WORDS,{apiVersion:p.a,op:"actionWithWords {action: add}",data:[D({action:"add",wordIds:t,wordSetId:g},B({translationId:r,translationText:n,wordText:i,wordSetIdFrom:y,context:s,pageId:l,contentId:d,selectedN:1,mainN:1,wordSetIdTo:g}))],userData:{nativeLanguage:"lang_id_src"}});case 6:return v=o.sent,console.log(v),o.abrupt("return",v.data.map((function(t){return t.word?H(t.word,{userLang:M(v)}):t.error&&"6"===t.error.code?{NotEnoughMeatballs:!0}:t}
1)));case 9:case"end":return o.stop()}}),o)})))()},new_addWords:function(t,e,r,n,i,s,l,d,f,b){return Object(o.a)(u.a.mark((function o(){var h,y,g,v,w,O;return u.a.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return h=Array.isArray(e)&&2===e.length?[N(e[0]),N(e[1])]:[void 0,N(e)],y=h,g=Object(a.a)(y,2),v=g[0],w=g[1],1,1,"0",o.next=7,Object(c.a)(p.f.SET_WORDS,{apiVersion:p.b,op:"actionWithWords {action: add}",data:[D({action:"add",mode:"0",wordIds:t},B({translationId:r,translationText:n,wordText:i,wordSetIdFrom:v,context:s,pageId:l,contentId:d,selectedN:1,mainN:1,wordSetIdTo:w,chatBranch:f,newsSessionId:b}))],userData:{nativeLanguage:"lang_id_src"}});case 7:return O=o.sent,o.abrupt("return",O.data.map((function(t){return t.word?H(t.word,{userLang:M(O)}):t.error&&"6"===t.error.code?{NotEnoughMeatballs:!0}:t})));case 9:case"end":return o.stop()}}),o)})))()},new_addNewWord:function(){var t=arguments;return Object(o.a)(u.a.mark((function e(){var r,n,a,o,i,s,l,d,f,y;return u.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.length>0&&void 0!==t[0]?t[0]:h.f.my,n=t.length>1?t[1]:void 0,a=t.length>2?t[2]:void 0,o=t.length>3?t[3]:void 0,i=t.length>4?t[4]:void 0,s=t.length>5?t[5]:void 0,l=N(r),[void 0,l],d=b()(n)?null:[n],1,1,e.next=13,Object(c.a)(p.f.SET_WORDS,{apiVersion:p.b,op:"actionWithWords {action: add}",data:[D({action:"add",mode:"0",wordIds:d},B({translationId:a,translationText:i,wordText:o,wordSetIdFrom:void 0,context:void 0,pageId:void 0,contentId:void 0,selectedN:1,mainN:1,wordSetIdTo:l,chatBranch:s}))],userData:{nativeLanguage:"lang_id_src"}});case 13:return f=e.sent,y=f.data.map((function(t){return t.error?"6"===t.error.code?{NotEnoughMeatballs:!0}:void 0:t})),e.abrupt("return",D(D({},f),{},{data:y}));case 16:case"end":return e.stop()}}),e)})))()},new_addWordsToAnotherWordset:function(t,e,r,n){var a=arguments;return Object(o.a)(u.a.mark((function o(){var i,s,l,d,f,b,y;return u.a.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return i=a.length>4&&void 0!==a[4]?a[4]:h.f.my,s=a.length>5?a[5]:void 0,l=a.length>6?a[6]:void 0,d=N(i),f=N(l),[f,d],o.next=8,Object(c.a)(p.f.SET_WORDS,{apiVersion:p.b,op:"groupActionWithWords {action: add}",data:[D({action:"add",mode:s,wordSetId:f,wordIds:t,dateGroups:e,filter:r,chunk:n},G({wordSetIdFrom:f,wordSetIdTo:d}))],userData:{nativeLanguage:"lang_id_src"}});case 8:return b=o.sent,y=b.data.map((function(t){return t.error?"6"===t.error.code?{NotEnoughMeatballs:!0}:void 0:t})),o.abrupt("return",D(D({},b),{},{data:y}));case 11:case"end":return o.stop()}}),o)})))()},deleteWords:function(t){var e=arguments;return Object(o.a)(u.a.mark((function r(){var n,a,o,i;return u.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=e.length>1&&void 0!==e[1]?e[1]:h.f.my,a=N(n),o=[void 0,a],r.next=5,Object(c.a)(p.f.SET_WORDS,{apiVersion:p.a,op:"actionWithWords {action: delete}",data:[{action:"delete",wordIds:t,wordSetId:o[1]}],userData:{nativeLanguage:"lang_id_src"}});case 5:return i=r.sent,r.abrupt("return",i);case 7:case"end":return r.stop()}}),r)})))()},deleteWord:function(t){var e=arguments;return Object(o.a)(u.a.mark((function r(){var n,a,o,i,s;return u.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=e.length>1&&void 0!==e[1]?e[1]:h.f.my,a=e.length>2?e[2]:void 0,o=e.length>3?e[3]:void 0,i=N(n),[i,i],r.next=7,Object(c.a)(p.f.SET_WORDS,{apiVersion:p.b,op:"actionWithWords {action: delete}",data:[D({action:"delete",mode:"6",wordIds:t},B({translationId:void 0,translationText:void 0,wordText:void 0,wordSetIdFrom:i,context:void 0,pageId:void 0,contentId:void 0,selectedN:void 0,mainN:void 0,wordSetIdTo:i,chatBranch:a,newsSessionId:o}))],userData:{nativeLanguage:"lang_id_src"}});case 7:return s=r.sent,r.abrupt("return",s);case 9:case"end":return r.stop()}}),r)})))()},new_deleteWords:function(t,e,r,n){var a=arguments;return Object(o.a)(u.a.mark((function o(){var i,s,l;return u.a.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return i=a.length>4&&void 0!==a[4]?a[4]:h.f.my,s=N(i),[s,void 0],o.next=5,Object(c.a)(p.f.SET_WORDS,{apiVersion:p.b,op:"groupActionWithWords {action: delete}",data:[D({action:"delete",mode:"delete",wordSetId:s,wordIds:t,dateGroups:e,filter:r,chunk:n},G({wordSetIdFrom:s,wordSetIdTo:void 0}))],userData:{nativeLanguage:"lang_id_src"}});case 5:return l=o.sent,o.abrupt("return",l);case 7:case"end":return o.stop()}}),o)})))()},deleteWordsFromAllDicts:function(t){var e=arguments;return Object(o.a)(u.a.mark((function r(){var n,a,o,i;return u.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=e.length>1&&void 0!==e[1]?e[1]:h.f.my,a=N(n),o=[void 0,a],r.next=5,Object(c.a)(p.f.SET_WORDS,{apiVersion:p.a,op:"actionWithWords {action: delete_all}",data:[{action:"delete_all",wordIds:t,wordSetId:o[1]}],userData:{nativeLanguage:"lang_id_src"}});case 5:return i=r.sent,r.abrupt("return",i);case 7:case"end":return r.stop()}}),r)})))()},new_deleteWordsFromAllDicts:function(t,e,r,n){var a=arguments;return Object(o.a)(u.a.mark((function o(){var i,s,l;return u.a.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return i=a.length>4&&void 0!==a[4]?a[4]:h.f.my,s=N(i),[s,void 0],o.next=5,Object(c.a)(p.f.SET_WORDS,{apiVersion:p.b,op:"groupActionWithWords {action: delete_all}",data:[D({action:"delete_all",mode:"delete",wordSetId:s,wordIds:t,dateGroups:e,filter:r,chunk:n},G({wordSetIdFrom:s,wordSetIdTo:void 0}))],userData:{nativeLanguage:"lang_id_src"}});case 5:return l=o.sent,o.abrupt("return",l);case 7:case"end":return o.stop()}}),o)})))()},updateWords:function(t,e,r,n){return Object(o.a)(u.a.mark((function a(){var o;return u.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,Object(c.a)(p.f.SET_WORDS,{apiVersion:p.a,op:"updateWordAttr",data:[{action:n||"update",wordSetId:e,wordIds:t,valueList:r}],userData:{nativeLanguage:"lang_id_src"}});case 2:return o=a.sent,a.abrupt("return",o);case 4:case"end":return a.stop()}}),a)})))()},new_updateWords:function(t,e,r,n,a){return Object(o.a)(u.a.mark((function o(){var i;return u.a.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,Object(c.a)(p.f.SET_WORDS,{apiVersion:p.b,op:"new_updateWordAttr",data:[{action:a||"update",mode:n||"0",wordSetId:e,wordIds:t,valueList:r}],userData:{nativeLanguage:"lang_id_src"}});case 2:return i=o.sent,o.abrupt("return",i);case 4:case"end":return o.stop()}}),o)})))()},updateWord:function(t,e,r){return Object(o.a)(u.a.mark((function n(){var o,i,s,l,d,f,b,h;return u.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return o=t.wordId,i=N(r),s=$(e,t),l=Object(a.a)(s,2),d=l[0],f=l[1],n.next=6,Object(c.a)(p.f.SET_WORDS,{apiVersion:p.b,op:"new_updateWordAttr",data:[{action:f,mode:"0",wordSetId:i,wordIds:[o],valueList:e||d}],userData:{nativeLanguage:"lang_id_src"}});case 6:return b=n.sent,"undefined"===typeof(h=H(b.data[0].word,{userLang:M(b)})).wordId&&(h.wordId=o),n.abrupt("return",h);case 10:case"end":return n.stop()}}),n)})))()},updateLearningStatus:function(t,e,r){return Object(o.a)(u.a.mark((function n(){var a,o,i,s;return u.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return a=N(r),o={learningStatus:F(e)},n.next=4,Object(c.a)(p.f.SET_WORDS,{apiVersion:p.a,op:"updateWordAttr",data:[{action:"update",wordSetId:a,wordIds:t,valueList:o}],userData:{nativeLanguage:"lang_id_src"}});case 4:return i=n.sent,s=i.data.map((function(t){return H(t.word,{userLang:M(i)})})),n.abrupt("return",s);case 7:case"end":return n.stop()}}),n)})))()},new_updateLearningStatus:function(t,e,r){return Object(o.a)(u.a.mark((function n(){var a,o,i,s;return u.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return a=N(r),o={learningStatus:F(e)},n.next=4,Object(c.a)(p.f.SET_WORDS,{apiVersion:p.b,op:"new_updateWordAttr",data:[{action:"update",mode:"learning",wordSetId:a,wordIds:t,valueList:o}],userData:{nativeLanguage:"lang_id_src"}});case 4:return i=n.sent,s=[],i.data.forEach((function(t){s.push(D(D({},t),{},{learningStatus:U(t.learningStatus)}))})),n.abrupt("return",s);case 9:case"end":return n.stop()}}),n)})))()},removeTranslation:function(t,e,r){return Object(o.a)(u.a.mark((function n(){var a;return u.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Object(c.a)(p.f.SET_WORDS,{apiVersion:p.b,data:[{action:"update",mode:"0",wordIds:[t],wordSetId:r,valueList:{translation:{id:e,selected:0,tr:null}}}],userData:{nativeLanguage:"lang_id_src"}});case 2:return a=n.sent,n.abrupt("return",a);case 4:case"end":return n.stop()}}),n)})))()},saveWordsToTraining:function(t,e,r){return Object(o.a)(u.a.mark((function n(){var a;return u.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Object(c.a)(p.f.SET_WORDS,{apiVersion:p.a,data:[{action:e,wordSetId:r,wordIds:t}]});case 2:return a=n.sent,n.abrupt("return",a);case 4:case"end":return n.stop()}}),n)})))()},new_saveWordsToTraining:function(t,e,r,n,a,i,s){return Object(o.a)(u.a.mark((function o(){var l,d,f;return u.a.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return l=N(s),[l,void 0],d=b()(r)?null:"training_".concat(r),o.next=5,Object(c.a)(p.f.SET_WORDS,{apiVersion:p.b,op:"groupActionWithWords {action: ".concat(d,"}"),data:[D({action:d,mode:i,wordSetId:l,wordIds:t,dateGroups:e,filter:n,chunk:a},G({wordSetIdFrom:l,wordSetIdTo:void 0}))],userData:{nativeLanguage:"lang_id_src"}});case 5:return f=o.sent,o.abrupt("return",f);case 7:case"end":return o.stop()}}),o)})))()},loadTrainings:function(){return Object(o.a)(u.a.mark((function t(){var e;return u.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(c.a)(p.f.GET_WORDS,{apiVersion:p.b,attrList:["trainings","translations"]});case 2:return e=t.sent,t.abrupt("return",e.trainings||[]);case 4:case"end":return t.stop()}}),t)})))()},new_loadTrainings:function(){return Object(o.a)(u.a.mark((function t(){var e;return u.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(c.a)(p.f.GET_WORDS,{apiVersion:p.b,attrList:["trainings","translations"]});case 2:return e=t.sent,t.abrupt("return",e.trainings||[]);case 4:case"end":return t.stop()}}),t)})))()},loadWordsIds:function(t,e){return Object(o.a)(u.a.mark((function r(){var n;return u.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,Object(c.a)(p.f.GET_WORDS,{apiVersion:p.b,op:"wordsIds",mode:"6",wordSetIds:[t],search:(null===e||void 0===e?void 0:e.search)||null,category:(null===e||void 0===e?void 0:e.category)||"",status:(null===e||void 0===e?void 0:e.status)||""});case 2:return n=r.sent,r.abrupt("return",n.dataIds||[]);case 4:case"end":return r.stop()}}),r)})))()},new_loadWordsIds:function(t,e){var r=this;return Object(o.a)(u.a.mark((function n(){return u.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",r.loadWordsIds(t,e));case 1:case"end":return n.stop()}}),n)})))()},loadWordsDates:function(t,e){return Object(o.a)(u.a.mark((function r(){var n;return u.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,Object(c.a)(p.f.GET_WORDS,{apiVersion:p.a,op:"wordsIds",mode:"simple_dates",wordSetIds:[t],search:(null===e||void 0===e?void 0:e.search)||null,category:(null===e||void 0===e?void 0:e.category)||"",status:(null===e||void 0===e?void 0:e.status)||""});case 2:return n=r.sent,r.abrupt("return",n);case 4:case"end":return r.stop()}}),r)})))()},new_loadWordsDates:function(t,e){return Object(o.a)(u.a.mark((function r(){var n;return u.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,Object(c.a)(p.f.GET_WORDS,{apiVersion:p.b,op:"wordsIds",mode:"simple_dates",wordSetIds:[t],search:(null===e||void 0===e?void 0:e.search)||null,category:(null===e||void 0===e?void 0:e.category)||"",status:(null===e||void 0===e?void 0:e.status)||""});case 2:return n=r.sent,r.abrupt("return",n);case 4:case"end":return r.stop()}}),r)})))()},loadPeriodsCounts:function(){var t=arguments,e=this;return Object(o.a)(u.a.mark((function r(){var n,a,o,i,s,c,p;return u.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(n=t.length>0&&void 0!==t[0]?t[0]:h.f.my,a=t.length>1?t[1]:void 0,Z(n)){r.next=4;break}throw new Error("Denied loadPeriodsCounts for not own wordsets, dictNameOrId: ".concat(n));case 4:return o=N(n),r.next=7,e.loadWordsDates(o,a);case 7:return i=r.sent,s=i.data.map((function(t){return H(t)})),c=Y(s),p={}
1,c.forEach((function(t){t.period&&(p[t.period]=t.words&&t.words.length)})),r.abrupt("return",p);case 13:case"end":return r.stop()}}),r)})))()},loadPeriodsIds:function(){var t=arguments,e=this;return Object(o.a)(u.a.mark((function r(){var n,a,o,i,s,c,p;return u.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(n=t.length>0&&void 0!==t[0]?t[0]:h.f.my,a=t.length>1?t[1]:void 0,Z(n)){r.next=4;break}throw new Error("Denied loadPeriodsIds for not own wordsets, dictNameOrId: ".concat(n));case 4:return o=N(n),r.next=7,e.loadWordsDates(o,a);case 7:return i=r.sent,s=i.data.map((function(t){return Q(t)})),c=Y(s),p={},c.forEach((function(t){t.period&&(p[t.period]=t.words&&t.words.map((function(t){return t.wordId})))})),r.abrupt("return",p);case 13:case"end":return r.stop()}}),r)})))()},new_loadPeriodsIds:function(){var t=arguments,e=this;return Object(o.a)(u.a.mark((function r(){var n,a;return u.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=t.length>0&&void 0!==t[0]?t[0]:h.f.my,a=t.length>1?t[1]:void 0,r.abrupt("return",e.loadPeriodsIds(n,a));case 3:case"end":return r.stop()}}),r)})))()},loadCompactWords:function(t,e){return Object(o.a)(u.a.mark((function r(){var n;return u.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,Object(c.a)(p.f.GET_WORDS,{apiVersion:p.a,mode:"compact",wordSetIds:[t],wordIds:e});case 2:return n=r.sent,r.abrupt("return",n.data||[]);case 4:case"end":return r.stop()}}),r)})))()},new_loadCompactWords:function(t,e,r){return Object(o.a)(u.a.mark((function n(){var a;return u.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Object(c.a)(p.f.SET_WORDS,{apiVersion:p.b,op:"loadCompactWords",data:[{action:"update",mode:"compact",wordSetId:t,wordIds:e,dateGroups:r}]});case 2:return a=n.sent,n.abrupt("return",a.data||[]);case 4:case"end":return n.stop()}}),n)})))()},getTranslate:function(t,e){return Object(o.a)(u.a.mark((function r(){var n,a,o,i,s,l,d,f,b;return u.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=t.text,r.next=3,Object(c.a)(p.f.GET_TRANSLATE,{apiVersion:p.b,text:n,id:e});case 3:return a=r.sent,o=a.word_id,i={id:a.wordLemmaId,value:a.wordLemmaValue},s=a.sound_url,l=a.transcription,d=a.translate&&a.translate.map((function(t){var e=t.value,r=t.vt,n=void 0===r?0:r,a=t.ut,o=void 0===a?0:a,i=t.id;return"string"===typeof i&&(i=Number(i)),{id:i,value:e,votes:n,isUserTranslate:o}})),f=a.directionEnglish,b=a.word_forms&&a.word_forms.map((function(t){var e=t.word_id,r=t.word,n=t.vt,a=t.ut;return{id:e,value:r,translationId:t.translate_id,transcription:t.transcription,votes:n,isUserTranslate:a,soundUrl:t.sound_url}})),r.abrupt("return",{wordId:o,wordSoundUrl:s,lemma:i,wordTranscription:l,translations:d,wordForms:b,isTranslationDirectionToEnglish:f,audio:a.sound_url,transcription:a.transcription});case 12:case"end":return r.stop()}}),r)})))()},getWordCard:function(t,e,r){return Object(o.a)(u.a.mark((function n(){var a;return u.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Object(c.a)(p.f.GET_TRANSLATE,{apiVersion:p.b,wordCard:1,text:t,langPair:{source:e,target:r}});case 2:return a=n.sent,n.abrupt("return",a);case 4:case"end":return n.stop()}}),n)})))()},uploadImage:function(t){return Object(o.a)(u.a.mark((function e(){var r,n,a,o,i,s,l,d;return u.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.base64,n=t.directory,"uploads/picture/",e.next=4,Object(c.a)(p.f.UPLOAD_IMAGE,{apiVersion:p.a,base64:r,directory:"uploads/picture/"+n});case 4:return a=e.sent,o=a.url,i=a.size,s=a.mimetype,l=a.status,d=a.error,e.abrupt("return",{url:o,size:i,mimetype:s,status:l,error:d});case 7:case"end":return e.stop()}}),e)})))()}}},DSRE:function(t,e,r){(function(t){var n=r("Kz5y"),a=r("B8du"),o=e&&!e.nodeType&&e,i=o&&"object"==typeof t&&t&&!t.nodeType&&t,s=i&&i.exports===o?n.Buffer:void 0,u=(s?s.isBuffer:void 0)||a;t.exports=u}).call(this,r("LY0y")(t))},E2jh:function(t,e,r){var n=r("2gN3"),a=function(){var t=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();t.exports=function(t){return!!a&&a in t}},"E80+":function(t,e,r){"use strict";r.d(e,"a",(function(){return D}));var n,a=r("cpVT"),o=r("dhJC"),i=r("rg98"),s=r("z7pX"),u=r("vJKn"),c=r.n(u),p=r("tXiB"),l=r("NvxM"),d=r("Jojw"),f=["filterMyContent"];function b(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function h(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};
1e%2?b(Object(r),!0).forEach((function(e){Object(a.a)(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):b(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}!function(t){t.video="video",t.audio="audio",t.image="image",t.text="text",t.all="all"}(n||(n={}));var y,g,v=function(t){var e={};return Object.keys(t).forEach((function(r){e[t[r]]=r})),e}({averageDf:"adf",bookmarkCnt:"bcnt",bookmarkStatus:"bk",categoryImageUrl:"cpic",childSafe:"ch",collectionCount:"items_count",collectionDescription:"descr",collectionPic:"pic_url",collectionTitle:"content_name",collectionUrl:"find_url",commentCount:"ccnt",contentEmbed:"em",contentName:"cn",contentStreamList:"csl",contentText:"txt",contentUrl:"url",created:"cd",discardMsg:"dsc",firstPage:"fp",format:"ct",genreId:"gid",genreName:"gnm",id:"id",isPublic:"pb",lastUpdated:"ud",learnedCnt:"ld",learningCnt:"li",learningStatus:"ls",level:"level",metaName:"mname",metaValue:"mvalue",myMaterial:"mm",offlineAllowed:"offa",orderNum:"ord",originUrl:"ourl",pagesCount:"pcnt",picture:"pic",pictureUrl:"pic_url",publish:"pb",rating:"rt",subtitles:"srt",subtitle_text:"subtitle_text",themes:"themes",videoSec:"video_sec",videoSource:"vsrc",votes:" vt",wordsCnt:"wcnt"});function w(t){var e={};return Object.keys(t).forEach((function(r){var n=t[r];"object"===typeof n&&null!==n&&(n=Array.isArray(n)?n.map((function(t){return w(t)})):w(n)),void 0!==v[r]&&(e[v[r]]=n)})),e}function O(t){return d.i[t]}function m(t,e){var r=Object(s.a)(e);r.push(t),r.sort((function(t,e){return t-e}));for(var n=Object(s.a)(r),a=r[0],o=r.length,i=1;i<o;i++){var u=r[i];2===u-a&&n.push(u-1),a=u}return n.sort((function(t,e){return t-e}))}function j(t,e){return t&&t.map((function(t){var r,n=w(t);return e===d.b.collection?"theme"===t.type||"channel"===t.type||"collection"===t.type?(r={id:t.id,title:t.title||t.names,contentName:t.name||t.title,image:t.picture||t.pic_url,counter:t.content_count,url:t.url,format:5,contentType:e,pic:t.picture||t.pic_url,type:O(t.format),collectionType:t.type,description:t.description||t.descr,inner_url:t.innerUrl},"channel"===t.type&&(r.collectionsSet=t.collections?j(t.collections,d.b.collection):null,r.id=t.channelId)):r={id:t.channelId||n.id,title:n.collectionTitle,contentName:n.collectionTitle,image:n.pictureUrl,counter:n.content_count,url:n.contentUrl,format:5,contentType:e,pic:n.pictureUrl,type:O(n.format),collectionType:t.channelId?"channel":t.type}:r={id:n.id,type:O(n.format),format:n.format,contentName:n.contentName,rating:n.rating,videoSec:n.videoSec,pagesCount:n.pagesCount,created:n.created,pic:n.picture,subtitles:n.subtitles,subtitle_text:n.subtitle_text,publish:n.publish,isPublic:n.isPublic,learningStatus:n.learningStatus,difficulty:n.level,contentType:e,url:n.contentUrl,collectionType:t.type},r}))}function S(t){return{date:t.d,user:{id:t.uid,name:t.un},text:t.t}}function x(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=e.firstPage,a=void 0===r||r,o=e.perPage,i=void 0===o?20:o,s=e.page,u=void 0===s?1:s,c=e.search,p=void 0===c?"":c,l=e.theme,d=void 0===l?null:l,f=e.levelMin,b=void 0===f?0:f,h=e.levelMax,y=void 0===h?0:h,g=e.categoryId,v=void 0===g?null:g,w=e.themeId,O=void 0===w?null:w,m=e.orderBy,j=void 0===m?"created":m,S=e.orderType,x=void 0===S?"desc":S,k=e.shuffle,D=void 0!==k&&k,_=e.categoryType,T=void 0===_?n.all:_;return{contentType:t,categoryType:T,firstPage:a,perPage:i,page:u,search:p,theme:d,levelMin:b,levelMax:y,categoryId:v,themeId:O,orderBy:j,orderType:x,shuffle:D,userFilter:void 0}}function k(t){switch(t){case"my-add":return{myMaterials:1};case"favorites":return{bookmarkStatus:1};case"learning":return{learningStatus:"learning"};case"learned":return{learningStatus:"learned"};case"my-subs":return{mySubscriptions:1};default:return{myMaterials:1}}}!function(t){t[t.video=1]="video",t[t.audio=2]="audio",t[t.text=3]="text",t[t.image=4]="image",t[t.subs=1]="subs",t[t.collection=5]="collection"}(y||(y={})),function(t){t[t.low=1]="low",t[t.medium=2]="medium",t[t.high=3]="high"}(g||(g={}));var D={loadTopContent:function(){var t=arguments;return Object(i.a)(c.a.mark((function e(){var r,n,a,o;return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.length>0&&void 0!==t[0]?t[0]:{},n=x(d.b.top,r),e.next=4,Object(p.a)(l.f.GET_JUNGLE_CONTENT,{apiVersion:l.b,contentTypes:[n]});case 4:return a=e.sent,o=a.data.length>0&&a.data,e.abrupt("return",[j(o.items,o.contentType),o.chunk]);case 7:case"end":return e.stop()}}),e)})))()},loadRecommendedContent:function(){var t=arguments;return Object(i.a)(c.a.mark((function e(){var r,n,a,o;return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.length>0&&void 0!==t[0]?t[0]:{},n=x(d.b.recommended,r),e.next=4,Object(p.a)(l.f.GET_JUNGLE_CONTENT,{apiVersion:l.b,contentTypes:[n]});case 4:return a=e.sent,o=a.data.length>0&&a.data,e.abrupt("return",[j(o.items,o.contentType),o.chunk]);case 7:case"end":return e.stop()}}),e)})))()},loadMusicContent:function(){var t=arguments;return Object(i.a)(c.a.mark((function e(){var r,n,a,o;return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.length>0&&void 0!==t[0]?t[0]:{},n=x(d.b.music,r),e.next=4,Object(p.a)(l.f.GET_JUNGLE_CONTENT,{apiVersion:l.b,contentTypes:[n]});case 4:return a=e.sent,o=a.data.length>0&&a.data,e.abrupt("return",[j(o.items,o.contentType),o.chunk]);case 7:case"end":return e.stop()}}),e)})))()},loadVideoContent:function(){var t=arguments;return Object(i.a)(c.a.mark((function e(){var r,n,a,o;return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.length>0&&void 0!==t[0]?t[0]:{},n=x(d.b.video,r),e.next=4,Object(p.a)(l.f.GET_JUNGLE_CONTENT,{apiVersion:l.b,contentTypes:[n]});case 4:return a=e.sent,o=a.data.length>0&&a.data,e.abrupt("return",[j(o.items,o.contentType),o.chunk]);case 7:case"end":return e.stop()}}),e)})))()},loadBooksContent:function(){var t=arguments;return Object(i.a)(c.a.mark((function e(){var r,n,a,o;return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.length>0&&void 0!==t[0]?t[0]:{},n=x(d.b.books,r),e.next=4,Object(p.a)(l.f.GET_JUNGLE_CONTENT,{apiVersion:l.b,contentTypes:[n]});case 4:return a=e.sent,o=a.data.length>0&&a.data,e.abrupt("return",[j(o.items,o.contentType),o.chunk]);case 7:case"end":return e.stop()}}),e)})))()},loadAllContent:function(){var t=arguments;return Object(i.a)(c.a.mark((function e(){var r,n,a,o;return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.length>0&&void 0!==t[0]?t[0]:{},n=x(d.b.all,r),e.next=4,Object(p.a)(l.f.GET_JUNGLE_CONTENT,{apiVersion:l.b,contentTypes:[n]});case 4:return a=e.sent,o=a.data.length>0&&a.data,e.abrupt("return",[j(o.items,o.contentType),o.chunk]);case 7:case"end":return e.stop()}}),e)})))()},loadMyContent:function(){var t=arguments;return Object(i.a)(c.a.mark((function e(){var r,n,a,i,s,u;return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.length>0&&void 0!==t[0]?t[0]:{},n=r.filterMyContent,a=Object(o.a)(r,f),(i=x(d.b.user,a)).userFilter=k(n),e.next=6,Object(p.a)(l.f.GET_JUNGLE_CONTENT,{apiVersion:l.b,contentTypes:[i]});case 6:return s=e.sent,u=s.data.length>0&&s.data[0],e.abrupt("return",[j(u.items,u.contentType),u.chunk]);case 9:case"end":return e.stop()}}),e)})))()},loadCollections:function(){var t=arguments;return Object(i.a)(c.a.mark((function e(){var r,n,a,o,i,s,u;return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.length>0&&void 0!==t[0]?t[0]:{},n=r.page,a=void 0===n?1:n,o=r.perPage,i=void 0===o?16:o,e.next=4,Object(p.a)(l.f.GET_JUNGLE_CONTENT,{apiVersion:l.b,contentTypes:[{contentType:d.b.collection,categoryType:d.b.collection,firstPage:!1,perPage:i,page:a,shuffle:!1}]});case 4:return s=e.sent,u=s.data.length>0&&s.data,e.abrupt("return",[j(u.items,u.contentType),u.chunk]);case 7:case"end":return e.stop()}}),e)})))()},loadCollectionsAll:function(){var t=arguments;return Object(i.a)(c.a.mark((function e(){var r,n,a,o,i,s,u,f;return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.length>0&&void 0!==t[0]?t[0]:{},n=r.page,a=void 0===n?1:n,o=r.perPage,i=void 0===o?16:o,e.next=4,Object(p.a)(l.f.GET_JUNGLE_CONTENT,{apiVersion:l.b,contentTypes:[{contentType:d.b.collection_all,categoryType:d.b.collection_all,firstPage:!1,perPage:i,page:a,shuffle:!1}]});case 4:return s=e.sent,u=s.data[0],f=u.items.map((function(t){return{categoryName:t.categoryName,items:j(t.categoryContent,d.b.collection)}})),e.abrupt("return",f);case 8:case"end":return e.stop()}}),e)})))()},loadContent:function(t){var e=arguments;return Object(i.a)(c.a.mark((function r(){var n,a;return c.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n=e.length>1&&void 0!==e[1]?e[1]:1,r.next=3,Object(p.a)(l.f.LOAD_CONTENT,{apiVersion:l.a,contentSource:"jungle",contentId:t,pageId:n,attrList:{embedInfo:"em",targetLang:"targetLang",format:"ct",learningStatus:"ls",pageLearningStatus:"pl
1s",bookmarkStatus:"bk",level:"level",title:"cn",votes:"vt",parsedSentences:"phrases",parsedTitle:"parsedTitle",subtitles:"subtitles",tags:"themes",addedWords:"dictionary",pagesCount:"pcnt",picture:"pic",publish:"pb",comments:"cm",firstUnlearnedPage:"pageNonLearned",lastViewedPage:"pageLastViewed",created:"cd",wordCnt:"wcnt",author:"author",learnedCnt:"ld",userVote:"uv",isAdmin:"isAdmin",isAuth:"isAuth",viewCounter:"viewCounter",categoryType:"categoryType",categoryId:"categoryId",leoGuide:"leoGuide"}});case 3:return a=r.sent,r.abrupt("return",h(h({},a.data),{},{comments:(a.data.comments||[]).map(S),addedWords:(a.data.addedWords||[]).map((function(t){return{id:t.i,soundUrl:t.p,word:t.w,translation:t.t,transcription:t.r}})),subtitles:(a.data.subtitles||[]).map((function(t){return{id:t.id,timeStart:t.timeStart,timeEnd:t.timeEnd,items:(t.items||[]).map((function(t){return{id:t.b||t.i,bid:t.l?t.i:null,position:t.p,text:t.w,linkedPositions:t.l?m(t.p,t.l):[]}}))}})),parsedSentences:(a.data.parsedSentences||[]).map((function(t){return h(h({type:t.type||t.t?"plain":"words"},t.t?{plainText:t.t}:{}),{},{items:(t.items||[]).map((function(t){return{id:t.b||t.i,bid:t.l?t.i:null,text:t.w,position:t.p,linkedPositions:t.l?m(t.p,t.l):[]}}))})})),parsedTitle:(a.data.parsedTitle||[]).map((function(t){return h(h({type:t.type||t.t?"plain":"words"},t.t?{plainText:t.t}:{}),{},{items:(t.items||[]).map((function(t){return{id:t.l?t.b:t.i,bid:t.l?t.i:null,text:t.w,position:t.p,linkedPositions:t.l?m(t.p,t.l):[]}}))})}))}));case 5:case"end":return r.stop()}}),r)})))()},loadContentForEdit:function(t){return Object(i.a)(c.a.mark((function e(){var r;return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(p.a)(l.f.PROCESS_CALL,{apiVersion:l.b,trainingName:"getParsedContent",data:{apiVersion:l.a,contentSource:"jungle",contentId:t,attrList:{embedInfo:"em",targetLang:"targetLang",categoryType:"categoryType",categoryId:"categoryId",parentCategoryId:"parentCategoryId",format:"ct",title:"cn",subtitles:"subtitlesText",text:"page_text",tags:"themes",picture:"pic",publish:"pb"}}});case 2:return r=e.sent,e.abrupt("return",r.data);case 4:case"end":return e.stop()}}),e)})))()},getJungleCategories:function(t,e,r){return Object(i.a)(c.a.mark((function n(){var a,o,i;return c.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Object(p.a)(l.f.GET_JUNGLE_CATEGORIES,{apiVersion:l.a,categoryType:t,categoryId:e,level:r});case 2:if(a=n.sent,"collections"!==t){n.next=6;break}return i=null===a||void 0===a||null===(o=a.data)||void 0===o?void 0:o.items.map((function(t){return{categoryName:t.categoryName,items:j(t.categoryContent,d.b.collection)}})),n.abrupt("return",i);case 6:return n.abrupt("return",a);case 7:case"end":return n.stop()}}),n)})))()},getJungleRecommendations:function(t){return Object(i.a)(c.a.mark((function e(){return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(p.a)(l.f.GET_JUNGLE_CONTENT,h({apiVersion:l.d,categoryType:"video",tagId:"c1175"},t));case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})))()},getJungleContent:function(t){return Object(i.a)(c.a.mark((function e(){return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(p.a)(l.f.GET_JUNGLE_CONTENT,{apiVersion:l.b,targetLang:t.targetLang,nativeLang:t.nativeLang,categoryType:t.categoryType,categoryId:t.categoryId,tagId:t.tagId,level:t.level,search:t.search,perPage:t.perPage,offsetId:t.offsetId});case 2:return e.abrupt("return",e.sent);case 3:case"end":return e.stop()}}),e)})))()},loadSearch:function(t,e){return Object(i.a)(c.a.mark((function r(){var n;return c.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,Object(p.a)(l.f.GET_JUNGLE_SEARCH,{apiVersion:l.a,search:t.search,categoryType:t.categoryType,categoryId:t.categoryId,level:t.level,theme:e});case 2:return n=r.sent,r.abrupt("return",n.data);case 4:case"end":return r.stop()}}),r)})))()},getGlobalInterests:function(){return Object(i.a)(c.a.mark((function t(){var e;return c.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(p.a)(l.f.GET_GLOBAL_INTERESTS,{apiVersion:l.b,nativeLang:"",interfaceLang:""});case 2:return e=t.sent,t.abrupt("return",e.data.interests);case 4:case"end":return t.stop()}}),t)})))()},getValidationResults:function(t){return Object(i.a)(c.a.mark((function e(){return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Object(p.a)(l.f.GET_VALIDATION_RESULTS,{apiVersion:l.a,id:"number"===typeof t.id?t.id:null,valueList:{targetLang:t.targetLang,name:t.title,text:t.text,tags:t.tags,category:t.category,format:t.format,embeddedUrl:t.mediaUrl}}));case 1:case"end":return e.stop()}}),e)})))()},saveContent:function(t){var e=arguments,r=this;return Object(i.a)(c.a.mark((function n(){var a,o,i;return c.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return a=e.length>1&&void 0!==e[1]?e[1]:{},n.next=3,r.getValidationResults(t);case 3:if(o=n.sent,(i=o.token)||!o.data.length||a.force){n.next=7;break}return n.abrupt("return",Promise.reject({code:"validationError",data:o.data}));case 7:return n.abrupt("return",Object(p.a)(l.f.SAVE_CONTENT,{apiVersion:l.b,content:[{contentId:t.id||null,validationToken:i,valueList:{contentName:t.title,contentText:t.text,contentTags:t.tags,categoryType:t.categoryType,categoryId:t.categoryId,targetLang:t.targetLang,category:t.category,subtitleText:t.subtitles,format:t.format,embeddedUrl:t.mediaUrl,publish:t.publish,pic:t.picture,adminToCollection:t.adminToCollection}}]}));case 8:case"end":return n.stop()}}),n)})))()},publishContent:function(t){return Object(i.a)(c.a.mark((function e(){return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Object(p.a)(l.f.SAVE_CONTENT,{apiVersion:l.a,content:[{contentId:t,valueList:{publish:1}}]}));case 1:case"end":return e.stop()}}),e)})))()},setContentLearningStatus:function(t,e){return Object(i.a)(c.a.mark((function r(){return c.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Object(p.a)(l.f.SAVE_CONTENT,{apiVersion:l.a,content:[{contentId:e,valueList:{learningStatus:t}}]}));case 1:case"end":return r.stop()}}),r)})))()},setContentBookmarkStatus:function(t,e){return Object(i.a)(c.a.mark((function r(){return c.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Object(p.a)(l.f.SAVE_CONTENT,{apiVersion:l.a,content:[{contentId:e,valueList:{bookmarkStatus:t}}]}));case 1:case"end":return r.stop()}}),r)})))()},setCollectionStatus:function(t,e){return Object(i.a)(c.a.mark((function r(){return c.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Object(p.a)(l.f.SAVE_CONTENT,{apiVersion:l.a,content:[{contentId:e,valueList:{adminToCollection:t}}]}));case 1:case"end":return r.stop()}}),r)})))()},setUserVoteStatus:function(t,e){return Object(i.a)(c.a.mark((function r(){return c.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Object(p.a)(l.f.SAVE_CONTENT,{apiVersion:l.a,content:[{contentId:e,valueList:{uv:t}}]}));case 1:case"end":return r.stop()}}),r)})))()},setClaimStatus:function(t,e){return Object(i.a)(c.a.mark((function r(){return c.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Object(p.a)(l.f.SAVE_CONTENT,{apiVersion:l.a,content:[{contentId:e,valueList:{claim:t}}]}));case 1:case"end":return r.stop()}}),r)})))()},setContentPageLearningStatus:function(t,e,r){return Object(i.a)(c.a.mark((function n(){var a;return c.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Object(p.a)(l.f.SAVE_CONTENT,{apiVersion:l.a,content:[{contentId:t,valueList:{},pages:[{pageId:e,valueList:{learningStatus:r}}]}]});case 2:if((a=n.sent).success&&a.success.length){n.next=5;break}throw new Error("no success data");case 5:return n.abrupt("return",a.success[0]||{});case 6:case"end":return n.stop()}}),n)})))()},addComment:function(t,e){return Object(i.a)(c.a.mark((function r(){var n;return c.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,Object(p.a)(l.f.SAVE_CONTENT,{apiVersion:l.b,content:[{contentId:t,valueList:{comment:e}}]});case 2:if(!(n=r.sent).success||!n.success.length){r.next=7;break}return r.abrupt("return",(n.success[0].comments||[]).map(S));case 7:if(!n.failed||!n.failed.length){r.next=11;break}throw new Error("Add comment error: "+n.failed[0].status);case 11:throw new Error("Add comment error");case 12:case"end":return r.stop()}}),r)})))()},getFrameSC:function(t){return Object(i.a)(c.a.mark((function e(){return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Object(p.a)(l.f.SOUNDCLOUD,{url:t}));case 1:case"end":return e.stop()}}),e)})))()},uploadImage:function(t){return Object(i.a)(c.a.mark((function e(){var r,n,a,o,i,s;return c.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return"uploads/picture/",e.next=3,Object(p.a)(l.f.UPLOAD_IMAGE,{apiVersion:l.a,base64:t.base64,directory:"uploads/picture/"+t.directory});case 3:return r=e.sent,n=r.url,a=r.size,o=r.mimetype,i=r.status,s=r.error,e.abrupt("return",{url:n,size:a,mimetype:o,status:i,error:s});case 6:case"end":return e.stop()}}),e)})))()}}},EA7m:function(t,e,r){var n=r("zZ0H"),a=r("Ioao"),o=r("wclG");t.exports=function(t,e){return o(a(t,e,n),t+"")}},EaFg:function(t,e,r){"use strict";function n(t,e,r,n,a){var o={};
1return Object.keys(n).forEach((function(t){o[t]=n[t]})),o.enumerable=!!o.enumerable,o.configurable=!!o.configurable,("value"in o||o.initializer)&&(o.writable=!0),o=r.slice().reverse().reduce((function(r,n){return n(t,e,r)||r}),o),a&&void 0!==o.initializer&&(o.value=o.initializer?o.initializer.call(a):void 0,o.initializer=void 0),void 0===o.initializer&&(Object.defineProperty(t,e,o),o=null),o}r.d(e,"a",(function(){return n}))},EpBk:function(t,e){t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},ExA7:function(t,e){t.exports=function(t){return null!=t&&"object"==typeof t}},GoyQ:function(t,e){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},H8j4:function(t,e,r){var n=r("QkVE");t.exports=function(t,e){var r=n(this,t),a=r.size;return r.set(t,e),this.size+=r.size==a?0:1,this}},Hvzi:function(t,e){t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},Ioao:function(t,e,r){var n=r("heNW"),a=Math.max;t.exports=function(t,e,r){return e=a(void 0===e?t.length-1:e,0),function(){for(var o=arguments,i=-1,s=a(o.length-e,0),u=Array(s);++i<s;)u[i]=o[e+i];i=-1;for(var c=Array(e+1);++i<e;)c[i]=o[i];return c[e]=r(u),n(t,this,c)}}},J2iB:function(t,e){t.exports=function(t){return null==t}},JHRd:function(t,e,r){var n=r("Kz5y").Uint8Array;t.exports=n},JHgL:function(t,e,r){var n=r("QkVE");t.exports=function(t){return n(this,t).get(t)}},JSQU:function(t,e,r){var n=r("YESw");t.exports=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=n&&void 0===e?"__lodash_hash_undefined__":e,this}},JTzB:function(t,e,r){var n=r("NykK"),a=r("ExA7");t.exports=function(t){return a(t)&&"[object Arguments]"==n(t)}},Jojw:function(t,e,r){"use strict";r.d(e,"e",(function(){return o})),r.d(e,"a",(function(){return l})),r.d(e,"g",(function(){return d})),r.d(e,"d",(function(){return f})),r.d(e,"c",(function(){return y})),r.d(e,"h",(function(){return g})),r.d(e,"f",(function(){return I})),r.d(e,"i",(function(){return R})),r.d(e,"j",(function(){return M})),r.d(e,"b",(function(){return E}));var n,a,o,i,s,u,c,p,l,d,f,b,h,y,g,v,w,O,m,j,S,x,k=r("cpVT");!function(t){t.newPeriod="new",t.beforeWeek="week_1",t.beforeTwoWeek="week_2",t.beforeThreeWeek="week_3",t.beforeFourWeek="beforeFourWeek",t.beforeMoreFourWeek="beforeMoreFourWeek",t.yearMonth="yearMonth",t.year="year"}(o||(o={})),function(t){t.LINE="Line",t.BAR="Bar",t.PIE="Pie"}(i||(i={})),function(t){t.TODAY="today",t.WEEK="week",t.MONTH="month",t.QUARTER="quarter"}(s||(s={})),function(t){t.recomm="recomm",t.popular="popular",t.myAll="myAll",t.myOnLearning="myOnLearning",t.global="global",t.stat="stat",t.allDicts="allDicts",t.addWordSet="addWordSet",t.createWordSet="createWordSet",t.removeWordSet="removeWordSet",t.removeWordSetFromAllDicts="removeWordSetFromAllDicts",t.addToTrainings="addToTrainings"}(u||(u={})),function(t){t.recommended="recommended",t.popular="popular",t.myAll="my-all",t.myOnLearning="my-on-learning",t.wordSets="word-sets",t.phraseSets="phrase-sets",t.globalSets="global-sets",t.myStat="my-stat",t.training="trainig",t.allDicts="allDicts",t.teacherGroups="teacherGroups",t.all="all",t.collection="collection",t.collections="collection",t.collectionsAll="collectionsAll",t.music="music",t.video="video",t.books="books"}(c||(c={})),function(t){t.all="all",t.wordset="word",t.phrasebook="phrase",t.jungle="jungle",t.teacher="teacher"}(p||(p={})),function(t){t.All="all",t.Word="word",t.Phrase="phrase",t.Sentence="sentence"}(l||(l={})),function(t){t.All="all",t.Word="word",t.Phrase="phrase",t.Sentence="sentence"}(d||(d={})),function(t){t.New="new",t.Learning="learning",t.Learned="learned"}(f||(f={})),function(t){t.contentVideo="contentVideo",t.contentAudio="contentAudio",t.contentText="contentText",t.contentSubtitles="contentSubtitles",t.dictionary="dictionary",t.wordset="wordset",t.phrasebook="phrasebook",t.collection="collection",t.content="content",t.teacherGroup="teacherGroup",t.channel="channel"}(b||(b={})),function(t){t.card="card",t.btn="btn",t.del="del",t.plus="plus",t.minus="minus"}(h||(h={})),function(t){t.All="all",t.New="new",t.Learning="learning",t.Learned="learned"}(y||(y={})),function(t){t.All="all",t.New="new",t.Learning="learning",t.Learned="learned"}(g||(g={})),function(t){t.Learning="learning",t.Learned="learned",t.MyAdd="my-add"}(v||(v={})),function(t){t.All="all",t.Video="video",t.Subtitles="subs",t.Audio="audio",t.Text="text"}(w||(w={})),function(t){t.created="created",t.pages="pagesCount",t.rating="rating"}(O||(O={})),function(t){t.asc="asc",t.desc="desc"}(m||(m={})),function(t){t.All="all",t.New="new",t.Learning="learning",t.DictLearning="dict-learning",t.Learned="learned",t.MyAdd="my-add",t.LevelBeginner="beginner",t.LevelLow="low",t.LevelMedium="medium",t.LevelHigh="high",t.ByArea="by-area",t.Favorites="favorites",t.MySubs="my-subs",t.ByCat="by-cat",t.ByRow="b
1y-row"}(j||(j={})),function(t){t.All="all",t.Low="low",t.Medium="medium",t.High="high"}(S||(S={})),function(t){t[t.beginner=0]="beginner",t[t.low=1]="low",t[t.medium=2]="medium",t[t.high=3]="high"}(x||(x={}));var D;!function(t){t.Beginner="beginner",t.Elementary="elementary",t.PreIntermediate="pre-intermediate",t.Intermediate="intermediate",t.UpperIntermediate="upper-intermediate",t.Advanced="advanced"}(D||(D={}));var _,T,I;!function(t){t.global="global",t.own="own"}(_||(_={})),function(t){t.global="global",t.own="user"}(T||(T={})),function(t){t.my="my",t.jungle="jungle",t.internet="internet"}(I||(I={}));var L,P=1,C=2,W=3;n={},Object(k.a)(n,P,I.my),Object(k.a)(n,C,I.jungle),Object(k.a)(n,W,I.internet);!function(t){t.video="video",t.audio="audio",t.text="text",t.image="image",t.collection="collection"}(L||(L={}));var E,A=1,N=2,F=3,U=4,z=5,R=(a={},Object(k.a)(a,A,L.video),Object(k.a)(a,N,L.audio),Object(k.a)(a,F,L.text),Object(k.a)(a,U,L.image),Object(k.a)(a,z,L.collection),a),M={new:0,learning:1,learned:9};!function(t){t.top="top",t.recommended="recommended",t.collection="collection",t.collection_all="collection_web",t.user="user",t.all="all",t.video="video",t.music="music",t.books="books"}(E||(E={}))},KMkd:function(t,e){t.exports=function(){this.__data__=[],this.size=0}},KfNM:function(t,e){var r=Object.prototype.toString;t.exports=function(t){return r.call(t)}},Kz5y:function(t,e,r){var n=r("WFqU"),a="object"==typeof self&&self&&self.Object===Object&&self,o=n||a||Function("return this")();t.exports=o},L8xA:function(t,e){t.exports=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}},LcsW:function(t,e,r){var n=r("kekF")(Object.getPrototypeOf,Object);t.exports=n},LsHQ:function(t,e,r){var n=r("EA7m"),a=r("mv/X");t.exports=function(t){return n((function(e,r){var n=-1,o=r.length,i=o>1?r[o-1]:void 0,s=o>2?r[2]:void 0;for(i=t.length>3&&"function"==typeof i?(o--,i):void 0,s&&a(r[0],r[1],s)&&(i=o<3?void 0:i,o=1),e=Object(e);++n<o;){var u=r[n];u&&t(e,u,n,i)}return e}))}},MMmD:function(t,e,r){var n=r("lSCD"),a=r("shjB");t.exports=function(t){return null!=t&&a(t.length)&&!n(t)}},MrPd:function(t,e,r){var n=r("hypo"),a=r("ljhN"),o=Object.prototype.hasOwnProperty;t.exports=function(t,e,r){var i=t[e];o.call(t,e)&&a(i,r)&&(void 0!==r||e in t)||n(t,e,r)}},NKxu:function(t,e,r){var n=r("lSCD"),a=r("E2jh"),o=r("GoyQ"),i=r("3Fdi"),s=/^\[object .+?Constructor\]$/,u=Function.prototype,c=Object.prototype,p=u.toString,l=c.hasOwnProperty,d=RegExp("^"+p.call(l).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!o(t)||a(t))&&(n(t)?d:s).test(i(t))}},Npjl:function(t,e){t.exports=function(t,e){return null==t?void 0:t[e]}},NykK:function(t,e,r){var n=r("nmnc"),a=r("AP2z"),o=r("KfNM"),i=n?n.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":i&&i in Object(t)?a(t):o(t)}},O0oS:function(t,e,r){var n=r("Cwc5"),a=function(){try{var t=n(Object,"defineProperty");return t({},"",{}),t}catch(e){}}();t.exports=a},Q1l4:function(t,e){t.exports=function(t,e){var r=-1,n=t.length;for(e||(e=Array(n));++r<n;)e[r]=t[r];return e}},QcOe:function(t,e,r){var n=r("GoyQ"),a=r("6sVZ"),o=r("7Ix3"),i=Object.prototype.hasOwnProperty;t.exports=function(t){if(!n(t))return o(t);var e=a(t),r=[];for(var s in t)("constructor"!=s||!e&&i.call(t,s))&&r.push(s);return r}},QkVE:function(t,e,r){var n=r("EpBk");t.exports=function(t,e){var r=t.__data__;return n(e)?r["string"==typeof e?"string":"hash"]:r.map}},QkVN:function(t,e,r){var n=r("+Qka"),a=r("LsHQ")((function(t,e,r){n(t,e,r)}));t.exports=a},SfRM:function(t,e,r){var n=r("YESw");t.exports=function(){this.__data__=n?n(null):{},this.size=0}},T1AV:function(t,e,r){var n=r("t2Dn"),a=r("5Tg0"),o=r("yP5f"),i=r("Q1l4"),s=r("+iFO"),u=r("03A+"),c=r("Z0cm"),p=r("3L66"),l=r("DSRE"),d=r("lSCD"),f=r("GoyQ"),b=r("YO3V"),h=r("c6wG"),y=r("itsj"),g=r("jeLo");t.exports=function(t,e,r,v,w,O,m){var j=y(t,r),S=y(e,r),x=m.get(S);if(x)n(t,r,x);else{var k=O?O(j,S,r+"",t,e,m):void 0,D=void 0===k;if(D){var _=c(S),T=!_&&l(S),I=!_&&!T&&h(S);k=S,_||T||I?c(j)?k=j:p(j)?k=i(j):T?(D=!1,k=a(S,!0)):I?(D=!1,k=o(S,!0)):k=[]:b(S)||u(S)?(k=j,u(j)?k=g(j):f(j)&&!d(j)||(k=s(S))):D=!1}D&&(m.set(S,k),w(k,S,v,O,m),m.delete(S)),n(t,r,k)}}},"UNi/":function(t,e){t.exports=function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}},VaNO:function(t,e){t.exports=function(t){return this.__data__.has(t)}},WFqU:function(t,e,r){(function(e){var r="object"==typeof e&&e&&e.Object===Object&&e;t.exports=r}).call(this,r("ntbh"))}
1,Xi7e:function(t,e,r){var n=r("KMkd"),a=r("adU4"),o=r("tMB7"),i=r("+6XX"),s=r("Z8oC");function u(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}u.prototype.clear=n,u.prototype.delete=a,u.prototype.get=o,u.prototype.has=i,u.prototype.set=s,t.exports=u},YESw:function(t,e,r){var n=r("Cwc5")(Object,"create");t.exports=n},YO3V:function(t,e,r){var n=r("NykK"),a=r("LcsW"),o=r("ExA7"),i=Function.prototype,s=Object.prototype,u=i.toString,c=s.hasOwnProperty,p=u.call(Object);t.exports=function(t){if(!o(t)||"[object Object]"!=n(t))return!1;var e=a(t);if(null===e)return!0;var r=c.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&u.call(r)==p}},Z0cm:function(t,e){var r=Array.isArray;t.exports=r},Z8oC:function(t,e,r){var n=r("y1pI");t.exports=function(t,e){var r=this.__data__,a=n(r,t);return a<0?(++this.size,r.push([t,e])):r[a][1]=e,this}},adU4:function(t,e,r){var n=r("y1pI"),a=Array.prototype.splice;t.exports=function(t){var e=this.__data__,r=n(e,t);return!(r<0)&&(r==e.length-1?e.pop():a.call(e,r,1),--this.size,!0)}},b80T:function(t,e,r){var n=r("UNi/"),a=r("03A+"),o=r("Z0cm"),i=r("DSRE"),s=r("wJg7"),u=r("c6wG"),c=Object.prototype.hasOwnProperty;t.exports=function(t,e){var r=o(t),p=!r&&a(t),l=!r&&!p&&i(t),d=!r&&!p&&!l&&u(t),f=r||p||l||d,b=f?n(t.length,String):[],h=b.length;for(var y in t)!e&&!c.call(t,y)||f&&("length"==y||l&&("offset"==y||"parent"==y)||d&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||s(y,h))||b.push(y);return b}},c6wG:function(t,e,r){var n=r("dD9F"),a=r("sEf8"),o=r("mdPL"),i=o&&o.isTypedArray,s=i?a(i):n;t.exports=s},"cq/+":function(t,e,r){var n=r("mc0g")();t.exports=n},cvCv:function(t,e){t.exports=function(t){return function(){return t}}},dD9F:function(t,e,r){var n=r("NykK"),a=r("shjB"),o=r("ExA7"),i={};i["[object Float32Array]"]=i["[object Float64Array]"]=i["[object Int8Array]"]=i["[object Int16Array]"]=i["[object Int32Array]"]=i["[object Uint8Array]"]=i["[object Uint8ClampedArray]"]=i["[object Uint16Array]"]=i["[object Uint32Array]"]=!0,i["[object Arguments]"]=i["[object Array]"]=i["[object ArrayBuffer]"]=i["[object Boolean]"]=i["[object DataView]"]=i["[object Date]"]=i["[object Error]"]=i["[object Function]"]=i["[object Map]"]=i["[object Number]"]=i["[object Object]"]=i["[object RegExp]"]=i["[object Set]"]=i["[object String]"]=i["[object WeakMap]"]=!1,t.exports=function(t){return o(t)&&a(t.length)&&!!i[n(t)]}},dTAl:function(t,e,r){var n=r("GoyQ"),a=Object.create,o=function(){function t(){}return function(e){if(!n(e))return{};if(a)return a(e);t.prototype=e;var r=new t;return t.prototype=void 0,r}}();t.exports=o},dhJC:function(t,e,r){"use strict";function n(t,e){if(null==t)return{};var r,n,a=function(t,e){if(null==t)return{};var r,n,a={},o=Object.keys(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||(a[r]=t[r]);return a}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(n=0;n<o.length;n++)r=o[n],e.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(a[r]=t[r])}return a}r.d(e,"a",(function(){return n}))},e4Nc:function(t,e,r){var n=r("fGT3"),a=r("k+1r"),o=r("JHgL"),i=r("pSRY"),s=r("H8j4");function u(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}u.prototype.clear=n,u.prototype.delete=a,u.prototype.get=o,u.prototype.has=i,u.prototype.set=s,t.exports=u},ebwN:function(t,e,r){var n=r("Cwc5")(r("Kz5y"),"Map");t.exports=n},ekgI:function(t,e,r){var n=r("YESw"),a=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return n?void 0!==e[t]:a.call(e,t)}}
1,fGT3:function(t,e,r){var n=r("4kuk"),a=r("Xi7e"),o=r("ebwN");t.exports=function(){this.size=0,this.__data__={hash:new n,map:new(o||a),string:new n}}},fmRc:function(t,e,r){var n=r("Xi7e"),a=r("77Zs"),o=r("L8xA"),i=r("gCq4"),s=r("VaNO"),u=r("0Cz8");function c(t){var e=this.__data__=new n(t);this.size=e.size}c.prototype.clear=a,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=s,c.prototype.set=u,t.exports=c},gCq4:function(t,e){t.exports=function(t){return this.__data__.get(t)}},heNW:function(t,e){t.exports=function(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}},hypo:function(t,e,r){var n=r("O0oS");t.exports=function(t,e,r){"__proto__"==e&&n?n(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}},itsj:function(t,e){t.exports=function(t,e){if(("constructor"!==e||"function"!==typeof t[e])&&"__proto__"!=e)return t[e]}},jeLo:function(t,e,r){var n=r("juv8"),a=r("mTTR");t.exports=function(t){return n(t,a(t))}},juv8:function(t,e,r){var n=r("MrPd"),a=r("hypo");t.exports=function(t,e,r,o){var i=!r;r||(r={});for(var s=-1,u=e.length;++s<u;){var c=e[s],p=o?o(r[c],t[c],c,r,t):void 0;void 0===p&&(p=t[c]),i?a(r,c,p):n(r,c,p)}return r}},"k+1r":function(t,e,r){var n=r("QkVE");t.exports=function(t){var e=n(this,t).delete(t);return this.size-=e?1:0,e}},kekF:function(t,e){t.exports=function(t,e){return function(r){return t(e(r))}}},lSCD:function(t,e,r){var n=r("NykK"),a=r("GoyQ");t.exports=function(t){if(!a(t))return!1;var e=n(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},ljhN:function(t,e){t.exports=function(t,e){return t===e||t!==t&&e!==e}},mQFe:function(t,e,r){"use strict";r.d(e,"c",(function(){return g})),r.d(e,"a",(function(){return n})),r.d(e,"b",(function(){return o})),r.d(e,"d",(function(){return u})),r.d(e,"e",(function(){return j}));var n,a,o,i,s,u,c,p=r("cpVT"),l=r("rg98"),d=r("vJKn"),f=r.n(d),b=r("tXiB"),h=r("NvxM"),y=r("LvDl"),g="6";!function(t){t.all="all",t.wordset="word",t.phrasebook="phrase"}(n||(n={})),function(t){t.All="all",t.Low="low",t.Medium="medium",t.High="high"}(a||(a={})),function(t){t.New="new",t.Learning="learning",t.Learned="learned"}(o||(o={})),function(t){t.own="own",t.global="global"}(i||(i={})),function(t){t.All="all",t.New="new",t.Learning="learning",t.DictLearning="dict-learning",t.Learned="learned",t.MyAdd="my-add",t.LevelBeginner="beginner",t.LevelLow="low",t.LevelMedium="medium",t.LevelHigh="high",t.ByArea="by-area",t.Favorites="favorites",t.MySubs="my-subs",t.ByCat="by-cat",t.ByRow="by-row"}(s||(s={})),function(t){t.recommended="recommended",t.popular="popular",t.myAll="my-all",t.myOnLearning="my-on-learning",t.wordSets="word-sets",t.phraseSets="phrase-sets",t.globalSets="global-sets",t.myStat="my-stat",t.training="trainig",t.allDicts="allDicts",t.teacherGroups="teacherGroups",t.all="all",t.collection="collection",t.collections="collection",t.collectionsAll="collectionsAll",t.music="music",t.video="video",t.books="books"}(u||(u={})),function(t){t.recomm="recomm",t.popular="popular",t.myAll="myAll",t.myOnLearning="myOnLearning",t.global="global",t.stat="stat",t.allDicts="allDicts",t.addWordSet="addWordSet",t.createWordSet="createWordSet",t.removeWordSet="removeWordSet",t.removeWordSetFromAllDicts="removeWordSetFromAllDicts",t.addToTrainings="addToTrainings"}(c||(c={}));var v={my:-1,learned:-2,learning:-3};function w(t,e){return t.map((function(t){var r,n;return e?(r={},e.forEach((function(e){r[e]=t[e]}))):r=t,r.level&&(r.level=null===(n=r.level)||void 0===n?a.All:[a.Low,a.Low,a.Medium,a.High][n]),r}))}function O(t,e){var r=[];return t.data.forEach((function(t){t.items&&w(t.items,e).forEach((function(t){return r.push(t)}))})),r}var m=["type","id","name","countWords","picture","category","level"],j={loadSets:function(t){return Object(l.a)(f.a.mark((function e(){var r,a,o;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.map((function(t){var e=t.req,r=t.opts,a=void 0===r?{}:r,o=t.attrs;switch(e){case c.recomm:var i=a.category,s=void 0===i?n.all:i,u=a.page,p=void 0===u?1:u,l=a.perPage,d=void 0===l?20:l,f=a.subOp;return{subOp:void 0===f?"recomm":f,type:"global",contentType:"recommended",category:s,page:p,perPage:d,sortBy:"created",attrList:o||{category:"cat",countWords:"cw",id:"id",level:"level",name:"name",picture:"pic",type:"type",wordSetId:"wordSetId"}};case c.popular:var b=a.page,h=void 0===b?1:b,y=a.perPage,g=void 0===y?20:y,v=a.subOp;return{subOp:void 0===v?"popular":v,type:"global",contentType:"top",category:"word",page:h,perPage:g,attrList:o||{category:"cat",countWords:"cw",id:"id",level:"level",name:"name",picture:"pic",type:"type",wordSetId:"wordSetId"}};case c.allDicts:var w=a.page,O=void 0===w?1:w,m=a.perPage,j=void 0===m?20:m,S=a.subOp;return{subOp:void 0===S?"allDicts":S,type:"global",category:"word",page:O,perPage:j,attrList:o||{areaId:"aid",areaName:"an",category:"cat",countWords:"cw",id:"id",level:"level",name:"name",picture:"pic",type:"type",wordSetId:"wordSetId"}};case c.myAll:var x=a.subOp;return{subOp:void 0===x?"myAll":x,type:"user",perPage:999,sortBy:"created",attrList:o||{category:"cat",countWords:"cw",countWordsLearned:"cl",id:"id",name:"name",picture:"pic",source:"src",status:"st",type:"type",wordSetId:"wordSetId"}};case c.myOnLearning:var k=a.category,D=void 0===k?n.all:k,_=a.page,T=void 0===_?1:_,I=(a.perPage,a.subOp);return{subOp:void 0===I?"myOnLearning":I,type:"user",status:"learning",sortBy:"created",category:D,page:T,perPage:999,attrList:o||{type:"type",id:"id",category:"cat",name:"name",countWords:"cw",wordSetId:"wordSetId",picture:"pic",status:"st",source:"src"}};case c.global:var L=a.category,P=void 0===L?n.all:L,C=a.page,W=void 0===C?1:C,E=a.perPage,A=void 0===E?20:E,N=a.subOp;return{subOp:void 0===N?"global":N,type:"global",category:P,sortBy:"created",perPage:A,page:W,attrList:o||{category:"cat",countWords:"cw",id:"id",level:"level",name:"name",picture:"pic",type:"type",wordSetId:"wordSetId"}};case c.stat:var F=a.subOp;return{subOp:void 0===F?"stat":F,isStat:!0};default:throw new Error("Unknown request type: ".concat(e))}})),e.next=3,Object(b.a)(h.f.GET_WORD_SETS,{apiVersion:h.a,op:"loadSets: \n".concat(JSON.stringify(t,null,2)),request:r});case 3:return a=e.sent,o=a.data.map((function(e,r){return t[r].req===c.stat?e.statItems:w(e.items,t[r].attrs)})),e.abrupt("return",o);case 6:case"end":return e.stop()}}),e)})))()},loadMyDictsAll:function(){return Object(l.a)(f.a.mark((function t(){var e,r;return f.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=[{subOp:"loadMyAllDataDicts",type:"user",perPage:999,sortBy:"created",attrList:["type","id","name","countWords","countWordsLearned","picture","category","status","source"]}],t.next=3,Object(b.a)(h.f.GET_WORD_SETS,{apiVersion:h.a,op:"loadSets: loadMyAllDataDicts",request:e});case 3:return r=t.sent,t.abrupt("return",O(r,["type","id","name","countWords","countWordsLearned","picture","category","status","source"]));case 5:case"end":return t.stop()}}),t)})))()},loadRecommDicts:function(){var t=arguments;return Object(l.a)(f.a.mark((function e(){var r,a,o,i,s;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.length>0&&void 0!==t[0]?t[0]:{},a=r.category,o=void 0===a?n.all:a,i=[{subOp:"loadRecommDicts",type:"global",contentType:"recommended",category:o,page:1,perPage:20,sortBy:"created",attrList:m}],e.next=5,Object(b.a)(h.f.GET_WORD_SETS,{apiVersion:h.a,op:"loadSets: loadRecommDicts",request:i});case 5:return s=e.sent,e.abrupt("return",O(s,m));case 7:case"end":return e.stop()}}),e)})))()},loadPopularDicts:function(){return Object(l.a)(f.a.mark((function t(){var e,r;return f.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=[{subOp:"loadPopularDicts",type:"global",contentType:"top",category:"word",page:1,perPage:20,attrList:m}],t.next=3,Object(b.a)(h.f.GET_WORD_SETS,{apiVersion:h.a,op:"loadSets: loadPopularDicts",request:e});case 3:return r=t.sent,t.abrupt("return",O(r,m));case 5:case"end":return t.stop()}}),t)})))()},loadAllDicts:function(){return Object(l.a)(f.a.mark((function t(){var e,r;return f.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=[{subOp:"loadAllDicts",type:"global",category:"word",page:1,perPage:20,attrList:m}],t.next=3,Object(b.a)(h.f.GET_WORD_SETS,{apiVersion:h.a,op:"loadSets: loadAllDicts",request:e});case 3:return r=t.sent,t.abrupt("return",O(r,m));case 5:case"end":return t.stop()}}),t)})))()},loadStatOfMyDict:function(){return Object(l.a)(f.a.mark((function t(){var e,r;return f.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=[{subOp:"stat",isStat:!0}],t.next=3,Object(b.a)(h.f.GET_WORD_SETS,{apiVersion:h.a,op:"loadSets: stat",request:e});case 3:return r=t.sent,t.abrupt("return",r.data[0].statItems);case 5:case"end":return t.stop()}}),t)})))()},loadMyDictsOnLearning:function(){var t=arguments;return Object(l.a)(f.a.mark((function e(){var r,a,o,i,s;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.length>0&&void 0!==t[0]?t[0]:{},a=r.category,o=void 0===a?n.all:a,i=[{subOp:"loadMyDictsOnLearning",type:"user",status:"learning",sortBy:"created",category:o,page:1,perPage:5,attrList:m}],e.next=5,Object(b.a)(h.f.GET_WORD_SETS,{apiVersion:h.a,op:"loadSets: loadMyDictsOnLearning",request:i});case 5:return s=e.sent,e.abrupt("return",O(s,m));case 7:case"end":return e.stop()}}),e)})))()},loadGlobalWordDictsSubset:function(){var t=arguments;return Object(l.a)(f.a.mark((function e(){var r,a,o,i,s,u,c;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.length>0&&void 0!==t[0]?t[0]:{},a=r.page,o=void 0===a?1:a,i=r.perPage,s=void 0===i?9:i,u=[{subOp:"loadGlobalWordDictsSubset",type:"global",category:n.wordset,sortBy:"created",page:o,perPage:s,attrList:m}],e.next=5,Object(b.a)(h.f.GET_WORD_SETS,{apiVersion:h.a,op:"loadSets: loadGlobalWordDictsSubset",request:u});case 5:return c=e.sent,e.abrupt("return",O(c,m));case 7:case"end":return e.stop()}}),e)})))()},loadGlobalPhraseDictsSubset:function(){var t=arguments;return Object(l.a)(f.a.mark((function e(){var r,a,o,i,s,u,c;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.length>0&&void 0!==t[0]?t[0]:{},a=r.page,o=void 0===a?1:a,i=r.perPage,s=void 0===i?50:i,u=[{subOp:"loadGlobalPhraseDictsSubset",type:"global",category:n.phrasebook,sortBy:"created",page:o,perPage:s,attrList:m}],e.next=5,Object(b.a)(h.f.GET_WORD_SETS,{apiVersion:h.a,op:"loadSets: loadGlobalPhraseDictsSubset",request:u});case 5:return c=e.sent,e.abrupt("return",O(c,m));case 7:case"end":return e.stop()}}),e)})))()},loadGlobalDicts:function(){var t=arguments;return Object(l.a)(f.a.mark((function e(){var r,a,o,i,s,u,c,p,l;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.length>0&&void 0!==t[0]?t[0]:{},a=r.page,o=void 0===a?1:a,i=r.perPage,s=void 0===i?9:i,u=r.category,c=void 0===u?n.wordset:u,p=[{subOp:"loadGlobalDicts",type:"global",category:c,sortBy:"created",page:o,perPage:s,attrList:m}],e.next=5,Object(b.a)(h.f.GET_WORD_SETS,{apiVersion:h.a,op:"loadSets: loadGlobalDicts",request:p});case 5:return l=e.sent,e.abrupt("return",O(l,m));case 7:case"end":return e.stop()}}),e)})))()},addWordSet:function(t){return Object(l.a)(f.a.mark((function e(){var r,n;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(b.a)(h.f.SET_WORD_SETS,{apiVersion:h.a,op:"addWordSet: {wordSetId: ".concat(t,"}"),data:[{action:"add",valueList:{globalId:t}}]});case 2:if(r=e.sent,n=r.data[0]){e.next=6;break}throw new Error("wordSet must not be null!");case 6:return n&&"error"!==n.status&&(n=w([n])[0]),e.abrupt("return",n);case 8:case"end":return e.stop()}}),e)})))()},createWordSet:function(t,e){return Object(l.a)(f.a.mark((function r(){var n,a;return f.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,Object(b.a)(h.f.SET_WORD_SETS,{apiVersion:h.a,op:"createWordSet",data:[{action:"add",valueList:{name:t,picture:e}}]});case 2:if(n=r.sent,a=n.data[0]){r.next=6;break}throw new Error("wordSet must not be null!");case 6:return r.abrupt("return",a);case 7:case"end":return r.stop()}}),r)})))()},removeWordSet:function(t){return Object(l.a)(f.a.mark((function e(){var r,n;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(b.a)(h.f.SET_WORD_SETS,{apiVersion:h.a,op:"removeWordSet",data:[{action:"delete",wordSetId:t}]});case 2:if(r=e.sent,"ok"===(n=r.data[0]).status){e.next=6;break}throw new Error('Backend return error for action "remove": '.concat(n.message));case 6:if(n.wordSetId===t){e.next=8;break}throw new Error("Bad wordSetId = ".concat(n.wordSetId," (expect = ").concat(t," in backend response"));case 8:return e.abrupt("return",!0);case 9:case"end":return e.stop()}}),e)})))()},removeWordSetFromAllDicts:function(t){return Object(l.a)(f.a.mark((function e(){var r,n;return f.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Object(b.a)(h.f.SET_WORD_SETS,{apiVersion:h.a,op:"removeWordSetFromAllDicts",data:[{action:"delete_all",wordSetId:t}]});case 2:if(r=e.sent,"ok"===(n=r.data[0]).status){e.next=6;break}throw new Error('Backend return error for action "remove": '.concat(n.message));case 6:if(n.wordSetId===t){e.next=8;break}throw new Error("Bad wordSetId = ".concat(n.wordSetId," (expect = ").concat(t," in backend response"));case 8:return e.abrupt("return",!0);case 9:case"end":return e.stop()}}),e)})))()},addToTrainings:function(t,e){return Object(l.a)(f.a.mark((function r(){var n,a;return f.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,Object(b.a)(h.f.SET_WORD_SETS,{apiVersion:h.a,data:[{action:"add",valueList:{wordIds:e,globalId:t}}]});case 2:if(n=r.sent,"error"!==(a=y.get(n,"data[0]",{})).status&&!a.error){r.next=6;break}return r.abrupt("return",{wordSetId:0,error:a.error});case 6:return r.abrupt("return",{wordSetId:a.wordSetId});case 7:case"end":return r.stop()}}),r)})))()},filter:function(t,e,r){var n;if(t===s.All)return e;var u=(n={},Object(p.a)(n,s.All,a.All),Object(p.a)(n,s.LevelLow,a.Low),Object(p.a)(n,s.LevelMedium,a.Medium),Object(p.a)(n,s.LevelHigh,a.High),n);if([s.All,s.LevelLow,s.LevelMedium,s.LevelHigh].includes(t)){var c=u[t];return e.filter((function(t){return t.level===c}))}return e.filter((function(e){return t===s.MyAdd?e.source===i.own&&!y.includes(Object.values(v),e.id):t===s.DictLearning?e.status===o.New||e.status===o.Learning:t===s.Learned?e.status===o.Learned:t!==s.ByArea||e.areaName===r}))}}},mTTR:function(t,e,r){var n=r("b80T"),a=r("QcOe"),o=r("MMmD");t.exports=function(t){return o(t)?n(t,!0):a(t)}},mc0g:function(t,e){t.exports=function(t){return function(e,r,n){for(var a=-1,o=Object(e),i=n(e),s=i.length;s--;){var u=i[t?s:++a];if(!1===r(o[u],u,o))break}return e}}},mdPL:function(t,e,r){(function(t){var n=r("WFqU"),a=e&&!e.nodeType&&e,o=a&&"object"==typeof t&&t&&!t.nodeType&&t,i=o&&o.exports===a&&n.process,s=function(){try{var t=o&&o.require&&o.require("util").t
1ypes;return t||i&&i.binding&&i.binding("util")}catch(e){}}();t.exports=s}).call(this,r("LY0y")(t))},"mv/X":function(t,e,r){var n=r("ljhN"),a=r("MMmD"),o=r("wJg7"),i=r("GoyQ");t.exports=function(t,e,r){if(!i(r))return!1;var s=typeof e;return!!("number"==s?a(r)&&o(e,r.length):"string"==s&&e in r)&&n(r[e],t)}},nmnc:function(t,e,r){var n=r("Kz5y").Symbol;t.exports=n},pFRH:function(t,e,r){var n=r("cvCv"),a=r("O0oS"),o=r("zZ0H"),i=a?function(t,e){return a(t,"toString",{configurable:!0,enumerable:!1,value:n(e),writable:!0})}:o;t.exports=i},pSRY:function(t,e,r){var n=r("QkVE");t.exports=function(t){return n(this,t).has(t)}},sEf8:function(t,e){t.exports=function(t){return function(e){return t(e)}}},shjB:function(t,e){t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},t2Dn:function(t,e,r){var n=r("hypo"),a=r("ljhN");t.exports=function(t,e,r){(void 0!==r&&!a(t[e],r)||void 0===r&&!(e in t))&&n(t,e,r)}},tMB7:function(t,e,r){var n=r("y1pI");t.exports=function(t){var e=this.__data__,r=n(e,t);return r<0?void 0:e[r][1]}},u8Dt:function(t,e,r){var n=r("YESw"),a=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(n){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return a.call(e,t)?e[t]:void 0}},wJg7:function(t,e){var r=/^(?:0|[1-9]\d*)$/;t.exports=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&r.test(t))&&t>-1&&t%1==0&&t<e}},wclG:function(t,e,r){var n=r("pFRH"),a=r("88Gu")(n);t.exports=a},y1pI:function(t,e,r){var n=r("ljhN");t.exports=function(t,e){for(var r=t.length;r--;)if(n(t[r][0],e))return r;return-1}},yP5f:function(t,e,r){var n=r("+K+b");t.exports=function(t,e){var r=e?n(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}},zZ0H:function(t,e){t.exports=function(t){return t}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.