1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["static/js/tcplayer.v5.3.4.min-CmSqkHSZ.js","static/js/_commonjsHelpers-HLVOKCDG.js","static/js/quill--qV90aY3.js","static/js/index-BHKElW5-.js","static/js/runtime-core.esm-bundler-CSn0hs_e.js","static/js/_plugin-vue_export-helper-BCo6x5W8.js","static/js/video-editor-DTVSiof6.js","static/js/runtime-dom.esm-bundler-DyrtEVhK.js","static/js/konva-BpeUsT-l.js","static/css/video-editor-ChZAWNz8.css","static/js/vueuse-CCQysXvv.js","static/js/export-tools-BFBXm_DW.js","static/js/floating-ui.dom-B-67nXkj.js","static/css/index-CAXrBOER.css","static/js/backtop-BE60GisS.js","static/css/backtop-Dq6vuu81.css","static/js/back-ChF-7oLU.js","static/css/back-BYez6RmK.css","static/js/course-BPk3Pgm8.js","static/js/content-analytics-J7lGISpb.js","static/js/index-D-jWTvzz.js","static/css/index-foa7_ZG5.css","static/js/work-analytics-DGDpmPat.js"])))=>i.map(i=>d[i]); 2var e=Object.defineProperty,t=Object.defineProperties,n=Object.getOwnPropertyDescriptors,r=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable,l=(t,n,r)=>n in t?e(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r,i=(e,t)=>{for(var n in t||(t={}))a.call(t,n)&&l(e,n,t[n]);if(r)for(var n of r(t))o.call(t,n)&&l(e,n,t[n]);return e},s=(e,r)=>t(e,n(r)),u=(e,t,n)=>new Promise((r,a)=>{var o=e=>{try{i(n.next(e))}catch(t){a(t)}},l=e=>{try{i(n.throw(e))}catch(t){a(t)}},i=e=>e.done?r(e.value):Promise.resolve(e.value).then(o,l);i((n=n.apply(e,t)).next())});import{b as c}from"./backtop-BE60GisS.js";import{B as d}from"./back-ChF-7oLU.js";import{b as p,c as f,d as v,w as h,e as y,f as b}from"./course-BPk3Pgm8.js";import{L as g,gL as m,i as _,bJ as w,ai as k,R as j,nb as x,aw as O,nc as A,c as I,N as C,$ as S,i6 as E,lz as N,nd as L,md as P,mD as T,mW as M,mU as V,e8 as R,mT as U,mS as z,mV as q,mX as H,ae as F,q as B,aM as D,er as $,b as W,bl as Q,bh as Y,bY as G,ne as J,nf as K,ng as X,nh as Z,bV as ee,dn as te,et as ne,jS as re,ni as ae,nj as oe,d_ as le,nk as ie}from"./index-BHKElW5-.js";import{a as se,c as ue}from"./content-analytics-J7lGISpb.js";import{_ as ce}from"./_plugin-vue_export-helper-BCo6x5W8.js";import{b as de,e as pe,n as fe,p as ve,q as he,v as ye,x as be,a as ge,c as me,O as _e,N as we,y as ke,F as je,C as xe,D as Oe,B as Ae,I as Ie,A as Ce,k as Se,G as Ee,H as Ne,z as Le,u as Pe,E as Te,L as Me,J as Ve,R as Re,m as Ue,i as ze}from"./runtime-core.esm-bundler-CSn0hs_e.js";import{s as qe}from"./index-D-jWTvzz.js";import{t as He}from"./work-analytics-DGDpmPat.js";import{c as Fe,g as Be}from"./_commonjsHelpers-HLVOKCDG.js";const De={class:"course-player-host"},$e=ce({__name:"player",props:{courseId:{type:[Number,String],default:""},lessonId:{type:[Number,String],default:""},accessReady:{type:Boolean,default:!1},options:{type:Object,default:()=>({})},hasPaid:{type:[Number,String],default:0},price:{type:[Number,String],default:0},isFree:{type:[Number,String],default:0}},emits:["buy:course"],setup(e,{emit:t}){const n=t,r=e,a=ge(null),o=me(null);let l=null,s=null,c=!1,d=null;const p=()=>{null==d||d.remove(),d=null},f=me(null),v=()=>{f.value={course_id:String(r.courseId||""),lesson_id:String(r.lessonId||""),started:!1,ended:!1,playback_scope:""}},h=e=>{const t=f.value;_.value||!t||t[e]||"ended"===e&&!t.started||("started"===e&&(t.playback_scope=r.accessReady?1===Number(r.hasPaid)||1===Number(r.isFree)?"full":"preview":"unknown"),se({course_id:t.course_id,lesson_id:t.lesson_id,stage:e,playback_scope:t.playback_scope,entry_point:"course_player"})&&(t[e]=!0))}
2,y=me({language:"zh-CN",autoplay:!0,plugins:{ContinuePlay:{auto:!0,text:"å·²å®ä½å°æ¨ä¸æ¬¡ææ¾çä½ç½®",btnText:"æ¢å¤ææ¾"}}}),b=()=>u(this,null,function*(){if(l||"undefined"==typeof window)return l;const e=yield g(()=>import("./tcplayer.v5.3.4.min-CmSqkHSZ.js").then(e=>e.t),__vite__mapDeps([0,1]));return l=(null==e?void 0:e.default)||e,l}),w=()=>u(this,null,function*(){if(!o.value||a.value)return a.value;if(s)return s;const e=o.value;s=(()=>u(this,null,function*(){const t=yield b();if(!t||c||o.value!==e)return null;const l=(e=>{let t=i(i({},y.value),e);return(null==t?void 0:t.licenseUrl)&&(t.licenseUrl=m(e.licenseUrl)),t})(r.options);v();const s=t(e,i({},l));return a.value=s,s.on("playing",()=>{p(),h("started")}),s.one("playing",function(){if(0==r.hasPaid&&1!=r.isFree){var e=document.createElement("div");e.innerHTML="å¯è¯ç30ç§ï¼è´ä¹°åå¯è§ç宿´è§é¢",e.className="tip-node";var t=document.createElement("i");t.className="tip-icon-close",t.onclick=function(){e.remove()},e.appendChild(t),s.el_.appendChild(e)}}),s.on("ended",function(){h("ended"),p();var e=document.createElement("div");e.className="page-node",d=e,e.innerHTML=0==r.hasPaid&&1!=r.isFree?'<div class="page-content not-payment">\n <p class="title">è¯çå°è¿éå
å䏿®µè½å¦~ <i id="close-icon" class="close-icon icon-a-quxiao22x"></i></p>\n <p class="subtitle">ç¹å»ä¸æ¹æé®ï¼å®æ´è¯¾ç¨çä½ è§£éï¼</p>\n <span id=\'buy-btn\'>ç«å³è´ä¹°</span>\n </div>\n ':'<div class="page-content payment">\n <button id="replay-btn">éæ°ææ¾</button>\n </div>',s.el_.appendChild(e),1==r.hasPaid||1==r.isFree?e.querySelector("#replay-btn").onclick=function(){s.play(),p()}:(e.querySelector("#close-icon").onclick=function(){p()},e.querySelector("#buy-btn").onclick=function(){n("buy:course"),p()})}),s}))();try{return yield s}finally{s=null}});return de(()=>[r.options,r.courseId,r.lessonId],([e,t,n],[r,o,l])=>{e&&(r&&e.fileID==r.fileID&&t===o&&n===l||(a.value?(p(),v(),a.value.loadVideoByID(e)):w()))},{deep:!0}),pe(()=>u(this,null,function*(){yield fe(),yield w()})),ve(()=>{var e,t;c=!0,p(),null==(t=null==(e=a.value)?void 0:e.dispose)||t.call(e),a.value=null}),(e,t)=>(he(),ye("div",De,[be("video",{ref_key:"playerElementRef",ref:o,id:"player-container-id",controlslist:"nodownload noplaybackrate noremoteplayback",disablePictureInPicture:"",preload:"auto",playsinline:"","webkit-playsinline":""},null,512)]))}},[["__scopeId","data-v-9013c547"]]);function We({target:e,text:t}){let n=null,r=null,a=null,o=null,l=null,i=null,s=!1;const c=()=>{n&&(n.disconnect(),n=null),r&&(r.disconnect(),r=null),a&&(a.disconnect(),a=null),function(e){if(e)try{e.disconnect()}catch(t){}}(o),o=null,l&&l.parentNode&&(l.parentNode.removeChild(l),l=null)},d=()=>{s||(s=!0,setTimeout(()=>{c(),y(),s=!1},100))},p=e=>{e.forEach(e=>{switch(e.type){case"childList":(e.removedNodes.length>0||e.addedNodes.length>0)&&d();break;case"attributes":{const t=["id","className","style","innerText","textContent"];e.attributeName&&t.includes(e.attributeName)&&d()}break;default:d()}})},f=e=>{e.forEach(e=>{"childList"===e.type?e.removedNodes.forEach(e=>{(e===l||e.nodeType===Node.ELEMENT_NODE&&e.contains&&e.contains(l))&&d()}):"attributes"===e.type&&("class"!==e.attributeName&&"className"!==e.attributeName||d())})},v=e=>{e.forEach(e=>{"childList"===e.type?(e.removedNodes.forEach(e=>{(e===l||e.nodeType===Node.ELEMENT_NODE&&e.contains&&e.contains(l))&&d()}),e.addedNodes.forEach(e=>{e===l&&e.parentNode!==i&&d()})):"attributes"===e.type&&(e.target!==i||"class"!==e.attributeName&&"className"!==e.attributeName||d())})},h=(e,n,r)=>{if(!e)return;const a=e.getContext("2d");if(!a)return;const o=Math.max(0,Math.floor(n)),l=Math.max(0,Math.floor(r));e.width!==o&&(e.width=o),e.height!==l&&(e.height=l),a.clearRect(0,0,e.width,e.height),a.font="16px Arial, sans-serif",a.fillStyle="rgba(255, 255, 255, 0.1)",a.textAlign="center",a.textBaseline="middle";const i=1.5*a.measureText(t).width,s=Math.max(i,100),u=Math.ceil(r/s)+2,c=Math.ceil(n/s)+2;a.save(),a.translate(n/2,r/2);for(let d=-u;d<=u;d++)for(let e=-c;e<=c;e++)a.save(),a.translate(e*s,d*s),a.rotate(-Math.PI/4),a.fillText(t,0,0),a.restore(
2);a.restore()},y=()=>u(this,null,function*(){if(i=document.querySelector(e),!i)return void console.error("æªæ¾å°ç®æ 容å¨:",e);const t=i.getBoundingClientRect();if(0===t.width||0===t.height){console.warn("容å¨å°ºå¯¸ä¸º0ï¼çå¾
容å¨å è½½...");const e=new ResizeObserver(t=>{for(const n of t)if(n.contentRect.width>0&&n.contentRect.height>0)return e.disconnect(),void y()});return void e.observe(i)}l&&c(),l=document.createElement("canvas"),l.id="watermark-canvas",l.className="watermark-element",l.style.position="absolute",l.style.top="0",l.style.left="0",l.style.width="100%",l.style.height="100%",l.style.zIndex="1000",l.style.pointerEvents="none",l.draggable=!1;const s=i.getBoundingClientRect(),u=s.width,d=s.height;h(l,u,d),i.appendChild(l),n=new MutationObserver(p),n.observe(l,{childList:!0,attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,subtree:!0}),r=new MutationObserver(f),r.observe(i,{childList:!0,attributes:!0,attributeOldValue:!0,subtree:!0}),a=new MutationObserver(v),a.observe(document.body,{childList:!0,attributes:!0,attributeOldValue:!0,subtree:!0}),o=function(e,t){const{debounceMs:n=16,errorHandler:r}=t||{};let a=null,o=0;return new ResizeObserver((t,l)=>{try{const i=Date.now();i-o<n?(a&&clearTimeout(a),a=window.setTimeout(()=>{try{e(t,l),o=Date.now()}catch(n){r&&r(n)}},n)):(e(t,l),o=i)}catch(i){r&&r(i)}})}(e=>{for(const t of e)if(t.target===i&&l){const{width:e,height:n}=t.contentRect;requestAnimationFrame(()=>{h(l,e,n)})}},{debounceMs:16,errorHandler:e=>{console.warn("Watermark ResizeObserver error:",e)}}),o.observe(i)});return{initWatermark:y,cleanupWatermarkObserver:c}}const Qe={class:"video-box"},Ye={class:"video-info"},Ge={class:"video-info-main"},Je={class:"text-ellipsis title"},Ke={class:"video-title"},Xe={key:0,class:"buy-area"},Ze={class:"price"},et={class:"video-player-stage"},tt=ce({__name:"video",props:{courseId:{type:[Number,String],default:""},lessonId:{type:[Number,String],default:""},accessReady:{type:Boolean,default:!1},item:{type:Object,required:!1,default:()=>({return:{}})},price:{type:[String,Number],required:!1,default:0},view:{type:Number,default:0},autoplay:{type:Boolean,default:!0},muted:{type:Boolean,default:!1},controls:{type:Boolean,default:!0},loop:{type:Boolean,default:!1},previewDuration:{type:Number,default:30},showProgressBar:{type:Boolean,default:!0},progressBarColor:{type:String,default:"#8b5cf5"},progressBarHeight:{type:Number,default:4},showTimeDisplay:{type:Boolean,default:!0},timeFormat:{type:String,default:"mm:ss",validator:e=>["mm:ss","ss","mm:ss:ms"].includes(e)},showPreviewProgress:{type:Boolean,default:!0},previewProgressColor:{type:String,default:"#D6E86E"},hasPaid:{type:[Number,String],default:0},isFree:{type:[Number,String],default:0}},emits:["buy","handle-popover"],setup(e,{emit:t}){const n=t,r=e,a=Se(()=>{const{data:e}=w.value;let t="";if((null==e?void 0:e.userName)&&(t+=null==e?void 0:e.userName),null==e?void 0:e.account){const n=null==e?void 0:e.account.toString();t+=` ${n.length>=4?n.slice(-4):n}`}return t}),{initWatermark:o,cleanupWatermarkObserver:l}=We({target:".course-watermark-layer",text:a.value}),{initCourse:i}=function({target:e,handleClick:t}){let n=null;function r(){const e=document.createElement("div");return e.className="course-btn",e.innerText="éé",e}return{initCourse:function(){const a=document.querySelector(e);a&&!n&&(n=r(),n.addEventListener("click",t),a.before(n))},isToolItem:function(){return Boolean(n)},createSettingToolItem:r}}({target:".vjs-playback-rate.vjs-menu-button.vjs-menu-button-popup.vjs-button",handleClick:e=>{n("handle-popover",e)}}),s=me(),c=me(!1),d=Se(()=>r.price),p=e=>{var t,n;c.value&&(null==(n=null==(t=s.value)?void 0:t.pause)||n.call(t)),f(e)},f=e=>{n("buy",e)};return pe(()=>u(this,null,function*(){try{yield new Promise(e=>{const t=()=>{const n=document.querySelector(".course-watermark-layer");n&&n.offsetWidth>0&&n.offsetHeight>0?e(n):requestAnimationFrame(t)};t()}),o(),i()}catch(e){console.error("è§é¢å®¹å¨å 载失败:",e),setTimeout(()=>{o(),i()},1e3)}})),_e(()=>{l()}),(t,n)=>{const a=we("el-button");
2return he(),ye("div",Qe,[be("div",Ye,[be("div",Ge,[ke(t.$slots,"leading",{},void 0,!0),be("div",Je,[be("span",Ke,[je(xe(e.item.classHourTitle)+" ",1),n[2]||(n[2]=be("i",{class:"icon-boshiweb_bofangliang"},null,-1)),be("span",null,xe(r.view),1)])])]),e.hasPaid||0==d.value?Ie("",!0):(he(),ye("div",Xe,[be("div",Ze,"ï¿¥"+xe(d.value),1),Oe(a,{class:"ark-button",type:"primary",onClick:n[0]||(n[0]=e=>p("course_header"))},{default:Ae(()=>[je(xe(t.$t("buy_now")),1)]),_:1})]))]),be("div",et,[e.item.videoVO?(he(),Ce($e,{key:0,options:e.item.videoVO,hasPaid:e.hasPaid,isFree:e.isFree,price:d.value,"course-id":e.courseId,"lesson-id":e.lessonId,"access-ready":e.accessReady,"onBuy:course":n[1]||(n[1]=e=>p("course_preview_end"))},null,8,["options","hasPaid","isFree","price","course-id","lesson-id","access-ready"])):Ie("",!0),n[3]||(n[3]=be("div",{class:"course-watermark-layer","aria-hidden":"true"},null,-1))])])}}},[["__scopeId","data-v-85ded325"]]);const nt=ce({},[["render",function(e,t){return he(),ye("ul",null,[(he(),ye(Ee,null,Ne(4,e=>be("li",{key:e,style:Le({animationDelay:.1*e+"s"})},null,4)),64))])}],["__scopeId","data-v-ee9b79e9"]]),rt={class:"collapse-item-title"},at={key:0,class:"collapse-item-container-scrollbar"},ot=["onClick"],lt={class:"video-icon-wrapper"},it={class:"collapse-item-video"},st={key:1,class:"icon-shipin"},ut={class:"collapse-item-content"},ct={class:"collapse-item-time"},dt={key:1,class:"collapse-item-container-empty"},pt=ce({__name:"collapse-item",props:{modelValue:{type:Object,default:()=>({chapterTitle:"",classHoursList:[],classHourId:"",chapterId:""})},active:{type:Object,default:()=>({classHourId:""})},hasPaid:{type:[Number,String],default:0},isFree:{type:[Number,String],default:0}},emits:["update:modelValue","handle-item"],setup(e,{emit:t}){const n=t,r=e,a=Se({get:()=>r.modelValue,set:e=>n("update:modelValue",e)}),o=e=>{var t;return(null==e?void 0:e.classHourId)===(null==(t=r.active)?void 0:t.classHourId)},l=()=>{};return(t,r)=>(he(),Ce(Pe(x),null,{title:Ae(()=>{var e;return[be("span",rt,xe(null==(e=a.value)?void 0:e.chapterTitle),1)]}),default:Ae(()=>[Oe(Pe(k),{onEndReached:l},{default:Ae(()=>{var t,r;return[(null==(r=null==(t=a.value)?void 0:t.classHoursList)?void 0:r.length)?(he(),ye("div",at,[(he(!0),ye(Ee,null,Ne(a.value.classHoursList,t=>(he(),ye("div",{class:Te(["collapse-item",{active:o(t)}]),key:t.classHourId,onClick:e=>{n("handle-item",t)}},[be("div",lt,[be("div",it,[o(t)?(he(),Ce(nt,{key:0,class:"collapse-item-bounce"})):(he(),ye("i",st))])]),be("div",ut,[be("div",{class:Te(["collapse-item-title",{preview:0==e.hasPaid&&1!=e.isFree}])},[be("span",null,xe(null==t?void 0:t.classHourTitle),1)],2),be("div",ct,[be("span",null,xe(null==t?void 0:t.videoDuration),1)])])],10,ot))),128))])):(he(),ye("div",dt,[Oe(j,{size:"mini"})]))]}),_:1})]),_:1}))}},[["__scopeId","data-v-2a686e1c"]]),ft=(e,t)=>u(void 0,null,function*(){try{const{pageNumber:n,pageSize:r,chapterId:a}=e||{};if(!a)return;if(!n||!r)return;if(e.isMore)return;e.loading=!0;const{code:o,data:l}=yield p({pageNumber:n,pageSize:r,chapterId:a});e.loading=!1,200===o&&l.records&&(Array.isArray(e.classHoursList)||(e.classHoursList=[]),e.classHoursList=[...e.classHoursList,...l.records],e.totalRow=l.totalRow,e.isMore=e.classHoursList.length>=(e.totalRow||0),t&&e.classHoursList.length>0?t(e.classHoursList[0]):t&&t())}catch(n){e&&(e.loading=!1),console.error(n)}}),vt={key:0,class:"course-view-scrollbar"},ht={key:1,class:"course-view-scrollbar"},yt=ce({__name:"tab-course",props:{modelValue:{type:Object,required:!0,default:()=>({})},list:{type:Array,required:!0,default:()=>[]},active:{type:Object,default:()=>({classHourId:""})},hasPaid:{type:[String,Number],default:0},isFree:{type:[String,Number],default:0}},emits:["update:modelValue","update:list","load-more","handle-item"],setup(e,{expose:t,emit:n}){const r=n,a=e,o=Se({get:()=>a.list,set:e=>r("update:list",e)}),l=Se({get:()=>a.modelValue,set:e=>r("update:modelValue",e)}),i=me([0]),s=e=>{"bottom"===e&&r("load-more")},u=e=>{r("handle-item",e)},c=e=>{ft(o.value[e])};return de(()=>a.active,e=>{i.value=o.value.findIndex(t=>t.chapterId==e.chapterId)},{deep:!0,immediate:!0}),t({setItem:e=>{l.value=e}}),(t,n)=>{const r=we("el-collapse"),l=we("el-scrollbar"),d=we("el-tab-pane");return he(),Ce(d,{lazy:""},{default:Ae(()=>[Oe(l,{onEndReached:s},{default:Ae(()=>[o.value.length?(he(),ye("div",vt,[Oe(r,{accordion:"",modelValue:i.value,"onUpdate:modelValue":n[0]||(n[0]=e=>i.value=e),onChange:c},{default:Ae(()=>[(he(!0),ye(Ee,null,Ne(o.value,(t,n)=>
2(he(),Ce(pt,{key:t.chapterId,name:n,title:t.chapterTitle,hasPaid:e.hasPaid,isFree:e.isFree,onHandleItem:u,modelValue:o.value[n],"onUpdate:modelValue":e=>o.value[n]=e,active:a.active},null,8,["name","title","hasPaid","isFree","modelValue","onUpdate:modelValue","active"]))),128))]),_:1},8,["modelValue"])])):(he(),ye("div",ht,[Oe(j)]))]),_:1})]),_:1})}}},[["__scopeId","data-v-83a98376"]]),bt={class:"anthology-view-scrollbar"},gt={key:0,class:"course-view-scrollbar"},mt={key:1,class:"course-view-scrollbar"},_t=ce({__name:"anthologyView",props:{list:{type:Array,required:!0,default:()=>[]},active:{type:Object,default:()=>({classHourId:""})}},emits:["update:list","load-more","handle-item"],setup(e,{emit:t}){const n=t,r=e,a=Se({get:()=>r.list,set:e=>n("update:list",e)}),o=me([0]),l=e=>{"bottom"===e&&n("load-more")},i=e=>{n("handle-item",e)},s=e=>{ft(a.value[e])};return de(()=>r.active,e=>{o.value=a.value.findIndex(t=>t.chapterId==e.chapterId)},{deep:!0,immediate:!0}),(e,t)=>{const n=we("el-collapse"),u=we("el-scrollbar");return he(),ye("div",bt,[Oe(u,{onEndReached:l},{default:Ae(()=>[a.value.length?(he(),ye("div",gt,[Oe(n,{accordion:"",modelValue:o.value,"onUpdate:modelValue":t[0]||(t[0]=e=>o.value=e),onChange:s},{default:Ae(()=>[(he(!0),ye(Ee,null,Ne(a.value,(e,t)=>(he(),Ce(pt,{key:e.chapterId,name:t,title:e.chapterTitle,onHandleItem:i,modelValue:a.value[t],"onUpdate:modelValue":e=>a.value[t]=e,active:r.active},null,8,["name","title","modelValue","onUpdate:modelValue","active"]))),128))]),_:1},8,["modelValue"])])):(he(),ye("div",mt,[Oe(j)]))]),_:1})])}}},[["__scopeId","data-v-35bc7dfe"]]),wt=["onClick"],kt=ce({__name:"tab-download",setup(e,{expose:t}){const n=me([]),r=me(""),a=me(!1),o=me(!1),l=e=>u(this,null,function*(){if(!O())return;const t=r.value,n=yield A({fileUrl:e.fileUrl});!_.value&&(null==n?void 0:n.data)instanceof Blob&&n.data.size>0&&He({entry_point:"course_materials",content_type:"course_material",course_id:t||void 0,item_count:1,download_format:"original"});const a=window.URL.createObjectURL(new Blob([n.data])),o=document.createElement("a");o.href=a,o.setAttribute("download",e.fileName),document.body.appendChild(o),o.click(),o.parentNode.removeChild(o),window.URL.revokeObjectURL(a)});return t({getData:e=>u(this,null,function*(){if(null==e||null==e)return;a.value=!0;const{code:t,data:l}=yield f({pageNumber:1,pageSize:20,keyWord:"",courseId:e});a.value=!1,n.value=[],200==t&&(n.value=l.records.filter(e=>e.fileUrl),r.value=String(e)),o.value=!n.value.length})}),(e,t)=>{const r=we("el-tab-pane"),i=Me("myloading");return he(),Ce(r,{lazy:""},{default:Ae(()=>[Oe(qe,{empty:o.value,"is-backtop":!1,description:"learning.soon"},{default:Ae(({className:e})=>[Ve((he(),ye("div",{class:Te(["course-view-scrollbar",e])},[(he(!0),ye(Ee,null,Ne(n.value,(e,t)=>(he(),ye("div",{class:"course-view-item",key:t},[be("div",null,xe(e.fileName),1),be("i",{onClick:t=>l(e),class:"icon-uploading icon-size-medium"},null,8,wt)]))),128))],2)),[[i,a.value]])]),_:1},8,["empty"])]),_:1})}}},[["__scopeId","data-v-f32cbf6b"]]);var jt,xt,Ot={exports:{}};function At(){if(xt)return jt;xt=1;var e=-1;function t(p,f,v,h,b){if(p===f)return p?[[0,p]]:[];if(null!=v){var g=function(e,t,n){var r="number"==typeof n?{index:n,length:0}:n.oldRange,a="number"==typeof n?null:n.newRange,o=e.length,l=t.length;if(0===r.length&&(null===a||0===a.length)){var i=r.index,s=e.slice(0,i),u=e.slice(i),c=a?a.index:null,d=i+l-o;if((null===c||c===d)&&!(d<0||d>l)){var p=t.slice(0,d);if((h=t.slice(d))===u){var f=Math.min(i,d);if((g=s.slice(0,f))===(_=p.slice(0,f)))return y(g,s.slice(f),p.slice(f),u)}}if(null===c||c===i){var v=i,h=(p=t.slice(0,v),t.slice(v));if(p===s){var b=Math.min(o-v,l-v);if((m=u.slice(u.length-b))===(w=h.slice(h.length-b)))return y(s,u.slice(0,u.length-b),h.slice(0,h.length-b),m)}}}if(r.length>0&&a&&0===a.length){var g=e.slice(0,r.index),m=e.slice(r.index+r.length);if(!(l<(f=g.length)+(b=m.length))){var _=t.slice(0,f),w=t.slice(l-b);if(g===_&&m===w)return y(g,e.slice(f,o-b),t.slice(f,l-b),m)}}return null}(p,f,v);if(g)return g}var m=r(p,f),_=p.substring(0,m);m=o(p=p.substring(m),f=f.substring(m));var w=p.substring(p.length-m),k=function(a,l){var i;if(!a)return[[1,l]];if(!l)return[[e,a]];var s=a.length>l.length?a:l,u=a.length>l.length?l:a,c=s.indexOf(u);if(-1!==c)return i=[[1,s.substring(0,c)],[0,u],[1,s.substring(c+u.length)]],a.length>l.length&&(i[0][0]=i[2][0]=e),i;if(1===u.length)return[[e,a],[1,l]];var d=function(e,t){var n=e.length>t.length?e:t,a=e.length>t.length?t:e;if(n.length<4||2*a.length<n.length)return null;function l(e,t,n){for(var a,l,i,s,u=e.substring(n,n+Math.floor(e.length/4)),c=-1,d="";-1!==(c=t.indexOf(u,c+1));){var p=r(e.substring(n),t.substring(c)),f=o(e.substring(0,n),t.substring(0,c));d.length<f+p&&(d=t.substring(c-f,c)+t.substring(c,c+p),a=e.substring(0,n-f),l=e.substring(n+p),i=t.substring(0,c-f),s=t.substring(c+p))}return 2*d.length>=e.length?[a,l,i,s,d]:null}var i,s,u,c,d,p=l(n,a,Math.ceil(n.length/4)),f=l(n,a,Math.ceil(n.length/2));if(!p&&!f)return null;i=f?p&&p[4].length>f[4].length?p:f:p;e.length>t.length?(s=i[0],u=i[1],c=i[2],d=i[3]):(c=i[0],d=i[1],s=i[2],u=i[3]);var v=i[4];return[s,u,c,d,v]}(a,l);if(d){var p=d[0],f=d[1],v=d[2],h=d[3],y=d[4],b=t(p,v),g=t(f,h);return b.concat([[0,y]],g)}return function(t,r){for(var a=t.length,o=r.length,l=Math.ceil((a+o)/2),i=l,s=2*l,u=ne
vendor: 5,728 bytes, line 2
2w Array(s),c=new Array(s),d=0;d<s;d++)u[d]=-1,c[d]=-1;u[i+1]=0,c[i+1]=0;for(var p=a-o,f=p%2!=0,v=0,h=0,y=0,b=0,g=0;g<l;g++){for(var m=-g+v;m<=g-h;m+=2){for(var _=i+m,w=(A=m===-g||m!==g&&u[_-1]<u[_+1]?u[_+1]:u[_-1]+1)-m;A<a&&w<o&&t.charAt(A)===r.charAt(w);)A++,w++;if(u[_]=A,A>a)h+=2;else if(w>o)v+=2;else if(f){if((x=i+p-m)>=0&&x<s&&-1!==c[x])if(A>=(j=a-c[x]))return n(t,r,A,w)}}for(var k=-g+y;k<=g-b;k+=2){for(var j,x=i+k,O=(j=k===-g||k!==g&&c[x-1]<c[x+1]?c[x+1]:c[x-1]+1)-k;j<a&&O<o&&t.charAt(a-j-1)===r.charAt(o-O-1);)j++,O++;if(c[x]=j,j>a)b+=2;else if(O>o)y+=2;else if(!f){if((_=i+p-k)>=0&&_<s&&-1!==u[_]){var A;w=i+(A=u[_])-_;if(A>=(j=a-j))return n(t,r,A,w)}}}}return[[e,t],[1,r]]}(a,l)}(p=p.substring(0,p.length-m),f=f.substring(0,f.length-m));return _&&k.unshift([0,_]),w&&k.push([0,w]),d(k,b),h&&function(t){var n=!1,r=[],p=0,f=null,v=0,h=0,y=0,b=0,g=0;for(;v<t.length;)0==t[v][0]?(r[p++]=v,h=b,y=g,b=0,g=0,f=t[v][1]):(1==t[v][0]?b+=t[v][1].length:g+=t[v][1].length,f&&f.length<=Math.max(h,y)&&f.length<=Math.max(b,g)&&(t.splice(r[p-1],0,[e,f]),t[r[p-1]+1][0]=1,p--,v=--p>0?r[p-1]:-1,h=0,y=0,b=0,g=0,f=null,n=!0)),v++;n&&d(t);(function(e){function t(e,t){if(!e||!t)return 6;var n=e.charAt(e.length-1),r=t.charAt(0),a=n.match(l),o=r.match(l),d=a&&n.match(i),p=o&&r.match(i),f=d&&n.match(s),v=p&&r.match(s),h=f&&e.match(u),y=v&&t.match(c);return h||y?5:f||v?4:a&&!d&&p?3:d||p?2:a||o?1:0}var n=1;for(;n<e.length-1;){if(0==e[n-1][0]&&0==e[n+1][0]){var r=e[n-1][1],a=e[n][1],d=e[n+1][1],p=o(r,a);if(p){var f=a.substring(a.length-p);r=r.substring(0,r.length-p),a=f+a.substring(0,a.length-p),d=f+d}for(var v=r,h=a,y=d,b=t(r,a)+t(a,d);a.charAt(0)===d.charAt(0);){r+=a.charAt(0),a=a.substring(1)+d.charAt(0),d=d.substring(1);var g=t(r,a)+t(a,d);g>=b&&(b=g,v=r,h=a,y=d)}e[n-1][1]!=v&&(v?e[n-1][1]=v:(e.splice(n-1,1),n--),e[n][1]=h,y?e[n+1][1]=y:(e.splice(n+1,1),n--))}n++}})(t),v=1;for(;v<t.length;){if(t[v-1][0]==e&&1==t[v][0]){var m=t[v-1][1],_=t[v][1],w=a(m,_),k=a(_,m);w>=k?(w>=m.length/2||w>=_.length/2)&&(t.splice(v,0,[0,_.substring(0,w)]),t[v-1][1]=m.substring(0,m.length-w),t[v+1][1]=_.substring(w),v++):(k>=m.length/2||k>=_.length/2)&&(t.splice(v,0,[0,m.substring(0,k)]),t[v-1][0]=1,t[v-1][1]=_.substring(0,_.length-k),t[v+1][0]=e,t[v+1][1]=m.substring(k),v++),v++}v++}}(k),k}function n(e,n,r,a){var o=e.substring(0,r),l=n.substring(0,a),i=e.substring(r),s=n.substring(a),u=t(o,l),c=t(i,s);return u.concat(c)}function r(e,t){if(!e||!t||e.charAt(0)!==t.charAt(0))return 0;for(var n=0,r=Math.min(e.length,t.length),a=r,o=0;n<a;)e.substring(o,a)==t.substring(o,a)?o=n=a:r=a,a=Math.floor((r-n)/2+n);return p(e.charCodeAt(a-1))&&a--,a}function a(e,t){var n=e.length,r=t.length;if(0==n||0==r)return 0;n>r?e=e.substring(n-r):n<r&&(t=t.substring(0,n));var a=Math.min(n,r);if(e==t)return a;for(var o=0,l=1;;){var i=e.substring(a-l),s=t.indexOf(i);if(-1==s)return o;l+=s,0!=s&&e.substring(a-l)!=t.substring(0,l)||(o=l,l++)}}function o(e,t){if(!e||!t||e.slice(-1)!==t.slice(-1))return 0;for(var n=0,r=Math.min(e.length,t.length),a=r,o=0;n<a;)e.substring(e.length-a,e.length-o)==t.substring(t.length-a,t.length-o)?o=n=a:r=a,a=Math.floor((r-n)/2+n);return f(e.charCodeAt(e.length-a))&&a--,a}var l=/[^a-zA-Z0-9]/,i=/\s/,s=/[\r\n]/,u=/\n\r?\n$/,c=/^\r?\n\r?\n/;function d(t,n){t.push([0,""]);for(var a,l=0,i=0,s=0,u="",c="";l<t.length;)if(l<t.length-1&&!t[l][1])t.splice(l,1);else switch(t[l][0]){case 1:s++,c+=t[l][1],l++;break;case e:i++,u+=t[l][1],l++;break;case 0:var p=l-s-i-1;if(n){if(p>=0&&h(t[p][1])){var f=t[p][1].slice(-1);if(t[p][1]=t[p][1].slice(0,-1),u=f+u,c=f+c,!t[p][1]){t.splice(p,1),l--;var y=p-1;t[y]&&1===t[y][0]&&(s++,c=t[y][1]+c,y--),t[y]&&t[y][0]===e&&(i++,u=t[y][1]+u,y--),p=y}}if(v(t[l][1])){f=t[l][1].charAt(0);t[l][1]=t[l][1].slice(1),u+=f,c+=f}}if(l<t.length-1&&!t[l][1]){t.splice(l,1);break}if(u.length>0||c.length>0){u.length>0&&c.length>0&&(0!==(a=r(c,u))&&(p>=0?t[p][1]+=c.substring(0,a):(t.splice(0,0,[0,c.substring(0,a)]),l++),c=c.substring(a),u=u.substring(a)),0!==(a=o(c,u))&&(t[l][1]=c.substring(c.length-a)+t[l][1],c=c.substring(0,c.length-a),u=u.substring(0,u.length-a)));var b=s+i;0===u.length&&0===c.length?(t.splice(l-b,b),l-=b):0===u.length?(t.splice(l-b,b,[1,c]),l=l-b+1):0===c.length?(t.splice(l-b,b,[e,u]),l=l-b+1):(t.splice(l-b,b,[e,u],[1,c]),l=l-b+2)}0!==l&&0===t[l-1][0]?(t[l-1][1]+=t[l][1],t.splice(l,1)):l++,s=0,i=0,u="",c=""}""===t[t.length-1][1]&&t.pop();var g=!1;for(l=1;l<t.length-1;)0===t[l-1][0]&&0===t[l+1][0]&&(t[l][1].substring(t[l][1].length-t[l-1][1].length)===t[l-1][1]?(t[l][1]=t[l-1][1]+t[l][1].substring(0,t[l][1].length-t[l-1][1].length),t[l+1][1]=t[l-1][1]+t[l+1][1],t.splice(l-1,1),g=!0):t[l][1].substring(0,t[l+1][1].length)==t[l+1][1]&&(t[l-1][1]+=t[l+1][1],t[l][1]=t[l][1].substring(t[l+1][1].length)+t[l+1][1],t.splice(l+1,1),g=!0)),l++;g&&d(t,n)}function p(e){return e>=55296&&e<=56319}function f(e){return e>=56320&&e<=57343}function v(e){return f(e.charCodeAt(0))}function h(e){return p(e.charCodeAt(e.length-1))}function y(t,n,r,a){return h(t)||v(a)?null:function(e){for(var t=[],n=0;n<e.length;n++)e[n][1].length>0&&t.push(e[n]);return t}([[0,t],[e,n],[1,r],[0,a]])}function b(e,n,r,a){return t(e,n,r,a,!0)}return b.INSERT=1,b.DELETE=e,b.EQUAL=0,jt=b}var It,Ct={exports:{}};function St(){return It||(It=1,function(e,t){var n="__lodash_hash_undefined__",r=9007199254740991,a="[object Arguments]",o="[object Boolean]",l="[object Date]",i="[object Function]",s="[object GeneratorFunction]",u="[object Map]",c="[object Number]",d="[object Object]",p="[object Promise]",f="[object RegExp]",v="[object Set]",h="[object String]",y="[object Symbol]",b="[object WeakMap]",g="[object ArrayBuffer]",m="[object DataView]",_="[object Float32Array]",w="[object Float64Array
2]",k="[object Int8Array]",j="[object Int16Array]",x="[object Int32Array]",O="[object Uint8Array]",A="[object Uint8ClampedArray]",I="[object Uint16Array]",C="[object Uint32Array]",S=/\w*$/,E=/^\[object .+?Constructor\]$/,N=/^(?:0|[1-9]\d*)$/,L={};L[a]=L["[object Array]"]=L[g]=L[m]=L[o]=L[l]=L[_]=L[w]=L[k]=L[j]=L[x]=L[u]=L[c]=L[d]=L[f]=L[v]=L[h]=L[y]=L[O]=L[A]=L[I]=L[C]=!0,L["[object Error]"]=L[i]=L[b]=!1;var P="object"==typeof Fe&&Fe&&Fe.Object===Object&&Fe,T="object"==typeof self&&self&&self.Object===Object&&self,M=P||T||Function("return this")(),V=t&&!t.nodeType&&t,R=V&&e&&!e.nodeType&&e,U=R&&R.exports===V;function z(e,t){return e.set(t[0],t[1]),e}function q(e,t){return e.add(t),e}function H(e,t,n,r){for(var a=-1,o=e?e.length:0;++a<o;)n=t(n,e[a],a,e);return n}function F(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(n){}return t}function B(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function D(e,t){return function(n){return e(t(n))}}function $(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var W,Q=Array.prototype,Y=Function.prototype,G=Object.prototype,J=M["__core-js_shared__"],K=(W=/[^.]+$/.exec(J&&J.keys&&J.keys.IE_PROTO||""))?"Symbol(src)_1."+W:"",X=Y.toString,Z=G.hasOwnProperty,ee=G.toString,te=RegExp("^"+X.call(Z).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ne=U?M.Buffer:void 0,re=M.Symbol,ae=M.Uint8Array,oe=D(Object.getPrototypeOf,Object),le=Object.create,ie=G.propertyIsEnumerable,se=Q.splice,ue=Object.getOwnPropertySymbols,ce=ne?ne.isBuffer:void 0,de=D(Object.keys,Object),pe=Re(M,"DataView"),fe=Re(M,"Map"),ve=Re(M,"Promise"),he=Re(M,"Set"),ye=Re(M,"WeakMap"),be=Re(Object,"create"),ge=Be(pe),me=Be(fe),_e=Be(ve),we=Be(he),ke=Be(ye),je=re?re.prototype:void 0,xe=je?je.valueOf:void 0;function Oe(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Ae(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Ie(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Ce(e){this.__data__=new Ae(e)}function Se(e,t){var n=$e(e)||function(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&We(e)}(e)&&Z.call(e,"callee")&&(!ie.call(e,"callee")||ee.call(e)==a)}(e)?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],r=n.length,o=!!r;for(var l in e)!Z.call(e,l)||o&&("length"==l||qe(l,r))||n.push(l);return n}function Ee(e,t,n){var r=e[t];Z.call(e,t)&&De(r,n)&&(void 0!==n||t in e)||(e[t]=n)}function Ne(e,t){for(var n=e.length;n--;)if(De(e[n][0],t))return n;return-1}function Le(e,t,n,r,p,b,E){var N;if(r&&(N=b?r(e,p,b,E):r(e)),void 0!==N)return N;if(!Ge(e))return e;var P=$e(e);if(P){if(N=function(e){var t=e.length,n=e.constructor(t);t&&"string"==typeof e[0]&&Z.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!t)return function(e,t){var n=-1,r=e.length;t||(t=Array(r));for(;++n<r;)t[n]=e[n];return t}(e,N)}else{var T=ze(e),M=T==i||T==s;if(Qe(e))return function(e,t){if(t)return e.slice();var n=new e.constructor(e.length);return e.copy(n),n}(e,t);if(T==d||T==a||M&&!b){if(F(e))return b?e:{};if(N=function(e){return"function"!=typeof e.constructor||He(e)?{}:(t=oe(e),Ge(t)?le(t):{});var t}(M?{}:e),!t)return function(e,t){return Me(e,Ue(e),t)}(e,function(e,t){return e&&Me(t,Je(t),e)}(N,e))}else{if(!L[T])return b?e:{};N=function(e,t,n,r){var a=e.constructor;switch(t){case g:return Te(e);case o:case l:return new a(+e);case m:return function(e,t){var n=t?Te(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,r);case _:case w:case k:case j:case x:case O:case A:case I:case C:return function(e,t){var n=t?Te(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}(e,r);case u:return function(e,t,n){var r=t?n(B(e),!0):B(e);return H(r,z,new e.constructor)}(e,r,n);case c:case h:return new a(e);case f:return function(e){var t=new e.constructor(e.source,S.exec(e));return t.lastIndex=e.lastIndex,t}(e);case v:return function(e,t,n){var r=t?n($(e),!0):$(e);return H(r,q,new e.constructor)}(e,r,n);case y:return i=e,xe?Object(xe.call(i)):{}}var i}(e,T,Le,t)}}E||(E=new Ce);var V=E.get(e);if(V)return V;if(E.set(e,N),!P)var R=n?function(e){return function(e,t,n){var r=t(e);return $e(e)?r:function(e,t){for(var n=-1,r=t.length,a=e.length;++n<r;)e[a+n]=t[n];return e}(r,n(e))}(e,Je,Ue)}(e):Je(e);return function(e,t){for(var n=-1,r=e?e.length:0;
vendor: 5,035 bytes, line 2
2++n<r&&!1!==t(e[n],n,e););}(R||e,function(a,o){R&&(a=e[o=a]),Ee(N,o,Le(a,t,n,r,o,e,E))}),N}function Pe(e){return!(!Ge(e)||(t=e,K&&K in t))&&(Ye(e)||F(e)?te:E).test(Be(e));var t}function Te(e){var t=new e.constructor(e.byteLength);return new ae(t).set(new ae(e)),t}function Me(e,t,n,r){n||(n={});for(var a=-1,o=t.length;++a<o;){var l=t[a];Ee(n,l,e[l])}return n}function Ve(e,t){var n,r,a=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?a["string"==typeof t?"string":"hash"]:a.map}function Re(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return Pe(n)?n:void 0}Oe.prototype.clear=function(){this.__data__=be?be(null):{}},Oe.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},Oe.prototype.get=function(e){var t=this.__data__;if(be){var r=t[e];return r===n?void 0:r}return Z.call(t,e)?t[e]:void 0},Oe.prototype.has=function(e){var t=this.__data__;return be?void 0!==t[e]:Z.call(t,e)},Oe.prototype.set=function(e,t){return this.__data__[e]=be&&void 0===t?n:t,this},Ae.prototype.clear=function(){this.__data__=[]},Ae.prototype.delete=function(e){var t=this.__data__,n=Ne(t,e);return!(n<0)&&(n==t.length-1?t.pop():se.call(t,n,1),!0)},Ae.prototype.get=function(e){var t=this.__data__,n=Ne(t,e);return n<0?void 0:t[n][1]},Ae.prototype.has=function(e){return Ne(this.__data__,e)>-1},Ae.prototype.set=function(e,t){var n=this.__data__,r=Ne(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},Ie.prototype.clear=function(){this.__data__={hash:new Oe,map:new(fe||Ae),string:new Oe}},Ie.prototype.delete=function(e){return Ve(this,e).delete(e)},Ie.prototype.get=function(e){return Ve(this,e).get(e)},Ie.prototype.has=function(e){return Ve(this,e).has(e)},Ie.prototype.set=function(e,t){return Ve(this,e).set(e,t),this},Ce.prototype.clear=function(){this.__data__=new Ae},Ce.prototype.delete=function(e){return this.__data__.delete(e)},Ce.prototype.get=function(e){return this.__data__.get(e)},Ce.prototype.has=function(e){return this.__data__.has(e)},Ce.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Ae){var r=n.__data__;if(!fe||r.length<199)return r.push([e,t]),this;n=this.__data__=new Ie(r)}return n.set(e,t),this};var Ue=ue?D(ue,Object):function(){return[]},ze=function(e){return ee.call(e)};function qe(e,t){return!!(t=null==t?r:t)&&("number"==typeof e||N.test(e))&&e>-1&&e%1==0&&e<t}function He(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||G)}function Be(e){if(null!=e){try{return X.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function De(e,t){return e===t||e!=e&&t!=t}(pe&&ze(new pe(new ArrayBuffer(1)))!=m||fe&&ze(new fe)!=u||ve&&ze(ve.resolve())!=p||he&&ze(new he)!=v||ye&&ze(new ye)!=b)&&(ze=function(e){var t=ee.call(e),n=t==d?e.constructor:void 0,r=n?Be(n):void 0;if(r)switch(r){case ge:return m;case me:return u;case _e:return p;case we:return v;case ke:return b}return t});var $e=Array.isArray;function We(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=r}(e.length)&&!Ye(e)}var Qe=ce||function(){return!1};function Ye(e){var t=Ge(e)?ee.call(e):"";return t==i||t==s}function Ge(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Je(e){return We(e)?Se(e):function(e){if(!He(e))return de(e);var t=[];for(var n in Object(e))Z.call(e,n)&&"constructor"!=n&&t.push(n);return t}(e)}e.exports=function(e){return Le(e,!0,!0)}}(Ct,Ct.exports)),Ct.exports}var Et,Nt={exports:{}};function Lt(){return Et||(Et=1,function(e,t){var n="__lodash_hash_undefined__",r=9007199254740991,a="[object Arguments]",o="[object Array]",l="[object Boolean]",i="[object Date]",s="[object Error]",u="[object Function]",c="[object Map]",d="[object Number]",p="[object Object]",f="[object Promise]",v="[object RegExp]",h="[object Set]",y="[object String]",b="[object Symbol]",g="[object WeakMap]",m="[object ArrayBuffer]",_="[object DataView]",w=/^\[object .+?Constructor\]$/,k=/^(?:0|[1-9]\d*)$/,j={};j["[object Float32Array]"]=j["[object Float64Array]"]=j["[object Int8Array]"]=j["[object Int16Array]"]=j["[object Int32Array]"]=j["[object Uint8Array]"]=j["[object Uint8ClampedArray]"]=j["[object Uint16Array]"]=j["[object Uint32Array]"]=!0,j[a]=j[o]=j[m]=j[l]=j[_]=j[i]=j[s]=j[u]=j[c]=j[d]=j[p]=j[v]=j[h]=j[y]=j[g]=!1;var x="object"==typeof Fe&&Fe&&Fe.Object===Object&&Fe,O="object"==typeof self&&self&&self.Object===Object&&self,A=x||O||Function("return this")(),I=t&&!t.nodeType&&t,C=I&&e&&!e.nodeType&&e,S=C&&C.exports===I,E=S&&x.process,N=function(){try{return E&&E.binding&&E.binding("util")}catch(e){}}(),L=N&&N.isTypedArray;function P(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function T(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function M(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}var V,R,U,z=Array.prototype,q=Function.prototype,H=Object.prototype,F=A["__core-js_shared__"],B=q.toString,D=H.hasOwnProperty,$=(V=/[^.]+$/.exec(F&&F.keys&&F.keys.IE_PROTO||""))?"Symbol(sr
2c)_1."+V:"",W=H.toString,Q=RegExp("^"+B.call(D).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Y=S?A.Buffer:void 0,G=A.Symbol,J=A.Uint8Array,K=H.propertyIsEnumerable,X=z.splice,Z=G?G.toStringTag:void 0,ee=Object.getOwnPropertySymbols,te=Y?Y.isBuffer:void 0,ne=(R=Object.keys,U=Object,function(e){return R(U(e))}),re=Ne(A,"DataView"),ae=Ne(A,"Map"),oe=Ne(A,"Promise"),le=Ne(A,"Set"),ie=Ne(A,"WeakMap"),se=Ne(Object,"create"),ue=Me(re),ce=Me(ae),de=Me(oe),pe=Me(le),fe=Me(ie),ve=G?G.prototype:void 0,he=ve?ve.valueOf:void 0;function ye(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function be(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function ge(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function me(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new ge;++t<n;)this.add(e[t])}function _e(e){var t=this.__data__=new be(e);this.size=t.size}function we(e,t){var n=Ue(e),r=!n&&Re(e),a=!n&&!r&&ze(e),o=!n&&!r&&!a&&$e(e),l=n||r||a||o,i=l?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],s=i.length;for(var u in e)!D.call(e,u)||l&&("length"==u||a&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||Te(u,s))||i.push(u);return i}function ke(e,t){for(var n=e.length;n--;)if(Ve(e[n][0],t))return n;return-1}function je(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Z&&Z in Object(e)?function(e){var t=D.call(e,Z),n=e[Z];try{e[Z]=void 0;var r=!0}catch(o){}var a=W.call(e);r&&(t?e[Z]=n:delete e[Z]);return a}(e):function(e){return W.call(e)}(e)}function xe(e){return De(e)&&je(e)==a}function Oe(e,t,n,r,u){return e===t||(null==e||null==t||!De(e)&&!De(t)?e!=e&&t!=t:function(e,t,n,r,u,f){var g=Ue(e),w=Ue(t),k=g?o:Pe(e),j=w?o:Pe(t),x=(k=k==a?p:k)==p,O=(j=j==a?p:j)==p,A=k==j;if(A&&ze(e)){if(!ze(t))return!1;g=!0,x=!1}if(A&&!x)return f||(f=new _e),g||$e(e)?Ce(e,t,n,r,u,f):function(e,t,n,r,a,o,u){switch(n){case _:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case m:return!(e.byteLength!=t.byteLength||!o(new J(e),new J(t)));case l:case i:case d:return Ve(+e,+t);case s:return e.name==t.name&&e.message==t.message;case v:case y:return e==t+"";case c:var p=T;case h:var f=1&r;if(p||(p=M),e.size!=t.size&&!f)return!1;var g=u.get(e);if(g)return g==t;r|=2,u.set(e,t);var w=Ce(p(e),p(t),r,a,o,u);return u.delete(e),w;case b:if(he)return he.call(e)==he.call(t)}return!1}(e,t,k,n,r,u,f);if(!(1&n)){var I=x&&D.call(e,"__wrapped__"),C=O&&D.call(t,"__wrapped__");
vendor: 5,448 bytes, line 2
2if(I||C){var S=I?e.value():e,E=C?t.value():t;return f||(f=new _e),u(S,E,n,r,f)}}if(!A)return!1;return f||(f=new _e),function(e,t,n,r,a,o){var l=1&n,i=Se(e),s=i.length,u=Se(t),c=u.length;if(s!=c&&!l)return!1;var d=s;for(;d--;){var p=i[d];if(!(l?p in t:D.call(t,p)))return!1}var f=o.get(e);if(f&&o.get(t))return f==t;var v=!0;o.set(e,t),o.set(t,e);var h=l;for(;++d<s;){var y=e[p=i[d]],b=t[p];if(r)var g=l?r(b,y,p,t,e,o):r(y,b,p,e,t,o);if(!(void 0===g?y===b||a(y,b,n,r,o):g)){v=!1;break}h||(h="constructor"==p)}if(v&&!h){var m=e.constructor,_=t.constructor;m==_||!("constructor"in e)||!("constructor"in t)||"function"==typeof m&&m instanceof m&&"function"==typeof _&&_ instanceof _||(v=!1)}return o.delete(e),o.delete(t),v}(e,t,n,r,u,f)}(e,t,n,r,Oe,u))}function Ae(e){return!(!Be(e)||function(e){return!!$&&$ in e}(e))&&(qe(e)?Q:w).test(Me(e))}function Ie(e){if(n=(t=e)&&t.constructor,r="function"==typeof n&&n.prototype||H,t!==r)return ne(e);var t,n,r,a=[];for(var o in Object(e))D.call(e,o)&&"constructor"!=o&&a.push(o);return a}function Ce(e,t,n,r,a,o){var l=1&n,i=e.length,s=t.length;if(i!=s&&!(l&&s>i))return!1;var u=o.get(e);if(u&&o.get(t))return u==t;var c=-1,d=!0,p=2&n?new me:void 0;for(o.set(e,t),o.set(t,e);++c<i;){var f=e[c],v=t[c];if(r)var h=l?r(v,f,c,t,e,o):r(f,v,c,e,t,o);if(void 0!==h){if(h)continue;d=!1;break}if(p){if(!P(t,function(e,t){if(l=t,!p.has(l)&&(f===e||a(f,e,n,r,o)))return p.push(t);var l})){d=!1;break}}else if(f!==v&&!a(f,v,n,r,o)){d=!1;break}}return o.delete(e),o.delete(t),d}function Se(e){return function(e,t,n){var r=t(e);return Ue(e)?r:function(e,t){for(var n=-1,r=t.length,a=e.length;++n<r;)e[a+n]=t[n];return e}(r,n(e))}(e,We,Le)}function Ee(e,t){var n,r,a=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?a["string"==typeof t?"string":"hash"]:a.map}function Ne(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return Ae(n)?n:void 0}ye.prototype.clear=function(){this.__data__=se?se(null):{},this.size=0},ye.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},ye.prototype.get=function(e){var t=this.__data__;if(se){var r=t[e];return r===n?void 0:r}return D.call(t,e)?t[e]:void 0},ye.prototype.has=function(e){var t=this.__data__;return se?void 0!==t[e]:D.call(t,e)},ye.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=se&&void 0===t?n:t,this},be.prototype.clear=function(){this.__data__=[],this.size=0},be.prototype.delete=function(e){var t=this.__data__,n=ke(t,e);return!(n<0)&&(n==t.length-1?t.pop():X.call(t,n,1),--this.size,!0)},be.prototype.get=function(e){var t=this.__data__,n=ke(t,e);return n<0?void 0:t[n][1]},be.prototype.has=function(e){return ke(this.__data__,e)>-1},be.prototype.set=function(e,t){var n=this.__data__,r=ke(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},ge.prototype.clear=function(){this.size=0,this.__data__={hash:new ye,map:new(ae||be),string:new ye}},ge.prototype.delete=function(e){var t=Ee(this,e).delete(e);return this.size-=t?1:0,t},ge.prototype.get=function(e){return Ee(this,e).get(e)},ge.prototype.has=function(e){return Ee(this,e).has(e)},ge.prototype.set=function(e,t){var n=Ee(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},me.prototype.add=me.prototype.push=function(e){return this.__data__.set(e,n),this},me.prototype.has=function(e){return this.__data__.has(e)},_e.prototype.clear=function(){this.__data__=new be,this.size=0},_e.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},_e.prototype.get=function(e){return this.__data__.get(e)},_e.prototype.has=function(e){return this.__data__.has(e)},_e.prototype.set=function(e,t){var n=this.__data__;if(n instanceof be){var r=n.__data__;if(!ae||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new ge(r)}return n.set(e,t),this.size=n.size,this};var Le=ee?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,r=null==e?0:e.length,a=0,o=[];++n<r;){var l=e[n];t(l,n,e)&&(o[a++]=l)}return o}(ee(e),function(t){return K.call(e,t)}))}:function(){return[]},Pe=je;function Te(e,t){return!!(t=null==t?r:t)&&("number"==typeof e||k.test(e))&&e>-1&&e%1==0&&e<t}function Me(e){if(null!=e){try{return B.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function Ve(e,t){return e===t||e!=e&&t!=t}(re&&Pe(new re(new ArrayBuffer(1)))!=_||ae&&Pe(new ae)!=c||oe&&Pe(oe.resolve())!=f||le&&Pe(new le)!=h||ie&&Pe(new ie)!=g)&&(Pe=function(e){var t=je(e),n=t==p?e.constructor:void 0,r=n?Me(n):"";if(r)switch(r){case ue:return _;case ce:return c;case de:return f;case pe:return h;case fe:return g}return t});var Re=xe(function(){return arguments}())?xe:function(e){return De(e)&&D.call(e,"callee")&&!K.call(e,"callee")},Ue=Array.isArray;var ze=te||function(){return!1};function qe(e){if(!Be(e))return!1;var t=je(e);return t==u||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}function He(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=r}function Be(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function De(e){return null!=e&&"object"==typeof e}var $e=L?function(e){return function(t){return e(t)}}(L):function(e){return De(e)&&He(e.length)&&!!j[je(e)]};function We(e){return null!=(t=e)&&He(t.length)&&!qe(t)?we(e):Ie(e);var t}e.exports=function(e,t){return Oe(e,t)}}(Nt,Nt.exports)),Nt.exports}var Pt,Tt={};var Mt,Vt={};
2function Rt(){return Mt||(Mt=1,Object.defineProperty(Vt,"__esModule",{value:!0}),(e||(e={})).length=function(e){return"number"==typeof e.delete?e.delete:"number"==typeof e.retain?e.retain:"object"==typeof e.retain&&null!==e.retain?1:"string"==typeof e.insert?e.insert.length:1},Vt.default=e),Vt;var e}var Ut,zt,qt={};var Ht=(zt||(zt=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.AttributeMap=t.OpIterator=t.Op=void 0;const n=At(),r=St(),a=Lt(),o=function(){if(Pt)return Tt;Pt=1,Object.defineProperty(Tt,"__esModule",{value:!0});const e=St(),t=Lt();var n,r;return(r=n||(n={})).compose=function(t={},n={},r=!1){"object"!=typeof t&&(t={}),"object"!=typeof n&&(n={});let a=e(n);r||(a=Object.keys(a).reduce((e,t)=>(null!=a[t]&&(e[t]=a[t]),e),{}));for(const e in t)void 0!==t[e]&&void 0===n[e]&&(a[e]=t[e]);return Object.keys(a).length>0?a:void 0},r.diff=function(e={},n={}){"object"!=typeof e&&(e={}),"object"!=typeof n&&(n={});const r=Object.keys(e).concat(Object.keys(n)).reduce((r,a)=>(t(e[a],n[a])||(r[a]=void 0===n[a]?null:n[a]),r),{});return Object.keys(r).length>0?r:void 0},r.invert=function(e={},t={}){e=e||{};const n=Object.keys(t).reduce((n,r)=>(t[r]!==e[r]&&void 0!==e[r]&&(n[r]=t[r]),n),{});return Object.keys(e).reduce((n,r)=>(e[r]!==t[r]&&void 0===t[r]&&(n[r]=null),n),n)},r.transform=function(e,t,n=!1){if("object"!=typeof e)return t;if("object"!=typeof t)return;if(!n)return t;const r=Object.keys(t).reduce((n,r)=>(void 0===e[r]&&(n[r]=t[r]),n),{});return Object.keys(r).length>0?r:void 0},Tt.default=n,Tt}();t.AttributeMap=o.default;const l=Rt();t.Op=l.default;const i=function(){if(Ut)return qt;Ut=1,Object.defineProperty(qt,"__esModule",{value:!0});const e=Rt();return qt.default=class{constructor(e){this.ops=e,this.index=0,this.offset=0}hasNext(){return this.peekLength()<1/0}next(t){t||(t=1/0);const n=this.ops[this.index];if(n){const r=this.offset,a=e.default.length(n);if(t>=a-r?(t=a-r,this.index+=1,this.offset=0):this.offset+=t,"number"==typeof n.delete)return{delete:t};{const e={};return n.attributes&&(e.attributes=n.attributes),"number"==typeof n.retain?e.retain=t:"object"==typeof n.retain&&null!==n.retain?e.retain=n.retain:"string"==typeof n.insert?e.insert=n.insert.substr(r,t):e.insert=n.insert,e}}return{retain:1/0}}peek(){return this.ops[this.index]}peekLength(){return this.ops[this.index]?e.default.length(this.ops[this.index])-this.offset:1/0}peekType(){const e=this.ops[this.index];return e?"number"==typeof e.delete?"delete":"number"==typeof e.retain||"object"==typeof e.retain&&null!==e.retain?"retain":"insert":"retain"}rest(){if(this.hasNext()){if(0===this.offset)return this.ops.slice(this.index);{const e=this.offset,t=this.index,n=this.next(),r=this.ops.slice(this.index);return this.offset=e,this.index=t,[n].concat(r)}}return[]}},qt}();t.OpIterator=i.default;const s=String.fromCharCode(0),u=(e,t)=>{if("object"!=typeof e||null===e)throw new Error("cannot retain a "+typeof e);if("object"!=typeof t||null===t)throw new Error("cannot retain a "+typeof t);const n=Object.keys(e)[0];if(!n||n!==Object.keys(t)[0])throw new Error(`embed types not matched: ${n} != ${Object.keys(t)[0]}`);return[n,e[n],t[n]]};class c{constructor(e){Array.isArray(e)?this.ops=e:null!=e&&Array.isArray(e.ops)?this.ops=e.ops:this.ops=[]}static registerEmbed(e,t){this.handlers[e]=t}static unregisterEmbed(e){delete this.handlers[e]}static getHandler(e){const t=this.handlers[e];if(!t)throw new Error(`no handlers for embed type "${e}"`);return t}insert(e,t){const n={};return"string"==typeof e&&0===e.length?this:(n.insert=e,null!=t&&"object"==typeof t&&Object.keys(t).length>0&&(n.attributes=t),this.push(n))}delete(e){return e<=0?this:this.push({delete:e})}retain(e,t){if("number"==typeof e&&e<=0)return this;const n={retain:e};return null!=t&&"object"==typeof t&&Object.keys(t).length>0&&(n.attributes=t),this.push(n)}push(e){let t=this.ops.length,n=this.ops[t-1];if(e=r(e),"object"==typeof n){if("number"==typeof e.delete&&"number"==typeof n.delete)return this.ops[t-1]={delete:n.delete+e.delete},this;if("number"==typeof n.delete&&null!=e.insert&&(t-=1,n=this.ops[t-1],"object"!=typeof n))return this.ops.unshift(e),this;if(a(e.attributes,n.attributes)){if("string"==typeof e.insert&&"string"==typeof n.insert)return this.ops[t-1]={insert:n.insert+e.insert},"object"==typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this;if("number"==typeof e.retain&&"number"==typeof n.retain)return this.ops[t-1]={retain:n.retain+e.retain},"object"==typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this}}return t===this.ops.length?this.ops.push(e):this.ops.splice(t,0,e),this}chop(){const e=this.ops[this.ops.length-1];return e&&"number"==typeof e.retain&&!e.attributes&&this.ops.pop(),this}filter(e){return this.ops.filter(e)}forEach(e){this.ops.forEach(e)}map(e){return this.ops.map(e)}partition(e){const t=[],n=[];return this.forEach(r=>{(e(r)?t:n).push(r)}),[t,n]}reduce(e,t){return this.ops.reduce(e,t)}
2changeLength(){return this.reduce((e,t)=>t.insert?e+l.default.length(t):t.delete?e-t.delete:e,0)}length(){return this.reduce((e,t)=>e+l.default.length(t),0)}slice(e=0,t=1/0){const n=[],r=new i.default(this.ops);let a=0;for(;a<t&&r.hasNext();){let o;a<e?o=r.next(e-a):(o=r.next(t-a),n.push(o)),a+=l.default.length(o)}return new c(n)}compose(e){const t=new i.default(this.ops),n=new i.default(e.ops),r=[],l=n.peek();if(null!=l&&"number"==typeof l.retain&&null==l.attributes){let e=l.retain;for(;"insert"===t.peekType()&&t.peekLength()<=e;)e-=t.peekLength(),r.push(t.next());l.retain-e>0&&n.next(l.retain-e)}const s=new c(r);for(;t.hasNext()||n.hasNext();)if("insert"===n.peekType())s.push(n.next());else if("delete"===t.peekType())s.push(t.next());else{const e=Math.min(t.peekLength(),n.peekLength()),r=t.next(e),l=n.next(e);if(l.retain){const i={};if("number"==typeof r.retain)i.retain="number"==typeof l.retain?e:l.retain;else if("number"==typeof l.retain)null==r.retain?i.insert=r.insert:i.retain=r.retain;else{const e=null==r.retain?"insert":"retain",[t,n,a]=u(r[e],l.retain),o=c.getHandler(t);i[e]={[t]:o.compose(n,a,"retain"===e)}}const d=o.default.compose(r.attributes,l.attributes,"number"==typeof r.retain);if(d&&(i.attributes=d),s.push(i),!n.hasNext()&&a(s.ops[s.ops.length-1],i)){const e=new c(t.rest());return s.concat(e).chop()}}else"number"==typeof l.delete&&("number"==typeof r.retain||"object"==typeof r.retain&&null!==r.retain)&&s.push(l)}return s.chop()}concat(e){const t=new c(this.ops.slice());return e.ops.length>0&&(t.push(e.ops[0]),t.ops=t.ops.concat(e.ops.slice(1))),t}diff(e,t){if(this.ops===e.ops)return new c;const r=[this,e].map(t=>t.map(n=>{if(null!=n.insert)return"string"==typeof n.insert?n.insert:s;throw new Error("diff() called "+(t===e?"on":"with")+" non-document")}).join("")),l=new c,u=n(r[0],r[1],t,!0),d=new i.default(this.ops),p=new i.default(e.ops);return u.forEach(e=>{let t=e[1].length;for(;t>0;){let r=0;switch(e[0]){case n.INSERT:r=Math.min(p.peekLength(),t),l.push(p.next(r));break;case n.DELETE:r=Math.min(t,d.peekLength()),d.next(r),l.delete(r);break;case n.EQUAL:r=Math.min(d.peekLength(),p.peekLength(),t);const e=d.next(r),i=p.next(r);a(e.insert,i.insert)?l.retain(r,o.default.diff(e.attributes,i.attributes)):l.push(i).delete(r)}t-=r}}),l.chop()}eachLine(e,t="\n"){const n=new i.default(this.ops);let r=new c,a=0;for(;n.hasNext();){if("insert"!==n.peekType())return;const o=n.peek(),i=l.default.length(o)-n.peekLength(),s="string"==typeof o.insert?o.insert.indexOf(t,i)-i:-1;if(s<0)r.push(n.next());else if(s>0)r.push(n.next(s));else{if(!1===e(r,n.next(1).attributes||{},a))return;a+=1,r=new c}}r.length()>0&&e(r,{},a)}invert(e){const t=new c;return this.reduce((n,r)=>{if(r.insert)t.delete(l.default.length(r));else{if("number"==typeof r.retain&&null==r.attributes)return t.retain(r.retain),n+r.retain;if(r.delete||"number"==typeof r.retain){const a=r.delete||r.retain;return e.slice(n,n+a).forEach(e=>{r.delete?t.push(e):r.retain&&r.attributes&&t.retain(l.default.length(e),o.default.invert(r.attributes,e.attributes))}),n+a}if("object"==typeof r.retain&&null!==r.retain){const a=e.slice(n,n+1),l=new i.default(a.ops).next(),[s,d,p]=u(r.retain,l.insert),f=c.getHandler(s);return t.retain({[s]:f.invert(d,p)},o.default.invert(r.attributes,l.attributes)),n+1}}return n},0),t.chop()}transform(e,t=!1){if(t=!!t,"number"==typeof e)return this.transformPosition(e,t);const n=e,r=new i.default(this.ops),a=new i.default(n.ops),s=new c;for(;r.hasNext()||a.hasNext();)if("insert"!==r.peekType()||!t&&"insert"===a.peekType())if("insert"===a.peekType())s.push(a.next());else{const e=Math.min(r.peekLength(),a.peekLength()),n=r.next(e),l=a.next(e);if(n.delete)continue;if(l.delete)s.push(l);else{const r=n.retain,a=l.retain;let i="object"==typeof a&&null!==a?a:e;if("object"==typeof r&&null!==r&&"object"==typeof a&&null!==a){const e=Object.keys(r)[0];if(e===Object.keys(a)[0]){const n=c.getHandler(e);n&&(i={[e]:n.transform(r[e],a[e],t)})}}s.retain(i,o.default.transform(n.attributes,l.attributes,t))}}else s.retain(l.default.length(r.next()));return s.chop()}transformPosition(e,t=!1){t=!!t;const n=new i.default(this.ops);let r=0;for(;n.hasNext()&&r<=e;){const a=n.peekLength(),o=n.peekType();n.next(),"delete"!==o?("insert"===o&&(r<e||!t)&&(e+=a),r+=a):e-=Math.min(a,e-r)}return e}}c.Op=l.default,c.OpIterator=i.default,c.AttributeMap=o.default,c.handlers={},t.default=c,e.exports=c,e.exports.default=c}(Ot,Ot.exports)),Ot.exports);const Ft=Be(Ht),Bt={essential:[[{header:[1,2,3,4,5,6,!1]}],["bold","italic","underline"],[{list:"ordered"},{list:"bullet"},{align:[]}],["blockquote","code-block","link"],[{color:[]},"clean"]],minimal:[[{header:1},{header:2}],["bold","italic","underline"],[{list:"ordered"},{list:"bullet"},{align:[]}]],full:[["bold","italic","underline","strike"],["blockquote","code-block"],[{header:1},{header:2}],[{list:"ordered"},{list:"bullet"}],[{script:"sub"},{script:"super"}],[{indent:"-1"},{indent:"+1"}],[{direction:"rtl"}],[{size:["small",!1,"large","huge"]}],[{header:[1,2,3,4,5,6,!1]}],[{color:[]},{background:[]}],[{font:[]}],[{align:[]}],["link","video","image"],["clean"]]};let Dt,$t,Wt=[];const Qt=()=>"undefined"!=typeof document,Yt=()=>u(void 0,null,function*(){if(Dt)return Dt;if(!Qt())throw new Error("@vueup/vue-quill: Quill can only be loaded in a browser environment.");return null!=$t||($t=g(()=>u(void 0,null,function*(){const{default:e}=yield import("./quill--qV90aY3.js");return{default:e}}),__vite__mapDeps([2,1,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22])).then(({default:e})=>(Dt=e,(e=>{const t=Wt;Wt=[];for(const n of t)e.register(...n)})(e),e))),$t}),Gt=()=>{if(Dt)return Dt;throw new Error("@vueup/vue-quill: Quill is not loaded yet. Use loadQuill() in a browser-only lifecycle hook, or access the Quill instance from the ready event.")};new Proxy(function(){},{get(e,t){if("register"===t)return(...e)=>{if(Dt)return Dt.register(...e);Wt.push(e),Qt()&&Yt()};const n=Gt(),r=n[t];return"function"==typeof r?r.bind(n):r},construct:(e,t)=>
2new(Gt())(...t)});const Jt=new Set(["attributors","blots","formats","modules","themes","ui"]),Kt=e=>(e=>{const[t]=e.split("/");return Jt.has(t)})(e)?e:`modules/${e}`,Xt=e=>{const t=Kt(e),n="modules/";return t.startsWith(n)?t.slice(8):void 0},Zt=new Set(["attributors","blots","formats"]),en=(e,t,n)=>{const r=Kt(t.name),a=e.imports;a&&r in a||e.register(r,t.module),n&&(e=>{const[t]=e.split("/");return Zt.has(t)})(r)&&n.register(t.module)},tn=Re({name:"QuillEditor",inheritAttrs:!1,props:{content:{type:[String,Object]},contentType:{type:String,default:"delta",validator:e=>["delta","html","text"].includes(e)},enable:{type:Boolean,default:!0},readOnly:{type:Boolean,default:!1},placeholder:{type:String,required:!1},theme:{type:String,default:"snow",validator:e=>["snow","bubble",""].includes(e)},toolbar:{type:[String,Array,Object,Boolean],required:!1,default:void 0,validator:e=>"boolean"==typeof e?!1===e:"string"!=typeof e||""===e||("#"===e.charAt(0)||-1!==Object.keys(Bt).indexOf(e))},modules:{type:Object,required:!1},options:{type:Object,required:!1},globalOptions:{type:Object,required:!1}},emits:["textChange","selectionChange","editorChange","update:content","focus","blur","ready"],setup:(e,t)=>{pe(()=>{a=!1,l()}),ve(()=>{n=null,a=!0});let n,r,a=!1;const o=me(),l=()=>u(void 0,null,function*(){var l,s;if(!o.value)return;const u=o.value,d=yield Yt();if(!a&&o.value&&o.value===u){if(r=i(),e.modules)if(Array.isArray(e.modules))for(const t of e.modules)en(d,t,r.registry);else en(d,e.modules,r.registry);n=new d(o.value,r),g(e.content),n.on("text-change",f),n.on("selection-change",h),n.on("editor-change",y),"bubble"!==e.theme&&o.value.classList.remove("ql-bubble"),"snow"!==e.theme&&o.value.classList.remove("ql-snow"),null===(s=null===(l=c())||void 0===l?void 0:l.container)||void 0===s||s.addEventListener("mousedown",e=>{e.preventDefault()}),t.emit("ready",n)}}),i=()=>{const t={};if(""!==e.theme&&(t.theme=e.theme),e.readOnly&&(t.readOnly=e.readOnly),e.placeholder&&(t.placeholder=e.placeholder),!1===e.toolbar?t.modules={toolbar:!1}:e.toolbar&&""!==e.toolbar&&(t.modules={toolbar:(()=>{if("object"==typeof e.toolbar)return e.toolbar;if("string"==typeof e.toolbar){return"#"===e.toolbar.charAt(0)?e.toolbar:Bt[e.toolbar]}})()}),e.modules){const n=(e=>{var t;const n={},r=Array.isArray(e)?e:[e];for(const a of r){const e=Xt(a.name);e&&(n[e]=null!==(t=a.options)&&void 0!==t?t:{})}return Object.keys(n).length>0?n:void 0})(e.modules);n&&(t.modules=Object.assign({},t.modules,n))}return Object.assign({},e.globalOptions,e.options,t)},s=e=>"object"==typeof e&&e?e.slice():e,c=()=>null==n?void 0:n.getModule("toolbar");let d;const p=e=>{if(typeof d==typeof e){if(e===d)return!0;if("object"==typeof e&&e&&"object"==typeof d&&d)return t=d.diff(e),!Object.values(t.ops).some(e=>!e.retain||1!==Object.keys(e).length)}var t;return!1},f=(n,r,a)=>{d=s(b()),p(e.content)||t.emit("update:content",d),t.emit("textChange",{delta:n,oldContents:r,source:a})},v=me(),h=(e,r,a)=>{v.value=!!(null==n?void 0:n.hasFocus()),t.emit("selectionChange",{range:e,oldRange:r,source:a})};de(v,e=>{e?t.emit("focus",o):t.emit("blur",o)});const y=(...e)=>{"text-change"===e[0]&&t.emit("editorChange",{name:e[0],delta:e[1],oldContents:e[2],source:e[3]}),"selection-change"===e[0]&&t.emit("editorChange",{name:e[0],range:e[1],oldRange:e[2],source:e[3]})},b=(t,r)=>"html"===e.contentType?w():"text"===e.contentType?m(t,r):null==n?void 0:n.getContents(t,r),g=(t,r="api")=>{const a=t||("delta"===e.contentType?new Ft:"");"html"===e.contentType?k(a):"text"===e.contentType?_(a,r):null==n||n.setContents(a,r),d=s(a)},m=(e,t)=>{var r;return null!==(r=null==n?void 0:n.getText(e,t))&&void 0!==r?r:""},_=(e,t="api")=>{null==n||n.setText(e,t)},w=()=>{var e;return null!==(e=null==n?void 0:n.root.innerHTML)&&void 0!==e?e:""},k=e=>{n&&(n.root.innerHTML=e)};return de(()=>e.content,e=>{if(!n||!e||p(e))return;const t=n.getSelection();t&&fe(()=>null==n?void 0:n.setSelection(t)),g(e)},{deep:!0}),de(()=>e.enable,e=>{n&&n.enable(e)}),{editor:o,getEditor:()=>o.value,getToolbar:()=>{var e;return null===(e=c())||void 0===e?void 0:e.container},getQuill:()=>{if(n)return n;throw'The quill editor hasn\'t been instantiated yet,\n make sure to call this method when the editor ready\n or use v-on:ready="onReady(quill)" event instead.'},getContents:b,setContents:g,getHTML:w,setHTML:k,pasteHTML:(e,t="api")=>{const r=null==n?void 0:n.clipboard.convert({html:e});r&&(null==n||n.setContents(r,t))},focus:()=>{null==n||n.focus()},getText:m,setText:_,reinit:()=>{fe(()=>{var e,r;!t.slots.toolbar&&n&&(null===(r=null===(e=c())||void 0===e?void 0:e.container)||void 0===r||r.remove()),l()})}}},render(){var e,t;return[null===(t=(e=this.$slots).toolbar)||void 0===t?void 0:t.call(e),Ue("div",i({ref:"editor"},this.$attrs))]}}),nn={class:"editor"},rn=ce({__name:"editor",props:{modelValue:{type:String},height:{type:Number,default:null},minHeight:{type:Number,default:null},readOnly:{type:Boolean,default:!1},fileSize:{type:Number,default:5},type:{type:String,default:"url"}},setup(e){const t=me(),n=e,r=me({theme:"snow",bounds:document.body,debug:"warn",modules:{toolbar:!n.readOnly&&[["bold","italic","underline","strike"],["blockquote","code-block"],[{list:"ordered"},{list:"bullet"}],[{indent:"-1"},{indent:"+1"}],[{size:["small",!1,"large","huge"]}],[{header:[1,2,3,4,5,6,!1]}],[{color:[]},{background:[]}],[{align:[]}],["clean"],["link","image","video"]]},placeholder:n.readOnly?"":"请è¾å
¥å
容",readOnly:n.readOnly}),a=Se(()=>{let e={};return n.minHeight&&(e.minHeight=`${n.minHeight}px`),n.height&&(e.height=`${n.height}px`),e}),o=me("");return de(()=>n.modelValue,e=>{e!==o.value&&(o.value=void 0===e?"<p></p>":e)},{immediate:!0}),(e,n)=>(he(),ye("div",nn,[Oe(Pe(tn),{ref_key:"quillEditorRef",ref:t,content:o.value,"onUpdate:content":n[0]||(n[0]=e=>o.value=e),contentType:"html",onTextChange:n[1]||(n[1]=t=>e.$emit("update:modelValue",o.value)),options:r.value,style:Le(a.value)}
2,null,8,["content","options","style"])]))}},[["__scopeId","data-v-83639bb0"]]),an={class:"view"},on=ce({__name:"tab-info",emits:["set-info"],setup(e,{expose:t,emit:n}){const r=I(),a=ue({content_type:"course",entry_point:"course_detail"}),o=n,l=me({}),i=me(!1),s=me(!1);return t({getData:e=>u(this,null,function*(){var t;if(null==e||null==e)return;const n=a.begin(String(e),r.query.discovery_id);i.value=!0;const{code:u,data:c}=yield v(e);"course"===r.name&&String(r.query.id)===String(e)&&(l.value={},200==u&&c&&(l.value=c,_.value||n(String(r.query.id)),o("set-info",l.value)),s.value=!(null==(t=l.value)?void 0:t.description),i.value=!1)})}),(e,t)=>{const n=we("el-tab-pane"),r=Me("myloading");return he(),Ce(n,{lazy:""},{default:Ae(()=>[Oe(qe,{empty:s.value,"is-backtop":!1},{default:Ae(({className:e})=>{var n;return[Ve((he(),ye("div",{class:Te(["course-view-scrollbar",e])},[be("div",an,[(null==(n=l.value)?void 0:n.description)?(he(),Ce(rn,{key:0,readOnly:!0,modelValue:l.value.description,"onUpdate:modelValue":t[0]||(t[0]=e=>l.value.description=e)},null,8,["modelValue"])):Ie("",!0)])],2)),[[r,i.value]])]}),_:1},8,["empty"])]),_:1})}}},[["__scopeId","data-v-bcd69686"]]),ln={class:"payment-box"},sn={class:"payment"},un={class:"course-price"},cn={key:0,class:"pay-trigger"},dn={class:"bottom"},pn={class:"keep-px wechat-pay-box"},fn={class:"pay-box"},vn={key:1,class:"wechat-pay-box-img"},hn={class:"tips"},yn={class:"keep-px ali-pay-box"},bn=["srcdoc"],gn={class:"tips"},mn={class:"payment-info-agreement"},_n=ce({__name:"coursePaymentView",props:{showBtn:{type:Boolean,default:!1},couponCode:{type:String,default:""}},emits:["update:vip","open-dialog","pay:success"],setup(e,{expose:t,emit:n}){const r=C(),a=e=>F({locale:r.language,defaultValue:e}),o=1,l=2,c=3,d=4,p="WECHAT_PAY",f="ALI_PAY",v=n,h=me([{label:S("components.wechatPay"),value:p},{label:S("components.alipay"),value:f}]);me(h.value[0].value);const y=me(),b=me(),g=me(!0),m=me(!1),w=me(""),k=me(""),j=me(""),x=me(""),O=me(""),A=me(0),I=me({}),D=me({}),$=me(!0),W=me(!1),Q=me({orderUuids:{[p]:"",[f]:""},urls:{[p]:"",[f]:""},timers:{[p]:null,[f]:null}});let Y={};const G=new Map;let J="";const K=()=>{var e;return s(i(i({},I.value),A.value&&"object"==typeof A.value?A.value:{}),{commerceType:"course",courseId:String(I.value.courseId||I.value.id||""),couponTemplateId:null==(e=D.value)?void 0:e.couponTemplateId})},X=(e,t,n={})=>{try{return!(!t||_.value)&&U(e,t,n)}catch(r){return!1}},Z=(e,t)=>{try{const n=G.get(e);if(!n)return!1;const r="payment_success"===t?"completed":"payment_failed"===t?"failed":"cancelled",a=M(Y,e,r);return Y=a.state,a.accepted?("completed"===r?X("payment_success_seen",n,{order_id:e,confirmation_source:"client_status"}):"failed"===r?X("payment_failed",n,{order_id:e,failure_stage:"payment",reason_code:t}):X("checkout_cancel",n,{order_id:e,reason_code:t}),!0):!1}catch(n){return!1}},ee=(e,t)=>X("checkout_create_failed",e,{failure_stage:"order_create",reason_code:t}),te=e=>{try{L(Y).forEach(t=>Z(t,e))}catch(t){}},ne=Se(()=>{const{hasActivity:e,activityPrice:t="",sellingPrice:n=""}=I.value;return e&&t||n}),re=()=>u(this,null,function*(){ie(),se()}),ae=e=>{e&&(null==e?void 0:e.userCouponCode)?D.value=e:D.value={userCouponCode:""}},oe=e=>u(this,null,function*(){try{const t=(Array.isArray(e)?e:e?[e]:[w.value,k.value]).filter(e=>e&&e.trim());if(!t.length)return!1;const{code:n,msg:r}=yield P({orderNos:t});return 200===n||(console.error("订ååæ¶å¤±è´¥:",r),!1)}catch(t){return console.error("åæ¶è®¢åæ¶åçé误:",t),!1}}),le=e=>u(this,null,function*(){var t;let n=null,r="";try{const{skuCode:o}=I.value;if(!o)return void console.warn("ååSKU代ç ä¸åå¨");n=(e=>{try{return _.value?null:z(K(),{paymentType:e,pricingVersion:"course",triggerScene:"course_purchase",entryPoint:I.value.entryPoint})}catch(t){return null}})(e);const l=Q.value.orderUuids[e];l&&(Z(l,"checkout_replaced"),yield oe(l));const{userCouponCode:i=""}=D.value;X("begin_checkout",n),null==(t=y.value)||t.useGetCouponPrice({skuCode:o,userCouponCode:i});const{code:s,data:u,msg:c}=yield V({payType:e,skuCode:o,couponCodes:[i]});if(200===s&&u){if(r=u.orderNo||"",r?((e,t,n)=>{try{if(!e||!t)return null;
2const r=q(t,n),a=M(Y,e,"pending");return Y=a.state,a.accepted?(G.set(e,r),X("checkout_order_created",r,{order_id:e}),J?Z(e,J):X("add_payment_info",r,{order_id:e}),r):G.get(e)}catch(r){return null}})(u.orderNo,n,u):ee(n,"invalid_order_response"),Q.value.orderUuids[e]=u.orderNo,!u.qrCode||"SYSTEM_PAY"===(null==u?void 0:u.payType))return void(g.value=!1);g.value=!0,Q.value.urls[e]=u.qrCode,e===p?j.value=u.qrCode:x.value=u.qrCode,O.value=u.discountDesc,m.value=!1,ue(u.orderNo,e)}else ee(n,200===s?"invalid_order_response":"api_rejected"),R(c||a(`è·å${e===p?"微信":"æ¯ä»å®"}æ¯ä»äºç»´ç 失败`))}catch(o){r||ee(n,"request_error"),console.error(`è·å${e===p?"微信":"æ¯ä»å®"}æ¯ä»äºç»´ç æ¶åçé误:`,o),R(a(`è·å${e===p?"微信":"æ¯ä»å®"}æ¯ä»äºç»´ç 失败`))}}),ie=()=>u(this,null,function*(){j.value="",yield le(p)}),se=()=>u(this,null,function*(){x.value="",yield le(f)}),ue=(e,t)=>u(this,null,function*(){if(e)try{const{code:n,data:r}=yield H({orderNo:e});200===n&&ce(null==r?void 0:r.status,t,null==r?void 0:r.orgCode,e)}catch(n){console.error("è·åæ¯ä»ç¶ææ¶åçé误:",n)}}),ce=(e,t,n="",r=Q.value.orderUuids[t])=>{fe(t);const a=()=>{const e=Q.value.orderUuids[t];e&&ue(e,t)},i={[o]:()=>{Q.value.timers[t]=setInterval(a,2e3)},[l]:()=>{Z(r,"payment_timeout"),m.value=!0,fe(t)},[c]:()=>{Z(r,"payment_success")&&te("checkout_replaced"),ve(),Q.value.orderUuids={},B("msgSucceeList.pay_succee"),n&&v("open-dialog",n),v("update:vip"),v("pay:success")},[d]:()=>{Z(r,"payment_failed"),R("msgErrorList.pay_fail"),ge()}}[e];i?i():console.warn("æªç¥ç订åç¶æ:",e)},fe=e=>{const t=Q.value.timers[e];t&&(clearInterval(t),Q.value.timers[e]=null)},ve=()=>{Object.keys(Q.value.timers).forEach(e=>{const t=Q.value.timers[e];t&&(clearInterval(t),Q.value.timers[e]=null)})},ge=()=>{ve(),j.value="",x.value="",A.value=0,O.value="",m.value=!1},we=e=>u(this,null,function*(){te("checkout_replaced");try{const t=Object.values(Q.value.orderUuids).filter(e=>e);return t.length>0&&(yield oe(t),Q.value.orderUuids={}),null==e||e(),!0}catch(t){console.error("åæ¶è®¢å失败:",t)}}),ke=e=>(J="page_unload",te("page_unload"),we(),!1);return de(()=>localStorage.getItem("localeLang"),e=>{$.value=!e||"zh-CN"===e},{deep:!0,immediate:!0}),pe(()=>{re(),window.addEventListener("beforeunload",ke)}),_e(()=>{J="cashier_closed",te("cashier_closed"),window.removeEventListener("beforeunload",ke),W.value=!1,ve()}),t({updatePackage:e=>u(this,null,function*(){var t;if(e){null==(t=y.value)||t.reset(),I.value=e,A.value={};try{_.value||T([K()],"course_checkout","course")}catch(n){}}}),updateCoupon:ae,reset:ge,usecCancelOrder:oe,cancelOrdersOnPageRefresh:we,useUpdateCouponAndPay:e=>{ae(e),re()},handlePayChange:re}),(e,t)=>{const n=Me("loading");return he(),ye("div",ln,[be("div",sn,[be("div",un,[t[1]||(t[1]=be("span",{class:"price-logo"},"ï¿¥",-1)),je(xe(ne.value||I.value.price),1)]),g.value?(he(),ye("div",cn,[be("div",dn,[be("div",pn,[Ve((he(),ye("div",fn,[m.value?(he(),ye("div",{key:0,class:"refresh-code",onClick:ie},[be("div",null,xe(Pe(S)("components.qrCodeExpired")),1),be("div",null,xe(Pe(S)("components.pleaseRefresh")),1)])):Ie("",!0),j.value?(he(),ye("div",vn,[...t[2]||(t[2]=[be("img",{src:"https://image.ark.art/assets/wechat-pay.png",alt:""},null,-1)])])):Ie("",!0),j.value?(he(),Ce(E,{key:2,content:j.value,options:{width:156,height:156}},null,8,["content"])):Ie("",!0)])),[[n,!j.value]]),be("div",hn,xe(Pe(S)("components.wechatQrcode")),1)]),be("div",yn,[Ve((he(),ye("div",{class:"pay-box",ref_key:"aliPayRef",ref:b},[m.value?(he(),ye("div",{key:0,class:"refresh-code",onClick:se},[be("div",null,xe(Pe(S)("components.qrCodeExpired")),1),be("div",null,xe(Pe(S)("components.pleaseRefresh")),1)])):Ie("",!0),x.value?(he(),ye("iframe",{key:1,style:{width:"100%",height:"100%"},srcdoc:x.value,frameborder:"no",border:"0",marginwidth:"0",marginheight:"0",scrolling:"no"},null,8,bn)):Ie("",!0)])),[[n,!x.value]]),be("div",gn,xe(Pe(S)("components.aliQrcode")),1)])])])):Ie("",!0),be("div",mn,[je(xe(Pe(S)("components.paymentAgreement")),1),be("span",{onClick:t[0]||(t[0]=e=>Pe(N)({activeText:"3"}))},xe(Pe(S)("components.arkAiMemberAgreement")),1)])])])}}}
2,[["__scopeId","data-v-cdb76d23"]]),wn={__name:"index",props:{item:{type:Object,default:()=>({})}},emits:["confirm"],setup(e,{emit:t}){const n=t,r=e,a=me(null),o=me(null),l=()=>{var e;null==(e=a.value)||e.close(),n("confirm")};return pe(()=>u(this,null,function*(){var e;null==(e=a.value)||e.show(),fe(()=>{var e,t;null==(e=o.value)||e.updatePackage(i({},r.item)),null==(t=o.value)||t.useUpdateCouponAndPay({})})})),(e,t)=>(he(),Ce(D,{ref_key:"dialogRef",ref:a,title:"è´ä¹°è¯¾ç¨","close-on-click-modal":!1,"close-on-press-escape":!1,size:"small",class:"buy-course-dialog"},{default:Ae(()=>[Oe(_n,{ref_key:"paymentViewRef",ref:o,"onPay:success":l},null,512)]),_:1},512))}};const kn={key:0,class:"desktop-course-host"},jn=["src"],xn={key:0,class:"desktop-course-host-state"},On={class:"course-view-container"},An={class:"left"},In={class:"right-panel-wrapper"},Cn={class:"bottom"},Sn={key:2,class:"desktop-course-loading"},En={key:0},Nn=ce({__name:"index",setup(e){const t=I(),n=W(),r=Q(),a=C(),o=Y()&&"course"===t.name,l="desktop-course-embed"===t.name&&G(),p=me(),f=me(!1),v=me(""),g=me(0),m=me(!l),_=me(""),w=o?crypto.randomUUID():J(String(t.query[K]||"")),k=(()=>{if(!o)return"";try{const e=new URL("https://ark.art");return"https:"===e.protocol?e.origin:""}catch(e){return""}})(),j=Se(()=>{if(!o||!k)return"";const e=new URL("/desktop-course-embed",k);return e.searchParams.set("id",String(t.query.id||"")),e.searchParams.set(K,w),e.toString()}),x=me("course"),O=me("info"),A=me({}),S=me(),E=me(),N=me(),L=me(!1),P=me(),T=me({}),M=me(!1),V=me(null),U=me(""),z=me({visible:!0}),q=me(!1);let H=null,F=null,B=!1;const D=()=>{null!==F&&window.clearTimeout(F),F=window.setTimeout(()=>{v.value="æç¨é¡µå 载失败ï¼è¯·æ£æ¥ç½ç»åéè¯"},15e3)},se=()=>{f.value=!1,v.value="",g.value+=1,D()},ue=(e,t={})=>{l&&window.parent!==window&&window.parent.postMessage(i({source:Z,type:e,channelId:w},t),"*")},ce=()=>{l&&window.parent!==window&&ue("arkart:desktop:ready")},ge=e=>{var t,i,s,u,c,d,h,y,b;if(o){if(e.source!==(null==(t=p.value)?void 0:t.contentWindow)||e.origin!==k||(null==(i=e.data)?void 0:i.source)!==Z||(null==(s=e.data)?void 0:s.channelId)!==w)return;if("arkart:desktop:close-course"===(null==(u=e.data)?void 0:u.type))return void n.push({name:"inspiration",query:{type:"tutorial"}});if("arkart:desktop:error"===(null==(c=e.data)?void 0:c.type))return f.value=!1,void(v.value=(null==(d=e.data)?void 0:d.message)||"æç¨é¡µå 载失败ï¼è¯·éè¯");if("arkart:desktop:auth-expired"===(null==(h=e.data)?void 0:h.type))return r.loginOut(),void n.replace({path:"/desktop-login",query:{redirect:"/inspiration?type=tutorial"}});if("arkart:desktop:authenticated"===(null==(y=e.data)?void 0:y.type))return f.value=!0,v.value="",void(null!==F&&window.clearTimeout(F));if("arkart:desktop:ready"!==(null==(b=e.data)?void 0:b.type))return;return void(e=>{var t;o&&(null==(t=p.value)?void 0:t.contentWindow)&&p.value.contentWindow.postMessage(e,k)})({source:ie,type:"arkart:desktop:auth",channelId:w,session:{token:re.value,token2:ne.value,userid:te.value,deviceType:ee(),locale:a.language}}
2)}if(!l||B||e.source!==window.parent)return;const g=ae(e.data,w);g&&(B=!0,oe(g.deviceType),g.locale&&a.changeLang(g.locale),le(g,()=>{B=!1,m.value=!0,_.value="",null!==H&&window.clearInterval(H),fe(()=>{Qe(),ue("arkart:desktop:authenticated")})},()=>{B=!1,_.value="ç»å½ç¶æåæ¥å¤±è´¥ï¼è¯·å
³éæç¨åéè¯",ue("arkart:desktop:error",{message:"ç»å½ç¶æåæ¥å¤±è´¥ï¼è¯·éè¯"})},{silent:!0,suppressNewUserPrompt:!0}))},_e=()=>{l&&window.parent!==window&&ue("arkart:desktop:close-course")},ke=e=>{l&&(e.preventDefault(),ue("arkart:desktop:auth-expired"))},Ce=e=>u(this,null,function*(){P.value=e.target,yield fe(),L.value=!0}),Ne=()=>{L.value=!1},Le=()=>{q.value=!q.value},{courseList:Re,getData:Ue,loadMore:qe,resetCourseList:He}=function(){const e=me([]);let t=1,n=!1,r=-1,a=0;const o=o=>u(this,null,function*(){let l=a;try{if(n||r==e.value.length)return;l=++a,e.value.length||(z.value.visible=!0),n=!0;const{code:s,data:u}=yield b({pageNumber:t,pageSize:15,courseId:V.value});if(l!==a)return;if(n=!1,z.value.visible=!1,200==s&&u.records){r=u.totalRow;const t=Array.isArray(u.records)?u.records.map(e=>i(i({},e),{pageNumber:1,pageSize:999,loading:!1,isMore:!1,totalRow:0})):[];e.value.push(...t),o&&o(e.value[0])}}catch(s){if(l!==a)return;console.error(s),z.value.visible=!1}});return{courseList:e,getData:o,loadMore:()=>{t+=1,o()},resetCourseList:()=>{a+=1,t=1,r=-1,n=!1,e.value=[]},courseLoading:z}}(),Fe=e=>u(this,null,function*(){Ne(),We(e.classHourId)});const Be=e=>{var t,n;const{props:r}=e;"download"==r.name&&(null==(n=null==(t=S.value)?void 0:t.getData)||n.call(t,V.value))},De=e=>{var t,n,r,a,o,l;T.value=s(i({},e),{isFree:null!=(t=null==e?void 0:e.isFree)?t:1,preview:null!=(n=null==e?void 0:e.preview)?n:1,price:null!=(r=null==e?void 0:e.price)?r:0,skuCode:null!=(a=null==e?void 0:e.skuCode)?a:""});const{isFree:u,price:c,preview:d}=T.value;M.value=!0,u||null==(l=null==(o=N.value)?void 0:o.resetPreviewState)||l.call(o,c&&!d)},$e=(e="course_header")=>u(this,null,function*(){!function(e){u(this,null,function*(){return(null==e?void 0:e.skuType)?$(wn,e,!0):$(wn,{item:e.item,onConfirm:()=>{var t;null==(t=e.success)||t.call(e)}},!0)})}({success:()=>{location.reload()},item:s(i({},T.value),{entryPoint:e})})}),We=e=>u(this,null,function*(){const t=V.value,{code:n,data:r,msg:a}=yield y(e);
2t===V.value&&(200==n?(U.value=String(e),A.value=r):R(a))}),Qe=()=>{var e;He(),M.value=!1,T.value={},A.value={},U.value="",V.value=(null==(e=t.query)?void 0:e.id)||null,null!=V.value&&(Ue(e=>{var t,n;ft(e,Fe),null==(n=null==(t=E.value)?void 0:t.getData)||n.call(t,V.value)}),h(V.value))};return de(()=>t.query.id,()=>{o?(f.value=!1,v.value="",D()):l&&!m.value||Qe()}),pe(()=>(window.addEventListener("message",ge),window.addEventListener(X,ke),o?k?void D():void(v.value="æç¨æå¡å°åæªé
ç½®"):l?(ce(),void(H=window.setInterval(ce,1e3))):void Qe())),ve(()=>{window.removeEventListener("message",ge),window.removeEventListener(X,ke),null!==H&&window.clearInterval(H),null!==F&&window.clearTimeout(F)}),(e,t)=>{var n,r,a,i;const s=we("ark-button"),u=we("el-tabs"),h=we("el-popover"),y=Me("myloading"),b=Me("click-outside");return Pe(o)?(he(),ye("div",kn,[(he(),ye("iframe",{key:g.value,ref_key:"desktopCourseFrameRef",ref:p,class:"desktop-course-frame",src:j.value,title:"æç¨ä¸å¿",allow:"autoplay; encrypted-media; fullscreen; picture-in-picture",referrerpolicy:"origin"},null,8,jn)),f.value?Ie("",!0):Ve((he(),ye("div",xn,[v.value?(he(),ye(Ee,{key:0},[be("span",null,xe(v.value),1),Oe(s,{type:"primary",onClick:se},{default:Ae(()=>[...t[7]||(t[7]=[je("éæ°å è½½",-1)])]),_:1})],64)):Ie("",!0)])),[[y,{visible:!v.value}]])])):!Pe(l)||m.value?(he(),ye("div",{key:1,class:Te(["course-view scrollbar",{"course-view--desktop-embed":Pe(l)}])},[be("div",On,[be("div",{class:Te(["container",{"is-right-collapsed":q.value}])},[be("div",An,[Oe(tt,{ref_key:"videoViewRef",ref:N,item:A.value,view:null==(n=T.value)?void 0:n.viewCount,price:null==(r=T.value)?void 0:r.price,"course-id":V.value,"lesson-id":U.value,"access-ready":M.value,hasPaid:null==(a=T.value)?void 0:a.ifPurchase,isFree:null==(i=T.value)?void 0:i.isFree,class:"video-view",onBuy:$e,onHandlePopover:Ce},{leading:Ae(()=>[Oe(d,{class:"back-btn",type:"primary",path:"/inspiration?type=tutorial","emit-only":Pe(l),onBack:_e},null,8,["emit-only"])]),_:1},8,["item","view","price","course-id","lesson-id","access-ready","hasPaid","isFree"])]),be("div",In,[be("div",{class:"collapse-toggle-button",onClick:Le},[be("i",{class:Te(q.value?"icon-a-012":"icon-a-011")},null,2)]),be("div",{class:Te(["right",{"is-hidden":q.value}])},[Oe(u,{modelValue:x.value,"onUpdate:modelValue":t[3]||(t[3]=e=>x.value=e),onTabClick:Be},{default:Ae(()=>{var n,r;return[Ve(Oe(yt,{hasPaid:null==(n=T.value)?void 0:n.ifPurchase,isFree:null==(r=T.value)?void 0:r.isFree,active:A.value,label:e.$t("learning.courseCatalog"),name:"course",list:Pe(Re),"onUpdate:list":t[0]||(t[0]=e=>ze(Re)?Re.value=e:null),modelValue:A.value,"onUpdate:modelValue":t[1]||(t[1]=e=>A.value=e),onLoadMore:t[2]||(t[2]=e=>Pe(qe)()),onHandleItem:Fe},null,8,["hasPaid","isFree","active","label","list","modelValue"]),[[y,z.value]]),Oe(kt,{ref_key:"downloadRef",ref:S,label:e.$t("learning.courseMaterials"),name:"download",courseId:V.value},null,8,["label","courseId"])]}),_:1},8,["modelValue"])],2)])],2),be("div",Cn,[Oe(u,{modelValue:O.value,"onUpdate:modelValue":t[4]||(t[4]=e=>O.value=e)},{default:Ae(()=>[Oe(on,{ref_key:"infoRef",ref:E,onSetInfo:De,label:e.$t("learning.courseIntroduction"),name:"info"},null,8,["label"])]),_:1},8,["modelValue"])])]),Oe(c,{target:".course-view"}),Oe(h,{"virtual-ref":P.value,visible:L.value,placement:"top",trigger:"click","virtual-triggering":"","append-to":"#app","popper-style":"padding:0","popper-class":"ark-popper anthology-popper"},{default:Ae(()=>[Ve((he(),ye("div",null,[Ve(Oe(_t,{active:A.value,label:e.$t("learning.courseCatalog"),name:"course",list:Pe(Re),"onUpdate:list":t[5]||(t[5]=e=>ze(Re)?Re.value=e:null),onLoadMore:t[6]||(t[6]=e=>Pe(qe)()),onHandleItem:Fe},null,8,["active","label","list"]),[[y,z.value]])])),[[b,Ne]])]),_:1},8,["virtual-ref","visible"])],2)):Ve((he(),ye("div",Sn,[_.value?(he(),ye("span",En,xe(_.value),1)):Ie("",!0)])),[[y,{visible:!_.value}]])}}},[["__scopeId","data-v-b6900bad"]]),Ln=Object.freeze(Object.defineProperty({__proto__:null,default:Nn},Symbol.toStringTag,{value:"Module"}));export{Ft as D,Ht as a,Ln as i};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.