UNPKG

@extscreen/es3-ad-player

Version:

Vue-Next binding for ES native framework

20 lines (19 loc) 48.2 kB
import{ref as e,watch as t,resolveComponent as n,withDirectives as o,openBlock as r,createElementBlock as s,normalizeStyle as i,createBlock as a,createCommentVNode as l,vShow as c,defineComponent as u,h as p}from"vue";import{useESPlayerLog as d,useESPlayerInterceptorManager as f,useESPlayerPlayModeManager as h,ESPlayerLogLevel as _,ESPlayerPlayMode as g,ESPlayerInterceptorType as y,ESPlayerVolume as v,ESPlayerState as E}from"@extscreen/es3-player";import{registerElement as m,Native as P}from"@extscreen/es3-vue"; /** * @vue/shared v3.5.13 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/ /*! #__NO_SIDE_EFFECTS__ */ function S(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return e=>e in t}const b="production"!==process.env.NODE_ENV?Object.freeze({}):{};"production"===process.env.NODE_ENV||Object.freeze([]);const D=()=>{},N=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),O=Object.assign,L=Object.prototype.hasOwnProperty,C=(e,t)=>L.call(e,t),w=Array.isArray,A=e=>"[object Map]"===T(e),x=e=>"function"==typeof e,I=e=>"string"==typeof e,k=e=>"symbol"==typeof e,R=e=>null!==e&&"object"==typeof e,V=Object.prototype.toString,T=e=>V.call(e),M=e=>T(e).slice(8,-1),U=e=>I(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,F=(e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))})((e=>e.charAt(0).toUpperCase()+e.slice(1))),Y=(e,t)=>!Object.is(e,t);let $;const j=()=>$||($="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{});function z(e){if(w(e)){const t={};for(let n=0;n<e.length;n++){const o=e[n],r=I(o)?G(o):z(o);if(r)for(const e in r)t[e]=r[e]}return t}if(I(e)||R(e))return e}const B=/;(?![^(]*\))/g,H=/:([^]+)/,W=/\/\*[^]*?\*\//g;function G(e){const t={};return e.replace(W,"").split(B).forEach((e=>{if(e){const n=e.split(H);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function q(e){let t="";if(I(e))t=e;else if(w(e))for(let n=0;n<e.length;n++){const o=q(e[n]);o&&(t+=o+" ")}else if(R(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()} /** * @vue/reactivity v3.5.13 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/function K(e,...t){console.warn(`[Vue warn] ${e}`,...t)}let Z;const J=new WeakSet;class X{constructor(e){this.fn=e,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0}pause(){this.flags|=64}resume(){64&this.flags&&(this.flags&=-65,J.has(this)&&(J.delete(this),this.trigger()))}notify(){2&this.flags&&!(32&this.flags)||8&this.flags||function(e,t=!1){if(e.flags|=8,t)return e.next=ee,void(ee=e);e.next=Q,Q=e}(this)}run(){if(!(1&this.flags))return this.fn();this.flags|=2,he(this),re(this);const e=Z,t=ue;Z=this,ue=!0;try{return this.fn()}finally{"production"!==process.env.NODE_ENV&&Z!==this&&K("Active effect was not restored correctly - this is likely a Vue internal bug."),se(this),Z=e,ue=t,this.flags&=-3}}stop(){if(1&this.flags){for(let e=this.deps;e;e=e.nextDep)le(e);this.deps=this.depsTail=void 0,he(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){64&this.flags?J.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){ie(this)&&this.run()}get dirty(){return ie(this)}}let Q,ee,te=0;function ne(){te++}function oe(){if(--te>0)return;if(ee){let e=ee;for(ee=void 0;e;){const t=e.next;e.next=void 0,e.flags&=-9,e=t}}let e;for(;Q;){let t=Q;for(Q=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,1&t.flags)try{t.trigger()}catch(t){e||(e=t)}t=n}}if(e)throw e}function re(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function se(e){let t,n=e.depsTail,o=n;for(;o;){const e=o.prevDep;-1===o.version?(o===n&&(n=e),le(o),ce(o)):t=o,o.dep.activeLink=o.prevActiveLink,o.prevActiveLink=void 0,o=e}e.deps=t,e.depsTail=n}function ie(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(ae(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function ae(e){if(4&e.flags&&!(16&e.flags))return;if(e.flags&=-17,e.globalVersion===_e)return;e.globalVersion=_e;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!ie(e))return void(e.flags&=-3);const n=Z,o=ue;Z=e,ue=!0;try{re(e);const n=e.fn(e._value);(0===t.version||Y(n,e._value))&&(e._value=n,t.version++)}catch(e){throw t.version++,e}finally{Z=n,ue=o,se(e),e.flags&=-3}}function le(e,t=!1){const{dep:n,prevSub:o,nextSub:r}=e;if(o&&(o.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=o,e.nextSub=void 0),"production"!==process.env.NODE_ENV&&n.subsHead===e&&(n.subsHead=r),n.subs===e&&(n.subs=o,!o&&n.computed)){n.computed.flags&=-5;for(let e=n.computed.deps;e;e=e.nextDep)le(e,!0)}t||--n.sc||!n.map||n.map.delete(n.key)}function ce(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let ue=!0;const pe=[];function de(){pe.push(ue),ue=!1}function fe(){const e=pe.pop();ue=void 0===e||e}function he(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const e=Z;Z=void 0;try{t()}finally{Z=e}}}let _e=0;class ge{constructor(e,t){this.sub=e,this.dep=t,this.version=t.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class ye{constructor(e){this.computed=e,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,"production"!==process.env.NODE_ENV&&(this.subsHead=void 0)}track(e){if(!Z||!ue||Z===this.computed)return;let t=this.activeLink;if(void 0===t||t.sub!==Z)t=this.activeLink=new ge(Z,this),Z.deps?(t.prevDep=Z.depsTail,Z.depsTail.nextDep=t,Z.depsTail=t):Z.deps=Z.depsTail=t,ve(t);else if(-1===t.version&&(t.version=this.version,t.nextDep)){const e=t.nextDep;e.prevDep=t.prevDep,t.prevDep&&(t.prevDep.nextDep=e),t.prevDep=Z.depsTail,t.nextDep=void 0,Z.depsTail.nextDep=t,Z.depsTail=t,Z.deps===t&&(Z.deps=e)}return"production"!==process.env.NODE_ENV&&Z.onTrack&&Z.onTrack(O({effect:Z},e)),t}trigger(e){this.version++,_e++,this.notify(e)}notify(e){ne();try{if("production"!==process.env.NODE_ENV)for(let t=this.subsHead;t;t=t.nextSub)!t.sub.onTrigger||8&t.sub.flags||t.sub.onTrigger(O({effect:t.sub},e));for(let e=this.subs;e;e=e.prevSub)e.sub.notify()&&e.sub.dep.notify()}finally{oe()}}}function ve(e){if(e.dep.sc++,4&e.sub.flags){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let e=t.deps;e;e=e.nextDep)ve(e)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),"production"!==process.env.NODE_ENV&&void 0===e.dep.subsHead&&(e.dep.subsHead=e),e.dep.subs=e}}const Ee=new WeakMap,me=Symbol("production"!==process.env.NODE_ENV?"Object iterate":""),Pe=Symbol("production"!==process.env.NODE_ENV?"Map keys iterate":""),Se=Symbol("production"!==process.env.NODE_ENV?"Array iterate":"");function be(e,t,n){if(ue&&Z){let o=Ee.get(e);o||Ee.set(e,o=new Map);let r=o.get(n);r||(o.set(n,r=new ye),r.map=o,r.key=n),"production"!==process.env.NODE_ENV?r.track({target:e,type:t,key:n}):r.track()}}function De(e,t,n,o,r,s){const i=Ee.get(e);if(!i)return void _e++;const a=i=>{i&&("production"!==process.env.NODE_ENV?i.trigger({target:e,type:t,key:n,newValue:o,oldValue:r,oldTarget:s}):i.trigger())};if(ne(),"clear"===t)i.forEach(a);else{const r=w(e),s=r&&U(n);if(r&&"length"===n){const e=Number(o);i.forEach(((t,n)=>{("length"===n||n===Se||!k(n)&&n>=e)&&a(t)}))}else switch((void 0!==n||i.has(void 0))&&a(i.get(n)),s&&a(i.get(Se)),t){case"add":r?s&&a(i.get("length")):(a(i.get(me)),A(e)&&a(i.get(Pe)));break;case"delete":r||(a(i.get(me)),A(e)&&a(i.get(Pe)));break;case"set":A(e)&&a(i.get(me))}}oe()}function Ne(e){const t=ut(e);return t===e?t:(be(t,"iterate",Se),lt(e)?t:t.map(dt))}function Oe(e){return be(e=ut(e),"iterate",Se),e}const Le={__proto__:null,[Symbol.iterator](){return Ce(this,Symbol.iterator,dt)},concat(...e){return Ne(this).concat(...e.map((e=>w(e)?Ne(e):e)))},entries(){return Ce(this,"entries",(e=>(e[1]=dt(e[1]),e)))},every(e,t){return Ae(this,"every",e,t,void 0,arguments)},filter(e,t){return Ae(this,"filter",e,t,(e=>e.map(dt)),arguments)},find(e,t){return Ae(this,"find",e,t,dt,arguments)},findIndex(e,t){return Ae(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Ae(this,"findLast",e,t,dt,arguments)},findLastIndex(e,t){return Ae(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Ae(this,"forEach",e,t,void 0,arguments)},includes(...e){return Ie(this,"includes",e)},indexOf(...e){return Ie(this,"indexOf",e)},join(e){return Ne(this).join(e)},lastIndexOf(...e){return Ie(this,"lastIndexOf",e)},map(e,t){return Ae(this,"map",e,t,void 0,arguments)},pop(){return ke(this,"pop")},push(...e){return ke(this,"push",e)},reduce(e,...t){return xe(this,"reduce",e,t)},reduceRight(e,...t){return xe(this,"reduceRight",e,t)},shift(){return ke(this,"shift")},some(e,t){return Ae(this,"some",e,t,void 0,arguments)},splice(...e){return ke(this,"splice",e)},toReversed(){return Ne(this).toReversed()},toSorted(e){return Ne(this).toSorted(e)},toSpliced(...e){return Ne(this).toSpliced(...e)},unshift(...e){return ke(this,"unshift",e)},values(){return Ce(this,"values",dt)}};function Ce(e,t,n){const o=Oe(e),r=o[t]();return o===e||lt(e)||(r._next=r.next,r.next=()=>{const e=r._next();return e.value&&(e.value=n(e.value)),e}),r}const we=Array.prototype;function Ae(e,t,n,o,r,s){const i=Oe(e),a=i!==e&&!lt(e),l=i[t];if(l!==we[t]){const t=l.apply(e,s);return a?dt(t):t}let c=n;i!==e&&(a?c=function(t,o){return n.call(this,dt(t),o,e)}:n.length>2&&(c=function(t,o){return n.call(this,t,o,e)}));const u=l.call(i,c,o);return a&&r?r(u):u}function xe(e,t,n,o){const r=Oe(e);let s=n;return r!==e&&(lt(e)?n.length>3&&(s=function(t,o,r){return n.call(this,t,o,r,e)}):s=function(t,o,r){return n.call(this,t,dt(o),r,e)}),r[t](s,...o)}function Ie(e,t,n){const o=ut(e);be(o,"iterate",Se);const r=o[t](...n);return-1!==r&&!1!==r||!ct(n[0])?r:(n[0]=ut(n[0]),o[t](...n))}function ke(e,t,n=[]){de(),ne();const o=ut(e)[t].apply(e,n);return oe(),fe(),o}const Re=S("__proto__,__v_isRef,__isVue"),Ve=new Set(Object.getOwnPropertyNames(Symbol).filter((e=>"arguments"!==e&&"caller"!==e)).map((e=>Symbol[e])).filter(k));function Te(e){k(e)||(e=String(e));const t=ut(this);return be(t,"has",e),t.hasOwnProperty(e)}class Me{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){if("__v_skip"===t)return e.__v_skip;const o=this._isReadonly,r=this._isShallow;if("__v_isReactive"===t)return!o;if("__v_isReadonly"===t)return o;if("__v_isShallow"===t)return r;if("__v_raw"===t)return n===(o?r?tt:et:r?Qe:Xe).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const s=w(e);if(!o){let e;if(s&&(e=Le[t]))return e;if("hasOwnProperty"===t)return Te}const i=Reflect.get(e,t,ht(e)?e:n);return(k(t)?Ve.has(t):Re(t))?i:(o||be(e,"get",t),r?i:ht(i)?s&&U(t)?i:i.value:R(i)?o?ot(i):nt(i):i)}}class Ue extends Me{constructor(e=!1){super(!1,e)}set(e,t,n,o){let r=e[t];if(!this._isShallow){const t=at(r);if(lt(n)||at(n)||(r=ut(r),n=ut(n)),!w(e)&&ht(r)&&!ht(n))return!t&&(r.value=n,!0)}const s=w(e)&&U(t)?Number(t)<e.length:C(e,t),i=Reflect.set(e,t,n,ht(e)?e:o);return e===ut(o)&&(s?Y(n,r)&&De(e,"set",t,n,r):De(e,"add",t,n)),i}deleteProperty(e,t){const n=C(e,t),o=e[t],r=Reflect.deleteProperty(e,t);return r&&n&&De(e,"delete",t,void 0,o),r}has(e,t){const n=Reflect.has(e,t);return k(t)&&Ve.has(t)||be(e,"has",t),n}ownKeys(e){return be(e,"iterate",w(e)?"length":me),Reflect.ownKeys(e)}}class Fe extends Me{constructor(e=!1){super(!0,e)}set(e,t){return"production"!==process.env.NODE_ENV&&K(`Set operation on key "${String(t)}" failed: target is readonly.`,e),!0}deleteProperty(e,t){return"production"!==process.env.NODE_ENV&&K(`Delete operation on key "${String(t)}" failed: target is readonly.`,e),!0}}const Ye=new Ue,$e=new Fe,je=new Fe(!0),ze=e=>e,Be=e=>Reflect.getPrototypeOf(e);function He(e){return function(...t){if("production"!==process.env.NODE_ENV){const n=t[0]?`on key "${t[0]}" `:"";K(`${F(e)} operation ${n}failed: target is readonly.`,ut(this))}return"delete"!==e&&("clear"===e?void 0:this)}}function We(e,t){const n={get(n){const o=this.__v_raw,r=ut(o),s=ut(n);e||(Y(n,s)&&be(r,"get",n),be(r,"get",s));const{has:i}=Be(r),a=t?ze:e?ft:dt;return i.call(r,n)?a(o.get(n)):i.call(r,s)?a(o.get(s)):void(o!==r&&o.get(n))},get size(){const t=this.__v_raw;return!e&&be(ut(t),"iterate",me),Reflect.get(t,"size",t)},has(t){const n=this.__v_raw,o=ut(n),r=ut(t);return e||(Y(t,r)&&be(o,"has",t),be(o,"has",r)),t===r?n.has(t):n.has(t)||n.has(r)},forEach(n,o){const r=this,s=r.__v_raw,i=ut(s),a=t?ze:e?ft:dt;return!e&&be(i,"iterate",me),s.forEach(((e,t)=>n.call(o,a(e),a(t),r)))}};O(n,e?{add:He("add"),set:He("set"),delete:He("delete"),clear:He("clear")}:{add(e){t||lt(e)||at(e)||(e=ut(e));const n=ut(this);return Be(n).has.call(n,e)||(n.add(e),De(n,"add",e,e)),this},set(e,n){t||lt(n)||at(n)||(n=ut(n));const o=ut(this),{has:r,get:s}=Be(o);let i=r.call(o,e);i?"production"!==process.env.NODE_ENV&&Je(o,r,e):(e=ut(e),i=r.call(o,e));const a=s.call(o,e);return o.set(e,n),i?Y(n,a)&&De(o,"set",e,n,a):De(o,"add",e,n),this},delete(e){const t=ut(this),{has:n,get:o}=Be(t);let r=n.call(t,e);r?"production"!==process.env.NODE_ENV&&Je(t,n,e):(e=ut(e),r=n.call(t,e));const s=o?o.call(t,e):void 0,i=t.delete(e);return r&&De(t,"delete",e,void 0,s),i},clear(){const e=ut(this),t=0!==e.size,n="production"!==process.env.NODE_ENV?A(e)?new Map(e):new Set(e):void 0,o=e.clear();return t&&De(e,"clear",void 0,void 0,n),o}});return["keys","values","entries",Symbol.iterator].forEach((o=>{n[o]=function(e,t,n){return function(...o){const r=this.__v_raw,s=ut(r),i=A(s),a="entries"===e||e===Symbol.iterator&&i,l="keys"===e&&i,c=r[e](...o),u=n?ze:t?ft:dt;return!t&&be(s,"iterate",l?Pe:me),{next(){const{value:e,done:t}=c.next();return t?{value:e,done:t}:{value:a?[u(e[0]),u(e[1])]:u(e),done:t}},[Symbol.iterator](){return this}}}}(o,e,t)})),n}function Ge(e,t){const n=We(e,t);return(t,o,r)=>"__v_isReactive"===o?!e:"__v_isReadonly"===o?e:"__v_raw"===o?t:Reflect.get(C(n,o)&&o in t?n:t,o,r)}const qe={get:Ge(!1,!1)},Ke={get:Ge(!0,!1)},Ze={get:Ge(!0,!0)};function Je(e,t,n){const o=ut(n);if(o!==n&&t.call(e,o)){const t=M(e);K(`Reactive ${t} contains both the raw and reactive versions of the same object${"Map"===t?" as keys":""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`)}}const Xe=new WeakMap,Qe=new WeakMap,et=new WeakMap,tt=new WeakMap;function nt(e){return at(e)?e:st(e,!1,Ye,qe,Xe)}function ot(e){return st(e,!0,$e,Ke,et)}function rt(e){return st(e,!0,je,Ze,tt)}function st(e,t,n,o,r){if(!R(e))return"production"!==process.env.NODE_ENV&&K(`value cannot be made ${t?"readonly":"reactive"}: ${String(e)}`),e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const s=r.get(e);if(s)return s;const i=(a=e).__v_skip||!Object.isExtensible(a)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}(M(a));var a;if(0===i)return e;const l=new Proxy(e,2===i?o:n);return r.set(e,l),l}function it(e){return at(e)?it(e.__v_raw):!(!e||!e.__v_isReactive)}function at(e){return!(!e||!e.__v_isReadonly)}function lt(e){return!(!e||!e.__v_isShallow)}function ct(e){return!!e&&!!e.__v_raw}function ut(e){const t=e&&e.__v_raw;return t?ut(t):e}function pt(e){return!C(e,"__v_skip")&&Object.isExtensible(e)&&((e,t,n,o=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:o,value:n})})(e,"__v_skip",!0),e}const dt=e=>R(e)?nt(e):e,ft=e=>R(e)?ot(e):e;function ht(e){return!!e&&!0===e.__v_isRef}const _t={get:(e,t,n)=>{return"__v_raw"===t?e:ht(o=Reflect.get(e,t,n))?o.value:o;var o},set:(e,t,n,o)=>{const r=e[t];return ht(r)&&!ht(n)?(r.value=n,!0):Reflect.set(e,t,n,o)}};const gt={},yt=new WeakMap;let vt;function Et(e,t,n=b){const{immediate:o,deep:r,once:s,scheduler:i,augmentJob:a,call:l}=n,c=e=>{(n.onWarn||K)("Invalid watch source: ",e,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},u=e=>r?e:lt(e)||!1===r||0===r?mt(e,1):mt(e);let p,d,f,h,_=!1,g=!1;if(ht(e)?(d=()=>e.value,_=lt(e)):it(e)?(d=()=>u(e),_=!0):w(e)?(g=!0,_=e.some((e=>it(e)||lt(e))),d=()=>e.map((e=>ht(e)?e.value:it(e)?u(e):x(e)?l?l(e,2):e():void("production"!==process.env.NODE_ENV&&c(e))))):x(e)?d=t?l?()=>l(e,2):e:()=>{if(f){de();try{f()}finally{fe()}}const t=vt;vt=p;try{return l?l(e,3,[h]):e(h)}finally{vt=t}}:(d=D,"production"!==process.env.NODE_ENV&&c(e)),t&&r){const e=d,t=!0===r?1/0:r;d=()=>mt(e(),t)}const y=()=>{p.stop()};if(s&&t){const e=t;t=(...t)=>{e(...t),y()}}let v=g?new Array(e.length).fill(gt):gt;const E=e=>{if(1&p.flags&&(p.dirty||e))if(t){const e=p.run();if(r||_||(g?e.some(((e,t)=>Y(e,v[t]))):Y(e,v))){f&&f();const n=vt;vt=p;try{const n=[e,v===gt?void 0:g&&v[0]===gt?[]:v,h];l?l(t,3,n):t(...n),v=e}finally{vt=n}}}else p.run()};return a&&a(E),p=new X(d),p.scheduler=i?()=>i(E,!1):E,h=e=>function(e,t=!1,n=vt){if(n){let t=yt.get(n);t||yt.set(n,t=[]),t.push(e)}else"production"===process.env.NODE_ENV||t||K("onWatcherCleanup() was called when there was no active watcher to associate with.")}(e,!1,p),f=p.onStop=()=>{const e=yt.get(p);if(e){if(l)l(e,4);else for(const t of e)t();yt.delete(p)}},"production"!==process.env.NODE_ENV&&(p.onTrack=n.onTrack,p.onTrigger=n.onTrigger),t?o?E(!0):v=p.run():i?i(E.bind(null,!0),!0):p.run(),y.pause=p.pause.bind(p),y.resume=p.resume.bind(p),y.stop=y,y}function mt(e,t=1/0,n){if(t<=0||!R(e)||e.__v_skip)return e;if((n=n||new Set).has(e))return e;if(n.add(e),t--,ht(e))mt(e.value,t,n);else if(w(e))for(let o=0;o<e.length;o++)mt(e[o],t,n);else if("[object Set]"===T(e)||A(e))e.forEach((e=>{mt(e,t,n)}));else if((e=>"[object Object]"===T(e))(e)){for(const o in e)mt(e[o],t,n);for(const o of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,o)&&mt(e[o],t,n)}return e} /** * @vue/runtime-core v3.5.13 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/const Pt=[];let St=!1;function bt(e,...t){if(St)return;St=!0,de();const n=Pt.length?Pt[Pt.length-1].component:null,o=n&&n.appContext.config.warnHandler,r=function(){let e=Pt[Pt.length-1];if(!e)return[];const t=[];for(;e;){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const o=e.component&&e.component.parent;e=o&&o.vnode}return t}();if(o)Lt(o,n,11,[e+t.map((e=>{var t,n;return null!=(n=null==(t=e.toString)?void 0:t.call(e))?n:JSON.stringify(e)})).join(""),n&&n.proxy,r.map((({vnode:e})=>`at <${Tn(n,e.type)}>`)).join("\n"),r]);else{const n=[`[Vue warn]: ${e}`,...t];r.length&&n.push("\n",...function(e){const t=[];return e.forEach(((e,n)=>{t.push(...0===n?[]:["\n"],...function({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",o=!!e.component&&null==e.component.parent,r=` at <${Tn(e.component,e.type,o)}`,s=">"+n;return e.props?[r,...Dt(e.props),s]:[r+s]}(e))})),t}(r)),console.warn(...n)}fe(),St=!1}function Dt(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach((n=>{t.push(...Nt(n,e[n]))})),n.length>3&&t.push(" ..."),t}function Nt(e,t,n){return I(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):"number"==typeof t||"boolean"==typeof t||null==t?n?t:[`${e}=${t}`]:ht(t)?(t=Nt(e,ut(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):x(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=ut(t),n?t:[`${e}=`,t])}const Ot={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush",15:"component update",16:"app unmount cleanup function"};function Lt(e,t,n,o){try{return o?e(...o):e()}catch(e){wt(e,t,n)}}function Ct(e,t,n,o){if(x(e)){const s=Lt(e,t,n,o);return s&&((R(r=s)||x(r))&&x(r.then)&&x(r.catch))&&s.catch((e=>{wt(e,t,n)})),s}var r;if(w(e)){const r=[];for(let s=0;s<e.length;s++)r.push(Ct(e[s],t,n,o));return r}"production"!==process.env.NODE_ENV&&bt("Invalid value type passed to callWithAsyncErrorHandling(): "+typeof e)}function wt(e,t,n,o=!0){const r=t?t.vnode:null,{errorHandler:s,throwUnhandledErrorInProduction:i}=t&&t.appContext.config||b;if(t){let o=t.parent;const r=t.proxy,i="production"!==process.env.NODE_ENV?Ot[n]:`https://vuejs.org/error-reference/#runtime-${n}`;for(;o;){const t=o.ec;if(t)for(let n=0;n<t.length;n++)if(!1===t[n](e,r,i))return;o=o.parent}if(s)return de(),Lt(s,null,10,[e,r,i]),void fe()}!function(e,t,n,o=!0,r=!1){if("production"!==process.env.NODE_ENV){const r=Ot[t];if(n&&(s=n,Pt.push(s)),bt("Unhandled error"+(r?` during execution of ${r}`:"")),n&&Pt.pop(),o)throw e;console.error(e)}else{if(r)throw e;console.error(e)}var s}(e,n,r,o,i)}const At=[];let xt=-1;const It=[];let kt=null,Rt=0;const Vt=Promise.resolve();let Tt=null;function Mt(e){const t=Tt||Vt;return e?t.then(this?e.bind(this):e):t}function Ut(e){if(!(1&e.flags)){const t=$t(e),n=At[At.length-1];!n||!(2&e.flags)&&t>=$t(n)?At.push(e):At.splice(function(e){let t=xt+1,n=At.length;for(;t<n;){const o=t+n>>>1,r=At[o],s=$t(r);s<e||s===e&&2&r.flags?t=o+1:n=o}return t}(t),0,e),e.flags|=1,Ft()}}function Ft(){Tt||(Tt=Vt.then(jt))}function Yt(e){w(e)?It.push(...e):kt&&-1===e.id?kt.splice(Rt+1,0,e):1&e.flags||(It.push(e),e.flags|=1),Ft()}const $t=e=>null==e.id?2&e.flags?-1:1/0:e.id;function jt(e){"production"!==process.env.NODE_ENV&&(e=e||new Map);const t="production"!==process.env.NODE_ENV?t=>zt(e,t):D;try{for(xt=0;xt<At.length;xt++){const e=At[xt];if(e&&!(8&e.flags)){if("production"!==process.env.NODE_ENV&&t(e))continue;4&e.flags&&(e.flags&=-2),Lt(e,e.i,e.i?15:14),4&e.flags||(e.flags&=-2)}}}finally{for(;xt<At.length;xt++){const e=At[xt];e&&(e.flags&=-2)}xt=-1,At.length=0,function(e){if(It.length){const t=[...new Set(It)].sort(((e,t)=>$t(e)-$t(t)));if(It.length=0,kt)return void kt.push(...t);for(kt=t,"production"!==process.env.NODE_ENV&&(e=e||new Map),Rt=0;Rt<kt.length;Rt++){const t=kt[Rt];"production"!==process.env.NODE_ENV&&zt(e,t)||(4&t.flags&&(t.flags&=-2),8&t.flags||t(),t.flags&=-2)}kt=null,Rt=0}}(e),Tt=null,(At.length||It.length)&&jt(e)}}function zt(e,t){const n=e.get(t)||0;if(n>100){const e=t.i,n=e&&Vn(e.type);return wt(`Maximum recursive updates exceeded${n?` in component <${n}>`:""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`,null,10),!0}return e.set(t,n+1),!1}const Bt=new Map;"production"!==process.env.NODE_ENV&&(j().__VUE_HMR_RUNTIME__={createRecord:qt((function(e,t){if(Ht.has(e))return!1;return Ht.set(e,{initialDef:Wt(t),instances:new Set}),!0})),rerender:qt((function(e,t){const n=Ht.get(e);if(!n)return;n.initialDef.render=t,[...n.instances].forEach((e=>{t&&(e.render=t,Wt(e.type).render=t),e.renderCache=[],e.update()}))})),reload:qt((function(e,t){const n=Ht.get(e);if(!n)return;t=Wt(t),Gt(n.initialDef,t);const o=[...n.instances];for(let e=0;e<o.length;e++){const r=o[e],s=Wt(r.type);let i=Bt.get(s);i||(s!==n.initialDef&&Gt(s,t),Bt.set(s,i=new Set)),i.add(r),r.appContext.propsCache.delete(r.type),r.appContext.emitsCache.delete(r.type),r.appContext.optionsCache.delete(r.type),r.ceReload?(i.add(r),r.ceReload(t.styles),i.delete(r)):r.parent?Ut((()=>{r.parent.update(),i.delete(r)})):r.appContext.reload?r.appContext.reload():"undefined"!=typeof window?window.location.reload():console.warn("[HMR] Root or manually mounted instance modified. Full reload required."),r.root.ce&&r!==r.root&&r.root.ce._removeChildStyle(s)}Yt((()=>{Bt.clear()}))}))});const Ht=new Map;function Wt(e){return Mn(e)?e.__vccOpts:e}function Gt(e,t){O(e,t);for(const n in e)"__file"===n||n in t||delete e[n]}function qt(e){return(t,n)=>{try{return e(t,n)}catch(e){console.error(e),console.warn("[HMR] Something went wrong during Vue component hot-reload. Full reload required.")}}}let Kt=null;function Zt(e,t){6&e.shapeFlag&&e.component?(e.transition=t,Zt(e.component.subTree,t)):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t} /*! #__NO_SIDE_EFFECTS__ */j().requestIdleCallback,j().cancelIdleCallback;const Jt=Symbol.for("v-ndc"),Xt=e=>e?4&e.vnode.shapeFlag?function(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(it(t=pt(e.exposed))?t:new Proxy(t,_t),{get:(t,n)=>n in t?t[n]:n in Qt?Qt[n](e):void 0,has:(e,t)=>t in e||t in Qt})):e.proxy;var t}(e):Xt(e.parent):null,Qt=O(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>"production"!==process.env.NODE_ENV?rt(e.props):e.props,$attrs:e=>"production"!==process.env.NODE_ENV?rt(e.attrs):e.attrs,$slots:e=>"production"!==process.env.NODE_ENV?rt(e.slots):e.slots,$refs:e=>"production"!==process.env.NODE_ENV?rt(e.refs):e.refs,$parent:e=>Xt(e.parent),$root:e=>Xt(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>__VUE_OPTIONS_API__?function(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:r,optionsCache:s,config:{optionMergeStrategies:i}}=e.appContext,a=s.get(t);let l;a?l=a:r.length||n||o?(l={},r.length&&r.forEach((e=>rn(l,e,i,!0))),rn(l,t,i)):l=t;R(t)&&s.set(t,l);return l}(e):e.type,$forceUpdate:e=>e.f||(e.f=()=>{Ut(e.update)}),$nextTick:e=>e.n||(e.n=Mt.bind(e.proxy)),$watch:e=>__VUE_OPTIONS_API__?yn.bind(e):D}),en=(e,t)=>e!==b&&!e.__isScriptSetup&&C(e,t),tn={get({_:e},t){if("__v_skip"===t)return!0;const{ctx:n,setupState:o,data:r,props:s,accessCache:i,type:a,appContext:l}=e;if("production"!==process.env.NODE_ENV&&"__isVue"===t)return!0;let c;if("$"!==t[0]){const a=i[t];if(void 0!==a)switch(a){case 1:return o[t];case 2:return r[t];case 4:return n[t];case 3:return s[t]}else{if(en(o,t))return i[t]=1,o[t];if(r!==b&&C(r,t))return i[t]=2,r[t];if((c=e.propsOptions[0])&&C(c,t))return i[t]=3,s[t];if(n!==b&&C(n,t))return i[t]=4,n[t];__VUE_OPTIONS_API__&&!on||(i[t]=0)}}const u=Qt[t];let p,d;return u?("$attrs"===t?(be(e.attrs,"get",""),process.env.NODE_ENV):"production"!==process.env.NODE_ENV&&"$slots"===t&&be(e,"get",t),u(e)):(p=a.__cssModules)&&(p=p[t])?p:n!==b&&C(n,t)?(i[t]=4,n[t]):(d=l.config.globalProperties,C(d,t)?d[t]:void process.env.NODE_ENV)},set({_:e},t,n){const{data:o,setupState:r,ctx:s}=e;return en(r,t)?(r[t]=n,!0):"production"!==process.env.NODE_ENV&&r.__isScriptSetup&&C(r,t)?(bt(`Cannot mutate <script setup> binding "${t}" from Options API.`),!1):o!==b&&C(o,t)?(o[t]=n,!0):C(e.props,t)?("production"!==process.env.NODE_ENV&&bt(`Attempting to mutate prop "${t}". Props are readonly.`),!1):"$"===t[0]&&t.slice(1)in e?("production"!==process.env.NODE_ENV&&bt(`Attempting to mutate public property "${t}". Properties starting with $ are reserved and readonly.`),!1):("production"!==process.env.NODE_ENV&&t in e.appContext.config.globalProperties?Object.defineProperty(s,t,{enumerable:!0,configurable:!0,value:n}):s[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:o,appContext:r,propsOptions:s}},i){let a;return!!n[i]||e!==b&&C(e,i)||en(t,i)||(a=s[0])&&C(a,i)||C(o,i)||C(Qt,i)||C(r.config.globalProperties,i)},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:C(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function nn(e){return w(e)?e.reduce(((e,t)=>(e[t]=null,e)),{}):e}"production"!==process.env.NODE_ENV&&(tn.ownKeys=e=>(bt("Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead."),Reflect.ownKeys(e)));let on=!0;function rn(e,t,n,o=!1){const{mixins:r,extends:s}=t;s&&rn(e,s,n,!0),r&&r.forEach((t=>rn(e,t,n,!0)));for(const r in t)if(o&&"expose"===r)"production"!==process.env.NODE_ENV&&bt('"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.');else{const o=sn[r]||n&&n[r];e[r]=o?o(e[r],t[r]):t[r]}return e}const sn={data:an,props:pn,emits:pn,methods:un,computed:un,beforeCreate:cn,created:cn,beforeMount:cn,mounted:cn,beforeUpdate:cn,updated:cn,beforeDestroy:cn,beforeUnmount:cn,destroyed:cn,unmounted:cn,activated:cn,deactivated:cn,errorCaptured:cn,serverPrefetch:cn,components:un,directives:un,watch:function(e,t){if(!e)return t;if(!t)return e;const n=O(Object.create(null),e);for(const o in t)n[o]=cn(e[o],t[o]);return n},provide:an,inject:function(e,t){return un(ln(e),ln(t))}};function an(e,t){return t?e?function(){return O(x(e)?e.call(this,this):e,x(t)?t.call(this,this):t)}:t:e}function ln(e){if(w(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function cn(e,t){return e?[...new Set([].concat(e,t))]:t}function un(e,t){return e?O(Object.create(null),e,t):t}function pn(e,t){return e?w(e)&&w(t)?[...new Set([...e,...t])]:O(Object.create(null),nn(e),nn(null!=t?t:{})):t}const dn={},fn=e=>Object.getPrototypeOf(e)===dn,hn=function(e,t){t&&t.pendingBranch?w(e)?t.effects.push(...e):t.effects.push(e):Yt(e)},_n=Symbol.for("v-scx"),gn=()=>{{const e=function(e,t,n=!1){const o=An||Kt;if(o){const r=o?null==o.parent?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides:void 0;if(r&&e in r)return r[e];if(arguments.length>1)return n&&x(t)?t.call(o&&o.proxy):t;"production"!==process.env.NODE_ENV&&bt(`injection "${String(e)}" not found.`)}else"production"!==process.env.NODE_ENV&&bt("inject() can only be used inside setup() or functional components.")}(_n);return e||"production"!==process.env.NODE_ENV&&bt("Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."),e}};function yn(e,t,n){const o=this.proxy,r=I(e)?e.includes(".")?function(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;e<n.length&&t;e++)t=t[n[e]];return t}}(o,e):()=>o[e]:e.bind(o,o);let s;x(t)?s=t:(s=t.handler,n=t);const i=xn(this),a=function(e,t,n=b){const{immediate:o,deep:r,flush:s,once:i}=n;"production"===process.env.NODE_ENV||t||(void 0!==o&&bt('watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'),void 0!==r&&bt('watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'),void 0!==i&&bt('watch() "once" option is only respected when using the watch(source, callback, options?) signature.'));const a=O({},n);"production"!==process.env.NODE_ENV&&(a.onWarn=bt);const l=t&&o||!t&&"post"!==s;let c;if(In)if("sync"===s){const e=gn();c=e.__watcherHandles||(e.__watcherHandles=[])}else if(!l){const e=()=>{};return e.stop=D,e.resume=D,e.pause=D,e}const u=An;a.call=(e,t,n)=>Ct(e,u,t,n);let p=!1;"post"===s?a.scheduler=e=>{hn(e,u&&u.suspense)}:"sync"!==s&&(p=!0,a.scheduler=(e,t)=>{t?e():Ut(e)}),a.augmentJob=e=>{t&&(e.flags|=4),p&&(e.flags|=2,u&&(e.id=u.uid,e.i=u))};const d=Et(e,t,a);return In&&(c?c.push(d):l&&d()),d}(r,s.bind(o),n);return i(),a}const vn=Symbol.for("v-fgt"),En=Symbol.for("v-txt"),mn=Symbol.for("v-cmt");const Pn=({key:e})=>null!=e?e:null,Sn=({ref:e,ref_key:t,ref_for:n})=>("number"==typeof e&&(e=""+e),null!=e?I(e)||ht(e)||x(e)?{i:Kt,r:e,k:t,f:!!n}:e:null);const bn="production"!==process.env.NODE_ENV?(...e)=>Dn(...e):Dn;function Dn(e,t=null,n=null,o=0,r=null,s=!1){if(e&&e!==Jt||("production"===process.env.NODE_ENV||e||bt(`Invalid vnode type when creating vnode: ${e}.`),e=mn),(i=e)&&!0===i.__v_isVNode){const o=Nn(e,t,!0);return n&&Cn(o,n),o.patchFlag=-2,o}var i;if(Mn(e)&&(e=e.__vccOpts),t){t=function(e){return e?ct(e)||fn(e)?O({},e):e:null}(t);let{class:e,style:n}=t;e&&!I(e)&&(t.class=q(e)),R(n)&&(ct(n)&&!w(n)&&(n=O({},n)),t.style=z(n))}const a=I(e)?1:(e=>e.__isSuspense)(e)?128:(e=>e.__isTeleport)(e)?64:R(e)?4:x(e)?2:0;return"production"!==process.env.NODE_ENV&&4&a&&ct(e)&&bt("Vue received a Component that was made a reactive object. This can lead to unnecessary performance overhead and should be avoided by marking the component with `markRaw` or using `shallowRef` instead of `ref`.","\nComponent that was made reactive: ",e=ut(e)),function(e,t=null,n=null,o=0,r=null,s=(e===vn?0:1),i=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Pn(t),ref:t&&Sn(t),scopeId:null,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:o,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:Kt};return a?(Cn(l,n),128&s&&e.normalize(l)):n&&(l.shapeFlag|=I(n)?8:16),"production"!==process.env.NODE_ENV&&l.key!=l.key&&bt("VNode created with invalid key (NaN). VNode type:",l.type),l}(e,t,n,o,r,a,s,!0)}function Nn(e,t,n=!1,o=!1){const{props:r,ref:s,patchFlag:i,children:a,transition:l}=e,c=t?function(...e){const t={};for(let n=0;n<e.length;n++){const o=e[n];for(const e in o)if("class"===e)t.class!==o.class&&(t.class=q([t.class,o.class]));else if("style"===e)t.style=z([t.style,o.style]);else if(N(e)){const n=t[e],r=o[e];!r||n===r||w(n)&&n.includes(r)||(t[e]=n?[].concat(n,r):r)}else""!==e&&(t[e]=o[e])}return t}(r||{},t):r,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&Pn(c),ref:t&&t.ref?n&&s?w(s)?s.concat(Sn(t)):[s,Sn(t)]:Sn(t):s,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:"production"!==process.env.NODE_ENV&&-1===i&&w(a)?a.map(On):a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==vn?-1===i?16:16|i:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:l,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Nn(e.ssContent),ssFallback:e.ssFallback&&Nn(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return l&&o&&Zt(u,l.clone(u)),u}function On(e){const t=Nn(e);return w(e.children)&&(t.children=e.children.map(On)),t}function Ln(e=" ",t=0){return bn(En,null,e,t)}function Cn(e,t){let n=0;const{shapeFlag:o}=e;if(null==t)t=null;else if(w(t))n=16;else if("object"==typeof t){if(65&o){const n=t.default;return void(n&&(n._c&&(n._d=!1),Cn(e,n()),n._c&&(n._d=!0)))}{n=32;const e=t._;e||fn(t)||(t._ctx=Kt)}}else x(t)?(t={default:t,_ctx:Kt},n=32):(t=String(t),64&o?(n=16,t=[Ln(t)]):n=8);e.children=t,e.shapeFlag|=n}let wn,An=null;{const e=j(),t=(t,n)=>{let o;return(o=e[t])||(o=e[t]=[]),o.push(n),e=>{o.length>1?o.forEach((t=>t(e))):o[0](e)}};wn=t("__VUE_INSTANCE_SETTERS__",(e=>An=e)),t("__VUE_SSR_SETTERS__",(e=>In=e))}const xn=e=>{const t=An;return wn(e),e.scope.on(),()=>{e.scope.off(),wn(t)}};let In=!1;process.env.NODE_ENV;const kn=/(?:^|[-_])(\w)/g,Rn=e=>e.replace(kn,(e=>e.toUpperCase())).replace(/[-_]/g,"");function Vn(e,t=!0){return x(e)?e.displayName||e.name:e.name||t&&e.__name}function Tn(e,t,n=!1){let o=Vn(t);if(!o&&t.__file){const e=t.__file.match(/([^/\\]+)\.\w+$/);e&&(o=e[1])}if(!o&&e&&e.parent){const n=e=>{for(const n in e)if(e[n]===t)return n};o=n(e.components||e.parent.type.components)||n(e.appContext.components)}return o?Rn(o):n?"App":"Anonymous"}function Mn(e){return x(e)&&"__vccOpts"in e}process.env.NODE_ENV,process.env.NODE_ENV,process.env.NODE_ENV;const Un="ESADPlayer";var Fn,Yn,$n,jn=(Fn={name:"es-ad-player",props:{playMediaSourceAuto:{type:Boolean,default:!0},playerWidth:{type:Number,default:1920},playerHeight:{type:Number,default:1080},playerZIndex:{type:Number,default:1},backgroundColor:{type:String,default:"transparent"},channel:{type:String,default:""},debug:{type:Boolean,default:!1},test:{type:Boolean,default:!1}},type:2,setup(n,o){const r=e(),s=d(),i=f(),a=h(),l=e(!1);let c,u,p,m,P,S,b,D=e(!0),N=0;function O(){return 2}function L(){return r.value}function C(){s.isLoggable(_.DEBUG)&&s.d(Un,"-----initializePlayerLazySuccess-----\x3e>>"),w(),o.emit("onPlayerLazyInitSuccess",2),s.isLoggable(_.DEBUG)&&s.d(Un,"-----initializePlayerComponent-----\x3e>>"),A()}function w(){c&&(clearInterval(c),c=null)}function A(...e){L()?.initComponent(n.channel,n.test,n.debug)}function x(){s.isLoggable(_.DEBUG)&&s.d(Un,"-----onPlayerInitializeSuccess-----\x3e>>"),o.emit("onPlayerInitialized",2),L()?.setProgressCallback(B),L()?.setDurationCallback(H)}function I(e){m.list.length<=0||e<0||e>m.list.length||(s.isLoggable(_.DEBUG)&&s.d(Un,"-----playMediaSourceByIndex-----\x3e>>",e),N=e,P=m.list[e],k(P))}function k(e){s.isLoggable(_.DEBUG)&&s.d(Un,"---------playMediaSource-------\x3e>>",e),o.emit("onPlayerPlayMediaSource",e),function(e){s.isLoggable(_.DEBUG)&&s.d(Un,"---------interceptMediaSource-------\x3e>>",e);let t={result:null},n=null;const r=i.getInterceptorsByType(y.ES_PLAYER_INTERCEPTOR_TYPE_AD_MEDIA_SOURCE),a=e.interceptors;let l=[];r&&r.length>0&&l.push(...r),a&&a.length>0&&l.push(...a),l&&l.length>0&&(n=Promise.resolve(t)),l.map((t=>{null!=n&&(n=n.then((n=>{try{n.result&&Object.assign(e,n.result)}catch(e){}return t.intercept(e)})))})),null!=n?n.then((t=>{try{t.result&&Object.assign(e,t.result)}catch(e){}!function(e){o.emit("onPlayerInterceptSuccess",e)}(t),R(e)}),(t=>{!function(e){o.emit("onPlayerInterceptError",e)}({error:{errorCode:t?.errorCode??-1,errorMessage:t?.errorMessage??""}}),V(e)})):R(e)}(e)}function R(e){V(e)}function V(...e){let t=e[0];s.isLoggable(_.DEBUG)&&s.d(Un,"---------play-------\x3e>>",t),F(n.playerWidth,n.playerHeight),L()?.play(t.uri.id,t.uri.type,t.uri.mediaId,t.uri.count,v.ES_PLAYER_MAX_VOLUME,v.ES_PLAYER_MAX_VOLUME,1,!0,null,!1,!0)}function T(){if(p==g.ES_PLAYER_PLAY_MODE_ONCE)U(),o.emit("onPlayerNoMediaSourceCanPlay",!0);else if(p==g.ES_PLAYER_PLAY_MODE_ORDER)U(),N+1<m.list.length?I(N+1):o.emit("onPlayerNoMediaSourceCanPlay",!0);else if(p==g.ES_PLAYER_PLAY_MODE_LOOP)U(),N+1<m.list.length?I(N+1):I(0);else if(p==g.ES_PLAYER_PLAY_MODE_SHUFFLE){let e=Math.floor(Math.random()*m.list.length);U(),I(e)}else p==g.ES_PLAYER_PLAY_MODE_REPEAT&&(U(),I(N))}function M(){L()?.start(0)}function U(){L()?.stop()}function F(e,t){L()?.setSize(e,t),Y()}function Y(){L()?.invalidate()}function $(e){o.emit("onPlayerPlayMediaSourceListModeListChanged",e)}function j(e){o.emit("onPlayerPlayMediaSourceListModeChanged",e)}function z(e){o.emit("onPlayerError",e),T()}function B(e){S&&S(e)}function H(e){b&&b(e)}return t((()=>[r.value]),(([e],[t])=>{e&&C()}),{flush:"post"}),{player:r,playerInitialized:l,visible:D,getPlayer:L,getComponentInfo:function(){L()?.getComponentInfo()},initComponent:A,getId:function(){return""},getType:O,setVisible:function(e){D.value=e},initialize:function(){s.isLoggable(_.DEBUG)&&s.d(Un,"--------initializePlayer------\x3e>>>>"),function(){if(w(),r.value)return void C();let e=(new Date).getTime();l.value=!0,c=setInterval((()=>{r.value||(new Date).getTime()-e>1e4&&(s.isLoggable(_.DEBUG)&&s.d(Un,"-----initializePlayerLazyError-----\x3e>>"),w(),o.emit("onPlayerLazyInitError",2),z({errorCode:-1,errorMessage:"player lazy init error..."}))}),100)}()},unInitialize:function(){l.value=!1},isInitialized:function(){return l.value},playMediaSourceList:function(e){s.isLoggable(_.DEBUG)&&s.d(Un,"-----playMediaSourceList-----\x3e>>",e),m=e,p=a.getPlayMode(),$([g.ES_PLAYER_PLAY_MODE_ONCE,g.ES_PLAYER_PLAY_MODE_ORDER,g.ES_PLAYER_PLAY_MODE_SHUFFLE,g.ES_PLAYER_PLAY_MODE_REPEAT,g.ES_PLAYER_PLAY_MODE_LOOP]),j(p),e.list&&e.list.length>0?I(N):z({errorCode:-1,errorMessage:"播放地址为空"})},playMediaSourceByIndex:I,playMediaSourceById:function(e){if(s.isLoggable(_.DEBUG)&&s.d(Un,"-----playMediaSourceById-----\x3e>>",e),m&&m.list&&m.list.length>0){let t=m.list.findIndex((t=>t.id==e));t>0&&I(t)}},playMediaSource:k,playNextMediaSource:T,playPreviousMediaSource:function(){if(p==g.ES_PLAYER_PLAY_MODE_ONCE)U(),o.emit("onPlayerNoMediaSourceCanPlay",!1);else if(p==g.ES_PLAYER_PLAY_MODE_ORDER)U(),N-1>=0?I(N-1):o.emit("onPlayerNoMediaSourceCanPlay",!1);else if(p==g.ES_PLAYER_PLAY_MODE_LOOP)U(),I(N-1>=0?N-1:m.list.length-1);else if(p==g.ES_PLAYER_PLAY_MODE_SHUFFLE){let e=Math.floor(Math.random()*m.list.length);U(),I(e)}else p==g.ES_PLAYER_PLAY_MODE_REPEAT&&(U(),I(N))},getMediaSourceList:function(){return m?m.list:null},getMediaSource:function(e){return m&&m.list&&e>=0&&e<m.list.length?m.list[e]:null},getPlayingMediaSourceIndex:function(){return N},getPlayingMediaSourceList:function(){return m},getPlayingMediaSource:function(){return P},play:V,start:M,pause:function(){L()?.pause()},resume:function(){k(P),M()},stop:U,reset:function(){},release:function(){L()?.release()},seekTo:function(e){L()?.seekTo(e)},control:function(e){},getDuration:function(){L()?.getDuration()},getCurrentPosition:function(){L()?.getCurrentPosition()},setSize:F,setPlayRate:function(e){},setPlayMode:function(e){p=e,a.setPlayMode(p),j(p)},setDefinition:function(e){},setDecode:function(e){},setRender:function(e){},setAspectRatio:function(e){},getLeftVolume:function(){},getRightVolume:function(){},setLeftVolume:function(e){},setRightVolume:function(e){},setVolume:function(e){},getVolume:function(){},invalidate:Y,onPlayerPlayMediaSourceListModeListChanged:$,onPlayerPlayMediaSourceListModeChanged:j,onPlayerError:z,onPlayerStatusChanged:function(e){switch(s.isLoggable(_.DEBUG)&&s.d(Un,"-----onPlayerStatusChanged-----\x3e>>",e),u=e.playerState,u){case E.ES_PLAYER_STATE_PLAYER_INITIALIZED:o.emit("onRealPlayerInitialized");break;case E.ES_PLAYER_STATE_INITIALIZE_SUCCESS:x();break;case E.ES_PLAYER_STATE_INITIALIZE_ERROR:s.isLoggable(_.DEBUG)&&s.d(Un,"-----onPlayerInitializeError-----\x3e>>"),z({errorCode:-1,errorMessage:"player init error..."});break;case E.ES_PLAYER_STATE_VIDEO_SIZE_CHANGED:n=e.playerWidth??1920,r=e.playerHeight??1080,o.emit("onPlayerSizeChanged",n,r);break;case E.ES_PLAYER_STATE_PLAYER_CLICKABLE:t=e.playerClickable??!1,o.emit("onPlayerClickable",t);break;case E.ES_PLAYER_STATE_PLAYER_VIEW_CHANGED:o.emit("onPlayerViewChanged");break;case E.ES_PLAYER_STATE_PREPARING:o.emit("onPlayerPreparing");break;case E.ES_PLAYER_STATE_PREPARED:o.emit("onPlayerPrepared");break;case E.ES_PLAYER_STATE_PLAYING:o.emit("onPlayerPlaying");break;case E.ES_PLAYER_STATE_PAUSED:o.emit("onPlayerPaused");break;case E.ES_PLAYER_STATE_RESUMED:o.emit("onPlayerResumed");break;case E.ES_PLAYER_STATE_BEFORE_STOP:o.emit("onPlayerBeforeStopped");break;case E.ES_PLAYER_STATE_STOP:o.emit("onPlayerStopped");break;case E.ES_PLAYER_STATE_PLAYBACK_COMPLETED:o.emit("onPlayerCompleted"),T();break;case E.ES_PLAYER_STATE_BUFFER_START:o.emit("onPlayerBufferStart");break;case E.ES_PLAYER_STATE_BUFFER_END:o.emit("onPlayerBufferEnd")}var t,n,r},onPlayerInfo:function(e){o.emit("onPlayerInfo",e)},onPlayerComponentInfo:function(e){s.isLoggable(_.DEBUG)&&s.d(Un,"-----onPlayerComponentInfo-----\x3e>>",e),e&&e.isSupportDynamicallyLoadedSo?(s.isLoggable(_.DEBUG)&&s.d(Un,"-----onPlayerComponentInfo---isSupportDynamicallyLoadedSo--\x3e>>",e),A()):(s.isLoggable(_.DEBUG)&&s.d(Un,"-----onPlayerComponentInfo--success---\x3e>>",e),x())},onDurationChanged:H,onProgressChanged:B,setStopped:function(e){},setEnabled:function(e){},setProgressCallback:e=>{S=e},setDurationCallback:e=>{b=e},setCache:function(e){}}}},x(Fn)?(()=>O({name:Fn.name},Yn,{setup:Fn}))():Fn);jn.render=function(e,t,u,p,d,f){const h=n("es-ad-player-view-component");return o((r(),s("div",{class:"es-ad-player-root-css",style:i({width:e.playerWidth,height:e.playerHeight,backgroundColor:e.backgroundColor})},[e.playerInitialized?(r(),a(h,{key:0,ref:"player",style:i({width:e.playerWidth,height:e.playerHeight,zIndex:e.playerZIndex}),onPlayerStatusChanged:e.onPlayerStatusChanged,onPlayerError:e.onPlayerError,onPlayerInfo:e.onPlayerInfo,onPlayerComponentInfo:e.onPlayerComponentInfo},null,8,["style","onPlayerStatusChanged","onPlayerError","onPlayerInfo","onPlayerComponentInfo"])):l("v-if",!0)],4)),[[c,e.visible]])},jn.__scopeId="data-v-2964abc9",jn.__file="src/index.vue",function(e){e[e.ES_AD_TYPE_LAUNCH=0]="ES_AD_TYPE_LAUNCH",e[e.ES_AD_TYPE_PREVIOUS_ROLL=1]="ES_AD_TYPE_PREVIOUS_ROLL",e[e.ES_AD_TYPE_MIDDLE_ROLL=2]="ES_AD_TYPE_MIDDLE_ROLL",e[e.ES_AD_TYPE_POST_ROLL=4]="ES_AD_TYPE_POST_ROLL"}($n||($n={})),jn.install=e=>{e.component(jn.name,jn)};const zn=()=>({install:function(t){!function(t){m("ADPlayerComponent",{component:{name:"ADPlayerComponent",processEventData(e,t){const{handler:n,__evt:o}=e;switch(o){case"onPlayerStatusChanged":n.playerState=t.playerStatus,n.errorCode=t.errorCode,n.errorMessage=t.errorMessage,n.playerClickable=t.playerClickable;break;case"onPlayerError":n.errorCode=t.errorCode,n.errorMessage=t.errorMessage;break;case"onPlayerVolumeChanged":n.leftVolume=t.leftVolume,n.rightVolume=t.rightVolume}return n}}});const n=u({emits:["player-status-changed","player-error","player-info","player-volume-changed","player-component-info","canExitTime","player-left-volume-changed","player-right-volume-changed"],setup(t,n){const o=e();let r,s;return n.expose({getComponentInfo:()=>{P.callUIFunction(o.value,"getEsInfo",[],(e=>{n.emit("player-component-info",e)}))},initComponent:(e,t,n)=>{P.callUIFunction(o.value,"init",["2ezER7","快应用",e,t,n],(e=>{}))},setPointADProgress:e=>{P.callUIFunction(o.value,"setPointADProgress",[e],(e=>{}))},clickPlayerView:()=>{P.callUIFunction(o.value,"clickPlayerView",[],(e=>{}))},play:(...e)=>{let t=e[0],n=e[1],r=e[2],s=e[3],i=e[4],a=e[5],l=e[6],c=e[7],u=e[8],p=e[9],d=e[10];P.callUIFunction(o.value,"play",[t,n,r,s,i,a,l,c,u,p,d],(e=>{}))},start:()=>{P.callUIFunction(o.value,"start",[],(e=>{}))},seekTo:e=>{P.callUIFunction(o.value,"seekTo",[e],(e=>{}))},resume:()=>{P.callUIFunction(o.value,"resume",[],(e=>{}))},stop:()=>{P.callUIFunction(o.value,"stop",[],(e=>{}))},changeToFullScreen:e=>{P.callUIFunction(o.value,"changeToFullScreen",[e],(e=>{}))},requestPlayerViewLayout:()=>{P.callUIFunction(o.value,"requestPlayerViewLayout",[],(e=>{}))},requestViewLayout:()=>{P.callUIFunction(o.value,"requestLayout",[],(e=>{}))},updateLayout:(e,t,n,r)=>{P.callUIFunction(o.value,"updateLayout",[e,t,n,r],(e=>{}))},requestCustomSizeLayout:(e,t,n,r)=>{P.callUIFunction(o.value,"requestCustomSizeLayout",[e,t,n,r],(e=>{}))},requestCustomLayout:()=>{P.callUIFunction(o.value,"requestCustomLayout",[],(e=>{}))},setSize:(e,t)=>{P.callUIFunction(o.value,"setPlayerSize",[e,t],(e=>{}))},setPlayerDimension:(e,t,n,r,s)=>{P.callUIFunction(o.value,"setPlayerDimension",[e,t,n,r,s],(e=>{}))},setDefaultPlayerWidth:e=>{P.callUIFunction(o.value,"setDefaultPlayerWidth",[e],(e=>{}))},setDefaultPlayerHeight:e=>{P.callUIFunction(o.value,"setDefaultPlayerHeight",[e],(e=>{}))},setFullPlayerWidth:e=>{P.callUIFunction(o.value,"setFullPlayerWidth",[e],(e=>{}))},setFullPlayerHeight:e=>{P.callUIFunction(o.value,"setFullPlayerHeight",[e],(e=>{}))},setPlayRate:e=>{P.callUIFunction(o.value,"setPlayRate",[e],(e=>{}))},setDefinition:e=>{P.callUIFunction(o.value,"setDefinition",[e],(e=>{}))},release:()=>{P.callUIFunction(o.value,"release",[],(e=>{}))},isStopped:()=>{P.callUIFunction(o.value,"isStopped",[],(e=>{}))},getCurrentPosition:()=>{P.callUIFunction(o.value,"getCurrentPosition",[],(e=>{r&&r(e)}))},getDuration:()=>{P.callUIFunction(o.value,"getDuration",[],(e=>{s&&s(e)}))},getADCanExitTime:()=>{P.callUIFunction(o.value,"getADCanExitTime",[],(e=>{n.emit("canExitTime",e)}))},getLeftVolume:()=>{P.callUIFunction(o.value,"getLeftVolume",[],(e=>{n.emit("player-left-volume-changed",e)}))},getRightVolume:()=>{P.callUIFunction(o.value,"getRightVolume",[],(e=>{n.emit("player-right-volume-changed",e)}))},setLeftVolume:e=>{P.callUIFunction(o.value,"setLeftVolume",[e],(e=>{}))},setRightVolume:e=>{P.callUIFunction(o.value,"setRightVolume",[e],(e=>{}))},setVolume:e=>{P.callUIFunction(o.value,"setVolume",[e],(e=>{}))},setLeftRightVolume:(e,t)=>{P.callUIFunction(o.value,"setLeftRightVolume",[e,t],(e=>{}))},setProgressCallback:e=>{r=e},setDurationCallback:e=>{s=e},invalidate:()=>{P.callUIFunction(o.value,"requestLayout",[],(e=>{}))}}),()=>p("ADPlayerComponent",{ref:o,onPlayerStatusChanged:e=>{n.emit("player-status-changed",e)},onPlayerError:e=>{n.emit("player-error",e)},onPlayerVolumeChanged:e=>{n.emit("player-volume-changed",e.leftVolume,e.rightVolume)}})}});t.component("es-ad-player-view-component",n)}(t)}});export{jn as ESADPlayer,$n as ESADType,zn as createESADPlayer};