var j=Object.defineProperty,V=Object.defineProperties;var $=Object.getOwnPropertyDescriptors;var y=Object.getOwnPropertySymbols;var k=Object.prototype.hasOwnProperty,S=Object.prototype.propertyIsEnumerable;var C=(e,t,o)=>t in e?j(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,l=(e,t)=>{for(var o in t||(t={}))k.call(t,o)&&C(e,o,t[o]);if(y)for(var o of y(t))S.call(t,o)&&C(e,o,t[o]);return e},E=(e,t)=>V(e,$(t));import{d as O,r as M,c as q,o as N,a as P,e as Y,T as d,s as z,b as c,F as H,I as K,f as B,B as W,R as J,g as U,h as G,n as X,i as A,j as Q}from"./vendor.287f5a98.js";const Z=function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))i(r);new MutationObserver(r=>{for(const s of r)if(s.type==="childList")for(const u of s.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&i(u)}).observe(document,{childList:!0,subtree:!0});function o(r){const s={};return r.integrity&&(s.integrity=r.integrity),r.referrerpolicy&&(s.referrerPolicy=r.referrerpolicy),r.crossorigin==="use-credentials"?s.credentials="include":r.crossorigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function i(r){if(r.ep)return;r.ep=!0;const s=o(r);fetch(r.href,s)}};Z();var ee=(e,t)=>{const o=e.__vccOpts||e;for(const[i,r]of t)o[i]=r;return o};const te=O({name:"App"});function oe(e,t,o,i,r,s){const u=M("router-view");return N(),q(u)}var re=ee(te,[["render",oe]]);const ie="modulepreload",b={},ne="./",n=function(t,o){return!o||o.length===0?t():Promise.all(o.map(i=>{if(i=`${ne}${i}`,i in b)return;b[i]=!0;const r=i.endsWith(".css"),s=r?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${i}"]${s}`))return;const u=document.createElement("link");if(u.rel=r?"stylesheet":ie,r||(u.as="script",u.crossOrigin=""),u.href=i,document.head.appendChild(u),r)return new Promise((m,p)=>{u.addEventListener("load",m),u.addEventListener("error",p)})})).then(()=>t())},se="_error_u56io_1",ue="_info_u56io_10";var L={error:se,info:ue};const a=P({user:{status:"init",data:{}},musicCertStatus:!1,openLiveStatus:!1}),ae=e=>{a.user.status="login",a.user.data=e},ce=()=>{a.user.status="logout",a.user.data=null},le=()=>{a.user.status="error",a.user.data=null};P({loadingCount:0});const g=()=>{const e=navigator.userAgent;return{trident:e.indexOf("Trident")>-1,presto:e.indexOf("Presto")>-1,webKit:e.indexOf("AppleWebKit")>-1,gecko:e.indexOf("Gecko")>-1&&e.indexOf("KHTML")==-1,mobile:!!e.match(/AppleWebKit.*Mobile.*/),ios:!!e.match(/Mac OS X/),android:e.indexOf("DAYAAPPA")>-1||e.indexOf("Adr")>-1,iPhone:e.indexOf("DAYAAPPI")>-1,isApp:e.indexOf("DAYAAPPI")>-1||e.indexOf("DAYAAPPA")>-1||e.indexOf("Adr")>-1,iPad:e.indexOf("iPad")>-1,webApp:e.indexOf("Safari")==-1,weixin:e.indexOf("MicroMessenger")>-1,huawei:!!e.match(/huawei/i)||!!e.match(/honor/i),xiaomi:!!e.match(/mi\s/i)||!!e.match(/redmi/i)||!!e.match(/mix/i)}},de=()=>""+new Date().getTime()+Math.floor(Math.random()*1e6),Fe=()=>{sessionStorage.removeItem("Authorization")},me=e=>{sessionStorage.setItem("Authorization",e)},ye=(e,t=0)=>t?["\u661F\u671F\u5929","\u661F\u671F\u4E00","\u661F\u671F\u4E8C","\u661F\u671F\u4E09","\u661F\u671F\u56DB","\u661F\u671F\u4E94","\u661F\u671F\u516D"][e]:["\u5468\u65E5","\u5468\u4E00","\u5468\u4E8C","\u5468\u4E09","\u5468\u56DB","\u5468\u4E94","\u5468\u516D"][e],Ce=(e,t)=>e==="year"?`${t}\u5E74`:e==="month"?`${t}\u6708`:e==="day"?`${t}\u65E5`:t,pe=window.postMessage;window.postMessage=e=>{pe(e,"*")};const D=()=>{},f={},w=g();w.isApp&&window.addEventListener("message",e=>{var t,o,i;try{const r=e.data?typeof e.data=="object"?e.data:JSON.parse(e.data):{},s=((t=r.content)==null?void 0:t.uuid)||r.uuid;try{r.content&&(r.content=JSON.parse(r.content))}catch{}if(((o=r==null?void 0:r.content)==null?void 0:o.uuid)&&console.log("data",r),!s){const p=Object.keys(f).filter(h=>h.indexOf(r.api)===0);for(const h of p){const F=f[h]||D;typeof F=="function"&&F(r)}return}const u=((i=r.content)==null?void 0:i.uuid)||r.uuid||r.api+r.uuid,m=f[u]||D;typeof m=="function"&&m(r)}catch(r){console.error("\u901A\u4FE1\u6D88\u606F\u89E3\u6790\u9519\u8BEF",r)}});var R,T;const fe=window.DAYA||((T=(R=window.webkit)==null?void 0:R.messageHandlers)==null?void 0:T.DAYA),x=(e,t)=>{if(w.isApp){const o=de();f[o]=t||D,e.content=e.content?E(l({},e.content),{uuid:o}):{uuid:o},fe.postMessage(JSON.stringify(e)),console.log("send:",JSON.stringify(e))}},v=Y({timeout:2e4,timeoutMessage:"\u8BF7\u6C42\u8D85\u65F6",errorHandler:e=>{d(e.message)}});v.interceptors.request.use((e,t)=>{d.loading({message:"\u52A0\u8F7D\u4E2D...",forbidClick:!0,loadingType:"spinner",duration:0}),t.initRequest;const o=sessionStorage.getItem("Authorization")||"",i={};return o&&!["/api-auth/usernameLogin","/api-auth/smsLogin","/api-auth/code/sendSms"].includes(e)&&(i.Authorization=o),{url:e,options:E(l({},t),{params:z(t.params),headers:l(l({},t.headers),i)})}},{global:!1});v.interceptors.response.use(async e=>{if(d.clear(),e.status>299||e.status<200){const o="\u670D\u52A1\u5668\u9519\u8BEF\uFF0C\u72B6\u6001\u7801"+e.status;throw d(o),new Error(o)}const t=await e.clone().json();if(t.code!==200&&t.errCode!==0){const o=t.msg||"\u5904\u7406\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5";t.code===403||t.code===401?ce():le(),t.code===403||t.code===401||d(o);const i=g();throw t.code===403&&i.isApp&&x({api:"login"}),new Error(o)}return e},{global:!1});var _e=O({name:"Auth",data(){return{loading:!1}},computed:{isNeedView(){return a.user.status==="login"||this.$route.path==="/login"}},mounted(){this.setAuth()},methods:{async setAuth(){const{query:e}=this.$route,t=e.userInfo||e.Authorization;if(t&&me(t),!this.loading){if(a.user.status==="init"||a.user.status==="error"){this.loading=!0;try{let o=await v.get("/api-teacher/teacher/queryUserInfo",{requestType:"form",initRequest:!0});ae(o.data)}catch{}this.loading=!1}if(a.user.status==="logout")if(g().isApp)x({api:"login"});else try{let o=this.$route,i=l({returnUrl:this.$route.path},this.$route.query);o.meta.isRegister&&(i.isRegister=o.meta.isRegister),this.$router.replace({path:"/login",query:i})}catch{}}}},render(){return c(H,null,[a.user.status==="error"?c("div",{class:L.error},[c("div",{class:L.info},[c(K,{name:"clear",size:"36",color:"#ee0a24"},null),c("span",null,[B("\u52A0\u8F7D\u5931\u8D25\uFF0C\u8BF7\u91CD\u65B0\u5C1D\u8BD5")])]),c(W,{type:"primary",round:!0,onClick:this.setAuth},{default:()=>[B("\u91CD\u65B0\u52A0\u8F7D")]})]):this.isNeedView?c(J,null,null):null])}});const he=[{path:"/orderDetail",name:"orderDetail",component:()=>n(()=>import("./index.99df350d.js"),["assets/index.99df350d.js","assets/index.2d3e7712.css","assets/index.09cb4b8c.css","assets/index.935001ee.css","assets/index.e07367fb.css","assets/index.c3ad47f3.css","assets/index.ed0ac76f.css","assets/index.f34cd857.js","assets/index.76caf9e7.css","assets/vendor.287f5a98.js","assets/vendor.177057eb.css","assets/index.4829b722.js","assets/index.1136e070.css","assets/index.9d7b976e.js","assets/index.eae913ee.css","assets/icon_checkbox_default.2fe5d57e.js","assets/icon_teacher.2c3a434a.js"]),meta:{title:"\u8BA2\u5355\u8BE6\u60C5"}},{path:"/tradeDetail",name:"tradeDetail",component:()=>n(()=>import("./trade-detail.78e8103b.js"),["assets/trade-detail.78e8103b.js","assets/trade-detail.11219eb3.css","assets/index.09cb4b8c.css","assets/index.935001ee.css","assets/index.ed0ac76f.css","assets/index.e07367fb.css","assets/index.8e0db568.js","assets/index.e745e188.css","assets/vendor.287f5a98.js","assets/vendor.177057eb.css","assets/icon_teacher.2c3a434a.js"]),meta:{title:"\u4EA4\u6613\u8BE6\u60C5"}}],Ee=[{path:"/registerProtocol",name:"registerProtocol",component:()=>n(()=>import("./register.40f2f509.js"),["assets/register.40f2f509.js","assets/index.module.b4127d60.js","assets/index.module.85d8aa1a.css","assets/vendor.287f5a98.js","assets/vendor.177057eb.css"]),meta:{title:"\u6CE8\u518C\u534F\u8BAE"}},{path:"/privacyProtocol",name:"privacyProtocol",component:()=>n(()=>import("./privacy.a864ccd5.js"),["assets/privacy.a864ccd5.js","assets/index.module.b4127d60.js","assets/index.module.85d8aa1a.css","assets/vendor.287f5a98.js","assets/vendor.177057eb.css"]),meta:{title:"\u9177\u4E50\u79C0\u9690\u79C1\u653F\u7B56"}}];var Ae=[{path:"/",component:_e,children:[...he,{path:"/login",name:"login",component:()=>n(()=>import("./login.97ddd96b.js"),["assets/login.97ddd96b.js","assets/login.392ab8af.css","assets/index.935001ee.css","assets/index.09cb4b8c.css","assets/index.c3ad47f3.css","assets/index.ed0ac76f.css","assets/index.e07367fb.css","assets/vendor.287f5a98.js","assets/vendor.177057eb.css","assets/validate.ba62cd4c.js"]),meta:{isRegister:!1}},{path:"/home",name:"home",component:()=>n(()=>import("./index.d226c1b1.js"),["assets/index.d226c1b1.js","assets/index.66617849.css","assets/vendor.287f5a98.js","assets/vendor.177057eb.css"])},{path:"/teacherCert",name:"teacherCert",component:()=>n(()=>import("./index.2ab23e5b.js"),["assets/index.2ab23e5b.js","assets/index.184c1243.css","assets/index.725eb6f5.css","assets/index.e07367fb.css","assets/index.935001ee.css","assets/index.ac4f6b9f.css","assets/index.09cb4b8c.css","assets/index.c3ad47f3.css","assets/index.c1ee5538.css","assets/index.ed0ac76f.css","assets/index.6073691f.css","assets/index.f6ecd2b5.css","assets/vendor.287f5a98.js","assets/vendor.177057eb.css","assets/index.8ad25bfd.js","assets/index.9785f317.css","assets/index.4829b722.js","assets/index.1136e070.css","assets/index.9d7b976e.js","assets/index.eae913ee.css","assets/index.ae146d6d.js","assets/index.9b8bd839.css","assets/index.8e0db568.js","assets/index.e745e188.css","assets/index.f34cd857.js","assets/index.76caf9e7.css","assets/icon_checkbox_default.2fe5d57e.js","assets/validate.ba62cd4c.js","assets/index.9753de72.js","assets/index.4315b8bd.css"]),meta:{title:"\u8001\u5E08\u8BA4\u8BC1"}},{path:"/music-upload",component:()=>n(()=>import("./index.efaba8ae.js"),["assets/index.efaba8ae.js","assets/index.dff2fccb.css","assets/index.09cb4b8c.css","assets/index.c3ad47f3.css","assets/index.725eb6f5.css","assets/index.c1ee5538.css","assets/index.e07367fb.css","assets/index.6073691f.css","assets/index.f6ecd2b5.css","assets/index.ed0ac76f.css","assets/vendor.287f5a98.js","assets/vendor.177057eb.css","assets/index.9d7b976e.js","assets/index.eae913ee.css"]),meta:{title:"\u4E0A\u4F20\u66F2\u8C31"}},{path:"/music-list",component:()=>n(()=>import("./switch.d53f0710.js"),["assets/switch.d53f0710.js","assets/switch.7ac36fff.css","assets/index.725eb6f5.css","assets/index.6073691f.css","assets/index.3c6f8825.css","assets/index.85a0c0a7.css","assets/vendor.287f5a98.js","assets/vendor.177057eb.css"]),meta:{title:"\u66F2\u8C31\u5217\u8868"}},{path:"/openLive",name:"openLive",component:()=>n(()=>import("./index.b7abae2f.js"),["assets/index.b7abae2f.js","assets/index.1449ecbe.css","assets/index.09cb4b8c.css","assets/index.e07367fb.css","assets/index.4da210b7.css","assets/index.725eb6f5.css","assets/vendor.287f5a98.js","assets/vendor.177057eb.css","assets/index.8e0db568.js","assets/index.e745e188.css","assets/icon_teacher.2c3a434a.js","assets/index.ae146d6d.js","assets/index.9b8bd839.css"]),meta:{title:"\u5F00\u901A\u76F4\u64AD"}},{path:"/liveDetail",name:"liveDetail",component:()=>n(()=>import("./live-detail.76998789.js"),["assets/live-detail.76998789.js","assets/live-detail.e145559e.css","assets/index.725eb6f5.css","assets/index.6073691f.css","assets/index.3c6f8825.css","assets/index.e07367fb.css","assets/index.09cb4b8c.css","assets/index.935001ee.css","assets/index.c1ee5538.css","assets/index.e4d29431.js","assets/index.155bb36b.css","assets/vendor.287f5a98.js","assets/vendor.177057eb.css","assets/index.a6b1b857.js","assets/index.3f72abd0.css","assets/index.7aa945e7.js","assets/index.17c17024.css","assets/icon_teacher.2c3a434a.js","assets/index.efad831a.js","assets/index.9abbaa53.css","assets/index.ae146d6d.js","assets/index.9b8bd839.css"]),meta:{title:"\u76F4\u64AD\u8BFE\u8BE6\u60C5"}},{path:"/musicCert",name:"musicCert",component:()=>n(()=>import("./index.8966e164.js"),["assets/index.8966e164.js","assets/index.afbc962b.css","assets/index.e07367fb.css","assets/index.725eb6f5.css","assets/vendor.287f5a98.js","assets/vendor.177057eb.css","assets/index.ae146d6d.js","assets/index.9b8bd839.css"]),meta:{title:"\u97F3\u4E50\u4EBA\u8BA4\u8BC1"}},{path:"/videoCreate",name:"videoCreate",component:()=>n(()=>import("./create.94133b90.js"),["assets/create.94133b90.js","assets/create.090c64ef.css","assets/index.4f250b7f.css","assets/index.ed0ac76f.css","assets/index.09cb4b8c.css","assets/index.c3ad47f3.css","assets/index.e07367fb.css","assets/index.725eb6f5.css","assets/index.6073691f.css","assets/index.3c6f8825.css","assets/index.f6ecd2b5.css","assets/index.935001ee.css","assets/index.c1ee5538.css","assets/vendor.287f5a98.js","assets/vendor.177057eb.css","assets/index.9d7b976e.js","assets/index.eae913ee.css","assets/index.4829b722.js","assets/index.1136e070.css","assets/index.9753de72.js","assets/index.4315b8bd.css","assets/toolsValidate.add49407.js","assets/index.8ad25bfd.js","assets/index.9785f317.css","assets/index.ae146d6d.js","assets/index.9b8bd839.css","assets/icon_checkbox_default.2fe5d57e.js","assets/index.7aa945e7.js","assets/index.17c17024.css","assets/icon_teacher.2c3a434a.js","assets/index.a6b1b857.js","assets/index.3f72abd0.css","assets/index.b2066949.js","assets/index.7f557a5f.css"]),meta:{title:"\u521B\u5EFA\u89C6\u9891\u8BFE"}},{path:"/videoDetail",name:"videoDetail",component:()=>n(()=>import("./video-detail.8cc2461a.js"),["assets/video-detail.8cc2461a.js","assets/video-detail.b0b04a2d.css","assets/index.85a0c0a7.css","assets/index.725eb6f5.css","assets/index.6073691f.css","assets/index.3c6f8825.css","assets/index.09cb4b8c.css","assets/index.e07367fb.css","assets/index.935001ee.css","assets/index.c1ee5538.css","assets/index.b2066949.js","assets/index.7f557a5f.css","assets/vendor.287f5a98.js","assets/vendor.177057eb.css","assets/index.a6b1b857.js","assets/index.3f72abd0.css","assets/index.7aa945e7.js","assets/index.17c17024.css","assets/icon_teacher.2c3a434a.js","assets/index.efad831a.js","assets/index.9abbaa53.css","assets/index.ae146d6d.js","assets/index.9b8bd839.css"]),meta:{title:"\u89C6\u9891\u8BFE\u8BE6\u60C5"}},{path:"/videoClassDetail",name:"videoClassDetail",component:()=>n(()=>import("./video-class-detail.d43ef4d3.js"),["assets/video-class-detail.d43ef4d3.js","assets/video-class-detail.d5f4020c.css","assets/index.09cb4b8c.css","assets/index.4da210b7.css","assets/index.725eb6f5.css","assets/index.6073691f.css","assets/index.3c6f8825.css","assets/index.e07367fb.css","assets/index.c3ad47f3.css","assets/index.935001ee.css","assets/index.b2066949.js","assets/index.7f557a5f.css","assets/vendor.287f5a98.js","assets/vendor.177057eb.css","assets/index.a6b1b857.js","assets/index.3f72abd0.css","assets/index.8e0db568.js","assets/index.e745e188.css","assets/icon_teacher.2c3a434a.js"]),meta:{title:"\u89C6\u9891\u8BFE\u8BE6\u60C5"}},{path:"/liveCreate",name:"liveCreate",component:()=>n(()=>import("./create.67e347b4.js"),["assets/create.67e347b4.js","assets/create.6aca8267.css","assets/index.4f250b7f.css","assets/index.9bdb045e.css","assets/index.09cb4b8c.css","assets/index.c3ad47f3.css","assets/index.725eb6f5.css","assets/index.ed0ac76f.css","assets/index.6073691f.css","assets/index.3c6f8825.css","assets/index.e07367fb.css","assets/index.ac4f6b9f.css","assets/index.c1ee5538.css","assets/index.f6ecd2b5.css","assets/index.935001ee.css","assets/vendor.287f5a98.js","assets/vendor.177057eb.css","assets/index.9d7b976e.js","assets/index.eae913ee.css","assets/index.4829b722.js","assets/index.1136e070.css","assets/index.8ad25bfd.js","assets/index.9785f317.css","assets/index.ae146d6d.js","assets/index.9b8bd839.css","assets/toolsValidate.add49407.js","assets/index.9753de72.js","assets/index.4315b8bd.css","assets/icon_checkbox_default.2fe5d57e.js","assets/index.e4d29431.js","assets/index.155bb36b.css","assets/index.a6b1b857.js","assets/index.3f72abd0.css","assets/index.7aa945e7.js","assets/index.17c17024.css","assets/icon_teacher.2c3a434a.js"]),meta:{title:"\u521B\u5EFA\u76F4\u64AD\u8BFE"}},{path:"/practiceSetting",name:"practiceSetting",component:()=>n(()=>import("./practice-setting.55e9103a.js"),["assets/practice-setting.55e9103a.js","assets/practice-setting.cf064bd5.css","assets/index.c1ee5538.css","assets/index.725eb6f5.css","assets/index.09cb4b8c.css","assets/index.c3ad47f3.css","assets/index.9bdb045e.css","assets/index.ed0ac76f.css","assets/index.e07367fb.css","assets/index.9d7b976e.js","assets/index.eae913ee.css","assets/vendor.287f5a98.js","assets/vendor.177057eb.css","assets/index.8ad25bfd.js","assets/index.9785f317.css","assets/index.4829b722.js","assets/index.1136e070.css","assets/index.ae146d6d.js","assets/index.9b8bd839.css","assets/toolsValidate.add49407.js"]),meta:{title:"\u966A\u7EC3\u8BFE\u8BBE\u7F6E"}}]},...Ee,{path:"/:pathMatch(.*)*",component:()=>n(()=>import("./index.4ab04181.js"),["assets/index.4ab04181.js","assets/index.5361fbba.css","assets/index.e07367fb.css","assets/vendor.287f5a98.js","assets/vendor.177057eb.css"]),meta:{title:"404 Not Fund",platform:"TEACHER"}}];const I=U({history:G(),routes:Ae});I.beforeEach((e,t,o)=>{document.title=e.meta.title||"\u9177\u4E50\u79C0",o()});var ge={moneyFormat(e){return X(e).format("0,0.00")},dateFormat(e,t="YYYY-MM-DD HH:mm:ss"){return A(e).format(t)}};const _=Q(re);A.locale("zh-ch");_.config.globalProperties.$dayjs=A;_.config.globalProperties.$filters=ge;_.use(I);_.mount("#app");export{Fe as a,me as b,ae as c,g as d,Ce as f,ye as g,x as p,v as r,a as s};