System.register(["./ResizeObserver.es-legacy.e62567a1.js"],(function(){"use strict";var t,e,o,n,s,a,r,i,u,p,c,T,l,f,h,v,w,m,g;return{setters:[function(d){t=d.d,e=d.r,o=d.b,n=d.c,s=d.a,a=d.T,r=d.F,i=d.V,u=d.A,p=d.i,c=d.h,T=d.j,l=d.p,f=d.l,h=d.e,v=d.f,w=d.g,m=d.k,g=d.u}],execute:function(){var d=t({name:"App",setup:function(){var t=e({showToast:!1,showToastCenter:!1});return o.on("toastShow",(function(e){"center"===e&&(t.showToastCenter=!0),t.showToast=!0})),o.on("toastClose",(function(e){t.showToast=!1,"center"===e&&setTimeout((function(){t.showToastCenter=!1}),300)})),o.on("toastStatus",(function(){return t.showToast})),function(){return n(r,null,[n(s("router-view"),null,null),n("div",{class:["appRootToast",t.showToastCenter?"appRootToastCenter":""]},[n(a,{show:t.showToast,"onUpdate:show":function(e){return t.showToast=e},overlay:!0,duration:3e4},{message:function(){return n(r,null,[n(i,{class:"toastAnimate",animationData:u},null)])}})])])}}});void 0===window.ResizeObserver&&(window.ResizeObserver=p);var y=c(d).use(T);l({api:"getToken"}).then((function(t){console.log(t,"res");var e=t.content;null!=e&&e.accessToken&&f(e.tokenType+" "+e.accessToken)})),h({api:"setBarStatus",content:{status:0}}),h({api:"getNavHeight"},(function(t){var e=t.content,o=e.dpi||2;if(e.navHeight){var n=e.navHeight/o;console.log(n,"navHeight"),w.navBarHeight=n}})),h({api:"getVersion"},(function(t){w.version=t.content.version}));var C=window.paymentType;v().isTeacher||"TEACHER"===C?w.platformType="TEACHER":v().isStudent||"STUDENT"===C?w.platformType="STUDENT":(v().isSchool,w.platformType="SCHOOL"),"TEACHER"===w.platformType&&(w.platformApi="/api-teacher"),"STUDENT"===w.platformType?w.platformApi="/api-student":w.platformApi="/api-school",y.use(m),g().startListenErrorLog(),y.mount("#app")}}}));