var Wn=Object.defineProperty,zn=Object.defineProperties;var Kn=Object.getOwnPropertyDescriptors;var Pt=Object.getOwnPropertySymbols;var Yn=Object.prototype.hasOwnProperty,Gn=Object.prototype.propertyIsEnumerable;var Nt=(e,t,n)=>t in e?Wn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Q=(e,t)=>{for(var n in t||(t={}))Yn.call(t,n)&&Nt(e,n,t[n]);if(Pt)for(var n of Pt(t))Gn.call(t,n)&&Nt(e,n,t[n]);return e},Ae=(e,t)=>zn(e,Kn(t));import{l as ln,r as oe,c as fe,s as P,a as m,b as Et,e as O,d as cn,f as Qn,g as te,h as Ut,i as $n,j as un,t as Jn,o as Ht,S as Ee,k as dn,m as fn,n as Xn,p as ne,q as Zn,L as V,V as eo,A as to,u as no,v as oo,w as ro,x as so,y as io,z as Ot,B as ao,C as lo,I as Vt,D as jt,E as co,F as mt}from"./index.0b72d1af.js";import{d as Y,l as de,a as i,t as A,v as gt,x as pt,y as yt,k as Re,A as Z,B as uo,i as hn,C as mn,D as vt,F as gn,G as fo,H as ho,I as pn,J as mo,K as Je,j as Tt,L as go,h as Bt,r as re,M as po,N as yo,O as vo,P as wo,Q as bo,R as Co,S as Xe,T as Ze,U as et}from"./vendor.65bdc0e9.js";const So="_liveHeader_turek_1",Ao="_liveLogo_turek_12",Eo="_liveHeaderLeft_turek_17",To="_liveHeaderLeftIcon_turek_23",Bo="_liveHeaderLeftText_turek_27",Io="_avatarWrapper_turek_30",Ro="_userAvatar_turek_37";var le={liveHeader:So,liveLogo:Ao,liveHeaderLeft:Eo,liveHeaderLeftIcon:To,liveHeaderLeftText:Bo,avatarWrapper:Io,userAvatar:Ro},_o="./assets/wifi.01085659.svg",Lo="./assets/wifi1.38ccf7b5.svg",ko="./assets/wifi2.b954e533.svg",Mo="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAJy0lEQVRYR62ZeXTTVRbHPy9tU5qmC90oqSylDB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/bMnUMUDOqHejSo6qqgRslEkhND+hhBCd1ZVlCOxkeF7Tl++fpjs7Dv+G+K/XpA1Lg9OfHQAAAAASUVORK5CYII=",xo=Y({data(){return{iceCandidatePair:null}},methods:{async loginOut(){try{await ln();try{await oe.post("/api-auth/exit",{data:{}})}catch{}fe("camera"),fe("microphone"),P.user=null,m.syncLikeTimer&&clearTimeout(m.syncLikeTimer),de.success("\u9000\u51FA\u6210\u529F"),Et(),this.$router.push({path:"/login",query:Q({},this.$route.query)})}catch{}},onStateReport(e){this.iceCandidatePair=e.iceCandidatePair},getWifiICon(e){return e>=2e3?_o:e>=1e3?Lo:ko}},mounted(){O.on("onStateReport",this.onStateReport)},beforeUnmount(){O.off("onStateReport",this.onStateReport)},render(){var t,n,o;const e=this.iceCandidatePair;return i("div",{class:le.liveHeader},[i("div",{class:le.liveHeaderLeft},[i("div",{class:le.liveHeaderLeftIcon},[i("img",{class:le.liveLogo,src:(t=P.user)==null?void 0:t.tenantLogo,alt:""},null),(n=P.user)==null?void 0:n.tenantName]),i("div",{class:le.liveHeaderLeftText},[A("\u300A"),(o=P.user)==null?void 0:o.roomTitle,A("\u300B")])]),i(gt,{trigger:"hover",placement:"bottom-end"},{default:()=>{var r,s,a;return[i("div",{class:le.avatarWrapper},[m.videoStatus==="liveing"&&e?i("div",{style:{background:"#5E626D",borderRadius:"6px",width:"113px",height:"32px",lineHeight:"32px",marginRight:"10px",textAlign:"center",display:"flex",justifyContent:"center"}},[i("span",{style:{fontSize:"14px",color:"#fff",flex:1}},[e.bitrateSend,A("kbps")]),i("img",{style:{marginLeft:"5px",marginRight:"10px",width:"20px"},src:this.getWifiICon(e.bitrateSend)},null)]):null,((r=P.user)==null?void 0:r.speakerPic)?i("img",{class:le.userAvatar,src:(s=P.user)==null?void 0:s.speakerPic},null):i("img",{class:le.userAvatar,src:Mo},null),i("span",null,[(a=P.user)==null?void 0:a.speakerName])])]},dropdown:()=>i(pt,null,{default:()=>[i(yt,{command:"1",onClick:this.loginOut},{default:()=>[i("span",null,[A("\u5B89\u5168\u9000\u51FA")])]})]})})])}});const Fo="_header_nc46v_1",Do="_title_nc46v_10";var qt={header:Fo,title:Do},Po=Y({name:"LiveBroadcastHeader",methods:{async startLive(){try{await Re.confirm("\u5F00\u542F\u540E\u5B66\u751F\u5C06\u770B\u5230\u89C6\u9891\u753B\u9762","\u63D0\u793A",{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",type:"warning"}),await cn(),de.success("\u5F00\u542F\u6210\u529F")}catch(e){console.log(e)}},async closeLive(){try{await Re.confirm("\u5173\u95ED\u540E\u5C06\u5207\u65AD\u89C6\u9891\uFF0C\u5B66\u751F\u4E0D\u53EF\u89C2\u770B","\u63D0\u793A",{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",type:"warning"}),await Qn(),await te({},"PauseLive"),de.success("\u5173\u95ED\u6210\u529F")}catch{}},async closeRoom(){var e;try{await Re.confirm("\u7ED3\u675F\u540E\u5C06\u65E0\u6CD5\u8FDB\u5165\u76F4\u64AD\u95F4","\u63D0\u793A",{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",type:"warning"});const t=(e=P.user)==null?void 0:e.id;await oe.get("/api-web/imLiveBroadcastRoom/roomDestroy/"+t,{}),fe("camera"),fe("microphone"),P.user=null,Et(),de.success("\u7ED3\u675F"),this.$router.push({path:"/login",query:Q({},this.$route.query)})}catch{}}},render(){var e;return i("div",{class:qt.header},[i("h3",{class:qt.title},[A("\u76F4\u64AD\u5185\u5BB9\uFF1A"),(e=P.user)==null?void 0:e.liveRemark]),i("div",null,[m.videoStatus==="liveing"?i(Z,{type:"danger",color:"#01A79E",onClick:this.closeLive},{default:()=>[A("\u6682\u505C\u76F4\u64AD")]}):i(Z,{type:"primary",color:"#01A79E",onClick:this.startLive},{default:()=>[A("\u5F00\u542F\u76F4\u64AD")]}),i(Z,{type:"primary",color:"#EA4132",onClick:this.closeRoom},{default:()=>[A("\u7ED3\u675F\u76F4\u64AD")]})])])}}),No=`\r
\r
`;const Uo="_volumeSlider_1akc3_71",Ho="_volumeIcon_1akc3_80",Oo="_btnInner_1akc3_85";var X={"action-bar":"_action-bar_1akc3_1","bar-btn":"_bar-btn_1akc3_12","bar-btn-text":"_bar-btn-text_1akc3_19",volumeSlider:Uo,volumeIcon:Ho,btnInner:Oo};const Vo="_shareWrap_d61fv_1",jo="_shareBtn_d61fv_27";var ie={shareWrap:Vo,shareBtn:jo};function qo(){let e=window.location.href,t="";return/online/.test(e)?t="https://mstuonline.dayaedu.com":/dev/.test(e)?t="http://mstudev.dayaedu.com":/test/.test(e)?t="http://mstutest.dayaedu.com":t="http://mstudev.dayaedu.com",t}var yn=globalThis&&globalThis.__awaiter||function(e,t,n,o){function r(s){return s instanceof n?s:new n(function(a){a(s)})}return new(n||(n=Promise))(function(s,a){function l(u){try{d(o.next(u))}catch(f){a(f)}}function c(u){try{d(o.throw(u))}catch(f){a(f)}}function d(u){u.done?s(u.value):r(u.value).then(l,c)}d((o=o.apply(e,t||[])).next())})};const Wt="application/font-woff",zt="image/jpeg",Wo={woff:Wt,woff2:Wt,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:zt,jpeg:zt,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml"};function zo(e){const t=/\.([^./]*?)$/g.exec(e);return t?t[1]:""}function Ue(e){const t=zo(e).toLowerCase();return Wo[t]||""}function Ko(e,t){if(e.match(/^[a-z]+:\/\//i))return e;if(e.match(/^\/\//))return window.location.protocol+e;if(e.match(/^[a-z]+:/i))return e;const n=document.implementation.createHTMLDocument(),o=n.createElement("base"),r=n.createElement("a");return n.head.appendChild(o),n.body.appendChild(r),t&&(o.href=t),r.href=e,r.href}function wt(e){return e.search(/^(data:)/)!==-1}function He(e,t){return`data:${t};base64,${e}`}function Yo(e){return e.split(/,/)[1]}const Go=function(){let t=0;const n=()=>`0000${(Math.random()*Math.pow(36,4)<<0).toString(36)}`.slice(-4);return()=>(t+=1,`u${n()}${t}`)}();function he(e){const t=[];for(let n=0,o=e.length;n{const o=new Image;o.onload=()=>t(o),o.onerror=n,o.crossOrigin="anonymous",o.decoding="sync",o.src=e})}function Xo(e){return yn(this,void 0,void 0,function*(){return Promise.resolve().then(()=>new XMLSerializer().serializeToString(e)).then(encodeURIComponent).then(t=>`data:image/svg+xml;charset=utf-8,${t}`)})}function Zo(e,t,n){return yn(this,void 0,void 0,function*(){const o="http://www.w3.org/2000/svg",r=document.createElementNS(o,"svg"),s=document.createElementNS(o,"foreignObject");return r.setAttribute("width",`${t}`),r.setAttribute("height",`${n}`),r.setAttribute("viewBox",`0 0 ${t} ${n}`),s.setAttribute("width","100%"),s.setAttribute("height","100%"),s.setAttribute("x","0"),s.setAttribute("y","0"),s.setAttribute("externalResourcesRequired","true"),r.appendChild(s),s.appendChild(e),Xo(r)})}const tt={};function er(e){let t=e.replace(/\?.*/,"");return/ttf|otf|eot|woff2?/i.test(t)&&(t=t.replace(/.*\//,"")),t}function Rt(e,t){const n=er(e);if(tt[n]!=null)return tt[n];t.cacheBust&&(e+=(/\?/.test(e)?"&":"?")+new Date().getTime());const o=s=>{let a="";if(t.imagePlaceholder){const c=t.imagePlaceholder.split(/,/);c&&c[1]&&(a=c[1])}let l=`Failed to fetch resource: ${e}`;return s&&(l=typeof s=="string"?s:s.message),l&&console.error(l),{blob:a,contentType:""}},r=window.fetch(e).then(s=>s.blob().then(a=>({blob:a,contentType:s.headers.get("Content-Type")||""}))).then(({blob:s,contentType:a})=>new Promise((l,c)=>{const d=new FileReader;d.onloadend=()=>l({contentType:a,blob:d.result}),d.onerror=c,d.readAsDataURL(s)})).then(({blob:s,contentType:a})=>({contentType:a,blob:Yo(s)})).catch(o);return tt[n]=r,r}function tr(e){const t=e.getPropertyValue("content");return`${e.cssText} content: '${t.replace(/'|"/g,"")}';`}function nr(e){return he(e).map(t=>{const n=e.getPropertyValue(t),o=e.getPropertyPriority(t);return`${t}: ${n}${o?" !important":""};`}).join(" ")}function or(e,t,n){const o=`.${e}:${t}`,r=n.cssText?tr(n):nr(n);return document.createTextNode(`${o}{${r}}`)}function Kt(e,t,n){const o=window.getComputedStyle(e,n),r=o.getPropertyValue("content");if(r===""||r==="none")return;const s=Go();try{t.className=`${t.className} ${s}`}catch{return}const a=document.createElement("style");a.appendChild(or(s,n,o)),t.appendChild(a)}function rr(e,t){Kt(e,t,":before"),Kt(e,t,":after")}var Ce=globalThis&&globalThis.__awaiter||function(e,t,n,o){function r(s){return s instanceof n?s:new n(function(a){a(s)})}return new(n||(n=Promise))(function(s,a){function l(u){try{d(o.next(u))}catch(f){a(f)}}function c(u){try{d(o.throw(u))}catch(f){a(f)}}function d(u){u.done?s(u.value):r(u.value).then(l,c)}d((o=o.apply(e,t||[])).next())})};function sr(e){return Ce(this,void 0,void 0,function*(){const t=e.toDataURL();return t==="data:,"?Promise.resolve(e.cloneNode(!1)):It(t)})}function ir(e,t){return Ce(this,void 0,void 0,function*(){return Promise.resolve(e.poster).then(n=>Rt(n,t)).then(n=>He(n.blob,Ue(e.poster)||n.contentType)).then(n=>It(n))})}function ar(e,t){return Ce(this,void 0,void 0,function*(){return e instanceof HTMLCanvasElement?sr(e):e instanceof HTMLVideoElement&&e.poster?ir(e,t):Promise.resolve(e.cloneNode(!1))})}const lr=e=>e.tagName!=null&&e.tagName.toUpperCase()==="SLOT";function cr(e,t,n){var o;return Ce(this,void 0,void 0,function*(){const r=lr(e)&&e.assignedNodes?he(e.assignedNodes()):he(((o=e.shadowRoot)!==null&&o!==void 0?o:e).childNodes);return r.length===0||e instanceof HTMLVideoElement?Promise.resolve(t):r.reduce((s,a)=>s.then(()=>vn(a,n)).then(l=>{l&&t.appendChild(l)}),Promise.resolve()).then(()=>t)})}function ur(e,t){const n=window.getComputedStyle(e),o=t.style;!o||(n.cssText?o.cssText=n.cssText:he(n).forEach(r=>{o.setProperty(r,n.getPropertyValue(r),n.getPropertyPriority(r))}))}function dr(e,t){e instanceof HTMLTextAreaElement&&(t.innerHTML=e.value),e instanceof HTMLInputElement&&t.setAttribute("value",e.value)}function fr(e,t){return Ce(this,void 0,void 0,function*(){return t instanceof Element?Promise.resolve().then(()=>ur(e,t)).then(()=>rr(e,t)).then(()=>dr(e,t)).then(()=>t):Promise.resolve(t)})}function vn(e,t,n){return Ce(this,void 0,void 0,function*(){return!n&&t.filter&&!t.filter(e)?Promise.resolve(null):Promise.resolve(e).then(o=>ar(o,t)).then(o=>cr(e,o,t)).then(o=>fr(e,o))})}var hr=globalThis&&globalThis.__awaiter||function(e,t,n,o){function r(s){return s instanceof n?s:new n(function(a){a(s)})}return new(n||(n=Promise))(function(s,a){function l(u){try{d(o.next(u))}catch(f){a(f)}}function c(u){try{d(o.throw(u))}catch(f){a(f)}}function d(u){u.done?s(u.value):r(u.value).then(l,c)}d((o=o.apply(e,t||[])).next())})};const wn=/url\((['"]?)([^'"]+?)\1\)/g,mr=/url\([^)]+\)\s*format\((["'])([^"']+)\1\)/g,gr=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;function pr(e){const t=e.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return new RegExp(`(url\\(['"]?)(${t})(['"]?\\))`,"g")}function yr(e){const t=[];return e.replace(wn,(n,o,r)=>(t.push(r),n)),t.filter(n=>!wt(n))}function vr(e,t,n,o,r){const s=n?Ko(t,n):t;return Promise.resolve(s).then(a=>r?r(a):Rt(a,o)).then(a=>typeof a=="string"?He(a,Ue(t)):He(a.blob,Ue(t)||a.contentType)).then(a=>e.replace(pr(t),`$1${a}$3`)).then(a=>a,()=>s)}function wr(e,{preferredFontFormat:t}){return t?e.replace(gr,n=>{for(;;){const[o,,r]=mr.exec(n)||[];if(!r)return"";if(r===t)return`src: ${o};`}}):e}function bn(e){return e.search(wn)!==-1}function Cn(e,t,n){return hr(this,void 0,void 0,function*(){if(!bn(e))return Promise.resolve(e);const o=wr(e,n);return Promise.resolve(o).then(yr).then(r=>r.reduce((s,a)=>s.then(l=>vr(l,a,t,n)),Promise.resolve(o)))})}var qe=globalThis&&globalThis.__awaiter||function(e,t,n,o){function r(s){return s instanceof n?s:new n(function(a){a(s)})}return new(n||(n=Promise))(function(s,a){function l(u){try{d(o.next(u))}catch(f){a(f)}}function c(u){try{d(o.throw(u))}catch(f){a(f)}}function d(u){u.done?s(u.value):r(u.value).then(l,c)}d((o=o.apply(e,t||[])).next())})};function br(e,t){var n;return qe(this,void 0,void 0,function*(){const o=(n=e.style)===null||n===void 0?void 0:n.getPropertyValue("background");return o?Promise.resolve(o).then(r=>Cn(r,null,t)).then(r=>(e.style.setProperty("background",r,e.style.getPropertyPriority("background")),e)):Promise.resolve(e)})}function Cr(e,t){return qe(this,void 0,void 0,function*(){if(!(e instanceof HTMLImageElement&&!wt(e.src))&&!(e instanceof SVGImageElement&&!wt(e.href.baseVal)))return Promise.resolve(e);const n=e instanceof HTMLImageElement?e.src:e.href.baseVal;return Promise.resolve(n).then(o=>Rt(o,t)).then(o=>He(o.blob,Ue(n)||o.contentType)).then(o=>new Promise((r,s)=>{e.onload=r,e.onerror=s,e instanceof HTMLImageElement?(e.srcset="",e.src=o):e.href.baseVal=o})).then(()=>e,()=>e)})}function Sr(e,t){return qe(this,void 0,void 0,function*(){const o=he(e.childNodes).map(r=>Sn(r,t));return Promise.all(o).then(()=>e)})}function Sn(e,t){return qe(this,void 0,void 0,function*(){return e instanceof Element?Promise.resolve(e).then(n=>br(n,t)).then(n=>Cr(n,t)).then(n=>Sr(n,t)):Promise.resolve(e)})}function Ar(e,t){const{style:n}=e;t.backgroundColor&&(n.backgroundColor=t.backgroundColor),t.width&&(n.width=`${t.width}px`),t.height&&(n.height=`${t.height}px`);const o=t.style;return o!=null&&Object.keys(o).forEach(r=>{n[r]=o[r]}),e}var ke=globalThis&&globalThis.__awaiter||function(e,t,n,o){function r(s){return s instanceof n?s:new n(function(a){a(s)})}return new(n||(n=Promise))(function(s,a){function l(u){try{d(o.next(u))}catch(f){a(f)}}function c(u){try{d(o.throw(u))}catch(f){a(f)}}function d(u){u.done?s(u.value):r(u.value).then(l,c)}d((o=o.apply(e,t||[])).next())})};const Yt={};function Gt(e){const t=Yt[e];if(t!=null)return t;const n=window.fetch(e).then(o=>({url:e,cssText:o.text()}));return Yt[e]=n,n}function Qt(e){return ke(this,void 0,void 0,function*(){return e.cssText.then(t=>{let n=t;const o=/url\(["']?([^"')]+)["']?\)/g,s=(n.match(/url\([^)]+\)/g)||[]).map(a=>{let l=a.replace(o,"$1");return l.startsWith("https://")||(l=new URL(l,e.url).href),window.fetch(l).then(c=>c.blob()).then(c=>new Promise((d,u)=>{const f=new FileReader;f.onloadend=()=>{n=n.replace(a,`url(${f.result})`),d([a,f.result])},f.onerror=u,f.readAsDataURL(c)}))});return Promise.all(s).then(()=>n)})})}function $t(e){if(e==null)return[];const t=[],n=/(\/\*[\s\S]*?\*\/)/gi;let o=e.replace(n,"");const r=new RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");for(;;){const c=r.exec(o);if(c===null)break;t.push(c[0])}o=o.replace(r,"");const s=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,a="((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})",l=new RegExp(a,"gi");for(;;){let c=s.exec(o);if(c===null){if(c=l.exec(o),c===null)break;s.lastIndex=l.lastIndex}else l.lastIndex=s.lastIndex;t.push(c[0])}return t}function Er(e){return ke(this,void 0,void 0,function*(){const t=[],n=[];return e.forEach(o=>{if("cssRules"in o)try{he(o.cssRules).forEach((r,s)=>{if(r.type===CSSRule.IMPORT_RULE){let a=s+1;const l=r.href,c=Gt(l).then(d=>d?Qt(d):"").then(d=>$t(d).forEach(u=>{try{o.insertRule(u,u.startsWith("@import")?a+=1:o.cssRules.length)}catch(f){console.error("Error inserting rule from remote css",{rule:u,error:f})}})).catch(d=>{console.error("Error loading remote css",d.toString())});n.push(c)}})}catch(r){const s=e.find(a=>a.href==null)||document.styleSheets[0];o.href!=null&&n.push(Gt(o.href).then(a=>a?Qt(a):"").then(a=>$t(a).forEach(l=>{s.insertRule(l,o.cssRules.length)})).catch(a=>{console.error("Error loading remote stylesheet",a.toString())})),console.error("Error inlining remote css file",r.toString())}}),Promise.all(n).then(()=>(e.forEach(o=>{if("cssRules"in o)try{he(o.cssRules).forEach(r=>{t.push(r)})}catch(r){console.error(`Error while reading CSS rules from ${o.href}`,r.toString())}}),t))})}function Tr(e){return e.filter(t=>t.type===CSSRule.FONT_FACE_RULE).filter(t=>bn(t.style.getPropertyValue("src")))}function Br(e){return ke(this,void 0,void 0,function*(){return new Promise((t,n)=>{e.ownerDocument==null&&n(new Error("Provided element is not within a Document")),t(he(e.ownerDocument.styleSheets))}).then(t=>Er(t)).then(Tr)})}function Ir(e,t){return ke(this,void 0,void 0,function*(){return Br(e).then(n=>Promise.all(n.map(o=>{const r=o.parentStyleSheet?o.parentStyleSheet.href:null;return Cn(o.cssText,r,t)}))).then(n=>n.join(`
`))})}function Rr(e,t){return ke(this,void 0,void 0,function*(){return(t.fontEmbedCSS!=null?Promise.resolve(t.fontEmbedCSS):Ir(e,t)).then(n=>{const o=document.createElement("style"),r=document.createTextNode(n);return o.appendChild(r),e.firstChild?e.insertBefore(o,e.firstChild):e.appendChild(o),e})})}var _t=globalThis&&globalThis.__awaiter||function(e,t,n,o){function r(s){return s instanceof n?s:new n(function(a){a(s)})}return new(n||(n=Promise))(function(s,a){function l(u){try{d(o.next(u))}catch(f){a(f)}}function c(u){try{d(o.throw(u))}catch(f){a(f)}}function d(u){u.done?s(u.value):r(u.value).then(l,c)}d((o=o.apply(e,t||[])).next())})};function An(e,t={}){const n=t.width||Qo(e),o=t.height||$o(e);return{width:n,height:o}}function _r(e,t={}){return _t(this,void 0,void 0,function*(){const{width:n,height:o}=An(e,t);return Promise.resolve(e).then(r=>vn(r,t,!0)).then(r=>Rr(r,t)).then(r=>Sn(r,t)).then(r=>Ar(r,t)).then(r=>Zo(r,n,o))})}const $=16384;function Lr(e){(e.width>$||e.height>$)&&(e.width>$&&e.height>$?e.width>e.height?(e.height*=$/e.width,e.width=$):(e.width*=$/e.height,e.height=$):e.width>$?(e.height*=$/e.width,e.width=$):(e.width*=$/e.height,e.height=$))}function kr(e,t={}){return _t(this,void 0,void 0,function*(){return _r(e,t).then(It).then(n=>{const o=document.createElement("canvas"),r=o.getContext("2d"),s=t.pixelRatio||Jo(),{width:a,height:l}=An(e,t),c=t.canvasWidth||a,d=t.canvasHeight||l;return o.width=c*s,o.height=d*s,t.skipAutoScale||Lr(o),o.style.width=`${c}`,o.style.height=`${d}`,t.backgroundColor&&(r.fillStyle=t.backgroundColor,r.fillRect(0,0,o.width,o.height)),r.drawImage(n,0,0,o.width,o.height),o})})}function Mr(e,t={}){return _t(this,void 0,void 0,function*(){return kr(e,t).then(n=>n.toDataURL())})}var En={exports:{}};/*!
* clipboard.js v2.0.10
* https://clipboardjs.com/
*
* Licensed MIT © Zeno Rocha
*/(function(e,t){(function(o,r){e.exports=r()})(hn,function(){return function(){var n={686:function(s,a,l){l.d(a,{default:function(){return qn}});var c=l(279),d=l.n(c),u=l(370),f=l.n(u),y=l(817),v=l.n(y);function p(M){try{return document.execCommand(M)}catch{return!1}}var h=function(I){var T=v()(I);return p("cut"),T},b=h;function w(M){var I=document.documentElement.getAttribute("dir")==="rtl",T=document.createElement("textarea");T.style.fontSize="12pt",T.style.border="0",T.style.padding="0",T.style.margin="0",T.style.position="absolute",T.style[I?"right":"left"]="-9999px";var x=window.pageYOffset||document.documentElement.scrollTop;return T.style.top="".concat(x,"px"),T.setAttribute("readonly",""),T.value=M,T}var R=function(I){var T=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body},x="";if(typeof I=="string"){var _=w(I);T.container.appendChild(_),x=v()(_),p("copy"),_.remove()}else x=v()(I),p("copy");return x},S=R;function E(M){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?E=function(T){return typeof T}:E=function(T){return T&&typeof Symbol=="function"&&T.constructor===Symbol&&T!==Symbol.prototype?"symbol":typeof T},E(M)}var B=function(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},T=I.action,x=T===void 0?"copy":T,_=I.container,N=I.target,ee=I.text;if(x!=="copy"&&x!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"');if(N!==void 0)if(N&&E(N)==="object"&&N.nodeType===1){if(x==="copy"&&N.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(x==="cut"&&(N.hasAttribute("readonly")||N.hasAttribute("disabled")))throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`)}else throw new Error('Invalid "target" value, use a valid Element');if(ee)return S(ee,{container:_});if(N)return x==="cut"?b(N):S(N,{container:_})},C=B;function g(M){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?g=function(T){return typeof T}:g=function(T){return T&&typeof Symbol=="function"&&T.constructor===Symbol&&T!==Symbol.prototype?"symbol":typeof T},g(M)}function k(M,I){if(!(M instanceof I))throw new TypeError("Cannot call a class as a function")}function H(M,I){for(var T=0;T0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof _.action=="function"?_.action:this.defaultAction,this.target=typeof _.target=="function"?_.target:this.defaultTarget,this.text=typeof _.text=="function"?_.text:this.defaultText,this.container=g(_.container)==="object"?_.container:document.body}},{key:"listenClick",value:function(_){var N=this;this.listener=f()(_,"click",function(ee){return N.onClick(ee)})}},{key:"onClick",value:function(_){var N=_.delegateTarget||_.currentTarget,ee=this.action(N)||"copy",Fe=C({action:ee,container:this.container,target:this.target(N),text:this.text(N)});this.emit(Fe?"success":"error",{action:ee,text:Fe,trigger:N,clearSelection:function(){N&&N.focus(),document.activeElement.blur(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(_){return $e("action",_)}},{key:"defaultTarget",value:function(_){var N=$e("target",_);if(N)return document.querySelector(N)}},{key:"defaultText",value:function(_){return $e("text",_)}},{key:"destroy",value:function(){this.listener.destroy()}}],[{key:"copy",value:function(_){var N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body};return S(_,N)}},{key:"cut",value:function(_){return b(_)}},{key:"isSupported",value:function(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["copy","cut"],N=typeof _=="string"?[_]:_,ee=!!document.queryCommandSupported;return N.forEach(function(Fe){ee=ee&&!!document.queryCommandSupported(Fe)}),ee}}]),T}(d()),qn=jn},828:function(s){var a=9;if(typeof Element!="undefined"&&!Element.prototype.matches){var l=Element.prototype;l.matches=l.matchesSelector||l.mozMatchesSelector||l.msMatchesSelector||l.oMatchesSelector||l.webkitMatchesSelector}function c(d,u){for(;d&&d.nodeType!==a;){if(typeof d.matches=="function"&&d.matches(u))return d;d=d.parentNode}}s.exports=c},438:function(s,a,l){var c=l(828);function d(y,v,p,h,b){var w=f.apply(this,arguments);return y.addEventListener(p,w,b),{destroy:function(){y.removeEventListener(p,w,b)}}}function u(y,v,p,h,b){return typeof y.addEventListener=="function"?d.apply(null,arguments):typeof p=="function"?d.bind(null,document).apply(null,arguments):(typeof y=="string"&&(y=document.querySelectorAll(y)),Array.prototype.map.call(y,function(w){return d(w,v,p,h,b)}))}function f(y,v,p,h){return function(b){b.delegateTarget=c(b.target,v),b.delegateTarget&&h.call(y,b)}}s.exports=u},879:function(s,a){a.node=function(l){return l!==void 0&&l instanceof HTMLElement&&l.nodeType===1},a.nodeList=function(l){var c=Object.prototype.toString.call(l);return l!==void 0&&(c==="[object NodeList]"||c==="[object HTMLCollection]")&&"length"in l&&(l.length===0||a.node(l[0]))},a.string=function(l){return typeof l=="string"||l instanceof String},a.fn=function(l){var c=Object.prototype.toString.call(l);return c==="[object Function]"}},370:function(s,a,l){var c=l(879),d=l(438);function u(p,h,b){if(!p&&!h&&!b)throw new Error("Missing required arguments");if(!c.string(h))throw new TypeError("Second argument must be a String");if(!c.fn(b))throw new TypeError("Third argument must be a Function");if(c.node(p))return f(p,h,b);if(c.nodeList(p))return y(p,h,b);if(c.string(p))return v(p,h,b);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function f(p,h,b){return p.addEventListener(h,b),{destroy:function(){p.removeEventListener(h,b)}}}function y(p,h,b){return Array.prototype.forEach.call(p,function(w){w.addEventListener(h,b)}),{destroy:function(){Array.prototype.forEach.call(p,function(w){w.removeEventListener(h,b)})}}}function v(p,h,b){return d(document.body,p,h,b)}s.exports=u},817:function(s){function a(l){var c;if(l.nodeName==="SELECT")l.focus(),c=l.value;else if(l.nodeName==="INPUT"||l.nodeName==="TEXTAREA"){var d=l.hasAttribute("readonly");d||l.setAttribute("readonly",""),l.select(),l.setSelectionRange(0,l.value.length),d||l.removeAttribute("readonly"),c=l.value}else{l.hasAttribute("contenteditable")&&l.focus();var u=window.getSelection(),f=document.createRange();f.selectNodeContents(l),u.removeAllRanges(),u.addRange(f),c=u.toString()}return c}s.exports=a},279:function(s){function a(){}a.prototype={on:function(l,c,d){var u=this.e||(this.e={});return(u[l]||(u[l]=[])).push({fn:c,ctx:d}),this},once:function(l,c,d){var u=this;function f(){u.off(l,f),c.apply(d,arguments)}return f._=c,this.on(l,f,d)},emit:function(l){var c=[].slice.call(arguments,1),d=((this.e||(this.e={}))[l]||[]).slice(),u=0,f=d.length;for(u;u[i(vt,null,{default:()=>[i(gn,{clearable:!0,placeholder:"\u7FA4\u804A\u540D\u79F0/\u8BFE\u7A0B\u540D\u79F0",modelValue:this.searchForm.search,onInput:t=>this.searchForm.search=t},null)]}),i(vt,null,{default:()=>[i(Z,{type:"primary",onClick:this.search},{default:()=>[A("\u641C\u7D22")]}),i(Z,{type:"danger",onClick:this.onReSet},{default:()=>[A("\u91CD\u7F6E")]})]})]}),this.tableList.length>0?i("div",{class:ce.tableWrap},[i(fo,{modelValue:this.checkList},jr(e=this.tableList.map(t=>i("div",{class:ce.cell,onClick:()=>this.resectCheck(t.id)},[i(ho,{class:ce.chioseBox,label:t.id,onChange:()=>this.resectCheck(t.id)},{default:()=>[i("br",null,null)]}),i("div",{class:ce.dotle},[t.type=="MUSIC"?"\u4E50\u56E2":"VIP"]),i("div",{class:ce.teamInfo},[i("p",{class:ce.title},[t.name]),i("p",{class:ce.subInfo},[t.memo,A("\uFF08\u5171"),t.memberNum,A("\u4EBA\uFF09")])])])))?e:{default:()=>[e]})]):i(mo,{description:"\u6682\u65E0\u7FA4\u804A"},null)])}});const Wr="_third_p1nol_1",zr="_preCore_p1nol_19",Kr="_title_p1nol_19",Yr="_second_p1nol_22",Gr="_first_p1nol_43",Qr="_icon_p1nol_61",$r="_teacher_p1nol_68",Jr="_start_p1nol_84",Xr="_time_p1nol_103",Zr="_content_p1nol_112",es="_pre_p1nol_19",ts="_end_p1nol_132",ns="_bottom_p1nol_139",os="_logo_p1nol_145",rs="_code_p1nol_149";var L={third:Wr,preCore:zr,title:Kr,second:Yr,first:Gr,icon:Qr,teacher:$r,start:Jr,time:Xr,content:Zr,pre:es,end:ts,bottom:ns,logo:os,code:rs},Me={},ss=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},Tn={},J={};let Lt;const is=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];J.getSymbolSize=function(t){if(!t)throw new Error('"version" cannot be null or undefined');if(t<1||t>40)throw new Error('"version" should be in range from 1 to 40');return t*4+17};J.getSymbolTotalCodewords=function(t){return is[t]};J.getBCHDigit=function(e){let t=0;for(;e!==0;)t++,e>>>=1;return t};J.setToSJISFunction=function(t){if(typeof t!="function")throw new Error('"toSJISFunc" is not a valid function.');Lt=t};J.isKanjiModeEnabled=function(){return typeof Lt!="undefined"};J.toSJIS=function(t){return Lt(t)};var We={};(function(e){e.L={bit:1},e.M={bit:0},e.Q={bit:3},e.H={bit:2};function t(n){if(typeof n!="string")throw new Error("Param is not a string");switch(n.toLowerCase()){case"l":case"low":return e.L;case"m":case"medium":return e.M;case"q":case"quartile":return e.Q;case"h":case"high":return e.H;default:throw new Error("Unknown EC Level: "+n)}}e.isValid=function(o){return o&&typeof o.bit!="undefined"&&o.bit>=0&&o.bit<4},e.from=function(o,r){if(e.isValid(o))return o;try{return t(o)}catch{return r}}})(We);function Bn(){this.buffer=[],this.length=0}Bn.prototype={get:function(e){const t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)===1},put:function(e,t){for(let n=0;n>>t-n-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(e){const t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}};var as=Bn;function xe(e){if(!e||e<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=e,this.data=new Uint8Array(e*e),this.reservedBit=new Uint8Array(e*e)}xe.prototype.set=function(e,t,n,o){const r=e*this.size+t;this.data[r]=n,o&&(this.reservedBit[r]=!0)};xe.prototype.get=function(e,t){return this.data[e*this.size+t]};xe.prototype.xor=function(e,t,n){this.data[e*this.size+t]^=n};xe.prototype.isReserved=function(e,t){return this.reservedBit[e*this.size+t]};var ls=xe,In={};(function(e){const t=J.getSymbolSize;e.getRowColCoords=function(o){if(o===1)return[];const r=Math.floor(o/7)+2,s=t(o),a=s===145?26:Math.ceil((s-13)/(2*r-2))*2,l=[s-7];for(let c=1;c=0&&r<=7},e.from=function(r){return e.isValid(r)?parseInt(r,10):void 0},e.getPenaltyN1=function(r){const s=r.size;let a=0,l=0,c=0,d=null,u=null;for(let f=0;f=5&&(a+=t.N1+(l-5)),d=v,l=1),v=r.get(y,f),v===u?c++:(c>=5&&(a+=t.N1+(c-5)),u=v,c=1)}l>=5&&(a+=t.N1+(l-5)),c>=5&&(a+=t.N1+(c-5))}return a},e.getPenaltyN2=function(r){const s=r.size;let a=0;for(let l=0;l=10&&(l===1488||l===93)&&a++,c=c<<1&2047|r.get(u,d),u>=10&&(c===1488||c===93)&&a++}return a*t.N3},e.getPenaltyN4=function(r){let s=0;const a=r.data.length;for(let c=0;c=0;){const a=s[0];for(let c=0;c0){const s=new Uint8Array(this.degree);return s.set(o,r),s}return o};var us=kt,Mn={},me={},Mt={};Mt.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40};var se={};const xn="[0-9]+",ds="[A-Z $%*+\\-./:]+";let Le="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";Le=Le.replace(/u/g,"\\u");const fs="(?:(?![A-Z0-9 $%*+\\-./:]|"+Le+`)(?:.|[\r
]))+`;se.KANJI=new RegExp(Le,"g");se.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");se.BYTE=new RegExp(fs,"g");se.NUMERIC=new RegExp(xn,"g");se.ALPHANUMERIC=new RegExp(ds,"g");const hs=new RegExp("^"+Le+"$"),ms=new RegExp("^"+xn+"$"),gs=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");se.testKanji=function(t){return hs.test(t)};se.testNumeric=function(t){return ms.test(t)};se.testAlphanumeric=function(t){return gs.test(t)};(function(e){const t=Mt,n=se;e.NUMERIC={id:"Numeric",bit:1<<0,ccBits:[10,12,14]},e.ALPHANUMERIC={id:"Alphanumeric",bit:1<<1,ccBits:[9,11,13]},e.BYTE={id:"Byte",bit:1<<2,ccBits:[8,16,16]},e.KANJI={id:"Kanji",bit:1<<3,ccBits:[8,10,12]},e.MIXED={bit:-1},e.getCharCountIndicator=function(s,a){if(!s.ccBits)throw new Error("Invalid mode: "+s);if(!t.isValid(a))throw new Error("Invalid version: "+a);return a>=1&&a<10?s.ccBits[0]:a<27?s.ccBits[1]:s.ccBits[2]},e.getBestModeForData=function(s){return n.testNumeric(s)?e.NUMERIC:n.testAlphanumeric(s)?e.ALPHANUMERIC:n.testKanji(s)?e.KANJI:e.BYTE},e.toString=function(s){if(s&&s.id)return s.id;throw new Error("Invalid mode")},e.isValid=function(s){return s&&s.bit&&s.ccBits};function o(r){if(typeof r!="string")throw new Error("Param is not a string");switch(r.toLowerCase()){case"numeric":return e.NUMERIC;case"alphanumeric":return e.ALPHANUMERIC;case"kanji":return e.KANJI;case"byte":return e.BYTE;default:throw new Error("Unknown mode: "+r)}}e.from=function(s,a){if(e.isValid(s))return s;try{return o(s)}catch{return a}}})(me);(function(e){const t=J,n=ze,o=We,r=me,s=Mt,a=1<<12|1<<11|1<<10|1<<9|1<<8|1<<5|1<<2|1<<0,l=t.getBCHDigit(a);function c(y,v,p){for(let h=1;h<=40;h++)if(v<=e.getCapacity(h,p,y))return h}function d(y,v){return r.getCharCountIndicator(y,v)+4}function u(y,v){let p=0;return y.forEach(function(h){p+=d(h.mode,v)+h.getBitsLength()}),p}function f(y,v){for(let p=1;p<=40;p++)if(u(y,p)<=e.getCapacity(p,v,r.MIXED))return p}e.from=function(v,p){return s.isValid(v)?parseInt(v,10):p},e.getCapacity=function(v,p,h){if(!s.isValid(v))throw new Error("Invalid QR Code version");typeof h=="undefined"&&(h=r.BYTE);const b=t.getSymbolTotalCodewords(v),w=n.getTotalCodewordsCount(v,p),R=(b-w)*8;if(h===r.MIXED)return R;const S=R-d(h,v);switch(h){case r.NUMERIC:return Math.floor(S/10*3);case r.ALPHANUMERIC:return Math.floor(S/11*2);case r.KANJI:return Math.floor(S/13);case r.BYTE:default:return Math.floor(S/8)}},e.getBestVersionForData=function(v,p){let h;const b=o.from(p,o.M);if(Array.isArray(v)){if(v.length>1)return f(v,b);if(v.length===0)return 1;h=v[0]}else h=v;return c(h.mode,h.getLength(),b)},e.getEncodedBits=function(v){if(!s.isValid(v)||v<7)throw new Error("Invalid QR Code version");let p=v<<12;for(;t.getBCHDigit(p)-l>=0;)p^=a<=0;)r^=Dn<0&&(o=this.data.substr(n),r=parseInt(o,10),t.put(r,s*3+1))};var vs=ye;const ws=me,nt=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function ve(e){this.mode=ws.ALPHANUMERIC,this.data=e}ve.getBitsLength=function(t){return 11*Math.floor(t/2)+6*(t%2)};ve.prototype.getLength=function(){return this.data.length};ve.prototype.getBitsLength=function(){return ve.getBitsLength(this.data.length)};ve.prototype.write=function(t){let n;for(n=0;n+2<=this.data.length;n+=2){let o=nt.indexOf(this.data[n])*45;o+=nt.indexOf(this.data[n+1]),t.put(o,11)}this.data.length%2&&t.put(nt.indexOf(this.data[n]),6)};var bs=ve,Cs=function(t){for(var n=[],o=t.length,r=0;r=55296&&s<=56319&&o>r+1){var a=t.charCodeAt(r+1);a>=56320&&a<=57343&&(s=(s-55296)*1024+a-56320+65536,r+=1)}if(s<128){n.push(s);continue}if(s<2048){n.push(s>>6|192),n.push(s&63|128);continue}if(s<55296||s>=57344&&s<65536){n.push(s>>12|224),n.push(s>>6&63|128),n.push(s&63|128);continue}if(s>=65536&&s<=1114111){n.push(s>>18|240),n.push(s>>12&63|128),n.push(s>>6&63|128),n.push(s&63|128);continue}n.push(239,191,189)}return new Uint8Array(n).buffer};const Ss=Cs,As=me;function we(e){this.mode=As.BYTE,this.data=new Uint8Array(Ss(e))}we.getBitsLength=function(t){return t*8};we.prototype.getLength=function(){return this.data.length};we.prototype.getBitsLength=function(){return we.getBitsLength(this.data.length)};we.prototype.write=function(e){for(let t=0,n=this.data.length;t=33088&&n<=40956)n-=33088;else if(n>=57408&&n<=60351)n-=49472;else throw new Error("Invalid SJIS character: "+this.data[t]+`
Make sure your charset is UTF-8`);n=(n>>>8&255)*192+(n&255),e.put(n,13)}};var Is=be,Nn={exports:{}};(function(e){var t={single_source_shortest_paths:function(n,o,r){var s={},a={};a[o]=0;var l=t.PriorityQueue.make();l.push(o,0);for(var c,d,u,f,y,v,p,h,b;!l.empty();){c=l.pop(),d=c.value,f=c.cost,y=n[d]||{};for(u in y)y.hasOwnProperty(u)&&(v=y[u],p=f+v,h=a[u],b=typeof a[u]=="undefined",(b||h>p)&&(a[u]=p,l.push(u,p),s[u]=d))}if(typeof r!="undefined"&&typeof a[r]=="undefined"){var w=["Could not find a path from ",o," to ",r,"."].join("");throw new Error(w)}return s},extract_shortest_path_from_predecessor_list:function(n,o){for(var r=[],s=o;s;)r.push(s),s=n[s];return r.reverse(),r},find_path:function(n,o,r){var s=t.single_source_shortest_paths(n,o,r);return t.extract_shortest_path_from_predecessor_list(s,r)},PriorityQueue:{make:function(n){var o=t.PriorityQueue,r={},s;n=n||{};for(s in o)o.hasOwnProperty(s)&&(r[s]=o[s]);return r.queue=[],r.sorter=n.sorter||o.default_sorter,r},default_sorter:function(n,o){return n.cost-o.cost},push:function(n,o){var r={value:n,cost:o};this.queue.push(r),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};e.exports=t})(Nn);(function(e){const t=me,n=vs,o=bs,r=Es,s=Is,a=se,l=J,c=Nn.exports;function d(w){return unescape(encodeURIComponent(w)).length}function u(w,R,S){const E=[];let B;for(;(B=w.exec(S))!==null;)E.push({data:B[0],index:B.index,mode:R,length:B[0].length});return E}function f(w){const R=u(a.NUMERIC,t.NUMERIC,w),S=u(a.ALPHANUMERIC,t.ALPHANUMERIC,w);let E,B;return l.isKanjiModeEnabled()?(E=u(a.BYTE,t.BYTE,w),B=u(a.KANJI,t.KANJI,w)):(E=u(a.BYTE_KANJI,t.BYTE,w),B=[]),R.concat(S,E,B).sort(function(g,k){return g.index-k.index}).map(function(g){return{data:g.data,mode:g.mode,length:g.length}})}function y(w,R){switch(R){case t.NUMERIC:return n.getBitsLength(w);case t.ALPHANUMERIC:return o.getBitsLength(w);case t.KANJI:return s.getBitsLength(w);case t.BYTE:return r.getBitsLength(w)}}function v(w){return w.reduce(function(R,S){const E=R.length-1>=0?R[R.length-1]:null;return E&&E.mode===S.mode?(R[R.length-1].data+=S.data,R):(R.push(S),R)},[])}function p(w){const R=[];for(let S=0;S=0&&l<=6&&(c===0||c===6)||c>=0&&c<=6&&(l===0||l===6)||l>=2&&l<=4&&c>=2&&c<=4?e.set(s+l,a+c,!0,!0):e.set(s+l,a+c,!1,!0))}}function Ps(e){const t=e.size;for(let n=8;n>l&1)===1,e.set(r,s,a,!0),e.set(s,r,a,!0)}function st(e,t,n){const o=e.size,r=xs.getEncodedBits(t,n);let s,a;for(s=0;s<15;s++)a=(r>>s&1)===1,s<6?e.set(s,8,a,!0):s<8?e.set(s+1,8,a,!0):e.set(o-15+s,8,a,!0),s<8?e.set(8,o-s-1,a,!0):s<9?e.set(8,15-s-1+1,a,!0):e.set(8,15-s-1,a,!0);e.set(o-8,8,1,!0)}function Hs(e,t){const n=e.size;let o=-1,r=n-1,s=7,a=0;for(let l=n-1;l>0;l-=2)for(l===6&&l--;;){for(let c=0;c<2;c++)if(!e.isReserved(r,l-c)){let d=!1;a>>s&1)===1),e.set(r,l-c,d),s--,s===-1&&(a++,s=7)}if(r+=o,r<0||n<=r){r-=o,o=-o;break}}}function Os(e,t,n){const o=new Rs;n.forEach(function(c){o.put(c.mode.bit,4),o.put(c.getLength(),Fs.getCharCountIndicator(c.mode,e)),c.write(o)});const r=Ye.getSymbolTotalCodewords(e),s=St.getTotalCodewordsCount(e,t),a=(r-s)*8;for(o.getLengthInBits()+4<=a&&o.put(0,4);o.getLengthInBits()%8!==0;)o.putBit(0);const l=(a-o.getLengthInBits())/8;for(let c=0;c=7&&Us(c,t),Hs(c,a),isNaN(o)&&(o=Ct.getBestMask(c,st.bind(null,c,n))),Ct.applyMask(o,c),st(c,n,o),{modules:c,version:t,errorCorrectionLevel:n,maskPattern:o,segments:r}}Tn.create=function(t,n){if(typeof t=="undefined"||t==="")throw new Error("No input text");let o=ot.M,r,s;return typeof n!="undefined"&&(o=ot.from(n.errorCorrectionLevel,ot.M),r=je.from(n.version),s=Ct.from(n.maskPattern),n.toSJISFunc&&Ye.setToSJISFunction(n.toSJISFunc)),js(t,r,o,s)};var Un={},xt={};(function(e){function t(n){if(typeof n=="number"&&(n=n.toString()),typeof n!="string")throw new Error("Color should be defined as hex string");let o=n.slice().replace("#","").split("");if(o.length<3||o.length===5||o.length>8)throw new Error("Invalid hex color: "+n);(o.length===3||o.length===4)&&(o=Array.prototype.concat.apply([],o.map(function(s){return[s,s]}))),o.length===6&&o.push("F","F");const r=parseInt(o.join(""),16);return{r:r>>24&255,g:r>>16&255,b:r>>8&255,a:r&255,hex:"#"+o.slice(0,6).join("")}}e.getOptions=function(o){o||(o={}),o.color||(o.color={});const r=typeof o.margin=="undefined"||o.margin===null||o.margin<0?4:o.margin,s=o.width&&o.width>=21?o.width:void 0,a=o.scale||4;return{width:s,scale:s?4:a,margin:r,color:{dark:t(o.color.dark||"#000000ff"),light:t(o.color.light||"#ffffffff")},type:o.type,rendererOpts:o.rendererOpts||{}}},e.getScale=function(o,r){return r.width&&r.width>=o+r.margin*2?r.width/(o+r.margin*2):r.scale},e.getImageWidth=function(o,r){const s=e.getScale(o,r);return Math.floor((o+r.margin*2)*s)},e.qrToImageData=function(o,r,s){const a=r.modules.size,l=r.modules.data,c=e.getScale(a,s),d=Math.floor((a+s.margin*2)*c),u=s.margin*c,f=[s.color.light,s.color.dark];for(let y=0;y=u&&v>=u&&y0&&c>0&&e[l-1]||(o+=s?it("M",c+n,.5+d+n):it("m",r,0),r=0,s=!1),c+1':"",d="',u='viewBox="0 0 '+l+" "+l+'"',f=r.width?'width="'+r.width+'" height="'+r.width+'" ':"",y='
`;return typeof o=="function"&&o(null,y),y};const zs=ss,At=Tn,On=Un,Ks=Hn;function Ft(e,t,n,o,r){const s=[].slice.call(arguments,1),a=s.length,l=typeof s[a-1]=="function";if(!l&&!zs())throw new Error("Callback required as last argument");if(l){if(a<2)throw new Error("Too few arguments provided");a===2?(r=n,n=t,t=o=void 0):a===3&&(t.getContext&&typeof r=="undefined"?(r=o,o=void 0):(r=o,o=n,n=t,t=void 0))}else{if(a<1)throw new Error("Too few arguments provided");return a===1?(n=t,t=o=void 0):a===2&&!t.getContext&&(o=n,n=t,t=void 0),new Promise(function(c,d){try{const u=At.create(n,o);c(e(u,t,o))}catch(u){d(u)}})}try{const c=At.create(n,o);r(null,e(c,t,o))}catch(c){r(c)}}Me.create=At.create;Me.toCanvas=Ft.bind(null,On.render);Me.toDataURL=Ft.bind(null,On.renderToDataURL);Me.toString=Ft.bind(null,function(e,t,n){return Ks.render(e,n)});var Ys=Me,Gs="./assets/icon1.ef6bbd86.png",Qs="./assets/icon2.e7f0fa2e.png",$s="./assets/icon3.0d23bbac.png",at="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACoAAAAmCAYAAACyAQkgAAAAAXNSR0IArs4c6QAAA7pJREFUWEftmF1oHFUUx8+5k2yhIVILUosSv0AtrYKiSO2DaB9E1EIfUpBiQaxLqybM3hkCfqBBq+JmzrkLiwuNWCOUolBEFFREqgiiVkQUg5FiaWkrwopIoiZNsvfILK2kde98RZ/ceVr2nvOf3/zvOXfuXAQACMOwr9Vq3RT/LnDNGmMOJ+UNDw8PeJ53RQFtUEodI6LjGCdXKpXrEPHbIkIAcJSZr0rK1Vo/AQB7iuiLyNPGmGe6oEvd6zqas5a6NRob1m2mTmXTbaZuM+V0oNtMLsP+F80EAE8x87P/xqZkkpk3/Ie7pxFjzFgbdHBw0BsYGLjQdTMReQgAnneMf87MG5NAy+Xyyv7+/pUJ+u8BgGs/vIuZ97ZB064wDLdaa990xH3AzHemaSSNB0Hwtojc2ylGRLYbYw5kBd1mrX2jkxAiHiSiweWAaq0/BIDNDtAtxph3MoEGQbBTRF52wDAzB8sBDYLgGxG53mHEbUT0SSbQlOXlQWbetxxQrfXPALCmk0ZPT88l1Wr1p6ygBwDgPsfU3JL2cZf0ECMjI5cuLi6ecMT8wswXxWNZQb8HgGs7iFml1AVR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return{detail:{roomTitle:"",liveStartTime:"",liveRemark:""}}},mounted(){let e=document.getElementById("canvas"),t=this.url;Ys.toCanvas(e,t,{width:79,margin:1},function(n){n&&console.error(n),console.log("QRCode success!")})},methods:{copyText(){},shareImage(){}},render(){return i("div",{id:"preview"},[this.form.preTemplate==="1"?i("div",{class:L.first},[i("h2",null,[this.form.roomTitle]),i("p",{class:L.teacher},[A(" \u4E3B\u8BB2\u4EBA\uFF1A"),this.form.speakerName]),i("img",{src:Gs,class:L.icon,alt:""},null),i("div",{class:L.preCore},[i("img",{src:ut,class:L.start,alt:""},null),i("p",{class:L.title},[A("\u5F00\u64AD\u65F6\u95F4")]),i("p",{class:L.time},[this.form.liveStartTime]),i("p",{class:L.title},[A("\u76F4\u64AD\u5185\u5BB9")]),i("div",{class:L.content},[i("img",{class:L.pre,src:lt,alt:""},null),i("img",{class:L.end,src:at,alt:""},null),this.form.liveRemark])]),i("div",{class:L.bottom},[i("img",{class:L.logo,src:ct,alt:""},null),i("div",{class:L.code},[i("div",null,[i("canvas",{id:"canvas",height:"80",width:"80",style:"width: 80px; margin:0"},null)])])])]):null,this.form.preTemplate==="2"?i("div",{class:L.second},[i("h2",null,[this.form.roomTitle]),i("p",{class:L.teacher},[A("\u4E3B\u8BB2\u4EBA\uFF1A"),this.form.speakerName]),i("img",{src:$s,class:L.icon,alt:""},null),i("div",{class:L.preCore},[i("img",{src:ut,class:L.start,alt:""},null),i("p",{class:L.title},[A("\u5F00\u64AD\u65F6\u95F4")]),i("p",{class:L.time},[this.form.liveStartTime]),i("p",{class:L.title},[A("\u76F4\u64AD\u5185\u5BB9")]),i("div",{class:L.content},[i("img",{class:L.pre,src:lt,alt:""},null),i("img",{class:L.end,src:at,alt:""},null),this.form.liveRemark])]),i("div",{class:L.bottom},[i("img",{class:L.logo,src:ct,alt:""},null),i("div",{class:L.code},[i("div",null,[i("canvas",{id:"canvas",height:"80",width:"80",style:"width: 80px; margin:0"},null)])])])]):null,this.form.preTemplate==="3"?i("div",{class:L.third},[i("h2",null,[this.form.roomTitle]),i("p",{class:L.teacher},[A("\u4E3B\u8BB2\u4EBA\uFF1A"),this.form.speakerName]),i("img",{src:Qs,class:L.icon,alt:""},null),i("div",{class:L.preCore},[i("img",{src:ut,class:L.start,alt:""},null),i("p",{class:L.title},[A("\u5F00\u64AD\u65F6\u95F4")]),i("p",{class:L.time},[this.form.liveStartTime]),i("p",{class:L.title},[A("\u76F4\u64AD\u5185\u5BB9")]),i("div",{class:L.content},[i("img",{class:L.pre,src:lt,alt:""},null),i("img",{class:L.end,src:at,alt:""},null),this.form.liveRemark])]),i("div",{class:L.bottom},[i("img",{class:L.logo,src:ct,alt:""},null),i("div",{class:L.code},[i("div",null,[i("canvas",{id:"canvas",height:"80",width:"80",style:"width: 80px; margin:0"},null)])])])]):null])}});const en=Tt(null);Tt(null);var Xs=Y({name:"LiveBroadcastShare",props:{onClose:{type:Function,default:()=>{}}},data(){return{form:{shareType:"1"},detail:{roomTitle:"",liveStartTime:"",liveRemark:"",roomUid:"",speakerName:""},url:""}},async mounted(){this.detail=Q({},P.user),this.url=qo()+`/#/liveClassTransfer?roomUid=${this.detail.roomUid}`},methods:{copyText(){let e=`\u4E50\u56E2\u8001\u5E08\u9080\u8BF7\u60A8\u53C2\u4E0E\u76F4\u64AD\u8BFE\uFF01
${this.detail.roomTitle||""}
\u4E3B\u8BB2\u4EBA\uFF1A${this.detail.speakerName}
\u76F4\u64AD\u65F6\u95F4\uFF1A${this.detail.liveStartTime||""}
\u76F4\u64AD\u5185\u5BB9\uFF1A${this.detail.liveRemark||""}
\u76F4\u64AD\u5730\u5740\uFF1A${this.url}
`;if(e){const n=document.createElement("button");var t=new xr(n,{text:function(){return e}});t.on("success",()=>{de.success("\u590D\u5236\u6210\u529F"),this.onClose(),t.destroy()}),t.on("error",()=>{console.log("\u8BE5\u6D4F\u89C8\u5668\u4E0D\u652F\u6301\u81EA\u52A8\u590D\u5236"),t.destroy()}),n.click()}},shareImage(){var e=document.getElementById("preview");e&&Mr(e).then(t=>{var n=new Image;n.src=t;let o=document.createElement("a"),r=this.detail.roomTitle||"\u5206\u4EAB\u56FE\u7247\u6587\u4EF6.png";o.href=t,o.setAttribute("download",r),document.body.appendChild(o),o.click(),this.onClose()}).catch(function(t){console.error("oops, something went wrong!",t)})},async shareChat(){var t;let e=((t=en.value)==null?void 0:t.checkList)||[];if(!(e.length>0)){de.error("\u8BF7\u81F3\u5C11\u9009\u62E9\u4E00\u4E2A\u7FA4\u804A");return}try{let n={groupIds:e.join(","),roomUid:this.detail.roomUid};const o=await oe.get("/api-web/imLiveBroadcastRoom/shareGroup",{params:Q({},n)});de.success("\u5206\u4EAB\u6210\u529F"),this.onClose()}catch(n){console.log(n)}},changeRafdio(e){this.form.shareType=e}},render(){return i("div",null,[i(mn,{model:this.form,ref:"form",class:ie.form},{default:()=>[i(vt,{label:"\u5206\u4EAB\u65B9\u5F0F"},{default:()=>[i(Je,{modelValue:this.form.shareType,onChange:()=>{this.changeRafdio("1")},label:"1"},{default:()=>[A("\u94FE\u63A5\u5206\u4EAB")]}),i(Je,{modelValue:this.form.shareType,onChange:()=>{this.changeRafdio("2")},label:"2"},{default:()=>[A("\u4E8C\u7EF4\u7801\u5206\u4EAB")]}),i(Je,{modelValue:this.form.shareType,onChange:()=>{this.changeRafdio("3")},label:"3"},{default:()=>[A("\u7FA4\u804A\u5206\u4EAB")]})]})]}),i("div",null,[this.form.shareType==="1"?i("div",{class:"linkWrap"},[i("div",{class:ie.shareWrap},[i("h2",null,[A("\u4E50\u56E2\u8001\u5E08\u9080\u8BF7\u60A8\u53C2\u4E0E\u76F4\u64AD\u8BFE\uFF01")]),i("h4",null,[this.detail.roomTitle]),i("p",null,[A("\u4E3B\u8BB2\u4EBA\uFF1A"),this.detail.speakerName]),i("p",null,[A("\u5F00\u64AD\u65F6\u95F4\uFF1A"),this.detail.liveStartTime]),i("p",null,[A("\u76F4\u64AD\u5185\u5BB9\uFF1A"),this.detail.liveRemark]),i("p",null,[A("\u76F4\u64AD\u5730\u5740\uFF1A"),this.url])]),i("div",{class:[ie.shareBtn,"shareText"],onClick:this.copyText,ref:"shareText","data-clipboard-action":"copy"},[A("\u590D\u5236\u5206\u4EAB\u5185\u5BB9")])]):null]),this.form.shareType==="2"?i("div",{class:ie.codeWrap},[i("div",{class:ie.shareWrap},[i(Js,{form:this.detail,url:this.url},null)]),i("div",{class:ie.shareBtn,onClick:this.shareImage},[A("\u4E0B\u8F7D\u56FE\u7247")])]):null,this.form.shareType=="3"?i("div",{class:ie.shareWrap},[i("div",{class:ie.groupWrap},[i(qr,{ref:en},null)]),i("div",{class:ie.shareBtn,onClick:this.shareChat},[A("\u53D1\u9001\u5206\u4EAB\u4FE1\u606F")])]):null])}});const Zs=async e=>{if(!navigator)throw new Error("\u6D4F\u89C8\u5668\u7248\u672C\u8FC7\u4F4E\uFF0C\u65E0\u6CD5\u5F00\u59CB\u76F4\u64AD");return navigator.mediaDevices.getUserMedia(e)};function tn(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!pn(e)}const z=Bt({volume:0,barStatus:{camera:!1,volume:!1,microphone:!1,microphone2:!1,screen:!1,share:!1},shareVisiable:!1,binded:!1});var ei=Y({name:"LiveBroadcast-ActionBar",computed:{isCameraDisabled(){return z.barStatus.camera&&m.deviceStatus.camera!=="denied"&&m.cameras.length},isMicrophoneDisabled(){return z.barStatus.microphone&&m.deviceStatus.microphone!=="denied"&&m.microphones.length},isMicrophone2Disabled(){return console.log(m.selectedMicrophone2),z.barStatus.microphone2&&m.deviceStatus.microphone!=="denied"&&m.microphones.length||!m.selectedMicrophone2},isVolumeDisabled(){return z.volume===0}},mounted(){Ut.on("microphoneChange",this.listenMicophoneAudioTrack)},beforeUnmount(){Ut.off("microphoneChange",this.listenMicophoneAudioTrack)},methods:{setIconPath(e,t){var o;const n=(o=this.$refs[e])==null?void 0:o.querySelector("#microphone-content-svg");if(n){const r=14-11*(t/100);n.setAttribute("d",`M7,${r} L14,${r} L14,10.5 C14,12.4329966 12.4329966,14 10.5,14 C8.56700338,14 7,12.4329966 7,10.5 L7,${r} L7,${r} Z`)}},async listenMicophoneAudioTrack(){var t;let e;if(m.selectedMicrophone&&!this.isMicrophoneDisabled){const n=await Zs({audio:{deviceId:(t=m.selectedMicrophone)==null?void 0:t.deviceId},video:!1});e=$n(n,(o,r)=>{this.setIconPath("microphoneicon",o)})}else e&&(e==null?void 0:e.onaudioprocess)},startShare(){console.log("\u8C03\u7528"),z.shareVisiable=!0},volumeChange(e){z.volume=e,un(e)},async toggleCamera(){Jn("camera"),!m.screenShareStatus&&(z.barStatus.camera=!z.barStatus.camera)},async toggleMicrophone(){const e=m.videoStatus==="liveing";z.barStatus.microphone=!z.barStatus.microphone,z.barStatus.microphone?fe("microphone",e):Ht("microphone",e),this.listenMicophoneAudioTrack()},async toggleMicrophone2(){const e=m.videoStatus==="liveing";console.log("toggleMicrophone2",z.barStatus.microphone2),z.barStatus.microphone2=!z.barStatus.microphone2,z.barStatus.microphone2?fe("microphone",e):Ht("microphone",e),this.listenMicophoneAudioTrack()}},render(){return i("div",{class:X["action-bar"],id:"action-bar"},[i("div",{style:{display:"flex"}},[i("div",{class:X["bar-btn"]},[i("div",{class:X.btnInner},[i(Ee,{onClick:this.toggleCamera,name:this.isCameraDisabled?"bar-camera-disabled":"bar-camera",style:{width:"22px",cursor:"pointer"}},null),m.cameras.length===0?null:i(gt,{placement:"top",disabled:m.cameras.length===0,onCommand:dn},{default:()=>[i("div",{class:X["bar-btn"],style:{height:"32px"}},[i(Ee,{name:"bar-arrow-down",style:{width:"18px"}},null)])],dropdown:()=>{let e;return i(pt,null,tn(e=m.cameras.map(t=>i(yt,{disabled:t===m.selectedCamera,command:t},{default:()=>[t.label]})))?e:{default:()=>[e]})}})]),i("span",{class:X["bar-btn-text"]},[A("\u6444\u50CF\u5934")])]),i("div",{class:X["bar-btn"]},[i("div",{class:X.btnInner},[this.isMicrophoneDisabled?i(Ee,{name:"bar-mike-disabled",onClick:this.toggleMicrophone,style:{width:"22px",height:"22px",cursor:"pointer"}},null):i("span",{ref:"microphoneicon",innerHTML:No,onClick:this.toggleMicrophone,style:{width:"22px",height:"22px",cursor:"pointer"}},null),m.microphones.length===0?null:i(gt,{placement:"top-start",disabled:m.microphones.length===0,"popper-options":{boundariesElement:"#action-bar",gpuAcceleration:!1},"visible-change":e=>{console.log(e)},onCommand:fn},{default:()=>[i("div",{class:X["bar-btn"],style:{height:"32px"}},[i(Ee,{name:"bar-arrow-down",style:{width:"18px"}},null)])],dropdown:()=>{let e;return i(pt,null,tn(e=m.microphones.map((t,n)=>i(yt,{disabled:t===m.selectedMicrophone||t===m.selectedMicrophone2,command:t},{default:()=>[" "+t.label]})))?e:{default:()=>[e]})}})]),i("span",{class:X["bar-btn-text"]},[A("\u9EA6\u514B\u98CE")])])]),i("div",{style:{display:"flex"},onClick:this.startShare},[i("div",{class:X["bar-btn"]},[i("div",{class:X.btnInner},[i(Ee,{name:"bar-share",style:{width:"22px",cursor:"pointer"}},null)]),i("span",{class:X["bar-btn-text"]},[A("\u5206\u4EAB")])])]),i(go,{width:"510px","destroy-on-close":!0,"append-to-body":!0,modelValue:z.shareVisiable,title:"\u5206\u4EAB","before-close":()=>{z.shareVisiable=!1}},{default:()=>[i(Xs,{onClose:()=>z.shareVisiable=!1},null)]})])}});const ti="_container_19awp_1",ni="_title_19awp_21",oi="_tips_19awp_25";var K={container:ti,title:ni,tips:oi},ri=Y({name:"VideoStatus",render(){return i("div",{class:K.container},[m.deviceStatus.camera==="denied"?i("div",{class:K.denied},[i(re("SvgIcon"),{name:"camera-status",class:K.icon},null),i("p",{class:K.title},[A("\u6444\u50CF\u5934\u88AB\u7981\u7528")]),i("p",{class:K.tips},[A("\u8BF7\u6388\u6743\u5141\u8BB8\u8BBF\u95EE\u6444\u50CF\u5934")])]):null,m.deviceStatus.camera==="init"?i("div",{class:K.init},[i(re("SvgIcon"),{name:"camera-status",class:K.icon},null),i("p",{class:K.title},[A("\u8BF7\u5B8C\u6210\u6444\u50CF\u5934\u6388\u6743")]),i("p",{class:K.tips},[A("\u8BF7\u6388\u6743\u5141\u8BB8\u8BBF\u95EE\u6444\u50CF\u5934")])]):null,m.deviceStatus.camera==="closed"?i("div",{class:K.closed},[i(re("SvgIcon"),{name:"camera-status",class:K.icon},null),i("p",{class:K.title},[A("\u6444\u50CF\u5934\u5DF2\u5173\u95ED")]),i("p",{class:K.tips},[A("\u60A8\u5DF2\u5173\u95ED\u6444\u50CF\u5934")])]):null,m.deviceStatus.camera==="none"?i("div",{class:K.none},[i(re("SvgIcon"),{name:"camera-status",class:K.icon},null),i("p",{class:K.title},[A("\u6682\u65E0\u6444\u50CF\u5934")]),i("p",{class:K.tips},[A("\u8BE5\u8BBE\u5907\u65E0\u6444\u50CF\u5934")])]):null])}}),Vn={exports:{}};(function(e,t){(function(n,o){e.exports=o()})(hn,function(){var n,o,r=1e3,s=6e4,a=36e5,l=864e5,c=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,d=31536e6,u=2592e6,f=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,y={years:d,months:u,days:l,hours:a,minutes:s,seconds:r,milliseconds:1,weeks:6048e5},v=function(B){return B instanceof E},p=function(B,C,g){return new E(B,g,C.$l)},h=function(B){return o.p(B)+"s"},b=function(B){return B<0},w=function(B){return b(B)?Math.ceil(B):Math.floor(B)},R=function(B){return Math.abs(B)},S=function(B,C){return B?b(B)?{negative:!0,format:""+R(B)+C}:{negative:!1,format:""+B+C}:{negative:!1,format:""}},E=function(){function B(g,k,H){var D=this;if(this.$d={},this.$l=H,g===void 0&&(this.$ms=0,this.parseFromMilliseconds()),k)return p(g*y[h(k)],this);if(typeof g=="number")return this.$ms=g,this.parseFromMilliseconds(),this;if(typeof g=="object")return Object.keys(g).forEach(function(W){D.$d[h(W)]=g[W]}),this.calMilliseconds(),this;if(typeof g=="string"){var j=g.match(f);if(j){var q=j.slice(2).map(function(W){return W!=null?Number(W):0});return this.$d.years=q[0],this.$d.months=q[1],this.$d.weeks=q[2],this.$d.days=q[3],this.$d.hours=q[4],this.$d.minutes=q[5],this.$d.seconds=q[6],this.calMilliseconds(),this}}return this}var C=B.prototype;return C.calMilliseconds=function(){var g=this;this.$ms=Object.keys(this.$d).reduce(function(k,H){return k+(g.$d[H]||0)*y[H]},0)},C.parseFromMilliseconds=function(){var g=this.$ms;this.$d.years=w(g/d),g%=d,this.$d.months=w(g/u),g%=u,this.$d.days=w(g/l),g%=l,this.$d.hours=w(g/a),g%=a,this.$d.minutes=w(g/s),g%=s,this.$d.seconds=w(g/r),g%=r,this.$d.milliseconds=g},C.toISOString=function(){var g=S(this.$d.years,"Y"),k=S(this.$d.months,"M"),H=+this.$d.days||0;this.$d.weeks&&(H+=7*this.$d.weeks);var D=S(H,"D"),j=S(this.$d.hours,"H"),q=S(this.$d.minutes,"M"),W=this.$d.seconds||0;this.$d.milliseconds&&(W+=this.$d.milliseconds/1e3);var Se=S(W,"S"),Ge=g.negative||k.negative||D.negative||j.negative||q.negative||Se.negative,Qe=j.format||q.format||Se.format?"T":"",ae=(Ge?"-":"")+"P"+g.format+k.format+D.format+Qe+j.format+q.format+Se.format;return ae==="P"||ae==="-P"?"P0D":ae},C.toJSON=function(){return this.toISOString()},C.format=function(g){var k=g||"YYYY-MM-DDTHH:mm:ss",H={Y:this.$d.years,YY:o.s(this.$d.years,2,"0"),YYYY:o.s(this.$d.years,4,"0"),M:this.$d.months,MM:o.s(this.$d.months,2,"0"),D:this.$d.days,DD:o.s(this.$d.days,2,"0"),H:this.$d.hours,HH:o.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:o.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:o.s(this.$d.seconds,2,"0"),SSS:o.s(this.$d.milliseconds,3,"0")};return k.replace(c,function(D,j){return j||String(H[D])})},C.as=function(g){return this.$ms/y[h(g)]},C.get=function(g){var k=this.$ms,H=h(g);return H==="milliseconds"?k%=1e3:k=H==="weeks"?w(k/y[H]):this.$d[H],k===0?0:k},C.add=function(g,k,H){var D;return D=k?g*y[h(k)]:v(g)?g.$ms:p(g,this).$ms,p(this.$ms+D*(H?-1:1),this)},C.subtract=function(g,k){return this.add(g,k,!0)},C.locale=function(g){var k=this.clone();return k.$l=g,k},C.clone=function(){return p(this.$ms,this)},C.humanize=function(g){return n().add(this.$ms,"ms").locale(this.$l).fromNow(!g)},C.milliseconds=function(){return this.get("milliseconds")},C.asMilliseconds=function(){return this.as("milliseconds")},C.seconds=function(){return this.get("seconds")},C.asSeconds=function(){return this.as("seconds")},C.minutes=function(){return this.get("minutes")},C.asMinutes=function(){return this.as("minutes")},C.hours=function(){return this.get("hours")},C.asHours=function(){return this.as("hours")},C.days=function(){return this.get("days")},C.asDays=function(){return this.as("days")},C.weeks=function(){return this.get("weeks")},C.asWeeks=function(){return this.as("weeks")},C.months=function(){return this.get("months")},C.asMonths=function(){return this.as("months")},C.years=function(){return this.get("years")},C.asYears=function(){return this.as("years")},B}();return function(B,C,g){n=g,o=g().$utils(),g.duration=function(D,j){var q=g.locale();return p(D,{$l:q},j)},g.isDuration=v;var k=C.prototype.add,H=C.prototype.subtract;C.prototype.add=function(D,j){return v(D)&&(D=D.asMilliseconds()),k.bind(this)(D,j)},C.prototype.subtract=function(D,j){return v(D)&&(D=D.asMilliseconds()),H.bind(this)(D,j)}}})})(Vn);var si=Vn.exports;const ii="_time_1c1wd_1",ai="_status_1c1wd_14",li="_text_1c1wd_27";var dt={time:ii,status:ai,text:li};ne.extend(si);var ci=Y({setup(){const e=Bt({duration:""}),t=sessionStorage.getItem(Xn),n=Number(t);let o=null;return po(()=>{o=setInterval(()=>{const r=ne().valueOf();n&&r-n&&(e.duration=ne.duration(r-n).format("HH:mm:ss"))})}),yo(()=>{o&&clearInterval(o)}),()=>m.videoStatus==="liveing"&&n?i("div",{class:dt.time},[i("div",{class:dt.status},[i("div",{class:"line-scale-pulse-out"},[i("div",null,null),i("div",null,null),i("div",null,null)]),i("span",null,[A("\u76F4\u64AD\u4E2D")])]),i("span",{class:dt.text},[e.duration])]):null}});const ge=Bt({messageList:[],joinList:{},joinTips:!1,lookList:{}});var F=ge;const pe=e=>{ge.messageList.push(e)},Be=(e,t)=>{ge.joinTips=!0,ge.joinList[e]=t},Ne=e=>{delete ge.joinList[e]},Ie=(e,t)=>{ge.lookList[e]=t},ui=e=>{delete ge.lookList[e]},di="_main_dv466_1",fi="_video_dv466_14",hi="_headerSection_dv466_25",mi="_headerContent_dv466_32";var Te={main:di,video:fi,headerSection:hi,headerContent:mi,"header-top":"_header-top_dv466_36","header-up":"_header-up_dv466_1","header-down":"_header-down_dv466_1"};const nn=Tt(null);let on,ft;var gi=Y({name:"LiveBroadcast",data(){return{headerStatus:!1,initAudioUsers:[]}},computed:{isLive(){return console.log(m.videoStatus),m.videoStatus==="liveing"?setTimeout(()=>{this.headerStatus=!0},3e3):this.headerStatus=!1,m.videoStatus==="liveing"}},async mounted(){this.initializeRoom(),Zn(),O.on(V["RC:Chatroom:Like"],this.onLikeMessage),window.onbeforeunload=this.beforeunload,window.addEventListener("offline",async()=>{if(!navigator.onLine)try{await Re.confirm("\u8BF7\u68C0\u67E5\u7F51\u7EDC\u8BBE\u7F6E\uFF0C\u8BF7\u68C0\u67E5\u7F51\u7EDC","\u7F51\u7EDC\u65AD\u5F00",{confirmButtonText:"\u5237\u65B0"}),location.reload()}catch{}})},beforeUnmount(){O.off(V["RC:Chatroom:Like"],this.onLikeMessage),window.onbeforeunload=null},methods:{visibilitychange(e){var t;console.log(e),e.type==="focus"&&(document.exitPictureInPicture(),document.body.click()),e.type==="blur"&&((t=m.videoRef)==null||t.requestPictureInPicture())},beforeunload(){if(m.videoStatus==="liveing")return"\u5F53\u524D\u6B63\u5728\u76F4\u64AD\u4E2D\u662F\u5426\u786E\u8BA4\u5173\u95ED\u9875\u9762\uFF1F"},onLikeMessage(e){m.likeCount+=e.counts||0},getDeviceByDeviceType(e){const t=localStorage.getItem(eo),n=localStorage.getItem(to),o=localStorage.getItem(no);return e==="camera"?t?m.cameras.find(r=>r.deviceId===t)||m.cameras[0]:m.cameras[0]:n?m.microphones.find(r=>r.deviceId===n)||m.microphones[0]:o?m.microphones.find(r=>r.deviceId===o)||m.microphones[0]:m.microphones[0]},async FetchUserDetails(e){try{return(await oe.post("/api-web/imLiveBroadcastRoom/queryBaseUserInfo",{requestType:"json",data:e})).data}catch{}return[]},async initializeRoom(){var t,n,o,r,s,a,l,c;if(!P.user)throw Error("\u8BF7\u5148\u767B\u5F55");let e=[];try{m.likeCount=((t=P.user)==null?void 0:t.likeNum)||0,m.lookCount=((n=P.user)==null?void 0:n.lookNum)||0;const d=sessionStorage.getItem(oo)==="liveing";await ro((o=P.user)==null?void 0:o.imToken),m.videoRef=nn.value,await so(),await io(),dn(this.getDeviceByDeviceType("camera")),fn(this.getDeviceByDeviceType("microphone")),ft=await Ot("camera"),m.videoRef&&ft.play(m.videoRef),on=await Ot("microphone"),m.videoStatus="stream";const u=this,f=await ao((r=P.user)==null?void 0:r.roomUid,lo.VIDEO,{onMessageReceive(h,b){console.log(h,b)},onKickOff(h){h||Re.alert("\u60A8\u7684\u63A8\u6D41\u505C\u6B62\uFF0C\u8BF7\u70B9\u51FB\u786E\u5B9A\u5237\u65B0\u9875\u9762\u91CD\u65B0\u5F00\u542F\u76F4\u64AD","\u63D0\u793A",{callback:()=>{m.videoStatus="stream",location.reload()}}),console.log("onKickOff",h)},async onTrackPublish(h){var w;const b=await((w=f==null?void 0:f.room)==null?void 0:w.subscribe(h));console.log(b,"subscribeRes"),(b==null?void 0:b.code)&&b.code!==Vt.SUCCESS&&console.log("\u8D44\u6E90\u8BA2\u9605\u5931\u8D25 ->",b.code)},onTrackUnpublish(h){O.emit(V["RM:RTC:TrackUnpublish"],h)},onSwitchRole(h,b){O.emit(V["RM:RTC:SwitchRole"],{userId:h,role:b})},async onTrackReady(h){if(h.isAudioTrack()){h.play();const b=h.getUserId(),w=F.joinList[b];if(console.log(w,"joinUser"),!w){console.log(F.lookList,"runtimeModel.lookList");const S=F.lookList[b],E=S||await u.FetchUserDetails([b]);console.log(E,"list")}const R=e.find(S=>S.userId==Number(b));R&&(F.joinList[b]=Ae(Q({},R),{id:b,name:R.userName,userRoomType:4}),e=e.filter(S=>S.userId!=Number(b)))}},onUserJoin(h){console.log("onUserJoin",h)},onUserLeave(h){O.emit(V["RM:RTC:UserLeave"],h),console.log("onUserLeave",h)}}),y=(s=f==null?void 0:f.room)==null?void 0:s.getRemoteUserIds();if(y&&y.length){const h=await this.FetchUserDetails(y);e.push(...h)}const v=(a=f==null?void 0:f.room)==null?void 0:a.getRemoteTracks();v&&v.length&&await((l=f==null?void 0:f.room)==null?void 0:l.subscribe(v)),f.room&&f.code===Vt.SUCCESS&&(m.joinedRoom=f.room,f.room.registerReportListener({onStateReport(h){O.emit("onStateReport",h)}})),d?(await cn(!1),m.videoStatus="liveing"):(await jt([ft],"camera",!1),await jt([on],"microphone",!1));const p=localStorage.getItem(co);p&&(z.volume=parseInt(p),un(parseInt(p))),await te({count:((c=P.user)==null?void 0:c.lookNum)||0},"MemberCount")}catch(d){m.videoStatus="error",console.log(d)}},closeLive(){m.videoStatus="stream"}},render(){return i("div",{class:Te.main},[(this.isLive,null),i("div",{class:[Te.headerSection]},[i(Po,{class:[Te.headerContent,this.headerStatus?Te["header-top"]:null]},null)]),i("div",{class:Te.video},[i("video",{ref:nn},null),m.screenShareStatus?null:i(ri,null,null),m.videoStatus==="liveing"?i(ci,null,null):null]),i(ei,null,null)])}});const pi="_container_1cod9_1",yi="_dataCount_1cod9_6",vi="_num_1cod9_17",wi="_text_1cod9_22",bi="_dataIcon_1cod9_26",Ci="_tabContainer_1cod9_31",Si="_tabIcon_1cod9_31",Ai="_point_1cod9_36",Ei="_tabContent_1cod9_67",Ti="_tabList_1cod9_73";var G={container:pi,dataCount:yi,num:vi,text:wi,dataIcon:bi,tabContainer:Ci,tabIcon:Si,point:Ai,tabContent:Ei,tabList:Ti};const Bi="_message_4zab7_1",Ii="_buttonGroup_4zab7_1";var rn={message:Bi,buttonGroup:Ii},Ri=Y({name:"message",data(){return{options:"ALL"}},mounted(){var t,n;const e=((t=P.user)==null?void 0:t.roomConfig)?JSON.parse((n=P.user)==null?void 0:n.roomConfig):{};m.allowChatCtrl=e.whether_chat===0,m.allowSeatsCtrl=e.whether_mic===0},methods:{async SeatsCtrl(){try{const e=P.user,t=(e==null?void 0:e.roomConfig)?JSON.parse(e==null?void 0:e.roomConfig):{};await oe.post("/api-web/imLiveBroadcastRoom/update",{requestType:"json",data:{id:e.id,liveRemark:e.liveRemark,liveStartTime:e.liveStartTime,preTemplate:e.preTemplate,popularizeType:e.popularizeType,roomConfig:{whether_chat:t.whether_chat,whether_like:t.whether_like,whether_mic:m.allowSeatsCtrl?1:0,whether_video:t.whether_video},roomTitle:e.roomTitle,speakerId:e.speakerId,tenantId:e.tenantId}}),P.user.roomConfig=JSON.stringify({whether_chat:t.whether_chat,whether_like:t.whether_like,whether_mic:m.allowSeatsCtrl?1:0,whether_video:t.whether_video}),await te(Q({seatBan:m.allowSeatsCtrl},mt()),"SeatsCtrl"),m.allowSeatsCtrl=!m.allowSeatsCtrl}catch{}},async ChatBan(){try{const e=P.user,t=(e==null?void 0:e.roomConfig)?JSON.parse(e==null?void 0:e.roomConfig):{};await oe.post("/api-web/imLiveBroadcastRoom/update",{requestType:"json",data:{id:e.id,liveRemark:e.liveRemark,liveStartTime:e.liveStartTime,preTemplate:e.preTemplate,popularizeType:e.popularizeType,roomConfig:{whether_chat:m.allowChatCtrl?1:0,whether_like:t.whether_like,whether_video:t.whether_video,whether_mic:t.whether_mic},roomTitle:e.roomTitle,speakerId:e.speakerId,tenantId:e.tenantId}}),P.user.roomConfig=JSON.stringify({whether_chat:m.allowChatCtrl?1:0,whether_like:t.whether_like,whether_video:t.whether_video,whether_mic:t.whether_mic}),await te(Q({chatBan:m.allowChatCtrl},mt()),"ChatBan"),m.allowChatCtrl=!m.allowChatCtrl}catch{}}},render(){return i("div",{class:rn.message},[i("div",{class:rn.buttonGroup},[i(Z,{type:m.allowChatCtrl?"info":"primary",onClick:this.ChatBan},{default:()=>[m.allowChatCtrl?"\u5173\u95ED\u804A\u5929":"\u5F00\u542F\u804A\u5929"]}),i(Z,{type:m.allowSeatsCtrl?"info":"primary",onClick:this.SeatsCtrl},{default:()=>[m.allowSeatsCtrl?"\u5173\u95ED\u8FDE\u9EA6":"\u5F00\u542F\u8FDE\u9EA6"]})])])}});const _i="_sendMessage_p2cnx_1",Li="_form_p2cnx_10";var sn={sendMessage:_i,form:Li},ki=Y({data(){return{message:""}},methods:{onKeyDown(e){e.keyCode===13&&this.message.trim()!==""&&this.sendMessage()},async sendMessage(){try{await te(this.message);const e=mt();pe({id:String(e.id),name:e.name,content:this.message,isSelf:!0,sendTime:ne(new Date).format("HH:mm:ss")}),this.message="",this.scrollToBottom()}catch{}},scrollToBottom(){this.$nextTick(()=>{var e,t;(t=document.querySelector("#tabList"))==null||t.scrollTo(0,((e=document.querySelector("#messageList"))==null?void 0:e.scrollHeight)||0)})}},render(){return i("div",{class:sn.sendMessage},[i("div",{class:sn.form},[i(gn,{modelValue:this.message,onKeydown:this.onKeyDown,onInput:e=>this.message=e,placeholder:"\u8BF7\u8F93\u5165\u6D88\u606F"},null),i(Z,{disabled:!this.message,onClick:this.sendMessage,round:!0,type:"primary"},{default:()=>[A("\u53D1\u9001")]})])])}});const Mi="_itemContent_1541q_1",xi="_itemInfo_1541q_11",Fi="_itemName_1541q_14",Di="_userName_1541q_20",Pi="_rightTime_1541q_32",Ni="_itemText_1541q_41",Ui="_active_1541q_46",Hi="_joinText_1541q_49",Oi="_join_1541q_49",Vi="_btn_1541q_58",ji="_downBtn_1541q_70",qi="_loadingStyle_1541q_75",Wi="_refresh_1541q_99",zi="_animation_1541q_1",Ki="_refreshStart_1541q_114",Yi="_refreshStop_1541q_117";var U={itemContent:Mi,itemInfo:xi,itemName:Fi,userName:Di,"name-style":"_name-style_1541q_28",rightTime:Pi,itemText:Ni,active:Ui,joinText:Hi,join:Oi,btn:Vi,downBtn:ji,loadingStyle:qi,"slide-top-enter-active":"_slide-top-enter-active_1541q_82","error-num":"_error-num_1541q_1",refresh:Wi,"refresh-animation":"_refresh-animation_1541q_111",animation:zi,refreshStart:Ki,refreshStop:Yi};const Gi="_icon_1svqd_9";var ht={"empty-container":"_empty-container_1svqd_1",icon:Gi},Dt=Y({props:{text:{type:String,default:"\u6682\u65E0\u6570\u636E"},icon:{type:String,default:"noData-no-message"}},render(){return i("div",{class:ht["empty-container"]},[i(re("SvgIcon"),{name:this.icon,class:[ht.icon]},null),i("p",{class:ht["empty-text"]},[this.text])])}}),Qi=Y({data(){return{joinList:{},loadingJoin:!1,upStatus:!1,downStatus:!1,refreshStatus:!1}},computed:{count(){let e=0;for(const t in F.joinList)if(Object.prototype.hasOwnProperty.call(F.joinList,t)&&(F.joinList[t].userRoomType===4&&(e+=1),e>3))break;return e}},mounted(){O.on(V["RC:Chatroom:SeatApply"],this.onSeatApply),O.on(V["RC:Chatroom:SeatResponse"],this.onSeatApply),O.on(V["RM:RTC:UserLeave"],this.onSeatApply),O.on(V["RC:Chatroom:downSeat"],this.onDownSeat),O.on(V["RM:RTC:SwitchRole"],this.onSwitchRole),O.on(V["RC:LookerLoginOut"],this.onLeave)},unmounted(){O.off(V["RC:Chatroom:SeatApply"],this.onSeatApply),O.off(V["RC:Chatroom:SeatResponse"],this.onSeatApply),O.off(V["RM:RTC:UserLeave"],this.onSeatApply),O.off(V["RM:RTC:SwitchRole"],this.onSwitchRole),O.off(V["RC:LookerLoginOut"],this.onLeave)},methods:{async onLeave(e){const t=e.userId||e.fromUserId;F.joinList[t]&&Ne(t),F.lookList[t]&&ui(t),await te({count:m.lookCount},"MemberCount")},onSeatApply(e){if(Array.isArray(e)){for(const s of e)console.log("onSeatApply",s),Ne(s);return}const t=e.$EventMessage.messageType==="RC:Chatroom:SeatResponse",n=t?4:3,o=ne(e.$EventMessage.sentTime||new Date).format("HH:mm:ss");let r={name:e.audienceName,id:String(e.audienceId),system:1,isSelf:!1,content:"",sendTime:o};if(e.type===3){console.log(e,"\u7533\u8BF7\u8FDE\u9EA6");const s={name:e.audienceName,id:e.audienceId,userRoomType:n,type:e.type};Be(e.audienceId,s),Ie(e.audienceId,s),r.content=t?"\u540C\u610F\u4E86\u8FDE\u9EA6\u7533\u8BF7":"\u53D1\u8D77\u4E86\u8FDE\u9EA6\u7533\u8BF7",pe(r),O.emit("MESSAGE:Change")}if(e.type===4){if(console.log(e,"\u53D6\u6D88\u8FDE\u9EA6"),F.joinList[e.audienceId]&&Ne(e.audienceId),F.lookList[e.audienceId]){let s=F.lookList[e.audienceId];s.userRoomType=1,Ie(e.audienceId,s)}r.content=t?"\u62D2\u7EDD\u4E86\u8FDE\u9EA6\u7533\u8BF7":"\u53D6\u6D88\u4E86\u8FDE\u9EA6\u7533\u8BF7",pe(r),O.emit("MESSAGE:Change"),setTimeout(()=>{this.onRefresh()},500)}},agree(e){var n,o;if(this.count>3||this.upStatus){console.log(!0,2323);return}this.upStatus=!0;const t=Ae(Q({},e),{audienceName:e.name,audienceId:String(e.id),teacherId:String((n=P.user)==null?void 0:n.id),teacherName:(o=P.user)==null?void 0:o.speakerName,userRoomType:4,type:1});Be(e.id,t),Ie(e.id,t),te(t,"SeatResponse"),setTimeout(()=>{this.upStatus=!1},300)},refuse(e){var n,o;if(this.downStatus)return;this.downStatus=!0;const t=Ae(Q({},e),{audienceName:e.name,audienceId:String(e.id),teacherId:String((n=P.user)==null?void 0:n.id),teacherName:(o=P.user)==null?void 0:o.speakerName,userRoomType:4,type:5});Be(e.id,t),te(t,"SeatApply"),setTimeout(()=>{this.downStatus=!1},5e4)},onDownSeat(e){var t;if(this.downStatus=!1,console.log(e,"onDownSeat"),F.joinList[e.audienceId]){const n=F.joinList[e.audienceId],o=ne(new Date).format("HH:mm:ss");console.log(e.$EventMessage.senderUserId,(t=P.user)==null?void 0:t.speakerId,"onDownSeat");let r=n.type==5?"\u88AB\u62B1\u4E0B\u9EA6":"\u53D6\u6D88\u4E86\u8FDE\u9EA6\u7533\u8BF7",s={name:e.audienceName,id:e.audienceId,system:1,isSelf:!1,content:r,sendTime:o};pe(s),O.emit("MESSAGE:Change"),Ne(e.audienceId)}},onSwitchRole(e){if(console.log(e,"onSwitchRole"),F.lookList[e.userId]&&e.role===2){let t=F.lookList[e.userId];t.userRoomType=1,Ie(e.userId,t)}},async onRefresh(){var s,a;console.log((s=m.joinedRoom)==null?void 0:s.getRemoteUserIds(),"remoteUserIds"),this.refreshStatus=!0;const e=(a=m.joinedRoom)==null?void 0:a.getRemoteUserIds(),t=e==null?void 0:e.filter(l=>!F.joinList[l]),n=t==null?void 0:t.filter(l=>!F.lookList[l]),o=t==null?void 0:t.filter(l=>F.lookList[l]),r=o==null?void 0:o.map(l=>{const c=F.lookList[l];return c.userRoomType=4,c});if(console.log(r),n&&(n==null?void 0:n.length)>0){const l=await this.FetchUserDetails(n);console.log(l,"fetchList"),l.forEach(c=>{r==null||r.push({name:c.userName,id:c.userId,sendTime:ne(new Date).format("HH:mm:ss"),userRoomType:4,type:1})})}r&&(r==null?void 0:r.length)>0&&(r==null||r.forEach(l=>{Be(l.id,l)})),setTimeout(()=>{this.refreshStatus=!1},300)},async FetchUserDetails(e){try{return(await oe.post("/api-web/imLiveBroadcastRoom/queryBaseUserInfo",{requestType:"json",data:e})).data}catch{}return[]}},render(){const e=Object.values(F.joinList);return i("div",{style:{minHeight:"100%",position:"relative"}},[e.length>0?e.map(t=>i("div",{class:U.itemContent},[i("div",{class:U.itemInfo},[i("div",{class:U.itemName},[i("p",{class:U.userName},[i("span",{class:U["name-style"]},[t.name]),t.userRoomType!==4?i("span",{style:{paddingLeft:"10px"}},[A("\u7533\u8BF7\u8FDE\u9EA6")]):i("span",{style:{paddingLeft:"10px",color:"var(--live-text-color)"}},[A("\u6B63\u5728\u8FDE\u9EA6")])]),t.userRoomType!==4?i("div",{class:U.joinText},[i("div",{class:U.join},null),i(Z,{size:"small",type:"primary",disabled:this.count>3,class:U.btn,onClick:()=>this.agree(t)},{default:()=>[A("\u4E0A\u9EA6")]})]):i("div",{class:U.joinText},[i("div",{class:U.join},null),i(Z,{loading:this.downStatus,size:"small",plain:!0,class:[U.btn,U.downBtn],onClick:()=>this.refuse(t)},{default:()=>[A("\u4E0B\u9EA6")]})])])])])):this.loadingJoin?i("div",{class:U.loadingStyle},[i("div",{class:"el-loading-mask",style:"background-color: rgba(0, 0, 0, 0.8);"},[i("div",{class:"el-loading-spinner"},[i("svg",{class:"circular",viewBox:"25 25 50 50"},[i("circle",{class:"path",cx:"50",cy:"50",r:"20",fill:"none"},null)])])])]):i(Dt,{style:{paddingTop:"120px"},text:"\u6682\u65E0\u5B66\u5458\u53D1\u8D77\u8FDE\u9EA6\uFF01",icon:"noData-no-join"},null)])}}),$i=Y({data(){return{loadingLook:!1,upStatus:!1,downStatus:!1}},computed:{count(){let e=0;for(const t in F.lookList)if(Object.prototype.hasOwnProperty.call(F.lookList,t)){const n=F.lookList[t];if((n.userRoomType===2||n.userRoomType===4)&&(e+=1),e>3)break}return e}},async mounted(){await this._init(),this.loadingLook=!0,O.on(V["RC:Chatroom:Welcome"],this.onWelcome),O.on(V["RC:Chatroom:MemberCountUp"],this.onMemberCount),setTimeout(()=>{this.loadingLook=!1})},beforeUnmount(){O.off(V["RC:Chatroom:Welcome"],this.onWelcome),O.off(V["RC:Chatroom:MemberCountUp"],this.onMemberCount)},methods:{async _init(){try{const e=sessionStorage.getItem("roomUid");(await oe.get("/api-web/imLiveBroadcastRoom/queryRoomUserInfo",{params:{roomUid:e}})).data.forEach(o=>{F.lookList[o.userId]||(F.lookList[o.userId]={id:o.userId,name:o.userName,type:3,userRoomType:1,time:ne().format("YYYY-MM-DD HH:mm:ss")})})}catch{}},onMemberCount(e){m.lookCount=e.content.count||0,te({count:m.lookCount},"MemberCount")},async onWelcome(e){if(e&&e.user){const t=ne(e.$EventMessage.sentTime||new Date).format("HH:mm:ss");let n={name:e.user.name,id:e.user.id,sendTime:t,userRoomType:1,type:3};!!F.lookList[n.id]||(Ie(n.id,n),console.log("\u6DFB\u52A0\u89C2\u770B\u4EBA\u5458",n)),this.loadingLook=!1}},async onUpLook(e){var t,n;try{if(console.log(this.count,F.lookList,"this.count, runtimeModel.lookList"),this.count>3)return;const o={audienceName:e.name,audienceId:String(e.id),teacherId:String((t=P.user)==null?void 0:t.id),teacherName:(n=P.user)==null?void 0:n.speakerName,userRoomType:2,type:1};e.userRoomType=2,await te(o,"SeatApply")}catch{}},async onDownLook(e){var t,n;try{const o=Ae(Q({},e),{audienceName:e.name,audienceId:String(e.id),teacherId:String((t=P.user)==null?void 0:t.id),teacherName:(n=P.user)==null?void 0:n.speakerName,type:5});Be(e.id,o),te(o,"SeatApply")}catch{}}},render(){const e=Object.values(F.lookList);return i("div",null,[e.length>0?e.map(t=>i("div",{class:U.itemContent},[i("div",{class:U.itemInfo},[i("div",{class:U.itemName},[i("p",{class:U.userName},[i("span",{class:U["name-style"]},[t.name])]),t.userRoomType!==4?i(Z,{size:"small",type:"primary",disabled:this.count>3||t.userRoomType===2||t.userRoomType===3||m.videoStatus!=="liveing",class:U.btn,onClick:()=>this.onUpLook(t)},{default:()=>[A("\u4E0A\u9EA6")]}):i(Z,{size:"small",plain:!0,class:[U.btn,U.downBtn],onClick:()=>this.onDownLook(t)},{default:()=>[A("\u4E0B\u9EA6")]})])])])):this.loadingLook?i("div",{class:U.loadingStyle},[i("div",{class:"el-loading-mask",style:"background-color: rgba(0, 0, 0, 0.8);"},[i("div",{class:"el-loading-spinner"},[i("svg",{class:"circular",viewBox:"25 25 50 50"},[i("circle",{class:"path",cx:"50",cy:"50",r:"20",fill:"none"},null)])])])]):i(Dt,{style:{paddingTop:"120px"},text:"\u6682\u65E0\u5B66\u5458\u89C2\u770B\uFF01",icon:"noData-no-user"},null)])}}),Ji=Y({data(){return{messageList:[],loadingMessage:!1}},mounted(){this.loadingMessage=!0,O.on(V["RC:TxtMsg"],this.onMessage),O.on(V["RC:ForcedOffline"],this.onForcedOffline),O.on("MESSAGE:Change",this.scrollToBottom),setTimeout(()=>{this.loadingMessage=!1},2e3),this.scrollToBottom()},beforeUnmount(){O.off(V["RC:TxtMsg"],this.onMessage)},methods:{async onForcedOffline(){try{await ln();try{await oe.post("/api-auth/exit",{data:{}})}catch{console.log("\u8BF7\u6C42\u9000\u51FA\u63A5\u53E3\u5931\u8D25")}fe("camera"),fe("microphone"),m.syncLikeTimer&&clearTimeout(m.syncLikeTimer),P.user=null,Et(),this.$router.push({path:"/login",query:Q({},this.$route.query)})}catch(e){console.log(e,"\u5F3A\u5236\u9000\u51FA\u767B\u5F55\u5931\u8D25")}},onLike(e){var t;if(e&&e.user){const n=ne(e.$EventMessage.sentTime||new Date).format("HH:mm:ss");console.log(e,"like");let o={name:(t=e.user)==null?void 0:t.name,id:e.user.id,isSelf:!1,content:"\u7ED9\u60A8\u70B9\u4E86"+e.counts+"\u4E2A\u8D5E",sendTime:n};pe(o),this.loadingMessage=!1}this.scrollToBottom()},onMessage(e){var t;if(e&&e.user){const n=ne(e.$EventMessage.sentTime||new Date).format("HH:mm:ss");let o={name:(t=e.user)==null?void 0:t.name,id:e.user.id,isSelf:!1,content:e.content,sendTime:n};e.user.id===P.user.speakerId&&(o.isSelf=!0),pe(o),this.loadingMessage=!1}this.scrollToBottom()},scrollToBottom(){this.$nextTick(()=>{var e,t;(t=document.querySelector("#tabList"))==null||t.scrollTo(0,((e=document.querySelector("#messageList"))==null?void 0:e.scrollHeight)||0)})},async confirmEvent(e){console.log(e,"item");try{const t=sessionStorage.getItem("roomUid");await oe.post("/api-web/imLiveRoomBlack/add",{requestType:"json",data:{userIdList:e.id,roomUid:t}}),de.success("\u62C9\u9ED1\u6210\u529F")}catch{}}},render(){return i("div",{style:{minHeight:"100%",position:"relative"},id:"messageList"},[F.messageList.length>0?F.messageList.map(e=>i("div",{class:[U.itemContent,U["slide-top-enter-active"]]},[i("div",{class:U.itemInfo},[i("div",{class:U.itemName},[i("div",{class:U.userName},[e.isSelf?i(vo,null,[i(wo,{effect:"dark",color:"#01A79E"},{default:()=>[A("\u4E3B\u8BB2\u4EBA")]}),i("span",{class:U["name-style"]},[e.name,e.system?null:"\uFF1A"])]):i(bo,{confirmButtonText:"\u786E\u5B9A",cancelButtonText:"\u53D6\u6D88",title:"\u52A0\u5165\u9ED1\u540D\u5355\u540E\uFF0C\u5B66\u5458\u65E0\u6CD5\u53D1\u8A00\u548C\u8FDE\u9EA6?",onConfirm:()=>{this.confirmEvent(e)}},{reference:()=>i("span",{class:U["name-style"]},[e.name,e.system?null:"\uFF1A"])}),i("span",{class:[U.itemText,e.isSelf?U.active:null]},[e.content])]),i("p",{class:U.rightTime},[e.sendTime])])])])):this.loadingMessage?i("div",{class:U.loadingStyle},[i("div",{class:"el-loading-mask",style:"background-color: rgba(0, 0, 0, 0.8);"},[i("div",{class:"el-loading-spinner"},[i("svg",{class:"circular",viewBox:"25 25 50 50"},[i("circle",{class:"path",cx:"50",cy:"50",r:"20",fill:"none"},null)])])])]):i(Dt,{style:{paddingTop:"120px"},text:"\u6682\u65E0\u5B66\u5458\u4E92\u52A8\uFF01",icon:"noData-no-message"},null)])}}),Xi=Y({name:"LiveMessage",data(){return{modelIndex:"message"}},computed:{joinStatus(){let e=F.joinTips;const t=Object.values(F.joinList);return(F.joinTips&&this.modelIndex==="join"||t.length<=0)&&(e=!1,F.joinTips=!1),e}},methods:{tabChange(e){this.modelIndex=e.props.name,this.modelIndex==="message"&&this.$refs.messageModel.scrollToBottom()}},render(){return i("div",{class:G.container},[i("div",{class:G.dataCount},[i("div",null,[i("p",{class:G.num},[m.lookCount]),i("p",{class:G.text},[i(re("SvgIcon"),{name:"message-look",color:"#fff",class:G.dataIcon},null),A("\u5F53\u524D\u89C2\u770B")])]),i("div",null,[i("p",{class:G.num},[m.likeCount]),i("p",{class:G.text},[i(re("SvgIcon"),{name:"message-giveUp",color:"#fff",class:G.dataIcon},null),A("\u7D2F\u8BA1\u70B9\u8D5E")])])]),i(Co,{modelValue:this.modelIndex,"onTab-click":this.tabChange,class:G.tabContainer},{default:()=>[i(Xe,{name:"message"},{label:()=>i("span",{style:{display:"flex",alignItems:"center"}},[i(re("SvgIcon"),{name:"message-message",color:this.modelIndex==="message"?"#00FFF0":"#fff",class:G.tabIcon},null),A("\u804A\u5929")])}),i(Xe,{name:"join"},{label:()=>i("span",{style:{display:"flex",alignItems:"center",position:"relative"}},[i(re("SvgIcon"),{name:"message-evenEtc",color:this.modelIndex==="join"?"#00FFF0":"#fff",class:G.tabIcon},null),A("\u8FDE\u9EA6 "),this.joinStatus?i("i",{class:G.point},null):null])}),i(Xe,{name:"look"},{label:()=>i("span",{style:{display:"flex",alignItems:"center"}},[i(re("SvgIcon"),{name:"message-look",color:this.modelIndex==="look"?"#00FFF0":"#fff",class:G.tabIcon},null),A("\u89C2\u770B")])})]}),i("div",{class:G.tabContent},[i(Ri,null,null),i("div",{class:G.tabList,id:"tabList"},[Ze(i(Ji,{ref:"messageModel"},null),[[et,this.modelIndex==="message"]]),Ze(i(Qi,null,null),[[et,this.modelIndex==="join"]]),Ze(i($i,null,null),[[et,this.modelIndex==="look"]])]),i(ki,null,null)])])}});const Zi="_container_13n1h_1",ea="_home_13n1h_4";var an={container:Zi,home:ea},sa=Y({render(){return i("div",{class:an.home},[i(xo,null,null),i("div",{class:an.container},[i(gi,null,null),i(Xi,null,null)])])}});export{sa as default};