@zyzgroup/core-vue 0.0.30 → 0.0.31

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6,7 +6,7 @@ var ZYZGroupCoreVue=function(lt){"use strict";/**
6
6
  * @vue/reactivity v3.4.21
7
7
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
8
8
  * @license MIT
9
- **/function Cs(s,...t){console.warn(`[Vue warn] ${s}`,...t)}let je;class kh{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=je,!t&&je&&(this.index=(je.scopes||(je.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const e=je;try{return je=this,t()}finally{je=e}}else({}).NODE_ENV!=="production"&&Cs("cannot run an inactive effect scope.")}on(){je=this}off(){je=this.parent}stop(t){if(this._active){let e,n;for(e=0,n=this.effects.length;e<n;e++)this.effects[e].stop();for(e=0,n=this.cleanups.length;e<n;e++)this.cleanups[e]();if(this.scopes)for(e=0,n=this.scopes.length;e<n;e++)this.scopes[e].stop(!0);if(!this.detached&&this.parent&&!t){const i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0,this._active=!1}}}function Ph(s,t=je){t&&t.active&&t.effects.push(s)}function Oh(){return je}let Xs;class Gr{constructor(t,e,n,i){this.fn=t,this.trigger=e,this.scheduler=n,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,Ph(this,i)}get dirty(){if(this._dirtyLevel===2||this._dirtyLevel===3){this._dirtyLevel=1,Ts();for(let t=0;t<this._depsLength;t++){const e=this.deps[t];if(e.computed&&(Ih(e.computed),this._dirtyLevel>=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),Es()}return this._dirtyLevel>=4}set dirty(t){this._dirtyLevel=t?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=Ss,e=Xs;try{return Ss=!0,Xs=this,this._runnings++,Za(this),this.fn()}finally{Ka(this),this._runnings--,Xs=e,Ss=t}}stop(){var t;this.active&&(Za(this),Ka(this),(t=this.onStop)==null||t.call(this),this.active=!1)}}function Ih(s){return s.value}function Za(s){s._trackId++,s._depsLength=0}function Ka(s){if(s.deps.length>s._depsLength){for(let t=s._depsLength;t<s.deps.length;t++)Qa(s.deps[t],s);s.deps.length=s._depsLength}}function Qa(s,t){const e=s.get(t);e!==void 0&&t._trackId!==e&&(s.delete(t),s.size===0&&s.cleanup())}let Ss=!0,Xr=0;const Ja=[];function Ts(){Ja.push(Ss),Ss=!1}function Es(){const s=Ja.pop();Ss=s===void 0?!0:s}function jr(){Xr++}function Ur(){for(Xr--;!Xr&&Hr.length;)Hr.shift()()}function tl(s,t,e){var n;if(t.get(s)!==s._trackId){t.set(s,s._trackId);const i=s.deps[s._depsLength];i!==t?(i&&Qa(i,s),s.deps[s._depsLength++]=t):s._depsLength++,{}.NODE_ENV!=="production"&&((n=s.onTrack)==null||n.call(s,ne({effect:s},e)))}}const Hr=[];function el(s,t,e){var n;jr();for(const i of s.keys()){let r;i._dirtyLevel<t&&(r??(r=s.get(i)===i._trackId))&&(i._shouldSchedule||(i._shouldSchedule=i._dirtyLevel===0),i._dirtyLevel=t),i._shouldSchedule&&(r??(r=s.get(i)===i._trackId))&&({}.NODE_ENV!=="production"&&((n=i.onTrigger)==null||n.call(i,ne({effect:i},e))),i.trigger(),(!i._runnings||i.allowRecurse)&&i._dirtyLevel!==2&&(i._shouldSchedule=!1,i.scheduler&&Hr.push(i.scheduler)))}Ur()}const sl=(s,t)=>{const e=new Map;return e.cleanup=s,e.computed=t,e},Wr=new WeakMap,js=Symbol({}.NODE_ENV!=="production"?"iterate":""),qr=Symbol({}.NODE_ENV!=="production"?"Map key iterate":"");function pe(s,t,e){if(Ss&&Xs){let n=Wr.get(s);n||Wr.set(s,n=new Map);let i=n.get(e);i||n.set(e,i=sl(()=>n.delete(e))),tl(Xs,i,{}.NODE_ENV!=="production"?{target:s,type:t,key:e}:void 0)}}function Ke(s,t,e,n,i,r){const o=Wr.get(s);if(!o)return;let a=[];if(t==="clear")a=[...o.values()];else if(e==="length"&&xt(s)){const l=Number(n);o.forEach((c,u)=>{(u==="length"||!fn(u)&&u>=l)&&a.push(c)})}else switch(e!==void 0&&a.push(o.get(e)),t){case"add":xt(s)?Yr(e)&&a.push(o.get("length")):(a.push(o.get(js)),Bs(s)&&a.push(o.get(qr)));break;case"delete":xt(s)||(a.push(o.get(js)),Bs(s)&&a.push(o.get(qr)));break;case"set":Bs(s)&&a.push(o.get(js));break}jr();for(const l of a)l&&el(l,4,{}.NODE_ENV!=="production"?{target:s,type:t,key:e,newValue:n,oldValue:i,oldTarget:r}:void 0);Ur()}const Dh=hn("__proto__,__v_isRef,__isVue"),nl=new Set(Object.getOwnPropertyNames(Symbol).filter(s=>s!=="arguments"&&s!=="caller").map(s=>Symbol[s]).filter(fn)),il=Rh();function Rh(){const s={};return["includes","indexOf","lastIndexOf"].forEach(t=>{s[t]=function(...e){const n=Dt(this);for(let r=0,o=this.length;r<o;r++)pe(n,"get",r+"");const i=n[t](...e);return i===-1||i===!1?n[t](...e.map(Dt)):i}}),["push","pop","shift","unshift","splice"].forEach(t=>{s[t]=function(...e){Ts(),jr();const n=Dt(this)[t].apply(this,e);return Ur(),Es(),n}}),s}function Ah(s){const t=Dt(this);return pe(t,"has",s),t.hasOwnProperty(s)}class rl{constructor(t=!1,e=!1){this._isReadonly=t,this._isShallow=e}get(t,e,n){const i=this._isReadonly,r=this._isShallow;if(e==="__v_isReactive")return!i;if(e==="__v_isReadonly")return i;if(e==="__v_isShallow")return r;if(e==="__v_raw")return n===(i?r?gl:ml:r?pl:fl).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const o=xt(t);if(!i){if(o&&At(il,e))return Reflect.get(il,e,n);if(e==="hasOwnProperty")return Ah}const a=Reflect.get(t,e,n);return(fn(e)?nl.has(e):Dh(e))||(i||pe(t,"get",e),r)?a:me(a)?o&&Yr(e)?a:a.value:Gt(a)?i?yl(a):Qt(a):a}}class ol extends rl{constructor(t=!1){super(!1,t)}set(t,e,n,i){let r=t[e];if(!this._isShallow){const l=Ps(r);if(!Hs(n)&&!Ps(n)&&(r=Dt(r),n=Dt(n)),!xt(t)&&me(r)&&!me(n))return l?!1:(r.value=n,!0)}const o=xt(t)&&Yr(e)?Number(e)<t.length:At(t,e),a=Reflect.set(t,e,n,i);return t===Dt(i)&&(o?ws(n,r)&&Ke(t,"set",e,n,r):Ke(t,"add",e,n)),a}deleteProperty(t,e){const n=At(t,e),i=t[e],r=Reflect.deleteProperty(t,e);return r&&n&&Ke(t,"delete",e,void 0,i),r}has(t,e){const n=Reflect.has(t,e);return(!fn(e)||!nl.has(e))&&pe(t,"has",e),n}ownKeys(t){return pe(t,"iterate",xt(t)?"length":js),Reflect.ownKeys(t)}}class al extends rl{constructor(t=!1){super(!0,t)}set(t,e){return{}.NODE_ENV!=="production"&&Cs(`Set operation on key "${String(e)}" failed: target is readonly.`,t),!0}deleteProperty(t,e){return{}.NODE_ENV!=="production"&&Cs(`Delete operation on key "${String(e)}" failed: target is readonly.`,t),!0}}const Mh=new ol,Nh=new al,Lh=new ol(!0),Fh=new al(!0),Zr=s=>s,xi=s=>Reflect.getPrototypeOf(s);function wi(s,t,e=!1,n=!1){s=s.__v_raw;const i=Dt(s),r=Dt(t);e||(ws(t,r)&&pe(i,"get",t),pe(i,"get",r));const{has:o}=xi(i),a=n?Zr:e?Qr:In;if(o.call(i,t))return a(s.get(t));if(o.call(i,r))return a(s.get(r));s!==i&&s.get(t)}function Ci(s,t=!1){const e=this.__v_raw,n=Dt(e),i=Dt(s);return t||(ws(s,i)&&pe(n,"has",s),pe(n,"has",i)),s===i?e.has(s):e.has(s)||e.has(i)}function Si(s,t=!1){return s=s.__v_raw,!t&&pe(Dt(s),"iterate",js),Reflect.get(s,"size",s)}function ll(s){s=Dt(s);const t=Dt(this);return xi(t).has.call(t,s)||(t.add(s),Ke(t,"add",s,s)),this}function cl(s,t){t=Dt(t);const e=Dt(this),{has:n,get:i}=xi(e);let r=n.call(e,s);r?{}.NODE_ENV!=="production"&&dl(e,n,s):(s=Dt(s),r=n.call(e,s));const o=i.call(e,s);return e.set(s,t),r?ws(t,o)&&Ke(e,"set",s,t,o):Ke(e,"add",s,t),this}function ul(s){const t=Dt(this),{has:e,get:n}=xi(t);let i=e.call(t,s);i?{}.NODE_ENV!=="production"&&dl(t,e,s):(s=Dt(s),i=e.call(t,s));const r=n?n.call(t,s):void 0,o=t.delete(s);return i&&Ke(t,"delete",s,void 0,r),o}function hl(){const s=Dt(this),t=s.size!==0,e={}.NODE_ENV!=="production"?Bs(s)?new Map(s):new Set(s):void 0,n=s.clear();return t&&Ke(s,"clear",void 0,void 0,e),n}function Ti(s,t){return function(n,i){const r=this,o=r.__v_raw,a=Dt(o),l=t?Zr:s?Qr:In;return!s&&pe(a,"iterate",js),o.forEach((c,u)=>n.call(i,l(c),l(u),r))}}function Ei(s,t,e){return function(...n){const i=this.__v_raw,r=Dt(i),o=Bs(r),a=s==="entries"||s===Symbol.iterator&&o,l=s==="keys"&&o,c=i[s](...n),u=e?Zr:t?Qr:In;return!t&&pe(r,"iterate",l?qr:js),{next(){const{value:h,done:d}=c.next();return d?{value:h,done:d}:{value:a?[u(h[0]),u(h[1])]:u(h),done:d}},[Symbol.iterator](){return this}}}}function ks(s){return function(...t){if({}.NODE_ENV!=="production"){const e=t[0]?`on key "${t[0]}" `:"";Cs(`${_i(s)} operation ${e}failed: target is readonly.`,Dt(this))}return s==="delete"?!1:s==="clear"?void 0:this}}function $h(){const s={get(r){return wi(this,r)},get size(){return Si(this)},has:Ci,add:ll,set:cl,delete:ul,clear:hl,forEach:Ti(!1,!1)},t={get(r){return wi(this,r,!1,!0)},get size(){return Si(this)},has:Ci,add:ll,set:cl,delete:ul,clear:hl,forEach:Ti(!1,!0)},e={get(r){return wi(this,r,!0)},get size(){return Si(this,!0)},has(r){return Ci.call(this,r,!0)},add:ks("add"),set:ks("set"),delete:ks("delete"),clear:ks("clear"),forEach:Ti(!0,!1)},n={get(r){return wi(this,r,!0,!0)},get size(){return Si(this,!0)},has(r){return Ci.call(this,r,!0)},add:ks("add"),set:ks("set"),delete:ks("delete"),clear:ks("clear"),forEach:Ti(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(r=>{s[r]=Ei(r,!1,!1),e[r]=Ei(r,!0,!1),t[r]=Ei(r,!1,!0),n[r]=Ei(r,!0,!0)}),[s,e,t,n]}const[Vh,Yh,zh,Bh]=$h();function ki(s,t){const e=t?s?Bh:zh:s?Yh:Vh;return(n,i,r)=>i==="__v_isReactive"?!s:i==="__v_isReadonly"?s:i==="__v_raw"?n:Reflect.get(At(e,i)&&i in n?e:n,i,r)}const Gh={get:ki(!1,!1)},Xh={get:ki(!1,!0)},jh={get:ki(!0,!1)},Uh={get:ki(!0,!0)};function dl(s,t,e){const n=Dt(e);if(n!==e&&t.call(s,n)){const i=Vr(s);Cs(`Reactive ${i} contains both the raw and reactive versions of the same object${i==="Map"?" 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 fl=new WeakMap,pl=new WeakMap,ml=new WeakMap,gl=new WeakMap;function Hh(s){switch(s){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Wh(s){return s.__v_skip||!Object.isExtensible(s)?0:Hh(Vr(s))}function Qt(s){return Ps(s)?s:Pi(s,!1,Mh,Gh,fl)}function qh(s){return Pi(s,!1,Lh,Xh,pl)}function yl(s){return Pi(s,!0,Nh,jh,ml)}function mn(s){return Pi(s,!0,Fh,Uh,gl)}function Pi(s,t,e,n,i){if(!Gt(s))return{}.NODE_ENV!=="production"&&Cs(`value cannot be made reactive: ${String(s)}`),s;if(s.__v_raw&&!(t&&s.__v_isReactive))return s;const r=i.get(s);if(r)return r;const o=Wh(s);if(o===0)return s;const a=new Proxy(s,o===2?n:e);return i.set(s,a),a}function Us(s){return Ps(s)?Us(s.__v_raw):!!(s&&s.__v_isReactive)}function Ps(s){return!!(s&&s.__v_isReadonly)}function Hs(s){return!!(s&&s.__v_isShallow)}function Kr(s){return Us(s)||Ps(s)}function Dt(s){const t=s&&s.__v_raw;return t?Dt(t):s}function vl(s){return Object.isExtensible(s)&&bi(s,"__v_skip",!0),s}const In=s=>Gt(s)?Qt(s):s,Qr=s=>Gt(s)?yl(s):s,Zh="Computed is still dirty after getter evaluation, likely because a computed is mutating its own dependency in its getter. State mutations in computed getters should be avoided. Check the docs for more details: https://vuejs.org/guide/essentials/computed.html#getters-should-be-side-effect-free";class _l{constructor(t,e,n,i){this.getter=t,this._setter=e,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new Gr(()=>t(this._value),()=>Oi(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!i,this.__v_isReadonly=n}get value(){const t=Dt(this);return(!t._cacheable||t.effect.dirty)&&ws(t._value,t._value=t.effect.run())&&Oi(t,4),bl(t),t.effect._dirtyLevel>=2&&({}.NODE_ENV!=="production"&&this._warnRecursive&&Cs(Zh,`
9
+ **/function Cs(s,...t){console.warn(`[Vue warn] ${s}`,...t)}let je;class kh{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=je,!t&&je&&(this.index=(je.scopes||(je.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const e=je;try{return je=this,t()}finally{je=e}}else({}).NODE_ENV!=="production"&&Cs("cannot run an inactive effect scope.")}on(){je=this}off(){je=this.parent}stop(t){if(this._active){let e,n;for(e=0,n=this.effects.length;e<n;e++)this.effects[e].stop();for(e=0,n=this.cleanups.length;e<n;e++)this.cleanups[e]();if(this.scopes)for(e=0,n=this.scopes.length;e<n;e++)this.scopes[e].stop(!0);if(!this.detached&&this.parent&&!t){const i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0,this._active=!1}}}function Ph(s,t=je){t&&t.active&&t.effects.push(s)}function Oh(){return je}let Xs;class Gr{constructor(t,e,n,i){this.fn=t,this.trigger=e,this.scheduler=n,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,Ph(this,i)}get dirty(){if(this._dirtyLevel===2||this._dirtyLevel===3){this._dirtyLevel=1,Ts();for(let t=0;t<this._depsLength;t++){const e=this.deps[t];if(e.computed&&(Ih(e.computed),this._dirtyLevel>=4))break}this._dirtyLevel===1&&(this._dirtyLevel=0),Es()}return this._dirtyLevel>=4}set dirty(t){this._dirtyLevel=t?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let t=Ss,e=Xs;try{return Ss=!0,Xs=this,this._runnings++,Za(this),this.fn()}finally{Ka(this),this._runnings--,Xs=e,Ss=t}}stop(){var t;this.active&&(Za(this),Ka(this),(t=this.onStop)==null||t.call(this),this.active=!1)}}function Ih(s){return s.value}function Za(s){s._trackId++,s._depsLength=0}function Ka(s){if(s.deps.length>s._depsLength){for(let t=s._depsLength;t<s.deps.length;t++)Qa(s.deps[t],s);s.deps.length=s._depsLength}}function Qa(s,t){const e=s.get(t);e!==void 0&&t._trackId!==e&&(s.delete(t),s.size===0&&s.cleanup())}let Ss=!0,Xr=0;const Ja=[];function Ts(){Ja.push(Ss),Ss=!1}function Es(){const s=Ja.pop();Ss=s===void 0?!0:s}function jr(){Xr++}function Ur(){for(Xr--;!Xr&&Hr.length;)Hr.shift()()}function tl(s,t,e){var n;if(t.get(s)!==s._trackId){t.set(s,s._trackId);const i=s.deps[s._depsLength];i!==t?(i&&Qa(i,s),s.deps[s._depsLength++]=t):s._depsLength++,{}.NODE_ENV!=="production"&&((n=s.onTrack)==null||n.call(s,ne({effect:s},e)))}}const Hr=[];function el(s,t,e){var n;jr();for(const i of s.keys()){let r;i._dirtyLevel<t&&(r??(r=s.get(i)===i._trackId))&&(i._shouldSchedule||(i._shouldSchedule=i._dirtyLevel===0),i._dirtyLevel=t),i._shouldSchedule&&(r??(r=s.get(i)===i._trackId))&&({}.NODE_ENV!=="production"&&((n=i.onTrigger)==null||n.call(i,ne({effect:i},e))),i.trigger(),(!i._runnings||i.allowRecurse)&&i._dirtyLevel!==2&&(i._shouldSchedule=!1,i.scheduler&&Hr.push(i.scheduler)))}Ur()}const sl=(s,t)=>{const e=new Map;return e.cleanup=s,e.computed=t,e},Wr=new WeakMap,js=Symbol({}.NODE_ENV!=="production"?"iterate":""),qr=Symbol({}.NODE_ENV!=="production"?"Map key iterate":"");function pe(s,t,e){if(Ss&&Xs){let n=Wr.get(s);n||Wr.set(s,n=new Map);let i=n.get(e);i||n.set(e,i=sl(()=>n.delete(e))),tl(Xs,i,{}.NODE_ENV!=="production"?{target:s,type:t,key:e}:void 0)}}function Ke(s,t,e,n,i,r){const o=Wr.get(s);if(!o)return;let a=[];if(t==="clear")a=[...o.values()];else if(e==="length"&&xt(s)){const l=Number(n);o.forEach((c,u)=>{(u==="length"||!fn(u)&&u>=l)&&a.push(c)})}else switch(e!==void 0&&a.push(o.get(e)),t){case"add":xt(s)?Yr(e)&&a.push(o.get("length")):(a.push(o.get(js)),Bs(s)&&a.push(o.get(qr)));break;case"delete":xt(s)||(a.push(o.get(js)),Bs(s)&&a.push(o.get(qr)));break;case"set":Bs(s)&&a.push(o.get(js));break}jr();for(const l of a)l&&el(l,4,{}.NODE_ENV!=="production"?{target:s,type:t,key:e,newValue:n,oldValue:i,oldTarget:r}:void 0);Ur()}const Dh=hn("__proto__,__v_isRef,__isVue"),nl=new Set(Object.getOwnPropertyNames(Symbol).filter(s=>s!=="arguments"&&s!=="caller").map(s=>Symbol[s]).filter(fn)),il=Rh();function Rh(){const s={};return["includes","indexOf","lastIndexOf"].forEach(t=>{s[t]=function(...e){const n=Dt(this);for(let r=0,o=this.length;r<o;r++)pe(n,"get",r+"");const i=n[t](...e);return i===-1||i===!1?n[t](...e.map(Dt)):i}}),["push","pop","shift","unshift","splice"].forEach(t=>{s[t]=function(...e){Ts(),jr();const n=Dt(this)[t].apply(this,e);return Ur(),Es(),n}}),s}function Ah(s){const t=Dt(this);return pe(t,"has",s),t.hasOwnProperty(s)}class rl{constructor(t=!1,e=!1){this._isReadonly=t,this._isShallow=e}get(t,e,n){const i=this._isReadonly,r=this._isShallow;if(e==="__v_isReactive")return!i;if(e==="__v_isReadonly")return i;if(e==="__v_isShallow")return r;if(e==="__v_raw")return n===(i?r?gl:ml:r?pl:fl).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const o=xt(t);if(!i){if(o&&At(il,e))return Reflect.get(il,e,n);if(e==="hasOwnProperty")return Ah}const a=Reflect.get(t,e,n);return(fn(e)?nl.has(e):Dh(e))||(i||pe(t,"get",e),r)?a:me(a)?o&&Yr(e)?a:a.value:Gt(a)?i?yl(a):Jt(a):a}}class ol extends rl{constructor(t=!1){super(!1,t)}set(t,e,n,i){let r=t[e];if(!this._isShallow){const l=Ps(r);if(!Hs(n)&&!Ps(n)&&(r=Dt(r),n=Dt(n)),!xt(t)&&me(r)&&!me(n))return l?!1:(r.value=n,!0)}const o=xt(t)&&Yr(e)?Number(e)<t.length:At(t,e),a=Reflect.set(t,e,n,i);return t===Dt(i)&&(o?ws(n,r)&&Ke(t,"set",e,n,r):Ke(t,"add",e,n)),a}deleteProperty(t,e){const n=At(t,e),i=t[e],r=Reflect.deleteProperty(t,e);return r&&n&&Ke(t,"delete",e,void 0,i),r}has(t,e){const n=Reflect.has(t,e);return(!fn(e)||!nl.has(e))&&pe(t,"has",e),n}ownKeys(t){return pe(t,"iterate",xt(t)?"length":js),Reflect.ownKeys(t)}}class al extends rl{constructor(t=!1){super(!0,t)}set(t,e){return{}.NODE_ENV!=="production"&&Cs(`Set operation on key "${String(e)}" failed: target is readonly.`,t),!0}deleteProperty(t,e){return{}.NODE_ENV!=="production"&&Cs(`Delete operation on key "${String(e)}" failed: target is readonly.`,t),!0}}const Mh=new ol,Nh=new al,Lh=new ol(!0),Fh=new al(!0),Zr=s=>s,xi=s=>Reflect.getPrototypeOf(s);function wi(s,t,e=!1,n=!1){s=s.__v_raw;const i=Dt(s),r=Dt(t);e||(ws(t,r)&&pe(i,"get",t),pe(i,"get",r));const{has:o}=xi(i),a=n?Zr:e?Qr:In;if(o.call(i,t))return a(s.get(t));if(o.call(i,r))return a(s.get(r));s!==i&&s.get(t)}function Ci(s,t=!1){const e=this.__v_raw,n=Dt(e),i=Dt(s);return t||(ws(s,i)&&pe(n,"has",s),pe(n,"has",i)),s===i?e.has(s):e.has(s)||e.has(i)}function Si(s,t=!1){return s=s.__v_raw,!t&&pe(Dt(s),"iterate",js),Reflect.get(s,"size",s)}function ll(s){s=Dt(s);const t=Dt(this);return xi(t).has.call(t,s)||(t.add(s),Ke(t,"add",s,s)),this}function cl(s,t){t=Dt(t);const e=Dt(this),{has:n,get:i}=xi(e);let r=n.call(e,s);r?{}.NODE_ENV!=="production"&&dl(e,n,s):(s=Dt(s),r=n.call(e,s));const o=i.call(e,s);return e.set(s,t),r?ws(t,o)&&Ke(e,"set",s,t,o):Ke(e,"add",s,t),this}function ul(s){const t=Dt(this),{has:e,get:n}=xi(t);let i=e.call(t,s);i?{}.NODE_ENV!=="production"&&dl(t,e,s):(s=Dt(s),i=e.call(t,s));const r=n?n.call(t,s):void 0,o=t.delete(s);return i&&Ke(t,"delete",s,void 0,r),o}function hl(){const s=Dt(this),t=s.size!==0,e={}.NODE_ENV!=="production"?Bs(s)?new Map(s):new Set(s):void 0,n=s.clear();return t&&Ke(s,"clear",void 0,void 0,e),n}function Ti(s,t){return function(n,i){const r=this,o=r.__v_raw,a=Dt(o),l=t?Zr:s?Qr:In;return!s&&pe(a,"iterate",js),o.forEach((c,u)=>n.call(i,l(c),l(u),r))}}function Ei(s,t,e){return function(...n){const i=this.__v_raw,r=Dt(i),o=Bs(r),a=s==="entries"||s===Symbol.iterator&&o,l=s==="keys"&&o,c=i[s](...n),u=e?Zr:t?Qr:In;return!t&&pe(r,"iterate",l?qr:js),{next(){const{value:h,done:d}=c.next();return d?{value:h,done:d}:{value:a?[u(h[0]),u(h[1])]:u(h),done:d}},[Symbol.iterator](){return this}}}}function ks(s){return function(...t){if({}.NODE_ENV!=="production"){const e=t[0]?`on key "${t[0]}" `:"";Cs(`${_i(s)} operation ${e}failed: target is readonly.`,Dt(this))}return s==="delete"?!1:s==="clear"?void 0:this}}function $h(){const s={get(r){return wi(this,r)},get size(){return Si(this)},has:Ci,add:ll,set:cl,delete:ul,clear:hl,forEach:Ti(!1,!1)},t={get(r){return wi(this,r,!1,!0)},get size(){return Si(this)},has:Ci,add:ll,set:cl,delete:ul,clear:hl,forEach:Ti(!1,!0)},e={get(r){return wi(this,r,!0)},get size(){return Si(this,!0)},has(r){return Ci.call(this,r,!0)},add:ks("add"),set:ks("set"),delete:ks("delete"),clear:ks("clear"),forEach:Ti(!0,!1)},n={get(r){return wi(this,r,!0,!0)},get size(){return Si(this,!0)},has(r){return Ci.call(this,r,!0)},add:ks("add"),set:ks("set"),delete:ks("delete"),clear:ks("clear"),forEach:Ti(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(r=>{s[r]=Ei(r,!1,!1),e[r]=Ei(r,!0,!1),t[r]=Ei(r,!1,!0),n[r]=Ei(r,!0,!0)}),[s,e,t,n]}const[Vh,Yh,zh,Bh]=$h();function ki(s,t){const e=t?s?Bh:zh:s?Yh:Vh;return(n,i,r)=>i==="__v_isReactive"?!s:i==="__v_isReadonly"?s:i==="__v_raw"?n:Reflect.get(At(e,i)&&i in n?e:n,i,r)}const Gh={get:ki(!1,!1)},Xh={get:ki(!1,!0)},jh={get:ki(!0,!1)},Uh={get:ki(!0,!0)};function dl(s,t,e){const n=Dt(e);if(n!==e&&t.call(s,n)){const i=Vr(s);Cs(`Reactive ${i} contains both the raw and reactive versions of the same object${i==="Map"?" 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 fl=new WeakMap,pl=new WeakMap,ml=new WeakMap,gl=new WeakMap;function Hh(s){switch(s){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Wh(s){return s.__v_skip||!Object.isExtensible(s)?0:Hh(Vr(s))}function Jt(s){return Ps(s)?s:Pi(s,!1,Mh,Gh,fl)}function qh(s){return Pi(s,!1,Lh,Xh,pl)}function yl(s){return Pi(s,!0,Nh,jh,ml)}function mn(s){return Pi(s,!0,Fh,Uh,gl)}function Pi(s,t,e,n,i){if(!Gt(s))return{}.NODE_ENV!=="production"&&Cs(`value cannot be made reactive: ${String(s)}`),s;if(s.__v_raw&&!(t&&s.__v_isReactive))return s;const r=i.get(s);if(r)return r;const o=Wh(s);if(o===0)return s;const a=new Proxy(s,o===2?n:e);return i.set(s,a),a}function Us(s){return Ps(s)?Us(s.__v_raw):!!(s&&s.__v_isReactive)}function Ps(s){return!!(s&&s.__v_isReadonly)}function Hs(s){return!!(s&&s.__v_isShallow)}function Kr(s){return Us(s)||Ps(s)}function Dt(s){const t=s&&s.__v_raw;return t?Dt(t):s}function vl(s){return Object.isExtensible(s)&&bi(s,"__v_skip",!0),s}const In=s=>Gt(s)?Jt(s):s,Qr=s=>Gt(s)?yl(s):s,Zh="Computed is still dirty after getter evaluation, likely because a computed is mutating its own dependency in its getter. State mutations in computed getters should be avoided. Check the docs for more details: https://vuejs.org/guide/essentials/computed.html#getters-should-be-side-effect-free";class _l{constructor(t,e,n,i){this.getter=t,this._setter=e,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new Gr(()=>t(this._value),()=>Oi(this,this.effect._dirtyLevel===2?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!i,this.__v_isReadonly=n}get value(){const t=Dt(this);return(!t._cacheable||t.effect.dirty)&&ws(t._value,t._value=t.effect.run())&&Oi(t,4),bl(t),t.effect._dirtyLevel>=2&&({}.NODE_ENV!=="production"&&this._warnRecursive&&Cs(Zh,`
10
10
 
11
11
  getter: `,this.getter),Oi(t,2)),t._value}set value(t){this._setter(t)}get _dirty(){return this.effect.dirty}set _dirty(t){this.effect.dirty=t}}function Kh(s,t,e=!1){let n,i;const r=Tt(s);r?(n=s,i={}.NODE_ENV!=="production"?()=>{Cs("Write operation failed: computed value is readonly")}:oe):(n=s.get,i=s.set);const o=new _l(n,i,r||!i,e);return{}.NODE_ENV!=="production"&&t&&!e&&(o.effect.onTrack=t.onTrack,o.effect.onTrigger=t.onTrigger),o}function bl(s){var t;Ss&&Xs&&(s=Dt(s),tl(Xs,(t=s.dep)!=null?t:s.dep=sl(()=>s.dep=void 0,s instanceof _l?s:void 0),{}.NODE_ENV!=="production"?{target:s,type:"get",key:"value"}:void 0))}function Oi(s,t=4,e){s=Dt(s);const n=s.dep;n&&el(n,t,{}.NODE_ENV!=="production"?{target:s,type:"set",key:"value",newValue:e}:void 0)}function me(s){return!!(s&&s.__v_isRef===!0)}function M(s){return Qh(s,!1)}function Qh(s,t){return me(s)?s:new Jh(s,t)}class Jh{constructor(t,e){this.__v_isShallow=e,this.dep=void 0,this.__v_isRef=!0,this._rawValue=e?t:Dt(t),this._value=e?t:In(t)}get value(){return bl(this),this._value}set value(t){const e=this.__v_isShallow||Hs(t)||Ps(t);t=e?t:Dt(t),ws(t,this._rawValue)&&(this._rawValue=t,this._value=e?t:In(t),Oi(this,4,t))}}function Ft(s){return me(s)?s.value:s}const td={get:(s,t,e)=>Ft(Reflect.get(s,t,e)),set:(s,t,e,n)=>{const i=s[t];return me(i)&&!me(e)?(i.value=e,!0):Reflect.set(s,t,e,n)}};function xl(s){return Us(s)?s:new Proxy(s,td)}/**
12
12
  * @vue/runtime-core v3.4.21
@@ -15,10 +15,10 @@ getter: `,this.getter),Oi(t,2)),t._value}set value(t){this._setter(t)}get _dirty
15
15
  **/const Ws=[];function Ii(s){Ws.push(s)}function Di(){Ws.pop()}function ot(s,...t){Ts();const e=Ws.length?Ws[Ws.length-1].component:null,n=e&&e.appContext.config.warnHandler,i=ed();if(n)ls(n,e,11,[s+t.map(r=>{var o,a;return(a=(o=r.toString)==null?void 0:o.call(r))!=null?a:JSON.stringify(r)}).join(""),e&&e.proxy,i.map(({vnode:r})=>`at <${Wi(e,r.type)}>`).join(`
16
16
  `),i]);else{const r=[`[Vue warn]: ${s}`,...t];i.length&&r.push(`
17
17
  `,...sd(i)),console.warn(...r)}Es()}function ed(){let s=Ws[Ws.length-1];if(!s)return[];const t=[];for(;s;){const e=t[0];e&&e.vnode===s?e.recurseCount++:t.push({vnode:s,recurseCount:0});const n=s.component&&s.component.parent;s=n&&n.vnode}return t}function sd(s){const t=[];return s.forEach((e,n)=>{t.push(...n===0?[]:[`
18
- `],...nd(e))}),t}function nd({vnode:s,recurseCount:t}){const e=t>0?`... (${t} recursive calls)`:"",n=s.component?s.component.parent==null:!1,i=` at <${Wi(s.component,s.type,n)}`,r=">"+e;return s.props?[i,...id(s.props),r]:[i+r]}function id(s){const t=[],e=Object.keys(s);return e.slice(0,3).forEach(n=>{t.push(...wl(n,s[n]))}),e.length>3&&t.push(" ..."),t}function wl(s,t,e){return re(t)?(t=JSON.stringify(t),e?t:[`${s}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?e?t:[`${s}=${t}`]:me(t)?(t=wl(s,Dt(t.value),!0),e?t:[`${s}=Ref<`,t,">"]):Tt(t)?[`${s}=fn${t.name?`<${t.name}>`:""}`]:(t=Dt(t),e?t:[`${s}=`,t])}const Jr={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. This is likely a Vue internals bug. Please open an issue at https://github.com/vuejs/core ."};function ls(s,t,e,n){try{return n?s(...n):s()}catch(i){Dn(i,t,e)}}function Ue(s,t,e,n){if(Tt(s)){const r=ls(s,t,e,n);return r&&$r(r)&&r.catch(o=>{Dn(o,t,e)}),r}const i=[];for(let r=0;r<s.length;r++)i.push(Ue(s[r],t,e,n));return i}function Dn(s,t,e,n=!0){const i=t?t.vnode:null;if(t){let r=t.parent;const o=t.proxy,a={}.NODE_ENV!=="production"?Jr[e]:`https://vuejs.org/error-reference/#runtime-${e}`;for(;r;){const c=r.ec;if(c){for(let u=0;u<c.length;u++)if(c[u](s,o,a)===!1)return}r=r.parent}const l=t.appContext.config.errorHandler;if(l){ls(l,null,10,[s,o,a]);return}}rd(s,e,i,n)}function rd(s,t,e,n=!0){if({}.NODE_ENV!=="production"){const i=Jr[t];if(e&&Ii(e),ot(`Unhandled error${i?` during execution of ${i}`:""}`),e&&Di(),n)throw s;console.error(s)}else console.error(s)}let Rn=!1,to=!1;const xe=[];let Qe=0;const gn=[];let cs=null,Os=0;const Cl=Promise.resolve();let eo=null;const od=100;function ad(s){const t=eo||Cl;return s?t.then(this?s.bind(this):s):t}function ld(s){let t=Qe+1,e=xe.length;for(;t<e;){const n=t+e>>>1,i=xe[n],r=An(i);r<s||r===s&&i.pre?t=n+1:e=n}return t}function Ri(s){(!xe.length||!xe.includes(s,Rn&&s.allowRecurse?Qe+1:Qe))&&(s.id==null?xe.push(s):xe.splice(ld(s.id),0,s),Sl())}function Sl(){!Rn&&!to&&(to=!0,eo=Cl.then(Pl))}function cd(s){const t=xe.indexOf(s);t>Qe&&xe.splice(t,1)}function Tl(s){xt(s)?gn.push(...s):(!cs||!cs.includes(s,s.allowRecurse?Os+1:Os))&&gn.push(s),Sl()}function El(s,t,e=Rn?Qe+1:0){for({}.NODE_ENV!=="production"&&(t=t||new Map);e<xe.length;e++){const n=xe[e];if(n&&n.pre){if(s&&n.id!==s.uid||{}.NODE_ENV!=="production"&&so(t,n))continue;xe.splice(e,1),e--,n()}}}function kl(s){if(gn.length){const t=[...new Set(gn)].sort((e,n)=>An(e)-An(n));if(gn.length=0,cs){cs.push(...t);return}for(cs=t,{}.NODE_ENV!=="production"&&(s=s||new Map),Os=0;Os<cs.length;Os++)({}).NODE_ENV!=="production"&&so(s,cs[Os])||cs[Os]();cs=null,Os=0}}const An=s=>s.id==null?1/0:s.id,ud=(s,t)=>{const e=An(s)-An(t);if(e===0){if(s.pre&&!t.pre)return-1;if(t.pre&&!s.pre)return 1}return e};function Pl(s){to=!1,Rn=!0,{}.NODE_ENV!=="production"&&(s=s||new Map),xe.sort(ud);const t={}.NODE_ENV!=="production"?e=>so(s,e):oe;try{for(Qe=0;Qe<xe.length;Qe++){const e=xe[Qe];if(e&&e.active!==!1){if({}.NODE_ENV!=="production"&&t(e))continue;ls(e,null,14)}}}finally{Qe=0,xe.length=0,kl(s),Rn=!1,eo=null,(xe.length||gn.length)&&Pl(s)}}function so(s,t){if(!s.has(t))s.set(t,1);else{const e=s.get(t);if(e>od){const n=t.ownerInstance,i=n&&bc(n.type);return Dn(`Maximum recursive updates exceeded${i?` in component <${i}>`:""}. 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}else s.set(t,e+1)}}let qs=!1;const yn=new Set;({}).NODE_ENV!=="production"&&(zr().__VUE_HMR_RUNTIME__={createRecord:no(Ol),rerender:no(fd),reload:no(pd)});const Zs=new Map;function hd(s){const t=s.type.__hmrId;let e=Zs.get(t);e||(Ol(t,s.type),e=Zs.get(t)),e.instances.add(s)}function dd(s){Zs.get(s.type.__hmrId).instances.delete(s)}function Ol(s,t){return Zs.has(s)?!1:(Zs.set(s,{initialDef:Mn(t),instances:new Set}),!0)}function Mn(s){return xc(s)?s.__vccOpts:s}function fd(s,t){const e=Zs.get(s);e&&(e.initialDef.render=t,[...e.instances].forEach(n=>{t&&(n.render=t,Mn(n.type).render=t),n.renderCache=[],qs=!0,n.effect.dirty=!0,n.update(),qs=!1}))}function pd(s,t){const e=Zs.get(s);if(!e)return;t=Mn(t),Il(e.initialDef,t);const n=[...e.instances];for(const i of n){const r=Mn(i.type);yn.has(r)||(r!==e.initialDef&&Il(r,t),yn.add(r)),i.appContext.propsCache.delete(i.type),i.appContext.emitsCache.delete(i.type),i.appContext.optionsCache.delete(i.type),i.ceReload?(yn.add(r),i.ceReload(t.styles),yn.delete(r)):i.parent?(i.parent.effect.dirty=!0,Ri(i.parent.update)):i.appContext.reload?i.appContext.reload():typeof window<"u"?window.location.reload():console.warn("[HMR] Root or manually mounted instance modified. Full reload required.")}Tl(()=>{for(const i of n)yn.delete(Mn(i.type))})}function Il(s,t){ne(s,t);for(const e in s)e!=="__file"&&!(e in t)&&delete s[e]}function no(s){return(t,e)=>{try{return s(t,e)}catch(n){console.error(n),console.warn("[HMR] Something went wrong during Vue component hot-reload. Full reload required.")}}}let Je,Nn=[],io=!1;function Ln(s,...t){Je?Je.emit(s,...t):io||Nn.push({event:s,args:t})}function Dl(s,t){var e,n;Je=s,Je?(Je.enabled=!0,Nn.forEach(({event:i,args:r})=>Je.emit(i,...r)),Nn=[]):typeof window<"u"&&window.HTMLElement&&!((n=(e=window.navigator)==null?void 0:e.userAgent)!=null&&n.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(r=>{Dl(r,t)}),setTimeout(()=>{Je||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,io=!0,Nn=[])},3e3)):(io=!0,Nn=[])}function md(s,t){Ln("app:init",s,t,{Fragment:$t,Text:Gn,Comment:De,Static:Xn})}function gd(s){Ln("app:unmount",s)}const yd=ro("component:added"),Rl=ro("component:updated"),vd=ro("component:removed"),_d=s=>{Je&&typeof Je.cleanupBuffer=="function"&&!Je.cleanupBuffer(s)&&vd(s)};function ro(s){return t=>{Ln(s,t.appContext.app,t.uid,t.parent?t.parent.uid:void 0,t)}}const bd=Al("perf:start"),xd=Al("perf:end");function Al(s){return(t,e,n)=>{Ln(s,t.appContext.app,t.uid,t,e,n)}}function wd(s,t,e){Ln("component:emit",s.appContext.app,s,t,e)}function Cd(s,t,...e){if(s.isUnmounted)return;const n=s.vnode.props||Xt;if({}.NODE_ENV!=="production"){const{emitsOptions:u,propsOptions:[h]}=s;if(u)if(!(t in u))(!h||!(Gs(t)in h))&&ot(`Component emitted event "${t}" but it is neither declared in the emits option nor as an "${Gs(t)}" prop.`);else{const d=u[t];Tt(d)&&(d(...e)||ot(`Invalid event arguments: event validation failed for event "${t}".`))}}let i=e;const r=t.startsWith("update:"),o=r&&t.slice(7);if(o&&o in n){const u=`${o==="modelValue"?"model":o}Modifiers`,{number:h,trim:d}=n[u]||Xt;d&&(i=e.map(m=>re(m)?m.trim():m)),h&&(i=e.map(xh))}if({}.NODE_ENV!=="production"&&wd(s,t,i),{}.NODE_ENV!=="production"){const u=t.toLowerCase();u!==t&&n[Gs(u)]&&ot(`Event "${u}" is emitted in component ${Wi(s,s.type)} but the handler is registered for "${t}". Note that HTML attributes are case-insensitive and you cannot use v-on to listen to camelCase events when using in-DOM templates. You should probably use "${xs(t)}" instead of "${t}".`)}let a,l=n[a=Gs(t)]||n[a=Gs(pn(t))];!l&&r&&(l=n[a=Gs(xs(t))]),l&&Ue(l,s,6,i);const c=n[a+"Once"];if(c){if(!s.emitted)s.emitted={};else if(s.emitted[a])return;s.emitted[a]=!0,Ue(c,s,6,i)}}function Ml(s,t,e=!1){const n=t.emitsCache,i=n.get(s);if(i!==void 0)return i;const r=s.emits;let o={},a=!1;if(!Tt(s)){const l=c=>{const u=Ml(c,t,!0);u&&(a=!0,ne(o,u))};!e&&t.mixins.length&&t.mixins.forEach(l),s.extends&&l(s.extends),s.mixins&&s.mixins.forEach(l)}return!r&&!a?(Gt(s)&&n.set(s,null),null):(xt(r)?r.forEach(l=>o[l]=null):ne(o,r),Gt(s)&&n.set(s,o),o)}function Ai(s,t){return!s||!kn(t)?!1:(t=t.slice(2).replace(/Once$/,""),At(s,t[0].toLowerCase()+t.slice(1))||At(s,xs(t))||At(s,t))}let ae=null,Mi=null;function Ni(s){const t=ae;return ae=s,Mi=s&&s.type.__scopeId||null,t}function Fn(s){Mi=s}function $n(){Mi=null}function Pt(s,t=ae,e){if(!t||s._n)return s;const n=(...i)=>{n._d&&lc(-1);const r=Ni(t);let o;try{o=s(...i)}finally{Ni(r),n._d&&lc(1)}return{}.NODE_ENV!=="production"&&Rl(t),o};return n._n=!0,n._c=!0,n._d=!0,n}let oo=!1;function Li(){oo=!0}function ao(s){const{type:t,vnode:e,proxy:n,withProxy:i,props:r,propsOptions:[o],slots:a,attrs:l,emit:c,render:u,renderCache:h,data:d,setupState:m,ctx:f,inheritAttrs:E}=s;let S,_;const C=Ni(s);({}).NODE_ENV!=="production"&&(oo=!1);try{if(e.shapeFlag&4){const x=i||n,b={}.NODE_ENV!=="production"&&m.__isScriptSetup?new Proxy(x,{get(z,ut,O){return ot(`Property '${String(ut)}' was accessed via 'this'. Avoid using 'this' in templates.`),Reflect.get(z,ut,O)}}):x;S=We(u.call(b,x,h,r,m,d,f)),_=l}else{const x=t;({}).NODE_ENV!=="production"&&l===r&&Li(),S=We(x.length>1?x(r,{}.NODE_ENV!=="production"?{get attrs(){return Li(),l},slots:a,emit:c}:{attrs:l,slots:a,emit:c}):x(r,null)),_=t.props?l:Sd(l)}}catch(x){jn.length=0,Dn(x,s,1),S=ft(De)}let y=S,p;if({}.NODE_ENV!=="production"&&S.patchFlag>0&&S.patchFlag&2048&&([y,p]=Nl(S)),_&&E!==!1){const x=Object.keys(_),{shapeFlag:b}=y;if(x.length){if(b&7)o&&x.some(gi)&&(_=Td(_,o)),y=Ds(y,_);else if({}.NODE_ENV!=="production"&&!oo&&y.type!==De){const z=Object.keys(l),ut=[],O=[];for(let R=0,A=z.length;R<A;R++){const D=z[R];kn(D)?gi(D)||ut.push(D[2].toLowerCase()+D.slice(3)):O.push(D)}O.length&&ot(`Extraneous non-props attributes (${O.join(", ")}) were passed to component but could not be automatically inherited because component renders fragment or text root nodes.`),ut.length&&ot(`Extraneous non-emits event listeners (${ut.join(", ")}) were passed to component but could not be automatically inherited because component renders fragment or text root nodes. If the listener is intended to be a component custom event listener only, declare it using the "emits" option.`)}}}return e.dirs&&({}.NODE_ENV!=="production"&&!Ll(y)&&ot("Runtime directive used on component with non-element root node. The directives will not function as intended."),y=Ds(y),y.dirs=y.dirs?y.dirs.concat(e.dirs):e.dirs),e.transition&&({}.NODE_ENV!=="production"&&!Ll(y)&&ot("Component inside <Transition> renders non-element root node that cannot be animated."),y.transition=e.transition),{}.NODE_ENV!=="production"&&p?p(y):S=y,Ni(C),S}const Nl=s=>{const t=s.children,e=s.dynamicChildren,n=lo(t,!1);if(n){if({}.NODE_ENV!=="production"&&n.patchFlag>0&&n.patchFlag&2048)return Nl(n)}else return[s,void 0];const i=t.indexOf(n),r=e?e.indexOf(n):-1,o=a=>{t[i]=a,e&&(r>-1?e[r]=a:a.patchFlag>0&&(s.dynamicChildren=[...e,a]))};return[We(n),o]};function lo(s,t=!0){let e;for(let n=0;n<s.length;n++){const i=s[n];if(vn(i)){if(i.type!==De||i.children==="v-if"){if(e)return;if(e=i,{}.NODE_ENV!=="production"&&t&&e.patchFlag>0&&e.patchFlag&2048)return lo(e.children)}}else return}return e}const Sd=s=>{let t;for(const e in s)(e==="class"||e==="style"||kn(e))&&((t||(t={}))[e]=s[e]);return t},Td=(s,t)=>{const e={};for(const n in s)(!gi(n)||!(n.slice(9)in t))&&(e[n]=s[n]);return e},Ll=s=>s.shapeFlag&7||s.type===De;function Ed(s,t,e){const{props:n,children:i,component:r}=s,{props:o,children:a,patchFlag:l}=t,c=r.emitsOptions;if({}.NODE_ENV!=="production"&&(i||a)&&qs||t.dirs||t.transition)return!0;if(e&&l>=0){if(l&1024)return!0;if(l&16)return n?Fl(n,o,c):!!o;if(l&8){const u=t.dynamicProps;for(let h=0;h<u.length;h++){const d=u[h];if(o[d]!==n[d]&&!Ai(c,d))return!0}}}else return(i||a)&&(!a||!a.$stable)?!0:n===o?!1:n?o?Fl(n,o,c):!0:!!o;return!1}function Fl(s,t,e){const n=Object.keys(t);if(n.length!==Object.keys(s).length)return!0;for(let i=0;i<n.length;i++){const r=n[i];if(t[r]!==s[r]&&!Ai(e,r))return!0}return!1}function kd({vnode:s,parent:t},e){for(;t;){const n=t.subTree;if(n.suspense&&n.suspense.activeBranch===s&&(n.el=s.el),n===s)(s=t.vnode).el=e,t=t.parent;else break}}const Pd=Symbol.for("v-ndc"),Od=s=>s.__isSuspense;function Id(s,t){t&&t.pendingBranch?xt(s)?t.effects.push(...s):t.effects.push(s):Tl(s)}const Dd=Symbol.for("v-scx"),Rd=()=>{{const s=Yi(Dd);return s||{}.NODE_ENV!=="production"&&ot("Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."),s}};function $l(s,t){return co(s,null,t)}const Fi={};function Mt(s,t,e){return{}.NODE_ENV!=="production"&&!Tt(t)&&ot("`watch(fn, options?)` signature has been moved to a separate API. Use `watchEffect(fn, options?)` instead. `watch` now only supports `watch(source, cb, options?) signature."),co(s,t,e)}function co(s,t,{immediate:e,deep:n,flush:i,once:r,onTrack:o,onTrigger:a}=Xt){if(t&&r){const z=t;t=(...ut)=>{z(...ut),b()}}({}).NODE_ENV!=="production"&&n!==void 0&&typeof n=="number"&&ot('watch() "deep" option with number value will be used as watch depth in future versions. Please use a boolean instead to avoid potential breakage.'),{}.NODE_ENV!=="production"&&!t&&(e!==void 0&&ot('watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'),n!==void 0&&ot('watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'),r!==void 0&&ot('watch() "once" option is only respected when using the watch(source, callback, options?) signature.'));const l=z=>{ot("Invalid watch source: ",z,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},c=de,u=z=>n===!0?z:Ks(z,n===!1?1:void 0);let h,d=!1,m=!1;if(me(s)?(h=()=>s.value,d=Hs(s)):Us(s)?(h=()=>u(s),d=!0):xt(s)?(m=!0,d=s.some(z=>Us(z)||Hs(z)),h=()=>s.map(z=>{if(me(z))return z.value;if(Us(z))return u(z);if(Tt(z))return ls(z,c,2);({}).NODE_ENV!=="production"&&l(z)})):Tt(s)?t?h=()=>ls(s,c,2):h=()=>(f&&f(),Ue(s,c,3,[E])):(h=oe,{}.NODE_ENV!=="production"&&l(s)),t&&n){const z=h;h=()=>Ks(z())}let f,E=z=>{f=p.onStop=()=>{ls(z,c,4),f=p.onStop=void 0}},S;if(Ui)if(E=oe,t?e&&Ue(t,c,3,[h(),m?[]:void 0,E]):h(),i==="sync"){const z=Rd();S=z.__watcherHandles||(z.__watcherHandles=[])}else return oe;let _=m?new Array(s.length).fill(Fi):Fi;const C=()=>{if(!(!p.active||!p.dirty))if(t){const z=p.run();(n||d||(m?z.some((ut,O)=>ws(ut,_[O])):ws(z,_)))&&(f&&f(),Ue(t,c,3,[z,_===Fi?void 0:m&&_[0]===Fi?[]:_,E]),_=z)}else p.run()};C.allowRecurse=!!t;let y;i==="sync"?y=C:i==="post"?y=()=>Ie(C,c&&c.suspense):(C.pre=!0,c&&(C.id=c.uid),y=()=>Ri(C));const p=new Gr(h,oe,y),x=Oh(),b=()=>{p.stop(),x&&Fr(x.effects,p)};return{}.NODE_ENV!=="production"&&(p.onTrack=o,p.onTrigger=a),t?e?C():_=p.run():i==="post"?Ie(p.run.bind(p),c&&c.suspense):p.run(),S&&S.push(b),b}function Ad(s,t,e){const n=this.proxy,i=re(s)?s.includes(".")?Vl(n,s):()=>n[s]:s.bind(n,n);let r;Tt(t)?r=t:(r=t.handler,e=t);const o=Wn(this),a=co(i,r.bind(n),e);return o(),a}function Vl(s,t){const e=t.split(".");return()=>{let n=s;for(let i=0;i<e.length&&n;i++)n=n[e[i]];return n}}function Ks(s,t,e=0,n){if(!Gt(s)||s.__v_skip)return s;if(t&&t>0){if(e>=t)return s;e++}if(n=n||new Set,n.has(s))return s;if(n.add(s),me(s))Ks(s.value,t,e,n);else if(xt(s))for(let i=0;i<s.length;i++)Ks(s[i],t,e,n);else if(Xa(s)||Bs(s))s.forEach(i=>{Ks(i,t,e,n)});else if(Ua(s))for(const i in s)Ks(s[i],t,e,n);return s}function Yl(s){vh(s)&&ot("Do not use built-in directive ids as custom directive id: "+s)}function Qs(s,t){if(ae===null)return{}.NODE_ENV!=="production"&&ot("withDirectives can only be used inside render functions."),s;const e=Hi(ae)||ae.proxy,n=s.dirs||(s.dirs=[]);for(let i=0;i<t.length;i++){let[r,o,a,l=Xt]=t[i];r&&(Tt(r)&&(r={mounted:r,updated:r}),r.deep&&Ks(o),n.push({dir:r,instance:e,value:o,oldValue:void 0,arg:a,modifiers:l}))}return s}function Js(s,t,e,n){const i=s.dirs,r=t&&t.dirs;for(let o=0;o<i.length;o++){const a=i[o];r&&(a.oldValue=r[o].value);let l=a.dir[n];l&&(Ts(),Ue(l,e,8,[s.el,a,s,t]),Es())}}/*! #__NO_SIDE_EFFECTS__ */function ct(s,t){return Tt(s)?(()=>ne({name:s.name},t,{setup:s}))():s}const Vn=s=>!!s.type.__asyncLoader,uo=s=>s.type.__isKeepAlive;function Md(s,t){zl(s,"a",t)}function Nd(s,t){zl(s,"da",t)}function zl(s,t,e=de){const n=s.__wdc||(s.__wdc=()=>{let i=e;for(;i;){if(i.isDeactivated)return;i=i.parent}return s()});if($i(t,n,e),e){let i=e.parent;for(;i&&i.parent;)uo(i.parent.vnode)&&Ld(n,t,e,i),i=i.parent}}function Ld(s,t,e,n){const i=$i(t,s,n,!0);le(()=>{Fr(n[t],i)},e)}function $i(s,t,e=de,n=!1){if(e){const i=e[s]||(e[s]=[]),r=t.__weh||(t.__weh=(...o)=>{if(e.isUnmounted)return;Ts();const a=Wn(e),l=Ue(t,e,s,o);return a(),Es(),l});return n?i.unshift(r):i.push(r),r}else if({}.NODE_ENV!=="production"){const i=Gs(Jr[s].replace(/ hook$/,""));ot(`${i} is called when there is no active component instance to be associated with. Lifecycle injection APIs can only be used during execution of setup(). If you are using async setup(), make sure to register lifecycle hooks before the first await statement.`)}}const us=s=>(t,e=de)=>(!Ui||s==="sp")&&$i(s,(...n)=>t(...n),e),Fd=us("bm"),tn=us("m"),$d=us("bu"),Vd=us("u"),Yd=us("bum"),le=us("um"),zd=us("sp"),Bd=us("rtg"),Gd=us("rtc");function Xd(s,t=de){$i("ec",s,t)}function ge(s,t,e,n){let i;const r=e&&e[n];if(xt(s)||re(s)){i=new Array(s.length);for(let o=0,a=s.length;o<a;o++)i[o]=t(s[o],o,void 0,r&&r[o])}else if(typeof s=="number"){({}).NODE_ENV!=="production"&&!Number.isInteger(s)&&ot(`The v-for range expect an integer value but got ${s}.`),i=new Array(s);for(let o=0;o<s;o++)i[o]=t(o+1,o,void 0,r&&r[o])}else if(Gt(s))if(s[Symbol.iterator])i=Array.from(s,(o,a)=>t(o,a,void 0,r&&r[a]));else{const o=Object.keys(s);i=new Array(o.length);for(let a=0,l=o.length;a<l;a++){const c=o[a];i[a]=t(s[c],c,a,r&&r[a])}}else i=[];return e&&(e[n]=i),i}function kt(s,t,e={},n,i){if(ae.isCE||ae.parent&&Vn(ae.parent)&&ae.parent.isCE)return t!=="default"&&(e.name=t),ft("slot",e,n&&n());let r=s[t];({}).NODE_ENV!=="production"&&r&&r.length>1&&(ot("SSR-optimized slot function detected in a non-SSR-optimized render function. You need to mark this component with $dynamic-slots in the parent template."),r=()=>[]),r&&r._c&&(r._d=!1),L();const o=r&&Bl(r(e)),a=zt($t,{key:e.key||o&&o.key||`_${t}`},o||(n?n():[]),o&&s._===1?64:-2);return!i&&a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),r&&r._c&&(r._d=!0),a}function Bl(s){return s.some(t=>vn(t)?!(t.type===De||t.type===$t&&!Bl(t.children)):!0)?s:null}const ho=s=>s?mc(s)?Hi(s)||s.proxy:ho(s.parent):null,en=ne(Object.create(null),{$:s=>s,$el:s=>s.vnode.el,$data:s=>s.data,$props:s=>({}).NODE_ENV!=="production"?mn(s.props):s.props,$attrs:s=>({}).NODE_ENV!=="production"?mn(s.attrs):s.attrs,$slots:s=>({}).NODE_ENV!=="production"?mn(s.slots):s.slots,$refs:s=>({}).NODE_ENV!=="production"?mn(s.refs):s.refs,$parent:s=>ho(s.parent),$root:s=>ho(s.root),$emit:s=>s.emit,$options:s=>go(s),$forceUpdate:s=>s.f||(s.f=()=>{s.effect.dirty=!0,Ri(s.update)}),$nextTick:s=>s.n||(s.n=ad.bind(s.proxy)),$watch:s=>Ad.bind(s)}),fo=s=>s==="_"||s==="$",po=(s,t)=>s!==Xt&&!s.__isScriptSetup&&At(s,t),Gl={get({_:s},t){const{ctx:e,setupState:n,data:i,props:r,accessCache:o,type:a,appContext:l}=s;if({}.NODE_ENV!=="production"&&t==="__isVue")return!0;let c;if(t[0]!=="$"){const m=o[t];if(m!==void 0)switch(m){case 1:return n[t];case 2:return i[t];case 4:return e[t];case 3:return r[t]}else{if(po(n,t))return o[t]=1,n[t];if(i!==Xt&&At(i,t))return o[t]=2,i[t];if((c=s.propsOptions[0])&&At(c,t))return o[t]=3,r[t];if(e!==Xt&&At(e,t))return o[t]=4,e[t];mo&&(o[t]=0)}}const u=en[t];let h,d;if(u)return t==="$attrs"?(pe(s,"get",t),{}.NODE_ENV!=="production"&&Li()):{}.NODE_ENV!=="production"&&t==="$slots"&&pe(s,"get",t),u(s);if((h=a.__cssModules)&&(h=h[t]))return h;if(e!==Xt&&At(e,t))return o[t]=4,e[t];if(d=l.config.globalProperties,At(d,t))return d[t];({}).NODE_ENV!=="production"&&ae&&(!re(t)||t.indexOf("__v")!==0)&&(i!==Xt&&fo(t[0])&&At(i,t)?ot(`Property ${JSON.stringify(t)} must be accessed via $data because it starts with a reserved character ("$" or "_") and is not proxied on the render context.`):s===ae&&ot(`Property ${JSON.stringify(t)} was accessed during render but is not defined on instance.`))},set({_:s},t,e){const{data:n,setupState:i,ctx:r}=s;return po(i,t)?(i[t]=e,!0):{}.NODE_ENV!=="production"&&i.__isScriptSetup&&At(i,t)?(ot(`Cannot mutate <script setup> binding "${t}" from Options API.`),!1):n!==Xt&&At(n,t)?(n[t]=e,!0):At(s.props,t)?({}.NODE_ENV!=="production"&&ot(`Attempting to mutate prop "${t}". Props are readonly.`),!1):t[0]==="$"&&t.slice(1)in s?({}.NODE_ENV!=="production"&&ot(`Attempting to mutate public property "${t}". Properties starting with $ are reserved and readonly.`),!1):({}.NODE_ENV!=="production"&&t in s.appContext.config.globalProperties?Object.defineProperty(r,t,{enumerable:!0,configurable:!0,value:e}):r[t]=e,!0)},has({_:{data:s,setupState:t,accessCache:e,ctx:n,appContext:i,propsOptions:r}},o){let a;return!!e[o]||s!==Xt&&At(s,o)||po(t,o)||(a=r[0])&&At(a,o)||At(n,o)||At(en,o)||At(i.config.globalProperties,o)},defineProperty(s,t,e){return e.get!=null?s._.accessCache[t]=0:At(e,"value")&&this.set(s,t,e.value,null),Reflect.defineProperty(s,t,e)}};({}).NODE_ENV!=="production"&&(Gl.ownKeys=s=>(ot("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(s)));function jd(s){const t={};return Object.defineProperty(t,"_",{configurable:!0,enumerable:!1,get:()=>s}),Object.keys(en).forEach(e=>{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,get:()=>en[e](s),set:oe})}),t}function Ud(s){const{ctx:t,propsOptions:[e]}=s;e&&Object.keys(e).forEach(n=>{Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>s.props[n],set:oe})})}function Hd(s){const{ctx:t,setupState:e}=s;Object.keys(Dt(e)).forEach(n=>{if(!e.__isScriptSetup){if(fo(n[0])){ot(`setup() return property ${JSON.stringify(n)} should not start with "$" or "_" which are reserved prefixes for Vue internals.`);return}Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>e[n],set:oe})}})}function Wd(){return qd().slots}function qd(){const s=fc();return{}.NODE_ENV!=="production"&&!s&&ot("useContext() called without active instance."),s.setupContext||(s.setupContext=_c(s))}function Xl(s){return xt(s)?s.reduce((t,e)=>(t[e]=null,t),{}):s}function Zd(){const s=Object.create(null);return(t,e)=>{s[e]?ot(`${t} property "${e}" is already defined in ${s[e]}.`):s[e]=t}}let mo=!0;function Kd(s){const t=go(s),e=s.proxy,n=s.ctx;mo=!1,t.beforeCreate&&jl(t.beforeCreate,s,"bc");const{data:i,computed:r,methods:o,watch:a,provide:l,inject:c,created:u,beforeMount:h,mounted:d,beforeUpdate:m,updated:f,activated:E,deactivated:S,beforeDestroy:_,beforeUnmount:C,destroyed:y,unmounted:p,render:x,renderTracked:b,renderTriggered:z,errorCaptured:ut,serverPrefetch:O,expose:R,inheritAttrs:A,components:D,directives:F,filters:X}=t,rt={}.NODE_ENV!=="production"?Zd():null;if({}.NODE_ENV!=="production"){const[W]=s.propsOptions;if(W)for(const it in W)rt("Props",it)}if(c&&Qd(c,n,rt),o)for(const W in o){const it=o[W];Tt(it)?({}.NODE_ENV!=="production"?Object.defineProperty(n,W,{value:it.bind(e),configurable:!0,enumerable:!0,writable:!0}):n[W]=it.bind(e),{}.NODE_ENV!=="production"&&rt("Methods",W)):{}.NODE_ENV!=="production"&&ot(`Method "${W}" has type "${typeof it}" in the component definition. Did you reference the function correctly?`)}if(i){({}).NODE_ENV!=="production"&&!Tt(i)&&ot("The data option must be a function. Plain object usage is no longer supported.");const W=i.call(e,e);if({}.NODE_ENV!=="production"&&$r(W)&&ot("data() returned a Promise - note data() cannot be async; If you intend to perform data fetching before component renders, use async setup() + <Suspense>."),!Gt(W))({}).NODE_ENV!=="production"&&ot("data() should return an object.");else if(s.data=Qt(W),{}.NODE_ENV!=="production")for(const it in W)rt("Data",it),fo(it[0])||Object.defineProperty(n,it,{configurable:!0,enumerable:!0,get:()=>W[it],set:oe})}if(mo=!0,r)for(const W in r){const it=r[W],B=Tt(it)?it.bind(e,e):Tt(it.get)?it.get.bind(e,e):oe;({}).NODE_ENV!=="production"&&B===oe&&ot(`Computed property "${W}" has no getter.`);const j=!Tt(it)&&Tt(it.set)?it.set.bind(e):{}.NODE_ENV!=="production"?()=>{ot(`Write operation failed: computed property "${W}" is readonly.`)}:oe,yt=Ff({get:B,set:j});Object.defineProperty(n,W,{enumerable:!0,configurable:!0,get:()=>yt.value,set:gt=>yt.value=gt}),{}.NODE_ENV!=="production"&&rt("Computed",W)}if(a)for(const W in a)Ul(a[W],n,e,W);if(l){const W=Tt(l)?l.call(e):l;Reflect.ownKeys(W).forEach(it=>{rf(it,W[it])})}u&&jl(u,s,"c");function Q(W,it){xt(it)?it.forEach(B=>W(B.bind(e))):it&&W(it.bind(e))}if(Q(Fd,h),Q(tn,d),Q($d,m),Q(Vd,f),Q(Md,E),Q(Nd,S),Q(Xd,ut),Q(Gd,b),Q(Bd,z),Q(Yd,C),Q(le,p),Q(zd,O),xt(R))if(R.length){const W=s.exposed||(s.exposed={});R.forEach(it=>{Object.defineProperty(W,it,{get:()=>e[it],set:B=>e[it]=B})})}else s.exposed||(s.exposed={});x&&s.render===oe&&(s.render=x),A!=null&&(s.inheritAttrs=A),D&&(s.components=D),F&&(s.directives=F)}function Qd(s,t,e=oe){xt(s)&&(s=yo(s));for(const n in s){const i=s[n];let r;Gt(i)?"default"in i?r=Yi(i.from||n,i.default,!0):r=Yi(i.from||n):r=Yi(i),me(r)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>r.value,set:o=>r.value=o}):t[n]=r,{}.NODE_ENV!=="production"&&e("Inject",n)}}function jl(s,t,e){Ue(xt(s)?s.map(n=>n.bind(t.proxy)):s.bind(t.proxy),t,e)}function Ul(s,t,e,n){const i=n.includes(".")?Vl(e,n):()=>e[n];if(re(s)){const r=t[s];Tt(r)?Mt(i,r):{}.NODE_ENV!=="production"&&ot(`Invalid watch handler specified by key "${s}"`,r)}else if(Tt(s))Mt(i,s.bind(e));else if(Gt(s))if(xt(s))s.forEach(r=>Ul(r,t,e,n));else{const r=Tt(s.handler)?s.handler.bind(e):t[s.handler];Tt(r)?Mt(i,r,s):{}.NODE_ENV!=="production"&&ot(`Invalid watch handler specified by key "${s.handler}"`,r)}else({}).NODE_ENV!=="production"&&ot(`Invalid watch option: "${n}"`,s)}function go(s){const t=s.type,{mixins:e,extends:n}=t,{mixins:i,optionsCache:r,config:{optionMergeStrategies:o}}=s.appContext,a=r.get(t);let l;return a?l=a:!i.length&&!e&&!n?l=t:(l={},i.length&&i.forEach(c=>Vi(l,c,o,!0)),Vi(l,t,o)),Gt(t)&&r.set(t,l),l}function Vi(s,t,e,n=!1){const{mixins:i,extends:r}=t;r&&Vi(s,r,e,!0),i&&i.forEach(o=>Vi(s,o,e,!0));for(const o in t)if(n&&o==="expose")({}).NODE_ENV!=="production"&&ot('"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.');else{const a=Jd[o]||e&&e[o];s[o]=a?a(s[o],t[o]):t[o]}return s}const Jd={data:Hl,props:Wl,emits:Wl,methods:Yn,computed:Yn,beforeCreate:Te,created:Te,beforeMount:Te,mounted:Te,beforeUpdate:Te,updated:Te,beforeDestroy:Te,beforeUnmount:Te,destroyed:Te,unmounted:Te,activated:Te,deactivated:Te,errorCaptured:Te,serverPrefetch:Te,components:Yn,directives:Yn,watch:ef,provide:Hl,inject:tf};function Hl(s,t){return t?s?function(){return ne(Tt(s)?s.call(this,this):s,Tt(t)?t.call(this,this):t)}:t:s}function tf(s,t){return Yn(yo(s),yo(t))}function yo(s){if(xt(s)){const t={};for(let e=0;e<s.length;e++)t[s[e]]=s[e];return t}return s}function Te(s,t){return s?[...new Set([].concat(s,t))]:t}function Yn(s,t){return s?ne(Object.create(null),s,t):t}function Wl(s,t){return s?xt(s)&&xt(t)?[...new Set([...s,...t])]:ne(Object.create(null),Xl(s),Xl(t??{})):t}function ef(s,t){if(!s)return t;if(!t)return s;const e=ne(Object.create(null),s);for(const n in t)e[n]=Te(s[n],t[n]);return e}function ql(){return{app:null,config:{isNativeTag:gh,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let sf=0;function nf(s,t){return function(n,i=null){Tt(n)||(n=ne({},n)),i!=null&&!Gt(i)&&({}.NODE_ENV!=="production"&&ot("root props passed to app.mount() must be an object."),i=null);const r=ql(),o=new WeakSet;let a=!1;const l=r.app={_uid:sf++,_component:n,_props:i,_container:null,_context:r,_instance:null,version:wc,get config(){return r.config},set config(c){({}).NODE_ENV!=="production"&&ot("app.config cannot be replaced. Modify individual options instead.")},use(c,...u){return o.has(c)?{}.NODE_ENV!=="production"&&ot("Plugin has already been applied to target app."):c&&Tt(c.install)?(o.add(c),c.install(l,...u)):Tt(c)?(o.add(c),c(l,...u)):{}.NODE_ENV!=="production"&&ot('A plugin must either be a function or an object with an "install" function.'),l},mixin(c){return r.mixins.includes(c)?{}.NODE_ENV!=="production"&&ot("Mixin has already been applied to target app"+(c.name?`: ${c.name}`:"")):r.mixins.push(c),l},component(c,u){return{}.NODE_ENV!=="production"&&Eo(c,r.config),u?({}.NODE_ENV!=="production"&&r.components[c]&&ot(`Component "${c}" has already been registered in target app.`),r.components[c]=u,l):r.components[c]},directive(c,u){return{}.NODE_ENV!=="production"&&Yl(c),u?({}.NODE_ENV!=="production"&&r.directives[c]&&ot(`Directive "${c}" has already been registered in target app.`),r.directives[c]=u,l):r.directives[c]},mount(c,u,h){if(a)({}).NODE_ENV!=="production"&&ot("App has already been mounted.\nIf you want to remount the same app, move your app creation logic into a factory function and create fresh app instances for each mount - e.g. `const createMyApp = () => createApp(App)`");else{({}).NODE_ENV!=="production"&&c.__vue_app__&&ot("There is already an app instance mounted on the host container.\n If you want to mount another app on the same host container, you need to unmount the previous app by calling `app.unmount()` first.");const d=ft(n,i);return d.appContext=r,h===!0?h="svg":h===!1&&(h=void 0),{}.NODE_ENV!=="production"&&(r.reload=()=>{s(Ds(d),c,h)}),u&&t?t(d,c):s(d,c,h),a=!0,l._container=c,c.__vue_app__=l,{}.NODE_ENV!=="production"&&(l._instance=d.component,md(l,wc)),Hi(d.component)||d.component.proxy}},unmount(){a?(s(null,l._container),{}.NODE_ENV!=="production"&&(l._instance=null,gd(l)),delete l._container.__vue_app__):{}.NODE_ENV!=="production"&&ot("Cannot unmount an app that is not mounted.")},provide(c,u){return{}.NODE_ENV!=="production"&&c in r.provides&&ot(`App already provides property with key "${String(c)}". It will be overwritten with the new value.`),r.provides[c]=u,l},runWithContext(c){const u=zn;zn=l;try{return c()}finally{zn=u}}};return l}}let zn=null;function rf(s,t){if(!de)({}).NODE_ENV!=="production"&&ot("provide() can only be used inside setup().");else{let e=de.provides;const n=de.parent&&de.parent.provides;n===e&&(e=de.provides=Object.create(n)),e[s]=t}}function Yi(s,t,e=!1){const n=de||ae;if(n||zn){const i=n?n.parent==null?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:zn._context.provides;if(i&&s in i)return i[s];if(arguments.length>1)return e&&Tt(t)?t.call(n&&n.proxy):t;({}).NODE_ENV!=="production"&&ot(`injection "${String(s)}" not found.`)}else({}).NODE_ENV!=="production"&&ot("inject() can only be used inside setup() or functional components.")}function of(s,t,e,n=!1){const i={},r={};bi(r,Gi,1),s.propsDefaults=Object.create(null),Zl(s,t,i,r);for(const o in s.propsOptions[0])o in i||(i[o]=void 0);({}).NODE_ENV!=="production"&&ec(t||{},i,s),e?s.props=n?i:qh(i):s.type.props?s.props=i:s.props=r,s.attrs=r}function af(s){for(;s;){if(s.type.__hmrId)return!0;s=s.parent}}function lf(s,t,e,n){const{props:i,attrs:r,vnode:{patchFlag:o}}=s,a=Dt(i),[l]=s.propsOptions;let c=!1;if(!({}.NODE_ENV!=="production"&&af(s))&&(n||o>0)&&!(o&16)){if(o&8){const u=s.vnode.dynamicProps;for(let h=0;h<u.length;h++){let d=u[h];if(Ai(s.emitsOptions,d))continue;const m=t[d];if(l)if(At(r,d))m!==r[d]&&(r[d]=m,c=!0);else{const f=pn(d);i[f]=vo(l,a,f,m,s,!1)}else m!==r[d]&&(r[d]=m,c=!0)}}}else{Zl(s,t,i,r)&&(c=!0);let u;for(const h in a)(!t||!At(t,h)&&((u=xs(h))===h||!At(t,u)))&&(l?e&&(e[h]!==void 0||e[u]!==void 0)&&(i[h]=vo(l,a,h,void 0,s,!0)):delete i[h]);if(r!==a)for(const h in r)(!t||!At(t,h))&&(delete r[h],c=!0)}c&&Ke(s,"set","$attrs"),{}.NODE_ENV!=="production"&&ec(t||{},i,s)}function Zl(s,t,e,n){const[i,r]=s.propsOptions;let o=!1,a;if(t)for(let l in t){if(Pn(l))continue;const c=t[l];let u;i&&At(i,u=pn(l))?!r||!r.includes(u)?e[u]=c:(a||(a={}))[u]=c:Ai(s.emitsOptions,l)||(!(l in n)||c!==n[l])&&(n[l]=c,o=!0)}if(r){const l=Dt(e),c=a||Xt;for(let u=0;u<r.length;u++){const h=r[u];e[h]=vo(i,l,h,c[h],s,!At(c,h))}}return o}function vo(s,t,e,n,i,r){const o=s[e];if(o!=null){const a=At(o,"default");if(a&&n===void 0){const l=o.default;if(o.type!==Function&&!o.skipFactory&&Tt(l)){const{propsDefaults:c}=i;if(e in c)n=c[e];else{const u=Wn(i);n=c[e]=l.call(null,t),u()}}else n=l}o[0]&&(r&&!a?n=!1:o[1]&&(n===""||n===xs(e))&&(n=!0))}return n}function Kl(s,t,e=!1){const n=t.propsCache,i=n.get(s);if(i)return i;const r=s.props,o={},a=[];let l=!1;if(!Tt(s)){const u=h=>{l=!0;const[d,m]=Kl(h,t,!0);ne(o,d),m&&a.push(...m)};!e&&t.mixins.length&&t.mixins.forEach(u),s.extends&&u(s.extends),s.mixins&&s.mixins.forEach(u)}if(!r&&!l)return Gt(s)&&n.set(s,dn),dn;if(xt(r))for(let u=0;u<r.length;u++){({}).NODE_ENV!=="production"&&!re(r[u])&&ot("props must be strings when using array syntax.",r[u]);const h=pn(r[u]);Ql(h)&&(o[h]=Xt)}else if(r){({}).NODE_ENV!=="production"&&!Gt(r)&&ot("invalid props options",r);for(const u in r){const h=pn(u);if(Ql(h)){const d=r[u],m=o[h]=xt(d)||Tt(d)?{type:d}:ne({},d);if(m){const f=tc(Boolean,m.type),E=tc(String,m.type);m[0]=f>-1,m[1]=E<0||f<E,(f>-1||At(m,"default"))&&a.push(h)}}}}const c=[o,a];return Gt(s)&&n.set(s,c),c}function Ql(s){return s[0]!=="$"&&!Pn(s)?!0:({}.NODE_ENV!=="production"&&ot(`Invalid prop name: "${s}" is a reserved property.`),!1)}function _o(s){return s===null?"null":typeof s=="function"?s.name||"":typeof s=="object"&&s.constructor&&s.constructor.name||""}function Jl(s,t){return _o(s)===_o(t)}function tc(s,t){return xt(t)?t.findIndex(e=>Jl(e,s)):Tt(t)&&Jl(t,s)?0:-1}function ec(s,t,e){const n=Dt(t),i=e.propsOptions[0];for(const r in i){let o=i[r];o!=null&&cf(r,n[r],o,{}.NODE_ENV!=="production"?mn(n):n,!At(s,r)&&!At(s,xs(r)))}}function cf(s,t,e,n,i){const{type:r,required:o,validator:a,skipCheck:l}=e;if(o&&i){ot('Missing required prop: "'+s+'"');return}if(!(t==null&&!o)){if(r!=null&&r!==!0&&!l){let c=!1;const u=xt(r)?r:[r],h=[];for(let d=0;d<u.length&&!c;d++){const{valid:m,expectedType:f}=hf(t,u[d]);h.push(f||""),c=m}if(!c){ot(df(s,t,h));return}}a&&!a(t,n)&&ot('Invalid prop: custom validator check failed for prop "'+s+'".')}}const uf=hn("String,Number,Boolean,Function,Symbol,BigInt");function hf(s,t){let e;const n=_o(t);if(uf(n)){const i=typeof s;e=i===n.toLowerCase(),!e&&i==="object"&&(e=s instanceof t)}else n==="Object"?e=Gt(s):n==="Array"?e=xt(s):n==="null"?e=s===null:e=s instanceof t;return{valid:e,expectedType:n}}function df(s,t,e){if(e.length===0)return`Prop type [] for prop "${s}" won't match anything. Did you mean to use type Array instead?`;let n=`Invalid prop: type check failed for prop "${s}". Expected ${e.map(_i).join(" | ")}`;const i=e[0],r=Vr(t),o=sc(t,i),a=sc(t,r);return e.length===1&&nc(i)&&!ff(i,r)&&(n+=` with value ${o}`),n+=`, got ${r} `,nc(r)&&(n+=`with value ${a}.`),n}function sc(s,t){return t==="String"?`"${s}"`:t==="Number"?`${Number(s)}`:`${s}`}function nc(s){return["string","number","boolean"].some(e=>s.toLowerCase()===e)}function ff(...s){return s.some(t=>t.toLowerCase()==="boolean")}const ic=s=>s[0]==="_"||s==="$stable",bo=s=>xt(s)?s.map(We):[We(s)],pf=(s,t,e)=>{if(t._n)return t;const n=Pt((...i)=>({}.NODE_ENV!=="production"&&de&&(!e||e.root===de.root)&&ot(`Slot "${s}" invoked outside of the render function: this will not track dependencies used in the slot. Invoke the slot function inside the render function instead.`),bo(t(...i))),e);return n._c=!1,n},rc=(s,t,e)=>{const n=s._ctx;for(const i in s){if(ic(i))continue;const r=s[i];if(Tt(r))t[i]=pf(i,r,n);else if(r!=null){({}).NODE_ENV!=="production"&&ot(`Non-function value encountered for slot "${i}". Prefer function slots for better performance.`);const o=bo(r);t[i]=()=>o}}},oc=(s,t)=>{({}).NODE_ENV!=="production"&&!uo(s.vnode)&&ot("Non-function value encountered for default slot. Prefer function slots for better performance.");const e=bo(t);s.slots.default=()=>e},mf=(s,t)=>{if(s.vnode.shapeFlag&32){const e=t._;e?(s.slots=Dt(t),bi(t,"_",e)):rc(t,s.slots={})}else s.slots={},t&&oc(s,t);bi(s.slots,Gi,1)},gf=(s,t,e)=>{const{vnode:n,slots:i}=s;let r=!0,o=Xt;if(n.shapeFlag&32){const a=t._;a?{}.NODE_ENV!=="production"&&qs?(ne(i,t),Ke(s,"set","$slots")):e&&a===1?r=!1:(ne(i,t),!e&&a===1&&delete i._):(r=!t.$stable,rc(t,i)),o=t}else t&&(oc(s,t),o={default:1});if(r)for(const a in i)!ic(a)&&o[a]==null&&delete i[a]};function xo(s,t,e,n,i=!1){if(xt(s)){s.forEach((d,m)=>xo(d,t&&(xt(t)?t[m]:t),e,n,i));return}if(Vn(n)&&!i)return;const r=n.shapeFlag&4?Hi(n.component)||n.component.proxy:n.el,o=i?null:r,{i:a,r:l}=s;if({}.NODE_ENV!=="production"&&!a){ot("Missing ref owner context. ref cannot be used on hoisted vnodes. A vnode with ref must be created inside the render function.");return}const c=t&&t.r,u=a.refs===Xt?a.refs={}:a.refs,h=a.setupState;if(c!=null&&c!==l&&(re(c)?(u[c]=null,At(h,c)&&(h[c]=null)):me(c)&&(c.value=null)),Tt(l))ls(l,a,12,[o,u]);else{const d=re(l),m=me(l);if(d||m){const f=()=>{if(s.f){const E=d?At(h,l)?h[l]:u[l]:l.value;i?xt(E)&&Fr(E,r):xt(E)?E.includes(r)||E.push(r):d?(u[l]=[r],At(h,l)&&(h[l]=u[l])):(l.value=[r],s.k&&(u[s.k]=l.value))}else d?(u[l]=o,At(h,l)&&(h[l]=o)):m?(l.value=o,s.k&&(u[s.k]=o)):{}.NODE_ENV!=="production"&&ot("Invalid template ref type:",l,`(${typeof l})`)};o?(f.id=-1,Ie(f,e)):f()}else({}).NODE_ENV!=="production"&&ot("Invalid template ref type:",l,`(${typeof l})`)}}let Bn,Is;function hs(s,t){s.appContext.config.performance&&zi()&&Is.mark(`vue-${t}-${s.uid}`),{}.NODE_ENV!=="production"&&bd(s,t,zi()?Is.now():Date.now())}function ds(s,t){if(s.appContext.config.performance&&zi()){const e=`vue-${t}-${s.uid}`,n=e+":end";Is.mark(n),Is.measure(`<${Wi(s,s.type)}> ${t}`,e,n),Is.clearMarks(e),Is.clearMarks(n)}({}).NODE_ENV!=="production"&&xd(s,t,zi()?Is.now():Date.now())}function zi(){return Bn!==void 0||(typeof window<"u"&&window.performance?(Bn=!0,Is=window.performance):Bn=!1),Bn}function yf(){const s=[];if({}.NODE_ENV!=="production"&&s.length){const t=s.length>1;console.warn(`Feature flag${t?"s":""} ${s.join(", ")} ${t?"are":"is"} not explicitly defined. You are running the esm-bundler build of Vue, which expects these compile-time feature flags to be globally injected via the bundler config in order to get better tree-shaking in the production bundle.
18
+ `],...nd(e))}),t}function nd({vnode:s,recurseCount:t}){const e=t>0?`... (${t} recursive calls)`:"",n=s.component?s.component.parent==null:!1,i=` at <${Wi(s.component,s.type,n)}`,r=">"+e;return s.props?[i,...id(s.props),r]:[i+r]}function id(s){const t=[],e=Object.keys(s);return e.slice(0,3).forEach(n=>{t.push(...wl(n,s[n]))}),e.length>3&&t.push(" ..."),t}function wl(s,t,e){return re(t)?(t=JSON.stringify(t),e?t:[`${s}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?e?t:[`${s}=${t}`]:me(t)?(t=wl(s,Dt(t.value),!0),e?t:[`${s}=Ref<`,t,">"]):Tt(t)?[`${s}=fn${t.name?`<${t.name}>`:""}`]:(t=Dt(t),e?t:[`${s}=`,t])}const Jr={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. This is likely a Vue internals bug. Please open an issue at https://github.com/vuejs/core ."};function ls(s,t,e,n){try{return n?s(...n):s()}catch(i){Dn(i,t,e)}}function Ue(s,t,e,n){if(Tt(s)){const r=ls(s,t,e,n);return r&&$r(r)&&r.catch(o=>{Dn(o,t,e)}),r}const i=[];for(let r=0;r<s.length;r++)i.push(Ue(s[r],t,e,n));return i}function Dn(s,t,e,n=!0){const i=t?t.vnode:null;if(t){let r=t.parent;const o=t.proxy,a={}.NODE_ENV!=="production"?Jr[e]:`https://vuejs.org/error-reference/#runtime-${e}`;for(;r;){const c=r.ec;if(c){for(let u=0;u<c.length;u++)if(c[u](s,o,a)===!1)return}r=r.parent}const l=t.appContext.config.errorHandler;if(l){ls(l,null,10,[s,o,a]);return}}rd(s,e,i,n)}function rd(s,t,e,n=!0){if({}.NODE_ENV!=="production"){const i=Jr[t];if(e&&Ii(e),ot(`Unhandled error${i?` during execution of ${i}`:""}`),e&&Di(),n)throw s;console.error(s)}else console.error(s)}let Rn=!1,to=!1;const xe=[];let Qe=0;const gn=[];let cs=null,Os=0;const Cl=Promise.resolve();let eo=null;const od=100;function ad(s){const t=eo||Cl;return s?t.then(this?s.bind(this):s):t}function ld(s){let t=Qe+1,e=xe.length;for(;t<e;){const n=t+e>>>1,i=xe[n],r=An(i);r<s||r===s&&i.pre?t=n+1:e=n}return t}function Ri(s){(!xe.length||!xe.includes(s,Rn&&s.allowRecurse?Qe+1:Qe))&&(s.id==null?xe.push(s):xe.splice(ld(s.id),0,s),Sl())}function Sl(){!Rn&&!to&&(to=!0,eo=Cl.then(Pl))}function cd(s){const t=xe.indexOf(s);t>Qe&&xe.splice(t,1)}function Tl(s){xt(s)?gn.push(...s):(!cs||!cs.includes(s,s.allowRecurse?Os+1:Os))&&gn.push(s),Sl()}function El(s,t,e=Rn?Qe+1:0){for({}.NODE_ENV!=="production"&&(t=t||new Map);e<xe.length;e++){const n=xe[e];if(n&&n.pre){if(s&&n.id!==s.uid||{}.NODE_ENV!=="production"&&so(t,n))continue;xe.splice(e,1),e--,n()}}}function kl(s){if(gn.length){const t=[...new Set(gn)].sort((e,n)=>An(e)-An(n));if(gn.length=0,cs){cs.push(...t);return}for(cs=t,{}.NODE_ENV!=="production"&&(s=s||new Map),Os=0;Os<cs.length;Os++)({}).NODE_ENV!=="production"&&so(s,cs[Os])||cs[Os]();cs=null,Os=0}}const An=s=>s.id==null?1/0:s.id,ud=(s,t)=>{const e=An(s)-An(t);if(e===0){if(s.pre&&!t.pre)return-1;if(t.pre&&!s.pre)return 1}return e};function Pl(s){to=!1,Rn=!0,{}.NODE_ENV!=="production"&&(s=s||new Map),xe.sort(ud);const t={}.NODE_ENV!=="production"?e=>so(s,e):oe;try{for(Qe=0;Qe<xe.length;Qe++){const e=xe[Qe];if(e&&e.active!==!1){if({}.NODE_ENV!=="production"&&t(e))continue;ls(e,null,14)}}}finally{Qe=0,xe.length=0,kl(s),Rn=!1,eo=null,(xe.length||gn.length)&&Pl(s)}}function so(s,t){if(!s.has(t))s.set(t,1);else{const e=s.get(t);if(e>od){const n=t.ownerInstance,i=n&&bc(n.type);return Dn(`Maximum recursive updates exceeded${i?` in component <${i}>`:""}. 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}else s.set(t,e+1)}}let qs=!1;const yn=new Set;({}).NODE_ENV!=="production"&&(zr().__VUE_HMR_RUNTIME__={createRecord:no(Ol),rerender:no(fd),reload:no(pd)});const Zs=new Map;function hd(s){const t=s.type.__hmrId;let e=Zs.get(t);e||(Ol(t,s.type),e=Zs.get(t)),e.instances.add(s)}function dd(s){Zs.get(s.type.__hmrId).instances.delete(s)}function Ol(s,t){return Zs.has(s)?!1:(Zs.set(s,{initialDef:Mn(t),instances:new Set}),!0)}function Mn(s){return xc(s)?s.__vccOpts:s}function fd(s,t){const e=Zs.get(s);e&&(e.initialDef.render=t,[...e.instances].forEach(n=>{t&&(n.render=t,Mn(n.type).render=t),n.renderCache=[],qs=!0,n.effect.dirty=!0,n.update(),qs=!1}))}function pd(s,t){const e=Zs.get(s);if(!e)return;t=Mn(t),Il(e.initialDef,t);const n=[...e.instances];for(const i of n){const r=Mn(i.type);yn.has(r)||(r!==e.initialDef&&Il(r,t),yn.add(r)),i.appContext.propsCache.delete(i.type),i.appContext.emitsCache.delete(i.type),i.appContext.optionsCache.delete(i.type),i.ceReload?(yn.add(r),i.ceReload(t.styles),yn.delete(r)):i.parent?(i.parent.effect.dirty=!0,Ri(i.parent.update)):i.appContext.reload?i.appContext.reload():typeof window<"u"?window.location.reload():console.warn("[HMR] Root or manually mounted instance modified. Full reload required.")}Tl(()=>{for(const i of n)yn.delete(Mn(i.type))})}function Il(s,t){ne(s,t);for(const e in s)e!=="__file"&&!(e in t)&&delete s[e]}function no(s){return(t,e)=>{try{return s(t,e)}catch(n){console.error(n),console.warn("[HMR] Something went wrong during Vue component hot-reload. Full reload required.")}}}let Je,Nn=[],io=!1;function Ln(s,...t){Je?Je.emit(s,...t):io||Nn.push({event:s,args:t})}function Dl(s,t){var e,n;Je=s,Je?(Je.enabled=!0,Nn.forEach(({event:i,args:r})=>Je.emit(i,...r)),Nn=[]):typeof window<"u"&&window.HTMLElement&&!((n=(e=window.navigator)==null?void 0:e.userAgent)!=null&&n.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(r=>{Dl(r,t)}),setTimeout(()=>{Je||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,io=!0,Nn=[])},3e3)):(io=!0,Nn=[])}function md(s,t){Ln("app:init",s,t,{Fragment:$t,Text:Gn,Comment:De,Static:Xn})}function gd(s){Ln("app:unmount",s)}const yd=ro("component:added"),Rl=ro("component:updated"),vd=ro("component:removed"),_d=s=>{Je&&typeof Je.cleanupBuffer=="function"&&!Je.cleanupBuffer(s)&&vd(s)};function ro(s){return t=>{Ln(s,t.appContext.app,t.uid,t.parent?t.parent.uid:void 0,t)}}const bd=Al("perf:start"),xd=Al("perf:end");function Al(s){return(t,e,n)=>{Ln(s,t.appContext.app,t.uid,t,e,n)}}function wd(s,t,e){Ln("component:emit",s.appContext.app,s,t,e)}function Cd(s,t,...e){if(s.isUnmounted)return;const n=s.vnode.props||Xt;if({}.NODE_ENV!=="production"){const{emitsOptions:u,propsOptions:[h]}=s;if(u)if(!(t in u))(!h||!(Gs(t)in h))&&ot(`Component emitted event "${t}" but it is neither declared in the emits option nor as an "${Gs(t)}" prop.`);else{const d=u[t];Tt(d)&&(d(...e)||ot(`Invalid event arguments: event validation failed for event "${t}".`))}}let i=e;const r=t.startsWith("update:"),o=r&&t.slice(7);if(o&&o in n){const u=`${o==="modelValue"?"model":o}Modifiers`,{number:h,trim:d}=n[u]||Xt;d&&(i=e.map(m=>re(m)?m.trim():m)),h&&(i=e.map(xh))}if({}.NODE_ENV!=="production"&&wd(s,t,i),{}.NODE_ENV!=="production"){const u=t.toLowerCase();u!==t&&n[Gs(u)]&&ot(`Event "${u}" is emitted in component ${Wi(s,s.type)} but the handler is registered for "${t}". Note that HTML attributes are case-insensitive and you cannot use v-on to listen to camelCase events when using in-DOM templates. You should probably use "${xs(t)}" instead of "${t}".`)}let a,l=n[a=Gs(t)]||n[a=Gs(pn(t))];!l&&r&&(l=n[a=Gs(xs(t))]),l&&Ue(l,s,6,i);const c=n[a+"Once"];if(c){if(!s.emitted)s.emitted={};else if(s.emitted[a])return;s.emitted[a]=!0,Ue(c,s,6,i)}}function Ml(s,t,e=!1){const n=t.emitsCache,i=n.get(s);if(i!==void 0)return i;const r=s.emits;let o={},a=!1;if(!Tt(s)){const l=c=>{const u=Ml(c,t,!0);u&&(a=!0,ne(o,u))};!e&&t.mixins.length&&t.mixins.forEach(l),s.extends&&l(s.extends),s.mixins&&s.mixins.forEach(l)}return!r&&!a?(Gt(s)&&n.set(s,null),null):(xt(r)?r.forEach(l=>o[l]=null):ne(o,r),Gt(s)&&n.set(s,o),o)}function Ai(s,t){return!s||!kn(t)?!1:(t=t.slice(2).replace(/Once$/,""),At(s,t[0].toLowerCase()+t.slice(1))||At(s,xs(t))||At(s,t))}let ae=null,Mi=null;function Ni(s){const t=ae;return ae=s,Mi=s&&s.type.__scopeId||null,t}function Fn(s){Mi=s}function $n(){Mi=null}function Pt(s,t=ae,e){if(!t||s._n)return s;const n=(...i)=>{n._d&&lc(-1);const r=Ni(t);let o;try{o=s(...i)}finally{Ni(r),n._d&&lc(1)}return{}.NODE_ENV!=="production"&&Rl(t),o};return n._n=!0,n._c=!0,n._d=!0,n}let oo=!1;function Li(){oo=!0}function ao(s){const{type:t,vnode:e,proxy:n,withProxy:i,props:r,propsOptions:[o],slots:a,attrs:l,emit:c,render:u,renderCache:h,data:d,setupState:m,ctx:f,inheritAttrs:E}=s;let S,_;const C=Ni(s);({}).NODE_ENV!=="production"&&(oo=!1);try{if(e.shapeFlag&4){const x=i||n,b={}.NODE_ENV!=="production"&&m.__isScriptSetup?new Proxy(x,{get(z,ut,O){return ot(`Property '${String(ut)}' was accessed via 'this'. Avoid using 'this' in templates.`),Reflect.get(z,ut,O)}}):x;S=We(u.call(b,x,h,r,m,d,f)),_=l}else{const x=t;({}).NODE_ENV!=="production"&&l===r&&Li(),S=We(x.length>1?x(r,{}.NODE_ENV!=="production"?{get attrs(){return Li(),l},slots:a,emit:c}:{attrs:l,slots:a,emit:c}):x(r,null)),_=t.props?l:Sd(l)}}catch(x){jn.length=0,Dn(x,s,1),S=ft(De)}let y=S,p;if({}.NODE_ENV!=="production"&&S.patchFlag>0&&S.patchFlag&2048&&([y,p]=Nl(S)),_&&E!==!1){const x=Object.keys(_),{shapeFlag:b}=y;if(x.length){if(b&7)o&&x.some(gi)&&(_=Td(_,o)),y=Ds(y,_);else if({}.NODE_ENV!=="production"&&!oo&&y.type!==De){const z=Object.keys(l),ut=[],O=[];for(let R=0,A=z.length;R<A;R++){const D=z[R];kn(D)?gi(D)||ut.push(D[2].toLowerCase()+D.slice(3)):O.push(D)}O.length&&ot(`Extraneous non-props attributes (${O.join(", ")}) were passed to component but could not be automatically inherited because component renders fragment or text root nodes.`),ut.length&&ot(`Extraneous non-emits event listeners (${ut.join(", ")}) were passed to component but could not be automatically inherited because component renders fragment or text root nodes. If the listener is intended to be a component custom event listener only, declare it using the "emits" option.`)}}}return e.dirs&&({}.NODE_ENV!=="production"&&!Ll(y)&&ot("Runtime directive used on component with non-element root node. The directives will not function as intended."),y=Ds(y),y.dirs=y.dirs?y.dirs.concat(e.dirs):e.dirs),e.transition&&({}.NODE_ENV!=="production"&&!Ll(y)&&ot("Component inside <Transition> renders non-element root node that cannot be animated."),y.transition=e.transition),{}.NODE_ENV!=="production"&&p?p(y):S=y,Ni(C),S}const Nl=s=>{const t=s.children,e=s.dynamicChildren,n=lo(t,!1);if(n){if({}.NODE_ENV!=="production"&&n.patchFlag>0&&n.patchFlag&2048)return Nl(n)}else return[s,void 0];const i=t.indexOf(n),r=e?e.indexOf(n):-1,o=a=>{t[i]=a,e&&(r>-1?e[r]=a:a.patchFlag>0&&(s.dynamicChildren=[...e,a]))};return[We(n),o]};function lo(s,t=!0){let e;for(let n=0;n<s.length;n++){const i=s[n];if(vn(i)){if(i.type!==De||i.children==="v-if"){if(e)return;if(e=i,{}.NODE_ENV!=="production"&&t&&e.patchFlag>0&&e.patchFlag&2048)return lo(e.children)}}else return}return e}const Sd=s=>{let t;for(const e in s)(e==="class"||e==="style"||kn(e))&&((t||(t={}))[e]=s[e]);return t},Td=(s,t)=>{const e={};for(const n in s)(!gi(n)||!(n.slice(9)in t))&&(e[n]=s[n]);return e},Ll=s=>s.shapeFlag&7||s.type===De;function Ed(s,t,e){const{props:n,children:i,component:r}=s,{props:o,children:a,patchFlag:l}=t,c=r.emitsOptions;if({}.NODE_ENV!=="production"&&(i||a)&&qs||t.dirs||t.transition)return!0;if(e&&l>=0){if(l&1024)return!0;if(l&16)return n?Fl(n,o,c):!!o;if(l&8){const u=t.dynamicProps;for(let h=0;h<u.length;h++){const d=u[h];if(o[d]!==n[d]&&!Ai(c,d))return!0}}}else return(i||a)&&(!a||!a.$stable)?!0:n===o?!1:n?o?Fl(n,o,c):!0:!!o;return!1}function Fl(s,t,e){const n=Object.keys(t);if(n.length!==Object.keys(s).length)return!0;for(let i=0;i<n.length;i++){const r=n[i];if(t[r]!==s[r]&&!Ai(e,r))return!0}return!1}function kd({vnode:s,parent:t},e){for(;t;){const n=t.subTree;if(n.suspense&&n.suspense.activeBranch===s&&(n.el=s.el),n===s)(s=t.vnode).el=e,t=t.parent;else break}}const Pd=Symbol.for("v-ndc"),Od=s=>s.__isSuspense;function Id(s,t){t&&t.pendingBranch?xt(s)?t.effects.push(...s):t.effects.push(s):Tl(s)}const Dd=Symbol.for("v-scx"),Rd=()=>{{const s=Yi(Dd);return s||{}.NODE_ENV!=="production"&&ot("Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."),s}};function $l(s,t){return co(s,null,t)}const Fi={};function Mt(s,t,e){return{}.NODE_ENV!=="production"&&!Tt(t)&&ot("`watch(fn, options?)` signature has been moved to a separate API. Use `watchEffect(fn, options?)` instead. `watch` now only supports `watch(source, cb, options?) signature."),co(s,t,e)}function co(s,t,{immediate:e,deep:n,flush:i,once:r,onTrack:o,onTrigger:a}=Xt){if(t&&r){const z=t;t=(...ut)=>{z(...ut),b()}}({}).NODE_ENV!=="production"&&n!==void 0&&typeof n=="number"&&ot('watch() "deep" option with number value will be used as watch depth in future versions. Please use a boolean instead to avoid potential breakage.'),{}.NODE_ENV!=="production"&&!t&&(e!==void 0&&ot('watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'),n!==void 0&&ot('watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'),r!==void 0&&ot('watch() "once" option is only respected when using the watch(source, callback, options?) signature.'));const l=z=>{ot("Invalid watch source: ",z,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},c=de,u=z=>n===!0?z:Ks(z,n===!1?1:void 0);let h,d=!1,m=!1;if(me(s)?(h=()=>s.value,d=Hs(s)):Us(s)?(h=()=>u(s),d=!0):xt(s)?(m=!0,d=s.some(z=>Us(z)||Hs(z)),h=()=>s.map(z=>{if(me(z))return z.value;if(Us(z))return u(z);if(Tt(z))return ls(z,c,2);({}).NODE_ENV!=="production"&&l(z)})):Tt(s)?t?h=()=>ls(s,c,2):h=()=>(f&&f(),Ue(s,c,3,[E])):(h=oe,{}.NODE_ENV!=="production"&&l(s)),t&&n){const z=h;h=()=>Ks(z())}let f,E=z=>{f=p.onStop=()=>{ls(z,c,4),f=p.onStop=void 0}},S;if(Ui)if(E=oe,t?e&&Ue(t,c,3,[h(),m?[]:void 0,E]):h(),i==="sync"){const z=Rd();S=z.__watcherHandles||(z.__watcherHandles=[])}else return oe;let _=m?new Array(s.length).fill(Fi):Fi;const C=()=>{if(!(!p.active||!p.dirty))if(t){const z=p.run();(n||d||(m?z.some((ut,O)=>ws(ut,_[O])):ws(z,_)))&&(f&&f(),Ue(t,c,3,[z,_===Fi?void 0:m&&_[0]===Fi?[]:_,E]),_=z)}else p.run()};C.allowRecurse=!!t;let y;i==="sync"?y=C:i==="post"?y=()=>Ie(C,c&&c.suspense):(C.pre=!0,c&&(C.id=c.uid),y=()=>Ri(C));const p=new Gr(h,oe,y),x=Oh(),b=()=>{p.stop(),x&&Fr(x.effects,p)};return{}.NODE_ENV!=="production"&&(p.onTrack=o,p.onTrigger=a),t?e?C():_=p.run():i==="post"?Ie(p.run.bind(p),c&&c.suspense):p.run(),S&&S.push(b),b}function Ad(s,t,e){const n=this.proxy,i=re(s)?s.includes(".")?Vl(n,s):()=>n[s]:s.bind(n,n);let r;Tt(t)?r=t:(r=t.handler,e=t);const o=Wn(this),a=co(i,r.bind(n),e);return o(),a}function Vl(s,t){const e=t.split(".");return()=>{let n=s;for(let i=0;i<e.length&&n;i++)n=n[e[i]];return n}}function Ks(s,t,e=0,n){if(!Gt(s)||s.__v_skip)return s;if(t&&t>0){if(e>=t)return s;e++}if(n=n||new Set,n.has(s))return s;if(n.add(s),me(s))Ks(s.value,t,e,n);else if(xt(s))for(let i=0;i<s.length;i++)Ks(s[i],t,e,n);else if(Xa(s)||Bs(s))s.forEach(i=>{Ks(i,t,e,n)});else if(Ua(s))for(const i in s)Ks(s[i],t,e,n);return s}function Yl(s){vh(s)&&ot("Do not use built-in directive ids as custom directive id: "+s)}function Qs(s,t){if(ae===null)return{}.NODE_ENV!=="production"&&ot("withDirectives can only be used inside render functions."),s;const e=Hi(ae)||ae.proxy,n=s.dirs||(s.dirs=[]);for(let i=0;i<t.length;i++){let[r,o,a,l=Xt]=t[i];r&&(Tt(r)&&(r={mounted:r,updated:r}),r.deep&&Ks(o),n.push({dir:r,instance:e,value:o,oldValue:void 0,arg:a,modifiers:l}))}return s}function Js(s,t,e,n){const i=s.dirs,r=t&&t.dirs;for(let o=0;o<i.length;o++){const a=i[o];r&&(a.oldValue=r[o].value);let l=a.dir[n];l&&(Ts(),Ue(l,e,8,[s.el,a,s,t]),Es())}}/*! #__NO_SIDE_EFFECTS__ */function ct(s,t){return Tt(s)?(()=>ne({name:s.name},t,{setup:s}))():s}const Vn=s=>!!s.type.__asyncLoader,uo=s=>s.type.__isKeepAlive;function Md(s,t){zl(s,"a",t)}function Nd(s,t){zl(s,"da",t)}function zl(s,t,e=de){const n=s.__wdc||(s.__wdc=()=>{let i=e;for(;i;){if(i.isDeactivated)return;i=i.parent}return s()});if($i(t,n,e),e){let i=e.parent;for(;i&&i.parent;)uo(i.parent.vnode)&&Ld(n,t,e,i),i=i.parent}}function Ld(s,t,e,n){const i=$i(t,s,n,!0);le(()=>{Fr(n[t],i)},e)}function $i(s,t,e=de,n=!1){if(e){const i=e[s]||(e[s]=[]),r=t.__weh||(t.__weh=(...o)=>{if(e.isUnmounted)return;Ts();const a=Wn(e),l=Ue(t,e,s,o);return a(),Es(),l});return n?i.unshift(r):i.push(r),r}else if({}.NODE_ENV!=="production"){const i=Gs(Jr[s].replace(/ hook$/,""));ot(`${i} is called when there is no active component instance to be associated with. Lifecycle injection APIs can only be used during execution of setup(). If you are using async setup(), make sure to register lifecycle hooks before the first await statement.`)}}const us=s=>(t,e=de)=>(!Ui||s==="sp")&&$i(s,(...n)=>t(...n),e),Fd=us("bm"),tn=us("m"),$d=us("bu"),Vd=us("u"),Yd=us("bum"),le=us("um"),zd=us("sp"),Bd=us("rtg"),Gd=us("rtc");function Xd(s,t=de){$i("ec",s,t)}function ge(s,t,e,n){let i;const r=e&&e[n];if(xt(s)||re(s)){i=new Array(s.length);for(let o=0,a=s.length;o<a;o++)i[o]=t(s[o],o,void 0,r&&r[o])}else if(typeof s=="number"){({}).NODE_ENV!=="production"&&!Number.isInteger(s)&&ot(`The v-for range expect an integer value but got ${s}.`),i=new Array(s);for(let o=0;o<s;o++)i[o]=t(o+1,o,void 0,r&&r[o])}else if(Gt(s))if(s[Symbol.iterator])i=Array.from(s,(o,a)=>t(o,a,void 0,r&&r[a]));else{const o=Object.keys(s);i=new Array(o.length);for(let a=0,l=o.length;a<l;a++){const c=o[a];i[a]=t(s[c],c,a,r&&r[a])}}else i=[];return e&&(e[n]=i),i}function Et(s,t,e={},n,i){if(ae.isCE||ae.parent&&Vn(ae.parent)&&ae.parent.isCE)return t!=="default"&&(e.name=t),ft("slot",e,n&&n());let r=s[t];({}).NODE_ENV!=="production"&&r&&r.length>1&&(ot("SSR-optimized slot function detected in a non-SSR-optimized render function. You need to mark this component with $dynamic-slots in the parent template."),r=()=>[]),r&&r._c&&(r._d=!1),L();const o=r&&Bl(r(e)),a=zt($t,{key:e.key||o&&o.key||`_${t}`},o||(n?n():[]),o&&s._===1?64:-2);return!i&&a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),r&&r._c&&(r._d=!0),a}function Bl(s){return s.some(t=>vn(t)?!(t.type===De||t.type===$t&&!Bl(t.children)):!0)?s:null}const ho=s=>s?mc(s)?Hi(s)||s.proxy:ho(s.parent):null,en=ne(Object.create(null),{$:s=>s,$el:s=>s.vnode.el,$data:s=>s.data,$props:s=>({}).NODE_ENV!=="production"?mn(s.props):s.props,$attrs:s=>({}).NODE_ENV!=="production"?mn(s.attrs):s.attrs,$slots:s=>({}).NODE_ENV!=="production"?mn(s.slots):s.slots,$refs:s=>({}).NODE_ENV!=="production"?mn(s.refs):s.refs,$parent:s=>ho(s.parent),$root:s=>ho(s.root),$emit:s=>s.emit,$options:s=>go(s),$forceUpdate:s=>s.f||(s.f=()=>{s.effect.dirty=!0,Ri(s.update)}),$nextTick:s=>s.n||(s.n=ad.bind(s.proxy)),$watch:s=>Ad.bind(s)}),fo=s=>s==="_"||s==="$",po=(s,t)=>s!==Xt&&!s.__isScriptSetup&&At(s,t),Gl={get({_:s},t){const{ctx:e,setupState:n,data:i,props:r,accessCache:o,type:a,appContext:l}=s;if({}.NODE_ENV!=="production"&&t==="__isVue")return!0;let c;if(t[0]!=="$"){const m=o[t];if(m!==void 0)switch(m){case 1:return n[t];case 2:return i[t];case 4:return e[t];case 3:return r[t]}else{if(po(n,t))return o[t]=1,n[t];if(i!==Xt&&At(i,t))return o[t]=2,i[t];if((c=s.propsOptions[0])&&At(c,t))return o[t]=3,r[t];if(e!==Xt&&At(e,t))return o[t]=4,e[t];mo&&(o[t]=0)}}const u=en[t];let h,d;if(u)return t==="$attrs"?(pe(s,"get",t),{}.NODE_ENV!=="production"&&Li()):{}.NODE_ENV!=="production"&&t==="$slots"&&pe(s,"get",t),u(s);if((h=a.__cssModules)&&(h=h[t]))return h;if(e!==Xt&&At(e,t))return o[t]=4,e[t];if(d=l.config.globalProperties,At(d,t))return d[t];({}).NODE_ENV!=="production"&&ae&&(!re(t)||t.indexOf("__v")!==0)&&(i!==Xt&&fo(t[0])&&At(i,t)?ot(`Property ${JSON.stringify(t)} must be accessed via $data because it starts with a reserved character ("$" or "_") and is not proxied on the render context.`):s===ae&&ot(`Property ${JSON.stringify(t)} was accessed during render but is not defined on instance.`))},set({_:s},t,e){const{data:n,setupState:i,ctx:r}=s;return po(i,t)?(i[t]=e,!0):{}.NODE_ENV!=="production"&&i.__isScriptSetup&&At(i,t)?(ot(`Cannot mutate <script setup> binding "${t}" from Options API.`),!1):n!==Xt&&At(n,t)?(n[t]=e,!0):At(s.props,t)?({}.NODE_ENV!=="production"&&ot(`Attempting to mutate prop "${t}". Props are readonly.`),!1):t[0]==="$"&&t.slice(1)in s?({}.NODE_ENV!=="production"&&ot(`Attempting to mutate public property "${t}". Properties starting with $ are reserved and readonly.`),!1):({}.NODE_ENV!=="production"&&t in s.appContext.config.globalProperties?Object.defineProperty(r,t,{enumerable:!0,configurable:!0,value:e}):r[t]=e,!0)},has({_:{data:s,setupState:t,accessCache:e,ctx:n,appContext:i,propsOptions:r}},o){let a;return!!e[o]||s!==Xt&&At(s,o)||po(t,o)||(a=r[0])&&At(a,o)||At(n,o)||At(en,o)||At(i.config.globalProperties,o)},defineProperty(s,t,e){return e.get!=null?s._.accessCache[t]=0:At(e,"value")&&this.set(s,t,e.value,null),Reflect.defineProperty(s,t,e)}};({}).NODE_ENV!=="production"&&(Gl.ownKeys=s=>(ot("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(s)));function jd(s){const t={};return Object.defineProperty(t,"_",{configurable:!0,enumerable:!1,get:()=>s}),Object.keys(en).forEach(e=>{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,get:()=>en[e](s),set:oe})}),t}function Ud(s){const{ctx:t,propsOptions:[e]}=s;e&&Object.keys(e).forEach(n=>{Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>s.props[n],set:oe})})}function Hd(s){const{ctx:t,setupState:e}=s;Object.keys(Dt(e)).forEach(n=>{if(!e.__isScriptSetup){if(fo(n[0])){ot(`setup() return property ${JSON.stringify(n)} should not start with "$" or "_" which are reserved prefixes for Vue internals.`);return}Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>e[n],set:oe})}})}function Wd(){return qd().slots}function qd(){const s=fc();return{}.NODE_ENV!=="production"&&!s&&ot("useContext() called without active instance."),s.setupContext||(s.setupContext=_c(s))}function Xl(s){return xt(s)?s.reduce((t,e)=>(t[e]=null,t),{}):s}function Zd(){const s=Object.create(null);return(t,e)=>{s[e]?ot(`${t} property "${e}" is already defined in ${s[e]}.`):s[e]=t}}let mo=!0;function Kd(s){const t=go(s),e=s.proxy,n=s.ctx;mo=!1,t.beforeCreate&&jl(t.beforeCreate,s,"bc");const{data:i,computed:r,methods:o,watch:a,provide:l,inject:c,created:u,beforeMount:h,mounted:d,beforeUpdate:m,updated:f,activated:E,deactivated:S,beforeDestroy:_,beforeUnmount:C,destroyed:y,unmounted:p,render:x,renderTracked:b,renderTriggered:z,errorCaptured:ut,serverPrefetch:O,expose:R,inheritAttrs:A,components:D,directives:F,filters:X}=t,rt={}.NODE_ENV!=="production"?Zd():null;if({}.NODE_ENV!=="production"){const[W]=s.propsOptions;if(W)for(const it in W)rt("Props",it)}if(c&&Qd(c,n,rt),o)for(const W in o){const it=o[W];Tt(it)?({}.NODE_ENV!=="production"?Object.defineProperty(n,W,{value:it.bind(e),configurable:!0,enumerable:!0,writable:!0}):n[W]=it.bind(e),{}.NODE_ENV!=="production"&&rt("Methods",W)):{}.NODE_ENV!=="production"&&ot(`Method "${W}" has type "${typeof it}" in the component definition. Did you reference the function correctly?`)}if(i){({}).NODE_ENV!=="production"&&!Tt(i)&&ot("The data option must be a function. Plain object usage is no longer supported.");const W=i.call(e,e);if({}.NODE_ENV!=="production"&&$r(W)&&ot("data() returned a Promise - note data() cannot be async; If you intend to perform data fetching before component renders, use async setup() + <Suspense>."),!Gt(W))({}).NODE_ENV!=="production"&&ot("data() should return an object.");else if(s.data=Jt(W),{}.NODE_ENV!=="production")for(const it in W)rt("Data",it),fo(it[0])||Object.defineProperty(n,it,{configurable:!0,enumerable:!0,get:()=>W[it],set:oe})}if(mo=!0,r)for(const W in r){const it=r[W],B=Tt(it)?it.bind(e,e):Tt(it.get)?it.get.bind(e,e):oe;({}).NODE_ENV!=="production"&&B===oe&&ot(`Computed property "${W}" has no getter.`);const j=!Tt(it)&&Tt(it.set)?it.set.bind(e):{}.NODE_ENV!=="production"?()=>{ot(`Write operation failed: computed property "${W}" is readonly.`)}:oe,yt=Ff({get:B,set:j});Object.defineProperty(n,W,{enumerable:!0,configurable:!0,get:()=>yt.value,set:gt=>yt.value=gt}),{}.NODE_ENV!=="production"&&rt("Computed",W)}if(a)for(const W in a)Ul(a[W],n,e,W);if(l){const W=Tt(l)?l.call(e):l;Reflect.ownKeys(W).forEach(it=>{rf(it,W[it])})}u&&jl(u,s,"c");function Q(W,it){xt(it)?it.forEach(B=>W(B.bind(e))):it&&W(it.bind(e))}if(Q(Fd,h),Q(tn,d),Q($d,m),Q(Vd,f),Q(Md,E),Q(Nd,S),Q(Xd,ut),Q(Gd,b),Q(Bd,z),Q(Yd,C),Q(le,p),Q(zd,O),xt(R))if(R.length){const W=s.exposed||(s.exposed={});R.forEach(it=>{Object.defineProperty(W,it,{get:()=>e[it],set:B=>e[it]=B})})}else s.exposed||(s.exposed={});x&&s.render===oe&&(s.render=x),A!=null&&(s.inheritAttrs=A),D&&(s.components=D),F&&(s.directives=F)}function Qd(s,t,e=oe){xt(s)&&(s=yo(s));for(const n in s){const i=s[n];let r;Gt(i)?"default"in i?r=Yi(i.from||n,i.default,!0):r=Yi(i.from||n):r=Yi(i),me(r)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>r.value,set:o=>r.value=o}):t[n]=r,{}.NODE_ENV!=="production"&&e("Inject",n)}}function jl(s,t,e){Ue(xt(s)?s.map(n=>n.bind(t.proxy)):s.bind(t.proxy),t,e)}function Ul(s,t,e,n){const i=n.includes(".")?Vl(e,n):()=>e[n];if(re(s)){const r=t[s];Tt(r)?Mt(i,r):{}.NODE_ENV!=="production"&&ot(`Invalid watch handler specified by key "${s}"`,r)}else if(Tt(s))Mt(i,s.bind(e));else if(Gt(s))if(xt(s))s.forEach(r=>Ul(r,t,e,n));else{const r=Tt(s.handler)?s.handler.bind(e):t[s.handler];Tt(r)?Mt(i,r,s):{}.NODE_ENV!=="production"&&ot(`Invalid watch handler specified by key "${s.handler}"`,r)}else({}).NODE_ENV!=="production"&&ot(`Invalid watch option: "${n}"`,s)}function go(s){const t=s.type,{mixins:e,extends:n}=t,{mixins:i,optionsCache:r,config:{optionMergeStrategies:o}}=s.appContext,a=r.get(t);let l;return a?l=a:!i.length&&!e&&!n?l=t:(l={},i.length&&i.forEach(c=>Vi(l,c,o,!0)),Vi(l,t,o)),Gt(t)&&r.set(t,l),l}function Vi(s,t,e,n=!1){const{mixins:i,extends:r}=t;r&&Vi(s,r,e,!0),i&&i.forEach(o=>Vi(s,o,e,!0));for(const o in t)if(n&&o==="expose")({}).NODE_ENV!=="production"&&ot('"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.');else{const a=Jd[o]||e&&e[o];s[o]=a?a(s[o],t[o]):t[o]}return s}const Jd={data:Hl,props:Wl,emits:Wl,methods:Yn,computed:Yn,beforeCreate:Te,created:Te,beforeMount:Te,mounted:Te,beforeUpdate:Te,updated:Te,beforeDestroy:Te,beforeUnmount:Te,destroyed:Te,unmounted:Te,activated:Te,deactivated:Te,errorCaptured:Te,serverPrefetch:Te,components:Yn,directives:Yn,watch:ef,provide:Hl,inject:tf};function Hl(s,t){return t?s?function(){return ne(Tt(s)?s.call(this,this):s,Tt(t)?t.call(this,this):t)}:t:s}function tf(s,t){return Yn(yo(s),yo(t))}function yo(s){if(xt(s)){const t={};for(let e=0;e<s.length;e++)t[s[e]]=s[e];return t}return s}function Te(s,t){return s?[...new Set([].concat(s,t))]:t}function Yn(s,t){return s?ne(Object.create(null),s,t):t}function Wl(s,t){return s?xt(s)&&xt(t)?[...new Set([...s,...t])]:ne(Object.create(null),Xl(s),Xl(t??{})):t}function ef(s,t){if(!s)return t;if(!t)return s;const e=ne(Object.create(null),s);for(const n in t)e[n]=Te(s[n],t[n]);return e}function ql(){return{app:null,config:{isNativeTag:gh,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let sf=0;function nf(s,t){return function(n,i=null){Tt(n)||(n=ne({},n)),i!=null&&!Gt(i)&&({}.NODE_ENV!=="production"&&ot("root props passed to app.mount() must be an object."),i=null);const r=ql(),o=new WeakSet;let a=!1;const l=r.app={_uid:sf++,_component:n,_props:i,_container:null,_context:r,_instance:null,version:wc,get config(){return r.config},set config(c){({}).NODE_ENV!=="production"&&ot("app.config cannot be replaced. Modify individual options instead.")},use(c,...u){return o.has(c)?{}.NODE_ENV!=="production"&&ot("Plugin has already been applied to target app."):c&&Tt(c.install)?(o.add(c),c.install(l,...u)):Tt(c)?(o.add(c),c(l,...u)):{}.NODE_ENV!=="production"&&ot('A plugin must either be a function or an object with an "install" function.'),l},mixin(c){return r.mixins.includes(c)?{}.NODE_ENV!=="production"&&ot("Mixin has already been applied to target app"+(c.name?`: ${c.name}`:"")):r.mixins.push(c),l},component(c,u){return{}.NODE_ENV!=="production"&&Eo(c,r.config),u?({}.NODE_ENV!=="production"&&r.components[c]&&ot(`Component "${c}" has already been registered in target app.`),r.components[c]=u,l):r.components[c]},directive(c,u){return{}.NODE_ENV!=="production"&&Yl(c),u?({}.NODE_ENV!=="production"&&r.directives[c]&&ot(`Directive "${c}" has already been registered in target app.`),r.directives[c]=u,l):r.directives[c]},mount(c,u,h){if(a)({}).NODE_ENV!=="production"&&ot("App has already been mounted.\nIf you want to remount the same app, move your app creation logic into a factory function and create fresh app instances for each mount - e.g. `const createMyApp = () => createApp(App)`");else{({}).NODE_ENV!=="production"&&c.__vue_app__&&ot("There is already an app instance mounted on the host container.\n If you want to mount another app on the same host container, you need to unmount the previous app by calling `app.unmount()` first.");const d=ft(n,i);return d.appContext=r,h===!0?h="svg":h===!1&&(h=void 0),{}.NODE_ENV!=="production"&&(r.reload=()=>{s(Ds(d),c,h)}),u&&t?t(d,c):s(d,c,h),a=!0,l._container=c,c.__vue_app__=l,{}.NODE_ENV!=="production"&&(l._instance=d.component,md(l,wc)),Hi(d.component)||d.component.proxy}},unmount(){a?(s(null,l._container),{}.NODE_ENV!=="production"&&(l._instance=null,gd(l)),delete l._container.__vue_app__):{}.NODE_ENV!=="production"&&ot("Cannot unmount an app that is not mounted.")},provide(c,u){return{}.NODE_ENV!=="production"&&c in r.provides&&ot(`App already provides property with key "${String(c)}". It will be overwritten with the new value.`),r.provides[c]=u,l},runWithContext(c){const u=zn;zn=l;try{return c()}finally{zn=u}}};return l}}let zn=null;function rf(s,t){if(!de)({}).NODE_ENV!=="production"&&ot("provide() can only be used inside setup().");else{let e=de.provides;const n=de.parent&&de.parent.provides;n===e&&(e=de.provides=Object.create(n)),e[s]=t}}function Yi(s,t,e=!1){const n=de||ae;if(n||zn){const i=n?n.parent==null?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:zn._context.provides;if(i&&s in i)return i[s];if(arguments.length>1)return e&&Tt(t)?t.call(n&&n.proxy):t;({}).NODE_ENV!=="production"&&ot(`injection "${String(s)}" not found.`)}else({}).NODE_ENV!=="production"&&ot("inject() can only be used inside setup() or functional components.")}function of(s,t,e,n=!1){const i={},r={};bi(r,Gi,1),s.propsDefaults=Object.create(null),Zl(s,t,i,r);for(const o in s.propsOptions[0])o in i||(i[o]=void 0);({}).NODE_ENV!=="production"&&ec(t||{},i,s),e?s.props=n?i:qh(i):s.type.props?s.props=i:s.props=r,s.attrs=r}function af(s){for(;s;){if(s.type.__hmrId)return!0;s=s.parent}}function lf(s,t,e,n){const{props:i,attrs:r,vnode:{patchFlag:o}}=s,a=Dt(i),[l]=s.propsOptions;let c=!1;if(!({}.NODE_ENV!=="production"&&af(s))&&(n||o>0)&&!(o&16)){if(o&8){const u=s.vnode.dynamicProps;for(let h=0;h<u.length;h++){let d=u[h];if(Ai(s.emitsOptions,d))continue;const m=t[d];if(l)if(At(r,d))m!==r[d]&&(r[d]=m,c=!0);else{const f=pn(d);i[f]=vo(l,a,f,m,s,!1)}else m!==r[d]&&(r[d]=m,c=!0)}}}else{Zl(s,t,i,r)&&(c=!0);let u;for(const h in a)(!t||!At(t,h)&&((u=xs(h))===h||!At(t,u)))&&(l?e&&(e[h]!==void 0||e[u]!==void 0)&&(i[h]=vo(l,a,h,void 0,s,!0)):delete i[h]);if(r!==a)for(const h in r)(!t||!At(t,h))&&(delete r[h],c=!0)}c&&Ke(s,"set","$attrs"),{}.NODE_ENV!=="production"&&ec(t||{},i,s)}function Zl(s,t,e,n){const[i,r]=s.propsOptions;let o=!1,a;if(t)for(let l in t){if(Pn(l))continue;const c=t[l];let u;i&&At(i,u=pn(l))?!r||!r.includes(u)?e[u]=c:(a||(a={}))[u]=c:Ai(s.emitsOptions,l)||(!(l in n)||c!==n[l])&&(n[l]=c,o=!0)}if(r){const l=Dt(e),c=a||Xt;for(let u=0;u<r.length;u++){const h=r[u];e[h]=vo(i,l,h,c[h],s,!At(c,h))}}return o}function vo(s,t,e,n,i,r){const o=s[e];if(o!=null){const a=At(o,"default");if(a&&n===void 0){const l=o.default;if(o.type!==Function&&!o.skipFactory&&Tt(l)){const{propsDefaults:c}=i;if(e in c)n=c[e];else{const u=Wn(i);n=c[e]=l.call(null,t),u()}}else n=l}o[0]&&(r&&!a?n=!1:o[1]&&(n===""||n===xs(e))&&(n=!0))}return n}function Kl(s,t,e=!1){const n=t.propsCache,i=n.get(s);if(i)return i;const r=s.props,o={},a=[];let l=!1;if(!Tt(s)){const u=h=>{l=!0;const[d,m]=Kl(h,t,!0);ne(o,d),m&&a.push(...m)};!e&&t.mixins.length&&t.mixins.forEach(u),s.extends&&u(s.extends),s.mixins&&s.mixins.forEach(u)}if(!r&&!l)return Gt(s)&&n.set(s,dn),dn;if(xt(r))for(let u=0;u<r.length;u++){({}).NODE_ENV!=="production"&&!re(r[u])&&ot("props must be strings when using array syntax.",r[u]);const h=pn(r[u]);Ql(h)&&(o[h]=Xt)}else if(r){({}).NODE_ENV!=="production"&&!Gt(r)&&ot("invalid props options",r);for(const u in r){const h=pn(u);if(Ql(h)){const d=r[u],m=o[h]=xt(d)||Tt(d)?{type:d}:ne({},d);if(m){const f=tc(Boolean,m.type),E=tc(String,m.type);m[0]=f>-1,m[1]=E<0||f<E,(f>-1||At(m,"default"))&&a.push(h)}}}}const c=[o,a];return Gt(s)&&n.set(s,c),c}function Ql(s){return s[0]!=="$"&&!Pn(s)?!0:({}.NODE_ENV!=="production"&&ot(`Invalid prop name: "${s}" is a reserved property.`),!1)}function _o(s){return s===null?"null":typeof s=="function"?s.name||"":typeof s=="object"&&s.constructor&&s.constructor.name||""}function Jl(s,t){return _o(s)===_o(t)}function tc(s,t){return xt(t)?t.findIndex(e=>Jl(e,s)):Tt(t)&&Jl(t,s)?0:-1}function ec(s,t,e){const n=Dt(t),i=e.propsOptions[0];for(const r in i){let o=i[r];o!=null&&cf(r,n[r],o,{}.NODE_ENV!=="production"?mn(n):n,!At(s,r)&&!At(s,xs(r)))}}function cf(s,t,e,n,i){const{type:r,required:o,validator:a,skipCheck:l}=e;if(o&&i){ot('Missing required prop: "'+s+'"');return}if(!(t==null&&!o)){if(r!=null&&r!==!0&&!l){let c=!1;const u=xt(r)?r:[r],h=[];for(let d=0;d<u.length&&!c;d++){const{valid:m,expectedType:f}=hf(t,u[d]);h.push(f||""),c=m}if(!c){ot(df(s,t,h));return}}a&&!a(t,n)&&ot('Invalid prop: custom validator check failed for prop "'+s+'".')}}const uf=hn("String,Number,Boolean,Function,Symbol,BigInt");function hf(s,t){let e;const n=_o(t);if(uf(n)){const i=typeof s;e=i===n.toLowerCase(),!e&&i==="object"&&(e=s instanceof t)}else n==="Object"?e=Gt(s):n==="Array"?e=xt(s):n==="null"?e=s===null:e=s instanceof t;return{valid:e,expectedType:n}}function df(s,t,e){if(e.length===0)return`Prop type [] for prop "${s}" won't match anything. Did you mean to use type Array instead?`;let n=`Invalid prop: type check failed for prop "${s}". Expected ${e.map(_i).join(" | ")}`;const i=e[0],r=Vr(t),o=sc(t,i),a=sc(t,r);return e.length===1&&nc(i)&&!ff(i,r)&&(n+=` with value ${o}`),n+=`, got ${r} `,nc(r)&&(n+=`with value ${a}.`),n}function sc(s,t){return t==="String"?`"${s}"`:t==="Number"?`${Number(s)}`:`${s}`}function nc(s){return["string","number","boolean"].some(e=>s.toLowerCase()===e)}function ff(...s){return s.some(t=>t.toLowerCase()==="boolean")}const ic=s=>s[0]==="_"||s==="$stable",bo=s=>xt(s)?s.map(We):[We(s)],pf=(s,t,e)=>{if(t._n)return t;const n=Pt((...i)=>({}.NODE_ENV!=="production"&&de&&(!e||e.root===de.root)&&ot(`Slot "${s}" invoked outside of the render function: this will not track dependencies used in the slot. Invoke the slot function inside the render function instead.`),bo(t(...i))),e);return n._c=!1,n},rc=(s,t,e)=>{const n=s._ctx;for(const i in s){if(ic(i))continue;const r=s[i];if(Tt(r))t[i]=pf(i,r,n);else if(r!=null){({}).NODE_ENV!=="production"&&ot(`Non-function value encountered for slot "${i}". Prefer function slots for better performance.`);const o=bo(r);t[i]=()=>o}}},oc=(s,t)=>{({}).NODE_ENV!=="production"&&!uo(s.vnode)&&ot("Non-function value encountered for default slot. Prefer function slots for better performance.");const e=bo(t);s.slots.default=()=>e},mf=(s,t)=>{if(s.vnode.shapeFlag&32){const e=t._;e?(s.slots=Dt(t),bi(t,"_",e)):rc(t,s.slots={})}else s.slots={},t&&oc(s,t);bi(s.slots,Gi,1)},gf=(s,t,e)=>{const{vnode:n,slots:i}=s;let r=!0,o=Xt;if(n.shapeFlag&32){const a=t._;a?{}.NODE_ENV!=="production"&&qs?(ne(i,t),Ke(s,"set","$slots")):e&&a===1?r=!1:(ne(i,t),!e&&a===1&&delete i._):(r=!t.$stable,rc(t,i)),o=t}else t&&(oc(s,t),o={default:1});if(r)for(const a in i)!ic(a)&&o[a]==null&&delete i[a]};function xo(s,t,e,n,i=!1){if(xt(s)){s.forEach((d,m)=>xo(d,t&&(xt(t)?t[m]:t),e,n,i));return}if(Vn(n)&&!i)return;const r=n.shapeFlag&4?Hi(n.component)||n.component.proxy:n.el,o=i?null:r,{i:a,r:l}=s;if({}.NODE_ENV!=="production"&&!a){ot("Missing ref owner context. ref cannot be used on hoisted vnodes. A vnode with ref must be created inside the render function.");return}const c=t&&t.r,u=a.refs===Xt?a.refs={}:a.refs,h=a.setupState;if(c!=null&&c!==l&&(re(c)?(u[c]=null,At(h,c)&&(h[c]=null)):me(c)&&(c.value=null)),Tt(l))ls(l,a,12,[o,u]);else{const d=re(l),m=me(l);if(d||m){const f=()=>{if(s.f){const E=d?At(h,l)?h[l]:u[l]:l.value;i?xt(E)&&Fr(E,r):xt(E)?E.includes(r)||E.push(r):d?(u[l]=[r],At(h,l)&&(h[l]=u[l])):(l.value=[r],s.k&&(u[s.k]=l.value))}else d?(u[l]=o,At(h,l)&&(h[l]=o)):m?(l.value=o,s.k&&(u[s.k]=o)):{}.NODE_ENV!=="production"&&ot("Invalid template ref type:",l,`(${typeof l})`)};o?(f.id=-1,Ie(f,e)):f()}else({}).NODE_ENV!=="production"&&ot("Invalid template ref type:",l,`(${typeof l})`)}}let Bn,Is;function hs(s,t){s.appContext.config.performance&&zi()&&Is.mark(`vue-${t}-${s.uid}`),{}.NODE_ENV!=="production"&&bd(s,t,zi()?Is.now():Date.now())}function ds(s,t){if(s.appContext.config.performance&&zi()){const e=`vue-${t}-${s.uid}`,n=e+":end";Is.mark(n),Is.measure(`<${Wi(s,s.type)}> ${t}`,e,n),Is.clearMarks(e),Is.clearMarks(n)}({}).NODE_ENV!=="production"&&xd(s,t,zi()?Is.now():Date.now())}function zi(){return Bn!==void 0||(typeof window<"u"&&window.performance?(Bn=!0,Is=window.performance):Bn=!1),Bn}function yf(){const s=[];if({}.NODE_ENV!=="production"&&s.length){const t=s.length>1;console.warn(`Feature flag${t?"s":""} ${s.join(", ")} ${t?"are":"is"} not explicitly defined. You are running the esm-bundler build of Vue, which expects these compile-time feature flags to be globally injected via the bundler config in order to get better tree-shaking in the production bundle.
19
19
 
20
20
  For more details, see https://link.vuejs.org/feature-flags.`)}}const Ie=Id;function vf(s){return _f(s)}function _f(s,t){yf();const e=zr();e.__VUE__=!0,{}.NODE_ENV!=="production"&&Dl(e.__VUE_DEVTOOLS_GLOBAL_HOOK__,e);const{insert:n,remove:i,patchProp:r,createElement:o,createText:a,createComment:l,setText:c,setElementText:u,parentNode:h,nextSibling:d,setScopeId:m=oe,insertStaticContent:f}=s,E=(w,I,$,U=null,q=null,st=null,at=void 0,K=null,nt={}.NODE_ENV!=="production"&&qs?!1:!!I.dynamicChildren)=>{if(w===I)return;w&&!Hn(w,I)&&(U=ee(w),Z(w,q,st,!0),w=null),I.patchFlag===-2&&(nt=!1,I.dynamicChildren=null);const{type:J,ref:dt,shapeFlag:_t}=I;switch(J){case Gn:S(w,I,$,U);break;case De:_(w,I,$,U);break;case Xn:w==null?C(I,$,U,at):{}.NODE_ENV!=="production"&&y(w,I,$,at);break;case $t:F(w,I,$,U,q,st,at,K,nt);break;default:_t&1?b(w,I,$,U,q,st,at,K,nt):_t&6?X(w,I,$,U,q,st,at,K,nt):_t&64||_t&128?J.process(w,I,$,U,q,st,at,K,nt,$e):{}.NODE_ENV!=="production"&&ot("Invalid VNode type:",J,`(${typeof J})`)}dt!=null&&q&&xo(dt,w&&w.ref,st,I||w,!I)},S=(w,I,$,U)=>{if(w==null)n(I.el=a(I.children),$,U);else{const q=I.el=w.el;I.children!==w.children&&c(q,I.children)}},_=(w,I,$,U)=>{w==null?n(I.el=l(I.children||""),$,U):I.el=w.el},C=(w,I,$,U)=>{[w.el,w.anchor]=f(w.children,I,$,U,w.el,w.anchor)},y=(w,I,$,U)=>{if(I.children!==w.children){const q=d(w.anchor);x(w),[I.el,I.anchor]=f(I.children,$,q,U)}else I.el=w.el,I.anchor=w.anchor},p=({el:w,anchor:I},$,U)=>{let q;for(;w&&w!==I;)q=d(w),n(w,$,U),w=q;n(I,$,U)},x=({el:w,anchor:I})=>{let $;for(;w&&w!==I;)$=d(w),i(w),w=$;i(I)},b=(w,I,$,U,q,st,at,K,nt)=>{I.type==="svg"?at="svg":I.type==="math"&&(at="mathml"),w==null?z(I,$,U,q,st,at,K,nt):R(w,I,q,st,at,K,nt)},z=(w,I,$,U,q,st,at,K)=>{let nt,J;const{props:dt,shapeFlag:_t,transition:vt,dirs:St}=w;if(nt=w.el=o(w.type,st,dt&&dt.is,dt),_t&8?u(nt,w.children):_t&16&&O(w.children,nt,null,U,q,wo(w,st),at,K),St&&Js(w,null,U,"created"),ut(nt,w,w.scopeId,at,U),dt){for(const Vt in dt)Vt!=="value"&&!Pn(Vt)&&r(nt,Vt,null,dt[Vt],st,w.children,U,q,It);"value"in dt&&r(nt,"value",null,dt.value,st),(J=dt.onVnodeBeforeMount)&&ts(J,U,w)}({}).NODE_ENV!=="production"&&(Object.defineProperty(nt,"__vnode",{value:w,enumerable:!1}),Object.defineProperty(nt,"__vueParentComponent",{value:U,enumerable:!1})),St&&Js(w,null,U,"beforeMount");const Rt=bf(q,vt);Rt&&vt.beforeEnter(nt),n(nt,I,$),((J=dt&&dt.onVnodeMounted)||Rt||St)&&Ie(()=>{J&&ts(J,U,w),Rt&&vt.enter(nt),St&&Js(w,null,U,"mounted")},q)},ut=(w,I,$,U,q)=>{if($&&m(w,$),U)for(let st=0;st<U.length;st++)m(w,U[st]);if(q){let st=q.subTree;if({}.NODE_ENV!=="production"&&st.patchFlag>0&&st.patchFlag&2048&&(st=lo(st.children)||st),I===st){const at=q.vnode;ut(w,at,at.scopeId,at.slotScopeIds,q.parent)}}},O=(w,I,$,U,q,st,at,K,nt=0)=>{for(let J=nt;J<w.length;J++){const dt=w[J]=K?Rs(w[J]):We(w[J]);E(null,dt,I,$,U,q,st,at,K)}},R=(w,I,$,U,q,st,at)=>{const K=I.el=w.el;let{patchFlag:nt,dynamicChildren:J,dirs:dt}=I;nt|=w.patchFlag&16;const _t=w.props||Xt,vt=I.props||Xt;let St;if($&&sn($,!1),(St=vt.onVnodeBeforeUpdate)&&ts(St,$,I,w),dt&&Js(I,w,$,"beforeUpdate"),$&&sn($,!0),{}.NODE_ENV!=="production"&&qs&&(nt=0,at=!1,J=null),J?(A(w.dynamicChildren,J,K,$,U,wo(I,q),st),{}.NODE_ENV!=="production"&&Bi(w,I)):at||B(w,I,K,null,$,U,wo(I,q),st,!1),nt>0){if(nt&16)D(K,I,_t,vt,$,U,q);else if(nt&2&&_t.class!==vt.class&&r(K,"class",null,vt.class,q),nt&4&&r(K,"style",_t.style,vt.style,q),nt&8){const Rt=I.dynamicProps;for(let Vt=0;Vt<Rt.length;Vt++){const Ut=Rt[Vt],se=_t[Ut],ke=vt[Ut];(ke!==se||Ut==="value")&&r(K,Ut,se,ke,q,w.children,$,U,It)}}nt&1&&w.children!==I.children&&u(K,I.children)}else!at&&J==null&&D(K,I,_t,vt,$,U,q);((St=vt.onVnodeUpdated)||dt)&&Ie(()=>{St&&ts(St,$,I,w),dt&&Js(I,w,$,"updated")},U)},A=(w,I,$,U,q,st,at)=>{for(let K=0;K<I.length;K++){const nt=w[K],J=I[K],dt=nt.el&&(nt.type===$t||!Hn(nt,J)||nt.shapeFlag&70)?h(nt.el):$;E(nt,J,dt,null,U,q,st,at,!0)}},D=(w,I,$,U,q,st,at)=>{if($!==U){if($!==Xt)for(const K in $)!Pn(K)&&!(K in U)&&r(w,K,$[K],null,at,I.children,q,st,It);for(const K in U){if(Pn(K))continue;const nt=U[K],J=$[K];nt!==J&&K!=="value"&&r(w,K,J,nt,at,I.children,q,st,It)}"value"in U&&r(w,"value",$.value,U.value,at)}},F=(w,I,$,U,q,st,at,K,nt)=>{const J=I.el=w?w.el:a(""),dt=I.anchor=w?w.anchor:a("");let{patchFlag:_t,dynamicChildren:vt,slotScopeIds:St}=I;({}).NODE_ENV!=="production"&&(qs||_t&2048)&&(_t=0,nt=!1,vt=null),St&&(K=K?K.concat(St):St),w==null?(n(J,$,U),n(dt,$,U),O(I.children||[],$,dt,q,st,at,K,nt)):_t>0&&_t&64&&vt&&w.dynamicChildren?(A(w.dynamicChildren,vt,$,q,st,at,K),{}.NODE_ENV!=="production"?Bi(w,I):(I.key!=null||q&&I===q.subTree)&&Bi(w,I,!0)):B(w,I,$,dt,q,st,at,K,nt)},X=(w,I,$,U,q,st,at,K,nt)=>{I.slotScopeIds=K,w==null?I.shapeFlag&512?q.ctx.activate(I,$,U,at,nt):rt(I,$,U,q,st,at,nt):Q(w,I,nt)},rt=(w,I,$,U,q,st,at)=>{const K=w.component=Of(w,U,q);if({}.NODE_ENV!=="production"&&K.type.__hmrId&&hd(K),{}.NODE_ENV!=="production"&&(Ii(w),hs(K,"mount")),uo(w)&&(K.ctx.renderer=$e),{}.NODE_ENV!=="production"&&hs(K,"init"),Df(K),{}.NODE_ENV!=="production"&&ds(K,"init"),K.asyncDep){if(q&&q.registerDep(K,W),!w.el){const nt=K.subTree=ft(De);_(null,nt,I,$)}}else W(K,w,I,$,q,st,at);({}).NODE_ENV!=="production"&&(Di(),ds(K,"mount"))},Q=(w,I,$)=>{const U=I.component=w.component;if(Ed(w,I,$))if(U.asyncDep&&!U.asyncResolved){({}).NODE_ENV!=="production"&&Ii(I),it(U,I,$),{}.NODE_ENV!=="production"&&Di();return}else U.next=I,cd(U.update),U.effect.dirty=!0,U.update();else I.el=w.el,U.vnode=I},W=(w,I,$,U,q,st,at)=>{const K=()=>{if(w.isMounted){let{next:dt,bu:_t,u:vt,parent:St,vnode:Rt}=w;{const Ys=ac(w);if(Ys){dt&&(dt.el=Rt.el,it(w,dt,at)),Ys.asyncDep.then(()=>{w.isUnmounted||K()});return}}let Vt=dt,Ut;({}).NODE_ENV!=="production"&&Ii(dt||w.vnode),sn(w,!1),dt?(dt.el=Rt.el,it(w,dt,at)):dt=Rt,_t&&On(_t),(Ut=dt.props&&dt.props.onVnodeBeforeUpdate)&&ts(Ut,St,dt,Rt),sn(w,!0),{}.NODE_ENV!=="production"&&hs(w,"render");const se=ao(w);({}).NODE_ENV!=="production"&&ds(w,"render");const ke=w.subTree;w.subTree=se,{}.NODE_ENV!=="production"&&hs(w,"patch"),E(ke,se,h(ke.el),ee(ke),w,q,st),{}.NODE_ENV!=="production"&&ds(w,"patch"),dt.el=se.el,Vt===null&&kd(w,se.el),vt&&Ie(vt,q),(Ut=dt.props&&dt.props.onVnodeUpdated)&&Ie(()=>ts(Ut,St,dt,Rt),q),{}.NODE_ENV!=="production"&&Rl(w),{}.NODE_ENV!=="production"&&Di()}else{let dt;const{el:_t,props:vt}=I,{bm:St,m:Rt,parent:Vt}=w,Ut=Vn(I);if(sn(w,!1),St&&On(St),!Ut&&(dt=vt&&vt.onVnodeBeforeMount)&&ts(dt,Vt,I),sn(w,!0),_t&&Ne){const se=()=>{({}).NODE_ENV!=="production"&&hs(w,"render"),w.subTree=ao(w),{}.NODE_ENV!=="production"&&ds(w,"render"),{}.NODE_ENV!=="production"&&hs(w,"hydrate"),Ne(_t,w.subTree,w,q,null),{}.NODE_ENV!=="production"&&ds(w,"hydrate")};Ut?I.type.__asyncLoader().then(()=>!w.isUnmounted&&se()):se()}else{({}).NODE_ENV!=="production"&&hs(w,"render");const se=w.subTree=ao(w);({}).NODE_ENV!=="production"&&ds(w,"render"),{}.NODE_ENV!=="production"&&hs(w,"patch"),E(null,se,$,U,w,q,st),{}.NODE_ENV!=="production"&&ds(w,"patch"),I.el=se.el}if(Rt&&Ie(Rt,q),!Ut&&(dt=vt&&vt.onVnodeMounted)){const se=I;Ie(()=>ts(dt,Vt,se),q)}(I.shapeFlag&256||Vt&&Vn(Vt.vnode)&&Vt.vnode.shapeFlag&256)&&w.a&&Ie(w.a,q),w.isMounted=!0,{}.NODE_ENV!=="production"&&yd(w),I=$=U=null}},nt=w.effect=new Gr(K,oe,()=>Ri(J),w.scope),J=w.update=()=>{nt.dirty&&nt.run()};J.id=w.uid,sn(w,!0),{}.NODE_ENV!=="production"&&(nt.onTrack=w.rtc?dt=>On(w.rtc,dt):void 0,nt.onTrigger=w.rtg?dt=>On(w.rtg,dt):void 0,J.ownerInstance=w),J()},it=(w,I,$)=>{I.component=w;const U=w.vnode.props;w.vnode=I,w.next=null,lf(w,I.props,U,$),gf(w,I.children,$),Ts(),El(w),Es()},B=(w,I,$,U,q,st,at,K,nt=!1)=>{const J=w&&w.children,dt=w?w.shapeFlag:0,_t=I.children,{patchFlag:vt,shapeFlag:St}=I;if(vt>0){if(vt&128){yt(J,_t,$,U,q,st,at,K,nt);return}else if(vt&256){j(J,_t,$,U,q,st,at,K,nt);return}}St&8?(dt&16&&It(J,q,st),_t!==J&&u($,_t)):dt&16?St&16?yt(J,_t,$,U,q,st,at,K,nt):It(J,q,st,!0):(dt&8&&u($,""),St&16&&O(_t,$,U,q,st,at,K,nt))},j=(w,I,$,U,q,st,at,K,nt)=>{w=w||dn,I=I||dn;const J=w.length,dt=I.length,_t=Math.min(J,dt);let vt;for(vt=0;vt<_t;vt++){const St=I[vt]=nt?Rs(I[vt]):We(I[vt]);E(w[vt],St,$,null,q,st,at,K,nt)}J>dt?It(w,q,st,!0,!1,_t):O(I,$,U,q,st,at,K,nt,_t)},yt=(w,I,$,U,q,st,at,K,nt)=>{let J=0;const dt=I.length;let _t=w.length-1,vt=dt-1;for(;J<=_t&&J<=vt;){const St=w[J],Rt=I[J]=nt?Rs(I[J]):We(I[J]);if(Hn(St,Rt))E(St,Rt,$,null,q,st,at,K,nt);else break;J++}for(;J<=_t&&J<=vt;){const St=w[_t],Rt=I[vt]=nt?Rs(I[vt]):We(I[vt]);if(Hn(St,Rt))E(St,Rt,$,null,q,st,at,K,nt);else break;_t--,vt--}if(J>_t){if(J<=vt){const St=vt+1,Rt=St<dt?I[St].el:U;for(;J<=vt;)E(null,I[J]=nt?Rs(I[J]):We(I[J]),$,Rt,q,st,at,K,nt),J++}}else if(J>vt)for(;J<=_t;)Z(w[J],q,st,!0),J++;else{const St=J,Rt=J,Vt=new Map;for(J=Rt;J<=vt;J++){const _e=I[J]=nt?Rs(I[J]):We(I[J]);_e.key!=null&&({}.NODE_ENV!=="production"&&Vt.has(_e.key)&&ot("Duplicate keys found during update:",JSON.stringify(_e.key),"Make sure keys are unique."),Vt.set(_e.key,J))}let Ut,se=0;const ke=vt-Rt+1;let Ys=!1,Pr=0;const cn=new Array(ke);for(J=0;J<ke;J++)cn[J]=0;for(J=St;J<=_t;J++){const _e=w[J];if(se>=ke){Z(_e,q,st,!0);continue}let Pe;if(_e.key!=null)Pe=Vt.get(_e.key);else for(Ut=Rt;Ut<=vt;Ut++)if(cn[Ut-Rt]===0&&Hn(_e,I[Ut])){Pe=Ut;break}Pe===void 0?Z(_e,q,st,!0):(cn[Pe-Rt]=J+1,Pe>=Pr?Pr=Pe:Ys=!0,E(_e,I[Pe],$,null,q,st,at,K,nt),se++)}const Or=Ys?xf(cn):dn;for(Ut=Or.length-1,J=ke-1;J>=0;J--){const _e=Rt+J,Pe=I[_e],Ir=_e+1<dt?I[_e+1].el:U;cn[J]===0?E(null,Pe,$,Ir,q,st,at,K,nt):Ys&&(Ut<0||J!==Or[Ut]?gt(Pe,$,Ir,2):Ut--)}}},gt=(w,I,$,U,q=null)=>{const{el:st,type:at,transition:K,children:nt,shapeFlag:J}=w;if(J&6){gt(w.component.subTree,I,$,U);return}if(J&128){w.suspense.move(I,$,U);return}if(J&64){at.move(w,I,$,$e);return}if(at===$t){n(st,I,$);for(let _t=0;_t<nt.length;_t++)gt(nt[_t],I,$,U);n(w.anchor,I,$);return}if(at===Xn){p(w,I,$);return}if(U!==2&&J&1&&K)if(U===0)K.beforeEnter(st),n(st,I,$),Ie(()=>K.enter(st),q);else{const{leave:_t,delayLeave:vt,afterLeave:St}=K,Rt=()=>n(st,I,$),Vt=()=>{_t(st,()=>{Rt(),St&&St()})};vt?vt(st,Rt,Vt):Vt()}else n(st,I,$)},Z=(w,I,$,U=!1,q=!1)=>{const{type:st,props:at,ref:K,children:nt,dynamicChildren:J,shapeFlag:dt,patchFlag:_t,dirs:vt}=w;if(K!=null&&xo(K,null,$,w,!0),dt&256){I.ctx.deactivate(w);return}const St=dt&1&&vt,Rt=!Vn(w);let Vt;if(Rt&&(Vt=at&&at.onVnodeBeforeUnmount)&&ts(Vt,I,w),dt&6)te(w.component,$,U);else{if(dt&128){w.suspense.unmount($,U);return}St&&Js(w,null,I,"beforeUnmount"),dt&64?w.type.remove(w,I,$,q,$e,U):J&&(st!==$t||_t>0&&_t&64)?It(J,I,$,!1,!0):(st===$t&&_t&384||!q&&dt&16)&&It(nt,I,$),U&&V(w)}(Rt&&(Vt=at&&at.onVnodeUnmounted)||St)&&Ie(()=>{Vt&&ts(Vt,I,w),St&&Js(w,null,I,"unmounted")},$)},V=w=>{const{type:I,el:$,anchor:U,transition:q}=w;if(I===$t){({}).NODE_ENV!=="production"&&w.patchFlag>0&&w.patchFlag&2048&&q&&!q.persisted?w.children.forEach(at=>{at.type===De?i(at.el):V(at)}):Kt($,U);return}if(I===Xn){x(w);return}const st=()=>{i($),q&&!q.persisted&&q.afterLeave&&q.afterLeave()};if(w.shapeFlag&1&&q&&!q.persisted){const{leave:at,delayLeave:K}=q,nt=()=>at($,st);K?K(w.el,st,nt):nt()}else st()},Kt=(w,I)=>{let $;for(;w!==I;)$=d(w),i(w),w=$;i(I)},te=(w,I,$)=>{({}).NODE_ENV!=="production"&&w.type.__hmrId&&dd(w);const{bum:U,scope:q,update:st,subTree:at,um:K}=w;U&&On(U),q.stop(),st&&(st.active=!1,Z(at,w,I,$)),K&&Ie(K,I),Ie(()=>{w.isUnmounted=!0},I),I&&I.pendingBranch&&!I.isUnmounted&&w.asyncDep&&!w.asyncResolved&&w.suspenseId===I.pendingId&&(I.deps--,I.deps===0&&I.resolve()),{}.NODE_ENV!=="production"&&_d(w)},It=(w,I,$,U=!1,q=!1,st=0)=>{for(let at=st;at<w.length;at++)Z(w[at],I,$,U,q)},ee=w=>w.shapeFlag&6?ee(w.component.subTree):w.shapeFlag&128?w.suspense.next():d(w.anchor||w.el);let Yt=!1;const G=(w,I,$)=>{w==null?I._vnode&&Z(I._vnode,null,null,!0):E(I._vnode||null,w,I,null,null,null,$),Yt||(Yt=!0,El(),kl(),Yt=!1),I._vnode=w},$e={p:E,um:Z,m:gt,r:V,mt:rt,mc:O,pc:B,pbc:A,n:ee,o:s};let Ge,Ne;return t&&([Ge,Ne]=t($e)),{render:G,hydrate:Ge,createApp:nf(G,Ge)}}function wo({type:s,props:t},e){return e==="svg"&&s==="foreignObject"||e==="mathml"&&s==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:e}function sn({effect:s,update:t},e){s.allowRecurse=t.allowRecurse=e}function bf(s,t){return(!s||s&&!s.pendingBranch)&&t&&!t.persisted}function Bi(s,t,e=!1){const n=s.children,i=t.children;if(xt(n)&&xt(i))for(let r=0;r<n.length;r++){const o=n[r];let a=i[r];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=i[r]=Rs(i[r]),a.el=o.el),e||Bi(o,a)),a.type===Gn&&(a.el=o.el),{}.NODE_ENV!=="production"&&a.type===De&&!a.el&&(a.el=o.el)}}function xf(s){const t=s.slice(),e=[0];let n,i,r,o,a;const l=s.length;for(n=0;n<l;n++){const c=s[n];if(c!==0){if(i=e[e.length-1],s[i]<c){t[n]=i,e.push(n);continue}for(r=0,o=e.length-1;r<o;)a=r+o>>1,s[e[a]]<c?r=a+1:o=a;c<s[e[r]]&&(r>0&&(t[n]=e[r-1]),e[r]=n)}}for(r=e.length,o=e[r-1];r-- >0;)e[r]=o,o=t[o];return e}function ac(s){const t=s.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:ac(t)}const wf=s=>s.__isTeleport,$t=Symbol.for("v-fgt"),Gn=Symbol.for("v-txt"),De=Symbol.for("v-cmt"),Xn=Symbol.for("v-stc"),jn=[];let He=null;function L(s=!1){jn.push(He=s?null:[])}function Cf(){jn.pop(),He=jn[jn.length-1]||null}let Un=1;function lc(s){Un+=s}function cc(s){return s.dynamicChildren=Un>0?He||dn:null,Cf(),Un>0&&He&&He.push(s),s}function H(s,t,e,n,i,r){return cc(P(s,t,e,n,i,r,!0))}function zt(s,t,e,n,i){return cc(ft(s,t,e,n,i,!0))}function vn(s){return s?s.__v_isVNode===!0:!1}function Hn(s,t){return{}.NODE_ENV!=="production"&&t.shapeFlag&6&&yn.has(t.type)?(s.shapeFlag&=-257,t.shapeFlag&=-513,!1):s.type===t.type&&s.key===t.key}const Sf=(...s)=>hc(...s),Gi="__vInternal",uc=({key:s})=>s??null,Xi=({ref:s,ref_key:t,ref_for:e})=>(typeof s=="number"&&(s=""+s),s!=null?re(s)||me(s)||Tt(s)?{i:ae,r:s,k:t,f:!!e}:s:null);function P(s,t=null,e=null,n=0,i=null,r=s===$t?0:1,o=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:s,props:t,key:t&&uc(t),ref:t&&Xi(t),scopeId:Mi,slotScopeIds:null,children:e,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:n,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:ae};return a?(Co(l,e),r&128&&s.normalize(l)):e&&(l.shapeFlag|=re(e)?8:16),{}.NODE_ENV!=="production"&&l.key!==l.key&&ot("VNode created with invalid key (NaN). VNode type:",l.type),Un>0&&!o&&He&&(l.patchFlag>0||r&6)&&l.patchFlag!==32&&He.push(l),l}const ft={}.NODE_ENV!=="production"?Sf:hc;function hc(s,t=null,e=null,n=0,i=null,r=!1){if((!s||s===Pd)&&({}.NODE_ENV!=="production"&&!s&&ot(`Invalid vnode type when creating vnode: ${s}.`),s=De),vn(s)){const a=Ds(s,t,!0);return e&&Co(a,e),Un>0&&!r&&He&&(a.shapeFlag&6?He[He.indexOf(s)]=a:He.push(a)),a.patchFlag|=-2,a}if(xc(s)&&(s=s.__vccOpts),t){t=Tf(t);let{class:a,style:l}=t;a&&!re(a)&&(t.class=ie(a)),Gt(l)&&(Kr(l)&&!xt(l)&&(l=ne({},l)),t.style=Y(l))}const o=re(s)?1:Od(s)?128:wf(s)?64:Gt(s)?4:Tt(s)?2:0;return{}.NODE_ENV!=="production"&&o&4&&Kr(s)&&(s=Dt(s),ot("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`.",`
21
- Component that was made reactive: `,s)),P(s,t,e,n,i,o,r,!0)}function Tf(s){return s?Kr(s)||Gi in s?ne({},s):s:null}function Ds(s,t,e=!1){const{props:n,ref:i,patchFlag:r,children:o}=s,a=t?So(n||{},t):n;return{__v_isVNode:!0,__v_skip:!0,type:s.type,props:a,key:a&&uc(a),ref:t&&t.ref?e&&i?xt(i)?i.concat(Xi(t)):[i,Xi(t)]:Xi(t):i,scopeId:s.scopeId,slotScopeIds:s.slotScopeIds,children:{}.NODE_ENV!=="production"&&r===-1&&xt(o)?o.map(dc):o,target:s.target,targetAnchor:s.targetAnchor,staticCount:s.staticCount,shapeFlag:s.shapeFlag,patchFlag:t&&s.type!==$t?r===-1?16:r|16:r,dynamicProps:s.dynamicProps,dynamicChildren:s.dynamicChildren,appContext:s.appContext,dirs:s.dirs,transition:s.transition,component:s.component,suspense:s.suspense,ssContent:s.ssContent&&Ds(s.ssContent),ssFallback:s.ssFallback&&Ds(s.ssFallback),el:s.el,anchor:s.anchor,ctx:s.ctx,ce:s.ce}}function dc(s){const t=Ds(s);return xt(s.children)&&(t.children=s.children.map(dc)),t}function Jt(s=" ",t=0){return ft(Gn,null,s,t)}function Ef(s,t){const e=ft(Xn,null,s);return e.staticCount=t,e}function Bt(s="",t=!1){return t?(L(),zt(De,null,s)):ft(De,null,s)}function We(s){return s==null||typeof s=="boolean"?ft(De):xt(s)?ft($t,null,s.slice()):typeof s=="object"?Rs(s):ft(Gn,null,String(s))}function Rs(s){return s.el===null&&s.patchFlag!==-1||s.memo?s:Ds(s)}function Co(s,t){let e=0;const{shapeFlag:n}=s;if(t==null)t=null;else if(xt(t))e=16;else if(typeof t=="object")if(n&65){const i=t.default;i&&(i._c&&(i._d=!1),Co(s,i()),i._c&&(i._d=!0));return}else{e=32;const i=t._;!i&&!(Gi in t)?t._ctx=ae:i===3&&ae&&(ae.slots._===1?t._=1:(t._=2,s.patchFlag|=1024))}else Tt(t)?(t={default:t,_ctx:ae},e=32):(t=String(t),n&64?(e=16,t=[Jt(t)]):e=8);s.children=t,s.shapeFlag|=e}function So(...s){const t={};for(let e=0;e<s.length;e++){const n=s[e];for(const i in n)if(i==="class")t.class!==n.class&&(t.class=ie([t.class,n.class]));else if(i==="style")t.style=Y([t.style,n.style]);else if(kn(i)){const r=t[i],o=n[i];o&&r!==o&&!(xt(r)&&r.includes(o))&&(t[i]=r?[].concat(r,o):o)}else i!==""&&(t[i]=n[i])}return t}function ts(s,t,e,n=null){Ue(s,t,7,[e,n])}const kf=ql();let Pf=0;function Of(s,t,e){const n=s.type,i=(t?t.appContext:s.appContext)||kf,r={uid:Pf++,vnode:s,type:n,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,scope:new kh(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Kl(n,i),emitsOptions:Ml(n,i),emit:null,emitted:null,propsDefaults:Xt,inheritAttrs:n.inheritAttrs,ctx:Xt,data:Xt,props:Xt,attrs:Xt,slots:Xt,refs:Xt,setupState:Xt,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:e,suspenseId:e?e.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return{}.NODE_ENV!=="production"?r.ctx=jd(r):r.ctx={_:r},r.root=t?t.root:r,r.emit=Cd.bind(null,r),s.ce&&s.ce(r),r}let de=null;const fc=()=>de||ae;let ji,To;{const s=zr(),t=(e,n)=>{let i;return(i=s[e])||(i=s[e]=[]),i.push(n),r=>{i.length>1?i.forEach(o=>o(r)):i[0](r)}};ji=t("__VUE_INSTANCE_SETTERS__",e=>de=e),To=t("__VUE_SSR_SETTERS__",e=>Ui=e)}const Wn=s=>{const t=de;return ji(s),s.scope.on(),()=>{s.scope.off(),ji(t)}},pc=()=>{de&&de.scope.off(),ji(null)},If=hn("slot,component");function Eo(s,{isNativeTag:t}){(If(s)||t(s))&&ot("Do not use built-in or reserved HTML elements as component id: "+s)}function mc(s){return s.vnode.shapeFlag&4}let Ui=!1;function Df(s,t=!1){t&&To(t);const{props:e,children:n}=s.vnode,i=mc(s);of(s,e,i,t),mf(s,n);const r=i?Rf(s,t):void 0;return t&&To(!1),r}function Rf(s,t){var e;const n=s.type;if({}.NODE_ENV!=="production"){if(n.name&&Eo(n.name,s.appContext.config),n.components){const r=Object.keys(n.components);for(let o=0;o<r.length;o++)Eo(r[o],s.appContext.config)}if(n.directives){const r=Object.keys(n.directives);for(let o=0;o<r.length;o++)Yl(r[o])}n.compilerOptions&&Af()&&ot('"compilerOptions" is only supported when using a build of Vue that includes the runtime compiler. Since you are using a runtime-only build, the options should be passed via your build tool config instead.')}s.accessCache=Object.create(null),s.proxy=vl(new Proxy(s.ctx,Gl)),{}.NODE_ENV!=="production"&&Ud(s);const{setup:i}=n;if(i){const r=s.setupContext=i.length>1?_c(s):null,o=Wn(s);Ts();const a=ls(i,s,0,[{}.NODE_ENV!=="production"?mn(s.props):s.props,r]);if(Es(),o(),$r(a)){if(a.then(pc,pc),t)return a.then(l=>{gc(s,l,t)}).catch(l=>{Dn(l,s,0)});if(s.asyncDep=a,{}.NODE_ENV!=="production"&&!s.suspense){const l=(e=n.name)!=null?e:"Anonymous";ot(`Component <${l}>: setup function returned a promise, but no <Suspense> boundary was found in the parent component tree. A component with async setup() must be nested in a <Suspense> in order to be rendered.`)}}else gc(s,a,t)}else yc(s,t)}function gc(s,t,e){Tt(t)?s.type.__ssrInlineRender?s.ssrRender=t:s.render=t:Gt(t)?({}.NODE_ENV!=="production"&&vn(t)&&ot("setup() should not return VNodes directly - return a render function instead."),{}.NODE_ENV!=="production"&&(s.devtoolsRawSetupState=t),s.setupState=xl(t),{}.NODE_ENV!=="production"&&Hd(s)):{}.NODE_ENV!=="production"&&t!==void 0&&ot(`setup() should return an object. Received: ${t===null?"null":typeof t}`),yc(s,e)}let ko;const Af=()=>!ko;function yc(s,t,e){const n=s.type;if(!s.render){if(!t&&ko&&!n.render){const i=n.template||go(s).template;if(i){({}).NODE_ENV!=="production"&&hs(s,"compile");const{isCustomElement:r,compilerOptions:o}=s.appContext.config,{delimiters:a,compilerOptions:l}=n,c=ne(ne({isCustomElement:r,delimiters:a},o),l);n.render=ko(i,c),{}.NODE_ENV!=="production"&&ds(s,"compile")}}s.render=n.render||oe}{const i=Wn(s);Ts();try{Kd(s)}finally{Es(),i()}}({}).NODE_ENV!=="production"&&!n.render&&s.render===oe&&!t&&(n.template?ot('Component provided template option but runtime compilation is not supported in this build of Vue. Configure your bundler to alias "vue" to "vue/dist/vue.esm-bundler.js".'):ot("Component is missing template or render function."))}function vc(s){return s.attrsProxy||(s.attrsProxy=new Proxy(s.attrs,{}.NODE_ENV!=="production"?{get(t,e){return Li(),pe(s,"get","$attrs"),t[e]},set(){return ot("setupContext.attrs is readonly."),!1},deleteProperty(){return ot("setupContext.attrs is readonly."),!1}}:{get(t,e){return pe(s,"get","$attrs"),t[e]}}))}function Mf(s){return s.slotsProxy||(s.slotsProxy=new Proxy(s.slots,{get(t,e){return pe(s,"get","$slots"),t[e]}}))}function _c(s){const t=e=>{if({}.NODE_ENV!=="production"&&(s.exposed&&ot("expose() should be called only once per setup()."),e!=null)){let n=typeof e;n==="object"&&(xt(e)?n="array":me(e)&&(n="ref")),n!=="object"&&ot(`expose() should be passed a plain object, received ${n}.`)}s.exposed=e||{}};return{}.NODE_ENV!=="production"?Object.freeze({get attrs(){return vc(s)},get slots(){return Mf(s)},get emit(){return(e,...n)=>s.emit(e,...n)},expose:t}):{get attrs(){return vc(s)},slots:s.slots,emit:s.emit,expose:t}}function Hi(s){if(s.exposed)return s.exposeProxy||(s.exposeProxy=new Proxy(xl(vl(s.exposed)),{get(t,e){if(e in t)return t[e];if(e in en)return en[e](s)},has(t,e){return e in t||e in en}}))}const Nf=/(?:^|[-_])(\w)/g,Lf=s=>s.replace(Nf,t=>t.toUpperCase()).replace(/[-_]/g,"");function bc(s,t=!0){return Tt(s)?s.displayName||s.name:s.name||t&&s.__name}function Wi(s,t,e=!1){let n=bc(t);if(!n&&t.__file){const i=t.__file.match(/([^/\\]+)\.\w+$/);i&&(n=i[1])}if(!n&&s&&s.parent){const i=r=>{for(const o in r)if(r[o]===t)return o};n=i(s.components||s.parent.type.components)||i(s.appContext.components)}return n?Lf(n):e?"App":"Anonymous"}function xc(s){return Tt(s)&&"__vccOpts"in s}const Ff=(s,t)=>{const e=Kh(s,t,Ui);if({}.NODE_ENV!=="production"){const n=fc();n&&n.appContext.config.warnRecursiveComputed&&(e._warnRecursive=!0)}return e};function fs(s,t,e){const n=arguments.length;return n===2?Gt(t)&&!xt(t)?vn(t)?ft(s,null,[t]):ft(s,t):ft(s,null,t):(n>3?e=Array.prototype.slice.call(arguments,2):n===3&&vn(e)&&(e=[e]),ft(s,t,e))}function $f(){if({}.NODE_ENV==="production"||typeof window>"u")return;const s={style:"color:#3ba776"},t={style:"color:#1677ff"},e={style:"color:#f5222d"},n={style:"color:#eb2f96"},i={header(h){return Gt(h)?h.__isVue?["div",s,"VueInstance"]:me(h)?["div",{},["span",s,u(h)],"<",a(h.value),">"]:Us(h)?["div",{},["span",s,Hs(h)?"ShallowReactive":"Reactive"],"<",a(h),`>${Ps(h)?" (readonly)":""}`]:Ps(h)?["div",{},["span",s,Hs(h)?"ShallowReadonly":"Readonly"],"<",a(h),">"]:null:null},hasBody(h){return h&&h.__isVue},body(h){if(h&&h.__isVue)return["div",{},...r(h.$)]}};function r(h){const d=[];h.type.props&&h.props&&d.push(o("props",Dt(h.props))),h.setupState!==Xt&&d.push(o("setup",h.setupState)),h.data!==Xt&&d.push(o("data",Dt(h.data)));const m=l(h,"computed");m&&d.push(o("computed",m));const f=l(h,"inject");return f&&d.push(o("injected",f)),d.push(["div",{},["span",{style:n.style+";opacity:0.66"},"$ (internal): "],["object",{object:h}]]),d}function o(h,d){return d=ne({},d),Object.keys(d).length?["div",{style:"line-height:1.25em;margin-bottom:0.6em"},["div",{style:"color:#476582"},h],["div",{style:"padding-left:1.25em"},...Object.keys(d).map(m=>["div",{},["span",n,m+": "],a(d[m],!1)])]]:["span",{}]}function a(h,d=!0){return typeof h=="number"?["span",t,h]:typeof h=="string"?["span",e,JSON.stringify(h)]:typeof h=="boolean"?["span",n,h]:Gt(h)?["object",{object:d?Dt(h):h}]:["span",e,String(h)]}function l(h,d){const m=h.type;if(Tt(m))return;const f={};for(const E in h.ctx)c(m,E,d)&&(f[E]=h.ctx[E]);return f}function c(h,d,m){const f=h[m];if(xt(f)&&f.includes(d)||Gt(f)&&d in f||h.extends&&c(h.extends,d,m)||h.mixins&&h.mixins.some(E=>c(E,d,m)))return!0}function u(h){return Hs(h)?"ShallowRef":h.effect?"ComputedRef":"Ref"}window.devtoolsFormatters?window.devtoolsFormatters.push(i):window.devtoolsFormatters=[i]}const wc="3.4.21",Cc={}.NODE_ENV!=="production"?ot:oe;/**
21
+ Component that was made reactive: `,s)),P(s,t,e,n,i,o,r,!0)}function Tf(s){return s?Kr(s)||Gi in s?ne({},s):s:null}function Ds(s,t,e=!1){const{props:n,ref:i,patchFlag:r,children:o}=s,a=t?So(n||{},t):n;return{__v_isVNode:!0,__v_skip:!0,type:s.type,props:a,key:a&&uc(a),ref:t&&t.ref?e&&i?xt(i)?i.concat(Xi(t)):[i,Xi(t)]:Xi(t):i,scopeId:s.scopeId,slotScopeIds:s.slotScopeIds,children:{}.NODE_ENV!=="production"&&r===-1&&xt(o)?o.map(dc):o,target:s.target,targetAnchor:s.targetAnchor,staticCount:s.staticCount,shapeFlag:s.shapeFlag,patchFlag:t&&s.type!==$t?r===-1?16:r|16:r,dynamicProps:s.dynamicProps,dynamicChildren:s.dynamicChildren,appContext:s.appContext,dirs:s.dirs,transition:s.transition,component:s.component,suspense:s.suspense,ssContent:s.ssContent&&Ds(s.ssContent),ssFallback:s.ssFallback&&Ds(s.ssFallback),el:s.el,anchor:s.anchor,ctx:s.ctx,ce:s.ce}}function dc(s){const t=Ds(s);return xt(s.children)&&(t.children=s.children.map(dc)),t}function Qt(s=" ",t=0){return ft(Gn,null,s,t)}function Ef(s,t){const e=ft(Xn,null,s);return e.staticCount=t,e}function Bt(s="",t=!1){return t?(L(),zt(De,null,s)):ft(De,null,s)}function We(s){return s==null||typeof s=="boolean"?ft(De):xt(s)?ft($t,null,s.slice()):typeof s=="object"?Rs(s):ft(Gn,null,String(s))}function Rs(s){return s.el===null&&s.patchFlag!==-1||s.memo?s:Ds(s)}function Co(s,t){let e=0;const{shapeFlag:n}=s;if(t==null)t=null;else if(xt(t))e=16;else if(typeof t=="object")if(n&65){const i=t.default;i&&(i._c&&(i._d=!1),Co(s,i()),i._c&&(i._d=!0));return}else{e=32;const i=t._;!i&&!(Gi in t)?t._ctx=ae:i===3&&ae&&(ae.slots._===1?t._=1:(t._=2,s.patchFlag|=1024))}else Tt(t)?(t={default:t,_ctx:ae},e=32):(t=String(t),n&64?(e=16,t=[Qt(t)]):e=8);s.children=t,s.shapeFlag|=e}function So(...s){const t={};for(let e=0;e<s.length;e++){const n=s[e];for(const i in n)if(i==="class")t.class!==n.class&&(t.class=ie([t.class,n.class]));else if(i==="style")t.style=Y([t.style,n.style]);else if(kn(i)){const r=t[i],o=n[i];o&&r!==o&&!(xt(r)&&r.includes(o))&&(t[i]=r?[].concat(r,o):o)}else i!==""&&(t[i]=n[i])}return t}function ts(s,t,e,n=null){Ue(s,t,7,[e,n])}const kf=ql();let Pf=0;function Of(s,t,e){const n=s.type,i=(t?t.appContext:s.appContext)||kf,r={uid:Pf++,vnode:s,type:n,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,scope:new kh(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Kl(n,i),emitsOptions:Ml(n,i),emit:null,emitted:null,propsDefaults:Xt,inheritAttrs:n.inheritAttrs,ctx:Xt,data:Xt,props:Xt,attrs:Xt,slots:Xt,refs:Xt,setupState:Xt,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:e,suspenseId:e?e.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return{}.NODE_ENV!=="production"?r.ctx=jd(r):r.ctx={_:r},r.root=t?t.root:r,r.emit=Cd.bind(null,r),s.ce&&s.ce(r),r}let de=null;const fc=()=>de||ae;let ji,To;{const s=zr(),t=(e,n)=>{let i;return(i=s[e])||(i=s[e]=[]),i.push(n),r=>{i.length>1?i.forEach(o=>o(r)):i[0](r)}};ji=t("__VUE_INSTANCE_SETTERS__",e=>de=e),To=t("__VUE_SSR_SETTERS__",e=>Ui=e)}const Wn=s=>{const t=de;return ji(s),s.scope.on(),()=>{s.scope.off(),ji(t)}},pc=()=>{de&&de.scope.off(),ji(null)},If=hn("slot,component");function Eo(s,{isNativeTag:t}){(If(s)||t(s))&&ot("Do not use built-in or reserved HTML elements as component id: "+s)}function mc(s){return s.vnode.shapeFlag&4}let Ui=!1;function Df(s,t=!1){t&&To(t);const{props:e,children:n}=s.vnode,i=mc(s);of(s,e,i,t),mf(s,n);const r=i?Rf(s,t):void 0;return t&&To(!1),r}function Rf(s,t){var e;const n=s.type;if({}.NODE_ENV!=="production"){if(n.name&&Eo(n.name,s.appContext.config),n.components){const r=Object.keys(n.components);for(let o=0;o<r.length;o++)Eo(r[o],s.appContext.config)}if(n.directives){const r=Object.keys(n.directives);for(let o=0;o<r.length;o++)Yl(r[o])}n.compilerOptions&&Af()&&ot('"compilerOptions" is only supported when using a build of Vue that includes the runtime compiler. Since you are using a runtime-only build, the options should be passed via your build tool config instead.')}s.accessCache=Object.create(null),s.proxy=vl(new Proxy(s.ctx,Gl)),{}.NODE_ENV!=="production"&&Ud(s);const{setup:i}=n;if(i){const r=s.setupContext=i.length>1?_c(s):null,o=Wn(s);Ts();const a=ls(i,s,0,[{}.NODE_ENV!=="production"?mn(s.props):s.props,r]);if(Es(),o(),$r(a)){if(a.then(pc,pc),t)return a.then(l=>{gc(s,l,t)}).catch(l=>{Dn(l,s,0)});if(s.asyncDep=a,{}.NODE_ENV!=="production"&&!s.suspense){const l=(e=n.name)!=null?e:"Anonymous";ot(`Component <${l}>: setup function returned a promise, but no <Suspense> boundary was found in the parent component tree. A component with async setup() must be nested in a <Suspense> in order to be rendered.`)}}else gc(s,a,t)}else yc(s,t)}function gc(s,t,e){Tt(t)?s.type.__ssrInlineRender?s.ssrRender=t:s.render=t:Gt(t)?({}.NODE_ENV!=="production"&&vn(t)&&ot("setup() should not return VNodes directly - return a render function instead."),{}.NODE_ENV!=="production"&&(s.devtoolsRawSetupState=t),s.setupState=xl(t),{}.NODE_ENV!=="production"&&Hd(s)):{}.NODE_ENV!=="production"&&t!==void 0&&ot(`setup() should return an object. Received: ${t===null?"null":typeof t}`),yc(s,e)}let ko;const Af=()=>!ko;function yc(s,t,e){const n=s.type;if(!s.render){if(!t&&ko&&!n.render){const i=n.template||go(s).template;if(i){({}).NODE_ENV!=="production"&&hs(s,"compile");const{isCustomElement:r,compilerOptions:o}=s.appContext.config,{delimiters:a,compilerOptions:l}=n,c=ne(ne({isCustomElement:r,delimiters:a},o),l);n.render=ko(i,c),{}.NODE_ENV!=="production"&&ds(s,"compile")}}s.render=n.render||oe}{const i=Wn(s);Ts();try{Kd(s)}finally{Es(),i()}}({}).NODE_ENV!=="production"&&!n.render&&s.render===oe&&!t&&(n.template?ot('Component provided template option but runtime compilation is not supported in this build of Vue. Configure your bundler to alias "vue" to "vue/dist/vue.esm-bundler.js".'):ot("Component is missing template or render function."))}function vc(s){return s.attrsProxy||(s.attrsProxy=new Proxy(s.attrs,{}.NODE_ENV!=="production"?{get(t,e){return Li(),pe(s,"get","$attrs"),t[e]},set(){return ot("setupContext.attrs is readonly."),!1},deleteProperty(){return ot("setupContext.attrs is readonly."),!1}}:{get(t,e){return pe(s,"get","$attrs"),t[e]}}))}function Mf(s){return s.slotsProxy||(s.slotsProxy=new Proxy(s.slots,{get(t,e){return pe(s,"get","$slots"),t[e]}}))}function _c(s){const t=e=>{if({}.NODE_ENV!=="production"&&(s.exposed&&ot("expose() should be called only once per setup()."),e!=null)){let n=typeof e;n==="object"&&(xt(e)?n="array":me(e)&&(n="ref")),n!=="object"&&ot(`expose() should be passed a plain object, received ${n}.`)}s.exposed=e||{}};return{}.NODE_ENV!=="production"?Object.freeze({get attrs(){return vc(s)},get slots(){return Mf(s)},get emit(){return(e,...n)=>s.emit(e,...n)},expose:t}):{get attrs(){return vc(s)},slots:s.slots,emit:s.emit,expose:t}}function Hi(s){if(s.exposed)return s.exposeProxy||(s.exposeProxy=new Proxy(xl(vl(s.exposed)),{get(t,e){if(e in t)return t[e];if(e in en)return en[e](s)},has(t,e){return e in t||e in en}}))}const Nf=/(?:^|[-_])(\w)/g,Lf=s=>s.replace(Nf,t=>t.toUpperCase()).replace(/[-_]/g,"");function bc(s,t=!0){return Tt(s)?s.displayName||s.name:s.name||t&&s.__name}function Wi(s,t,e=!1){let n=bc(t);if(!n&&t.__file){const i=t.__file.match(/([^/\\]+)\.\w+$/);i&&(n=i[1])}if(!n&&s&&s.parent){const i=r=>{for(const o in r)if(r[o]===t)return o};n=i(s.components||s.parent.type.components)||i(s.appContext.components)}return n?Lf(n):e?"App":"Anonymous"}function xc(s){return Tt(s)&&"__vccOpts"in s}const Ff=(s,t)=>{const e=Kh(s,t,Ui);if({}.NODE_ENV!=="production"){const n=fc();n&&n.appContext.config.warnRecursiveComputed&&(e._warnRecursive=!0)}return e};function fs(s,t,e){const n=arguments.length;return n===2?Gt(t)&&!xt(t)?vn(t)?ft(s,null,[t]):ft(s,t):ft(s,null,t):(n>3?e=Array.prototype.slice.call(arguments,2):n===3&&vn(e)&&(e=[e]),ft(s,t,e))}function $f(){if({}.NODE_ENV==="production"||typeof window>"u")return;const s={style:"color:#3ba776"},t={style:"color:#1677ff"},e={style:"color:#f5222d"},n={style:"color:#eb2f96"},i={header(h){return Gt(h)?h.__isVue?["div",s,"VueInstance"]:me(h)?["div",{},["span",s,u(h)],"<",a(h.value),">"]:Us(h)?["div",{},["span",s,Hs(h)?"ShallowReactive":"Reactive"],"<",a(h),`>${Ps(h)?" (readonly)":""}`]:Ps(h)?["div",{},["span",s,Hs(h)?"ShallowReadonly":"Readonly"],"<",a(h),">"]:null:null},hasBody(h){return h&&h.__isVue},body(h){if(h&&h.__isVue)return["div",{},...r(h.$)]}};function r(h){const d=[];h.type.props&&h.props&&d.push(o("props",Dt(h.props))),h.setupState!==Xt&&d.push(o("setup",h.setupState)),h.data!==Xt&&d.push(o("data",Dt(h.data)));const m=l(h,"computed");m&&d.push(o("computed",m));const f=l(h,"inject");return f&&d.push(o("injected",f)),d.push(["div",{},["span",{style:n.style+";opacity:0.66"},"$ (internal): "],["object",{object:h}]]),d}function o(h,d){return d=ne({},d),Object.keys(d).length?["div",{style:"line-height:1.25em;margin-bottom:0.6em"},["div",{style:"color:#476582"},h],["div",{style:"padding-left:1.25em"},...Object.keys(d).map(m=>["div",{},["span",n,m+": "],a(d[m],!1)])]]:["span",{}]}function a(h,d=!0){return typeof h=="number"?["span",t,h]:typeof h=="string"?["span",e,JSON.stringify(h)]:typeof h=="boolean"?["span",n,h]:Gt(h)?["object",{object:d?Dt(h):h}]:["span",e,String(h)]}function l(h,d){const m=h.type;if(Tt(m))return;const f={};for(const E in h.ctx)c(m,E,d)&&(f[E]=h.ctx[E]);return f}function c(h,d,m){const f=h[m];if(xt(f)&&f.includes(d)||Gt(f)&&d in f||h.extends&&c(h.extends,d,m)||h.mixins&&h.mixins.some(E=>c(E,d,m)))return!0}function u(h){return Hs(h)?"ShallowRef":h.effect?"ComputedRef":"Ref"}window.devtoolsFormatters?window.devtoolsFormatters.push(i):window.devtoolsFormatters=[i]}const wc="3.4.21",Cc={}.NODE_ENV!=="production"?ot:oe;/**
22
22
  * @vue/runtime-dom v3.4.21
23
23
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
24
24
  * @license MIT
@@ -51,17 +51,17 @@ Component that was made reactive: `,s)),P(s,t,e,n,i,o,r,!0)}function Tf(s){retur
51
51
  `+k+` AT
52
52
  `;return function(){var tt=new Error("get-stack-trace"),pt=tt&&tt.stack?tt.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",Nt=t.console&&(t.console.warn||t.console.log);return Nt&&Nt.call(t.console,N,pt),g.apply(this,arguments)}}var E;typeof Object.assign!="function"?E=function(v){if(v===i||v===null)throw new TypeError("Cannot convert undefined or null to object");for(var k=Object(v),N=1;N<arguments.length;N++){var tt=arguments[N];if(tt!==i&&tt!==null)for(var pt in tt)tt.hasOwnProperty(pt)&&(k[pt]=tt[pt])}return k}:E=Object.assign;var S=f(function(v,k,N){for(var tt=Object.keys(k),pt=0;pt<tt.length;)(!N||N&&v[tt[pt]]===i)&&(v[tt[pt]]=k[tt[pt]]),pt++;return v},"extend","Use `assign`."),_=f(function(v,k){return S(v,k,!0)},"merge","Use `assign`.");function C(g,v,k){var N=v.prototype,tt;tt=g.prototype=Object.create(N),tt.constructor=g,tt._super=N,k&&E(tt,k)}function y(g,v){return function(){return g.apply(v,arguments)}}function p(g,v){return typeof g==a?g.apply(v&&v[0]||i,v):g}function x(g,v){return g===i?v:g}function b(g,v,k){m(R(v),function(N){g.addEventListener(N,k,!1)})}function z(g,v,k){m(R(v),function(N){g.removeEventListener(N,k,!1)})}function ut(g,v){for(;g;){if(g==v)return!0;g=g.parentNode}return!1}function O(g,v){return g.indexOf(v)>-1}function R(g){return g.trim().split(/\s+/g)}function A(g,v,k){if(g.indexOf&&!k)return g.indexOf(v);for(var N=0;N<g.length;){if(k&&g[N][k]==v||!k&&g[N]===v)return N;N++}return-1}function D(g){return Array.prototype.slice.call(g,0)}function F(g,v,k){for(var N=[],tt=[],pt=0;pt<g.length;){var Nt=v?g[pt][v]:g[pt];A(tt,Nt)<0&&N.push(g[pt]),tt[pt]=Nt,pt++}return k&&(v?N=N.sort(function(be,Oe){return be[v]>Oe[v]}):N=N.sort()),N}function X(g,v){for(var k,N,tt=v[0].toUpperCase()+v.slice(1),pt=0;pt<r.length;){if(k=r[pt],N=k?k+tt:v,N in g)return N;pt++}return i}var rt=1;function Q(){return rt++}function W(g){var v=g.ownerDocument||g;return v.defaultView||v.parentWindow||t}var it=/mobile|tablet|ip(ad|hone|od)|android/i,B="ontouchstart"in t,j=X(t,"PointerEvent")!==i,yt=B&&it.test(navigator.userAgent),gt="touch",Z="pen",V="mouse",Kt="kinect",te=25,It=1,ee=2,Yt=4,G=8,$e=1,Ge=2,Ne=4,w=8,I=16,$=Ge|Ne,U=w|I,q=$|U,st=["x","y"],at=["clientX","clientY"];function K(g,v){var k=this;this.manager=g,this.callback=v,this.element=g.element,this.target=g.options.inputTarget,this.domHandler=function(N){p(g.options.enable,[g])&&k.handler(N)},this.init()}K.prototype={handler:function(){},init:function(){this.evEl&&b(this.element,this.evEl,this.domHandler),this.evTarget&&b(this.target,this.evTarget,this.domHandler),this.evWin&&b(W(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&z(this.element,this.evEl,this.domHandler),this.evTarget&&z(this.target,this.evTarget,this.domHandler),this.evWin&&z(W(this.element),this.evWin,this.domHandler)}};function nt(g){var v,k=g.options.inputClass;return k?v=k:j?v=Na:yt?v=Dr:B?v=La:v=Pe,new v(g,J)}function J(g,v,k){var N=k.pointers.length,tt=k.changedPointers.length,pt=v&It&&N-tt===0,Nt=v&(Yt|G)&&N-tt===0;k.isFirst=!!pt,k.isFinal=!!Nt,pt&&(g.session={}),k.eventType=v,dt(g,k),g.emit("hammer.input",k),g.recognize(k),g.session.prevInput=k}function dt(g,v){var k=g.session,N=v.pointers,tt=N.length;k.firstInput||(k.firstInput=St(v)),tt>1&&!k.firstMultiple?k.firstMultiple=St(v):tt===1&&(k.firstMultiple=!1);var pt=k.firstInput,Nt=k.firstMultiple,fe=Nt?Nt.center:pt.center,be=v.center=Rt(N);v.timeStamp=u(),v.deltaTime=v.timeStamp-pt.timeStamp,v.angle=ke(fe,be),v.distance=se(fe,be),_t(k,v),v.offsetDirection=Ut(v.deltaX,v.deltaY);var Oe=Vt(v.deltaTime,v.deltaX,v.deltaY);v.overallVelocityX=Oe.x,v.overallVelocityY=Oe.y,v.overallVelocity=c(Oe.x)>c(Oe.y)?Oe.x:Oe.y,v.scale=Nt?Pr(Nt.pointers,N):1,v.rotation=Nt?Ys(Nt.pointers,N):0,v.maxPointers=k.prevInput?v.pointers.length>k.prevInput.maxPointers?v.pointers.length:k.prevInput.maxPointers:v.pointers.length,vt(k,v);var as=g.element;ut(v.srcEvent.target,as)&&(as=v.srcEvent.target),v.target=as}function _t(g,v){var k=v.center,N=g.offsetDelta||{},tt=g.prevDelta||{},pt=g.prevInput||{};(v.eventType===It||pt.eventType===Yt)&&(tt=g.prevDelta={x:pt.deltaX||0,y:pt.deltaY||0},N=g.offsetDelta={x:k.x,y:k.y}),v.deltaX=tt.x+(k.x-N.x),v.deltaY=tt.y+(k.y-N.y)}function vt(g,v){var k=g.lastInterval||v,N=v.timeStamp-k.timeStamp,tt,pt,Nt,fe;if(v.eventType!=G&&(N>te||k.velocity===i)){var be=v.deltaX-k.deltaX,Oe=v.deltaY-k.deltaY,as=Vt(N,be,Oe);pt=as.x,Nt=as.y,tt=c(as.x)>c(as.y)?as.x:as.y,fe=Ut(be,Oe),g.lastInterval=v}else tt=k.velocity,pt=k.velocityX,Nt=k.velocityY,fe=k.direction;v.velocity=tt,v.velocityX=pt,v.velocityY=Nt,v.direction=fe}function St(g){for(var v=[],k=0;k<g.pointers.length;)v[k]={clientX:l(g.pointers[k].clientX),clientY:l(g.pointers[k].clientY)},k++;return{timeStamp:u(),pointers:v,center:Rt(v),deltaX:g.deltaX,deltaY:g.deltaY}}function Rt(g){var v=g.length;if(v===1)return{x:l(g[0].clientX),y:l(g[0].clientY)};for(var k=0,N=0,tt=0;tt<v;)k+=g[tt].clientX,N+=g[tt].clientY,tt++;return{x:l(k/v),y:l(N/v)}}function Vt(g,v,k){return{x:v/g||0,y:k/g||0}}function Ut(g,v){return g===v?$e:c(g)>=c(v)?g<0?Ge:Ne:v<0?w:I}function se(g,v,k){k||(k=st);var N=v[k[0]]-g[k[0]],tt=v[k[1]]-g[k[1]];return Math.sqrt(N*N+tt*tt)}function ke(g,v,k){k||(k=st);var N=v[k[0]]-g[k[0]],tt=v[k[1]]-g[k[1]];return Math.atan2(tt,N)*180/Math.PI}function Ys(g,v){return ke(v[1],v[0],at)+ke(g[1],g[0],at)}function Pr(g,v){return se(v[0],v[1],at)/se(g[0],g[1],at)}var cn={mousedown:It,mousemove:ee,mouseup:Yt},Or="mousedown",_e="mousemove mouseup";function Pe(){this.evEl=Or,this.evWin=_e,this.pressed=!1,K.apply(this,arguments)}C(Pe,K,{handler:function(v){var k=cn[v.type];k&It&&v.button===0&&(this.pressed=!0),k&ee&&v.which!==1&&(k=Yt),this.pressed&&(k&Yt&&(this.pressed=!1),this.callback(this.manager,k,{pointers:[v],changedPointers:[v],pointerType:V,srcEvent:v}))}});var Ir={pointerdown:It,pointermove:ee,pointerup:Yt,pointercancel:G,pointerout:G},y_={2:gt,3:Z,4:V,5:Kt},nh="pointerdown",ih="pointermove pointerup pointercancel";t.MSPointerEvent&&!t.PointerEvent&&(nh="MSPointerDown",ih="MSPointerMove MSPointerUp MSPointerCancel");function Na(){this.evEl=nh,this.evWin=ih,K.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}C(Na,K,{handler:function(v){var k=this.store,N=!1,tt=v.type.toLowerCase().replace("ms",""),pt=Ir[tt],Nt=y_[v.pointerType]||v.pointerType,fe=Nt==gt,be=A(k,v.pointerId,"pointerId");pt&It&&(v.button===0||fe)?be<0&&(k.push(v),be=k.length-1):pt&(Yt|G)&&(N=!0),!(be<0)&&(k[be]=v,this.callback(this.manager,pt,{pointers:k,changedPointers:[v],pointerType:Nt,srcEvent:v}),N&&k.splice(be,1))}});var v_={touchstart:It,touchmove:ee,touchend:Yt,touchcancel:G},__="touchstart",b_="touchstart touchmove touchend touchcancel";function rh(){this.evTarget=__,this.evWin=b_,this.started=!1,K.apply(this,arguments)}C(rh,K,{handler:function(v){var k=v_[v.type];if(k===It&&(this.started=!0),!!this.started){var N=x_.call(this,v,k);k&(Yt|G)&&N[0].length-N[1].length===0&&(this.started=!1),this.callback(this.manager,k,{pointers:N[0],changedPointers:N[1],pointerType:gt,srcEvent:v})}}});function x_(g,v){var k=D(g.touches),N=D(g.changedTouches);return v&(Yt|G)&&(k=F(k.concat(N),"identifier",!0)),[k,N]}var w_={touchstart:It,touchmove:ee,touchend:Yt,touchcancel:G},C_="touchstart touchmove touchend touchcancel";function Dr(){this.evTarget=C_,this.targetIds={},K.apply(this,arguments)}C(Dr,K,{handler:function(v){var k=w_[v.type],N=S_.call(this,v,k);N&&this.callback(this.manager,k,{pointers:N[0],changedPointers:N[1],pointerType:gt,srcEvent:v})}});function S_(g,v){var k=D(g.touches),N=this.targetIds;if(v&(It|ee)&&k.length===1)return N[k[0].identifier]=!0,[k,k];var tt,pt,Nt=D(g.changedTouches),fe=[],be=this.target;if(pt=k.filter(function(Oe){return ut(Oe.target,be)}),v===It)for(tt=0;tt<pt.length;)N[pt[tt].identifier]=!0,tt++;for(tt=0;tt<Nt.length;)N[Nt[tt].identifier]&&fe.push(Nt[tt]),v&(Yt|G)&&delete N[Nt[tt].identifier],tt++;if(fe.length)return[F(pt.concat(fe),"identifier",!0),fe]}var T_=2500,oh=25;function La(){K.apply(this,arguments);var g=y(this.handler,this);this.touch=new Dr(this.manager,g),this.mouse=new Pe(this.manager,g),this.primaryTouch=null,this.lastTouches=[]}C(La,K,{handler:function(v,k,N){var tt=N.pointerType==gt,pt=N.pointerType==V;if(!(pt&&N.sourceCapabilities&&N.sourceCapabilities.firesTouchEvents)){if(tt)E_.call(this,k,N);else if(pt&&k_.call(this,N))return;this.callback(v,k,N)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});function E_(g,v){g&It?(this.primaryTouch=v.changedPointers[0].identifier,ah.call(this,v)):g&(Yt|G)&&ah.call(this,v)}function ah(g){var v=g.changedPointers[0];if(v.identifier===this.primaryTouch){var k={x:v.clientX,y:v.clientY};this.lastTouches.push(k);var N=this.lastTouches,tt=function(){var pt=N.indexOf(k);pt>-1&&N.splice(pt,1)};setTimeout(tt,T_)}}function k_(g){for(var v=g.srcEvent.clientX,k=g.srcEvent.clientY,N=0;N<this.lastTouches.length;N++){var tt=this.lastTouches[N],pt=Math.abs(v-tt.x),Nt=Math.abs(k-tt.y);if(pt<=oh&&Nt<=oh)return!0}return!1}var lh=X(o.style,"touchAction"),ch=lh!==i,uh="compute",hh="auto",Fa="manipulation",un="none",fi="pan-x",pi="pan-y",Rr=O_();function $a(g,v){this.manager=g,this.set(v)}$a.prototype={set:function(g){g==uh&&(g=this.compute()),ch&&this.manager.element.style&&Rr[g]&&(this.manager.element.style[lh]=g),this.actions=g.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var g=[];return m(this.manager.recognizers,function(v){p(v.options.enable,[v])&&(g=g.concat(v.getTouchAction()))}),P_(g.join(" "))},preventDefaults:function(g){var v=g.srcEvent,k=g.offsetDirection;if(this.manager.session.prevented){v.preventDefault();return}var N=this.actions,tt=O(N,un)&&!Rr[un],pt=O(N,pi)&&!Rr[pi],Nt=O(N,fi)&&!Rr[fi];if(tt){var fe=g.pointers.length===1,be=g.distance<2,Oe=g.deltaTime<250;if(fe&&be&&Oe)return}if(!(Nt&&pt)&&(tt||pt&&k&$||Nt&&k&U))return this.preventSrc(v)},preventSrc:function(g){this.manager.session.prevented=!0,g.preventDefault()}};function P_(g){if(O(g,un))return un;var v=O(g,fi),k=O(g,pi);return v&&k?un:v||k?v?fi:pi:O(g,Fa)?Fa:hh}function O_(){if(!ch)return!1;var g={},v=t.CSS&&t.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(k){g[k]=v?t.CSS.supports("touch-action",k):!0}),g}var Ar=1,Xe=2,En=4,zs=8,vs=zs,mi=16,os=32;function _s(g){this.options=E({},this.defaults,g||{}),this.id=Q(),this.manager=null,this.options.enable=x(this.options.enable,!0),this.state=Ar,this.simultaneous={},this.requireFail=[]}_s.prototype={defaults:{},set:function(g){return E(this.options,g),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(g){if(d(g,"recognizeWith",this))return this;var v=this.simultaneous;return g=Mr(g,this),v[g.id]||(v[g.id]=g,g.recognizeWith(this)),this},dropRecognizeWith:function(g){return d(g,"dropRecognizeWith",this)?this:(g=Mr(g,this),delete this.simultaneous[g.id],this)},requireFailure:function(g){if(d(g,"requireFailure",this))return this;var v=this.requireFail;return g=Mr(g,this),A(v,g)===-1&&(v.push(g),g.requireFailure(this)),this},dropRequireFailure:function(g){if(d(g,"dropRequireFailure",this))return this;g=Mr(g,this);var v=A(this.requireFail,g);return v>-1&&this.requireFail.splice(v,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(g){return!!this.simultaneous[g.id]},emit:function(g){var v=this,k=this.state;function N(tt){v.manager.emit(tt,g)}k<zs&&N(v.options.event+dh(k)),N(v.options.event),g.additionalEvent&&N(g.additionalEvent),k>=zs&&N(v.options.event+dh(k))},tryEmit:function(g){if(this.canEmit())return this.emit(g);this.state=os},canEmit:function(){for(var g=0;g<this.requireFail.length;){if(!(this.requireFail[g].state&(os|Ar)))return!1;g++}return!0},recognize:function(g){var v=E({},g);if(!p(this.options.enable,[this,v])){this.reset(),this.state=os;return}this.state&(vs|mi|os)&&(this.state=Ar),this.state=this.process(v),this.state&(Xe|En|zs|mi)&&this.tryEmit(v)},process:function(g){},getTouchAction:function(){},reset:function(){}};function dh(g){return g&mi?"cancel":g&zs?"end":g&En?"move":g&Xe?"start":""}function fh(g){return g==I?"down":g==w?"up":g==Ge?"left":g==Ne?"right":""}function Mr(g,v){var k=v.manager;return k?k.get(g):g}function Ze(){_s.apply(this,arguments)}C(Ze,_s,{defaults:{pointers:1},attrTest:function(g){var v=this.options.pointers;return v===0||g.pointers.length===v},process:function(g){var v=this.state,k=g.eventType,N=v&(Xe|En),tt=this.attrTest(g);return N&&(k&G||!tt)?v|mi:N||tt?k&Yt?v|zs:v&Xe?v|En:Xe:os}});function Nr(){Ze.apply(this,arguments),this.pX=null,this.pY=null}C(Nr,Ze,{defaults:{event:"pan",threshold:10,pointers:1,direction:q},getTouchAction:function(){var g=this.options.direction,v=[];return g&$&&v.push(pi),g&U&&v.push(fi),v},directionTest:function(g){var v=this.options,k=!0,N=g.distance,tt=g.direction,pt=g.deltaX,Nt=g.deltaY;return tt&v.direction||(v.direction&$?(tt=pt===0?$e:pt<0?Ge:Ne,k=pt!=this.pX,N=Math.abs(g.deltaX)):(tt=Nt===0?$e:Nt<0?w:I,k=Nt!=this.pY,N=Math.abs(g.deltaY))),g.direction=tt,k&&N>v.threshold&&tt&v.direction},attrTest:function(g){return Ze.prototype.attrTest.call(this,g)&&(this.state&Xe||!(this.state&Xe)&&this.directionTest(g))},emit:function(g){this.pX=g.deltaX,this.pY=g.deltaY;var v=fh(g.direction);v&&(g.additionalEvent=this.options.event+v),this._super.emit.call(this,g)}});function Va(){Ze.apply(this,arguments)}C(Va,Ze,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[un]},attrTest:function(g){return this._super.attrTest.call(this,g)&&(Math.abs(g.scale-1)>this.options.threshold||this.state&Xe)},emit:function(g){if(g.scale!==1){var v=g.scale<1?"in":"out";g.additionalEvent=this.options.event+v}this._super.emit.call(this,g)}});function Ya(){_s.apply(this,arguments),this._timer=null,this._input=null}C(Ya,_s,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[hh]},process:function(g){var v=this.options,k=g.pointers.length===v.pointers,N=g.distance<v.threshold,tt=g.deltaTime>v.time;if(this._input=g,!N||!k||g.eventType&(Yt|G)&&!tt)this.reset();else if(g.eventType&It)this.reset(),this._timer=h(function(){this.state=vs,this.tryEmit()},v.time,this);else if(g.eventType&Yt)return vs;return os},reset:function(){clearTimeout(this._timer)},emit:function(g){this.state===vs&&(g&&g.eventType&Yt?this.manager.emit(this.options.event+"up",g):(this._input.timeStamp=u(),this.manager.emit(this.options.event,this._input)))}});function za(){Ze.apply(this,arguments)}C(za,Ze,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[un]},attrTest:function(g){return this._super.attrTest.call(this,g)&&(Math.abs(g.rotation)>this.options.threshold||this.state&Xe)}});function Ba(){Ze.apply(this,arguments)}C(Ba,Ze,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:$|U,pointers:1},getTouchAction:function(){return Nr.prototype.getTouchAction.call(this)},attrTest:function(g){var v=this.options.direction,k;return v&($|U)?k=g.overallVelocity:v&$?k=g.overallVelocityX:v&U&&(k=g.overallVelocityY),this._super.attrTest.call(this,g)&&v&g.offsetDirection&&g.distance>this.options.threshold&&g.maxPointers==this.options.pointers&&c(k)>this.options.velocity&&g.eventType&Yt},emit:function(g){var v=fh(g.offsetDirection);v&&this.manager.emit(this.options.event+v,g),this.manager.emit(this.options.event,g)}});function Lr(){_s.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}C(Lr,_s,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[Fa]},process:function(g){var v=this.options,k=g.pointers.length===v.pointers,N=g.distance<v.threshold,tt=g.deltaTime<v.time;if(this.reset(),g.eventType&It&&this.count===0)return this.failTimeout();if(N&&tt&&k){if(g.eventType!=Yt)return this.failTimeout();var pt=this.pTime?g.timeStamp-this.pTime<v.interval:!0,Nt=!this.pCenter||se(this.pCenter,g.center)<v.posThreshold;this.pTime=g.timeStamp,this.pCenter=g.center,!Nt||!pt?this.count=1:this.count+=1,this._input=g;var fe=this.count%v.taps;if(fe===0)return this.hasRequireFailures()?(this._timer=h(function(){this.state=vs,this.tryEmit()},v.interval,this),Xe):vs}return os},failTimeout:function(){return this._timer=h(function(){this.state=os},this.options.interval,this),os},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==vs&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}});function bs(g,v){return v=v||{},v.recognizers=x(v.recognizers,bs.defaults.preset),new Ga(g,v)}bs.VERSION="2.0.7",bs.defaults={domEvents:!1,touchAction:uh,enable:!0,inputTarget:null,inputClass:null,preset:[[za,{enable:!1}],[Va,{enable:!1},["rotate"]],[Ba,{direction:$}],[Nr,{direction:$},["swipe"]],[Lr],[Lr,{event:"doubletap",taps:2},["tap"]],[Ya]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};var I_=1,ph=2;function Ga(g,v){this.options=E({},bs.defaults,v||{}),this.options.inputTarget=this.options.inputTarget||g,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=g,this.input=nt(this),this.touchAction=new $a(this,this.options.touchAction),mh(this,!0),m(this.options.recognizers,function(k){var N=this.add(new k[0](k[1]));k[2]&&N.recognizeWith(k[2]),k[3]&&N.requireFailure(k[3])},this)}Ga.prototype={set:function(g){return E(this.options,g),g.touchAction&&this.touchAction.update(),g.inputTarget&&(this.input.destroy(),this.input.target=g.inputTarget,this.input.init()),this},stop:function(g){this.session.stopped=g?ph:I_},recognize:function(g){var v=this.session;if(!v.stopped){this.touchAction.preventDefaults(g);var k,N=this.recognizers,tt=v.curRecognizer;(!tt||tt&&tt.state&vs)&&(tt=v.curRecognizer=null);for(var pt=0;pt<N.length;)k=N[pt],v.stopped!==ph&&(!tt||k==tt||k.canRecognizeWith(tt))?k.recognize(g):k.reset(),!tt&&k.state&(Xe|En|zs)&&(tt=v.curRecognizer=k),pt++}},get:function(g){if(g instanceof _s)return g;for(var v=this.recognizers,k=0;k<v.length;k++)if(v[k].options.event==g)return v[k];return null},add:function(g){if(d(g,"add",this))return this;var v=this.get(g.options.event);return v&&this.remove(v),this.recognizers.push(g),g.manager=this,this.touchAction.update(),g},remove:function(g){if(d(g,"remove",this))return this;if(g=this.get(g),g){var v=this.recognizers,k=A(v,g);k!==-1&&(v.splice(k,1),this.touchAction.update())}return this},on:function(g,v){if(g!==i&&v!==i){var k=this.handlers;return m(R(g),function(N){k[N]=k[N]||[],k[N].push(v)}),this}},off:function(g,v){if(g!==i){var k=this.handlers;return m(R(g),function(N){v?k[N]&&k[N].splice(A(k[N],v),1):delete k[N]}),this}},emit:function(g,v){this.options.domEvents&&D_(g,v);var k=this.handlers[g]&&this.handlers[g].slice();if(!(!k||!k.length)){v.type=g,v.preventDefault=function(){v.srcEvent.preventDefault()};for(var N=0;N<k.length;)k[N](v),N++}},destroy:function(){this.element&&mh(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}};function mh(g,v){var k=g.element;if(k.style){var N;m(g.options.cssProps,function(tt,pt){N=X(k.style,pt),v?(g.oldCssProps[N]=k.style[N],k.style[N]=tt):k.style[N]=g.oldCssProps[N]||""}),v||(g.oldCssProps={})}}function D_(g,v){var k=e.createEvent("Event");k.initEvent(g,!0,!0),k.gesture=v,v.target.dispatchEvent(k)}E(bs,{INPUT_START:It,INPUT_MOVE:ee,INPUT_END:Yt,INPUT_CANCEL:G,STATE_POSSIBLE:Ar,STATE_BEGAN:Xe,STATE_CHANGED:En,STATE_ENDED:zs,STATE_RECOGNIZED:vs,STATE_CANCELLED:mi,STATE_FAILED:os,DIRECTION_NONE:$e,DIRECTION_LEFT:Ge,DIRECTION_RIGHT:Ne,DIRECTION_UP:w,DIRECTION_DOWN:I,DIRECTION_HORIZONTAL:$,DIRECTION_VERTICAL:U,DIRECTION_ALL:q,Manager:Ga,Input:K,TouchAction:$a,TouchInput:Dr,MouseInput:Pe,PointerEventInput:Na,TouchMouseInput:La,SingleTouchInput:rh,Recognizer:_s,AttrRecognizer:Ze,Tap:Lr,Pan:Nr,Swipe:Ba,Pinch:Va,Rotate:za,Press:Ya,on:b,off:z,each:m,merge:_,extend:S,assign:E,inherit:C,bindFn:y,prefixed:X});var R_=typeof t<"u"?t:typeof self<"u"?self:{};R_.Hammer=bs,typeof i=="function"&&i.amd?i(function(){return bs}):s.exports?s.exports=bs:t[n]=bs})(window,document,"Hammer")})(Bu);var mg=Bu.exports;const gg=Mm(mg);class yg{constructor(){}static getFormatKeyNames(t){const e=Xm(),n=[];return t.ctrl&&n.push(e?"Cmd":"Ctrl"),t.shift&&n.push("Shift"),t.alt&&n.push("Alt"),typeof t.key=="string"?n.push(jo(t.key)):Array.isArray(t.key)&&(t.key.map(i=>jo(i)),n.push(...t.key)),n}static matchKeyScheme(t,e){const n=t.ctrl??!1,i=t.shift??!1,r=t.alt??!1;if(t.exact)return(n===e.metaKey||n===e.ctrlKey)&&i===e.shiftKey&&r===e.altKey;const o=[];return n&&o.push(n===e.metaKey||n===e.ctrlKey),i&&o.push(i===e.shiftKey),r&&o.push(r===e.altKey),o.every(a=>a)}static on(t,e){if(t?.key===void 0||t?.key===null)return e;const n=t?.target??window;let i=!1;const r=this.getFormatKeyNames(t),o=a=>{if(a.stopPropagation(),!i&&a.key!=="Control"&&a.key!=="Meta"&&a.key!=="Shift"&&a.key!=="Option"&&a.key!=="Alt"&&r.find(l=>l.toLowerCase()===a.key.toLowerCase())&&this.matchKeyScheme(t,a)){a.preventDefault();const l=e(a);if(typeof l!="function")return;const c=u=>{u.preventDefault(),l(u),n.removeEventListener("keyup",c)};n.addEventListener("keyup",c)}};return e.title=t?.title??"",e.formatedKeyNames=r,e.pause=()=>i=!0,e.restart=()=>i=!1,e.removeListener=()=>n.removeEventListener("keydown",o),n.addEventListener("keydown",o),e}}class ys extends cr{container;width;height;mousePoint={x:0,y:0,dx:0,dy:0,dStartX:0,dStartY:0};hammer;removes=[];constructor(t=document.documentElement,e=!0,n){super(),this.container=t,this.width=t.offsetWidth,this.height=t.offsetHeight,this.hammer=new gg(this.container),e&&this.start(n)}emitDebounce=Om((t,...e)=>super.emit(t,...e),50);emit(t,...e){switch(t){case"panLeft":case"panRight":this.emitDebounce(t,...e);break;default:super.emit(t,...e);break}return this}start(t){this.registerMouseEventListeners(),this.registerTransitionEventListeners(),this.registerAnimationEventListeners(),this.registerResizeObserver(),this.registerElementDisplayInParent(),t&&t.forEach(e=>{this.addRemoves(e())}),this.on("pointerMove",e=>{this.setMousePoint(ss(e,this.container))})}destroy(){this.removes.forEach(t=>t()),this.removes=[],this.removeAllListeners()}restart(){this.destroy(),this.start()}addRemoves(t){this.removes.push(t)}registerMouseEventListeners(){const t=G=>{this.emit("mouseDown",G)},e=G=>{this.emit("mouseUp",G)},n=G=>{this.emit("mouseMove",G)},i=G=>{this.emit("mouseOver",G)},r=G=>{this.emit("mouseOut",G)},o=G=>{this.emit("mouseEnter",G)},a=G=>{this.emit("mouseLeave",G)},l=G=>{this.emit("mouseClick",G)},c=G=>{this.emit("mouseDoubleClick",G)},u=G=>{this.emit("mouseWheel",G)},h=G=>{this.emit("mouseContextMenu",G)},d=G=>{this.emit("touchStart",G)},m=G=>{this.emit("touchEnd",G)},f=G=>{this.emit("touchCancel",G)},E=G=>{this.emit("touchMove",G)},S=G=>{this.emit("pointerDown",G)},_=G=>{this.emit("pointerUp",G)},C=G=>{this.emit("pointerCancel",G)},y=G=>{this.emit("pointerMove",G)},p=G=>{this.emit("pan",G)},x=G=>{this.emit("panStart",G)},b=G=>{this.emit("panMove",G)},z=G=>{this.emit("panEnd",G)},ut=G=>{this.emit("panCancel",G)},O=G=>{this.emit("panLeft",G)},R=G=>{this.emit("panRight",G)},A=G=>{this.emit("panUp",G)},D=G=>{this.emit("panDown",G)},F=G=>{this.emit("pinch",G)},X=G=>{this.emit("press",G)},rt=G=>{this.emit("rotate",G)},Q=G=>{this.emit("swipe",G)},W=G=>{this.emit("swipeLeft",G)},it=G=>{this.emit("swipeRight",G)},B=G=>{this.emit("swipeUp",G)},j=G=>{this.emit("swipeDown",G)},yt=G=>{this.emit("tap",G)},gt=G=>{!G.target||this.container==G.target||this.container.contains(G.target)||this.emit("tapOutSide",G)},Z=G=>{this.emit("inputChange",G,this.container.files)},V=G=>{this.emit("dragstart",G)},Kt=G=>{G.dataTransfer&&(G.dataTransfer.dropEffect="copy"),this.emit("dragover",G)},te=G=>{this.emit("dragenter",G)},It=G=>{this.emit("dragend",G)},ee=G=>{G.dataTransfer,this.emit("drop",G,G.dataTransfer?.files)};this.container.addEventListener("mousedown",t,!1),this.container.addEventListener("mouseup",e,!1),this.container.addEventListener("mousemove",n,!1),this.container.addEventListener("mouseover",i,!1),this.container.addEventListener("mouseout",r,!1),this.container.addEventListener("mouseenter",o,!1),this.container.addEventListener("mouseleave",a,!1),this.container.addEventListener("click",l,!1),this.container.addEventListener("dblclick",c,!1),this.container.addEventListener("wheel",u,!1),this.container.addEventListener("contextmenu",h,!1),this.container.addEventListener("touchstart",d,!1),this.container.addEventListener("touchend",m,!1),this.container.addEventListener("touchcancel",f,!1),this.container.addEventListener("touchmove",E,!1),this.container.addEventListener("pointerdown",S,!1),this.container.addEventListener("pointerup",_,!1),this.container.addEventListener("pointercancel",C,!1),this.container.addEventListener("pointermove",y,!1),this.hammer.on("pan",p),this.hammer.on("panstart",x),this.hammer.on("panmove",b),this.hammer.on("panend",z),this.hammer.on("pancancel",ut),this.hammer.on("panleft",O),this.hammer.on("panright",R),this.hammer.on("panup",A),this.hammer.on("pandown",D),this.hammer.on("pinch",F),this.hammer.on("press",X),this.hammer.on("rotate",rt),this.hammer.on("swipe",Q),this.hammer.on("swipeleft",W),this.hammer.on("swiperight",it),this.hammer.on("swipeup",B),this.hammer.on("swipedown",j),this.hammer.on("tap",yt),document.addEventListener("pointerdown",gt,!1),this.container instanceof HTMLInputElement&&this.container.addEventListener("change",Z,!1),this.container.addEventListener("dragstart",V,!1),this.container.addEventListener("dragover",Kt,!1),this.container.addEventListener("dragenter",te,!1),this.container.addEventListener("dragend",It,!1),this.container.addEventListener("drop",ee,!1);const Yt=()=>{this.container.removeEventListener("mousedown",t,!1),this.container.removeEventListener("mouseup",e,!1),this.container.removeEventListener("mousemove",n,!1),this.container.removeEventListener("mouseover",i,!1),this.container.removeEventListener("mouseout",r,!1),this.container.removeEventListener("mouseenter",o,!1),this.container.removeEventListener("mouseleave",a,!1),this.container.removeEventListener("click",l,!1),this.container.removeEventListener("dblclick",c,!1),this.container.removeEventListener("wheel",u,!1),this.container.removeEventListener("contextmenu",h,!1),this.container.removeEventListener("touchstart",d,!1),this.container.removeEventListener("touchend",m,!1),this.container.removeEventListener("touchcancel",f,!1),this.container.removeEventListener("touchmove",E,!1),this.container.removeEventListener("pointerdown",S,!1),this.container.removeEventListener("pointerup",_,!1),this.container.removeEventListener("pointercancel",C),this.container.removeEventListener("pointermove",y,!1),this.hammer.off("pan",p),this.hammer.off("panstart",x),this.hammer.off("panmove",b),this.hammer.off("panend",z),this.hammer.off("pancancel",ut),this.hammer.off("panleft",O),this.hammer.off("panright",R),this.hammer.off("panup",A),this.hammer.off("pandown",D),this.hammer.off("pinch",F),this.hammer.off("press",X),this.hammer.off("rotate",rt),this.hammer.off("swipe",Q),this.hammer.off("swipeleft",W),this.hammer.off("swiperight",it),this.hammer.off("swipeup",B),this.hammer.off("swipedown",j),this.hammer.off("tap",yt),document.removeEventListener("pointerdown",gt,!1),document.removeEventListener("touchstart",gt,!1),document.removeEventListener("mousedown",gt,!1),this.container instanceof HTMLInputElement&&this.container.removeEventListener("change",Z,!1),this.container.removeEventListener("dragstart",V,!1),this.container.removeEventListener("dragover",Kt,!1),this.container.removeEventListener("dragenter",te,!1),this.container.removeEventListener("dragend",It,!1),this.container.removeEventListener("drop",ee,!1)};return this.addRemoves(Yt),Yt}registerTransitionEventListeners(){const t=i=>{this.emit("transitionstart",i)},e=i=>{this.emit("transitionend",i)};this.container.addEventListener("transitionstart",t,!1),this.container.addEventListener("transitionend",e,!1);const n=()=>{this.container.removeEventListener("transitionstart",t,!1),this.container.removeEventListener("transitionend",e,!1)};return this.addRemoves(n),n}registerAnimationEventListeners(){const t=i=>{this.emit("animationstart",i)},e=i=>{this.emit("animationend",i)};this.container.addEventListener("animationstart",t,!1),this.container.addEventListener("animationend",e,!1);const n=()=>{this.container.removeEventListener("animationstart",t,!1),this.container.removeEventListener("animationend",e,!1)};return this.addRemoves(n),n}registerKeyDown(t,e,n){const i=yg.on(t,o=>(e(o,i.formatedKeyNames,i.pause,i.restart),n)),r=()=>{i.removeListener?.()};return this.addRemoves(r),r}registerResizeObserver(){let t;if(typeof ResizeObserver<"u"){const e=new ResizeObserver(n=>{const{width:i,height:r}=n[0].contentRect;this.width=i,this.height=r,this.emit("resize",i,r)});e.observe(this.container),t=()=>{e.unobserve(this.container)}}else{const e="orientationchange"in window?"orientationchange":"resize",n=i=>{const r=i.target.innerWidth,o=i.target.innerHeight;this.emit("resize",r,o)};window.addEventListener(e,n,!1),t=()=>{window.removeEventListener(e,n,!1)}}return this.addRemoves(t),t}registerElementDisplayInParent(t){const e={threshold:t?.threshold||.5,root:t?.parentElement},n=new IntersectionObserver((r,o)=>{let a=r[0];if(r.length>1){const c=r.find(u=>u.isIntersecting);c&&(a=c)}a.isIntersecting&&a.intersectionRatio>=e.threshold?this.emit("showInParent"):this.emit("showOffParent")},e);n.observe(this.container);const i=()=>{n.unobserve(this.container)};return this.addRemoves(i),i}registerPullDownRefresh(t){const e=t?.distance||50;return this.captureDrag({move:(n,i)=>{i.dStartY>0&&i.dStartY<e&&this.emit("pullDowning",i.dStartY)},end:(n,i)=>{i.dStartY>=e&&this.emit("pullDown")}})}registerPullUpLoading(t){const e=t?.distance||50;return this.captureDrag({move:(n,i)=>{i.dStartY>0&&i.dStartY<e&&this.emit("pullUping",i.dStartY)},end:(n,i)=>{i.dStartY>=e&&this.emit("pullUp")}})}setMousePoint(t){this.mousePoint.x=t.x,this.mousePoint.y=t.y,this.mousePoint.dx=typeof t.dx=="number"?t.dx:0,this.mousePoint.dy=typeof t.dy=="number"?t.dy:0,this.mousePoint.dStartX=typeof t.dStartX=="number"?t.dStartX:0,this.mousePoint.dStartY=typeof t.dStartY=="number"?t.dStartY:0}captureDrag(t){return this.captureDragUsePointer(t)}captureDragUsePointer(t){let e,n;const i=l=>{l.preventDefault(),l.stopPropagation(),this.on("pointerMove",o),this.on("pointerUp",r),this.on("pointerCancel",r),n=ss(l,this.container);const c={...n};e=c,this.setMousePoint(c),t?.start?.(l,c)},r=l=>{l.preventDefault(),l.stopPropagation(),this.off("pointerMove",o),this.off("pointerUp",r),this.off("pointerCancel",r),n=ss(l,this.container);const c={...n,dStartX:e?n.x-e.x:0,dStartY:e?n.y-e.y:0};this.setMousePoint(c),t?.end?.(l,c),e=null},o=l=>{l.preventDefault(),l.stopPropagation();const c={...n};n=ss(l,this.container);const u={...n,dx:n.x-(c.x||0),dy:n.y-(c.y||0),dStartX:e?n.x-e.x:0,dStartY:e?n.y-e.y:0};this.setMousePoint(u),t?.move?.(l,u)};this.on("pointerDown",i);const a=()=>{this.off("pointerDown",i)};return this.addRemoves(a),a}captureDragUseMouse(t){let e,n;const i=l=>{l.preventDefault(),l.stopPropagation(),document.addEventListener("mousemove",o,!1),document.addEventListener("mouseup",r,!1),n=ss(l,this.container);const c={...n};e=c,this.setMousePoint(c),t?.start?.(l,c)},r=l=>{l.preventDefault(),l.stopPropagation(),document.removeEventListener("mousemove",o,!1),document.removeEventListener("mouseup",r,!1),n=ss(l,this.container);const c={...n,dStartX:e?n.x-e.x:0,dStartY:e?n.y-e.y:0};this.setMousePoint(c),t?.end?.(l,c),e=null},o=l=>{l.preventDefault(),l.stopPropagation();const c={...n};n=ss(l,this.container);const u={...n,dx:n.x-(c.x||0),dy:n.y-(c.y||0),dStartX:e?n.x-e.x:0,dStartY:e?n.y-e.y:0};this.setMousePoint(u),t?.move?.(l,u)};this.on("mouseDown",i);const a=()=>{this.off("mouseDown",i)};return this.addRemoves(a),a}captureDragUseTouch(t){let e,n;const i=l=>{l.preventDefault(),l.stopPropagation(),this.on("touchMove",o),this.on("touchEnd",r),this.on("touchCancel",r);const c=l.changedTouches[0];n=ss(c,this.container);const u={...n};e=u,this.setMousePoint(u),t?.start?.(c,u)},r=l=>{l.preventDefault(),l.stopPropagation(),this.off("touchMove",o),this.off("touchEnd",r),this.off("touchCancel",r);const c=l.changedTouches[0];n=ss(c,this.container);const u={...n,dStartX:e?n.x-e.x:0,dStartY:e?n.y-e.y:0};this.setMousePoint(u),t?.end?.(c,u),e=null},o=l=>{l.preventDefault(),l.stopPropagation();const c=l.changedTouches[0],u={...n};n=ss(c,this.container);const h={...n,dx:n.x-(u.x||0),dy:n.y-(u.y||0),dStartX:e?n.x-e.x:0,dStartY:e?n.y-e.y:0};this.setMousePoint(h),t?.move?.(c,h)};this.on("touchStart",i);const a=()=>{this.off("touchStart",i)};return this.addRemoves(a),a}}const Se=new ys(document.documentElement,!0,[()=>vg("(prefers-color-scheme: dark)"),_g,xg,bg]);Se.registerKeyDown({title:"打开",key:"o",ctrl:!0,exact:!0},()=>{Fm().then(s=>$m(s[0])).then(s=>{Se.emit("openFile",s)}).catch(s=>{Se.emit("openFileError",s)})});function vg(s){let t="";switch(s){case"(prefers-color-scheme: dark)":t="matchMediaChangePrefersColorSchemeDark";break;default:t=s;break}const e=n=>{Se.emit(t,n.matches)};return window.matchMedia(s).addEventListener("change",e,!1),()=>{window.matchMedia(s).removeEventListener("change",e,!1)}}function _g(){let s="";const t=new MutationObserver(i=>{location.href!==s&&(s=location.href,Se.emit("urlchange",location.href))});t.observe(document,{attributes:!0,childList:!0,subtree:!0});const e=()=>{Se.emit("hashchange",location.hash)};window.addEventListener("hashchange",e,!1);const n=()=>{Se.emit("popstate")};return window.addEventListener("popstate",n,!1),()=>{t.disconnect(),window.removeEventListener("hashchange",e,!1),window.removeEventListener("popstate",n,!1)}}function bg(){const s=r=>{Se.emit("beforeunload",r)};window.addEventListener("beforeunload",s,!1);const t=r=>{Se.emit("pagehide",r)};window.addEventListener("pagehide",t,!1);const e=r=>{Se.emit("windowFocus",r)};window.addEventListener("focus",e,!1);const n=r=>{Se.emit("windowBlur",r)};window.addEventListener("blur",n,!1);const i=r=>{document.hidden?Se.emit("windowVisibilityChangeHide",r):Se.emit("windowVisibilityChangeShow",r)};return document.addEventListener("visibilitychange",i,!1),()=>{window.removeEventListener("beforeunload",s,!1),window.removeEventListener("pagehide",t,!1),window.removeEventListener("focus",e,!1),window.removeEventListener("blur",n,!1),document.removeEventListener("visibilitychange",i,!1)}}function xg(){const s=t=>{Se.emit("scroll",t)};return document.addEventListener("scroll",s,!1),()=>{document.removeEventListener("scroll",s,!1)}}class ma{video;constructor(t){this.video=t}setSrcObject(t){this.video.addEventListener("loadedmetadata",e=>{e.target}),this.video.srcObject=t}captureWebCamera(){navigator.mediaDevices.getUserMedia({video:!0}).then(t=>{this.setSrcObject(t)})}static async videoMediaChangeSupport(){return new Promise(t=>{const e=document.createElement("iframe"),n=document.createElement("video"),i=document.createElement("source"),r=new MediaSource;r.addEventListener("sourceopen",()=>t(!0)),i.src=URL.createObjectURL(r),i.media="(min-width:10px)",n.append(i),e.width="5",e.style.cssText="position: absolute; visibility: hidden;",document.documentElement.append(e),e.contentDocument?.body.append(n),setTimeout(()=>{e.width="15"}),setTimeout(()=>{e.remove(),t(!1)},1e3)})}static tryAutoPlayOrAutoPlayAfterClick(t){return new Promise(e=>{t.play().then(()=>{t.autoplay=!0,e(!0)}).catch(()=>{ma.setAutoPlayWhenClick(t),e(!1)})})}static setAutoPlayWhenClick(t){function e(){t.autoplay=!0,t.play(),document.removeEventListener("click",e),document.removeEventListener("touchend",e)}document.addEventListener("click",e),document.addEventListener("touchend",e)}}class wg extends cr{source;raw="";mode="text";tagname="";nodename="";textchunk="";entity="";quote="";attrs={};constructor(t){super(),this.source=t}parse(){const t=dm(this.source);if(t===0){this.emit("finish");return}let e,n,i=du(this.source,0);for(let r=1;r<t;r++)e=n,n=i,i=du(this.source,r),this.raw+=n,n&&this.step(n,i,e);i&&this.step(i,void 0,n),this.emit("finish")}step(t,e,n){t==`
53
53
  `&&this.emit("newline"),this.act(t,e,n)}act(t,e,n){switch(this.mode){case"text":switch(t){case"<":case"eof":this.nodename="",this.attrs={},this.mode="tag name start",this.raw=this.raw.slice(0,-1),this.textchunk&&this.emit("text",this.textchunk),this.raw+=t,this.textchunk="";break;case"&":this.mode="entity",this.entity="";break;default:this.textchunk+=t;break}break;case"entity":ps("whitespace",t)?(this.textchunk+=et.entity2text(this.entity),this.mode="text"):t==";"?(this.textchunk+=et.entity2text(this.entity+t),this.mode="text"):this.entity+=t;break;case"special":if(n=="!"&&t=="-"&&e=="-"){this.mode="comment start";break}if(this.textchunk=="[CDATA"&&t=="["){this.mode="cdata",this.textchunk="";break}if(t==">"||t=="eof"){this.emit("special",this.textchunk),this.mode="text",this.textchunk="";break}this.textchunk+=t;break;case"cdata":if(n=="]"&&t=="]"&&e==">"){this.mode="cdata end",this.textchunk=this.textchunk.slice(0,-1);break}t=="eof"&&(this.mode="cdata end",this.act(t,e,n)),this.textchunk+=t;break;case"cdata end":this.emit("cdata",this.textchunk),this.textchunk="",this.mode="text";break;case"comment start":e==">"||t=="eof"?(this.emit("comment",""),this.mode="skip"):this.mode="comment";break;case"skip":this.mode="text";break;case"comment":t=="-"&&n=="-"&&e==">"?(this.mode="comment end",this.textchunk=this.textchunk.slice(0,-1)):t=="eof"?this.emit("comment",this.textchunk):this.textchunk+=t;break;case"comment end":this.emit("comment",this.textchunk),this.textchunk="",this.mode="text";break;case"declaration":if(t=="?"&&e==">"){this.mode="declaration end";break}t=="eof"&&this.emit("comment",this.textchunk),this.textchunk+=t;break;case"declaration end":this.emit("comment",this.textchunk),this.textchunk="",this.mode="text";break;case"tag name start":if(t=="eof"){this.emit("text","<");break}if(!ps("whitespace",t)){if(this.mode="tag name",t=="/"){this.mode="close tag name start";break}else if(t=="!"){this.mode="special",this.textchunk="";break}else if(t=="?"){this.mode="declaration";break}this.act(t,e,n)}break;case"close tag name start":ps("whitespace",t)||(this.mode="close tag name",this.tagname="",this.nodename="",this.act(t,e,n));break;case"close tag name":if(ps("whitespace",t))this.tagname=this.nodename;else switch(t){case">":this.emit("/tag",this.tagname||this.nodename,this.attrs),this.mode="text";break;default:!this.tagname&&(this.nodename+=t);break}break;case"tag name":if(ps("whitespace",t))this.tagname=this.nodename,this.nodename="",this.mode="attr start";else switch(t){case">":this.emit("tag",this.nodename,this.attrs),this.mode="text";break;case"/":this.raw+=e,this.emit("tag",this.nodename,this.attrs),this.emit("/tag",this.nodename,this.attrs),this.mode="skip";break;default:this.nodename+=t;break}break;case"attr start":ps("whitespace",t)||(this.mode="attr",this.nodename="",this.act(t,e,n));break;case"attr":if(ps("whitespace",t)||t=="=")this.attrs[this.nodename]="",this.mode="attr value start";else switch(t){case">":this.nodename=="/"?(delete this.attrs["/"],this.emit("tag",this.tagname,this.attrs),this.emit("/tag",this.tagname,this.attrs)):(this.nodename&&(this.attrs[this.nodename]=""),this.emit("tag",this.tagname,this.attrs)),this.mode="text";break;default:this.nodename+=t;break}break;case"attr value start":if(!ps("whitespace",t)){if(this.mode="attr value",this.quote="",t=="'"||t=='"'){this.quote=t;return}this.act(t,e,n)}break;case"attr value":if(ps("whitespace",t)&&!this.quote)this.mode="attr start";else if(t==">"&&!this.quote)this.emit("tag",this.tagname,this.attrs),this.mode="text";else switch(t){case'"':case"'":this.quote==t&&n!="\\"&&(this.mode="attr start");break;default:this.attrs[this.nodename]+=t;break}break}}}function Gu(s,t,e){if(typeof t<"u")window.localStorage.setItem(s,JSON.stringify({value:t,expires:typeof e=="number"?e:-1}));else{const n=window.localStorage.getItem(s);try{const i=JSON.parse(n||"");return"expires"in i&&parseInt(i.expires)>=0&&new Date().getTime()>parseInt(i.expires)?void 0:i.value||void 0}catch{return n||void 0}}}Se.on("matchMediaChangePrefersColorSchemeDark",s=>{ga(s?"dark":"light")}),Cg();function ga(s){Gu("ColorScheme",s),document.documentElement.classList.toggle("dark",s=="dark")}function Cg(){const s=Gu("ColorScheme");if(s=="dark"||s=="light")return ga(s),s;{const t=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";return ga(t),t}}const Ot={safeAreaTop:et.getCSSVar("--safe-area-inset-top"),safeAreaRight:et.getCSSVar("--safe-area-inset-right"),safeAreaBottom:et.getCSSVar("--safe-area-inset-bottom"),safeAreaLeft:et.getCSSVar("--safe-area-inset-left"),colorPrimary:et.getCSSVar("--color-primary")||"#5078f0",colorRed:et.getCSSVar("--color-red")||"#ff5050",colorOrange:et.getCSSVar("--color-orange")||"#fa8c00",colorYellow:et.getCSSVar("--color-yellow")||"#fadc32",colorGreen:et.getCSSVar("--color-green")||"#00c878",colorBlue:et.getCSSVar("--color-blue")||"#00b4fa",colorPurple:et.getCSSVar("--color-purple")||"#6464fa",colorBlack:et.getCSSVar("--color-black")||"#001428",colorGray00:et.getCSSVar("--color-gray-00")||"#000000",colorGray33:et.getCSSVar("--color-gray-33")||"#333333",colorGray66:et.getCSSVar("--color-gray-66")||"#666666",colorGray99:et.getCSSVar("--color-gray-99")||"#999999",colorGrayCC:et.getCSSVar("--color-gray-cc")||"#cccccc",colorGrayDD:et.getCSSVar("--color-gray-dd")||"#dddddd",colorGrayE6:et.getCSSVar("--color-gray-e6")||"#e6e6e6",colorGrayEE:et.getCSSVar("--color-gray-ee")||"#eeeeee",colorGrayEF:et.getCSSVar("--color-gray-ef")||"#efefef",colorGrayF5:et.getCSSVar("--color-gray-f5")||"#f5f5f5",colorGrayFF:et.getCSSVar("--color-gray-ff")||"#ffffff",fontLineHeight:et.getCSSVar("--font-line-height")||"1.4",fontSize32:et.getCSSVar("--font-size-32")||"32px",fontSize24:et.getCSSVar("--font-size-24")||"24px",fontSize22:et.getCSSVar("--font-size-22")||"22px",fontSize20:et.getCSSVar("--font-size-20")||"20px",fontSize18:et.getCSSVar("--font-size-18")||"18px",fontSize16:et.getCSSVar("--font-size-16")||"16px",fontSize14:et.getCSSVar("--font-size-14")||"14px",fontSize12:et.getCSSVar("--font-size-12")||"12px",fontSize10:et.getCSSVar("--font-size-10")||"10px",d4:et.getCSSVar("--distance-4")||"4px",d8:et.getCSSVar("--distance-8")||"8px",d12:et.getCSSVar("--distance-12")||"12px",d16:et.getCSSVar("--distance-16")||"16px",d20:et.getCSSVar("--distance-20")||"20px",d32:et.getCSSVar("--distance-32")||"32px",d40:et.getCSSVar("--distance-40")||"40px",d44:et.getCSSVar("--distance-44")||"44px"};class Ct{__color={r:0,g:0,b:0,a:1};constructor(t,e){t&&this.setColor(t),typeof e=="number"&&this.setAlpha(e)}get color(){return this.__color}set color(t){this.__color=ya(t)}setColor(t){return this.color=t,this}get r(){return this.__color.r}set r(t){this.__color.r=qt(Math.round(t),0,255)}get g(){return this.__color.g}set g(t){this.__color.g=qt(Math.round(t),0,255)}get b(){return this.__color.b}set b(t){this.__color.b=qt(Math.round(t),0,255)}get a(){return this.__color.a}set a(t){this.__color.a=qt(t,0,1)}setAlpha(t){return this.a=t,this}setRGB(t,e,n){return this.r=t,this.g=e,this.b=n,this}setRGBA(t,e,n,i){return this.r=t,this.g=e,this.b=n,this.a=i,this}get hex(){return(this.r<<16)+(this.g<<8)+this.b}toString(){if(this.a===1){const t="000000"+this.hex.toString(16);return"#"+t.slice(t.length-6)}else return`rgba(${this.r},${this.g},${this.b},${Ce(this.a,6)})`}clone(){return new Ct(this.color)}copy(t){this.setColor(t.color)}opposite(t=!1,e="#000000",n="#ffffff"){if(t)return new Ct(this.r*.299+this.g*.587+this.b*.114>186?e:n);{const i=this.clone();return i.r=255-i.r,i.g=255-i.g,i.b=255-i.b,i}}lighten(t){t=qt(Math.abs(t),0,1);let{r:e,g:n,b:i,a:r}=this.color;return e+=(255-e)*t,n+=(255-n)*t,i+=(255-i)*t,new Ct().setRGBA(e,n,i,r)}darken(t){t=qt(Math.abs(t),0,1);let{r:e,g:n,b:i,a:r}=this.color;return e=e*(1-t),n=n*(1-t),i=i*(1-t),new Ct().setRGBA(e,n,i,r)}static gradient(t,e,n){try{const i=ya(t),r=ya(e);return new Ct().setRGB((r.r-i.r)*n+i.r,(r.g-i.g)*n+i.g,(r.b-i.b)*n+i.b)}catch{return new Ct(e)}}static random(){return new Ct(Math.random()*16777215)}get hsv(){const{r:t,g:e,b:n,a:i}=this.color,r=Math.max(t,e,n),o=Math.min(t,e,n),a=r-o;let l;return t===r?l=(e-n)/a:e===r?l=2+(n-t)/a:l=4+(t-e)/a,l/=6,l<0&&(l+=1),{h:a==0?0:l*360,s:r===0?0:a/r,v:r/255,a:i}}set h(t){const e=this.hsv;e.h=qt(t,0,360),this.setColor(e)}get h(){return this.hsv.h}set s(t){const e=this.hsv;e.s=qt(t,0,1),this.setColor(e)}get s(){return this.hsv.s}set v(t){const e=this.hsv;e.v=qt(t,0,1),this.setColor(e)}get v(){return this.hsv.v}}function Ae(s,t){return new Ct(s,t)}function ya(s){const t=Object.prototype.hasOwnProperty.call(s,"a")?qt(s.a,0,1):1;if(Object.prototype.hasOwnProperty.call(s,"r")&&Object.prototype.hasOwnProperty.call(s,"g")&&Object.prototype.hasOwnProperty.call(s,"b"))return s.r=qt(Math.round(s.r),0,255),s.g=qt(Math.round(s.g),0,255),s.b=qt(Math.round(s.b),0,255),s.a=t,s;if(Object.prototype.hasOwnProperty.call(s,"h")&&Object.prototype.hasOwnProperty.call(s,"s")&&Object.prototype.hasOwnProperty.call(s,"v")){let n=qt(s.h,0,360),i=qt(s.s,0,1),r=qt(s.v,0,1);const o=Math.floor(n/60)%6,a=n/60-Math.floor(n/60),l=r*(1-i),c=r*(1-a*i),u=r*(1-(1-a)*i),h=[[r,u,l],[c,r,l],[l,r,u],[l,c,r],[u,l,r],[r,l,c]][o];return{r:Math.round(h[0]*255),g:Math.round(h[1]*255),b:Math.round(h[2]*255),a:t}}const e={r:0,g:0,b:0,a:t};if(typeof s=="number")s<Math.pow(2,24)?(e.r=s>>16&255,e.g=s>>8&255,e.b=s&255):(e.r=s>>24&255,e.g=s>>16&255,e.b=s>>8&255,e.a=(s&255)/255);else if(typeof s=="string"){const n=/rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,?\s*(\d?\.?\d*)?\s*\)/gi.exec(s);if(n)e.r=parseInt(n[1]),e.g=parseInt(n[2]),e.b=parseInt(n[3]),n[4]&&(e.a=parseFloat(n[4]));else{let i=s.match(/^#([A-F0-9])([A-F0-9])([A-F0-9])$/i);i?(e.r=parseInt(`${i[1]}${i[1]}`,16),e.g=parseInt(`${i[2]}${i[2]}`,16),e.b=parseInt(`${i[3]}${i[3]}`,16)):(i=s.match(/^#([A-F0-9]{2})([A-F0-9]{2})([A-F0-9]{2})$/i),i?(e.r=parseInt(i[1],16),e.g=parseInt(i[2],16),e.b=parseInt(i[3],16)):(i=s.match(/^#([A-F0-9]{2})([A-F0-9]{2})([A-F0-9]{2})([A-F0-9]{2})$/i),i?(e.r=parseInt(i[1],16),e.g=parseInt(i[2],16),e.b=parseInt(i[3],16),e.a=parseInt(i[4],16)/255):s==="none"&&(e.a=0)))}}else throw new Error("parseColor 不支持的颜色解析:"+s);return e.r=qt(e.r,0,255),e.g=qt(e.g,0,255),e.b=qt(e.b,0,255),e.a=qt(e.a,0,1),e}const Sg=["#0ac2d2","#7bb7fa","#60d7a9","#fdc162","#fd6a62","#f68dbb","#26ccff","#a25afd","#ff5e7e","#88ff5a","#fcff42","#ffa62d","#ff36ff","#dc4916","#6871b1","#d1b935","#1bbc9b","#FF7F50","#4BBFC3","#ff9900"],$s={backgroundColor:"#1a1a1a",numberColor:"#2FA1D6",booleanColor:"#806787",stringColor:"#1ed36f",functionColor:"#e61d5f",saveRowColor:"#dad5cb",buttonColor:"",borderColor:"",inputColor:""};$s.buttonColor=new Ct($s.saveRowColor).darken(.1).toString(),$s.borderColor=new Ct($s.backgroundColor).lighten(.07).toString(),$s.inputColor=new Ct($s.backgroundColor).lighten(.085).toString();function Xu(s,t,e,n,i){const r=t/e;let o=0,a=0;switch(s){case"aspectFit":r>=1?(o=n,a=o/r,a>i&&(a=i,o=a*r)):(a=i,o=a*r,o>n&&(o=n,a=o/r));break;case"aspectFill":r>=1?(a=i,o=a*r):(o=n,a=o/r);break;case"widthFix":o=n,a=o/r;break;case"heightFix":a=i,o=a*r;break;case"scaleToFill":default:o=n,a=i;break}return{width:o,height:a}}const br=new Map;async function Tg(s){return new Promise((t,e)=>{Eg(s,(n,i)=>n?e(n):t({width:i.width,height:i.height,aspectRatio:i.width/i.height}))})}const Eg=(s,t)=>{if(br.has(s))return t(null,br.get(s));const e=new Image;e.onload=function(){br.set(s,{width:e.naturalWidth||e.width,height:e.naturalHeight||e.height,element:e}),t(null,br.get(s))},e.onerror=function(n){t(n,null)},e.src=s};class is extends Ht{shapesCountChange=!1;constructor(t){super(t)}shapeInit(){}frameStart(t){return this.shapesCountChange&&(this.shapesCountChange=!1,this.shapes.forEach(e=>{e.parent=this,e.initPathD()}),this.pathd=this.initPathD(),this.shapes.forEach(e=>{!e.forceCXY&&!e.independentTransformInGroup&&(e.cX=this.cX-e.diffXInGroup,e.cY=this.cY-e.diffYInGroup)})),super.frameStart(t)}frameUpdate(t,e){this.shapes.forEach(n=>{!n.independentTransformInGroup&&!n.isDragging&&(n.x=this.x+n.diffXInGroup,n.y=this.y+n.diffYInGroup,n.degree=this.degree+n.diffDegreeInGroup,n.scalarX=this.scalarX*n.diffScalarXInGroup,n.scalarY=this.scalarY*n.diffScalarYInGroup)}),super.frameUpdate(t,e)}addShape(t){(Array.isArray(t)?t:[t]).forEach(e=>{this.shapes.findIndex(n=>n.id==e.id)==-1&&(e.on("draging",(n,i)=>{this.enableDrag&&(this.x+=n,this.y+=i,this.emit("draging",n,i,e))}),this.shapes.push(e),this.shapesCountChange=!0)})}getBoundingClientRect(){const t=[],e=[];this.shapes.forEach(l=>{const c=l.getBoundingClientRect();c&&(t.push(c.x,c.x+c.width),e.push(c.y,c.y+c.height))});const n=this.pathd?.getBoundingClientRect();if(n&&(n.width||n.height)&&(t.push(n.x,n.x+n.width),e.push(n.y,n.y+n.height)),t.length==0||e.length==0)return null;const i=Math.min.apply(0,t),r=Math.min.apply(0,e),o=Math.max.apply(0,t),a=Math.max.apply(0,e);return{x:i,y:r,width:o-i,height:a-r}}setAttrs(t,e){typeof t!="string"?(super.setAttr(t),this.shapes.forEach(n=>{n.setAttr(t)})):e&&(super.setAttr(t,e),this.shapes.forEach(n=>{n.setAttr(t,e)}))}sortPathD(){this.shapes=this.shapes.map(t=>{const e=t.initPathD();return{shape:t,perimeter:e.perimeterPoints()}}).sort((t,e)=>e.perimeter-t.perimeter).map(t=>t.shape)}expendFill(t){const e=t.shapes.length,n=this.shapes.length;if(e<n)return t.expendFill(this);for(let i=n;i<e;i++){const o=t.shapes[i].initPathD().polymorphPoints,a=o[0],l=o[1],c=[["M",a,l]];for(let u=2;u+5<o.length;u+=6)c.push(["C",a,l,a,l,a,l]);this.addShape(new Ht({attrs:{...t.shapes[i].getAttrs()},d:c}))}}strokeDashTween(t,e){switch(e?.type){case"sequence":const n=this.shapes.length-1;this.shapes.forEach((a,l)=>{a.strokeDashTween(t,{...e,delay:l,onStart:()=>{l==0&&e?.onGroupStart?.()},onUpdate:()=>{e?.onGroupUpdate?.()},onComplete:()=>{l==n&&e?.onGroupComplete?.()}})});break;case"parallel":default:const i=new qe({frameDuration:t}),r={},o={};this.shapes.forEach((a,l)=>{const c=Ce(a.getTotalLength(),0);r[`offset_${l}`]=c,o[`offset_${l}`]=0,a.setAttr({strokeDasharray:`${c} ${c}`,strokeDashoffset:`${c}`})}),i.addTween(r,o,Object.assign(e||{},{onStart:()=>{e?.onGroupStart?.()},onUpdate:(a,l)=>{for(let c in a){const u=es(c).number;this.shapes[u].setAttr("strokeDashoffset",""+Ce(a[c],2))}e?.onGroupUpdate?.()},onComplete:()=>{e?.onGroupComplete?.()}})),i.play();break}}}const wn=is;class he extends Ht{toX;toY;constructor(t){super(t),this.toX=t?.toX||0,this.toY=t?.toY||0;let e=this.toX-this.x,n=this.toY-this.y;return new Proxy(this,{set(i,r,o,a){switch(r){case"x":i.toX=o+e;break;case"y":i.toY=o+n;break;case"toX":e=o-i.x;break;case"toY":n=o-i.y;break}return Reflect.set(i,r,o,a)}})}toSVGPathData(){return[["m",0,0],["l",this.toX-this.x,this.toY-this.y]]}toCanvasContext(t){t.beginPath(),t.moveTo(0,0),t.lineTo(this.toX-this.x,this.toY-this.y)}intersection(t){const e=new Du({x:this.x,y:this.y,toX:this.toX,toY:this.toY}),n=new Du({x:t.x,y:t.y,toX:t.toX,toY:t.toY});return e.intersection(n)}}class xr extends Ht{cx;cy;toX;toY;isLineThrough;constructor(t){super(t),this.cx=t?.cx||0,this.cy=t?.cy||0,this.toX=t?.toX||0,this.toY=t?.toY||0,this.isLineThrough=typeof t?.isLineThrough=="boolean"?t.isLineThrough:!1}toSVGPathData(){if(this.isLineThrough){const t=this.cx*2-(this.x+this.toX)/2,e=this.cy*2-(this.y+this.toY)/2;return[["m",0,0],["q",t-this.x,e-this.y,this.toX-this.x,this.toY-this.y]]}else return[["m",0,0],["q",this.cx-this.x,this.cy-this.y,this.toX-this.x,this.toY-this.y]]}toCanvasContext(t){if(t.beginPath(),t.moveTo(0,0),this.isLineThrough){const e=this.cx*2-(this.x+this.toX)/2,n=this.cy*2-(this.y+this.toY)/2;t.quadraticCurveTo(e-this.x,n-this.y,this.toX-this.x,this.toY-this.y)}else t.quadraticCurveTo(this.cx-this.x,this.cy-this.y,this.toX-this.x,this.toY-this.y)}}class kg extends wg{currentItem={};items=[];groups=[];globalStyles={};grad={};idtops={};text="";constructor(t){super(t),this.on("tag",(e,n)=>{switch(this.text="",this.currentItem={type:e},e){case"g":this.groups.push(this.currentItem);break}this.processAttrs(e,n)}),this.on("text",e=>{if(this.currentItem.type=="style"){try{const n=Im(e);for(let i of n.stylesheet.rules)for(let r of i.declarations)for(let o of i.selectors)this.globalStyles[o]=this.globalStyles[o]||[],this.globalStyles[o].push(`${r.property}:${r.value}`)}catch{console.error("CAN'T parse css text: "+e)}return}this.text+=e}),this.on("/tag",(e,n)=>{let i=this.groups.length;for(;i--;)if(this.groups[i]!=this.currentItem){let r="",o="";for(let a in this.groups[i])a=="transform"?r=this.groups[i].transform:a=="class"&&this.globalStyles["."+this.groups[i][a]]?o=this.globalStyles["."+this.groups[i][a]].join(";")+";"+o:a=="id"&&this.globalStyles["#"+this.groups[i][a]]?o=this.globalStyles["#"+this.groups[i][a]].join(";")+";"+o:typeof this.currentItem[a]>"u"&&(this.currentItem[a]=this.groups[i][a]);typeof this.currentItem.transform>"u"?this.currentItem.transform=r:this.currentItem.transform+=" "+r,typeof this.currentItem.style>"u"?this.currentItem.style=o:this.currentItem.style=o+this.currentItem.style,this.currentItem.class&&this.globalStyles["."+this.currentItem.class]?this.currentItem.style=this.globalStyles["."+this.currentItem.class].join(";")+";"+this.currentItem.style:this.currentItem.id&&this.globalStyles["#"+this.currentItem.id]&&(this.currentItem.style=this.globalStyles["#"+this.currentItem.id].join(";")+";"+this.currentItem.style),_a(this.currentItem.style,this.currentItem,ba)}switch(this.processAttrs(e,n),e){case"g":this.groups.pop();break;case"cirlce":this.addToItems();break;case"ellipse":this.addToItems();break;case"polygon":this.addToItems();break;case"path":this.addToItems();break;case"line":this.addToItems();break;case"rect":this.addToItems();break;case"image":this.addToItems();break;case"text":this.currentItem.text=this.text,this.currentItem["text-anchor"]=this.currentItem["text-anchor"]||"start",this.addToItems();break}}),this.on("finish",()=>{this.emit("result",this.items)})}parse(){return super.parse(),this.items}processAttrs(t,e){let n=[],i;switch(t){case"svg":let r="",o="";if(e.width&&e.height)r=e.width,o=e.height;else if(e.viewBox){const a=e.viewBox.split(/\s+/gi);a.length==4&&(r=String(parseFloat(a[2])-parseFloat(a[0])),o=String(parseFloat(a[3])-parseFloat(a[1])))}r&&o&&this.items.push({type:"viewbox",width:r,height:o});break;case"line":typeof e.x1=="number"&&typeof e.y1=="number"&&typeof e.x2=="number"&&typeof e.y2=="number"&&(this.currentItem.path="M"+[e.x1,e.y1,e.x2,e.y2]);break;case"stop":i={},e.style&&_a(e.style,i),i.offset=i.offset||e.offset,i.color=i["stop-color"]||e["stop-color"],i.opacity=i["stop-opacity"]||e["stop-opacity"],~(i.offset+"").indexOf("%")?i.offset=parseFloat(i.offset):i.offset=parseFloat(i.offset)*100,i.offset=+i.offset.toFixed(2),this.grad.stops.push(i);break;case"linearGradient":this.grad.angle=(360+va(parseFloat(e.x1),parseFloat(e.y1),parseFloat(e.x2),parseFloat(e.y2),parseFloat(e.x1)+100,parseFloat(e.y1))).toFixed(2),n=[this.grad.angle];for(let a=0,l=this.grad.stops.length;a<l;a++)i=this.grad.stops[a],a&&a!=l-1?n.push(i.color+":"+i.offset):n.push(i.color);this.idtops[this.grad.id]=n.join("-"),this.items.forEach(a=>{a.fillid==this.grad.id&&(a.fill=this.idtops[this.grad.id])});break;case"radialGradient":n=[];for(let a=0,l=this.grad.stops.length;a<l;a++)i=this.grad.stops[a],a&&a!=l-1?n.push(i.color+":"+i.offset):n.push(i.color);this.idtops[this.grad.id]=n.join("-"),this.items.forEach(a=>{a.fillid==this.grad.id&&(a.fill=this.idtops[this.grad.id])});break}for(let r in e){const o=e[r];if(ba.includes(r)&&(this.currentItem[r]=o),r==="id"&&(this.currentItem.type==="linearGradient"&&(this.grad={id:r,stops:[]}),this.currentItem.type==="radialGradient"&&(this.grad={id:r,stops:[]})),r==="style"&&_a(o,this.currentItem,ba),r==="transform"&&(this.currentItem.transform=o+(this.currentItem.transform||" ")),r==="fill"){const a=o.match(/url\(#([^)]+)\)/);if(a){const l=a[1];this.currentItem.fillid=l,this.idtops[l]&&(this.currentItem.fill=this.idtops[l])}}r==="points"&&this.currentItem.type=="polygon"&&(this.currentItem.path="M"+o+"z"),r==="d"&&this.currentItem.type=="path"&&(this.currentItem.path=o),r==="xlink:href"&&this.currentItem.type=="image"&&(this.currentItem.src=o)}}addToItems(){this.items.push(this.currentItem)}}function va(s,t,e,n,i,r){if(typeof i>"u"||typeof r>"u"){const o=s-e,a=t-n;return!o&&!a?0:(180+Math.atan2(-a,-o)*180/Math.PI+360)%360}else return va(s,t,i,r)-va(e,n,i,r)}function _a(s,t,e){const n=(s+"").split(";"),i=/^\s+|\s+$/g;for(let r=0,o=n.length;r<o;r++){let a=n[r].split(":"),l=a[0].replace(i,"").replace(/[A-Z]/g,function(c){return"-"+c.toLowerCase()});(!e||e.includes(l))&&(t[l]=a[1].replace(i,""))}}const ba=["id","class","viewBox","width","height","x","y","cx","cy","r","rx","ry","cursor","opacity","src","fill","fill-opacity","stroke","stroke-dasharray","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","font","font-family","font-size","font-style","font-weight","letter-spacing"];class Pg{app;rootEl;shapes=[];isMouseDown=!1;currentMouseInShape;currentEnableDragMouseInShape;dragDx=0;dragDy=0;constructor(t,e,n){this.app=t,this.rootEl=ue.createSVGElement("svg"),et.empty(this.app.container),et.insert(this.app.container,this.rootEl),e&&n?this.setSize(e,n):(this.setSize(this.app.width,this.app.height),this.app.on("resize",()=>{this.setSize(this.app.width,this.app.height)})),this.app.captureDrag({start:()=>{this.isMouseDown=!0,this.dragDx=0,this.dragDy=0,this.setCursor()},end:()=>{this.isMouseDown=!1,this.dragDx=0,this.dragDy=0,this.setCursor()},move:(i,r)=>{this.currentEnableDragMouseInShape&&(this.dragDx+=r.dx,this.dragDy+=r.dy),this.setCursor()}}),this.app.on("tap",()=>{for(let i of this.shapes)if(this.currentMouseInShape==i){i.emit("clicked");let r=i.parent;for(;r;)r.emit("clicked",i),r=r.parent;break}})}setCursor(){this.currentEnableDragMouseInShape?(this.app.container.style.cursor="grab",this.isMouseDown&&(this.app.container.style.cursor="grabbing")):this.currentMouseInShape?this.app.container.style.cursor="pointer":this.app.container.style.cursor="default"}setSize(t,e){return et.attribute(this.rootEl,{viewBox:`0 0 ${t} ${e}`,width:`${t}`,height:`${e}`}),this}download(){return ue.downloadFromSVGElement(this.rootEl)}_addDrawShape(t){this.shapes.findIndex(e=>e.id==t.id)===-1&&(this.shapes.push(t),t instanceof is&&t.shapes.forEach(e=>{this._addDrawShape(e)}))}path(t){(Array.isArray(t)?t:[t]).forEach(e=>{this._addDrawShape(e)}),this.isMouseDown&&this.currentEnableDragMouseInShape||(this.currentMouseInShape=void 0);for(let e of this.shapes){if(!e.isShow){e.el&&(et.remove(e.el),delete e.el);continue}if(e.frameStart(this.app.mousePoint),e.el||(e instanceof Cr?e.el=this.text(e.text,e.x,e.y,gu(e.getAttrs(),(i,r)=>typeof r=="string")):(e.el=ue.createSvgPath(e.toSVGPathD(),e.id),et.insert(this.rootEl,e.el))),e.followMouse&&(!ar(e.x,this.app.mousePoint.x,5)||!ar(e.y,this.app.mousePoint.y,5))&&e.followTo(this.app.mousePoint),e.targetToAfterDragFree&&(this.isMouseDown||e.runEaseTo({x:e.targetToAfterDragFree.targetX,y:e.targetToAfterDragFree.targetY},{easing:e.targetToAfterDragFree?.easing})),this.isMouseDown&&this.currentEnableDragMouseInShape==e){e.isDragging=!0;const i=this.dragDx,r=this.dragDy;if(this.dragDx=0,this.dragDy=0,i||r){if(e.x+=i,e.y+=r,e.alongPath){const o=e.alongPath.closestPoint(e.x,e.y);e.x=o.point.x-e.cX,e.y=o.point.y-e.cY}e.emit("draging",i,r)}}else e.isDragging=!1;e instanceof Cr&&(e.setAttr("x",String(e.x)),e.setAttr("y",String(e.y))),e.frameUpdate(this.app.mousePoint);const n=e.toSVGPathD();if(this.attr(e,gu(e.getAttrs(),(i,r)=>typeof r=="string")),this.attr(e,"d",n),!this.currentMouseInShape){const i=e.isPointInPath(this.app.mousePoint.x,this.app.mousePoint.y,this.rootEl)||e.isPointInStroke(this.app.mousePoint.x,this.app.mousePoint.y,this.rootEl)||!1;e.isMouseIn=i,i&&(this.currentMouseInShape=e,e.enableDrag&&(this.currentEnableDragMouseInShape=e))}e.frameEnd(this.app.mousePoint)}this.currentMouseInShape||(this.currentEnableDragMouseInShape=void 0)}delete(t){(Array.isArray(t)?t:[t]).forEach(e=>{e.el&&et.remove(e.el),delete e.el,this.shapes=this.shapes.filter(n=>n.id!==e.id)})}clear(){this.shapes.forEach(t=>{t.el&&et.remove(t.el),delete t.el}),et.empty(this.rootEl),this.shapes=[]}attr(t,e,n){const i=t.el||t;return i instanceof SVGElement?e===void 0&&n===void 0?et.attribute(i):typeof e=="string"&&n===void 0?et.attribute(i,Ve(e))||"":(typeof e=="object"?et.attribute(i,e):typeof e=="string"&&n!==void 0&&et.attribute(i,Ve(e),n),this):this}circle(t,e,n){return this.path(new Wt({x:t,y:e,radius:n}))}circleEl(t,e,n){const i=ue.createSVGElement("circle",{cx:String(t),cy:String(e),r:String(n)});return et.insert(this.rootEl,i),i}ellipse(t,e,n,i){return this.path(new Uu({x:t,y:e,rx:n,ry:i}))}ellipseEl(t,e,n,i){const r=ue.createSVGElement("ellipse",{cx:String(t),cy:String(e),rx:String(n),ry:String(i)});return et.insert(this.rootEl,r),r}rect(t,e,n,i){return this.path(new ye({x:t,y:e,width:n,height:i}))}rectEl(t,e,n,i){const r=ue.createSVGElement("rect",{x:String(t),y:String(e),width:String(n),height:String(i)});return et.insert(this.rootEl,r),r}image(t,e,n,i,r){}text(t,e,n,i){const r=ue.createSVGElement("text",{x:String(e),y:String(n)});return et.html(r,t),this.attr(r,Object.assign({"alignment-baseline":"middle"},i)),et.insert(this.rootEl,r),r}textWithTspan(t,e,n,i){const r=i?.["line-height"]||"1.2em",o=ue.createSVGElement("text",{x:String(e),y:String(n)});return t.split(`
54
- `).forEach((a,l)=>{if(a.trim()){const c=ue.createSVGElement("tspan",{x:String(e),dy:l>0?r:"0"});et.html(c,a),et.insert(o,c),this.attr(c,Object.assign({"alignment-baseline":"middle"},i))}}),et.insert(this.rootEl,o),o}}class Og extends wn{svgWidth=0;svgHeight=0;width=0;height=0;constructor(t){super(t);const e=new kg(t.svg).parse();for(let n=0,i=e.length;n<i;n++){const r=e[n];if(r.type=="viewbox"&&r.width&&r.height){if(this.svgWidth=parseFloat(r.width),this.svgHeight=parseFloat(r.height),t.width){const u=this.svgWidth/this.svgHeight;this.width=t.width,this.height=this.width/u}else this.width=this.svgWidth,this.height=this.svgHeight;continue}if(r.type!="path"||!ue.isSVGPath(r.path))continue;const o={};for(const u in r)u==="type"||u==="path"||u==="transform"||(o[u]=r[u]);const a=ue.absolutizeSVGPath(ue.parseSVGPath(r.path)),l=[];let c=[];for(let u=0,h=a.length;u<h;u++){const d=a[u];c.push(d),d[0].toLowerCase()=="z"&&(l.push(c),c=[])}c.length&&l.push(c),l.forEach(u=>{const h=zu(r.transform??"");h.scale(this.width&&this.svgWidth?this.width/this.svgWidth:1),this.addShape(new Ht({...t,attrs:{...o,...t?.attrs||{}},d:u,originMatrix:h}))})}}shapeInit(){this.trim()}}class Wt extends Ht{radius;constructor(t){super(t),this.radius=t?.radius||0}getBoundingClientRect(){return{x:this.x-this.radius,y:this.y-this.radius,width:this.radius*2,height:this.radius*2}}toSVGPathData(){return this.radius?[["m",0,-this.radius],["a",this.radius,this.radius,0,1,1,0,2*this.radius],["a",this.radius,this.radius,0,1,1,0,-2*this.radius],["z"]]:[["m",0,0]]}toCanvasContext(t){t.beginPath(),t.arc(0,0,this.radius,0,Math.PI*2,!0),t.closePath()}eq(t){return this.x===t.x&&this.y===t.y&&this.radius===t.radius&&this.mass===t.mass}midPointBtw(t){return{x:this.x+(t.x-this.x)/2,y:this.y+(t.y-this.y)/2}}length(){return na(this.x,this.y)}scalar(t){return this.x*=t,this.y*=t,this}normalize(t=1){const e=this.length();if(e){const n=t/e;this.scalar(n)}return this}clamp(t){const e=this.length();return e&&e>t&&this.scalar(t/e),this}cross(t){const e=this.x,n=this.y;return{x:n*t.x-e*t.y,y:e*t.y-n*t.x}}multiply(t){return{x:this.x*t.x,y:this.y*t.y}}div(t){return{x:this.x/t.x,y:this.y/t.y}}add(t){return{x:this.x+t.x,y:this.y+t.y}}sub(t){return{x:this.x-t.x,y:this.y-t.y}}dot(t){return this.x*t.x+this.y*t.y}reflect(t){const e=this.dot(t);return{x:this.x-2*e*t.x,y:this.y-2*e*t.y}}checkCollision(t){const e=t.x-this.x,n=t.y-this.y;if(Math.sqrt(e*e+n*n)<this.radius+t.radius){const r=Math.atan2(n,e),o={x:0,y:0},a=ns(-r,e,n),l=ns(-r,this.vx,this.vy),c=ns(-r,t.vx,t.vy),u=l.x-c.x;l.x=((this.mass-t.mass)*l.x+2*t.mass*c.x)/(this.mass+t.mass),c.x=u+l.x;const h=Math.abs(l.x)+Math.abs(c.x),d=this.radius+t.radius-Math.abs(o.x-a.x);o.x+=l.x/h*d,a.x+=c.x/h*d;const m=ns(r,o.x,o.y),f=ns(r,a.x,a.y);t.x=this.x+f.x,t.y=this.y+f.y,this.x=this.x+m.x,this.y=this.y+m.y;const E=ns(r,l.x,l.y),S=ns(r,c.x,c.y);this.vx=E.x,this.vy=E.y,t.vx=S.x,t.vy=S.y}}checkWall(t){const e=typeof t?.bounce=="number"?t.bounce:-1,n=t.wall.x,i=t.wall.y,r=t.wall.x+t.wall.width,o=t.wall.y+t.wall.height;this.x+this.radius>r?(this.x=r-this.radius,this.vx*=e):this.x-this.radius<n&&(this.x=n+this.radius,this.vx*=e),this.y+this.radius>o?(this.y=o-this.radius,this.vy*=e):this.y-this.radius<i&&(this.y=i+this.radius,this.vy*=e)}}class ju extends Ht{points;isStraight;constructor(t){if(super(t),this.points=t.points,this.points.length<3)throw new Error("points length must >= 3");this.isStraight=typeof t?.isStraight=="boolean"?t.isStraight:!0}toSVGPathData(){const t=[],e=this.points.length;if(this.isStraight){t.push(["M",this.points[0].x,this.points[0].y]);for(let n=1;n<=e-1;n++)t.push(["L",this.points[n].x,this.points[n].y]);t.push(["Z"])}else{const n=(this.points[0].x+this.points[e-1].x)/2,i=(this.points[0].y+this.points[e-1].y)/2;t.push(["M",n,i]);for(let r=0;r<e-1;r++){const o=(this.points[r].x+this.points[r+1].x)/2,a=(this.points[r].y+this.points[r+1].y)/2;t.push(["Q",this.points[r].x,this.points[r].y,o,a])}t.push(["Q",this.points[e-1].x,this.points[e-1].y,n,i])}return t}toCanvasContext(t){t.beginPath();const e=this.points.length;if(this.isStraight){t.moveTo(this.points[0].x,this.points[0].y);for(let n=1;n<=e-1;n++)t.lineTo(this.points[n].x,this.points[n].y);t.closePath()}else{const n=(this.points[0].x+this.points[e-1].x)/2,i=(this.points[0].y+this.points[e-1].y)/2;t.moveTo(n,i);for(let r=0;r<e-1;r++){const o=(this.points[r].x+this.points[r+1].x)/2,a=(this.points[r].y+this.points[r+1].y)/2;t.quadraticCurveTo(this.points[r].x,this.points[r].y,o,a)}t.quadraticCurveTo(this.points[e-1].x,this.points[e-1].y,n,i)}}isContainPoint(t,e){const n=this.points.length;let i=!1;const r=2e-10;for(let o=0,a=n-1;o<n;a=o,o++){const l=this.points[o].x,c=this.points[o].y,u=this.points[a].x,h=this.points[a].y;if(l===t&&c===e||u===t&&h===e||e===c&&e===h)return!0;if(e>=c&&e<h||e<c&&e>=h){const d=(u-l)/(h-c),m=l+d*(e-c);if(m===t||Math.abs(m-t)<r)return!0;m>t&&(i=!i)}}return i}[Symbol.iterator](){let t=-1;return{next:()=>({value:t<=this.points.length-1?this.points[++t]:void 0,done:t>=this.points.length})}}}class ye extends Ht{width;height;borderRadius;constructor(t){super(t),this.width=t.width,this.height=t.height,this.borderRadius=t.borderRadius||0}static fromCubicBezier(t,e,n,i,r,o,a,l){const c=new rn({x:t,y:e,c1x:n,c1y:i,c2x:r,c2y:o,toX:a,toY:l});return new ye(c.getBoundingClientRect())}getBoundingClientRect(){return{x:this.x,y:this.y,width:this.width,height:this.height}}toSVGPathData(){return this.borderRadius?[["m",this.borderRadius,0],["l",this.width-this.borderRadius*2,0],["a",this.borderRadius,this.borderRadius,0,0,1,this.borderRadius,this.borderRadius],["l",0,this.height-this.borderRadius*2],["a",this.borderRadius,this.borderRadius,0,0,1,-this.borderRadius,this.borderRadius],["l",this.borderRadius*2-this.width,0],["a",this.borderRadius,this.borderRadius,0,0,1,-this.borderRadius,-this.borderRadius],["l",0,this.borderRadius*2-this.height],["a",this.borderRadius,this.borderRadius,0,0,1,this.borderRadius,-this.borderRadius],["z"]]:[["m",0,0],["l",this.width,0],["l",0,this.height],["l",-this.width,0],["z"]]}toCanvasContext(t){t.beginPath(),this.borderRadius<=0?t.rect(0,0,this.width,this.height):(t.moveTo(0,this.borderRadius),t.lineTo(0,this.height-this.borderRadius),t.quadraticCurveTo(0,this.height,this.borderRadius,this.height),t.lineTo(this.width-this.borderRadius,this.height),t.quadraticCurveTo(this.width,this.height,this.width,this.height-this.borderRadius),t.lineTo(this.width,this.borderRadius),t.quadraticCurveTo(this.width,0,this.width-this.borderRadius,0),t.lineTo(this.borderRadius,0),t.quadraticCurveTo(0,0,0,this.borderRadius)),t.closePath()}eq(t){return this.x===t.x&&this.y===t.y&&this.width===t.width&&this.height===t.height&&this.borderRadius===t.borderRadius}isIntersectRect(t){return!(this.x+this.width<t.x||t.x+t.width<this.x||this.y+this.height<t.y||t.y+t.height<this.y)}isContainPoint(t,e){return t>=this.x&&t<=this.x+this.width&&e>=this.y&&e<=this.y+this.height}}class Uu extends Ht{rx;ry;constructor(t){super(t),this.rx=t?.rx||0,this.ry=t?.ry||0}getBoundingClientRect(){return{x:this.x-this.rx,y:this.y-this.ry,width:this.rx*2,height:this.ry*2}}toSVGPathData(){return[["m",0,-this.ry],["a",this.rx,this.ry,0,1,1,0,2*this.ry],["a",this.rx,this.ry,0,1,1,0,-2*this.ry],["z"]]}toCanvasContext(t){t.beginPath(),t.ellipse(0,0,this.rx,this.ry,0,0,2*Math.PI,!0),t.closePath()}}class wr extends Ht{constructor(t){super(t)}toSVGPathData(){return[["m",-50,-25],["l",50,0],["l",0,-25],["l",50,50],["l",-50,50],["l",0,-25],["l",-50,0],["l",0,-50],["z"]]}toCanvasContext(t){t.beginPath(),t.moveTo(-50,-25),t.lineTo(0,-25),t.lineTo(0,-50),t.lineTo(50,0),t.lineTo(0,50),t.lineTo(0,25),t.lineTo(-50,25),t.lineTo(-50,-25),t.closePath()}}class xa extends Ht{constructor(t){super(t)}toSVGPathData(){return[["m",4,24],["l",4,-8],["l",6,-6],["l",1,-10],["l",-6,-10],["l",-7,10],["l",-4,0],["l",-7,-10],["l",-6,10],["l",1,10],["l",6,6],["l",4,8],["z"]]}toCanvasContext(t){t.beginPath(),t.moveTo(4,24),t.lineTo(8,16),t.lineTo(14,10),t.lineTo(15,0),t.lineTo(9,-10),t.lineTo(2,0),t.lineTo(-2,0),t.lineTo(-9,-10),t.lineTo(-15,0),t.lineTo(-14,10),t.lineTo(-8,16),t.lineTo(-4,24),t.closePath()}}class Ig extends Ht{rx;ry;constructor(t){super(t),this.rx=t?.rx||10,this.ry=t?.ry||10}toSVGPathData(){return[["m",0,0],["l",this.rx*2.4,-this.ry*3.14],["a",this.rx/2,this.ry/2,0,0,0,-this.rx*2.4,-this.ry*1.5],["a",this.rx/2,this.ry/2,0,0,0,-this.rx*2.4,this.ry*1.5],["l",this.rx*2.4,this.ry*3.14],["z"]]}}class Dg extends Ht{rx;ry;constructor(t){super(t),this.rx=t?.rx??50,this.ry=t?.ry??50}toSVGPathData(){return[["m",0,0+this.ry*.3],["C",0,0,0-this.rx/2,0,0-this.rx/2,0+this.ry*.3],["C",0-this.rx/2,0+(this.ry+this.ry*.3)/2,0,0+(this.ry+this.ry*.3)/1.4,0,0+this.ry],["C",0,0+(this.ry+this.ry*.3)/1.8,0+this.rx/2,0+(this.ry+this.ry*.3)/2,0+this.rx/2,0+this.ry*.3],["C",0+this.rx/2,0,0,0,0,0+this.ry*.3],["z"]]}}class Rg extends Ht{r;constructor(t){super(t),this.r=t?.r||20}toSVGPathData(){const t=[["m",0,-this.r]];for(let e=0;e<6;e+=1){const n=288+e*144,i=this.r*Math.cos(Lt(n)),r=this.r*Math.sin(Lt(n));t.push(["l",i,r])}return t}}class Ag extends Ht{constructor(t){super(t)}toSVGPathData(){return[["M",0,0],["C",15,0,15,-40,5,-30],["L",0,0],["C",-15,0,-15,-40,-5,-30],["L",0,0],["a",15,15,0,1,1,0,30],["a",15,15,0,1,1,0,-30]]}}class Mg extends Ht{constructor(t){super(t),this.originD="m5.068 9.267-3.08-.77a.512.512 0 0 1 0-.994l3.08-.77a2.289 2.289 0 0 0 1.665-1.665l.77-3.08a.512.512 0 0 1 .994 0l.77 3.08c.205.82.845 1.46 1.665 1.665l3.08.77a.512.512 0 0 1 0 .994l-3.08.77a2.29 2.29 0 0 0-1.665 1.665l-.77 3.08a.512.512 0 0 1-.994 0l-.77-3.08a2.289 2.289 0 0 0-1.665-1.665Z"}}class Ng extends wn{constructor(t){super(t);const e=new he({...t,x:this.x,y:this.y,toX:this.x,toY:this.y-140-Math.random()*20}),n=30+Math.random()*30,i=new he({...t,x:this.x,y:this.y-n,diffYInGroup:-n,toX:this.x+Math.random()*80-40,toY:this.y-100-Math.random()*40}),r=60+Math.random()*40,o=new he({...t,x:this.x,y:this.y-r,diffYInGroup:-r,toX:this.x+Math.random()*60-30,toY:this.y-110-Math.random()*20});this.addShape([e,i,o])}}class Cr extends Ht{text;width=0;height=0;constructor(t){super(t),this.text=t.text,this.setAttr({fontSize:"10px",fontFamily:'system-ui, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif',emojiFontFamily:'"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", "EmojiOne Color", "Android Emoji", "Twemoji Mozilla", "system emoji", sans-serif',fill:"#666666",stroke:"none","alignment-baseline":"middle",textAnchor:"start",...this.getAttrs()});const e=es(this.getAttr("fontSize"),10).number,n=es(this.getAttr("fontWeight"),400).number,i=et.measureText(this.text,e,n);this.width=i.width,this.height=i.height}getBoundingClientRect(){return null}toSVGPathData(){return[]}toCanvasContext(t){t.fillText(this.text,0,0)}}class Lg extends wn{text;bg;padding;offset;isShow;textShape;bgShape;constructor(t){super(t),this.text=t.text,this.bg=t.bg||"rgba(0,0,0,0.5)",this.padding=t.padding||4,this.offset=t.offset||20,this.isShow=typeof t?.isShow=="boolean"?t?.isShow:!1,this.textShape=new Cr({...t,x:this.x+this.offset,y:this.y+this.offset,text:this.text,attrs:{...this.getAttrs(),fill:Ae(this.bg).opposite(!0).toString(),textAnchor:"start"}}),this.bgShape=new ye({...t,x:this.textShape.x-this.padding,y:this.textShape.y-this.textShape.height/2-this.padding,width:this.textShape.width+this.padding*2,height:this.textShape.height+this.padding*2,attrs:{...this.getAttrs(),fill:this.bg}}),this.addShape([this.bgShape,this.textShape])}shapeInit(){Uo(()=>{this.textShape.x=this.x+this.offset,this.textShape.y=this.y+this.offset,this.textShape.text=this.text,this.textShape.isShow=this.isShow,this.bgShape.x=this.textShape.x-this.padding,this.bgShape.y=this.textShape.y-this.textShape.height/2-this.padding,this.bgShape.width=this.textShape.width+this.padding*2,this.bgShape.height=this.textShape.height+this.padding*2,this.bgShape.isShow=this.isShow})}}class Hu extends is{radius;expandRaidus;startDegree;endDegree;text="";defaultShowText;tip="";p1=new Wt;p1Offset=10;p2=new Wt;p2Offset=40;p3=new Wt;p3Offset=10;p4=new Wt;p4Offset=10;direction=1;sectorArc;line12;line23;textShape;tipShape;constructor(t){super(t),this.radius=t.radius,this.expandRaidus=t.expandRaidus??20,this.startDegree=t.startDegree,this.endDegree=t.endDegree,this.text=t.text||"",this.defaultShowText=typeof t?.defaultShowText=="boolean"?t.defaultShowText:!!this.text,this.tip=t.tip||"",this.sectorArc=new Fg({x:this.x,y:this.y,radius:this.radius,expandRaidus:this.expandRaidus,startDegree:this.startDegree,endDegree:this.endDegree,attrs:Object.assign({...this.getAttrs()},{strokeWidth:"0"})}),this.addShape(this.sectorArc);const e=Object.assign({...this.getAttrs()},{fill:"none"});this.line12=new he({x:this.p1.x,y:this.p1.y,toX:this.p2.x,toY:this.p2.y,attrs:{...e},isShow:this.defaultShowText}),this.line23=new he({x:this.p2.x,y:this.p2.y,toX:this.p3.x,toY:this.p3.y,attrs:{...e},isShow:this.defaultShowText}),this.textShape=new Cr({x:this.p4.x,y:this.p4.y,text:this.text,attrs:{stroke:e.stroke,textAnchor:this.direction==1?"start":"end"},isShow:this.defaultShowText}),this.text&&(this.addShape(this.line12),this.addShape(this.line23),this.addShape(this.textShape)),this.tipShape=new Lg({x:0,y:0,text:this.tip,isShow:!1}),this.tip&&this.addShape(this.tipShape)}frameUpdate(t){this.text&&!this.defaultShowText&&(this.line12.isShow=this.sectorArc.isMouseIn,this.line23.isShow=this.sectorArc.isMouseIn,this.textShape.isShow=this.sectorArc.isMouseIn);const e=this.startDegree+(this.endDegree-this.startDegree)/2,{dx:n,dy:i}=gs(Lt(e),this.sectorArc.radius+this.p1Offset);this.p1.x=this.x+n,this.p1.y=this.y+i;const{dx:r,dy:o}=gs(Lt(e),this.sectorArc.radius+this.p1Offset+this.p2Offset);this.p2.x=this.x+r,this.p2.y=this.y+o,this.line12.x=this.p1.x,this.line12.y=this.p1.y,this.line12.toX=this.p2.x,this.line12.toY=this.p2.y,this.direction=this.p1.x>this.x?1:-1,this.p3.x=this.p2.x+this.direction*this.p3Offset,this.p3.y=this.p2.y,this.p4.x=this.p3.x+this.direction*this.p4Offset,this.p4.y=this.p3.y,this.line23.x=this.p2.x,this.line23.y=this.p2.y,this.line23.toX=this.p3.x,this.line23.toY=this.p3.y,this.textShape.x=this.p4.x,this.textShape.y=this.p4.y,this.textShape.setAttr("textAnchor",this.direction==1?"start":"end"),this.sectorArc.isMouseIn?(this.tipShape.isShow=!0,this.tipShape.x=t.x,this.tipShape.y=t.y):(this.tipShape.isShow=!1,this.tipShape.x=t.x,this.tipShape.y=t.y)}}class Fg extends Ht{radius;realRadius;expandRaidus;startDegree;endDegree;vr;ar;bounce;durationTime;status;constructor(t){super(t),this.radius=0,this.realRadius=t.radius,this.expandRaidus=t.expandRaidus??20,this.startDegree=t.startDegree,this.endDegree=t.endDegree,this.vr=0,this.ar=.03,this.bounce=.6,this.durationTime=8.333333333333334,this.status=0}frameUpdate(){this.status==0&&this.radius<this.realRadius?(this.expand(this.realRadius),this.radius>=this.realRadius&&(this.status=1)):this.isMouseIn?this.expand(this.realRadius+this.expandRaidus):this.shrink(this.realRadius)}expand(t){this.vr+=this.ar,this.radius+=this.vr*this.durationTime,this.radius>t&&(this.radius=t,this.vr*=-this.bounce)}shrink(t){this.vr-=this.ar,this.radius+=this.vr*this.durationTime,this.radius<t&&(this.radius=t,this.vr*=-this.bounce)}toSVGPathData(){const{dx:t,dy:e}=gs(Lt(this.startDegree),this.radius),{dx:n,dy:i}=gs(Lt(this.endDegree),this.radius);return[["m",0,0],["l",t,e],["a",this.radius,this.radius,0,Math.abs(this.endDegree-this.startDegree)>=180?1:0,1,n-t,i-e],["z"]]}toCanvasContext(t){t.beginPath(),t.moveTo(0,0),t.arc(0,0,this.radius,Lt(this.startDegree),Lt(this.endDegree),!1),t.closePath()}containPoint(t,e){const n=ia(this.x,this.y,t,e),i=Re(bn(this.x,this.y,t,e));return n<=this.radius&&i>=this.startDegree&&i<=this.endDegree}}class $g extends is{showFlame;ship;flame;constructor(t){super(t),this.showFlame=typeof t?.showFlame=="boolean"?t.showFlame:!1,this.ship=new Ht({...t,d:[["M",10,0],["L",-10,10],["L",-5,0],["L",-10,-10],["L",10,0],["Z"]]}),this.addShape(this.ship),this.flame=new Ht({...t,isShow:this.showFlame,d:[["m",-10,-5],["l",-7.5,5],["l",7.5,5],["z"]]}),this.addShape(this.flame)}shapeInit(){Uo(()=>{this.ship.x=this.x,this.ship.y=this.y,this.flame.x=this.x,this.flame.y=this.y,this.flame.isShow=this.showFlame})}}class Wu extends wn{value;backgroundRect;occupyRect;handle;constructor(t){super(t);const e=t?.min||0,n=t?.max||100,i=t?.step||1,r=bu(e,n,i);this.value=r(typeof t?.defaultValue=="number"?qt(t.defaultValue,e,n):e);const o=this.value/(n-e),a=t?.barWidth||100,l=t?.barHeight||4,c=t?.handleRadius||10,u=l*.5,h=t?.barColor||Ot.colorGrayF5,d=t?.handleColor||Ot.colorPrimary;this.backgroundRect=new ye({x:this.x,y:this.y,width:a,height:l,borderRadius:u,attrs:{fill:h},enableDrag:!1,independentTransformInGroup:!0}),this.addShape(this.backgroundRect),this.occupyRect=new ye({x:this.x,y:this.y,width:a*o,height:l,borderRadius:u,attrs:{fill:d},enableDrag:!1,independentTransformInGroup:!0}),this.addShape(this.occupyRect),this.handle=new Wt({x:this.x+a*o,y:this.y+u,diffXInGroup:a*o,diffYInGroup:u,radius:c,alongPath:new Le({x:this.x,y:this.y+u,d:[["m",0,0],["l",a,0]]}),attrs:{fill:d},enableDrag:!0,independentTransformInGroup:!0}),this.addShape(this.handle),this.handle.on("draging",m=>{this.occupyRect.width=qt(this.occupyRect.width+m,0,a),this.value=r((this.handle.x-this.x)/a*(n-e)+e),this.emit("change",this.value)})}}class Cn extends wn{width;height;cornerRadius;controlPoint;mainRect;rightPoint;constructor(t){super(t),this.width=t.width,this.height=t.height,this.cornerRadius=this.height/2,this.controlPoint=new Wt({...t,x:this.x,y:this.y,radius:2}),this.forceSetCXY(this.controlPoint.cX,this.controlPoint.cY),this.mainRect=new ye({...t,x:this.x-this.cornerRadius,y:this.y-this.cornerRadius,diffXInGroup:-this.cornerRadius,diffYInGroup:-this.cornerRadius,width:this.width+this.cornerRadius*2,height:this.height,borderRadius:this.cornerRadius}),this.rightPoint=new Wt({...t,x:this.x+this.width,y:this.y,diffXInGroup:this.width,radius:2}),this.addShape([this.mainRect,this.controlPoint,this.rightPoint])}getPin(){return{x:this.controlPoint.x+Math.cos(Lt(this.controlPoint.degree))*this.width,y:this.controlPoint.y+Math.sin(Lt(this.controlPoint.degree))*this.width}}}class wa extends Ht{extendDegree;radius;startDegree;endDegree;diffDegree;constructor(t){super(t),this.extendDegree=t?.extendDegree||0,this.x=(t.x||0)+t.width/2;const e=Math.min(t.width/2,t.height)-t.lineWidth;this.radius=e-e*Math.abs(Math.sin(Lt(this.extendDegree))),this.y=(t.y||0)+t.height-t.lineWidth-this.radius*Math.abs(Math.sin(Lt(this.extendDegree))),this.diffDegree=t.endDegree-t.startDegree,this.startDegree=180+t.startDegree-this.extendDegree,this.endDegree=180+t.endDegree+this.extendDegree,this.setAttr({"stroke-linecap":"round","stroke-width":String(t.lineWidth),stroke:t.color||"none"})}setPercent(t){this.endDegree=this.startDegree+(this.diffDegree+this.extendDegree*2)*t}toSVGPathData(){const{dx:t,dy:e}=gs(Lt(this.startDegree),this.radius),{dx:n,dy:i}=gs(Lt(this.endDegree),this.radius);return[["m",t,e],["a",this.radius,this.radius,0,Math.abs(this.endDegree-this.startDegree)>=180?1:0,1,n-t,i-e]]}toCanvasContext(t){t.beginPath(),t.arc(0,0,this.radius,Lt(this.startDegree),Lt(this.endDegree),!1)}}let qu=class extends wn{percent=0;ringBg;ring;lines=[];bgColor;startColor;endColor;indicatorLineCount;constructor(t){super(t);const e=t?.startDegree||0,n=t?.endDegree||180,i=t?.extendDegree||15,r=t?.lineWidth||12;this.bgColor=t?.bgColor||"#B3C6E7",this.startColor=t?.startColor||"#5A82F0",this.endColor=t?.endColor||"#66B3FF",this.percent=t?.percent||0,this.indicatorLineCount=22+1;const o=20,a=2,l=17;this.ringBg=new wa({...t,x:t?.x,y:t?.y,width:t.width,height:t.height,startDegree:e,endDegree:n,extendDegree:i,lineWidth:r,color:this.bgColor}),this.addShape(this.ringBg),this.ring=new wa({...t,x:t?.x,y:t?.y,width:t.width,height:t.height,startDegree:e,endDegree:n,extendDegree:i,lineWidth:r}),this.addShape(this.ring);const c=this.ringBg.y-this.ringBg.radius+o;for(let u=0;u<this.indicatorLineCount;u++)this.lines.push(new he({...t,centerX:this.ringBg.x,centerY:this.ringBg.y,x:this.ringBg.x,y:c,toX:this.ringBg.x,toY:c+l,degree:this.ringBg.startDegree+90+(n-e+i*2)/(this.indicatorLineCount-1)*u,attrs:{"stroke-linecap":"round","stroke-width":String(a),stroke:this.bgColor}}));this.addShape(this.lines)}setPercent(t){this.percent=t}shapeInit(){this.on("draging",(t,e,n)=>{this.shapes.forEach(i=>{i!=n&&(i.x+=t,i.y+=e)})})}frameUpdate(t,e){const n=this.ringBg.radius-this.ringBg.radius*Math.cos(Math.PI*this.percent),i=this.ringBg.radius*Math.sin(Math.PI*this.percent);if(e){const r=e.createLinearGradient(-this.ringBg.radius,0,-this.ringBg.radius+n,-i,{0:this.startColor,1:this.endColor});this.ring.setAttr({stroke:r})}else this.ring.setAttr({stroke:this.startColor});this.ring.setPercent(this.percent);for(let r=0;r<this.indicatorLineCount;r++){const o=r/(this.indicatorLineCount-1)<=this.percent;this.lines[r].setAttr({stroke:o&&e?e.createLinearGradient(0,0,this.lines[r].toX-this.lines[r].x,this.lines[r].toY-this.lines[r].y,{0:this.startColor,1:this.endColor}):o?this.startColor:this.bgColor})}}};class Vg extends is{fettis=[];constructor(t,e,n){super();const{shape:i,x:r,y:o,particleCount:a,angle:l,spread:c,startVelocity:u,decay:h,gravity:d,drift:m,ticks:f,colors:E,scalar:S,flat:_}=Object.assign({shape:ye,x:.5,y:.6,particleCount:100,angle:90,spread:70,startVelocity:45,decay:.9,gravity:1,drift:0,ticks:200,colors:Sg,scalar:1,flat:!1},n||{}),C=Lt(l),y=Lt(c);let p=a;for(;p--;){const x=E[p%E.length],b=new i({x:t*r,y:e*o,width:10,height:10,scalar:S,attrs:{fill:x},independentTransformInGroup:!0});this.addShape(b),this.fettis.push({shape:b,wobble:Math.random()*10,wobbleSpeed:Math.min(.11,Math.random()*.1+.05),velocity:u*.5+Math.random()*u,angle2D:-C+(.5*y-Math.random()*y),tiltAngle:(Math.random()*.5+.25)*Math.PI,tick:0,totalTicks:f,decay:h,drift:m,random:Math.random()+2,tiltSin:0,tiltCos:0,wobbleX:0,wobbleY:0,gravity:d*3,scalar:S,flat:_,color:Ae(x)})}}frameUpdate(t){this.fettis.length&&(this.fettis=this.fettis.filter(e=>{e.shape.x+=Math.cos(e.angle2D)*e.velocity+e.drift,e.shape.y+=Math.sin(e.angle2D)*e.velocity+e.gravity,e.velocity*=e.decay,e.flat?(e.wobble=0,e.wobbleX=e.shape.x+10*e.scalar,e.wobbleY=e.shape.y+10*e.scalar,e.tiltSin=0,e.tiltCos=0,e.random=1):(e.wobble+=e.wobbleSpeed,e.wobbleX=e.shape.x+10*e.scalar*Math.cos(e.wobble),e.wobbleY=e.shape.y+10*e.scalar*Math.sin(e.wobble),e.tiltAngle+=.1,e.tiltSin=Math.sin(e.tiltAngle),e.tiltCos=Math.cos(e.tiltAngle),e.random=Math.random()+2);const n=e.tick++/e.totalTicks,i=e.shape.x+e.random*e.tiltCos,r=e.shape.y+e.random*e.tiltSin,o=e.wobbleX+e.random*e.tiltCos,a=e.wobbleY+e.random*e.tiltSin;return e.shape.setAttr("fill",e.color.setAlpha(1-n).toString()),e.shape.degree=Re(Math.PI/10*e.wobble),e.shape.scalarX=Math.abs(o-i)*.1,e.shape.scalarY=Math.abs(a-r)*.1,e.tick<e.totalTicks}))}}class Me{shapes;constructor(t){this.shapes=t}run(t){this.shapes.forEach(n=>{n.run(),t?.wall&&n.checkWall({wall:t.wall,bounce:t.bounce})});const e=this.shapes.length;for(let n=0,i=e-1;n<i;n++)for(let r=n+1;r<e;r++)this.shapes[n].checkCollision(this.shapes[r])}gravitate(){const t=this.shapes.length;this.shapes.forEach((e,n)=>{e.run();for(let i=n+1;i<t;i++)e.checkCollision(this.shapes[i]),e.gravitateTo(this.shapes[i])})}springChain(t){this.shapes.forEach((e,n)=>{n>0&&e.runSpringTo(this.shapes[n-1],t)})}springConnect(t){const e=Ns(t?.springLength,100);this.shapes.forEach(n=>{n.isDragging||this.shapes.filter(i=>i.id!==n.id).forEach(i=>{const r=bn(n.x,n.y,i.x,i.y);n.runSpringTo({x:i.x-Math.cos(r)*e,y:i.y-Math.sin(r)*e},t)})})}springMass(t,e){const n=this.shapes.length,i=[];return this.shapes.forEach((r,o)=>{r.run(e),r.x>t.x+t.width?r.x=t.x:r.x<t.x&&(r.x=t.x+t.width),r.y>t.y+t.height?r.y=t.y:r.y<t.y&&(r.y=t.y+t.height);for(let a=o+1;a<n;a++)i.push([r.x,r.y,this.shapes[a].x,this.shapes[a].y,r.springMassTo(this.shapes[a],e)])}),i}polymorph(){if(this.shapes.length<2)throw new Error("shapes个数必须大于等于2");const t=this.shapes.length-1,e=new Array(t);for(let i=0;i<t;i++){const r=this.shapes[i].initPathD();this.shapes[i].frameStart();const o=this.shapes[i+1].initPathD();this.shapes[i+1].frameStart();const a=Math.max(r.polymorphPoints.length,o.polymorphPoints.length);e[i]=Le.getPathInterpolator(r.expendFill(a),o.expendFill(a))}const n=new Ht({d:e[0](0)});return i=>{const r=Ce(t*i,6),o=Math.min(Math.floor(r),t-1),a=Ce(r-o,6);n.originD=e[o](a);const l=this.shapes[o].getAttr("fill","none"),c=this.shapes[o+1].getAttr("fill","none");typeof l=="string"&&typeof c=="string"&&n.setAttr("fill",Ct.gradient(l,c,a).toString());const u=this.shapes[o].getAttr("stroke","none"),h=this.shapes[o+1].getAttr("stroke","none");return typeof u=="string"&&typeof h=="string"&&n.setAttr("stroke",Ct.gradient(u,h,a).toString()),n}}polymorphGroup(){if(this.shapes.length<2)throw new Error("shapes个数必须大于等于2");let t=0,e;const n=[];this.shapes.forEach(a=>{let l;a instanceof is?(l=a,l.sortPathD()):(l=new is,l.addShape(a)),n.push(l),t<l.shapes.length&&(t=l.shapes.length,e=l)}),n.forEach(a=>{a!==e&&a.expendFill(e)});const i=[];n.forEach((a,l)=>{a.shapes.forEach((c,u)=>{i[u]=i[u]||[],i[u][l]=c})});const r=[];i.forEach(a=>{r.push(new Me(a).polymorph())});const o=new is;return r.forEach(a=>{o.addShape(a(0))}),a=>(r.forEach(l=>{l(a)}),o)}polymorphTween(t=6e3,e){const n=this.shapes.findIndex(a=>a instanceof is)>=0?this.polymorphGroup():this.polymorph(),i=n(0),r=e?.onUpdate,o=new qe({frameDuration:t});o.addTween({t:0},{t:1},Object.assign(e||{},{onUpdate:(a,l)=>{n(a.t),r?.(a,l),e?.draw?.(i)}})),o.play()}static generatePointsShape(t,e,n,i){const r=[];for(let o=0;o<i;o++){const a=o/i*2*Math.PI,{dx:l,dy:c}=gs(a,n);r.push({x:t+l,y:e+c})}return new ju({points:r})}static generateRosettaShape(t,e,n,i,r){if(r==0)throw new Error("no dividing by zero, please");const o=[],a=360/r;for(let l=0;l<r;l+=1){const c=a*l*Math.PI/180,u=t+2*n*Math.cos(c),h=e+2*n*Math.sin(c);o.push(new la({x:t,y:e,rx:n,ry:i,xAxisRotate:a*l,largeArcFlag:1,sweepFlag:1,toX:u,toY:h})),o.push(new la({x:u,y:h,rx:n,ry:i,xAxisRotate:a*l,largeArcFlag:1,sweepFlag:1,toX:t,toY:e}))}return new Ht({d:Le.fromLines(o)})}}class Zu{app;ctx;shapes=[];isMouseDown=!1;currentMouseInShape;currentEnableDragMouseInShape;dragDx=0;dragDy=0;constructor(t,e=!1){if(this.app=t,!(this.app.container instanceof HTMLCanvasElement))throw new Error("app.container 应该为 HTMLCanvasElement!");this.ctx=new aa(this.app.container,this.app.width,this.app.height,e),this.app.captureDrag({start:()=>{this.isMouseDown=!0,this.dragDx=0,this.dragDy=0,this.setCursor()},end:()=>{this.isMouseDown=!1,this.dragDx=0,this.dragDy=0,this.setCursor()},move:(n,i)=>{this.currentEnableDragMouseInShape&&(this.dragDx+=i.dx,this.dragDy+=i.dy),this.setCursor()}}),this.app.on("tap",()=>{for(let n of this.shapes)if(this.currentMouseInShape==n){n.emit("clicked");let i=n.parent;for(;i;)i.emit("clicked",n),i=i.parent;break}})}setCursor(){this.currentEnableDragMouseInShape?(this.app.container.style.cursor="grab",this.isMouseDown&&(this.app.container.style.cursor="grabbing")):this.currentMouseInShape?this.app.container.style.cursor="pointer":this.app.container.style.cursor="default"}transformCtxBaseOnShape(t){t.usePathDtoCanvasContext||(this.ctx.translate(t.x,t.y),this.ctx.rotate(Lt(t.degree),t.cX,t.cY),this.ctx.scale(t.scalarX,t.scalarY,t.cX,t.cY))}_addDrawShape(t){this.shapes.push(t),t instanceof is&&t.shapes.forEach(e=>{this._addDrawShape(e)})}draw(t=[]){this.shapes=[],(Array.isArray(t)?t:[t]).forEach(e=>{this._addDrawShape(e)}),this.isMouseDown&&this.currentEnableDragMouseInShape||(this.currentMouseInShape=void 0);for(let e of this.shapes){if(!e.isShow)continue;if(this.ctx.save(),e.frameStart(this.app.mousePoint),et.attrsToCanvas(this.ctx,e.getAttrs()),e.followMouse&&(!ar(e.x,this.app.mousePoint.x,5)||!ar(e.y,this.app.mousePoint.y,5))&&e.followTo(this.app.mousePoint),e.targetToAfterDragFree&&(this.isMouseDown||e.runEaseTo({x:e.targetToAfterDragFree.targetX,y:e.targetToAfterDragFree.targetY},{easing:e.targetToAfterDragFree?.easing})),this.isMouseDown&&this.currentEnableDragMouseInShape==e){e.isDragging=!0;const i=this.dragDx,r=this.dragDy;if(this.dragDx=0,this.dragDy=0,i||r){if(e.x+=i,e.y+=r,e.alongPath){const o=e.alongPath.closestPoint(e.x,e.y);e.x=o.point.x-e.cX,e.y=o.point.y-e.cY}e.emit("draging",i,r)}}else e.isDragging=!1;e.frameUpdate(this.app.mousePoint,this.ctx),this.transformCtxBaseOnShape(e),e.toCanvasContext(this.ctx),this.ctx.hasSetCustomStrokeStyle&&this.ctx.stroke(),this.ctx.hasSetCustomFillStyle&&this.ctx.fill();const n=this.ctx.currentPath2D;if(!this.currentMouseInShape){const i=this.ctx.isPointInPath(n,this.app.mousePoint.x,this.app.mousePoint.y)||this.ctx.isPointInStroke(n,this.app.mousePoint.x,this.app.mousePoint.y)||!1;e.isMouseIn=i,i&&(this.currentMouseInShape=e,e.enableDrag&&(this.currentEnableDragMouseInShape=e))}e.frameEnd(this.app.mousePoint),this.ctx.restore()}this.currentMouseInShape||(this.currentEnableDragMouseInShape=void 0)}drawMouseMoveLine(t="line",e){switch(t){case"brush":const n=e?.brushSize??10,i=e?.brushDensity??50,r=e?.brushColor??"#000000",o=this.ctx.getImageData(0,0,this.ctx.canvas.width,this.ctx.canvas.height),a=o.data,l=Ae(r);return this.app.captureDrag({move:()=>{if(this.isMouseDown){for(let c=0;c<i;c++){const u=Math.random()*Math.PI*2,h=Math.random()*n,d=this.app.mousePoint.x+Math.cos(u)*h|0,m=this.app.mousePoint.y+Math.sin(u)*h|0,f=(d+m*o.width)*4;a[f]=l.r,a[f+1]=l.g,a[f+2]=l.b,a[f+3]=255}this.ctx.putImageData(o)}}});case"line":default:return this.app.captureDrag({start:c=>{this.ctx.beginPath(),this.ctx.moveTo(this.app.mousePoint.x,this.app.mousePoint.y)},end:()=>{this.ctx.closePath()},move:()=>{this.isMouseDown&&(this.ctx.lineTo(this.app.mousePoint.x,this.app.mousePoint.y),this.ctx.stroke())}})}}}class Yg{map;constructor(t,e=120.619585,n=31.299379,i=18){this.map=new T.Map(t),this.map.centerAndZoom(new T.LngLat(e,n),i)}}const zg=ct({__name:"Icon",props:{icon:{default:"mdi-light:home"},color:{default:Ot.colorPrimary}},setup(s){const t=s;return(e,n)=>(L(),H("span",{class:"icon",style:Y(["color: "+e.color])},[ft(Ft(hm),{icon:t.icon,color:e.color},null,8,["icon","color"])],4))}}),L_="",mt=(s,t)=>{const e=s.__vccOpts||s;for(const[n,i]of t)e[n]=i;return e},an=mt(zg,[["__scopeId","data-v-8789b4ce"]]),Bg={class:"loading-11",ref:"loading11"},Gg={class:"container container-1"},Xg={class:"container container-2"},jg={class:"container container-3"},Ug=ct({__name:"Loading11",props:{color:{default:Ot.colorPrimary},width:{default:"0.8em"}},setup(s){const t=s;return(e,n)=>(L(),H("div",Bg,[P("div",{class:"loading-11-inner",style:Y({width:t.width,height:t.width})},[P("div",Gg,[P("div",{class:"dot dot-1",style:Y({backgroundColor:t.color})},null,4),P("div",{class:"dot dot-2",style:Y({backgroundColor:t.color})},null,4),P("div",{class:"dot dot-3",style:Y({backgroundColor:t.color})},null,4),P("div",{class:"dot dot-4",style:Y({backgroundColor:t.color})},null,4)]),P("div",Xg,[P("div",{class:"dot dot-1",style:Y({backgroundColor:t.color})},null,4),P("div",{class:"dot dot-2",style:Y({backgroundColor:t.color})},null,4),P("div",{class:"dot dot-3",style:Y({backgroundColor:t.color})},null,4),P("div",{class:"dot dot-4",style:Y({backgroundColor:t.color})},null,4)]),P("div",jg,[P("div",{class:"dot dot-1",style:Y({backgroundColor:t.color})},null,4),P("div",{class:"dot dot-2",style:Y({backgroundColor:t.color})},null,4),P("div",{class:"dot dot-3",style:Y({backgroundColor:t.color})},null,4),P("div",{class:"dot dot-4",style:Y({backgroundColor:t.color})},null,4)])],4)],512))}}),F_="",Ca=mt(Ug,[["__scopeId","data-v-f95fac77"]]),Hg={key:0,class:"loading"},Wg=ct({customOptions:{Loading11:Ca},inheritAttrs:!0,__name:"Button",props:{label:{},icon:{},iconPosition:{default:"left"},disabled:{type:Boolean,default:!1},height:{default:"44px"},padding:{default:"20px"},fontSize:{default:"14px"},borderRadius:{default:"4px"},stylePattern:{default:"fullfilled"},borderColor:{},bgColor:{},fontColor:{},asyncClick:{}},emits:["yz-click","click"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=M(),o=M(n.borderColor),a=M(n.bgColor),l=M(n.fontColor),c=M(n.borderColor),u=M(n.bgColor);function h(p){switch(p){case"outline":o.value=n.borderColor??Ot.colorPrimary,a.value=n.bgColor??Ot.colorGrayFF,l.value=n.fontColor??Ot.colorPrimary,c.value=o.value,u.value=a.value;break;case"fullfilled":default:o.value=n.borderColor??Ot.colorPrimary,a.value=n.bgColor??Ot.colorPrimary,l.value=n.fontColor??Ot.colorGrayFF,c.value=o.value,u.value=a.value;break}}Mt(()=>n.stylePattern,()=>{h(n.stylePattern)},{immediate:!0});const d=M(n.disabled?"0.6":"1"),m=M(n.disabled?"not-allowed":"pointer");let f=!1;const E=()=>{n.disabled||(f=!0,o.value=Ae(c.value).lighten(.05).toString(),a.value=Ae(u.value).lighten(.05).toString())},S=()=>{n.disabled||(f=!1,o.value=c.value,a.value=u.value)},_=M(!1),y=Pm(()=>{n.disabled||_.value||(o.value=Ae(c.value).darken(.05).toString(),a.value=Ae(u.value).darken(.05).toString(),setTimeout(()=>{f?E():S()},150),i("yz-click"),i("click"),n.asyncClick&&(_.value=!0,n.asyncClick().then(()=>{_.value=!1}).catch(()=>{_.value=!1})))},500);return t({el:r}),(p,x)=>(L(),H("div",{ref_key:"el",ref:r,class:"button",style:Y([`opacity: ${d.value}`,`border: 1px solid ${o.value}`,`background-color: ${a.value}`,`color: ${l.value}`,`border-radius: ${n.borderRadius}`,`height: ${n.height}`,`line-height: ${n.height}`,`font-size: ${n.fontSize}`,`cursor: ${m.value}`,"user-select: none"]),onMouseover:E,onMouseleave:S,onClick:x[0]||(x[0]=(...b)=>Ft(y)&&Ft(y)(...b))},[P("label",{class:"label truncate",style:Y({padding:"0 "+p.padding,cursor:m.value})},[_.value?(L(),H("div",Hg,[ft(Ca,{color:l.value},null,8,["color"])])):Bt("",!0),kt(p.$slots,"default",{},()=>[p.icon&&p.iconPosition==="left"?(L(),zt(an,{key:0,icon:p.icon,color:l.value,style:Y({marginRight:Ft(Ot).d4,cursor:m.value})},null,8,["icon","color","style"])):Bt("",!0),P("span",{style:Y({cursor:m.value})},wt(p.label),5),p.icon&&p.iconPosition==="right"?(L(),zt(an,{key:1,icon:p.icon,color:l.value,style:Y({marginLeft:Ft(Ot).d4,cursor:m.value})},null,8,["icon","color","style"])):Bt("",!0)],!0)],4)],36))}}),$_="",ve=mt(Wg,[["__scopeId","data-v-b3e1b144"]]),qg=["onClick","value"],Zg={class:"option-inner"},Kg=ct({customOptions:{Icon:an,Button:ve},__name:"Select",props:{options:{},initIndex:{default:0},fontSize:{default:"14px"}},emits:["change"],setup(s,{emit:t}){const e=s,n=t;tn(()=>{et.injectStyle(`
54
+ `).forEach((a,l)=>{if(a.trim()){const c=ue.createSVGElement("tspan",{x:String(e),dy:l>0?r:"0"});et.html(c,a),et.insert(o,c),this.attr(c,Object.assign({"alignment-baseline":"middle"},i))}}),et.insert(this.rootEl,o),o}}class Og extends wn{svgWidth=0;svgHeight=0;width=0;height=0;constructor(t){super(t);const e=new kg(t.svg).parse();for(let n=0,i=e.length;n<i;n++){const r=e[n];if(r.type=="viewbox"&&r.width&&r.height){if(this.svgWidth=parseFloat(r.width),this.svgHeight=parseFloat(r.height),t.width){const u=this.svgWidth/this.svgHeight;this.width=t.width,this.height=this.width/u}else this.width=this.svgWidth,this.height=this.svgHeight;continue}if(r.type!="path"||!ue.isSVGPath(r.path))continue;const o={};for(const u in r)u==="type"||u==="path"||u==="transform"||(o[u]=r[u]);const a=ue.absolutizeSVGPath(ue.parseSVGPath(r.path)),l=[];let c=[];for(let u=0,h=a.length;u<h;u++){const d=a[u];c.push(d),d[0].toLowerCase()=="z"&&(l.push(c),c=[])}c.length&&l.push(c),l.forEach(u=>{const h=zu(r.transform??"");h.scale(this.width&&this.svgWidth?this.width/this.svgWidth:1),this.addShape(new Ht({...t,attrs:{...o,...t?.attrs||{}},d:u,originMatrix:h}))})}}shapeInit(){this.trim()}}class Wt extends Ht{radius;constructor(t){super(t),this.radius=t?.radius||0}getBoundingClientRect(){return{x:this.x-this.radius,y:this.y-this.radius,width:this.radius*2,height:this.radius*2}}toSVGPathData(){return this.radius?[["m",0,-this.radius],["a",this.radius,this.radius,0,1,1,0,2*this.radius],["a",this.radius,this.radius,0,1,1,0,-2*this.radius],["z"]]:[["m",0,0]]}toCanvasContext(t){t.beginPath(),t.arc(0,0,this.radius,0,Math.PI*2,!0),t.closePath()}eq(t){return this.x===t.x&&this.y===t.y&&this.radius===t.radius&&this.mass===t.mass}midPointBtw(t){return{x:this.x+(t.x-this.x)/2,y:this.y+(t.y-this.y)/2}}length(){return na(this.x,this.y)}scalar(t){return this.x*=t,this.y*=t,this}normalize(t=1){const e=this.length();if(e){const n=t/e;this.scalar(n)}return this}clamp(t){const e=this.length();return e&&e>t&&this.scalar(t/e),this}cross(t){const e=this.x,n=this.y;return{x:n*t.x-e*t.y,y:e*t.y-n*t.x}}multiply(t){return{x:this.x*t.x,y:this.y*t.y}}div(t){return{x:this.x/t.x,y:this.y/t.y}}add(t){return{x:this.x+t.x,y:this.y+t.y}}sub(t){return{x:this.x-t.x,y:this.y-t.y}}dot(t){return this.x*t.x+this.y*t.y}reflect(t){const e=this.dot(t);return{x:this.x-2*e*t.x,y:this.y-2*e*t.y}}checkCollision(t){const e=t.x-this.x,n=t.y-this.y;if(Math.sqrt(e*e+n*n)<this.radius+t.radius){const r=Math.atan2(n,e),o={x:0,y:0},a=ns(-r,e,n),l=ns(-r,this.vx,this.vy),c=ns(-r,t.vx,t.vy),u=l.x-c.x;l.x=((this.mass-t.mass)*l.x+2*t.mass*c.x)/(this.mass+t.mass),c.x=u+l.x;const h=Math.abs(l.x)+Math.abs(c.x),d=this.radius+t.radius-Math.abs(o.x-a.x);o.x+=l.x/h*d,a.x+=c.x/h*d;const m=ns(r,o.x,o.y),f=ns(r,a.x,a.y);t.x=this.x+f.x,t.y=this.y+f.y,this.x=this.x+m.x,this.y=this.y+m.y;const E=ns(r,l.x,l.y),S=ns(r,c.x,c.y);this.vx=E.x,this.vy=E.y,t.vx=S.x,t.vy=S.y}}checkWall(t){const e=typeof t?.bounce=="number"?t.bounce:-1,n=t.wall.x,i=t.wall.y,r=t.wall.x+t.wall.width,o=t.wall.y+t.wall.height;this.x+this.radius>r?(this.x=r-this.radius,this.vx*=e):this.x-this.radius<n&&(this.x=n+this.radius,this.vx*=e),this.y+this.radius>o?(this.y=o-this.radius,this.vy*=e):this.y-this.radius<i&&(this.y=i+this.radius,this.vy*=e)}}class ju extends Ht{points;isStraight;constructor(t){if(super(t),this.points=t.points,this.points.length<3)throw new Error("points length must >= 3");this.isStraight=typeof t?.isStraight=="boolean"?t.isStraight:!0}toSVGPathData(){const t=[],e=this.points.length;if(this.isStraight){t.push(["M",this.points[0].x,this.points[0].y]);for(let n=1;n<=e-1;n++)t.push(["L",this.points[n].x,this.points[n].y]);t.push(["Z"])}else{const n=(this.points[0].x+this.points[e-1].x)/2,i=(this.points[0].y+this.points[e-1].y)/2;t.push(["M",n,i]);for(let r=0;r<e-1;r++){const o=(this.points[r].x+this.points[r+1].x)/2,a=(this.points[r].y+this.points[r+1].y)/2;t.push(["Q",this.points[r].x,this.points[r].y,o,a])}t.push(["Q",this.points[e-1].x,this.points[e-1].y,n,i])}return t}toCanvasContext(t){t.beginPath();const e=this.points.length;if(this.isStraight){t.moveTo(this.points[0].x,this.points[0].y);for(let n=1;n<=e-1;n++)t.lineTo(this.points[n].x,this.points[n].y);t.closePath()}else{const n=(this.points[0].x+this.points[e-1].x)/2,i=(this.points[0].y+this.points[e-1].y)/2;t.moveTo(n,i);for(let r=0;r<e-1;r++){const o=(this.points[r].x+this.points[r+1].x)/2,a=(this.points[r].y+this.points[r+1].y)/2;t.quadraticCurveTo(this.points[r].x,this.points[r].y,o,a)}t.quadraticCurveTo(this.points[e-1].x,this.points[e-1].y,n,i)}}isContainPoint(t,e){const n=this.points.length;let i=!1;const r=2e-10;for(let o=0,a=n-1;o<n;a=o,o++){const l=this.points[o].x,c=this.points[o].y,u=this.points[a].x,h=this.points[a].y;if(l===t&&c===e||u===t&&h===e||e===c&&e===h)return!0;if(e>=c&&e<h||e<c&&e>=h){const d=(u-l)/(h-c),m=l+d*(e-c);if(m===t||Math.abs(m-t)<r)return!0;m>t&&(i=!i)}}return i}[Symbol.iterator](){let t=-1;return{next:()=>({value:t<=this.points.length-1?this.points[++t]:void 0,done:t>=this.points.length})}}}class ye extends Ht{width;height;borderRadius;constructor(t){super(t),this.width=t.width,this.height=t.height,this.borderRadius=t.borderRadius||0}static fromCubicBezier(t,e,n,i,r,o,a,l){const c=new rn({x:t,y:e,c1x:n,c1y:i,c2x:r,c2y:o,toX:a,toY:l});return new ye(c.getBoundingClientRect())}getBoundingClientRect(){return{x:this.x,y:this.y,width:this.width,height:this.height}}toSVGPathData(){return this.borderRadius?[["m",this.borderRadius,0],["l",this.width-this.borderRadius*2,0],["a",this.borderRadius,this.borderRadius,0,0,1,this.borderRadius,this.borderRadius],["l",0,this.height-this.borderRadius*2],["a",this.borderRadius,this.borderRadius,0,0,1,-this.borderRadius,this.borderRadius],["l",this.borderRadius*2-this.width,0],["a",this.borderRadius,this.borderRadius,0,0,1,-this.borderRadius,-this.borderRadius],["l",0,this.borderRadius*2-this.height],["a",this.borderRadius,this.borderRadius,0,0,1,this.borderRadius,-this.borderRadius],["z"]]:[["m",0,0],["l",this.width,0],["l",0,this.height],["l",-this.width,0],["z"]]}toCanvasContext(t){t.beginPath(),this.borderRadius<=0?t.rect(0,0,this.width,this.height):(t.moveTo(0,this.borderRadius),t.lineTo(0,this.height-this.borderRadius),t.quadraticCurveTo(0,this.height,this.borderRadius,this.height),t.lineTo(this.width-this.borderRadius,this.height),t.quadraticCurveTo(this.width,this.height,this.width,this.height-this.borderRadius),t.lineTo(this.width,this.borderRadius),t.quadraticCurveTo(this.width,0,this.width-this.borderRadius,0),t.lineTo(this.borderRadius,0),t.quadraticCurveTo(0,0,0,this.borderRadius)),t.closePath()}eq(t){return this.x===t.x&&this.y===t.y&&this.width===t.width&&this.height===t.height&&this.borderRadius===t.borderRadius}isIntersectRect(t){return!(this.x+this.width<t.x||t.x+t.width<this.x||this.y+this.height<t.y||t.y+t.height<this.y)}isContainPoint(t,e){return t>=this.x&&t<=this.x+this.width&&e>=this.y&&e<=this.y+this.height}}class Uu extends Ht{rx;ry;constructor(t){super(t),this.rx=t?.rx||0,this.ry=t?.ry||0}getBoundingClientRect(){return{x:this.x-this.rx,y:this.y-this.ry,width:this.rx*2,height:this.ry*2}}toSVGPathData(){return[["m",0,-this.ry],["a",this.rx,this.ry,0,1,1,0,2*this.ry],["a",this.rx,this.ry,0,1,1,0,-2*this.ry],["z"]]}toCanvasContext(t){t.beginPath(),t.ellipse(0,0,this.rx,this.ry,0,0,2*Math.PI,!0),t.closePath()}}class wr extends Ht{constructor(t){super(t)}toSVGPathData(){return[["m",-50,-25],["l",50,0],["l",0,-25],["l",50,50],["l",-50,50],["l",0,-25],["l",-50,0],["l",0,-50],["z"]]}toCanvasContext(t){t.beginPath(),t.moveTo(-50,-25),t.lineTo(0,-25),t.lineTo(0,-50),t.lineTo(50,0),t.lineTo(0,50),t.lineTo(0,25),t.lineTo(-50,25),t.lineTo(-50,-25),t.closePath()}}class xa extends Ht{constructor(t){super(t)}toSVGPathData(){return[["m",4,24],["l",4,-8],["l",6,-6],["l",1,-10],["l",-6,-10],["l",-7,10],["l",-4,0],["l",-7,-10],["l",-6,10],["l",1,10],["l",6,6],["l",4,8],["z"]]}toCanvasContext(t){t.beginPath(),t.moveTo(4,24),t.lineTo(8,16),t.lineTo(14,10),t.lineTo(15,0),t.lineTo(9,-10),t.lineTo(2,0),t.lineTo(-2,0),t.lineTo(-9,-10),t.lineTo(-15,0),t.lineTo(-14,10),t.lineTo(-8,16),t.lineTo(-4,24),t.closePath()}}class Ig extends Ht{rx;ry;constructor(t){super(t),this.rx=t?.rx||10,this.ry=t?.ry||10}toSVGPathData(){return[["m",0,0],["l",this.rx*2.4,-this.ry*3.14],["a",this.rx/2,this.ry/2,0,0,0,-this.rx*2.4,-this.ry*1.5],["a",this.rx/2,this.ry/2,0,0,0,-this.rx*2.4,this.ry*1.5],["l",this.rx*2.4,this.ry*3.14],["z"]]}}class Dg extends Ht{rx;ry;constructor(t){super(t),this.rx=t?.rx??50,this.ry=t?.ry??50}toSVGPathData(){return[["m",0,0+this.ry*.3],["C",0,0,0-this.rx/2,0,0-this.rx/2,0+this.ry*.3],["C",0-this.rx/2,0+(this.ry+this.ry*.3)/2,0,0+(this.ry+this.ry*.3)/1.4,0,0+this.ry],["C",0,0+(this.ry+this.ry*.3)/1.8,0+this.rx/2,0+(this.ry+this.ry*.3)/2,0+this.rx/2,0+this.ry*.3],["C",0+this.rx/2,0,0,0,0,0+this.ry*.3],["z"]]}}class Rg extends Ht{r;constructor(t){super(t),this.r=t?.r||20}toSVGPathData(){const t=[["m",0,-this.r]];for(let e=0;e<6;e+=1){const n=288+e*144,i=this.r*Math.cos(Lt(n)),r=this.r*Math.sin(Lt(n));t.push(["l",i,r])}return t}}class Ag extends Ht{constructor(t){super(t)}toSVGPathData(){return[["M",0,0],["C",15,0,15,-40,5,-30],["L",0,0],["C",-15,0,-15,-40,-5,-30],["L",0,0],["a",15,15,0,1,1,0,30],["a",15,15,0,1,1,0,-30]]}}class Mg extends Ht{constructor(t){super(t),this.originD="m5.068 9.267-3.08-.77a.512.512 0 0 1 0-.994l3.08-.77a2.289 2.289 0 0 0 1.665-1.665l.77-3.08a.512.512 0 0 1 .994 0l.77 3.08c.205.82.845 1.46 1.665 1.665l3.08.77a.512.512 0 0 1 0 .994l-3.08.77a2.29 2.29 0 0 0-1.665 1.665l-.77 3.08a.512.512 0 0 1-.994 0l-.77-3.08a2.289 2.289 0 0 0-1.665-1.665Z"}}class Ng extends wn{constructor(t){super(t);const e=new he({...t,x:this.x,y:this.y,toX:this.x,toY:this.y-140-Math.random()*20}),n=30+Math.random()*30,i=new he({...t,x:this.x,y:this.y-n,diffYInGroup:-n,toX:this.x+Math.random()*80-40,toY:this.y-100-Math.random()*40}),r=60+Math.random()*40,o=new he({...t,x:this.x,y:this.y-r,diffYInGroup:-r,toX:this.x+Math.random()*60-30,toY:this.y-110-Math.random()*20});this.addShape([e,i,o])}}class Cr extends Ht{text;width=0;height=0;constructor(t){super(t),this.text=t.text,this.setAttr({fontSize:"10px",fontFamily:'system-ui, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif',emojiFontFamily:'"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", "EmojiOne Color", "Android Emoji", "Twemoji Mozilla", "system emoji", sans-serif',fill:"#666666",stroke:"none","alignment-baseline":"middle",textAnchor:"start",...this.getAttrs()});const e=es(this.getAttr("fontSize"),10).number,n=es(this.getAttr("fontWeight"),400).number,i=et.measureText(this.text,e,n);this.width=i.width,this.height=i.height}getBoundingClientRect(){return null}toSVGPathData(){return[]}toCanvasContext(t){t.fillText(this.text,0,0)}}class Lg extends wn{text;bg;padding;offset;isShow;textShape;bgShape;constructor(t){super(t),this.text=t.text,this.bg=t.bg||"rgba(0,0,0,0.5)",this.padding=t.padding||4,this.offset=t.offset||20,this.isShow=typeof t?.isShow=="boolean"?t?.isShow:!1,this.textShape=new Cr({...t,x:this.x+this.offset,y:this.y+this.offset,text:this.text,attrs:{...this.getAttrs(),fill:Ae(this.bg).opposite(!0).toString(),textAnchor:"start"}}),this.bgShape=new ye({...t,x:this.textShape.x-this.padding,y:this.textShape.y-this.textShape.height/2-this.padding,width:this.textShape.width+this.padding*2,height:this.textShape.height+this.padding*2,attrs:{...this.getAttrs(),fill:this.bg}}),this.addShape([this.bgShape,this.textShape])}shapeInit(){Uo(()=>{this.textShape.x=this.x+this.offset,this.textShape.y=this.y+this.offset,this.textShape.text=this.text,this.textShape.isShow=this.isShow,this.bgShape.x=this.textShape.x-this.padding,this.bgShape.y=this.textShape.y-this.textShape.height/2-this.padding,this.bgShape.width=this.textShape.width+this.padding*2,this.bgShape.height=this.textShape.height+this.padding*2,this.bgShape.isShow=this.isShow})}}class Hu extends is{radius;expandRaidus;startDegree;endDegree;text="";defaultShowText;tip="";p1=new Wt;p1Offset=10;p2=new Wt;p2Offset=40;p3=new Wt;p3Offset=10;p4=new Wt;p4Offset=10;direction=1;sectorArc;line12;line23;textShape;tipShape;constructor(t){super(t),this.radius=t.radius,this.expandRaidus=t.expandRaidus??20,this.startDegree=t.startDegree,this.endDegree=t.endDegree,this.text=t.text||"",this.defaultShowText=typeof t?.defaultShowText=="boolean"?t.defaultShowText:!!this.text,this.tip=t.tip||"",this.sectorArc=new Fg({x:this.x,y:this.y,radius:this.radius,expandRaidus:this.expandRaidus,startDegree:this.startDegree,endDegree:this.endDegree,attrs:Object.assign({...this.getAttrs()},{strokeWidth:"0"})}),this.addShape(this.sectorArc);const e=Object.assign({...this.getAttrs()},{fill:"none"});this.line12=new he({x:this.p1.x,y:this.p1.y,toX:this.p2.x,toY:this.p2.y,attrs:{...e},isShow:this.defaultShowText}),this.line23=new he({x:this.p2.x,y:this.p2.y,toX:this.p3.x,toY:this.p3.y,attrs:{...e},isShow:this.defaultShowText}),this.textShape=new Cr({x:this.p4.x,y:this.p4.y,text:this.text,attrs:{stroke:e.stroke,textAnchor:this.direction==1?"start":"end"},isShow:this.defaultShowText}),this.text&&(this.addShape(this.line12),this.addShape(this.line23),this.addShape(this.textShape)),this.tipShape=new Lg({x:0,y:0,text:this.tip,isShow:!1}),this.tip&&this.addShape(this.tipShape)}frameUpdate(t){this.text&&!this.defaultShowText&&(this.line12.isShow=this.sectorArc.isMouseIn,this.line23.isShow=this.sectorArc.isMouseIn,this.textShape.isShow=this.sectorArc.isMouseIn);const e=this.startDegree+(this.endDegree-this.startDegree)/2,{dx:n,dy:i}=gs(Lt(e),this.sectorArc.radius+this.p1Offset);this.p1.x=this.x+n,this.p1.y=this.y+i;const{dx:r,dy:o}=gs(Lt(e),this.sectorArc.radius+this.p1Offset+this.p2Offset);this.p2.x=this.x+r,this.p2.y=this.y+o,this.line12.x=this.p1.x,this.line12.y=this.p1.y,this.line12.toX=this.p2.x,this.line12.toY=this.p2.y,this.direction=this.p1.x>this.x?1:-1,this.p3.x=this.p2.x+this.direction*this.p3Offset,this.p3.y=this.p2.y,this.p4.x=this.p3.x+this.direction*this.p4Offset,this.p4.y=this.p3.y,this.line23.x=this.p2.x,this.line23.y=this.p2.y,this.line23.toX=this.p3.x,this.line23.toY=this.p3.y,this.textShape.x=this.p4.x,this.textShape.y=this.p4.y,this.textShape.setAttr("textAnchor",this.direction==1?"start":"end"),this.sectorArc.isMouseIn?(this.tipShape.isShow=!0,this.tipShape.x=t.x,this.tipShape.y=t.y):(this.tipShape.isShow=!1,this.tipShape.x=t.x,this.tipShape.y=t.y)}}class Fg extends Ht{radius;realRadius;expandRaidus;startDegree;endDegree;vr;ar;bounce;durationTime;status;constructor(t){super(t),this.radius=0,this.realRadius=t.radius,this.expandRaidus=t.expandRaidus??20,this.startDegree=t.startDegree,this.endDegree=t.endDegree,this.vr=0,this.ar=.03,this.bounce=.6,this.durationTime=8.333333333333334,this.status=0}frameUpdate(){this.status==0&&this.radius<this.realRadius?(this.expand(this.realRadius),this.radius>=this.realRadius&&(this.status=1)):this.isMouseIn?this.expand(this.realRadius+this.expandRaidus):this.shrink(this.realRadius)}expand(t){this.vr+=this.ar,this.radius+=this.vr*this.durationTime,this.radius>t&&(this.radius=t,this.vr*=-this.bounce)}shrink(t){this.vr-=this.ar,this.radius+=this.vr*this.durationTime,this.radius<t&&(this.radius=t,this.vr*=-this.bounce)}toSVGPathData(){const{dx:t,dy:e}=gs(Lt(this.startDegree),this.radius),{dx:n,dy:i}=gs(Lt(this.endDegree),this.radius);return[["m",0,0],["l",t,e],["a",this.radius,this.radius,0,Math.abs(this.endDegree-this.startDegree)>=180?1:0,1,n-t,i-e],["z"]]}toCanvasContext(t){t.beginPath(),t.moveTo(0,0),t.arc(0,0,this.radius,Lt(this.startDegree),Lt(this.endDegree),!1),t.closePath()}containPoint(t,e){const n=ia(this.x,this.y,t,e),i=Re(bn(this.x,this.y,t,e));return n<=this.radius&&i>=this.startDegree&&i<=this.endDegree}}class $g extends is{showFlame;ship;flame;constructor(t){super(t),this.showFlame=typeof t?.showFlame=="boolean"?t.showFlame:!1,this.ship=new Ht({...t,d:[["M",10,0],["L",-10,10],["L",-5,0],["L",-10,-10],["L",10,0],["Z"]]}),this.addShape(this.ship),this.flame=new Ht({...t,isShow:this.showFlame,d:[["m",-10,-5],["l",-7.5,5],["l",7.5,5],["z"]]}),this.addShape(this.flame)}shapeInit(){Uo(()=>{this.ship.x=this.x,this.ship.y=this.y,this.flame.x=this.x,this.flame.y=this.y,this.flame.isShow=this.showFlame})}}class Wu extends wn{value;backgroundRect;occupyRect;handle;constructor(t){super(t);const e=t?.min||0,n=t?.max||100,i=t?.step||1,r=bu(e,n,i);this.value=r(typeof t?.defaultValue=="number"?qt(t.defaultValue,e,n):e);const o=this.value/(n-e),a=t?.barWidth||100,l=t?.barHeight||4,c=t?.handleRadius||10,u=l*.5,h=t?.barColor||Ot.colorGrayF5,d=t?.handleColor||Ot.colorPrimary;this.backgroundRect=new ye({x:this.x,y:this.y,width:a,height:l,borderRadius:u,attrs:{fill:h},enableDrag:!1,independentTransformInGroup:!0}),this.addShape(this.backgroundRect),this.occupyRect=new ye({x:this.x,y:this.y,width:a*o,height:l,borderRadius:u,attrs:{fill:d},enableDrag:!1,independentTransformInGroup:!0}),this.addShape(this.occupyRect),this.handle=new Wt({x:this.x+a*o,y:this.y+u,diffXInGroup:a*o,diffYInGroup:u,radius:c,alongPath:new Le({x:this.x,y:this.y+u,d:[["m",0,0],["l",a,0]]}),attrs:{fill:d},enableDrag:!0,independentTransformInGroup:!0}),this.addShape(this.handle),this.handle.on("draging",m=>{this.occupyRect.width=qt(this.occupyRect.width+m,0,a),this.value=r((this.handle.x-this.x)/a*(n-e)+e),this.emit("change",this.value)})}}class Cn extends wn{width;height;cornerRadius;controlPoint;mainRect;rightPoint;constructor(t){super(t),this.width=t.width,this.height=t.height,this.cornerRadius=this.height/2,this.controlPoint=new Wt({...t,x:this.x,y:this.y,radius:2}),this.forceSetCXY(this.controlPoint.cX,this.controlPoint.cY),this.mainRect=new ye({...t,x:this.x-this.cornerRadius,y:this.y-this.cornerRadius,diffXInGroup:-this.cornerRadius,diffYInGroup:-this.cornerRadius,width:this.width+this.cornerRadius*2,height:this.height,borderRadius:this.cornerRadius}),this.rightPoint=new Wt({...t,x:this.x+this.width,y:this.y,diffXInGroup:this.width,radius:2}),this.addShape([this.mainRect,this.controlPoint,this.rightPoint])}getPin(){return{x:this.controlPoint.x+Math.cos(Lt(this.controlPoint.degree))*this.width,y:this.controlPoint.y+Math.sin(Lt(this.controlPoint.degree))*this.width}}}class wa extends Ht{extendDegree;radius;startDegree;endDegree;diffDegree;constructor(t){super(t),this.extendDegree=t?.extendDegree||0,this.x=(t.x||0)+t.width/2;const e=Math.min(t.width/2,t.height)-t.lineWidth;this.radius=e-e*Math.abs(Math.sin(Lt(this.extendDegree))),this.y=(t.y||0)+t.height-t.lineWidth-this.radius*Math.abs(Math.sin(Lt(this.extendDegree))),this.diffDegree=t.endDegree-t.startDegree,this.startDegree=180+t.startDegree-this.extendDegree,this.endDegree=180+t.endDegree+this.extendDegree,this.setAttr({"stroke-linecap":"round","stroke-width":String(t.lineWidth),stroke:t.color||"none"})}setPercent(t){this.endDegree=this.startDegree+(this.diffDegree+this.extendDegree*2)*t}toSVGPathData(){const{dx:t,dy:e}=gs(Lt(this.startDegree),this.radius),{dx:n,dy:i}=gs(Lt(this.endDegree),this.radius);return[["m",t,e],["a",this.radius,this.radius,0,Math.abs(this.endDegree-this.startDegree)>=180?1:0,1,n-t,i-e]]}toCanvasContext(t){t.beginPath(),t.arc(0,0,this.radius,Lt(this.startDegree),Lt(this.endDegree),!1)}}let qu=class extends wn{percent=0;ringBg;ring;lines=[];bgColor;startColor;endColor;indicatorLineCount;constructor(t){super(t);const e=t?.startDegree||0,n=t?.endDegree||180,i=t?.extendDegree||15,r=t?.lineWidth||12;this.bgColor=t?.bgColor||"#B3C6E7",this.startColor=t?.startColor||"#5A82F0",this.endColor=t?.endColor||"#66B3FF",this.percent=t?.percent||0,this.indicatorLineCount=22+1;const o=20,a=2,l=17;this.ringBg=new wa({...t,x:t?.x,y:t?.y,width:t.width,height:t.height,startDegree:e,endDegree:n,extendDegree:i,lineWidth:r,color:this.bgColor}),this.addShape(this.ringBg),this.ring=new wa({...t,x:t?.x,y:t?.y,width:t.width,height:t.height,startDegree:e,endDegree:n,extendDegree:i,lineWidth:r}),this.addShape(this.ring);const c=this.ringBg.y-this.ringBg.radius+o;for(let u=0;u<this.indicatorLineCount;u++)this.lines.push(new he({...t,centerX:this.ringBg.x,centerY:this.ringBg.y,x:this.ringBg.x,y:c,toX:this.ringBg.x,toY:c+l,degree:this.ringBg.startDegree+90+(n-e+i*2)/(this.indicatorLineCount-1)*u,attrs:{"stroke-linecap":"round","stroke-width":String(a),stroke:this.bgColor}}));this.addShape(this.lines)}setPercent(t){this.percent=t}shapeInit(){this.on("draging",(t,e,n)=>{this.shapes.forEach(i=>{i!=n&&(i.x+=t,i.y+=e)})})}frameUpdate(t,e){const n=this.ringBg.radius-this.ringBg.radius*Math.cos(Math.PI*this.percent),i=this.ringBg.radius*Math.sin(Math.PI*this.percent);if(e){const r=e.createLinearGradient(-this.ringBg.radius,0,-this.ringBg.radius+n,-i,{0:this.startColor,1:this.endColor});this.ring.setAttr({stroke:r})}else this.ring.setAttr({stroke:this.startColor});this.ring.setPercent(this.percent);for(let r=0;r<this.indicatorLineCount;r++){const o=r/(this.indicatorLineCount-1)<=this.percent;this.lines[r].setAttr({stroke:o&&e?e.createLinearGradient(0,0,this.lines[r].toX-this.lines[r].x,this.lines[r].toY-this.lines[r].y,{0:this.startColor,1:this.endColor}):o?this.startColor:this.bgColor})}}};class Vg extends is{fettis=[];constructor(t,e,n){super();const{shape:i,x:r,y:o,particleCount:a,angle:l,spread:c,startVelocity:u,decay:h,gravity:d,drift:m,ticks:f,colors:E,scalar:S,flat:_}=Object.assign({shape:ye,x:.5,y:.6,particleCount:100,angle:90,spread:70,startVelocity:45,decay:.9,gravity:1,drift:0,ticks:200,colors:Sg,scalar:1,flat:!1},n||{}),C=Lt(l),y=Lt(c);let p=a;for(;p--;){const x=E[p%E.length],b=new i({x:t*r,y:e*o,width:10,height:10,scalar:S,attrs:{fill:x},independentTransformInGroup:!0});this.addShape(b),this.fettis.push({shape:b,wobble:Math.random()*10,wobbleSpeed:Math.min(.11,Math.random()*.1+.05),velocity:u*.5+Math.random()*u,angle2D:-C+(.5*y-Math.random()*y),tiltAngle:(Math.random()*.5+.25)*Math.PI,tick:0,totalTicks:f,decay:h,drift:m,random:Math.random()+2,tiltSin:0,tiltCos:0,wobbleX:0,wobbleY:0,gravity:d*3,scalar:S,flat:_,color:Ae(x)})}}frameUpdate(t){this.fettis.length&&(this.fettis=this.fettis.filter(e=>{e.shape.x+=Math.cos(e.angle2D)*e.velocity+e.drift,e.shape.y+=Math.sin(e.angle2D)*e.velocity+e.gravity,e.velocity*=e.decay,e.flat?(e.wobble=0,e.wobbleX=e.shape.x+10*e.scalar,e.wobbleY=e.shape.y+10*e.scalar,e.tiltSin=0,e.tiltCos=0,e.random=1):(e.wobble+=e.wobbleSpeed,e.wobbleX=e.shape.x+10*e.scalar*Math.cos(e.wobble),e.wobbleY=e.shape.y+10*e.scalar*Math.sin(e.wobble),e.tiltAngle+=.1,e.tiltSin=Math.sin(e.tiltAngle),e.tiltCos=Math.cos(e.tiltAngle),e.random=Math.random()+2);const n=e.tick++/e.totalTicks,i=e.shape.x+e.random*e.tiltCos,r=e.shape.y+e.random*e.tiltSin,o=e.wobbleX+e.random*e.tiltCos,a=e.wobbleY+e.random*e.tiltSin;return e.shape.setAttr("fill",e.color.setAlpha(1-n).toString()),e.shape.degree=Re(Math.PI/10*e.wobble),e.shape.scalarX=Math.abs(o-i)*.1,e.shape.scalarY=Math.abs(a-r)*.1,e.tick<e.totalTicks}))}}class Me{shapes;constructor(t){this.shapes=t}run(t){this.shapes.forEach(n=>{n.run(),t?.wall&&n.checkWall({wall:t.wall,bounce:t.bounce})});const e=this.shapes.length;for(let n=0,i=e-1;n<i;n++)for(let r=n+1;r<e;r++)this.shapes[n].checkCollision(this.shapes[r])}gravitate(){const t=this.shapes.length;this.shapes.forEach((e,n)=>{e.run();for(let i=n+1;i<t;i++)e.checkCollision(this.shapes[i]),e.gravitateTo(this.shapes[i])})}springChain(t){this.shapes.forEach((e,n)=>{n>0&&e.runSpringTo(this.shapes[n-1],t)})}springConnect(t){const e=Ns(t?.springLength,100);this.shapes.forEach(n=>{n.isDragging||this.shapes.filter(i=>i.id!==n.id).forEach(i=>{const r=bn(n.x,n.y,i.x,i.y);n.runSpringTo({x:i.x-Math.cos(r)*e,y:i.y-Math.sin(r)*e},t)})})}springMass(t,e){const n=this.shapes.length,i=[];return this.shapes.forEach((r,o)=>{r.run(e),r.x>t.x+t.width?r.x=t.x:r.x<t.x&&(r.x=t.x+t.width),r.y>t.y+t.height?r.y=t.y:r.y<t.y&&(r.y=t.y+t.height);for(let a=o+1;a<n;a++)i.push([r.x,r.y,this.shapes[a].x,this.shapes[a].y,r.springMassTo(this.shapes[a],e)])}),i}polymorph(){if(this.shapes.length<2)throw new Error("shapes个数必须大于等于2");const t=this.shapes.length-1,e=new Array(t);for(let i=0;i<t;i++){const r=this.shapes[i].initPathD();this.shapes[i].frameStart();const o=this.shapes[i+1].initPathD();this.shapes[i+1].frameStart();const a=Math.max(r.polymorphPoints.length,o.polymorphPoints.length);e[i]=Le.getPathInterpolator(r.expendFill(a),o.expendFill(a))}const n=new Ht({d:e[0](0)});return i=>{const r=Ce(t*i,6),o=Math.min(Math.floor(r),t-1),a=Ce(r-o,6);n.originD=e[o](a);const l=this.shapes[o].getAttr("fill","none"),c=this.shapes[o+1].getAttr("fill","none");typeof l=="string"&&typeof c=="string"&&n.setAttr("fill",Ct.gradient(l,c,a).toString());const u=this.shapes[o].getAttr("stroke","none"),h=this.shapes[o+1].getAttr("stroke","none");return typeof u=="string"&&typeof h=="string"&&n.setAttr("stroke",Ct.gradient(u,h,a).toString()),n}}polymorphGroup(){if(this.shapes.length<2)throw new Error("shapes个数必须大于等于2");let t=0,e;const n=[];this.shapes.forEach(a=>{let l;a instanceof is?(l=a,l.sortPathD()):(l=new is,l.addShape(a)),n.push(l),t<l.shapes.length&&(t=l.shapes.length,e=l)}),n.forEach(a=>{a!==e&&a.expendFill(e)});const i=[];n.forEach((a,l)=>{a.shapes.forEach((c,u)=>{i[u]=i[u]||[],i[u][l]=c})});const r=[];i.forEach(a=>{r.push(new Me(a).polymorph())});const o=new is;return r.forEach(a=>{o.addShape(a(0))}),a=>(r.forEach(l=>{l(a)}),o)}polymorphTween(t=6e3,e){const n=this.shapes.findIndex(a=>a instanceof is)>=0?this.polymorphGroup():this.polymorph(),i=n(0),r=e?.onUpdate,o=new qe({frameDuration:t});o.addTween({t:0},{t:1},Object.assign(e||{},{onUpdate:(a,l)=>{n(a.t),r?.(a,l),e?.draw?.(i)}})),o.play()}static generatePointsShape(t,e,n,i){const r=[];for(let o=0;o<i;o++){const a=o/i*2*Math.PI,{dx:l,dy:c}=gs(a,n);r.push({x:t+l,y:e+c})}return new ju({points:r})}static generateRosettaShape(t,e,n,i,r){if(r==0)throw new Error("no dividing by zero, please");const o=[],a=360/r;for(let l=0;l<r;l+=1){const c=a*l*Math.PI/180,u=t+2*n*Math.cos(c),h=e+2*n*Math.sin(c);o.push(new la({x:t,y:e,rx:n,ry:i,xAxisRotate:a*l,largeArcFlag:1,sweepFlag:1,toX:u,toY:h})),o.push(new la({x:u,y:h,rx:n,ry:i,xAxisRotate:a*l,largeArcFlag:1,sweepFlag:1,toX:t,toY:e}))}return new Ht({d:Le.fromLines(o)})}}class Zu{app;ctx;shapes=[];isMouseDown=!1;currentMouseInShape;currentEnableDragMouseInShape;dragDx=0;dragDy=0;constructor(t,e=!1){if(this.app=t,!(this.app.container instanceof HTMLCanvasElement))throw new Error("app.container 应该为 HTMLCanvasElement!");this.ctx=new aa(this.app.container,this.app.width,this.app.height,e),this.app.captureDrag({start:()=>{this.isMouseDown=!0,this.dragDx=0,this.dragDy=0,this.setCursor()},end:()=>{this.isMouseDown=!1,this.dragDx=0,this.dragDy=0,this.setCursor()},move:(n,i)=>{this.currentEnableDragMouseInShape&&(this.dragDx+=i.dx,this.dragDy+=i.dy),this.setCursor()}}),this.app.on("tap",()=>{for(let n of this.shapes)if(this.currentMouseInShape==n){n.emit("clicked");let i=n.parent;for(;i;)i.emit("clicked",n),i=i.parent;break}})}setCursor(){this.currentEnableDragMouseInShape?(this.app.container.style.cursor="grab",this.isMouseDown&&(this.app.container.style.cursor="grabbing")):this.currentMouseInShape?this.app.container.style.cursor="pointer":this.app.container.style.cursor="default"}transformCtxBaseOnShape(t){t.usePathDtoCanvasContext||(this.ctx.translate(t.x,t.y),this.ctx.rotate(Lt(t.degree),t.cX,t.cY),this.ctx.scale(t.scalarX,t.scalarY,t.cX,t.cY))}_addDrawShape(t){this.shapes.push(t),t instanceof is&&t.shapes.forEach(e=>{this._addDrawShape(e)})}draw(t=[]){this.shapes=[],(Array.isArray(t)?t:[t]).forEach(e=>{this._addDrawShape(e)}),this.isMouseDown&&this.currentEnableDragMouseInShape||(this.currentMouseInShape=void 0);for(let e of this.shapes){if(!e.isShow)continue;if(this.ctx.save(),e.frameStart(this.app.mousePoint),et.attrsToCanvas(this.ctx,e.getAttrs()),e.followMouse&&(!ar(e.x,this.app.mousePoint.x,5)||!ar(e.y,this.app.mousePoint.y,5))&&e.followTo(this.app.mousePoint),e.targetToAfterDragFree&&(this.isMouseDown||e.runEaseTo({x:e.targetToAfterDragFree.targetX,y:e.targetToAfterDragFree.targetY},{easing:e.targetToAfterDragFree?.easing})),this.isMouseDown&&this.currentEnableDragMouseInShape==e){e.isDragging=!0;const i=this.dragDx,r=this.dragDy;if(this.dragDx=0,this.dragDy=0,i||r){if(e.x+=i,e.y+=r,e.alongPath){const o=e.alongPath.closestPoint(e.x,e.y);e.x=o.point.x-e.cX,e.y=o.point.y-e.cY}e.emit("draging",i,r)}}else e.isDragging=!1;e.frameUpdate(this.app.mousePoint,this.ctx),this.transformCtxBaseOnShape(e),e.toCanvasContext(this.ctx),this.ctx.hasSetCustomStrokeStyle&&this.ctx.stroke(),this.ctx.hasSetCustomFillStyle&&this.ctx.fill();const n=this.ctx.currentPath2D;if(!this.currentMouseInShape){const i=this.ctx.isPointInPath(n,this.app.mousePoint.x,this.app.mousePoint.y)||this.ctx.isPointInStroke(n,this.app.mousePoint.x,this.app.mousePoint.y)||!1;e.isMouseIn=i,i&&(this.currentMouseInShape=e,e.enableDrag&&(this.currentEnableDragMouseInShape=e))}e.frameEnd(this.app.mousePoint),this.ctx.restore()}this.currentMouseInShape||(this.currentEnableDragMouseInShape=void 0)}drawMouseMoveLine(t="line",e){switch(t){case"brush":const n=e?.brushSize??10,i=e?.brushDensity??50,r=e?.brushColor??"#000000",o=this.ctx.getImageData(0,0,this.ctx.canvas.width,this.ctx.canvas.height),a=o.data,l=Ae(r);return this.app.captureDrag({move:()=>{if(this.isMouseDown){for(let c=0;c<i;c++){const u=Math.random()*Math.PI*2,h=Math.random()*n,d=this.app.mousePoint.x+Math.cos(u)*h|0,m=this.app.mousePoint.y+Math.sin(u)*h|0,f=(d+m*o.width)*4;a[f]=l.r,a[f+1]=l.g,a[f+2]=l.b,a[f+3]=255}this.ctx.putImageData(o)}}});case"line":default:return this.app.captureDrag({start:c=>{this.ctx.beginPath(),this.ctx.moveTo(this.app.mousePoint.x,this.app.mousePoint.y)},end:()=>{this.ctx.closePath()},move:()=>{this.isMouseDown&&(this.ctx.lineTo(this.app.mousePoint.x,this.app.mousePoint.y),this.ctx.stroke())}})}}}class Yg{map;constructor(t,e=120.619585,n=31.299379,i=18){this.map=new T.Map(t),this.map.centerAndZoom(new T.LngLat(e,n),i)}}const zg=ct({__name:"Icon",props:{icon:{default:"mdi-light:home"},color:{default:Ot.colorPrimary}},setup(s){const t=s;return(e,n)=>(L(),H("span",{class:"icon",style:Y(["color: "+e.color])},[ft(Ft(hm),{icon:t.icon,color:e.color},null,8,["icon","color"])],4))}}),L_="",mt=(s,t)=>{const e=s.__vccOpts||s;for(const[n,i]of t)e[n]=i;return e},an=mt(zg,[["__scopeId","data-v-8789b4ce"]]),Bg={class:"loading-11",ref:"loading11"},Gg={class:"container container-1"},Xg={class:"container container-2"},jg={class:"container container-3"},Ug=ct({__name:"Loading11",props:{color:{default:Ot.colorPrimary},width:{default:"0.8em"}},setup(s){const t=s;return(e,n)=>(L(),H("div",Bg,[P("div",{class:"loading-11-inner",style:Y({width:t.width,height:t.width})},[P("div",Gg,[P("div",{class:"dot dot-1",style:Y({backgroundColor:t.color})},null,4),P("div",{class:"dot dot-2",style:Y({backgroundColor:t.color})},null,4),P("div",{class:"dot dot-3",style:Y({backgroundColor:t.color})},null,4),P("div",{class:"dot dot-4",style:Y({backgroundColor:t.color})},null,4)]),P("div",Xg,[P("div",{class:"dot dot-1",style:Y({backgroundColor:t.color})},null,4),P("div",{class:"dot dot-2",style:Y({backgroundColor:t.color})},null,4),P("div",{class:"dot dot-3",style:Y({backgroundColor:t.color})},null,4),P("div",{class:"dot dot-4",style:Y({backgroundColor:t.color})},null,4)]),P("div",jg,[P("div",{class:"dot dot-1",style:Y({backgroundColor:t.color})},null,4),P("div",{class:"dot dot-2",style:Y({backgroundColor:t.color})},null,4),P("div",{class:"dot dot-3",style:Y({backgroundColor:t.color})},null,4),P("div",{class:"dot dot-4",style:Y({backgroundColor:t.color})},null,4)])],4)],512))}}),F_="",Ca=mt(Ug,[["__scopeId","data-v-f95fac77"]]),Hg={key:0,class:"loading"},Wg=ct({customOptions:{Loading11:Ca},inheritAttrs:!0,__name:"Button",props:{label:{},icon:{},iconPosition:{default:"left"},disabled:{type:Boolean,default:!1},height:{default:"44px"},padding:{default:"20px"},fontSize:{default:"14px"},borderRadius:{default:"4px"},stylePattern:{default:"fullfilled"},borderColor:{},bgColor:{},fontColor:{},asyncClick:{}},emits:["yz-click","click"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=M(),o=M(n.borderColor),a=M(n.bgColor),l=M(n.fontColor),c=M(n.borderColor),u=M(n.bgColor);function h(p){switch(p){case"outline":o.value=n.borderColor??Ot.colorPrimary,a.value=n.bgColor??Ot.colorGrayFF,l.value=n.fontColor??Ot.colorPrimary,c.value=o.value,u.value=a.value;break;case"fullfilled":default:o.value=n.borderColor??Ot.colorPrimary,a.value=n.bgColor??Ot.colorPrimary,l.value=n.fontColor??Ot.colorGrayFF,c.value=o.value,u.value=a.value;break}}Mt(()=>n.stylePattern,()=>{h(n.stylePattern)},{immediate:!0});const d=M(n.disabled?"0.6":"1"),m=M(n.disabled?"not-allowed":"pointer");let f=!1;const E=()=>{n.disabled||(f=!0,o.value=Ae(c.value).lighten(.05).toString(),a.value=Ae(u.value).lighten(.05).toString())},S=()=>{n.disabled||(f=!1,o.value=c.value,a.value=u.value)},_=M(!1),y=Pm(()=>{n.disabled||_.value||(o.value=Ae(c.value).darken(.05).toString(),a.value=Ae(u.value).darken(.05).toString(),setTimeout(()=>{f?E():S()},150),i("yz-click"),i("click"),n.asyncClick&&(_.value=!0,n.asyncClick().then(()=>{_.value=!1}).catch(()=>{_.value=!1})))},500);return t({el:r}),(p,x)=>(L(),H("div",{ref_key:"el",ref:r,class:"button",style:Y([`opacity: ${d.value}`,`border: 1px solid ${o.value}`,`background-color: ${a.value}`,`color: ${l.value}`,`border-radius: ${n.borderRadius}`,`height: ${n.height}`,`line-height: ${n.height}`,`font-size: ${n.fontSize}`,`cursor: ${m.value}`,"user-select: none"]),onMouseover:E,onMouseleave:S,onClick:x[0]||(x[0]=(...b)=>Ft(y)&&Ft(y)(...b))},[P("label",{class:"label truncate",style:Y({padding:"0 "+p.padding,cursor:m.value})},[_.value?(L(),H("div",Hg,[ft(Ca,{color:l.value},null,8,["color"])])):Bt("",!0),Et(p.$slots,"default",{},()=>[p.icon&&p.iconPosition==="left"?(L(),zt(an,{key:0,icon:p.icon,color:l.value,style:Y({marginRight:Ft(Ot).d4,cursor:m.value})},null,8,["icon","color","style"])):Bt("",!0),P("span",{style:Y({cursor:m.value})},wt(p.label),5),p.icon&&p.iconPosition==="right"?(L(),zt(an,{key:1,icon:p.icon,color:l.value,style:Y({marginLeft:Ft(Ot).d4,cursor:m.value})},null,8,["icon","color","style"])):Bt("",!0)],!0)],4)],36))}}),$_="",ve=mt(Wg,[["__scopeId","data-v-b3e1b144"]]),qg=["onClick","value"],Zg={class:"option-inner"},Kg=ct({customOptions:{Icon:an,Button:ve},__name:"Select",props:{options:{},initIndex:{default:0},fontSize:{default:"14px"}},emits:["change"],setup(s,{emit:t}){const e=s,n=t;tn(()=>{et.injectStyle(`
55
55
  :root {
56
56
  --select-option-bg-color: ${Ot.colorGrayFF};
57
57
  --select-option-bg-color-hover: ${Ot.colorGrayF5};
58
58
  }
59
- `)});const i=M(!1),r=M(e.initIndex);Mt(r,function(){n("change",r.value,e.options[r.value])});function o(){i.value=!i.value}function a(l){r.value=l,i.value=!1}return(l,c)=>(L(),H("div",{class:"select",style:Y(["font-size:"+l.fontSize])},[P("div",{onClick:o},[kt(l.$slots,"button",{selectedIndex:r.value},()=>[ft(ve,{icon:"carbon:chevron-sort",iconPosition:"right",label:l.options[r.value],style:{width:"100%"}},null,8,["label"])],!0)]),Qs(P("div",{class:"options",style:Y({border:"1px solid "+Ft(Ot).colorGrayCC})},[(L(!0),H($t,null,ge(l.options,(u,h)=>(L(),H("div",{onClick:d=>a(h),class:"option",key:h,value:h,style:Y({borderTop:(h==0?"0":"1px")+" solid "+Ft(Ot).colorGrayCC})},[P("div",Zg,[kt(l.$slots,"default",{item:u,index:h},()=>[P("span",null,wt(u),1),h==r.value?(L(),zt(an,{key:0,icon:"mingcute:check-fill",class:"icon"})):Bt("",!0)],!0)])],12,qg))),128))],4),[[Ms,i.value]])],4))}}),V_="",Qg=mt(Kg,[["__scopeId","data-v-b97d6085"]]),Jg=["width","height"],t0=["fill"],e0=ct({__name:"SVGDown",props:{width:{default:"1em"},height:{},color:{default:Ot.colorGrayCC}},setup(s){const t=s;return(e,n)=>(L(),H("svg",{viewBox:"0 0 20 20",width:t.width,height:t.height??t.width,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[P("path",{"fill-rule":"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z","clip-rule":"evenodd",fill:t.color},null,8,t0)],8,Jg))}}),Y_="",ai=mt(e0,[["__scopeId","data-v-b1f2ae20"]]),s0={class:"button-default"},n0={class:"truncate"},i0=["onClick","value"],r0=ct({customOptions:{SVGDown:ai},__name:"SelectAbsolute",props:{options:{},initIndex:{default:0},fontSize:{default:"16px"},bgColor:{default:Ot.colorGrayFF},hoverColor:{default:Ot.colorGrayF5},selectedColor:{default:Ot.colorPrimary},fontColor:{default:Ot.colorGray33},duration:{default:300}},emits:["change"],setup(s,{emit:t}){const e=s,n=t;tn(()=>{et.injectStyle(`
59
+ `)});const i=M(!1),r=M(e.initIndex);Mt(r,function(){n("change",r.value,e.options[r.value])});function o(){i.value=!i.value}function a(l){r.value=l,i.value=!1}return(l,c)=>(L(),H("div",{class:"select",style:Y(["font-size:"+l.fontSize])},[P("div",{onClick:o},[Et(l.$slots,"button",{selectedIndex:r.value},()=>[ft(ve,{icon:"carbon:chevron-sort",iconPosition:"right",label:l.options[r.value],style:{width:"100%"}},null,8,["label"])],!0)]),Qs(P("div",{class:"options",style:Y({border:"1px solid "+Ft(Ot).colorGrayCC})},[(L(!0),H($t,null,ge(l.options,(u,h)=>(L(),H("div",{onClick:d=>a(h),class:"option",key:h,value:h,style:Y({borderTop:(h==0?"0":"1px")+" solid "+Ft(Ot).colorGrayCC})},[P("div",Zg,[Et(l.$slots,"default",{item:u,index:h},()=>[P("span",null,wt(u),1),h==r.value?(L(),zt(an,{key:0,icon:"mingcute:check-fill",class:"icon"})):Bt("",!0)],!0)])],12,qg))),128))],4),[[Ms,i.value]])],4))}}),V_="",Qg=mt(Kg,[["__scopeId","data-v-b97d6085"]]),Jg=["width","height"],t0=["fill"],e0=ct({__name:"SVGDown",props:{width:{default:"1em"},height:{},color:{default:Ot.colorGrayCC}},setup(s){const t=s;return(e,n)=>(L(),H("svg",{viewBox:"0 0 20 20",width:t.width,height:t.height??t.width,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[P("path",{"fill-rule":"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z","clip-rule":"evenodd",fill:t.color},null,8,t0)],8,Jg))}}),Y_="",ai=mt(e0,[["__scopeId","data-v-b1f2ae20"]]),s0={class:"button-default"},n0={class:"truncate"},i0=["onClick","value"],r0=ct({customOptions:{SVGDown:ai},__name:"SelectAbsolute",props:{options:{},initIndex:{default:0},fontSize:{default:"16px"},bgColor:{default:Ot.colorGrayFF},hoverColor:{default:Ot.colorGrayF5},selectedColor:{default:Ot.colorPrimary},fontColor:{default:Ot.colorGray33},duration:{default:300}},emits:["change"],setup(s,{emit:t}){const e=s,n=t;tn(()=>{et.injectStyle(`
60
60
  :root {
61
61
  --select-option-bg-color: ${e.bgColor};
62
62
  --select-option-bg-color-hover: ${e.hoverColor};
63
63
  }
64
- `)});const i=M(!1),r=M(e.initIndex);Mt(r,function(){n("change",r.value,e.options[r.value])});function o(){i.value=!i.value}function a(c){r.value=c,i.value=!1}const l=M("rotate(-180deg)");return $l(()=>{l.value=i.value?"rotate(0deg)":"rotate(-90deg)"}),(c,u)=>(L(),H("div",{class:"select-absolute",style:Y({fontSize:e.fontSize,backgroundColor:e.bgColor})},[P("div",{class:"select-absolute-button",onClick:o},[kt(c.$slots,"button",{selectedIndex:r.value},()=>[P("div",s0,[P("div",n0,wt(c.options[r.value]),1),ft(ai,{class:"icon-down",width:"20px",style:Y({transition:`transform ${e.duration}ms ease-in-out`,transform:l.value})},null,8,["style"])])],!0)]),P("div",{class:"options",style:Y({maxHeight:i.value?"200px":0,transition:`all ${e.duration}ms ease-in-out`,borderTop:`${i.value?1:0}px solid #e6e6e6`})},[(L(!0),H($t,null,ge(c.options,(h,d)=>(L(),H("div",{onClick:m=>a(d),class:"option",key:d,value:d},[kt(c.$slots,"default",{item:h,index:d},()=>[P("div",{class:"option-default",style:Y({color:r.value==d?e.selectedColor:e.fontColor})},wt(h),5)],!0)],8,i0))),128))],4)],4))}}),z_="",o0=mt(r0,[["__scopeId","data-v-eacbb711"]]),a0=ct({__name:"Switch",props:{init:{type:Boolean,default:!1},width:{default:"44px"},height:{default:"26px"},padding:{default:"3px"},colorPrimary:{default:"#5a82f0"},colorBgOn:{default:"#efefef"},colorBgOff:{default:"#f5f5f5"}},emits:["change"],setup(s,{emit:t}){const e=s,n=es(e.width),i=es(e.height),r=es(e.padding),o=i.number-r.number*2+i.suffix,a=e.padding,l=n.number-es(a).number-es(o).number+n.suffix,c=t,u=M(e.init);Mt(u,function(){c("change",u.value)});function h(){u.value=!u.value}return(d,m)=>(L(),H("div",{class:"switch",onClick:h,style:Y(["width: "+e.width,"height: "+e.height,"background-color: "+(u.value?e.colorBgOn:e.colorBgOff)])},[P("span",{class:"round",style:Y(["width: "+o,"height: "+o,"background-color: "+(u.value?e.colorPrimary:Ft(Ae)(e.colorPrimary).lighten(.5).toString()),"transform: translate("+(u.value?l:Ft(a))+", 0)"])},null,4)],4))}}),B_="",l0=mt(a0,[["__scopeId","data-v-2ef84ee0"]]),c0=["stroke","fill"],u0=["stroke","fill"],h0=["stroke"],d0=ct({customOptions:{},__name:"BooleanBox",props:{selected:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},isRounded:{type:Boolean,default:!0},label:{default:""},labelPadding:{default:"2px"},colorBackground:{default:"#ffffff"},colorForeground:{default:"#5a82f0"},colorDisabled:{default:"#cccccc"},colorChangeMode:{default:"reverse"},boxWidth:{default:"20px"},fontSize:{default:"14px"}},emits:["change"],setup(s,{expose:t,emit:e}){const n=s,i=e;let r=M(n.selected),o=M(n.disabled),a=M(n.label);const l=()=>{switch(n.colorChangeMode){case"only-foreground":return o.value?n.colorDisabled:n.colorBackground;case"reverse":default:return o.value?n.colorDisabled:r.value?n.colorForeground:n.colorBackground}},c=()=>o.value?n.colorDisabled:Ae(l()).darken(.2).toString(),u=()=>{switch(n.colorChangeMode){case"only-foreground":return o.value?n.colorBackground:n.colorForeground;case"reverse":default:return r.value?n.colorBackground:n.colorForeground}},h=()=>{o.value||(m(),i("change",r.value))},d=C=>{C!==r.value&&(r.value=C)},m=()=>{r.value=!r.value};return t({setValue:d,toggleValue:m,getValue:()=>r.value,enable:()=>{o.value=!1},disable:()=>{o.value=!0},setLabel:C=>{a.value=C}}),(C,y)=>(L(),H("div",{class:ie(["boolean-box",Ft(o)?"disabled":""]),onClick:h},[kt(C.$slots,"default",{selected:Ft(r),disabled:Ft(o),label:Ft(a)},()=>[(L(),H("svg",{viewBox:"0 0 24 24",fill:"none",class:"icon",style:Y(["width:"+n.boxWidth])},[n.isRounded?Bt("",!0):(L(),H("rect",{key:0,x:"0",y:"0",width:"22",height:"22","strke-width":"1",stroke:c(),fill:l()},null,8,c0)),n.isRounded?(L(),H("circle",{key:1,cx:"12",cy:"12",r:"11","strke-width":"1",stroke:c(),fill:l()},null,8,u0)):Bt("",!0),Ft(r)?(L(),H("path",{key:2,d:"m7 13l3 3 7-7",stroke:u(),"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,8,h0)):Bt("",!0)],4)),C.label?(L(),H("span",{key:0,style:Y(["font-size:"+n.fontSize,"margin-left:"+n.labelPadding])},wt(C.label),5)):Bt("",!0)],!0)],2))}}),G_="",li=mt(d0,[["__scopeId","data-v-3df94794"]]),f0=ct({customOptions:{BooleanBox:li},__name:"RadioGroup",props:{options:{},disabledIndexs:{},initIndex:{default:0},isRounded:{type:Boolean,default:!0},colorBackground:{default:"#ffffff"},colorForeground:{default:"#5a82f0"},colorDisabled:{default:"#cccccc"},colorChangeMode:{default:"reverse"},fontSize:{default:"14px"},boxWidth:{default:"20px"},itemPadding:{default:"10px"},labelPadding:{default:"2px"}},emits:["change"],setup(s,{emit:t}){const e=s,n=t,i=M([]),r=(l,c)=>{l&&(i.value[c]=l)};let o=M(e.initIndex);const a=(l,c)=>{o.value!==l?(i.value[o.value].toggleValue(),c&&(o.value=l,n("change",e.options[o.value]))):c||i.value[o.value].setValue(!0)};return(l,c)=>(L(!0),H($t,null,ge(l.options,(u,h)=>(L(),H("div",{class:"radio-group",key:h,style:Y(["margin-left:"+(h>0?e.itemPadding:0)])},[ft(li,{ref_for:!0,ref:d=>r(d,h),selected:Ft(o)==h,disabled:l.disabledIndexs&&l.disabledIndexs.findIndex(d=>d===h)>=0,isRounded:e.isRounded,label:u,labelPadding:e.labelPadding,colorBackground:e.colorBackground,colorForeground:e.colorForeground,colorDisabled:e.colorDisabled,colorChangeMode:e.colorChangeMode,boxWidth:e.boxWidth,fontSize:e.fontSize,onChange:d=>a(h,d)},null,8,["selected","disabled","isRounded","label","labelPadding","colorBackground","colorForeground","colorDisabled","colorChangeMode","boxWidth","fontSize","onChange"])],4))),128))}}),X_="",Sa=mt(f0,[["__scopeId","data-v-308d559c"]]),p0=ct({customOptions:{BooleanBox:li},__name:"CheckboxGroup",props:{options:{},disabledIndexs:{},initIndexs:{},isRounded:{type:Boolean,default:!1},colorBackground:{default:"#ffffff"},colorForeground:{default:"#5a82f0"},colorDisabled:{default:"#cccccc"},colorChangeMode:{default:"reverse"},fontSize:{default:"14px"},boxWidth:{default:"20px"},itemPadding:{default:"10px"},labelPadding:{default:"2px"}},emits:["change"],setup(s,{emit:t}){const e=s,n=t;let i=Qt(e.initIndexs??[]);const r=(o,a)=>{const l=i.findIndex(u=>u===o);let c=!1;l>=0&&!a?(i.splice(l,1),c=!0):l<0&&a&&(i.push(o),c=!0),c&&n("change",i.map(u=>e.options[u]))};return(o,a)=>(L(!0),H($t,null,ge(o.options,(l,c)=>(L(),H("div",{class:"checkbox-group",key:c,style:Y(["margin-left:"+(c>0?e.itemPadding:0)])},[ft(li,{selected:Ft(i).findIndex(u=>u===c)>=0,disabled:o.disabledIndexs&&o.disabledIndexs.findIndex(u=>u===c)>=0,isRounded:e.isRounded,label:l,labelPadding:e.labelPadding,colorBackground:e.colorBackground,colorForeground:e.colorForeground,colorDisabled:e.colorDisabled,colorChangeMode:e.colorChangeMode,boxWidth:e.boxWidth,fontSize:e.fontSize,onChange:u=>r(c,u)},null,8,["selected","disabled","isRounded","label","labelPadding","colorBackground","colorForeground","colorDisabled","colorChangeMode","boxWidth","fontSize","onChange"])],4))),128))}}),j_="",Sr=mt(p0,[["__scopeId","data-v-4c28fda3"]]),m0=["width","height"],g0=["fill"],y0=["fill"],v0=["fill"],_0=ct({__name:"SVGPrompt",props:{width:{default:"1.5em"},height:{},color:{default:Ot.colorRed}},setup(s){const t=s;return(e,n)=>(L(),H("svg",{viewBox:"0 0 24 24",width:t.width,height:t.height??t.width,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[P("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4 12C4 16.4183 7.58172 20 12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12ZM19 12C19 15.866 15.866 19 12 19C8.13401 19 5 15.866 5 12C5 8.13401 8.13401 5 12 5C15.866 5 19 8.13401 19 12Z",fill:t.color},null,8,g0),P("path",{d:"M12.5332 15.2001C12.5332 15.4946 12.2944 15.7334 11.9999 15.7334C11.7053 15.7334 11.4665 15.4946 11.4665 15.2001L11.4665 10.9334C11.4665 10.6388 11.7053 10.4001 11.9999 10.4001C12.2944 10.4001 12.5332 10.6388 12.5332 10.9334L12.5332 15.2001Z",fill:t.color},null,8,y0),P("path",{d:"M12.5332 8.80006C12.5332 9.09462 12.2944 9.3334 11.9999 9.3334C11.7053 9.3334 11.4665 9.09462 11.4665 8.80006C11.4665 8.50551 11.7053 8.26673 11.9999 8.26673C12.2944 8.26673 12.5332 8.50551 12.5332 8.80006Z",fill:t.color},null,8,v0)],8,m0))}}),U_="",Ku=mt(_0,[["__scopeId","data-v-41294f60"]]),b0={class:"input"},x0={class:"ellipsis"},w0={class:"input-wrap"},C0=["type","required"],S0={key:0,style:{paddingLeft:"0.5em"}},T0={key:1},E0=ct({customOptions:{SVGPrompt:Ku},inheritAttrs:!0,__name:"Input",props:{placeholder:{default:""},placeholderType:{default:"normal"},height:{default:"44px"},type:{default:"text"},required:{type:Boolean,default:!1},focusColor:{default:"#5a82f0"},errorColor:{default:"#ff5050"},borderColor:{default:"#cccccc"},placeholderColor:{default:"#8f8f8f"},fontColor:{default:"#333333"},borderRadius:{default:"4px"},duration:{default:500},validator:{}},emits:["focus","yz-focus","blur","yz-blur","input","yz-input"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=n.placeholder.split(""),o=n.duration/r.length,a=M(!1),l=M(""),c=M("");function u(){a.value=!0,i("focus"),i("yz-focus")}function h(){a.value=!1,i("blur"),i("yz-blur"),m()}function d(f){c.value=f.target.value,m()}function m(){if(c.value&&n.validator){const f=n.validator(c.value);if(!f.valid){l.value=f.errors[0];return}}l.value="",c.value&&(i("input",c.value),i("yz-input",c.value))}return le(()=>{}),t({}),(f,E)=>(L(),H("div",b0,[l.value?(L(),H("div",{key:0,class:"error-text",style:Y({color:n.errorColor})},[ft(Ku,{class:"icon"}),P("div",x0,wt(l.value),1)],4)):Bt("",!0),P("div",w0,[P("input",{class:ie(["input-raw",a.value||c.value?"focus":"blur"]),type:n.type,required:n.required,autocomplete:"off",style:Y({height:n.height,lineHeight:n.height,borderRadius:n.borderRadius,color:n.fontColor,borderColor:l.value?n.errorColor:a.value?n.focusColor:c.value||n.placeholderType=="normal"?n.borderColor:"transparent",transition:n.duration+"ms"}),onFocus:u,onBlur:h,onInput:d,onChange:d},null,46,C0),P("div",{class:"placeholder",style:Y({lineHeight:a.value||c.value?1.3:n.height,color:n.placeholderColor,transition:n.placeholderType=="normal"?"":n.duration+"ms",transform:n.placeholderType=="normal"?"":a.value||c.value?"translateY(-100%)":"none"})},[!l.value&&n.placeholderType=="normal"&&!a.value&&!c.value?(L(),H("div",S0,wt(n.placeholder),1)):Bt("",!0),!l.value&&n.placeholderType=="jump"?(L(),H("div",T0,wt(n.placeholder),1)):Bt("",!0),!l.value&&n.placeholderType=="jump-each"?(L(!0),H($t,{key:2},ge(Ft(r),(S,_)=>(L(),H("span",{key:_,style:Y({transition:n.duration+"ms cubic-bezier(0.68, -0.55, 0.265, 1.55)",transitionDelay:`${o*_}ms`,transform:a.value||c.value?`translateX(${100*_}%) translateY(-100%)`:`translateX(${100*_}%)`}),class:"single"},wt(S),5))),128)):Bt("",!0)],4),P("div",{class:"background",style:Y({transition:n.duration+"ms",backgroundColor:n.placeholderType=="normal"||a.value||c.value?"transparent":n.borderColor,height:n.placeholderType=="normal"||a.value||c.value?n.height:"2px",borderRadius:n.borderRadius})},null,4)])]))}}),H_="",k0=mt(E0,[["__scopeId","data-v-a5dc9c0b"]]),P0=["max","min","step","value","autofocus"],O0={key:0,class:"label"},I0=ct({customOptions:{},inheritAttrs:!0,__name:"InputRange",props:{min:{default:0},max:{default:100},step:{default:1},defaultValue:{default:0},unit:{default:""},showValue:{type:Boolean,default:!0},autofocus:{type:Boolean,default:!1},color:{default:"#5a82f0"},barColor:{default:"#f5f5f5"},handleSize:{default:"20px"},barHeight:{default:"4px"}},emits:["change"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=M(n.defaultValue),o=()=>Ce((r.value-n.min)/(n.max-n.min),4)*100,a=M(o());function l(h){r.value=Ce(h.target.value,2),a.value=o(),i("change",r.value)}const c=`
64
+ `)});const i=M(!1),r=M(e.initIndex);Mt(r,function(){n("change",r.value,e.options[r.value])});function o(){i.value=!i.value}function a(c){r.value=c,i.value=!1}const l=M("rotate(-180deg)");return $l(()=>{l.value=i.value?"rotate(0deg)":"rotate(-90deg)"}),(c,u)=>(L(),H("div",{class:"select-absolute",style:Y({fontSize:e.fontSize,backgroundColor:e.bgColor})},[P("div",{class:"select-absolute-button",onClick:o},[Et(c.$slots,"button",{selectedIndex:r.value},()=>[P("div",s0,[P("div",n0,wt(c.options[r.value]),1),ft(ai,{class:"icon-down",width:"20px",style:Y({transition:`transform ${e.duration}ms ease-in-out`,transform:l.value})},null,8,["style"])])],!0)]),P("div",{class:"options",style:Y({maxHeight:i.value?"200px":0,transition:`all ${e.duration}ms ease-in-out`,borderTop:`${i.value?1:0}px solid #e6e6e6`})},[(L(!0),H($t,null,ge(c.options,(h,d)=>(L(),H("div",{onClick:m=>a(d),class:"option",key:d,value:d},[Et(c.$slots,"default",{item:h,index:d},()=>[P("div",{class:"option-default",style:Y({color:r.value==d?e.selectedColor:e.fontColor})},wt(h),5)],!0)],8,i0))),128))],4)],4))}}),z_="",o0=mt(r0,[["__scopeId","data-v-eacbb711"]]),a0=ct({__name:"Switch",props:{init:{type:Boolean,default:!1},width:{default:"44px"},height:{default:"26px"},padding:{default:"3px"},colorPrimary:{default:"#5a82f0"},colorBgOn:{default:"#efefef"},colorBgOff:{default:"#f5f5f5"}},emits:["change"],setup(s,{emit:t}){const e=s,n=es(e.width),i=es(e.height),r=es(e.padding),o=i.number-r.number*2+i.suffix,a=e.padding,l=n.number-es(a).number-es(o).number+n.suffix,c=t,u=M(e.init);Mt(u,function(){c("change",u.value)});function h(){u.value=!u.value}return(d,m)=>(L(),H("div",{class:"switch",onClick:h,style:Y(["width: "+e.width,"height: "+e.height,"background-color: "+(u.value?e.colorBgOn:e.colorBgOff)])},[P("span",{class:"round",style:Y(["width: "+o,"height: "+o,"background-color: "+(u.value?e.colorPrimary:Ft(Ae)(e.colorPrimary).lighten(.5).toString()),"transform: translate("+(u.value?l:Ft(a))+", 0)"])},null,4)],4))}}),B_="",l0=mt(a0,[["__scopeId","data-v-2ef84ee0"]]),c0=["stroke","fill"],u0=["stroke","fill"],h0=["stroke"],d0=ct({customOptions:{},__name:"BooleanBox",props:{selected:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},isRounded:{type:Boolean,default:!0},label:{default:""},labelPadding:{default:"2px"},colorBackground:{default:"#ffffff"},colorForeground:{default:"#5a82f0"},colorDisabled:{default:"#cccccc"},colorChangeMode:{default:"reverse"},boxWidth:{default:"20px"},fontSize:{default:"14px"}},emits:["change"],setup(s,{expose:t,emit:e}){const n=s,i=e;let r=M(n.selected),o=M(n.disabled),a=M(n.label);const l=()=>{switch(n.colorChangeMode){case"only-foreground":return o.value?n.colorDisabled:n.colorBackground;case"reverse":default:return o.value?n.colorDisabled:r.value?n.colorForeground:n.colorBackground}},c=()=>o.value?n.colorDisabled:Ae(l()).darken(.2).toString(),u=()=>{switch(n.colorChangeMode){case"only-foreground":return o.value?n.colorBackground:n.colorForeground;case"reverse":default:return r.value?n.colorBackground:n.colorForeground}},h=()=>{o.value||(m(),i("change",r.value))},d=C=>{C!==r.value&&(r.value=C)},m=()=>{r.value=!r.value};return t({setValue:d,toggleValue:m,getValue:()=>r.value,enable:()=>{o.value=!1},disable:()=>{o.value=!0},setLabel:C=>{a.value=C}}),(C,y)=>(L(),H("div",{class:ie(["boolean-box",Ft(o)?"disabled":""]),onClick:h},[Et(C.$slots,"default",{selected:Ft(r),disabled:Ft(o),label:Ft(a)},()=>[(L(),H("svg",{viewBox:"0 0 24 24",fill:"none",class:"icon",style:Y(["width:"+n.boxWidth])},[n.isRounded?Bt("",!0):(L(),H("rect",{key:0,x:"0",y:"0",width:"22",height:"22","strke-width":"1",stroke:c(),fill:l()},null,8,c0)),n.isRounded?(L(),H("circle",{key:1,cx:"12",cy:"12",r:"11","strke-width":"1",stroke:c(),fill:l()},null,8,u0)):Bt("",!0),Ft(r)?(L(),H("path",{key:2,d:"m7 13l3 3 7-7",stroke:u(),"stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,8,h0)):Bt("",!0)],4)),C.label?(L(),H("span",{key:0,style:Y(["font-size:"+n.fontSize,"margin-left:"+n.labelPadding])},wt(C.label),5)):Bt("",!0)],!0)],2))}}),G_="",li=mt(d0,[["__scopeId","data-v-3df94794"]]),f0=ct({customOptions:{BooleanBox:li},__name:"RadioGroup",props:{options:{},disabledIndexs:{},initIndex:{default:0},isRounded:{type:Boolean,default:!0},colorBackground:{default:"#ffffff"},colorForeground:{default:"#5a82f0"},colorDisabled:{default:"#cccccc"},colorChangeMode:{default:"reverse"},fontSize:{default:"14px"},boxWidth:{default:"20px"},itemPadding:{default:"10px"},labelPadding:{default:"2px"}},emits:["change"],setup(s,{emit:t}){const e=s,n=t,i=M([]),r=(l,c)=>{l&&(i.value[c]=l)};let o=M(e.initIndex);const a=(l,c)=>{o.value!==l?(i.value[o.value].toggleValue(),c&&(o.value=l,n("change",e.options[o.value]))):c||i.value[o.value].setValue(!0)};return(l,c)=>(L(!0),H($t,null,ge(l.options,(u,h)=>(L(),H("div",{class:"radio-group",key:h,style:Y(["margin-left:"+(h>0?e.itemPadding:0)])},[ft(li,{ref_for:!0,ref:d=>r(d,h),selected:Ft(o)==h,disabled:l.disabledIndexs&&l.disabledIndexs.findIndex(d=>d===h)>=0,isRounded:e.isRounded,label:u,labelPadding:e.labelPadding,colorBackground:e.colorBackground,colorForeground:e.colorForeground,colorDisabled:e.colorDisabled,colorChangeMode:e.colorChangeMode,boxWidth:e.boxWidth,fontSize:e.fontSize,onChange:d=>a(h,d)},null,8,["selected","disabled","isRounded","label","labelPadding","colorBackground","colorForeground","colorDisabled","colorChangeMode","boxWidth","fontSize","onChange"])],4))),128))}}),X_="",Sa=mt(f0,[["__scopeId","data-v-308d559c"]]),p0=ct({customOptions:{BooleanBox:li},__name:"CheckboxGroup",props:{options:{},disabledIndexs:{},initIndexs:{},isRounded:{type:Boolean,default:!1},colorBackground:{default:"#ffffff"},colorForeground:{default:"#5a82f0"},colorDisabled:{default:"#cccccc"},colorChangeMode:{default:"reverse"},fontSize:{default:"14px"},boxWidth:{default:"20px"},itemPadding:{default:"10px"},labelPadding:{default:"2px"}},emits:["change"],setup(s,{emit:t}){const e=s,n=t;let i=Jt(e.initIndexs??[]);const r=(o,a)=>{const l=i.findIndex(u=>u===o);let c=!1;l>=0&&!a?(i.splice(l,1),c=!0):l<0&&a&&(i.push(o),c=!0),c&&n("change",i.map(u=>e.options[u]))};return(o,a)=>(L(!0),H($t,null,ge(o.options,(l,c)=>(L(),H("div",{class:"checkbox-group",key:c,style:Y(["margin-left:"+(c>0?e.itemPadding:0)])},[ft(li,{selected:Ft(i).findIndex(u=>u===c)>=0,disabled:o.disabledIndexs&&o.disabledIndexs.findIndex(u=>u===c)>=0,isRounded:e.isRounded,label:l,labelPadding:e.labelPadding,colorBackground:e.colorBackground,colorForeground:e.colorForeground,colorDisabled:e.colorDisabled,colorChangeMode:e.colorChangeMode,boxWidth:e.boxWidth,fontSize:e.fontSize,onChange:u=>r(c,u)},null,8,["selected","disabled","isRounded","label","labelPadding","colorBackground","colorForeground","colorDisabled","colorChangeMode","boxWidth","fontSize","onChange"])],4))),128))}}),j_="",Sr=mt(p0,[["__scopeId","data-v-4c28fda3"]]),m0=["width","height"],g0=["fill"],y0=["fill"],v0=["fill"],_0=ct({__name:"SVGPrompt",props:{width:{default:"1.5em"},height:{},color:{default:Ot.colorRed}},setup(s){const t=s;return(e,n)=>(L(),H("svg",{viewBox:"0 0 24 24",width:t.width,height:t.height??t.width,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[P("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4 12C4 16.4183 7.58172 20 12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12ZM19 12C19 15.866 15.866 19 12 19C8.13401 19 5 15.866 5 12C5 8.13401 8.13401 5 12 5C15.866 5 19 8.13401 19 12Z",fill:t.color},null,8,g0),P("path",{d:"M12.5332 15.2001C12.5332 15.4946 12.2944 15.7334 11.9999 15.7334C11.7053 15.7334 11.4665 15.4946 11.4665 15.2001L11.4665 10.9334C11.4665 10.6388 11.7053 10.4001 11.9999 10.4001C12.2944 10.4001 12.5332 10.6388 12.5332 10.9334L12.5332 15.2001Z",fill:t.color},null,8,y0),P("path",{d:"M12.5332 8.80006C12.5332 9.09462 12.2944 9.3334 11.9999 9.3334C11.7053 9.3334 11.4665 9.09462 11.4665 8.80006C11.4665 8.50551 11.7053 8.26673 11.9999 8.26673C12.2944 8.26673 12.5332 8.50551 12.5332 8.80006Z",fill:t.color},null,8,v0)],8,m0))}}),U_="",Ku=mt(_0,[["__scopeId","data-v-41294f60"]]),b0={class:"input"},x0={class:"ellipsis"},w0={class:"input-wrap"},C0=["type","required"],S0={key:0,style:{paddingLeft:"0.5em"}},T0={key:1},E0=ct({customOptions:{SVGPrompt:Ku},inheritAttrs:!0,__name:"Input",props:{placeholder:{default:""},placeholderType:{default:"normal"},height:{default:"44px"},type:{default:"text"},required:{type:Boolean,default:!1},focusColor:{default:"#5a82f0"},errorColor:{default:"#ff5050"},borderColor:{default:"#cccccc"},placeholderColor:{default:"#8f8f8f"},fontColor:{default:"#333333"},borderRadius:{default:"4px"},duration:{default:500},validator:{}},emits:["focus","yz-focus","blur","yz-blur","input","yz-input"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=n.placeholder.split(""),o=n.duration/r.length,a=M(!1),l=M(""),c=M("");function u(){a.value=!0,i("focus"),i("yz-focus")}function h(){a.value=!1,i("blur"),i("yz-blur"),m()}function d(f){c.value=f.target.value,m()}function m(){if(c.value&&n.validator){const f=n.validator(c.value);if(!f.valid){l.value=f.errors[0];return}}l.value="",c.value&&(i("input",c.value),i("yz-input",c.value))}return le(()=>{}),t({}),(f,E)=>(L(),H("div",b0,[l.value?(L(),H("div",{key:0,class:"error-text",style:Y({color:n.errorColor})},[ft(Ku,{class:"icon"}),P("div",x0,wt(l.value),1)],4)):Bt("",!0),P("div",w0,[P("input",{class:ie(["input-raw",a.value||c.value?"focus":"blur"]),type:n.type,required:n.required,autocomplete:"off",style:Y({height:n.height,lineHeight:n.height,borderRadius:n.borderRadius,color:n.fontColor,borderColor:l.value?n.errorColor:a.value?n.focusColor:c.value||n.placeholderType=="normal"?n.borderColor:"transparent",transition:n.duration+"ms"}),onFocus:u,onBlur:h,onInput:d,onChange:d},null,46,C0),P("div",{class:"placeholder",style:Y({lineHeight:a.value||c.value?1.3:n.height,color:n.placeholderColor,transition:n.placeholderType=="normal"?"":n.duration+"ms",transform:n.placeholderType=="normal"?"":a.value||c.value?"translateY(-100%)":"none"})},[!l.value&&n.placeholderType=="normal"&&!a.value&&!c.value?(L(),H("div",S0,wt(n.placeholder),1)):Bt("",!0),!l.value&&n.placeholderType=="jump"?(L(),H("div",T0,wt(n.placeholder),1)):Bt("",!0),!l.value&&n.placeholderType=="jump-each"?(L(!0),H($t,{key:2},ge(Ft(r),(S,_)=>(L(),H("span",{key:_,style:Y({transition:n.duration+"ms cubic-bezier(0.68, -0.55, 0.265, 1.55)",transitionDelay:`${o*_}ms`,transform:a.value||c.value?`translateX(${100*_}%) translateY(-100%)`:`translateX(${100*_}%)`}),class:"single"},wt(S),5))),128)):Bt("",!0)],4),P("div",{class:"background",style:Y({transition:n.duration+"ms",backgroundColor:n.placeholderType=="normal"||a.value||c.value?"transparent":n.borderColor,height:n.placeholderType=="normal"||a.value||c.value?n.height:"2px",borderRadius:n.borderRadius})},null,4)])]))}}),H_="",k0=mt(E0,[["__scopeId","data-v-a5dc9c0b"]]),P0=["max","min","step","value","autofocus"],O0={key:0,class:"label"},I0=ct({customOptions:{},inheritAttrs:!0,__name:"InputRange",props:{min:{default:0},max:{default:100},step:{default:1},defaultValue:{default:0},unit:{default:""},showValue:{type:Boolean,default:!0},autofocus:{type:Boolean,default:!1},color:{default:"#5a82f0"},barColor:{default:"#f5f5f5"},handleSize:{default:"20px"},barHeight:{default:"4px"}},emits:["change"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=M(n.defaultValue),o=()=>Ce((r.value-n.min)/(n.max-n.min),4)*100,a=M(o());function l(h){r.value=Ce(h.target.value,2),a.value=o(),i("change",r.value)}const c=`
65
65
  :root {
66
66
  --input-range-color: ${n.color};
67
67
  --input-range-thumb-size: ${n.handleSize};
@@ -72,14 +72,14 @@ Component that was made reactive: `,s)),P(s,t,e,n,i,o,r,!0)}function Tf(s){retur
72
72
  --input-range-thumb-size: ${n.handleSize};
73
73
  --input-range-track-size: ${n.barHeight};
74
74
  }
75
- `,u=M();return Mt(u,()=>{u.value&&et.injectStyle(c,u.value)}),le(()=>{}),t({}),(h,d)=>(L(),H("div",{class:"input-range",ref_key:"inputRangeContainer",ref:u},[P("input",{type:"range",max:n.max,min:n.min,step:n.step,value:r.value,autofocus:n.autofocus,onInput:l,style:Y({background:`linear-gradient(to right, ${n.color} 0%, ${n.color} ${a.value}%, ${n.barColor} ${a.value}%, ${n.barColor})`})},null,44,P0),kt(h.$slots,"default",{value:r.value},()=>[h.showValue?(L(),H("label",O0,wt(r.value)+wt(n.unit),1)):Bt("",!0)],!0)],512))}}),W_="",Vs=mt(I0,[["__scopeId","data-v-db15bad2"]]),D0=["width","height"],R0=ct({__name:"Canvas",props:{bgColor:{default:"rgba(255,255,255,0)"},enableCustomContext:{type:Boolean,default:!1}},emits:["ready","resize"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=M(),o=M(),a=M(0),l=M(0);let c;Mt(r,()=>{r.value&&(c=new ys(r.value,!1),c.on("resize",(E,S)=>{const _=ea();a.value=Math.min(E,_.width),l.value=Math.min(S,_.height),m()}),c.start())}),Mt(o,()=>{o.value&&m()});let u,h,d;function m(){u||!o.value||!a.value||!l.value||(u=new ys(o.value,!1),u.on("resize",(E,S)=>{i("resize",E,S),h=new Zu(u,n.enableCustomContext),d?.(h),i("ready",h)}),u.start())}function f(){return new Promise(E=>{if(h)return E(h);d=E})}return le(()=>{u?.destroy(),c?.destroy()}),t({getCanvasElement:()=>o.value,getCanvas:f}),(E,S)=>(L(),H("div",{class:"canvas",ref_key:"canvasOutterRef",ref:r},[P("canvas",{ref_key:"canvasRef",ref:o,width:a.value,height:l.value,style:Y({backgroundColor:n.bgColor})},null,12,D0)],512))}}),q_="",rs=mt(R0,[["__scopeId","data-v-1fc03287"]]),A0={class:"input-range-canvas"},M0={key:0,class:"label"},N0=ct({customOptions:{Canvas:rs},inheritAttrs:!0,__name:"InputRangeCanvas",props:{min:{default:0},max:{default:100},step:{default:1},defaultValue:{default:0},unit:{default:""},showValue:{type:Boolean,default:!0},color:{default:"#5a82f0"},barColor:{default:"#f5f5f5"},handleSize:{default:"20px"},barHeight:{default:"4px"}},emits:["change"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=M(n.defaultValue),o=m=>{r.value=m,i("change",m)},a=es(n.handleSize,20).number/2,l=es(n.barHeight,4).number;let c;const u=()=>{c=new Wu({x:0,y:a-l/2,min:n.min,max:n.max,step:n.step,defaultValue:r.value,barWidth:h,handleRadius:a,barHeight:l}),c.on("change",o)};let h=0;const d=M();return Mt(d,()=>{d.value&&d.value.getCanvas().then(m=>{h=m.app.width,u(),m.app.on("resize",f=>{h=f,u()}),Zt(()=>(m.ctx.clearRect(),m.draw(c),!0))})}),le(()=>{}),t({}),(m,f)=>(L(),H("div",A0,[P("div",{class:"input",style:Y({height:n.handleSize})},[ft(rs,{ref_key:"canvasRef",ref:d},null,512)],4),kt(m.$slots,"default",{value:r.value},()=>[m.showValue?(L(),H("div",M0,wt(r.value)+wt(n.unit),1)):Bt("",!0)],!0)]))}}),Z_="",L0=mt(N0,[["__scopeId","data-v-6f53631b"]]),Et=ct({customOptions:{},inheritAttrs:!0,__name:"Container",props:{type:{default:"block"},effectTriggerTiming:{default:"manual"},styleSheets:{},supportCopyText:{type:Boolean,default:!1}},emits:["ready","resize","start","end"],setup(s,{expose:t,emit:e}){const n=s,i=e;let r="start";const o=()=>{r="start",i("start")},a=()=>{r="end",i("end")},l=()=>{r=="start"?a():o()},c=()=>{r=="start"?o():a()};let u=!1,h,d;const m=M();Mt(m,()=>{if(!(!m.value||h)){if(n.styleSheets){let S="";for(let _ in n.styleSheets)S+=`${_}: ${n.styleSheets[_]};`;et.injectStyle(`
75
+ `,u=M();return Mt(u,()=>{u.value&&et.injectStyle(c,u.value)}),le(()=>{}),t({}),(h,d)=>(L(),H("div",{class:"input-range",ref_key:"inputRangeContainer",ref:u},[P("input",{type:"range",max:n.max,min:n.min,step:n.step,value:r.value,autofocus:n.autofocus,onInput:l,style:Y({background:`linear-gradient(to right, ${n.color} 0%, ${n.color} ${a.value}%, ${n.barColor} ${a.value}%, ${n.barColor})`})},null,44,P0),Et(h.$slots,"default",{value:r.value},()=>[h.showValue?(L(),H("label",O0,wt(r.value)+wt(n.unit),1)):Bt("",!0)],!0)],512))}}),W_="",Vs=mt(I0,[["__scopeId","data-v-db15bad2"]]),D0=["width","height"],R0=ct({__name:"Canvas",props:{bgColor:{default:"rgba(255,255,255,0)"},enableCustomContext:{type:Boolean,default:!1}},emits:["ready","resize"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=M(),o=M(),a=M(0),l=M(0);let c;Mt(r,()=>{r.value&&(c=new ys(r.value,!1),c.on("resize",(E,S)=>{const _=ea();a.value=Math.min(E,_.width),l.value=Math.min(S,_.height),m()}),c.start())}),Mt(o,()=>{o.value&&m()});let u,h,d;function m(){u||!o.value||!a.value||!l.value||(u=new ys(o.value,!1),u.on("resize",(E,S)=>{i("resize",E,S),h=new Zu(u,n.enableCustomContext),d?.(h),i("ready",h)}),u.start())}function f(){return new Promise(E=>{if(h)return E(h);d=E})}return le(()=>{u?.destroy(),c?.destroy()}),t({getCanvasElement:()=>o.value,getCanvas:f}),(E,S)=>(L(),H("div",{class:"canvas",ref_key:"canvasOutterRef",ref:r},[P("canvas",{ref_key:"canvasRef",ref:o,width:a.value,height:l.value,style:Y({backgroundColor:n.bgColor})},null,12,D0)],512))}}),q_="",rs=mt(R0,[["__scopeId","data-v-1fc03287"]]),A0={class:"input-range-canvas"},M0={key:0,class:"label"},N0=ct({customOptions:{Canvas:rs},inheritAttrs:!0,__name:"InputRangeCanvas",props:{min:{default:0},max:{default:100},step:{default:1},defaultValue:{default:0},unit:{default:""},showValue:{type:Boolean,default:!0},color:{default:"#5a82f0"},barColor:{default:"#f5f5f5"},handleSize:{default:"20px"},barHeight:{default:"4px"}},emits:["change"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=M(n.defaultValue),o=m=>{r.value=m,i("change",m)},a=es(n.handleSize,20).number/2,l=es(n.barHeight,4).number;let c;const u=()=>{c=new Wu({x:0,y:a-l/2,min:n.min,max:n.max,step:n.step,defaultValue:r.value,barWidth:h,handleRadius:a,barHeight:l}),c.on("change",o)};let h=0;const d=M();return Mt(d,()=>{d.value&&d.value.getCanvas().then(m=>{h=m.app.width,u(),m.app.on("resize",f=>{h=f,u()}),Zt(()=>(m.ctx.clearRect(),m.draw(c),!0))})}),le(()=>{}),t({}),(m,f)=>(L(),H("div",A0,[P("div",{class:"input",style:Y({height:n.handleSize})},[ft(rs,{ref_key:"canvasRef",ref:d},null,512)],4),Et(m.$slots,"default",{value:r.value},()=>[m.showValue?(L(),H("div",M0,wt(r.value)+wt(n.unit),1)):Bt("",!0)],!0)]))}}),Z_="",L0=mt(N0,[["__scopeId","data-v-6f53631b"]]),kt=ct({customOptions:{},inheritAttrs:!0,__name:"Container",props:{type:{default:"block"},effectTriggerTiming:{default:"manual"},styleSheets:{},supportCopyText:{type:Boolean,default:!1}},emits:["ready","resize","start","end"],setup(s,{expose:t,emit:e}){const n=s,i=e;let r="start";const o=()=>{r="start",i("start")},a=()=>{r="end",i("end")},l=()=>{r=="start"?a():o()},c=()=>{r=="start"?o():a()};let u=!1,h,d;const m=M();Mt(m,()=>{if(!(!m.value||h)){if(n.styleSheets){let S="";for(let _ in n.styleSheets)S+=`${_}: ${n.styleSheets[_]};`;et.injectStyle(`
76
76
  :root {
77
77
  ${S}
78
78
  }
79
79
  :host {
80
80
  ${S}
81
81
  }
82
- `,m.value)}h=new ys(m.value,!1),h.on("resize",(S,_)=>{i("resize",S,_,m.value.getBoundingClientRect()),d?.(h),u||(u=!0,n.effectTriggerTiming!=="manual"&&o(),i("ready",h),n.effectTriggerTiming=="immediate"&&l())}),h.on("mouseEnter",()=>{n.effectTriggerTiming=="mouseMove"&&l()}),h.on("mouseLeave",()=>{n.effectTriggerTiming=="mouseMove"&&l()}),h.on("tap",()=>{n.effectTriggerTiming=="click"&&l(),n.supportCopyText&&et.copyToClipboard(et.getInnerText(m.value)).then(()=>{}).catch(S=>{})}),h.start()}});const f=()=>new Promise(S=>{if(h)return S(h);d=S}),E=()=>f().then(()=>m.value.getBoundingClientRect());return le(()=>{h?.destroy()}),t({getElement:()=>m.value,getApp:f,getSize:E,getStatus:()=>r,startEffect:o,endEffect:a,nextEffect:l,repeatEffect:c}),(S,_)=>(L(),H("div",{class:ie(["container",[n.type]]),ref_key:"containerRef",ref:m,style:Y({position:"relative",boxSizing:"border-box",display:n.type=="shrink"?"inline-block":"block",width:n.type=="full"?"100%":"auto",height:n.type=="full"?"100%":"auto"})},[kt(S.$slots,"default")],6))}}),F0={class:"input-range-box"},$0={key:0,class:"label"},V0=ct({customOptions:{Container:Et},inheritAttrs:!0,__name:"InputRangeBox",props:{min:{default:0},max:{default:100},step:{default:1},defaultValue:{default:0},unit:{default:""},showValue:{type:Boolean,default:!1},bgColor:{default:$s.inputColor},barColor:{default:$s.numberColor},barHeight:{default:"20px"}},emits:["change"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=M(n.defaultValue),o=()=>Ce(bu(n.min,n.max,n.step)(r.value),2),a=()=>Ce((r.value-n.min)/(n.max-n.min),4)*100;r.value=o();const l=M(a()),c={"--input-range-box-background-hover-color":Ae(n.bgColor).lighten(.05).toString(),"--input-range-box-foreground-hover-color":Ae(n.barColor).lighten(.05).toString()},u=M();function h(d){const m=async f=>{const E=await u.value.getSize();r.value=Ce(xm(f,E.left,E.right,n.min,n.max),2),r.value=o(),l.value=a(),i("change",r.value)};d.captureDrag({start:f=>{m(f.clientX)},move:f=>{m(f.clientX)}})}return le(()=>{}),t({}),(d,m)=>(L(),H("div",F0,[P("div",{class:"box",style:Y({height:n.barHeight,cursor:"ew-resize"})},[ft(Et,{ref_key:"boxContainerRef",ref:u,type:"full",styleSheets:c,onReady:h},{default:Pt(()=>[P("div",{class:"background",style:Y({backgroundColor:n.bgColor,width:"100%",height:"100%"})},null,4),P("div",{class:"foreground",style:Y({backgroundColor:n.barColor,width:l.value+"%",height:"100%"})},null,4)]),_:1},512)],4),kt(d.$slots,"default",{value:r.value},()=>[d.showValue?(L(),H("label",$0,wt(r.value)+wt(n.unit),1)):Bt("",!0)],!0)]))}}),K_="",Y0=mt(V0,[["__scopeId","data-v-ae6ae9c6"]]),ci=ct({customOptions:{Container:Et},inheritAttrs:!0,__name:"CSSAnimation",props:{containerType:{default:"shrink"},supportCopyText:{type:Boolean,default:!1},effectTriggerTiming:{default:"mouseMove"},name:{default:"jelly"},timingFunction:{},duration:{},delay:{},repeat:{},direction:{},fillMode:{default:"both"},playState:{default:"running"},perspective:{default:"1200px"}},emits:["cssanimationstart","cssanimationend"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=Qt({}),o=Qt({});let a=n.name,l=n.duration,c=n.timingFunction,u=n.delay,h=n.repeat,d=n.direction;function m(){switch(a){case"superRainbow":l=n.duration||15e3;break;case"heartBeat":l=n.duration||1300;break;case"statusProcessing":l=n.duration||1200;break;case"rotateFall":case"rotateSlideOut":case"rotateSlideIn":l=n.duration||1e3;break;case"rotateRightSideFirst":case"rotateLeftSideFirst":case"rotateTopSideFirst":case"rotateBottomSideFirst":case"rotatePushLeft":case"rotatePushRight":case"rotatePushTop":case"rotatePushBottom":case"rotateRoomLeftOut":case"rotateRoomLeftIn":case"rotateRoomRightOut":case"rotateRoomRightIn":case"rotateRoomTopOut":case"rotateRoomTopIn":case"rotateRoomBottomOut":case"rotateRoomBottomIn":case"rotateCarouselLeftOut":case"rotateCarouselLeftIn":case"rotateCarouselRightOut":case"rotateCarouselRightIn":case"rotateCarouselTopOut":case"rotateCarouselTopIn":case"rotateCarouselBottomOut":case"rotateCarouselBottomIn":l=n.duration||800;break;case"bounceIn":case"bounceOut":case"flipOutX":case"hinge":l=n.duration||750;break;case"rotateFoldRight":case"rotateFoldLeft":case"rotateFoldTop":case"rotateFoldBottom":case"rotateUnfoldLeft":case"rotateUnfoldRight":case"rotateUnfoldTop":case"rotateUnfoldBottom":case"fade":case"moveFromLeftFade":case"moveToLeftFade":case"moveFromRightFade":case"moveToRightFade":case"moveFromTopFade":case"moveToTopFade":case"moveFromBottomFade":case"moveToBottomFade":l=n.duration||700;break;case"moveFromLeft":case"moveToLeft":case"moveFromRight":case"moveToRight":case"moveFromTop":case"moveToTop":case"moveFromBottom":case"moveToBottom":case"rotateCubeLeftOut":case"rotateCubeLeftIn":case"rotateCubeRightOut":case"rotateCubeRightIn":case"rotateCubeTopOut":case"rotateCubeTopIn":case"rotateCubeBottomOut":case"rotateCubeBottomIn":l=n.duration||600;break;default:l=n.duration||500;break}switch(a){case"superRainbow":c=n.timingFunction||"linear";break;case"lightSpeedOutLeft":case"lightSpeedOutRight":case"rotateRightSideFirst":case"rotateLeftSideFirst":case"rotateTopSideFirst":case"rotateBottomSideFirst":case"flipOutRight":case"flipOutLeft":case"flipOutTop":case"flipOutBottom":case"rotateFall":case"rotateOutNewspaper":case"rotateCubeLeftOut":case"rotateCubeLeftIn":case"rotateCubeRightOut":case"rotateCubeRightIn":case"rotateCubeTopOut":case"rotateCubeTopIn":case"rotateCubeBottomOut":case"rotateCubeBottomIn":case"rotateSidesOut":c=n.timingFunction||"ease-in";break;case"lightSpeedInLeft":case"lightSpeedInRight":case"flipInLeft":case"flipInRight":case"flipInBottom":case"flipInTop":case"rotateInNewspaper":case"rotateSidesIn":c=n.timingFunction||"ease-out";break;case"pulse":case"headShake":case"heartBeat":case"statusProcessing":c=n.timingFunction||"ease-in-out";break;default:c=n.timingFunction||"ease";break}switch(a){default:u=n.delay||0;break}switch(a){case"superRainbow":case"statusProcessing":h=n.repeat||"infinite";break;default:h=n.repeat||1;break}switch(a){case"superRainbow":d=n.direction||"alternate";break;default:d=n.direction||"normal";break}switch(a){case"hinge":case"rotateFall":o.transformOrigin="left top";break;case"zoomOutLeft":case"rotateRightSideFirst":case"rotatePushLeft":case"rotatePullLeft":case"rotateFoldRight":case"rotateUnfoldRight":case"rotateRoomLeftIn":case"rotateRoomRightOut":case"rotateCubeLeftIn":case"rotateCubeRightOut":o.transformOrigin="left center";break;case"rotateInUpLeft":case"rotateInDownLeft":case"rotateOutUpLeft":case"rotateOutDownLeft":o.transformOrigin="left bottom";break;case"swing":case"zoomOutUp":case"rotateBottomSideFirst":case"rotatePushTop":case"rotatePullTop":case"rotateFoldBottom":case"rotateUnfoldBottom":case"rotateRoomTopIn":case"rotateRoomBottomOut":case"rotateCubeTopIn":case"rotateCubeBottomOut":o.transformOrigin="center top";break;case"bounce":case"zoomOutDown":case"rotateTopSideFirst":case"rotatePushBottom":case"rotatePullBottom":case"rotateFoldTop":case"rotateUnfoldTop":case"rotateRoomTopOut":case"rotateRoomBottomIn":case"rotateCubeTopOut":case"rotateCubeBottomIn":o.transformOrigin="center bottom";break;case"zoomOutRight":case"rotateLeftSideFirst":case"rotatePushRight":case"rotatePullRight":case"rotateFoldLeft":case"rotateUnfoldLeft":case"rotateRoomLeftOut":case"rotateRoomRightIn":case"rotateCubeLeftOut":case"rotateCubeRightIn":o.transformOrigin="right center";break;case"rotateInUpRight":case"rotateInDownRight":case"rotateOutUpRight":case"rotateOutDownRight":o.transformOrigin="right bottom";break;default:delete o.transformOrigin;break}switch(a){case"jelly":case"bounce":case"flash":case"pulse":case"rubberBand":case"shakeX":case"shakeY":case"headShake":case"swing":case"tada":case"wobble":case"jello":case"heartBeat":case"bounceIn":case"fadeIn":case"fadeOut":case"flip":case"flipInX":case"flipInY":case"flipOutX":case"flipOutY":case"hinge":case"jackInTheBox":r.overflow="visible";break;default:r.overflow="hidden";break}switch(a){case"flip":case"flipInX":case"flipInY":case"flipOutX":case"flipOutY":o.backfaceVisibility="visible";break;default:delete o.backfaceVisibility;break}}Mt(()=>n.name,()=>{a=n.name,m()},{immediate:!0});const f=M(),E=M(),S=z=>{r.perspective=n.perspective,z.on("animationstart",ut=>{i("cssanimationstart",ut.animationName)}),z.on("animationend",ut=>{i("cssanimationend",ut.animationName)})};function _(){E.value.style.animation="none",E.value.offsetHeight,E.value.style.animation=null}const C=()=>{o.animation="none"},y=()=>{_(),o.animation=`${l}ms ${c} ${u}ms ${h} ${d} ${n.fillMode} ${n.playState} ${a}`};return t({trigger:z=>{z&&(a=z,m()),f.value.startEffect(),d="normal",f.value.endEffect()},triggerReverse:z=>{z&&(a=z,m()),f.value.startEffect(),d="reverse",f.value.endEffect()},clear:()=>{o.animation="none"}}),(z,ut)=>(L(),zt(Et,{class:"css-animation",ref_key:"containerRef",ref:f,type:n.containerType,supportCopyText:n.supportCopyText,effectTriggerTiming:n.effectTriggerTiming,style:Y(r),onReady:S,onStart:C,onEnd:y},{default:Pt(()=>[P("div",{class:"css-animation-inner",ref_key:"animationRef",ref:E,style:Y({position:"relative",display:"block",width:"100%",height:"100%",cursor:"pointer",transformStyle:"preserve-3d",...o})},[kt(z.$slots,"default")],4)]),_:3},8,["type","supportCopyText","effectTriggerTiming","style"]))}}),Q_="",z0={class:"status-processing",style:{position:"relative",display:"inline-block",width:"12px",height:"12px",borderRadius:"50%",overflow:"hidden"}},B0=ct({customOptions:{CSSAnimation:ci},__name:"Status",props:{status:{default:"processing"},color:{}},setup(s,{expose:t,emit:e}){const n=s;let i="";switch(n.status){case"wait":i="#d9d9d9";break;case"success":i="#52c41a";break;case"error":i="#ff4d4f";break;case"processing":default:i="#1677ff";break}return n.color&&(i=n.color),t({}),(r,o)=>(L(),H("div",z0,[r.status==="processing"?(L(),zt(ci,{key:0,name:"statusProcessing",containerType:"full",effectTriggerTiming:"immediate"},{default:Pt(()=>[P("div",{style:Y({width:"100%",height:"100%",borderRadius:"50%",backgroundColor:Ft(i)})},null,4)]),_:1})):Bt("",!0),P("div",{style:Y({position:"absolute",top:"3px",left:"3px",width:"6px",height:"6px",borderRadius:"50%",backgroundColor:Ft(i)})},null,4)]))}}),G0=ct({customOptions:{},inheritAttrs:!0,__name:"InputFileDrop",props:{placeholder:{default:"drop file"}},emits:["yz-drop"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=M(),o=M(!1);function a(){o.value=!0}function l(){o.value=!1}function c(h){h.preventDefault()}function u(h){h.preventDefault(),i("yz-drop",h.dataTransfer.files),l()}return le(()=>{}),t({}),(h,d)=>(L(),H("div",{class:ie(["input-file-drop",[o.value?"over":""]]),ref_key:"zone",ref:r,onDragenter:a,onDragleave:l,onDragover:c,onDrop:u},wt(n.placeholder),35))}}),J_="",X0=mt(G0,[["__scopeId","data-v-0c959dfd"]]),j0=["width","height"],U0=["fill"],H0=ct({__name:"SVGDelete",props:{width:{default:"16px"},height:{},color:{default:Ot.colorPrimary}},setup(s){const t=s;return(e,n)=>(L(),H("svg",{viewBox:"0 0 24 24",width:t.width,height:t.height??t.width,xmlns:"http://www.w3.org/2000/svg"},[P("path",{fill:t.color,d:"M7 21q-.825 0-1.412-.587T5 19V6H4V4h5V3h6v1h5v2h-1v13q0 .825-.587 1.413T17 21zM17 6H7v13h10zM9 17h2V8H9zm4 0h2V8h-2zM7 6v13z"},null,8,U0)],8,j0))}}),tb="",Ta=mt(H0,[["__scopeId","data-v-4747d4a7"]]),W0=ct({customOptions:{SVGDelete:Ta},inheritAttrs:!0,__name:"SlideLeftItem",props:{bgColor:{default:Ot.colorGrayFF},deleteColor:{default:Ot.colorRed},fontColor:{default:Ot.colorGrayFF},borderRadius:{default:"4px"},deleteWidth:{default:"44px"},transtionDuration:{default:"150ms"}},emits:["delete"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=M(!1),o=()=>{i("delete"),r.value=!1};let a;const l=M();return Mt(l,()=>{l.value&&(a=new ys(l.value),a.on("panLeft",()=>{r.value=!0}),a.on("panRight",()=>{r.value=!1}),a.on("tapOutSide",()=>{r.value=!1}))}),le(()=>{a?.destroy()}),t({}),(c,u)=>(L(),H("div",{class:"parent",ref_key:"item",ref:l,style:Y({backgroundColor:n.bgColor,borderRadius:n.borderRadius})},[P("div",{class:"content",style:Y({transition:"all ease-in "+n.transtionDuration,transform:r.value?"translate(-"+n.deleteWidth+", 0)":"translate(0, 0)"})},[kt(c.$slots,"default",{},void 0,!0)],4),P("div",{class:"delete",onClick:o,style:Y({backgroundColor:n.deleteColor,width:n.deleteWidth,transition:"all ease-in "+n.transtionDuration,transform:r.value?"translate(0, 0)":"translate("+n.deleteWidth+", 0)"})},[ft(Ta,{color:n.fontColor},null,8,["color"])],4)],4))}}),eb="",q0=mt(W0,[["__scopeId","data-v-244215c2"]]),Z0=ct({customOptions:{Container:Et,SVGDown:ai},inheritAttrs:!0,__name:"Accordion",props:{initOpen:{type:Boolean,default:!1},titleHeight:{default:"44px"},bgColor:{default:"#efefef"},fontColor:{default:"#333333"},borderColor:{default:"#dddddd"},borderRadius:{default:"4px"},padding:{default:"1em"},duration:{default:500}},emits:["open","close","resize"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=(h,d)=>{i("resize",h,d)},o=M(Number.MAX_SAFE_INTEGER+"px"),a=M(),l=M(!0);Mt(a,()=>{a.value&&(o.value=a.value.getBoundingClientRect().height+"px",l.value=n.initOpen)});function c(){l.value=!l.value,l.value?i("open"):i("close")}const u=M(0);return $l(()=>{u.value=l.value?0:-90}),t({}),(h,d)=>(L(),zt(Et,{onResize:r},{default:Pt(()=>[P("div",{class:"accordion",style:Y({background:n.bgColor,color:n.fontColor,borderRadius:n.borderRadius})},[P("div",{class:"accordion-title",onClick:c,style:Y({height:n.titleHeight,lineHeight:n.titleHeight,margin:`0 ${n.padding}`,transitionDelay:`${l.value?0:n.duration}ms`,borderBottom:`${l.value?1:0}px solid ${n.borderColor}`})},[kt(h.$slots,"title",{},()=>[Jt("title")],!0),ft(ai,{class:"arrow",style:Y({transition:`transform ${n.duration}ms ease-in-out`,transform:`rotate(${u.value}deg)`})},null,8,["style"])],4),P("div",{class:"accordion-content",ref_key:"content",ref:a,style:Y({margin:`0 ${n.padding}`,transition:`max-height ${n.duration}ms ease-in-out`,maxHeight:l.value?o.value:"0"})},[kt(h.$slots,"content",{},void 0,!0)],4)],4)]),_:3}))}}),sb="",K0=mt(Z0,[["__scopeId","data-v-6c9d636f"]]),Q0=ct({__name:"ProgressBar",props:{bgColor:{default:"#efefef"},progressColor:{default:"#a0dde9"},borderColor:{default:"#eeeeee"},borderRadius:{default:"4px"},showText:{type:Boolean,default:!1}},emits:["complete"],setup(s,{expose:t,emit:e}){const n=s,i=M(0);function r(o){i.value=Math.min(Math.max(0,o),100)}return t({goto:r}),(o,a)=>(L(),H("div",{class:"bar",style:Y({border:`1px solid ${n.borderColor}`,borderRadius:n.borderRadius,backgroundColor:n.bgColor})},[P("div",{class:"bar-inner",style:Y({width:i.value+"%",backgroundColor:n.progressColor})},wt(n.showText?i.value+"%":""),5)],4))}}),nb="",ui=mt(Q0,[["__scopeId","data-v-d986b312"]]),J0=["width","height"],ty=["src","type"],ey={class:"video-progress-bar"},sy=ct({customOptions:{ProgressBar:ui},inheritAttrs:!0,__name:"Video",props:{src:{},type:{default:"video/webm"},autoplay:{type:Boolean,default:!0},width:{default:"320px"},height:{default:"138px"}},emits:["start","complete"],setup(s,{expose:t,emit:e}){const n=s,i=e;let r;function o(h){if(r){r.resume();return}r=new qe({frameDuration:this.duration*1e3}),r.addTween({x:0},{x:100},{frames:1,delay:0,onStart:()=>{i("start"),l.value?.goto(0)},onUpdate:d=>{l.value?.goto(d.x)},onComplete:()=>{i("complete"),r=null}}),r.play()}const a=M(),l=M();Mt(a,()=>{a.value&&(a.value.addEventListener("play",o),n.autoplay&&ma.tryAutoPlayOrAutoPlayAfterClick(a.value))}),le(()=>{a.value?.removeEventListener(o)});function c(){a.value?.play()}function u(){a.value?.pause(),r?.pause()}return t({play:c,pause:u}),(h,d)=>(L(),H("div",{class:"video",style:Y({width:n.width,height:n.height}),onClick:c},[P("video",{ref_key:"video",ref:a,width:n.width,height:n.height,preload:"metadata"},[P("source",{src:n.src,type:n.type},null,8,ty)],8,J0),P("div",ey,[ft(ui,{ref_key:"bar",ref:l,bgColor:"#ffffff"},null,512)])],4))}}),ib="",ny=mt(sy,[["__scopeId","data-v-5f48bfae"]]),Sn=ct({customOptions:{},inheritAttrs:!0,__name:"Overlay",props:{visible:{type:Boolean,default:!1},color:{default:Ae("#000000",.25).toString()},isGlobal:{type:Boolean,default:!0}},setup(s,{expose:t,emit:e}){const n=s,i=M(),r=document.documentElement.style.overflow,o=document.body.style.overflow;return Mt(()=>n.visible,()=>{n.isGlobal?n.visible?(document.documentElement.style.overflow="hidden",document.body.style.overflow="hidden"):(document.documentElement.style.overflow=r,document.body.style.overflow=o):i.value&&(n.visible?i.value.parentElement.style.overflow="hidden":i.value.parentElement.style.overflow="")},{immediate:!0}),t({}),(a,l)=>n.visible?(L(),H("div",{key:0,class:"overlay",ref_key:"overlayRef",ref:i,style:Y([`background-color: ${n.color}`,`position: ${n.isGlobal?"fixed":"absolute"}`,"z-index: 9000","display: block","width: 100%","height: 100%","inset: 0","overflow: hidden"])},[kt(a.$slots,"default")],4)):Bt("",!0)}}),iy=P("div",null,null,-1),Be=ct({customOptions:{Overlay:Sn,Container:Et},inheritAttrs:!0,__name:"Pop",props:{closeWhenClickOverlay:{type:Boolean,default:!0},directionFrom:{default:"bottom"},absoluteLeft:{default:"0px"},absoluteTop:{default:"0px"},absoluteWidth:{default:"100%"},absoluteHeight:{default:"100%"},dur:{default:200},isGlobal:{type:Boolean,default:!0},overlayBgColor:{},popValue:{},popPercent:{default:50},popBgColor:{default:"rgba(255,255,255,0)"}},emits:["open","close","resize","clickOverlay"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=new qe({frameDuration:n.dur}),o=Qt({backgroundColor:n.popBgColor,position:"absolute",overflow:"hidden",opacity:"1"}),a=M("full");Mt(()=>[n.directionFrom,n.popValue],()=>{r.clear();const E=n.popValue?n.popValue:n.popPercent,S=n.popValue?"px":"%";switch(n.directionFrom){case"left":o.height="100%",o.width=`${E}${S}`,o.top="0",o.bottom="0",delete o.right,r.addTween({left:E},{left:0},{easeFunction:ht.Quadratic.Out,onUpdate(_){o.left=`-${_.left}${S}`},onComplete:u});break;case"right":o.height="100%",o.width=`${E}${S}`,o.top="0",o.bottom="0",delete o.left,r.addTween({right:E},{right:0},{easeFunction:ht.Quadratic.Out,onUpdate(_){o.right=`-${_.right}${S}`},onComplete:u});break;case"top":o.width="100%",o.height=`${E}${S}`,o.left="0",o.right="0",delete o.bottom,r.addTween({top:E},{top:0},{easeFunction:ht.Quadratic.Out,onUpdate(_){o.top=`-${_.top}${S}`},onComplete:u});break;case"bottom":o.width="100%",o.height=`${E}${S}`,o.left="0",o.right="0",delete o.top,r.addTween({bottom:E},{bottom:0},{easeFunction:ht.Quadratic.Out,onUpdate(_){o.bottom=`-${_.bottom}${S}`},onComplete:u});break;case"center":delete o.width,delete o.height,o.left="50%",delete o.right,o.top="50%",delete o.bottom,r.addTween({scale:.8,opacity:0},{scale:1,opacity:1},{easeFunction:ht.Quadratic.Out,onUpdate(_){o.transform=`translate(-50%, -50%) scale(${_.scale})`,o.opacity=`${_.opacity}`},onComplete:u});break;case"absolute":o.width=n.absoluteWidth,o.height=n.absoluteHeight,o.left=n.absoluteLeft,o.top=n.absoluteTop,delete o.right,delete o.bottom;break}switch(n.directionFrom){case"center":a.value="shrink",o.transform="translate(-50%, -50%)";break;case"absolute":a.value="shrink",delete o.transform,delete o.opacity;break;default:a.value="full",delete o.transform,delete o.opacity;break}},{immediate:!0}),Mt(()=>n.absoluteLeft,()=>{switch(n.directionFrom){case"absolute":o.left=n.absoluteLeft;break}}),Mt(()=>n.absoluteTop,()=>{switch(n.directionFrom){case"absolute":o.top=n.absoluteTop;break}}),Mt(()=>n.absoluteWidth,()=>{switch(n.directionFrom){case"absolute":o.width=n.absoluteWidth;break}}),Mt(()=>n.absoluteHeight,()=>{switch(n.directionFrom){case"absolute":o.height=n.absoluteHeight;break}});const l=(E,S,_)=>{i("resize",E,S,_)};let c="open";function u(){c=="open"?i("open"):(h.value=!1,i("close"))}const h=M(!1);function d(){h.value=!0,c="open",r.play()}function m(){switch(c="close",n.directionFrom){case"absolute":u();break;default:r.reverse();break}}function f(E){const S=n.directionFrom=="absolute"&&n.absoluteWidth=="100%"&&n.absoluteHeight=="100%"?"pop-content":"pop";E.target&&et.hasClass(E.target,S)&&(n.closeWhenClickOverlay&&m(),i("clickOverlay"))}return t({open:d,close:m}),(E,S)=>(L(),zt(Sn,{visible:h.value,isGlobal:n.isGlobal,color:n.overlayBgColor},{default:Pt(()=>[P("div",{class:"pop",style:{display:"block",position:"relative",width:"100%",height:"100%",overflow:"hidden"},onClick:f},[ft(Et,{class:"pop-content",type:a.value,style:Y(o),onResize:l},{default:Pt(()=>[kt(E.$slots,"default",{},()=>[iy])]),_:3},8,["type","style"])])]),_:3},8,["visible","isGlobal","color"]))}}),ry=ct({...{},name:"Image",customOptions:{Container:Et,Pop:Be},inheritAttrs:!0,__name:"Image",props:{src:{},mode:{default:"scaleToFill"},dur:{default:300},bgColor:{default:"transparent"},openImageDetailWhenClick:{type:Boolean,default:!0}},emits:["settled"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=new qe({frameDuration:n.dur}),o=M(0),a=M(0),l=M(0),c=M(0),u=M(0),h=M(0),d=M(0),m=M(0),f=M(0),E=M(0);Tg(n.src).then(D=>{f.value=D.width,E.value=D.height,x()});const S=M(0),_=M(0),C=(D,F)=>{S.value=D,_.value=F,x()},y=M(0),p=M(0);function x(){if(!S.value||!_.value||!f.value||!E.value)return;const D=Xu(n.mode,f.value,E.value,S.value,_.value);y.value=D.width,p.value=D.height;const{width:F,height:X}=ea(),rt=Xu("aspectFit",f.value,E.value,F,X);d.value=rt.width,m.value=rt.height,u.value=(F-d.value)/2,h.value=(X-m.value)/2}const b=(D,F,X)=>{i("settled",X.x,X.y,X.width,X.height)};let z=!1;const ut=M(),O=M();async function R(){if(!n.openImageDetailWhenClick)return;const D=await ut.value.getSize();r.clear(),r.addTween({left:D.x,top:D.y,width:D.width,height:D.height},{left:u.value,top:h.value,width:d.value,height:m.value},{easeFunction:ht.Quadratic.Out,onUpdate(F){o.value=F.left,a.value=F.top,l.value=F.width,c.value=F.height},onComplete(){z&&O.value.close(),z=!z}}),z||(O.value.open(),r.play())}function A(){z&&r.reverse()}return t({}),(D,F)=>(L(),zt(Et,{class:"image",type:"full",style:Y({backgroundColor:n.bgColor}),onResize:C,onClick:R},{default:Pt(()=>[ft(Et,{class:"image-inner",ref_key:"imageRef",ref:ut,type:"shrink",style:Y({width:y.value+"px",height:p.value+"px",backgroundImage:`url(${n.src})`,backgroundSize:`${y.value}px ${p.value}px`}),onResize:b},null,8,["style"]),ft(Be,{ref_key:"popRef",ref:O,"direction-from":"absolute","absolute-left":`${o.value}px`,"absolute-top":`${a.value}px`,"absolute-width":`${l.value}px`,"absolute-height":`${c.value}px`,"close-when-click-overlay":!1,onClickOverlay:A},{default:Pt(()=>[P("div",{class:"image-pop",style:Y({width:"100%",height:"100%",backgroundImage:`url(${n.src})`,backgroundSize:"100% 100%"})},null,4)]),_:1},8,["absolute-left","absolute-top","absolute-width","absolute-height"])]),_:1},8,["style"]))}}),ob="",Ea=mt(ry,[["__scopeId","data-v-48bcfc9f"]]),ka=ct({customOptions:{Container:Et,CSSAnimation:ci},inheritAttrs:!0,__name:"Page",props:{effect:{default:"moveFromLeft"},duration:{default:500},easeFunction:{type:Function,default:ht.Cubic.InOut},timingFunction:{default:"ease"},delay:{default:0}},emits:["ready","pageOpenStart","pageOpenEnd","pageCloseStart","pageCloseEnd"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=M(),o=Qt({}),a=()=>{i("ready",b,z)},l=()=>{E()},c=M();let u="rotateRightSideFirst",h=n.effect;function d(ut,O){switch(h){case"static":O();break;default:ut();break}}let m=!1;const f=new qe,E=()=>{const ut={},O={};f.clear(),f.frameDuration=n.duration,d(()=>{u=h},()=>{f.addTween(ut,O,{delay:n.delay/n.duration,easeFunction:n.easeFunction,onStart:()=>{i(m?"pageCloseStart":"pageOpenStart")},onUpdate:R=>{o.transform="","x"in R&&(o.transform+=` translateX(${R.x}%)`),"y"in R&&(o.transform+=` translateY(${R.y}%)`),"rx"in R&&(o.transform+=` rotateX(${R.rx}deg)`),"ry"in R&&(o.transform+=` rotateY(${R.ry}deg)`),"scale"in R&&(o.transform+=` scale(${R.scale})`),"opacity"in R&&(o.opacity=`${R.opacity}`)},onComplete:()=>{i(m?"pageCloseEnd":"pageOpenEnd")}})})};Mt(()=>[n.effect,n.delay,n.duration,n.easeFunction],()=>{h=n.effect,E()},{immediate:!0});const S=()=>{i(m?"pageCloseStart":"pageOpenStart")},_=()=>{i(m?"pageCloseEnd":"pageOpenEnd")},C=()=>{d(()=>{c.value.trigger(u)},()=>{f.play()})},y=()=>{d(()=>{c.value.triggerReverse(u)},()=>{f.reverse()})},p=()=>{o.transform="none",o.opacity="1"};function x(){d(()=>{p()},()=>{c.value?.clear()})}const b=ut=>{ut&&(h=ut,E()),m=!1,x(),r.value.startEffect()},z=ut=>{ut&&(h=ut,E()),m=!0,x(),r.value.endEffect()};return t({open:b,close:z,clear:p,getElement:()=>r.value.getElement()}),(ut,O)=>(L(),zt(Et,{class:"page",ref_key:"pageRef",ref:r,type:"full",effectTriggerTiming:"manual",style:{overflow:"hidden",width:"100%",height:"100%"},onReady:a,onResize:l,onStart:C,onEnd:y},{default:Pt(()=>[ft(ci,{ref_key:"cssAnimationRef",ref:c,containerType:"full",effectTriggerTiming:"manual",duration:n.duration,delay:n.delay,timingFunction:n.timingFunction,onCssanimationstart:S,onCssanimationend:_},{default:Pt(()=>[P("div",{class:"page-inner",style:Y({position:"relative",display:"block",width:"100%",height:"100%",overflow:"scroll",backfaceVisibility:"hidden",transformStyle:"preserve-3d",...o})},[kt(ut.$slots,"default")],4)]),_:3},8,["duration","delay","timingFunction"])]),_:3},512))}}),Tr=ct({customOptions:{Page:ka,Container:Et},inheritAttrs:!0,__name:"Routes",props:{effect:{default:"moveToLeft"},duration:{default:500},easeFunction:{type:Function,default:ht.Cubic.InOut},timingFunction:{default:"ease"},delay:{default:0}},emits:["routeChangeStart","routeChangeEnd","renderComplete"],setup(s,{expose:t,emit:e}){const n=s,i=e;let r=-1,o=-1,a;const l=[];let c=[],u=[],h=[];function d(Z){return Z>=0&&Z<c.length}function m(){return o>r}function f(Z,V,Kt){switch(Z){case r:return m()?V:Kt;case o:return m()?Kt:V;default:return"static"}}function E(Z,V){switch(Z){case"moveToLeft":return f(V,"moveToLeft","moveFromRight");case"moveToRight":return f(V,"moveToRight","moveFromLeft");case"moveToTop":return f(V,"moveToTop","moveFromBottom");case"moveToBottom":return f(V,"moveToBottom","moveFromTop");case"moveFromLeftPrevFade":return f(V,"fade","moveFromLeft");case"moveFromRightPrevFade":return f(V,"fade","moveFromRight");case"moveFromTopPrevFade":return f(V,"fade","moveFromTop");case"moveFromBottomPrevFade":return f(V,"fade","moveFromBottom");case"moveToLeftFade":return f(V,"moveToLeftFade","moveFromRightFade");case"moveToRightFade":return f(V,"moveToRightFade","moveFromLeftFade");case"moveToTopFade":return f(V,"moveToTopFade","moveFromBottomFade");case"moveToBottomFade":return f(V,"moveToBottomFade","moveFromTopFade");case"moveToLeftEasing":return f(V,"moveToLeft","moveFromRight");case"moveToRightEasing":return f(V,"moveToRight","moveFromLeft");case"moveToTopEasing":return f(V,"moveToTop","moveFromBottom");case"moveToBottomEasing":return f(V,"moveToBottom","moveFromTop");case"moveFromLeftPrevScaleToSmall":return f(V,"scaleToSmall","moveFromLeft");case"moveFromRightPrevScaleToSmall":return f(V,"scaleToSmall","moveFromRight");case"moveFromTopPrevScaleToSmall":return f(V,"scaleToSmall","moveFromTop");case"moveFromBottomPrevScaleToSmall":return f(V,"scaleToSmall","moveFromBottom");case"scaleSmall":return f(V,"scaleToSmall","scaleFromLarge");case"scaleLarge":return f(V,"scaleToLarge","scaleFromSmall");case"scaleToLargePrevScaleToSmall":return f(V,"scaleToSmallCenter","scaleFromSmallCenter");case"scaleFromSmallPrevMoveToLeft":return f(V,"moveToLeft","scaleFromSmall");case"scaleFromSmallPrevMoveToRight":return f(V,"moveToRight","scaleFromSmall");case"scaleFromSmallPrevMoveToTop":return f(V,"moveToTop","scaleFromSmall");case"scaleFromSmallPrevMoveToBottom":return f(V,"moveToBottom","scaleFromSmall");case"glueToLeft":return f(V,"rotateRightSideFirst","moveFromRight");case"glueToRight":return f(V,"rotateLeftSideFirst","moveFromLeft");case"glueToTop":return f(V,"rotateBottomSideFirst","moveFromBottom");case"glueToBottom":return f(V,"rotateTopSideFirst","moveFromTop");case"flipToLeft":return f(V,"flipOutLeft","flipInRight");case"flipToRight":return f(V,"flipOutRight","flipInLeft");case"flipToTop":return f(V,"flipOutTop","flipInBottom");case"flipToBottom":return f(V,"flipOutBottom","flipInTop");case"rotateFall":return f(V,"rotateFall","scaleFromSmall");case"newspaper":return f(V,"rotateOutNewspaper","rotateInNewspaper");case"moveFromLeftPrevPush":return f(V,"rotatePushRight","moveFromLeft");case"moveFromRightPrevPush":return f(V,"rotatePushLeft","moveFromRight");case"moveFromTopPrevPush":return f(V,"rotatePushBottom","moveFromTop");case"moveFromBottomPrevPush":return f(V,"rotatePushTop","moveFromBottom");case"pullFromLeftPrevPush":return f(V,"rotatePushRight","rotatePullLeft");case"pullFromRightPrevPush":return f(V,"rotatePushLeft","rotatePullRight");case"pullFromTopPrevPush":return f(V,"rotatePushBottom","rotatePullTop");case"pullFromBottomPrevPush":return f(V,"rotatePushTop","rotatePullBottom");case"moveFromLeftFadePrevFold":return f(V,"rotateFoldRight","moveFromLeftFade");case"moveFromRightFadePrevFold":return f(V,"rotateFoldLeft","moveFromRightFade");case"moveFromTopFadePrevFold":return f(V,"rotateFoldBottom","moveFromTopFade");case"moveFromBottomFadePrevFold":return f(V,"rotateFoldTop","moveFromBottomFade");case"moveToLeftFadePrevUnfold":return f(V,"moveToLeftFade","rotateUnfoldRight");case"moveToRightFadePrevUnfold":return f(V,"moveToRightFade","rotateUnfoldLeft");case"moveToTopFadePrevUnfold":return f(V,"moveToTopFade","rotateUnfoldBottom");case"moveToBottomFadePrevUnfold":return f(V,"moveToBottomFade","rotateUnfoldTop");case"rotateRoomLeftIn":return f(V,"rotateRoomLeftOut","rotateRoomLeftIn");case"rotateRoomRightIn":return f(V,"rotateRoomRightOut","rotateRoomRightIn");case"rotateRoomTopIn":return f(V,"rotateRoomTopOut","rotateRoomTopIn");case"rotateRoomBottomIn":return f(V,"rotateRoomBottomOut","rotateRoomBottomIn");case"rotateCubeLeftIn":return f(V,"rotateCubeLeftOut","rotateCubeLeftIn");case"rotateCubeRightIn":return f(V,"rotateCubeRightOut","rotateCubeRightIn");case"rotateCubeTopIn":return f(V,"rotateCubeTopOut","rotateCubeTopIn");case"rotateCubeBottomIn":return f(V,"rotateCubeBottomOut","rotateCubeBottomIn");case"rotateCarouselLeftIn":return f(V,"rotateCarouselLeftOut","rotateCarouselLeftIn");case"rotateCarouselRightIn":return f(V,"rotateCarouselRightOut","rotateCarouselRightIn");case"rotateCarouselTopIn":return f(V,"rotateCarouselTopOut","rotateCarouselTopIn");case"rotateCarouselBottomIn":return f(V,"rotateCarouselBottomOut","rotateCarouselBottomIn");case"rotateSidesIn":return f(V,"rotateSidesOut","rotateSidesIn");case"rotateSlideIn":return f(V,"rotateSlideOut","rotateSlideIn")}}function S(Z,V=600,Kt=600){switch(Z){case r:return V;case o:return Kt;default:return n.duration}}function _(Z,V){switch(Z){case"moveFromLeftFadePrevFold":case"moveFromRightFadePrevFold":case"moveFromTopFadePrevFold":case"moveFromBottomFadePrevFold":return S(V,700,700);case"moveToLeftEasing":case"moveToRightEasing":case"moveToTopEasing":case"moveToBottomEasing":case"moveFromLeftPrevScaleToSmall":case"moveFromRightPrevScaleToSmall":case"moveFromTopPrevScaleToSmall":case"moveFromBottomPrevScaleToSmall":return S(V,700,600);case"scaleSmall":return S(V,700,500);case"scaleLarge":return S(V,500,700);case"scaleToLargePrevScaleToSmall":return S(V,400,400);case"scaleFromSmallPrevMoveToLeft":case"scaleFromSmallPrevMoveToRight":case"scaleFromSmallPrevMoveToTop":case"scaleFromSmallPrevMoveToBottom":return S(V,600,700);case"glueToLeft":case"glueToRight":case"glueToTop":case"glueToBottom":return S(V,800,600);default:return n.duration}}let C=n.timingFunction;function y(Z){switch(Z){default:return n.easeFunction}}function p(Z,V){switch(Z){case"moveToLeftEasing":case"moveToRightEasing":case"moveToTopEasing":case"moveToBottomEasing":switch(V){case r:C=m()?"ease-in-out":"ease";break;case o:default:C=m()?"ease":"ease-in-out"}return y(V);default:return C=n.timingFunction,n.easeFunction}}function x(Z,V=300){switch(Z){case o:return n.delay+V;default:return n.delay}}function b(Z,V){switch(Z){case"flipToLeft":case"flipToRight":case"flipToTop":case"flipToBottom":case"newspaper":return x(V,500);case"scaleSmall":case"scaleLarge":return x(V,300);case"scaleToLargePrevScaleToSmall":return x(V,400);case"glueToLeft":case"glueToRight":case"glueToTop":case"glueToBottom":case"rotateSidesIn":return x(V,200);case"pullFromLeftPrevPush":case"pullFromRightPrevPush":case"pullFromTopPrevPush":case"pullFromBottomPrevPush":return x(V,180);default:return n.delay}}let z=2,ut=2;const O=()=>{z=2,ut=2},R=()=>{z=2,ut=3},A=()=>{z=3,ut=2};function D(Z){switch(n.effect){case"moveToLeftEasing":case"moveToRightEasing":case"moveToTopEasing":case"moveToBottomEasing":A();break;case"scaleFromSmallPrevMoveToLeft":case"scaleFromSmallPrevMoveToRight":case"scaleFromSmallPrevMoveToTop":case"scaleFromSmallPrevMoveToBottom":case"rotateFall":case"rotateRoomLeftIn":case"rotateRoomRightIn":case"rotateRoomTopIn":case"rotateRoomBottomIn":case"rotateCubeLeftIn":case"rotateCubeRightIn":case"rotateCubeTopIn":case"rotateCubeBottomIn":case"rotateCarouselLeftIn":case"rotateCarouselRightIn":case"rotateCarouselTopIn":case"rotateCarouselBottomIn":m()?A():R();break;case"moveFromLeftPrevFade":case"moveFromRightPrevFade":case"moveFromTopPrevFade":case"moveFromBottomPrevFade":case"moveFromLeftPrevScaleToSmall":case"moveFromRightPrevScaleToSmall":case"moveFromTopPrevScaleToSmall":case"moveFromBottomPrevScaleToSmall":case"glueToLeft":case"glueToRight":case"glueToTop":case"glueToBottom":m()?R():A();break;default:O();break}d(r)&&r==Z&&(h[r].style.zIndex=`${z}`,h[r].style.visibility="visible"),d(o)&&o==Z&&(h[o].style.zIndex=`${ut}`,h[o].style.visibility="visible")}function F(Z){R(),Z==r&&(h[r].style.zIndex=`${z}`,h[r].style.visibility="hidden"),Z==o&&(h[o].style.zIndex=`${ut}`,h[o].style.visibility="visible",l.shift()?.(),i("routeChangeEnd",r,o,c.length),r=o)}const X=M();function rt(Z=0,V=!1){if(!X.value)return;let Kt=0;Ac(fs("div",{class:"routes-pages",style:{display:"block",width:"100%",height:"100%",overflow:"hidden",position:"relative"}},c.map((te,It)=>{const ee=E(n.effect,It);return fs("div",Object.assign({class:"routes-page",style:{display:"block",width:"100%",height:"100%",overflow:"hidden",position:"absolute",top:"0",left:"0",backfaceVisibility:"hidden",transform:"translate3d(0, 0, 0)",transformStyle:"preserve-3d",visibility:r==It?"visible":"hidden",zIndex:V?"1":"0"}},te.pageKey?{key:te.pageKey}:{}),fs(ka,{effect:ee,duration:_(n.effect,It),easeFunction:p(n.effect,It),timingFunction:C,delay:b(n.effect,It),onReady:(Yt,G)=>{u[It]={open:Yt,close:G},++Kt==Z&&(a?.(),i("renderComplete"))},onPageOpenStart:()=>{D(It)},onPageOpenEnd:()=>{F(It)},onPageCloseStart:()=>{D(It)},onPageCloseEnd:()=>{F(It)}},{default:()=>te.component instanceof HTMLElement?fs("div",{...te.attributes,innerHTML:te.component.innerHTML}):fs(te.component,te.attributes,()=>te.child)}))})),X.value),h=X.value.children[0].children}Mt(()=>n.effect,()=>{rt()});function Q(Z=[]){c=[...Z],c.forEach(V=>{V.pageKey=V.pageKey||ti()}),a=()=>{r=-1,gt(0)},rt(c.length,!0)}function W(Z){Z.pageKey=Z.pageKey||ti(),c.push(Z),a=()=>{gt(c.length-1)},rt(1,c.length==1)}function it(){c.length<=1||gt(c.length-2,()=>{c.splice(c.length-1,1),r=c.length-1,rt()})}function B(){gt(r+1)}function j(){gt(r-1)}const yt=new Qo(1);function gt(Z,V){yt.addTask(()=>new Promise(Kt=>{const te=()=>{V?.(),Kt()};if(!d(Z)){te();return}if(o=Z,o==r){te();return}l.push(te),rt(),i("routeChangeStart",r,o,c.length),m()?(d(r)&&u[r].open(),d(o)&&u[o].open()):(d(r)&&u[r].close(),d(o)&&u[o].close())}))}return t({reset:Q,push:W,pop:it,forward:B,back:j,goto:gt,currentPageIndex:()=>r,totalPages:()=>c.length}),(Z,V)=>(L(),H("div",{class:"routes",ref_key:"routesRef",ref:X,style:{display:"block",position:"relative",width:"100%",height:"100%","overflow-x":"hidden","overflow-y":"hidden"}},null,512))}}),oy={key:0,style:{position:"absolute",top:"30px",left:"50%",transform:"translate(-50%, 0)",color:"#ffffff","font-size":"1em","z-index":"98"}},ay=ct({customOptions:{Image:Ea,Container:Et,Routes:Tr},inheritAttrs:!0,__name:"ImageView",props:{urls:{default:()=>[]},effect:{default:"moveToLeftFade"}},setup(s,{expose:t,emit:e}){const n=s,i=M(0);function r(d,m){i.value=m}const o=M(),a=d=>{d.on("panLeft",()=>{o.value?.forward()}),d.on("panRight",()=>{o.value?.back()}),o.value.reset(n.urls.map(m=>({component:fs(Ea,{mode:"aspectFit",src:m,openImageDetailWhenClick:!1})})))},l=M();function c(){l.value?.open()}function u(){l.value?.close()}const h=d=>{d.target&&et.hasClass(d.target,"image")&&u()};return t({open:c,close:u}),(d,m)=>(L(),zt(Be,{ref_key:"popRef",ref:l,directionFrom:"absolute",onClick:h},{default:Pt(()=>[n.urls.length>1?(L(),H("div",oy,wt(i.value+1)+" / "+wt(n.urls.length),1)):Bt("",!0),ft(Et,{style:{position:"absolute",top:"50%",transform:"translate(0, -50%)",width:"100%",height:"100%","z-index":"97"},onReady:a},{default:Pt(()=>[ft(Tr,{ref_key:"routesRef",ref:o,effect:n.effect,onRouteChangeEnd:r},null,8,["effect"])]),_:1})]),_:1},512))}}),ab="",ly={class:"page"},cy={class:"header"},uy={class:"main"},hy={class:"main-scroll"},dy={class:"footer"},fy=ct({customOptions:{},inheritAttrs:!0,__name:"LayoutMobile",props:{designWidth:{default:750}},setup(s,{expose:t,emit:e}){return Um(s.designWidth),t({}),(i,r)=>(L(),H("div",ly,[P("header",cy,[kt(i.$slots,"header",{},void 0,!0)]),P("div",uy,[P("div",hy,[kt(i.$slots,"main",{},void 0,!0)])]),P("footer",dy,[kt(i.$slots,"footer",{},void 0,!0)])]))}}),lb="",py=mt(fy,[["__scopeId","data-v-3904d6b5"]]),my=ct({customOptions:{},inheritAttrs:!0,__name:"LayoutCenter",props:{type:{default:"grid"}},setup(s,{expose:t,emit:e}){const n=s,i=Qt({}),r=Qt({});function o(){switch(yu(i),yu(r),n.type){case"table":i.display="table",r.display="table-cell",r.verticalAlign="middle",r.textAlign="center";break;case"transform":r.position="absolute",r.top="50%",r.left="50%",r.transform="translate(-50%, -50%)";break;case"grid":i.display="grid",i.justifyContent="center",i.alignItems="center";break;case"flex":default:i.display="flex",r.margin="auto"}}return o(),le(()=>{}),t({}),(a,l)=>(L(),H("div",{class:"layout-center",style:Y(i)},[P("div",{style:Y(r)},[kt(a.$slots,"default",{},void 0,!0)],4)],4))}}),cb="",gy=mt(my,[["__scopeId","data-v-37646611"]]),yy=P("div",{style:{"background-color":"#ffffff"}},"...",-1),Pa=ct({customOptions:{Pop:Be,Button:ve,Container:Et},inheritAttrs:!0,__name:"Popover",props:{gap:{default:10},isGlobal:{type:Boolean,default:!0},closeWhenClickOverlay:{type:Boolean,default:!0}},setup(s,{expose:t}){const e=s,n=M();function i(){n.value.open()}function r(){n.value.close()}const o=M(),a=M(0),l=M(0),c=M(0),u=M(0),h=(d,m)=>{if(c.value=d,u.value=m,!o.value)return;const f=ea(),E=o.value.getBoundingClientRect();a.value=Math.max(e.gap,Math.min(E.x+E.width+e.gap,f.width-d-e.gap)),l.value=Math.max(e.gap,Math.min(E.y,f.height-m-e.gap))};return t({open:i,close:r}),(d,m)=>(L(),H($t,null,[P("div",{ref_key:"popoverButtonRef",ref:o,class:"popover-button",style:{display:"inline-block"},onClick:i},[kt(d.$slots,"button",{},()=>[ft(ve,null,{default:Pt(()=>[Jt("popover")]),_:1})])],512),ft(Be,{ref_key:"popRef",ref:n,"direction-from":"absolute",isGlobal:e.isGlobal,closeWhenClickOverlay:e.closeWhenClickOverlay},{default:Pt(()=>[P("div",{style:Y({position:"absolute",left:a.value+"px",top:l.value+"px",width:c.value+"px",height:u.value+"px"})},[ft(Et,{type:"shrink",onResize:h},{default:Pt(()=>[kt(d.$slots,"panel",{},()=>[yy])]),_:3})],4)]),_:3},8,["isGlobal","closeWhenClickOverlay"])],64))}}),vy={class:"dialog-parent"},_y={key:0,class:"title"},by={key:0,class:"title-inner truncate"},xy={class:"custom-content"},wy={class:"custom-content-default"},Cy={key:1,class:"btns"},Sy=ct({customOptions:{Overlay:Sn,Pop:Be,Icon:an,Button:ve},inheritAttrs:!0,__name:"Dialog",props:{closeWhenClickOverlay:{type:Boolean,default:!1},dur:{default:200},minWidth:{default:"12em"},maxWidth:{default:"20em"},overlayBgColor:{}},emits:["open","close","cancel","confirm"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=M(),o=M(""),a=M(""),l=M(!1),c=M(""),u=M("");let h,d,m;const f=()=>{i("open")},E=()=>{h?.(),i("close")};function S(p){o.value=p?.title||"",a.value=p?.content||"",l.value=typeof p?.showClose=="boolean"?p?.showClose:!1,c.value=p?.cancelText||"",u.value=p?.confirmText||"",h=p?.onClose,d=p?.onCancel,m=p?.onConfirm,r.value.open()}function _(){r.value.close()}function C(){_(),d?.(),i("cancel")}function y(){_(),m?.(),i("confirm")}return t({open:S,close:_}),(p,x)=>(L(),zt(Be,{ref_key:"popRef",ref:r,directionFrom:"center",closeWhenClickOverlay:n.closeWhenClickOverlay,dur:n.dur,overlayBgColor:n.overlayBgColor,onOpen:f,onClose:E},{default:Pt(()=>[P("div",vy,[P("div",{class:"dialog",style:Y({minWidth:n.minWidth,maxWidth:n.maxWidth})},[o.value||l.value?(L(),H("div",_y,[o.value?(L(),H("div",by,wt(o.value),1)):Bt("",!0),l.value?(L(),H("div",{key:1,class:"close",onClick:_},[ft(an,{icon:"ic:baseline-close",color:Ft(Ot).colorGrayCC},null,8,["color"])])):Bt("",!0)])):Bt("",!0),P("div",xy,[kt(p.$slots,"default",{},()=>[P("div",wy,wt(a.value),1)],!0)]),c.value||u.value?(L(),H("div",Cy,[c.value?(L(),zt(ve,{key:0,onClick:C,class:"btn",bgColor:Ft(Ot).colorGrayE6,borderColor:Ft(Ot).colorGrayE6,fontColor:Ft(Ot).colorGray33,borderRadius:"0"},{default:Pt(()=>[Jt(wt(c.value),1)]),_:1},8,["bgColor","borderColor","fontColor"])):Bt("",!0),u.value?(L(),zt(ve,{key:1,onClick:y,class:"btn",borderRadius:"0"},{default:Pt(()=>[Jt(wt(u.value),1)]),_:1})):Bt("",!0)])):Bt("",!0)],4)])]),_:3},8,["closeWhenClickOverlay","dur","overlayBgColor"]))}}),ub="",hi=mt(Sy,[["__scopeId","data-v-f9df8635"]]),Ty={class:"loading-8"},Ey={viewBox:"25 25 50 50"},ky=ct({__name:"Loading8",props:{color:{default:Ot.colorPrimary}},setup(s){const t=s;return(e,n)=>(L(),H("div",Ty,[(L(),H("svg",Ey,[P("circle",{cx:"50",cy:"50",r:"20",style:Y(["stroke: "+t.color])},null,4)]))]))}}),hb="",Oa=mt(ky,[["__scopeId","data-v-e5e3cf4c"]]),Py={class:"loading"},Oy={class:"icon"},Iy={style:{width:"8em"}},Dy={key:0,class:"content"},Ry=ct({customOptions:{Overlay:Sn,Pop:Be,Dialog:hi,Loading8:Oa},inheritAttrs:!0,__name:"DialogLoading",props:{closeWhenClickOverlay:{type:Boolean,default:!1},dur:{default:200}},emits:["open","close"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=M(),o=M(""),a=()=>{i("open")},l=()=>{i("close")};function c(h){o.value=h||"",r.value.open()}function u(){r.value.close()}return t({open:c,close:u}),(h,d)=>(L(),zt(hi,{ref_key:"dialogRef",ref:r,showConfirm:!1,showTitle:!1,closeWhenClickOverlay:n.closeWhenClickOverlay,dur:n.dur,onOpen:a,onClose:l},{default:Pt(()=>[P("div",Py,[P("div",Oy,[kt(h.$slots,"default",{},()=>[P("div",Iy,[ft(Oa)])],!0)]),o.value?(L(),H("div",Dy,wt(o.value),1)):Bt("",!0)])]),_:3},8,["closeWhenClickOverlay","dur"]))}}),db="",Ay=mt(Ry,[["__scopeId","data-v-e707960a"]]),My={class:"toast"},Ny={class:"content"},Ly=ct({customOptions:{Overlay:Sn,Pop:Be,Dialog:hi},inheritAttrs:!0,__name:"DialogToast",props:{closeWhenClickOverlay:{type:Boolean,default:!1},dur:{default:200}},emits:["open","close"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=M(),o=M(""),a=()=>{i("open")},l=()=>{i("close")};function c(h,d=1500){o.value=h,r.value.open(),setTimeout(()=>{u()},d)}function u(){r.value.close()}return t({open:c,close:u}),(h,d)=>(L(),zt(hi,{ref_key:"dialogRef",ref:r,showConfirm:!1,showTitle:!1,closeWhenClickOverlay:n.closeWhenClickOverlay,dur:n.dur,overlayBgColor:"transparent",minWidth:"10em",onOpen:a,onClose:l},{default:Pt(()=>[P("div",My,[P("div",Ny,wt(o.value),1)])]),_:1},8,["closeWhenClickOverlay","dur"]))}}),fb="",Fy=mt(Ly,[["__scopeId","data-v-7a82fa25"]]),$y={class:"tab"},Vy=ct({name:"Tab",customOptions:{},inheritAttrs:!0,__name:"Tab",props:{label:{}},setup(s,{expose:t}){return t({}),(e,n)=>(L(),H("div",$y,[kt(e.$slots,"default",{},void 0,!0)]))}}),pb="",Yy=mt(Vy,[["__scopeId","data-v-6589e7fa"]]),zy={class:"tabs"},By=["onClick"],Gy={class:"content"},Xy=ct({customOptions:{},inheritAttrs:!0,__name:"Tabs",props:{labels:{},pages:{},initIndex:{default:0}},emits:["changedIndex"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=M(n.initIndex),o=Qt([]),a=M(),l=M(0),c=M(0),u=M(0),h=M([]),d=[],m=Wd(),f=m.default&&m.default();f&&(si(o,f),_(r.value));const E=(y,p)=>{if(y){if(d.push({index:p,el:y}),d.length<o.length)return;h.value=d}};Mt([a,h],()=>{S()});function S(){if(a.value&&h.value.length){const y=a.value.getBoundingClientRect(),p=h.value[r.value].el.getBoundingClientRect();l.value=p.x-y.x,c.value=p.y-y.y+p.height-2,u.value=p.width}}function _(y){r.value=y,i("changedIndex",y),S(),C.value.goto(y)}const C=M();return Mt(C,()=>{C.value&&C.value.reset(n.pages,()=>{C.value.goto(n.initIndex)})}),t({}),(y,p)=>(L(),H("div",zy,[P("div",{class:"header",ref_key:"headerRef",ref:a},[(L(!0),H($t,null,ge(n.labels,(x,b)=>(L(),H("div",{key:x,class:ie(b==r.value?"active":""),onClick:z=>_(b)},[P("div",{ref_for:!0,ref:z=>E(z,b)},wt(x),513)],10,By))),128)),P("div",{class:"indicator",style:Y({top:c.value+"px",left:l.value+"px",width:u.value+"px",height:"2px"})},null,4)],512),P("div",Gy,[ft(Tr,{ref_key:"routesRef",ref:C},null,512)])]))}}),mb="",jy=mt(Xy,[["__scopeId","data-v-cb33ca53"]]),Uy=["width","height"],Hy=ct({customOptions:{},inheritAttrs:!0,__name:"HandWritePanel",props:{canvasWidth:{default:"400"},canvasHeight:{default:"300"},borderColor:{default:"#000000"},brushSize:{default:4},brushDensity:{default:200},brushColor:{default:"#000000"},downloadFileName:{default:"手写图片"}},setup(s,{expose:t,emit:e}){const n=s;let i=()=>{};const r=M();return Mt(r,()=>{if(!r.value)return;const o=new ys(r.value),a=new Zu(o,!0);a.ctx.strokeStyle=n.brushColor,a.ctx.lineWidth=n.brushSize,a.drawMouseMoveLine("line"),i=()=>{ue.downloadFromSVGString(a.ctx.toRawSVG().raw,n.downloadFileName)}}),t({download:()=>i()}),(o,a)=>(L(),H("canvas",{ref_key:"panelRef",ref:r,width:n.canvasWidth,height:n.canvasHeight,style:Y([`border: 1px solid ${o.borderColor}`])},null,12,Uy))}}),Wy={class:"page-vertical-scroll-progress-bar"},qy=ct({customOptions:{ProgressBar:ui},inheritAttrs:!0,__name:"PageVerticalScrollProgressBar",props:{bgColor:{default:"#efefef"},progressColor:{default:"#07B56D"},borderColor:{default:"transparent"},borderRadius:{default:"4px"},duringTimeGap:{default:1},showText:{type:Boolean,default:!1}},emits:["progress"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=M();return Se.on("scroll",()=>{const o=zm();i("progress",o),r.value?.goto(o)}),le(()=>{}),t({}),(o,a)=>(L(),H("div",Wy,[ft(ui,{ref_key:"bar",ref:r,bgColor:n.bgColor,progressColor:n.progressColor,borderColor:n.borderColor,borderRadius:n.borderRadius,duringTimeGap:n.duringTimeGap,showText:n.showText},null,8,["bgColor","progressColor","borderColor","borderRadius","duringTimeGap","showText"])]))}}),gb="",Zy=mt(qy,[["__scopeId","data-v-074b327c"]]),Ky=["fill"],Qy=["fill"],Jy=ct({__name:"SVGCheck",props:{width:{default:"10px"},color:{default:Ot.colorPrimary}},setup(s){const t=s;return(e,n)=>(L(),H("svg",{style:Y(["width: "+t.width]),viewBox:"0 0 7 5",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[P("path",{d:"M0.153989 2.49994C-0.0513296 2.28468 -0.0513296 1.93567 0.153989 1.72041C0.359307 1.50514 0.692194 1.50514 0.897512 1.72041L3.12808 4.05902C3.3334 4.27428 3.3334 4.62329 3.12808 4.83855C2.92276 5.05382 2.58988 5.05382 2.38456 4.83855L0.153989 2.49994Z",fill:t.color},null,8,Ky),P("path",{d:"M6.10249 0.161447C6.30781 -0.0538159 6.64069 -0.0538157 6.84601 0.161447C7.05133 0.376711 7.05133 0.725721 6.84601 0.940984L3.12808 4.83855C2.92276 5.05382 2.58988 5.05382 2.38456 4.83855C2.17924 4.62329 2.17955 4.27439 2.38487 4.05913L6.10249 0.161447Z",fill:t.color},null,8,Qy)],4))}}),yb="",Ia=mt(Jy,[["__scopeId","data-v-987aed3d"]]),Da=s=>(Fn("data-v-85491020"),s=s(),$n(),s),t1=[Da(()=>P("path",{d:"M38,32.71a1.13,1.13,0,0,1-.8-.33L21.57,16.8a1.13,1.13,0,0,1,1.61-1.6L38.75,30.77a1.14,1.14,0,0,1-.8,1.94Z"},null,-1)),Da(()=>P("path",{d:"M22.38,32.71a1.17,1.17,0,0,1-.81-.33,1.15,1.15,0,0,1,0-1.61L37.15,15.2a1.13,1.13,0,1,1,1.6,1.6L23.18,32.38A1.13,1.13,0,0,1,22.38,32.71Z"},null,-1)),Da(()=>P("path",{d:"M18.68,3.79h-3.1l-15.64,20L15.33,43.45l.25.33H47.94v-40ZM3,23.79,16.73,6.3H45.3v35H16.73Z"},null,-1))],e1=ct({__name:"SVGCleanUp",props:{width:{default:"16px"},color:{default:Ot.colorPrimary}},setup(s){const t=s;return(e,n)=>(L(),H("svg",{style:Y(["width: "+t.width]),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"},t1,4))}}),xb="",Er=mt(e1,[["__scopeId","data-v-85491020"]]),s1=["data-number"],n1=["data-number","data-unactive"],i1=["data-number"],r1=["data-number","data-unactive"],o1=ct({customOptions:{Pop:Be,SVGCleanUp:Er,Container:Et},__name:"PlateKeyboard",props:{initPlates:{default:()=>[]},completePlateLength:{default:7}},emits:["open","close","plates"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=M(),o=M(0),a=Qt([]);function l(){a.length==0?o.value=0:a.length==1?o.value=1:o.value=2,a.length>=n.completePlateLength&&d()}Mt(()=>[...n.initPlates],()=>{si(a,n.initPlates),l()},{immediate:!0});const c=M(0),u=(y,p)=>{c.value=p},h=()=>{r.value.open(),i("open")},d=()=>{r.value.close(),i("close")},m=()=>{a.pop(),l(),i("plates",a)},f=y=>{if(y.target.dataset.unactive||"")return;let x=y.target.dataset.number;x&&(a.push(x),l(),i("plates",a))};t({open:h,close:d});const E=["京","沪","津","渝","黑","吉","辽","蒙","冀","新","甘","青","陕","宁","豫","鲁","晋","皖","鄂","湘","苏","川","云","桂","藏","浙","赣","粤","闽","琼","贵"],S=["1","2","3","4","5","6","7","8","9","0"],_=["A","B","C","D","E","F","G","H","J","K","L","M","N","P","Q","R","S","T","U","V","W","X","Y","Z"],C=["港","澳","学","警","使","领","挂","应","急"];return(y,p)=>(L(),zt(Be,{ref_key:"popRef",ref:r,directionFrom:"bottom",isGlobal:!0,closeWhenClickOverlay:!1,popValue:c.value},{default:Pt(()=>[ft(Et,{class:"popup-plate",style:Y({paddingBottom:Ft(Ot).safeAreaBottom}),onResize:u},{default:Pt(()=>[P("div",null,[P("div",{onClick:d},"关闭")]),P("div",{class:ie(["step",o.value==0?"":"hide"])},[(L(),H($t,null,ge(E,x=>P("div",{key:x,class:"popitem",onClick:f,"data-number":x},wt(x),9,s1)),64)),P("div",{class:"popitem popitem-clear",onClick:m},[ft(Er,{width:"16px"})])],2),P("div",{class:ie(["step",o.value!=0?"":"hide"])},[(L(),H($t,null,ge(S,x=>P("div",{key:x,class:ie(["popitem",o.value!=2?"unactive":""]),onClick:f,"data-number":x,"data-unactive":o.value!=2?"unactive":""},wt(x),11,n1)),64)),(L(),H($t,null,ge(_,x=>P("div",{key:x,class:"popitem",onClick:f,"data-number":x},wt(x),9,i1)),64)),(L(),H($t,null,ge(C,x=>P("div",{key:x,class:ie(["popitem",o.value!=2?"unactive":""]),onClick:f,"data-number":x,"data-unactive":o.value!=2?"unactive":""},wt(x),11,r1)),64)),P("div",{class:"popitem popitem-clear",onClick:m},[ft(Er,{width:"16px"})])],2)]),_:1},8,["style"])]),_:1},8,["popValue"]))}}),wb="",Qu=mt(o1,[["__scopeId","data-v-7865d42e"]]),a1=document.getElementById("teleport")||document.documentElement;function l1(s){{const t=fs(Qu,s);return Ac(t,a1),t.component?.exposed?.open(),()=>{t.component?.exposed?.close()}}}const kr=s=>(Fn("data-v-7f69a9fe"),s=s(),$n(),s),c1=kr(()=>P("div",{class:"title"},"车牌颜色",-1)),u1={class:"plate-types"},h1=["onClick"],d1=kr(()=>P("div",{class:"title"},"车牌号码",-1)),f1={class:"plate-numbers"},p1=kr(()=>P("div",{class:"dot"},"·",-1)),m1=["onClick"],g1=kr(()=>P("div",{class:"info"},"请输入您真实有效的车牌号,便于正常使用系统功能。",-1)),y1=ct({customOptions:{SVGCheck:Ia},__name:"PlateMobile",props:{maxWidth:{default:"750px"}},emits:["clear","complete"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=[{name:"蓝牌",style:"background-color: #0078f0;",completePlateLength:7},{name:"绿牌",style:"background-color: #00f08c;",completePlateLength:8},{name:"黄牌",style:"background-color: #fac800;",completePlateLength:7},{name:"黄绿",style:"background: linear-gradient(90deg, #fac800 51.5%, #00f08c 51.51%);",completePlateLength:8},{name:"黑牌",style:"background-color: #222222;",completePlateLength:7}],o=M(0),a=Qt([]),l=M(-1);function c(){l1({initPlates:a,completePlateLength:r[o.value].completePlateLength,onPlates:d=>{si(a,d),l.value=a.length,a.length===r[o.value].completePlateLength&&i("complete",r[o.value].name,a.join(""))}})}const u=d=>{o.value=d,l.value<=r[d].completePlateLength&&a.length<r[d].completePlateLength?(l.value=a.length,c(),i("clear")):si(a,a.slice(0,r[d].completePlateLength)),r[d].completePlateLength===a.length&&i("complete",r[o.value].name,a.join(""))},h=d=>{si(a,a.slice(0,d)),l.value=Math.min(Math.max(0,l.value),d),c(),i("clear")};return t({}),(d,m)=>(L(),H("div",So(d.$attrs,{class:"plate-mobile",style:{maxWidth:n.maxWidth}}),[c1,P("div",u1,[(L(),H($t,null,ge(r,(f,E)=>P("div",{key:E,class:ie(E==o.value?"checked":""),onClick:S=>u(E)},[P("div",{style:Y(f.style)},null,4),P("div",null,wt(f.name),1),P("div",null,[ft(Ia,{color:"#ffffff",width:"0.14rem"})])],10,h1)),64))]),d1,P("div",f1,[P("div",{onClick:m[0]||(m[0]=f=>h(0)),class:ie(l.value==0?"current":"")},wt(a[0]),3),P("div",{onClick:m[1]||(m[1]=f=>h(1)),class:ie(l.value==1?"current":"")},wt(a[1]),3),p1,(L(!0),H($t,null,ge(r[o.value].completePlateLength-2,f=>(L(),H("div",{key:f,class:ie(f+1==l.value?"current":""),onClick:E=>h(f+1)},wt(a[f+1]),11,m1))),128))]),g1],16))}}),Cb="",v1=mt(y1,[["__scopeId","data-v-7f69a9fe"]]),_1={class:"parent"},b1=ct({customOptions:{},inheritAttrs:!0,__name:"PlateDisplay",props:{plate:{},plateType:{},displayType:{default:"chinese"},fontColor:{},fontSize:{}},setup(s,{expose:t,emit:e}){const n=s,i=[{name:"蓝牌",style:"background-color: #0078f0; color: #ffffff;"},{name:"绿牌",style:"background-color: #00f08c; color: #000000;"},{name:"黄牌",style:"background-color: #fac800; color: #000000;"},{name:"黄绿",style:"background: linear-gradient(90deg, #fac800 51.5%, #00f08c 51.51%); color: #000000;"},{name:"黑牌",style:"background-color: #222222; color: #ffffff;"},{name:"未知",style:"background-color: #cccccc; color: #ffffff;"}];function r(h){return h.length>2?h.substring(0,2)+"·"+h.substring(2):h}function o(h){const d=i.filter(m=>m.name===h);return d.length?d[0]:o("未知")}const a=r(n.plate),l=M(o(n.plateType));let c=n.fontColor,u=n.fontSize;switch(n.displayType){case"dot":c=c??"#999999",u=u??"14px";break;case"chinese":c=c??"#333333",u=u??"20px";break}return t({}),(h,d)=>(L(),H("div",_1,[P("div",{class:ie(["leading",n.displayType]),style:Y(l.value.style)},wt(l.value.name),7),P("div",{class:"text",style:Y({color:Ft(c),"font-size":Ft(u)})},wt(Ft(a)),5)]))}}),Sb="",x1=mt(b1,[["__scopeId","data-v-11a104c3"]]),w1={class:"selector",style:{position:"relative",width:"124px",height:"106px",padding:"3px","background-color":"#222222","box-sizing":"border-box"}},C1=P("div",{style:{width:"100%",height:"100%",background:`linear-gradient(
82
+ `,m.value)}h=new ys(m.value,!1),h.on("resize",(S,_)=>{i("resize",S,_,m.value.getBoundingClientRect()),d?.(h),u||(u=!0,n.effectTriggerTiming!=="manual"&&o(),i("ready",h),n.effectTriggerTiming=="immediate"&&l())}),h.on("mouseEnter",()=>{n.effectTriggerTiming=="mouseMove"&&l()}),h.on("mouseLeave",()=>{n.effectTriggerTiming=="mouseMove"&&l()}),h.on("tap",()=>{n.effectTriggerTiming=="click"&&l(),n.supportCopyText&&et.copyToClipboard(et.getInnerText(m.value)).then(()=>{}).catch(S=>{})}),h.start()}});const f=()=>new Promise(S=>{if(h)return S(h);d=S}),E=()=>f().then(()=>m.value.getBoundingClientRect());return le(()=>{h?.destroy()}),t({getElement:()=>m.value,getApp:f,getSize:E,getStatus:()=>r,startEffect:o,endEffect:a,nextEffect:l,repeatEffect:c}),(S,_)=>(L(),H("div",{class:ie(["container",[n.type]]),ref_key:"containerRef",ref:m,style:Y({position:"relative",boxSizing:"border-box",display:n.type=="shrink"?"inline-block":"block",width:n.type=="full"?"100%":"auto",height:n.type=="full"?"100%":"auto"})},[Et(S.$slots,"default")],6))}}),F0={class:"input-range-box"},$0={key:0,class:"label"},V0=ct({customOptions:{Container:kt},inheritAttrs:!0,__name:"InputRangeBox",props:{min:{default:0},max:{default:100},step:{default:1},defaultValue:{default:0},unit:{default:""},showValue:{type:Boolean,default:!1},bgColor:{default:$s.inputColor},barColor:{default:$s.numberColor},barHeight:{default:"20px"}},emits:["change"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=M(n.defaultValue),o=()=>Ce(bu(n.min,n.max,n.step)(r.value),2),a=()=>Ce((r.value-n.min)/(n.max-n.min),4)*100;r.value=o();const l=M(a()),c={"--input-range-box-background-hover-color":Ae(n.bgColor).lighten(.05).toString(),"--input-range-box-foreground-hover-color":Ae(n.barColor).lighten(.05).toString()},u=M();function h(d){const m=async f=>{const E=await u.value.getSize();r.value=Ce(xm(f,E.left,E.right,n.min,n.max),2),r.value=o(),l.value=a(),i("change",r.value)};d.captureDrag({start:f=>{m(f.clientX)},move:f=>{m(f.clientX)}})}return le(()=>{}),t({}),(d,m)=>(L(),H("div",F0,[P("div",{class:"box",style:Y({height:n.barHeight,cursor:"ew-resize"})},[ft(kt,{ref_key:"boxContainerRef",ref:u,type:"full",styleSheets:c,onReady:h},{default:Pt(()=>[P("div",{class:"background",style:Y({backgroundColor:n.bgColor,width:"100%",height:"100%"})},null,4),P("div",{class:"foreground",style:Y({backgroundColor:n.barColor,width:l.value+"%",height:"100%"})},null,4)]),_:1},512)],4),Et(d.$slots,"default",{value:r.value},()=>[d.showValue?(L(),H("label",$0,wt(r.value)+wt(n.unit),1)):Bt("",!0)],!0)]))}}),K_="",Y0=mt(V0,[["__scopeId","data-v-ae6ae9c6"]]),ci=ct({customOptions:{Container:kt},inheritAttrs:!0,__name:"CSSAnimation",props:{containerType:{default:"shrink"},supportCopyText:{type:Boolean,default:!1},effectTriggerTiming:{default:"mouseMove"},name:{default:"jelly"},timingFunction:{},duration:{},delay:{},repeat:{},direction:{},fillMode:{default:"both"},playState:{default:"running"},perspective:{default:"1200px"}},emits:["cssanimationstart","cssanimationend"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=Jt({}),o=Jt({});let a=n.name,l=n.duration,c=n.timingFunction,u=n.delay,h=n.repeat,d=n.direction;function m(){switch(a){case"superRainbow":l=n.duration||15e3;break;case"heartBeat":l=n.duration||1300;break;case"statusProcessing":l=n.duration||1200;break;case"rotateFall":case"rotateSlideOut":case"rotateSlideIn":l=n.duration||1e3;break;case"rotateRightSideFirst":case"rotateLeftSideFirst":case"rotateTopSideFirst":case"rotateBottomSideFirst":case"rotatePushLeft":case"rotatePushRight":case"rotatePushTop":case"rotatePushBottom":case"rotateRoomLeftOut":case"rotateRoomLeftIn":case"rotateRoomRightOut":case"rotateRoomRightIn":case"rotateRoomTopOut":case"rotateRoomTopIn":case"rotateRoomBottomOut":case"rotateRoomBottomIn":case"rotateCarouselLeftOut":case"rotateCarouselLeftIn":case"rotateCarouselRightOut":case"rotateCarouselRightIn":case"rotateCarouselTopOut":case"rotateCarouselTopIn":case"rotateCarouselBottomOut":case"rotateCarouselBottomIn":l=n.duration||800;break;case"bounceIn":case"bounceOut":case"flipOutX":case"hinge":l=n.duration||750;break;case"rotateFoldRight":case"rotateFoldLeft":case"rotateFoldTop":case"rotateFoldBottom":case"rotateUnfoldLeft":case"rotateUnfoldRight":case"rotateUnfoldTop":case"rotateUnfoldBottom":case"fade":case"moveFromLeftFade":case"moveToLeftFade":case"moveFromRightFade":case"moveToRightFade":case"moveFromTopFade":case"moveToTopFade":case"moveFromBottomFade":case"moveToBottomFade":l=n.duration||700;break;case"moveFromLeft":case"moveToLeft":case"moveFromRight":case"moveToRight":case"moveFromTop":case"moveToTop":case"moveFromBottom":case"moveToBottom":case"rotateCubeLeftOut":case"rotateCubeLeftIn":case"rotateCubeRightOut":case"rotateCubeRightIn":case"rotateCubeTopOut":case"rotateCubeTopIn":case"rotateCubeBottomOut":case"rotateCubeBottomIn":l=n.duration||600;break;default:l=n.duration||500;break}switch(a){case"superRainbow":c=n.timingFunction||"linear";break;case"lightSpeedOutLeft":case"lightSpeedOutRight":case"rotateRightSideFirst":case"rotateLeftSideFirst":case"rotateTopSideFirst":case"rotateBottomSideFirst":case"flipOutRight":case"flipOutLeft":case"flipOutTop":case"flipOutBottom":case"rotateFall":case"rotateOutNewspaper":case"rotateCubeLeftOut":case"rotateCubeLeftIn":case"rotateCubeRightOut":case"rotateCubeRightIn":case"rotateCubeTopOut":case"rotateCubeTopIn":case"rotateCubeBottomOut":case"rotateCubeBottomIn":case"rotateSidesOut":c=n.timingFunction||"ease-in";break;case"lightSpeedInLeft":case"lightSpeedInRight":case"flipInLeft":case"flipInRight":case"flipInBottom":case"flipInTop":case"rotateInNewspaper":case"rotateSidesIn":c=n.timingFunction||"ease-out";break;case"pulse":case"headShake":case"heartBeat":case"statusProcessing":c=n.timingFunction||"ease-in-out";break;default:c=n.timingFunction||"ease";break}switch(a){default:u=n.delay||0;break}switch(a){case"superRainbow":case"statusProcessing":h=n.repeat||"infinite";break;default:h=n.repeat||1;break}switch(a){case"superRainbow":d=n.direction||"alternate";break;default:d=n.direction||"normal";break}switch(a){case"hinge":case"rotateFall":o.transformOrigin="left top";break;case"zoomOutLeft":case"rotateRightSideFirst":case"rotatePushLeft":case"rotatePullLeft":case"rotateFoldRight":case"rotateUnfoldRight":case"rotateRoomLeftIn":case"rotateRoomRightOut":case"rotateCubeLeftIn":case"rotateCubeRightOut":o.transformOrigin="left center";break;case"rotateInUpLeft":case"rotateInDownLeft":case"rotateOutUpLeft":case"rotateOutDownLeft":o.transformOrigin="left bottom";break;case"swing":case"zoomOutUp":case"rotateBottomSideFirst":case"rotatePushTop":case"rotatePullTop":case"rotateFoldBottom":case"rotateUnfoldBottom":case"rotateRoomTopIn":case"rotateRoomBottomOut":case"rotateCubeTopIn":case"rotateCubeBottomOut":o.transformOrigin="center top";break;case"bounce":case"zoomOutDown":case"rotateTopSideFirst":case"rotatePushBottom":case"rotatePullBottom":case"rotateFoldTop":case"rotateUnfoldTop":case"rotateRoomTopOut":case"rotateRoomBottomIn":case"rotateCubeTopOut":case"rotateCubeBottomIn":o.transformOrigin="center bottom";break;case"zoomOutRight":case"rotateLeftSideFirst":case"rotatePushRight":case"rotatePullRight":case"rotateFoldLeft":case"rotateUnfoldLeft":case"rotateRoomLeftOut":case"rotateRoomRightIn":case"rotateCubeLeftOut":case"rotateCubeRightIn":o.transformOrigin="right center";break;case"rotateInUpRight":case"rotateInDownRight":case"rotateOutUpRight":case"rotateOutDownRight":o.transformOrigin="right bottom";break;default:delete o.transformOrigin;break}switch(a){case"jelly":case"bounce":case"flash":case"pulse":case"rubberBand":case"shakeX":case"shakeY":case"headShake":case"swing":case"tada":case"wobble":case"jello":case"heartBeat":case"bounceIn":case"fadeIn":case"fadeOut":case"flip":case"flipInX":case"flipInY":case"flipOutX":case"flipOutY":case"hinge":case"jackInTheBox":r.overflow="visible";break;default:r.overflow="hidden";break}switch(a){case"flip":case"flipInX":case"flipInY":case"flipOutX":case"flipOutY":o.backfaceVisibility="visible";break;default:delete o.backfaceVisibility;break}}Mt(()=>n.name,()=>{a=n.name,m()},{immediate:!0});const f=M(),E=M(),S=z=>{r.perspective=n.perspective,z.on("animationstart",ut=>{i("cssanimationstart",ut.animationName)}),z.on("animationend",ut=>{i("cssanimationend",ut.animationName)})};function _(){E.value.style.animation="none",E.value.offsetHeight,E.value.style.animation=null}const C=()=>{o.animation="none"},y=()=>{_(),o.animation=`${l}ms ${c} ${u}ms ${h} ${d} ${n.fillMode} ${n.playState} ${a}`};return t({trigger:z=>{z&&(a=z,m()),f.value.startEffect(),d="normal",f.value.endEffect()},triggerReverse:z=>{z&&(a=z,m()),f.value.startEffect(),d="reverse",f.value.endEffect()},clear:()=>{o.animation="none"}}),(z,ut)=>(L(),zt(kt,{class:"css-animation",ref_key:"containerRef",ref:f,type:n.containerType,supportCopyText:n.supportCopyText,effectTriggerTiming:n.effectTriggerTiming,style:Y(r),onReady:S,onStart:C,onEnd:y},{default:Pt(()=>[P("div",{class:"css-animation-inner",ref_key:"animationRef",ref:E,style:Y({position:"relative",display:"block",width:"100%",height:"100%",cursor:"pointer",transformStyle:"preserve-3d",...o})},[Et(z.$slots,"default")],4)]),_:3},8,["type","supportCopyText","effectTriggerTiming","style"]))}}),Q_="",z0={class:"status-processing",style:{position:"relative",display:"inline-block",width:"12px",height:"12px",borderRadius:"50%",overflow:"hidden"}},B0=ct({customOptions:{CSSAnimation:ci},__name:"Status",props:{status:{default:"processing"},color:{}},setup(s,{expose:t,emit:e}){const n=s;let i="";switch(n.status){case"wait":i="#d9d9d9";break;case"success":i="#52c41a";break;case"error":i="#ff4d4f";break;case"processing":default:i="#1677ff";break}return n.color&&(i=n.color),t({}),(r,o)=>(L(),H("div",z0,[r.status==="processing"?(L(),zt(ci,{key:0,name:"statusProcessing",containerType:"full",effectTriggerTiming:"immediate"},{default:Pt(()=>[P("div",{style:Y({width:"100%",height:"100%",borderRadius:"50%",backgroundColor:Ft(i)})},null,4)]),_:1})):Bt("",!0),P("div",{style:Y({position:"absolute",top:"3px",left:"3px",width:"6px",height:"6px",borderRadius:"50%",backgroundColor:Ft(i)})},null,4)]))}}),G0=ct({customOptions:{},inheritAttrs:!0,__name:"InputFileDrop",props:{placeholder:{default:"drop file"}},emits:["yz-drop"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=M(),o=M(!1);function a(){o.value=!0}function l(){o.value=!1}function c(h){h.preventDefault()}function u(h){h.preventDefault(),i("yz-drop",h.dataTransfer.files),l()}return le(()=>{}),t({}),(h,d)=>(L(),H("div",{class:ie(["input-file-drop",[o.value?"over":""]]),ref_key:"zone",ref:r,onDragenter:a,onDragleave:l,onDragover:c,onDrop:u},[Et(h.$slots,"default",{},()=>[Qt(wt(n.placeholder),1)],!0)],34))}}),J_="",X0=mt(G0,[["__scopeId","data-v-b0f06804"]]),j0=["width","height"],U0=["fill"],H0=ct({__name:"SVGDelete",props:{width:{default:"16px"},height:{},color:{default:Ot.colorPrimary}},setup(s){const t=s;return(e,n)=>(L(),H("svg",{viewBox:"0 0 24 24",width:t.width,height:t.height??t.width,xmlns:"http://www.w3.org/2000/svg"},[P("path",{fill:t.color,d:"M7 21q-.825 0-1.412-.587T5 19V6H4V4h5V3h6v1h5v2h-1v13q0 .825-.587 1.413T17 21zM17 6H7v13h10zM9 17h2V8H9zm4 0h2V8h-2zM7 6v13z"},null,8,U0)],8,j0))}}),tb="",Ta=mt(H0,[["__scopeId","data-v-4747d4a7"]]),W0=ct({customOptions:{SVGDelete:Ta},inheritAttrs:!0,__name:"SlideLeftItem",props:{bgColor:{default:Ot.colorGrayFF},deleteColor:{default:Ot.colorRed},fontColor:{default:Ot.colorGrayFF},borderRadius:{default:"4px"},deleteWidth:{default:"44px"},transtionDuration:{default:"150ms"}},emits:["delete"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=M(!1),o=()=>{i("delete"),r.value=!1};let a;const l=M();return Mt(l,()=>{l.value&&(a=new ys(l.value),a.on("panLeft",()=>{r.value=!0}),a.on("panRight",()=>{r.value=!1}),a.on("tapOutSide",()=>{r.value=!1}))}),le(()=>{a?.destroy()}),t({}),(c,u)=>(L(),H("div",{class:"parent",ref_key:"item",ref:l,style:Y({backgroundColor:n.bgColor,borderRadius:n.borderRadius})},[P("div",{class:"content",style:Y({transition:"all ease-in "+n.transtionDuration,transform:r.value?"translate(-"+n.deleteWidth+", 0)":"translate(0, 0)"})},[Et(c.$slots,"default",{},void 0,!0)],4),P("div",{class:"delete",onClick:o,style:Y({backgroundColor:n.deleteColor,width:n.deleteWidth,transition:"all ease-in "+n.transtionDuration,transform:r.value?"translate(0, 0)":"translate("+n.deleteWidth+", 0)"})},[ft(Ta,{color:n.fontColor},null,8,["color"])],4)],4))}}),eb="",q0=mt(W0,[["__scopeId","data-v-244215c2"]]),Z0=ct({customOptions:{Container:kt,SVGDown:ai},inheritAttrs:!0,__name:"Accordion",props:{initOpen:{type:Boolean,default:!1},titleHeight:{default:"44px"},bgColor:{default:"#efefef"},fontColor:{default:"#333333"},borderColor:{default:"#dddddd"},borderRadius:{default:"4px"},padding:{default:"1em"},duration:{default:500}},emits:["open","close","resize"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=(h,d)=>{i("resize",h,d)},o=M(Number.MAX_SAFE_INTEGER+"px"),a=M(),l=M(!0);Mt(a,()=>{a.value&&(o.value=a.value.getBoundingClientRect().height+"px",l.value=n.initOpen)});function c(){l.value=!l.value,l.value?i("open"):i("close")}const u=M(0);return $l(()=>{u.value=l.value?0:-90}),t({}),(h,d)=>(L(),zt(kt,{onResize:r},{default:Pt(()=>[P("div",{class:"accordion",style:Y({background:n.bgColor,color:n.fontColor,borderRadius:n.borderRadius})},[P("div",{class:"accordion-title",onClick:c,style:Y({height:n.titleHeight,lineHeight:n.titleHeight,margin:`0 ${n.padding}`,transitionDelay:`${l.value?0:n.duration}ms`,borderBottom:`${l.value?1:0}px solid ${n.borderColor}`})},[Et(h.$slots,"title",{},()=>[Qt("title")],!0),ft(ai,{class:"arrow",style:Y({transition:`transform ${n.duration}ms ease-in-out`,transform:`rotate(${u.value}deg)`})},null,8,["style"])],4),P("div",{class:"accordion-content",ref_key:"content",ref:a,style:Y({margin:`0 ${n.padding}`,transition:`max-height ${n.duration}ms ease-in-out`,maxHeight:l.value?o.value:"0"})},[Et(h.$slots,"content",{},void 0,!0)],4)],4)]),_:3}))}}),sb="",K0=mt(Z0,[["__scopeId","data-v-6c9d636f"]]),Q0=ct({__name:"ProgressBar",props:{bgColor:{default:"#efefef"},progressColor:{default:"#a0dde9"},borderColor:{default:"#eeeeee"},borderRadius:{default:"4px"},showText:{type:Boolean,default:!1}},emits:["complete"],setup(s,{expose:t,emit:e}){const n=s,i=M(0);function r(o){i.value=Math.min(Math.max(0,o),100)}return t({goto:r}),(o,a)=>(L(),H("div",{class:"bar",style:Y({border:`1px solid ${n.borderColor}`,borderRadius:n.borderRadius,backgroundColor:n.bgColor})},[P("div",{class:"bar-inner",style:Y({width:i.value+"%",backgroundColor:n.progressColor})},wt(n.showText?i.value+"%":""),5)],4))}}),nb="",ui=mt(Q0,[["__scopeId","data-v-d986b312"]]),J0=["width","height"],ty=["src","type"],ey={class:"video-progress-bar"},sy=ct({customOptions:{ProgressBar:ui},inheritAttrs:!0,__name:"Video",props:{src:{},type:{default:"video/webm"},autoplay:{type:Boolean,default:!0},width:{default:"320px"},height:{default:"138px"}},emits:["start","complete"],setup(s,{expose:t,emit:e}){const n=s,i=e;let r;function o(h){if(r){r.resume();return}r=new qe({frameDuration:this.duration*1e3}),r.addTween({x:0},{x:100},{frames:1,delay:0,onStart:()=>{i("start"),l.value?.goto(0)},onUpdate:d=>{l.value?.goto(d.x)},onComplete:()=>{i("complete"),r=null}}),r.play()}const a=M(),l=M();Mt(a,()=>{a.value&&(a.value.addEventListener("play",o),n.autoplay&&ma.tryAutoPlayOrAutoPlayAfterClick(a.value))}),le(()=>{a.value?.removeEventListener(o)});function c(){a.value?.play()}function u(){a.value?.pause(),r?.pause()}return t({play:c,pause:u}),(h,d)=>(L(),H("div",{class:"video",style:Y({width:n.width,height:n.height}),onClick:c},[P("video",{ref_key:"video",ref:a,width:n.width,height:n.height,preload:"metadata"},[P("source",{src:n.src,type:n.type},null,8,ty)],8,J0),P("div",ey,[ft(ui,{ref_key:"bar",ref:l,bgColor:"#ffffff"},null,512)])],4))}}),ib="",ny=mt(sy,[["__scopeId","data-v-5f48bfae"]]),Sn=ct({customOptions:{},inheritAttrs:!0,__name:"Overlay",props:{visible:{type:Boolean,default:!1},color:{default:Ae("#000000",.25).toString()},isGlobal:{type:Boolean,default:!0}},setup(s,{expose:t,emit:e}){const n=s,i=M(),r=document.documentElement.style.overflow,o=document.body.style.overflow;return Mt(()=>n.visible,()=>{n.isGlobal?n.visible?(document.documentElement.style.overflow="hidden",document.body.style.overflow="hidden"):(document.documentElement.style.overflow=r,document.body.style.overflow=o):i.value&&(n.visible?i.value.parentElement.style.overflow="hidden":i.value.parentElement.style.overflow="")},{immediate:!0}),t({}),(a,l)=>n.visible?(L(),H("div",{key:0,class:"overlay",ref_key:"overlayRef",ref:i,style:Y([`background-color: ${n.color}`,`position: ${n.isGlobal?"fixed":"absolute"}`,"z-index: 9000","display: block","width: 100%","height: 100%","inset: 0","overflow: hidden"])},[Et(a.$slots,"default")],4)):Bt("",!0)}}),iy=P("div",null,null,-1),Be=ct({customOptions:{Overlay:Sn,Container:kt},inheritAttrs:!0,__name:"Pop",props:{closeWhenClickOverlay:{type:Boolean,default:!0},directionFrom:{default:"bottom"},absoluteLeft:{default:"0px"},absoluteTop:{default:"0px"},absoluteWidth:{default:"100%"},absoluteHeight:{default:"100%"},dur:{default:200},isGlobal:{type:Boolean,default:!0},overlayBgColor:{},popValue:{},popPercent:{default:50},popBgColor:{default:"rgba(255,255,255,0)"}},emits:["open","close","resize","clickOverlay"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=new qe({frameDuration:n.dur}),o=Jt({backgroundColor:n.popBgColor,position:"absolute",overflow:"hidden",opacity:"1"}),a=M("full");Mt(()=>[n.directionFrom,n.popValue],()=>{r.clear();const E=n.popValue?n.popValue:n.popPercent,S=n.popValue?"px":"%";switch(n.directionFrom){case"left":o.height="100%",o.width=`${E}${S}`,o.top="0",o.bottom="0",delete o.right,r.addTween({left:E},{left:0},{easeFunction:ht.Quadratic.Out,onUpdate(_){o.left=`-${_.left}${S}`},onComplete:u});break;case"right":o.height="100%",o.width=`${E}${S}`,o.top="0",o.bottom="0",delete o.left,r.addTween({right:E},{right:0},{easeFunction:ht.Quadratic.Out,onUpdate(_){o.right=`-${_.right}${S}`},onComplete:u});break;case"top":o.width="100%",o.height=`${E}${S}`,o.left="0",o.right="0",delete o.bottom,r.addTween({top:E},{top:0},{easeFunction:ht.Quadratic.Out,onUpdate(_){o.top=`-${_.top}${S}`},onComplete:u});break;case"bottom":o.width="100%",o.height=`${E}${S}`,o.left="0",o.right="0",delete o.top,r.addTween({bottom:E},{bottom:0},{easeFunction:ht.Quadratic.Out,onUpdate(_){o.bottom=`-${_.bottom}${S}`},onComplete:u});break;case"center":delete o.width,delete o.height,o.left="50%",delete o.right,o.top="50%",delete o.bottom,r.addTween({scale:.8,opacity:0},{scale:1,opacity:1},{easeFunction:ht.Quadratic.Out,onUpdate(_){o.transform=`translate(-50%, -50%) scale(${_.scale})`,o.opacity=`${_.opacity}`},onComplete:u});break;case"absolute":o.width=n.absoluteWidth,o.height=n.absoluteHeight,o.left=n.absoluteLeft,o.top=n.absoluteTop,delete o.right,delete o.bottom;break}switch(n.directionFrom){case"center":a.value="shrink",o.transform="translate(-50%, -50%)";break;case"absolute":a.value="shrink",delete o.transform,delete o.opacity;break;default:a.value="full",delete o.transform,delete o.opacity;break}},{immediate:!0}),Mt(()=>n.absoluteLeft,()=>{switch(n.directionFrom){case"absolute":o.left=n.absoluteLeft;break}}),Mt(()=>n.absoluteTop,()=>{switch(n.directionFrom){case"absolute":o.top=n.absoluteTop;break}}),Mt(()=>n.absoluteWidth,()=>{switch(n.directionFrom){case"absolute":o.width=n.absoluteWidth;break}}),Mt(()=>n.absoluteHeight,()=>{switch(n.directionFrom){case"absolute":o.height=n.absoluteHeight;break}});const l=(E,S,_)=>{i("resize",E,S,_)};let c="open";function u(){c=="open"?i("open"):(h.value=!1,i("close"))}const h=M(!1);function d(){h.value=!0,c="open",r.play()}function m(){switch(c="close",n.directionFrom){case"absolute":u();break;default:r.reverse();break}}function f(E){const S=n.directionFrom=="absolute"&&n.absoluteWidth=="100%"&&n.absoluteHeight=="100%"?"pop-content":"pop";E.target&&et.hasClass(E.target,S)&&(n.closeWhenClickOverlay&&m(),i("clickOverlay"))}return t({open:d,close:m}),(E,S)=>(L(),zt(Sn,{visible:h.value,isGlobal:n.isGlobal,color:n.overlayBgColor},{default:Pt(()=>[P("div",{class:"pop",style:{display:"block",position:"relative",width:"100%",height:"100%",overflow:"hidden"},onClick:f},[ft(kt,{class:"pop-content",type:a.value,style:Y(o),onResize:l},{default:Pt(()=>[Et(E.$slots,"default",{},()=>[iy])]),_:3},8,["type","style"])])]),_:3},8,["visible","isGlobal","color"]))}}),ry=ct({...{},name:"Image",customOptions:{Container:kt,Pop:Be},inheritAttrs:!0,__name:"Image",props:{src:{},mode:{default:"scaleToFill"},dur:{default:300},bgColor:{default:"transparent"},openImageDetailWhenClick:{type:Boolean,default:!0}},emits:["settled"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=new qe({frameDuration:n.dur}),o=M(0),a=M(0),l=M(0),c=M(0),u=M(0),h=M(0),d=M(0),m=M(0),f=M(0),E=M(0);Tg(n.src).then(D=>{f.value=D.width,E.value=D.height,x()});const S=M(0),_=M(0),C=(D,F)=>{S.value=D,_.value=F,x()},y=M(0),p=M(0);function x(){if(!S.value||!_.value||!f.value||!E.value)return;const D=Xu(n.mode,f.value,E.value,S.value,_.value);y.value=D.width,p.value=D.height;const{width:F,height:X}=ea(),rt=Xu("aspectFit",f.value,E.value,F,X);d.value=rt.width,m.value=rt.height,u.value=(F-d.value)/2,h.value=(X-m.value)/2}const b=(D,F,X)=>{i("settled",X.x,X.y,X.width,X.height)};let z=!1;const ut=M(),O=M();async function R(){if(!n.openImageDetailWhenClick)return;const D=await ut.value.getSize();r.clear(),r.addTween({left:D.x,top:D.y,width:D.width,height:D.height},{left:u.value,top:h.value,width:d.value,height:m.value},{easeFunction:ht.Quadratic.Out,onUpdate(F){o.value=F.left,a.value=F.top,l.value=F.width,c.value=F.height},onComplete(){z&&O.value.close(),z=!z}}),z||(O.value.open(),r.play())}function A(){z&&r.reverse()}return t({}),(D,F)=>(L(),zt(kt,{class:"image",type:"full",style:Y({backgroundColor:n.bgColor}),onResize:C,onClick:R},{default:Pt(()=>[ft(kt,{class:"image-inner",ref_key:"imageRef",ref:ut,type:"shrink",style:Y({width:y.value+"px",height:p.value+"px",backgroundImage:`url(${n.src})`,backgroundSize:`${y.value}px ${p.value}px`}),onResize:b},null,8,["style"]),ft(Be,{ref_key:"popRef",ref:O,"direction-from":"absolute","absolute-left":`${o.value}px`,"absolute-top":`${a.value}px`,"absolute-width":`${l.value}px`,"absolute-height":`${c.value}px`,"close-when-click-overlay":!1,onClickOverlay:A},{default:Pt(()=>[P("div",{class:"image-pop",style:Y({width:"100%",height:"100%",backgroundImage:`url(${n.src})`,backgroundSize:"100% 100%"})},null,4)]),_:1},8,["absolute-left","absolute-top","absolute-width","absolute-height"])]),_:1},8,["style"]))}}),ob="",Ea=mt(ry,[["__scopeId","data-v-48bcfc9f"]]),ka=ct({customOptions:{Container:kt,CSSAnimation:ci},inheritAttrs:!0,__name:"Page",props:{effect:{default:"moveFromLeft"},duration:{default:500},easeFunction:{type:Function,default:ht.Cubic.InOut},timingFunction:{default:"ease"},delay:{default:0}},emits:["ready","pageOpenStart","pageOpenEnd","pageCloseStart","pageCloseEnd"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=M(),o=Jt({}),a=()=>{i("ready",b,z)},l=()=>{E()},c=M();let u="rotateRightSideFirst",h=n.effect;function d(ut,O){switch(h){case"static":O();break;default:ut();break}}let m=!1;const f=new qe,E=()=>{const ut={},O={};f.clear(),f.frameDuration=n.duration,d(()=>{u=h},()=>{f.addTween(ut,O,{delay:n.delay/n.duration,easeFunction:n.easeFunction,onStart:()=>{i(m?"pageCloseStart":"pageOpenStart")},onUpdate:R=>{o.transform="","x"in R&&(o.transform+=` translateX(${R.x}%)`),"y"in R&&(o.transform+=` translateY(${R.y}%)`),"rx"in R&&(o.transform+=` rotateX(${R.rx}deg)`),"ry"in R&&(o.transform+=` rotateY(${R.ry}deg)`),"scale"in R&&(o.transform+=` scale(${R.scale})`),"opacity"in R&&(o.opacity=`${R.opacity}`)},onComplete:()=>{i(m?"pageCloseEnd":"pageOpenEnd")}})})};Mt(()=>[n.effect,n.delay,n.duration,n.easeFunction],()=>{h=n.effect,E()},{immediate:!0});const S=()=>{i(m?"pageCloseStart":"pageOpenStart")},_=()=>{i(m?"pageCloseEnd":"pageOpenEnd")},C=()=>{d(()=>{c.value.trigger(u)},()=>{f.play()})},y=()=>{d(()=>{c.value.triggerReverse(u)},()=>{f.reverse()})},p=()=>{o.transform="none",o.opacity="1"};function x(){d(()=>{p()},()=>{c.value?.clear()})}const b=ut=>{ut&&(h=ut,E()),m=!1,x(),r.value.startEffect()},z=ut=>{ut&&(h=ut,E()),m=!0,x(),r.value.endEffect()};return t({open:b,close:z,clear:p,getElement:()=>r.value.getElement()}),(ut,O)=>(L(),zt(kt,{class:"page",ref_key:"pageRef",ref:r,type:"full",effectTriggerTiming:"manual",style:{overflow:"hidden",width:"100%",height:"100%"},onReady:a,onResize:l,onStart:C,onEnd:y},{default:Pt(()=>[ft(ci,{ref_key:"cssAnimationRef",ref:c,containerType:"full",effectTriggerTiming:"manual",duration:n.duration,delay:n.delay,timingFunction:n.timingFunction,onCssanimationstart:S,onCssanimationend:_},{default:Pt(()=>[P("div",{class:"page-inner",style:Y({position:"relative",display:"block",width:"100%",height:"100%",overflow:"scroll",backfaceVisibility:"hidden",transformStyle:"preserve-3d",...o})},[Et(ut.$slots,"default")],4)]),_:3},8,["duration","delay","timingFunction"])]),_:3},512))}}),Tr=ct({customOptions:{Page:ka,Container:kt},inheritAttrs:!0,__name:"Routes",props:{effect:{default:"moveToLeft"},duration:{default:500},easeFunction:{type:Function,default:ht.Cubic.InOut},timingFunction:{default:"ease"},delay:{default:0}},emits:["routeChangeStart","routeChangeEnd","renderComplete"],setup(s,{expose:t,emit:e}){const n=s,i=e;let r=-1,o=-1,a;const l=[];let c=[],u=[],h=[];function d(Z){return Z>=0&&Z<c.length}function m(){return o>r}function f(Z,V,Kt){switch(Z){case r:return m()?V:Kt;case o:return m()?Kt:V;default:return"static"}}function E(Z,V){switch(Z){case"moveToLeft":return f(V,"moveToLeft","moveFromRight");case"moveToRight":return f(V,"moveToRight","moveFromLeft");case"moveToTop":return f(V,"moveToTop","moveFromBottom");case"moveToBottom":return f(V,"moveToBottom","moveFromTop");case"moveFromLeftPrevFade":return f(V,"fade","moveFromLeft");case"moveFromRightPrevFade":return f(V,"fade","moveFromRight");case"moveFromTopPrevFade":return f(V,"fade","moveFromTop");case"moveFromBottomPrevFade":return f(V,"fade","moveFromBottom");case"moveToLeftFade":return f(V,"moveToLeftFade","moveFromRightFade");case"moveToRightFade":return f(V,"moveToRightFade","moveFromLeftFade");case"moveToTopFade":return f(V,"moveToTopFade","moveFromBottomFade");case"moveToBottomFade":return f(V,"moveToBottomFade","moveFromTopFade");case"moveToLeftEasing":return f(V,"moveToLeft","moveFromRight");case"moveToRightEasing":return f(V,"moveToRight","moveFromLeft");case"moveToTopEasing":return f(V,"moveToTop","moveFromBottom");case"moveToBottomEasing":return f(V,"moveToBottom","moveFromTop");case"moveFromLeftPrevScaleToSmall":return f(V,"scaleToSmall","moveFromLeft");case"moveFromRightPrevScaleToSmall":return f(V,"scaleToSmall","moveFromRight");case"moveFromTopPrevScaleToSmall":return f(V,"scaleToSmall","moveFromTop");case"moveFromBottomPrevScaleToSmall":return f(V,"scaleToSmall","moveFromBottom");case"scaleSmall":return f(V,"scaleToSmall","scaleFromLarge");case"scaleLarge":return f(V,"scaleToLarge","scaleFromSmall");case"scaleToLargePrevScaleToSmall":return f(V,"scaleToSmallCenter","scaleFromSmallCenter");case"scaleFromSmallPrevMoveToLeft":return f(V,"moveToLeft","scaleFromSmall");case"scaleFromSmallPrevMoveToRight":return f(V,"moveToRight","scaleFromSmall");case"scaleFromSmallPrevMoveToTop":return f(V,"moveToTop","scaleFromSmall");case"scaleFromSmallPrevMoveToBottom":return f(V,"moveToBottom","scaleFromSmall");case"glueToLeft":return f(V,"rotateRightSideFirst","moveFromRight");case"glueToRight":return f(V,"rotateLeftSideFirst","moveFromLeft");case"glueToTop":return f(V,"rotateBottomSideFirst","moveFromBottom");case"glueToBottom":return f(V,"rotateTopSideFirst","moveFromTop");case"flipToLeft":return f(V,"flipOutLeft","flipInRight");case"flipToRight":return f(V,"flipOutRight","flipInLeft");case"flipToTop":return f(V,"flipOutTop","flipInBottom");case"flipToBottom":return f(V,"flipOutBottom","flipInTop");case"rotateFall":return f(V,"rotateFall","scaleFromSmall");case"newspaper":return f(V,"rotateOutNewspaper","rotateInNewspaper");case"moveFromLeftPrevPush":return f(V,"rotatePushRight","moveFromLeft");case"moveFromRightPrevPush":return f(V,"rotatePushLeft","moveFromRight");case"moveFromTopPrevPush":return f(V,"rotatePushBottom","moveFromTop");case"moveFromBottomPrevPush":return f(V,"rotatePushTop","moveFromBottom");case"pullFromLeftPrevPush":return f(V,"rotatePushRight","rotatePullLeft");case"pullFromRightPrevPush":return f(V,"rotatePushLeft","rotatePullRight");case"pullFromTopPrevPush":return f(V,"rotatePushBottom","rotatePullTop");case"pullFromBottomPrevPush":return f(V,"rotatePushTop","rotatePullBottom");case"moveFromLeftFadePrevFold":return f(V,"rotateFoldRight","moveFromLeftFade");case"moveFromRightFadePrevFold":return f(V,"rotateFoldLeft","moveFromRightFade");case"moveFromTopFadePrevFold":return f(V,"rotateFoldBottom","moveFromTopFade");case"moveFromBottomFadePrevFold":return f(V,"rotateFoldTop","moveFromBottomFade");case"moveToLeftFadePrevUnfold":return f(V,"moveToLeftFade","rotateUnfoldRight");case"moveToRightFadePrevUnfold":return f(V,"moveToRightFade","rotateUnfoldLeft");case"moveToTopFadePrevUnfold":return f(V,"moveToTopFade","rotateUnfoldBottom");case"moveToBottomFadePrevUnfold":return f(V,"moveToBottomFade","rotateUnfoldTop");case"rotateRoomLeftIn":return f(V,"rotateRoomLeftOut","rotateRoomLeftIn");case"rotateRoomRightIn":return f(V,"rotateRoomRightOut","rotateRoomRightIn");case"rotateRoomTopIn":return f(V,"rotateRoomTopOut","rotateRoomTopIn");case"rotateRoomBottomIn":return f(V,"rotateRoomBottomOut","rotateRoomBottomIn");case"rotateCubeLeftIn":return f(V,"rotateCubeLeftOut","rotateCubeLeftIn");case"rotateCubeRightIn":return f(V,"rotateCubeRightOut","rotateCubeRightIn");case"rotateCubeTopIn":return f(V,"rotateCubeTopOut","rotateCubeTopIn");case"rotateCubeBottomIn":return f(V,"rotateCubeBottomOut","rotateCubeBottomIn");case"rotateCarouselLeftIn":return f(V,"rotateCarouselLeftOut","rotateCarouselLeftIn");case"rotateCarouselRightIn":return f(V,"rotateCarouselRightOut","rotateCarouselRightIn");case"rotateCarouselTopIn":return f(V,"rotateCarouselTopOut","rotateCarouselTopIn");case"rotateCarouselBottomIn":return f(V,"rotateCarouselBottomOut","rotateCarouselBottomIn");case"rotateSidesIn":return f(V,"rotateSidesOut","rotateSidesIn");case"rotateSlideIn":return f(V,"rotateSlideOut","rotateSlideIn")}}function S(Z,V=600,Kt=600){switch(Z){case r:return V;case o:return Kt;default:return n.duration}}function _(Z,V){switch(Z){case"moveFromLeftFadePrevFold":case"moveFromRightFadePrevFold":case"moveFromTopFadePrevFold":case"moveFromBottomFadePrevFold":return S(V,700,700);case"moveToLeftEasing":case"moveToRightEasing":case"moveToTopEasing":case"moveToBottomEasing":case"moveFromLeftPrevScaleToSmall":case"moveFromRightPrevScaleToSmall":case"moveFromTopPrevScaleToSmall":case"moveFromBottomPrevScaleToSmall":return S(V,700,600);case"scaleSmall":return S(V,700,500);case"scaleLarge":return S(V,500,700);case"scaleToLargePrevScaleToSmall":return S(V,400,400);case"scaleFromSmallPrevMoveToLeft":case"scaleFromSmallPrevMoveToRight":case"scaleFromSmallPrevMoveToTop":case"scaleFromSmallPrevMoveToBottom":return S(V,600,700);case"glueToLeft":case"glueToRight":case"glueToTop":case"glueToBottom":return S(V,800,600);default:return n.duration}}let C=n.timingFunction;function y(Z){switch(Z){default:return n.easeFunction}}function p(Z,V){switch(Z){case"moveToLeftEasing":case"moveToRightEasing":case"moveToTopEasing":case"moveToBottomEasing":switch(V){case r:C=m()?"ease-in-out":"ease";break;case o:default:C=m()?"ease":"ease-in-out"}return y(V);default:return C=n.timingFunction,n.easeFunction}}function x(Z,V=300){switch(Z){case o:return n.delay+V;default:return n.delay}}function b(Z,V){switch(Z){case"flipToLeft":case"flipToRight":case"flipToTop":case"flipToBottom":case"newspaper":return x(V,500);case"scaleSmall":case"scaleLarge":return x(V,300);case"scaleToLargePrevScaleToSmall":return x(V,400);case"glueToLeft":case"glueToRight":case"glueToTop":case"glueToBottom":case"rotateSidesIn":return x(V,200);case"pullFromLeftPrevPush":case"pullFromRightPrevPush":case"pullFromTopPrevPush":case"pullFromBottomPrevPush":return x(V,180);default:return n.delay}}let z=2,ut=2;const O=()=>{z=2,ut=2},R=()=>{z=2,ut=3},A=()=>{z=3,ut=2};function D(Z){switch(n.effect){case"moveToLeftEasing":case"moveToRightEasing":case"moveToTopEasing":case"moveToBottomEasing":A();break;case"scaleFromSmallPrevMoveToLeft":case"scaleFromSmallPrevMoveToRight":case"scaleFromSmallPrevMoveToTop":case"scaleFromSmallPrevMoveToBottom":case"rotateFall":case"rotateRoomLeftIn":case"rotateRoomRightIn":case"rotateRoomTopIn":case"rotateRoomBottomIn":case"rotateCubeLeftIn":case"rotateCubeRightIn":case"rotateCubeTopIn":case"rotateCubeBottomIn":case"rotateCarouselLeftIn":case"rotateCarouselRightIn":case"rotateCarouselTopIn":case"rotateCarouselBottomIn":m()?A():R();break;case"moveFromLeftPrevFade":case"moveFromRightPrevFade":case"moveFromTopPrevFade":case"moveFromBottomPrevFade":case"moveFromLeftPrevScaleToSmall":case"moveFromRightPrevScaleToSmall":case"moveFromTopPrevScaleToSmall":case"moveFromBottomPrevScaleToSmall":case"glueToLeft":case"glueToRight":case"glueToTop":case"glueToBottom":m()?R():A();break;default:O();break}d(r)&&r==Z&&(h[r].style.zIndex=`${z}`,h[r].style.visibility="visible"),d(o)&&o==Z&&(h[o].style.zIndex=`${ut}`,h[o].style.visibility="visible")}function F(Z){R(),Z==r&&(h[r].style.zIndex=`${z}`,h[r].style.visibility="hidden"),Z==o&&(h[o].style.zIndex=`${ut}`,h[o].style.visibility="visible",l.shift()?.(),i("routeChangeEnd",r,o,c.length),r=o)}const X=M();function rt(Z=0,V=!1){if(!X.value)return;let Kt=0;Ac(fs("div",{class:"routes-pages",style:{display:"block",width:"100%",height:"100%",overflow:"hidden",position:"relative"}},c.map((te,It)=>{const ee=E(n.effect,It);return fs("div",Object.assign({class:"routes-page",style:{display:"block",width:"100%",height:"100%",overflow:"hidden",position:"absolute",top:"0",left:"0",backfaceVisibility:"hidden",transform:"translate3d(0, 0, 0)",transformStyle:"preserve-3d",visibility:r==It?"visible":"hidden",zIndex:V?"1":"0"}},te.pageKey?{key:te.pageKey}:{}),fs(ka,{effect:ee,duration:_(n.effect,It),easeFunction:p(n.effect,It),timingFunction:C,delay:b(n.effect,It),onReady:(Yt,G)=>{u[It]={open:Yt,close:G},++Kt==Z&&(a?.(),i("renderComplete"))},onPageOpenStart:()=>{D(It)},onPageOpenEnd:()=>{F(It)},onPageCloseStart:()=>{D(It)},onPageCloseEnd:()=>{F(It)}},{default:()=>te.component instanceof HTMLElement?fs("div",{...te.attributes,innerHTML:te.component.innerHTML}):fs(te.component,te.attributes,()=>te.child)}))})),X.value),h=X.value.children[0].children}Mt(()=>n.effect,()=>{rt()});function Q(Z=[]){c=[...Z],c.forEach(V=>{V.pageKey=V.pageKey||ti()}),a=()=>{r=-1,gt(0)},rt(c.length,!0)}function W(Z){Z.pageKey=Z.pageKey||ti(),c.push(Z),a=()=>{gt(c.length-1)},rt(1,c.length==1)}function it(){c.length<=1||gt(c.length-2,()=>{c.splice(c.length-1,1),r=c.length-1,rt()})}function B(){gt(r+1)}function j(){gt(r-1)}const yt=new Qo(1);function gt(Z,V){yt.addTask(()=>new Promise(Kt=>{const te=()=>{V?.(),Kt()};if(!d(Z)){te();return}if(o=Z,o==r){te();return}l.push(te),rt(),i("routeChangeStart",r,o,c.length),m()?(d(r)&&u[r].open(),d(o)&&u[o].open()):(d(r)&&u[r].close(),d(o)&&u[o].close())}))}return t({reset:Q,push:W,pop:it,forward:B,back:j,goto:gt,currentPageIndex:()=>r,totalPages:()=>c.length}),(Z,V)=>(L(),H("div",{class:"routes",ref_key:"routesRef",ref:X,style:{display:"block",position:"relative",width:"100%",height:"100%","overflow-x":"hidden","overflow-y":"hidden"}},null,512))}}),oy={key:0,style:{position:"absolute",top:"30px",left:"50%",transform:"translate(-50%, 0)",color:"#ffffff","font-size":"1em","z-index":"98"}},ay=ct({customOptions:{Image:Ea,Container:kt,Routes:Tr},inheritAttrs:!0,__name:"ImageView",props:{urls:{default:()=>[]},effect:{default:"moveToLeftFade"}},setup(s,{expose:t,emit:e}){const n=s,i=M(0);function r(d,m){i.value=m}const o=M(),a=d=>{d.on("panLeft",()=>{o.value?.forward()}),d.on("panRight",()=>{o.value?.back()}),o.value.reset(n.urls.map(m=>({component:fs(Ea,{mode:"aspectFit",src:m,openImageDetailWhenClick:!1})})))},l=M();function c(){l.value?.open()}function u(){l.value?.close()}const h=d=>{d.target&&et.hasClass(d.target,"image")&&u()};return t({open:c,close:u}),(d,m)=>(L(),zt(Be,{ref_key:"popRef",ref:l,directionFrom:"absolute",onClick:h},{default:Pt(()=>[n.urls.length>1?(L(),H("div",oy,wt(i.value+1)+" / "+wt(n.urls.length),1)):Bt("",!0),ft(kt,{style:{position:"absolute",top:"50%",transform:"translate(0, -50%)",width:"100%",height:"100%","z-index":"97"},onReady:a},{default:Pt(()=>[ft(Tr,{ref_key:"routesRef",ref:o,effect:n.effect,onRouteChangeEnd:r},null,8,["effect"])]),_:1})]),_:1},512))}}),ab="",ly={class:"page"},cy={class:"header"},uy={class:"main"},hy={class:"main-scroll"},dy={class:"footer"},fy=ct({customOptions:{},inheritAttrs:!0,__name:"LayoutMobile",props:{designWidth:{default:750}},setup(s,{expose:t,emit:e}){return Um(s.designWidth),t({}),(i,r)=>(L(),H("div",ly,[P("header",cy,[Et(i.$slots,"header",{},void 0,!0)]),P("div",uy,[P("div",hy,[Et(i.$slots,"main",{},void 0,!0)])]),P("footer",dy,[Et(i.$slots,"footer",{},void 0,!0)])]))}}),lb="",py=mt(fy,[["__scopeId","data-v-3904d6b5"]]),my=ct({customOptions:{},inheritAttrs:!0,__name:"LayoutCenter",props:{type:{default:"grid"}},setup(s,{expose:t,emit:e}){const n=s,i=Jt({}),r=Jt({});function o(){switch(yu(i),yu(r),n.type){case"table":i.display="table",r.display="table-cell",r.verticalAlign="middle",r.textAlign="center";break;case"transform":r.position="absolute",r.top="50%",r.left="50%",r.transform="translate(-50%, -50%)";break;case"grid":i.display="grid",i.justifyContent="center",i.alignItems="center";break;case"flex":default:i.display="flex",r.margin="auto"}}return o(),le(()=>{}),t({}),(a,l)=>(L(),H("div",{class:"layout-center",style:Y(i)},[P("div",{style:Y(r)},[Et(a.$slots,"default",{},void 0,!0)],4)],4))}}),cb="",gy=mt(my,[["__scopeId","data-v-37646611"]]),yy=P("div",{style:{"background-color":"#ffffff"}},"...",-1),Pa=ct({customOptions:{Pop:Be,Button:ve,Container:kt},inheritAttrs:!0,__name:"Popover",props:{gap:{default:10},isGlobal:{type:Boolean,default:!0},closeWhenClickOverlay:{type:Boolean,default:!0}},setup(s,{expose:t}){const e=s,n=M();function i(){n.value.open()}function r(){n.value.close()}const o=M(),a=M(0),l=M(0),c=M(0),u=M(0),h=(d,m)=>{if(c.value=d,u.value=m,!o.value)return;const f=ea(),E=o.value.getBoundingClientRect();a.value=Math.max(e.gap,Math.min(E.x+E.width+e.gap,f.width-d-e.gap)),l.value=Math.max(e.gap,Math.min(E.y,f.height-m-e.gap))};return t({open:i,close:r}),(d,m)=>(L(),H($t,null,[P("div",{ref_key:"popoverButtonRef",ref:o,class:"popover-button",style:{display:"inline-block"},onClick:i},[Et(d.$slots,"button",{},()=>[ft(ve,null,{default:Pt(()=>[Qt("popover")]),_:1})])],512),ft(Be,{ref_key:"popRef",ref:n,"direction-from":"absolute",isGlobal:e.isGlobal,closeWhenClickOverlay:e.closeWhenClickOverlay},{default:Pt(()=>[P("div",{style:Y({position:"absolute",left:a.value+"px",top:l.value+"px",width:c.value+"px",height:u.value+"px"})},[ft(kt,{type:"shrink",onResize:h},{default:Pt(()=>[Et(d.$slots,"panel",{},()=>[yy])]),_:3})],4)]),_:3},8,["isGlobal","closeWhenClickOverlay"])],64))}}),vy={class:"dialog-parent"},_y={key:0,class:"title"},by={key:0,class:"title-inner truncate"},xy={class:"custom-content"},wy={class:"custom-content-default"},Cy={key:1,class:"btns"},Sy=ct({customOptions:{Overlay:Sn,Pop:Be,Icon:an,Button:ve},inheritAttrs:!0,__name:"Dialog",props:{closeWhenClickOverlay:{type:Boolean,default:!1},dur:{default:200},minWidth:{default:"12em"},maxWidth:{default:"20em"},overlayBgColor:{}},emits:["open","close","cancel","confirm"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=M(),o=M(""),a=M(""),l=M(!1),c=M(""),u=M("");let h,d,m;const f=()=>{i("open")},E=()=>{h?.(),i("close")};function S(p){o.value=p?.title||"",a.value=p?.content||"",l.value=typeof p?.showClose=="boolean"?p?.showClose:!1,c.value=p?.cancelText||"",u.value=p?.confirmText||"",h=p?.onClose,d=p?.onCancel,m=p?.onConfirm,r.value.open()}function _(){r.value.close()}function C(){_(),d?.(),i("cancel")}function y(){_(),m?.(),i("confirm")}return t({open:S,close:_}),(p,x)=>(L(),zt(Be,{ref_key:"popRef",ref:r,directionFrom:"center",closeWhenClickOverlay:n.closeWhenClickOverlay,dur:n.dur,overlayBgColor:n.overlayBgColor,onOpen:f,onClose:E},{default:Pt(()=>[P("div",vy,[P("div",{class:"dialog",style:Y({minWidth:n.minWidth,maxWidth:n.maxWidth})},[o.value||l.value?(L(),H("div",_y,[o.value?(L(),H("div",by,wt(o.value),1)):Bt("",!0),l.value?(L(),H("div",{key:1,class:"close",onClick:_},[ft(an,{icon:"ic:baseline-close",color:Ft(Ot).colorGrayCC},null,8,["color"])])):Bt("",!0)])):Bt("",!0),P("div",xy,[Et(p.$slots,"default",{},()=>[P("div",wy,wt(a.value),1)],!0)]),c.value||u.value?(L(),H("div",Cy,[c.value?(L(),zt(ve,{key:0,onClick:C,class:"btn",bgColor:Ft(Ot).colorGrayE6,borderColor:Ft(Ot).colorGrayE6,fontColor:Ft(Ot).colorGray33,borderRadius:"0"},{default:Pt(()=>[Qt(wt(c.value),1)]),_:1},8,["bgColor","borderColor","fontColor"])):Bt("",!0),u.value?(L(),zt(ve,{key:1,onClick:y,class:"btn",borderRadius:"0"},{default:Pt(()=>[Qt(wt(u.value),1)]),_:1})):Bt("",!0)])):Bt("",!0)],4)])]),_:3},8,["closeWhenClickOverlay","dur","overlayBgColor"]))}}),ub="",hi=mt(Sy,[["__scopeId","data-v-f9df8635"]]),Ty={class:"loading-8"},Ey={viewBox:"25 25 50 50"},ky=ct({__name:"Loading8",props:{color:{default:Ot.colorPrimary}},setup(s){const t=s;return(e,n)=>(L(),H("div",Ty,[(L(),H("svg",Ey,[P("circle",{cx:"50",cy:"50",r:"20",style:Y(["stroke: "+t.color])},null,4)]))]))}}),hb="",Oa=mt(ky,[["__scopeId","data-v-e5e3cf4c"]]),Py={class:"loading"},Oy={class:"icon"},Iy={style:{width:"8em"}},Dy={key:0,class:"content"},Ry=ct({customOptions:{Overlay:Sn,Pop:Be,Dialog:hi,Loading8:Oa},inheritAttrs:!0,__name:"DialogLoading",props:{closeWhenClickOverlay:{type:Boolean,default:!1},dur:{default:200}},emits:["open","close"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=M(),o=M(""),a=()=>{i("open")},l=()=>{i("close")};function c(h){o.value=h||"",r.value.open()}function u(){r.value.close()}return t({open:c,close:u}),(h,d)=>(L(),zt(hi,{ref_key:"dialogRef",ref:r,showConfirm:!1,showTitle:!1,closeWhenClickOverlay:n.closeWhenClickOverlay,dur:n.dur,onOpen:a,onClose:l},{default:Pt(()=>[P("div",Py,[P("div",Oy,[Et(h.$slots,"default",{},()=>[P("div",Iy,[ft(Oa)])],!0)]),o.value?(L(),H("div",Dy,wt(o.value),1)):Bt("",!0)])]),_:3},8,["closeWhenClickOverlay","dur"]))}}),db="",Ay=mt(Ry,[["__scopeId","data-v-e707960a"]]),My={class:"toast"},Ny={class:"content"},Ly=ct({customOptions:{Overlay:Sn,Pop:Be,Dialog:hi},inheritAttrs:!0,__name:"DialogToast",props:{closeWhenClickOverlay:{type:Boolean,default:!1},dur:{default:200}},emits:["open","close"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=M(),o=M(""),a=()=>{i("open")},l=()=>{i("close")};function c(h,d=1500){o.value=h,r.value.open(),setTimeout(()=>{u()},d)}function u(){r.value.close()}return t({open:c,close:u}),(h,d)=>(L(),zt(hi,{ref_key:"dialogRef",ref:r,showConfirm:!1,showTitle:!1,closeWhenClickOverlay:n.closeWhenClickOverlay,dur:n.dur,overlayBgColor:"transparent",minWidth:"10em",onOpen:a,onClose:l},{default:Pt(()=>[P("div",My,[P("div",Ny,wt(o.value),1)])]),_:1},8,["closeWhenClickOverlay","dur"]))}}),fb="",Fy=mt(Ly,[["__scopeId","data-v-7a82fa25"]]),$y={class:"tab"},Vy=ct({name:"Tab",customOptions:{},inheritAttrs:!0,__name:"Tab",props:{label:{}},setup(s,{expose:t}){return t({}),(e,n)=>(L(),H("div",$y,[Et(e.$slots,"default",{},void 0,!0)]))}}),pb="",Yy=mt(Vy,[["__scopeId","data-v-6589e7fa"]]),zy={class:"tabs"},By=["onClick"],Gy={class:"content"},Xy=ct({customOptions:{},inheritAttrs:!0,__name:"Tabs",props:{labels:{},pages:{},initIndex:{default:0}},emits:["changedIndex"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=M(n.initIndex),o=Jt([]),a=M(),l=M(0),c=M(0),u=M(0),h=M([]),d=[],m=Wd(),f=m.default&&m.default();f&&(si(o,f),_(r.value));const E=(y,p)=>{if(y){if(d.push({index:p,el:y}),d.length<o.length)return;h.value=d}};Mt([a,h],()=>{S()});function S(){if(a.value&&h.value.length){const y=a.value.getBoundingClientRect(),p=h.value[r.value].el.getBoundingClientRect();l.value=p.x-y.x,c.value=p.y-y.y+p.height-2,u.value=p.width}}function _(y){r.value=y,i("changedIndex",y),S(),C.value.goto(y)}const C=M();return Mt(C,()=>{C.value&&C.value.reset(n.pages,()=>{C.value.goto(n.initIndex)})}),t({}),(y,p)=>(L(),H("div",zy,[P("div",{class:"header",ref_key:"headerRef",ref:a},[(L(!0),H($t,null,ge(n.labels,(x,b)=>(L(),H("div",{key:x,class:ie(b==r.value?"active":""),onClick:z=>_(b)},[P("div",{ref_for:!0,ref:z=>E(z,b)},wt(x),513)],10,By))),128)),P("div",{class:"indicator",style:Y({top:c.value+"px",left:l.value+"px",width:u.value+"px",height:"2px"})},null,4)],512),P("div",Gy,[ft(Tr,{ref_key:"routesRef",ref:C},null,512)])]))}}),mb="",jy=mt(Xy,[["__scopeId","data-v-cb33ca53"]]),Uy=["width","height"],Hy=ct({customOptions:{},inheritAttrs:!0,__name:"HandWritePanel",props:{canvasWidth:{default:"400"},canvasHeight:{default:"300"},borderColor:{default:"#000000"},brushSize:{default:4},brushDensity:{default:200},brushColor:{default:"#000000"},downloadFileName:{default:"手写图片"}},setup(s,{expose:t,emit:e}){const n=s;let i=()=>{};const r=M();return Mt(r,()=>{if(!r.value)return;const o=new ys(r.value),a=new Zu(o,!0);a.ctx.strokeStyle=n.brushColor,a.ctx.lineWidth=n.brushSize,a.drawMouseMoveLine("line"),i=()=>{ue.downloadFromSVGString(a.ctx.toRawSVG().raw,n.downloadFileName)}}),t({download:()=>i()}),(o,a)=>(L(),H("canvas",{ref_key:"panelRef",ref:r,width:n.canvasWidth,height:n.canvasHeight,style:Y([`border: 1px solid ${o.borderColor}`])},null,12,Uy))}}),Wy={class:"page-vertical-scroll-progress-bar"},qy=ct({customOptions:{ProgressBar:ui},inheritAttrs:!0,__name:"PageVerticalScrollProgressBar",props:{bgColor:{default:"#efefef"},progressColor:{default:"#07B56D"},borderColor:{default:"transparent"},borderRadius:{default:"4px"},duringTimeGap:{default:1},showText:{type:Boolean,default:!1}},emits:["progress"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=M();return Se.on("scroll",()=>{const o=zm();i("progress",o),r.value?.goto(o)}),le(()=>{}),t({}),(o,a)=>(L(),H("div",Wy,[ft(ui,{ref_key:"bar",ref:r,bgColor:n.bgColor,progressColor:n.progressColor,borderColor:n.borderColor,borderRadius:n.borderRadius,duringTimeGap:n.duringTimeGap,showText:n.showText},null,8,["bgColor","progressColor","borderColor","borderRadius","duringTimeGap","showText"])]))}}),gb="",Zy=mt(qy,[["__scopeId","data-v-074b327c"]]),Ky=["fill"],Qy=["fill"],Jy=ct({__name:"SVGCheck",props:{width:{default:"10px"},color:{default:Ot.colorPrimary}},setup(s){const t=s;return(e,n)=>(L(),H("svg",{style:Y(["width: "+t.width]),viewBox:"0 0 7 5",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[P("path",{d:"M0.153989 2.49994C-0.0513296 2.28468 -0.0513296 1.93567 0.153989 1.72041C0.359307 1.50514 0.692194 1.50514 0.897512 1.72041L3.12808 4.05902C3.3334 4.27428 3.3334 4.62329 3.12808 4.83855C2.92276 5.05382 2.58988 5.05382 2.38456 4.83855L0.153989 2.49994Z",fill:t.color},null,8,Ky),P("path",{d:"M6.10249 0.161447C6.30781 -0.0538159 6.64069 -0.0538157 6.84601 0.161447C7.05133 0.376711 7.05133 0.725721 6.84601 0.940984L3.12808 4.83855C2.92276 5.05382 2.58988 5.05382 2.38456 4.83855C2.17924 4.62329 2.17955 4.27439 2.38487 4.05913L6.10249 0.161447Z",fill:t.color},null,8,Qy)],4))}}),yb="",Ia=mt(Jy,[["__scopeId","data-v-987aed3d"]]),Da=s=>(Fn("data-v-85491020"),s=s(),$n(),s),t1=[Da(()=>P("path",{d:"M38,32.71a1.13,1.13,0,0,1-.8-.33L21.57,16.8a1.13,1.13,0,0,1,1.61-1.6L38.75,30.77a1.14,1.14,0,0,1-.8,1.94Z"},null,-1)),Da(()=>P("path",{d:"M22.38,32.71a1.17,1.17,0,0,1-.81-.33,1.15,1.15,0,0,1,0-1.61L37.15,15.2a1.13,1.13,0,1,1,1.6,1.6L23.18,32.38A1.13,1.13,0,0,1,22.38,32.71Z"},null,-1)),Da(()=>P("path",{d:"M18.68,3.79h-3.1l-15.64,20L15.33,43.45l.25.33H47.94v-40ZM3,23.79,16.73,6.3H45.3v35H16.73Z"},null,-1))],e1=ct({__name:"SVGCleanUp",props:{width:{default:"16px"},color:{default:Ot.colorPrimary}},setup(s){const t=s;return(e,n)=>(L(),H("svg",{style:Y(["width: "+t.width]),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 48 48"},t1,4))}}),xb="",Er=mt(e1,[["__scopeId","data-v-85491020"]]),s1=["data-number"],n1=["data-number","data-unactive"],i1=["data-number"],r1=["data-number","data-unactive"],o1=ct({customOptions:{Pop:Be,SVGCleanUp:Er,Container:kt},__name:"PlateKeyboard",props:{initPlates:{default:()=>[]},completePlateLength:{default:7}},emits:["open","close","plates"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=M(),o=M(0),a=Jt([]);function l(){a.length==0?o.value=0:a.length==1?o.value=1:o.value=2,a.length>=n.completePlateLength&&d()}Mt(()=>[...n.initPlates],()=>{si(a,n.initPlates),l()},{immediate:!0});const c=M(0),u=(y,p)=>{c.value=p},h=()=>{r.value.open(),i("open")},d=()=>{r.value.close(),i("close")},m=()=>{a.pop(),l(),i("plates",a)},f=y=>{if(y.target.dataset.unactive||"")return;let x=y.target.dataset.number;x&&(a.push(x),l(),i("plates",a))};t({open:h,close:d});const E=["京","沪","津","渝","黑","吉","辽","蒙","冀","新","甘","青","陕","宁","豫","鲁","晋","皖","鄂","湘","苏","川","云","桂","藏","浙","赣","粤","闽","琼","贵"],S=["1","2","3","4","5","6","7","8","9","0"],_=["A","B","C","D","E","F","G","H","J","K","L","M","N","P","Q","R","S","T","U","V","W","X","Y","Z"],C=["港","澳","学","警","使","领","挂","应","急"];return(y,p)=>(L(),zt(Be,{ref_key:"popRef",ref:r,directionFrom:"bottom",isGlobal:!0,closeWhenClickOverlay:!1,popValue:c.value},{default:Pt(()=>[ft(kt,{class:"popup-plate",style:Y({paddingBottom:Ft(Ot).safeAreaBottom}),onResize:u},{default:Pt(()=>[P("div",null,[P("div",{onClick:d},"关闭")]),P("div",{class:ie(["step",o.value==0?"":"hide"])},[(L(),H($t,null,ge(E,x=>P("div",{key:x,class:"popitem",onClick:f,"data-number":x},wt(x),9,s1)),64)),P("div",{class:"popitem popitem-clear",onClick:m},[ft(Er,{width:"16px"})])],2),P("div",{class:ie(["step",o.value!=0?"":"hide"])},[(L(),H($t,null,ge(S,x=>P("div",{key:x,class:ie(["popitem",o.value!=2?"unactive":""]),onClick:f,"data-number":x,"data-unactive":o.value!=2?"unactive":""},wt(x),11,n1)),64)),(L(),H($t,null,ge(_,x=>P("div",{key:x,class:"popitem",onClick:f,"data-number":x},wt(x),9,i1)),64)),(L(),H($t,null,ge(C,x=>P("div",{key:x,class:ie(["popitem",o.value!=2?"unactive":""]),onClick:f,"data-number":x,"data-unactive":o.value!=2?"unactive":""},wt(x),11,r1)),64)),P("div",{class:"popitem popitem-clear",onClick:m},[ft(Er,{width:"16px"})])],2)]),_:1},8,["style"])]),_:1},8,["popValue"]))}}),wb="",Qu=mt(o1,[["__scopeId","data-v-7865d42e"]]),a1=document.getElementById("teleport")||document.documentElement;function l1(s){{const t=fs(Qu,s);return Ac(t,a1),t.component?.exposed?.open(),()=>{t.component?.exposed?.close()}}}const kr=s=>(Fn("data-v-7f69a9fe"),s=s(),$n(),s),c1=kr(()=>P("div",{class:"title"},"车牌颜色",-1)),u1={class:"plate-types"},h1=["onClick"],d1=kr(()=>P("div",{class:"title"},"车牌号码",-1)),f1={class:"plate-numbers"},p1=kr(()=>P("div",{class:"dot"},"·",-1)),m1=["onClick"],g1=kr(()=>P("div",{class:"info"},"请输入您真实有效的车牌号,便于正常使用系统功能。",-1)),y1=ct({customOptions:{SVGCheck:Ia},__name:"PlateMobile",props:{maxWidth:{default:"750px"}},emits:["clear","complete"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=[{name:"蓝牌",style:"background-color: #0078f0;",completePlateLength:7},{name:"绿牌",style:"background-color: #00f08c;",completePlateLength:8},{name:"黄牌",style:"background-color: #fac800;",completePlateLength:7},{name:"黄绿",style:"background: linear-gradient(90deg, #fac800 51.5%, #00f08c 51.51%);",completePlateLength:8},{name:"黑牌",style:"background-color: #222222;",completePlateLength:7}],o=M(0),a=Jt([]),l=M(-1);function c(){l1({initPlates:a,completePlateLength:r[o.value].completePlateLength,onPlates:d=>{si(a,d),l.value=a.length,a.length===r[o.value].completePlateLength&&i("complete",r[o.value].name,a.join(""))}})}const u=d=>{o.value=d,l.value<=r[d].completePlateLength&&a.length<r[d].completePlateLength?(l.value=a.length,c(),i("clear")):si(a,a.slice(0,r[d].completePlateLength)),r[d].completePlateLength===a.length&&i("complete",r[o.value].name,a.join(""))},h=d=>{si(a,a.slice(0,d)),l.value=Math.min(Math.max(0,l.value),d),c(),i("clear")};return t({}),(d,m)=>(L(),H("div",So(d.$attrs,{class:"plate-mobile",style:{maxWidth:n.maxWidth}}),[c1,P("div",u1,[(L(),H($t,null,ge(r,(f,E)=>P("div",{key:E,class:ie(E==o.value?"checked":""),onClick:S=>u(E)},[P("div",{style:Y(f.style)},null,4),P("div",null,wt(f.name),1),P("div",null,[ft(Ia,{color:"#ffffff",width:"0.14rem"})])],10,h1)),64))]),d1,P("div",f1,[P("div",{onClick:m[0]||(m[0]=f=>h(0)),class:ie(l.value==0?"current":"")},wt(a[0]),3),P("div",{onClick:m[1]||(m[1]=f=>h(1)),class:ie(l.value==1?"current":"")},wt(a[1]),3),p1,(L(!0),H($t,null,ge(r[o.value].completePlateLength-2,f=>(L(),H("div",{key:f,class:ie(f+1==l.value?"current":""),onClick:E=>h(f+1)},wt(a[f+1]),11,m1))),128))]),g1],16))}}),Cb="",v1=mt(y1,[["__scopeId","data-v-7f69a9fe"]]),_1={class:"parent"},b1=ct({customOptions:{},inheritAttrs:!0,__name:"PlateDisplay",props:{plate:{},plateType:{},displayType:{default:"chinese"},fontColor:{},fontSize:{}},setup(s,{expose:t,emit:e}){const n=s,i=[{name:"蓝牌",style:"background-color: #0078f0; color: #ffffff;"},{name:"绿牌",style:"background-color: #00f08c; color: #000000;"},{name:"黄牌",style:"background-color: #fac800; color: #000000;"},{name:"黄绿",style:"background: linear-gradient(90deg, #fac800 51.5%, #00f08c 51.51%); color: #000000;"},{name:"黑牌",style:"background-color: #222222; color: #ffffff;"},{name:"未知",style:"background-color: #cccccc; color: #ffffff;"}];function r(h){return h.length>2?h.substring(0,2)+"·"+h.substring(2):h}function o(h){const d=i.filter(m=>m.name===h);return d.length?d[0]:o("未知")}const a=r(n.plate),l=M(o(n.plateType));let c=n.fontColor,u=n.fontSize;switch(n.displayType){case"dot":c=c??"#999999",u=u??"14px";break;case"chinese":c=c??"#333333",u=u??"20px";break}return t({}),(h,d)=>(L(),H("div",_1,[P("div",{class:ie(["leading",n.displayType]),style:Y(l.value.style)},wt(l.value.name),7),P("div",{class:"text",style:Y({color:Ft(c),"font-size":Ft(u)})},wt(Ft(a)),5)]))}}),Sb="",x1=mt(b1,[["__scopeId","data-v-11a104c3"]]),w1={class:"selector",style:{position:"relative",width:"124px",height:"106px",padding:"3px","background-color":"#222222","box-sizing":"border-box"}},C1=P("div",{style:{width:"100%",height:"100%",background:`linear-gradient(
83
83
  to bottom,
84
84
  rgba(0, 0, 0, 0) 0%,
85
85
  rgb(0, 0, 0) 100%
@@ -92,11 +92,11 @@ Component that was made reactive: `,s)),P(s,t,e,n,i,o,r,!0)}function Tf(s){retur
92
92
  rgb(0, 255, 0) 67%,
93
93
  rgb(255, 255, 0) 84%,
94
94
  rgb(255, 0, 0) 100%
95
- )`,"box-sizing":"border-box"}},T1=ct({customOptions:{Popover:Pa,Container:Et},__name:"ColorPicker",props:{color:{default:"#5a82f0"}},emits:["change"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=M(),o=new Ct(n.color),a=new Ct(n.color),l=M(o.toString()),c=M(o.opposite(!0).toString()),u=M(a.toString()),h=M(a.opposite(!0).toString()),d=M(a.h),m=M(o.s),f=M(o.v);function E(C){C&&(o.setColor(C),a.setColor(C)),l.value=o.toString(),c.value=o.opposite(!0).toString(),u.value=a.toString(),h.value=a.opposite(!0).toString(),d.value=a.h,m.value=o.s,f.value=o.v}const S=C=>{const y=(p,x)=>{a.h=(1-x.y/C.height)*360,o.h=a.h,E()};C.captureDrag({start:y,move:y})},_=C=>{const y=(p,x)=>{o.s=x.x/C.width,o.v=1-x.y/C.height,E()};C.captureDrag({start:y,move:y,end:()=>{i("change",l.value),r.value.close(),et.copyToClipboard(l.value).then(()=>{})}})};return t({setColor:E}),(C,y)=>(L(),zt(Pa,{ref_key:"popover",ref:r,closeWhenClickOverlay:!1},{button:Pt(()=>[kt(C.$slots,"default",{},()=>[P("span",{style:Y([{display:"inline-block","vertical-align":"middle","font-size":"1em",padding:"0.3em 0.8em","border-radius":"0.3em",cursor:"pointer",outline:"'none'","text-align":"'center'",border:"0"},{backgroundColor:l.value,color:c.value}])},wt(l.value),5)])]),panel:Pt(()=>[P("div",w1,[P("div",{class:"saturation-field",style:Y([{position:"relative",width:"100px",height:"100px",display:"inline-block",cursor:"pointer","box-sizing":"border-box"},{background:`linear-gradient(
95
+ )`,"box-sizing":"border-box"}},T1=ct({customOptions:{Popover:Pa,Container:kt},__name:"ColorPicker",props:{color:{default:"#5a82f0"}},emits:["change"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=M(),o=new Ct(n.color),a=new Ct(n.color),l=M(o.toString()),c=M(o.opposite(!0).toString()),u=M(a.toString()),h=M(a.opposite(!0).toString()),d=M(a.h),m=M(o.s),f=M(o.v);function E(C){C&&(o.setColor(C),a.setColor(C)),l.value=o.toString(),c.value=o.opposite(!0).toString(),u.value=a.toString(),h.value=a.opposite(!0).toString(),d.value=a.h,m.value=o.s,f.value=o.v}const S=C=>{const y=(p,x)=>{a.h=(1-x.y/C.height)*360,o.h=a.h,E()};C.captureDrag({start:y,move:y})},_=C=>{const y=(p,x)=>{o.s=x.x/C.width,o.v=1-x.y/C.height,E()};C.captureDrag({start:y,move:y,end:()=>{i("change",l.value),r.value.close(),et.copyToClipboard(l.value).then(()=>{})}})};return t({setColor:E}),(C,y)=>(L(),zt(Pa,{ref_key:"popover",ref:r,closeWhenClickOverlay:!1},{button:Pt(()=>[Et(C.$slots,"default",{},()=>[P("span",{style:Y([{display:"inline-block","vertical-align":"middle","font-size":"1em",padding:"0.3em 0.8em","border-radius":"0.3em",cursor:"pointer",outline:"'none'","text-align":"'center'",border:"0"},{backgroundColor:l.value,color:c.value}])},wt(l.value),5)])]),panel:Pt(()=>[P("div",w1,[P("div",{class:"saturation-field",style:Y([{position:"relative",width:"100px",height:"100px",display:"inline-block",cursor:"pointer","box-sizing":"border-box"},{background:`linear-gradient(
96
96
  to right,
97
97
  rgb(255, 255, 255) 0%,
98
98
  ${u.value} 100%
99
- )`}])},[ft(Et,{type:"full",onReady:_},{default:Pt(()=>[C1,P("div",{class:"field-knob",style:Y([{position:"absolute",width:"12px",height:"12px","box-shadow":"rgba(0, 0, 0, 0.5) 0px 1px 3px","border-radius":"12px","z-index":"1",cursor:"pointer","box-sizing":"border-box"},{left:100*m.value-6+"px",top:100*(1-f.value)-6+"px",backgroundColor:l.value,border:`2px solid ${c.value}`}])},null,4)]),_:1})],4),P("div",S1,[ft(Et,{type:"full",onReady:S},{default:Pt(()=>[P("div",{class:"hue-knob",style:Y([{position:"absolute",width:"15px",height:"2px","z-index":"1","box-sizing":"border-box"},{marginTop:(1-d.value/360)*100+"px",borderRight:"4px solid "+h.value}])},null,4)]),_:1})])])]),_:3},512))}}),Tb="",E1={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!0},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},mounted(){this.$nextTick(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const s=document.createElement("object");this._resizeObject=s,s.setAttribute("aria-hidden","true"),s.setAttribute("tabindex",-1),s.onload=this.addResizeHandlers,s.type="text/html",sa&&this.$el.appendChild(s),s.data="about:blank",sa||this.$el.appendChild(s)},beforeDestroy(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("resize",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!sa&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}},k1={class:"resize-observer",tabindex:"-1"};function P1(s,t,e,n,i,r){return L(),H("div",k1)}const O1=mt(E1,[["render",P1],["__scopeId","data-v-d5987ae1"]]),I1=ct({__name:"MapTianditu",props:{mapKey:{default:"8261564c2f1435b76dc5991adad737e6"},mapContainerID:{default:"mapTiandituDiv"},mapWidth:{},mapHeight:{},mapZoom:{default:18},mapCenterLng:{default:120.619585},mapCenterLat:{default:31.299379}},emits:["click"],setup(s,{expose:t,emit:e}){const n=s,i=M(n.mapWidth),r=M(n.mapHeight);let o;const a=M();return Mt(a,()=>{a.value&&(o=new ys(a.value,!1),o.on("resize",(l,c)=>{i.value=l+"px",r.value=c+"px"}),o.start())}),tn(()=>{et.loadScript(`http://api.tianditu.gov.cn/api?v=4.0&tk=${n.mapKey}`,()=>{new Yg(n.mapContainerID,n.mapCenterLng,n.mapCenterLat,n.mapZoom)},l=>{console.log("error",l)})}),le(()=>{o.destroy()}),t({}),(l,c)=>(L(),H("div",So({class:"mapDivWrap",ref_key:"mapWrap",ref:a},l.$attrs),[kt(l.$slots,"default",{width:i.value,height:r.value},void 0,!0)],16))}}),Eb="",D1=mt(I1,[["__scopeId","data-v-e5da8598"]]);var di=function(){var s=0,t=document.createElement("div");t.style.cssText="position:fixed;top:0;right:0;cursor:pointer;opacity:0.9;z-index:10000",t.addEventListener("click",function(u){u.preventDefault(),n(++s%t.children.length)},!1);function e(u){return t.appendChild(u.dom),u}function n(u){for(var h=0;h<t.children.length;h++)t.children[h].style.display=h===u?"block":"none";s=u}var i=(performance||Date).now(),r=i,o=0,a=e(new di.Panel("FPS","#0ff","#002")),l=e(new di.Panel("MS","#0f0","#020"));if(self.performance&&self.performance.memory)var c=e(new di.Panel("MB","#f08","#201"));return n(0),{REVISION:16,dom:t,addPanel:e,showPanel:n,begin:function(){i=(performance||Date).now()},end:function(){o++;var u=(performance||Date).now();if(l.update(u-i,200),u>r+1e3&&(a.update(o*1e3/(u-r),100),r=u,o=0,c)){var h=performance.memory;c.update(h.usedJSHeapSize/1048576,h.jsHeapSizeLimit/1048576)}return u},update:function(){i=this.end()},domElement:t,setMode:n}};di.Panel=function(s,t,e){var n=1/0,i=0,r=Math.round,o=r(window.devicePixelRatio||1),a=80*o,l=48*o,c=3*o,u=2*o,h=3*o,d=15*o,m=74*o,f=30*o,E=document.createElement("canvas");E.width=a,E.height=l,E.style.cssText="width:80px;height:48px";var S=E.getContext("2d");return S.font="bold "+9*o+"px Helvetica,Arial,sans-serif",S.textBaseline="top",S.fillStyle=e,S.fillRect(0,0,a,l),S.fillStyle=t,S.fillText(s,c,u),S.fillRect(h,d,m,f),S.fillStyle=e,S.globalAlpha=.9,S.fillRect(h,d,m,f),{dom:E,update:function(_,C){n=Math.min(n,_),i=Math.max(i,_),S.fillStyle=e,S.globalAlpha=1,S.fillRect(0,0,a,d),S.fillStyle=t,S.fillText(r(_)+" "+s+" ("+r(n)+"-"+r(i)+")",c,u),S.drawImage(E,h+o,d,m-o,f,h,d,m-o,f),S.fillRect(h+m-o,d,o,f),S.fillStyle=e,S.globalAlpha=.9,S.fillRect(h+m-o,d,o,r((1-_/C)*f))}}};const R1=Object.assign({customOptions:{},inheritAttrs:!0},{__name:"FPSStats",setup(s,{expose:t}){const e=M();return tn(()=>{const n=new di;n.domElement.style.margin="1em",e.value.appendChild(n.domElement),Zt(()=>(n.update(),!0))}),t({}),(n,i)=>(L(),H("div",{ref_key:"containerRef",ref:e},null,512))}}),A1={class:"ease-graph"},M1=ct({customOptions:{Button:ve,Canvas:rs},inheritAttrs:!0,__name:"EaseGraphDisplay",props:{easeName:{},easeFunction:{},canvasWidth:{default:180},canvasHeight:{default:100},graphHorizontalGap:{default:5},graphVerticalGap:{default:20},easeDuration:{default:2e3},isSelected:{type:Boolean,default:!1}},emits:["onMounted","onStart","onCompleted","onSelected"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=M();let o;Mt(r,()=>{r.value&&r.value.getCanvas().then(u=>{o=u,i("onMounted",n.easeName),o.app.on("showInParent",l)})});let a=!1;const l=()=>{if(!o||a)return;a=!0,i("onStart",n.easeName),o.ctx.fillStyle="rgb(250,250,250)",o.ctx.fillRect(0,0,n.canvasWidth,n.canvasHeight),o.ctx.lineWidth=.5,o.ctx.strokeStyle="rgb(230,230,230)",o.ctx.beginPath(),o.ctx.moveTo(0,n.graphVerticalGap),o.ctx.lineTo(n.canvasWidth,n.graphVerticalGap),o.ctx.moveTo(0,n.canvasHeight-n.graphVerticalGap),o.ctx.lineTo(n.canvasWidth,n.canvasHeight-n.graphVerticalGap),o.ctx.closePath(),o.ctx.stroke(),o.ctx.lineWidth=2,o.ctx.strokeStyle="rgb(255,127,127)";const u={x:n.graphHorizontalGap,y:n.canvasHeight-n.graphVerticalGap},h={x:n.graphHorizontalGap,y:n.canvasHeight-n.graphVerticalGap},d=()=>{o.ctx.beginPath(),o.ctx.moveTo(h.x,h.y),o.ctx.lineTo(u.x,u.y),o.ctx.closePath(),o.ctx.stroke(),h.x=u.x,h.y=u.y},m=new qe({frameDuration:n.easeDuration});m.addTween(u,{x:n.canvasWidth-n.graphHorizontalGap},{frames:1,delay:0,easeFunction:bt.Easing.Linear.None,onUpdate:f=>{u.x=f.x},onComplete:()=>{}}),m.addTween(u,{y:n.graphVerticalGap},{frames:1,delay:0,easeFunction:n.easeFunction,onUpdate:f=>{u.y=f.y,d()},onComplete:()=>{i("onCompleted",n.easeName),a=!1}}),m.play()},c=()=>{i("onSelected",n.easeName,n.easeFunction)};return le(()=>{o.app.off("showInParent",l)}),t({start:l}),(u,h)=>(L(),H("div",A1,[P("div",null,"缓动:"+wt(u.easeName),1),P("div",null,[P("div",null,[ft(ve,{stylePattern:"outline",height:"32px",padding:"10px",onClick:l},{default:Pt(()=>[Jt(" 开始 ")]),_:1})]),P("div",null,[ft(ve,{stylePattern:n.isSelected?"fullfilled":"outline",height:"32px",padding:"10px",onClick:c},{default:Pt(()=>[Jt(" 选择 ")]),_:1},8,["stylePattern"])])]),P("div",{style:Y({width:u.canvasWidth+"px",height:u.canvasHeight+"px"})},[ft(rs,{ref_key:"canvasRef",ref:r,bgColor:"#ffffff"},null,512)],4)]))}}),Pb="",Ra=mt(M1,[["__scopeId","data-v-e8afe7ba"]]),N1=2e3,L1=ct({customOptions:{EaseGraphDisplay:Ra},inheritAttrs:!0,__name:"EaseGroupGraphDisplay",props:{easeList:{default:()=>[{easeName:"Linear",easeFunction:bt.Easing.Linear.None},{easeName:"gap"},{easeName:"QuadraticIn",easeFunction:bt.Easing.Quadratic.In},{easeName:"QuadraticOut",easeFunction:bt.Easing.Quadratic.Out},{easeName:"QuadraticInOut",easeFunction:bt.Easing.Quadratic.InOut},{easeName:"gap"},{easeName:"CubicIn",easeFunction:bt.Easing.Cubic.In},{easeName:"CubicOut",easeFunction:bt.Easing.Cubic.Out},{easeName:"CubicInOut",easeFunction:bt.Easing.Cubic.InOut},{easeName:"gap"},{easeName:"QuarticIn",easeFunction:bt.Easing.Quartic.In},{easeName:"QuarticOut",easeFunction:bt.Easing.Quartic.Out},{easeName:"QuarticInOut",easeFunction:bt.Easing.Quartic.InOut},{easeName:"gap"},{easeName:"QuinticIn",easeFunction:bt.Easing.Quintic.In},{easeName:"QuinticOut",easeFunction:bt.Easing.Quintic.Out},{easeName:"QuinticInOut",easeFunction:bt.Easing.Quintic.InOut},{easeName:"gap"},{easeName:"SinusoidalIn",easeFunction:bt.Easing.Sinusoidal.In},{easeName:"SinusoidalOut",easeFunction:bt.Easing.Sinusoidal.Out},{easeName:"SinusoidalInOut",easeFunction:bt.Easing.Sinusoidal.InOut},{easeName:"gap"},{easeName:"ExponentialIn",easeFunction:bt.Easing.Exponential.In},{easeName:"ExponentialOut",easeFunction:bt.Easing.Exponential.Out},{easeName:"ExponentialInOut",easeFunction:bt.Easing.Exponential.InOut},{easeName:"gap"},{easeName:"CircularIn",easeFunction:bt.Easing.Circular.In},{easeName:"CircularOut",easeFunction:bt.Easing.Circular.Out},{easeName:"CircularInOut",easeFunction:bt.Easing.Circular.InOut},{easeName:"gap"},{easeName:"ElasticIn",easeFunction:bt.Easing.Elastic.In},{easeName:"ElasticOut",easeFunction:bt.Easing.Elastic.Out},{easeName:"ElasticInOut",easeFunction:bt.Easing.Elastic.InOut},{easeName:"gap"},{easeName:"BackIn",easeFunction:bt.Easing.Back.In},{easeName:"BackOut",easeFunction:bt.Easing.Back.Out},{easeName:"BackInOut",easeFunction:bt.Easing.Back.InOut},{easeName:"gap"},{easeName:"BounceIn",easeFunction:bt.Easing.Bounce.In},{easeName:"BounceOut",easeFunction:bt.Easing.Bounce.Out},{easeName:"BounceInOut",easeFunction:bt.Easing.Bounce.InOut},{easeName:"gap"},{easeName:"generatePow(10)In",easeFunction:bt.Easing.generatePow(10).In},{easeName:"generatePow(10)Out",easeFunction:bt.Easing.generatePow(10).Out},{easeName:"generatePow(10)InOut",easeFunction:bt.Easing.generatePow(10).InOut},{easeName:"gap"},{easeName:"4 steps",easeFunction:bt.Easing.createStep(4)},{easeName:"8 steps",easeFunction:bt.Easing.createStep(8)},{easeName:"12 steps",easeFunction:bt.Easing.createStep(12)},{easeName:"16 steps",easeFunction:bt.Easing.createStep(16)},{easeName:"gap"},{easeName:"Noisy Exponential.InOut",easeFunction:bt.Easing.createNoisyEasing(bt.Easing.Exponential.InOut,.1)},{easeName:"Noisy Elastic.InOut",easeFunction:bt.Easing.createNoisyEasing(bt.Easing.Elastic.InOut,.2)},{easeName:"Noisy Circular.InOut",easeFunction:bt.Easing.createNoisyEasing(bt.Easing.Circular.InOut,.1)},{easeName:"swing",easeFunction:bt.Easing.swing},{easeName:"causeSeizures",easeFunction:bt.Easing.causeSeizures}]}},emits:["selectedEaseFunction"],setup(s,{expose:t,emit:e}){const n=s,i=e,r={};function o(d,m){d&&(r[m]={el:d})}const a=new Qo(10);function l(d){a.addTask(()=>(r[d].el.start(),new Promise(m=>{r[d].resolve=m})))}function c(d){r[d].resolve?.()}const u=M("Linear");function h(d,m){u.value=d,i("selectedEaseFunction",d,m)}return h("Linear",bt.Easing.Linear.None),t({}),(d,m)=>(L(),H("div",null,[(L(!0),H($t,null,ge(n.easeList,f=>(L(),H("div",{key:f.easeName,class:"ease-graph-wrap"},[f.easeFunction?(L(),zt(Ra,{key:0,easeName:f.easeName,easeFunction:f.easeFunction,easeDuration:N1,isSelected:u.value==f.easeName,onOnMounted:l,onOnCompleted:c,onOnSelected:h,ref_for:!0,ref:E=>o(E,f.easeName)},null,8,["easeName","easeFunction","isSelected"])):Bt("",!0)]))),128))]))}}),Ob="",F1=mt(L1,[["__scopeId","data-v-fa7ba01d"]]),$1={class:"interpolation-graph"},Ju=1/6,th=5/6,V1=ct({customOptions:{Button:ve,Canvas:rs},inheritAttrs:!0,__name:"InterpolationGraphDisplay",props:{interpolationName:{},interpolationFunction:{},canvasWidth:{default:240},canvasHeight:{default:160},interpolationDuration:{default:2e3}},emits:["onMounted","onStart","onCompleted"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=M();let o;Mt(r,()=>{r.value&&r.value.getCanvas().then(E=>{o=E,i("onMounted",n.interpolationName),o.app.on("showInParent",f)})});const a=n.canvasWidth*Ju,l=n.canvasHeight/2,c=[n.canvasWidth*th,n.canvasWidth/2],u=[n.canvasHeight*Ju,n.canvasHeight*th],h=[...c,a],d=[...u,l];let m=!1;const f=()=>{if(!o||m)return;m=!0,i("onStart",n.interpolationName),o.ctx.fillStyle="rgb(250,250,250)",o.ctx.fillRect(0,0,n.canvasWidth,n.canvasHeight),o.ctx.fillStyle="rgb(200,200,200)",o.ctx.fillRect(a-3,l-3,6,6),o.ctx.fillRect(c[c.length-1]-3,u[u.length-1]-3,6,6);for(var E=0;E<c.length;E++)o.ctx.fillRect(c[E]-2,u[E]-2,4,4);const S=new qe({frameDuration:n.interpolationDuration});S.addTween({x:a,y:l,old:{x:a,y:l}},{x:c,y:u},{frames:1,delay:0,easeFunction:bt.Easing.Linear.None,interpolationFunction:n.interpolationFunction,onUpdate:_=>{o.ctx.lineWidth=2,o.ctx.strokeStyle="rgba(255,127,127,0.9)",o.ctx.beginPath(),o.ctx.moveTo(_.old.x,_.old.y),o.ctx.lineTo(_.x,_.y),o.ctx.closePath(),o.ctx.stroke(),_.old.x=_.x,_.old.y=_.y},onComplete:()=>{}}),S.addTween({x:a,y:l,old:{x:a,y:l}},{x:h,y:d},{frames:1,delay:0,easeFunction:bt.Easing.Linear.None,interpolationFunction:n.interpolationFunction,onUpdate:_=>{o.ctx.lineWidth=2,o.ctx.strokeStyle="rgba(255,127,127,0.5)",o.ctx.beginPath(),o.ctx.moveTo(_.old.x,_.old.y),o.ctx.lineTo(_.x,_.y),o.ctx.closePath(),o.ctx.stroke(),_.old.x=_.x,_.old.y=_.y},onComplete:()=>{i("onCompleted",n.interpolationName),m=!1}}),S.play()};return le(()=>{o.app.off("showInParent",f)}),t({start:f}),(E,S)=>(L(),H("div",$1,[P("div",null,[Jt(" 插值:"+wt(E.interpolationName)+" ",1),ft(ve,{stylePattern:"outline",height:"32px",onClick:f},{default:Pt(()=>[Jt(" 开始 ")]),_:1})]),P("div",{style:Y({width:E.canvasWidth+"px",height:E.canvasHeight+"px"})},[ft(rs,{ref_key:"canvasRef",ref:r,bgColor:"#ffffff"},null,512)],4)]))}}),Ib="",Aa=mt(V1,[["__scopeId","data-v-17bd4dde"]]),Y1=2e3,z1=ct({customOptions:{InterpolationGraphDisplay:Aa},inheritAttrs:!0,__name:"InterpolationGroupGraphDisplay",props:{interpolationList:{default:()=>[{interpolationName:"Linear",interpolationFunction:bt.Interpolation.Linear},{interpolationName:"Bezier",interpolationFunction:bt.Interpolation.Bezier},{interpolationName:"CatmullRom",interpolationFunction:bt.Interpolation.CatmullRom}]}},setup(s,{expose:t,emit:e}){const n=s,i={};function r(c,u){c&&(i[u]={el:c})}const o=new Qo(1);function a(c){o.addTask(()=>(i[c].el.start(),new Promise(u=>{i[c].resolve=u})))}function l(c){i[c].resolve?.()}return t({}),(c,u)=>(L(),H("div",null,[(L(!0),H($t,null,ge(n.interpolationList,h=>(L(),H("div",{key:h.interpolationName,class:"interpolation-graph-wrap"},[ft(Aa,{interpolationName:h.interpolationName,interpolationFunction:h.interpolationFunction,easeDuration:Y1,onOnMounted:a,onOnCompleted:l,ref_for:!0,ref:d=>r(d,h.interpolationName)},null,8,["interpolationName","interpolationFunction"])]))),128))]))}}),Db="",B1=mt(z1,[["__scopeId","data-v-6e8312e3"]]),G1=ct({__name:"SVG",props:{bgColor:{default:"rgba(255,255,255,0)"}},emits:["ready","resize"],setup(s,{expose:t,emit:e}){const n=s,i=e;let r,o,a;const l=M();Mt(l,()=>{r||!l.value||(r=new ys(l.value,!1),r.on("resize",(u,h)=>{i("resize",u,h),o=new Pg(r),a?.(o),i("ready",o)}),r.start())});function c(){return new Promise(u=>{if(o)return u(o);a=u})}return le(()=>{r?.destroy()}),t({getSVGElement:()=>l.value,getSVG:c}),(u,h)=>(L(),H("div",{class:"svg",ref_key:"svgRef",ref:l,style:Y({backgroundColor:n.bgColor})},null,4))}}),Rb="",eh=mt(G1,[["__scopeId","data-v-132e642b"]]),X1='<svg width="512" height="512" xmlns="http://www.w3.org/2000/svg"><g fill-rule="evenodd"><path d="M405.614 190.524c17.843 0 32.315-14.472 32.315-32.329s-14.472-32.329-32.315-32.329c-17.87 0-32.342 14.472-32.342 32.33 0 17.856 14.471 32.328 32.342 32.328zm21.479 7.867c-.528-.333-1.11-.569-1.665-.805a37.223 37.223 0 0 0-11.78-5.189l-8.034 8.103-7.811-8.2c-.028 0-.056.014-.084.014-4.135.985-8.2 2.747-11.821 5.133-.639.264-1.277.555-1.901.93-25.1 15.387-39.502 27.57-43.956 98.79-.43 6.924 4.842 12.876 11.738 13.306.278.014.541.028.805.028 6.577 0 12.099-5.12 12.529-11.766 1.512-24.045 3.927-39.627 7.437-50.38v43.47c0 3.386.652 6.535 1.804 9.421-.083.666-.167 1.319-.167 1.998l.028 120.172c0 8.186 6.618 14.832 14.819 14.832 8.2 0 14.832-6.646 14.832-14.832V320.283c.583.028 1.18.07 1.776.07.097 0 .222-.015.333-.015v103.078c0 8.2 6.632 14.832 14.832 14.832 8.2 0 14.833-6.632 14.833-14.832l.014-119.422c1.942-3.608 3.08-7.687 3.08-12.155v-43.11c3.427 10.74 5.827 26.238 7.312 50.02.416 6.646 5.952 11.766 12.515 11.766.25 0 .527 0 .791-.028 6.91-.43 12.168-6.396 11.752-13.306-4.454-71.234-18.87-83.403-43.97-98.79h-.041zm-21.41 66.087h-.152l-7.798-10.67 7.798-52.115h.152l7.798 52.115-7.798 10.67zM63.235 217.927c0 12.682 10.267 22.95 22.963 22.95 12.668 0 22.935-10.282 22.935-22.95s-10.281-22.95-22.935-22.95c-12.696 0-22.963 10.282-22.963 22.95zm38.211 28.527c-.374-.222-.79-.402-1.179-.569a26.82 26.82 0 0 0-8.367-3.69l-5.702 5.757-5.564-5.827c-.014 0-.042.014-.056.014a26.862 26.862 0 0 0-8.394 3.649c-.458.194-.916.388-1.346.652-15.873 9.727-25.724 17.69-29.914 55.056h17.912c.985-8.366 2.276-14.68 3.857-19.564v19.564h46.981v-19.314c1.554 4.843 2.803 11.086 3.774 19.314h17.899c-4.176-37.365-14.028-45.316-29.9-55.056v.014zM86.24 293.379h-.097l-5.536-7.576 5.536-36.99h.097l5.536 36.99-5.536 7.576zm67.432-75.452c0 12.682 10.281 22.95 22.963 22.95 12.668 0 22.935-10.282 22.935-22.95s-10.267-22.95-22.935-22.95c-12.682 0-22.963 10.282-22.963 22.95zm38.212 28.527c-.375-.222-.791-.402-1.18-.569a26.54 26.54 0 0 0-8.366-3.69l-5.703 5.757-5.55-5.827c-.014 0-.042.014-.055.014a26.723 26.723 0 0 0-8.395 3.649c-.458.194-.916.388-1.36.652-15.873 9.727-25.724 17.69-29.914 55.056h17.926c.985-8.366 2.276-14.68 3.858-19.564v19.564h46.98v-19.314c1.554 4.843 2.803 11.086 3.774 19.314h17.9c-4.191-37.365-14.042-45.316-29.915-55.056v.014zm-15.221 46.925h-.111l-5.536-7.576 5.536-36.99h.11l5.537 36.99-5.536 7.576zm-45.607-104.784c42.624 0 77.297-34.673 77.297-77.297C208.353 68.674 173.68 34 131.056 34c-42.624 0-77.298 34.674-77.298 77.298s34.674 77.297 77.298 77.297zm0-134.074c31.316 0 56.776 25.46 56.776 56.777 0 31.316-25.474 56.776-56.776 56.776-31.302 0-56.777-25.46-56.777-56.776 0-31.316 25.475-56.777 56.777-56.777z"/><path d="M170.918 103.084H139.27V69.908h-16.414v49.59h48.063zm30.137 305.277l-8.464-3.121a64.461 64.461 0 0 0-.707-18.732l8.172-3.774c5.106-2.345 7.354-8.422 4.995-13.528l-4.773-10.365c-2.345-5.106-8.408-7.353-13.514-4.995l-8.187 3.774a64.241 64.241 0 0 0-13.763-12.723l3.121-8.464c1.943-5.272-.763-11.155-6.035-13.098l-10.712-3.954c-5.106-1.873-11.21.944-13.098 6.036l-3.122 8.463a65.463 65.463 0 0 0-18.73.708l-3.775-8.186c-2.345-5.106-8.422-7.34-13.528-4.995L88.57 326.18c-5.106 2.358-7.353 8.436-4.995 13.528l3.774 8.172a64.996 64.996 0 0 0-12.723 13.778l-8.45-3.122c-5.106-1.9-11.21.916-13.112 6.022l-3.94 10.712a10.136 10.136 0 0 0 .305 7.797 10.124 10.124 0 0 0 5.73 5.287l8.464 3.135a64.95 64.95 0 0 0 .708 18.732l-8.187 3.774c-5.106 2.344-7.34 8.422-4.995 13.514l4.787 10.378c2.345 5.106 8.409 7.34 13.528 4.981l8.187-3.774a64.336 64.336 0 0 0 13.778 12.724l-3.122 8.464c-.958 2.553-.847 5.314.305 7.797a10.104 10.104 0 0 0 5.716 5.315l10.712 3.954c2.553.943 5.314.832 7.798-.305a10.034 10.034 0 0 0 5.286-5.73l3.136-8.464a64.931 64.931 0 0 0 18.731-.708l3.76 8.186c2.345 5.092 8.422 7.34 13.528 4.981l10.365-4.773c5.12-2.345 7.354-8.408 4.995-13.528l-3.774-8.172a64.24 64.24 0 0 0 12.71-13.778l8.463 3.136c2.567.957 5.328.832 7.812-.306 2.483-1.137 4.343-3.177 5.286-5.716l3.955-10.712c1.956-5.272-.736-11.141-6.022-13.084l-.014-.014zm-56.083 26.64c-5.342 2.456-11.017 3.705-16.858 3.705-15.693 0-30.08-9.213-36.644-23.463-9.296-20.202-.43-44.192 19.758-53.488a39.873 39.873 0 0 1 16.845-3.704c15.692 0 30.08 9.199 36.643 23.448 9.297 20.202.43 44.206-19.744 53.502zm142.635-185.578V76.458h-52.406V87.82h41.043v161.602H235.2v13.986h41.043v176.227H235.2v11.363h52.406V263.41h47.647l-.805-13.986z"/></g></svg>',j1={class:"btns"},U1={class:"btns"},H1={class:"btns sub-btns"},W1={class:"btns sub-btns"},q1={style:{width:"100%"}},Z1={style:{width:"100%"}},K1={style:{height:"400px"}},Q1={style:{height:"400px"}},J1=ct({customOptions:{Button:ve,InputRange:Vs,SVG:eh,Canvas:rs},inheritAttrs:!0,__name:"SVGAndCanvas",props:{easeName:{default:"Linear"},easeFunction:{type:Function,default:bt.Easing.Linear.None}},setup(s,{expose:t}){const e=s,n=M();let i=0,r=0;Mt(n,()=>{n.value&&n.value.getSVG().then(O=>{i=O.app.width,r=O.app.height,O.app.on("resize",(R,A)=>{i=R,r=A})})});const o=M(),a=M(),l=M(),c=M(""),u=M("");let h;function d(O){switch(u.value=O,c.value){case"AnimateToTweenCSS":z();break}}const m=new Og({svg:X1,width:300,attrs:{"stroke-width":"1",stroke:"#ff0000",fill:"none"},enableDrag:!0}),f=new Ht({d:"M62.9 14.9c-25-7.74-56.6 4.8-60.4 24.3-3.73 19.6 21.6 35 39.6 37.6 42.8 6.2 72.9-53.4 116-58.9 65-18.2 191 101 215 28.8 5-16.7-7-49.1-34-44-34 11.5-31 46.5-14 69.3 9.38 12.6 24.2 20.6 39.8 22.9 91.4 9.05 102-98.9 176-86.7 18.8 3.81 33 17.3 36.7 34.6 2.01 10.2.124 21.1-5.18 30.1"}),E=+f.getTotalLength().toFixed(0),S=M(E),_=M(Math.floor(E/2));function C(O){S.value=O,f.setAttr("strokeDasharray",`${S.value} ${S.value}`)}function y(O){_.value=O,f.setAttr("strokeDashoffset",`${_.value}`)}const p=[{name:"Shape",type:"Shape",onClick:()=>{c.value="Shape",!(!n.value||!o.value)&&(h?.(),n.value.getSVG().then(O=>{o.value.getCanvas().then(R=>{const A=new Cn({x:0,y:0,width:100,height:20,degree:30,scalar:2,attrs:{stroke:Ct.random().toString()},enableDrag:!0});O.clear(),h=Zt(()=>(R.ctx.clearRect(),O.path([A]),R.draw([A]),!0))})}))}},{name:"Shapes",type:"Shapes",onClick:()=>{if(c.value="Shapes",!n.value||!o.value)return;h?.();const O=new he({x:100,y:100,toX:100,toY:200,attrs:{stroke:"#666666"},enableDrag:!0}),R=new he({x:100,y:100,toX:100,toY:200,degree:30,attrs:{stroke:"#666666"},enableDrag:!0}),A=jt(0,i-100),D=jt(0,r-100),F=new he({attrs:{stroke:"#666666"}});F.x=A,F.y=D,F.toX=A+100,F.toY=D+100;const X=new he({attrs:{stroke:"#666666"}});X.x=A+100,X.y=D,X.toX=A,X.toY=D+100;const rt=F.intersection(X),Q=new Wt({x:0,y:0,radius:10,attrs:{fill:Ct.random().toString()}});rt&&(Q.x=rt.x,Q.y=rt.y);const W=new wr({x:jt(0,i),y:jt(0,r),scalar:.5,degree:45,attrs:{fill:"#5a82f0",stroke:"#ff0000",strokeWidth:"3"},enableDrag:!0,strokeArmyAnts:!0}),it=new ye({x:jt(0,i),y:jt(0,r),scalar:.8,degree:5,width:100,height:60,borderRadius:10,attrs:{fill:"pink",stroke:"#ff0000",strokeWidth:"3"},enableDrag:!0,strokeArmyAnts:!0}),B=new Ig({x:jt(0,i),y:jt(0,r),scalar:.99,degree:-1,attrs:{fill:Ct.random().toString(),stroke:"#ff0000",strokeWidth:"3"},enableDrag:!0,strokeArmyAnts:!0}),j=new Dg({x:jt(0,i),y:jt(0,r),scalar:.99,degree:-1,attrs:{fill:Ct.random().toString(),stroke:"#ff0000",strokeWidth:"3"},enableDrag:!0,strokeArmyAnts:!0}),yt=new Rg({x:jt(0,i),y:jt(0,r),scalar:1,degree:0,attrs:{fill:Ct.random().toString()},enableDrag:!0}),gt=new xa({x:jt(0,i),y:jt(0,r),scalar:1,degree:0,attrs:{fill:"rgb(200,80,80)",stroke:"#ff0000",strokeWidth:"3"},enableDrag:!0,strokeArmyAnts:!0}),Z=new Ag({x:jt(0,i),y:jt(0,r),scalar:1,degree:0,attrs:{fill:Ct.random().toString(),stroke:"#ff0000",strokeWidth:"3"},enableDrag:!0,strokeArmyAnts:!0}),V=new Mg({x:jt(0,i),y:jt(0,r),scalar:1,degree:0,attrs:{fill:Ct.random().toString()},enableDrag:!0}),Kt=new Ng({x:100,y:200,degree:30,scalar:.8,attrs:{strokeWidth:"2",stroke:Ct.random().toString(),fill:"none"},enableDrag:!0}),te=new $g({x:jt(0,i),y:jt(0,r),degree:30,scalar:2,showFlame:!0,attrs:{stroke:Ct.random().toString()},enableDrag:!0}),It=new Cn({x:100,y:100,width:100,height:20,degree:30,attrs:{stroke:Ct.random().toString()},enableDrag:!0}),ee=new Wu({x:200,y:200,min:0,max:200,step:2,defaultValue:10,barWidth:200});ee.on("change",Ne=>{console.log(`slider change: ${Ne}`)});const Yt=new wa({x:100,y:100,width:100,height:100,startDegree:45,endDegree:270,lineWidth:10,color:Ct.random().toString(),enableDrag:!0}),G=new qu({x:jt(0,i),y:jt(0,r),width:300,height:150,startDegree:-30,endDegree:190,extendDegree:10,percent:.3,enableDrag:!0}),$e=new Uu({x:jt(0,i),y:jt(0,r),rx:50,ry:10,enableDrag:!0,attrs:{fill:Ct.random().toString()}}),Ge=[O,R,F,X,Q,W,it,B,j,yt,gt,Z,V,Kt,te,It,ee,Yt,G,$e];n.value.getSVG().then(Ne=>{o.value.getCanvas().then(w=>{Ne.clear(),h=Zt(()=>(Ne.path(Ge),w.ctx.clearRect(),w.draw(Ge),!0))})})}},{name:"followMouse",type:"followMouse",onClick:()=>{c.value="followMouse",!(!n.value||!o.value)&&(h?.(),n.value.getSVG().then(O=>{o.value.getCanvas().then(R=>{const A=new wr({scalar:.5,followMouse:!0,attrs:{fill:Ct.random().toString()}}),D=A.clone(),F=new he({x:O.app.width/2,y:O.app.height/2,attrs:{"stroke-width":"1",stroke:"#666666"}}),X=F.clone();O.clear(),h=Zt(()=>(R.ctx.clearRect(),F.toX=A.x,F.toY=A.y,X.toX=D.x,X.toY=D.y,O.path([F,A]),R.draw([X,D]),!0))})}))}},{name:"targetToAfterDragFree",type:"targetToAfterDragFree",onClick:()=>{c.value="targetToAfterDragFree",!(!n.value||!o.value)&&(h?.(),n.value.getSVG().then(O=>{o.value.getCanvas().then(R=>{const A=new Wt({x:O.app.width/2,y:O.app.height/2,radius:30,attrs:{fill:Ct.random().toString()}});A.enableDrag=!0,A.targetToAfterDragFree={targetX:O.app.width/2,targetY:O.app.height/2};const D=A.clone();O.clear(),h=Zt(()=>(O.path(A),R.ctx.clearRect(),R.draw(D),!0))})}))}},{name:"BallCollision",type:"BallCollision",onClick:()=>{c.value="BallCollision",!(!n.value||!o.value)&&(h?.(),n.value.getSVG().then(O=>{o.value.getCanvas().then(R=>{const A=new Wt({x:50,y:O.app.height/2,radius:30,attrs:{fill:Ct.random().toString()}});A.mass=2,A.vx=2;const D=new Wt({x:O.app.width-50,y:O.app.height/2,radius:30,attrs:{fill:Ct.random().toString()}});D.mass=1,D.vx=-2,O.clear(),h=Zt(()=>(A.checkCollision(D),A.run(),D.run(),O.path([A,D]),R.ctx.clearRect(),R.draw([A,D]),!0))})}))}},{name:"Balls",type:"Balls",onClick:()=>{c.value="Balls",!(!n.value||!o.value)&&(h?.(),n.value.getSVG().then(O=>{o.value.getCanvas().then(R=>{const D=[];for(let rt=0;rt<15;rt++){const Q=Math.random()*20+15,W=new Wt({x:Math.random()*O.app.width,y:Math.random()*O.app.height,radius:Q,attrs:{fill:Ct.random().toString()}});W.mass=Q,W.vx=Math.random()*10-5,W.vy=Math.random()*10-5,D.push(W)}const F=new ye({x:0,y:0,width:O.app.width,height:O.app.height}),X=new Me(D);O.clear(),h=Zt(()=>(X.run({wall:F}),O.path(D),R.ctx.clearRect(),R.draw(D),!0))})}))}},{name:"万有引力",type:"Gravitate",onClick:()=>{c.value="Gravitate",!(!n.value||!o.value)&&(h?.(),n.value.getSVG().then(O=>{o.value.getCanvas().then(R=>{const D=[];for(let X=0;X<30;X++){const rt=Math.random()*25+5,Q=new Wt({x:Math.random()*O.app.width,y:Math.random()*O.app.height,radius:rt,attrs:{fill:Ct.random().toString()}});Q.mass=rt,D.push(Q)}const F=new Me(D);O.clear(),h=Zt(()=>(F.gravitate(),O.path(D),R.ctx.clearRect(),R.draw(D),!0))})}))}},{name:"行星",type:"SunPlanet",onClick:()=>{c.value="SunPlanet",!(!n.value||!o.value)&&(h?.(),n.value.getSVG().then(O=>{o.value.getCanvas().then(R=>{const A=new Wt({x:O.app.width*.5,y:O.app.height*.5,radius:50,attrs:{fill:Ct.random().toString()}});A.mass=1e4;const D=new Wt({x:O.app.width*.5+200,y:O.app.height*.5,radius:10,attrs:{fill:Ct.random().toString()}});D.mass=1,D.vy=7;const F=[A,D],X=new Me(F);O.clear(),h=Zt(()=>(X.gravitate(),O.path(F),R.ctx.clearRect(),R.draw(F),!0))})}))}},{name:"SpringMass",type:"SpringMass",onClick:()=>{c.value="SpringMass",!(!n.value||!o.value)&&(h?.(),n.value.getSVG().then(O=>{o.value.getCanvas().then(R=>{const A=[];for(let W=0;W<30;W++){const it=Math.random()*10+2,B=new Wt({x:Math.random()*R.app.width,y:Math.random()*R.app.height,radius:it,attrs:{fill:Ct.random().toString()}});B.vx=Math.random()*6-3,B.vy=Math.random()*6-3,B.mass=it,A.push(B)}const F=new Me(A),X=new ye({x:0,y:0,width:R.app.width,height:R.app.height}),rt=new Ct("#666666");let Q=[];O.clear(),h=Zt(()=>(O.delete(Q),Q=[],F.springMass(X,{spring:5e-4}).forEach(([W,it,B,j,yt])=>{yt>0&&Q.push(new he({x:W,y:it,toX:B,toY:j,attrs:{strokeWidth:"1",stroke:rt.setAlpha(yt).toString()}}))}),O.path(Q),O.path(A),R.ctx.clearRect(),R.draw(Q),R.draw(A),!0))})}))}},{name:"LinePicture",type:"LinePicture",onClick:()=>{c.value="LinePicture",!(!n.value||!o.value)&&(h?.(),n.value.getSVG().then(O=>{o.value.getCanvas().then(R=>{const A=new Wt({x:0,y:0,radius:8,attrs:{fill:Ct.random().toString()}}),D=new Wt({x:0,y:0,radius:5,attrs:{fill:Ct.random().toString()}});let F=[m,A,D],X,rt;m.on("clicked",j=>{rt&&O.delete(rt),X&&X.restore(),X=j,j.save(),j.setAttr({fill:"pink",stroke:"green"}),F=[m,A,D];const yt=j.getBoundingClientRect();yt&&(rt=new ye(yt),rt.setAttr({fill:"none",stroke:"#0000ff",strokeWidth:"4"}),F.push(rt))});let Q=0,W=m.shapes[Q].getTotalLength(),it=0;const B=.01;O.clear(),h=Zt(()=>{it>1&&(Q++,it=0,Q>m.shapes.length-1&&(Q=0),W=m.shapes[Q].getTotalLength()),R.ctx.clearRect();let{x:j,y:yt}=m.shapes[Q].interpolate(it);A.x=j,A.y=yt;let{x:gt,y:Z}=m.shapes[Q].getPointAtLength(it*W);return D.x=gt,D.y=Z,O.path(F),R.draw(F),it+=B,!0})})}))}},{name:"WalkMan",type:"WalkMan",onClick:()=>{c.value="WalkMan",!(!n.value||!o.value)&&(h?.(),n.value.getSVG().then(O=>{o.value.getCanvas().then(R=>{const A=new Cn({x:200,y:200,width:50,height:15,attrs:{stroke:"#666666"}}),D=new Cn({width:50,height:10,attrs:{stroke:"#666666"}}),F=new Cn({x:200,y:200,width:50,height:15,attrs:{stroke:"#666666"}}),X=new Cn({width:50,height:10,attrs:{stroke:"#666666"}});let rt=0,Q=0;function W(){Q+=.2,A.x+=rt,A.y+=Q,F.x+=rt,F.y+=Q}const it=-Math.PI/2;function B(Z,V,Kt){const te=Math.sin(Kt)*45+90,It=Math.sin(Kt+it)*45+45,ee=V.getPin();Z.degree=te,V.degree=Z.degree+It,V.x=Z.getPin().x,V.y=Z.getPin().y,V.vx=V.getPin().x-ee.x,V.vy=V.getPin().y-ee.y}function j(Z){const V=Z.getPin().y+Z.height/2;if(V>R.app.height){const Kt=V-R.app.height;A.y-=Kt,D.y-=Kt,F.y-=Kt,X.y-=Kt,rt-=Z.vx,Q-=Z.vy}}function yt(){const Z=R.app.width+200;A.x>R.app.width+100?(A.x-=Z,D.x-=Z,F.x-=Z,X.x-=Z):A.x<-100&&(A.x+=Z,D.x+=Z,F.x+=Z,X.x+=Z)}let gt=0;O.clear(),h=Zt(()=>(R.ctx.clearRect(),gt+=.06,W(),B(A,D,gt),B(F,X,gt+Math.PI),j(D),j(X),yt(),O.path([A,D,F,X]),R.draw([A,D,F,X]),!0))})}))}},{name:"俄罗斯方块",type:"RectGame",onClick:()=>{if(c.value="RectGame",!n.value||!o.value)return;h?.();function O(X){return new ye({x:Math.random()*X,y:0,width:50,height:50,attrs:{fill:Ct.random().toString()},enableDrag:!0})}const R=.2,A=[];function D(){const X=O(i);return A.push(X),X}let F=D();n.value.getSVG().then(X=>{o.value.getCanvas().then(rt=>{X.clear(),h=Zt(()=>(rt.ctx.clearRect(),X.isMouseDown||rt.isMouseDown?(X.path(A),rt.draw(A)):(F&&F.run({gravity:R}),F&&F.y+F.height>=rt.ctx.canvas.height&&(F.y=rt.ctx.canvas.height-F.height,F=D()),A.forEach(Q=>(F&&F!==Q&&F.isIntersectRect(Q)&&(F.y=Q.y-F.height,F.y>=F.height?F=D():F=null),Q)),X.path(A),rt.draw(A)),!0))})})}},{name:"喷泉",type:"PointWater",onClick:()=>{c.value="PointWater",!(!n.value||!o.value)&&(h?.(),n.value.getSVG().then(O=>{o.value.getCanvas().then(R=>{const A=[];for(let D=0;D<80;D++){const F=new Wt({x:O.app.width/2,y:O.app.height,radius:2,attrs:{fill:Ct.random().toString()}});F.vx=Math.random()*2-1,F.vy=Math.random()*-10-10,A.push(F)}O.clear(),h=Zt(()=>(A.forEach(D=>{D.run({gravity:.5}),(D.x-D.radius>O.app.width||D.x+D.radius<0||D.y-D.radius>O.app.height||D.y+D.radius<0)&&(D.x=O.app.width/2,D.y=O.app.height,D.vx=Math.random()*2-1,D.vy=Math.random()*-10-10)}),O.path(A),R.ctx.clearRect(),R.draw(A),!0))})}))}},{name:"SpringChain",type:"SpringChain",onClick:()=>{if(c.value="SpringChain",!n.value||!o.value)return;h?.();function O(D,F){const X=[];for(let rt=0;rt<3;rt++)X.push(new Wt({x:D,y:F,radius:20,attrs:{fill:Ct.random().toString()}}));return X}function R(){const D=[];for(let F=0;F<3;F++)D.push(new he({attrs:{"stroke-width":"1",stroke:"#666666"}}));return D}const A={spring:.03,friction:.9,gravity:2};n.value.getSVG().then(D=>{o.value.getCanvas().then(F=>{const X=R(),rt=O(D.app.width/2,D.app.height/2),Q=new Wt({x:0,y:0}),W=R(),it=O(F.app.width/2,F.app.height/2),B=new Wt({x:0,y:0}),j=new Me([Q,...rt]),yt=new Me([B,...it]);D.clear(),h=Zt(()=>(F.ctx.clearRect(),Q.x=D.app.mousePoint.x,Q.y=D.app.mousePoint.y,j.springChain(A),rt.forEach((gt,Z)=>{if(Z===0)X[Z].x=D.app.mousePoint.x,X[Z].y=D.app.mousePoint.y,X[Z].toX=gt.x,X[Z].toY=gt.y;else{const V=rt[Z-1];X[Z].x=V.x,X[Z].y=V.y,X[Z].toX=gt.x,X[Z].toY=gt.y}}),D.path(X),D.path(rt),B.x=F.app.mousePoint.x,B.y=F.app.mousePoint.y,yt.springChain(A),it.forEach((gt,Z)=>{if(Z===0)W[Z].x=F.app.mousePoint.x,W[Z].y=F.app.mousePoint.y,W[Z].toX=gt.x,W[Z].toY=gt.y;else{const V=it[Z-1];W[Z].x=V.x,W[Z].y=V.y,W[Z].toX=gt.x,W[Z].toY=gt.y}}),F.draw(W),F.draw(it),!0))})})}},{name:"多点弹簧",type:"PointSpringMulti",onClick:()=>{c.value="PointSpringMulti",!(!n.value||!o.value)&&(h?.(),n.value.getSVG().then(O=>{o.value.getCanvas().then(R=>{const A=[new he({attrs:{stroke:"#666666"}}),new he({attrs:{stroke:"#666666"}}),new he({attrs:{stroke:"#666666"}})],D=[];for(let X=0;X<3;X++)D.push(new Wt({x:Math.random()*O.app.width,y:Math.random()*O.app.height,radius:10,attrs:{fill:Ct.random().toString()},enableDrag:!0}));const F=new Wt({radius:20,attrs:{fill:"#ff0000"}});O.clear(),h=Zt(()=>(R.ctx.clearRect(),F.runSpringTo(D,{spring:.03}),D.forEach((X,rt)=>{A[rt].x=F.x,A[rt].y=F.y,A[rt].toX=X.x,A[rt].toY=X.y}),O.path([...A,...D,F]),R.draw([...A,...D,F]),!0))})}))}},{name:"SpringConnect",type:"SpringConnect",onClick:()=>{c.value="SpringConnect",!(!n.value||!o.value)&&(h?.(),n.value.getSVG().then(O=>{o.value.getCanvas().then(R=>{const A=[new he({attrs:{stroke:"#666666"}}),new he({attrs:{stroke:"#666666"}}),new he({attrs:{stroke:"#666666"}})],D=[];for(let X=0;X<3;X++)D.push(new Wt({x:Math.random()*O.app.width,y:Math.random()*O.app.height,radius:10,attrs:{fill:Ct.random().toString()},enableDrag:!0}));const F=new Me(D);O.clear(),h=Zt(()=>(F.springConnect({springLength:120}),A[0].x=D[0].x,A[0].y=D[0].y,A[0].toX=D[1].x,A[0].toY=D[1].y,A[1].x=D[1].x,A[1].y=D[1].y,A[1].toX=D[2].x,A[1].toY=D[2].y,A[2].x=D[2].x,A[2].y=D[2].y,A[2].toX=D[0].x,A[2].toY=D[0].y,O.path([...A,...D]),R.ctx.clearRect(),R.draw([...A,...D]),!0))})}))}},{name:"LineQuadraticBezier",type:"QuadraticBezierCurve",onClick:()=>{c.value="QuadraticBezierCurve",!(!n.value||!o.value)&&(h?.(),n.value.getSVG().then(O=>{o.value.getCanvas().then(R=>{const D=new xr({x:50,y:O.app.height-50,toX:O.app.width-50,toY:O.app.height-50,cx:O.app.mousePoint.x,cy:O.app.mousePoint.y,attrs:{stroke:"#ff0000","stroke-width":"2"},isLineThrough:!1}),F=new xr({x:50,y:O.app.height-50,toX:O.app.width-50,toY:O.app.height-50,cx:O.app.mousePoint.x,cy:O.app.mousePoint.y,attrs:{stroke:"#00ff00","stroke-width":"2"},isLineThrough:!0}),X=new xr({x:50,y:R.ctx.canvas.height-50,toX:R.ctx.canvas.width-50,toY:R.ctx.canvas.height-50,cx:R.app.mousePoint.x,cy:R.app.mousePoint.y,attrs:{stroke:"#ff0000","stroke-width":"2"},isLineThrough:!1}),rt=new xr({x:50,y:R.ctx.canvas.height-50,toX:R.ctx.canvas.width-50,toY:R.ctx.canvas.height-50,cx:R.app.mousePoint.x,cy:R.app.mousePoint.y,attrs:{stroke:"#00ff00","stroke-width":"2"},isLineThrough:!0});O.clear(),h=Zt(()=>(R.ctx.clearRect(),F.cx=D.cx=O.app.mousePoint.x,F.cy=D.cy=O.app.mousePoint.y,O.path(D),O.path(F),rt.cx=X.cx=R.app.mousePoint.x,rt.cy=X.cy=R.app.mousePoint.y,R.draw([X,rt]),!0))})}))}},{name:"PointsRandom",type:"PointsRandom",onClick:()=>{c.value="PointsRandom",!(!n.value||!o.value)&&(h?.(),n.value.getSVG().then(O=>{o.value.getCanvas().then(R=>{O.clear(),R.ctx.clearRect();const A=[];for(let X=0;X<10;X++)A.push({x:Math.random()*O.app.width,y:Math.random()*O.app.height});const D=A.map((X,rt)=>new ye({x:X.x,y:X.y,width:6,height:6,attrs:{fill:rt==0?"#ff0000":rt==A.length-1?"#00ff00":"#666666"}})),F=new ju({points:A,attrs:{stroke:"#ff0000"},isStraight:!0});F.isStraight=!0,O.path(D),O.path(F),F.isStraight=!1,R.draw([...D,F])})}))}},{name:"扇形",type:"Sector",onClick:()=>{if(c.value="Sector",!n.value||!o.value)return;h?.();const O=new Hu({x:300,y:100,radius:100,startDegree:80,endDegree:200,enableDrag:!0,text:"些许文字",defaultShowText:!1,tip:"提示文字...",attrs:{fill:"pink",stroke:"#666666"}}),R=new Hu({x:300,y:100,radius:100,startDegree:80,endDegree:200,enableDrag:!0,text:"些许文字",defaultShowText:!1,tip:"提示文字...",attrs:{fill:"pink",stroke:"#666666"}});n.value.getSVG().then(A=>{o.value.getCanvas().then(D=>{A.clear(),h=Zt(()=>(D.ctx.clearRect(),A.path(O),D.draw(R),!0))})})}},{name:"strokeDash",type:"StrokeDash",onClick:()=>{c.value="StrokeDash",!(!n.value||!o.value)&&(h?.(),f.setAttr({stroke:"#666666",strokeWidth:"4",strokeDasharray:`${S.value} ${S.value}`,strokeDashoffset:`${_.value}`}),n.value.getSVG().then(O=>{o.value.getCanvas().then(R=>{O.clear(),h=Zt(()=>(R.ctx.clearRect(),O.path(f),R.draw(f),!0))})}))}},{name:"strokeDashTween",type:"strokeDashTween",onClick:()=>{c.value="strokeDashTween",!(!n.value||!o.value)&&(h?.(),f.setAttr({stroke:"#ff0000",strokeWidth:"4"}),n.value.getSVG().then(O=>{o.value.getCanvas().then(R=>{O.clear(),f.strokeDashTween(4e3,{easeFunction:e.easeFunction,onUpdate:()=>{O.path(f),R.ctx.clearRect(),R.draw(f)}})})}))}},{name:"strokeDashTweenParallel",type:"strokeDashTweenParallel",onClick:()=>{c.value="strokeDashTweenParallel",!(!n.value||!o.value)&&(h?.(),n.value.getSVG().then(O=>{o.value.getCanvas().then(R=>{O.clear(),R.ctx.clearRect(),m.setAttrs({stroke:"none"}),m.strokeDashTween(4e3,{type:"parallel",easeFunction:e.easeFunction,onGroupStart:()=>{m.setAttrs({stroke:Ct.random().toString()})},onGroupUpdate:()=>{O.path(m),R.ctx.clearRect(),R.draw(m)}})})}))}},{name:"strokeDashTweenSequence",type:"strokeDashTweenSequence",onClick:()=>{c.value="strokeDashTweenSequence",!(!n.value||!o.value)&&(h?.(),n.value.getSVG().then(O=>{o.value.getCanvas().then(R=>{O.clear(),R.ctx.clearRect(),m.setAttrs({stroke:"none"}),m.strokeDashTween(1e3,{type:"sequence",easeFunction:e.easeFunction,onGroupStart:()=>{m.setAttrs({stroke:Ct.random().toString()})},onGroupUpdate:()=>{O.path(m),R.ctx.clearRect(),R.draw(m)}})})}))}},{name:"线条动画",type:"InterpolatePath",onClick:()=>{if(c.value="InterpolatePath",!n.value||!o.value)return;h?.();const O=new wr({x:200,y:200,scalar:1,attrs:{stroke:"#5a82f0"}}),R=new ye({width:100,height:60,x:150,y:170,borderRadius:10,attrs:{stroke:"#ACFFAD"}}),A=new xa({x:200,y:200,scalar:3,attrs:{stroke:"rgb(200,80,80)"}}),D=Me.generatePointsShape(100,100,100,3);D.x=100,D.y=100,D.setAttr({stroke:"#666666"});const F=Me.generatePointsShape(100,100,100,6);F.x=50,F.y=50,F.setAttr({stroke:"#7EEDFF"});const X=new Me([D,F,O,R,A]);n.value.getSVG().then(rt=>{o.value.getCanvas().then(Q=>{rt.clear(),X.polymorphTween(6e3,{draw:W=>{rt.path(W),Q.ctx.clearRect(),Q.draw(W)}})})})}},{name:"线条动画Group",type:"InterpolatePathGroup",onClick:()=>{if(c.value="InterpolatePathGroup",!n.value||!o.value)return;h?.();const O=new wr({x:200,y:200,scalar:1,attrs:{stroke:"#5a82f0"}}),R=new ye({width:100,height:60,x:150,y:170,borderRadius:10,attrs:{stroke:"#42B79E"}}),A=new xa({x:200,y:200,scalar:3,attrs:{stroke:"rgb(200,80,80)"}}),D=new Me([O,R,m,A]);n.value.getSVG().then(F=>{o.value.getCanvas().then(X=>{F.clear(),D.polymorphTween(6e3,{draw:rt=>{F.path(rt),X.ctx.clearRect(),X.draw(rt)}})})})}},{name:"AnimateToTweenCSS",type:"AnimateToTweenCSS",onClick:()=>{c.value="AnimateToTweenCSS",!(!n.value||!o.value)&&(h?.(),et.setStyle(l.value,{transform:""}))}},{name:"Rosetta",type:"Rosetta",onClick:()=>{c.value="Rosetta",!(!n.value||!o.value)&&(h?.(),n.value.getSVG().then(O=>{o.value.getCanvas().then(R=>{const A=Me.generateRosettaShape(120,120,55,35,6);A.setAttr({stroke:"none",fill:"none"});const D=new ye({x:0,y:0,width:20,height:10,attrs:{stroke:"none",fill:"green"}}),F=new Ht({attrs:{stroke:"red","stroke-width":"3",fill:"none"}});O.clear(),R.ctx.clearRect();const X=new qe({frameDuration:15e3});X.addTween({progress:0},{progress:1},{onUpdate:rt=>{const Q=A.trailPath(F,rt.progress);D.x=Q.x,D.y=Q.y,D.degree=Q.alpha+90,O.path([F,D]),R.ctx.clearRect(),R.draw([F,D])}}),X.play()})}))}},{name:"Confetti",type:"Confetti",onClick:()=>{c.value="Confetti",!(!n.value||!o.value)&&(h?.(),n.value.getSVG().then(O=>{o.value.getCanvas().then(R=>{const A=new Vg(R.app.width,R.app.height,{angle:jt(55,125),spread:jt(50,70),particleCount:jt(50,100)});O.clear(),h=Zt(()=>(R.ctx.clearRect(),O.path(A),R.draw(A),!0))})}))}}],x=[{type:"translateTo",onClick:()=>d("translateTo")},{type:"translateXTo",onClick:()=>d("translateXTo")},{type:"translateYTo",onClick:()=>d("translateYTo")},{type:"translateZTo",onClick:()=>d("translateZTo")},{type:"translate3dTo",onClick:()=>d("translate3dTo")},{type:"rotateTo",onClick:()=>d("rotateTo")},{type:"rotateXTo",onClick:()=>d("rotateXTo")},{type:"rotateYTo",onClick:()=>d("rotateYTo")},{type:"rotateZTo",onClick:()=>d("rotateZTo")},{type:"rotate3dTo",onClick:()=>d("rotate3dTo")},{type:"scaleTo",onClick:()=>d("scaleTo")},{type:"scaleXTo",onClick:()=>d("scaleXTo")},{type:"scaleYTo",onClick:()=>d("scaleYTo")},{type:"scaleZTo",onClick:()=>d("scaleZTo")},{type:"scale3dTo",onClick:()=>d("scale3dTo")},{type:"skewTo",onClick:()=>d("skewTo")},{type:"skewXTo",onClick:()=>d("skewXTo")},{type:"skewYTo",onClick:()=>d("skewYTo")},{type:"perspective",onClick:()=>d("perspective")}];let b;function z(){b||(b=new ys(a.value));const O=50,R=0,A=0,D=0,F=b.width-O,X=b.height-O,rt=b.height-O,Q=b.width/2-O/2,W=b.height/2-O/2,it={},B={};switch(u.value){case"translateTo":Object.assign(it,{translateTo:[R,A]}),Object.assign(B,{translateTo:[F,X]});break;case"translateXTo":Object.assign(it,{translateXTo:R}),Object.assign(B,{translateXTo:F});break;case"translateYTo":Object.assign(it,{translateYTo:A}),Object.assign(B,{translateYTo:X});break;case"translateZTo":Object.assign(it,{translateTo:[Q,W],translateZTo:D}),Object.assign(B,{translateTo:[Q,W],translateZTo:rt});break;case"translate3dTo":Object.assign(it,{translate3dTo:[Q-50,W-50,D]}),Object.assign(B,{translate3dTo:[Q+50,W+50,rt]});break;case"rotateTo":Object.assign(it,{translateTo:[Q,W],rotateTo:0}),Object.assign(B,{translateTo:[Q,W],rotateTo:360});break;case"rotateXTo":Object.assign(it,{translateTo:[Q,W],rotateXTo:0}),Object.assign(B,{translateTo:[Q,W],rotateXTo:180});break;case"rotateYTo":Object.assign(it,{translateTo:[Q,W],rotateYTo:0}),Object.assign(B,{translateTo:[Q,W],rotateYTo:180});break;case"rotateZTo":Object.assign(it,{translateTo:[Q,W],rotateZTo:0}),Object.assign(B,{translateTo:[Q,W],rotateZTo:360});break;case"rotate3dTo":Object.assign(it,{translateTo:[Q,W],rotate3dTo:[0,0,0]}),Object.assign(B,{translateTo:[Q,W],rotate3dTo:[360,360,360]});break;case"scaleTo":Object.assign(it,{translateTo:[Q,W],scaleTo:1}),Object.assign(B,{translateTo:[Q,W],scaleTo:3});break;case"scaleXTo":Object.assign(it,{translateTo:[Q,W],scaleXTo:1}),Object.assign(B,{translateTo:[Q,W],scaleXTo:3});break;case"scaleYTo":Object.assign(it,{translateTo:[Q,W],scaleYTo:1}),Object.assign(B,{translateTo:[Q,W],scaleYTo:3});break;case"scaleZTo":Object.assign(it,{translateTo:[Q,W],scaleZTo:1}),Object.assign(B,{translateTo:[Q,W],scaleZTo:3});break;case"scale3dTo":Object.assign(it,{translateTo:[Q,W],scale3dTo:[1,1,1]}),Object.assign(B,{translateTo:[Q,W],scale3dTo:[3,3,3]});break;case"skewTo":Object.assign(it,{translateTo:[Q,W],skewTo:0}),Object.assign(B,{translateTo:[Q,W],skewTo:30});break;case"skewXTo":Object.assign(it,{translateTo:[Q,W],skewXTo:0}),Object.assign(B,{translateTo:[Q,W],skewXTo:30});break;case"skewYTo":Object.assign(it,{translateTo:[Q,W],skewYTo:0}),Object.assign(B,{translateTo:[Q,W],skewYTo:30});break;case"perspective":Object.assign(it,{translateTo:[Q,W],perspective:0}),Object.assign(B,{translateTo:[Q,W],perspective:1e3});break}const j=new qe({frameDuration:2e3});j.addTween(it,B,{easeFunction:e.easeFunction,onUpdate:yt=>{et.setStyle(l.value,et.convertAttrs(l.value,yt))}}),j.play()}function ut(){return new Promise(O=>{o.value.getCanvas().then(R=>{ue.downloadFromSVGString(R.ctx.toRawSVG().raw,"CanvasToSVG").then(()=>{setTimeout(()=>{O()},3e3)})})})}return le(()=>{}),t({}),(O,R)=>(L(),H($t,null,[P("div",j1,[ft(ve,{asyncClick:ut},{default:Pt(()=>[Jt(" downloadFromCanvasToSVG ")]),_:1})]),P("div",U1,[(L(),H($t,null,ge(p,A=>ft(ve,{key:A.type,item:A,onClick:A.onClick,stylePattern:c.value==A.type?"fullfilled":"outline"},{default:Pt(()=>[Jt(wt(A.name),1)]),_:2},1032,["item","onClick","stylePattern"])),64))]),Qs(P("div",null," 当前缓动函数:"+wt(e.easeName),513),[[Ms,c.value=="AnimateToTweenCSS"]]),Qs(P("div",H1,[(L(),H($t,null,ge(x,A=>ft(ve,{key:A.type,item:A,onClick:A.onClick,stylePattern:u.value==A.type?"fullfilled":"outline"},{default:Pt(()=>[Jt(wt(A.type),1)]),_:2},1032,["item","onClick","stylePattern"])),64))],512),[[Ms,c.value=="AnimateToTweenCSS"]]),Qs(P("div",W1,[P("div",q1,[P("div",null,"stroke-dasharray: "+wt(S.value)+","+wt(S.value),1),ft(Vs,{max:988,defaultValue:S.value,onChange:C},null,8,["defaultValue"])]),P("div",Z1,[P("div",null,"stroke-dashoffset: "+wt(_.value),1),ft(Vs,{max:988,defaultValue:_.value,onChange:y},null,8,["defaultValue"])])],512),[[Ms,c.value=="StrokeDash"]]),Qs(P("div",K1,[ft(eh,{ref_key:"svgRef",ref:n,bgColor:"#ffffff"},null,512)],512),[[Ms,c.value!=="AnimateToTweenCSS"]]),Qs(P("div",Q1,[ft(rs,{ref_key:"canvasRef",ref:o,bgColor:"#333333","enable-custom-context":!1},null,512)],512),[[Ms,c.value!=="AnimateToTweenCSS"]]),Qs(P("div",{ref_key:"tweenCSSContainerRef",ref:a,style:{height:"400px"},class:"css-area"},[P("div",{ref_key:"divTweenTargetRef",ref:l,class:"tween-css-target"},null,512)],512),[[Ms,c.value=="AnimateToTweenCSS"]])],64))}}),Ab="",tv=mt(J1,[["__scopeId","data-v-34f2daf6"]]),ev={class:"svg"},sv=[Ef('<defs data-v-7ee5c19e><mask id="mask" maskContentUnits="objectBoundingBox" data-v-7ee5c19e><ellipse cx=".5" cy=".5" rx=".48" ry=".28" fill="black" data-v-7ee5c19e></ellipse><rect x=".2" y="0" width=".6" height="1" rx=".1" ry=".1" fill="black" data-v-7ee5c19e></rect><ellipse cx=".5" cy=".5" rx=".4" ry=".2" fill="white" data-v-7ee5c19e></ellipse><rect x=".3" y=".1" width=".4" height=".8" rx=".1" ry=".1" fill="white" data-v-7ee5c19e></rect></mask></defs>',1)],nv=ct({customOptions:{},inheritAttrs:!0,__name:"SVGMaskNapkin",setup(s){return(t,e)=>(L(),H("svg",ev,sv))}}),Nb="",Ma=mt(nv,[["__scopeId","data-v-7ee5c19e"]]),iv={class:"loading-1"},rv=ct({__name:"Loading1",props:{color:{default:Ot.colorPrimary}},setup(s){const e={backgroundColor:s.color};return(n,i)=>(L(),H("div",iv,[P("div",{class:"rect1",style:e}),P("div",{class:"rect2",style:e}),P("div",{class:"rect3",style:e}),P("div",{class:"rect4",style:e}),P("div",{class:"rect5",style:e})]))}}),Lb="",ov=mt(rv,[["__scopeId","data-v-48b10c9a"]]),av={class:"loading-2"},lv=ct({__name:"Loading2",props:{color:{default:Ot.colorPrimary}},setup(s){const e={backgroundColor:s.color};return(n,i)=>(L(),H("div",av,[P("div",{class:"dot1",style:e}),P("div",{class:"dot2",style:e})]))}}),Fb="",cv=mt(lv,[["__scopeId","data-v-79f9930f"]]),uv=ct({__name:"Loading3",props:{fromColor:{default:Ot.colorPrimary},toColor:{default:Ot.colorRed}},setup(s){const t=s,e=`
99
+ )`}])},[ft(kt,{type:"full",onReady:_},{default:Pt(()=>[C1,P("div",{class:"field-knob",style:Y([{position:"absolute",width:"12px",height:"12px","box-shadow":"rgba(0, 0, 0, 0.5) 0px 1px 3px","border-radius":"12px","z-index":"1",cursor:"pointer","box-sizing":"border-box"},{left:100*m.value-6+"px",top:100*(1-f.value)-6+"px",backgroundColor:l.value,border:`2px solid ${c.value}`}])},null,4)]),_:1})],4),P("div",S1,[ft(kt,{type:"full",onReady:S},{default:Pt(()=>[P("div",{class:"hue-knob",style:Y([{position:"absolute",width:"15px",height:"2px","z-index":"1","box-sizing":"border-box"},{marginTop:(1-d.value/360)*100+"px",borderRight:"4px solid "+h.value}])},null,4)]),_:1})])])]),_:3},512))}}),Tb="",E1={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!0},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},mounted(){this.$nextTick(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const s=document.createElement("object");this._resizeObject=s,s.setAttribute("aria-hidden","true"),s.setAttribute("tabindex",-1),s.onload=this.addResizeHandlers,s.type="text/html",sa&&this.$el.appendChild(s),s.data="about:blank",sa||this.$el.appendChild(s)},beforeDestroy(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("resize",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!sa&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}},k1={class:"resize-observer",tabindex:"-1"};function P1(s,t,e,n,i,r){return L(),H("div",k1)}const O1=mt(E1,[["render",P1],["__scopeId","data-v-d5987ae1"]]),I1=ct({__name:"MapTianditu",props:{mapKey:{default:"8261564c2f1435b76dc5991adad737e6"},mapContainerID:{default:"mapTiandituDiv"},mapWidth:{},mapHeight:{},mapZoom:{default:18},mapCenterLng:{default:120.619585},mapCenterLat:{default:31.299379}},emits:["click"],setup(s,{expose:t,emit:e}){const n=s,i=M(n.mapWidth),r=M(n.mapHeight);let o;const a=M();return Mt(a,()=>{a.value&&(o=new ys(a.value,!1),o.on("resize",(l,c)=>{i.value=l+"px",r.value=c+"px"}),o.start())}),tn(()=>{et.loadScript(`http://api.tianditu.gov.cn/api?v=4.0&tk=${n.mapKey}`,()=>{new Yg(n.mapContainerID,n.mapCenterLng,n.mapCenterLat,n.mapZoom)},l=>{console.log("error",l)})}),le(()=>{o.destroy()}),t({}),(l,c)=>(L(),H("div",So({class:"mapDivWrap",ref_key:"mapWrap",ref:a},l.$attrs),[Et(l.$slots,"default",{width:i.value,height:r.value},void 0,!0)],16))}}),Eb="",D1=mt(I1,[["__scopeId","data-v-e5da8598"]]);var di=function(){var s=0,t=document.createElement("div");t.style.cssText="position:fixed;top:0;right:0;cursor:pointer;opacity:0.9;z-index:10000",t.addEventListener("click",function(u){u.preventDefault(),n(++s%t.children.length)},!1);function e(u){return t.appendChild(u.dom),u}function n(u){for(var h=0;h<t.children.length;h++)t.children[h].style.display=h===u?"block":"none";s=u}var i=(performance||Date).now(),r=i,o=0,a=e(new di.Panel("FPS","#0ff","#002")),l=e(new di.Panel("MS","#0f0","#020"));if(self.performance&&self.performance.memory)var c=e(new di.Panel("MB","#f08","#201"));return n(0),{REVISION:16,dom:t,addPanel:e,showPanel:n,begin:function(){i=(performance||Date).now()},end:function(){o++;var u=(performance||Date).now();if(l.update(u-i,200),u>r+1e3&&(a.update(o*1e3/(u-r),100),r=u,o=0,c)){var h=performance.memory;c.update(h.usedJSHeapSize/1048576,h.jsHeapSizeLimit/1048576)}return u},update:function(){i=this.end()},domElement:t,setMode:n}};di.Panel=function(s,t,e){var n=1/0,i=0,r=Math.round,o=r(window.devicePixelRatio||1),a=80*o,l=48*o,c=3*o,u=2*o,h=3*o,d=15*o,m=74*o,f=30*o,E=document.createElement("canvas");E.width=a,E.height=l,E.style.cssText="width:80px;height:48px";var S=E.getContext("2d");return S.font="bold "+9*o+"px Helvetica,Arial,sans-serif",S.textBaseline="top",S.fillStyle=e,S.fillRect(0,0,a,l),S.fillStyle=t,S.fillText(s,c,u),S.fillRect(h,d,m,f),S.fillStyle=e,S.globalAlpha=.9,S.fillRect(h,d,m,f),{dom:E,update:function(_,C){n=Math.min(n,_),i=Math.max(i,_),S.fillStyle=e,S.globalAlpha=1,S.fillRect(0,0,a,d),S.fillStyle=t,S.fillText(r(_)+" "+s+" ("+r(n)+"-"+r(i)+")",c,u),S.drawImage(E,h+o,d,m-o,f,h,d,m-o,f),S.fillRect(h+m-o,d,o,f),S.fillStyle=e,S.globalAlpha=.9,S.fillRect(h+m-o,d,o,r((1-_/C)*f))}}};const R1=Object.assign({customOptions:{},inheritAttrs:!0},{__name:"FPSStats",setup(s,{expose:t}){const e=M();return tn(()=>{const n=new di;n.domElement.style.margin="1em",e.value.appendChild(n.domElement),Zt(()=>(n.update(),!0))}),t({}),(n,i)=>(L(),H("div",{ref_key:"containerRef",ref:e},null,512))}}),A1={class:"ease-graph"},M1=ct({customOptions:{Button:ve,Canvas:rs},inheritAttrs:!0,__name:"EaseGraphDisplay",props:{easeName:{},easeFunction:{},canvasWidth:{default:180},canvasHeight:{default:100},graphHorizontalGap:{default:5},graphVerticalGap:{default:20},easeDuration:{default:2e3},isSelected:{type:Boolean,default:!1}},emits:["onMounted","onStart","onCompleted","onSelected"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=M();let o;Mt(r,()=>{r.value&&r.value.getCanvas().then(u=>{o=u,i("onMounted",n.easeName),o.app.on("showInParent",l)})});let a=!1;const l=()=>{if(!o||a)return;a=!0,i("onStart",n.easeName),o.ctx.fillStyle="rgb(250,250,250)",o.ctx.fillRect(0,0,n.canvasWidth,n.canvasHeight),o.ctx.lineWidth=.5,o.ctx.strokeStyle="rgb(230,230,230)",o.ctx.beginPath(),o.ctx.moveTo(0,n.graphVerticalGap),o.ctx.lineTo(n.canvasWidth,n.graphVerticalGap),o.ctx.moveTo(0,n.canvasHeight-n.graphVerticalGap),o.ctx.lineTo(n.canvasWidth,n.canvasHeight-n.graphVerticalGap),o.ctx.closePath(),o.ctx.stroke(),o.ctx.lineWidth=2,o.ctx.strokeStyle="rgb(255,127,127)";const u={x:n.graphHorizontalGap,y:n.canvasHeight-n.graphVerticalGap},h={x:n.graphHorizontalGap,y:n.canvasHeight-n.graphVerticalGap},d=()=>{o.ctx.beginPath(),o.ctx.moveTo(h.x,h.y),o.ctx.lineTo(u.x,u.y),o.ctx.closePath(),o.ctx.stroke(),h.x=u.x,h.y=u.y},m=new qe({frameDuration:n.easeDuration});m.addTween(u,{x:n.canvasWidth-n.graphHorizontalGap},{frames:1,delay:0,easeFunction:bt.Easing.Linear.None,onUpdate:f=>{u.x=f.x},onComplete:()=>{}}),m.addTween(u,{y:n.graphVerticalGap},{frames:1,delay:0,easeFunction:n.easeFunction,onUpdate:f=>{u.y=f.y,d()},onComplete:()=>{i("onCompleted",n.easeName),a=!1}}),m.play()},c=()=>{i("onSelected",n.easeName,n.easeFunction)};return le(()=>{o.app.off("showInParent",l)}),t({start:l}),(u,h)=>(L(),H("div",A1,[P("div",null,"缓动:"+wt(u.easeName),1),P("div",null,[P("div",null,[ft(ve,{stylePattern:"outline",height:"32px",padding:"10px",onClick:l},{default:Pt(()=>[Qt(" 开始 ")]),_:1})]),P("div",null,[ft(ve,{stylePattern:n.isSelected?"fullfilled":"outline",height:"32px",padding:"10px",onClick:c},{default:Pt(()=>[Qt(" 选择 ")]),_:1},8,["stylePattern"])])]),P("div",{style:Y({width:u.canvasWidth+"px",height:u.canvasHeight+"px"})},[ft(rs,{ref_key:"canvasRef",ref:r,bgColor:"#ffffff"},null,512)],4)]))}}),Pb="",Ra=mt(M1,[["__scopeId","data-v-e8afe7ba"]]),N1=2e3,L1=ct({customOptions:{EaseGraphDisplay:Ra},inheritAttrs:!0,__name:"EaseGroupGraphDisplay",props:{easeList:{default:()=>[{easeName:"Linear",easeFunction:bt.Easing.Linear.None},{easeName:"gap"},{easeName:"QuadraticIn",easeFunction:bt.Easing.Quadratic.In},{easeName:"QuadraticOut",easeFunction:bt.Easing.Quadratic.Out},{easeName:"QuadraticInOut",easeFunction:bt.Easing.Quadratic.InOut},{easeName:"gap"},{easeName:"CubicIn",easeFunction:bt.Easing.Cubic.In},{easeName:"CubicOut",easeFunction:bt.Easing.Cubic.Out},{easeName:"CubicInOut",easeFunction:bt.Easing.Cubic.InOut},{easeName:"gap"},{easeName:"QuarticIn",easeFunction:bt.Easing.Quartic.In},{easeName:"QuarticOut",easeFunction:bt.Easing.Quartic.Out},{easeName:"QuarticInOut",easeFunction:bt.Easing.Quartic.InOut},{easeName:"gap"},{easeName:"QuinticIn",easeFunction:bt.Easing.Quintic.In},{easeName:"QuinticOut",easeFunction:bt.Easing.Quintic.Out},{easeName:"QuinticInOut",easeFunction:bt.Easing.Quintic.InOut},{easeName:"gap"},{easeName:"SinusoidalIn",easeFunction:bt.Easing.Sinusoidal.In},{easeName:"SinusoidalOut",easeFunction:bt.Easing.Sinusoidal.Out},{easeName:"SinusoidalInOut",easeFunction:bt.Easing.Sinusoidal.InOut},{easeName:"gap"},{easeName:"ExponentialIn",easeFunction:bt.Easing.Exponential.In},{easeName:"ExponentialOut",easeFunction:bt.Easing.Exponential.Out},{easeName:"ExponentialInOut",easeFunction:bt.Easing.Exponential.InOut},{easeName:"gap"},{easeName:"CircularIn",easeFunction:bt.Easing.Circular.In},{easeName:"CircularOut",easeFunction:bt.Easing.Circular.Out},{easeName:"CircularInOut",easeFunction:bt.Easing.Circular.InOut},{easeName:"gap"},{easeName:"ElasticIn",easeFunction:bt.Easing.Elastic.In},{easeName:"ElasticOut",easeFunction:bt.Easing.Elastic.Out},{easeName:"ElasticInOut",easeFunction:bt.Easing.Elastic.InOut},{easeName:"gap"},{easeName:"BackIn",easeFunction:bt.Easing.Back.In},{easeName:"BackOut",easeFunction:bt.Easing.Back.Out},{easeName:"BackInOut",easeFunction:bt.Easing.Back.InOut},{easeName:"gap"},{easeName:"BounceIn",easeFunction:bt.Easing.Bounce.In},{easeName:"BounceOut",easeFunction:bt.Easing.Bounce.Out},{easeName:"BounceInOut",easeFunction:bt.Easing.Bounce.InOut},{easeName:"gap"},{easeName:"generatePow(10)In",easeFunction:bt.Easing.generatePow(10).In},{easeName:"generatePow(10)Out",easeFunction:bt.Easing.generatePow(10).Out},{easeName:"generatePow(10)InOut",easeFunction:bt.Easing.generatePow(10).InOut},{easeName:"gap"},{easeName:"4 steps",easeFunction:bt.Easing.createStep(4)},{easeName:"8 steps",easeFunction:bt.Easing.createStep(8)},{easeName:"12 steps",easeFunction:bt.Easing.createStep(12)},{easeName:"16 steps",easeFunction:bt.Easing.createStep(16)},{easeName:"gap"},{easeName:"Noisy Exponential.InOut",easeFunction:bt.Easing.createNoisyEasing(bt.Easing.Exponential.InOut,.1)},{easeName:"Noisy Elastic.InOut",easeFunction:bt.Easing.createNoisyEasing(bt.Easing.Elastic.InOut,.2)},{easeName:"Noisy Circular.InOut",easeFunction:bt.Easing.createNoisyEasing(bt.Easing.Circular.InOut,.1)},{easeName:"swing",easeFunction:bt.Easing.swing},{easeName:"causeSeizures",easeFunction:bt.Easing.causeSeizures}]}},emits:["selectedEaseFunction"],setup(s,{expose:t,emit:e}){const n=s,i=e,r={};function o(d,m){d&&(r[m]={el:d})}const a=new Qo(10);function l(d){a.addTask(()=>(r[d].el.start(),new Promise(m=>{r[d].resolve=m})))}function c(d){r[d].resolve?.()}const u=M("Linear");function h(d,m){u.value=d,i("selectedEaseFunction",d,m)}return h("Linear",bt.Easing.Linear.None),t({}),(d,m)=>(L(),H("div",null,[(L(!0),H($t,null,ge(n.easeList,f=>(L(),H("div",{key:f.easeName,class:"ease-graph-wrap"},[f.easeFunction?(L(),zt(Ra,{key:0,easeName:f.easeName,easeFunction:f.easeFunction,easeDuration:N1,isSelected:u.value==f.easeName,onOnMounted:l,onOnCompleted:c,onOnSelected:h,ref_for:!0,ref:E=>o(E,f.easeName)},null,8,["easeName","easeFunction","isSelected"])):Bt("",!0)]))),128))]))}}),Ob="",F1=mt(L1,[["__scopeId","data-v-fa7ba01d"]]),$1={class:"interpolation-graph"},Ju=1/6,th=5/6,V1=ct({customOptions:{Button:ve,Canvas:rs},inheritAttrs:!0,__name:"InterpolationGraphDisplay",props:{interpolationName:{},interpolationFunction:{},canvasWidth:{default:240},canvasHeight:{default:160},interpolationDuration:{default:2e3}},emits:["onMounted","onStart","onCompleted"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=M();let o;Mt(r,()=>{r.value&&r.value.getCanvas().then(E=>{o=E,i("onMounted",n.interpolationName),o.app.on("showInParent",f)})});const a=n.canvasWidth*Ju,l=n.canvasHeight/2,c=[n.canvasWidth*th,n.canvasWidth/2],u=[n.canvasHeight*Ju,n.canvasHeight*th],h=[...c,a],d=[...u,l];let m=!1;const f=()=>{if(!o||m)return;m=!0,i("onStart",n.interpolationName),o.ctx.fillStyle="rgb(250,250,250)",o.ctx.fillRect(0,0,n.canvasWidth,n.canvasHeight),o.ctx.fillStyle="rgb(200,200,200)",o.ctx.fillRect(a-3,l-3,6,6),o.ctx.fillRect(c[c.length-1]-3,u[u.length-1]-3,6,6);for(var E=0;E<c.length;E++)o.ctx.fillRect(c[E]-2,u[E]-2,4,4);const S=new qe({frameDuration:n.interpolationDuration});S.addTween({x:a,y:l,old:{x:a,y:l}},{x:c,y:u},{frames:1,delay:0,easeFunction:bt.Easing.Linear.None,interpolationFunction:n.interpolationFunction,onUpdate:_=>{o.ctx.lineWidth=2,o.ctx.strokeStyle="rgba(255,127,127,0.9)",o.ctx.beginPath(),o.ctx.moveTo(_.old.x,_.old.y),o.ctx.lineTo(_.x,_.y),o.ctx.closePath(),o.ctx.stroke(),_.old.x=_.x,_.old.y=_.y},onComplete:()=>{}}),S.addTween({x:a,y:l,old:{x:a,y:l}},{x:h,y:d},{frames:1,delay:0,easeFunction:bt.Easing.Linear.None,interpolationFunction:n.interpolationFunction,onUpdate:_=>{o.ctx.lineWidth=2,o.ctx.strokeStyle="rgba(255,127,127,0.5)",o.ctx.beginPath(),o.ctx.moveTo(_.old.x,_.old.y),o.ctx.lineTo(_.x,_.y),o.ctx.closePath(),o.ctx.stroke(),_.old.x=_.x,_.old.y=_.y},onComplete:()=>{i("onCompleted",n.interpolationName),m=!1}}),S.play()};return le(()=>{o.app.off("showInParent",f)}),t({start:f}),(E,S)=>(L(),H("div",$1,[P("div",null,[Qt(" 插值:"+wt(E.interpolationName)+" ",1),ft(ve,{stylePattern:"outline",height:"32px",onClick:f},{default:Pt(()=>[Qt(" 开始 ")]),_:1})]),P("div",{style:Y({width:E.canvasWidth+"px",height:E.canvasHeight+"px"})},[ft(rs,{ref_key:"canvasRef",ref:r,bgColor:"#ffffff"},null,512)],4)]))}}),Ib="",Aa=mt(V1,[["__scopeId","data-v-17bd4dde"]]),Y1=2e3,z1=ct({customOptions:{InterpolationGraphDisplay:Aa},inheritAttrs:!0,__name:"InterpolationGroupGraphDisplay",props:{interpolationList:{default:()=>[{interpolationName:"Linear",interpolationFunction:bt.Interpolation.Linear},{interpolationName:"Bezier",interpolationFunction:bt.Interpolation.Bezier},{interpolationName:"CatmullRom",interpolationFunction:bt.Interpolation.CatmullRom}]}},setup(s,{expose:t,emit:e}){const n=s,i={};function r(c,u){c&&(i[u]={el:c})}const o=new Qo(1);function a(c){o.addTask(()=>(i[c].el.start(),new Promise(u=>{i[c].resolve=u})))}function l(c){i[c].resolve?.()}return t({}),(c,u)=>(L(),H("div",null,[(L(!0),H($t,null,ge(n.interpolationList,h=>(L(),H("div",{key:h.interpolationName,class:"interpolation-graph-wrap"},[ft(Aa,{interpolationName:h.interpolationName,interpolationFunction:h.interpolationFunction,easeDuration:Y1,onOnMounted:a,onOnCompleted:l,ref_for:!0,ref:d=>r(d,h.interpolationName)},null,8,["interpolationName","interpolationFunction"])]))),128))]))}}),Db="",B1=mt(z1,[["__scopeId","data-v-6e8312e3"]]),G1=ct({__name:"SVG",props:{bgColor:{default:"rgba(255,255,255,0)"}},emits:["ready","resize"],setup(s,{expose:t,emit:e}){const n=s,i=e;let r,o,a;const l=M();Mt(l,()=>{r||!l.value||(r=new ys(l.value,!1),r.on("resize",(u,h)=>{i("resize",u,h),o=new Pg(r),a?.(o),i("ready",o)}),r.start())});function c(){return new Promise(u=>{if(o)return u(o);a=u})}return le(()=>{r?.destroy()}),t({getSVGElement:()=>l.value,getSVG:c}),(u,h)=>(L(),H("div",{class:"svg",ref_key:"svgRef",ref:l,style:Y({backgroundColor:n.bgColor})},null,4))}}),Rb="",eh=mt(G1,[["__scopeId","data-v-132e642b"]]),X1='<svg width="512" height="512" xmlns="http://www.w3.org/2000/svg"><g fill-rule="evenodd"><path d="M405.614 190.524c17.843 0 32.315-14.472 32.315-32.329s-14.472-32.329-32.315-32.329c-17.87 0-32.342 14.472-32.342 32.33 0 17.856 14.471 32.328 32.342 32.328zm21.479 7.867c-.528-.333-1.11-.569-1.665-.805a37.223 37.223 0 0 0-11.78-5.189l-8.034 8.103-7.811-8.2c-.028 0-.056.014-.084.014-4.135.985-8.2 2.747-11.821 5.133-.639.264-1.277.555-1.901.93-25.1 15.387-39.502 27.57-43.956 98.79-.43 6.924 4.842 12.876 11.738 13.306.278.014.541.028.805.028 6.577 0 12.099-5.12 12.529-11.766 1.512-24.045 3.927-39.627 7.437-50.38v43.47c0 3.386.652 6.535 1.804 9.421-.083.666-.167 1.319-.167 1.998l.028 120.172c0 8.186 6.618 14.832 14.819 14.832 8.2 0 14.832-6.646 14.832-14.832V320.283c.583.028 1.18.07 1.776.07.097 0 .222-.015.333-.015v103.078c0 8.2 6.632 14.832 14.832 14.832 8.2 0 14.833-6.632 14.833-14.832l.014-119.422c1.942-3.608 3.08-7.687 3.08-12.155v-43.11c3.427 10.74 5.827 26.238 7.312 50.02.416 6.646 5.952 11.766 12.515 11.766.25 0 .527 0 .791-.028 6.91-.43 12.168-6.396 11.752-13.306-4.454-71.234-18.87-83.403-43.97-98.79h-.041zm-21.41 66.087h-.152l-7.798-10.67 7.798-52.115h.152l7.798 52.115-7.798 10.67zM63.235 217.927c0 12.682 10.267 22.95 22.963 22.95 12.668 0 22.935-10.282 22.935-22.95s-10.281-22.95-22.935-22.95c-12.696 0-22.963 10.282-22.963 22.95zm38.211 28.527c-.374-.222-.79-.402-1.179-.569a26.82 26.82 0 0 0-8.367-3.69l-5.702 5.757-5.564-5.827c-.014 0-.042.014-.056.014a26.862 26.862 0 0 0-8.394 3.649c-.458.194-.916.388-1.346.652-15.873 9.727-25.724 17.69-29.914 55.056h17.912c.985-8.366 2.276-14.68 3.857-19.564v19.564h46.981v-19.314c1.554 4.843 2.803 11.086 3.774 19.314h17.899c-4.176-37.365-14.028-45.316-29.9-55.056v.014zM86.24 293.379h-.097l-5.536-7.576 5.536-36.99h.097l5.536 36.99-5.536 7.576zm67.432-75.452c0 12.682 10.281 22.95 22.963 22.95 12.668 0 22.935-10.282 22.935-22.95s-10.267-22.95-22.935-22.95c-12.682 0-22.963 10.282-22.963 22.95zm38.212 28.527c-.375-.222-.791-.402-1.18-.569a26.54 26.54 0 0 0-8.366-3.69l-5.703 5.757-5.55-5.827c-.014 0-.042.014-.055.014a26.723 26.723 0 0 0-8.395 3.649c-.458.194-.916.388-1.36.652-15.873 9.727-25.724 17.69-29.914 55.056h17.926c.985-8.366 2.276-14.68 3.858-19.564v19.564h46.98v-19.314c1.554 4.843 2.803 11.086 3.774 19.314h17.9c-4.191-37.365-14.042-45.316-29.915-55.056v.014zm-15.221 46.925h-.111l-5.536-7.576 5.536-36.99h.11l5.537 36.99-5.536 7.576zm-45.607-104.784c42.624 0 77.297-34.673 77.297-77.297C208.353 68.674 173.68 34 131.056 34c-42.624 0-77.298 34.674-77.298 77.298s34.674 77.297 77.298 77.297zm0-134.074c31.316 0 56.776 25.46 56.776 56.777 0 31.316-25.474 56.776-56.776 56.776-31.302 0-56.777-25.46-56.777-56.776 0-31.316 25.475-56.777 56.777-56.777z"/><path d="M170.918 103.084H139.27V69.908h-16.414v49.59h48.063zm30.137 305.277l-8.464-3.121a64.461 64.461 0 0 0-.707-18.732l8.172-3.774c5.106-2.345 7.354-8.422 4.995-13.528l-4.773-10.365c-2.345-5.106-8.408-7.353-13.514-4.995l-8.187 3.774a64.241 64.241 0 0 0-13.763-12.723l3.121-8.464c1.943-5.272-.763-11.155-6.035-13.098l-10.712-3.954c-5.106-1.873-11.21.944-13.098 6.036l-3.122 8.463a65.463 65.463 0 0 0-18.73.708l-3.775-8.186c-2.345-5.106-8.422-7.34-13.528-4.995L88.57 326.18c-5.106 2.358-7.353 8.436-4.995 13.528l3.774 8.172a64.996 64.996 0 0 0-12.723 13.778l-8.45-3.122c-5.106-1.9-11.21.916-13.112 6.022l-3.94 10.712a10.136 10.136 0 0 0 .305 7.797 10.124 10.124 0 0 0 5.73 5.287l8.464 3.135a64.95 64.95 0 0 0 .708 18.732l-8.187 3.774c-5.106 2.344-7.34 8.422-4.995 13.514l4.787 10.378c2.345 5.106 8.409 7.34 13.528 4.981l8.187-3.774a64.336 64.336 0 0 0 13.778 12.724l-3.122 8.464c-.958 2.553-.847 5.314.305 7.797a10.104 10.104 0 0 0 5.716 5.315l10.712 3.954c2.553.943 5.314.832 7.798-.305a10.034 10.034 0 0 0 5.286-5.73l3.136-8.464a64.931 64.931 0 0 0 18.731-.708l3.76 8.186c2.345 5.092 8.422 7.34 13.528 4.981l10.365-4.773c5.12-2.345 7.354-8.408 4.995-13.528l-3.774-8.172a64.24 64.24 0 0 0 12.71-13.778l8.463 3.136c2.567.957 5.328.832 7.812-.306 2.483-1.137 4.343-3.177 5.286-5.716l3.955-10.712c1.956-5.272-.736-11.141-6.022-13.084l-.014-.014zm-56.083 26.64c-5.342 2.456-11.017 3.705-16.858 3.705-15.693 0-30.08-9.213-36.644-23.463-9.296-20.202-.43-44.192 19.758-53.488a39.873 39.873 0 0 1 16.845-3.704c15.692 0 30.08 9.199 36.643 23.448 9.297 20.202.43 44.206-19.744 53.502zm142.635-185.578V76.458h-52.406V87.82h41.043v161.602H235.2v13.986h41.043v176.227H235.2v11.363h52.406V263.41h47.647l-.805-13.986z"/></g></svg>',j1={class:"btns"},U1={class:"btns"},H1={class:"btns sub-btns"},W1={class:"btns sub-btns"},q1={style:{width:"100%"}},Z1={style:{width:"100%"}},K1={style:{height:"400px"}},Q1={style:{height:"400px"}},J1=ct({customOptions:{Button:ve,InputRange:Vs,SVG:eh,Canvas:rs},inheritAttrs:!0,__name:"SVGAndCanvas",props:{easeName:{default:"Linear"},easeFunction:{type:Function,default:bt.Easing.Linear.None}},setup(s,{expose:t}){const e=s,n=M();let i=0,r=0;Mt(n,()=>{n.value&&n.value.getSVG().then(O=>{i=O.app.width,r=O.app.height,O.app.on("resize",(R,A)=>{i=R,r=A})})});const o=M(),a=M(),l=M(),c=M(""),u=M("");let h;function d(O){switch(u.value=O,c.value){case"AnimateToTweenCSS":z();break}}const m=new Og({svg:X1,width:300,attrs:{"stroke-width":"1",stroke:"#ff0000",fill:"none"},enableDrag:!0}),f=new Ht({d:"M62.9 14.9c-25-7.74-56.6 4.8-60.4 24.3-3.73 19.6 21.6 35 39.6 37.6 42.8 6.2 72.9-53.4 116-58.9 65-18.2 191 101 215 28.8 5-16.7-7-49.1-34-44-34 11.5-31 46.5-14 69.3 9.38 12.6 24.2 20.6 39.8 22.9 91.4 9.05 102-98.9 176-86.7 18.8 3.81 33 17.3 36.7 34.6 2.01 10.2.124 21.1-5.18 30.1"}),E=+f.getTotalLength().toFixed(0),S=M(E),_=M(Math.floor(E/2));function C(O){S.value=O,f.setAttr("strokeDasharray",`${S.value} ${S.value}`)}function y(O){_.value=O,f.setAttr("strokeDashoffset",`${_.value}`)}const p=[{name:"Shape",type:"Shape",onClick:()=>{c.value="Shape",!(!n.value||!o.value)&&(h?.(),n.value.getSVG().then(O=>{o.value.getCanvas().then(R=>{const A=new Cn({x:0,y:0,width:100,height:20,degree:30,scalar:2,attrs:{stroke:Ct.random().toString()},enableDrag:!0});O.clear(),h=Zt(()=>(R.ctx.clearRect(),O.path([A]),R.draw([A]),!0))})}))}},{name:"Shapes",type:"Shapes",onClick:()=>{if(c.value="Shapes",!n.value||!o.value)return;h?.();const O=new he({x:100,y:100,toX:100,toY:200,attrs:{stroke:"#666666"},enableDrag:!0}),R=new he({x:100,y:100,toX:100,toY:200,degree:30,attrs:{stroke:"#666666"},enableDrag:!0}),A=jt(0,i-100),D=jt(0,r-100),F=new he({attrs:{stroke:"#666666"}});F.x=A,F.y=D,F.toX=A+100,F.toY=D+100;const X=new he({attrs:{stroke:"#666666"}});X.x=A+100,X.y=D,X.toX=A,X.toY=D+100;const rt=F.intersection(X),Q=new Wt({x:0,y:0,radius:10,attrs:{fill:Ct.random().toString()}});rt&&(Q.x=rt.x,Q.y=rt.y);const W=new wr({x:jt(0,i),y:jt(0,r),scalar:.5,degree:45,attrs:{fill:"#5a82f0",stroke:"#ff0000",strokeWidth:"3"},enableDrag:!0,strokeArmyAnts:!0}),it=new ye({x:jt(0,i),y:jt(0,r),scalar:.8,degree:5,width:100,height:60,borderRadius:10,attrs:{fill:"pink",stroke:"#ff0000",strokeWidth:"3"},enableDrag:!0,strokeArmyAnts:!0}),B=new Ig({x:jt(0,i),y:jt(0,r),scalar:.99,degree:-1,attrs:{fill:Ct.random().toString(),stroke:"#ff0000",strokeWidth:"3"},enableDrag:!0,strokeArmyAnts:!0}),j=new Dg({x:jt(0,i),y:jt(0,r),scalar:.99,degree:-1,attrs:{fill:Ct.random().toString(),stroke:"#ff0000",strokeWidth:"3"},enableDrag:!0,strokeArmyAnts:!0}),yt=new Rg({x:jt(0,i),y:jt(0,r),scalar:1,degree:0,attrs:{fill:Ct.random().toString()},enableDrag:!0}),gt=new xa({x:jt(0,i),y:jt(0,r),scalar:1,degree:0,attrs:{fill:"rgb(200,80,80)",stroke:"#ff0000",strokeWidth:"3"},enableDrag:!0,strokeArmyAnts:!0}),Z=new Ag({x:jt(0,i),y:jt(0,r),scalar:1,degree:0,attrs:{fill:Ct.random().toString(),stroke:"#ff0000",strokeWidth:"3"},enableDrag:!0,strokeArmyAnts:!0}),V=new Mg({x:jt(0,i),y:jt(0,r),scalar:1,degree:0,attrs:{fill:Ct.random().toString()},enableDrag:!0}),Kt=new Ng({x:100,y:200,degree:30,scalar:.8,attrs:{strokeWidth:"2",stroke:Ct.random().toString(),fill:"none"},enableDrag:!0}),te=new $g({x:jt(0,i),y:jt(0,r),degree:30,scalar:2,showFlame:!0,attrs:{stroke:Ct.random().toString()},enableDrag:!0}),It=new Cn({x:100,y:100,width:100,height:20,degree:30,attrs:{stroke:Ct.random().toString()},enableDrag:!0}),ee=new Wu({x:200,y:200,min:0,max:200,step:2,defaultValue:10,barWidth:200});ee.on("change",Ne=>{console.log(`slider change: ${Ne}`)});const Yt=new wa({x:100,y:100,width:100,height:100,startDegree:45,endDegree:270,lineWidth:10,color:Ct.random().toString(),enableDrag:!0}),G=new qu({x:jt(0,i),y:jt(0,r),width:300,height:150,startDegree:-30,endDegree:190,extendDegree:10,percent:.3,enableDrag:!0}),$e=new Uu({x:jt(0,i),y:jt(0,r),rx:50,ry:10,enableDrag:!0,attrs:{fill:Ct.random().toString()}}),Ge=[O,R,F,X,Q,W,it,B,j,yt,gt,Z,V,Kt,te,It,ee,Yt,G,$e];n.value.getSVG().then(Ne=>{o.value.getCanvas().then(w=>{Ne.clear(),h=Zt(()=>(Ne.path(Ge),w.ctx.clearRect(),w.draw(Ge),!0))})})}},{name:"followMouse",type:"followMouse",onClick:()=>{c.value="followMouse",!(!n.value||!o.value)&&(h?.(),n.value.getSVG().then(O=>{o.value.getCanvas().then(R=>{const A=new wr({scalar:.5,followMouse:!0,attrs:{fill:Ct.random().toString()}}),D=A.clone(),F=new he({x:O.app.width/2,y:O.app.height/2,attrs:{"stroke-width":"1",stroke:"#666666"}}),X=F.clone();O.clear(),h=Zt(()=>(R.ctx.clearRect(),F.toX=A.x,F.toY=A.y,X.toX=D.x,X.toY=D.y,O.path([F,A]),R.draw([X,D]),!0))})}))}},{name:"targetToAfterDragFree",type:"targetToAfterDragFree",onClick:()=>{c.value="targetToAfterDragFree",!(!n.value||!o.value)&&(h?.(),n.value.getSVG().then(O=>{o.value.getCanvas().then(R=>{const A=new Wt({x:O.app.width/2,y:O.app.height/2,radius:30,attrs:{fill:Ct.random().toString()}});A.enableDrag=!0,A.targetToAfterDragFree={targetX:O.app.width/2,targetY:O.app.height/2};const D=A.clone();O.clear(),h=Zt(()=>(O.path(A),R.ctx.clearRect(),R.draw(D),!0))})}))}},{name:"BallCollision",type:"BallCollision",onClick:()=>{c.value="BallCollision",!(!n.value||!o.value)&&(h?.(),n.value.getSVG().then(O=>{o.value.getCanvas().then(R=>{const A=new Wt({x:50,y:O.app.height/2,radius:30,attrs:{fill:Ct.random().toString()}});A.mass=2,A.vx=2;const D=new Wt({x:O.app.width-50,y:O.app.height/2,radius:30,attrs:{fill:Ct.random().toString()}});D.mass=1,D.vx=-2,O.clear(),h=Zt(()=>(A.checkCollision(D),A.run(),D.run(),O.path([A,D]),R.ctx.clearRect(),R.draw([A,D]),!0))})}))}},{name:"Balls",type:"Balls",onClick:()=>{c.value="Balls",!(!n.value||!o.value)&&(h?.(),n.value.getSVG().then(O=>{o.value.getCanvas().then(R=>{const D=[];for(let rt=0;rt<15;rt++){const Q=Math.random()*20+15,W=new Wt({x:Math.random()*O.app.width,y:Math.random()*O.app.height,radius:Q,attrs:{fill:Ct.random().toString()}});W.mass=Q,W.vx=Math.random()*10-5,W.vy=Math.random()*10-5,D.push(W)}const F=new ye({x:0,y:0,width:O.app.width,height:O.app.height}),X=new Me(D);O.clear(),h=Zt(()=>(X.run({wall:F}),O.path(D),R.ctx.clearRect(),R.draw(D),!0))})}))}},{name:"万有引力",type:"Gravitate",onClick:()=>{c.value="Gravitate",!(!n.value||!o.value)&&(h?.(),n.value.getSVG().then(O=>{o.value.getCanvas().then(R=>{const D=[];for(let X=0;X<30;X++){const rt=Math.random()*25+5,Q=new Wt({x:Math.random()*O.app.width,y:Math.random()*O.app.height,radius:rt,attrs:{fill:Ct.random().toString()}});Q.mass=rt,D.push(Q)}const F=new Me(D);O.clear(),h=Zt(()=>(F.gravitate(),O.path(D),R.ctx.clearRect(),R.draw(D),!0))})}))}},{name:"行星",type:"SunPlanet",onClick:()=>{c.value="SunPlanet",!(!n.value||!o.value)&&(h?.(),n.value.getSVG().then(O=>{o.value.getCanvas().then(R=>{const A=new Wt({x:O.app.width*.5,y:O.app.height*.5,radius:50,attrs:{fill:Ct.random().toString()}});A.mass=1e4;const D=new Wt({x:O.app.width*.5+200,y:O.app.height*.5,radius:10,attrs:{fill:Ct.random().toString()}});D.mass=1,D.vy=7;const F=[A,D],X=new Me(F);O.clear(),h=Zt(()=>(X.gravitate(),O.path(F),R.ctx.clearRect(),R.draw(F),!0))})}))}},{name:"SpringMass",type:"SpringMass",onClick:()=>{c.value="SpringMass",!(!n.value||!o.value)&&(h?.(),n.value.getSVG().then(O=>{o.value.getCanvas().then(R=>{const A=[];for(let W=0;W<30;W++){const it=Math.random()*10+2,B=new Wt({x:Math.random()*R.app.width,y:Math.random()*R.app.height,radius:it,attrs:{fill:Ct.random().toString()}});B.vx=Math.random()*6-3,B.vy=Math.random()*6-3,B.mass=it,A.push(B)}const F=new Me(A),X=new ye({x:0,y:0,width:R.app.width,height:R.app.height}),rt=new Ct("#666666");let Q=[];O.clear(),h=Zt(()=>(O.delete(Q),Q=[],F.springMass(X,{spring:5e-4}).forEach(([W,it,B,j,yt])=>{yt>0&&Q.push(new he({x:W,y:it,toX:B,toY:j,attrs:{strokeWidth:"1",stroke:rt.setAlpha(yt).toString()}}))}),O.path(Q),O.path(A),R.ctx.clearRect(),R.draw(Q),R.draw(A),!0))})}))}},{name:"LinePicture",type:"LinePicture",onClick:()=>{c.value="LinePicture",!(!n.value||!o.value)&&(h?.(),n.value.getSVG().then(O=>{o.value.getCanvas().then(R=>{const A=new Wt({x:0,y:0,radius:8,attrs:{fill:Ct.random().toString()}}),D=new Wt({x:0,y:0,radius:5,attrs:{fill:Ct.random().toString()}});let F=[m,A,D],X,rt;m.on("clicked",j=>{rt&&O.delete(rt),X&&X.restore(),X=j,j.save(),j.setAttr({fill:"pink",stroke:"green"}),F=[m,A,D];const yt=j.getBoundingClientRect();yt&&(rt=new ye(yt),rt.setAttr({fill:"none",stroke:"#0000ff",strokeWidth:"4"}),F.push(rt))});let Q=0,W=m.shapes[Q].getTotalLength(),it=0;const B=.01;O.clear(),h=Zt(()=>{it>1&&(Q++,it=0,Q>m.shapes.length-1&&(Q=0),W=m.shapes[Q].getTotalLength()),R.ctx.clearRect();let{x:j,y:yt}=m.shapes[Q].interpolate(it);A.x=j,A.y=yt;let{x:gt,y:Z}=m.shapes[Q].getPointAtLength(it*W);return D.x=gt,D.y=Z,O.path(F),R.draw(F),it+=B,!0})})}))}},{name:"WalkMan",type:"WalkMan",onClick:()=>{c.value="WalkMan",!(!n.value||!o.value)&&(h?.(),n.value.getSVG().then(O=>{o.value.getCanvas().then(R=>{const A=new Cn({x:200,y:200,width:50,height:15,attrs:{stroke:"#666666"}}),D=new Cn({width:50,height:10,attrs:{stroke:"#666666"}}),F=new Cn({x:200,y:200,width:50,height:15,attrs:{stroke:"#666666"}}),X=new Cn({width:50,height:10,attrs:{stroke:"#666666"}});let rt=0,Q=0;function W(){Q+=.2,A.x+=rt,A.y+=Q,F.x+=rt,F.y+=Q}const it=-Math.PI/2;function B(Z,V,Kt){const te=Math.sin(Kt)*45+90,It=Math.sin(Kt+it)*45+45,ee=V.getPin();Z.degree=te,V.degree=Z.degree+It,V.x=Z.getPin().x,V.y=Z.getPin().y,V.vx=V.getPin().x-ee.x,V.vy=V.getPin().y-ee.y}function j(Z){const V=Z.getPin().y+Z.height/2;if(V>R.app.height){const Kt=V-R.app.height;A.y-=Kt,D.y-=Kt,F.y-=Kt,X.y-=Kt,rt-=Z.vx,Q-=Z.vy}}function yt(){const Z=R.app.width+200;A.x>R.app.width+100?(A.x-=Z,D.x-=Z,F.x-=Z,X.x-=Z):A.x<-100&&(A.x+=Z,D.x+=Z,F.x+=Z,X.x+=Z)}let gt=0;O.clear(),h=Zt(()=>(R.ctx.clearRect(),gt+=.06,W(),B(A,D,gt),B(F,X,gt+Math.PI),j(D),j(X),yt(),O.path([A,D,F,X]),R.draw([A,D,F,X]),!0))})}))}},{name:"俄罗斯方块",type:"RectGame",onClick:()=>{if(c.value="RectGame",!n.value||!o.value)return;h?.();function O(X){return new ye({x:Math.random()*X,y:0,width:50,height:50,attrs:{fill:Ct.random().toString()},enableDrag:!0})}const R=.2,A=[];function D(){const X=O(i);return A.push(X),X}let F=D();n.value.getSVG().then(X=>{o.value.getCanvas().then(rt=>{X.clear(),h=Zt(()=>(rt.ctx.clearRect(),X.isMouseDown||rt.isMouseDown?(X.path(A),rt.draw(A)):(F&&F.run({gravity:R}),F&&F.y+F.height>=rt.ctx.canvas.height&&(F.y=rt.ctx.canvas.height-F.height,F=D()),A.forEach(Q=>(F&&F!==Q&&F.isIntersectRect(Q)&&(F.y=Q.y-F.height,F.y>=F.height?F=D():F=null),Q)),X.path(A),rt.draw(A)),!0))})})}},{name:"喷泉",type:"PointWater",onClick:()=>{c.value="PointWater",!(!n.value||!o.value)&&(h?.(),n.value.getSVG().then(O=>{o.value.getCanvas().then(R=>{const A=[];for(let D=0;D<80;D++){const F=new Wt({x:O.app.width/2,y:O.app.height,radius:2,attrs:{fill:Ct.random().toString()}});F.vx=Math.random()*2-1,F.vy=Math.random()*-10-10,A.push(F)}O.clear(),h=Zt(()=>(A.forEach(D=>{D.run({gravity:.5}),(D.x-D.radius>O.app.width||D.x+D.radius<0||D.y-D.radius>O.app.height||D.y+D.radius<0)&&(D.x=O.app.width/2,D.y=O.app.height,D.vx=Math.random()*2-1,D.vy=Math.random()*-10-10)}),O.path(A),R.ctx.clearRect(),R.draw(A),!0))})}))}},{name:"SpringChain",type:"SpringChain",onClick:()=>{if(c.value="SpringChain",!n.value||!o.value)return;h?.();function O(D,F){const X=[];for(let rt=0;rt<3;rt++)X.push(new Wt({x:D,y:F,radius:20,attrs:{fill:Ct.random().toString()}}));return X}function R(){const D=[];for(let F=0;F<3;F++)D.push(new he({attrs:{"stroke-width":"1",stroke:"#666666"}}));return D}const A={spring:.03,friction:.9,gravity:2};n.value.getSVG().then(D=>{o.value.getCanvas().then(F=>{const X=R(),rt=O(D.app.width/2,D.app.height/2),Q=new Wt({x:0,y:0}),W=R(),it=O(F.app.width/2,F.app.height/2),B=new Wt({x:0,y:0}),j=new Me([Q,...rt]),yt=new Me([B,...it]);D.clear(),h=Zt(()=>(F.ctx.clearRect(),Q.x=D.app.mousePoint.x,Q.y=D.app.mousePoint.y,j.springChain(A),rt.forEach((gt,Z)=>{if(Z===0)X[Z].x=D.app.mousePoint.x,X[Z].y=D.app.mousePoint.y,X[Z].toX=gt.x,X[Z].toY=gt.y;else{const V=rt[Z-1];X[Z].x=V.x,X[Z].y=V.y,X[Z].toX=gt.x,X[Z].toY=gt.y}}),D.path(X),D.path(rt),B.x=F.app.mousePoint.x,B.y=F.app.mousePoint.y,yt.springChain(A),it.forEach((gt,Z)=>{if(Z===0)W[Z].x=F.app.mousePoint.x,W[Z].y=F.app.mousePoint.y,W[Z].toX=gt.x,W[Z].toY=gt.y;else{const V=it[Z-1];W[Z].x=V.x,W[Z].y=V.y,W[Z].toX=gt.x,W[Z].toY=gt.y}}),F.draw(W),F.draw(it),!0))})})}},{name:"多点弹簧",type:"PointSpringMulti",onClick:()=>{c.value="PointSpringMulti",!(!n.value||!o.value)&&(h?.(),n.value.getSVG().then(O=>{o.value.getCanvas().then(R=>{const A=[new he({attrs:{stroke:"#666666"}}),new he({attrs:{stroke:"#666666"}}),new he({attrs:{stroke:"#666666"}})],D=[];for(let X=0;X<3;X++)D.push(new Wt({x:Math.random()*O.app.width,y:Math.random()*O.app.height,radius:10,attrs:{fill:Ct.random().toString()},enableDrag:!0}));const F=new Wt({radius:20,attrs:{fill:"#ff0000"}});O.clear(),h=Zt(()=>(R.ctx.clearRect(),F.runSpringTo(D,{spring:.03}),D.forEach((X,rt)=>{A[rt].x=F.x,A[rt].y=F.y,A[rt].toX=X.x,A[rt].toY=X.y}),O.path([...A,...D,F]),R.draw([...A,...D,F]),!0))})}))}},{name:"SpringConnect",type:"SpringConnect",onClick:()=>{c.value="SpringConnect",!(!n.value||!o.value)&&(h?.(),n.value.getSVG().then(O=>{o.value.getCanvas().then(R=>{const A=[new he({attrs:{stroke:"#666666"}}),new he({attrs:{stroke:"#666666"}}),new he({attrs:{stroke:"#666666"}})],D=[];for(let X=0;X<3;X++)D.push(new Wt({x:Math.random()*O.app.width,y:Math.random()*O.app.height,radius:10,attrs:{fill:Ct.random().toString()},enableDrag:!0}));const F=new Me(D);O.clear(),h=Zt(()=>(F.springConnect({springLength:120}),A[0].x=D[0].x,A[0].y=D[0].y,A[0].toX=D[1].x,A[0].toY=D[1].y,A[1].x=D[1].x,A[1].y=D[1].y,A[1].toX=D[2].x,A[1].toY=D[2].y,A[2].x=D[2].x,A[2].y=D[2].y,A[2].toX=D[0].x,A[2].toY=D[0].y,O.path([...A,...D]),R.ctx.clearRect(),R.draw([...A,...D]),!0))})}))}},{name:"LineQuadraticBezier",type:"QuadraticBezierCurve",onClick:()=>{c.value="QuadraticBezierCurve",!(!n.value||!o.value)&&(h?.(),n.value.getSVG().then(O=>{o.value.getCanvas().then(R=>{const D=new xr({x:50,y:O.app.height-50,toX:O.app.width-50,toY:O.app.height-50,cx:O.app.mousePoint.x,cy:O.app.mousePoint.y,attrs:{stroke:"#ff0000","stroke-width":"2"},isLineThrough:!1}),F=new xr({x:50,y:O.app.height-50,toX:O.app.width-50,toY:O.app.height-50,cx:O.app.mousePoint.x,cy:O.app.mousePoint.y,attrs:{stroke:"#00ff00","stroke-width":"2"},isLineThrough:!0}),X=new xr({x:50,y:R.ctx.canvas.height-50,toX:R.ctx.canvas.width-50,toY:R.ctx.canvas.height-50,cx:R.app.mousePoint.x,cy:R.app.mousePoint.y,attrs:{stroke:"#ff0000","stroke-width":"2"},isLineThrough:!1}),rt=new xr({x:50,y:R.ctx.canvas.height-50,toX:R.ctx.canvas.width-50,toY:R.ctx.canvas.height-50,cx:R.app.mousePoint.x,cy:R.app.mousePoint.y,attrs:{stroke:"#00ff00","stroke-width":"2"},isLineThrough:!0});O.clear(),h=Zt(()=>(R.ctx.clearRect(),F.cx=D.cx=O.app.mousePoint.x,F.cy=D.cy=O.app.mousePoint.y,O.path(D),O.path(F),rt.cx=X.cx=R.app.mousePoint.x,rt.cy=X.cy=R.app.mousePoint.y,R.draw([X,rt]),!0))})}))}},{name:"PointsRandom",type:"PointsRandom",onClick:()=>{c.value="PointsRandom",!(!n.value||!o.value)&&(h?.(),n.value.getSVG().then(O=>{o.value.getCanvas().then(R=>{O.clear(),R.ctx.clearRect();const A=[];for(let X=0;X<10;X++)A.push({x:Math.random()*O.app.width,y:Math.random()*O.app.height});const D=A.map((X,rt)=>new ye({x:X.x,y:X.y,width:6,height:6,attrs:{fill:rt==0?"#ff0000":rt==A.length-1?"#00ff00":"#666666"}})),F=new ju({points:A,attrs:{stroke:"#ff0000"},isStraight:!0});F.isStraight=!0,O.path(D),O.path(F),F.isStraight=!1,R.draw([...D,F])})}))}},{name:"扇形",type:"Sector",onClick:()=>{if(c.value="Sector",!n.value||!o.value)return;h?.();const O=new Hu({x:300,y:100,radius:100,startDegree:80,endDegree:200,enableDrag:!0,text:"些许文字",defaultShowText:!1,tip:"提示文字...",attrs:{fill:"pink",stroke:"#666666"}}),R=new Hu({x:300,y:100,radius:100,startDegree:80,endDegree:200,enableDrag:!0,text:"些许文字",defaultShowText:!1,tip:"提示文字...",attrs:{fill:"pink",stroke:"#666666"}});n.value.getSVG().then(A=>{o.value.getCanvas().then(D=>{A.clear(),h=Zt(()=>(D.ctx.clearRect(),A.path(O),D.draw(R),!0))})})}},{name:"strokeDash",type:"StrokeDash",onClick:()=>{c.value="StrokeDash",!(!n.value||!o.value)&&(h?.(),f.setAttr({stroke:"#666666",strokeWidth:"4",strokeDasharray:`${S.value} ${S.value}`,strokeDashoffset:`${_.value}`}),n.value.getSVG().then(O=>{o.value.getCanvas().then(R=>{O.clear(),h=Zt(()=>(R.ctx.clearRect(),O.path(f),R.draw(f),!0))})}))}},{name:"strokeDashTween",type:"strokeDashTween",onClick:()=>{c.value="strokeDashTween",!(!n.value||!o.value)&&(h?.(),f.setAttr({stroke:"#ff0000",strokeWidth:"4"}),n.value.getSVG().then(O=>{o.value.getCanvas().then(R=>{O.clear(),f.strokeDashTween(4e3,{easeFunction:e.easeFunction,onUpdate:()=>{O.path(f),R.ctx.clearRect(),R.draw(f)}})})}))}},{name:"strokeDashTweenParallel",type:"strokeDashTweenParallel",onClick:()=>{c.value="strokeDashTweenParallel",!(!n.value||!o.value)&&(h?.(),n.value.getSVG().then(O=>{o.value.getCanvas().then(R=>{O.clear(),R.ctx.clearRect(),m.setAttrs({stroke:"none"}),m.strokeDashTween(4e3,{type:"parallel",easeFunction:e.easeFunction,onGroupStart:()=>{m.setAttrs({stroke:Ct.random().toString()})},onGroupUpdate:()=>{O.path(m),R.ctx.clearRect(),R.draw(m)}})})}))}},{name:"strokeDashTweenSequence",type:"strokeDashTweenSequence",onClick:()=>{c.value="strokeDashTweenSequence",!(!n.value||!o.value)&&(h?.(),n.value.getSVG().then(O=>{o.value.getCanvas().then(R=>{O.clear(),R.ctx.clearRect(),m.setAttrs({stroke:"none"}),m.strokeDashTween(1e3,{type:"sequence",easeFunction:e.easeFunction,onGroupStart:()=>{m.setAttrs({stroke:Ct.random().toString()})},onGroupUpdate:()=>{O.path(m),R.ctx.clearRect(),R.draw(m)}})})}))}},{name:"线条动画",type:"InterpolatePath",onClick:()=>{if(c.value="InterpolatePath",!n.value||!o.value)return;h?.();const O=new wr({x:200,y:200,scalar:1,attrs:{stroke:"#5a82f0"}}),R=new ye({width:100,height:60,x:150,y:170,borderRadius:10,attrs:{stroke:"#ACFFAD"}}),A=new xa({x:200,y:200,scalar:3,attrs:{stroke:"rgb(200,80,80)"}}),D=Me.generatePointsShape(100,100,100,3);D.x=100,D.y=100,D.setAttr({stroke:"#666666"});const F=Me.generatePointsShape(100,100,100,6);F.x=50,F.y=50,F.setAttr({stroke:"#7EEDFF"});const X=new Me([D,F,O,R,A]);n.value.getSVG().then(rt=>{o.value.getCanvas().then(Q=>{rt.clear(),X.polymorphTween(6e3,{draw:W=>{rt.path(W),Q.ctx.clearRect(),Q.draw(W)}})})})}},{name:"线条动画Group",type:"InterpolatePathGroup",onClick:()=>{if(c.value="InterpolatePathGroup",!n.value||!o.value)return;h?.();const O=new wr({x:200,y:200,scalar:1,attrs:{stroke:"#5a82f0"}}),R=new ye({width:100,height:60,x:150,y:170,borderRadius:10,attrs:{stroke:"#42B79E"}}),A=new xa({x:200,y:200,scalar:3,attrs:{stroke:"rgb(200,80,80)"}}),D=new Me([O,R,m,A]);n.value.getSVG().then(F=>{o.value.getCanvas().then(X=>{F.clear(),D.polymorphTween(6e3,{draw:rt=>{F.path(rt),X.ctx.clearRect(),X.draw(rt)}})})})}},{name:"AnimateToTweenCSS",type:"AnimateToTweenCSS",onClick:()=>{c.value="AnimateToTweenCSS",!(!n.value||!o.value)&&(h?.(),et.setStyle(l.value,{transform:""}))}},{name:"Rosetta",type:"Rosetta",onClick:()=>{c.value="Rosetta",!(!n.value||!o.value)&&(h?.(),n.value.getSVG().then(O=>{o.value.getCanvas().then(R=>{const A=Me.generateRosettaShape(120,120,55,35,6);A.setAttr({stroke:"none",fill:"none"});const D=new ye({x:0,y:0,width:20,height:10,attrs:{stroke:"none",fill:"green"}}),F=new Ht({attrs:{stroke:"red","stroke-width":"3",fill:"none"}});O.clear(),R.ctx.clearRect();const X=new qe({frameDuration:15e3});X.addTween({progress:0},{progress:1},{onUpdate:rt=>{const Q=A.trailPath(F,rt.progress);D.x=Q.x,D.y=Q.y,D.degree=Q.alpha+90,O.path([F,D]),R.ctx.clearRect(),R.draw([F,D])}}),X.play()})}))}},{name:"Confetti",type:"Confetti",onClick:()=>{c.value="Confetti",!(!n.value||!o.value)&&(h?.(),n.value.getSVG().then(O=>{o.value.getCanvas().then(R=>{const A=new Vg(R.app.width,R.app.height,{angle:jt(55,125),spread:jt(50,70),particleCount:jt(50,100)});O.clear(),h=Zt(()=>(R.ctx.clearRect(),O.path(A),R.draw(A),!0))})}))}}],x=[{type:"translateTo",onClick:()=>d("translateTo")},{type:"translateXTo",onClick:()=>d("translateXTo")},{type:"translateYTo",onClick:()=>d("translateYTo")},{type:"translateZTo",onClick:()=>d("translateZTo")},{type:"translate3dTo",onClick:()=>d("translate3dTo")},{type:"rotateTo",onClick:()=>d("rotateTo")},{type:"rotateXTo",onClick:()=>d("rotateXTo")},{type:"rotateYTo",onClick:()=>d("rotateYTo")},{type:"rotateZTo",onClick:()=>d("rotateZTo")},{type:"rotate3dTo",onClick:()=>d("rotate3dTo")},{type:"scaleTo",onClick:()=>d("scaleTo")},{type:"scaleXTo",onClick:()=>d("scaleXTo")},{type:"scaleYTo",onClick:()=>d("scaleYTo")},{type:"scaleZTo",onClick:()=>d("scaleZTo")},{type:"scale3dTo",onClick:()=>d("scale3dTo")},{type:"skewTo",onClick:()=>d("skewTo")},{type:"skewXTo",onClick:()=>d("skewXTo")},{type:"skewYTo",onClick:()=>d("skewYTo")},{type:"perspective",onClick:()=>d("perspective")}];let b;function z(){b||(b=new ys(a.value));const O=50,R=0,A=0,D=0,F=b.width-O,X=b.height-O,rt=b.height-O,Q=b.width/2-O/2,W=b.height/2-O/2,it={},B={};switch(u.value){case"translateTo":Object.assign(it,{translateTo:[R,A]}),Object.assign(B,{translateTo:[F,X]});break;case"translateXTo":Object.assign(it,{translateXTo:R}),Object.assign(B,{translateXTo:F});break;case"translateYTo":Object.assign(it,{translateYTo:A}),Object.assign(B,{translateYTo:X});break;case"translateZTo":Object.assign(it,{translateTo:[Q,W],translateZTo:D}),Object.assign(B,{translateTo:[Q,W],translateZTo:rt});break;case"translate3dTo":Object.assign(it,{translate3dTo:[Q-50,W-50,D]}),Object.assign(B,{translate3dTo:[Q+50,W+50,rt]});break;case"rotateTo":Object.assign(it,{translateTo:[Q,W],rotateTo:0}),Object.assign(B,{translateTo:[Q,W],rotateTo:360});break;case"rotateXTo":Object.assign(it,{translateTo:[Q,W],rotateXTo:0}),Object.assign(B,{translateTo:[Q,W],rotateXTo:180});break;case"rotateYTo":Object.assign(it,{translateTo:[Q,W],rotateYTo:0}),Object.assign(B,{translateTo:[Q,W],rotateYTo:180});break;case"rotateZTo":Object.assign(it,{translateTo:[Q,W],rotateZTo:0}),Object.assign(B,{translateTo:[Q,W],rotateZTo:360});break;case"rotate3dTo":Object.assign(it,{translateTo:[Q,W],rotate3dTo:[0,0,0]}),Object.assign(B,{translateTo:[Q,W],rotate3dTo:[360,360,360]});break;case"scaleTo":Object.assign(it,{translateTo:[Q,W],scaleTo:1}),Object.assign(B,{translateTo:[Q,W],scaleTo:3});break;case"scaleXTo":Object.assign(it,{translateTo:[Q,W],scaleXTo:1}),Object.assign(B,{translateTo:[Q,W],scaleXTo:3});break;case"scaleYTo":Object.assign(it,{translateTo:[Q,W],scaleYTo:1}),Object.assign(B,{translateTo:[Q,W],scaleYTo:3});break;case"scaleZTo":Object.assign(it,{translateTo:[Q,W],scaleZTo:1}),Object.assign(B,{translateTo:[Q,W],scaleZTo:3});break;case"scale3dTo":Object.assign(it,{translateTo:[Q,W],scale3dTo:[1,1,1]}),Object.assign(B,{translateTo:[Q,W],scale3dTo:[3,3,3]});break;case"skewTo":Object.assign(it,{translateTo:[Q,W],skewTo:0}),Object.assign(B,{translateTo:[Q,W],skewTo:30});break;case"skewXTo":Object.assign(it,{translateTo:[Q,W],skewXTo:0}),Object.assign(B,{translateTo:[Q,W],skewXTo:30});break;case"skewYTo":Object.assign(it,{translateTo:[Q,W],skewYTo:0}),Object.assign(B,{translateTo:[Q,W],skewYTo:30});break;case"perspective":Object.assign(it,{translateTo:[Q,W],perspective:0}),Object.assign(B,{translateTo:[Q,W],perspective:1e3});break}const j=new qe({frameDuration:2e3});j.addTween(it,B,{easeFunction:e.easeFunction,onUpdate:yt=>{et.setStyle(l.value,et.convertAttrs(l.value,yt))}}),j.play()}function ut(){return new Promise(O=>{o.value.getCanvas().then(R=>{ue.downloadFromSVGString(R.ctx.toRawSVG().raw,"CanvasToSVG").then(()=>{setTimeout(()=>{O()},3e3)})})})}return le(()=>{}),t({}),(O,R)=>(L(),H($t,null,[P("div",j1,[ft(ve,{asyncClick:ut},{default:Pt(()=>[Qt(" downloadFromCanvasToSVG ")]),_:1})]),P("div",U1,[(L(),H($t,null,ge(p,A=>ft(ve,{key:A.type,item:A,onClick:A.onClick,stylePattern:c.value==A.type?"fullfilled":"outline"},{default:Pt(()=>[Qt(wt(A.name),1)]),_:2},1032,["item","onClick","stylePattern"])),64))]),Qs(P("div",null," 当前缓动函数:"+wt(e.easeName),513),[[Ms,c.value=="AnimateToTweenCSS"]]),Qs(P("div",H1,[(L(),H($t,null,ge(x,A=>ft(ve,{key:A.type,item:A,onClick:A.onClick,stylePattern:u.value==A.type?"fullfilled":"outline"},{default:Pt(()=>[Qt(wt(A.type),1)]),_:2},1032,["item","onClick","stylePattern"])),64))],512),[[Ms,c.value=="AnimateToTweenCSS"]]),Qs(P("div",W1,[P("div",q1,[P("div",null,"stroke-dasharray: "+wt(S.value)+","+wt(S.value),1),ft(Vs,{max:988,defaultValue:S.value,onChange:C},null,8,["defaultValue"])]),P("div",Z1,[P("div",null,"stroke-dashoffset: "+wt(_.value),1),ft(Vs,{max:988,defaultValue:_.value,onChange:y},null,8,["defaultValue"])])],512),[[Ms,c.value=="StrokeDash"]]),Qs(P("div",K1,[ft(eh,{ref_key:"svgRef",ref:n,bgColor:"#ffffff"},null,512)],512),[[Ms,c.value!=="AnimateToTweenCSS"]]),Qs(P("div",Q1,[ft(rs,{ref_key:"canvasRef",ref:o,bgColor:"#333333","enable-custom-context":!1},null,512)],512),[[Ms,c.value!=="AnimateToTweenCSS"]]),Qs(P("div",{ref_key:"tweenCSSContainerRef",ref:a,style:{height:"400px"},class:"css-area"},[P("div",{ref_key:"divTweenTargetRef",ref:l,class:"tween-css-target"},null,512)],512),[[Ms,c.value=="AnimateToTweenCSS"]])],64))}}),Ab="",tv=mt(J1,[["__scopeId","data-v-34f2daf6"]]),ev={class:"svg"},sv=[Ef('<defs data-v-7ee5c19e><mask id="mask" maskContentUnits="objectBoundingBox" data-v-7ee5c19e><ellipse cx=".5" cy=".5" rx=".48" ry=".28" fill="black" data-v-7ee5c19e></ellipse><rect x=".2" y="0" width=".6" height="1" rx=".1" ry=".1" fill="black" data-v-7ee5c19e></rect><ellipse cx=".5" cy=".5" rx=".4" ry=".2" fill="white" data-v-7ee5c19e></ellipse><rect x=".3" y=".1" width=".4" height=".8" rx=".1" ry=".1" fill="white" data-v-7ee5c19e></rect></mask></defs>',1)],nv=ct({customOptions:{},inheritAttrs:!0,__name:"SVGMaskNapkin",setup(s){return(t,e)=>(L(),H("svg",ev,sv))}}),Nb="",Ma=mt(nv,[["__scopeId","data-v-7ee5c19e"]]),iv={class:"loading-1"},rv=ct({__name:"Loading1",props:{color:{default:Ot.colorPrimary}},setup(s){const e={backgroundColor:s.color};return(n,i)=>(L(),H("div",iv,[P("div",{class:"rect1",style:e}),P("div",{class:"rect2",style:e}),P("div",{class:"rect3",style:e}),P("div",{class:"rect4",style:e}),P("div",{class:"rect5",style:e})]))}}),Lb="",ov=mt(rv,[["__scopeId","data-v-48b10c9a"]]),av={class:"loading-2"},lv=ct({__name:"Loading2",props:{color:{default:Ot.colorPrimary}},setup(s){const e={backgroundColor:s.color};return(n,i)=>(L(),H("div",av,[P("div",{class:"dot1",style:e}),P("div",{class:"dot2",style:e})]))}}),Fb="",cv=mt(lv,[["__scopeId","data-v-79f9930f"]]),uv=ct({__name:"Loading3",props:{fromColor:{default:Ot.colorPrimary},toColor:{default:Ot.colorRed}},setup(s){const t=s,e=`
100
100
  @keyframes snake {
101
101
  0% {
102
102
  opacity: 0.3;
@@ -122,14 +122,14 @@ Component that was made reactive: `,s)),P(s,t,e,n,i,o,r,!0)}function Tf(s){retur
122
122
  :host {
123
123
  --loading-7-bg-color: ${t.color}
124
124
  }
125
- `,n=M();return Mt(n,()=>{n.value&&et.injectStyle(e,n.value)}),tn(()=>{}),le(()=>{}),(i,r)=>(L(),H("div",{class:"loading-7",ref_key:"loading7",ref:n},xv,512))}}),Xb="",Cv=mt(wv,[["__scopeId","data-v-949d17ff"]]),Sv={class:"loading-9"},Tv=ct({__name:"Loading9",props:{color:{default:Ot.colorPrimary}},setup(s){const e={borderTopColor:s.color};return(n,i)=>(L(),H("div",Sv,[P("div",{style:e})]))}}),jb="",Ev=mt(Tv,[["__scopeId","data-v-a563aaa4"]]),kv={class:"loading-10"},Pv={viewBox:"0 0 50 50"},Ov=ct({__name:"Loading10",props:{color:{default:Ot.colorPrimary}},setup(s){const t=s;return(e,n)=>(L(),H("div",kv,[(L(),H("svg",Pv,[P("circle",{class:"ring",cx:"25",cy:"25",r:"20",style:Y(["stroke: rgba(0,0,0,0.1)"])},null,4),P("circle",{class:"ball",cx:"25",cy:"5",r:"3.5",style:Y(["fill: "+t.color])},null,4)]))]))}}),Ub="",Iv=mt(Ov,[["__scopeId","data-v-361d898a"]]),Dv={class:"face front"},Rv={class:"face back"},Av=ct({customOptions:{},inheritAttrs:!0,__name:"CardFlip",props:{type:{default:""},dur:{default:500},perspective:{default:"600px"}},emits:["click"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=M(!1),o=()=>{r.value=!r.value,i("click",r.value)};return t({}),(a,l)=>(L(),H("div",{class:"card-flip-scene",style:Y({perspective:n.perspective})},[P("div",{class:ie(["card",[n.type,{flip:r.value}]]),style:Y({transition:`transform ${n.dur}ms`}),onClick:o},[P("div",Dv,[kt(a.$slots,"front",{},()=>[Jt("front")],!0)]),P("div",Rv,[kt(a.$slots,"back",{},()=>[Jt("back")],!0)])],6)],4))}}),Hb="",Mv=mt(Av,[["__scopeId","data-v-e37e840a"]]),Nv=ct({customOptions:{RadioGroup:Sa,CheckboxGroup:Sr,InputRange:Vs},inheritAttrs:!0,__name:"Cube",props:{width:{default:200},height:{default:200},dur:{default:1e3},perspective:{default:400}},setup(s,{expose:t,emit:e}){const n=s,i=M(Math.floor(n.width/2)),r=`
125
+ `,n=M();return Mt(n,()=>{n.value&&et.injectStyle(e,n.value)}),tn(()=>{}),le(()=>{}),(i,r)=>(L(),H("div",{class:"loading-7",ref_key:"loading7",ref:n},xv,512))}}),Xb="",Cv=mt(wv,[["__scopeId","data-v-949d17ff"]]),Sv={class:"loading-9"},Tv=ct({__name:"Loading9",props:{color:{default:Ot.colorPrimary}},setup(s){const e={borderTopColor:s.color};return(n,i)=>(L(),H("div",Sv,[P("div",{style:e})]))}}),jb="",Ev=mt(Tv,[["__scopeId","data-v-a563aaa4"]]),kv={class:"loading-10"},Pv={viewBox:"0 0 50 50"},Ov=ct({__name:"Loading10",props:{color:{default:Ot.colorPrimary}},setup(s){const t=s;return(e,n)=>(L(),H("div",kv,[(L(),H("svg",Pv,[P("circle",{class:"ring",cx:"25",cy:"25",r:"20",style:Y(["stroke: rgba(0,0,0,0.1)"])},null,4),P("circle",{class:"ball",cx:"25",cy:"5",r:"3.5",style:Y(["fill: "+t.color])},null,4)]))]))}}),Ub="",Iv=mt(Ov,[["__scopeId","data-v-361d898a"]]),Dv={class:"face front"},Rv={class:"face back"},Av=ct({customOptions:{},inheritAttrs:!0,__name:"CardFlip",props:{type:{default:""},dur:{default:500},perspective:{default:"600px"}},emits:["click"],setup(s,{expose:t,emit:e}){const n=s,i=e,r=M(!1),o=()=>{r.value=!r.value,i("click",r.value)};return t({}),(a,l)=>(L(),H("div",{class:"card-flip-scene",style:Y({perspective:n.perspective})},[P("div",{class:ie(["card",[n.type,{flip:r.value}]]),style:Y({transition:`transform ${n.dur}ms`}),onClick:o},[P("div",Dv,[Et(a.$slots,"front",{},()=>[Qt("front")],!0)]),P("div",Rv,[Et(a.$slots,"back",{},()=>[Qt("back")],!0)])],6)],4))}}),Hb="",Mv=mt(Av,[["__scopeId","data-v-e37e840a"]]),Nv=ct({customOptions:{RadioGroup:Sa,CheckboxGroup:Sr,InputRange:Vs},inheritAttrs:!0,__name:"Cube",props:{width:{default:200},height:{default:200},dur:{default:1e3},perspective:{default:400}},setup(s,{expose:t,emit:e}){const n=s,i=M(Math.floor(n.width/2)),r=`
126
126
  :root {
127
127
  --spin-cube-z: -${i.value}px;
128
128
  }
129
129
  :host {
130
130
  --spin-cube-z: -${i.value}px;
131
131
  }
132
- `,o=M();Mt(o,()=>{o.value&&et.injectStyle(r,o.value)});const a=M(n.perspective+"px"),l=p=>{a.value=p==2e3?"none":p+"px"},c=M("50%"),u=p=>{c.value=p+"%"},h=M("50%"),d=p=>{h.value=p+"%"},m=`translateZ(-${i.value}px)`,f=M(m),E=p=>{switch(p){case"front":f.value=m+" rotateY(0deg)";break;case"right":f.value=m+" rotateY(-90deg)";break;case"back":f.value=m+" rotateY(-180deg)";break;case"left":f.value=m+" rotateY(90deg)";break;case"top":f.value=m+" rotateX(-90deg)";break;case"bottom":f.value=m+" rotateX(90deg)";break;default:f.value=m;break}},S=M(!1),_=p=>{p.length?S.value=!0:S.value=!1},C=M("visible"),y=p=>{p.length?C.value="visible":C.value="hidden"};return t({}),(p,x)=>(L(),H("div",{ref_key:"container",ref:o},[P("div",{class:"cube-scene",style:Y({width:`${n.width}px`,height:`${n.height}px`,perspective:`${a.value}`,perspectiveOrigin:`${c.value} ${h.value}`})},[P("div",{class:ie(["cube",{spinning:S.value}]),style:Y({transformStyle:"preserve-3d",transform:f.value,transition:`transform ${n.dur}ms`})},[P("div",{class:"face front",style:Y({transform:`rotateY(0deg) translateZ(${i.value}px)`,backfaceVisibility:C.value})},[kt(p.$slots,"front",{},()=>[Jt("front")],!0)],4),P("div",{class:"face back",style:Y({transform:`rotateY(180deg) translateZ(${i.value}px)`,backfaceVisibility:C.value})},[kt(p.$slots,"back",{},()=>[Jt("back")],!0)],4),P("div",{class:"face right",style:Y({transform:`rotateY(90deg) translateZ(${i.value}px)`,backfaceVisibility:C.value})},[kt(p.$slots,"right",{},()=>[Jt("right")],!0)],4),P("div",{class:"face left",style:Y({transform:`rotateY(-90deg) translateZ(${i.value}px)`,backfaceVisibility:C.value})},[kt(p.$slots,"left",{},()=>[Jt("left")],!0)],4),P("div",{class:"face top",style:Y({transform:`rotateX(90deg) translateZ(${i.value}px)`,backfaceVisibility:C.value})},[kt(p.$slots,"top",{},()=>[Jt("top")],!0)],4),P("div",{class:"face bottom",style:Y({transform:`rotateX(-90deg) translateZ(${i.value}px)`,backfaceVisibility:C.value})},[kt(p.$slots,"bottom",{},()=>[Jt("bottom")],!0)],4)],6)],4),P("div",null,[ft(Sa,{options:["front","right","back","left","top","bottom"],onChange:E})]),P("div",null,[ft(Sr,{options:["Backface visible"],onChange:y})]),P("div",null,[ft(Sr,{options:["spin cube"],onChange:_})]),P("div",null,[Jt(" perspective: "),ft(Vs,{min:1,max:2e3,defaultValue:n.perspective,unit:"px",onChange:l},null,8,["defaultValue"])]),P("div",null,[Jt(" perspective-origin x: "),ft(Vs,{min:0,max:100,defaultValue:50,unit:"%",onChange:u})]),P("div",null,[Jt(" perspective-origin y: "),ft(Vs,{min:0,max:100,defaultValue:50,unit:"%",onChange:d})])],512))}}),Wb="",Lv=mt(Nv,[["__scopeId","data-v-7a47e26e"]]),Fv=s=>(Fn("data-v-b4857d19"),s=s(),$n(),s),$v={class:"ring-indicator"},Vv={class:"ring-text"},Yv=Fv(()=>P("span",null,"%",-1)),zv=ct({customOptions:{Canvas:rs},inheritAttrs:!0,__name:"RingIndicator",props:{percent:{default:0},lineWidth:{default:12},bgColor:{default:"#B3C6E7"},startColor:{default:"#5A82F0"},endColor:{default:"#66B3FF"}},setup(s,{expose:t}){const e=s;let n=M(0);const i=sg(()=>{const c=qt(Math.floor(e.percent),0,100);return n.value<c?n.value=Math.min(n.value+1,c):n.value>c&&(n.value=Math.max(n.value-1,c)),Ce(n.value/100,2)},20),r=M(0),o=M(0),a=(c,u)=>{r.value=c,o.value=u},l=M();return Mt(l,()=>{l.value&&l.value.getCanvas().then(c=>{const u=new qu({width:r.value,height:o.value,startDegree:0,endDegree:180,extendDegree:15,lineWidth:e.lineWidth,bgColor:e.bgColor,startColor:e.startColor,endColor:e.endColor});Zt(()=>(c.ctx.clearRect(),u.setPercent(i()),c.draw(u),!0))})}),t({}),(c,u)=>(L(),H("div",$v,[ft(rs,{ref_key:"canvasRef",ref:l,onResize:a},null,512),P("div",Vv,[P("span",null,wt(Ft(n)),1),Yv])]))}}),qb="",Bv=mt(zv,[["__scopeId","data-v-b4857d19"]]),sh=s=>(Fn("data-v-8e39fba1"),s=s(),$n(),s),Gv=[sh(()=>P("div",{class:"left"},null,-1)),sh(()=>P("div",{class:"right"},null,-1))],Xv={key:0},jv={key:1},ln=10,Tn=4,Uv=ct({customOptions:{Container:Et},inheritAttrs:!0,__name:"RingText",props:{text:{default:""},secondText:{default:""},startColor:{default:"#5A82F0"},endColor:{default:"#66B3FF"},dur:{default:2e3}},setup(s,{expose:t}){const e=s,n=M(0),i=(r,o)=>{n.value=Math.floor(Math.min(r,o))};return t({}),(r,o)=>(L(),zt(Et,{onResize:i,type:"full"},{default:Pt(()=>[P("div",{class:"ring",style:Y({width:n.value+"px",height:n.value+"px",padding:ln+"px",background:`linear-gradient(180deg, ${e.startColor} 0%, ${e.endColor} 100%)`})},[P("div",{class:"ring-rotate",style:Y({animation:`rotate-reverse ${e.dur}ms infinite linear`,mask:`radial-gradient(transparent ${n.value/2-ln-Tn}px, #000 ${n.value/2-ln-Tn}px)`})},Gv,4),P("div",{class:"ring-content",style:Y({top:ln+Tn+"px",left:ln+Tn+"px",width:n.value-(ln+Tn)*2+"px",height:n.value-(ln+Tn)*2+"px"})},[e.text?(L(),H("div",Xv,wt(e.text),1)):Bt("",!0),e.secondText?(L(),H("div",jv,wt(e.secondText),1)):Bt("",!0)],4)],4)]),_:1}))}}),Qb="",Jb="",Hv=mt(Uv,[["__scopeId","data-v-8e39fba1"]]),Wv=ct({customOptions:{Container:Et},inheritAttrs:!0,__name:"ClockFlipper",props:{startTime:{default:"00:00:00"},initStart:{type:Boolean,default:!0},creaseType:{default:"increase"},flipDirection:{default:"down"},dur:{default:800},bgColor:{default:"#5a82f0"},textColor:{default:"#ffffff"},borderRadius:{default:8},gap:{default:1},perspective:{default:400}},setup(s,{expose:t}){const e=s,n=M(),i=M(40),r=M(20),o=M(20),a=(_,C)=>{i.value=Math.floor(_/(6+1)),r.value=Math.floor(C),o.value=Math.max(12,r.value)},l=()=>{e.initStart&&E(e.startTime)};let c;const u=()=>{c?.()},h=Qt([0,0,0,0,0,0]),d=Qt([0,0,0,0,0,0]),m=[0,0,0,0,0,0];let f=0;const E=_=>{_&&(km(Em(_),m),m.forEach((C,y)=>{h[y]=C,d[y]=C})),u(),f=0,S(ce(),0,!1),c=eg((C,y,p)=>{S(C,y,p)},1e3)},S=(_,C,y)=>{if(y)f=C;else{if(f>0){m.forEach((x,b)=>{h[b]=x,d[b]=x});const p=f+1;e.creaseType=="increase"?(Zo(h,p),Zo(d,p+1)):(Ko(h,p),Ko(d,p+1)),f=0}else e.creaseType=="increase"?Zo(d,1):Ko(d,1);ua(()=>{d.forEach((p,x)=>{h[x]=p})},e.dur)}};return t({start:E,pause:u}),(_,C)=>(L(),zt(Et,{ref_key:"containerRef",ref:n,type:"full",overflow:"visible","style-sheets":{"--yz-clock-flipper-bg-color":e.bgColor,"--yz-clock-flipper-text-color":e.textColor,"--yz-clock-flipper-border-radius":e.borderRadius+"px","--yz-clock-flipper-gap":e.gap+"px","--yz-clock-flipper-gap-double":e.gap*2+"px","--yz-clock-flipper-gap-four":e.gap*4+"px","--yz-clock-flipper-animation-duration":e.dur+"ms","--yz-clock-flipper-perspective":e.perspective+"px"},onResize:a,onReady:l},{default:Pt(()=>[P("div",{class:"clock-flipper",style:Y({fontSize:o.value+"px",lineHeight:r.value+"px"})},[(L(!0),H($t,null,ge(h,(y,p)=>(L(),H($t,{key:p},[P("div",{class:ie(["flip",[e.flipDirection,d[p]!=y?"go":""]]),style:Y({width:i.value+"px"})},[P("div",{class:ie(["front digital",[`flipper_${p}`,`number_${y}`]])},null,2),P("div",{class:ie(["back digital",[`number_${d[p]}`]])},null,2)],6),p==1||p==3?(L(),H("div",{key:0,class:"gap",style:Y({fontSize:Math.floor(o.value*.6)+"px",lineHeight:0})}," : ",4)):Bt("",!0)],64))),128))],4)]),_:1},8,["style-sheets"]))}}),tx="",ex="",qv=mt(Wv,[["__scopeId","data-v-8d77ae6d"]]),Zv=ct({customOptions:{Container:Et},inheritAttrs:!0,__name:"TextBackgroundClip",props:{text:{default:"文字背景为图片"},bgImageUrl:{default:"https://s3-us-west-2.amazonaws.com/s.cdpn.io/181794/kl-deer.png"}},setup(s,{expose:t}){const e=s;return t({}),(n,i)=>(L(),zt(Et,null,{default:Pt(()=>[P("div",{style:Y({backgroundImage:`url(${e.bgImageUrl})`,"background-clip":"text",color:"transparent"})},wt(e.text),5)]),_:1}))}}),Kv={class:"slide"},Qv=ct({customOptions:{Container:Et},inheritAttrs:!0,__name:"Slide",props:{containerType:{default:"shrink"},supportCopyText:{type:Boolean,default:!0},effectTriggerTiming:{default:"mouseMove"},color:{default:"#3cefff"},dur:{default:200},direction:{default:"up"}},setup(s,{expose:t}){const e=s,n=Qt({}),i=()=>{switch(e.direction){case"left":n.transformOrigin="center left",n.transform="scaleX(0)";break;case"right":n.transformOrigin="center right",n.transform="scaleX(0)";break;case"down":n.transformOrigin="center bottom",n.transform="scaleY(0)";break;case"up":n.transformOrigin="center top",n.transform="scaleY(0)";break}},r=()=>{switch(e.direction){case"left":n.transformOrigin="center right",n.transform="scaleX(1)";break;case"right":n.transformOrigin="center left",n.transform="scaleX(1)";break;case"down":n.transformOrigin="center top",n.transform="scaleY(1)";break;case"up":n.transformOrigin="center bottom",n.transform="scaleY(1)";break}};return t({}),(o,a)=>(L(),zt(Et,{type:e.containerType,supportCopyText:e.supportCopyText,effectTriggerTiming:e.effectTriggerTiming,onStart:i,onEnd:r,style:{overflow:"hidden"}},{default:Pt(()=>[P("div",{class:"slide-before",style:Y({backgroundColor:e.color,transition:`transform ${e.dur}ms ease-in-out`,...n})},null,4),P("div",Kv,[kt(o.$slots,"default",{},void 0,!0)])]),_:3},8,["type","supportCopyText","effectTriggerTiming"]))}}),sx="",Jv=mt(Qv,[["__scopeId","data-v-4b23f270"]]),t_={class:"slide-corner"},e_=ct({customOptions:{Container:Et},inheritAttrs:!0,__name:"SlideCorner",props:{containerType:{default:"shrink"},supportCopyText:{type:Boolean,default:!0},effectTriggerTiming:{default:"mouseMove"},color:{default:"#3cefff"},timeGap:{default:100},direction:{default:"fromBottomLeft"}},setup(s,{expose:t}){const e=s,n=Qt({});let i=1,r=i*2;const o=(c,u)=>{i=Math.ceil(Math.max(c,u)/Math.min(c,u)),r=i*2,n.width=n.height=Math.ceil(Math.min(c,u))+"px"},a=()=>{switch(e.direction){case"fromBottomLeft":n.top="100%",n.right="100%",n.transform="translate(50%, -50%) scale3d(0, 0, 0)";break;case"fromBottomRight":n.top="100%",n.left="100%",n.transform="translate(-50%, -50%) scale3d(0, 0, 0)";break;case"fromTopLeft":n.bottom="100%",n.right="100%",n.transform="translate(50%, 50%) scale3d(0, 0, 0)";break;case"fromTopRight":n.bottom="100%",n.left="100%",n.transform="translate(-50%, 50%) scale3d(0, 0, 0)";break;case"fromCenter":n.top="50%",n.left="50%",n.transform="translate(-50%, -50%) scale3d(0, 0, 0)";break}},l=()=>{switch(e.direction){case"fromBottomLeft":n.top="100%",n.right="100%",n.transform=`translate(50%, -50%) scale3d(${r}, ${r}, ${r})`;break;case"fromBottomRight":n.top="100%",n.left="100%",n.transform=`translate(-50%, -50%) scale3d(${r}, ${r}, ${r})`;break;case"fromTopLeft":n.bottom="100%",n.right="100%",n.transform=`translate(50%, 50%) scale3d(${r}, ${r}, ${r})`;break;case"fromTopRight":n.bottom="100%",n.left="100%",n.transform=`translate(-50%, 50%) scale3d(${r}, ${r}, ${r})`;break;case"fromCenter":n.top="50%",n.left="50%",n.transform=`translate(-50%, -50%) scale3d(${r}, ${r}, ${r})`;break}};return t({}),(c,u)=>(L(),zt(Et,{type:e.containerType,supportCopyText:e.supportCopyText,effectTriggerTiming:e.effectTriggerTiming,onStart:a,onEnd:l,onResize:o,style:{overflow:"hidden"}},{default:Pt(()=>[P("div",{class:"slide-corner-before",style:Y({backgroundColor:e.color,borderRadius:"50%",transition:`transform ${e.timeGap*Ft(i)}ms ease-in-out`,transformOrigin:"center",...n})},null,4),P("div",t_,[kt(c.$slots,"default",{},void 0,!0)])]),_:3},8,["type","supportCopyText","effectTriggerTiming"]))}}),nx="",s_=mt(e_,[["__scopeId","data-v-e47546e1"]]),n_={class:"line-single"},i_=ct({customOptions:{Container:Et},inheritAttrs:!0,__name:"LineSingle",props:{containerType:{default:"shrink"},supportCopyText:{type:Boolean,default:!0},effectTriggerTiming:{default:"mouseMove"},color:{default:"#3cefff"},timeGap:{default:50},lineHeight:{default:2},location:{default:"underline"},direction:{default:"right"}},setup(s,{expose:t}){const e=s;let n=1;const i=(l,c)=>{n=Math.ceil(Math.max(l,c)/Math.min(l,c))},r=Qt({});switch(e.location){case"underline":r.bottom="0";break;case"overline":r.top="0";break;case"through":r.top="50%";break}const o=()=>{switch(e.direction){case"right":r.transformOrigin="bottom right",r.transform="scaleX(0)";break;case"left":r.transformOrigin="bottom left",r.transform="scaleX(0)";break;case"fromCenter":r.transformOrigin="center",r.transform="scaleX(0)";break}},a=()=>{switch(e.direction){case"right":r.transformOrigin="bottom left",r.transform="scaleX(1)";break;case"left":r.transformOrigin="bottom right",r.transform="scaleX(1)";break;case"fromCenter":r.transformOrigin="center",r.transform="scaleX(1)";break}};return t({}),(l,c)=>(L(),zt(Et,{type:e.containerType,supportCopyText:e.supportCopyText,effectTriggerTiming:e.effectTriggerTiming,onStart:o,onEnd:a,onResize:i},{default:Pt(()=>[P("div",{class:"line-single-before",style:Y({left:0,width:"100%",height:e.lineHeight+"px",backgroundColor:e.color,transition:`transform ${e.timeGap*Ft(n)}ms ease-in-out`,...r})},null,4),P("div",n_,[kt(l.$slots,"default",{},void 0,!0)])]),_:3},8,["type","supportCopyText","effectTriggerTiming"]))}}),ix="",r_=mt(i_,[["__scopeId","data-v-8b261cbf"]]),o_={class:"line-double"},a_=ct({customOptions:{Container:Et},inheritAttrs:!0,__name:"LineDouble",props:{containerType:{default:"shrink"},supportCopyText:{type:Boolean,default:!0},effectTriggerTiming:{default:"mouseMove"},color:{default:"#3cefff"},timeGap:{default:50},lineHeight:{default:2},location:{default:"horizontal"},direction:{default:"toEnd"}},setup(s,{expose:t}){const e=s;let n=1;const i=(u,h)=>{n=Math.ceil(Math.max(u,h)/Math.min(u,h))},r=Qt({}),o=Qt({}),a=Qt({});switch(e.location){case"horizontal":r.width="100%",r.height=e.lineHeight+"px",o.top="0",a.bottom="0";break;case"vertical":r.width=e.lineHeight+"px",r.height="100%",o.left="0",a.right="0";break}const l=()=>{switch(e.direction){case"toEnd":switch(e.location){case"horizontal":o.right="0",a.right="0",r.transformOrigin="center right",r.transform="scaleX(0)";break;case"vertical":o.bottom="0",a.bottom="0",r.transformOrigin="center bottom",r.transform="scaleY(0)";break}break;case"toStart":switch(e.location){case"horizontal":o.left="0",a.left="0",r.transformOrigin="center left",r.transform="scaleX(0)";break;case"vertical":o.top="0",a.top="0",r.transformOrigin="center top",r.transform="scaleY(0)";break}break;case"towards":switch(e.location){case"horizontal":o.right="0",o.transformOrigin="center right",a.left="0",a.transformOrigin="center left",r.transform="scaleX(0)";break;case"vertical":o.bottom="0",o.transformOrigin="center bottom",a.top="0",a.transformOrigin="center top",r.transform="scaleY(0)";break}break;case"fromCenter":switch(e.location){case"horizontal":o.left="50%",a.left="50%",r.transformOrigin="center",r.transform="translateX(-50%) scaleX(0)";break;case"vertical":o.top="50%",a.top="50%",r.transformOrigin="center",r.transform="translateY(-50%) scaleY(0)";break}break}},c=()=>{switch(e.direction){case"toEnd":switch(e.location){case"horizontal":o.left="0",a.left="0",r.transformOrigin="center left",r.transform="scaleX(1)";break;case"vertical":o.top="0",a.top="0",r.transformOrigin="center top",r.transform="scaleY(1)";break}break;case"toStart":switch(e.location){case"horizontal":o.right="0",a.right="0",r.transformOrigin="center right",r.transform="scaleX(1)";break;case"vertical":o.bottom="0",a.bottom="0",r.transformOrigin="center bottom",r.transform="scaleY(1)";break}break;case"towards":switch(e.location){case"horizontal":o.left="0",o.transformOrigin="center left",a.right="0",a.transformOrigin="center right",r.transform="scaleX(1)";break;case"vertical":o.top="0",o.transformOrigin="center top",a.bottom="0",a.transformOrigin="center bottom",r.transform="scaleY(1)";break}break;case"fromCenter":switch(e.location){case"horizontal":o.left="50%",a.left="50%",r.transformOrigin="center",r.transform="translateX(-50%) scaleX(1)";break;case"vertical":o.top="50%",a.top="50%",r.transformOrigin="center",r.transform="translateY(-50%) scaleY(1)";break}break}};return t({}),(u,h)=>(L(),zt(Et,{type:e.containerType,supportCopyText:e.supportCopyText,effectTriggerTiming:e.effectTriggerTiming,onStart:l,onEnd:c,onResize:i},{default:Pt(()=>[P("div",{class:"line-double-before",style:Y({backgroundColor:e.color,transition:`transform ${e.timeGap*Ft(n)}ms ease-in-out`,...r,...o})},null,4),P("div",o_,[kt(u.$slots,"default",{},void 0,!0)]),P("div",{class:"line-double-after",style:Y({backgroundColor:e.color,transition:`transform ${e.timeGap*Ft(n)}ms ease-in-out`,...r,...a})},null,4)]),_:3},8,["type","supportCopyText","effectTriggerTiming"]))}}),rx="",l_=mt(a_,[["__scopeId","data-v-ac519c85"]]),c_=ct({customOptions:{Container:Et},inheritAttrs:!0,__name:"Float",props:{containerType:{default:"shrink"},supportCopyText:{type:Boolean,default:!0},effectTriggerTiming:{default:"mouseMove"},dur:{default:200},distance:{default:4},boxShadow:{default:"none"},direction:{default:"up"}},setup(s,{expose:t}){const e=s,n=Qt({willChange:"box-shadow, transform"}),i=()=>{switch(n.boxShadow="none",e.direction){case"left":n.transform="translateX(0)";break;case"right":n.transform="translateX(0)";break;case"down":n.transform="translateY(0)";break;case"up":n.transform="translateY(0)";break}},r=()=>{switch(n.boxShadow=e.boxShadow,e.direction){case"left":n.transform=`translateX(-${e.distance}px)`;break;case"right":n.transform=`translateX(${e.distance}px)`;break;case"down":n.transform=`translateY(${e.distance}px)`;break;case"up":n.transform=`translateY(-${e.distance}px)`;break}};return t({}),(o,a)=>(L(),zt(Et,{type:e.containerType,supportCopyText:e.supportCopyText,effectTriggerTiming:e.effectTriggerTiming,onStart:i,onEnd:r},{default:Pt(()=>[P("div",{class:"float",style:Y({transition:`transform ${e.dur}ms ease-in-out, box-shadow ${e.dur}ms ease-in-out`,...n})},[kt(o.$slots,"default",{},void 0,!0)],4)]),_:3},8,["type","supportCopyText","effectTriggerTiming"]))}}),ox="",u_=mt(c_,[["__scopeId","data-v-2cdf6499"]]),h_={class:"circle"},d_=ct({customOptions:{Container:Et},inheritAttrs:!0,__name:"Circle",props:{containerType:{default:"shrink"},supportCopyText:{type:Boolean,default:!0},effectTriggerTiming:{default:"mouseMove"},color:{default:"#3cefff"},dur:{default:750}},setup(s,{expose:t}){const e=s,n=M(),i=Qt({transition:`box-shadow ${e.dur}ms`,borderRadius:"100%"}),r=(l,c)=>{i.width=i.height=Math.ceil(Math.max(l,c))+"px",n.value?.repeatEffect?.()},o=()=>{const l=Ae(e.color,.2).toString();i.boxShadow=`
132
+ `,o=M();Mt(o,()=>{o.value&&et.injectStyle(r,o.value)});const a=M(n.perspective+"px"),l=p=>{a.value=p==2e3?"none":p+"px"},c=M("50%"),u=p=>{c.value=p+"%"},h=M("50%"),d=p=>{h.value=p+"%"},m=`translateZ(-${i.value}px)`,f=M(m),E=p=>{switch(p){case"front":f.value=m+" rotateY(0deg)";break;case"right":f.value=m+" rotateY(-90deg)";break;case"back":f.value=m+" rotateY(-180deg)";break;case"left":f.value=m+" rotateY(90deg)";break;case"top":f.value=m+" rotateX(-90deg)";break;case"bottom":f.value=m+" rotateX(90deg)";break;default:f.value=m;break}},S=M(!1),_=p=>{p.length?S.value=!0:S.value=!1},C=M("visible"),y=p=>{p.length?C.value="visible":C.value="hidden"};return t({}),(p,x)=>(L(),H("div",{ref_key:"container",ref:o},[P("div",{class:"cube-scene",style:Y({width:`${n.width}px`,height:`${n.height}px`,perspective:`${a.value}`,perspectiveOrigin:`${c.value} ${h.value}`})},[P("div",{class:ie(["cube",{spinning:S.value}]),style:Y({transformStyle:"preserve-3d",transform:f.value,transition:`transform ${n.dur}ms`})},[P("div",{class:"face front",style:Y({transform:`rotateY(0deg) translateZ(${i.value}px)`,backfaceVisibility:C.value})},[Et(p.$slots,"front",{},()=>[Qt("front")],!0)],4),P("div",{class:"face back",style:Y({transform:`rotateY(180deg) translateZ(${i.value}px)`,backfaceVisibility:C.value})},[Et(p.$slots,"back",{},()=>[Qt("back")],!0)],4),P("div",{class:"face right",style:Y({transform:`rotateY(90deg) translateZ(${i.value}px)`,backfaceVisibility:C.value})},[Et(p.$slots,"right",{},()=>[Qt("right")],!0)],4),P("div",{class:"face left",style:Y({transform:`rotateY(-90deg) translateZ(${i.value}px)`,backfaceVisibility:C.value})},[Et(p.$slots,"left",{},()=>[Qt("left")],!0)],4),P("div",{class:"face top",style:Y({transform:`rotateX(90deg) translateZ(${i.value}px)`,backfaceVisibility:C.value})},[Et(p.$slots,"top",{},()=>[Qt("top")],!0)],4),P("div",{class:"face bottom",style:Y({transform:`rotateX(-90deg) translateZ(${i.value}px)`,backfaceVisibility:C.value})},[Et(p.$slots,"bottom",{},()=>[Qt("bottom")],!0)],4)],6)],4),P("div",null,[ft(Sa,{options:["front","right","back","left","top","bottom"],onChange:E})]),P("div",null,[ft(Sr,{options:["Backface visible"],onChange:y})]),P("div",null,[ft(Sr,{options:["spin cube"],onChange:_})]),P("div",null,[Qt(" perspective: "),ft(Vs,{min:1,max:2e3,defaultValue:n.perspective,unit:"px",onChange:l},null,8,["defaultValue"])]),P("div",null,[Qt(" perspective-origin x: "),ft(Vs,{min:0,max:100,defaultValue:50,unit:"%",onChange:u})]),P("div",null,[Qt(" perspective-origin y: "),ft(Vs,{min:0,max:100,defaultValue:50,unit:"%",onChange:d})])],512))}}),Wb="",Lv=mt(Nv,[["__scopeId","data-v-7a47e26e"]]),Fv=s=>(Fn("data-v-b4857d19"),s=s(),$n(),s),$v={class:"ring-indicator"},Vv={class:"ring-text"},Yv=Fv(()=>P("span",null,"%",-1)),zv=ct({customOptions:{Canvas:rs},inheritAttrs:!0,__name:"RingIndicator",props:{percent:{default:0},lineWidth:{default:12},bgColor:{default:"#B3C6E7"},startColor:{default:"#5A82F0"},endColor:{default:"#66B3FF"}},setup(s,{expose:t}){const e=s;let n=M(0);const i=sg(()=>{const c=qt(Math.floor(e.percent),0,100);return n.value<c?n.value=Math.min(n.value+1,c):n.value>c&&(n.value=Math.max(n.value-1,c)),Ce(n.value/100,2)},20),r=M(0),o=M(0),a=(c,u)=>{r.value=c,o.value=u},l=M();return Mt(l,()=>{l.value&&l.value.getCanvas().then(c=>{const u=new qu({width:r.value,height:o.value,startDegree:0,endDegree:180,extendDegree:15,lineWidth:e.lineWidth,bgColor:e.bgColor,startColor:e.startColor,endColor:e.endColor});Zt(()=>(c.ctx.clearRect(),u.setPercent(i()),c.draw(u),!0))})}),t({}),(c,u)=>(L(),H("div",$v,[ft(rs,{ref_key:"canvasRef",ref:l,onResize:a},null,512),P("div",Vv,[P("span",null,wt(Ft(n)),1),Yv])]))}}),qb="",Bv=mt(zv,[["__scopeId","data-v-b4857d19"]]),sh=s=>(Fn("data-v-8e39fba1"),s=s(),$n(),s),Gv=[sh(()=>P("div",{class:"left"},null,-1)),sh(()=>P("div",{class:"right"},null,-1))],Xv={key:0},jv={key:1},ln=10,Tn=4,Uv=ct({customOptions:{Container:kt},inheritAttrs:!0,__name:"RingText",props:{text:{default:""},secondText:{default:""},startColor:{default:"#5A82F0"},endColor:{default:"#66B3FF"},dur:{default:2e3}},setup(s,{expose:t}){const e=s,n=M(0),i=(r,o)=>{n.value=Math.floor(Math.min(r,o))};return t({}),(r,o)=>(L(),zt(kt,{onResize:i,type:"full"},{default:Pt(()=>[P("div",{class:"ring",style:Y({width:n.value+"px",height:n.value+"px",padding:ln+"px",background:`linear-gradient(180deg, ${e.startColor} 0%, ${e.endColor} 100%)`})},[P("div",{class:"ring-rotate",style:Y({animation:`rotate-reverse ${e.dur}ms infinite linear`,mask:`radial-gradient(transparent ${n.value/2-ln-Tn}px, #000 ${n.value/2-ln-Tn}px)`})},Gv,4),P("div",{class:"ring-content",style:Y({top:ln+Tn+"px",left:ln+Tn+"px",width:n.value-(ln+Tn)*2+"px",height:n.value-(ln+Tn)*2+"px"})},[e.text?(L(),H("div",Xv,wt(e.text),1)):Bt("",!0),e.secondText?(L(),H("div",jv,wt(e.secondText),1)):Bt("",!0)],4)],4)]),_:1}))}}),Qb="",Jb="",Hv=mt(Uv,[["__scopeId","data-v-8e39fba1"]]),Wv=ct({customOptions:{Container:kt},inheritAttrs:!0,__name:"ClockFlipper",props:{startTime:{default:"00:00:00"},initStart:{type:Boolean,default:!0},creaseType:{default:"increase"},flipDirection:{default:"down"},dur:{default:800},bgColor:{default:"#5a82f0"},textColor:{default:"#ffffff"},borderRadius:{default:8},gap:{default:1},perspective:{default:400}},setup(s,{expose:t}){const e=s,n=M(),i=M(40),r=M(20),o=M(20),a=(_,C)=>{i.value=Math.floor(_/(6+1)),r.value=Math.floor(C),o.value=Math.max(12,r.value)},l=()=>{e.initStart&&E(e.startTime)};let c;const u=()=>{c?.()},h=Jt([0,0,0,0,0,0]),d=Jt([0,0,0,0,0,0]),m=[0,0,0,0,0,0];let f=0;const E=_=>{_&&(km(Em(_),m),m.forEach((C,y)=>{h[y]=C,d[y]=C})),u(),f=0,S(ce(),0,!1),c=eg((C,y,p)=>{S(C,y,p)},1e3)},S=(_,C,y)=>{if(y)f=C;else{if(f>0){m.forEach((x,b)=>{h[b]=x,d[b]=x});const p=f+1;e.creaseType=="increase"?(Zo(h,p),Zo(d,p+1)):(Ko(h,p),Ko(d,p+1)),f=0}else e.creaseType=="increase"?Zo(d,1):Ko(d,1);ua(()=>{d.forEach((p,x)=>{h[x]=p})},e.dur)}};return t({start:E,pause:u}),(_,C)=>(L(),zt(kt,{ref_key:"containerRef",ref:n,type:"full",overflow:"visible","style-sheets":{"--yz-clock-flipper-bg-color":e.bgColor,"--yz-clock-flipper-text-color":e.textColor,"--yz-clock-flipper-border-radius":e.borderRadius+"px","--yz-clock-flipper-gap":e.gap+"px","--yz-clock-flipper-gap-double":e.gap*2+"px","--yz-clock-flipper-gap-four":e.gap*4+"px","--yz-clock-flipper-animation-duration":e.dur+"ms","--yz-clock-flipper-perspective":e.perspective+"px"},onResize:a,onReady:l},{default:Pt(()=>[P("div",{class:"clock-flipper",style:Y({fontSize:o.value+"px",lineHeight:r.value+"px"})},[(L(!0),H($t,null,ge(h,(y,p)=>(L(),H($t,{key:p},[P("div",{class:ie(["flip",[e.flipDirection,d[p]!=y?"go":""]]),style:Y({width:i.value+"px"})},[P("div",{class:ie(["front digital",[`flipper_${p}`,`number_${y}`]])},null,2),P("div",{class:ie(["back digital",[`number_${d[p]}`]])},null,2)],6),p==1||p==3?(L(),H("div",{key:0,class:"gap",style:Y({fontSize:Math.floor(o.value*.6)+"px",lineHeight:0})}," : ",4)):Bt("",!0)],64))),128))],4)]),_:1},8,["style-sheets"]))}}),tx="",ex="",qv=mt(Wv,[["__scopeId","data-v-8d77ae6d"]]),Zv=ct({customOptions:{Container:kt},inheritAttrs:!0,__name:"TextBackgroundClip",props:{text:{default:"文字背景为图片"},bgImageUrl:{default:"https://s3-us-west-2.amazonaws.com/s.cdpn.io/181794/kl-deer.png"}},setup(s,{expose:t}){const e=s;return t({}),(n,i)=>(L(),zt(kt,null,{default:Pt(()=>[P("div",{style:Y({backgroundImage:`url(${e.bgImageUrl})`,"background-clip":"text",color:"transparent"})},wt(e.text),5)]),_:1}))}}),Kv={class:"slide"},Qv=ct({customOptions:{Container:kt},inheritAttrs:!0,__name:"Slide",props:{containerType:{default:"shrink"},supportCopyText:{type:Boolean,default:!0},effectTriggerTiming:{default:"mouseMove"},color:{default:"#3cefff"},dur:{default:200},direction:{default:"up"}},setup(s,{expose:t}){const e=s,n=Jt({}),i=()=>{switch(e.direction){case"left":n.transformOrigin="center left",n.transform="scaleX(0)";break;case"right":n.transformOrigin="center right",n.transform="scaleX(0)";break;case"down":n.transformOrigin="center bottom",n.transform="scaleY(0)";break;case"up":n.transformOrigin="center top",n.transform="scaleY(0)";break}},r=()=>{switch(e.direction){case"left":n.transformOrigin="center right",n.transform="scaleX(1)";break;case"right":n.transformOrigin="center left",n.transform="scaleX(1)";break;case"down":n.transformOrigin="center top",n.transform="scaleY(1)";break;case"up":n.transformOrigin="center bottom",n.transform="scaleY(1)";break}};return t({}),(o,a)=>(L(),zt(kt,{type:e.containerType,supportCopyText:e.supportCopyText,effectTriggerTiming:e.effectTriggerTiming,onStart:i,onEnd:r,style:{overflow:"hidden"}},{default:Pt(()=>[P("div",{class:"slide-before",style:Y({backgroundColor:e.color,transition:`transform ${e.dur}ms ease-in-out`,...n})},null,4),P("div",Kv,[Et(o.$slots,"default",{},void 0,!0)])]),_:3},8,["type","supportCopyText","effectTriggerTiming"]))}}),sx="",Jv=mt(Qv,[["__scopeId","data-v-4b23f270"]]),t_={class:"slide-corner"},e_=ct({customOptions:{Container:kt},inheritAttrs:!0,__name:"SlideCorner",props:{containerType:{default:"shrink"},supportCopyText:{type:Boolean,default:!0},effectTriggerTiming:{default:"mouseMove"},color:{default:"#3cefff"},timeGap:{default:100},direction:{default:"fromBottomLeft"}},setup(s,{expose:t}){const e=s,n=Jt({});let i=1,r=i*2;const o=(c,u)=>{i=Math.ceil(Math.max(c,u)/Math.min(c,u)),r=i*2,n.width=n.height=Math.ceil(Math.min(c,u))+"px"},a=()=>{switch(e.direction){case"fromBottomLeft":n.top="100%",n.right="100%",n.transform="translate(50%, -50%) scale3d(0, 0, 0)";break;case"fromBottomRight":n.top="100%",n.left="100%",n.transform="translate(-50%, -50%) scale3d(0, 0, 0)";break;case"fromTopLeft":n.bottom="100%",n.right="100%",n.transform="translate(50%, 50%) scale3d(0, 0, 0)";break;case"fromTopRight":n.bottom="100%",n.left="100%",n.transform="translate(-50%, 50%) scale3d(0, 0, 0)";break;case"fromCenter":n.top="50%",n.left="50%",n.transform="translate(-50%, -50%) scale3d(0, 0, 0)";break}},l=()=>{switch(e.direction){case"fromBottomLeft":n.top="100%",n.right="100%",n.transform=`translate(50%, -50%) scale3d(${r}, ${r}, ${r})`;break;case"fromBottomRight":n.top="100%",n.left="100%",n.transform=`translate(-50%, -50%) scale3d(${r}, ${r}, ${r})`;break;case"fromTopLeft":n.bottom="100%",n.right="100%",n.transform=`translate(50%, 50%) scale3d(${r}, ${r}, ${r})`;break;case"fromTopRight":n.bottom="100%",n.left="100%",n.transform=`translate(-50%, 50%) scale3d(${r}, ${r}, ${r})`;break;case"fromCenter":n.top="50%",n.left="50%",n.transform=`translate(-50%, -50%) scale3d(${r}, ${r}, ${r})`;break}};return t({}),(c,u)=>(L(),zt(kt,{type:e.containerType,supportCopyText:e.supportCopyText,effectTriggerTiming:e.effectTriggerTiming,onStart:a,onEnd:l,onResize:o,style:{overflow:"hidden"}},{default:Pt(()=>[P("div",{class:"slide-corner-before",style:Y({backgroundColor:e.color,borderRadius:"50%",transition:`transform ${e.timeGap*Ft(i)}ms ease-in-out`,transformOrigin:"center",...n})},null,4),P("div",t_,[Et(c.$slots,"default",{},void 0,!0)])]),_:3},8,["type","supportCopyText","effectTriggerTiming"]))}}),nx="",s_=mt(e_,[["__scopeId","data-v-e47546e1"]]),n_={class:"line-single"},i_=ct({customOptions:{Container:kt},inheritAttrs:!0,__name:"LineSingle",props:{containerType:{default:"shrink"},supportCopyText:{type:Boolean,default:!0},effectTriggerTiming:{default:"mouseMove"},color:{default:"#3cefff"},timeGap:{default:50},lineHeight:{default:2},location:{default:"underline"},direction:{default:"right"}},setup(s,{expose:t}){const e=s;let n=1;const i=(l,c)=>{n=Math.ceil(Math.max(l,c)/Math.min(l,c))},r=Jt({});switch(e.location){case"underline":r.bottom="0";break;case"overline":r.top="0";break;case"through":r.top="50%";break}const o=()=>{switch(e.direction){case"right":r.transformOrigin="bottom right",r.transform="scaleX(0)";break;case"left":r.transformOrigin="bottom left",r.transform="scaleX(0)";break;case"fromCenter":r.transformOrigin="center",r.transform="scaleX(0)";break}},a=()=>{switch(e.direction){case"right":r.transformOrigin="bottom left",r.transform="scaleX(1)";break;case"left":r.transformOrigin="bottom right",r.transform="scaleX(1)";break;case"fromCenter":r.transformOrigin="center",r.transform="scaleX(1)";break}};return t({}),(l,c)=>(L(),zt(kt,{type:e.containerType,supportCopyText:e.supportCopyText,effectTriggerTiming:e.effectTriggerTiming,onStart:o,onEnd:a,onResize:i},{default:Pt(()=>[P("div",{class:"line-single-before",style:Y({left:0,width:"100%",height:e.lineHeight+"px",backgroundColor:e.color,transition:`transform ${e.timeGap*Ft(n)}ms ease-in-out`,...r})},null,4),P("div",n_,[Et(l.$slots,"default",{},void 0,!0)])]),_:3},8,["type","supportCopyText","effectTriggerTiming"]))}}),ix="",r_=mt(i_,[["__scopeId","data-v-8b261cbf"]]),o_={class:"line-double"},a_=ct({customOptions:{Container:kt},inheritAttrs:!0,__name:"LineDouble",props:{containerType:{default:"shrink"},supportCopyText:{type:Boolean,default:!0},effectTriggerTiming:{default:"mouseMove"},color:{default:"#3cefff"},timeGap:{default:50},lineHeight:{default:2},location:{default:"horizontal"},direction:{default:"toEnd"}},setup(s,{expose:t}){const e=s;let n=1;const i=(u,h)=>{n=Math.ceil(Math.max(u,h)/Math.min(u,h))},r=Jt({}),o=Jt({}),a=Jt({});switch(e.location){case"horizontal":r.width="100%",r.height=e.lineHeight+"px",o.top="0",a.bottom="0";break;case"vertical":r.width=e.lineHeight+"px",r.height="100%",o.left="0",a.right="0";break}const l=()=>{switch(e.direction){case"toEnd":switch(e.location){case"horizontal":o.right="0",a.right="0",r.transformOrigin="center right",r.transform="scaleX(0)";break;case"vertical":o.bottom="0",a.bottom="0",r.transformOrigin="center bottom",r.transform="scaleY(0)";break}break;case"toStart":switch(e.location){case"horizontal":o.left="0",a.left="0",r.transformOrigin="center left",r.transform="scaleX(0)";break;case"vertical":o.top="0",a.top="0",r.transformOrigin="center top",r.transform="scaleY(0)";break}break;case"towards":switch(e.location){case"horizontal":o.right="0",o.transformOrigin="center right",a.left="0",a.transformOrigin="center left",r.transform="scaleX(0)";break;case"vertical":o.bottom="0",o.transformOrigin="center bottom",a.top="0",a.transformOrigin="center top",r.transform="scaleY(0)";break}break;case"fromCenter":switch(e.location){case"horizontal":o.left="50%",a.left="50%",r.transformOrigin="center",r.transform="translateX(-50%) scaleX(0)";break;case"vertical":o.top="50%",a.top="50%",r.transformOrigin="center",r.transform="translateY(-50%) scaleY(0)";break}break}},c=()=>{switch(e.direction){case"toEnd":switch(e.location){case"horizontal":o.left="0",a.left="0",r.transformOrigin="center left",r.transform="scaleX(1)";break;case"vertical":o.top="0",a.top="0",r.transformOrigin="center top",r.transform="scaleY(1)";break}break;case"toStart":switch(e.location){case"horizontal":o.right="0",a.right="0",r.transformOrigin="center right",r.transform="scaleX(1)";break;case"vertical":o.bottom="0",a.bottom="0",r.transformOrigin="center bottom",r.transform="scaleY(1)";break}break;case"towards":switch(e.location){case"horizontal":o.left="0",o.transformOrigin="center left",a.right="0",a.transformOrigin="center right",r.transform="scaleX(1)";break;case"vertical":o.top="0",o.transformOrigin="center top",a.bottom="0",a.transformOrigin="center bottom",r.transform="scaleY(1)";break}break;case"fromCenter":switch(e.location){case"horizontal":o.left="50%",a.left="50%",r.transformOrigin="center",r.transform="translateX(-50%) scaleX(1)";break;case"vertical":o.top="50%",a.top="50%",r.transformOrigin="center",r.transform="translateY(-50%) scaleY(1)";break}break}};return t({}),(u,h)=>(L(),zt(kt,{type:e.containerType,supportCopyText:e.supportCopyText,effectTriggerTiming:e.effectTriggerTiming,onStart:l,onEnd:c,onResize:i},{default:Pt(()=>[P("div",{class:"line-double-before",style:Y({backgroundColor:e.color,transition:`transform ${e.timeGap*Ft(n)}ms ease-in-out`,...r,...o})},null,4),P("div",o_,[Et(u.$slots,"default",{},void 0,!0)]),P("div",{class:"line-double-after",style:Y({backgroundColor:e.color,transition:`transform ${e.timeGap*Ft(n)}ms ease-in-out`,...r,...a})},null,4)]),_:3},8,["type","supportCopyText","effectTriggerTiming"]))}}),rx="",l_=mt(a_,[["__scopeId","data-v-ac519c85"]]),c_=ct({customOptions:{Container:kt},inheritAttrs:!0,__name:"Float",props:{containerType:{default:"shrink"},supportCopyText:{type:Boolean,default:!0},effectTriggerTiming:{default:"mouseMove"},dur:{default:200},distance:{default:4},boxShadow:{default:"none"},direction:{default:"up"}},setup(s,{expose:t}){const e=s,n=Jt({willChange:"box-shadow, transform"}),i=()=>{switch(n.boxShadow="none",e.direction){case"left":n.transform="translateX(0)";break;case"right":n.transform="translateX(0)";break;case"down":n.transform="translateY(0)";break;case"up":n.transform="translateY(0)";break}},r=()=>{switch(n.boxShadow=e.boxShadow,e.direction){case"left":n.transform=`translateX(-${e.distance}px)`;break;case"right":n.transform=`translateX(${e.distance}px)`;break;case"down":n.transform=`translateY(${e.distance}px)`;break;case"up":n.transform=`translateY(-${e.distance}px)`;break}};return t({}),(o,a)=>(L(),zt(kt,{type:e.containerType,supportCopyText:e.supportCopyText,effectTriggerTiming:e.effectTriggerTiming,onStart:i,onEnd:r},{default:Pt(()=>[P("div",{class:"float",style:Y({transition:`transform ${e.dur}ms ease-in-out, box-shadow ${e.dur}ms ease-in-out`,...n})},[Et(o.$slots,"default",{},void 0,!0)],4)]),_:3},8,["type","supportCopyText","effectTriggerTiming"]))}}),ox="",u_=mt(c_,[["__scopeId","data-v-2cdf6499"]]),h_={class:"circle"},d_=ct({customOptions:{Container:kt},inheritAttrs:!0,__name:"Circle",props:{containerType:{default:"shrink"},supportCopyText:{type:Boolean,default:!0},effectTriggerTiming:{default:"mouseMove"},color:{default:"#3cefff"},dur:{default:750}},setup(s,{expose:t}){const e=s,n=M(),i=Jt({transition:`box-shadow ${e.dur}ms`,borderRadius:"100%"}),r=(l,c)=>{i.width=i.height=Math.ceil(Math.max(l,c))+"px",n.value?.repeatEffect?.()},o=()=>{const l=Ae(e.color,.2).toString();i.boxShadow=`
133
133
  inset ${i.width} 0 0 ${l},
134
134
  inset 0 ${i.width} 0 ${l},
135
135
  inset -${i.width} 0 0 ${l},
@@ -139,5 +139,5 @@ Component that was made reactive: `,s)),P(s,t,e,n,i,o,r,!0)}function Tf(s){retur
139
139
  inset 0 0.5em 0 rgba(252, 150, 0, 0.5),
140
140
  inset -0.5em 0 0 rgba(0, 255, 0, 0.5),
141
141
  inset 0 -0.5em 0 rgba(0, 150, 255, 0.5)
142
- `};return t({}),(l,c)=>(L(),zt(Et,{ref_key:"containerRef",ref:n,type:e.containerType,supportCopyText:e.supportCopyText,effectTriggerTiming:e.effectTriggerTiming,onStart:o,onEnd:a,onResize:r},{default:Pt(()=>[P("div",{class:"circle-before",style:Y(i)},null,4),P("div",h_,[kt(l.$slots,"default",{},void 0,!0)])]),_:3},8,["type","supportCopyText","effectTriggerTiming"]))}}),ax="",f_=mt(d_,[["__scopeId","data-v-85505877"]]),p_=ct({customOptions:{Container:Et},inheritAttrs:!0,__name:"BorderFocusText",props:{containerType:{default:"shrink"},supportCopyText:{type:Boolean,default:!1},effectTriggerTiming:{default:"manual"},text:{default:""},textSize:{default:12},borderColor:{default:"#5a82f0"},borderWidth:{default:2},borderRadius:{default:8}},setup(s,{expose:t}){const e=s,n=M(!0),i=()=>{n.value=!0},r=()=>{n.value=!1};return t({}),(o,a)=>(L(),zt(Et,{type:e.containerType,overflow:"visible",supportCopyText:e.supportCopyText,effectTriggerTiming:e.effectTriggerTiming,onStart:i,onEnd:r},{default:Pt(()=>[n.value?(L(),H("div",{key:0,class:"text",style:Y({fontSize:`${o.textSize}px`,top:`${-Math.ceil(o.textSize/2)-4}px`,padding:"4px 12px",backgroundColor:o.borderColor,borderRadius:`${o.textSize}px 0 ${o.textSize}px 0`,color:Ft(Ae)(o.borderColor).opposite(!0,"#333333","#ffffff").toString()})},wt(e.text),5)):Bt("",!0),P("div",{class:"inner",style:Y(n.value?{border:`${o.borderWidth}px solid ${o.borderColor}`,borderRadius:`${o.borderRadius}px`}:{})},[kt(o.$slots,"default",{},void 0,!0)],4)]),_:3},8,["type","supportCopyText","effectTriggerTiming"]))}}),lx="",m_=mt(p_,[["__scopeId","data-v-e9c63701"]]),g_=ct({customOptions:{Container:Et,SVGMaskNapkin:Ma},inheritAttrs:!0,__name:"ImageMask",props:{maskMode:{default:"alaph"},imageUrl:{default:""}},setup(s,{expose:t}){const e=s,n=M(0),i=M(0),r=(o,a)=>{n.value=o,i.value=a};return t({}),(o,a)=>(L(),H("div",{style:Y({width:`${n.value}px`,height:`${i.value}px`,maskImage:e.imageUrl?`url(${e.imageUrl})`:"url(#mask)","mask-mode":e.maskMode})},[kt(o.$slots,"mask",{},()=>[ft(Ma)]),ft(Et,{type:"shrink",onResize:r},{default:Pt(()=>[kt(o.$slots,"default")]),_:3})],4))}});return lt.Accordion=K0,lt.BooleanBox=li,lt.BorderFocusText=m_,lt.Button=ve,lt.CSSAnimation=ci,lt.CardFlip=Mv,lt.CheckboxGroup=Sr,lt.Circle=f_,lt.ClockFlipper=qv,lt.ColorPicker=T1,lt.Container=Et,lt.Cube=Lv,lt.Dialog=hi,lt.DialogLoading=Ay,lt.DialogToast=Fy,lt.EaseGraphDisplay=Ra,lt.EaseGroupGraphDisplay=F1,lt.FPSStats=R1,lt.Float=u_,lt.HandWritePanel=Hy,lt.Icon=an,lt.Image=Ea,lt.ImageMask=g_,lt.ImageView=ay,lt.Input=k0,lt.InputFileDrop=X0,lt.InputRange=Vs,lt.InputRangeBox=Y0,lt.InputRangeCanvas=L0,lt.InterpolationGraphDisplay=Aa,lt.InterpolationGroupGraphDisplay=B1,lt.LayoutCenter=gy,lt.LayoutMobile=py,lt.LineDouble=l_,lt.LineSingle=r_,lt.Loading1=ov,lt.Loading10=Iv,lt.Loading11=Ca,lt.Loading2=cv,lt.Loading3=hv,lt.Loading4=pv,lt.Loading5=yv,lt.Loading6=bv,lt.Loading7=Cv,lt.Loading8=Oa,lt.Loading9=Ev,lt.MapTianditu=D1,lt.Overlay=Sn,lt.Page=ka,lt.PageVerticalScrollProgressBar=Zy,lt.PlateDisplay=x1,lt.PlateKeyboard=Qu,lt.PlateMobile=v1,lt.Pop=Be,lt.Popover=Pa,lt.ProgressBar=ui,lt.RadioGroup=Sa,lt.ResizeObserver=O1,lt.RingIndicator=Bv,lt.RingText=Hv,lt.Routes=Tr,lt.SVGAndCanvas=tv,lt.SVGCheck=Ia,lt.SVGCleanUp=Er,lt.SVGDelete=Ta,lt.SVGDown=ai,lt.SVGMaskNapkin=Ma,lt.Select=Qg,lt.SelectAbsolute=o0,lt.Slide=Jv,lt.SlideCorner=s_,lt.SlideLeftItem=q0,lt.Status=B0,lt.Switch=l0,lt.Tab=Yy,lt.Tabs=jy,lt.TextBackgroundClip=Zv,lt.Video=ny,Object.defineProperty(lt,Symbol.toStringTag,{value:"Module"}),lt}({});
142
+ `};return t({}),(l,c)=>(L(),zt(kt,{ref_key:"containerRef",ref:n,type:e.containerType,supportCopyText:e.supportCopyText,effectTriggerTiming:e.effectTriggerTiming,onStart:o,onEnd:a,onResize:r},{default:Pt(()=>[P("div",{class:"circle-before",style:Y(i)},null,4),P("div",h_,[Et(l.$slots,"default",{},void 0,!0)])]),_:3},8,["type","supportCopyText","effectTriggerTiming"]))}}),ax="",f_=mt(d_,[["__scopeId","data-v-85505877"]]),p_=ct({customOptions:{Container:kt},inheritAttrs:!0,__name:"BorderFocusText",props:{containerType:{default:"shrink"},supportCopyText:{type:Boolean,default:!1},effectTriggerTiming:{default:"manual"},text:{default:""},textSize:{default:12},borderColor:{default:"#5a82f0"},borderWidth:{default:2},borderRadius:{default:8}},setup(s,{expose:t}){const e=s,n=M(!0),i=()=>{n.value=!0},r=()=>{n.value=!1};return t({}),(o,a)=>(L(),zt(kt,{type:e.containerType,overflow:"visible",supportCopyText:e.supportCopyText,effectTriggerTiming:e.effectTriggerTiming,onStart:i,onEnd:r},{default:Pt(()=>[n.value?(L(),H("div",{key:0,class:"text",style:Y({fontSize:`${o.textSize}px`,top:`${-Math.ceil(o.textSize/2)-4}px`,padding:"4px 12px",backgroundColor:o.borderColor,borderRadius:`${o.textSize}px 0 ${o.textSize}px 0`,color:Ft(Ae)(o.borderColor).opposite(!0,"#333333","#ffffff").toString()})},wt(e.text),5)):Bt("",!0),P("div",{class:"inner",style:Y(n.value?{border:`${o.borderWidth}px solid ${o.borderColor}`,borderRadius:`${o.borderRadius}px`}:{})},[Et(o.$slots,"default",{},void 0,!0)],4)]),_:3},8,["type","supportCopyText","effectTriggerTiming"]))}}),lx="",m_=mt(p_,[["__scopeId","data-v-e9c63701"]]),g_=ct({customOptions:{Container:kt,SVGMaskNapkin:Ma},inheritAttrs:!0,__name:"ImageMask",props:{maskMode:{default:"alaph"},imageUrl:{default:""}},setup(s,{expose:t}){const e=s,n=M(0),i=M(0),r=(o,a)=>{n.value=o,i.value=a};return t({}),(o,a)=>(L(),H("div",{style:Y({width:`${n.value}px`,height:`${i.value}px`,maskImage:e.imageUrl?`url(${e.imageUrl})`:"url(#mask)","mask-mode":e.maskMode})},[Et(o.$slots,"mask",{},()=>[ft(Ma)]),ft(kt,{type:"shrink",onResize:r},{default:Pt(()=>[Et(o.$slots,"default")]),_:3})],4))}});return lt.Accordion=K0,lt.BooleanBox=li,lt.BorderFocusText=m_,lt.Button=ve,lt.CSSAnimation=ci,lt.CardFlip=Mv,lt.CheckboxGroup=Sr,lt.Circle=f_,lt.ClockFlipper=qv,lt.ColorPicker=T1,lt.Container=kt,lt.Cube=Lv,lt.Dialog=hi,lt.DialogLoading=Ay,lt.DialogToast=Fy,lt.EaseGraphDisplay=Ra,lt.EaseGroupGraphDisplay=F1,lt.FPSStats=R1,lt.Float=u_,lt.HandWritePanel=Hy,lt.Icon=an,lt.Image=Ea,lt.ImageMask=g_,lt.ImageView=ay,lt.Input=k0,lt.InputFileDrop=X0,lt.InputRange=Vs,lt.InputRangeBox=Y0,lt.InputRangeCanvas=L0,lt.InterpolationGraphDisplay=Aa,lt.InterpolationGroupGraphDisplay=B1,lt.LayoutCenter=gy,lt.LayoutMobile=py,lt.LineDouble=l_,lt.LineSingle=r_,lt.Loading1=ov,lt.Loading10=Iv,lt.Loading11=Ca,lt.Loading2=cv,lt.Loading3=hv,lt.Loading4=pv,lt.Loading5=yv,lt.Loading6=bv,lt.Loading7=Cv,lt.Loading8=Oa,lt.Loading9=Ev,lt.MapTianditu=D1,lt.Overlay=Sn,lt.Page=ka,lt.PageVerticalScrollProgressBar=Zy,lt.PlateDisplay=x1,lt.PlateKeyboard=Qu,lt.PlateMobile=v1,lt.Pop=Be,lt.Popover=Pa,lt.ProgressBar=ui,lt.RadioGroup=Sa,lt.ResizeObserver=O1,lt.RingIndicator=Bv,lt.RingText=Hv,lt.Routes=Tr,lt.SVGAndCanvas=tv,lt.SVGCheck=Ia,lt.SVGCleanUp=Er,lt.SVGDelete=Ta,lt.SVGDown=ai,lt.SVGMaskNapkin=Ma,lt.Select=Qg,lt.SelectAbsolute=o0,lt.Slide=Jv,lt.SlideCorner=s_,lt.SlideLeftItem=q0,lt.Status=B0,lt.Switch=l0,lt.Tab=Yy,lt.Tabs=jy,lt.TextBackgroundClip=Zv,lt.Video=ny,Object.defineProperty(lt,Symbol.toStringTag,{value:"Module"}),lt}({});
143
143
  //# sourceMappingURL=zyzgroup_core_vue.iife.js.map