mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-23 22:01:20 -08:00
chore: 更新版本至 5.1.5,修复多个问题并增强移动端支持
This commit is contained in:
1 parent
fae71811db
commit
c89b9e7871
215 files changed
+2406
-4385
No files matched your search
@@ -0,0 +1,17 @@
|
||||
/**
|
||||
* @vue/shared v3.4.38
|
||||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||||
* @license MIT
|
||||
**//*! #__NO_SIDE_EFFECTS__ */function ws(e,t){const n=new Set(e.split(","));return s=>n.has(s)}const ne={},yt=[],Ae=()=>{},To=()=>!1,kt=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),vs=e=>e.startsWith("onUpdate:"),ce=Object.assign,Es=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Ao=Object.prototype.hasOwnProperty,J=(e,t)=>Ao.call(e,t),B=Array.isArray,_t=e=>En(e)==="[object Map]",Br=e=>En(e)==="[object Set]",k=e=>typeof e=="function",re=e=>typeof e=="string",Qe=e=>typeof e=="symbol",Z=e=>e!==null&&typeof e=="object",kr=e=>(Z(e)||k(e))&&k(e.then)&&k(e.catch),Kr=Object.prototype.toString,En=e=>Kr.call(e),Oo=e=>En(e).slice(8,-1),Wr=e=>En(e)==="[object Object]",Cs=e=>re(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,bt=ws(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Cn=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Ro=/-(\w)/g,Le=Cn(e=>e.replace(Ro,(t,n)=>n?n.toUpperCase():"")),Lo=/\B([A-Z])/g,Ze=Cn(e=>e.replace(Lo,"-$1").toLowerCase()),Sn=Cn(e=>e.charAt(0).toUpperCase()+e.slice(1)),ln=Cn(e=>e?`on${Sn(e)}`:""),Je=(e,t)=>!Object.is(e,t),cn=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},qr=(e,t,n,s=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},ls=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Mo=e=>{const t=re(e)?Number(e):NaN;return isNaN(t)?e:t};let Gs;const Gr=()=>Gs||(Gs=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Ss(e){if(B(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],r=re(s)?Fo(s):Ss(s);if(r)for(const i in r)t[i]=r[i]}return t}else if(re(e)||Z(e))return e}const Io=/;(?![^(]*\))/g,Po=/:([^]+)/,No=/\/\*[^]*?\*\//g;function Fo(e){const t={};return e.replace(No,"").split(Io).forEach(n=>{if(n){const s=n.split(Po);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function xs(e){let t="";if(re(e))t=e;else if(B(e))for(let n=0;n<e.length;n++){const s=xs(e[n]);s&&(t+=s+" ")}else if(Z(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const $o="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Ho=ws($o);function Xr(e){return!!e||e===""}const Yr=e=>!!(e&&e.__v_isRef===!0),jo=e=>re(e)?e:e==null?"":B(e)||Z(e)&&(e.toString===Kr||!k(e.toString))?Yr(e)?jo(e.value):JSON.stringify(e,Jr,2):String(e),Jr=(e,t)=>Yr(t)?Jr(e,t.value):_t(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,r],i)=>(n[Bn(s,i)+" =>"]=r,n),{})}:Br(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Bn(n))}:Qe(t)?Bn(t):Z(t)&&!B(t)&&!Wr(t)?String(t):t,Bn=(e,t="")=>{var n;return Qe(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
|
||||
* @vue/reactivity v3.4.38
|
||||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||||
* @license MIT
|
||||
**/let Ee;class Vo{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=Ee,!t&&Ee&&(this.index=(Ee.scopes||(Ee.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=Ee;try{return Ee=this,t()}finally{Ee=n}}}on(){Ee=this}off(){Ee=this.parent}stop(t){if(this._active){let n,s;for(n=0,s=this.effects.length;n<s;n++)this.effects[n].stop();for(n=0,s=this.cleanups.length;n<s;n++)this.cleanups[n]();if(this.scopes)for(n=0,s=this.scopes.length;n<s;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0,this._active=!1}}}function Do(e,t=Ee){t&&t.active&&t.effects.push(e)}function zr(){return Ee}function Uo(e){Ee&&Ee.cleanups.push(e)}let ct;class Ts{constructor(t,n,s,r){this.fn=t,this.trigger=n,this.scheduler=s,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,Do(this,r)}get dirty(){if(this._dirtyLevel===2||this._dirtyLevel===3){this._dirtyLevel=1,et();for(let t=0;t<this._depsLength;t++){const n=this.deps[t];if(n.computed&&(Bo(n.computed),this._dirtyLevel>=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),tt()}return this._dirtyLevel>=4}set dirty(t){this._dirtyLevel=t?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=Ge,n=ct;try{return Ge=!0,ct=this,this._runnings++,Xs(this),this.fn()}finally{Ys(this),this._runnings--,ct=n,Ge=t}}stop(){this.active&&(Xs(this),Ys(this),this.onStop&&this.onStop(),this.active=!1)}}function Bo(e){return e.value}function Xs(e){e._trackId++,e._depsLength=0}function Ys(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)Qr(e.deps[t],e);e.deps.length=e._depsLength}}function Qr(e,t){const n=e.get(t);n!==void 0&&t._trackId!==n&&(e.delete(t),e.size===0&&e.cleanup())}let Ge=!0,cs=0;const Zr=[];function et(){Zr.push(Ge),Ge=!1}function tt(){const e=Zr.pop();Ge=e===void 0?!0:e}function As(){cs++}function Os(){for(cs--;!cs&&as.length;)as.shift()()}function ei(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const s=e.deps[e._depsLength];s!==t?(s&&Qr(s,e),e.deps[e._depsLength++]=t):e._depsLength++}}const as=[];function ti(e,t,n){As();for(const s of e.keys()){let r;s._dirtyLevel<t&&(r??(r=e.get(s)===s._trackId))&&(s._shouldSchedule||(s._shouldSchedule=s._dirtyLevel===0),s._dirtyLevel=t),s._shouldSchedule&&(r??(r=e.get(s)===s._trackId))&&(s.trigger(),(!s._runnings||s.allowRecurse)&&s._dirtyLevel!==2&&(s._shouldSchedule=!1,s.scheduler&&as.push(s.scheduler)))}Os()}const ni=(e,t)=>{const n=new Map;return n.cleanup=e,n.computed=t,n},hn=new WeakMap,at=Symbol(""),fs=Symbol("");function we(e,t,n){if(Ge&&ct){let s=hn.get(e);s||hn.set(e,s=new Map);let r=s.get(n);r||s.set(n,r=ni(()=>s.delete(n))),ei(ct,r)}}function He(e,t,n,s,r,i){const o=hn.get(e);if(!o)return;let l=[];if(t==="clear")l=[...o.values()];else if(n==="length"&&B(e)){const c=Number(s);o.forEach((f,d)=>{(d==="length"||!Qe(d)&&d>=c)&&l.push(f)})}else switch(n!==void 0&&l.push(o.get(n)),t){case"add":B(e)?Cs(n)&&l.push(o.get("length")):(l.push(o.get(at)),_t(e)&&l.push(o.get(fs)));break;case"delete":B(e)||(l.push(o.get(at)),_t(e)&&l.push(o.get(fs)));break;case"set":_t(e)&&l.push(o.get(at));break}As();for(const c of l)c&&ti(c,4);Os()}function ko(e,t){const n=hn.get(e);return n&&n.get(t)}const Ko=ws("__proto__,__v_isRef,__isVue"),si=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Qe)),Js=Wo();function Wo(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const s=z(this);for(let i=0,o=this.length;i<o;i++)we(s,"get",i+"");const r=s[t](...n);return r===-1||r===!1?s[t](...n.map(z)):r}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){et(),As();const s=z(this)[t].apply(this,n);return Os(),tt(),s}}),e}function qo(e){Qe(e)||(e=String(e));const t=z(this);return we(t,"has",e),t.hasOwnProperty(e)}class ri{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,s){const r=this._isReadonly,i=this._isShallow;if(n==="__v_isReactive")return!r;if(n==="__v_isReadonly")return r;if(n==="__v_isShallow")return i;if(n==="__v_raw")return s===(r?i?il:ci:i?li:oi).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const o=B(t);if(!r){if(o&&J(Js,n))return Reflect.get(Js,n,s);if(n==="hasOwnProperty")return qo}const l=Reflect.get(t,n,s);return(Qe(n)?si.has(n):Ko(n))||(r||we(t,"get",n),i)?l:ge(l)?o&&Cs(n)?l:l.value:Z(l)?r?An(l):Tn(l):l}}class ii extends ri{constructor(t=!1){super(!1,t)}set(t,n,s,r){let i=t[n];if(!this._isShallow){const c=dt(i);if(!xt(s)&&!dt(s)&&(i=z(i),s=z(s)),!B(t)&&ge(i)&&!ge(s))return c?!1:(i.value=s,!0)}const o=B(t)&&Cs(n)?Number(n)<t.length:J(t,n),l=Reflect.set(t,n,s,r);return t===z(r)&&(o?Je(s,i)&&He(t,"set",n,s):He(t,"add",n,s)),l}deleteProperty(t,n){const s=J(t,n);t[n];const r=Reflect.deleLine truncated
|
||||
* @vue/runtime-core v3.4.38
|
||||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||||
* @license MIT
|
||||
**/function Xe(e,t,n,s){try{return s?e(...s):e()}catch(r){On(r,t,n)}}function Oe(e,t,n,s){if(k(e)){const r=Xe(e,t,n,s);return r&&kr(r)&&r.catch(i=>{On(i,t,n)}),r}if(B(e)){const r=[];for(let i=0;i<e.length;i++)r.push(Oe(e[i],t,n,s));return r}}function On(e,t,n,s=!0){const r=t?t.vnode:null;if(t){let i=t.parent;const o=t.proxy,l=`https://vuejs.org/error-reference/#runtime-${n}`;for(;i;){const f=i.ec;if(f){for(let d=0;d<f.length;d++)if(f[d](e,o,l)===!1)return}i=i.parent}const c=t.appContext.config.errorHandler;if(c){et(),Xe(c,null,10,[e,o,l]),tt();return}}_l(e,n,r,s)}function _l(e,t,n,s=!0){console.error(e)}let Vt=!1,us=!1;const pe=[];let Ne=0;const vt=[];let ke=null,ot=0;const gi=Promise.resolve();let Ns=null;function Rn(e){const t=Ns||gi;return e?t.then(this?e.bind(this):e):t}function bl(e){let t=Ne+1,n=pe.length;for(;t<n;){const s=t+n>>>1,r=pe[s],i=Dt(r);i<e||i===e&&r.pre?t=s+1:n=s}return t}function Fs(e){(!pe.length||!pe.includes(e,Vt&&e.allowRecurse?Ne+1:Ne))&&(e.id==null?pe.push(e):pe.splice(bl(e.id),0,e),mi())}function mi(){!Vt&&!us&&(us=!0,Ns=gi.then(yi))}function wl(e){const t=pe.indexOf(e);t>Ne&&pe.splice(t,1)}function vl(e){B(e)?vt.push(...e):(!ke||!ke.includes(e,e.allowRecurse?ot+1:ot))&&vt.push(e),mi()}function tr(e,t,n=Vt?Ne+1:0){for(;n<pe.length;n++){const s=pe[n];if(s&&s.pre){if(e&&s.id!==e.uid)continue;pe.splice(n,1),n--,s()}}}function pn(e){if(vt.length){const t=[...new Set(vt)].sort((n,s)=>Dt(n)-Dt(s));if(vt.length=0,ke){ke.push(...t);return}for(ke=t,ot=0;ot<ke.length;ot++){const n=ke[ot];n.active!==!1&&n()}ke=null,ot=0}}const Dt=e=>e.id==null?1/0:e.id,El=(e,t)=>{const n=Dt(e)-Dt(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function yi(e){us=!1,Vt=!0,pe.sort(El);try{for(Ne=0;Ne<pe.length;Ne++){const t=pe[Ne];t&&t.active!==!1&&Xe(t,t.i,t.i?15:14)}}finally{Ne=0,pe.length=0,pn(),Vt=!1,Ns=null,(pe.length||vt.length)&&yi()}}let le=null,Ln=null;function gn(e){const t=le;return le=e,Ln=e&&e.type.__scopeId||null,t}function sf(e){Ln=e}function rf(){Ln=null}function Cl(e,t=le,n){if(!t||e._n)return e;const s=(...r)=>{s._d&&pr(-1);const i=gn(t);let o;try{o=e(...r)}finally{gn(i),s._d&&pr(1)}return o};return s._n=!0,s._c=!0,s._d=!0,s}function of(e,t){if(le===null)return e;const n=jn(le),s=e.dirs||(e.dirs=[]);for(let r=0;r<t.length;r++){let[i,o,l,c=ne]=t[r];i&&(k(i)&&(i={mounted:i,updated:i}),i.deep&&qe(o),s.push({dir:i,instance:n,value:o,oldValue:void 0,arg:l,modifiers:c}))}return e}function Pe(e,t,n,s){const r=e.dirs,i=t&&t.dirs;for(let o=0;o<r.length;o++){const l=r[o];i&&(l.oldValue=i[o].value);let c=l.dir[s];c&&(et(),Oe(c,n,8,[e.el,l,e,t]),tt())}}const Ke=Symbol("_leaveCb"),Qt=Symbol("_enterCb");function Sl(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return At(()=>{e.isMounted=!0}),Si(()=>{e.isUnmounting=!0}),e}const Se=[Function,Array],_i={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Se,onEnter:Se,onAfterEnter:Se,onEnterCancelled:Se,onBeforeLeave:Se,onLeave:Se,onAfterLeave:Se,onLeaveCancelled:Se,onBeforeAppear:Se,onAppear:Se,onAfterAppear:Se,onAppearCancelled:Se},bi=e=>{const t=e.subTree;return t.component?bi(t.component):t},xl={name:"BaseTransition",props:_i,setup(e,{slots:t}){const n=$n(),s=Sl();return()=>{const r=t.default&&vi(t.default(),!0);if(!r||!r.length)return;let i=r[0];if(r.length>1){for(const m of r)if(m.type!==ye){i=m;break}}const o=z(e),{mode:l}=o;if(s.isLeaving)return kn(i);const c=nr(i);if(!c)return kn(i);let f=ds(c,o,s,n,m=>f=m);mn(c,f);const d=n.subTree,h=d&&nr(d);if(h&&h.type!==ye&&!lt(c,h)&&bi(n).type!==ye){const m=ds(h,o,s,n);if(mn(h,m),l==="out-in"&&c.type!==ye)return s.isLeaving=!0,m.afterLeave=()=>{s.isLeaving=!1,n.update.active!==!1&&(n.effect.dirty=!0,n.update())},kn(i);l==="in-out"&&c.type!==ye&&(m.delayLeave=(C,A,P)=>{const D=wi(s,h);D[String(h.key)]=h,C[Ke]=()=>{A(),C[Ke]=void 0,delete f.delayedLeave},f.delayedLeave=P})}return i}}},Tl=xl;function wi(e,t){const{leavingVNodes:n}=e;let s=n.get(t.type);return s||(s=Object.create(null),n.set(t.type,s)),s}function ds(e,t,n,s,r){const{appear:i,mode:o,persisted:l=!1,onBeforeEnter:c,onEnter:f,onAfterEnter:d,onEnterCancelled:h,onBeforeLeave:m,onLeave:C,onAfterLeave:A,onLeaveCancelled:P,onBeforeAppear:D,onAppear:K,onAfterAppear:G,onAppearCancelled:p}=t,y=String(e.key),M=wi(n,e),x=(L,_)=>{L&&Oe(L,s,9,_)},F=(L,_)=>{const N=_[1];x(L,_),B(L)?L.every(S=>S.length<=1)&&N():L.length<=1&&N()},H={mode:o,persisted:l,beforeEnter(L){let _=c;if(!n.isMounted)if(i)_=D||c;else return;L[Ke]&&L[Ke](!0);const N=M[y];N&<(e,N)&&N.el[Ke]&&N.el[Ke](),x(_,[L])},enter(L){let _=f,N=d,S=h;if(!n.isMounted)if(i)_=K||f,N=G||d,S=p||h;else return;let q=!1;const ee=L[Qt]=se=>{q||(q=!0,se?x(S,[L]):x(N,[L]),H.delayedLeave&&H.delayedLeave(),L[Qt]=void 0)};_?F(_,[L,ee]):ee()},leave(L,_){const N=String(e.key);if(L[Qt]&&L[Qt](!0),n.isUnmounting)return _();x(m,[L]);let S=!1;const q=L[Ke]=ee=>{S||(S=!0,_(),ee?x(P,[L]):x(A,[L]),L[Ke]=void 0,M[N]===e&&delete M[N])};M[N]=e,C?F(C,[L,q]):q()},clone(L){c
Line truncated
|
||||
* @vue/runtime-dom v3.4.38
|
||||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||||
* @license MIT
|
||||
**/const Mc="http://www.w3.org/2000/svg",Ic="http://www.w3.org/1998/Math/MathML",$e=typeof document<"u"?document:null,_r=$e&&$e.createElement("template"),Pc={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const r=t==="svg"?$e.createElementNS(Mc,e):t==="mathml"?$e.createElementNS(Ic,e):n?$e.createElement(e,{is:n}):$e.createElement(e);return e==="select"&&s&&s.multiple!=null&&r.setAttribute("multiple",s.multiple),r},createText:e=>$e.createTextNode(e),createComment:e=>$e.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>$e.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,r,i){const o=n?n.previousSibling:t.lastChild;if(r&&(r===i||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===i||!(r=r.nextSibling)););else{_r.innerHTML=s==="svg"?`<svg>${e}</svg>`:s==="mathml"?`<math>${e}</math>`:e;const l=_r.content;if(s==="svg"||s==="mathml"){const c=l.firstChild;for(;c.firstChild;)l.appendChild(c.firstChild);l.removeChild(c)}t.insertBefore(l,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},Ue="transition",Lt="animation",Bt=Symbol("_vtc"),ro=(e,{slots:t})=>bs(Tl,Nc(e),t);ro.displayName="Transition";const io={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String};ro.props=ce({},_i,io);const rt=(e,t=[])=>{B(e)?e.forEach(n=>n(...t)):e&&e(...t)},br=e=>e?B(e)?e.some(t=>t.length>1):e.length>1:!1;function Nc(e){const t={};for(const S in e)S in io||(t[S]=e[S]);if(e.css===!1)return t;const{name:n="v",type:s,duration:r,enterFromClass:i=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:c=i,appearActiveClass:f=o,appearToClass:d=l,leaveFromClass:h=`${n}-leave-from`,leaveActiveClass:m=`${n}-leave-active`,leaveToClass:C=`${n}-leave-to`}=e,A=Fc(r),P=A&&A[0],D=A&&A[1],{onBeforeEnter:K,onEnter:G,onEnterCancelled:p,onLeave:y,onLeaveCancelled:M,onBeforeAppear:x=K,onAppear:F=G,onAppearCancelled:H=p}=t,L=(S,q,ee)=>{it(S,q?d:l),it(S,q?f:o),ee&&ee()},_=(S,q)=>{S._isLeaving=!1,it(S,h),it(S,C),it(S,m),q&&q()},N=S=>(q,ee)=>{const se=S?F:G,V=()=>L(q,S,ee);rt(se,[q,V]),wr(()=>{it(q,S?c:i),Be(q,S?d:l),br(se)||vr(q,s,P,V)})};return ce(t,{onBeforeEnter(S){rt(K,[S]),Be(S,i),Be(S,o)},onBeforeAppear(S){rt(x,[S]),Be(S,c),Be(S,f)},onEnter:N(!1),onAppear:N(!0),onLeave(S,q){S._isLeaving=!0;const ee=()=>_(S,q);Be(S,h),Be(S,m),jc(),wr(()=>{S._isLeaving&&(it(S,h),Be(S,C),br(y)||vr(S,s,D,ee))}),rt(y,[S,ee])},onEnterCancelled(S){L(S,!1),rt(p,[S])},onAppearCancelled(S){L(S,!0),rt(H,[S])},onLeaveCancelled(S){_(S),rt(M,[S])}})}function Fc(e){if(e==null)return null;if(Z(e))return[Gn(e.enter),Gn(e.leave)];{const t=Gn(e);return[t,t]}}function Gn(e){return Mo(e)}function Be(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Bt]||(e[Bt]=new Set)).add(t)}function it(e,t){t.split(/\s+/).forEach(s=>s&&e.classList.remove(s));const n=e[Bt];n&&(n.delete(t),n.size||(e[Bt]=void 0))}function wr(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let $c=0;function vr(e,t,n,s){const r=e._endId=++$c,i=()=>{r===e._endId&&s()};if(n)return setTimeout(i,n);const{type:o,timeout:l,propCount:c}=Hc(e,t);if(!o)return s();const f=o+"end";let d=0;const h=()=>{e.removeEventListener(f,m),i()},m=C=>{C.target===e&&++d>=c&&h()};setTimeout(()=>{d<c&&h()},l+1),e.addEventListener(f,m)}function Hc(e,t){const n=window.getComputedStyle(e),s=A=>(n[A]||"").split(", "),r=s(`${Ue}Delay`),i=s(`${Ue}Duration`),o=Er(r,i),l=s(`${Lt}Delay`),c=s(`${Lt}Duration`),f=Er(l,c);let d=null,h=0,m=0;t===Ue?o>0&&(d=Ue,h=o,m=i.length):t===Lt?f>0&&(d=Lt,h=f,m=c.length):(h=Math.max(o,f),d=h>0?o>f?Ue:Lt:null,m=d?d===Ue?i.length:c.length:0);const C=d===Ue&&/\b(transform|all)(,|$)/.test(s(`${Ue}Property`).toString());return{type:d,timeout:h,propCount:m,hasTransform:C}}function Er(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,s)=>Cr(n)+Cr(e[s])))}function Cr(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function jc(){return document.body.offsetHeight}function Vc(e,t,n){const s=e[Bt];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const vn=Symbol("_vod"),oo=Symbol("_vsh"),_f={beforeMount(e,{value:t},{transition:n}){e[vn]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Mt(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:s}){!t!=!n&&(s?t?(s.beforeEnter(e),Mt(e,!0),s.enter(e)):s.leave(e,()=>{Mt(e,!1)}):Mt(e,t))},beforeUnmount(e,{value:t}){Mt(e,t)}};function Mt(e,t){e.style.display=t?e[vn]:"none",e[oo]=!t}const Dc=Sy
Line truncated
|
||||
Reference in new issue
Block a user